diff --git a/add-layers.html b/add-layers.html
new file mode 100644
index 00000000000..9f4e9166b10
--- /dev/null
+++ b/add-layers.html
@@ -0,0 +1,97 @@
+
Canadian Geospatial Platform Viewer1. Default Configuration
Top Add Layer Examples
ESRI Feature Service Layer
- https://maps-cartes.services.geo.ca/server_serveur/rest/services/NRCan/forest_industry_hotspots_en/MapServer/0
ESRI Dynamic Service Layer
- https://maps-cartes.services.geo.ca/server_serveur/rest/services/NRCan/historical_flood_event_en/MapServer
- https://maps-cartes.services.geo.ca/server_serveur/rest/services/NRCan/forest_industry_hotspots_en/MapServer
ESRI Image Layer
- https://www5.agr.gc.ca/atlas/rest/services/app_agclimate_agclimat/agclimate_tx/ImageServer/
WMS Layer
- https://ows.mundialis.de/services/service
- https://datacube.services.geo.ca/ows/msi?request=GetCapabilities&service=wms&version=1.3.0&layers=msi
WFS Layer
- https://ahocevar.com/geoserver/wfs?REQUEST=GetCapabilities&VERSION=2.0.0&SERVICE=WFS
XYZ Layer
- https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}
GeoJson Layer
- https://canadian-geospatial-platform.github.io/geoview/public/datasets/geojson/polygons.json
- https://canadian-geospatial-platform.github.io/geoview/public/datasets/geojson/lines.json
- https://canadian-geospatial-platform.github.io/geoview/public/datasets/geojson/points.json
OGC API Feature Layer
- https://b6ryuvakk5.execute-api.us-east-1.amazonaws.com/dev
- https://b6ryuvakk5.execute-api.us-east-1.amazonaws.com/dev/collections/lakes
GeoPackage Layer
- https://canadian-geospatial-platform.github.io/geoview/public/datasets/geopackages/rivers.gpkg
CSV Layer
- https://canadian-geospatial-platform.github.io/geoview/public/datasets/csv-files/Station_List_Minus_HQ-MELCC.csv
\ No newline at end of file
diff --git a/cgpv-main.js b/cgpv-main.js
index 0986cc195b4..27393363c53 100644
--- a/cgpv-main.js
+++ b/cgpv-main.js
@@ -1,4 +1,4 @@
-/*! Package:cgpv-main: 0.1.0 - "c6dcf2ac46f31d61a67d4822747ad014c58ab6f3" - 2024-06-06T20:43:38.982Z */(()=>{var e,t,n,r={12347:(e,t,n)=>{"use strict";n.d(t,{A:()=>ie});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;t0?u(x,--v):0,m--,10===b&&(m=1,g--),b}function C(){return b=v2||T(b)>3?"":" "}function L(e,t){for(;--t&&C()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return k(e,_()+(t<6&&32==E()&&32==C()))}function R(e){for(;C();)switch(b){case e:return v;case 34:case 39:34!==e&&39!==e&&R(b);break;case 40:41===e&&R(e);break;case 92:C()}return v}function j(e,t){for(;C()&&e+b!==57&&(e+b!==84||47!==E()););return"/*"+k(t,v-1)+"*"+o(47===e?e:C())}function F(e){for(;!T(E());)C();return k(e,v)}var D="-ms-",N="-moz-",z="-webkit-",V="comm",B="rule",$="decl",G="@keyframes";function U(e,t){for(var n="",r=p(e),i=0;i0&&h(N)-y&&f(b>32?X(N+";",r,n,y-1):X(l(N," ","")+";",r,n,y-2),p);break;case 59:N+=";";default:if(f(D=Y(N,t,n,g,m,i,d,O,P=[],R=[],y),a),123===T)if(0===m)H(N,t,D,D,P,a,y,d,R);else switch(99===v&&110===u(N,3)?100:v){case 100:case 108:case 109:case 115:H(e,D,D,r&&f(Y(e,D,D,0,0,i,d,O,i,P=[],y),R),i,R,y,d,r?P:R);break;default:H(N,D,D,D,[""],R,0,d,R)}}g=m=b=0,w=k=1,O=N="",y=s;break;case 58:y=1+h(N),b=x;default:if(w<1)if(123==T)--w;else if(125==T&&0==w++&&125==S())continue;switch(N+=o(T),T*w){case 38:k=m>0?1:(N+="\f",-1);break;case 44:d[g++]=(h(N)-1)*k,k=1;break;case 64:45===E()&&(N+=I(C())),v=E(),m=y=h(O=N+=F(_())),T++;break;case 45:45===x&&2==h(N)&&(w=0)}}return a}function Y(e,t,n,r,o,a,c,u,h,f,g){for(var m=o-1,y=0===o?a:[""],v=p(y),b=0,x=0,A=0;b0?y[S]+" "+C:l(C,/&\f/g,y[S])))&&(h[A++]=E);return w(e,t,n,0===o?B:u,h,f,g)}function K(e,t,n){return w(e,t,n,V,o(b),d(e,2,-2),0)}function X(e,t,n,r){return w(e,t,n,$,d(e,0,r),d(e,r+1,-1),r)}var Z=function(e,t,n){for(var r=0,i=0;r=i,i=E(),38===r&&12===i&&(t[n]=1),!T(i);)C();return k(e,v)},J=function(e,t){return P(function(e,t){var n=-1,r=44;do{switch(T(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=Z(v-1,t,n);break;case 2:e[n]+=I(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=C());return e}(O(e),t))},Q=new WeakMap,ee=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)||Q.get(n))&&!r){Q.set(e,!0);for(var i=[],o=J(t,i),a=n.props,s=0,l=0;s6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+N+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,h(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+z)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(45===u(e,14)?"inline-":"")+"box$3$1"+z+"$2$3$1"+D+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return z+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+D+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+D+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case $:e.return=ne(e.value,e.length);break;case G:return U([A(e,{value:l(e.value,"@","@"+z)})],r);case B:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return U([A(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return U([A(e,{props:[l(t,/:(plac\w+)/,":"+z+"input-$1")]}),A(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),A(e,{props:[l(t,/:(plac\w+)/,D+"input-$1")]})],r)}return""}))}}],ie=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=e.stylisPlugins||re;var o,a,s={},l=[];o=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{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},18321:(e,t,n)=>{"use strict";n.d(t,{C:()=>s,T:()=>c,i:()=>o,w:()=>l});var r=n(30538),i=n(12347),o=(n(93372),n(88946),!0),a=r.createContext("undefined"!=typeof HTMLElement?(0,i.A)({key:"css"}):null);var s=a.Provider,l=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(a);return e(t,i,n)}))};o||(l=function(e){return function(t){var n=(0,r.useContext)(a);return null===n?(n=(0,i.A)({key:"css"}),r.createElement(a.Provider,{value:n},e(t,n))):e(t,n)}});var c=r.createContext({})},5345:(e,t,n)=>{"use strict";n.d(t,{AH:()=>c,i7:()=>u,mL:()=>l});var r=n(18321),i=n(30538),o=n(40106),a=n(88946),s=n(93372),l=(n(12347),n(78535),(0,r.w)((function(e,t){var n=e.styles,l=(0,s.J)([n],void 0,i.useContext(r.T));if(!r.i){for(var c,u=l.name,d=l.styles,h=l.next;void 0!==h;)u+=" "+h.name,d+=h.styles,h=h.next;var p=!0===t.compat,f=t.insert("",{name:u,styles:d},t.sheet,p);return p?null:i.createElement("style",((c={})["data-emotion"]=t.key+"-global "+u,c.dangerouslySetInnerHTML={__html:f},c.nonce=t.sheet.nonce,c))}var g=i.useRef();return(0,a.i)((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])),g.current=[n,r],function(){n.flush()}}),[t]),(0,a.i)((function(){var e=g.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,o.sk)(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{"use strict";n.d(t,{J:()=>f});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=n(48998),o=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},c=(0,i.A)((function(e){return s(e)?e:e.replace(o,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,(function(e,t,n){return h={name:t,styles:n,next:h},t}))}return 1===r[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function d(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=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)+l;return{name:c,styles:i,next:h}}},88946:(e,t,n)=>{"use strict";var r;n.d(t,{i:()=>s,s:()=>a});var i=n(30538),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},40106:(e,t,n)=>{"use strict";n.d(t,{Rk:()=>r,SF:()=>i,sk:()=>o});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}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)}}},23799:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var r=n(30538),i=n(18029),o=n(74311),a=n(97282);const s=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function l(e){const t=[],n=[];return Array.from(e.querySelectorAll(s)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function c(){return!0}function u(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:s=!1,disableRestoreFocus:u=!1,getTabbable:d=l,isEnabled:h=c,open:p}=e,f=r.useRef(!1),g=r.useRef(null),m=r.useRef(null),y=r.useRef(null),v=r.useRef(null),b=r.useRef(!1),x=r.useRef(null),w=(0,i.A)(t.ref,x),A=r.useRef(null);r.useEffect((()=>{p&&x.current&&(b.current=!n)}),[n,p]),r.useEffect((()=>{if(!p||!x.current)return;const e=(0,o.A)(x.current);return x.current.contains(e.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),b.current&&x.current.focus()),()=>{u||(y.current&&y.current.focus&&(f.current=!0,y.current.focus()),y.current=null)}}),[p]),r.useEffect((()=>{if(!p||!x.current)return;const e=(0,o.A)(x.current),t=t=>{A.current=t,!s&&h()&&"Tab"===t.key&&e.activeElement===x.current&&t.shiftKey&&(f.current=!0,m.current&&m.current.focus())},n=()=>{const t=x.current;if(null===t)return;if(!e.hasFocus()||!h()||f.current)return void(f.current=!1);if(t.contains(e.activeElement))return;if(s&&e.activeElement!==g.current&&e.activeElement!==m.current)return;if(e.activeElement!==v.current)v.current=null;else if(null!==v.current)return;if(!b.current)return;let n=[];if(e.activeElement!==g.current&&e.activeElement!==m.current||(n=d(x.current)),n.length>0){var r,i;const e=Boolean((null==(r=A.current)?void 0:r.shiftKey)&&"Tab"===(null==(i=A.current)?void 0:i.key)),t=n[0],o=n[n.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,s,u,h,p,d]);const S=e=>{null===y.current&&(y.current=e.relatedTarget),b.current=!0};return(0,a.jsxs)(r.Fragment,{children:[(0,a.jsx)("div",{tabIndex:p?0:-1,onFocus:S,ref:g,"data-testid":"sentinelStart"}),r.cloneElement(t,{ref:w,onFocus:e=>{null===y.current&&(y.current=e.relatedTarget),b.current=!0,v.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,a.jsx)("div",{tabIndex:p?0:-1,onFocus:S,ref:m,"data-testid":"sentinelEnd"})]})}},26985:(e,t,n)=>{"use strict";function r(e,t,n){return"function"==typeof e?e(t,n):e}n.d(t,{Y:()=>r})},94267:(e,t,n)=>{"use strict";n.d(t,{Q:()=>d});var r=n(51559),i=n(73342),o=n(18029);var a=n(87286);function s(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function l(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:o,className:l}=e;if(!t){const e=(0,a.A)(null==n?void 0:n.className,l,null==o?void 0:o.className,null==i?void 0:i.className),t=(0,r.A)({},null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),s=(0,r.A)({},n,o,i);return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const c=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}((0,r.A)({},o,i)),u=s(i),d=s(o),h=t(c),p=(0,a.A)(null==h?void 0:h.className,null==n?void 0:n.className,l,null==o?void 0:o.className,null==i?void 0:i.className),f=(0,r.A)({},null==h?void 0:h.style,null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),g=(0,r.A)({},h,n,d,u);return p.length>0&&(g.className=p),Object.keys(f).length>0&&(g.style=f),{props:g,internalRef:h.ref}}var c=n(26985);const u=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function d(e){var t;const{elementType:n,externalSlotProps:a,ownerState:s,skipResolvingSlotProps:d=!1}=e,h=(0,i.A)(e,u),p=d?{}:(0,c.Y)(a,s),{props:f,internalRef:g}=l((0,r.A)({},h,{externalSlotProps:p})),m=(0,o.A)(g,null==p?void 0:p.ref,null==(t=e.additionalProps)?void 0:t.ref),y=function(e,t,n){return void 0===e||"string"==typeof e?t:(0,r.A)({},t,{ownerState:(0,r.A)({},t.ownerState,n)})}(n,(0,r.A)({},f,{ref:m}),s);return y}},26565:(e,t,n)=>{"use strict";n.d(t,{x:()=>c});var r=n(30538),i=n(18029),o=n(18605),a=n(74311),s=n(97282);function l(e){return e.substring(2).toLowerCase()}function c(e){const{children:t,disableReactTree:n=!1,mouseEvent:c="onClick",onClickAway:u,touchEvent:d="onTouchEnd"}=e,h=r.useRef(!1),p=r.useRef(null),f=r.useRef(!1),g=r.useRef(!1);r.useEffect((()=>(setTimeout((()=>{f.current=!0}),0),()=>{f.current=!1})),[]);const m=(0,i.A)(t.ref,p),y=(0,o.A)((e=>{const t=g.current;g.current=!1;const r=(0,a.A)(p.current);if(!f.current||!p.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!r.documentElement.contains(e.target)||p.current.contains(e.target),i||!n&&t||u(e)})),v=e=>n=>{g.current=!0;const r=t.props[e];r&&r(n)},b={ref:m};return!1!==d&&(b[d]=v(d)),r.useEffect((()=>{if(!1!==d){const e=l(d),t=(0,a.A)(p.current),n=()=>{h.current=!0};return t.addEventListener(e,y),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,y),t.removeEventListener("touchmove",n)}}}),[y,d]),!1!==c&&(b[c]=v(c)),r.useEffect((()=>{if(!1!==c){const e=l(c),t=(0,a.A)(p.current);return t.addEventListener(e,y),()=>{t.removeEventListener(e,y)}}}),[y,c]),(0,s.jsx)(r.Fragment,{children:r.cloneElement(t,b)})}},48265:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var r=n(30538),i=n(18029),o=n(74311),a=n(97282);const s=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function l(e){const t=[],n=[];return Array.from(e.querySelectorAll(s)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function c(){return!0}function u(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:s=!1,disableRestoreFocus:u=!1,getTabbable:d=l,isEnabled:h=c,open:p}=e,f=r.useRef(!1),g=r.useRef(null),m=r.useRef(null),y=r.useRef(null),v=r.useRef(null),b=r.useRef(!1),x=r.useRef(null),w=(0,i.A)(t.ref,x),A=r.useRef(null);r.useEffect((()=>{p&&x.current&&(b.current=!n)}),[n,p]),r.useEffect((()=>{if(!p||!x.current)return;const e=(0,o.A)(x.current);return x.current.contains(e.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),b.current&&x.current.focus()),()=>{u||(y.current&&y.current.focus&&(f.current=!0,y.current.focus()),y.current=null)}}),[p]),r.useEffect((()=>{if(!p||!x.current)return;const e=(0,o.A)(x.current),t=t=>{A.current=t,!s&&h()&&"Tab"===t.key&&e.activeElement===x.current&&t.shiftKey&&(f.current=!0,m.current&&m.current.focus())},n=()=>{const t=x.current;if(null===t)return;if(!e.hasFocus()||!h()||f.current)return void(f.current=!1);if(t.contains(e.activeElement))return;if(s&&e.activeElement!==g.current&&e.activeElement!==m.current)return;if(e.activeElement!==v.current)v.current=null;else if(null!==v.current)return;if(!b.current)return;let n=[];if(e.activeElement!==g.current&&e.activeElement!==m.current||(n=d(x.current)),n.length>0){var r,i;const e=Boolean((null==(r=A.current)?void 0:r.shiftKey)&&"Tab"===(null==(i=A.current)?void 0:i.key)),t=n[0],o=n[n.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,s,u,h,p,d]);const S=e=>{null===y.current&&(y.current=e.relatedTarget),b.current=!0};return(0,a.jsxs)(r.Fragment,{children:[(0,a.jsx)("div",{tabIndex:p?0:-1,onFocus:S,ref:g,"data-testid":"sentinelStart"}),r.cloneElement(t,{ref:w,onFocus:e=>{null===y.current&&(y.current=e.relatedTarget),b.current=!0,v.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,a.jsx)("div",{tabIndex:p?0:-1,onFocus:S,ref:m,"data-testid":"sentinelEnd"})]})}},45583:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(30538),i=n(95491),o=n(18029),a=n(43107),s=n(54175),l=n(97282);const c=r.forwardRef((function(e,t){const{children:n,container:c,disablePortal:u=!1}=e,[d,h]=r.useState(null),p=(0,o.A)(r.isValidElement(n)?n.ref:null,t);if((0,a.A)((()=>{u||h(function(e){return"function"==typeof e?e():e}(c)||document.body)}),[c,u]),(0,a.A)((()=>{if(d&&!u)return(0,s.A)(t,d),()=>{(0,s.A)(t,null)}}),[t,d,u]),u){if(r.isValidElement(n)){const e={ref:p};return r.cloneElement(n,e)}return(0,l.jsx)(r.Fragment,{children:n})}return(0,l.jsx)(r.Fragment,{children:d?i.createPortal(n,d):d})}))},23130:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});var r=n(51559),i=n(2665);function o(e,t,n){return void 0===e||(0,i.g)(e)?t:(0,r.A)({},t,{ownerState:(0,r.A)({},t.ownerState,n)})}},75188:(e,t,n)=>{"use strict";function r(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}n.d(t,{h:()=>r})},2665:(e,t,n)=>{"use strict";function r(e){return"string"==typeof e}n.d(t,{g:()=>r})},63261:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});var r=n(51559),i=n(87286),o=n(75188);function a(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function s(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:s,externalForwardedProps:l,className:c}=e;if(!t){const e=(0,i.A)(null==n?void 0:n.className,c,null==l?void 0:l.className,null==s?void 0:s.className),t=(0,r.A)({},null==n?void 0:n.style,null==l?void 0:l.style,null==s?void 0:s.style),o=(0,r.A)({},n,l,s);return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}const u=(0,o.h)((0,r.A)({},l,s)),d=a(s),h=a(l),p=t(u),f=(0,i.A)(null==p?void 0:p.className,null==n?void 0:n.className,c,null==l?void 0:l.className,null==s?void 0:s.className),g=(0,r.A)({},null==p?void 0:p.style,null==n?void 0:n.style,null==l?void 0:l.style,null==s?void 0:s.style),m=(0,r.A)({},p,n,h,d);return f.length>0&&(m.className=f),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:p.ref}}},66567:(e,t,n)=>{"use strict";function r(e,t,n){return"function"==typeof e?e(t,n):e}n.d(t,{Y:()=>r})},12277:(e,t,n)=>{"use strict";n.d(t,{Q:()=>u});var r=n(51559),i=n(73342),o=n(18029),a=n(23130),s=n(63261),l=n(66567);const c=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function u(e){var t;const{elementType:n,externalSlotProps:u,ownerState:d,skipResolvingSlotProps:h=!1}=e,p=(0,i.A)(e,c),f=h?{}:(0,l.Y)(u,d),{props:g,internalRef:m}=(0,s.p)((0,r.A)({},p,{externalSlotProps:f})),y=(0,o.A)(m,null==f?void 0:f.ref,null==(t=e.additionalProps)?void 0:t.ref);return(0,a.X)(n,(0,r.A)({},g,{ref:y}),d)}},16299:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward")},35103:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight")},26332:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel")},34790:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft")},1617:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight")},50110:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M5 13h14v-2H5zm-2 4h14v-2H3zM7 7v2h14V7z"}),"ClearAll")},98788:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},18904:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy")},87981:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 3h18v2H3zm0 16h18v2H3z"}),"DensityLarge")},33815:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 3h18v2H3zm0 16h18v2H3zm0-8h18v2H3z"}),"DensityMedium")},38537:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 2h18v2H3zm0 18h18v2H3zm0-6h18v2H3zm0-6h18v2H3z"}),"DensitySmall")},33330:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M20 9H4v2h16zM4 15h16v-2H4z"}),"DragHandle")},20317:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M8 8H6v7c0 1.1.9 2 2 2h9v-2H8z"},"0"),(0,o.jsx)("path",{d:"M20 3h-8c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 8h-8V7h8zM4 12H2v7c0 1.1.9 2 2 2h9v-2H4z"},"1")],"DynamicFeed")},44182:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit")},86663:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},91465:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61"}),"FilterAlt")},64712:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList")},81439:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M10.83 8H21V6H8.83zm5 5H18v-2h-4.17zM14 16.83V18h-4v-2h3.17l-3-3H6v-2h2.17l-3-3H3V6h.17L1.39 4.22 2.8 2.81l18.38 18.38-1.41 1.41z"}),"FilterListOff")},4113:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage")},43219:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen")},29667:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit")},28217:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M18 6.41 16.59 5 12 9.58 7.41 5 6 6.41l6 6z"},"0"),(0,o.jsx)("path",{d:"m18 13-1.41-1.41L12 16.17l-4.59-4.58L6 13l6 6z"},"1")],"KeyboardDoubleArrowDown")},11689:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage")},57897:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz")},50836:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert")},10575:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{fillRule:"evenodd",d:"M16 9V4h1c.55 0 1-.45 1-1s-.45-1-1-1H7c-.55 0-1 .45-1 1s.45 1 1 1h1v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1 1-1v-7H19v-2c-1.66 0-3-1.34-3-3"}),"PushPin")},88523:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"}),"RestartAlt")},59843:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save")},26638:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search")},14821:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3 6.08 3 3.28 5.64 3.03 9h2.02C5.3 6.75 7.18 5 9.5 5 11.99 5 14 7.01 14 9.5S11.99 14 9.5 14c-.17 0-.33-.03-.5-.05v2.02c.17.02.33.03.5.03 1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19z"},"0"),(0,o.jsx)("path",{d:"M6.47 10.82 4 13.29l-2.47-2.47-.71.71L3.29 14 .82 16.47l.71.71L4 14.71l2.47 2.47.71-.71L4.71 14l2.47-2.47z"},"1")],"SearchOff")},70422:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort")},65534:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"m18 12 4-4-4-4v3H3v2h15zM6 12l-4 4 4 4v-3h15v-2H6z"}),"SyncAlt")},98993:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn")},98073:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},78918:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack")},75311:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward")},13659:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward")},2890:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward")},60192:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},98533:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});n(30538);var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub")},15789:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M21 6.5c-1.66 0-3 1.34-3 3 0 .07 0 .14.01.21l-2.03.68c-.64-1.21-1.82-2.09-3.22-2.32V5.91C14.04 5.57 15 4.4 15 3c0-1.66-1.34-3-3-3S9 1.34 9 3c0 1.4.96 2.57 2.25 2.91v2.16c-1.4.23-2.58 1.11-3.22 2.32l-2.04-.68C6 9.64 6 9.57 6 9.5c0-1.66-1.34-3-3-3s-3 1.34-3 3 1.34 3 3 3c1.06 0 1.98-.55 2.52-1.37l2.03.68c-.2 1.29.17 2.66 1.09 3.69l-1.41 1.77C6.85 17.09 6.44 17 6 17c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3c0-.68-.22-1.3-.6-1.8l1.41-1.77c1.36.76 3.02.75 4.37 0l1.41 1.77c-.37.5-.59 1.12-.59 1.8 0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3c-.44 0-.85.09-1.23.26l-1.41-1.77c.93-1.04 1.29-2.4 1.09-3.69l2.03-.68c.53.82 1.46 1.37 2.52 1.37 1.66 0 3-1.34 3-3S22.66 6.5 21 6.5m-18 4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1M6 21c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m5-18c0-.55.45-1 1-1s1 .45 1 1-.45 1-1 1-1-.45-1-1m1 12c-1.38 0-2.5-1.12-2.5-2.5S10.62 10 12 10s2.5 1.12 2.5 2.5S13.38 15 12 15m6 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m3-8.5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1"}),"HubOutlined")},19512:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined")},15470:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27zm0-11.47L17.74 9 12 13.47 6.26 9z"}),"LayersOutlined")},96898:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"m20.5 3-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5M15 19l-6-2.11V5l6 2.11z"}),"Map")},25297:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M19.88 18.47c.44-.7.7-1.51.7-2.39 0-2.49-2.01-4.5-4.5-4.5s-4.5 2.01-4.5 4.5 2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21.58 23 23 21.58zm-3.8.11c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5m-.36-8.5c-.74.02-1.45.18-2.1.45l-.55-.83-3.8 6.18-3.01-3.52-3.63 5.81L1 17l5-8 3 3.5L13 6zm2.59.5c-.64-.28-1.33-.45-2.05-.49L21.38 2 23 3.18z"}),"QueryStats")},27927:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15M14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2"}),"QuestionMark")},94321:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage")},91693:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M19 7H9c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m0 2v2H9V9zm-6 6v-2h2v2zm2 2v2h-2v-2zm-4-2H9v-2h2zm6-2h2v2h-2zm-8 4h2v2H9zm8 2v-2h2v2zM6 17H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2v1h-2V5H5v10h1z"}),"TableView")},43957:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(90202)},94653:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(58990),c=n(87507),u=n(68127),d=n(5007),h=n(24115);function p(e){return(0,h.Ay)("MuiBackdrop",e)}(0,d.A)("MuiBackdrop",["root","invisible"]);var f=n(97282);const g=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],m=(0,l.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>(0,i.A)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),y=o.forwardRef((function(e,t){var n,o,l;const d=(0,c.A)({props:e,name:"MuiBackdrop"}),{children:h,className:y,component:v="div",components:b={},componentsProps:x={},invisible:w=!1,open:A,slotProps:S={},slots:C={},TransitionComponent:E=u.A,transitionDuration:_}=d,k=(0,r.A)(d,g),T=(0,i.A)({},d,{component:v,invisible:w}),O=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,s.A)(r,p,t)})(T),P=null!=(n=S.root)?n:x.root;return(0,f.jsx)(E,(0,i.A)({in:A,timeout:_},k,{children:(0,f.jsx)(m,(0,i.A)({"aria-hidden":!0},P,{as:null!=(o=null!=(l=C.root)?l:b.Root)?o:v,className:(0,a.A)(O.root,y,null==P?void 0:P.className),ownerState:(0,i.A)({},T,null==P?void 0:P.ownerState),classes:O,ref:t,children:h}))}))}))},66469:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(51559),i=n(73342),o=n(30538),a=n(87286),s=n(77753),l=n(22311),c=n(25779),u=n(38382),d=n(97282);const h=["className","component"];var p=n(58337),f=n(76014),g=n(38358);const m=(0,n(5007).A)("MuiBox",["root"]),y=(0,f.A)(),v=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:p="MuiBox-root",generateClassName:f}=e,g=(0,s.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.A);return o.forwardRef((function(e,o){const s=(0,u.A)(n),l=(0,c.A)(e),{className:m,component:y="div"}=l,v=(0,i.A)(l,h);return(0,d.jsx)(g,(0,r.A)({as:y,ref:o,className:(0,a.A)(m,f?f(p):p),theme:t&&s[t]||s},v))}))}({themeId:g.A,defaultTheme:y,defaultClassName:m.root,generateClassName:p.A.generate}),b=v},92004:(e,t,n)=>{"use strict";n.d(t,{A:()=>D});var r=n(51559),i=n(73342),o=n(30538),a=n(87286),s=n(32829),l=n(58990),c=n(87507),u=n(47258),d=n(36064),h=n(65741),p=n(37091),f=n(5345),g=n(8734),m=n(97282);const y=function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:l,in:c,onExited:u,timeout:d}=e,[h,p]=o.useState(!1),f=(0,a.A)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:l,height:l,top:-l/2+s,left:-l/2+i},y=(0,a.A)(n.child,h&&n.childLeaving,r&&n.childPulsate);return c||h||p(!0),o.useEffect((()=>{if(!c&&null!=u){const e=setTimeout(u,d);return()=>{clearTimeout(e)}}}),[u,c,d]),(0,m.jsx)("span",{className:f,style:g,children:(0,m.jsx)("span",{className:y})})};var v=n(5007);const b=(0,v.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),x=["center","classes","className"];let w,A,S,C,E=e=>e;const _=(0,f.i7)(w||(w=E`
+/*! Package:cgpv-main: 0.1.0 - "303d9fabc6ac1c37422d67e5f874f8fb0be8339f" - 2024-06-17T17:53:36.564Z */(()=>{var e,t,n,r={12347:(e,t,n)=>{"use strict";n.d(t,{A:()=>ie});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;t0?u(w,--v):0,m--,10===b&&(m=1,g--),b}function C(){return b=v2||T(b)>3?"":" "}function L(e,t){for(;--t&&C()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return k(e,_()+(t<6&&32==E()&&32==C()))}function R(e){for(;C();)switch(b){case e:return v;case 34:case 39:34!==e&&39!==e&&R(b);break;case 40:41===e&&R(e);break;case 92:C()}return v}function j(e,t){for(;C()&&e+b!==57&&(e+b!==84||47!==E()););return"/*"+k(t,v-1)+"*"+o(47===e?e:C())}function F(e){for(;!T(E());)C();return k(e,v)}var D="-ms-",N="-moz-",z="-webkit-",V="comm",B="rule",$="decl",G="@keyframes";function U(e,t){for(var n="",r=p(e),i=0;i0&&h(N)-y&&f(b>32?X(N+";",r,n,y-1):X(l(N," ","")+";",r,n,y-2),p);break;case 59:N+=";";default:if(f(D=Y(N,t,n,g,m,i,d,O,P=[],R=[],y),a),123===T)if(0===m)H(N,t,D,D,P,a,y,d,R);else switch(99===v&&110===u(N,3)?100:v){case 100:case 108:case 109:case 115:H(e,D,D,r&&f(Y(e,D,D,0,0,i,d,O,i,P=[],y),R),i,R,y,d,r?P:R);break;default:H(N,D,D,D,[""],R,0,d,R)}}g=m=b=0,x=k=1,O=N="",y=s;break;case 58:y=1+h(N),b=w;default:if(x<1)if(123==T)--x;else if(125==T&&0==x++&&125==S())continue;switch(N+=o(T),T*x){case 38:k=m>0?1:(N+="\f",-1);break;case 44:d[g++]=(h(N)-1)*k,k=1;break;case 64:45===E()&&(N+=I(C())),v=E(),m=y=h(O=N+=F(_())),T++;break;case 45:45===w&&2==h(N)&&(x=0)}}return a}function Y(e,t,n,r,o,a,c,u,h,f,g){for(var m=o-1,y=0===o?a:[""],v=p(y),b=0,w=0,A=0;b0?y[S]+" "+C:l(C,/&\f/g,y[S])))&&(h[A++]=E);return x(e,t,n,0===o?B:u,h,f,g)}function K(e,t,n){return x(e,t,n,V,o(b),d(e,2,-2),0)}function X(e,t,n,r){return x(e,t,n,$,d(e,0,r),d(e,r+1,-1),r)}var Z=function(e,t,n){for(var r=0,i=0;r=i,i=E(),38===r&&12===i&&(t[n]=1),!T(i);)C();return k(e,v)},J=function(e,t){return P(function(e,t){var n=-1,r=44;do{switch(T(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=Z(v-1,t,n);break;case 2:e[n]+=I(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=C());return e}(O(e),t))},Q=new WeakMap,ee=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)||Q.get(n))&&!r){Q.set(e,!0);for(var i=[],o=J(t,i),a=n.props,s=0,l=0;s6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+N+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,h(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+z)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(45===u(e,14)?"inline-":"")+"box$3$1"+z+"$2$3$1"+D+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return z+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+D+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+D+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case $:e.return=ne(e.value,e.length);break;case G:return U([A(e,{value:l(e.value,"@","@"+z)})],r);case B:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return U([A(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return U([A(e,{props:[l(t,/:(plac\w+)/,":"+z+"input-$1")]}),A(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),A(e,{props:[l(t,/:(plac\w+)/,D+"input-$1")]})],r)}return""}))}}],ie=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=e.stylisPlugins||re;var o,a,s={},l=[];o=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{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},18321:(e,t,n)=>{"use strict";n.d(t,{C:()=>s,T:()=>c,i:()=>o,w:()=>l});var r=n(30538),i=n(12347),o=(n(93372),n(88946),!0),a=r.createContext("undefined"!=typeof HTMLElement?(0,i.A)({key:"css"}):null);var s=a.Provider,l=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(a);return e(t,i,n)}))};o||(l=function(e){return function(t){var n=(0,r.useContext)(a);return null===n?(n=(0,i.A)({key:"css"}),r.createElement(a.Provider,{value:n},e(t,n))):e(t,n)}});var c=r.createContext({})},5345:(e,t,n)=>{"use strict";n.d(t,{AH:()=>c,i7:()=>u,mL:()=>l});var r=n(18321),i=n(30538),o=n(40106),a=n(88946),s=n(93372),l=(n(12347),n(78535),(0,r.w)((function(e,t){var n=e.styles,l=(0,s.J)([n],void 0,i.useContext(r.T));if(!r.i){for(var c,u=l.name,d=l.styles,h=l.next;void 0!==h;)u+=" "+h.name,d+=h.styles,h=h.next;var p=!0===t.compat,f=t.insert("",{name:u,styles:d},t.sheet,p);return p?null:i.createElement("style",((c={})["data-emotion"]=t.key+"-global "+u,c.dangerouslySetInnerHTML={__html:f},c.nonce=t.sheet.nonce,c))}var g=i.useRef();return(0,a.i)((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])),g.current=[n,r],function(){n.flush()}}),[t]),(0,a.i)((function(){var e=g.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,o.sk)(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{"use strict";n.d(t,{J:()=>f});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=n(48998),o=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},c=(0,i.A)((function(e){return s(e)?e:e.replace(o,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,(function(e,t,n){return h={name:t,styles:n,next:h},t}))}return 1===r[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function d(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=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)+l;return{name:c,styles:i,next:h}}},88946:(e,t,n)=>{"use strict";var r;n.d(t,{i:()=>s,s:()=>a});var i=n(30538),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},40106:(e,t,n)=>{"use strict";n.d(t,{Rk:()=>r,SF:()=>i,sk:()=>o});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}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)}}},23799:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var r=n(30538),i=n(18029),o=n(74311),a=n(97282);const s=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function l(e){const t=[],n=[];return Array.from(e.querySelectorAll(s)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function c(){return!0}function u(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:s=!1,disableRestoreFocus:u=!1,getTabbable:d=l,isEnabled:h=c,open:p}=e,f=r.useRef(!1),g=r.useRef(null),m=r.useRef(null),y=r.useRef(null),v=r.useRef(null),b=r.useRef(!1),w=r.useRef(null),x=(0,i.A)(t.ref,w),A=r.useRef(null);r.useEffect((()=>{p&&w.current&&(b.current=!n)}),[n,p]),r.useEffect((()=>{if(!p||!w.current)return;const e=(0,o.A)(w.current);return w.current.contains(e.activeElement)||(w.current.hasAttribute("tabIndex")||w.current.setAttribute("tabIndex","-1"),b.current&&w.current.focus()),()=>{u||(y.current&&y.current.focus&&(f.current=!0,y.current.focus()),y.current=null)}}),[p]),r.useEffect((()=>{if(!p||!w.current)return;const e=(0,o.A)(w.current),t=t=>{A.current=t,!s&&h()&&"Tab"===t.key&&e.activeElement===w.current&&t.shiftKey&&(f.current=!0,m.current&&m.current.focus())},n=()=>{const t=w.current;if(null===t)return;if(!e.hasFocus()||!h()||f.current)return void(f.current=!1);if(t.contains(e.activeElement))return;if(s&&e.activeElement!==g.current&&e.activeElement!==m.current)return;if(e.activeElement!==v.current)v.current=null;else if(null!==v.current)return;if(!b.current)return;let n=[];if(e.activeElement!==g.current&&e.activeElement!==m.current||(n=d(w.current)),n.length>0){var r,i;const e=Boolean((null==(r=A.current)?void 0:r.shiftKey)&&"Tab"===(null==(i=A.current)?void 0:i.key)),t=n[0],o=n[n.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,s,u,h,p,d]);const S=e=>{null===y.current&&(y.current=e.relatedTarget),b.current=!0};return(0,a.jsxs)(r.Fragment,{children:[(0,a.jsx)("div",{tabIndex:p?0:-1,onFocus:S,ref:g,"data-testid":"sentinelStart"}),r.cloneElement(t,{ref:x,onFocus:e=>{null===y.current&&(y.current=e.relatedTarget),b.current=!0,v.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,a.jsx)("div",{tabIndex:p?0:-1,onFocus:S,ref:m,"data-testid":"sentinelEnd"})]})}},26565:(e,t,n)=>{"use strict";n.d(t,{x:()=>c});var r=n(30538),i=n(18029),o=n(18605),a=n(74311),s=n(97282);function l(e){return e.substring(2).toLowerCase()}function c(e){const{children:t,disableReactTree:n=!1,mouseEvent:c="onClick",onClickAway:u,touchEvent:d="onTouchEnd"}=e,h=r.useRef(!1),p=r.useRef(null),f=r.useRef(!1),g=r.useRef(!1);r.useEffect((()=>(setTimeout((()=>{f.current=!0}),0),()=>{f.current=!1})),[]);const m=(0,i.A)(t.ref,p),y=(0,o.A)((e=>{const t=g.current;g.current=!1;const r=(0,a.A)(p.current);if(!f.current||!p.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!r.documentElement.contains(e.target)||p.current.contains(e.target),i||!n&&t||u(e)})),v=e=>n=>{g.current=!0;const r=t.props[e];r&&r(n)},b={ref:m};return!1!==d&&(b[d]=v(d)),r.useEffect((()=>{if(!1!==d){const e=l(d),t=(0,a.A)(p.current),n=()=>{h.current=!0};return t.addEventListener(e,y),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,y),t.removeEventListener("touchmove",n)}}}),[y,d]),!1!==c&&(b[c]=v(c)),r.useEffect((()=>{if(!1!==c){const e=l(c),t=(0,a.A)(p.current);return t.addEventListener(e,y),()=>{t.removeEventListener(e,y)}}}),[y,c]),(0,s.jsx)(r.Fragment,{children:r.cloneElement(t,b)})}},23130:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});var r=n(51559),i=n(2665);function o(e,t,n){return void 0===e||(0,i.g)(e)?t:(0,r.A)({},t,{ownerState:(0,r.A)({},t.ownerState,n)})}},75188:(e,t,n)=>{"use strict";function r(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}n.d(t,{h:()=>r})},2665:(e,t,n)=>{"use strict";function r(e){return"string"==typeof e}n.d(t,{g:()=>r})},63261:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});var r=n(51559),i=n(87286),o=n(75188);function a(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function s(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:s,externalForwardedProps:l,className:c}=e;if(!t){const e=(0,i.A)(null==n?void 0:n.className,c,null==l?void 0:l.className,null==s?void 0:s.className),t=(0,r.A)({},null==n?void 0:n.style,null==l?void 0:l.style,null==s?void 0:s.style),o=(0,r.A)({},n,l,s);return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}const u=(0,o.h)((0,r.A)({},l,s)),d=a(s),h=a(l),p=t(u),f=(0,i.A)(null==p?void 0:p.className,null==n?void 0:n.className,c,null==l?void 0:l.className,null==s?void 0:s.className),g=(0,r.A)({},null==p?void 0:p.style,null==n?void 0:n.style,null==l?void 0:l.style,null==s?void 0:s.style),m=(0,r.A)({},p,n,h,d);return f.length>0&&(m.className=f),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:p.ref}}},66567:(e,t,n)=>{"use strict";function r(e,t,n){return"function"==typeof e?e(t,n):e}n.d(t,{Y:()=>r})},12277:(e,t,n)=>{"use strict";n.d(t,{Q:()=>u});var r=n(51559),i=n(73342),o=n(18029),a=n(23130),s=n(63261),l=n(66567);const c=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function u(e){var t;const{elementType:n,externalSlotProps:u,ownerState:d,skipResolvingSlotProps:h=!1}=e,p=(0,i.A)(e,c),f=h?{}:(0,l.Y)(u,d),{props:g,internalRef:m}=(0,s.p)((0,r.A)({},p,{externalSlotProps:f})),y=(0,o.A)(m,null==f?void 0:f.ref,null==(t=e.additionalProps)?void 0:t.ref);return(0,a.X)(n,(0,r.A)({},g,{ref:y}),d)}},16299:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward")},35103:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight")},26332:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel")},34790:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft")},1617:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight")},50110:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M5 13h14v-2H5zm-2 4h14v-2H3zM7 7v2h14V7z"}),"ClearAll")},98788:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},18904:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy")},87981:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 3h18v2H3zm0 16h18v2H3z"}),"DensityLarge")},33815:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 3h18v2H3zm0 16h18v2H3zm0-8h18v2H3z"}),"DensityMedium")},38537:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 2h18v2H3zm0 18h18v2H3zm0-6h18v2H3zm0-6h18v2H3z"}),"DensitySmall")},33330:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M20 9H4v2h16zM4 15h16v-2H4z"}),"DragHandle")},20317:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M8 8H6v7c0 1.1.9 2 2 2h9v-2H8z"},"0"),(0,o.jsx)("path",{d:"M20 3h-8c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 8h-8V7h8zM4 12H2v7c0 1.1.9 2 2 2h9v-2H4z"},"1")],"DynamicFeed")},44182:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit")},86663:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},91465:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61"}),"FilterAlt")},64712:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList")},81439:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M10.83 8H21V6H8.83zm5 5H18v-2h-4.17zM14 16.83V18h-4v-2h3.17l-3-3H6v-2h2.17l-3-3H3V6h.17L1.39 4.22 2.8 2.81l18.38 18.38-1.41 1.41z"}),"FilterListOff")},4113:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage")},43219:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen")},29667:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit")},28217:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M18 6.41 16.59 5 12 9.58 7.41 5 6 6.41l6 6z"},"0"),(0,o.jsx)("path",{d:"m18 13-1.41-1.41L12 16.17l-4.59-4.58L6 13l6 6z"},"1")],"KeyboardDoubleArrowDown")},11689:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage")},57897:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz")},50836:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert")},10575:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{fillRule:"evenodd",d:"M16 9V4h1c.55 0 1-.45 1-1s-.45-1-1-1H7c-.55 0-1 .45-1 1s.45 1 1 1h1v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1 1-1v-7H19v-2c-1.66 0-3-1.34-3-3"}),"PushPin")},88523:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"}),"RestartAlt")},59843:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save")},26638:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search")},14821:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3 6.08 3 3.28 5.64 3.03 9h2.02C5.3 6.75 7.18 5 9.5 5 11.99 5 14 7.01 14 9.5S11.99 14 9.5 14c-.17 0-.33-.03-.5-.05v2.02c.17.02.33.03.5.03 1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19z"},"0"),(0,o.jsx)("path",{d:"M6.47 10.82 4 13.29l-2.47-2.47-.71.71L3.29 14 .82 16.47l.71.71L4 14.71l2.47 2.47.71-.71L4.71 14l2.47-2.47z"},"1")],"SearchOff")},70422:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort")},65534:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"m18 12 4-4-4-4v3H3v2h15zM6 12l-4 4 4 4v-3h15v-2H6z"}),"SyncAlt")},98993:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn")},98073:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},78918:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack")},75311:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward")},13659:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward")},2890:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward")},60192:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},98533:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});n(30538);var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub")},15789:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M21 6.5c-1.66 0-3 1.34-3 3 0 .07 0 .14.01.21l-2.03.68c-.64-1.21-1.82-2.09-3.22-2.32V5.91C14.04 5.57 15 4.4 15 3c0-1.66-1.34-3-3-3S9 1.34 9 3c0 1.4.96 2.57 2.25 2.91v2.16c-1.4.23-2.58 1.11-3.22 2.32l-2.04-.68C6 9.64 6 9.57 6 9.5c0-1.66-1.34-3-3-3s-3 1.34-3 3 1.34 3 3 3c1.06 0 1.98-.55 2.52-1.37l2.03.68c-.2 1.29.17 2.66 1.09 3.69l-1.41 1.77C6.85 17.09 6.44 17 6 17c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3c0-.68-.22-1.3-.6-1.8l1.41-1.77c1.36.76 3.02.75 4.37 0l1.41 1.77c-.37.5-.59 1.12-.59 1.8 0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3c-.44 0-.85.09-1.23.26l-1.41-1.77c.93-1.04 1.29-2.4 1.09-3.69l2.03-.68c.53.82 1.46 1.37 2.52 1.37 1.66 0 3-1.34 3-3S22.66 6.5 21 6.5m-18 4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1M6 21c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m5-18c0-.55.45-1 1-1s1 .45 1 1-.45 1-1 1-1-.45-1-1m1 12c-1.38 0-2.5-1.12-2.5-2.5S10.62 10 12 10s2.5 1.12 2.5 2.5S13.38 15 12 15m6 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m3-8.5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1"}),"HubOutlined")},19512:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined")},15470:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27zm0-11.47L17.74 9 12 13.47 6.26 9z"}),"LayersOutlined")},96898:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"m20.5 3-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5M15 19l-6-2.11V5l6 2.11z"}),"Map")},25297:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M19.88 18.47c.44-.7.7-1.51.7-2.39 0-2.49-2.01-4.5-4.5-4.5s-4.5 2.01-4.5 4.5 2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21.58 23 23 21.58zm-3.8.11c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5m-.36-8.5c-.74.02-1.45.18-2.1.45l-.55-.83-3.8 6.18-3.01-3.52-3.63 5.81L1 17l5-8 3 3.5L13 6zm2.59.5c-.64-.28-1.33-.45-2.05-.49L21.38 2 23 3.18z"}),"QueryStats")},27927:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15M14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2"}),"QuestionMark")},94321:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage")},91693:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M19 7H9c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m0 2v2H9V9zm-6 6v-2h2v2zm2 2v2h-2v-2zm-4-2H9v-2h2zm6-2h2v2h-2zm-8 4h2v2H9zm8 2v-2h2v2zM6 17H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2v1h-2V5H5v10h1z"}),"TableView")},43957:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(90202)},66469:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(51559),i=n(73342),o=n(30538),a=n(87286),s=n(77753),l=n(22311),c=n(25779),u=n(38382),d=n(97282);const h=["className","component"];var p=n(58337),f=n(76014),g=n(38358);const m=(0,n(5007).A)("MuiBox",["root"]),y=(0,f.A)(),v=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:p="MuiBox-root",generateClassName:f}=e,g=(0,s.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.A);return o.forwardRef((function(e,o){const s=(0,u.A)(n),l=(0,c.A)(e),{className:m,component:y="div"}=l,v=(0,i.A)(l,h);return(0,d.jsx)(g,(0,r.A)({as:y,ref:o,className:(0,a.A)(m,f?f(p):p),theme:t&&s[t]||s},v))}))}({themeId:g.A,defaultTheme:y,defaultClassName:m.root,generateClassName:p.A.generate}),b=v},92004:(e,t,n)=>{"use strict";n.d(t,{A:()=>D});var r=n(51559),i=n(73342),o=n(30538),a=n(87286),s=n(32829),l=n(58990),c=n(87507),u=n(47258),d=n(36064),h=n(65741),p=n(37091),f=n(5345),g=n(8734),m=n(97282);const y=function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:l,in:c,onExited:u,timeout:d}=e,[h,p]=o.useState(!1),f=(0,a.A)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:l,height:l,top:-l/2+s,left:-l/2+i},y=(0,a.A)(n.child,h&&n.childLeaving,r&&n.childPulsate);return c||h||p(!0),o.useEffect((()=>{if(!c&&null!=u){const e=setTimeout(u,d);return()=>{clearTimeout(e)}}}),[u,c,d]),(0,m.jsx)("span",{className:f,style:g,children:(0,m.jsx)("span",{className:y})})};var v=n(5007);const b=(0,v.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),w=["center","classes","className"];let x,A,S,C,E=e=>e;const _=(0,f.i7)(x||(x=E`
0% {
transform: scale(0);
opacity: 0.1;
@@ -71,13 +71,13 @@
animation-iteration-count: infinite;
animation-delay: 200ms;
}
-`),b.rippleVisible,_,550,(({theme:e})=>e.transitions.easing.easeInOut),b.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),b.child,b.childLeaving,k,550,(({theme:e})=>e.transitions.easing.easeInOut),b.childPulsate,T,(({theme:e})=>e.transitions.easing.easeInOut)),I=o.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:l={},className:u}=n,d=(0,i.A)(n,x),[h,f]=o.useState([]),y=o.useRef(0),v=o.useRef(null);o.useEffect((()=>{v.current&&(v.current(),v.current=null)}),[h]);const w=o.useRef(!1),A=(0,g.A)(),S=o.useRef(null),C=o.useRef(null),E=o.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:o}=e;f((e=>[...e,(0,m.jsx)(P,{classes:{ripple:(0,a.A)(l.ripple,b.ripple),rippleVisible:(0,a.A)(l.rippleVisible,b.rippleVisible),ripplePulsate:(0,a.A)(l.ripplePulsate,b.ripplePulsate),child:(0,a.A)(l.child,b.child),childLeaving:(0,a.A)(l.childLeaving,b.childLeaving),childPulsate:(0,a.A)(l.childPulsate,b.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},y.current)])),y.current+=1,v.current=o}),[l]),_=o.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:r=!1,center:i=s||t.pulsate,fakeElement:o=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&w.current)return void(w.current=!1);"touchstart"===(null==e?void 0:e.type)&&(w.current=!0);const a=o?null:C.current,l=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===S.current&&(S.current=()=>{E({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})},A.start(80,(()=>{S.current&&(S.current(),S.current=null)}))):E({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[s,E,A]),k=o.useCallback((()=>{_({},{pulsate:!0})}),[_]),T=o.useCallback(((e,t)=>{if(A.clear(),"touchend"===(null==e?void 0:e.type)&&S.current)return S.current(),S.current=null,void A.start(0,(()=>{T(e,t)}));S.current=null,f((e=>e.length>0?e.slice(1):e)),v.current=t}),[A]);return o.useImperativeHandle(t,(()=>({pulsate:k,start:_,stop:T})),[k,_,T]),(0,m.jsx)(O,(0,r.A)({className:(0,a.A)(b.root,l.root,u),ref:C},d,{children:(0,m.jsx)(p.A,{component:null,exit:!0,children:h})}))}));var M=n(24115);function L(e){return(0,M.Ay)("MuiButtonBase",e)}const R=(0,v.A)("MuiButtonBase",["root","disabled","focusVisible"]),j=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],F=(0,l.Ay)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${R.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),D=o.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiButtonBase"}),{action:l,centerRipple:p=!1,children:f,className:g,component:y="button",disabled:v=!1,disableRipple:b=!1,disableTouchRipple:x=!1,focusRipple:w=!1,LinkComponent:A="a",onBlur:S,onClick:C,onContextMenu:E,onDragLeave:_,onFocus:k,onFocusVisible:T,onKeyDown:O,onKeyUp:P,onMouseDown:M,onMouseLeave:R,onMouseUp:D,onTouchEnd:N,onTouchMove:z,onTouchStart:V,tabIndex:B=0,TouchRippleProps:$,touchRippleRef:G,type:U}=n,W=(0,i.A)(n,j),q=o.useRef(null),H=o.useRef(null),Y=(0,u.A)(H,G),{isFocusVisibleRef:K,onFocus:X,onBlur:Z,ref:J}=(0,h.A)(),[Q,ee]=o.useState(!1);v&&Q&&ee(!1),o.useImperativeHandle(l,(()=>({focusVisible:()=>{ee(!0),q.current.focus()}})),[]);const[te,ne]=o.useState(!1);o.useEffect((()=>{ne(!0)}),[]);const re=te&&!b&&!v;function ie(e,t,n=x){return(0,d.A)((r=>{t&&t(r);return!n&&H.current&&H.current[e](r),!0}))}o.useEffect((()=>{Q&&w&&!b&&te&&H.current.pulsate()}),[b,w,Q,te]);const oe=ie("start",M),ae=ie("stop",E),se=ie("stop",_),le=ie("stop",D),ce=ie("stop",(e=>{Q&&e.preventDefault(),R&&R(e)})),ue=ie("start",V),de=ie("stop",N),he=ie("stop",z),pe=ie("stop",(e=>{Z(e),!1===K.current&&ee(!1),S&&S(e)}),!1),fe=(0,d.A)((e=>{q.current||(q.current=e.currentTarget),X(e),!0===K.current&&(ee(!0),T&&T(e)),k&&k(e)})),ge=()=>{const e=q.current;return y&&"button"!==y&&!("A"===e.tagName&&e.href)},me=o.useRef(!1),ye=(0,d.A)((e=>{w&&!me.current&&Q&&H.current&&" "===e.key&&(me.current=!0,H.current.stop(e,(()=>{H.current.start(e)}))),e.target===e.currentTarget&&ge()&&" "===e.key&&e.preventDefault(),O&&O(e),e.target===e.currentTarget&&ge()&&"Enter"===e.key&&!v&&(e.preventDefault(),C&&C(e))})),ve=(0,d.A)((e=>{w&&" "===e.key&&H.current&&Q&&!e.defaultPrevented&&(me.current=!1,H.current.stop(e,(()=>{H.current.pulsate(e)}))),P&&P(e),C&&e.target===e.currentTarget&&ge()&&" "===e.key&&!e.defaultPrevented&&C(e)}));let be=y;"button"===be&&(W.href||W.to)&&(be=A);const xe={};"button"===be?(xe.type=void 0===U?"button":U,xe.disabled=v):(W.href||W.to||(xe.role="button"),v&&(xe["aria-disabled"]=v));const we=(0,u.A)(t,J,q);const Ae=(0,r.A)({},n,{centerRipple:p,component:y,disabled:v,disableRipple:b,disableTouchRipple:x,focusRipple:w,tabIndex:B,focusVisible:Q}),Se=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,s.A)(o,L,i);return n&&r&&(a.root+=` ${r}`),a})(Ae);return(0,m.jsxs)(F,(0,r.A)({as:be,className:(0,a.A)(Se.root,g),ownerState:Ae,onBlur:pe,onClick:C,onContextMenu:ae,onFocus:fe,onKeyDown:ye,onKeyUp:ve,onMouseDown:oe,onMouseLeave:ce,onMouseUp:le,onDragLeave:se,onTouchEnd:de,onTouchMove:he,onTouchStart:ue,ref:we,tabIndex:v?-1:B,type:U},xe,W,{children:[f,re?(0,m.jsx)(I,(0,r.A)({ref:Y,center:p},$)):null]}))}))},75706:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(30538).createContext(void 0)},13298:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(30538).createContext({})},50926:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(7757),l=n(32829),c=n(59015),u=n(58990),d=n(49968),h=n(87507),p=n(92004),f=n(19508),g=n(5007),m=n(24115);function y(e){return(0,m.Ay)("MuiButton",e)}const v=(0,g.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var b=n(13298),x=n(75706),w=n(97282);const A=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],S=e=>(0,i.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),C=(0,u.Ay)(p.A,{shouldForwardProp:e=>(0,d.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,f.A)(n.color)}`],t[`size${(0,f.A)(n.size)}`],t[`${n.variant}Size${(0,f.A)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],a="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return(0,i.A)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":(0,i.A)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,c.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,c.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,c.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":(0,i.A)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${v.focusVisible}`]:(0,i.A)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${v.disabled}`]:(0,i.A)({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${(0,c.X4)(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${v.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${v.disabled}`]:{boxShadow:"none"}})),E=(0,u.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,f.A)(n.size)}`]]}})((({ownerState:e})=>(0,i.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},S(e)))),_=(0,u.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,f.A)(n.size)}`]]}})((({ownerState:e})=>(0,i.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},S(e)))),k=o.forwardRef((function(e,t){const n=o.useContext(b.A),c=o.useContext(x.A),u=(0,s.A)(n,e),d=(0,h.A)({props:u,name:"MuiButton"}),{children:p,color:g="primary",component:m="button",className:v,disabled:S=!1,disableElevation:k=!1,disableFocusRipple:T=!1,endIcon:O,focusVisibleClassName:P,fullWidth:I=!1,size:M="medium",startIcon:L,type:R,variant:j="text"}=d,F=(0,r.A)(d,A),D=(0,i.A)({},d,{color:g,component:m,disabled:S,disableElevation:k,disableFocusRipple:T,fullWidth:I,size:M,type:R,variant:j}),N=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:s}=e,c={root:["root",a,`${a}${(0,f.A)(t)}`,`size${(0,f.A)(o)}`,`${a}Size${(0,f.A)(o)}`,`color${(0,f.A)(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${(0,f.A)(o)}`],endIcon:["icon","endIcon",`iconSize${(0,f.A)(o)}`]},u=(0,l.A)(c,y,s);return(0,i.A)({},s,u)})(D),z=L&&(0,w.jsx)(E,{className:N.startIcon,ownerState:D,children:L}),V=O&&(0,w.jsx)(_,{className:N.endIcon,ownerState:D,children:O}),B=c||"";return(0,w.jsxs)(C,(0,i.A)({ownerState:D,className:(0,a.A)(n.className,N.root,v,B),component:m,disabled:S,focusRipple:!T,focusVisibleClassName:(0,a.A)(N.focusVisible,P),ref:t,type:R},F,{classes:N,children:[z,p,V]}))}))},83188:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(59015),c=n(65127),u=n(97282);const d=(0,c.A)((0,u.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");var h=n(47258),p=n(19508),f=n(92004),g=n(87507),m=n(58990),y=n(5007),v=n(24115);function b(e){return(0,v.Ay)("MuiChip",e)}const x=(0,y.A)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),w=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],A=(0,m.Ay)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=n;return[{[`& .${x.avatar}`]:t.avatar},{[`& .${x.avatar}`]:t[`avatar${(0,p.A)(s)}`]},{[`& .${x.avatar}`]:t[`avatarColor${(0,p.A)(r)}`]},{[`& .${x.icon}`]:t.icon},{[`& .${x.icon}`]:t[`icon${(0,p.A)(s)}`]},{[`& .${x.icon}`]:t[`iconColor${(0,p.A)(i)}`]},{[`& .${x.deleteIcon}`]:t.deleteIcon},{[`& .${x.deleteIcon}`]:t[`deleteIcon${(0,p.A)(s)}`]},{[`& .${x.deleteIcon}`]:t[`deleteIconColor${(0,p.A)(r)}`]},{[`& .${x.deleteIcon}`]:t[`deleteIcon${(0,p.A)(l)}Color${(0,p.A)(r)}`]},t.root,t[`size${(0,p.A)(s)}`],t[`color${(0,p.A)(r)}`],o&&t.clickable,o&&"default"!==r&&t[`clickableColor${(0,p.A)(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${(0,p.A)(r)}`],t[l],t[`${l}${(0,p.A)(r)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return(0,i.A)({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${x.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${x.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${x.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${x.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${x.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${x.icon}`]:(0,i.A)({marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&(0,i.A)({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},"default"!==t.color&&{color:"inherit"})),[`& .${x.deleteIcon}`]:(0,i.A)({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:(0,l.X4)(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,l.X4)(e.palette.text.primary,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:(0,l.X4)(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${x.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,l.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${x.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})}),(({theme:e,ownerState:t})=>(0,i.A)({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,l.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${x.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,l.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${x.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})),(({theme:e,ownerState:t})=>(0,i.A)({},"outlined"===t.variant&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${x.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${x.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${x.avatar}`]:{marginLeft:4},[`& .${x.avatarSmall}`]:{marginLeft:2},[`& .${x.icon}`]:{marginLeft:4},[`& .${x.iconSmall}`]:{marginLeft:2},[`& .${x.deleteIcon}`]:{marginRight:5},[`& .${x.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,l.X4)(e.palette[t.color].main,.7)}`,[`&.${x.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${x.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,l.X4)(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${x.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,l.X4)(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}}))),S=(0,m.Ay)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${(0,p.A)(r)}`]]}})((({ownerState:e})=>(0,i.A)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===e.variant&&{paddingLeft:11,paddingRight:11},"small"===e.size&&{paddingLeft:8,paddingRight:8},"small"===e.size&&"outlined"===e.variant&&{paddingLeft:7,paddingRight:7})));function C(e){return"Backspace"===e.key||"Delete"===e.key}const E=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiChip"}),{avatar:l,className:c,clickable:m,color:y="default",component:v,deleteIcon:x,disabled:E=!1,icon:_,label:k,onClick:T,onDelete:O,onKeyDown:P,onKeyUp:I,size:M="medium",variant:L="filled",tabIndex:R,skipFocusWhenDisabled:j=!1}=n,F=(0,r.A)(n,w),D=o.useRef(null),N=(0,h.A)(D,t),z=e=>{e.stopPropagation(),O&&O(e)},V=!(!1===m||!T)||m,B=V||O?f.A:v||"div",$=(0,i.A)({},n,{component:B,disabled:E,size:M,color:y,iconColor:o.isValidElement(_)&&_.props.color||y,onDelete:!!O,clickable:V,variant:L}),G=(e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:l,variant:c}=e,u={root:["root",c,n&&"disabled",`size${(0,p.A)(r)}`,`color${(0,p.A)(i)}`,l&&"clickable",l&&`clickableColor${(0,p.A)(i)}`,a&&"deletable",a&&`deletableColor${(0,p.A)(i)}`,`${c}${(0,p.A)(i)}`],label:["label",`label${(0,p.A)(r)}`],avatar:["avatar",`avatar${(0,p.A)(r)}`,`avatarColor${(0,p.A)(i)}`],icon:["icon",`icon${(0,p.A)(r)}`,`iconColor${(0,p.A)(o)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,p.A)(r)}`,`deleteIconColor${(0,p.A)(i)}`,`deleteIcon${(0,p.A)(c)}Color${(0,p.A)(i)}`]};return(0,s.A)(u,b,t)})($),U=B===f.A?(0,i.A)({component:v||"div",focusVisibleClassName:G.focusVisible},O&&{disableRipple:!0}):{};let W=null;O&&(W=x&&o.isValidElement(x)?o.cloneElement(x,{className:(0,a.A)(x.props.className,G.deleteIcon),onClick:z}):(0,u.jsx)(d,{className:(0,a.A)(G.deleteIcon),onClick:z}));let q=null;l&&o.isValidElement(l)&&(q=o.cloneElement(l,{className:(0,a.A)(G.avatar,l.props.className)}));let H=null;return _&&o.isValidElement(_)&&(H=o.cloneElement(_,{className:(0,a.A)(G.icon,_.props.className)})),(0,u.jsxs)(A,(0,i.A)({as:B,className:(0,a.A)(G.root,c),disabled:!(!V||!E)||void 0,onClick:T,onKeyDown:e=>{e.currentTarget===e.target&&C(e)&&e.preventDefault(),P&&P(e)},onKeyUp:e=>{e.currentTarget===e.target&&(O&&C(e)?O(e):"Escape"===e.key&&D.current&&D.current.blur()),I&&I(e)},ref:N,tabIndex:j&&E?-1:R,ownerState:$},U,F,{children:[q||H,(0,u.jsx)(S,{className:(0,a.A)(G.label),ownerState:$,children:k}),W]}))}))},49773:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(58990),c=n(87507),u=n(5007),d=n(24115);function h(e){return(0,d.Ay)("MuiDialogActions",e)}(0,u.A)("MuiDialogActions",["root","spacing"]);var p=n(97282);const f=["className","disableSpacing"],g=(0,l.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>(0,i.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}}))),m=o.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:l=!1}=n,u=(0,r.A)(n,f),d=(0,i.A)({},n,{disableSpacing:l}),m=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,s.A)(r,h,t)})(d);return(0,p.jsx)(g,(0,i.A)({className:(0,a.A)(m.root,o),ownerState:d,ref:t},u))}))},99311:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(58990),c=n(87507),u=n(5007),d=n(24115);function h(e){return(0,d.Ay)("MuiDialogContent",e)}(0,u.A)("MuiDialogContent",["root","dividers"]);var p=n(44713),f=n(97282);const g=["className","dividers"],m=(0,l.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>(0,i.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${p.A.root} + &`]:{paddingTop:0}}))),y=o.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiDialogContent"}),{className:o,dividers:l=!1}=n,u=(0,r.A)(n,g),d=(0,i.A)({},n,{dividers:l}),p=(e=>{const{classes:t,dividers:n}=e,r={root:["root",n&&"dividers"]};return(0,s.A)(r,h,t)})(d);return(0,f.jsx)(m,(0,i.A)({className:(0,a.A)(p.root,o),ownerState:d,ref:t},u))}))},44713:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,t:()=>o});var r=n(5007),i=n(24115);function o(e){return(0,i.Ay)("MuiDialogTitle",e)}const a=(0,r.A)("MuiDialogTitle",["root"])},53279:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(5391),c=n(19508),u=n(13027),d=n(68127),h=n(8088),p=n(87507),f=n(58990),g=n(11371),m=n(71352),y=n(94653),v=n(94145),b=n(97282);const x=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],w=(0,f.Ay)(y.A,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),A=(0,f.Ay)(u.A,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),S=(0,f.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${(0,c.A)(n.scroll)}`]]}})((({ownerState:e})=>(0,i.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),C=(0,f.Ay)(h.A,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${(0,c.A)(n.scroll)}`],t[`paperWidth${(0,c.A)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>(0,i.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${g.A.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${g.A.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${g.A.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}))),E=o.forwardRef((function(e,t){const n=(0,p.A)({props:e,name:"MuiDialog"}),u=(0,v.A)(),f={enter:u.transitions.duration.enteringScreen,exit:u.transitions.duration.leavingScreen},{"aria-describedby":y,"aria-labelledby":E,BackdropComponent:_,BackdropProps:k,children:T,className:O,disableEscapeKeyDown:P=!1,fullScreen:I=!1,fullWidth:M=!1,maxWidth:L="sm",onBackdropClick:R,onClick:j,onClose:F,open:D,PaperComponent:N=h.A,PaperProps:z={},scroll:V="paper",TransitionComponent:B=d.A,transitionDuration:$=f,TransitionProps:G}=n,U=(0,r.A)(n,x),W=(0,i.A)({},n,{disableEscapeKeyDown:P,fullScreen:I,fullWidth:M,maxWidth:L,scroll:V}),q=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${(0,c.A)(n)}`],paper:["paper",`paperScroll${(0,c.A)(n)}`,`paperWidth${(0,c.A)(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return(0,s.A)(a,g.f,t)})(W),H=o.useRef(),Y=(0,l.A)(E),K=o.useMemo((()=>({titleId:Y})),[Y]);return(0,b.jsx)(A,(0,i.A)({className:(0,a.A)(q.root,O),closeAfterTransition:!0,components:{Backdrop:w},componentsProps:{backdrop:(0,i.A)({transitionDuration:$,as:_},k)},disableEscapeKeyDown:P,onClose:F,open:D,ref:t,onClick:e=>{j&&j(e),H.current&&(H.current=null,R&&R(e),F&&F(e,"backdropClick"))},ownerState:W},U,{children:(0,b.jsx)(B,(0,i.A)({appear:!0,in:D,timeout:$,role:"presentation"},G,{children:(0,b.jsx)(S,{className:(0,a.A)(q.container),onMouseDown:e=>{H.current=e.target===e.currentTarget},ownerState:W,children:(0,b.jsx)(C,(0,i.A)({as:N,elevation:24,role:"dialog","aria-describedby":y,"aria-labelledby":Y},z,{className:(0,a.A)(q.paper,z.className),ownerState:W,children:(0,b.jsx)(m.A.Provider,{value:K,children:T})}))})}))}))}))},71352:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(30538).createContext({})},11371:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,f:()=>o});var r=n(5007),i=n(24115);function o(e){return(0,i.Ay)("MuiDialog",e)}const a=(0,r.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"])},66865:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(59015),c=n(58990),u=n(87507),d=n(99425),h=n(97282);const p=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],f=(0,c.Ay)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,i.A)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,l.X4)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>(0,i.A)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>(0,i.A)({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>(0,i.A)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>(0,i.A)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),g=(0,c.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,i.A)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),m=o.forwardRef((function(e,t){const n=(0,u.A)({props:e,name:"MuiDivider"}),{absolute:o=!1,children:l,className:c,component:m=(l?"div":"hr"),flexItem:y=!1,light:v=!1,orientation:b="horizontal",role:x=("hr"!==m?"separator":void 0),textAlign:w="center",variant:A="fullWidth"}=n,S=(0,r.A)(n,p),C=(0,i.A)({},n,{absolute:o,component:m,flexItem:y,light:v,orientation:b,role:x,textAlign:w,variant:A}),E=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:l,variant:c}=e,u={root:["root",t&&"absolute",c,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,s.A)(u,d.K,r)})(C);return(0,h.jsx)(f,(0,i.A)({as:m,className:(0,a.A)(E.root,c),role:x,ref:t,ownerState:C},S,{children:l?(0,h.jsx)(g,{className:E.wrapper,ownerState:C,children:l}):null}))}));m.muiSkipListHighlight=!0;const y=m},99425:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,K:()=>o});var r=n(5007),i=n(24115);function o(e){return(0,i.Ay)("MuiDivider",e)}const a=(0,r.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"])},68127:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(51559),i=n(73342),o=n(30538),a=n(89272),s=n(94145),l=n(97880),c=n(47258),u=n(97282);const d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],h={entering:{opacity:1},entered:{opacity:1}},p=o.forwardRef((function(e,t){const n=(0,s.A)(),p={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:f,appear:g=!0,children:m,easing:y,in:v,onEnter:b,onEntered:x,onEntering:w,onExit:A,onExited:S,onExiting:C,style:E,timeout:_=p,TransitionComponent:k=a.Ay}=e,T=(0,i.A)(e,d),O=o.useRef(null),P=(0,c.A)(O,m.ref,t),I=e=>t=>{if(e){const n=O.current;void 0===t?e(n):e(n,t)}},M=I(w),L=I(((e,t)=>{(0,l.q)(e);const r=(0,l.c)({style:E,timeout:_,easing:y},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),b&&b(e,t)})),R=I(x),j=I(C),F=I((e=>{const t=(0,l.c)({style:E,timeout:_,easing:y},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),A&&A(e)})),D=I(S);return(0,u.jsx)(k,(0,r.A)({appear:g,in:v,nodeRef:O,onEnter:L,onEntered:R,onEntering:M,onExit:F,onExited:D,onExiting:j,addEndListener:e=>{f&&f(O.current,e)},timeout:_},T,{children:(e,t)=>o.cloneElement(m,(0,r.A)({style:(0,r.A)({opacity:0,visibility:"exited"!==e||v?void 0:"hidden"},h[e],E,m.props.style),ref:P},t))}))}))},81933:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(73342),i=n(51559),o=n(30538),a=n(43271),s=n(32829),l=n(28566),c=n(58990),u=n(49968),d=n(87507),h=n(70501),p=n(97282);const f=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],g=(0,c.Ay)(l.Sh,{shouldForwardProp:e=>(0,u.A)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...(0,l.WC)(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,i.A)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${h.A.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${h.A.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${h.A.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${h.A.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${h.A.disabled}, .${h.A.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${h.A.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,i.A)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),m=(0,c.Ay)(l.f3,{name:"MuiFilledInput",slot:"Input",overridesResolver:l.Oj})((({theme:e,ownerState:t})=>(0,i.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),y=o.forwardRef((function(e,t){var n,o,c,u;const y=(0,d.A)({props:e,name:"MuiFilledInput"}),{components:v={},componentsProps:b,fullWidth:x=!1,inputComponent:w="input",multiline:A=!1,slotProps:S,slots:C={},type:E="text"}=y,_=(0,r.A)(y,f),k=(0,i.A)({},y,{fullWidth:x,inputComponent:w,multiline:A,type:E}),T=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,s.A)(r,h.N,t);return(0,i.A)({},t,o)})(y),O={root:{ownerState:k},input:{ownerState:k}},P=(null!=S?S:b)?(0,a.A)(O,null!=S?S:b):O,I=null!=(n=null!=(o=C.root)?o:v.Root)?n:g,M=null!=(c=null!=(u=C.input)?u:v.Input)?c:m;return(0,p.jsx)(l.Ay,(0,i.A)({slots:{root:I,input:M},componentsProps:P,fullWidth:x,inputComponent:w,multiline:A,ref:t,type:E},_,{classes:T}))}));y.muiName="Input";const v=y},70501:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,N:()=>s});var r=n(51559),i=n(5007),o=n(24115),a=n(8253);function s(e){return(0,o.Ay)("MuiFilledInput",e)}const l=(0,r.A)({},a.A,(0,i.A)("MuiFilledInput",["root","underline","input"]))},90645:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(87507),c=n(58990),u=n(29421),d=n(19508),h=n(75361),p=n(2994),f=n(5007),g=n(24115);function m(e){return(0,g.Ay)("MuiFormControl",e)}(0,f.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var y=n(97282);const v=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],b=(0,c.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,i.A)({},t.root,t[`margin${(0,d.A)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,i.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),x=o.forwardRef((function(e,t){const n=(0,l.A)({props:e,name:"MuiFormControl"}),{children:c,className:f,color:g="primary",component:x="div",disabled:w=!1,error:A=!1,focused:S,fullWidth:C=!1,hiddenLabel:E=!1,margin:_="none",required:k=!1,size:T="medium",variant:O="outlined"}=n,P=(0,r.A)(n,v),I=(0,i.A)({},n,{color:g,component:x,disabled:w,error:A,fullWidth:C,hiddenLabel:E,margin:_,required:k,size:T,variant:O}),M=(e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root","none"!==n&&`margin${(0,d.A)(n)}`,r&&"fullWidth"]};return(0,s.A)(i,m,t)})(I),[L,R]=o.useState((()=>{let e=!1;return c&&o.Children.forEach(c,(t=>{if(!(0,h.A)(t,["Input","Select"]))return;const n=(0,h.A)(t,["Select"])?t.props.input:t;n&&(0,u.gr)(n.props)&&(e=!0)})),e})),[j,F]=o.useState((()=>{let e=!1;return c&&o.Children.forEach(c,(t=>{(0,h.A)(t,["Input","Select"])&&((0,u.lq)(t.props,!0)||(0,u.lq)(t.props.inputProps,!0))&&(e=!0)})),e})),[D,N]=o.useState(!1);w&&D&&N(!1);const z=void 0===S||w?D:S;let V;const B=o.useMemo((()=>({adornedStart:L,setAdornedStart:R,color:g,disabled:w,error:A,filled:j,focused:z,fullWidth:C,hiddenLabel:E,size:T,onBlur:()=>{N(!1)},onEmpty:()=>{F(!1)},onFilled:()=>{F(!0)},onFocus:()=>{N(!0)},registerEffect:V,required:k,variant:O})),[L,g,w,A,j,z,C,E,V,k,T,O]);return(0,y.jsx)(p.A.Provider,{value:B,children:(0,y.jsx)(b,(0,i.A)({as:x,ownerState:I,className:(0,a.A)(M.root,f),ref:t},P,{children:c}))})}))},2994:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(30538).createContext(void 0)},73336:(e,t,n)=>{"use strict";function r({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}n.d(t,{A:()=>r})},39230:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(30538),i=n(2994);function o(){return r.useContext(i.A)}},45769:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(73336),c=n(39230),u=n(58990),d=n(19508),h=n(5007),p=n(24115);function f(e){return(0,p.Ay)("MuiFormHelperText",e)}const g=(0,h.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var m,y=n(87507),v=n(97282);const b=["children","className","component","disabled","error","filled","focused","margin","required","variant"],x=(0,u.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,d.A)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,i.A)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${g.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${g.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),w=o.forwardRef((function(e,t){const n=(0,y.A)({props:e,name:"MuiFormHelperText"}),{children:o,className:u,component:h="p"}=n,p=(0,r.A)(n,b),g=(0,c.A)(),w=(0,l.A)({props:n,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),A=(0,i.A)({},n,{component:h,contained:"filled"===w.variant||"outlined"===w.variant,variant:w.variant,size:w.size,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required}),S=(e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:l,required:c}=e,u={root:["root",i&&"disabled",o&&"error",r&&`size${(0,d.A)(r)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return(0,s.A)(u,f,t)})(A);return(0,v.jsx)(x,(0,i.A)({as:h,ownerState:A,className:(0,a.A)(S.root,u),ref:t},p,{children:" "===o?m||(m=(0,v.jsx)("span",{className:"notranslate",children:""})):o}))}))},36797:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(51559),i=n(73342),o=n(30538),a=n(8734),s=n(89272),l=n(94145),c=n(97880),u=n(47258),d=n(97282);const h=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function p(e){return`scale(${e}, ${e**2})`}const f={entering:{opacity:1,transform:p(1)},entered:{opacity:1,transform:"none"}},g="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),m=o.forwardRef((function(e,t){const{addEndListener:n,appear:m=!0,children:y,easing:v,in:b,onEnter:x,onEntered:w,onEntering:A,onExit:S,onExited:C,onExiting:E,style:_,timeout:k="auto",TransitionComponent:T=s.Ay}=e,O=(0,i.A)(e,h),P=(0,a.A)(),I=o.useRef(),M=(0,l.A)(),L=o.useRef(null),R=(0,u.A)(L,y.ref,t),j=e=>t=>{if(e){const n=L.current;void 0===t?e(n):e(n,t)}},F=j(A),D=j(((e,t)=>{(0,c.q)(e);const{duration:n,delay:r,easing:i}=(0,c.c)({style:_,timeout:k,easing:v},{mode:"enter"});let o;"auto"===k?(o=M.transitions.getAutoHeightDuration(e.clientHeight),I.current=o):o=n,e.style.transition=[M.transitions.create("opacity",{duration:o,delay:r}),M.transitions.create("transform",{duration:g?o:.666*o,delay:r,easing:i})].join(","),x&&x(e,t)})),N=j(w),z=j(E),V=j((e=>{const{duration:t,delay:n,easing:r}=(0,c.c)({style:_,timeout:k,easing:v},{mode:"exit"});let i;"auto"===k?(i=M.transitions.getAutoHeightDuration(e.clientHeight),I.current=i):i=t,e.style.transition=[M.transitions.create("opacity",{duration:i,delay:n}),M.transitions.create("transform",{duration:g?i:.666*i,delay:g?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=p(.75),S&&S(e)})),B=j(C);return(0,d.jsx)(T,(0,r.A)({appear:m,in:b,nodeRef:L,onEnter:D,onEntered:N,onEntering:F,onExit:V,onExited:B,onExiting:z,addEndListener:e=>{"auto"===k&&P.start(I.current||0,e),n&&n(L.current,e)},timeout:"auto"===k?null:k},O,{children:(e,t)=>o.cloneElement(y,(0,r.A)({style:(0,r.A)({opacity:0,transform:p(.75),visibility:"exited"!==e||b?void 0:"hidden"},f[e],_,y.props.style),ref:R},t))}))}));m.muiSupportAuto=!0;const y=m},90703:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(59015),c=n(58990),u=n(87507),d=n(92004),h=n(19508),p=n(5007),f=n(24115);function g(e){return(0,f.Ay)("MuiIconButton",e)}const m=(0,p.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);var y=n(97282);const v=["edge","children","className","color","disabled","disableFocusRipple","size"],b=(0,c.Ay)(d.A,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,h.A)(n.color)}`],n.edge&&t[`edge${(0,h.A)(n.edge)}`],t[`size${(0,h.A)(n.size)}`]]}})((({theme:e,ownerState:t})=>(0,i.A)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return(0,i.A)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,i.A)({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":(0,i.A)({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.X4)(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${m.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),x=o.forwardRef((function(e,t){const n=(0,u.A)({props:e,name:"MuiIconButton"}),{edge:o=!1,children:l,className:c,color:d="default",disabled:p=!1,disableFocusRipple:f=!1,size:m="medium"}=n,x=(0,r.A)(n,v),w=(0,i.A)({},n,{edge:o,color:d,disabled:p,disableFocusRipple:f,size:m}),A=(e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled","default"!==r&&`color${(0,h.A)(r)}`,i&&`edge${(0,h.A)(i)}`,`size${(0,h.A)(o)}`]};return(0,s.A)(a,g,t)})(w);return(0,y.jsx)(b,(0,i.A)({className:(0,a.A)(A.root,c),centerRipple:!0,focusRipple:!f,disabled:p,ref:t},x,{ownerState:w,children:l}))}))},99893:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(19508),c=n(91031),u=n(2994),d=n(39230),h=n(58990),p=n(5007),f=n(24115);function g(e){return(0,f.Ay)("MuiInputAdornment",e)}const m=(0,p.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var y,v=n(87507),b=n(97282);const x=["children","className","component","disablePointerEvents","disableTypography","position","variant"],w=(0,h.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,l.A)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,i.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${m.positionStart}&:not(.${m.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),A=o.forwardRef((function(e,t){const n=(0,v.A)({props:e,name:"MuiInputAdornment"}),{children:h,className:p,component:f="div",disablePointerEvents:m=!1,disableTypography:A=!1,position:S,variant:C}=n,E=(0,r.A)(n,x),_=(0,d.A)()||{};let k=C;C&&_.variant,_&&!k&&(k=_.variant);const T=(0,i.A)({},n,{hiddenLabel:_.hiddenLabel,size:_.size,disablePointerEvents:m,position:S,variant:k}),O=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e,c={root:["root",n&&"disablePointerEvents",i&&`position${(0,l.A)(i)}`,a,r&&"hiddenLabel",o&&`size${(0,l.A)(o)}`]};return(0,s.A)(c,g,t)})(T);return(0,b.jsx)(u.A.Provider,{value:null,children:(0,b.jsx)(w,(0,i.A)({as:f,ownerState:T,className:(0,a.A)(O.root,p),ref:t},E,{children:"string"!=typeof h||A?(0,b.jsxs)(o.Fragment,{children:["start"===S?y||(y=(0,b.jsx)("span",{className:"notranslate",children:""})):null,h]}):(0,b.jsx)(c.A,{color:"text.secondary",children:h})}))})}))},28566:(e,t,n)=>{"use strict";n.d(t,{f3:()=>z,Sh:()=>N,Ay:()=>B,Oj:()=>D,WC:()=>F});var r=n(73342),i=n(51559),o=n(88207),a=n(30538),s=n(87286),l=n(18029),c=n(56023),u=n(43107),d=n(6995),h=n(97282);const p=["onChange","maxRows","minRows","style","value"];function f(e){return parseInt(e,10)||0}const g={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const m=a.forwardRef((function(e,t){const{onChange:n,maxRows:o,minRows:s=1,style:m,value:y}=e,v=(0,r.A)(e,p),{current:b}=a.useRef(null!=y),x=a.useRef(null),w=(0,l.A)(t,x),A=a.useRef(null),S=a.useCallback((()=>{const t=x.current,n=(0,c.A)(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const r=A.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const i=n.boxSizing,a=f(n.paddingBottom)+f(n.paddingTop),l=f(n.borderBottomWidth)+f(n.borderTopWidth),u=r.scrollHeight;r.value="x";const d=r.scrollHeight;let h=u;s&&(h=Math.max(Number(s)*d,h)),o&&(h=Math.min(Number(o)*d,h)),h=Math.max(h,d);return{outerHeightStyle:h+("border-box"===i?a+l:0),overflowing:Math.abs(h-u)<=1}}),[o,s,e.placeholder]),C=a.useCallback((()=>{const e=S();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=x.current;n.style.height=`${e.outerHeightStyle}px`,n.style.overflow=e.overflowing?"hidden":""}),[S]);(0,u.A)((()=>{const e=()=>{C()};let t;const n=(0,d.A)(e),r=x.current,i=(0,c.A)(r);let o;return i.addEventListener("resize",n),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{n.clear(),cancelAnimationFrame(t),i.removeEventListener("resize",n),o&&o.disconnect()}}),[S,C]),(0,u.A)((()=>{C()}));return(0,h.jsxs)(a.Fragment,{children:[(0,h.jsx)("textarea",(0,i.A)({value:y,onChange:e=>{b||C(),n&&n(e)},ref:w,rows:s,style:m},v)),(0,h.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:A,tabIndex:-1,style:(0,i.A)({},g,m,{paddingTop:0,paddingBottom:0})})]})}));var y=n(2665),v=n(32829),b=n(73336),x=n(2994),w=n(39230),A=n(58990),S=n(87507),C=n(19508),E=n(47258),_=n(65420),k=n(78790),T=n(38382);const O=function({styles:e,themeId:t,defaultTheme:n={}}){const r=(0,T.A)(n),i="function"==typeof e?e(t&&r[t]||r):e;return(0,h.jsx)(k.A,{styles:i})};var P=n(75947),I=n(38358);const M=function(e){return(0,h.jsx)(O,(0,i.A)({},e,{defaultTheme:P.A,themeId:I.A}))};var L=n(29421),R=n(8253);const j=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],F=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${(0,C.A)(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},D=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},N=(0,A.Ay)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:F})((({theme:e,ownerState:t})=>(0,i.A)({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${R.A.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&(0,i.A)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),z=(0,A.Ay)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:D})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=(0,i.A)({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return(0,i.A)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${R.A.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${R.A.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),V=(0,h.jsx)(M,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),B=a.forwardRef((function(e,t){var n;const l=(0,S.A)({props:e,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:u,autoFocus:d,className:p,components:f={},componentsProps:g={},defaultValue:A,disabled:k,disableInjectingGlobalStyles:T,endAdornment:O,fullWidth:P=!1,id:I,inputComponent:M="input",inputProps:F={},inputRef:D,maxRows:B,minRows:$,multiline:G=!1,name:U,onBlur:W,onChange:q,onClick:H,onFocus:Y,onKeyDown:K,onKeyUp:X,placeholder:Z,readOnly:J,renderSuffix:Q,rows:ee,slotProps:te={},slots:ne={},startAdornment:re,type:ie="text",value:oe}=l,ae=(0,r.A)(l,j),se=null!=F.value?F.value:oe,{current:le}=a.useRef(null!=se),ce=a.useRef(),ue=a.useCallback((e=>{0}),[]),de=(0,E.A)(ce,D,F.ref,ue),[he,pe]=a.useState(!1),fe=(0,w.A)();const ge=(0,b.A)({props:l,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ge.focused=fe?fe.focused:he,a.useEffect((()=>{!fe&&k&&he&&(pe(!1),W&&W())}),[fe,k,he,W]);const me=fe&&fe.onFilled,ye=fe&&fe.onEmpty,ve=a.useCallback((e=>{(0,L.lq)(e)?me&&me():ye&&ye()}),[me,ye]);(0,_.A)((()=>{le&&ve({value:se})}),[se,ve,le]);a.useEffect((()=>{ve(ce.current)}),[]);let be=M,xe=F;G&&"input"===be&&(xe=ee?(0,i.A)({type:void 0,minRows:ee,maxRows:ee},xe):(0,i.A)({type:void 0,maxRows:B,minRows:$},xe),be=m);a.useEffect((()=>{fe&&fe.setAdornedStart(Boolean(re))}),[fe,re]);const we=(0,i.A)({},l,{color:ge.color||"primary",disabled:ge.disabled,endAdornment:O,error:ge.error,focused:ge.focused,formControl:fe,fullWidth:P,hiddenLabel:ge.hiddenLabel,multiline:G,size:ge.size,startAdornment:re,type:ie}),Ae=(e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:h,startAdornment:p,type:f}=e,g={root:["root",`color${(0,C.A)(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",h&&"medium"!==h&&`size${(0,C.A)(h)}`,u&&"multiline",p&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",u&&"inputMultiline","small"===h&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return(0,v.A)(g,R.g,t)})(we),Se=ne.root||f.Root||N,Ce=te.root||g.root||{},Ee=ne.input||f.Input||z;return xe=(0,i.A)({},xe,null!=(n=te.input)?n:g.input),(0,h.jsxs)(a.Fragment,{children:[!T&&V,(0,h.jsxs)(Se,(0,i.A)({},Ce,!(0,y.g)(Se)&&{ownerState:(0,i.A)({},we,Ce.ownerState)},{ref:t,onClick:e=>{ce.current&&e.currentTarget===e.target&&ce.current.focus(),H&&H(e)}},ae,{className:(0,s.A)(Ae.root,Ce.className,p,J&&"MuiInputBase-readOnly"),children:[re,(0,h.jsx)(x.A.Provider,{value:null,children:(0,h.jsx)(Ee,(0,i.A)({ownerState:we,"aria-invalid":ge.error,"aria-describedby":c,autoComplete:u,autoFocus:d,defaultValue:A,disabled:ge.disabled,id:I,onAnimationStart:e=>{ve("mui-auto-fill-cancel"===e.animationName?ce.current:{value:"x"})},name:U,placeholder:Z,readOnly:J,required:ge.required,rows:ee,value:se,onKeyDown:K,onKeyUp:X,type:ie},xe,!(0,y.g)(Ee)&&{as:be,ownerState:(0,i.A)({},we,xe.ownerState)},{ref:de,className:(0,s.A)(Ae.input,xe.className,J&&"MuiInputBase-readOnly"),onBlur:e=>{W&&W(e),F.onBlur&&F.onBlur(e),fe&&fe.onBlur?fe.onBlur(e):pe(!1)},onChange:(e,...t)=>{if(!le){const t=e.target||ce.current;if(null==t)throw new Error((0,o.A)(1));ve({value:t.value})}F.onChange&&F.onChange(e,...t),q&&q(e,...t)},onFocus:e=>{ge.disabled?e.stopPropagation():(Y&&Y(e),F.onFocus&&F.onFocus(e),fe&&fe.onFocus?fe.onFocus(e):pe(!0))}}))}),O,Q?Q((0,i.A)({},ge,{startAdornment:re})):null]}))]})}))},8253:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,g:()=>o});var r=n(5007),i=n(24115);function o(e){return(0,i.Ay)("MuiInputBase",e)}const a=(0,r.A)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"])},29421:(e,t,n)=>{"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function i(e,t=!1){return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function o(e){return e.startAdornment}n.d(t,{gr:()=>o,lq:()=>i})},5323:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(73342),i=n(51559),o=n(30538),a=n(32829),s=n(87286),l=n(73336),c=n(39230),u=n(19508),d=n(87507),h=n(58990),p=n(5007),f=n(24115);function g(e){return(0,f.Ay)("MuiFormLabel",e)}const m=(0,p.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);var y=n(97282);const v=["children","className","color","component","disabled","error","filled","focused","required"],b=(0,h.Ay)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,i.A)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,i.A)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${m.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${m.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${m.error}`]:{color:(e.vars||e).palette.error.main}}))),x=(0,h.Ay)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${m.error}`]:{color:(e.vars||e).palette.error.main}}))),w=o.forwardRef((function(e,t){const n=(0,d.A)({props:e,name:"MuiFormLabel"}),{children:o,className:h,component:p="label"}=n,f=(0,r.A)(n,v),m=(0,c.A)(),w=(0,l.A)({props:n,muiFormControl:m,states:["color","required","focused","disabled","error","filled"]}),A=(0,i.A)({},n,{color:w.color||"primary",component:p,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required}),S=(e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:s,required:l}=e,c={root:["root",`color${(0,u.A)(n)}`,i&&"disabled",o&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",o&&"error"]};return(0,a.A)(c,g,t)})(A);return(0,y.jsxs)(b,(0,i.A)({as:p,ownerState:A,className:(0,s.A)(S.root,h),ref:t},f,{children:[o,w.required&&(0,y.jsxs)(x,{ownerState:A,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}))}));var A=n(49968);function S(e){return(0,f.Ay)("MuiInputLabel",e)}(0,p.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const C=["disableAnimation","margin","shrink","variant","className"],E=(0,h.Ay)(w,{shouldForwardProp:e=>(0,A.A)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${m.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,i.A)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,i.A)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,i.A)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,i.A)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),_=o.forwardRef((function(e,t){const n=(0,d.A)({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,shrink:h,className:p}=n,f=(0,r.A)(n,C),g=(0,c.A)();let m=h;void 0===m&&g&&(m=g.filled||g.focused||g.adornedStart);const v=(0,l.A)({props:n,muiFormControl:g,states:["size","variant","required","focused"]}),b=(0,i.A)({},n,{disableAnimation:o,formControl:g,shrink:m,size:v.size,variant:v.variant,required:v.required,focused:v.focused}),x=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:l,required:c}=e,d={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&"normal"!==r&&`size${(0,u.A)(r)}`,l],asterisk:[c&&"asterisk"]},h=(0,a.A)(d,S,t);return(0,i.A)({},t,h)})(b);return(0,y.jsx)(E,(0,i.A)({"data-shrink":m,ownerState:b,ref:t,className:(0,s.A)(x.root,p)},f,{classes:x}))}))},20553:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(73342),i=n(51559),o=n(30538),a=n(32829),s=n(43271),l=n(28566),c=n(58990),u=n(49968),d=n(87507),h=n(52441),p=n(97282);const f=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],g=(0,c.Ay)(l.Sh,{shouldForwardProp:e=>(0,u.A)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...(0,l.WC)(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,i.A)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${h.A.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${h.A.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${h.A.disabled}, .${h.A.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${h.A.disabled}:before`]:{borderBottomStyle:"dotted"}})})),m=(0,c.Ay)(l.f3,{name:"MuiInput",slot:"Input",overridesResolver:l.Oj})({}),y=o.forwardRef((function(e,t){var n,o,c,u;const y=(0,d.A)({props:e,name:"MuiInput"}),{disableUnderline:v,components:b={},componentsProps:x,fullWidth:w=!1,inputComponent:A="input",multiline:S=!1,slotProps:C,slots:E={},type:_="text"}=y,k=(0,r.A)(y,f),T=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,a.A)(r,h.B,t);return(0,i.A)({},t,o)})(y),O={root:{ownerState:{disableUnderline:v}}},P=(null!=C?C:x)?(0,s.A)(null!=C?C:x,O):O,I=null!=(n=null!=(o=E.root)?o:b.Root)?n:g,M=null!=(c=null!=(u=E.input)?u:b.Input)?c:m;return(0,p.jsx)(l.Ay,(0,i.A)({slots:{root:I,input:M},slotProps:P,fullWidth:w,inputComponent:A,multiline:S,ref:t,type:_},k,{classes:T}))}));y.muiName="Input";const v=y},52441:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,B:()=>s});var r=n(51559),i=n(5007),o=n(24115),a=n(8253);function s(e){return(0,o.Ay)("MuiInput",e)}const l=(0,r.A)({},a.A,(0,i.A)("MuiInput",["root","underline","input"]))},64987:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(19508),c=n(58990),u=n(87507),d=n(65741),h=n(47258),p=n(91031),f=n(5007),g=n(24115);function m(e){return(0,g.Ay)("MuiLink",e)}const y=(0,f.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var v=n(44197),b=n(59015);const x={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},w=({theme:e,ownerState:t})=>{const n=(e=>x[e]||e)(t.color),r=(0,v.Yn)(e,`palette.${n}`,!1)||t.color,i=(0,v.Yn)(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:(0,b.X4)(r,.4)};var A=n(97282);const S=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],C=(0,c.Ay)(p.A,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${(0,l.A)(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>(0,i.A)({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&(0,i.A)({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:w({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${y.focusVisible}`]:{outline:"auto"}}))),E=o.forwardRef((function(e,t){const n=(0,u.A)({props:e,name:"MuiLink"}),{className:c,color:p="primary",component:f="a",onBlur:g,onFocus:y,TypographyClasses:v,underline:b="always",variant:w="inherit",sx:E}=n,_=(0,r.A)(n,S),{isFocusVisibleRef:k,onBlur:T,onFocus:O,ref:P}=(0,d.A)(),[I,M]=o.useState(!1),L=(0,h.A)(t,P),R=(0,i.A)({},n,{color:p,component:f,focusVisible:I,underline:b,variant:w}),j=(e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${(0,l.A)(i)}`,"button"===n&&"button",r&&"focusVisible"]};return(0,s.A)(o,m,t)})(R);return(0,A.jsx)(C,(0,i.A)({color:p,className:(0,a.A)(j.root,c),classes:v,component:f,onBlur:e=>{T(e),!1===k.current&&M(!1),g&&g(e)},onFocus:e=>{O(e),!0===k.current&&M(!0),y&&y(e)},ref:L,ownerState:R,variant:w,sx:[...Object.keys(x).includes(p)?[]:[{color:p}],...Array.isArray(E)?E:[E]]},_))}))},15517:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,Y:()=>o});var r=n(5007),i=n(24115);function o(e){return(0,i.Ay)("MuiListItemButton",e)}const a=(0,r.A)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"])},15444:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>M});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(2665),l=n(32829),c=n(59015),u=n(58990),d=n(87507),h=n(92004),p=n(75361),f=n(65420),g=n(47258),m=n(21268),y=n(5007),v=n(24115);function b(e){return(0,v.Ay)("MuiListItem",e)}const x=(0,y.A)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var w=n(15517);function A(e){return(0,v.Ay)("MuiListItemSecondaryAction",e)}(0,y.A)("MuiListItemSecondaryAction",["root","disableGutters"]);var S=n(97282);const C=["className"],E=(0,u.Ay)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>(0,i.A)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),_=o.forwardRef((function(e,t){const n=(0,d.A)({props:e,name:"MuiListItemSecondaryAction"}),{className:s}=n,c=(0,r.A)(n,C),u=o.useContext(m.A),h=(0,i.A)({},n,{disableGutters:u.disableGutters}),p=(e=>{const{disableGutters:t,classes:n}=e,r={root:["root",t&&"disableGutters"]};return(0,l.A)(r,A,n)})(h);return(0,S.jsx)(E,(0,i.A)({className:(0,a.A)(p.root,s),ownerState:h,ref:t},c))}));_.muiName="ListItemSecondaryAction";const k=_,T=["className"],O=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],P=(0,u.Ay)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>(0,i.A)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&(0,i.A)({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${w.A.root}`]:{paddingRight:48}},{[`&.${x.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${x.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,c.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${x.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,c.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${x.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${x.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,c.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,c.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),I=(0,u.Ay)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),M=o.forwardRef((function(e,t){const n=(0,d.A)({props:e,name:"MuiListItem"}),{alignItems:c="center",autoFocus:u=!1,button:y=!1,children:v,className:w,component:A,components:C={},componentsProps:E={},ContainerComponent:_="li",ContainerProps:{className:M}={},dense:L=!1,disabled:R=!1,disableGutters:j=!1,disablePadding:F=!1,divider:D=!1,focusVisibleClassName:N,secondaryAction:z,selected:V=!1,slotProps:B={},slots:$={}}=n,G=(0,r.A)(n.ContainerProps,T),U=(0,r.A)(n,O),W=o.useContext(m.A),q=o.useMemo((()=>({dense:L||W.dense||!1,alignItems:c,disableGutters:j})),[c,W.dense,L,j]),H=o.useRef(null);(0,f.A)((()=>{u&&H.current&&H.current.focus()}),[u]);const Y=o.Children.toArray(v),K=Y.length&&(0,p.A)(Y[Y.length-1],["ListItemSecondaryAction"]),X=(0,i.A)({},n,{alignItems:c,autoFocus:u,button:y,dense:q.dense,disabled:R,disableGutters:j,disablePadding:F,divider:D,hasSecondaryAction:K,selected:V}),Z=(e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:c,hasSecondaryAction:u,selected:d}=e,h={root:["root",i&&"dense",!a&&"gutters",!s&&"padding",c&&"divider",o&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",d&&"selected"],container:["container"]};return(0,l.A)(h,b,r)})(X),J=(0,g.A)(H,t),Q=$.root||C.Root||P,ee=B.root||E.root||{},te=(0,i.A)({className:(0,a.A)(Z.root,ee.className,w),disabled:R},U);let ne=A||"li";return y&&(te.component=A||"div",te.focusVisibleClassName=(0,a.A)(x.focusVisible,N),ne=h.A),K?(ne=te.component||A?ne:"div","li"===_&&("li"===ne?ne="div":"li"===te.component&&(te.component="div")),(0,S.jsx)(m.A.Provider,{value:q,children:(0,S.jsxs)(I,(0,i.A)({as:_,className:(0,a.A)(Z.container,M),ref:J,ownerState:X},G,{children:[(0,S.jsx)(Q,(0,i.A)({},ee,!(0,s.g)(Q)&&{as:ne,ownerState:(0,i.A)({},X,ee.ownerState)},te,{children:Y})),Y.pop()]}))})):(0,S.jsx)(m.A.Provider,{value:q,children:(0,S.jsxs)(Q,(0,i.A)({},ee,{as:ne,ref:J},!(0,s.g)(Q)&&{ownerState:(0,i.A)({},X,ee.ownerState)},te,{children:[Y,z&&(0,S.jsx)(k,{children:z})]}))})}))},57029:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(58990),c=n(87507),u=n(21268),d=n(5007),h=n(24115);function p(e){return(0,h.Ay)("MuiList",e)}(0,d.A)("MuiList",["root","padding","dense","subheader"]);var f=n(97282);const g=["children","className","component","dense","disablePadding","subheader"],m=(0,l.Ay)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>(0,i.A)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),y=o.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiList"}),{children:l,className:d,component:h="ul",dense:y=!1,disablePadding:v=!1,subheader:b}=n,x=(0,r.A)(n,g),w=o.useMemo((()=>({dense:y})),[y]),A=(0,i.A)({},n,{component:h,dense:y,disablePadding:v}),S=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e,o={root:["root",!n&&"padding",r&&"dense",i&&"subheader"]};return(0,s.A)(o,p,t)})(A);return(0,f.jsx)(u.A.Provider,{value:w,children:(0,f.jsxs)(m,(0,i.A)({as:h,className:(0,a.A)(S.root,d),ref:t,ownerState:A},x,{children:[b,l]}))})}))},21268:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(30538).createContext({})},70430:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(51559),i=n(73342),o=n(30538),a=(n(91272),n(8018)),s=n(57029);const l=n(38935).A;var c=n(47258),u=n(65420),d=n(97282);const h=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function p(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function f(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function g(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function m(e,t,n,r,i,o){let a=!1,s=i(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&g(s,o)&&!t)return s.focus(),!0;s=i(e,s,n)}return!1}const y=o.forwardRef((function(e,t){const{actions:n,autoFocus:y=!1,autoFocusItem:v=!1,children:b,className:x,disabledItemsFocusable:w=!1,disableListWrap:A=!1,onKeyDown:S,variant:C="selectedMenu"}=e,E=(0,i.A)(e,h),_=o.useRef(null),k=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,u.A)((()=>{y&&_.current.focus()}),[y]),o.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!_.current.style.width;if(e.clientHeight<_.current.clientHeight&&n){const n=`${l((0,a.A)(e))}px`;_.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,_.current.style.width=`calc(100% + ${n})`}return _.current}})),[]);const T=(0,c.A)(_,t);let O=-1;o.Children.forEach(b,((e,t)=>{o.isValidElement(e)?(e.props.disabled||("selectedMenu"===C&&e.props.selected||-1===O)&&(O=t),O===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(O+=1,O>=b.length&&(O=-1))):O===t&&(O+=1,O>=b.length&&(O=-1))}));const P=o.Children.map(b,((e,t)=>{if(t===O){const t={};return v&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===C&&(t.tabIndex=0),o.cloneElement(e,t)}return e}));return(0,d.jsx)(s.A,(0,r.A)({role:"menu",ref:T,className:x,onKeyDown:e=>{const t=_.current,n=e.key,r=(0,a.A)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),m(t,r,A,w,p);else if("ArrowUp"===n)e.preventDefault(),m(t,r,A,w,f);else if("Home"===n)e.preventDefault(),m(t,null,A,w,p);else if("End"===n)e.preventDefault(),m(t,null,A,w,f);else if(1===n.length){const i=k.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);const s=r&&!i.repeating&&g(r,i);i.previousKeyMatched&&(s||m(t,r,!1,w,p,i))?e.preventDefault():i.previousKeyMatched=!1}S&&S(e)},tabIndex:y?0:-1},E,{children:P}))}))},92595:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(51559),i=n(73342),o=n(30538),a=(n(91272),n(87286)),s=n(32829),l=n(12277),c=n(39160),u=n(70430),d=n(87699),h=n(58990),p=n(49968),f=n(87507),g=n(5007),m=n(24115);function y(e){return(0,m.Ay)("MuiMenu",e)}(0,g.A)("MuiMenu",["root","paper","list"]);var v=n(97282);const b=["onEntering"],x=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],w={vertical:"top",horizontal:"right"},A={vertical:"top",horizontal:"left"},S=(0,h.Ay)(d.Ay,{shouldForwardProp:e=>(0,p.A)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),C=(0,h.Ay)(d.IJ,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),E=(0,h.Ay)(u.A,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),_=o.forwardRef((function(e,t){var n,u;const d=(0,f.A)({props:e,name:"MuiMenu"}),{autoFocus:h=!0,children:p,className:g,disableAutoFocusItem:m=!1,MenuListProps:_={},onClose:k,open:T,PaperProps:O={},PopoverClasses:P,transitionDuration:I="auto",TransitionProps:{onEntering:M}={},variant:L="selectedMenu",slots:R={},slotProps:j={}}=d,F=(0,i.A)(d.TransitionProps,b),D=(0,i.A)(d,x),N=(0,c.I)(),z=(0,r.A)({},d,{autoFocus:h,disableAutoFocusItem:m,MenuListProps:_,onEntering:M,PaperProps:O,transitionDuration:I,TransitionProps:F,variant:L}),V=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"],paper:["paper"],list:["list"]},y,t)})(z),B=h&&!m&&T,$=o.useRef(null);let G=-1;o.Children.map(p,((e,t)=>{o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===L&&e.props.selected||-1===G)&&(G=t))}));const U=null!=(n=R.paper)?n:C,W=null!=(u=j.paper)?u:O,q=(0,l.Q)({elementType:R.root,externalSlotProps:j.root,ownerState:z,className:[V.root,g]}),H=(0,l.Q)({elementType:U,externalSlotProps:W,ownerState:z,className:V.paper});return(0,v.jsx)(S,(0,r.A)({onClose:k,anchorOrigin:{vertical:"bottom",horizontal:N?"right":"left"},transformOrigin:N?w:A,slots:{paper:U,root:R.root},slotProps:{root:q,paper:H},open:T,ref:t,transitionDuration:I,TransitionProps:(0,r.A)({onEntering:(e,t)=>{$.current&&$.current.adjustStyleForScrollbar(e,{direction:N?"rtl":"ltr"}),M&&M(e,t)}},F),ownerState:z},D,{classes:P,children:(0,v.jsx)(E,(0,r.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),k&&k(e,"tabKeyDown"))},actions:$,autoFocus:h&&(-1===G||m),autoFocusItem:B,variant:L},_,{className:(0,a.A)(V.list,_.className),children:p}))}))}))},13027:(e,t,n)=>{"use strict";n.d(t,{A:()=>j});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(12277),l=n(18029),c=n(74311),u=n(18605),d=n(96339),h=n(75188),p=n(56023),f=n(38935);function g(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function m(e){return parseInt((0,p.A)(e).getComputedStyle(e).paddingRight,10)||0}function y(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&g(e,i)}))}function v(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function b(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,c.A)(e);return t.body===e?(0,p.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=(0,f.A)((0,c.A)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${m(r)+e}px`;const t=(0,c.A)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${m(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=(0,c.A)(r).body;else{const t=r.parentElement,n=(0,p.A)(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const x=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&g(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);y(t,e.mount,e.modalRef,r,!0);const i=v(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=v(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=b(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=v(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&g(e.modalRef,t),y(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&g(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function w(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:a=x,closeAfterTransition:s=!1,onTransitionEnter:p,onTransitionExited:f,children:m,onClose:y,open:v,rootRef:b}=e,w=o.useRef({}),A=o.useRef(null),S=o.useRef(null),C=(0,l.A)(S,b),[E,_]=o.useState(!v),k=function(e){return!!e&&e.props.hasOwnProperty("in")}(m);let T=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(T=!1);const O=()=>(w.current.modalRef=S.current,w.current.mount=A.current,w.current),P=()=>{a.mount(O(),{disableScrollLock:r}),S.current&&(S.current.scrollTop=0)},I=(0,u.A)((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||(0,c.A)(A.current).body;a.add(O(),e),S.current&&P()})),M=o.useCallback((()=>a.isTopModal(O())),[a]),L=(0,u.A)((e=>{A.current=e,e&&(v&&M()?P():S.current&&g(S.current,T))})),R=o.useCallback((()=>{a.remove(O(),T)}),[T,a]);o.useEffect((()=>()=>{R()}),[R]),o.useEffect((()=>{v?I():k&&s||R()}),[v,R,k,s,I]);const j=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&M()&&(n||(t.stopPropagation(),y&&y(t,"escapeKeyDown")))},F=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&y&&y(t,"backdropClick")};return{getRootProps:(t={})=>{const n=(0,h.h)(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=(0,i.A)({},n,t);return(0,i.A)({role:"presentation"},r,{onKeyDown:j(r),ref:C})},getBackdropProps:(e={})=>{const t=e;return(0,i.A)({"aria-hidden":!0},t,{onClick:F(t),open:v})},getTransitionProps:()=>({onEnter:(0,d.A)((()=>{_(!1),p&&p()}),null==m?void 0:m.props.onEnter),onExited:(0,d.A)((()=>{_(!0),f&&f(),s&&R()}),null==m?void 0:m.props.onExited)}),rootRef:C,portalRef:L,isTopModal:M,exited:E,hasTransition:k}}var A=n(32829),S=n(48265),C=n(45583),E=n(58990),_=n(87507),k=n(94653),T=n(5007),O=n(24115);function P(e){return(0,O.Ay)("MuiModal",e)}(0,T.A)("MuiModal",["root","hidden","backdrop"]);var I=n(97282);const M=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],L=(0,E.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,i.A)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),R=(0,E.Ay)(k.A,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),j=o.forwardRef((function(e,t){var n,l,c,u,d,h;const p=(0,_.A)({name:"MuiModal",props:e}),{BackdropComponent:f=R,BackdropProps:g,className:m,closeAfterTransition:y=!1,children:v,container:b,component:x,components:E={},componentsProps:k={},disableAutoFocus:T=!1,disableEnforceFocus:O=!1,disableEscapeKeyDown:j=!1,disablePortal:F=!1,disableRestoreFocus:D=!1,disableScrollLock:N=!1,hideBackdrop:z=!1,keepMounted:V=!1,onBackdropClick:B,open:$,slotProps:G,slots:U}=p,W=(0,r.A)(p,M),q=(0,i.A)({},p,{closeAfterTransition:y,disableAutoFocus:T,disableEnforceFocus:O,disableEscapeKeyDown:j,disablePortal:F,disableRestoreFocus:D,disableScrollLock:N,hideBackdrop:z,keepMounted:V}),{getRootProps:H,getBackdropProps:Y,getTransitionProps:K,portalRef:X,isTopModal:Z,exited:J,hasTransition:Q}=w((0,i.A)({},q,{rootRef:t})),ee=(0,i.A)({},q,{exited:J}),te=(e=>{const{open:t,exited:n,classes:r}=e,i={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,A.A)(i,P,r)})(ee),ne={};if(void 0===v.props.tabIndex&&(ne.tabIndex="-1"),Q){const{onEnter:e,onExited:t}=K();ne.onEnter=e,ne.onExited=t}const re=null!=(n=null!=(l=null==U?void 0:U.root)?l:E.Root)?n:L,ie=null!=(c=null!=(u=null==U?void 0:U.backdrop)?u:E.Backdrop)?c:f,oe=null!=(d=null==G?void 0:G.root)?d:k.root,ae=null!=(h=null==G?void 0:G.backdrop)?h:k.backdrop,se=(0,s.Q)({elementType:re,externalSlotProps:oe,externalForwardedProps:W,getSlotProps:H,additionalProps:{ref:t,as:x},ownerState:ee,className:(0,a.A)(m,null==oe?void 0:oe.className,null==te?void 0:te.root,!ee.open&&ee.exited&&(null==te?void 0:te.hidden))}),le=(0,s.Q)({elementType:ie,externalSlotProps:ae,additionalProps:g,getSlotProps:e=>Y((0,i.A)({},e,{onClick:t=>{B&&B(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,a.A)(null==ae?void 0:ae.className,null==g?void 0:g.className,null==te?void 0:te.backdrop),ownerState:ee});return V||$||Q&&!J?(0,I.jsx)(C.Z,{ref:X,container:b,disablePortal:F,children:(0,I.jsxs)(re,(0,i.A)({},se,{children:[!z&&f?(0,I.jsx)(ie,(0,i.A)({},le)):null,(0,I.jsx)(S.s,{disableEnforceFocus:O,disableAutoFocus:T,disableRestoreFocus:D,isEnabled:Z,open:$,children:o.cloneElement(v,ne)})]}))}):null}))},64049:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>v,Ku:()=>f,XV:()=>m});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(19508),c=n(61165),u=n(58990),d=n(49968),h=n(97282);const p=["className","disabled","error","IconComponent","inputRef","variant"],f=({ownerState:e,theme:t})=>(0,i.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,i.A)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${c.A.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),g=(0,u.Ay)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:d.A,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${c.A.multiple}`]:t.multiple}]}})(f),m=({ownerState:e,theme:t})=>(0,i.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${c.A.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),y=(0,u.Ay)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,l.A)(n.variant)}`],n.open&&t.iconOpen]}})(m),v=o.forwardRef((function(e,t){const{className:n,disabled:u,error:d,IconComponent:f,inputRef:m,variant:v="standard"}=e,b=(0,r.A)(e,p),x=(0,i.A)({},e,{disabled:u,variant:v,error:d}),w=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,u={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${(0,l.A)(n)}`,o&&"iconOpen",r&&"disabled"]};return(0,s.A)(u,c.w,t)})(x);return(0,h.jsxs)(o.Fragment,{children:[(0,h.jsx)(g,(0,i.A)({ownerState:x,className:(0,a.A)(w.select,n),disabled:u,ref:m||t},b)),e.multiple?null:(0,h.jsx)(y,{as:f,ownerState:x,className:w.icon})]})}))},61165:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,w:()=>o});var r=n(5007),i=n(24115);function o(e){return(0,i.Ay)("MuiNativeSelect",e)}const a=(0,r.A)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"])},32951:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r,i=n(73342),o=n(51559),a=n(30538),s=n(32829),l=n(58990),c=n(49968),u=n(97282);const d=["children","classes","className","label","notched"],h=(0,l.Ay)("fieldset",{shouldForwardProp:c.A})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),p=(0,l.Ay)("legend",{shouldForwardProp:c.A})((({ownerState:e,theme:t})=>(0,o.A)({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&(0,o.A)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));var f=n(39230),g=n(73336),m=n(44053),y=n(28566),v=n(87507);const b=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],x=(0,l.Ay)(y.Sh,{shouldForwardProp:e=>(0,c.A)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:y.WC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,o.A)({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${m.A.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${m.A.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${m.A.focused} .${m.A.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${m.A.error} .${m.A.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${m.A.disabled} .${m.A.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&(0,o.A)({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),w=(0,l.Ay)((function(e){const{className:t,label:n,notched:a}=e,s=(0,i.A)(e,d),l=null!=n&&""!==n,c=(0,o.A)({},e,{notched:a,withLabel:l});return(0,u.jsx)(h,(0,o.A)({"aria-hidden":!0,className:t,ownerState:c},s,{children:(0,u.jsx)(p,{ownerState:c,children:l?(0,u.jsx)("span",{children:n}):r||(r=(0,u.jsx)("span",{className:"notranslate",children:""}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),A=(0,l.Ay)(y.f3,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:y.Oj})((({theme:e,ownerState:t})=>(0,o.A)({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),S=a.forwardRef((function(e,t){var n,r,l,c,d;const h=(0,v.A)({props:e,name:"MuiOutlinedInput"}),{components:p={},fullWidth:S=!1,inputComponent:C="input",label:E,multiline:_=!1,notched:k,slots:T={},type:O="text"}=h,P=(0,i.A)(h,b),I=(e=>{const{classes:t}=e,n=(0,s.A)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},m.v,t);return(0,o.A)({},t,n)})(h),M=(0,f.A)(),L=(0,g.A)({props:h,muiFormControl:M,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),R=(0,o.A)({},h,{color:L.color||"primary",disabled:L.disabled,error:L.error,focused:L.focused,formControl:M,fullWidth:S,hiddenLabel:L.hiddenLabel,multiline:_,size:L.size,type:O}),j=null!=(n=null!=(r=T.root)?r:p.Root)?n:x,F=null!=(l=null!=(c=T.input)?c:p.Input)?l:A;return(0,u.jsx)(y.Ay,(0,o.A)({slots:{root:j,input:F},renderSuffix:e=>(0,u.jsx)(w,{ownerState:R,className:I.notchedOutline,label:null!=E&&""!==E&&L.required?d||(d=(0,u.jsxs)(a.Fragment,{children:[E," ","*"]})):E,notched:void 0!==k?k:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:S,inputComponent:C,multiline:_,ref:t,type:O},P,{classes:(0,o.A)({},I,{notchedOutline:null})}))}));S.muiName="Input";const C=S},44053:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,v:()=>s});var r=n(51559),i=n(5007),o=n(24115),a=n(8253);function s(e){return(0,o.Ay)("MuiOutlinedInput",e)}const l=(0,r.A)({},a.A,(0,i.A)("MuiOutlinedInput",["root","notchedOutline","input"]))},8088:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(59015),c=n(58990);const u=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};var d=n(87507),h=n(5007),p=n(24115);function f(e){return(0,p.Ay)("MuiPaper",e)}(0,h.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var g=n(97282);const m=["className","component","elevation","square","variant"],y=(0,c.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return(0,i.A)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,i.A)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,l.X4)("#fff",u(t.elevation))}, ${(0,l.X4)("#fff",u(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),v=o.forwardRef((function(e,t){const n=(0,d.A)({props:e,name:"MuiPaper"}),{className:o,component:l="div",elevation:c=1,square:u=!1,variant:h="elevation"}=n,p=(0,r.A)(n,m),v=(0,i.A)({},n,{component:l,elevation:c,square:u,variant:h}),b=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]};return(0,s.A)(o,f,i)})(v);return(0,g.jsx)(y,(0,i.A)({as:l,ownerState:v,className:(0,a.A)(b.root,o),ref:t},p))}))},87699:(e,t,n)=>{"use strict";n.d(t,{IJ:()=>I,Ay:()=>M});var r=n(51559),i=n(73342),o=n(30538),a=n(87286),s=n(12277),l=n(2665),c=n(32829),u=n(58990),d=n(87507),h=n(44545),p=n(8018),f=n(38579),g=n(47258),m=n(36797),y=n(13027),v=n(8088),b=n(5007),x=n(24115);function w(e){return(0,x.Ay)("MuiPopover",e)}(0,b.A)("MuiPopover",["root","paper"]);var A=n(97282);const S=["onEntering"],C=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],E=["slotProps"];function _(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function k(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function T(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function O(e){return"function"==typeof e?e():e}const P=(0,u.Ay)(y.A,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),I=(0,u.Ay)(v.A,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),M=o.forwardRef((function(e,t){var n,u,y;const v=(0,d.A)({props:e,name:"MuiPopover"}),{action:b,anchorEl:x,anchorOrigin:M={vertical:"top",horizontal:"left"},anchorPosition:L,anchorReference:R="anchorEl",children:j,className:F,container:D,elevation:N=8,marginThreshold:z=16,open:V,PaperProps:B={},slots:$,slotProps:G,transformOrigin:U={vertical:"top",horizontal:"left"},TransitionComponent:W=m.A,transitionDuration:q="auto",TransitionProps:{onEntering:H}={},disableScrollLock:Y=!1}=v,K=(0,i.A)(v.TransitionProps,S),X=(0,i.A)(v,C),Z=null!=(n=null==G?void 0:G.paper)?n:B,J=o.useRef(),Q=(0,g.A)(J,Z.ref),ee=(0,r.A)({},v,{anchorOrigin:M,anchorReference:R,elevation:N,marginThreshold:z,externalPaperSlotProps:Z,transformOrigin:U,TransitionComponent:W,transitionDuration:q,TransitionProps:K}),te=(e=>{const{classes:t}=e;return(0,c.A)({root:["root"],paper:["paper"]},w,t)})(ee),ne=o.useCallback((()=>{if("anchorPosition"===R)return L;const e=O(x),t=(e&&1===e.nodeType?e:(0,p.A)(J.current).body).getBoundingClientRect();return{top:t.top+_(t,M.vertical),left:t.left+k(t,M.horizontal)}}),[x,M.horizontal,M.vertical,L,R]),re=o.useCallback((e=>({vertical:_(e,U.vertical),horizontal:k(e,U.horizontal)})),[U.horizontal,U.vertical]),ie=o.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=re(t);if("none"===R)return{top:null,left:null,transformOrigin:T(n)};const r=ne();let i=r.top-n.vertical,o=r.left-n.horizontal;const a=i+t.height,s=o+t.width,l=(0,f.A)(O(x)),c=l.innerHeight-z,u=l.innerWidth-z;if(null!==z&&ic){const e=a-c;i-=e,n.vertical+=e}if(null!==z&&ou){const e=s-u;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:T(n)}}),[x,R,ne,re,z]),[oe,ae]=o.useState(V),se=o.useCallback((()=>{const e=J.current;if(!e)return;const t=ie(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,ae(!0)}),[ie]);o.useEffect((()=>(Y&&window.addEventListener("scroll",se),()=>window.removeEventListener("scroll",se))),[x,Y,se]);o.useEffect((()=>{V&&se()})),o.useImperativeHandle(b,(()=>V?{updatePosition:()=>{se()}}:null),[V,se]),o.useEffect((()=>{if(!V)return;const e=(0,h.A)((()=>{se()})),t=(0,f.A)(x);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[x,V,se]);let le=q;"auto"!==q||W.muiSupportAuto||(le=void 0);const ce=D||(x?(0,p.A)(O(x)).body:void 0),ue=null!=(u=null==$?void 0:$.root)?u:P,de=null!=(y=null==$?void 0:$.paper)?y:I,he=(0,s.Q)({elementType:de,externalSlotProps:(0,r.A)({},Z,{style:oe?Z.style:(0,r.A)({},Z.style,{opacity:0})}),additionalProps:{elevation:N,ref:Q},ownerState:ee,className:(0,a.A)(te.paper,null==Z?void 0:Z.className)}),pe=(0,s.Q)({elementType:ue,externalSlotProps:(null==G?void 0:G.root)||{},externalForwardedProps:X,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:ce,open:V},ownerState:ee,className:(0,a.A)(te.root,F)}),{slotProps:fe}=pe,ge=(0,i.A)(pe,E);return(0,A.jsx)(ue,(0,r.A)({},ge,!(0,l.g)(ue)&&{slotProps:fe,disableScrollLock:Y},{children:(0,A.jsx)(W,(0,r.A)({appear:!0,in:V,onEntering:(e,t)=>{H&&H(e,t),se()},onExited:()=>{ae(!1)},timeout:le},K,{children:(0,A.jsx)(de,(0,r.A)({},he,{children:j}))}))}))}))},47059:(e,t,n)=>{"use strict";n.d(t,{A:()=>He});var r=n(51559),i=n(73342),o=n(30538),a=n(18029),s=n(43107),l=n(74311);function c(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function u(e){return e instanceof c(e).Element||e instanceof Element}function d(e){return e instanceof c(e).HTMLElement||e instanceof HTMLElement}function h(e){return"undefined"!=typeof ShadowRoot&&(e instanceof c(e).ShadowRoot||e instanceof ShadowRoot)}var p=Math.max,f=Math.min,g=Math.round;function m(){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 y(){return!/^((?!chrome|android).)*safari/i.test(m())}function v(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&d(e)&&(i=e.offsetWidth>0&&g(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&g(r.height)/e.offsetHeight||1);var a=(u(e)?c(e):window).visualViewport,s=!y()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/i,h=(r.top+(s&&a?a.offsetTop:0))/o,p=r.width/i,f=r.height/o;return{width:p,height:f,top:h,right:l+p,bottom:h+f,left:l,x:l,y:h}}function b(e){var t=c(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function x(e){return e?(e.nodeName||"").toLowerCase():null}function w(e){return((u(e)?e.ownerDocument:e.document)||window.document).documentElement}function A(e){return v(w(e)).left+b(e).scrollLeft}function S(e){return c(e).getComputedStyle(e)}function C(e){var t=S(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function E(e,t,n){void 0===n&&(n=!1);var r,i,o=d(t),a=d(t)&&function(e){var t=e.getBoundingClientRect(),n=g(t.width)/e.offsetWidth||1,r=g(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=w(t),l=v(e,a,n),u={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(o||!o&&!n)&&(("body"!==x(t)||C(s))&&(u=(r=t)!==c(r)&&d(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:b(r)),d(t)?((h=v(t,!0)).x+=t.clientLeft,h.y+=t.clientTop):s&&(h.x=A(s))),{x:l.left+u.scrollLeft-h.x,y:l.top+u.scrollTop-h.y,width:l.width,height:l.height}}function _(e){var t=v(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 k(e){return"html"===x(e)?e:e.assignedSlot||e.parentNode||(h(e)?e.host:null)||w(e)}function T(e){return["html","body","#document"].indexOf(x(e))>=0?e.ownerDocument.body:d(e)&&C(e)?e:T(k(e))}function O(e,t){var n;void 0===t&&(t=[]);var r=T(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=c(r),a=i?[o].concat(o.visualViewport||[],C(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(O(k(a)))}function P(e){return["table","td","th"].indexOf(x(e))>=0}function I(e){return d(e)&&"fixed"!==S(e).position?e.offsetParent:null}function M(e){for(var t=c(e),n=I(e);n&&P(n)&&"static"===S(n).position;)n=I(n);return n&&("html"===x(n)||"body"===x(n)&&"static"===S(n).position)?t:n||function(e){var t=/firefox/i.test(m());if(/Trident/i.test(m())&&d(e)&&"fixed"===S(e).position)return null;var n=k(e);for(h(n)&&(n=n.host);d(n)&&["html","body"].indexOf(x(n))<0;){var r=S(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 L="top",R="bottom",j="right",F="left",D="auto",N=[L,R,j,F],z="start",V="end",B="clippingParents",$="viewport",G="popper",U="reference",W=N.reduce((function(e,t){return e.concat([t+"-"+z,t+"-"+V])}),[]),q=[].concat(N,[D]).reduce((function(e,t){return e.concat([t,t+"-"+z,t+"-"+V])}),[]),H=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Y(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 K={placement:"bottom",modifiers:[],strategy:"absolute"};function X(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function ne(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?Q(i):null,a=i?ee(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case L:t={x:s,y:n.y-r.height};break;case R:t={x:s,y:n.y+n.height};break;case j:t={x:n.x+n.width,y:l};break;case F:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?te(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case z:t[c]=t[c]-(n[u]/2-r[u]/2);break;case V:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var re={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ie(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,h=e.isFixed,p=a.x,f=void 0===p?0:p,m=a.y,y=void 0===m?0:m,v="function"==typeof d?d({x:f,y}):{x:f,y};f=v.x,y=v.y;var b=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),A=F,C=L,E=window;if(u){var _=M(n),k="clientHeight",T="clientWidth";if(_===c(n)&&"static"!==S(_=w(n)).position&&"absolute"===s&&(k="scrollHeight",T="scrollWidth"),i===L||(i===F||i===j)&&o===V)C=R,y-=(h&&_===E&&E.visualViewport?E.visualViewport.height:_[k])-r.height,y*=l?1:-1;if(i===F||(i===L||i===R)&&o===V)A=j,f-=(h&&_===E&&E.visualViewport?E.visualViewport.width:_[T])-r.width,f*=l?1:-1}var O,P=Object.assign({position:s},u&&re),I=!0===d?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:g(n*i)/i||0,y:g(r*i)/i||0}}({x:f,y},c(n)):{x:f,y};return f=I.x,y=I.y,l?Object.assign({},P,((O={})[C]=x?"0":"",O[A]=b?"0":"",O.transform=(E.devicePixelRatio||1)<=1?"translate("+f+"px, "+y+"px)":"translate3d("+f+"px, "+y+"px, 0)",O)):Object.assign({},P,((t={})[C]=x?y+"px":"",t[A]=b?f+"px":"",t.transform="",t))}const oe={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,a=q.reduce((function(e,n){return e[n]=function(e,t,n){var r=Q(e),i=[F,L].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[F,j].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var ae={left:"right",right:"left",bottom:"top",top:"bottom"};function se(e){return e.replace(/left|right|bottom|top/g,(function(e){return ae[e]}))}var le={start:"end",end:"start"};function ce(e){return e.replace(/start|end/g,(function(e){return le[e]}))}function ue(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&h(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function de(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function he(e,t,n){return t===$?de(function(e,t){var n=c(e),r=w(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=y();(u||!u&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+A(e),y:l}}(e,n)):u(t)?function(e,t){var n=v(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):de(function(e){var t,n=w(e),r=b(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=p(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=p(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+A(e),l=-r.scrollTop;return"rtl"===S(i||n).direction&&(s+=p(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(w(e)))}function pe(e,t,n,r){var i="clippingParents"===t?function(e){var t=O(k(e)),n=["absolute","fixed"].indexOf(S(e).position)>=0&&d(e)?M(e):e;return u(n)?t.filter((function(e){return u(e)&&ue(e,n)&&"body"!==x(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=he(e,n,r);return t.top=p(i.top,t.top),t.right=f(i.right,t.right),t.bottom=f(i.bottom,t.bottom),t.left=p(i.left,t.left),t}),he(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function fe(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ge(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function me(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,l=void 0===s?B:s,c=n.rootBoundary,d=void 0===c?$:c,h=n.elementContext,p=void 0===h?G:h,f=n.altBoundary,g=void 0!==f&&f,m=n.padding,y=void 0===m?0:m,b=fe("number"!=typeof y?y:ge(y,N)),x=p===G?U:G,A=e.rects.popper,S=e.elements[g?x:p],C=pe(u(S)?S:S.contextElement||w(e.elements.popper),l,d,a),E=v(e.elements.reference),_=ne({reference:E,element:A,strategy:"absolute",placement:i}),k=de(Object.assign({},A,_)),T=p===G?k:E,O={top:C.top-T.top+b.top,bottom:T.bottom-C.bottom+b.bottom,left:C.left-T.left+b.left,right:T.right-C.right+b.right},P=e.modifiersData.offset;if(p===G&&P){var I=P[i];Object.keys(O).forEach((function(e){var t=[j,R].indexOf(e)>=0?1:-1,n=[L,R].indexOf(e)>=0?"y":"x";O[e]+=I[n]*t}))}return O}function ye(e,t,n){return p(e,f(t,n))}const ve={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,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,g=void 0===h||h,m=n.tetherOffset,y=void 0===m?0:m,v=me(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),b=Q(t.placement),x=ee(t.placement),w=!x,A=te(b),S="x"===A?"y":"x",C=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,T="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,O="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(C){if(o){var D,N="y"===A?L:F,V="y"===A?R:j,B="y"===A?"height":"width",$=C[A],G=$+v[N],U=$-v[V],W=g?-k[B]/2:0,q=x===z?E[B]:k[B],H=x===z?-k[B]:-E[B],Y=t.elements.arrow,K=g&&Y?_(Y):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Z=X[N],J=X[V],ne=ye(0,E[B],K[B]),re=w?E[B]/2-W-ne-Z-O.mainAxis:q-ne-Z-O.mainAxis,ie=w?-E[B]/2+W+ne+J+O.mainAxis:H+ne+J+O.mainAxis,oe=t.elements.arrow&&M(t.elements.arrow),ae=oe?"y"===A?oe.clientTop||0:oe.clientLeft||0:0,se=null!=(D=null==P?void 0:P[A])?D:0,le=$+ie-se,ce=ye(g?f(G,$+re-se-ae):G,$,g?p(U,le):U);C[A]=ce,I[A]=ce-$}if(s){var ue,de="x"===A?L:F,he="x"===A?R:j,pe=C[S],fe="y"===S?"height":"width",ge=pe+v[de],ve=pe-v[he],be=-1!==[L,F].indexOf(b),xe=null!=(ue=null==P?void 0:P[S])?ue:0,we=be?ge:pe-E[fe]-k[fe]-xe+O.altAxis,Ae=be?pe+E[fe]+k[fe]-xe-O.altAxis:ve,Se=g&&be?function(e,t,n){var r=ye(e,t,n);return r>n?n:r}(we,pe,Ae):ye(g?we:ge,pe,g?Ae:ve);C[S]=Se,I[S]=Se-pe}t.modifiersData[r]=I}},requiresIfExists:["offset"]};const be={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Q(n.placement),l=te(s),c=[F,j].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return fe("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ge(e,N))}(i.padding,n),d=_(o),h="y"===l?L:F,p="y"===l?R:j,f=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],g=a[l]-n.rects.reference[l],m=M(o),y=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,v=f/2-g/2,b=u[h],x=y-d[c]-u[p],w=y/2-d[c]/2+v,A=ye(b,w,x),S=l;n.modifiersData[r]=((t={})[S]=A,t.centerOffset=A-w,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)))&&ue(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xe(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 we(e){return[L,j,R,F].some((function(t){return e[t]>=0}))}var Ae=Z({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=c(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,J)})),s&&l.addEventListener("resize",n.update,J),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,J)})),s&&l.removeEventListener("resize",n.update,J)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ne({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,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:Q(t.placement),variation:ee(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,ie(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ie(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{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];d(i)&&x(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]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});d(r)&&x(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},oe,{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,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,g=n.allowedAutoPlacements,m=t.options.placement,y=Q(m),v=l||(y===m||!f?[se(m)]:function(e){if(Q(e)===D)return[];var t=se(e);return[ce(e),t,ce(t)]}(m)),b=[m].concat(v).reduce((function(e,n){return e.concat(Q(n)===D?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?q:l,u=ee(r),d=u?s?W:W.filter((function(e){return ee(e)===u})):N,h=d.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=d);var p=h.reduce((function(t,n){return t[n]=me(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[Q(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):n)}),[]),x=t.rects.reference,w=t.rects.popper,A=new Map,S=!0,C=b[0],E=0;E=0,P=O?"width":"height",I=me(t,{placement:_,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),M=O?T?j:F:T?R:L;x[P]>w[P]&&(M=se(M));var V=se(M),B=[];if(o&&B.push(I[k]<=0),s&&B.push(I[M]<=0,I[V]<=0),B.every((function(e){return e}))){C=_,S=!1;break}A.set(_,B)}if(S)for(var $=function(e){var t=b.find((function(t){var n=A.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},G=f?3:1;G>0;G--){if("break"===$(G))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ve,be,{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,a=me(t,{elementContext:"reference"}),s=me(t,{altBoundary:!0}),l=xe(a,r),c=xe(s,i,o),u=we(l),d=we(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),Se=n(32829),Ce=n(45583),Ee=n(24115);const _e="base";function ke(e,t){const n=Ee.li[t];return n?`${_e}--${n}`:function(e,t){return`${_e}-${e}-${t}`}(e,t)}const Te="Popper";function Oe(e){return ke(Te,e)}!function(e,t){const n={};t.forEach((t=>{n[t]=ke(e,t)}))}(Te,["root"]);var Pe=n(12277),Ie=n(97282);const Me={disableDefaultClasses:!1},Le=o.createContext(Me);const Re=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],je=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Fe(e){return"function"==typeof e?e():e}function De(e){return void 0!==e.nodeType}const Ne=()=>(0,Se.A)({root:["root"]},function(e){const{disableDefaultClasses:t}=o.useContext(Le);return n=>t?"":e(n)}(Oe)),ze={},Ve=o.forwardRef((function(e,t){var n;const{anchorEl:l,children:c,direction:u,disablePortal:d,modifiers:h,open:p,placement:f,popperOptions:g,popperRef:m,slotProps:y={},slots:v={},TransitionProps:b}=e,x=(0,i.A)(e,Re),w=o.useRef(null),A=(0,a.A)(w,t),S=o.useRef(null),C=(0,a.A)(S,m),E=o.useRef(C);(0,s.A)((()=>{E.current=C}),[C]),o.useImperativeHandle(m,(()=>S.current),[]);const _=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(f,u),[k,T]=o.useState(_),[O,P]=o.useState(Fe(l));o.useEffect((()=>{S.current&&S.current.forceUpdate()})),o.useEffect((()=>{l&&P(Fe(l))}),[l]),(0,s.A)((()=>{if(!O||!p)return;let e=[{name:"preventOverflow",options:{altBoundary:d}},{name:"flip",options:{altBoundary:d}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{T(e.placement)}}];null!=h&&(e=e.concat(h)),g&&null!=g.modifiers&&(e=e.concat(g.modifiers));const t=Ae(O,w.current,(0,r.A)({placement:_},g,{modifiers:e}));return E.current(t),()=>{t.destroy(),E.current(null)}}),[O,d,h,p,g,_]);const I={placement:k};null!==b&&(I.TransitionProps=b);const M=Ne(),L=null!=(n=v.root)?n:"div",R=(0,Pe.Q)({elementType:L,externalSlotProps:y.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:A},ownerState:e,className:M.root});return(0,Ie.jsx)(L,(0,r.A)({},R,{children:"function"==typeof c?c(I):c}))})),Be=o.forwardRef((function(e,t){const{anchorEl:n,children:a,container:s,direction:c="ltr",disablePortal:u=!1,keepMounted:d=!1,modifiers:h,open:p,placement:f="bottom",popperOptions:g=ze,popperRef:m,style:y,transition:v=!1,slotProps:b={},slots:x={}}=e,w=(0,i.A)(e,je),[A,S]=o.useState(!0);if(!d&&!p&&(!v||A))return null;let C;if(s)C=s;else if(n){const e=Fe(n);C=e&&De(e)?(0,l.A)(e).body:(0,l.A)(null).body}const E=p||!d||v&&!A?void 0:"none",_=v?{in:p,onEnter:()=>{S(!1)},onExited:()=>{S(!0)}}:void 0;return(0,Ie.jsx)(Ce.Z,{disablePortal:u,container:C,children:(0,Ie.jsx)(Ve,(0,r.A)({anchorEl:n,direction:c,disablePortal:u,modifiers:h,ref:t,open:v?!A:p,placement:f,popperOptions:g,popperRef:m,slotProps:b,slots:x},w,{style:(0,r.A)({position:"fixed",top:0,left:0,display:E},y),TransitionProps:_,children:a}))})}));var $e=n(98767),Ge=n(58990),Ue=n(87507);const We=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],qe=(0,Ge.Ay)(Be,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),He=o.forwardRef((function(e,t){var n;const o=(0,$e.A)(),a=(0,Ue.A)({props:e,name:"MuiPopper"}),{anchorEl:s,component:l,components:c,componentsProps:u,container:d,disablePortal:h,keepMounted:p,modifiers:f,open:g,placement:m,popperOptions:y,popperRef:v,transition:b,slots:x,slotProps:w}=a,A=(0,i.A)(a,We),S=null!=(n=null==x?void 0:x.root)?n:null==c?void 0:c.Root,C=(0,r.A)({anchorEl:s,container:d,disablePortal:h,keepMounted:p,modifiers:f,open:g,placement:m,popperOptions:y,popperRef:v,transition:b},A);return(0,Ie.jsx)(qe,(0,r.A)({as:l,direction:null==o?void 0:o.direction,slots:{root:S},slotProps:null!=w?w:u},C,{ref:t}))}))},35246:(e,t,n)=>{"use strict";n.d(t,{A:()=>Y});var r=n(51559),i=n(73342),o=n(30538),a=n(87286),s=n(43271),l=n(88207),c=(n(91272),n(32829)),u=n(5391),d=n(8018),h=n(19508),p=n(92595),f=n(64049),g=n(29421),m=n(58990),y=n(57088),v=n(47258),b=n(58245),x=n(5007),w=n(24115);function A(e){return(0,w.Ay)("MuiSelect",e)}const S=(0,x.A)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var C,E=n(97282);const _=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],k=(0,m.Ay)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${S.select}`]:t.select},{[`&.${S.select}`]:t[n.variant]},{[`&.${S.error}`]:t.error},{[`&.${S.multiple}`]:t.multiple}]}})(f.Ku,{[`&.${S.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),T=(0,m.Ay)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,h.A)(n.variant)}`],n.open&&t.iconOpen]}})(f.XV),O=(0,m.Ay)("input",{shouldForwardProp:e=>(0,y.A)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function P(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function I(e){return null==e||"string"==typeof e&&!e.trim()}const M=o.forwardRef((function(e,t){var n;const{"aria-describedby":s,"aria-label":f,autoFocus:m,autoWidth:y,children:x,className:w,defaultOpen:S,defaultValue:M,disabled:L,displayEmpty:R,error:j=!1,IconComponent:F,inputRef:D,labelId:N,MenuProps:z={},multiple:V,name:B,onBlur:$,onChange:G,onClose:U,onFocus:W,onOpen:q,open:H,readOnly:Y,renderValue:K,SelectDisplayProps:X={},tabIndex:Z,value:J,variant:Q="standard"}=e,ee=(0,i.A)(e,_),[te,ne]=(0,b.A)({controlled:J,default:M,name:"Select"}),[re,ie]=(0,b.A)({controlled:H,default:S,name:"Select"}),oe=o.useRef(null),ae=o.useRef(null),[se,le]=o.useState(null),{current:ce}=o.useRef(null!=H),[ue,de]=o.useState(),he=(0,v.A)(t,D),pe=o.useCallback((e=>{ae.current=e,e&&le(e)}),[]),fe=null==se?void 0:se.parentNode;o.useImperativeHandle(he,(()=>({focus:()=>{ae.current.focus()},node:oe.current,value:te})),[te]),o.useEffect((()=>{S&&re&&se&&!ce&&(de(y?null:fe.clientWidth),ae.current.focus())}),[se,y]),o.useEffect((()=>{m&&ae.current.focus()}),[m]),o.useEffect((()=>{if(!N)return;const e=(0,d.A)(ae.current).getElementById(N);if(e){const t=()=>{getSelection().isCollapsed&&ae.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[N]);const ge=(e,t)=>{e?q&&q(t):U&&U(t),ce||(de(y?null:fe.clientWidth),ie(e))},me=o.Children.toArray(x),ye=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(V){n=Array.isArray(te)?te.slice():[];const t=te.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),te!==n&&(ne(n),G)){const r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:B}}),G(i,e)}V||ge(!1,t)}},ve=null!==se&&re;let be,xe;delete ee["aria-invalid"];const we=[];let Ae=!1,Se=!1;((0,g.lq)({value:te})||R)&&(K?be=K(te):Ae=!0);const Ce=me.map((e=>{if(!o.isValidElement(e))return null;let t;if(V){if(!Array.isArray(te))throw new Error((0,l.A)(2));t=te.some((t=>P(t,e.props.value))),t&&Ae&&we.push(e.props.children)}else t=P(te,e.props.value),t&&Ae&&(xe=e.props.children);return t&&(Se=!0),o.cloneElement(e,{"aria-selected":t?"true":"false",onClick:ye(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));Ae&&(be=V?0===we.length?null:we.reduce(((e,t,n)=>(e.push(t),n{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${(0,h.A)(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,c.A)(s,A,t)})(Te),Pe=(0,r.A)({},z.PaperProps,null==(n=z.slotProps)?void 0:n.paper),Ie=(0,u.A)();return(0,E.jsxs)(o.Fragment,{children:[(0,E.jsx)(k,(0,r.A)({ref:pe,tabIndex:Ee,role:"combobox","aria-controls":Ie,"aria-disabled":L?"true":void 0,"aria-expanded":ve?"true":"false","aria-haspopup":"listbox","aria-label":f,"aria-labelledby":[N,ke].filter(Boolean).join(" ")||void 0,"aria-describedby":s,onKeyDown:e=>{if(!Y){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ge(!0,e))}},onMouseDown:L||Y?null:e=>{0===e.button&&(e.preventDefault(),ae.current.focus(),ge(!0,e))},onBlur:e=>{!ve&&$&&(Object.defineProperty(e,"target",{writable:!0,value:{value:te,name:B}}),$(e))},onFocus:W},X,{ownerState:Te,className:(0,a.A)(X.className,Oe.select,w),id:ke,children:I(be)?C||(C=(0,E.jsx)("span",{className:"notranslate",children:""})):be})),(0,E.jsx)(O,(0,r.A)({"aria-invalid":j,value:Array.isArray(te)?te.join(","):te,name:B,ref:oe,"aria-hidden":!0,onChange:e=>{const t=me.find((t=>t.props.value===e.target.value));void 0!==t&&(ne(t.props.value),G&&G(e,t))},tabIndex:-1,disabled:L,className:Oe.nativeInput,autoFocus:m,ownerState:Te},ee)),(0,E.jsx)(T,{as:F,className:Oe.icon,ownerState:Te}),(0,E.jsx)(p.A,(0,r.A)({id:`menu-${B||""}`,anchorEl:fe,open:ve,onClose:e=>{ge(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},z,{MenuListProps:(0,r.A)({"aria-labelledby":N,role:"listbox","aria-multiselectable":V?"true":void 0,disableListWrap:!0,id:Ie},z.MenuListProps),slotProps:(0,r.A)({},z.slotProps,{paper:(0,r.A)({},Pe,{style:(0,r.A)({minWidth:_e},null!=Pe?Pe.style:null)})}),children:Ce}))]})}));var L=n(73336),R=n(39230),j=n(69216),F=n(20553),D=n(81933),N=n(32951),z=n(87507),V=n(49968);const B=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],$=["root"],G={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,V.A)(e)&&"variant"!==e,slot:"Root"},U=(0,m.Ay)(F.A,G)(""),W=(0,m.Ay)(N.A,G)(""),q=(0,m.Ay)(D.A,G)(""),H=o.forwardRef((function(e,t){const n=(0,z.A)({name:"MuiSelect",props:e}),{autoWidth:l=!1,children:c,classes:u={},className:d,defaultOpen:h=!1,displayEmpty:p=!1,IconComponent:g=j.A,id:m,input:y,inputProps:b,label:x,labelId:w,MenuProps:A,multiple:S=!1,native:C=!1,onClose:_,onOpen:k,open:T,renderValue:O,SelectDisplayProps:P,variant:I="outlined"}=n,F=(0,i.A)(n,B),D=C?f.Ay:M,N=(0,R.A)(),V=(0,L.A)({props:n,muiFormControl:N,states:["variant","error"]}),G=V.variant||I,H=(0,r.A)({},n,{variant:G,classes:u}),Y=(e=>{const{classes:t}=e;return t})(H),K=(0,i.A)(Y,$),X=y||{standard:(0,E.jsx)(U,{ownerState:H}),outlined:(0,E.jsx)(W,{label:x,ownerState:H}),filled:(0,E.jsx)(q,{ownerState:H})}[G],Z=(0,v.A)(t,X.ref);return(0,E.jsx)(o.Fragment,{children:o.cloneElement(X,(0,r.A)({inputComponent:D,inputProps:(0,r.A)({children:c,error:V.error,IconComponent:g,variant:G,type:void 0,multiple:S},C?{id:m}:{autoWidth:l,defaultOpen:h,displayEmpty:p,labelId:w,MenuProps:A,onClose:_,onOpen:k,open:T,renderValue:O,SelectDisplayProps:(0,r.A)({id:m},P)},b,{classes:b?(0,s.A)(K,b.classes):K},y?y.props.inputProps:{})},(S&&C||p)&&"outlined"===G?{notched:!0}:{},{ref:Z,className:(0,a.A)(X.props.className,d,Y.root)},!y&&{variant:G},F))})}));H.muiName="Select";const Y=H},23296:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>ne});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(12277),l=n(2665),c=n(32829),u=n(74311),d=n(63095),h=n(75031),p=n(73499),f=n(18029),g=n(43107),m=n(18605);const y={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};var v=n(75188);function b(e,t){return e-t}function x(e,t){var n;const{index:r}=null!=(n=e.reduce(((e,n,r)=>{const i=Math.abs(t-n);return null===e||ie===t)){return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))}(e,t)}const k={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},T=e=>e;let O;function P(){return void 0===O&&(O="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),O}function I(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:a=!1,isRtl:s=!1,marks:l=!1,max:c=100,min:O=0,name:I,onChange:M,onChangeCommitted:L,orientation:R="horizontal",rootRef:j,scale:F=T,step:D=1,shiftStep:N=10,tabIndex:z,value:V}=e,B=o.useRef(),[$,G]=o.useState(-1),[U,W]=o.useState(-1),[q,H]=o.useState(!1),Y=o.useRef(0),[K,X]=(0,d.A)({controlled:V,default:null!=n?n:O,name:"Slider"}),Z=M&&((e,t,n)=>{const r=e.nativeEvent||e,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:t,name:I}}),M(i,t,n)}),J=Array.isArray(K);let Q=J?K.slice().sort(b):[K];Q=Q.map((e=>null==e?O:(0,h.A)(e,O,c)));const ee=!0===l&&null!==D?[...Array(Math.floor((c-O)/D)+1)].map(((e,t)=>({value:O+D*t}))):l||[],te=ee.map((e=>e.value)),{isFocusVisibleRef:ne,onBlur:re,onFocus:ie,ref:oe}=(0,p.A)(),[ae,se]=o.useState(-1),le=o.useRef(),ce=(0,f.A)(oe,le),ue=(0,f.A)(j,ce),de=e=>t=>{var n;const r=Number(t.currentTarget.getAttribute("data-index"));ie(t),!0===ne.current&&se(r),W(r),null==e||null==(n=e.onFocus)||n.call(e,t)},he=e=>t=>{var n;re(t),!1===ne.current&&se(-1),W(-1),null==e||null==(n=e.onBlur)||n.call(e,t)},pe=(e,t)=>{const n=Number(e.currentTarget.getAttribute("data-index")),r=Q[n],i=te.indexOf(r);let o=t;if(ee&&null==D){const e=te[te.length-1];o=o>e?e:ot=>{var n;if(null!==D){const e=Number(t.currentTarget.getAttribute("data-index")),n=Q[e];let r=null;("ArrowLeft"===t.key||"ArrowDown"===t.key)&&t.shiftKey||"PageDown"===t.key?r=Math.max(n-N,O):(("ArrowRight"===t.key||"ArrowUp"===t.key)&&t.shiftKey||"PageUp"===t.key)&&(r=Math.min(n+N,c)),null!==r&&(pe(t,r),t.preventDefault())}null==e||null==(n=e.onKeyDown)||n.call(e,t)};(0,g.A)((()=>{var e;r&&le.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[r]),r&&-1!==$&&G(-1),r&&-1!==ae&&se(-1);const ge=o.useRef();let me=R;s&&"horizontal"===R&&(me+="-reverse");const ye=({finger:e,move:t=!1})=>{const{current:n}=le,{width:r,height:i,bottom:o,left:s}=n.getBoundingClientRect();let l,u;if(l=0===me.indexOf("vertical")?(o-e.y)/i:(e.x-s)/r,-1!==me.indexOf("-reverse")&&(l=1-l),u=function(e,t,n){return(n-t)*e+t}(l,O,c),D)u=S(u,D,O);else{const e=x(te,u);u=te[e]}u=(0,h.A)(u,O,c);let d=0;if(J){d=t?ge.current:x(Q,u),a&&(u=(0,h.A)(u,Q[d-1]||-1/0,Q[d+1]||1/0));const e=u;u=C({values:Q,newValue:u,index:d}),a&&t||(d=u.indexOf(e),ge.current=d)}return{newValue:u,activeIndex:d}},ve=(0,m.A)((e=>{const t=w(e,B);if(!t)return;if(Y.current+=1,"mousemove"===e.type&&0===e.buttons)return void be(e);const{newValue:n,activeIndex:r}=ye({finger:t,move:!0});E({sliderRef:le,activeIndex:r,setActive:G}),X(n),!q&&Y.current>2&&H(!0),Z&&!_(n,K)&&Z(e,n,r)})),be=(0,m.A)((e=>{const t=w(e,B);if(H(!1),!t)return;const{newValue:n}=ye({finger:t,move:!0});G(-1),"touchend"===e.type&&W(-1),L&&L(e,n),B.current=void 0,we()})),xe=(0,m.A)((e=>{if(r)return;P()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(B.current=t.identifier);const n=w(e,B);if(!1!==n){const{newValue:t,activeIndex:r}=ye({finger:n});E({sliderRef:le,activeIndex:r,setActive:G}),X(t),Z&&!_(t,K)&&Z(e,t,r)}Y.current=0;const i=(0,u.A)(le.current);i.addEventListener("touchmove",ve,{passive:!0}),i.addEventListener("touchend",be,{passive:!0})})),we=o.useCallback((()=>{const e=(0,u.A)(le.current);e.removeEventListener("mousemove",ve),e.removeEventListener("mouseup",be),e.removeEventListener("touchmove",ve),e.removeEventListener("touchend",be)}),[be,ve]);o.useEffect((()=>{const{current:e}=le;return e.addEventListener("touchstart",xe,{passive:P()}),()=>{e.removeEventListener("touchstart",xe),we()}}),[we,xe]),o.useEffect((()=>{r&&we()}),[r,we]);const Ae=A(J?Q[0]:O,O,c),Se=A(Q[Q.length-1],O,c)-Ae,Ce=e=>t=>{var n;null==(n=e.onMouseLeave)||n.call(e,t),W(-1)};return{active:$,axis:me,axisProps:k,dragging:q,focusedThumbIndex:ae,getHiddenInputProps:(n={})=>{var o;const a=(0,v.h)(n),l={onChange:(u=a||{},e=>{var t;null==(t=u.onChange)||t.call(u,e),pe(e,e.target.valueAsNumber)}),onFocus:de(a||{}),onBlur:he(a||{}),onKeyDown:fe(a||{})};var u;const d=(0,i.A)({},a,l);return(0,i.A)({tabIndex:z,"aria-labelledby":t,"aria-orientation":R,"aria-valuemax":F(c),"aria-valuemin":F(O),name:I,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(o=e.step)?o:void 0,disabled:r},n,d,{style:(0,i.A)({},y,{direction:s?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(e={})=>{const t=(0,v.h)(e),n={onMouseDown:(o=t||{},e=>{var t;if(null==(t=o.onMouseDown)||t.call(o,e),r)return;if(e.defaultPrevented)return;if(0!==e.button)return;e.preventDefault();const n=w(e,B);if(!1!==n){const{newValue:t,activeIndex:r}=ye({finger:n});E({sliderRef:le,activeIndex:r,setActive:G}),X(t),Z&&!_(t,K)&&Z(e,t,r)}Y.current=0;const i=(0,u.A)(le.current);i.addEventListener("mousemove",ve,{passive:!0}),i.addEventListener("mouseup",be)})};var o;const a=(0,i.A)({},t,n);return(0,i.A)({},e,{ref:ue},a)},getThumbProps:(e={})=>{const t=(0,v.h)(e),n={onMouseOver:(r=t||{},e=>{var t;null==(t=r.onMouseOver)||t.call(r,e);const n=Number(e.currentTarget.getAttribute("data-index"));W(n)}),onMouseLeave:Ce(t||{})};var r;return(0,i.A)({},e,t,n)},marks:ee,open:U,range:J,rootRef:ue,trackLeap:Se,trackOffset:Ae,values:Q,getThumbStyle:e=>({pointerEvents:-1!==$&&$!==e?"none":void 0})}}var M=n(59015),L=n(39160),R=n(99191),j=n(58990),F=n(57088);const D=e=>!e||!(0,l.g)(e);var N=n(19508),z=n(5007),V=n(24115);function B(e){return(0,V.Ay)("MuiSlider",e)}const $=(0,z.A)("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var G=n(97282);const U=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"],W=(0,R.h)("MuiSlider");function q(e){return e}const H=(0,j.Ay)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${(0,N.A)(n.color)}`],"medium"!==n.size&&t[`size${(0,N.A)(n.size)}`],n.marked&&t.marked,"vertical"===n.orientation&&t.vertical,"inverted"===n.track&&t.trackInverted,!1===n.track&&t.trackFalse]}})((({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${$.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${$.dragging}`]:{[`& .${$.thumb}, & .${$.track}`]:{transition:"none"}},variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n;return(null!=(n=e.vars)?n:e).palette[t].main})).map((t=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}})),Y=(0,j.Ay)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),K=(0,j.Ay)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n;return(null!=(n=e.vars)?n:e).palette[t].main})).map((t=>({props:{color:t,track:"inverted"},style:(0,i.A)({},e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:(0,i.A)({backgroundColor:(0,M.a)(e.palette[t].main,.62),borderColor:(0,M.a)(e.palette[t].main,.62)},e.applyStyles("dark",{backgroundColor:(0,M.e$)(e.palette[t].main,.5)}),e.applyStyles("dark",{borderColor:(0,M.e$)(e.palette[t].main,.5)})))})))]}})),X=(0,j.Ay)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${(0,N.A)(n.color)}`],"medium"!==n.size&&t[`thumbSize${(0,N.A)(n.size)}`]]}})((({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${$.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n;return(null!=(n=e.vars)?n:e).palette[t].main})).map((t=>({props:{color:t},style:{[`&:hover, &.${$.focusVisible}`]:(0,i.A)({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${(0,M.X4)(e.palette[t].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${$.active}`]:(0,i.A)({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)}`}:{boxShadow:`0px 0px 0px 14px ${(0,M.X4)(e.palette[t].main,.16)}`})}})))]}})),Z=(0,j.Ay)((function(e){const{children:t,className:n,value:r}=e,i=(e=>{const{open:t}=e;return{offset:(0,a.A)(t&&$.valueLabelOpen),circle:$.valueLabelCircle,label:$.valueLabelLabel}})(e);return t?o.cloneElement(t,{className:(0,a.A)(t.props.className)},(0,G.jsxs)(o.Fragment,{children:[t.props.children,(0,G.jsx)("span",{className:(0,a.A)(i.offset,n),"aria-hidden":!0,children:(0,G.jsx)("span",{className:i.circle,children:(0,G.jsx)("span",{className:i.label,children:r})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((({theme:e})=>(0,i.A)({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${$.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${$.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),J=(0,j.Ay)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,F.A)(e)&&"markActive"!==e,overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})((({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),Q=(0,j.Ay)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,F.A)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((({theme:e})=>(0,i.A)({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),ee=({children:e})=>e,te=o.forwardRef((function(e,t){var n,u,d,h,p,f,g,m,y,v,b,x,w,S,C,E,_,k,T,O,P,M,R,j;const F=W({props:e,name:"MuiSlider"}),z=(0,L.I)(),{"aria-label":V,"aria-valuetext":$,"aria-labelledby":te,component:ne="span",components:re={},componentsProps:ie={},color:oe="primary",classes:ae,className:se,disableSwap:le=!1,disabled:ce=!1,getAriaLabel:ue,getAriaValueText:de,marks:he=!1,max:pe=100,min:fe=0,orientation:ge="horizontal",shiftStep:me=10,size:ye="medium",step:ve=1,scale:be=q,slotProps:xe,slots:we,track:Ae="normal",valueLabelDisplay:Se="off",valueLabelFormat:Ce=q}=F,Ee=(0,r.A)(F,U),_e=(0,i.A)({},F,{isRtl:z,max:pe,min:fe,classes:ae,disabled:ce,disableSwap:le,orientation:ge,marks:he,color:oe,size:ye,step:ve,shiftStep:me,scale:be,track:Ae,valueLabelDisplay:Se,valueLabelFormat:Ce}),{axisProps:ke,getRootProps:Te,getHiddenInputProps:Oe,getThumbProps:Pe,open:Ie,active:Me,axis:Le,focusedThumbIndex:Re,range:je,dragging:Fe,marks:De,values:Ne,trackOffset:ze,trackLeap:Ve,getThumbStyle:Be}=I((0,i.A)({},_e,{rootRef:t}));_e.marked=De.length>0&&De.some((e=>e.label)),_e.dragging=Fe,_e.focusedThumbIndex=Re;const $e=(e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:a,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked","vertical"===i&&"vertical","inverted"===o&&"trackInverted",!1===o&&"trackFalse",s&&`color${(0,N.A)(s)}`,l&&`size${(0,N.A)(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${(0,N.A)(l)}`,s&&`thumbColor${(0,N.A)(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,c.A)(u,B,a)})(_e),Ge=null!=(n=null!=(u=null==we?void 0:we.root)?u:re.Root)?n:H,Ue=null!=(d=null!=(h=null==we?void 0:we.rail)?h:re.Rail)?d:Y,We=null!=(p=null!=(f=null==we?void 0:we.track)?f:re.Track)?p:K,qe=null!=(g=null!=(m=null==we?void 0:we.thumb)?m:re.Thumb)?g:X,He=null!=(y=null!=(v=null==we?void 0:we.valueLabel)?v:re.ValueLabel)?y:Z,Ye=null!=(b=null!=(x=null==we?void 0:we.mark)?x:re.Mark)?b:J,Ke=null!=(w=null!=(S=null==we?void 0:we.markLabel)?S:re.MarkLabel)?w:Q,Xe=null!=(C=null!=(E=null==we?void 0:we.input)?E:re.Input)?C:"input",Ze=null!=(_=null==xe?void 0:xe.root)?_:ie.root,Je=null!=(k=null==xe?void 0:xe.rail)?k:ie.rail,Qe=null!=(T=null==xe?void 0:xe.track)?T:ie.track,et=null!=(O=null==xe?void 0:xe.thumb)?O:ie.thumb,tt=null!=(P=null==xe?void 0:xe.valueLabel)?P:ie.valueLabel,nt=null!=(M=null==xe?void 0:xe.mark)?M:ie.mark,rt=null!=(R=null==xe?void 0:xe.markLabel)?R:ie.markLabel,it=null!=(j=null==xe?void 0:xe.input)?j:ie.input,ot=(0,s.Q)({elementType:Ge,getSlotProps:Te,externalSlotProps:Ze,externalForwardedProps:Ee,additionalProps:(0,i.A)({},D(Ge)&&{as:ne}),ownerState:(0,i.A)({},_e,null==Ze?void 0:Ze.ownerState),className:[$e.root,se]}),at=(0,s.Q)({elementType:Ue,externalSlotProps:Je,ownerState:_e,className:$e.rail}),st=(0,s.Q)({elementType:We,externalSlotProps:Qe,additionalProps:{style:(0,i.A)({},ke[Le].offset(ze),ke[Le].leap(Ve))},ownerState:(0,i.A)({},_e,null==Qe?void 0:Qe.ownerState),className:$e.track}),lt=(0,s.Q)({elementType:qe,getSlotProps:Pe,externalSlotProps:et,ownerState:(0,i.A)({},_e,null==et?void 0:et.ownerState),className:$e.thumb}),ct=(0,s.Q)({elementType:He,externalSlotProps:tt,ownerState:(0,i.A)({},_e,null==tt?void 0:tt.ownerState),className:$e.valueLabel}),ut=(0,s.Q)({elementType:Ye,externalSlotProps:nt,ownerState:_e,className:$e.mark}),dt=(0,s.Q)({elementType:Ke,externalSlotProps:rt,ownerState:_e,className:$e.markLabel}),ht=(0,s.Q)({elementType:Xe,getSlotProps:Oe,externalSlotProps:it,ownerState:_e});return(0,G.jsxs)(Ge,(0,i.A)({},ot,{children:[(0,G.jsx)(Ue,(0,i.A)({},at)),(0,G.jsx)(We,(0,i.A)({},st)),De.filter((e=>e.value>=fe&&e.value<=pe)).map(((e,t)=>{const n=A(e.value,fe,pe),r=ke[Le].offset(n);let s;return s=!1===Ae?-1!==Ne.indexOf(e.value):"normal"===Ae&&(je?e.value>=Ne[0]&&e.value<=Ne[Ne.length-1]:e.value<=Ne[0])||"inverted"===Ae&&(je?e.value<=Ne[0]||e.value>=Ne[Ne.length-1]:e.value>=Ne[0]),(0,G.jsxs)(o.Fragment,{children:[(0,G.jsx)(Ye,(0,i.A)({"data-index":t},ut,!(0,l.g)(Ye)&&{markActive:s},{style:(0,i.A)({},r,ut.style),className:(0,a.A)(ut.className,s&&$e.markActive)})),null!=e.label?(0,G.jsx)(Ke,(0,i.A)({"aria-hidden":!0,"data-index":t},dt,!(0,l.g)(Ke)&&{markLabelActive:s},{style:(0,i.A)({},r,dt.style),className:(0,a.A)($e.markLabel,dt.className,s&&$e.markLabelActive),children:e.label})):null]},t)})),Ne.map(((e,t)=>{const n=A(e,fe,pe),r=ke[Le].offset(n),o="off"===Se?ee:He;return(0,G.jsx)(o,(0,i.A)({},!(0,l.g)(o)&&{valueLabelFormat:Ce,valueLabelDisplay:Se,value:"function"==typeof Ce?Ce(be(e),t):Ce,index:t,open:Ie===t||Me===t||"on"===Se,disabled:ce},ct,{children:(0,G.jsx)(qe,(0,i.A)({"data-index":t},lt,{className:(0,a.A)($e.thumb,lt.className,Me===t&&$e.active,Re===t&&$e.focusVisible),style:(0,i.A)({},r,Be(t),lt.style),children:(0,G.jsx)(Xe,(0,i.A)({"data-index":t,"aria-label":ue?ue(t):V,"aria-valuenow":be(e),"aria-labelledby":te,"aria-valuetext":de?de(be(e),t):$,value:Ne[t]},ht))}))}),t)}))]}))})),ne=te},41019:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(51559),i=n(73342),o=n(30538),a=n(87286),s=n(32829),l=n(19508),c=n(87507),u=n(58990),d=n(5007),h=n(24115);function p(e){return(0,h.Ay)("MuiSvgIcon",e)}(0,d.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var f=n(97282);const g=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],m=(0,u.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,l.A)(n.color)}`],t[`fontSize${(0,l.A)(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,c,u,d,h,p,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=e.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(h=(e.vars||e).palette)||null==(h=h[t.color])?void 0:h.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}})),y=o.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiSvgIcon"}),{children:u,className:d,color:h="inherit",component:y="svg",fontSize:v="medium",htmlColor:b,inheritViewBox:x=!1,titleAccess:w,viewBox:A="0 0 24 24"}=n,S=(0,i.A)(n,g),C=o.isValidElement(u)&&"svg"===u.type,E=(0,r.A)({},n,{color:h,component:y,fontSize:v,instanceFontSize:e.fontSize,inheritViewBox:x,viewBox:A,hasSvgAsChild:C}),_={};x||(_.viewBox=A);const k=(e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root","inherit"!==t&&`color${(0,l.A)(t)}`,`fontSize${(0,l.A)(n)}`]};return(0,s.A)(i,p,r)})(E);return(0,f.jsxs)(m,(0,r.A)({as:y,className:(0,a.A)(k.root,d),focusable:"false",color:b,"aria-hidden":!w||void 0,role:w?"img":void 0,ref:t},_,S,C&&u.props,{ownerState:E,children:[C?u.props.children:u,w?(0,f.jsx)("title",{children:w}):null]}))}));y.muiName="SvgIcon";const v=y},68599:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(59015),c=n(19508),u=n(15230),d=n(99191),h=n(58990),p=n(5007),f=n(24115);function g(e){return(0,f.Ay)("MuiSwitch",e)}const m=(0,p.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var y=n(97282);const v=["className","color","edge","size","sx"],b=(0,d.h)("MuiSwitch"),x=(0,h.Ay)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${(0,c.A)(n.edge)}`],t[`size${(0,c.A)(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${m.thumb}`]:{width:16,height:16},[`& .${m.switchBase}`]:{padding:4,[`&.${m.checked}`]:{transform:"translateX(16px)"}}}}]}),w=(0,h.Ay)(u.A,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${m.input}`]:t.input},"default"!==n.color&&t[`color${(0,c.A)(n.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${m.checked}`]:{transform:"translateX(20px)"},[`&.${m.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${m.checked} + .${m.track}`]:{opacity:.5},[`&.${m.disabled} + .${m.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${m.input}`]:{left:"-100%",width:"300%"}})),(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([t])=>({props:{color:t},style:{[`&.${m.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.X4)(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${m.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?(0,l.a)(e.palette[t].main,.62):(0,l.e$)(e.palette[t].main,.55)}`}},[`&.${m.checked} + .${m.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}})))]}))),A=(0,h.Ay)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),S=(0,h.Ay)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),C=o.forwardRef((function(e,t){const n=b({props:e,name:"MuiSwitch"}),{className:o,color:l="primary",edge:u=!1,size:d="medium",sx:h}=n,p=(0,r.A)(n,v),f=(0,i.A)({},n,{color:l,edge:u,size:d}),m=(e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:l}=e,u={root:["root",n&&`edge${(0,c.A)(n)}`,`size${(0,c.A)(r)}`],switchBase:["switchBase",`color${(0,c.A)(o)}`,a&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=(0,s.A)(u,g,t);return(0,i.A)({},t,d)})(f),C=(0,y.jsx)(S,{className:m.thumb,ownerState:f});return(0,y.jsxs)(x,{className:(0,a.A)(m.root,o),sx:h,ownerState:f,children:[(0,y.jsx)(w,(0,i.A)({type:"checkbox",icon:C,checkedIcon:C,ref:t,ownerState:f},p,{classes:(0,i.A)({},m,{root:m.switchBase})})),(0,y.jsx)(A,{className:m.track,ownerState:f})]})}))},76964:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(51559),i=n(73342),o=n(30538),a=n(87286),s=n(32829),l=n(5391),c=n(58990),u=n(87507),d=n(20553),h=n(81933),p=n(32951),f=n(5323),g=n(90645),m=n(45769),y=n(35246),v=n(5007),b=n(24115);function x(e){return(0,b.Ay)("MuiTextField",e)}(0,v.A)("MuiTextField",["root"]);var w=n(97282);const A=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],S={standard:d.A,filled:h.A,outlined:p.A},C=(0,c.Ay)(g.A,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),E=o.forwardRef((function(e,t){const n=(0,u.A)({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:c=!1,children:d,className:h,color:p="primary",defaultValue:g,disabled:v=!1,error:b=!1,FormHelperTextProps:E,fullWidth:_=!1,helperText:k,id:T,InputLabelProps:O,inputProps:P,InputProps:I,inputRef:M,label:L,maxRows:R,minRows:j,multiline:F=!1,name:D,onBlur:N,onChange:z,onFocus:V,placeholder:B,required:$=!1,rows:G,select:U=!1,SelectProps:W,type:q,value:H,variant:Y="outlined"}=n,K=(0,i.A)(n,A),X=(0,r.A)({},n,{autoFocus:c,color:p,disabled:v,error:b,fullWidth:_,multiline:F,required:$,select:U,variant:Y}),Z=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},x,t)})(X);const J={};"outlined"===Y&&(O&&void 0!==O.shrink&&(J.notched=O.shrink),J.label=L),U&&(W&&W.native||(J.id=void 0),J["aria-describedby"]=void 0);const Q=(0,l.A)(T),ee=k&&Q?`${Q}-helper-text`:void 0,te=L&&Q?`${Q}-label`:void 0,ne=S[Y],re=(0,w.jsx)(ne,(0,r.A)({"aria-describedby":ee,autoComplete:o,autoFocus:c,defaultValue:g,fullWidth:_,multiline:F,name:D,rows:G,maxRows:R,minRows:j,type:q,value:H,id:Q,inputRef:M,onBlur:N,onChange:z,onFocus:V,placeholder:B,inputProps:P},J,I));return(0,w.jsxs)(C,(0,r.A)({className:(0,a.A)(Z.root,h),disabled:v,error:b,fullWidth:_,ref:t,required:$,color:p,variant:Y,ownerState:X},K,{children:[null!=L&&""!==L&&(0,w.jsx)(f.A,(0,r.A)({htmlFor:Q,id:te},O,{children:L})),U?(0,w.jsx)(y.A,(0,r.A)({"aria-describedby":ee,id:Q,labelId:te,value:H,input:re},W,{children:d})):re,k&&(0,w.jsx)(m.A,(0,r.A)({id:ee},E,{children:k}))]}))}))},91031:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(25779),l=n(32829),c=n(58990),u=n(87507),d=n(19508),h=n(5007),p=n(24115);function f(e){return(0,p.Ay)("MuiTypography",e)}(0,h.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var g=n(97282);const m=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],y=(0,c.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${(0,d.A)(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>(0,i.A)({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),v={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},x=o.forwardRef((function(e,t){const n=(0,u.A)({props:e,name:"MuiTypography"}),o=(e=>b[e]||e)(n.color),c=(0,s.A)((0,i.A)({},n,{color:o})),{align:h="inherit",className:p,component:x,gutterBottom:w=!1,noWrap:A=!1,paragraph:S=!1,variant:C="body1",variantMapping:E=v}=c,_=(0,r.A)(c,m),k=(0,i.A)({},c,{align:h,color:o,className:p,component:x,gutterBottom:w,noWrap:A,paragraph:S,variant:C,variantMapping:E}),T=x||(S?"p":E[C]||v[C])||"span",O=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,"inherit"!==e.align&&`align${(0,d.A)(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return(0,l.A)(s,f,a)})(k);return(0,g.jsx)(y,(0,i.A)({as:T,ref:t,ownerState:k,className:(0,a.A)(O.root,p)},_))}))},15230:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(19508),c=n(58990),u=n(49968),d=n(58245),h=n(39230),p=n(92004),f=n(5007),g=n(24115);function m(e){return(0,g.Ay)("PrivateSwitchBase",e)}(0,f.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var y=n(97282);const v=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],b=(0,c.Ay)(p.A)((({ownerState:e})=>(0,i.A)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),x=(0,c.Ay)("input",{shouldForwardProp:u.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),w=o.forwardRef((function(e,t){const{autoFocus:n,checked:o,checkedIcon:c,className:u,defaultChecked:p,disabled:f,disableFocusRipple:g=!1,edge:w=!1,icon:A,id:S,inputProps:C,inputRef:E,name:_,onBlur:k,onChange:T,onFocus:O,readOnly:P,required:I=!1,tabIndex:M,type:L,value:R}=e,j=(0,r.A)(e,v),[F,D]=(0,d.A)({controlled:o,default:Boolean(p),name:"SwitchBase",state:"checked"}),N=(0,h.A)();let z=f;N&&void 0===z&&(z=N.disabled);const V="checkbox"===L||"radio"===L,B=(0,i.A)({},e,{checked:F,disabled:z,disableFocusRipple:g,edge:w}),$=(e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${(0,l.A)(i)}`],input:["input"]};return(0,s.A)(o,m,t)})(B);return(0,y.jsxs)(b,(0,i.A)({component:"span",className:(0,a.A)($.root,u),centerRipple:!0,focusRipple:!g,disabled:z,tabIndex:null,role:void 0,onFocus:e=>{O&&O(e),N&&N.onFocus&&N.onFocus(e)},onBlur:e=>{k&&k(e),N&&N.onBlur&&N.onBlur(e)},ownerState:B,ref:t},j,{children:[(0,y.jsx)(x,(0,i.A)({autoFocus:n,checked:o,defaultChecked:p,className:$.input,disabled:z,id:V?S:void 0,name:_,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;D(t),T&&T(e,t)},readOnly:P,ref:E,required:I,ownerState:B,tabIndex:M,type:L},"checkbox"===L&&void 0===R?{}:{value:R},C)),F?c:A]}))}))},69216:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});n(30538);var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},333:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(51559),i=n(73342),o=n(30538),a=n(35403),s=n(67139),l=n(5050),c=n(97282);const u=function(e){const{children:t,theme:n}=e,i=(0,a.A)(),u=o.useMemo((()=>{const e=null===i?n:function(e,t){if("function"==typeof t)return t(e);return(0,r.A)({},e,t)}(i,n);return null!=e&&(e[l.A]=null!==i),e}),[n,i]);return(0,c.jsx)(s.A.Provider,{value:u,children:t})};var d=n(18321),h=n(80187),p=n(39160);const f={};function g(e,t,n,i=!1){return o.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const a=n(o),s=e?(0,r.A)({},t,{[e]:a}):a;return i?()=>s:s}return e?(0,r.A)({},t,{[e]:n}):(0,r.A)({},t,n)}),[e,t,n,i])}const m=function(e){const{children:t,theme:n,themeId:r}=e,i=(0,h.A)(f),o=(0,a.A)()||f,s=g(r,i,n),l=g(r,o,n,!0),m="rtl"===s.direction;return(0,c.jsx)(u,{theme:l,children:(0,c.jsx)(d.T.Provider,{value:s,children:(0,c.jsx)(p.A,{value:m,children:t})})})};var y=n(38358);const v=["theme"];function b(e){let{theme:t}=e,n=(0,i.A)(e,v);const o=t[y.A];return(0,c.jsx)(m,(0,r.A)({},n,{themeId:o?y.A:void 0,theme:o||t}))}},76014:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var r=n(51559),i=n(73342),o=n(88207),a=n(43271),s=n(6856),l=n(22311),c=n(84657);var u=n(59015);const d={black:"#000",white:"#fff"},h={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},f={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},v={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=["mode","contrastThreshold","tonalOffset"],x={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function A(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.a)(e.main,i):"dark"===t&&(e.dark=(0,u.e$)(e.main,o)))}function S(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,l=(0,i.A)(e,b),c=e.primary||function(e="light"){return"dark"===e?{main:m[200],light:m[50],dark:m[400]}:{main:m[700],light:m[400],dark:m[800]}}(t),S=e.secondary||function(e="light"){return"dark"===e?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(t),C=e.error||function(e="light"){return"dark"===e?{main:f[500],light:f[300],dark:f[700]}:{main:f[700],light:f[400],dark:f[800]}}(t),E=e.info||function(e="light"){return"dark"===e?{main:y[400],light:y[300],dark:y[700]}:{main:y[700],light:y[500],dark:y[900]}}(t),_=e.success||function(e="light"){return"dark"===e?{main:v[400],light:v[300],dark:v[700]}:{main:v[800],light:v[500],dark:v[900]}}(t),k=e.warning||function(e="light"){return"dark"===e?{main:g[400],light:g[300],dark:g[700]}:{main:"#ed6c02",light:g[500],dark:g[900]}}(t);function T(e){return(0,u.eM)(e,w.text.primary)>=n?w.text.primary:x.text.primary}const O=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:a=700})=>{if(!(e=(0,r.A)({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error((0,o.A)(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error((0,o.A)(12,t?` (${t})`:"",JSON.stringify(e.main)));return A(e,"light",i,s),A(e,"dark",a,s),e.contrastText||(e.contrastText=T(e.main)),e},P={dark:w,light:x};return(0,a.A)((0,r.A)({common:(0,r.A)({},d),mode:t,primary:O({color:c,name:"primary"}),secondary:O({color:S,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:O({color:C,name:"error"}),warning:O({color:k,name:"warning"}),info:O({color:E,name:"info"}),success:O({color:_,name:"success"}),grey:h,contrastThreshold:n,getContrastText:T,augmentColor:O,tonalOffset:s},P[t]),l)}const C=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const E={textTransform:"uppercase"},_='"Roboto", "Helvetica", "Arial", sans-serif';function k(e,t){const n="function"==typeof t?t(e):t,{fontFamily:o=_,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:p,pxToRem:f}=n,g=(0,i.A)(n,C);const m=s/14,y=f||(e=>e/h*m+"rem"),v=(e,t,n,i,a)=>{return(0,r.A)({fontFamily:o,fontWeight:e,fontSize:y(t),lineHeight:n},o===_?{letterSpacing:(s=i/t,Math.round(1e5*s)/1e5)+"em"}:{},a,p);var s},b={h1:v(l,96,1.167,-1.5),h2:v(l,60,1.2,-.5),h3:v(c,48,1.167,0),h4:v(c,34,1.235,.25),h5:v(c,24,1.334,0),h6:v(u,20,1.6,.15),subtitle1:v(c,16,1.75,.15),subtitle2:v(u,14,1.57,.1),body1:v(c,16,1.5,.15),body2:v(c,14,1.43,.15),button:v(u,14,1.75,.4,E),caption:v(c,12,1.66,.4),overline:v(c,12,2.66,1,E),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.A)((0,r.A)({htmlFontSize:h,pxToRem:y,fontFamily:o,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},b),g,{clone:!1})}function T(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const O=["none",T(0,2,1,-1,0,1,1,0,0,1,3,0),T(0,3,1,-2,0,2,2,0,0,1,5,0),T(0,3,3,-2,0,3,4,0,0,1,8,0),T(0,2,4,-1,0,4,5,0,0,1,10,0),T(0,3,5,-1,0,5,8,0,0,1,14,0),T(0,3,5,-1,0,6,10,0,0,1,18,0),T(0,4,5,-2,0,7,10,1,0,2,16,1),T(0,5,5,-3,0,8,10,1,0,3,14,2),T(0,5,6,-3,0,9,12,1,0,3,16,2),T(0,6,6,-3,0,10,14,1,0,4,18,3),T(0,6,7,-4,0,11,15,1,0,4,20,3),T(0,7,8,-4,0,12,17,2,0,5,22,4),T(0,7,8,-4,0,13,19,2,0,5,24,4),T(0,7,9,-4,0,14,21,2,0,5,26,4),T(0,8,9,-5,0,15,22,2,0,6,28,5),T(0,8,10,-5,0,16,24,2,0,6,30,5),T(0,8,11,-5,0,17,26,2,0,6,32,5),T(0,9,11,-5,0,18,28,2,0,7,34,6),T(0,9,12,-6,0,19,29,2,0,7,36,6),T(0,10,13,-6,0,20,31,3,0,8,38,7),T(0,10,13,-6,0,21,33,3,0,8,40,7),T(0,10,14,-6,0,22,35,3,0,8,42,7),T(0,11,14,-7,0,23,36,3,0,9,44,8),T(0,11,15,-7,0,24,38,3,0,9,46,8)];var P=n(2297);const I={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},M=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function L(e={},...t){const{mixins:n={},palette:u={},transitions:d={},typography:h={}}=e,p=(0,i.A)(e,M);if(e.vars)throw new Error((0,o.A)(18));const f=S(u),g=(0,c.A)(e);let m=(0,a.A)(g,{mixins:(y=g.breakpoints,v=n,(0,r.A)({toolbar:{minHeight:56,[y.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[y.up("sm")]:{minHeight:64}}},v)),palette:f,shadows:O.slice(),typography:k(f,h),transitions:(0,P.Ay)(d),zIndex:(0,r.A)({},I)});var y,v;return m=(0,a.A)(m,p),m=t.reduce(((e,t)=>(0,a.A)(e,t)),m),m.unstable_sxConfig=(0,r.A)({},s.A,null==p?void 0:p.unstable_sxConfig),m.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},m}const R=L},2297:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,p0:()=>s});var r=n(73342),i=n(51559);const o=["duration","easing","delay"],a={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return`${Math.round(e)}ms`}function c(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function u(e){const t=(0,i.A)({},a,e.easing),n=(0,i.A)({},s,e.duration);return(0,i.A)({getAutoHeightDuration:c,create:(e=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:c=0}=i;(0,r.A)(i,o);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof a?a:l(a)} ${s} ${"string"==typeof c?c:l(c)}`)).join(",")}},e,{easing:t,duration:n})}},75947:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(76014).A)()},38358:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="$$material"},49968:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(57088);const i=e=>(0,r.A)(e)&&"classes"!==e},57088:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},58990:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r=n(15841),i=n(75947),o=n(38358),a=n(49968);const s=(0,r.Ay)({themeId:o.A,defaultTheme:i.A,rootShouldForwardProp:a.A})},94145:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});n(30538);var r=n(38382),i=n(75947),o=n(38358);function a(){const e=(0,r.A)(i.A);return e[o.A]||e}},87507:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(92775),i=n(75947),o=n(38358);function a({props:e,name:t}){return(0,r.A)({props:e,name:t,defaultTheme:i.A,themeId:o.A})}},97880:(e,t,n)=>{"use strict";n.d(t,{c:()=>i,q:()=>r});const r=e=>e.scrollTop;function i(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof i?i:i[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof o?o[t.mode]:o,delay:a.transitionDelay}}},19508:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(2681).A},17416:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(96339).A},65127:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(51559),i=n(30538),o=n(41019),a=n(97282);function s(e,t){function n(n,i){return(0,a.jsx)(o.A,(0,r.A)({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return n.muiName=o.A.muiName,i.memo(i.forwardRef(n))}},44545:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(6995).A},90202:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>i.A,createChainedFunction:()=>o.A,createSvgIcon:()=>a.A,debounce:()=>s.A,deprecatedPropType:()=>l,isMuiElement:()=>c.A,ownerDocument:()=>u.A,ownerWindow:()=>d.A,requirePropFactory:()=>h,setRef:()=>p,unstable_ClassNameGenerator:()=>w,unstable_useEnhancedEffect:()=>f.A,unstable_useId:()=>g.A,unsupportedProp:()=>m,useControlled:()=>y.A,useEventCallback:()=>v.A,useForkRef:()=>b.A,useIsFocusVisible:()=>x.A});var r=n(58337),i=n(19508),o=n(17416),a=n(65127),s=n(44545);const l=function(e,t){return()=>null};var c=n(75361),u=n(8018),d=n(38579);n(51559);const h=function(e,t){return()=>null};const p=n(54175).A;var f=n(65420),g=n(35566);const m=function(e,t,n,r,i){return null};var y=n(58245),v=n(36064),b=n(47258),x=n(65741);const w={configure:e=>{r.A.configure(e)}}},75361:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(30538);const i=function(e,t){var n,i;return r.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(i=e.type)||null==(i=i._payload)||null==(i=i.value)?void 0:i.muiName)}},8018:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(74311).A},38579:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(56023).A},58245:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(63095).A},65420:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(43107).A},36064:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(18605).A},47258:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(18029).A},35566:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(5391).A},65741:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(73499).A},99191:(e,t,n)=>{"use strict";n.d(t,{h:()=>i});var r=n(87507);function i(e){return r.A}},5050:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__"},67139:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(30538).createContext(null)},35403:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(30538),i=n(67139);function o(){return r.useContext(i.A)}},78790:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});n(30538);var r=n(5345),i=n(97282);function o(e){const{styles:t,defaultTheme:n={}}=e,o="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return(0,i.jsx)(r.mL,{styles:o})}},29224:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});n(30538);var r=n(18321),i=n(12347),o=n(97282);let a;function s(e){const{injectFirst:t,children:n}=e;return t&&a?(0,o.jsx)(r.C,{value:a,children:n}):n}"object"==typeof document&&(a=(0,i.A)({key:"css",prepend:!0}))},77753:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalStyles:()=>x.A,StyledEngineProvider:()=>b.A,ThemeContext:()=>l.T,css:()=>v.AH,default:()=>w,internal_processStyles:()=>A,keyframes:()=>v.i7});var r=n(51559),i=n(30538),o=n(48998),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,o.A)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(18321),c=n(40106),u=n(93372),d=n(88946),h=s,p=function(e){return"theme"!==e},f=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?h:p},g=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,c.SF)(t,n,r),(0,d.s)((function(){return(0,c.sk)(t,n,r)})),null},y=function e(t,n){var o,a,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(o=n.label,a=n.target);var h=g(t,n,s),p=h||f(d),y=!p("as");return function(){var v=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&b.push("label:"+o+";"),null==v[0]||void 0===v[0].raw)b.push.apply(b,v);else{0,b.push(v[0][0]);for(var x=v.length,w=1;w{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},59015:(e,t,n)=>{"use strict";var r=n(43501);t.X4=p,t.e$=f,t.tL=m,t.eM=function(e,t){const n=h(e),r=h(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.a=g;var i=r(n(25286)),o=r(n(76772));function a(e,t=0,n=1){return(0,o.default)(e,t,n)}function s(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(s(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,i.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,i.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const c=e=>{const t=l(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function u(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function d(e){e=l(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),u({type:s,values:c})}function h(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(d(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function p(e,t){return e=l(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,u(e)}function f(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function g(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return u(e)}function m(e,t=.15){return h(e)>.5?f(e,t):g(e,t)}},15841:(e,t,n)=>{"use strict";var r=n(43501);t.Ay=function(e={}){const{themeId:t,defaultTheme:n=g,rootShouldForwardProp:r=f,slotShouldForwardProp:l=f}=e,u=e=>(0,c.default)((0,i.default)({},e,{theme:y((0,i.default)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,(e,c={})=>{(0,a.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:p,skipVariantsResolver:g,skipSx:x,overridesResolver:w=v(m(p))}=c,A=(0,o.default)(c,h),S=void 0!==g?g:p&&"Root"!==p&&"root"!==p||!1,C=x||!1;let E=f;"Root"===p||"root"===p?E=r:p?E=l:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(E=void 0);const _=(0,a.default)(e,(0,i.default)({shouldForwardProp:E,label:undefined},A)),k=e=>"function"==typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?r=>b(e,(0,i.default)({},r,{theme:y({theme:r.theme,defaultTheme:n,themeId:t})})):e,T=(r,...o)=>{let a=k(r);const s=o?o.map(k):[];d&&w&&s.push((e=>{const r=y((0,i.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[d]||!r.components[d].styleOverrides)return null;const o=r.components[d].styleOverrides,a={};return Object.entries(o).forEach((([t,n])=>{a[t]=b(n,(0,i.default)({},e,{theme:r}))})),w(e,a)})),d&&!S&&s.push((e=>{var r;const o=y((0,i.default)({},e,{defaultTheme:n,themeId:t}));return b({variants:null==o||null==(r=o.components)||null==(r=r[d])?void 0:r.variants},(0,i.default)({},e,{theme:o}))})),C||s.push(u);const l=s.length-o.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=_(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return _.withConfig&&(T.withConfig=_.withConfig),T}};var i=r(n(52305)),o=r(n(16112)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(77753)),s=n(82629),l=(r(n(8295)),r(n(63526)),r(n(21050))),c=r(n(4725));const u=["ownerState"],d=["variants"],h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function f(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const g=(0,l.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function y({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function v(e){return e?(t,n)=>n[e]:null}function b(e,t){let{ownerState:n}=t,r=(0,o.default)(t,u);const a="function"==typeof e?e((0,i.default)({ownerState:n},r)):e;if(Array.isArray(a))return a.flatMap((e=>b(e,(0,i.default)({ownerState:n},r))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,o.default)(a,d);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,i.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,i.default)({ownerState:n},r,n)):e.style))})),t}return a}},39160:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,I:()=>c});var r=n(51559),i=n(73342),o=n(30538),a=n(97282);const s=["value"],l=o.createContext();const c=()=>{const e=o.useContext(l);return null!=e&&e},u=function(e){let{value:t}=e,n=(0,i.A)(e,s);return(0,a.jsx)(l.Provider,(0,r.A)({value:null==t||t},n))}},63496:(e,t,n)=>{"use strict";n.d(t,{EU:()=>s,NI:()=>a,iZ:()=>c,kW:()=>u,vf:()=>l,zu:()=>i});var r=n(43271);const i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${i[e]}px)`};function a(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||o;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"==typeof t){const e=r.breakpoints||o;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||i).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function s(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e,...t){const n=s(e),i=[n,...t].reduce(((e,t)=>(0,r.A)(e,t)),{});return l(Object.keys(n),i)}function u({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r{null!=e[t]&&(n[t]=!0)})),n}(e,t),i=Object.keys(r);if(0===i.length)return e;let o;return i.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[o],o=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[o],o=n):t[n]=e,t)),{})}},41795:(e,t,n)=>{"use strict";n.d(t,{X4:()=>l,a:()=>u,e$:()=>c});var r=n(88207),i=n(75031);function o(e,t=0,n=1){return(0,i.A)(e,t,n)}function a(e){if(e.type)return e;if("#"===e.charAt(0))return a(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.A)(9,e));let i,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),i=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,r.A)(10,i))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:i}}function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e,t){return e=a(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function c(e,t){if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function u(e,t){if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}},10380:(e,t,n)=>{"use strict";function r(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}n.d(t,{A:()=>r})},99314:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(73342),i=n(51559);const o=["values","unit","step"],a=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,i.A)({},e,{[t.key]:t.val})),{})};function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5}=e,l=(0,r.A)(e,o),c=a(t),u=Object.keys(c);function d(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function h(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-s/100}${n})`}function p(e,r){const i=u.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[u[i]]?t[u[i]]:r)-s/100}${n})`}return(0,i.A)({keys:u,values:c,up:d,down:h,between:p,only:function(e){return u.indexOf(e)+1{"use strict";n.d(t,{A:()=>p});var r=n(51559),i=n(73342),o=n(43271),a=n(99314);const s={borderRadius:4};var l=n(3820);var c=n(22311),u=n(6856),d=n(10380);const h=["breakpoints","palette","spacing","shape"];const p=function(e={},...t){const{breakpoints:n={},palette:p={},spacing:f,shape:g={}}=e,m=(0,i.A)(e,h),y=(0,a.A)(n),v=function(e=8){if(e.mui)return e;const t=(0,l.LX)({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(f);let b=(0,o.A)({breakpoints:y,direction:"ltr",components:{},palette:(0,r.A)({mode:"light"},p),spacing:v,shape:(0,r.A)({},s,g)},m);return b.applyStyles=d.A,b=t.reduce(((e,t)=>(0,o.A)(e,t)),b),b.unstable_sxConfig=(0,r.A)({},u.A,null==m?void 0:m.unstable_sxConfig),b.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},b}},21050:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,private_createBreakpoints:()=>i.A,unstable_applyStyles:()=>o.A});var r=n(84657),i=n(99314),o=n(10380)},62648:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(43271);const i=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},3820:(e,t,n)=>{"use strict";n.d(t,{LX:()=>f,MA:()=>p,_W:()=>g,Lc:()=>v,Ms:()=>b});var r=n(63496),i=n(44197),o=n(62648);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=a[t],i=s[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],h=[...u,...d];function p(e,t,n,r){var o;const a=null!=(o=(0,i.Yn)(e,t,!1))?o:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function f(e){return p(e,"spacing",8)}function g(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function m(e,t,n,i){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=g(t,n),e)),{})}(c(n),i),a=e[n];return(0,r.NI)(e,a,o)}function y(e,t){const n=f(e.theme);return Object.keys(e).map((r=>m(e,t,r,n))).reduce(o.A,{})}function v(e){return y(e,u)}function b(e){return y(e,d)}function x(e){return y(e,h)}v.propTypes={},v.filterProps=u,b.propTypes={},b.filterProps=d,x.propTypes={},x.filterProps=h},44197:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,BO:()=>a,Yn:()=>o});var r=n(2681),i=n(63496);function o(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:o(e,n)||r,t&&(i=t(i,r,e)),i}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=o(e.theme,s)||{};return(0,i.NI)(e,c,(e=>{let i=a(u,l,e);return e===i&&"string"==typeof e&&(i=a(u,l,`${t}${"default"===e?"":(0,r.A)(e)}`,e)),!1===n?i:{[n]:i}}))};return c.propTypes={},c.filterProps=[t],c}},6856:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var r=n(3820),i=n(44197),o=n(62648);const a=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?(0,o.A)(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n};var s=n(63496);function l(e){return"number"!=typeof e?e:`${e}px solid`}function c(e,t){return(0,i.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),h=c("borderRight",l),p=c("borderBottom",l),f=c("borderLeft",l),g=c("borderColor"),m=c("borderTopColor"),y=c("borderRightColor"),v=c("borderBottomColor"),b=c("borderLeftColor"),x=c("outline",l),w=c("outlineColor"),A=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r._W)(t,e)});return(0,s.NI)(e,e.borderRadius,n)}return null};A.propTypes={},A.filterProps=["borderRadius"];a(u,d,h,p,f,g,m,y,v,b,A,x,w);const S=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.MA)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r._W)(t,e)});return(0,s.NI)(e,e.gap,n)}return null};S.propTypes={},S.filterProps=["gap"];const C=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.MA)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.columnGap,n)}return null};C.propTypes={},C.filterProps=["columnGap"];const E=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.MA)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.rowGap,n)}return null};E.propTypes={},E.filterProps=["rowGap"];a(S,C,E,(0,i.Ay)({prop:"gridColumn"}),(0,i.Ay)({prop:"gridRow"}),(0,i.Ay)({prop:"gridAutoFlow"}),(0,i.Ay)({prop:"gridAutoColumns"}),(0,i.Ay)({prop:"gridAutoRows"}),(0,i.Ay)({prop:"gridTemplateColumns"}),(0,i.Ay)({prop:"gridTemplateRows"}),(0,i.Ay)({prop:"gridTemplateAreas"}),(0,i.Ay)({prop:"gridArea"}));function _(e,t){return"grey"===t?t:e}a((0,i.Ay)({prop:"color",themeKey:"palette",transform:_}),(0,i.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_}),(0,i.Ay)({prop:"backgroundColor",themeKey:"palette",transform:_}));function k(e){return e<=1&&0!==e?100*e+"%":e}const T=(0,i.Ay)({prop:"width",transform:k}),O=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s.zu[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:k(t)}};return(0,s.NI)(e,e.maxWidth,t)}return null};O.filterProps=["maxWidth"];const P=(0,i.Ay)({prop:"minWidth",transform:k}),I=(0,i.Ay)({prop:"height",transform:k}),M=(0,i.Ay)({prop:"maxHeight",transform:k}),L=(0,i.Ay)({prop:"minHeight",transform:k}),R=((0,i.Ay)({prop:"size",cssProperty:"width",transform:k}),(0,i.Ay)({prop:"size",cssProperty:"height",transform:k}),a(T,O,P,I,M,L,(0,i.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:A},color:{themeKey:"palette",transform:_},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_},backgroundColor:{themeKey:"palette",transform:_},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms},paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:S},rowGap:{style:E},columnGap:{style:C},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:k},maxWidth:{style:O},minWidth:{transform:k},height:{transform:k},maxHeight:{transform:k},minHeight:{transform:k},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},25779:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(51559),i=n(73342),o=n(43271),a=n(6856);const s=["sx"],l=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:a.A;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function c(e){const{sx:t}=e,n=(0,i.A)(e,s),{systemProps:a,otherProps:c}=l(n);let u;return u=Array.isArray(t)?[a,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return(0,o.Q)(n)?(0,r.A)({},a,n):a}:(0,r.A)({},a,t),(0,r.A)({},c,{sx:u})}},4725:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,extendSxProp:()=>i.A,unstable_createStyleFunctionSx:()=>r.k,unstable_defaultSxConfig:()=>o.A});var r=n(22311),i=n(25779),o=n(6856)},22311:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,k:()=>l});var r=n(2681),i=n(62648),o=n(44197),a=n(63496),s=n(6856);function l(){function e(e,t,n,i){const s={[e]:t,theme:n},l=i[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:h}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const p=(0,o.Yn)(n,u)||{};if(h)return h(s);return(0,a.NI)(s,t,(t=>{let n=(0,o.BO)(p,d,t);return t===n&&"string"==typeof t&&(n=(0,o.BO)(p,d,`${e}${"default"===t?"":(0,r.A)(t)}`,t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:o,theme:l={}}=n||{};if(!o)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.A;function u(n){let r=n;if("function"==typeof n)r=n(l);else if("object"!=typeof n)return n;if(!r)return null;const o=(0,a.EU)(l.breakpoints),s=Object.keys(o);let u=o;return Object.keys(r).forEach((n=>{const o=(s=r[n],d=l,"function"==typeof s?s(d):s);var s,d;if(null!=o)if("object"==typeof o)if(c[n])u=(0,i.A)(u,e(n,o,l,c));else{const e=(0,a.NI)({theme:l},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?u=(0,i.A)(u,e):u[n]=t({sx:o,theme:l})}else u=(0,i.A)(u,e(n,o,l,c))})),(0,a.vf)(s,u)}return Array.isArray(o)?o.map(u):u(o)}}const c=l();c.filterProps=["sx"];const u=c},6467:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>d});var i=n(30538),o=n(43107),a=n(17112),s=n(80187);function l(e,t,n,r,a){const[s,l]=i.useState((()=>a&&n?n(e).matches:r?r(e).matches:t));return(0,o.A)((()=>{let t=!0;if(!n)return;const r=n(e),i=()=>{t&&l(r.matches)};return i(),r.addListener(i),()=>{t=!1,r.removeListener(i)}}),[e,n]),s}const c=(r||(r=n.t(i,2))).useSyncExternalStore;function u(e,t,n,r,o){const a=i.useCallback((()=>t),[t]),s=i.useMemo((()=>{if(o&&n)return()=>n(e).matches;if(null!==r){const{matches:t}=r(e);return()=>t}return a}),[a,e,r,o,n]),[l,u]=i.useMemo((()=>{if(null===n)return[a,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[a,n,e]);return c(u,l,s)}function d(e,t={}){const n=(0,s.A)(),r="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:i=!1,matchMedia:o=(r?window.matchMedia:null),ssrMatchMedia:d=null,noSsr:h=!1}=(0,a.A)({name:"MuiUseMediaQuery",props:t,theme:n});let p="function"==typeof e?e(n):e;p=p.replace(/^@media( ?)/m,"");return(void 0!==c?u:l)(p,i,o,d,h)}},38382:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(84657),i=n(80187);const o=(0,r.A)();const a=function(e=o){return(0,i.A)(e)}},17112:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7757);function i(e){const{theme:t,name:n,props:i}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.A)(t.components[n].defaultProps,i):i}},92775:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(17112),i=n(38382);function o({props:e,name:t,defaultTheme:n,themeId:o}){let a=(0,i.A)(n);o&&(a=a[o]||a);return(0,r.A)({theme:a,name:t,props:e})}},80187:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(30538),i=n(18321);const o=function(e=null){const t=r.useContext(i.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},98767:(e,t,n)=>{"use strict";t.A=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(30538)),i=n(77753);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}t.A=function(e=null){const t=r.useContext(i.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},58337:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r=e=>e,i=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},2681:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(88207);function i(e){if("string"!=typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},8295:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(2681)},75031:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}},76772:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(75031)},32829:(e,t,n)=>{"use strict";function r(e,t,n=void 0){const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{A:()=>r})},96339:(e,t,n)=>{"use strict";function r(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}n.d(t,{A:()=>r})},6995:(e,t,n)=>{"use strict";function r(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}n.d(t,{A:()=>r})},43271:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,Q:()=>i});var r=n(51559);function i(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function o(e){if(!i(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=o(e[n])})),t}function a(e,t,n={clone:!0}){const s=n.clone?(0,r.A)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(i(t[r])&&r in e&&i(e[r])?s[r]=a(e[r],t[r],n):n.clone?s[r]=i(t[r])?o(t[r]):t[r]:s[r]=t[r])})),s}},82629:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,isPlainObject:()=>r.Q});var r=n(43271)},88207:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;er})},25286:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(88207)},24115:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o,li:()=>i});var r=n(58337);const i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function o(e,t,n="Mui"){const o=i[t];return o?`${n}-${o}`:`${r.A.generate(e)}-${t}`}},5007:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(24115);function i(e,t,n="Mui"){const i={};return t.forEach((t=>{i[t]=(0,r.Ay)(e,t,n)})),i}},63526:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,getFunctionName:()=>o});var r=n(91272);const i=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function o(e){const t=`${e}`.match(i);return t&&t[1]||""}function a(e,t=""){return e.displayName||e.name||o(e)||t}function s(e,t,n){const r=a(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function l(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return a(e,"Component");if("object"==typeof e)switch(e.$$typeof){case r.ForwardRef:return s(e,e.render,"ForwardRef");case r.Memo:return s(e,e.type,"memo");default:return}}}},38935:(e,t,n)=>{"use strict";function r(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}n.d(t,{A:()=>r})},74311:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},56023:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(74311);function i(e){return(0,r.A)(e).defaultView||window}},1967:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(22300),i=n.n(r);const o=i().oneOfType([i().func,i().object])},7757:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(51559);function i(e,t){const n=(0,r.A)({},t);return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))n[o]=(0,r.A)({},e[o],n[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const a=e[o]||{},s=t[o];n[o]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[o]=(0,r.A)({},s),Object.keys(a).forEach((e=>{n[o][e]=i(a[e],s[e])}))):n[o]=s:n[o]=a}else void 0===n[o]&&(n[o]=e[o])})),n}},54175:(e,t,n)=>{"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},63095:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(30538);function i({controlled:e,default:t,name:n,state:i="value"}){const{current:o}=r.useRef(void 0!==e),[a,s]=r.useState(t);return[o?e:a,r.useCallback((e=>{o||s(e)}),[])]}},43107:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(30538);const i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},18605:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(30538),i=n(43107);const o=function(e){const t=r.useRef(e);return(0,i.A)((()=>{t.current=e})),r.useRef(((...e)=>(0,t.current)(...e))).current}},18029:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(30538),i=n(54175);function o(...e){return r.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{(0,i.A)(e,t)}))}),e)}},5391:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>s});var i=n(30538);let o=0;const a=(r||(r=n.t(i,2)))["useId".toString()];function s(e){if(void 0!==a){const t=a();return null!=e?e:t}return function(e){const[t,n]=i.useState(e),r=e||t;return i.useEffect((()=>{null==t&&(o+=1,n(`mui-${o}`))}),[t]),r}(e)}},73499:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(30538),i=n(8734);let o=!0,a=!1;const s=new i.E,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function u(){o=!1}function d(){"hidden"===this.visibilityState&&a&&(o=!0)}function h(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return o||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function p(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!h(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,s.start(100,(()=>{a=!1})),t.current=!1,!0)},ref:e}}},8734:(e,t,n)=>{"use strict";n.d(t,{E:()=>a,A:()=>s});var r=n(30538);const i={};const o=[];class a{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new a}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function s(){const e=function(e,t){const n=r.useRef(i);return n.current===i&&(n.current=e(t)),n}(a.create).current;var t;return t=e.disposeEffect,r.useEffect(t,o),e}},48269:(e,t,n)=>{"use strict";n.d(t,{x:()=>st});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(94267),l=n(87507),c=n(58990),u=n(32829),d=n(5391),h=n(18605),p=n(61228),f=n(34667);const g=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:s,timezone:l})=>{const c=(0,f.u)();return o.useCallback((o=>null!==(0,p.Z)({adapter:c,value:o,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:s,timezone:l}})),[c,e,t,n,r,i,a,s,l])};var m=n(99559),y=n(57696);const v=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:a,disablePast:s,disableSwitchToMonthOnDayFocus:l=!1,maxDate:c,minDate:u,onMonthChange:d,reduceAnimations:p,shouldDisableDate:v,timezone:b}=e,x=(0,f.hc)(),w=o.useRef(((e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return(0,i.A)({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return(0,i.A)({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(null!=r.focusedDay&&null!=o.focusedDay&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const a=null!=o.focusedDay&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return(0,i.A)({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:null!=o.focusedDay&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}})(Boolean(p),l,x)).current,A=o.useMemo((()=>{let i=null;return n?i=n:r&&(i=x.startOfMonth(r)),m.W.getInitialReferenceValue({value:t,utils:x,timezone:b,props:e,referenceDate:i,granularity:y.yX.day})}),[]),[S,C]=o.useReducer(w,{isMonthSwitchingAnimating:!1,focusedDay:A,currentMonth:x.startOfMonth(A),slideDirection:"left"}),E=o.useCallback((e=>{C((0,i.A)({type:"changeMonth"},e)),d&&d(e.newMonth)}),[d]),_=o.useCallback((e=>{const t=e;x.isSameMonth(t,S.currentMonth)||E({newMonth:x.startOfMonth(t),direction:x.isAfterDay(t,S.currentMonth)?"left":"right"})}),[S.currentMonth,E,x]),k=g({shouldDisableDate:v,minDate:u,maxDate:c,disableFuture:a,disablePast:s,timezone:b}),T=o.useCallback((()=>{C({type:"finishMonthSwitchingAnimation"})}),[]),O=(0,h.A)(((e,t)=>{k(e)||C({type:"changeFocusedDay",focusedDay:e,withoutMonthSwitchingAnimation:t})}));return{referenceDate:A,calendarState:S,changeMonth:_,changeFocusedDay:O,isDateDisabled:k,onMonthSwitchingAnimationEnd:T,handleChangeMonth:E}};var b=n(37091),x=n(68127),w=n(94145),A=n(24115),S=n(5007);const C=e=>(0,A.Ay)("MuiPickersFadeTransitionGroup",e);(0,S.A)("MuiPickersFadeTransitionGroup",["root"]);var E=n(97282);const _=(0,c.Ay)(b.A,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function k(e){const t=(0,l.A)({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,s=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},C,t)})(t),c=(0,w.A)();return i?n:(0,E.jsx)(_,{className:(0,a.A)(s.root,r),children:(0,E.jsx)(x.A,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:c.transitions.duration.enteringScreen,enter:c.transitions.duration.enteringScreen,exit:0},children:n},o)})}var T=n(91031),O=n(63095),P=n(92004),I=n(18029),M=n(43107),L=n(41795),R=n(8589);function j(e){return(0,A.Ay)("MuiPickersDay",e)}const F=(0,S.A)("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),D=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],N=({theme:e,ownerState:t})=>(0,i.A)({},e.typography.caption,{width:R.B3,height:R.B3,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,L.X4)(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,L.X4)(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${F.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${F.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${F.disabled}:not(.${F.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${F.disabled}&.${F.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${R.y0}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${F.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),z=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},V=(0,c.Ay)(P.A,{name:"MuiPickersDay",slot:"Root",overridesResolver:z})(N),B=(0,c.Ay)("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:z})((({theme:e,ownerState:t})=>(0,i.A)({},N({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"}))),$=()=>{},G=o.forwardRef((function(e,t){const n=(0,l.A)({props:e,name:"MuiPickersDay"}),{autoFocus:s=!1,className:c,day:d,disabled:h=!1,disableHighlightToday:p=!1,disableMargin:g=!1,isAnimating:m,onClick:y,onDaySelect:v,onFocus:b=$,onBlur:x=$,onKeyDown:w=$,onMouseDown:A=$,onMouseEnter:S=$,outsideCurrentMonth:C,selected:_=!1,showDaysOutsideCurrentMonth:k=!1,children:T,today:O=!1}=n,P=(0,r.A)(n,D),L=(0,i.A)({},n,{autoFocus:s,disabled:h,disableHighlightToday:p,disableMargin:g,selected:_,showDaysOutsideCurrentMonth:k,today:O}),R=(e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,c=a&&!s,d={root:["root",t&&!c&&"selected",o&&"disabled",!n&&"dayWithMargin",!r&&i&&"today",a&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]};return(0,u.A)(d,j,l)})(L),F=(0,f.hc)(),N=o.useRef(null),z=(0,I.A)(N,t);(0,M.A)((()=>{!s||h||m||C||N.current.focus()}),[s,h,m,C]);return C&&!k?(0,E.jsx)(B,{className:(0,a.A)(R.root,R.hiddenDaySpacingFiller,c),ownerState:L,role:P.role}):(0,E.jsx)(V,(0,i.A)({className:(0,a.A)(R.root,c),ref:z,centerRipple:!0,disabled:h,tabIndex:_?0:-1,onKeyDown:e=>w(e,d),onFocus:e=>b(e,d),onBlur:e=>x(e,d),onMouseEnter:e=>S(e,d),onClick:e=>{h||v(d),C&&e.currentTarget.focus(),y&&y(e)},onMouseDown:e=>{A(e),C&&e.preventDefault()}},P,{ownerState:L,children:T||F.format(d,"dayOfMonth")}))})),U=o.memo(G);var W=n(99364);function q(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var H=n(89272),Y=n(97814),K=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=q(n.className,r):n.setAttribute("class",q(n.className&&n.className.baseVal||"",r)));var n,r}))},X=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i(0,A.Ay)("MuiPickersSlideTransition",e),Q=(0,S.A)("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),ee=["children","className","reduceAnimations","slideDirection","transKey","classes"],te=(0,c.Ay)(b.A,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Q["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Q["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Q.slideEnterActive}`]:t.slideEnterActive},{[`.${Q.slideExit}`]:t.slideExit},{[`.${Q["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Q["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})((({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Q["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Q["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Q.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Q.slideExit}`]:{transform:"translate(0%)"},[`& .${Q["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Q["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}));var ne=n(84316);const re=e=>(0,A.Ay)("MuiDayCalendar",e),ie=((0,S.A)("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]),["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"]),oe=["ownerState"],ae=6*(R.B3+2*R.y0),se=(0,c.Ay)("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),le=(0,c.Ay)("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),ce=(0,c.Ay)(T.A,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})((({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary}))),ue=(0,c.Ay)(T.A,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})((({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled}))),de=(0,c.Ay)(T.A,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})((({theme:e})=>(0,i.A)({},e.typography.caption,{width:R.B3,height:R.B3,padding:0,margin:`0 ${R.y0}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"}))),he=(0,c.Ay)("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:ae}),pe=(0,c.Ay)((function(e){const t=(0,l.A)({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:s,reduceAnimations:c,transKey:d}=t,h=(0,r.A)(t,ee),p=(e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return(0,u.A)(r,J,t)})(t),f=(0,w.A)();if(c)return(0,E.jsx)("div",{className:(0,a.A)(p.root,s),children:n});const g={exit:p.exit,enterActive:p.enterActive,enter:p.enter,exitActive:p.exitActive};return(0,E.jsx)(te,{className:(0,a.A)(p.root,s),childFactory:e=>o.cloneElement(e,{classNames:g}),role:"presentation",children:(0,E.jsx)(Z,(0,i.A)({mountOnEnter:!0,unmountOnExit:!0,timeout:f.transitions.duration.complex,classNames:g},h,{children:n}),d)})}),{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:ae}),fe=(0,c.Ay)("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),ge=(0,c.Ay)("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${R.y0}px 0`,display:"flex",justifyContent:"center"});function me(e){var t,n,a;let{parentProps:l,day:c,focusableDay:u,selectedDays:d,isDateDisabled:h,currentMonthNumber:p,isViewFocused:g}=e,m=(0,r.A)(e,ie);const{disabled:y,disableHighlightToday:v,isMonthSwitchingAnimating:b,showDaysOutsideCurrentMonth:x,components:w,componentsProps:A,slots:S,slotProps:C,timezone:_}=l,k=(0,f.hc)(),T=(0,f.cB)(_),O=null!==u&&k.isSameDay(c,u),P=d.some((e=>k.isSameDay(e,c))),I=k.isSameDay(c,T),M=null!=(t=null!=(n=null==S?void 0:S.day)?n:null==w?void 0:w.Day)?t:U,L=(0,s.Q)({elementType:M,externalSlotProps:null!=(a=null==C?void 0:C.day)?a:null==A?void 0:A.day,additionalProps:(0,i.A)({disableHighlightToday:v,showDaysOutsideCurrentMonth:x,role:"gridcell",isAnimating:b,"data-timestamp":k.toJsDate(c).valueOf()},m),ownerState:(0,i.A)({},l,{day:c,selected:P})}),R=(0,r.A)(L,oe),j=o.useMemo((()=>y||h(c)),[y,h,c]),F=o.useMemo((()=>k.getMonth(c)!==p),[k,c,p]),D=o.useMemo((()=>{const e=k.startOfMonth(k.setMonth(c,p));return x?k.isSameDay(c,k.startOfWeek(e)):k.isSameDay(c,e)}),[p,c,x,k]),N=o.useMemo((()=>{const e=k.endOfMonth(k.setMonth(c,p));return x?k.isSameDay(c,k.endOfWeek(e)):k.isSameDay(c,e)}),[p,c,x,k]);return(0,E.jsx)(M,(0,i.A)({},R,{day:c,disabled:j,autoFocus:g&&O,today:I,outsideCurrentMonth:F,isFirstVisibleCell:D,isLastVisibleCell:N,selected:P,tabIndex:O?0:-1,"aria-selected":P,"aria-current":I?"date":void 0}))}function ye(e){const t=(0,l.A)({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:s,selectedDays:c,focusedDay:d,loading:p,onSelectedDaysChange:m,onMonthSwitchingAnimationEnd:y,readOnly:v,reduceAnimations:b,renderLoading:x=(()=>(0,E.jsx)("span",{children:"..."})),slideDirection:A,TransitionProps:S,disablePast:C,disableFuture:_,minDate:k,maxDate:T,shouldDisableDate:P,shouldDisableMonth:I,shouldDisableYear:M,dayOfWeekFormatter:L,hasFocus:R,onFocusedViewChange:j,gridLabelId:F,displayWeekNumber:D,fixedWeekNumber:N,autoFocus:z,timezone:V}=t,B=(0,f.cB)(V),$=(0,f.hc)(),G=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},re,t)})(t),U="rtl"===(0,w.A)().direction,W=L||((e,t)=>$.format(t,"weekdayShort").charAt(0).toUpperCase()),q=g({shouldDisableDate:P,shouldDisableMonth:I,shouldDisableYear:M,minDate:k,maxDate:T,disablePast:C,disableFuture:_,timezone:V}),H=(0,f.Nq)(),[Y,K]=(0,O.A)({name:"DayCalendar",state:"hasFocus",controlled:R,default:null!=z&&z}),[X,Z]=o.useState((()=>d||B)),J=(0,h.A)((e=>{v||m(e)})),Q=e=>{q(e)||(n(e),Z(e),null==j||j(!0),K(!0))},ee=(0,h.A)(((e,t)=>{switch(e.key){case"ArrowUp":Q($.addDays(t,-7)),e.preventDefault();break;case"ArrowDown":Q($.addDays(t,7)),e.preventDefault();break;case"ArrowLeft":{const n=$.addDays(t,U?1:-1),r=$.addMonths(t,U?1:-1),i=(0,ne.il)({utils:$,date:n,minDate:U?n:$.startOfMonth(r),maxDate:U?$.endOfMonth(r):n,isDateDisabled:q,timezone:V});Q(i||n),e.preventDefault();break}case"ArrowRight":{const n=$.addDays(t,U?-1:1),r=$.addMonths(t,U?-1:1),i=(0,ne.il)({utils:$,date:n,minDate:U?$.startOfMonth(r):n,maxDate:U?n:$.endOfMonth(r),isDateDisabled:q,timezone:V});Q(i||n),e.preventDefault();break}case"Home":Q($.startOfWeek(t)),e.preventDefault();break;case"End":Q($.endOfWeek(t)),e.preventDefault();break;case"PageUp":Q($.addMonths(t,1)),e.preventDefault();break;case"PageDown":Q($.addMonths(t,-1)),e.preventDefault()}})),te=(0,h.A)(((e,t)=>Q(t))),ie=(0,h.A)(((e,t)=>{Y&&$.isSameDay(X,t)&&(null==j||j(!1))})),oe=$.getMonth(s),ae=o.useMemo((()=>c.filter((e=>!!e)).map((e=>$.startOfDay(e)))),[$,c]),ye=oe,ve=o.useMemo((()=>o.createRef()),[ye]),be=$.startOfWeek(B),xe=o.useMemo((()=>{const e=$.startOfMonth(s),t=$.endOfMonth(s);return q(X)||$.isAfterDay(X,t)||$.isBeforeDay(X,e)?(0,ne.il)({utils:$,date:X,minDate:e,maxDate:t,disablePast:C,disableFuture:_,isDateDisabled:q,timezone:V}):X}),[s,_,C,X,q,$,V]),we=o.useMemo((()=>{const e=$.setTimezone(s,V),t=$.getWeekArray(e);let n=$.addMonths(e,1);for(;N&&t.length{t.length{var n;const r=$.format(e,"weekdayShort");return(0,E.jsx)(ce,{variant:"caption",role:"columnheader","aria-label":$.format($.addDays(be,t),"weekday"),className:G.weekDayLabel,children:null!=(n=null==W?void 0:W(r,e))?n:r},r+t.toString())}))]}),p?(0,E.jsx)(he,{className:G.loadingContainer,children:x()}):(0,E.jsx)(pe,(0,i.A)({transKey:ye,onExited:y,reduceAnimations:b,slideDirection:A,className:(0,a.A)(r,G.slideTransition)},S,{nodeRef:ve,children:(0,E.jsx)(fe,{ref:ve,role:"rowgroup",className:G.monthContainer,children:we.map(((e,n)=>(0,E.jsxs)(ge,{role:"row",className:G.weekContainer,"aria-rowindex":n+1,children:[D&&(0,E.jsx)(de,{className:G.weekNumber,role:"rowheader","aria-label":H.calendarWeekNumberAriaLabelText($.getWeekNumber(e[0])),children:H.calendarWeekNumberText($.getWeekNumber(e[0]))}),e.map(((e,n)=>(0,E.jsx)(me,{parentProps:t,day:e,selectedDays:ae,focusableDay:xe,onKeyDown:ee,onFocus:te,onBlur:ie,onDaySelect:J,isDateDisabled:q,currentMonthNumber:oe,isViewFocused:Y,"aria-colindex":n+1},e.toString())))]},`week-${e[0]}`)))})}))]})}var ve=n(38382);function be(e){return(0,A.Ay)("MuiPickersMonth",e)}const xe=(0,S.A)("MuiPickersMonth",["root","monthButton","disabled","selected"]),we=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],Ae=(0,c.Ay)("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})((({ownerState:e})=>({flexBasis:3===e.monthsPerRow?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"}))),Se=(0,c.Ay)("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${xe.disabled}`]:t.disabled},{[`&.${xe.selected}`]:t.selected}]})((({theme:e})=>(0,i.A)({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,L.X4)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,L.X4)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${xe.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${xe.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}}))),Ce=o.memo((function(e){const t=(0,l.A)({props:e,name:"MuiPickersMonth"}),{autoFocus:n,children:a,disabled:s,selected:c,value:d,tabIndex:h,onClick:p,onKeyDown:f,onFocus:g,onBlur:m,"aria-current":y,"aria-label":v}=t,b=(0,r.A)(t,we),x=o.useRef(null),w=(e=>{const{disabled:t,selected:n,classes:r}=e,i={root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]};return(0,u.A)(i,be,r)})(t);return(0,M.A)((()=>{var e;n&&(null==(e=x.current)||e.focus())}),[n]),(0,E.jsx)(Ae,(0,i.A)({className:w.root,ownerState:t},b,{children:(0,E.jsx)(Se,{ref:x,disabled:s,type:"button",role:"radio",tabIndex:s?-1:h,"aria-current":y,"aria-checked":c,"aria-label":v,onClick:e=>p(e,d),onKeyDown:e=>f(e,d),onFocus:e=>g(e,d),onBlur:e=>m(e,d),className:w.monthButton,ownerState:t,children:a})}))}));function Ee(e){return(0,A.Ay)("MuiMonthCalendar",e)}(0,S.A)("MuiMonthCalendar",["root"]);var _e=n(16944);const ke=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"];const Te=(0,c.Ay)("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:R.eX,boxSizing:"border-box"}),Oe=o.forwardRef((function(e,t){const n=function(e,t){const n=(0,f.hc)(),r=(0,f.Yg)(),o=(0,l.A)({props:e,name:t});return(0,i.A)({disableFuture:!1,disablePast:!1},o,{minDate:(0,ne.IP)(n,o.minDate,r.minDate),maxDate:(0,ne.IP)(n,o.maxDate,r.maxDate)})}(e,"MuiMonthCalendar"),{className:s,value:c,defaultValue:d,referenceDate:p,disabled:g,disableFuture:v,disablePast:b,maxDate:x,minDate:w,onChange:A,shouldDisableMonth:S,readOnly:C,disableHighlightToday:_,autoFocus:k=!1,onMonthFocus:T,hasFocus:P,onFocusedViewChange:I,monthsPerRow:M=3,timezone:L,gridLabelId:R}=n,j=(0,r.A)(n,ke),{value:F,handleValueChange:D,timezone:N}=(0,_e.Y)({name:"MonthCalendar",timezone:L,value:c,defaultValue:d,onChange:A,valueManager:m.W}),z=(0,f.cB)(N),V=(0,ve.A)(),B=(0,f.hc)(),$=o.useMemo((()=>m.W.getInitialReferenceValue({value:F,utils:B,props:n,timezone:N,referenceDate:p,granularity:y.yX.month})),[]),G=n,U=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},Ee,t)})(G),W=o.useMemo((()=>B.getMonth(z)),[B,z]),q=o.useMemo((()=>null!=F?B.getMonth(F):_?null:B.getMonth($)),[F,B,_,$]),[H,Y]=o.useState((()=>q||W)),[K,X]=(0,O.A)({name:"MonthCalendar",state:"hasFocus",controlled:P,default:null!=k&&k}),Z=(0,h.A)((e=>{X(e),I&&I(e)})),J=o.useCallback((e=>{const t=B.startOfMonth(b&&B.isAfter(z,w)?z:w),n=B.startOfMonth(v&&B.isBefore(z,x)?z:x),r=B.startOfMonth(e);return!!B.isBefore(r,t)||(!!B.isAfter(r,n)||!!S&&S(r))}),[v,b,x,w,z,S,B]),Q=(0,h.A)(((e,t)=>{if(C)return;const n=B.setMonth(null!=F?F:$,t);D(n)})),ee=(0,h.A)((e=>{J(B.setMonth(null!=F?F:$,e))||(Y(e),Z(!0),T&&T(e))}));o.useEffect((()=>{Y((e=>null!==q&&e!==q?q:e))}),[q]);const te=(0,h.A)(((e,t)=>{const n=12;switch(e.key){case"ArrowUp":ee((n+t-3)%n),e.preventDefault();break;case"ArrowDown":ee((n+t+3)%n),e.preventDefault();break;case"ArrowLeft":ee((n+t+("ltr"===V.direction?-1:1))%n),e.preventDefault();break;case"ArrowRight":ee((n+t+("ltr"===V.direction?1:-1))%n),e.preventDefault()}})),re=(0,h.A)(((e,t)=>{ee(t)})),ie=(0,h.A)(((e,t)=>{H===t&&Z(!1)}));return(0,E.jsx)(Te,(0,i.A)({ref:t,className:(0,a.A)(U.root,s),ownerState:G,role:"radiogroup","aria-labelledby":R},j,{children:(0,ne.YQ)(B,null!=F?F:$).map((e=>{const t=B.getMonth(e),n=B.format(e,"monthShort"),r=B.format(e,"month"),i=t===q,o=g||J(e);return(0,E.jsx)(Ce,{selected:i,value:t,onClick:Q,onKeyDown:te,autoFocus:K&&t===H,disabled:o,tabIndex:t===H?0:-1,onFocus:re,onBlur:ie,"aria-current":W===t?"date":void 0,"aria-label":r,monthsPerRow:M,children:n},n)}))}))}));function Pe(e){return(0,A.Ay)("MuiPickersYear",e)}const Ie=(0,S.A)("MuiPickersYear",["root","yearButton","selected","disabled"]),Me=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],Le=(0,c.Ay)("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})((({ownerState:e})=>({flexBasis:3===e.yearsPerRow?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"}))),Re=(0,c.Ay)("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Ie.disabled}`]:t.disabled},{[`&.${Ie.selected}`]:t.selected}]})((({theme:e})=>(0,i.A)({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:(0,L.X4)(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,L.X4)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Ie.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Ie.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}}))),je=o.memo((function(e){const t=(0,l.A)({props:e,name:"MuiPickersYear"}),{autoFocus:n,className:s,children:c,disabled:d,selected:h,value:p,tabIndex:f,onClick:g,onKeyDown:m,onFocus:y,onBlur:v,"aria-current":b}=t,x=(0,r.A)(t,Me),w=o.useRef(null),A=(e=>{const{disabled:t,selected:n,classes:r}=e,i={root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]};return(0,u.A)(i,Pe,r)})(t);return o.useEffect((()=>{n&&w.current.focus()}),[n]),(0,E.jsx)(Le,(0,i.A)({className:(0,a.A)(A.root,s),ownerState:t},x,{children:(0,E.jsx)(Re,{ref:w,disabled:d,type:"button",role:"radio",tabIndex:d?-1:f,"aria-current":b,"aria-checked":h,onClick:e=>g(e,p),onKeyDown:e=>m(e,p),onFocus:e=>y(e,p),onBlur:e=>v(e,p),className:A.yearButton,ownerState:t,children:c})}))}));function Fe(e){return(0,A.Ay)("MuiYearCalendar",e)}(0,S.A)("MuiYearCalendar",["root"]);const De=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"];const Ne=(0,c.Ay)("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:R.eX,maxHeight:R.Yq,boxSizing:"border-box",position:"relative"}),ze=o.forwardRef((function(e,t){const n=function(e,t){var n;const r=(0,f.hc)(),o=(0,f.Yg)(),a=(0,l.A)({props:e,name:t});return(0,i.A)({disablePast:!1,disableFuture:!1},a,{yearsPerRow:null!=(n=a.yearsPerRow)?n:3,minDate:(0,ne.IP)(r,a.minDate,o.minDate),maxDate:(0,ne.IP)(r,a.maxDate,o.maxDate)})}(e,"MuiYearCalendar"),{autoFocus:s,className:c,value:d,defaultValue:p,referenceDate:g,disabled:v,disableFuture:b,disablePast:x,maxDate:w,minDate:A,onChange:S,readOnly:C,shouldDisableYear:_,disableHighlightToday:k,onYearFocus:T,hasFocus:P,onFocusedViewChange:M,yearsPerRow:L,timezone:R,gridLabelId:j}=n,F=(0,r.A)(n,De),{value:D,handleValueChange:N,timezone:z}=(0,_e.Y)({name:"YearCalendar",timezone:R,value:d,defaultValue:p,onChange:S,valueManager:m.W}),V=(0,f.cB)(z),B=(0,ve.A)(),$=(0,f.hc)(),G=o.useMemo((()=>m.W.getInitialReferenceValue({value:D,utils:$,props:n,timezone:z,referenceDate:g,granularity:y.yX.year})),[]),U=n,W=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},Fe,t)})(U),q=o.useMemo((()=>$.getYear(V)),[$,V]),H=o.useMemo((()=>null!=D?$.getYear(D):k?null:$.getYear(G)),[D,$,k,G]),[Y,K]=o.useState((()=>H||q)),[X,Z]=(0,O.A)({name:"YearCalendar",state:"hasFocus",controlled:P,default:null!=s&&s}),J=(0,h.A)((e=>{Z(e),M&&M(e)})),Q=o.useCallback((e=>{if(x&&$.isBeforeYear(e,V))return!0;if(b&&$.isAfterYear(e,V))return!0;if(A&&$.isBeforeYear(e,A))return!0;if(w&&$.isAfterYear(e,w))return!0;if(!_)return!1;const t=$.startOfYear(e);return _(t)}),[b,x,w,A,V,_,$]),ee=(0,h.A)(((e,t)=>{if(C)return;const n=$.setYear(null!=D?D:G,t);N(n)})),te=(0,h.A)((e=>{Q($.setYear(null!=D?D:G,e))||(K(e),J(!0),null==T||T(e))}));o.useEffect((()=>{K((e=>null!==H&&e!==H?H:e))}),[H]);const re=(0,h.A)(((e,t)=>{switch(e.key){case"ArrowUp":te(t-L),e.preventDefault();break;case"ArrowDown":te(t+L),e.preventDefault();break;case"ArrowLeft":te(t+("ltr"===B.direction?-1:1)),e.preventDefault();break;case"ArrowRight":te(t+("ltr"===B.direction?1:-1)),e.preventDefault()}})),ie=(0,h.A)(((e,t)=>{te(t)})),oe=(0,h.A)(((e,t)=>{Y===t&&J(!1)})),ae=o.useRef(null),se=(0,I.A)(t,ae);return o.useEffect((()=>{if(s||null===ae.current)return;const e=ae.current.querySelector('[tabindex="0"]');if(!e)return;const t=e.offsetHeight,n=e.offsetTop,r=ae.current.clientHeight,i=ae.current.scrollTop,o=n+t;t>r||n{const t=$.getYear(e),n=t===H,r=v||Q(e);return(0,E.jsx)(je,{selected:n,value:t,onClick:ee,onKeyDown:re,autoFocus:X&&t===Y,disabled:r,tabIndex:t===Y?0:-1,onFocus:ie,onBlur:oe,"aria-current":q===t?"date":void 0,yearsPerRow:L,children:$.format(e,"year")},$.format(e,"year"))}))}))}));var Ve=n(56468),Be=n(90703),$e=n(46260),Ge=n(58896),Ue=n(40774);const We=e=>(0,A.Ay)("MuiPickersCalendarHeader",e),qe=(0,S.A)("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),He=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],Ye=["ownerState"],Ke=(0,c.Ay)("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),Xe=(0,c.Ay)("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})((({theme:e})=>(0,i.A)({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium}))),Ze=(0,c.Ay)("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Je=(0,c.Ay)(Be.A,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})((({ownerState:e})=>(0,i.A)({marginRight:"auto"},"year"===e.view&&{[`.${qe.switchViewIcon}`]:{transform:"rotate(180deg)"}}))),Qe=(0,c.Ay)($e.iV,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})((({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"}))),et=o.forwardRef((function(e,t){var n,o,c,d;const h=(0,f.Nq)(),p=(0,f.hc)(),g=(0,l.A)({props:e,name:"MuiPickersCalendarHeader"}),{slots:m,slotProps:y,components:v,currentMonth:b,disabled:w,disableFuture:A,disablePast:S,maxDate:C,minDate:_,onMonthChange:T,onViewChange:O,view:P,reduceAnimations:I,views:M,labelId:L,className:R,timezone:j}=g,F=(0,r.A)(g,He),D=g,N=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},We,t)})(g),z=null!=(n=null!=(o=null==m?void 0:m.switchViewButton)?o:null==v?void 0:v.SwitchViewButton)?n:Je,V=(0,s.Q)({elementType:z,externalSlotProps:null==y?void 0:y.switchViewButton,additionalProps:{size:"small","aria-label":h.calendarViewSwitchingButtonAriaLabel(P)},ownerState:D,className:N.switchViewButton}),B=null!=(c=null!=(d=null==m?void 0:m.switchViewIcon)?d:null==v?void 0:v.SwitchViewIcon)?c:Qe,$=(0,s.Q)({elementType:B,externalSlotProps:null==y?void 0:y.switchViewIcon,ownerState:void 0,className:N.switchViewIcon}),G=(0,r.A)($,Ye),U=(0,Ue.bH)(b,{disableFuture:A,maxDate:C,timezone:j}),W=(0,Ue.p_)(b,{disablePast:S,minDate:_,timezone:j});return 1===M.length&&"year"===M[0]?null:(0,E.jsxs)(Ke,(0,i.A)({},F,{ownerState:D,className:(0,a.A)(R,N.root),ref:t,children:[(0,E.jsxs)(Xe,{role:"presentation",onClick:()=>{if(1!==M.length&&O&&!w)if(2===M.length)O(M.find((e=>e!==P))||M[0]);else{const e=0!==M.indexOf(P)?0:1;O(M[e])}},ownerState:D,"aria-live":"polite",className:N.labelContainer,children:[(0,E.jsx)(k,{reduceAnimations:I,transKey:p.format(b,"monthAndYear"),children:(0,E.jsx)(Ze,{id:L,ownerState:D,className:N.label,children:p.format(b,"monthAndYear")})}),M.length>1&&!w&&(0,E.jsx)(z,(0,i.A)({},V,{children:(0,E.jsx)(B,(0,i.A)({},G))}))]}),(0,E.jsx)(x.A,{in:"day"===P,children:(0,E.jsx)(Ge.Y,{slots:m,slotProps:y,onGoToPrevious:()=>T(p.addMonths(b,-1),"right"),isPreviousDisabled:W,previousLabel:h.previousMonth,onGoToNext:()=>T(p.addMonths(b,1),"left"),isNextDisabled:U,nextLabel:h.nextMonth})})]}))}));var tt=n(44206),nt=n(57834);const rt=e=>(0,A.Ay)("MuiDateCalendar",e),it=((0,S.A)("MuiDateCalendar",["root","viewTransitionContainer"]),["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"]);const ot=(0,c.Ay)(tt.I,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:R.Y2}),at=(0,c.Ay)(k,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),st=o.forwardRef((function(e,t){var n,c,p;const g=(0,f.hc)(),y=(0,d.A)(),b=function(e,t){var n,r,o,a,s,c,u;const d=(0,f.hc)(),h=(0,f.Yg)(),p=(0,nt.q)(),g=(0,l.A)({props:e,name:t});return(0,i.A)({},g,{loading:null!=(n=g.loading)&&n,disablePast:null!=(r=g.disablePast)&&r,disableFuture:null!=(o=g.disableFuture)&&o,openTo:null!=(a=g.openTo)?a:"day",views:null!=(s=g.views)?s:["year","day"],reduceAnimations:null!=(c=g.reduceAnimations)?c:p,renderLoading:null!=(u=g.renderLoading)?u:()=>(0,E.jsx)("span",{children:"..."}),minDate:(0,ne.IP)(d,g.minDate,h.minDate),maxDate:(0,ne.IP)(d,g.maxDate,h.maxDate)})}(e,"MuiDateCalendar"),{autoFocus:x,onViewChange:w,value:A,defaultValue:S,referenceDate:C,disableFuture:_,disablePast:k,defaultCalendarMonth:T,onChange:O,onYearChange:P,onMonthChange:I,reduceAnimations:M,shouldDisableDate:L,shouldDisableMonth:R,shouldDisableYear:j,view:F,views:D,openTo:N,className:z,disabled:V,readOnly:B,minDate:$,maxDate:G,disableHighlightToday:U,focusedView:W,onFocusedViewChange:q,showDaysOutsideCurrentMonth:H,fixedWeekNumber:Y,dayOfWeekFormatter:K,components:X,componentsProps:Z,slots:J,slotProps:Q,loading:ee,renderLoading:te,displayWeekNumber:re,yearsPerRow:ie,monthsPerRow:oe,timezone:ae}=b,se=(0,r.A)(b,it),{value:le,handleValueChange:ce,timezone:ue}=(0,_e.Y)({name:"DateCalendar",timezone:ae,value:A,defaultValue:S,onChange:O,valueManager:m.W}),{view:de,setView:he,focusedView:pe,setFocusedView:fe,goToNextView:ge,setValueAndGoToNextView:me}=(0,Ve.o)({view:F,views:D,openTo:N,onChange:ce,onViewChange:w,autoFocus:x,focusedView:W,onFocusedViewChange:q}),{referenceDate:ve,calendarState:be,changeFocusedDay:xe,changeMonth:we,handleChangeMonth:Ae,isDateDisabled:Se,onMonthSwitchingAnimationEnd:Ce}=v({value:le,defaultCalendarMonth:T,referenceDate:C,reduceAnimations:M,onMonthChange:I,minDate:$,maxDate:G,shouldDisableDate:L,disablePast:k,disableFuture:_,timezone:ue}),Ee=V&&le||$,ke=V&&le||G,Te=`${y}-grid-label`,Pe=null!==pe,Ie=null!=(n=null!=(c=null==J?void 0:J.calendarHeader)?c:null==X?void 0:X.CalendarHeader)?n:et,Me=(0,s.Q)({elementType:Ie,externalSlotProps:null!=(p=null==Q?void 0:Q.calendarHeader)?p:null==Z?void 0:Z.calendarHeader,additionalProps:{views:D,view:de,currentMonth:be.currentMonth,onViewChange:he,onMonthChange:(e,t)=>Ae({newMonth:e,direction:t}),minDate:Ee,maxDate:ke,disabled:V,disablePast:k,disableFuture:_,reduceAnimations:M,timezone:ue,labelId:Te,slots:J,slotProps:Q},ownerState:b}),Le=(0,h.A)((e=>{const t=g.startOfMonth(e),n=g.endOfMonth(e),r=Se(e)?(0,ne.il)({utils:g,date:e,minDate:g.isBefore($,t)?t:$,maxDate:g.isAfter(G,n)?n:G,disablePast:k,disableFuture:_,isDateDisabled:Se,timezone:ue}):e;r?(me(r,"finish"),null==I||I(t)):(ge(),we(t)),xe(r,!0)})),Re=(0,h.A)((e=>{const t=g.startOfYear(e),n=g.endOfYear(e),r=Se(e)?(0,ne.il)({utils:g,date:e,minDate:g.isBefore($,t)?t:$,maxDate:g.isAfter(G,n)?n:G,disablePast:k,disableFuture:_,isDateDisabled:Se,timezone:ue}):e;r?(me(r,"finish"),null==P||P(r)):(ge(),we(t)),xe(r,!0)})),je=(0,h.A)((e=>ce(e?(0,ne.jH)(g,e,null!=le?le:ve):e,"finish",de)));o.useEffect((()=>{null!=le&&g.isValid(le)&&we(le)}),[le]);const Fe=b,De=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},rt,t)})(Fe),Ne={disablePast:k,disableFuture:_,maxDate:G,minDate:$},Be={disableHighlightToday:U,readOnly:B,disabled:V,timezone:ue,gridLabelId:Te},$e=o.useRef(de);o.useEffect((()=>{$e.current!==de&&(pe===$e.current&&fe(de,!0),$e.current=de)}),[pe,fe,de]);const Ge=o.useMemo((()=>[le]),[le]);return(0,E.jsxs)(ot,(0,i.A)({ref:t,className:(0,a.A)(De.root,z),ownerState:Fe},se,{children:[(0,E.jsx)(Ie,(0,i.A)({},Me)),(0,E.jsx)(at,{reduceAnimations:M,className:De.viewTransitionContainer,transKey:de,ownerState:Fe,children:(0,E.jsxs)("div",{children:["year"===de&&(0,E.jsx)(ze,(0,i.A)({},Ne,Be,{value:le,onChange:Re,shouldDisableYear:j,hasFocus:Pe,onFocusedViewChange:e=>fe("year",e),yearsPerRow:ie,referenceDate:ve})),"month"===de&&(0,E.jsx)(Oe,(0,i.A)({},Ne,Be,{hasFocus:Pe,className:z,value:le,onChange:Le,shouldDisableMonth:R,onFocusedViewChange:e=>fe("month",e),monthsPerRow:oe,referenceDate:ve})),"day"===de&&(0,E.jsx)(ye,(0,i.A)({},be,Ne,Be,{onMonthSwitchingAnimationEnd:Ce,onFocusedDayChange:xe,reduceAnimations:M,selectedDays:Ge,onSelectedDaysChange:je,shouldDisableDate:L,shouldDisableMonth:R,shouldDisableYear:j,hasFocus:Pe,onFocusedViewChange:e=>fe("day",e),showDaysOutsideCurrentMonth:H,fixedWeekNumber:Y,dayOfWeekFormatter:K,displayWeekNumber:re,components:X,componentsProps:Z,slots:J,slotProps:Q,loading:ee,renderLoading:te}))]})})]}))}))},61821:(e,t,n)=>{"use strict";n.d(t,{l:()=>X});var r=n(51559),i=n(73342),o=n(30538),a=n(6467),s=n(87507),l=n(22300),c=n.n(l),u=n(26985),d=n(1967),h=n(99559),p=n(34667),f=n(77928),g=n(84316),m=n(87286),y=n(91031),v=n(58990),b=n(32829),x=n(65703),w=n(24115);function A(e){return(0,w.Ay)("MuiDatePickerToolbar",e)}(0,n(5007).A)("MuiDatePickerToolbar",["root","title"]);var S=n(97282);const C=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className"],E=(0,v.Ay)(x.Z,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_=(0,v.Ay)(y.A,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})((({ownerState:e})=>(0,r.A)({},e.isLandscape&&{margin:"auto 16px auto auto"}))),k=o.forwardRef((function(e,t){const n=(0,s.A)({props:e,name:"MuiDatePickerToolbar"}),{value:a,isLandscape:l,toolbarFormat:c,toolbarPlaceholder:u="––",views:d,className:h}=n,f=(0,i.A)(n,C),y=(0,p.hc)(),v=(0,p.Nq)(),x=(e=>{const{classes:t}=e;return(0,b.A)({root:["root"],title:["title"]},A,t)})(n),w=o.useMemo((()=>{if(!a)return u;const e=(0,g.Wq)(y,{format:c,views:d},!0);return y.formatByString(a,e)}),[a,c,u,y,d]),k=n;return(0,S.jsx)(E,(0,r.A)({ref:t,toolbarTitle:v.datePickerToolbarTitle,isLandscape:l,className:(0,m.A)(x.root,h)},f,{children:(0,S.jsx)(_,{variant:"h4",align:l?"left":"center",ownerState:k,className:x.title,children:w})}))}));var T=n(84474);function O(e,t){var n,i,a,l;const c=(0,p.hc)(),u=(0,p.Yg)(),d=(0,s.A)({props:e,name:t}),h=o.useMemo((()=>{var e;return null==(null==(e=d.localeText)?void 0:e.toolbarTitle)?d.localeText:(0,r.A)({},d.localeText,{datePickerToolbarTitle:d.localeText.toolbarTitle})}),[d.localeText]),m=null!=(n=d.slots)?n:(0,T.p)(d.components);return(0,r.A)({},d,{localeText:h},(0,f.R)({views:d.views,openTo:d.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:null!=(i=d.disableFuture)&&i,disablePast:null!=(a=d.disablePast)&&a,minDate:(0,g.IP)(c,d.minDate,u.minDate),maxDate:(0,g.IP)(c,d.maxDate,u.maxDate),slots:(0,r.A)({toolbar:k},m),slotProps:null!=(l=d.slotProps)?l:d.componentsProps})}var P=n(61228),I=n(38019),M=n(46260),L=n(76964),R=n(94267),j=n(68317),F=n(48361);const D=({props:e,inputRef:t})=>{const n=(e=>{var t,n,i;const o=(0,p.hc)(),a=(0,p.Yg)();return(0,r.A)({},e,{disablePast:null!=(t=e.disablePast)&&t,disableFuture:null!=(n=e.disableFuture)&&n,format:null!=(i=e.format)?i:o.formats.keyboardDate,minDate:(0,g.IP)(o,e.minDate,a.minDate),maxDate:(0,g.IP)(o,e.maxDate,a.maxDate)})})(e),{forwardedProps:i,internalProps:o}=(0,F.D)(n,"date");return(0,j.M)({inputRef:t,forwardedProps:i,internalProps:o,valueManager:h.W,fieldValueManager:h.o,validator:P.Z,valueType:"date"})};var N=n(29110);const z=["components","componentsProps","slots","slotProps","InputProps","inputProps"],V=["inputRef"],B=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],$=o.forwardRef((function(e,t){var n,o,a;const l=(0,s.A)({props:e,name:"MuiDateField"}),{components:c,componentsProps:u,slots:d,slotProps:h,InputProps:p,inputProps:f}=l,g=(0,i.A)(l,z),m=l,y=null!=(n=null!=(o=null==d?void 0:d.textField)?o:null==c?void 0:c.TextField)?n:L.A,v=(0,R.Q)({elementType:y,externalSlotProps:null!=(a=null==h?void 0:h.textField)?a:null==u?void 0:u.textField,externalForwardedProps:g,ownerState:m}),{inputRef:b}=v,x=(0,i.A)(v,V);x.inputProps=(0,r.A)({},f,x.inputProps),x.InputProps=(0,r.A)({},p,x.InputProps);const w=D({props:x,inputRef:b}),{ref:A,onPaste:C,onKeyDown:E,inputMode:_,readOnly:k,clearable:T,onClear:O}=w,P=(0,i.A)(w,B),{InputProps:I,fieldProps:M}=(0,N.Z)({onClear:O,clearable:T,fieldProps:P,InputProps:P.InputProps,slots:d,slotProps:h,components:c,componentsProps:u});return(0,S.jsx)(y,(0,r.A)({ref:t},M,{InputProps:(0,r.A)({},I,{readOnly:k}),inputProps:(0,r.A)({},P.inputProps,{inputMode:_,onPaste:C,onKeyDown:E,ref:A})}))}));var G=n(64066),U=n(29162);const W=o.forwardRef((function(e,t){var n,i,o,a;const s=(0,p.Nq)(),l=(0,p.hc)(),c=O(e,"MuiDesktopDatePicker"),d=(0,r.A)({day:U.W,month:U.W,year:U.W},c.viewRenderers),f=(0,r.A)({},c,{viewRenderers:d,format:(0,g.Wq)(l,c,!1),yearsPerRow:null!=(n=c.yearsPerRow)?n:4,slots:(0,r.A)({openPickerIcon:M.CT,field:$},c.slots),slotProps:(0,r.A)({},c.slotProps,{field:e=>{var n;return(0,r.A)({},(0,u.Y)(null==(n=c.slotProps)?void 0:n.field,e),(0,G.zd)(c),{ref:t})},toolbar:(0,r.A)({hidden:!0},null==(i=c.slotProps)?void 0:i.toolbar)})}),{renderPicker:m}=(0,I.U)({props:f,valueManager:h.W,valueType:"date",getOpenDialogAriaText:null!=(o=null==(a=f.localeText)?void 0:a.openDatePickerDialogue)?o:s.openDatePickerDialogue,validator:P.Z});return m()}));W.propTypes={autoFocus:c().bool,className:c().string,closeOnSelect:c().bool,components:c().object,componentsProps:c().object,dayOfWeekFormatter:c().func,defaultCalendarMonth:c().any,defaultValue:c().any,disabled:c().bool,disableFuture:c().bool,disableHighlightToday:c().bool,disableOpenPicker:c().bool,disablePast:c().bool,displayWeekNumber:c().bool,fixedWeekNumber:c().number,format:c().string,formatDensity:c().oneOf(["dense","spacious"]),inputRef:d.A,label:c().node,loading:c().bool,localeText:c().object,maxDate:c().any,minDate:c().any,monthsPerRow:c().oneOf([3,4]),name:c().string,onAccept:c().func,onChange:c().func,onClose:c().func,onError:c().func,onMonthChange:c().func,onOpen:c().func,onSelectedSectionsChange:c().func,onViewChange:c().func,onYearChange:c().func,open:c().bool,openTo:c().oneOf(["day","month","year"]),orientation:c().oneOf(["landscape","portrait"]),readOnly:c().bool,reduceAnimations:c().bool,referenceDate:c().any,renderLoading:c().func,selectedSections:c().oneOfType([c().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),c().number,c().shape({endIndex:c().number.isRequired,startIndex:c().number.isRequired})]),shouldDisableDate:c().func,shouldDisableMonth:c().func,shouldDisableYear:c().func,showDaysOutsideCurrentMonth:c().bool,slotProps:c().object,slots:c().object,sx:c().oneOfType([c().arrayOf(c().oneOfType([c().func,c().object,c().bool])),c().func,c().object]),timezone:c().string,value:c().any,view:c().oneOf(["day","month","year"]),viewRenderers:c().shape({day:c().func,month:c().func,year:c().func}),views:c().arrayOf(c().oneOf(["day","month","year"]).isRequired),yearsPerRow:c().oneOf([3,4])};var q=n(69136);const H=o.forwardRef((function(e,t){var n,i,o;const a=(0,p.Nq)(),s=(0,p.hc)(),l=O(e,"MuiMobileDatePicker"),c=(0,r.A)({day:U.W,month:U.W,year:U.W},l.viewRenderers),d=(0,r.A)({},l,{viewRenderers:c,format:(0,g.Wq)(s,l,!1),slots:(0,r.A)({field:$},l.slots),slotProps:(0,r.A)({},l.slotProps,{field:e=>{var n;return(0,r.A)({},(0,u.Y)(null==(n=l.slotProps)?void 0:n.field,e),(0,G.zd)(l),{ref:t})},toolbar:(0,r.A)({hidden:!1},null==(n=l.slotProps)?void 0:n.toolbar)})}),{renderPicker:f}=(0,q.C)({props:d,valueManager:h.W,valueType:"date",getOpenDialogAriaText:null!=(i=null==(o=d.localeText)?void 0:o.openDatePickerDialogue)?i:a.openDatePickerDialogue,validator:P.Z});return f()}));H.propTypes={autoFocus:c().bool,className:c().string,closeOnSelect:c().bool,components:c().object,componentsProps:c().object,dayOfWeekFormatter:c().func,defaultCalendarMonth:c().any,defaultValue:c().any,disabled:c().bool,disableFuture:c().bool,disableHighlightToday:c().bool,disableOpenPicker:c().bool,disablePast:c().bool,displayWeekNumber:c().bool,fixedWeekNumber:c().number,format:c().string,formatDensity:c().oneOf(["dense","spacious"]),inputRef:d.A,label:c().node,loading:c().bool,localeText:c().object,maxDate:c().any,minDate:c().any,monthsPerRow:c().oneOf([3,4]),name:c().string,onAccept:c().func,onChange:c().func,onClose:c().func,onError:c().func,onMonthChange:c().func,onOpen:c().func,onSelectedSectionsChange:c().func,onViewChange:c().func,onYearChange:c().func,open:c().bool,openTo:c().oneOf(["day","month","year"]),orientation:c().oneOf(["landscape","portrait"]),readOnly:c().bool,reduceAnimations:c().bool,referenceDate:c().any,renderLoading:c().func,selectedSections:c().oneOfType([c().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),c().number,c().shape({endIndex:c().number.isRequired,startIndex:c().number.isRequired})]),shouldDisableDate:c().func,shouldDisableMonth:c().func,shouldDisableYear:c().func,showDaysOutsideCurrentMonth:c().bool,slotProps:c().object,slots:c().object,sx:c().oneOfType([c().arrayOf(c().oneOfType([c().func,c().object,c().bool])),c().func,c().object]),timezone:c().string,value:c().any,view:c().oneOf(["day","month","year"]),viewRenderers:c().shape({day:c().func,month:c().func,year:c().func}),views:c().arrayOf(c().oneOf(["day","month","year"]).isRequired),yearsPerRow:c().oneOf([3,4])};var Y=n(40159);const K=["desktopModeMediaQuery"],X=o.forwardRef((function(e,t){const n=(0,s.A)({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=Y.jX}=n,l=(0,i.A)(n,K);return(0,a.A)(o,{defaultMatches:!0})?(0,S.jsx)(W,(0,r.A)({ref:t},l)):(0,S.jsx)(H,(0,r.A)({ref:t},l))}))},38540:(e,t,n)=>{"use strict";n.d(t,{$:()=>u,F:()=>c});var r=n(51559),i=n(73342),o=n(30538),a=n(87507),s=n(97282);const l=["localeText"],c=o.createContext(null);const u=function(e){var t;const{localeText:n}=e,u=(0,i.A)(e,l),{utils:d,localeText:h}=null!=(t=o.useContext(c))?t:{utils:void 0,localeText:void 0},p=(0,a.A)({props:u,name:"MuiLocalizationProvider"}),{children:f,dateAdapter:g,dateFormats:m,dateLibInstance:y,adapterLocale:v,localeText:b}=p,x=o.useMemo((()=>(0,r.A)({},b,h,n)),[b,h,n]),w=o.useMemo((()=>{if(!g)return d||null;const e=new g({locale:v,formats:m,instance:y});if(!e.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join("\n"));return e}),[g,v,m,y,d]),A=o.useMemo((()=>w?{minDate:w.date("1900-01-01T00:00:00.000"),maxDate:w.date("2099-12-31T00:00:00.000")}:null),[w]),S=o.useMemo((()=>({utils:w,defaultDates:A,localeText:x})),[A,w,x]);return(0,s.jsx)(c.Provider,{value:S,children:f})}},17614:(e,t,n)=>{"use strict";n.d(t,{CJ:()=>L});var r=n(30538),i=n(22300),o=n.n(i),a=n(87286),s=n(58990),l=n(87507),c=n(32829),u=n(24115);function d(e){return(0,u.Ay)("MuiPickersLayout",e)}const h=(0,n(5007).A)("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);var p=n(51559),f=n(94267),g=n(73342),m=n(50926),y=n(49773),v=n(34667),b=n(97282);const x=["onAccept","onClear","onCancel","onSetToday","actions"];function w(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:o}=e,a=(0,g.A)(e,x),s=(0,v.Nq)();if(null==o||0===o.length)return null;const l=null==o?void 0:o.map((e=>{switch(e){case"clear":return(0,b.jsx)(m.A,{onClick:n,children:s.clearButtonLabel},e);case"cancel":return(0,b.jsx)(m.A,{onClick:r,children:s.cancelButtonLabel},e);case"accept":return(0,b.jsx)(m.A,{onClick:t,children:s.okButtonLabel},e);case"today":return(0,b.jsx)(m.A,{onClick:i,children:s.todayButtonLabel},e);default:return null}}));return(0,b.jsx)(y.A,(0,p.A)({},a,{children:l}))}var A=n(57029),S=n(15444),C=n(83188),E=n(8589);const _=["items","changeImportance","isLandscape","onChange","isValid"],k=["getValue"];function T(e){const{items:t,changeImportance:n,onChange:r,isValid:i}=e,o=(0,g.A)(e,_);if(null==t||0===t.length)return null;const a=t.map((e=>{let{getValue:t}=e,o=(0,g.A)(e,k);const a=t({isValid:i});return{label:o.label,onClick:()=>{r(a,n,o)},disabled:!i(a)}}));return(0,b.jsx)(A.A,(0,p.A)({dense:!0,sx:[{maxHeight:E.Y2,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map((e=>(0,b.jsx)(S.Ay,{children:(0,b.jsx)(C.A,(0,p.A)({},e))},e.label)))}))}var O=n(84474);const P=e=>{var t,n;const{wrapperVariant:r,onAccept:i,onClear:o,onCancel:a,onSetToday:s,view:l,views:u,onViewChange:h,value:g,onChange:m,onSelectShortcut:y,isValid:v,isLandscape:x,disabled:A,readOnly:S,children:C,components:E,componentsProps:_,slots:k,slotProps:P}=e,I=null!=k?k:(0,O.p)(E),M=null!=P?P:_,L=(e=>{const{classes:t,isLandscape:n}=e,r={root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]};return(0,c.A)(r,d,t)})(e),R=null!=(t=null==I?void 0:I.actionBar)?t:w,j=(0,f.Q)({elementType:R,externalSlotProps:null==M?void 0:M.actionBar,additionalProps:{onAccept:i,onClear:o,onCancel:a,onSetToday:s,actions:"desktop"===r?[]:["cancel","accept"],className:L.actionBar},ownerState:(0,p.A)({},e,{wrapperVariant:r})}),F=(0,b.jsx)(R,(0,p.A)({},j)),D=null==I?void 0:I.toolbar,N=(0,f.Q)({elementType:D,externalSlotProps:null==M?void 0:M.toolbar,additionalProps:{isLandscape:x,onChange:m,value:g,view:l,onViewChange:h,views:u,disabled:A,readOnly:S,className:L.toolbar},ownerState:(0,p.A)({},e,{wrapperVariant:r})}),z=function(e){return null!==e.view}(N)&&D?(0,b.jsx)(D,(0,p.A)({},N)):null,V=C,B=null==I?void 0:I.tabs,$=l&&B?(0,b.jsx)(B,(0,p.A)({view:l,onViewChange:h,className:L.tabs},null==M?void 0:M.tabs)):null,G=null!=(n=null==I?void 0:I.shortcuts)?n:T,U=(0,f.Q)({elementType:G,externalSlotProps:null==M?void 0:M.shortcuts,additionalProps:{isValid:v,isLandscape:x,onChange:y,className:L.shortcuts},ownerState:{isValid:v,isLandscape:x,onChange:y,className:L.shortcuts,wrapperVariant:r}});return{toolbar:z,content:V,tabs:$,actionBar:F,shortcuts:l&&G?(0,b.jsx)(G,(0,p.A)({},U)):null}},I=(0,s.Ay)("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${h.toolbar}`]:t.isLandscape?{gridColumn:"rtl"===e.direction?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${h.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:"rtl"===e.direction?3:1,gridRow:"2 / 3"},[`& .${h.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}})));I.propTypes={as:o().elementType,ownerState:o().shape({isLandscape:o().bool.isRequired}).isRequired,sx:o().oneOfType([o().arrayOf(o().oneOfType([o().func,o().object,o().bool])),o().func,o().object])};const M=(0,s.Ay)("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),L=function(e){const t=(0,l.A)({props:e,name:"MuiPickersLayout"}),{toolbar:n,content:i,tabs:o,actionBar:s,shortcuts:u}=P(t),{sx:h,className:p,isLandscape:f,ref:g,wrapperVariant:m}=t,y=t,v=(e=>{const{isLandscape:t,classes:n}=e,r={root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]};return(0,c.A)(r,d,n)})(y);return(0,b.jsxs)(I,{ref:g,sx:h,className:(0,a.A)(p,v.root),ownerState:y,children:[f?u:n,f?n:u,(0,b.jsx)(M,{className:v.contentWrapper,children:"desktop"===m?(0,b.jsxs)(r.Fragment,{children:[i,o]}):(0,b.jsxs)(r.Fragment,{children:[o,i]})}),s]})}},29162:(e,t,n)=>{"use strict";n.d(t,{W:()=>a});n(30538);var r=n(48269),i=n(84316),o=n(97282);const a=({view:e,onViewChange:t,views:n,focusedView:a,onFocusedViewChange:s,value:l,defaultValue:c,referenceDate:u,onChange:d,className:h,classes:p,disableFuture:f,disablePast:g,minDate:m,maxDate:y,shouldDisableDate:v,shouldDisableMonth:b,shouldDisableYear:x,reduceAnimations:w,onMonthChange:A,monthsPerRow:S,onYearChange:C,yearsPerRow:E,defaultCalendarMonth:_,components:k,componentsProps:T,slots:O,slotProps:P,loading:I,renderLoading:M,disableHighlightToday:L,readOnly:R,disabled:j,showDaysOutsideCurrentMonth:F,dayOfWeekFormatter:D,sx:N,autoFocus:z,fixedWeekNumber:V,displayWeekNumber:B,timezone:$})=>(0,o.jsx)(r.x,{view:e,onViewChange:t,views:n.filter(i.sC),focusedView:a&&(0,i.sC)(a)?a:null,onFocusedViewChange:s,value:l,defaultValue:c,referenceDate:u,onChange:d,className:h,classes:p,disableFuture:f,disablePast:g,minDate:m,maxDate:y,shouldDisableDate:v,shouldDisableMonth:b,shouldDisableYear:x,reduceAnimations:w,onMonthChange:A,monthsPerRow:S,onYearChange:C,yearsPerRow:E,defaultCalendarMonth:_,components:k,componentsProps:T,slots:O,slotProps:P,loading:I,renderLoading:M,disableHighlightToday:L,readOnly:R,disabled:j,showDaysOutsideCurrentMonth:F,dayOfWeekFormatter:D,sx:N,autoFocus:z,fixedWeekNumber:V,displayWeekNumber:B,timezone:$})},29110:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(51559),i=n(73342),o=n(30538),a=n(94267),s=n(90703),l=n(99893),c=n(46260),u=n(34667),d=n(97282);const h=["ownerState"],p=({clearable:e,fieldProps:t,InputProps:n,onClear:p,slots:f,slotProps:g,components:m,componentsProps:y})=>{var v,b,x,w,A,S;const C=(0,u.Nq)(),E=null!=(v=null!=(b=null==f?void 0:f.clearButton)?b:null==m?void 0:m.ClearButton)?v:s.A,_=(0,a.Q)({elementType:E,externalSlotProps:null!=(x=null==g?void 0:g.clearButton)?x:null==y?void 0:y.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:C.fieldClearLabel}}),k=(0,i.A)(_,h),T=null!=(w=null!=(A=null==f?void 0:f.clearIcon)?A:null==m?void 0:m.ClearIcon)?w:c.vu,O=(0,a.Q)({elementType:T,externalSlotProps:null!=(S=null==g?void 0:g.clearIcon)?S:null==y?void 0:y.clearIcon,ownerState:{}});return{InputProps:(0,r.A)({},n,{endAdornment:(0,d.jsxs)(o.Fragment,{children:[e&&(0,d.jsx)(l.A,{position:"end",sx:{marginRight:null!=n&&n.endAdornment?-1:-1.5},children:(0,d.jsx)(E,(0,r.A)({},k,{onClick:p,children:(0,d.jsx)(T,(0,r.A)({fontSize:"small"},O))}))}),null==n?void 0:n.endAdornment]})}),fieldProps:(0,r.A)({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]})}}},46260:(e,t,n)=>{"use strict";n.d(t,{A6:()=>s,CT:()=>c,O4:()=>u,Z5:()=>d,b1:()=>h,fl:()=>l,iV:()=>a,vu:()=>p});var r=n(65127),i=n(30538),o=n(97282);const a=(0,r.A)((0,o.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),s=(0,r.A)((0,o.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),l=(0,r.A)((0,o.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),c=(0,r.A)((0,o.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),u=(0,r.A)((0,o.jsxs)(i.Fragment,{children:[(0,o.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,o.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),d=(0,r.A)((0,o.jsx)("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),h=(0,r.A)((0,o.jsxs)(i.Fragment,{children:[(0,o.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,o.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),p=(0,r.A)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear")},44206:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var r=n(58990),i=n(8589);const o=(0,r.Ay)("div")({overflow:"hidden",width:i.eX,maxHeight:i.Y2,display:"flex",flexDirection:"column",margin:"0 auto"})},58896:(e,t,n)=>{"use strict";n.d(t,{Y:()=>C});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(91031),l=n(58990),c=n(94145),u=n(87507),d=n(32829),h=n(94267),p=n(90703),f=n(46260),g=n(24115);function m(e){return(0,g.Ay)("MuiPickersArrowSwitcher",e)}(0,n(5007).A)("MuiPickersArrowSwitcher",["root","spacer","button"]);var y=n(97282);const v=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],b=["ownerState"],x=["ownerState"],w=(0,l.Ay)("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),A=(0,l.Ay)("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})((({theme:e})=>({width:e.spacing(3)}))),S=(0,l.Ay)(p.A,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})((({ownerState:e})=>(0,i.A)({},e.hidden&&{visibility:"hidden"}))),C=o.forwardRef((function(e,t){var n,o,l,p;const g="rtl"===(0,c.A)().direction,C=(0,u.A)({props:e,name:"MuiPickersArrowSwitcher"}),{children:E,className:_,slots:k,slotProps:T,isNextDisabled:O,isNextHidden:P,onGoToNext:I,nextLabel:M,isPreviousDisabled:L,isPreviousHidden:R,onGoToPrevious:j,previousLabel:F}=C,D=(0,r.A)(C,v),N=C,z=(e=>{const{classes:t}=e;return(0,d.A)({root:["root"],spacer:["spacer"],button:["button"]},m,t)})(N),V={isDisabled:O,isHidden:P,goTo:I,label:M},B={isDisabled:L,isHidden:R,goTo:j,label:F},$=null!=(n=null==k?void 0:k.previousIconButton)?n:S,G=(0,h.Q)({elementType:$,externalSlotProps:null==T?void 0:T.previousIconButton,additionalProps:{size:"medium",title:B.label,"aria-label":B.label,disabled:B.isDisabled,edge:"end",onClick:B.goTo},ownerState:(0,i.A)({},N,{hidden:B.isHidden}),className:z.button}),U=null!=(o=null==k?void 0:k.nextIconButton)?o:S,W=(0,h.Q)({elementType:U,externalSlotProps:null==T?void 0:T.nextIconButton,additionalProps:{size:"medium",title:V.label,"aria-label":V.label,disabled:V.isDisabled,edge:"start",onClick:V.goTo},ownerState:(0,i.A)({},N,{hidden:V.isHidden}),className:z.button}),q=null!=(l=null==k?void 0:k.leftArrowIcon)?l:f.A6,H=(0,h.Q)({elementType:q,externalSlotProps:null==T?void 0:T.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Y=(0,r.A)(H,b),K=null!=(p=null==k?void 0:k.rightArrowIcon)?p:f.fl,X=(0,h.Q)({elementType:K,externalSlotProps:null==T?void 0:T.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Z=(0,r.A)(X,x);return(0,y.jsxs)(w,(0,i.A)({ref:t,className:(0,a.A)(z.root,_),ownerState:N},D,{children:[(0,y.jsx)($,(0,i.A)({},G,{children:g?(0,y.jsx)(K,(0,i.A)({},Z)):(0,y.jsx)(q,(0,i.A)({},Y))})),E?(0,y.jsx)(s.A,{variant:"subtitle1",component:"span",children:E}):(0,y.jsx)(A,{className:z.spacer,ownerState:N}),(0,y.jsx)(U,(0,i.A)({},W,{children:g?(0,y.jsx)(q,(0,i.A)({},Y)):(0,y.jsx)(K,(0,i.A)({},Z))}))]}))}))},65703:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(51559),i=n(30538),o=n(87286),a=n(91031),s=n(58990),l=n(87507),c=n(32829),u=n(57491),d=n(97282);const h=(0,s.Ay)("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>(0,r.A)({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}))),p=(0,s.Ay)("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})((({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?null!=(t=e.landscapeDirection)?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}})),f=i.forwardRef((function(e,t){const n=(0,l.A)({props:e,name:"MuiPickersToolbar"}),{children:r,className:i,toolbarTitle:s,hidden:f,titleId:g}=n,m=n,y=(e=>{const{classes:t,isLandscape:n}=e,r={root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]};return(0,c.A)(r,u.B,t)})(m);return f?null:(0,d.jsxs)(h,{ref:t,className:(0,o.A)(y.root,i),ownerState:m,children:[(0,d.jsx)(a.A,{color:"text.secondary",variant:"overline",id:g,children:s}),(0,d.jsx)(p,{className:y.content,ownerState:m,children:r})]})}))},57491:(e,t,n)=>{"use strict";n.d(t,{B:()=>i});var r=n(24115);function i(e){return(0,r.Ay)("MuiPickersToolbar",e)}(0,n(5007).A)("MuiPickersToolbar",["root","content"])},8589:(e,t,n)=>{"use strict";n.d(t,{B3:()=>r,Y2:()=>s,Yq:()=>a,aG:()=>c,eX:()=>o,kP:()=>l,y0:()=>i});const r=36,i=2,o=320,a=280,s=334,l=232,c=48},40774:(e,t,n)=>{"use strict";n.d(t,{bH:()=>a,p_:()=>s,r7:()=>l});var r=n(30538),i=n(34667),o=n(32357);function a(e,{disableFuture:t,maxDate:n,timezone:o}){const a=(0,i.hc)();return r.useMemo((()=>{const r=a.dateWithTimezone(void 0,o),i=a.startOfMonth(t&&a.isBefore(r,n)?r:n);return!a.isAfter(i,e)}),[t,n,e,a,o])}function s(e,{disablePast:t,minDate:n,timezone:o}){const a=(0,i.hc)();return r.useMemo((()=>{const r=a.dateWithTimezone(void 0,o),i=a.startOfMonth(t&&a.isAfter(r,n)?r:n);return!a.isBefore(i,e)}),[t,n,e,a,o])}function l(e,t,n,a){const s=(0,i.hc)();return{meridiemMode:(0,o.fX)(e,s),handleMeridiemChange:r.useCallback((r=>{const i=null==e?null:(0,o.tB)(e,r,Boolean(t),s);n(i,null!=a?a:"partial")}),[t,e,n,a,s])}}},57834:(e,t,n)=>{"use strict";n.d(t,{q:()=>l});var r=n(6467);const i="undefined"!=typeof navigator&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),o=i&&i[1]?parseInt(i[1],10):null,a=i&&i[2]?parseInt(i[2],10):null,s=o&&o<10||a&&a<13||!1,l=()=>(0,r.A)("@media (prefers-reduced-motion: reduce)",{defaultMatches:!1})||s},38019:(e,t,n)=>{"use strict";n.d(t,{U:()=>N});var r=n(51559),i=n(73342),o=n(30538),a=n(94267),s=n(99893),l=n(90703),c=n(18029),u=n(5391),d=n(36797),h=n(68127),p=n(8088),f=n(47059),g=n(48265),m=n(32829),y=n(18605),v=n(74311),b=n(58990),x=n(87507),w=n(24115);function A(e){return(0,w.Ay)("MuiPickersPopper",e)}(0,n(5007).A)("MuiPickersPopper",["root","paper"]);var S=n(40159),C=n(57834),E=n(97282);const _=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],k=(0,b.Ay)(f.A,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({zIndex:e.zIndex.modal}))),T=(0,b.Ay)(p.A,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({ownerState:e})=>(0,r.A)({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"})));const O=o.forwardRef(((e,t)=>{const{PaperComponent:n,popperPlacement:o,ownerState:s,children:l,paperSlotProps:c,paperClasses:u,onPaperClick:d,onPaperTouchStart:h}=e,p=(0,i.A)(e,_),f=(0,r.A)({},s,{placement:o}),g=(0,a.Q)({elementType:n,externalSlotProps:c,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:u,ownerState:f});return(0,E.jsx)(n,(0,r.A)({},p,g,{onClick:e=>{var t;d(e),null==(t=g.onClick)||t.call(g,e)},onTouchStart:e=>{var t;h(e),null==(t=g.onTouchStart)||t.call(g,e)},ownerState:f,children:l}))}));function P(e){var t,n,i,s;const l=(0,x.A)({props:e,name:"MuiPickersPopper"}),{anchorEl:u,children:p,containerRef:f=null,shouldRestoreFocus:b,onBlur:w,onDismiss:_,open:P,role:I,placement:M,slots:L,slotProps:R,reduceAnimations:j}=l;o.useEffect((()=>{function e(e){!P||"Escape"!==e.key&&"Esc"!==e.key||_()}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[_,P]);const F=o.useRef(null);o.useEffect((()=>{"tooltip"===I||b&&!b()||(P?F.current=(0,S.bq)(document):F.current&&F.current instanceof HTMLElement&&setTimeout((()=>{F.current instanceof HTMLElement&&F.current.focus()})))}),[P,I,b]);const[D,N,z]=function(e,t){const n=o.useRef(!1),r=o.useRef(!1),i=o.useRef(null),a=o.useRef(!1);o.useEffect((()=>{if(e)return document.addEventListener("mousedown",t,!0),document.addEventListener("touchstart",t,!0),()=>{document.removeEventListener("mousedown",t,!0),document.removeEventListener("touchstart",t,!0),a.current=!1};function t(){a.current=!0}}),[e]);const s=(0,y.A)((e=>{if(!a.current)return;const o=r.current;r.current=!1;const s=(0,v.A)(i.current);if(!i.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!s.documentElement.contains(e.target)||i.current.contains(e.target),l||o||t(e)})),l=()=>{r.current=!0};return o.useEffect((()=>{if(e){const e=(0,v.A)(i.current),t=()=>{n.current=!0};return e.addEventListener("touchstart",s),e.addEventListener("touchmove",t),()=>{e.removeEventListener("touchstart",s),e.removeEventListener("touchmove",t)}}}),[e,s]),o.useEffect((()=>{if(e){const e=(0,v.A)(i.current);return e.addEventListener("click",s),()=>{e.removeEventListener("click",s),r.current=!1}}}),[e,s]),[i,l,l]}(P,null!=w?w:_),V=o.useRef(null),B=(0,c.A)(V,f),$=(0,c.A)(B,D),G=l,U=(e=>{const{classes:t}=e;return(0,m.A)({root:["root"],paper:["paper"]},A,t)})(G),W=(0,C.q)(),q=null!=j?j:W,H=(null!=(t=null==L?void 0:L.desktopTransition)?t:q)?h.A:d.A,Y=null!=(n=null==L?void 0:L.desktopTrapFocus)?n:g.s,K=null!=(i=null==L?void 0:L.desktopPaper)?i:T,X=null!=(s=null==L?void 0:L.popper)?s:k,Z=(0,a.Q)({elementType:X,externalSlotProps:null==R?void 0:R.popper,additionalProps:{transition:!0,role:I,open:P,anchorEl:u,placement:M,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),_())}},className:U.root,ownerState:l});return(0,E.jsx)(X,(0,r.A)({},Z,{children:({TransitionProps:e,placement:t})=>(0,E.jsx)(Y,(0,r.A)({open:P,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:"tooltip"===I,isEnabled:()=>!0},null==R?void 0:R.desktopTrapFocus,{children:(0,E.jsx)(H,(0,r.A)({},e,null==R?void 0:R.desktopTransition,{children:(0,E.jsx)(O,{PaperComponent:K,ownerState:G,popperPlacement:t,ref:$,onPaperClick:N,onPaperTouchStart:z,paperClasses:U.paper,paperSlotProps:null==R?void 0:R.desktopPaper,children:p})}))}))}))}var I=n(34667),M=n(34039),L=n(38540),R=n(17614);const j=["props","getOpenDialogAriaText"],F=["ownerState"],D=["ownerState"],N=e=>{var t,n,d,h,p;let{props:f,getOpenDialogAriaText:g}=e,m=(0,i.A)(e,j);const{slots:y,slotProps:v,className:b,sx:x,format:w,formatDensity:A,timezone:S,name:C,label:_,inputRef:k,readOnly:T,disabled:O,autoFocus:N,localeText:z,reduceAnimations:V}=f,B=(0,I.hc)(),$=o.useRef(null),G=o.useRef(null),U=(0,u.A)(),W=null!=(t=null==v||null==(n=v.toolbar)?void 0:n.hidden)&&t,{open:q,actions:H,hasUIView:Y,layoutProps:K,renderCurrentView:X,shouldRestoreFocus:Z,fieldProps:J}=(0,M.k)((0,r.A)({},m,{props:f,inputRef:$,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),Q=null!=(d=y.inputAdornment)?d:s.A,ee=(0,a.Q)({elementType:Q,externalSlotProps:null==v?void 0:v.inputAdornment,additionalProps:{position:"end"},ownerState:f}),te=(0,i.A)(ee,F),ne=null!=(h=y.openPickerButton)?h:l.A,re=(0,a.Q)({elementType:ne,externalSlotProps:null==v?void 0:v.openPickerButton,additionalProps:{disabled:O||T,onClick:q?H.onClose:H.onOpen,"aria-label":g(J.value,B),edge:te.position},ownerState:f}),ie=(0,i.A)(re,D),oe=y.openPickerIcon,ae=y.field,se=(0,a.Q)({elementType:ae,externalSlotProps:null==v?void 0:v.field,additionalProps:(0,r.A)({},J,W&&{id:U},{readOnly:T,disabled:O,className:b,sx:x,format:w,formatDensity:A,timezone:S,label:_,name:C,autoFocus:N&&!f.open,focused:!!q||void 0}),ownerState:f});Y&&(se.InputProps=(0,r.A)({},se.InputProps,{ref:G,[`${te.position}Adornment`]:(0,E.jsx)(Q,(0,r.A)({},te,{children:(0,E.jsx)(ne,(0,r.A)({},ie,{children:(0,E.jsx)(oe,(0,r.A)({},null==v?void 0:v.openPickerIcon))}))}))}));const le=(0,r.A)({textField:y.textField,clearIcon:y.clearIcon,clearButton:y.clearButton},se.slots),ce=null!=(p=y.layout)?p:R.CJ,ue=(0,c.A)($,se.inputRef,k);let de=U;W&&(de=_?`${U}-label`:void 0);const he=(0,r.A)({},v,{toolbar:(0,r.A)({},null==v?void 0:v.toolbar,{titleId:U}),popper:(0,r.A)({"aria-labelledby":de},null==v?void 0:v.popper)});return{renderPicker:()=>(0,E.jsxs)(L.$,{localeText:z,children:[(0,E.jsx)(ae,(0,r.A)({},se,{slots:le,slotProps:he,inputRef:ue})),(0,E.jsx)(P,(0,r.A)({role:"dialog",placement:"bottom-start",anchorEl:G.current},H,{open:q,slots:y,slotProps:he,shouldRestoreFocus:Z,reduceAnimations:V,children:(0,E.jsx)(ce,(0,r.A)({},K,null==he?void 0:he.layout,{slots:y,slotProps:he,children:X()}))}))]})}}},68317:(e,t,n)=>{"use strict";n.d(t,{M:()=>x});var r=n(51559),i=n(73342),o=n(30538),a=n(43107),s=n(18605),l=n(18029),c=n(94145),u=n(88899),d=n(34667),h=n(36423),p=n(63095),f=n(16944),g=n(57696);const m=e=>null!=e.saveQuery,y=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:i,timezone:a})=>{const l=(0,d.hc)(),[c,u]=o.useState(null),p=(0,s.A)((()=>u(null)));o.useEffect((()=>{var t;null!=c&&(null==(t=e[c.sectionIndex])?void 0:t.type)!==c.sectionType&&p()}),[e,c,p]),o.useEffect((()=>{if(null!=c){const e=setTimeout((()=>p()),5e3);return()=>{window.clearTimeout(e)}}return()=>{}}),[c,p]);const f=({keyPressed:t,sectionIndex:n},r,i)=>{const o=t.toLowerCase(),a=e[n];if(null!=c&&(!i||i(c.value))&&c.sectionIndex===n){const e=`${c.value}${o}`,t=r(e,a);if(!m(t))return u({sectionIndex:n,value:e,sectionType:a.type}),t}const s=r(o,a);return m(s)&&!s.saveQuery?(p(),null):(u({sectionIndex:n,value:o,sectionType:a.type}),m(s)?null:s)};return{applyCharacterEditing:(0,s.A)((o=>{const s=e[o.sectionIndex],c=!Number.isNaN(Number(o.keyPressed))?(e=>{const t=(e,t)=>{const r=Number(`${e}`),i=n[t.type]({currentDate:null,format:t.format,contentType:t.contentType});if(r>i.maximum)return{saveQuery:!1};if(ri.maximum||e.length===i.maximum.toString().length;return{sectionValue:(0,h.bQ)(l,a,r,i,t),shouldGoToNextSection:o}};return f(e,((e,n)=>{if("digit"===n.contentType||"digit-with-letter"===n.contentType)return t(e,n);if("month"===n.type){const i=(0,h.Xw)(l,a,"digit","month","MM"),o=t(e,{type:n.type,format:"MM",hasLeadingZerosInFormat:i,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(m(o))return o;const s=(0,h.C7)(l,o.sectionValue,"MM",n.format);return(0,r.A)({},o,{sectionValue:s})}if("weekDay"===n.type){const i=t(e,n);if(m(i))return i;const o=(0,h.s8)(l,a,n.format)[Number(i.sectionValue)-1];return(0,r.A)({},i,{sectionValue:o})}return{saveQuery:!1}}),(e=>!Number.isNaN(Number(e))))})(o):(e=>{const t=(e,t,n)=>{const r=t.filter((e=>e.toLowerCase().startsWith(n)));return 0===r.length?{saveQuery:!1}:{sectionValue:r[0],shouldGoToNextSection:1===r.length}},n=(e,n,i,o)=>{const s=e=>(0,h.hk)(l,a,n.type,e);if("letter"===n.contentType)return t(n.format,s(n.format),e);if(i&&null!=o&&"letter"===(0,h.wp)(l,i).contentType){const n=s(i),a=t(0,n,e);return m(a)?{saveQuery:!1}:(0,r.A)({},a,{sectionValue:o(a.sectionValue,n)})}return{saveQuery:!1}};return f(e,((e,t)=>{switch(t.type){case"month":{const r=e=>(0,h.C7)(l,e,l.formats.month,t.format);return n(e,t,l.formats.month,r)}case"weekDay":{const r=(e,t)=>t.indexOf(e).toString();return n(e,t,l.formats.weekday,r)}case"meridiem":return n(e,t);default:return{saveQuery:!1}}}))})(o);null==c?i(null):t({activeSection:s,newSectionValue:c.sectionValue,shouldGoToNextSection:c.shouldGoToNextSection})})),resetCharacterQuery:p}};var v=n(40159);const b=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],x=e=>{const t=(0,d.hc)(),{state:n,selectedSectionIndexes:m,setSelectedSections:x,clearValue:w,clearActiveSection:A,updateSectionValue:S,updateValueFromValueStr:C,setTempAndroidValueStr:E,sectionsValueBoundaries:_,placeholder:k,timezone:T}=(e=>{const t=(0,d.hc)(),n=(0,d.Nq)(),i=(0,d.u)(),a="rtl"===(0,c.A)().direction,{valueManager:s,fieldValueManager:l,valueType:u,validator:m,internalProps:y,internalProps:{value:v,defaultValue:b,referenceDate:x,onChange:w,format:A,formatDensity:S="dense",selectedSections:C,onSelectedSectionsChange:E,shouldRespectLeadingZeros:_=!1,timezone:k}}=e,{timezone:T,value:O,handleValueChange:P}=(0,f.M)({timezone:k,value:v,defaultValue:b,onChange:w,valueManager:s}),I=o.useMemo((()=>(0,h.Lz)(t,T)),[t,T]),M=o.useCallback(((e,r=null)=>l.getSectionsFromValue(t,e,r,a,(e=>(0,h.MQ)(t,T,n,A,e,S,_,a)))),[l,A,n,a,_,t,S,T]),L=o.useMemo((()=>l.getValueStrFromSections(M(s.emptyValue),a)),[l,M,s.emptyValue,a]),[R,j]=o.useState((()=>{const e=M(O);(0,h.xL)(e,u);const n={sections:e,value:O,referenceValue:s.emptyValue,tempValueStrAndroid:null},i=(0,g.kI)(e),o=s.getInitialReferenceValue({referenceDate:x,value:O,utils:t,props:y,granularity:i,timezone:T});return(0,r.A)({},n,{referenceValue:o})})),[F,D]=(0,p.A)({controlled:C,default:null,name:"useField",state:"selectedSectionIndexes"}),N=e=>{D(e),null==E||E(e),j((e=>(0,r.A)({},e,{selectedSectionQuery:null})))},z=o.useMemo((()=>{if(null==F)return null;if("all"===F)return{startIndex:0,endIndex:R.sections.length-1,shouldSelectBoundarySelectors:!0};if("number"==typeof F)return{startIndex:F,endIndex:F};if("string"==typeof F){const e=R.sections.findIndex((e=>e.type===F));return{startIndex:e,endIndex:e}}return F}),[F,R.sections]),V=({value:e,referenceValue:n,sections:o})=>{if(j((t=>(0,r.A)({},t,{sections:o,value:e,referenceValue:n,tempValueStrAndroid:null}))),s.areValuesEqual(t,R.value,e))return;const a={validationError:m({adapter:i,value:e,props:(0,r.A)({},y,{value:e,timezone:T})})};P(e,a)},B=(e,t)=>{const n=[...R.sections];return n[e]=(0,r.A)({},n[e],{value:t,modified:!0}),(0,h.H6)(n,a)};return o.useEffect((()=>{const e=M(R.value);(0,h.xL)(e,u),j((t=>(0,r.A)({},t,{sections:e})))}),[A,t.locale]),o.useEffect((()=>{let e=!1;e=!s.areValuesEqual(t,R.value,O)||s.getTimezone(t,R.value)!==s.getTimezone(t,O),e&&j((e=>(0,r.A)({},e,{value:O,referenceValue:l.updateReferenceValue(t,O,e.referenceValue),sections:M(O)})))}),[O]),{state:R,selectedSectionIndexes:z,setSelectedSections:N,clearValue:()=>{V({value:s.emptyValue,referenceValue:R.referenceValue,sections:M(s.emptyValue)})},clearActiveSection:()=>{if(null==z)return;const e=R.sections[z.startIndex],n=l.getActiveDateManager(t,R,e),i=n.getSections(R.sections).filter((e=>""!==e.value)).length===(""===e.value?0:1),o=B(z.startIndex,""),a=i?null:t.date(new Date("")),s=n.getNewValuesFromNewActiveDate(a);(null!=a&&!t.isValid(a))!=(null!=n.date&&!t.isValid(n.date))?V((0,r.A)({},s,{sections:o})):j((e=>(0,r.A)({},e,s,{sections:o,tempValueStrAndroid:null})))},updateSectionValue:({activeSection:e,newSectionValue:n,shouldGoToNextSection:i})=>{i&&z&&z.startIndex(0,r.A)({},e,u,{sections:a,tempValueStrAndroid:null})))},updateValueFromValueStr:e=>{const r=l.parseValueStr(e,R.referenceValue,((e,r)=>{const i=t.parse(e,A);if(null==i||!t.isValid(i))return null;const o=(0,h.MQ)(t,T,n,A,i,S,_,a);return(0,h.Sp)(t,T,i,o,r,!1)})),i=l.updateReferenceValue(t,r,R.referenceValue);V({value:r,referenceValue:i,sections:M(r,R.sections)})},setTempAndroidValueStr:e=>j((t=>(0,r.A)({},t,{tempValueStrAndroid:e}))),sectionsValueBoundaries:I,placeholder:L,timezone:T}})(e),{inputRef:O,internalProps:P,internalProps:{readOnly:I=!1,unstableFieldRef:M,minutesStep:L},forwardedProps:{onClick:R,onKeyDown:j,onFocus:F,onBlur:D,onMouseUp:N,onPaste:z,error:V,clearable:B,onClear:$,disabled:G},fieldValueManager:U,valueManager:W,validator:q}=e,H=(0,i.A)(e.forwardedProps,b),{applyCharacterEditing:Y,resetCharacterQuery:K}=y({sections:n.sections,updateSectionValue:S,sectionsValueBoundaries:_,setTempAndroidValueStr:E,timezone:T}),X=o.useRef(null),Z=(0,l.A)(O,X),J=o.useRef(void 0),Q="rtl"===(0,c.A)().direction,ee=o.useMemo((()=>(0,h.gS)(n.sections,Q)),[n.sections,Q]),te=()=>{var e;if(I)return void x(null);const t=null!=(e=X.current.selectionStart)?e:0;let r;r=t<=n.sections[0].startInInput||t>=n.sections[n.sections.length-1].endInInput?1:n.sections.findIndex((e=>e.startInInput-e.startSeparator.length>t));const i=-1===r?n.sections.length-1:r-1;x(i)},ne=(0,s.A)(((e,...t)=>{e.isDefaultPrevented()||(null==R||R(e,...t),te())})),re=(0,s.A)((e=>{null==N||N(e),e.preventDefault()})),ie=(0,s.A)(((...e)=>{null==F||F(...e);const t=X.current;window.clearTimeout(J.current),J.current=setTimeout((()=>{t&&t===X.current&&(null!=m||I||(t.value.length&&Number(t.selectionEnd)-Number(t.selectionStart)===t.value.length?x("all"):te()))}))})),oe=(0,s.A)(((...e)=>{null==D||D(...e),x(null)})),ae=(0,s.A)((e=>{if(null==z||z(e),I)return void e.preventDefault();const t=e.clipboardData.getData("text");if(m&&m.startIndex===m.endIndex){const r=n.sections[m.startIndex],i=/^[a-zA-Z]+$/.test(t),o=/^[0-9]+$/.test(t),a=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(t);if("letter"===r.contentType&&i||"digit"===r.contentType&&o||"digit-with-letter"===r.contentType&&a)return K(),S({activeSection:r,newSectionValue:t,shouldGoToNextSection:!0}),void e.preventDefault();if(i||o)return void e.preventDefault()}e.preventDefault(),K(),C(t)})),se=(0,s.A)((e=>{if(I)return;const t=e.target.value;if(""===t)return K(),void w();const r=e.nativeEvent.data,i=r&&r.length>1,o=i?r:t,a=(0,h.HI)(o);if(null==m||i)return void C(i?r:a);let s;if(0===m.startIndex&&m.endIndex===n.sections.length-1&&1===a.length)s=a;else{const e=(0,h.HI)(U.getValueStrFromSections(n.sections,Q));let t=-1,r=-1;for(let n=0;ni.end)return;const o=a.length-e.length+i.end-(0,h.HI)(i.endSeparator||"").length;s=a.slice(i.start+(0,h.HI)(i.startSeparator||"").length,o)}0!==s.length?Y({keyPressed:s,sectionIndex:m.startIndex}):(0,h.m0)()?E(o):(K(),A())})),le=(0,s.A)((e=>{switch(null==j||j(e),!0){case"a"===e.key&&(e.ctrlKey||e.metaKey):e.preventDefault(),x("all");break;case"ArrowRight"===e.key:if(e.preventDefault(),null==m)x(ee.startIndex);else if(m.startIndex!==m.endIndex)x(m.endIndex);else{const e=ee.neighbors[m.startIndex].rightIndex;null!==e&&x(e)}break;case"ArrowLeft"===e.key:if(e.preventDefault(),null==m)x(ee.endIndex);else if(m.startIndex!==m.endIndex)x(m.startIndex);else{const e=ee.neighbors[m.startIndex].leftIndex;null!==e&&x(e)}break;case"Delete"===e.key:if(e.preventDefault(),I)break;null==m||0===m.startIndex&&m.endIndex===n.sections.length-1?w():A(),K();break;case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(e.key):{if(e.preventDefault(),I||null==m)break;const r=n.sections[m.startIndex],i=U.getActiveDateManager(t,n,r),o=(0,h.UY)(t,T,r,e.key,_,i.date,{minutesStep:L});S({activeSection:r,newSectionValue:o,shouldGoToNextSection:!1});break}}}));(0,a.A)((()=>{if(!X.current)return;if(null==m)return void(X.current.scrollLeft&&(X.current.scrollLeft=0));const e=n.sections[m.startIndex],t=n.sections[m.endIndex];let r=e.startInInput,i=t.endInInput;if(m.shouldSelectBoundarySelectors&&(r-=e.startSeparator.length,i+=t.endSeparator.length),r!==X.current.selectionStart||i!==X.current.selectionEnd){const e=X.current.scrollTop;X.current===(0,v.bq)(document)&&X.current.setSelectionRange(r,i),X.current.scrollTop=e}}));const ce=(0,u.$)((0,r.A)({},P,{value:n.value,timezone:T}),q,W.isSameError,W.defaultErrorState),ue=o.useMemo((()=>void 0!==V?V:W.hasError(ce)),[W,ce,V]);o.useEffect((()=>{ue||m||K()}),[n.referenceValue,m,ue]),o.useEffect((()=>(X.current&&X.current===document.activeElement&&x("all"),()=>window.clearTimeout(J.current))),[]),o.useEffect((()=>{null!=n.tempValueStrAndroid&&null!=m&&(K(),A())}),[n.tempValueStrAndroid]);const de=o.useMemo((()=>{var e;return null!=(e=n.tempValueStrAndroid)?e:U.getValueStrFromSections(n.sections,Q)}),[n.sections,U,n.tempValueStrAndroid,Q]),he=o.useMemo((()=>null==m||"letter"===n.sections[m.startIndex].contentType?"text":"numeric"),[m,n.sections]),pe=X.current&&X.current===(0,v.bq)(document),fe=W.areValuesEqual(t,n.value,W.emptyValue),ge=!pe&&fe;o.useImperativeHandle(M,(()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var e,t,r;const i=null!=(e=X.current.selectionStart)?e:0,o=null!=(t=X.current.selectionEnd)?t:0,a=!(null==(r=X.current)||!r.readOnly);if(0===i&&0===o||a)return null;const s=i<=n.sections[0].startInInput?1:n.sections.findIndex((e=>e.startInInput-e.startSeparator.length>i));return-1===s?n.sections.length-1:s-1},setSelectedSections:e=>x(e)})));const me=(0,s.A)(((e,...t)=>{var n;e.preventDefault(),null==$||$(e,...t),w(),null==X||null==(n=X.current)||n.focus(),x(0)}));return(0,r.A)({placeholder:k,autoComplete:"off",disabled:Boolean(G)},H,{value:ge?"":de,inputMode:he,readOnly:I,onClick:ne,onFocus:ie,onBlur:oe,onPaste:ae,onChange:se,onKeyDown:le,onMouseUp:re,onClear:me,error:ue,ref:Z,clearable:Boolean(B&&!fe&&!I&&!G)})}},36423:(e,t,n)=>{"use strict";n.d(t,{$i:()=>b,C7:()=>g,H6:()=>p,HI:()=>h,Lz:()=>w,MQ:()=>v,Sp:()=>C,UY:()=>u,Xw:()=>y,bQ:()=>c,bl:()=>x,gS:()=>_,hk:()=>s,m0:()=>E,s8:()=>a,wp:()=>o,xL:()=>A});var r=n(51559),i=n(84316);const o=(e,t)=>{const n=e.formatTokenMap[t];if(null==n)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join("\n"));return"string"==typeof n?{type:n,contentType:"meridiem"===n?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},a=(e,t,n)=>{const r=[],i=e.dateWithTimezone(void 0,t),o=e.startOfWeek(i),a=e.endOfWeek(i);let s=o;for(;e.isBefore(s,a);)r.push(s),s=e.addDays(s,1);return r.map((t=>e.formatByString(t,n)))},s=(e,t,n,r)=>{switch(n){case"month":return(0,i.YQ)(e,e.dateWithTimezone(void 0,t)).map((t=>e.formatByString(t,r)));case"weekDay":return a(e,t,r);case"meridiem":{const n=e.dateWithTimezone(void 0,t);return[e.startOfDay(n),e.endOfDay(n)].map((t=>e.formatByString(t,r)))}default:return[]}},l=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if("day"===i.type&&"digit-with-letter"===i.contentType){const t=e.setDate(r.longestMonth,n);return e.formatByString(t,i.format)}const o=n.toString();return i.hasLeadingZerosInInput?l(0,o,i.maxLength):o},u=(e,t,n,r,i,o,a)=>{const l=(e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}})(r),u="Home"===r,d="End"===r,h=""===n.value||u||d;return"digit"===n.contentType||"digit-with-letter"===n.contentType?(()=>{const r=i[n.type]({currentDate:o,format:n.format,contentType:n.contentType}),s=i=>c(e,t,i,r,n),p="minutes"===n.type&&null!=a&&a.minutesStep?a.minutesStep:1;let f=parseInt(n.value,10)+l*p;if(h){if("year"===n.type&&!d&&!u)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);f=l>0||u?r.minimum:r.maximum}return f%p!=0&&((l<0||u)&&(f+=p-(p+f)%p),(l>0||d)&&(f-=f%p)),f>r.maximum?s(r.minimum+(f-r.maximum-1)%(r.maximum-r.minimum+1)):f{const r=s(e,t,n.type,n.format);if(0===r.length)return n.value;if(h)return l>0||u?r[0]:r[r.length-1];const i=r.indexOf(n.value);return r[(i+r.length+l)%r.length]})()},d=(e,t)=>{let n=e.value||e.placeholder;const r="non-input"===t?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;"non-input"===t&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString());return["input-rtl","input-ltr"].includes(t)&&"digit"===e.contentType&&!r&&1===n.length&&(n=`${n}`),"input-rtl"===t&&(n=`${n}`),n},h=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),p=(e,t)=>{let n=0,i=t?1:0;const o=[];for(let a=0;a{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),i).length,format:i});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType,format:i});case"day":return n.fieldDayPlaceholder({format:i});case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType,format:i});case"hours":return n.fieldHoursPlaceholder({format:i});case"minutes":return n.fieldMinutesPlaceholder({format:i});case"seconds":return n.fieldSecondsPlaceholder({format:i});case"meridiem":return n.fieldMeridiemPlaceholder({format:i});default:return i}},g=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),m=(e,t,n)=>4===e.formatByString(e.dateWithTimezone(void 0,t),n).length,y=(e,t,n,r,i)=>{if("digit"!==n)return!1;const o=e.dateWithTimezone(void 0,t);switch(r){case"year":if(m(e,t,i)){return"0001"===e.formatByString(e.setYear(o,1),i)}return"01"===e.formatByString(e.setYear(o,2001),i);case"month":return e.formatByString(e.startOfYear(o),i).length>1;case"day":return e.formatByString(e.startOfMonth(o),i).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),i).length>1;case"hours":return e.formatByString(e.setHours(o,1),i).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),i).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),i).length>1;default:throw new Error("Invalid section type")}},v=(e,t,n,i,a,s,c,u)=>{let d="";const h=[],p=e.date(),g=i=>{if(""===i)return null;const s=o(e,i),u=y(e,t,s.contentType,s.type,i),g=c?u:"digit"===s.contentType,m=null!=a&&e.isValid(a);let v=m?e.formatByString(a,i):"",b=null;if(g)if(u)b=""===v?e.formatByString(p,i).length:v.length;else{if(null==s.maxLength)throw new Error(`MUI: The token ${i} should have a 'maxDigitNumber' property on it's adapter`);b=s.maxLength,m&&(v=l(0,v,b))}return h.push((0,r.A)({},s,{format:i,maxLength:b,value:v,placeholder:f(e,t,n,s,i),hasLeadingZeros:u,hasLeadingZerosInFormat:u,hasLeadingZerosInInput:g,startSeparator:0===h.length?d:"",endSeparator:"",modified:!1})),null};let m=10,v=i,b=e.expandFormat(i);for(;b!==v;)if(v=b,b=e.expandFormat(v),m-=1,m<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const x=b,w=((e,t)=>{const n=[],{start:r,end:i}=e.escapedCharacters,o=new RegExp(`(\\${r}[^\\${i}]*\\${i})+`,"g");let a=null;for(;a=o.exec(t);)n.push({start:a.index,end:o.lastIndex-1});return n})(e,x),A=new RegExp(`^(${Object.keys(e.formatTokenMap).sort(((e,t)=>t.length-e.length)).join("|")})`,"g");let S="";for(let e=0;et.start<=e&&t.end>=e)),n=x[e],r=null!=t,i=`${S}${x.slice(e)}`,o=A.test(i);if(!r&&n.match(/([A-Za-z]+)/)&&o)S=i.slice(0,A.lastIndex),e+=A.lastIndex-1;else{r&&(null==t?void 0:t.start)===e||(null==t?void 0:t.end)===e||(g(S),S="",0===h.length?d+=n:h[h.length-1].endSeparator+=n)}}return g(S),h.map((e=>{const t=e=>{let t=e;return u&&null!==t&&t.includes(" ")&&(t=`${t}`),"spacious"===s&&["/",".","-"].includes(t)&&(t=` ${t} `),t};return e.startSeparator=t(e.startSeparator),e.endSeparator=t(e.endSeparator),e}))},b=(e,t)=>{const n=t.some((e=>"day"===e.type)),r=[],i=[];for(let e=0;e{const n=e.map((e=>{const n=d(e,t?"input-rtl":"input-ltr");return`${e.startSeparator}${n}${e.endSeparator}`})).join("");return t?`${n}`:n},w=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:s,longestMonth:l}=(0,i.YQ)(e,n).reduce(((t,n)=>{const r=e.getDaysInMonth(n);return r>t.maxDaysInMonth?{maxDaysInMonth:r,longestMonth:n}:t}),{maxDaysInMonth:0,longestMonth:null});return{year:({format:n})=>({minimum:0,maximum:m(e,t,n)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:t})=>({minimum:1,maximum:null!=t&&e.isValid(t)?e.getDaysInMonth(t):s,longestMonth:l}),weekDay:({format:n,contentType:r})=>{if("digit"===r){const r=a(e,t,n).map(Number);return{minimum:Math.min(...r),maximum:Math.max(...r)}}return{minimum:1,maximum:7}},hours:({format:t})=>{const r=e.getHours(o);return e.formatByString(e.endOfDay(n),t)!==r.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),t))}:{minimum:0,maximum:r}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}};const A=(e,t)=>{0},S={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},C=(e,t,n,r,i,o)=>[...r].sort(((e,t)=>S[e.type]-S[t.type])).reduce(((r,i)=>!o||i.modified?((e,t,n,r,i)=>{switch(n.type){case"year":return e.setYear(i,e.getYear(r));case"month":return e.setMonth(i,e.getMonth(r));case"weekDay":{const i=a(e,t,n.format),o=e.formatByString(r,n.format),s=i.indexOf(o),l=i.indexOf(n.value)-s;return e.addDays(r,l)}case"day":return e.setDate(i,e.getDate(r));case"meridiem":{const t=e.getHours(r)<12,n=e.getHours(i);return t&&n>=12?e.addHours(i,-12):!t&&n<12?e.addHours(i,12):i}case"hours":return e.setHours(i,e.getHours(r));case"minutes":return e.setMinutes(i,e.getMinutes(r));case"seconds":return e.setSeconds(i,e.getSeconds(r));default:return i}})(e,t,i,n,r):r),i),E=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,_=(e,t)=>{const n={};if(!t)return e.forEach(((t,r)=>{const i=0===r?null:r-1,o=r===e.length-1?null:r+1;n[r]={leftIndex:i,rightIndex:o}})),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},i={};let o=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex(((e,t)=>{var n;return t>=o&&(null==(n=e.endSeparator)?void 0:n.includes(" "))&&" / "!==e.endSeparator})),-1===a&&(a=e.length-1);for(let e=a;e>=o;e-=1)i[e]=s,r[s]=e,s-=1;o=a+1}return e.forEach(((t,o)=>{const a=i[o],s=0===a?null:r[a-1],l=a===e.length-1?null:r[a+1];n[o]={leftIndex:s,rightIndex:l}})),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}}},69136:(e,t,n)=>{"use strict";n.d(t,{C:()=>E});var r=n(51559),i=n(73342),o=n(30538),a=n(94267),s=n(18029),l=n(5391),c=n(99311),u=n(68127),d=n(53279),h=n(11371),p=n(58990),f=n(8589),g=n(97282);const m=(0,p.Ay)(d.A)({[`& .${h.A.container}`]:{outline:0},[`& .${h.A.paper}`]:{outline:0,minWidth:f.eX}}),y=(0,p.Ay)(c.A)({"&:first-of-type":{padding:0}});function v(e){var t,n;const{children:i,onDismiss:o,open:a,slots:s,slotProps:l}=e,c=null!=(t=null==s?void 0:s.dialog)?t:m,d=null!=(n=null==s?void 0:s.mobileTransition)?n:u.A;return(0,g.jsx)(c,(0,r.A)({open:a,onClose:o},null==l?void 0:l.dialog,{TransitionComponent:d,TransitionProps:null==l?void 0:l.mobileTransition,PaperComponent:null==s?void 0:s.mobilePaper,PaperProps:null==l?void 0:l.mobilePaper,children:(0,g.jsx)(y,{children:i})}))}var b=n(34039),x=n(40159),w=n(34667),A=n(38540),S=n(17614);const C=["props","getOpenDialogAriaText"],E=e=>{var t,n,c;let{props:u,getOpenDialogAriaText:d}=e,h=(0,i.A)(e,C);const{slots:p,slotProps:f,className:m,sx:y,format:E,formatDensity:_,timezone:k,name:T,label:O,inputRef:P,readOnly:I,disabled:M,localeText:L}=u,R=(0,w.hc)(),j=o.useRef(null),F=(0,l.A)(),D=null!=(t=null==f||null==(n=f.toolbar)?void 0:n.hidden)&&t,{open:N,actions:z,layoutProps:V,renderCurrentView:B,fieldProps:$}=(0,b.k)((0,r.A)({},h,{props:u,inputRef:j,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),G=p.field,U=(0,a.Q)({elementType:G,externalSlotProps:null==f?void 0:f.field,additionalProps:(0,r.A)({},$,D&&{id:F},!(M||I)&&{onClick:z.onOpen,onKeyDown:(0,x.rQ)(z.onOpen)},{readOnly:null==I||I,disabled:M,className:m,sx:y,format:E,formatDensity:_,timezone:k,label:O,name:T}),ownerState:u});U.inputProps=(0,r.A)({},U.inputProps,{"aria-label":d($.value,R)});const W=(0,r.A)({textField:p.textField},U.slots),q=null!=(c=p.layout)?c:S.CJ,H=(0,s.A)(j,U.inputRef,P);let Y=F;D&&(Y=O?`${F}-label`:void 0);const K=(0,r.A)({},f,{toolbar:(0,r.A)({},null==f?void 0:f.toolbar,{titleId:F}),mobilePaper:(0,r.A)({"aria-labelledby":Y},null==f?void 0:f.mobilePaper)});return{renderPicker:()=>(0,g.jsxs)(A.$,{localeText:L,children:[(0,g.jsx)(G,(0,r.A)({},U,{slots:W,slotProps:K,inputRef:H})),(0,g.jsx)(v,(0,r.A)({},z,{open:N,slots:p,slotProps:K,children:(0,g.jsx)(q,(0,r.A)({},V,null==K?void 0:K.layout,{slots:p,slotProps:K,children:B()}))}))]})}}},34039:(e,t,n)=>{"use strict";n.d(t,{k:()=>b});var r=n(51559),i=n(30538),o=n(63095),a=n(18605);var s=n(34667),l=n(88899),c=n(16944);const u=({props:e,valueManager:t,valueType:n,wrapperVariant:u,validator:d})=>{const{onAccept:h,onChange:p,value:f,defaultValue:g,closeOnSelect:m="desktop"===u,selectedSections:y,onSelectedSectionsChange:v,timezone:b}=e,{current:x}=i.useRef(g),{current:w}=i.useRef(void 0!==f);const A=(0,s.hc)(),S=(0,s.u)(),[C,E]=(0,o.A)({controlled:y,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:_,setIsOpen:k}=(({open:e,onOpen:t,onClose:n})=>{const r=i.useRef("boolean"==typeof e).current,[o,a]=i.useState(!1);return i.useEffect((()=>{if(r){if("boolean"!=typeof e)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}}),[r,e]),{isOpen:o,setIsOpen:i.useCallback((e=>{r||a(e),e&&t&&t(),!e&&n&&n()}),[r,t,n])}})(e),[T,O]=i.useState((()=>{let e;return e=void 0!==f?f:void 0!==x?x:t.emptyValue,{draft:e,lastPublishedValue:e,lastCommittedValue:e,lastControlledValue:f,hasBeenModifiedSinceMount:!1}})),{timezone:P,handleValueChange:I}=(0,c.M)({timezone:b,value:f,defaultValue:x,onChange:p,valueManager:t});(0,l.$)((0,r.A)({},e,{value:T.draft,timezone:P}),d,t.isSameError,t.defaultErrorState);const M=(0,a.A)((n=>{const i={action:n,dateState:T,hasChanged:e=>!t.areValuesEqual(A,n.value,e),isControlled:w,closeOnSelect:m},o=(e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i}=e,o=!i&&!r.hasBeenModifiedSinceMount;return"setValueFromField"===t.name||("setValueFromAction"===t.name?!(!o||!["accept","today","clear"].includes(t.pickerAction))||n(r.lastPublishedValue):("setValueFromView"===t.name&&"shallow"!==t.selectionState||"setValueFromShortcut"===t.name)&&(!!o||n(r.lastPublishedValue)))})(i),a=(e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i,closeOnSelect:o}=e,a=!i&&!r.hasBeenModifiedSinceMount;return"setValueFromAction"===t.name?!(!a||!["accept","today","clear"].includes(t.pickerAction))||n(r.lastCommittedValue):"setValueFromView"===t.name&&"finish"===t.selectionState&&o?!!a||n(r.lastCommittedValue):"setValueFromShortcut"===t.name&&"accept"===t.changeImportance&&n(r.lastCommittedValue)})(i),s=(e=>{const{action:t,closeOnSelect:n}=e;return"setValueFromAction"===t.name||("setValueFromView"===t.name?"finish"===t.selectionState&&n:"setValueFromShortcut"===t.name&&"accept"===t.changeImportance)})(i);if(O((e=>(0,r.A)({},e,{draft:n.value,lastPublishedValue:o?n.value:e.lastPublishedValue,lastCommittedValue:a?n.value:e.lastCommittedValue,hasBeenModifiedSinceMount:!0}))),o){const t={validationError:"setValueFromField"===n.name?n.context.validationError:d({adapter:S,value:n.value,props:(0,r.A)({},e,{value:n.value,timezone:P})})};"setValueFromShortcut"===n.name&&null!=n.shortcut&&(t.shortcut=n.shortcut),I(n.value,t)}a&&h&&h(n.value),s&&k(!1)}));if(void 0!==f&&(void 0===T.lastControlledValue||!t.areValuesEqual(A,T.lastControlledValue,f))){const e=t.areValuesEqual(A,T.draft,f);O((t=>(0,r.A)({},t,{lastControlledValue:f},e?{}:{lastCommittedValue:f,lastPublishedValue:f,draft:f,hasBeenModifiedSinceMount:!0})))}const L=(0,a.A)((()=>{M({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})})),R=(0,a.A)((()=>{M({value:T.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})})),j=(0,a.A)((()=>{M({value:T.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})})),F=(0,a.A)((()=>{M({value:T.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})})),D=(0,a.A)((()=>{M({value:t.getTodayValue(A,P,n),name:"setValueFromAction",pickerAction:"today"})})),N=(0,a.A)((()=>k(!0))),z=(0,a.A)((()=>k(!1))),V=(0,a.A)(((e,t="partial")=>M({name:"setValueFromView",value:e,selectionState:t}))),B=(0,a.A)(((e,t,n)=>M({name:"setValueFromShortcut",value:e,changeImportance:null!=t?t:"accept",shortcut:n}))),$=(0,a.A)(((e,t)=>M({name:"setValueFromField",value:e,context:t}))),G=(0,a.A)((e=>{E(e),null==v||v(e)})),U={onClear:L,onAccept:R,onDismiss:j,onCancel:F,onSetToday:D,onOpen:N,onClose:z},W={value:T.draft,onChange:$,selectedSections:C,onSelectedSectionsChange:G},q=i.useMemo((()=>t.cleanValue(A,T.draft)),[A,t,T.draft]);return{open:_,fieldProps:W,viewProps:{value:q,onChange:V,onClose:z,open:_,onSelectedSectionsChange:G},layoutProps:(0,r.A)({},U,{value:q,onChange:V,onSelectShortcut:B,isValid:n=>{const i=d({adapter:S,value:n,props:(0,r.A)({},e,{value:n,timezone:P})});return!t.hasError(i)}}),actions:U}};var d=n(73342),h=n(43107),p=n(56468),f=n(32357);const g=["className","sx"];var m=n(40159);function y(){return"undefined"==typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}const v=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:o})=>{const{orientation:a}=e,s=((e,t)=>{const[n,r]=i.useState(y);return(0,h.A)((()=>{const e=()=>{r(y())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}}),[]),!(0,m.Xk)(e,["hours","minutes","seconds"])&&"landscape"===(t||n)})(n.views,a);return{layoutProps:(0,r.A)({},n,t,{isLandscape:s,wrapperVariant:o,disabled:e.disabled,readOnly:e.readOnly})}};(0,n(54370).f)(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const b=({props:e,valueManager:t,valueType:n,wrapperVariant:o,inputRef:s,additionalViewProps:l,validator:c,autoFocusView:m})=>{const y=u({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:c}),b=(({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:o,autoFocusView:s})=>{const{onChange:l,open:c,onSelectedSectionsChange:u,onClose:m}=t,{views:y,openTo:v,onViewChange:b,disableOpenPicker:x,viewRenderers:w,timezone:A}=e,S=(0,d.A)(e,g),{view:C,setView:E,defaultView:_,focusedView:k,setFocusedView:T,setValueAndGoToNextView:O}=(0,p.o)({view:void 0,views:y,openTo:v,onChange:l,onViewChange:b,autoFocus:s}),{hasUIView:P,viewModeLookup:I}=i.useMemo((()=>y.reduce(((e,t)=>{let n;return n=x?"field":null!=w[t]?"UI":"field",e.viewModeLookup[t]=n,"UI"===n&&(e.hasUIView=!0),e}),{hasUIView:!1,viewModeLookup:{}})),[x,w,y]),M=i.useMemo((()=>y.reduce(((e,t)=>null!=w[t]&&(0,f.hW)(t)?e+1:e),0)),[w,y]),L=I[C],R=(0,a.A)((()=>"UI"===L)),[j,F]=i.useState("UI"===L?C:null);return j!==C&&"UI"===I[C]&&F(C),(0,h.A)((()=>{"field"===L&&c&&(m(),setTimeout((()=>{null==o||o.current.focus(),u(C)})))}),[C]),(0,h.A)((()=>{if(!c)return;let e=C;"field"===L&&null!=j&&(e=j),e!==_&&"UI"===I[e]&&"UI"===I[_]&&(e=_),e!==C&&E(e),T(e,!0)}),[c]),{hasUIView:P,shouldRestoreFocus:R,layoutProps:{views:y,view:j,onViewChange:E},renderCurrentView:()=>{if(null==j)return null;const e=w[j];return null==e?null:e((0,r.A)({},S,n,t,{views:y,timezone:A,onChange:O,view:j,onViewChange:E,focusedView:k,onFocusedViewChange:T,showViewSwitcher:M>1,timeViewsCount:M}))}}})({props:e,inputRef:s,additionalViewProps:l,autoFocusView:m,propsFromPickerValue:y.viewProps}),x=v({props:e,wrapperVariant:o,propsFromPickerValue:y.layoutProps,propsFromPickerViews:b.layoutProps});return{open:y.open,actions:y.actions,fieldProps:y.fieldProps,renderCurrentView:b.renderCurrentView,hasUIView:b.hasUIView,shouldRestoreFocus:b.shouldRestoreFocus,layoutProps:x.layoutProps}}},34667:(e,t,n)=>{"use strict";n.d(t,{Yg:()=>d,Nq:()=>h,u:()=>c,cB:()=>p,hc:()=>u});var r=n(51559),i=n(30538),o=n(38540);const a={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${null===t?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>null!==e&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>null!==e&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>"letter"===e.contentType?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>"letter"===e.contentType?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},s=a;l=a,(0,r.A)({},l);var l;const c=()=>{const e=i.useContext(o.F);if(null===e)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join("\n"));if(null===e.utils)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join("\n"));const t=i.useMemo((()=>(0,r.A)({},s,e.localeText)),[e.localeText]);return i.useMemo((()=>(0,r.A)({},e,{localeText:t})),[e,t])},u=()=>c().utils,d=()=>c().defaultDates,h=()=>c().localeText,p=e=>{const t=u(),n=i.useRef();return void 0===n.current&&(n.current=t.dateWithTimezone(void 0,e)),n.current}},88899:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});var r=n(30538),i=n(34667);function o(e,t,n,o){const{value:a,onError:s}=e,l=(0,i.u)(),c=r.useRef(o),u=t({adapter:l,value:a,props:e});return r.useEffect((()=>{s&&!n(u,c.current)&&s(u,a),c.current=u}),[n,s,c,u,a]),u}},16944:(e,t,n)=>{"use strict";n.d(t,{M:()=>s,Y:()=>l});var r=n(30538),i=n(18605),o=n(63095),a=n(34667);const s=({timezone:e,value:t,defaultValue:n,onChange:o,valueManager:s})=>{var l,c;const u=(0,a.hc)(),d=r.useRef(n),h=null!=(l=null!=t?t:d.current)?l:s.emptyValue,p=r.useMemo((()=>s.getTimezone(u,h)),[u,s,h]),f=(0,i.A)((e=>null==p?e:s.setTimezone(u,p,e))),g=null!=(c=null!=e?e:p)?c:"default";return{value:r.useMemo((()=>s.setTimezone(u,g,h)),[s,u,g,h]),handleValueChange:(0,i.A)(((e,...t)=>{const n=f(e);null==o||o(n,...t)})),timezone:g}},l=({name:e,timezone:t,value:n,defaultValue:r,onChange:a,valueManager:l})=>{const[c,u]=(0,o.A)({name:e,state:"value",controlled:n,default:null!=r?r:l.emptyValue}),d=(0,i.A)(((e,...t)=>{u(e),null==a||a(e,...t)}));return s({timezone:t,value:c,defaultValue:void 0,onChange:d,valueManager:l})}},56468:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});var r=n(30538),i=n(18605),o=n(63095);function a({onChange:e,onViewChange:t,openTo:n,view:a,views:s,autoFocus:l,focusedView:c,onFocusedViewChange:u}){var d,h;const p=r.useRef(n),f=r.useRef(s),g=r.useRef(s.includes(n)?n:s[0]),[m,y]=(0,o.A)({name:"useViews",state:"view",controlled:a,default:g.current}),v=r.useRef(l?m:null),[b,x]=(0,o.A)({name:"useViews",state:"focusedView",controlled:c,default:v.current});r.useEffect((()=>{(p.current&&p.current!==n||f.current&&f.current.some((e=>!s.includes(e))))&&(y(s.includes(n)?n:s[0]),f.current=s,p.current=n)}),[n,y,m,s]);const w=s.indexOf(m),A=null!=(d=s[w-1])?d:null,S=null!=(h=s[w+1])?h:null,C=(0,i.A)(((e,t)=>{x(t?e:t=>e===t?null:t),null==u||u(e,t)})),E=(0,i.A)((e=>{C(e,!0),e!==m&&(y(e),t&&t(e))})),_=(0,i.A)((()=>{S&&E(S)})),k=(0,i.A)(((t,n,r)=>{const i="finish"===n,o=r?s.indexOf(r){"use strict";n.d(t,{IP:()=>s,Q6:()=>a,Wq:()=>f,YQ:()=>c,_S:()=>d,ak:()=>u,cH:()=>g,iH:()=>l,il:()=>o,jH:()=>i,sC:()=>p});var r=n(77928);const i=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},o=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:a,utils:s,timezone:l})=>{const c=i(s,s.dateWithTimezone(void 0,l),e);n&&s.isBefore(o,c)&&(o=c),t&&s.isAfter(r,c)&&(r=c);let u=e,d=e;for(s.isBefore(e,o)&&(u=o,d=null),s.isAfter(e,r)&&(d&&(d=r),u=null);u||d;){if(u&&s.isAfter(u,r)&&(u=null),d&&s.isBefore(d,o)&&(d=null),u){if(!a(u))return u;u=s.addDays(u,1)}if(d){if(!a(d))return d;d=s.addDays(d,-1)}}return null},a=(e,t)=>null!=t&&e.isValid(t)?t:null,s=(e,t,n)=>null!=t&&e.isValid(t)?t:n,l=(e,t,n)=>!e.isValid(t)&&null!=t&&!e.isValid(n)&&null!=n||e.isEqual(t,n),c=(e,t)=>{const n=[e.startOfYear(t)];for(;n.length<12;){const t=n[n.length-1];n.push(e.addMonths(t,1))}return n},u=(e,t,n)=>"date"===n?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),d=(e,t)=>{const n=e.setHours(e.date(),"am"===t?2:14);return e.format(n,"meridiem")},h=["year","month","day"],p=e=>h.includes(e),f=(e,{format:t,views:n},i)=>{if(null!=t)return t;const o=e.formats;return(0,r.f)(n,["year"])?o.year:(0,r.f)(n,["month"])?o.month:(0,r.f)(n,["day"])?o.dayOfMonth:(0,r.f)(n,["month","year"])?`${o.month} ${o.year}`:(0,r.f)(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:i?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},g=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map((t=>e.addDays(n,t)))}},48361:(e,t,n)=>{"use strict";n.d(t,{D:()=>a});var r=n(51559),i=n(64066);const o=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],a=(e,t)=>{const n=(0,r.A)({},e),a={},s=e=>{n.hasOwnProperty(e)&&(a[e]=n[e],delete n[e])};return o.forEach(s),"date"===t?i.eu.forEach(s):"time"===t?i.$5.forEach(s):"date-time"===t&&(i.eu.forEach(s),i.$5.forEach(s),i.QG.forEach(s)),{forwardedProps:n,internalProps:a}}},57696:(e,t,n)=>{"use strict";n.d(t,{$9:()=>l,kI:()=>a,yX:()=>o});var r=n(32357),i=n(84316);const o={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},a=e=>Math.max(...e.map((e=>{var t;return null!=(t=o[e.type])?t:1}))),s=(e,t,n)=>{if(t===o.year)return e.startOfYear(n);if(t===o.month)return e.startOfMonth(n);if(t===o.day)return e.startOfDay(n);let r=n;return t{var l;let c=a?a():s(t,n,(0,i.ak)(t,o));null!=e.minDate&&t.isAfterDay(e.minDate,c)&&(c=s(t,n,e.minDate)),null!=e.maxDate&&t.isBeforeDay(e.maxDate,c)&&(c=s(t,n,e.maxDate));const u=(0,r.iF)(null!=(l=e.disableIgnoringDatePartForTimeValidation)&&l,t);return null!=e.minTime&&u(e.minTime,c)&&(c=s(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:(0,i.jH)(t,c,e.minTime))),null!=e.maxTime&&u(c,e.maxTime)&&(c=s(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:(0,i.jH)(t,c,e.maxTime))),c}},84474:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var r=n(51559);const i=e=>{if(void 0!==e)return Object.keys(e).reduce(((t,n)=>(0,r.A)({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]})),{})}},32357:(e,t,n)=>{"use strict";n.d(t,{Sq:()=>a,b$:()=>h,fX:()=>s,gY:()=>l,hW:()=>o,iF:()=>d,tB:()=>c});var r=n(77928);const i=["hours","minutes","seconds"],o=e=>i.includes(e),a=e=>i.includes(e)||"meridiem"===e,s=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,l=(e,t,n)=>{if(n){if((e>=12?"pm":"am")!==t)return"am"===t?e-12:e+12}return e},c=(e,t,n,r)=>{const i=l(r.getHours(e),t,n);return r.setHours(e,i)},u=(e,t)=>3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e),d=(e,t)=>(n,r)=>e?t.isAfter(n,r):u(n,t)>u(r,t),h=(e,{format:t,views:n,ampm:i})=>{if(null!=t)return t;const o=e.formats;return(0,r.f)(n,["hours"])?i?`${o.hours12h} ${o.meridiem}`:o.hours24h:(0,r.f)(n,["minutes"])?o.minutes:(0,r.f)(n,["seconds"])?o.seconds:(0,r.f)(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:(0,r.f)(n,["hours","minutes","seconds"])?i?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:i?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`}},40159:(e,t,n)=>{"use strict";function r(e,t){return Array.isArray(t)?t.every((t=>-1!==e.indexOf(t))):-1!==e.indexOf(t)}n.d(t,{Xk:()=>r,bq:()=>o,jX:()=>a,rQ:()=>i});const i=(e,t)=>n=>{"Enter"!==n.key&&" "!==n.key||(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},o=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?o(t.shadowRoot):t:null},a="@media (pointer: fine)"},64066:(e,t,n)=>{"use strict";n.d(t,{$5:()=>i,QG:()=>o,eu:()=>r,zd:()=>s});const r=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],i=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],o=["minDateTime","maxDateTime"],a=[...r,...i,...o],s=e=>a.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})},61228:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(84316);const i=({props:e,value:t,adapter:n})=>{if(null===t)return null;const{shouldDisableDate:i,shouldDisableMonth:o,shouldDisableYear:a,disablePast:s,disableFuture:l,timezone:c}=e,u=n.utils.dateWithTimezone(void 0,c),d=(0,r.IP)(n.utils,e.minDate,n.defaultDates.minDate),h=(0,r.IP)(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case Boolean(i&&i(t)):return"shouldDisableDate";case Boolean(o&&o(t)):return"shouldDisableMonth";case Boolean(a&&a(t)):return"shouldDisableYear";case Boolean(l&&n.utils.isAfterDay(t,u)):return"disableFuture";case Boolean(s&&n.utils.isBeforeDay(t,u)):return"disablePast";case Boolean(d&&n.utils.isBeforeDay(t,d)):return"minDate";case Boolean(h&&n.utils.isAfterDay(t,h)):return"maxDate";default:return null}}},99559:(e,t,n)=>{"use strict";n.d(t,{W:()=>l,o:()=>c});var r=n(73342),i=n(84316),o=n(57696),a=n(36423);const s=["value","referenceDate"],l={emptyValue:null,getTodayValue:i.ak,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,i=(0,r.A)(e,s);return null!=t&&i.utils.isValid(t)?t:null!=n?n:(0,o.$9)(i)},cleanValue:i.Q6,areValuesEqual:i.iH,isSameError:(e,t)=>e===t,hasError:e=>null!=e,defaultErrorState:null,getTimezone:(e,t)=>null!=t&&e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>null==n?null:e.setTimezone(n,t)},c={updateReferenceValue:(e,t,n)=>null!=t&&e.isValid(t)?t:n,getSectionsFromValue:(e,t,n,r,i)=>!e.isValid(t)&&!!n?n:(0,a.H6)(i(t),r),getValueStrFromSections:a.bl,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:e=>e,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:null!=n&&e.isValid(n)?n:t.referenceValue})}),parseValueStr:(e,t,n)=>n(e.trim(),t)}},77928:(e,t,n)=>{"use strict";n.d(t,{R:()=>i,f:()=>r});const r=(e,t)=>e.length===t.length&&t.every((t=>e.includes(t))),i=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const i=null!=n?n:r;let o;if(null!=e)o=e;else if(i.includes(t))o=t;else{if(!(i.length>0))throw new Error("MUI: The `views` prop must contain at least one view");o=i[0]}return{views:i,openTo:o}}},54370:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});const r=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join("\n"):e;return()=>{n||(n=!0,"error"===t?console.error(r):console.warn(r))}}},59790:function(e,t,n){!function(e,t,n,r,i,o){"use strict";var a="comparison",s=["PropertyIsEqualTo","PropertyIsNotEqualTo","PropertyIsLessThan","PropertyIsLessThanOrEqualTo","PropertyIsGreaterThan","PropertyIsGreaterThanOrEqualTo"],l=s.concat(["PropertyIsLike","PropertyIsNull","PropertyIsBetween"]);function c(e,t){var n=e.getElementsByTagNameNS(e.namespaceURI,t).item(0);if(!n)return null;if(n.parentNode!==e)throw new Error("Expected direct descant");return n?n.textContent.trim():null}function u(e){return l.includes(e.localName)}function d(e){return["or","and"].includes(e.localName.toLowerCase())}function h(e){if(s.includes(e.localName))return p(e);if("PropertyIsBetween"===e.localName)return m(e);if("PropertyIsNull"===e.localName)return g(e);if("PropertyIsLike"===e.localName)return f(e);throw new Error("Unknown comparison element "+e.localName)}function p(e){var t=c(e,"PropertyName"),n=c(e,"Literal");return{type:a,operator:e.localName.toLowerCase(),propertyname:t,literal:n,matchcase:"false"!==e.getAttribute("matchCase")}}function f(e){var t=c(e,"PropertyName"),n=c(e,"Literal");return{type:a,operator:e.localName.toLowerCase(),propertyname:t,literal:n,wildcard:e.getAttribute("wildCard"),singlechar:e.getAttribute("singleChar"),escapechar:e.getAttribute("escapeChar"),matchcase:"false"!==e.getAttribute("matchCase")}}function g(e){var t=c(e,"PropertyName");return{type:a,operator:e.localName.toLowerCase(),propertyname:t}}function m(e){var t=c(e,"PropertyName"),n=c(e,"LowerBoundary"),r=c(e,"UpperBoundary");return{type:a,operator:e.localName.toLowerCase(),lowerboundary:n,upperboundary:r,propertyname:t,matchcase:"false"!==e.getAttribute("matchCase")}}function y(e){for(var t=[],n=e.firstElementChild;n;n=n.nextElementSibling)u(n)&&t.push(h(n));return{type:e.localName.toLowerCase(),predicates:t}}function v(e){var t=null,n=e.firstElementChild;return n&&u(n)&&(t=h(n)),n&&d(n)&&(t=y(n)),{type:e.localName.toLowerCase(),predicate:t}}function b(e){for(var t={},n=e.firstElementChild;n;n=n.nextElementSibling)u(n)&&(t=h(n)),d(n)&&(t=y(n)),"not"===n.localName.toLowerCase()&&(t=v(n)),"featureid"===n.localName.toLowerCase()&&(t.type="featureid",t.fids=t.fids||[],t.fids.push(n.getAttribute("fid")));return t}var x=new Set(["strokeWidth","strokeOpacity","strokeDashoffset","fillOpacity","fontSize"]);function w(e,t,n){var r=n.toLowerCase();t[r]=t[r]||[];var i={};L(e,i),t[r].push(i)}function A(e,t,n){var r=n.toLowerCase();t[r]={},L(e,t[r])}function S(e,t,n,r){void 0===r&&(r=!1);var i=n.toLowerCase();t[i]=r?e.textContent.trim():e.textContent}function C(e,t,n){var r=n.toLowerCase(),i=parseFloat(e.textContent.trim());t[r]=i}function E(e,t){if(!Array.isArray(e))return e;var n=e.map((function(e){return"literal"===e.type?e.value:e})).filter((function(e){return""!==e}));return n.every((function(e){return"object"!=typeof e||null===e}))?n.join(""):1===n.length?n[0]:{type:"expression",typeHint:t,children:n}}function _(e,t,n,r){void 0===r&&(r={});for(var i={skipEmptyNodes:!0,forceLowerCase:!0,typeHint:"string"},o=Object.assign({},i,r),a=[],s=0;s0}function B(e,t){if(j(t))return!1;var n=e.lowerboundary;if(j(n))return!1;var r=e.upperboundary;return!j(r)&&N(n,t)<=0&&N(r,t)>=0}function $(e,t){return!j(t)&&!j(e.literal)&&(e.matchcase?t==e.literal:0===N(e.literal,t,!1))}function G(e,t){return!j(t)&&!$(e,t)}function U(e,t){var n=e.literal;if(j(t))return!1;var r=e.wildcard,i=e.singlechar,o=e.escapechar,a=e.matchcase,s=n.replace(new RegExp("["+r+"]","g"),".*");return s=s.replace(new RegExp("["+i+"]","g"),"."),"\\"!==o&&(s=s.replace(new RegExp("["+o+"]","g"),"\\")),s="^"+s+"$",(!1===a?new RegExp(s,"i"):new RegExp(s)).test(t)}function W(e,t,n){var r=n(t,e.propertyname);switch(e.operator){case"propertyislessthan":return z(e,r);case"propertyisequalto":return $(e,r);case"propertyislessthanorequalto":return $(e,r)||z(e,r);case"propertyisnotequalto":return G(e,r);case"propertyisgreaterthan":return V(e,r);case"propertyisgreaterthanorequalto":return $(e,r)||V(e,r);case"propertyisbetween":return B(e,r);case"propertyisnull":return j(r);case"propertyislike":return U(e,r);default:throw new Error("Unkown comparison operator "+e.operator)}}function q(e,t){for(var n=0;ne.minscaledenominator:void 0!==e.maxscaledenominator?t/28e-5e.minscaledenominator}function Z(e){return e.layers.map((function(e){return e.name}))}function J(e,t){return t?e.layers.find((function(e){return e.name===t})):e.layers[0]}function Q(e){return e.styles.map((function(e){return e.name}))}function ee(e,t){if(t)return e.styles.find((function(e){return e.name===t}));var n=e.styles.find((function(e){return e.default}));return n||e.styles[0]}function te(e,t,n,r){void 0===r&&(r={});for(var i=[],o=0,a=0;a-1&&(e.stroke.graphicstroke.__invalidated=!0))}}function Ce(e,t){if(e)if(Array.isArray(e))for(var n=0;n=2&&0!==a[0]&&(o=a[1]/a[0]+1)}return o*t}function Ve(e){return e.stroke.graphicstroke.initialgap||0}function Be(e,n,r,i,o){void 0===o&&(o=0);var a,s=n/2,l=Math.PI*o/180;switch(i&&i.getColor()&&(a=i.getColor()),e){case"circle":return new t.Circle({fill:i,radius:s,stroke:r});case"triangle":return new t.RegularShape({fill:i,points:3,radius:s,stroke:r,rotation:l});case"star":return new t.RegularShape({fill:i,points:5,radius1:s,radius2:s/2.5,stroke:r,rotation:l});case"cross":return new t.RegularShape({fill:i,points:4,radius1:s,radius2:0,stroke:r||new t.Stroke({color:a,width:s/2}),rotation:l});case"hexagon":return new t.RegularShape({fill:i,points:6,radius:s,stroke:r||new t.Stroke({color:a,width:s/2}),rotation:l});case"octagon":return new t.RegularShape({angle:Math.PI/8,fill:i,points:8,radius:s/Math.cos(Math.PI/8),stroke:r||new t.Stroke({color:a,width:s/2}),rotation:l});case"cross2":case"x":return new t.RegularShape({angle:Math.PI/4,fill:i,points:4,radius1:Math.sqrt(2)*s,radius2:0,stroke:r||new t.Stroke({color:a,width:s/2}),rotation:l});case"diamond":return new t.RegularShape({fill:i,points:4,radius1:s,stroke:r,rotation:l});case"horline":return new t.RegularShape({fill:i,points:2,radius:s,angle:Math.PI/2,stroke:r,rotation:l});case"line":return new t.RegularShape({fill:i,points:2,radius:s,angle:0,stroke:r,rotation:l});case"backslash":return new t.RegularShape({fill:i,points:2,radius:s*Math.sqrt(2),angle:-Math.PI/4,stroke:r,rotation:l});case"slash":return new t.RegularShape({fill:i,points:2,radius:s*Math.sqrt(2),angle:Math.PI/4,stroke:r,rotation:l});default:return new t.RegularShape({angle:Math.PI/4,fill:i,points:4,radius1:s*Math.sqrt(2),stroke:r,rotation:l})}}function $e(e){switch((e||{}).type){case"expression":case"propertyname":case"function":return!0;default:return!1}}function Ge(e,t,n,r){void 0===r&&(r=null);var i=null,o=typeof e;if("string"===o||"number"===o||"undefined"===o||null===e)i=e;else if("literal"===e.type)i=e.value;else if("propertyname"===e.type)i=t?n(t,e.value):r;else if("expression"===e.type)if(1===e.children.length)i=Ge(e.children[0],t,n,r);else{for(var a=[],s=0;s1&&(o.stroke.styling.strokeWidth=t*a)}return n}function Et(e){var i=e.fill.graphicfill,a=i.graphic,s=a.mark,l=(s||{}).wellknownname;if(l&&0===l.indexOf("brush://")){var c="#000000";return s.fill&&s.fill.styling&&s.fill.styling.fill&&(c=s.fill.styling.fill),wt(l,c)}var u=Number(a.size)||le,d=u*o.DEVICE_PIXEL_RATIO,h=null,p=2;try{var f=document.createElement("canvas");f.width=d*p,f.height=d*p;var g=f.getContext("2d"),m=Qe(Ct(i,p)),y=n.toContext(g,{size:[u*p,u*p]});g.imageSmoothingEnabled=!1,y.setStyle(m);var v=p*(u/2),b=p*(u/2);y.drawGeometry(new r.Point([v,b])),l&&l.indexOf("slash")>-1&&(y.drawGeometry(new r.Point([v-p*u,b])),y.drawGeometry(new r.Point([v+p*u,b])),y.drawGeometry(new r.Point([v,b-p*u])),y.drawGeometry(new r.Point([v,b+p*u])));var x=document.createElement("canvas");x.width=d,x.height=d;var w=x.getContext("2d");w.drawImage(f,0,0,d*p,d*p,0,0,d,d);var A=w.createPattern(x,"repeat");h=new t.Fill({color:A})}catch(e){h=new t.Fill({color:"#000000"})}return h}function _t(e){var i=e.fill&&e.fill.graphicfill&&e.fill.graphicfill.graphic&&e.fill.graphicfill.graphic.externalgraphic&&e.fill.graphicfill.graphic.externalgraphic.onlineresource,o=e.fill&&e.fill.graphicfill&&e.fill.graphicfill.graphic&&e.fill.graphicfill.graphic.mark,a=null;if(a=i?St(e):o?Et(e):We(e.fill),e.stroke&&e.stroke.graphicstroke){var s=st(e);return new t.Style({renderer:function(e,t){if(a){var i=t.feature,o=t.context,l=n.toContext(o);l.setFillStrokeStyle(a,void 0);var c=i.getGeometry().getType();"Polygon"===c?l.drawPolygon(new r.Polygon(e)):"MultiPolygon"===c&&l.drawMultiPolygon(new r.MultiPolygon(e))}s(e,t)}})}var l=Ue(e.stroke);return new t.Style({fill:a,stroke:l})}var kt=Fe(_t);function Tt(e,t,n){var r=kt(e);return qe(r,e,t,n),He(r,e,t,n),r}function Ot(e){if(!e||!e.label)return Pe;var n=Ge(e.label,null,null,""),r=e.font&&e.font.styling||{},i=Ge(r.fontFamily,null,null,"sans-serif"),o=Ge(r.fontSize,null,null,10),a=Ge(r.fontStyle,null,null,"")+" "+Ge(r.fontWeight,null,null,"")+" "+o+"px "+i,s=e&&e.labelplacement&&e.labelplacement.pointplacement?e.labelplacement.pointplacement:{},l=Ge(s.rotation,null,null,0),c=s&&s.displacement?s.displacement:{},u=Ge(c.displacementx,null,null,0),d=Ge(c.displacementy,null,null,0),h=s&&s.anchorpoint||{},p="center",f=Ge(h.anchorpointx,null,null,NaN);f<.25?p="left":f>.75&&(p="right");var g="middle",m=Ge(h.anchorpointy,null,null,NaN);m<.25?g="bottom":m>.75&&(g="top");var y=e.fill?e.fill.styling:{},v=Ge(y.fill,null,null,"#000000"),b=Ge(y.fillOpacity,null,null,1),x={text:n,font:a,offsetX:u,offsetY:d,rotation:Math.PI*l/180,textAlign:p,textBaseline:g,fill:new t.Fill({color:Ne(v,b)})};if(e.halo){var w=e.halo&&e.halo.fill?e.halo.fill.styling:{},A=Ge(w.fill,null,null,"#FFFFFF"),S=Ge(w.fillOpacity,null,null,1),C=Ge(e.halo.radius,null,null,1);x.stroke=new t.Stroke({color:Ne(A,S),width:2*(2===C||4===C?C-1e-5:C)})}return new t.Style({text:new t.Text(x)})}var Pt=Fe(Ot);function It(e,t,n){var r=Pt(e),i=r.getText();if(!i)return r;var o=e.label,a=e.labelplacement;if($e(o)){var s=Ge(o,t,n,"");i.setText(s.toString())}if(a){var l=a.pointplacement&&a.pointplacement.rotation||0;if($e(l)){var c=Ge(l,t,n,0);i.setRotation(Math.PI*c/180)}}var u=t.getGeometry?t.getGeometry():t.geometry,d=u.getType?u.getType():u.type,h=e&&e.labelplacement&&e.labelplacement.lineplacement?e.labelplacement.lineplacement:null,p="point"!==d&&h?"line":"point";if(i.setPlacement(p),Ye(r,e,t,n),e.font&&e.font.styling){var f=e.font.styling||{};if($e(f.fontFamily)||$e(f.fontStyle)||$e(f.fontWeight)||$e(f.fontSize)){var g=Ge(f.fontFamily,t,n,"sans-serif"),m=Ge(f.fontStyle,t,n,"")+" "+Ge(f.fontWeight,t,n,"")+" "+Ge(f.fontSize,t,n,10)+"px "+g;i.setFont(m)}}return r}function Mt(e){var t=rt(e,e.getLength()/2)[1];return[t[0],t[1]]}function Lt(e,t){if("function"!=typeof t.getGeometry)return null;var n=t.getGeometry();if(!n)return null;var i=null,o=n.getType();if("LineString"===o)(i=Qe(e,t)).setGeometry(new r.Point(Mt(n)));else if("MultiLineString"===o){var a=n.getLineStrings().map(Mt);(i=Qe(e,t)).setGeometry(new r.MultiPoint(a))}return i}function Rt(e){var t=e.getInteriorPoint().getCoordinates();return[t[0],t[1]]}function jt(e,t){if("function"!=typeof t.getGeometry)return null;var n=t.getGeometry();if(!n)return null;var i=null,o=n.getType();if("Polygon"===o)(i=Qe(e,t)).setGeometry(new r.Point(Rt(n)));else if("MultiPolygon"===o){var a=n.getPolygons().map(Rt);(i=Qe(e,t)).setGeometry(new r.MultiPoint(a))}return i}var Ft=[Ie];function Dt(e,t,n,r,i){(t||[]).forEach((function(t){var o=r(t,n,i);o&&e.push(o)}))}function Nt(e,t,n,r){void 0===r&&(r={});var i=e.polygonSymbolizers,o=e.lineSymbolizers,a=e.pointSymbolizers,s=e.textSymbolizers,l={strictGeometryMatch:!1,useFallbackStyles:!0},c=Object.assign({},l,r),u=t.getGeometry?t.getGeometry():t.geometry,d=[];switch(u.getType?u.getType():u.type){case"Point":case"MultiPoint":Dt(d,a,t,Qe,n),Dt(d,s,t,It,n);break;case"LineString":case"MultiLineString":Dt(d,o,t,dt,n),c.strictGeometryMatch||Dt(d,a,t,Lt,n),Dt(d,s,t,It,n);break;case"Polygon":case"MultiPolygon":Dt(d,i,t,Tt,n),c.strictGeometryMatch||Dt(d,o,t,dt,n),Dt(d,a,t,jt,n),Dt(d,s,t,It,n);break;default:c.useFallbackStyles&&(d=Ft)}return d.forEach((function(e,t){return e.setZIndex(t)})),d}function zt(e){return e.getId()}function Vt(e,t){return e.get(t)}function Bt(e,t){void 0===t&&(t={});var n=t.imageLoadedCallback||function(){},r={};return function(i,o){var a="function"==typeof t.convertResolution?t.convertResolution(o):o,s="function"==typeof t.getProperty?t.getProperty:Vt,l=te(e,i,a,{getProperty:s,getFeatureId:zt});return Te(l,e,n,r),Nt(ie(l),i,s)}}function $t(e,t){return Nt(ie([e]),{geometry:{type:t}},(function(){return null}),{strictGeometryMatch:!0,useFallbackStyles:!1}).filter((function(e){return null!==e}))}e.OlStyler=Nt,e.Reader=R,e.categorizeSymbolizers=ie,e.createOlStyle=$t,e.createOlStyleFunction=Bt,e.getByPath=re,e.getLayer=J,e.getLayerNames=Z,e.getRuleSymbolizers=ne,e.getRules=te,e.getStyle=ee,e.getStyleNames=Q}(t,n(6473),n(11574),n(78278),n(41218),n(27144))},58839:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=n(86557),i=n(82797),o=n(83246),a=n(10962),s=["/properties"],l="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),i.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,s):a;this.addMetaSchema(e,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=n(13809);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=n(28468);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var h=n(22917);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var p=n(21698);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})},61823:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class n{}t._CodeOrName=n,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends n{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class i extends n{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const n=[e[0]];let r=0;for(;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const r=n(61823),i=n(95284);var o=n(61823);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var a=n(95284);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),t.operators={GT:new r._Code(">"),GTE:new r._Code(">="),LT:new r._Code("<"),LTE:new r._Code("<="),EQ:new r._Code("==="),NEQ:new r._Code("!=="),NOT:new r._Code("!"),OR:new r._Code("||"),AND:new r._Code("&&"),ADD:new r._Code("+")};class s{optimizeNodes(){return this}optimizeNames(e,t){return this}}class l extends s{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const n=e?i.varKinds.var:this.varKind,r=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=I(this.rhs,e,t)),this}get names(){return this.rhs instanceof r._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof r.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=I(this.rhs,e,t),this}get names(){return P(this.lhs instanceof r.Name?{}:{...this.lhs.names},this.rhs)}}class u extends c{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class d extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class h extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class p extends s{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends s{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=I(this.code,e,t),this}get names(){return this.code instanceof r._CodeOrName?this.code.names:{}}}class g extends s{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,n)=>t+n.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const i=n[r];i.optimizeNames(e,t)||(M(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>O(e,t.names)),{})}}class m extends g{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class y extends g{}class v extends m{}v.kind="else";class b extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof b?t:t.nodes:this.nodes.length?this:new b(L(e),t instanceof b?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=I(this.condition,e,t),this}get names(){const e=super.names;return P(e,this.condition),this.else&&O(e,this.else.names),e}}b.kind="if";class x extends m{}x.kind="for";class w extends x{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=I(this.iteration,e,t),this}get names(){return O(super.names,this.iteration.names)}}class A extends x{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?i.varKinds.var:this.varKind,{name:n,from:r,to:o}=this;return`for(${t} ${n}=${r}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){const e=P(super.names,this.from);return P(e,this.to)}}class S extends x{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=I(this.iterable,e,t),this}get names(){return O(super.names,this.iterable.names)}}class C extends m{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}C.kind="func";class E extends g{render(e){return"return "+super.render(e)}}E.kind="return";class _ extends m{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&O(e,this.catch.names),this.finally&&O(e,this.finally.names),e}}class k extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}k.kind="catch";class T extends m{render(e){return"finally"+super.render(e)}}T.kind="finally";function O(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function P(e,t){return t instanceof r._CodeOrName?O(e,t.names):e}function I(e,t,n){return e instanceof r.Name?o(e):(i=e)instanceof r._Code&&i._items.some((e=>e instanceof r.Name&&1===t[e.str]&&void 0!==n[e.str]))?new r._Code(e._items.reduce(((e,t)=>(t instanceof r.Name&&(t=o(t)),t instanceof r._Code?e.push(...t._items):e.push(t),e)),[])):e;var i;function o(e){const r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function M(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function L(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:r._`!${D(e)}`}t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new i.Scope({parent:e}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){const i=this._scope.toName(t);return void 0!==n&&r&&(this._constants[i.str]=n),this._leafNode(new l(e,i,n)),i}const(e,t,n){return this._def(i.varKinds.const,e,t,n)}let(e,t,n){return this._def(i.varKinds.let,e,t,n)}var(e,t,n){return this._def(i.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new c(e,t,n))}add(e,n){return this._leafNode(new u(e,t.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==r.nil&&this._leafNode(new f(e)),this}object(...e){const t=["{"];for(const[n,i]of e)t.length>1&&t.push(","),t.push(n),(n!==i||this.opts.es5)&&(t.push(":"),(0,r.addCodeArg)(t,i));return t.push("}"),new r._Code(t)}if(e,t,n){if(this._blockNode(new b(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new b(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(b,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new w(e),t)}forRange(e,t,n,r,o=(this.opts.es5?i.varKinds.var:i.varKinds.let)){const a=this._scope.toName(e);return this._for(new A(o,a,t,n),(()=>r(a)))}forOf(e,t,n,o=i.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=t instanceof r.Name?t:this.var("_arr",t);return this.forRange("_i",0,r._`${e}.length`,(t=>{this.var(a,r._`${e}[${t}]`),n(a)}))}return this._for(new S("of",o,a,t),(()=>n(a)))}forIn(e,t,n,o=(this.opts.es5?i.varKinds.var:i.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,r._`Object.keys(${t})`,n);const a=this._scope.toName(e);return this._for(new S("in",o,a,t),(()=>n(a)))}endFor(){return this._endBlockNode(x)}label(e){return this._leafNode(new d(e))}break(e){return this._leafNode(new h(e))}return(e){const t=new E;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new _;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new k(e),t(e)}return n&&(this._currNode=r.finally=new T,this.code(n)),this._endBlockNode(k,T)}throw(e){return this._leafNode(new p(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=r.nil,n,i){return this._blockNode(new C(e,t,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(C)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=L;const R=F(t.operators.AND);t.and=function(...e){return e.reduce(R)};const j=F(t.operators.OR);function F(e){return(t,n)=>t===r.nil?n:n===r.nil?t:r._`${D(t)} ${e} ${D(n)}`}function D(e){return e instanceof r.Name?e:r._`(${e})`}t.or=function(...e){return e.reduce(j)}},95284:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const r=n(61823);class i extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o||(t.UsedValueState=o={})),t.varKinds={const:new r.Name("const"),let:new r.Name("let"),var:new r.Name("var")};class a{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof r.Name?e:this.name(e)}name(e){return new r.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=a;class s extends r.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:n}){this.value=e,this.scopePath=r._`.${new r.Name(t)}[${n}]`}}t.ValueScopeName=s;const l=r._`\n`;t.ValueScope=class extends a{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?l:r.nil}}get(){return this._scope}name(e){return new s(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const r=this.toName(e),{prefix:i}=r,o=null!==(n=t.key)&&void 0!==n?n:t.ref;let a=this._values[i];if(a){const e=a.get(o);if(e)return e}else a=this._values[i]=new Map;a.set(o,r);const s=this._scope[i]||(this._scope[i]=[]),l=s.length;return s[l]=t.ref,r.setValue(t,{property:i,itemIndex:l}),r}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return r._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,n){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,n)}_reduceValues(e,n,a={},s){let l=r.nil;for(const c in e){const u=e[c];if(!u)continue;const d=a[c]=a[c]||new Map;u.forEach((e=>{if(d.has(e))return;d.set(e,o.Started);let a=n(e);if(a){const n=this.opts.es5?t.varKinds.var:t.varKinds.const;l=r._`${l}${n} ${e} = ${a};${this.opts._n}`}else{if(!(a=null==s?void 0:s(e)))throw new i(e);l=r._`${l}${a}${this.opts._n}`}d.set(e,o.Completed)}))}return l}}},32507:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const r=n(28468),i=n(93880),o=n(42302);function a(e,t){const n=e.const("err",t);e.if(r._`${o.default.vErrors} === null`,(()=>e.assign(o.default.vErrors,r._`[${n}]`)),r._`${o.default.vErrors}.push(${n})`),e.code(r._`${o.default.errors}++`)}function s(e,t){const{gen:n,validateName:i,schemaEnv:o}=e;o.$async?n.throw(r._`new ${e.ValidationError}(${t})`):(n.assign(r._`${i}.errors`,t),n.return(!1))}t.keywordError={message:({keyword:e})=>r.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?r.str`"${e}" keyword must be ${t} ($data)`:r.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,n=t.keywordError,i,o){const{it:l}=e,{gen:u,compositeRule:d,allErrors:h}=l,p=c(e,n,i);(null!=o?o:d||h)?a(u,p):s(l,r._`[${p}]`)},t.reportExtraError=function(e,n=t.keywordError,r){const{it:i}=e,{gen:l,compositeRule:u,allErrors:d}=i;a(l,c(e,n,r)),u||d||s(i,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if(r._`${o.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(r._`${o.default.vErrors}.length`,t)),(()=>e.assign(o.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:n,data:i,errsCount:a,it:s}){if(void 0===a)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",a,o.default.errors,(a=>{e.const(l,r._`${o.default.vErrors}[${a}]`),e.if(r._`${l}.instancePath === undefined`,(()=>e.assign(r._`${l}.instancePath`,(0,r.strConcat)(o.default.instancePath,s.errorPath)))),e.assign(r._`${l}.schemaPath`,r.str`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign(r._`${l}.schema`,n),e.assign(r._`${l}.data`,i))}))};const l={keyword:new r.Name("keyword"),schemaPath:new r.Name("schemaPath"),params:new r.Name("params"),propertyName:new r.Name("propertyName"),message:new r.Name("message"),schema:new r.Name("schema"),parentSchema:new r.Name("parentSchema")};function c(e,t,n){const{createErrors:i}=e.it;return!1===i?r._`{}`:function(e,t,n={}){const{gen:i,it:a}=e,s=[u(a,n),d(e,n)];return function(e,{params:t,message:n},i){const{keyword:a,data:s,schemaValue:c,it:u}=e,{opts:d,propertyName:h,topSchemaRef:p,schemaPath:f}=u;i.push([l.keyword,a],[l.params,"function"==typeof t?t(e):t||r._`{}`]),d.messages&&i.push([l.message,"function"==typeof n?n(e):n]);d.verbose&&i.push([l.schema,c],[l.parentSchema,r._`${p}${f}`],[o.default.data,s]);h&&i.push([l.propertyName,h])}(e,t,s),i.object(...s)}(e,t,n)}function u({errorPath:e},{instancePath:t}){const n=t?r.str`${e}${(0,i.getErrorPath)(t,i.Type.Str)}`:e;return[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,n)]}function d({keyword:e,it:{errSchemaPath:t}},{schemaPath:n,parentSchema:o}){let a=o?t:r.str`${t}/${e}`;return n&&(a=r.str`${a}${(0,i.getErrorPath)(n,i.Type.Str)}`),[l.schemaPath,a]}},93638:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const r=n(28468),i=n(22917),o=n(42302),a=n(6450),s=n(93880),l=n(13809);class c{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,a.normalizeId)(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function u(e){const t=h.call(this,e);if(t)return t;const n=(0,a.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:s,lines:c}=this.opts.code,{ownProperties:u}=this.opts,d=new r.CodeGen(this.scope,{es5:s,lines:c,ownProperties:u});let p;e.$async&&(p=d.scopeValue("Error",{ref:i.default,code:r._`require("ajv/dist/runtime/validation_error").default`}));const f=d.scopeName("validate");e.validateName=f;const g={gen:d,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[r.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:d.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,r.stringify)(e.schema)}:{ref:e.schema}),validateName:f,ValidationError:p,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:r.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:r._`""`,opts:this.opts,self:this};let m;try{this._compilations.add(e),(0,l.validateFunctionCode)(g),d.optimize(this.opts.code.optimize);const t=d.toString();m=`${d.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(m=this.opts.code.process(m,e));const n=new Function(`${o.default.self}`,`${o.default.scope}`,m)(this,this.scope.get());if(this.scope.value(f,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:f,validateCode:t,scopeValues:d._values}),this.opts.unevaluated){const{props:e,items:t}=g;n.evaluated={props:e instanceof r.Name?void 0:e,items:t instanceof r.Name?void 0:t,dynamicProps:e instanceof r.Name,dynamicItems:t instanceof r.Name},n.source&&(n.source.evaluated=(0,r.stringify)(n.evaluated))}return e.validate=n,e}catch(t){throw delete e.validate,delete e.validateName,m&&this.logger.error("Error compiling schema, function code:",m),t}finally{this._compilations.delete(e)}}function d(e){return(0,a.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:u.call(this,e)}function h(e){for(const r of this._compilations)if(n=e,(t=r).schema===n.schema&&t.root===n.root&&t.baseId===n.baseId)return r;var t,n}function p(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||f.call(this,e,t)}function f(e,t){const n=this.opts.uriResolver.parse(t),r=(0,a._getFullPath)(this.opts.uriResolver,n);let i=(0,a.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===i)return m.call(this,n,e);const o=(0,a.normalizeId)(r),s=this.refs[o]||this.schemas[o];if("string"==typeof s){const t=f.call(this,e,s);if("object"!=typeof(null==t?void 0:t.schema))return;return m.call(this,n,t)}if("object"==typeof(null==s?void 0:s.schema)){if(s.validate||u.call(this,s),o===(0,a.normalizeId)(t)){const{schema:t}=s,{schemaId:n}=this.opts,r=t[n];return r&&(i=(0,a.resolveUrl)(this.opts.uriResolver,i,r)),new c({schema:t,schemaId:n,root:e,baseId:i})}return m.call(this,n,s)}}t.SchemaEnv=c,t.compileSchema=u,t.resolveRef=function(e,t,n){var r;n=(0,a.resolveUrl)(this.opts.uriResolver,t,n);const i=e.refs[n];if(i)return i;let o=p.call(this,e,n);if(void 0===o){const i=null===(r=e.localRefs)||void 0===r?void 0:r[n],{schemaId:a}=this.opts;i&&(o=new c({schema:i,schemaId:a,root:e,baseId:t}))}return void 0!==o?e.refs[n]=d.call(this,o):void 0},t.getCompilingSchema=h,t.resolveSchema=f;const g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function m(e,{baseId:t,schema:n,root:r}){var i;if("/"!==(null===(i=e.fragment)||void 0===i?void 0:i[0]))return;for(const r of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,s.unescapeFragment)(r)];if(void 0===e)return;const i="object"==typeof(n=e)&&n[this.opts.schemaId];!g.has(r)&&i&&(t=(0,a.resolveUrl)(this.opts.uriResolver,t,i))}let o;if("boolean"!=typeof n&&n.$ref&&!(0,s.schemaHasRulesButRef)(n,this.RULES)){const e=(0,a.resolveUrl)(this.opts.uriResolver,t,n.$ref);o=f.call(this,r,e)}const{schemaId:l}=this.opts;return o=o||new c({schema:n,schemaId:l,root:r,baseId:t}),o.schema!==o.root.schema?o:void 0}},42302:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i={data:new r.Name("data"),valCxt:new r.Name("valCxt"),instancePath:new r.Name("instancePath"),parentData:new r.Name("parentData"),parentDataProperty:new r.Name("parentDataProperty"),rootData:new r.Name("rootData"),dynamicAnchors:new r.Name("dynamicAnchors"),vErrors:new r.Name("vErrors"),errors:new r.Name("errors"),this:new r.Name("this"),self:new r.Name("self"),scope:new r.Name("scope"),json:new r.Name("json"),jsonPos:new r.Name("jsonPos"),jsonLen:new r.Name("jsonLen"),jsonPart:new r.Name("jsonPart")};t.default=i},21698:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(6450);class i extends Error{constructor(e,t,n,i){super(i||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,r.resolveUrl)(e,t,n),this.missingSchema=(0,r.normalizeId)((0,r.getFullPath)(e,this.missingRef))}}t.default=i},6450:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const r=n(93880),i=n(92792),o=n(23018),a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!l(e):!!t&&c(e)<=t)};const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function l(e){for(const t in e){if(s.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(l))return!0;if("object"==typeof n&&l(n))return!0}return!1}function c(e){let t=0;for(const n in e){if("$ref"===n)return 1/0;if(t++,!a.has(n)&&("object"==typeof e[n]&&(0,r.eachItem)(e[n],(e=>t+=c(e))),t===1/0))return 1/0}return t}function u(e,t="",n){!1!==n&&(t=p(t));const r=e.parse(t);return d(e,r)}function d(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=u,t._getFullPath=d;const h=/#\/?$/;function p(e){return e?e.replace(h,""):""}t.normalizeId=p,t.resolveUrl=function(e,t,n){return n=p(n),e.resolve(t,n)};const f=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:r}=this.opts,a=p(e[n]||t),s={"":a},l=u(r,a,!1),c={},d=new Set;return o(e,{allKeys:!0},((e,t,r,i)=>{if(void 0===i)return;const o=l+t;let a=s[i];function u(t){const n=this.opts.uriResolver.resolve;if(t=p(a?n(a,t):t),d.has(t))throw g(t);d.add(t);let r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?h(e,r.schema,t):t!==p(o)&&("#"===t[0]?(h(e,c[t],t),c[t]=e):this.refs[t]=o),t}function m(e){if("string"==typeof e){if(!f.test(e))throw new Error(`invalid anchor "${e}"`);u.call(this,`#${e}`)}}"string"==typeof e[n]&&(a=u.call(this,e[n])),m.call(this,e.$anchor),m.call(this,e.$dynamicAnchor),s[t]=a})),c;function h(e,t,n){if(void 0!==t&&!i(e,t))throw g(n)}function g(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},56417:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const n=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&n.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},93880:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const r=n(28468),i=n(61823);function o(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const i=r.RULES.keywords;for(const n in t)i[n]||f(e,`unknown keyword: "${n}"`)}function a(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function s(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function l(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function c({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:i}){return(o,a,s,l)=>{const c=void 0===s?a:s instanceof r.Name?(a instanceof r.Name?e(o,a,s):t(o,a,s),s):a instanceof r.Name?(t(o,s,a),a):n(a,s);return l!==r.Name||c instanceof r.Name?c:i(o,c)}}function u(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",r._`{}`);return void 0!==t&&d(e,n,t),n}function d(e,t,n){Object.keys(n).forEach((n=>e.assign(r._`${t}${(0,r.getProperty)(n)}`,!0)))}t.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!a(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRules=a,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},n,i,o){if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return r._`${n}`}return r._`${e}${t}${(0,r.getProperty)(i)}`},t.unescapeFragment=function(e){return l(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(s(e))},t.escapeJsonPointer=s,t.unescapeJsonPointer=l,t.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},t.mergeEvaluated={props:c({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>{e.if(r._`${t} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,r._`${n} || {}`).code(r._`Object.assign(${n}, ${t})`)))})),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>{!0===t?e.assign(n,!0):(e.assign(n,r._`${n} || {}`),d(e,n,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:u}),items:c({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>e.assign(n,r._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`))),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>e.assign(n,!0===t||r._`${n} > ${t} ? ${n} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=u,t.setEvaluated=d;const h={};var p;function f(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:h[t.code]||(h[t.code]=new i._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(p||(t.Type=p={})),t.getErrorPath=function(e,t,n){if(e instanceof r.Name){const i=t===p.Num;return n?i?r._`"[" + ${e} + "]"`:r._`"['" + ${e} + "']"`:i?r._`"/" + ${e}`:r._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,r.getProperty)(e).toString():"/"+s(e)},t.checkStrictMode=f},65012:(e,t)=>{"use strict";function n(e,t){return t.rules.some((t=>r(e,t)))}function r(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},r){const i=t.RULES.types[r];return i&&!0!==i&&n(e,i)},t.shouldUseGroup=n,t.shouldUseRule=r},82474:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const r=n(32507),i=n(28468),o=n(42302),a={message:"boolean schema is false"};function s(e,t){const{gen:n,data:i}=e,o={gen:n,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,r.reportError)(o,a,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:r}=e;!1===n?s(e,!1):"object"==typeof n&&!0===n.$async?t.return(o.default.data):(t.assign(i._`${r}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),s(e)):n.var(t,!0)}},42965:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const r=n(56417),i=n(65012),o=n(32507),a=n(28468),s=n(93880);var l;function c(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(r.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(l||(t.DataType=l={})),t.getSchemaTypes=function(e){const t=c(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=c,t.coerceAndCheckDataType=function(e,t){const{gen:n,data:r,opts:o}=e,s=function(e,t){return t?e.filter((e=>u.has(e)||"array"===t&&"array"===e)):[]}(t,o.coerceTypes),c=t.length>0&&!(0===s.length&&1===t.length&&(0,i.schemaHasRulesForType)(e,t[0]));if(c){const i=h(t,r,o.strictNumbers,l.Wrong);n.if(i,(()=>{s.length?function(e,t,n){const{gen:r,data:i,opts:o}=e,s=r.let("dataType",a._`typeof ${i}`),l=r.let("coerced",a._`undefined`);"array"===o.coerceTypes&&r.if(a._`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,(()=>r.assign(i,a._`${i}[0]`).assign(s,a._`typeof ${i}`).if(h(t,i,o.strictNumbers),(()=>r.assign(l,i)))));r.if(a._`${l} !== undefined`);for(const e of n)(u.has(e)||"array"===e&&"array"===o.coerceTypes)&&c(e);function c(e){switch(e){case"string":return void r.elseIf(a._`${s} == "number" || ${s} == "boolean"`).assign(l,a._`"" + ${i}`).elseIf(a._`${i} === null`).assign(l,a._`""`);case"number":return void r.elseIf(a._`${s} == "boolean" || ${i} === null
+`),b.rippleVisible,_,550,(({theme:e})=>e.transitions.easing.easeInOut),b.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),b.child,b.childLeaving,k,550,(({theme:e})=>e.transitions.easing.easeInOut),b.childPulsate,T,(({theme:e})=>e.transitions.easing.easeInOut)),I=o.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:l={},className:u}=n,d=(0,i.A)(n,w),[h,f]=o.useState([]),y=o.useRef(0),v=o.useRef(null);o.useEffect((()=>{v.current&&(v.current(),v.current=null)}),[h]);const x=o.useRef(!1),A=(0,g.A)(),S=o.useRef(null),C=o.useRef(null),E=o.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:o}=e;f((e=>[...e,(0,m.jsx)(P,{classes:{ripple:(0,a.A)(l.ripple,b.ripple),rippleVisible:(0,a.A)(l.rippleVisible,b.rippleVisible),ripplePulsate:(0,a.A)(l.ripplePulsate,b.ripplePulsate),child:(0,a.A)(l.child,b.child),childLeaving:(0,a.A)(l.childLeaving,b.childLeaving),childPulsate:(0,a.A)(l.childPulsate,b.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},y.current)])),y.current+=1,v.current=o}),[l]),_=o.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:r=!1,center:i=s||t.pulsate,fakeElement:o=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&x.current)return void(x.current=!1);"touchstart"===(null==e?void 0:e.type)&&(x.current=!0);const a=o?null:C.current,l=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===S.current&&(S.current=()=>{E({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})},A.start(80,(()=>{S.current&&(S.current(),S.current=null)}))):E({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[s,E,A]),k=o.useCallback((()=>{_({},{pulsate:!0})}),[_]),T=o.useCallback(((e,t)=>{if(A.clear(),"touchend"===(null==e?void 0:e.type)&&S.current)return S.current(),S.current=null,void A.start(0,(()=>{T(e,t)}));S.current=null,f((e=>e.length>0?e.slice(1):e)),v.current=t}),[A]);return o.useImperativeHandle(t,(()=>({pulsate:k,start:_,stop:T})),[k,_,T]),(0,m.jsx)(O,(0,r.A)({className:(0,a.A)(b.root,l.root,u),ref:C},d,{children:(0,m.jsx)(p.A,{component:null,exit:!0,children:h})}))}));var M=n(24115);function L(e){return(0,M.Ay)("MuiButtonBase",e)}const R=(0,v.A)("MuiButtonBase",["root","disabled","focusVisible"]),j=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],F=(0,l.Ay)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${R.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),D=o.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiButtonBase"}),{action:l,centerRipple:p=!1,children:f,className:g,component:y="button",disabled:v=!1,disableRipple:b=!1,disableTouchRipple:w=!1,focusRipple:x=!1,LinkComponent:A="a",onBlur:S,onClick:C,onContextMenu:E,onDragLeave:_,onFocus:k,onFocusVisible:T,onKeyDown:O,onKeyUp:P,onMouseDown:M,onMouseLeave:R,onMouseUp:D,onTouchEnd:N,onTouchMove:z,onTouchStart:V,tabIndex:B=0,TouchRippleProps:$,touchRippleRef:G,type:U}=n,W=(0,i.A)(n,j),q=o.useRef(null),H=o.useRef(null),Y=(0,u.A)(H,G),{isFocusVisibleRef:K,onFocus:X,onBlur:Z,ref:J}=(0,h.A)(),[Q,ee]=o.useState(!1);v&&Q&&ee(!1),o.useImperativeHandle(l,(()=>({focusVisible:()=>{ee(!0),q.current.focus()}})),[]);const[te,ne]=o.useState(!1);o.useEffect((()=>{ne(!0)}),[]);const re=te&&!b&&!v;function ie(e,t,n=w){return(0,d.A)((r=>{t&&t(r);return!n&&H.current&&H.current[e](r),!0}))}o.useEffect((()=>{Q&&x&&!b&&te&&H.current.pulsate()}),[b,x,Q,te]);const oe=ie("start",M),ae=ie("stop",E),se=ie("stop",_),le=ie("stop",D),ce=ie("stop",(e=>{Q&&e.preventDefault(),R&&R(e)})),ue=ie("start",V),de=ie("stop",N),he=ie("stop",z),pe=ie("stop",(e=>{Z(e),!1===K.current&&ee(!1),S&&S(e)}),!1),fe=(0,d.A)((e=>{q.current||(q.current=e.currentTarget),X(e),!0===K.current&&(ee(!0),T&&T(e)),k&&k(e)})),ge=()=>{const e=q.current;return y&&"button"!==y&&!("A"===e.tagName&&e.href)},me=o.useRef(!1),ye=(0,d.A)((e=>{x&&!me.current&&Q&&H.current&&" "===e.key&&(me.current=!0,H.current.stop(e,(()=>{H.current.start(e)}))),e.target===e.currentTarget&&ge()&&" "===e.key&&e.preventDefault(),O&&O(e),e.target===e.currentTarget&&ge()&&"Enter"===e.key&&!v&&(e.preventDefault(),C&&C(e))})),ve=(0,d.A)((e=>{x&&" "===e.key&&H.current&&Q&&!e.defaultPrevented&&(me.current=!1,H.current.stop(e,(()=>{H.current.pulsate(e)}))),P&&P(e),C&&e.target===e.currentTarget&&ge()&&" "===e.key&&!e.defaultPrevented&&C(e)}));let be=y;"button"===be&&(W.href||W.to)&&(be=A);const we={};"button"===be?(we.type=void 0===U?"button":U,we.disabled=v):(W.href||W.to||(we.role="button"),v&&(we["aria-disabled"]=v));const xe=(0,u.A)(t,J,q);const Ae=(0,r.A)({},n,{centerRipple:p,component:y,disabled:v,disableRipple:b,disableTouchRipple:w,focusRipple:x,tabIndex:B,focusVisible:Q}),Se=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,s.A)(o,L,i);return n&&r&&(a.root+=` ${r}`),a})(Ae);return(0,m.jsxs)(F,(0,r.A)({as:be,className:(0,a.A)(Se.root,g),ownerState:Ae,onBlur:pe,onClick:C,onContextMenu:ae,onFocus:fe,onKeyDown:ye,onKeyUp:ve,onMouseDown:oe,onMouseLeave:ce,onMouseUp:le,onDragLeave:se,onTouchEnd:de,onTouchMove:he,onTouchStart:ue,ref:xe,tabIndex:v?-1:B,type:U},we,W,{children:[f,re?(0,m.jsx)(I,(0,r.A)({ref:Y,center:p},$)):null]}))}))},66865:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(59015),c=n(58990),u=n(87507),d=n(99425),h=n(97282);const p=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],f=(0,c.Ay)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,i.A)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,l.X4)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>(0,i.A)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>(0,i.A)({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>(0,i.A)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>(0,i.A)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),g=(0,c.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,i.A)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),m=o.forwardRef((function(e,t){const n=(0,u.A)({props:e,name:"MuiDivider"}),{absolute:o=!1,children:l,className:c,component:m=(l?"div":"hr"),flexItem:y=!1,light:v=!1,orientation:b="horizontal",role:w=("hr"!==m?"separator":void 0),textAlign:x="center",variant:A="fullWidth"}=n,S=(0,r.A)(n,p),C=(0,i.A)({},n,{absolute:o,component:m,flexItem:y,light:v,orientation:b,role:w,textAlign:x,variant:A}),E=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:l,variant:c}=e,u={root:["root",t&&"absolute",c,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,s.A)(u,d.K,r)})(C);return(0,h.jsx)(f,(0,i.A)({as:m,className:(0,a.A)(E.root,c),role:w,ref:t,ownerState:C},S,{children:l?(0,h.jsx)(g,{className:E.wrapper,ownerState:C,children:l}):null}))}));m.muiSkipListHighlight=!0;const y=m},99425:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,K:()=>o});var r=n(5007),i=n(24115);function o(e){return(0,i.Ay)("MuiDivider",e)}const a=(0,r.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"])},90645:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(87507),c=n(58990),u=n(29421),d=n(19508),h=n(75361),p=n(2994),f=n(5007),g=n(24115);function m(e){return(0,g.Ay)("MuiFormControl",e)}(0,f.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var y=n(97282);const v=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],b=(0,c.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,i.A)({},t.root,t[`margin${(0,d.A)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,i.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),w=o.forwardRef((function(e,t){const n=(0,l.A)({props:e,name:"MuiFormControl"}),{children:c,className:f,color:g="primary",component:w="div",disabled:x=!1,error:A=!1,focused:S,fullWidth:C=!1,hiddenLabel:E=!1,margin:_="none",required:k=!1,size:T="medium",variant:O="outlined"}=n,P=(0,r.A)(n,v),I=(0,i.A)({},n,{color:g,component:w,disabled:x,error:A,fullWidth:C,hiddenLabel:E,margin:_,required:k,size:T,variant:O}),M=(e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root","none"!==n&&`margin${(0,d.A)(n)}`,r&&"fullWidth"]};return(0,s.A)(i,m,t)})(I),[L,R]=o.useState((()=>{let e=!1;return c&&o.Children.forEach(c,(t=>{if(!(0,h.A)(t,["Input","Select"]))return;const n=(0,h.A)(t,["Select"])?t.props.input:t;n&&(0,u.gr)(n.props)&&(e=!0)})),e})),[j,F]=o.useState((()=>{let e=!1;return c&&o.Children.forEach(c,(t=>{(0,h.A)(t,["Input","Select"])&&((0,u.lq)(t.props,!0)||(0,u.lq)(t.props.inputProps,!0))&&(e=!0)})),e})),[D,N]=o.useState(!1);x&&D&&N(!1);const z=void 0===S||x?D:S;let V;const B=o.useMemo((()=>({adornedStart:L,setAdornedStart:R,color:g,disabled:x,error:A,filled:j,focused:z,fullWidth:C,hiddenLabel:E,size:T,onBlur:()=>{N(!1)},onEmpty:()=>{F(!1)},onFilled:()=>{F(!0)},onFocus:()=>{N(!0)},registerEffect:V,required:k,variant:O})),[L,g,x,A,j,z,C,E,V,k,T,O]);return(0,y.jsx)(p.A.Provider,{value:B,children:(0,y.jsx)(b,(0,i.A)({as:w,ownerState:I,className:(0,a.A)(M.root,f),ref:t},P,{children:c}))})}))},2994:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(30538).createContext(void 0)},73336:(e,t,n)=>{"use strict";function r({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}n.d(t,{A:()=>r})},39230:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(30538),i=n(2994);function o(){return r.useContext(i.A)}},28566:(e,t,n)=>{"use strict";n.d(t,{f3:()=>z,Sh:()=>N,Ay:()=>B,Oj:()=>D,WC:()=>F});var r=n(73342),i=n(51559),o=n(88207),a=n(30538),s=n(87286),l=n(18029),c=n(56023),u=n(43107),d=n(6995),h=n(97282);const p=["onChange","maxRows","minRows","style","value"];function f(e){return parseInt(e,10)||0}const g={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const m=a.forwardRef((function(e,t){const{onChange:n,maxRows:o,minRows:s=1,style:m,value:y}=e,v=(0,r.A)(e,p),{current:b}=a.useRef(null!=y),w=a.useRef(null),x=(0,l.A)(t,w),A=a.useRef(null),S=a.useCallback((()=>{const t=w.current,n=(0,c.A)(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const r=A.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const i=n.boxSizing,a=f(n.paddingBottom)+f(n.paddingTop),l=f(n.borderBottomWidth)+f(n.borderTopWidth),u=r.scrollHeight;r.value="x";const d=r.scrollHeight;let h=u;s&&(h=Math.max(Number(s)*d,h)),o&&(h=Math.min(Number(o)*d,h)),h=Math.max(h,d);return{outerHeightStyle:h+("border-box"===i?a+l:0),overflowing:Math.abs(h-u)<=1}}),[o,s,e.placeholder]),C=a.useCallback((()=>{const e=S();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=w.current;n.style.height=`${e.outerHeightStyle}px`,n.style.overflow=e.overflowing?"hidden":""}),[S]);(0,u.A)((()=>{const e=()=>{C()};let t;const n=(0,d.A)(e),r=w.current,i=(0,c.A)(r);let o;return i.addEventListener("resize",n),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{n.clear(),cancelAnimationFrame(t),i.removeEventListener("resize",n),o&&o.disconnect()}}),[S,C]),(0,u.A)((()=>{C()}));return(0,h.jsxs)(a.Fragment,{children:[(0,h.jsx)("textarea",(0,i.A)({value:y,onChange:e=>{b||C(),n&&n(e)},ref:x,rows:s,style:m},v)),(0,h.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:A,tabIndex:-1,style:(0,i.A)({},g,m,{paddingTop:0,paddingBottom:0})})]})}));var y=n(2665),v=n(32829),b=n(73336),w=n(2994),x=n(39230),A=n(58990),S=n(87507),C=n(19508),E=n(47258),_=n(65420),k=n(78790),T=n(38382);const O=function({styles:e,themeId:t,defaultTheme:n={}}){const r=(0,T.A)(n),i="function"==typeof e?e(t&&r[t]||r):e;return(0,h.jsx)(k.A,{styles:i})};var P=n(75947),I=n(38358);const M=function(e){return(0,h.jsx)(O,(0,i.A)({},e,{defaultTheme:P.A,themeId:I.A}))};var L=n(29421),R=n(8253);const j=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],F=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${(0,C.A)(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},D=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},N=(0,A.Ay)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:F})((({theme:e,ownerState:t})=>(0,i.A)({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${R.A.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&(0,i.A)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),z=(0,A.Ay)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:D})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=(0,i.A)({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return(0,i.A)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${R.A.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${R.A.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),V=(0,h.jsx)(M,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),B=a.forwardRef((function(e,t){var n;const l=(0,S.A)({props:e,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:u,autoFocus:d,className:p,components:f={},componentsProps:g={},defaultValue:A,disabled:k,disableInjectingGlobalStyles:T,endAdornment:O,fullWidth:P=!1,id:I,inputComponent:M="input",inputProps:F={},inputRef:D,maxRows:B,minRows:$,multiline:G=!1,name:U,onBlur:W,onChange:q,onClick:H,onFocus:Y,onKeyDown:K,onKeyUp:X,placeholder:Z,readOnly:J,renderSuffix:Q,rows:ee,slotProps:te={},slots:ne={},startAdornment:re,type:ie="text",value:oe}=l,ae=(0,r.A)(l,j),se=null!=F.value?F.value:oe,{current:le}=a.useRef(null!=se),ce=a.useRef(),ue=a.useCallback((e=>{0}),[]),de=(0,E.A)(ce,D,F.ref,ue),[he,pe]=a.useState(!1),fe=(0,x.A)();const ge=(0,b.A)({props:l,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ge.focused=fe?fe.focused:he,a.useEffect((()=>{!fe&&k&&he&&(pe(!1),W&&W())}),[fe,k,he,W]);const me=fe&&fe.onFilled,ye=fe&&fe.onEmpty,ve=a.useCallback((e=>{(0,L.lq)(e)?me&&me():ye&&ye()}),[me,ye]);(0,_.A)((()=>{le&&ve({value:se})}),[se,ve,le]);a.useEffect((()=>{ve(ce.current)}),[]);let be=M,we=F;G&&"input"===be&&(we=ee?(0,i.A)({type:void 0,minRows:ee,maxRows:ee},we):(0,i.A)({type:void 0,maxRows:B,minRows:$},we),be=m);a.useEffect((()=>{fe&&fe.setAdornedStart(Boolean(re))}),[fe,re]);const xe=(0,i.A)({},l,{color:ge.color||"primary",disabled:ge.disabled,endAdornment:O,error:ge.error,focused:ge.focused,formControl:fe,fullWidth:P,hiddenLabel:ge.hiddenLabel,multiline:G,size:ge.size,startAdornment:re,type:ie}),Ae=(e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:h,startAdornment:p,type:f}=e,g={root:["root",`color${(0,C.A)(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",h&&"medium"!==h&&`size${(0,C.A)(h)}`,u&&"multiline",p&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",u&&"inputMultiline","small"===h&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return(0,v.A)(g,R.g,t)})(xe),Se=ne.root||f.Root||N,Ce=te.root||g.root||{},Ee=ne.input||f.Input||z;return we=(0,i.A)({},we,null!=(n=te.input)?n:g.input),(0,h.jsxs)(a.Fragment,{children:[!T&&V,(0,h.jsxs)(Se,(0,i.A)({},Ce,!(0,y.g)(Se)&&{ownerState:(0,i.A)({},xe,Ce.ownerState)},{ref:t,onClick:e=>{ce.current&&e.currentTarget===e.target&&ce.current.focus(),H&&H(e)}},ae,{className:(0,s.A)(Ae.root,Ce.className,p,J&&"MuiInputBase-readOnly"),children:[re,(0,h.jsx)(w.A.Provider,{value:null,children:(0,h.jsx)(Ee,(0,i.A)({ownerState:xe,"aria-invalid":ge.error,"aria-describedby":c,autoComplete:u,autoFocus:d,defaultValue:A,disabled:ge.disabled,id:I,onAnimationStart:e=>{ve("mui-auto-fill-cancel"===e.animationName?ce.current:{value:"x"})},name:U,placeholder:Z,readOnly:J,required:ge.required,rows:ee,value:se,onKeyDown:K,onKeyUp:X,type:ie},we,!(0,y.g)(Ee)&&{as:be,ownerState:(0,i.A)({},xe,we.ownerState)},{ref:de,className:(0,s.A)(Ae.input,we.className,J&&"MuiInputBase-readOnly"),onBlur:e=>{W&&W(e),F.onBlur&&F.onBlur(e),fe&&fe.onBlur?fe.onBlur(e):pe(!1)},onChange:(e,...t)=>{if(!le){const t=e.target||ce.current;if(null==t)throw new Error((0,o.A)(1));ve({value:t.value})}F.onChange&&F.onChange(e,...t),q&&q(e,...t)},onFocus:e=>{ge.disabled?e.stopPropagation():(Y&&Y(e),F.onFocus&&F.onFocus(e),fe&&fe.onFocus?fe.onFocus(e):pe(!0))}}))}),O,Q?Q((0,i.A)({},ge,{startAdornment:re})):null]}))]})}))},8253:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,g:()=>o});var r=n(5007),i=n(24115);function o(e){return(0,i.Ay)("MuiInputBase",e)}const a=(0,r.A)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"])},29421:(e,t,n)=>{"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function i(e,t=!1){return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function o(e){return e.startAdornment}n.d(t,{gr:()=>o,lq:()=>i})},5323:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(73342),i=n(51559),o=n(30538),a=n(32829),s=n(87286),l=n(73336),c=n(39230),u=n(19508),d=n(87507),h=n(58990),p=n(5007),f=n(24115);function g(e){return(0,f.Ay)("MuiFormLabel",e)}const m=(0,p.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);var y=n(97282);const v=["children","className","color","component","disabled","error","filled","focused","required"],b=(0,h.Ay)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,i.A)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,i.A)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${m.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${m.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${m.error}`]:{color:(e.vars||e).palette.error.main}}))),w=(0,h.Ay)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${m.error}`]:{color:(e.vars||e).palette.error.main}}))),x=o.forwardRef((function(e,t){const n=(0,d.A)({props:e,name:"MuiFormLabel"}),{children:o,className:h,component:p="label"}=n,f=(0,r.A)(n,v),m=(0,c.A)(),x=(0,l.A)({props:n,muiFormControl:m,states:["color","required","focused","disabled","error","filled"]}),A=(0,i.A)({},n,{color:x.color||"primary",component:p,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required}),S=(e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:s,required:l}=e,c={root:["root",`color${(0,u.A)(n)}`,i&&"disabled",o&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",o&&"error"]};return(0,a.A)(c,g,t)})(A);return(0,y.jsxs)(b,(0,i.A)({as:p,ownerState:A,className:(0,s.A)(S.root,h),ref:t},f,{children:[o,x.required&&(0,y.jsxs)(w,{ownerState:A,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}))}));var A=n(49968);function S(e){return(0,f.Ay)("MuiInputLabel",e)}(0,p.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const C=["disableAnimation","margin","shrink","variant","className"],E=(0,h.Ay)(x,{shouldForwardProp:e=>(0,A.A)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${m.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,i.A)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,i.A)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,i.A)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,i.A)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),_=o.forwardRef((function(e,t){const n=(0,d.A)({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,shrink:h,className:p}=n,f=(0,r.A)(n,C),g=(0,c.A)();let m=h;void 0===m&&g&&(m=g.filled||g.focused||g.adornedStart);const v=(0,l.A)({props:n,muiFormControl:g,states:["size","variant","required","focused"]}),b=(0,i.A)({},n,{disableAnimation:o,formControl:g,shrink:m,size:v.size,variant:v.variant,required:v.required,focused:v.focused}),w=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:l,required:c}=e,d={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&"normal"!==r&&`size${(0,u.A)(r)}`,l],asterisk:[c&&"asterisk"]},h=(0,a.A)(d,S,t);return(0,i.A)({},t,h)})(b);return(0,y.jsx)(E,(0,i.A)({"data-shrink":m,ownerState:b,ref:t,className:(0,s.A)(w.root,p)},f,{classes:w}))}))},20553:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(73342),i=n(51559),o=n(30538),a=n(32829),s=n(43271),l=n(28566),c=n(58990),u=n(49968),d=n(87507),h=n(52441),p=n(97282);const f=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],g=(0,c.Ay)(l.Sh,{shouldForwardProp:e=>(0,u.A)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...(0,l.WC)(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,i.A)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${h.A.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${h.A.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${h.A.disabled}, .${h.A.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${h.A.disabled}:before`]:{borderBottomStyle:"dotted"}})})),m=(0,c.Ay)(l.f3,{name:"MuiInput",slot:"Input",overridesResolver:l.Oj})({}),y=o.forwardRef((function(e,t){var n,o,c,u;const y=(0,d.A)({props:e,name:"MuiInput"}),{disableUnderline:v,components:b={},componentsProps:w,fullWidth:x=!1,inputComponent:A="input",multiline:S=!1,slotProps:C,slots:E={},type:_="text"}=y,k=(0,r.A)(y,f),T=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,a.A)(r,h.B,t);return(0,i.A)({},t,o)})(y),O={root:{ownerState:{disableUnderline:v}}},P=(null!=C?C:w)?(0,s.A)(null!=C?C:w,O):O,I=null!=(n=null!=(o=E.root)?o:b.Root)?n:g,M=null!=(c=null!=(u=E.input)?u:b.Input)?c:m;return(0,p.jsx)(l.Ay,(0,i.A)({slots:{root:I,input:M},slotProps:P,fullWidth:x,inputComponent:A,multiline:S,ref:t,type:_},k,{classes:T}))}));y.muiName="Input";const v=y},52441:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,B:()=>s});var r=n(51559),i=n(5007),o=n(24115),a=n(8253);function s(e){return(0,o.Ay)("MuiInput",e)}const l=(0,r.A)({},a.A,(0,i.A)("MuiInput",["root","underline","input"]))},64987:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(19508),c=n(58990),u=n(87507),d=n(65741),h=n(47258),p=n(91031),f=n(5007),g=n(24115);function m(e){return(0,g.Ay)("MuiLink",e)}const y=(0,f.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var v=n(44197),b=n(59015);const w={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},x=({theme:e,ownerState:t})=>{const n=(e=>w[e]||e)(t.color),r=(0,v.Yn)(e,`palette.${n}`,!1)||t.color,i=(0,v.Yn)(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:(0,b.X4)(r,.4)};var A=n(97282);const S=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],C=(0,c.Ay)(p.A,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${(0,l.A)(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>(0,i.A)({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&(0,i.A)({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:x({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${y.focusVisible}`]:{outline:"auto"}}))),E=o.forwardRef((function(e,t){const n=(0,u.A)({props:e,name:"MuiLink"}),{className:c,color:p="primary",component:f="a",onBlur:g,onFocus:y,TypographyClasses:v,underline:b="always",variant:x="inherit",sx:E}=n,_=(0,r.A)(n,S),{isFocusVisibleRef:k,onBlur:T,onFocus:O,ref:P}=(0,d.A)(),[I,M]=o.useState(!1),L=(0,h.A)(t,P),R=(0,i.A)({},n,{color:p,component:f,focusVisible:I,underline:b,variant:x}),j=(e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${(0,l.A)(i)}`,"button"===n&&"button",r&&"focusVisible"]};return(0,s.A)(o,m,t)})(R);return(0,A.jsx)(C,(0,i.A)({color:p,className:(0,a.A)(j.root,c),classes:v,component:f,onBlur:e=>{T(e),!1===k.current&&M(!1),g&&g(e)},onFocus:e=>{O(e),!0===k.current&&M(!0),y&&y(e)},ref:L,ownerState:R,variant:x,sx:[...Object.keys(w).includes(p)?[]:[{color:p}],...Array.isArray(E)?E:[E]]},_))}))},64049:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>v,Ku:()=>f,XV:()=>m});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(19508),c=n(61165),u=n(58990),d=n(49968),h=n(97282);const p=["className","disabled","error","IconComponent","inputRef","variant"],f=({ownerState:e,theme:t})=>(0,i.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,i.A)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${c.A.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),g=(0,u.Ay)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:d.A,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${c.A.multiple}`]:t.multiple}]}})(f),m=({ownerState:e,theme:t})=>(0,i.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${c.A.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),y=(0,u.Ay)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,l.A)(n.variant)}`],n.open&&t.iconOpen]}})(m),v=o.forwardRef((function(e,t){const{className:n,disabled:u,error:d,IconComponent:f,inputRef:m,variant:v="standard"}=e,b=(0,r.A)(e,p),w=(0,i.A)({},e,{disabled:u,variant:v,error:d}),x=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,u={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${(0,l.A)(n)}`,o&&"iconOpen",r&&"disabled"]};return(0,s.A)(u,c.w,t)})(w);return(0,h.jsxs)(o.Fragment,{children:[(0,h.jsx)(g,(0,i.A)({ownerState:w,className:(0,a.A)(x.select,n),disabled:u,ref:m||t},b)),e.multiple?null:(0,h.jsx)(y,{as:f,ownerState:w,className:x.icon})]})}))},61165:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,w:()=>o});var r=n(5007),i=n(24115);function o(e){return(0,i.Ay)("MuiNativeSelect",e)}const a=(0,r.A)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"])},8088:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(59015),c=n(58990);const u=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};var d=n(87507),h=n(5007),p=n(24115);function f(e){return(0,p.Ay)("MuiPaper",e)}(0,h.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var g=n(97282);const m=["className","component","elevation","square","variant"],y=(0,c.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return(0,i.A)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,i.A)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,l.X4)("#fff",u(t.elevation))}, ${(0,l.X4)("#fff",u(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),v=o.forwardRef((function(e,t){const n=(0,d.A)({props:e,name:"MuiPaper"}),{className:o,component:l="div",elevation:c=1,square:u=!1,variant:h="elevation"}=n,p=(0,r.A)(n,m),v=(0,i.A)({},n,{component:l,elevation:c,square:u,variant:h}),b=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]};return(0,s.A)(o,f,i)})(v);return(0,g.jsx)(y,(0,i.A)({as:l,ownerState:v,className:(0,a.A)(b.root,o),ref:t},p))}))},23296:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>ne});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(12277),l=n(2665),c=n(32829),u=n(74311),d=n(63095),h=n(75031),p=n(73499),f=n(18029),g=n(43107),m=n(18605);const y={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};var v=n(75188);function b(e,t){return e-t}function w(e,t){var n;const{index:r}=null!=(n=e.reduce(((e,n,r)=>{const i=Math.abs(t-n);return null===e||ie===t)){return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))}(e,t)}const k={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},T=e=>e;let O;function P(){return void 0===O&&(O="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),O}function I(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:a=!1,isRtl:s=!1,marks:l=!1,max:c=100,min:O=0,name:I,onChange:M,onChangeCommitted:L,orientation:R="horizontal",rootRef:j,scale:F=T,step:D=1,shiftStep:N=10,tabIndex:z,value:V}=e,B=o.useRef(),[$,G]=o.useState(-1),[U,W]=o.useState(-1),[q,H]=o.useState(!1),Y=o.useRef(0),[K,X]=(0,d.A)({controlled:V,default:null!=n?n:O,name:"Slider"}),Z=M&&((e,t,n)=>{const r=e.nativeEvent||e,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:t,name:I}}),M(i,t,n)}),J=Array.isArray(K);let Q=J?K.slice().sort(b):[K];Q=Q.map((e=>null==e?O:(0,h.A)(e,O,c)));const ee=!0===l&&null!==D?[...Array(Math.floor((c-O)/D)+1)].map(((e,t)=>({value:O+D*t}))):l||[],te=ee.map((e=>e.value)),{isFocusVisibleRef:ne,onBlur:re,onFocus:ie,ref:oe}=(0,p.A)(),[ae,se]=o.useState(-1),le=o.useRef(),ce=(0,f.A)(oe,le),ue=(0,f.A)(j,ce),de=e=>t=>{var n;const r=Number(t.currentTarget.getAttribute("data-index"));ie(t),!0===ne.current&&se(r),W(r),null==e||null==(n=e.onFocus)||n.call(e,t)},he=e=>t=>{var n;re(t),!1===ne.current&&se(-1),W(-1),null==e||null==(n=e.onBlur)||n.call(e,t)},pe=(e,t)=>{const n=Number(e.currentTarget.getAttribute("data-index")),r=Q[n],i=te.indexOf(r);let o=t;if(ee&&null==D){const e=te[te.length-1];o=o>e?e:ot=>{var n;if(null!==D){const e=Number(t.currentTarget.getAttribute("data-index")),n=Q[e];let r=null;("ArrowLeft"===t.key||"ArrowDown"===t.key)&&t.shiftKey||"PageDown"===t.key?r=Math.max(n-N,O):(("ArrowRight"===t.key||"ArrowUp"===t.key)&&t.shiftKey||"PageUp"===t.key)&&(r=Math.min(n+N,c)),null!==r&&(pe(t,r),t.preventDefault())}null==e||null==(n=e.onKeyDown)||n.call(e,t)};(0,g.A)((()=>{var e;r&&le.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[r]),r&&-1!==$&&G(-1),r&&-1!==ae&&se(-1);const ge=o.useRef();let me=R;s&&"horizontal"===R&&(me+="-reverse");const ye=({finger:e,move:t=!1})=>{const{current:n}=le,{width:r,height:i,bottom:o,left:s}=n.getBoundingClientRect();let l,u;if(l=0===me.indexOf("vertical")?(o-e.y)/i:(e.x-s)/r,-1!==me.indexOf("-reverse")&&(l=1-l),u=function(e,t,n){return(n-t)*e+t}(l,O,c),D)u=S(u,D,O);else{const e=w(te,u);u=te[e]}u=(0,h.A)(u,O,c);let d=0;if(J){d=t?ge.current:w(Q,u),a&&(u=(0,h.A)(u,Q[d-1]||-1/0,Q[d+1]||1/0));const e=u;u=C({values:Q,newValue:u,index:d}),a&&t||(d=u.indexOf(e),ge.current=d)}return{newValue:u,activeIndex:d}},ve=(0,m.A)((e=>{const t=x(e,B);if(!t)return;if(Y.current+=1,"mousemove"===e.type&&0===e.buttons)return void be(e);const{newValue:n,activeIndex:r}=ye({finger:t,move:!0});E({sliderRef:le,activeIndex:r,setActive:G}),X(n),!q&&Y.current>2&&H(!0),Z&&!_(n,K)&&Z(e,n,r)})),be=(0,m.A)((e=>{const t=x(e,B);if(H(!1),!t)return;const{newValue:n}=ye({finger:t,move:!0});G(-1),"touchend"===e.type&&W(-1),L&&L(e,n),B.current=void 0,xe()})),we=(0,m.A)((e=>{if(r)return;P()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(B.current=t.identifier);const n=x(e,B);if(!1!==n){const{newValue:t,activeIndex:r}=ye({finger:n});E({sliderRef:le,activeIndex:r,setActive:G}),X(t),Z&&!_(t,K)&&Z(e,t,r)}Y.current=0;const i=(0,u.A)(le.current);i.addEventListener("touchmove",ve,{passive:!0}),i.addEventListener("touchend",be,{passive:!0})})),xe=o.useCallback((()=>{const e=(0,u.A)(le.current);e.removeEventListener("mousemove",ve),e.removeEventListener("mouseup",be),e.removeEventListener("touchmove",ve),e.removeEventListener("touchend",be)}),[be,ve]);o.useEffect((()=>{const{current:e}=le;return e.addEventListener("touchstart",we,{passive:P()}),()=>{e.removeEventListener("touchstart",we),xe()}}),[xe,we]),o.useEffect((()=>{r&&xe()}),[r,xe]);const Ae=A(J?Q[0]:O,O,c),Se=A(Q[Q.length-1],O,c)-Ae,Ce=e=>t=>{var n;null==(n=e.onMouseLeave)||n.call(e,t),W(-1)};return{active:$,axis:me,axisProps:k,dragging:q,focusedThumbIndex:ae,getHiddenInputProps:(n={})=>{var o;const a=(0,v.h)(n),l={onChange:(u=a||{},e=>{var t;null==(t=u.onChange)||t.call(u,e),pe(e,e.target.valueAsNumber)}),onFocus:de(a||{}),onBlur:he(a||{}),onKeyDown:fe(a||{})};var u;const d=(0,i.A)({},a,l);return(0,i.A)({tabIndex:z,"aria-labelledby":t,"aria-orientation":R,"aria-valuemax":F(c),"aria-valuemin":F(O),name:I,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(o=e.step)?o:void 0,disabled:r},n,d,{style:(0,i.A)({},y,{direction:s?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(e={})=>{const t=(0,v.h)(e),n={onMouseDown:(o=t||{},e=>{var t;if(null==(t=o.onMouseDown)||t.call(o,e),r)return;if(e.defaultPrevented)return;if(0!==e.button)return;e.preventDefault();const n=x(e,B);if(!1!==n){const{newValue:t,activeIndex:r}=ye({finger:n});E({sliderRef:le,activeIndex:r,setActive:G}),X(t),Z&&!_(t,K)&&Z(e,t,r)}Y.current=0;const i=(0,u.A)(le.current);i.addEventListener("mousemove",ve,{passive:!0}),i.addEventListener("mouseup",be)})};var o;const a=(0,i.A)({},t,n);return(0,i.A)({},e,{ref:ue},a)},getThumbProps:(e={})=>{const t=(0,v.h)(e),n={onMouseOver:(r=t||{},e=>{var t;null==(t=r.onMouseOver)||t.call(r,e);const n=Number(e.currentTarget.getAttribute("data-index"));W(n)}),onMouseLeave:Ce(t||{})};var r;return(0,i.A)({},e,t,n)},marks:ee,open:U,range:J,rootRef:ue,trackLeap:Se,trackOffset:Ae,values:Q,getThumbStyle:e=>({pointerEvents:-1!==$&&$!==e?"none":void 0})}}var M=n(59015),L=n(39160),R=n(99191),j=n(58990),F=n(57088);const D=e=>!e||!(0,l.g)(e);var N=n(19508),z=n(5007),V=n(24115);function B(e){return(0,V.Ay)("MuiSlider",e)}const $=(0,z.A)("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var G=n(97282);const U=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"],W=(0,R.h)("MuiSlider");function q(e){return e}const H=(0,j.Ay)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${(0,N.A)(n.color)}`],"medium"!==n.size&&t[`size${(0,N.A)(n.size)}`],n.marked&&t.marked,"vertical"===n.orientation&&t.vertical,"inverted"===n.track&&t.trackInverted,!1===n.track&&t.trackFalse]}})((({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${$.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${$.dragging}`]:{[`& .${$.thumb}, & .${$.track}`]:{transition:"none"}},variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n;return(null!=(n=e.vars)?n:e).palette[t].main})).map((t=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}})),Y=(0,j.Ay)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),K=(0,j.Ay)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n;return(null!=(n=e.vars)?n:e).palette[t].main})).map((t=>({props:{color:t,track:"inverted"},style:(0,i.A)({},e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:(0,i.A)({backgroundColor:(0,M.a)(e.palette[t].main,.62),borderColor:(0,M.a)(e.palette[t].main,.62)},e.applyStyles("dark",{backgroundColor:(0,M.e$)(e.palette[t].main,.5)}),e.applyStyles("dark",{borderColor:(0,M.e$)(e.palette[t].main,.5)})))})))]}})),X=(0,j.Ay)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${(0,N.A)(n.color)}`],"medium"!==n.size&&t[`thumbSize${(0,N.A)(n.size)}`]]}})((({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${$.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n;return(null!=(n=e.vars)?n:e).palette[t].main})).map((t=>({props:{color:t},style:{[`&:hover, &.${$.focusVisible}`]:(0,i.A)({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${(0,M.X4)(e.palette[t].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${$.active}`]:(0,i.A)({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)}`}:{boxShadow:`0px 0px 0px 14px ${(0,M.X4)(e.palette[t].main,.16)}`})}})))]}})),Z=(0,j.Ay)((function(e){const{children:t,className:n,value:r}=e,i=(e=>{const{open:t}=e;return{offset:(0,a.A)(t&&$.valueLabelOpen),circle:$.valueLabelCircle,label:$.valueLabelLabel}})(e);return t?o.cloneElement(t,{className:(0,a.A)(t.props.className)},(0,G.jsxs)(o.Fragment,{children:[t.props.children,(0,G.jsx)("span",{className:(0,a.A)(i.offset,n),"aria-hidden":!0,children:(0,G.jsx)("span",{className:i.circle,children:(0,G.jsx)("span",{className:i.label,children:r})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((({theme:e})=>(0,i.A)({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${$.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${$.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),J=(0,j.Ay)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,F.A)(e)&&"markActive"!==e,overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})((({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),Q=(0,j.Ay)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,F.A)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((({theme:e})=>(0,i.A)({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),ee=({children:e})=>e,te=o.forwardRef((function(e,t){var n,u,d,h,p,f,g,m,y,v,b,w,x,S,C,E,_,k,T,O,P,M,R,j;const F=W({props:e,name:"MuiSlider"}),z=(0,L.I)(),{"aria-label":V,"aria-valuetext":$,"aria-labelledby":te,component:ne="span",components:re={},componentsProps:ie={},color:oe="primary",classes:ae,className:se,disableSwap:le=!1,disabled:ce=!1,getAriaLabel:ue,getAriaValueText:de,marks:he=!1,max:pe=100,min:fe=0,orientation:ge="horizontal",shiftStep:me=10,size:ye="medium",step:ve=1,scale:be=q,slotProps:we,slots:xe,track:Ae="normal",valueLabelDisplay:Se="off",valueLabelFormat:Ce=q}=F,Ee=(0,r.A)(F,U),_e=(0,i.A)({},F,{isRtl:z,max:pe,min:fe,classes:ae,disabled:ce,disableSwap:le,orientation:ge,marks:he,color:oe,size:ye,step:ve,shiftStep:me,scale:be,track:Ae,valueLabelDisplay:Se,valueLabelFormat:Ce}),{axisProps:ke,getRootProps:Te,getHiddenInputProps:Oe,getThumbProps:Pe,open:Ie,active:Me,axis:Le,focusedThumbIndex:Re,range:je,dragging:Fe,marks:De,values:Ne,trackOffset:ze,trackLeap:Ve,getThumbStyle:Be}=I((0,i.A)({},_e,{rootRef:t}));_e.marked=De.length>0&&De.some((e=>e.label)),_e.dragging=Fe,_e.focusedThumbIndex=Re;const $e=(e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:a,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked","vertical"===i&&"vertical","inverted"===o&&"trackInverted",!1===o&&"trackFalse",s&&`color${(0,N.A)(s)}`,l&&`size${(0,N.A)(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${(0,N.A)(l)}`,s&&`thumbColor${(0,N.A)(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,c.A)(u,B,a)})(_e),Ge=null!=(n=null!=(u=null==xe?void 0:xe.root)?u:re.Root)?n:H,Ue=null!=(d=null!=(h=null==xe?void 0:xe.rail)?h:re.Rail)?d:Y,We=null!=(p=null!=(f=null==xe?void 0:xe.track)?f:re.Track)?p:K,qe=null!=(g=null!=(m=null==xe?void 0:xe.thumb)?m:re.Thumb)?g:X,He=null!=(y=null!=(v=null==xe?void 0:xe.valueLabel)?v:re.ValueLabel)?y:Z,Ye=null!=(b=null!=(w=null==xe?void 0:xe.mark)?w:re.Mark)?b:J,Ke=null!=(x=null!=(S=null==xe?void 0:xe.markLabel)?S:re.MarkLabel)?x:Q,Xe=null!=(C=null!=(E=null==xe?void 0:xe.input)?E:re.Input)?C:"input",Ze=null!=(_=null==we?void 0:we.root)?_:ie.root,Je=null!=(k=null==we?void 0:we.rail)?k:ie.rail,Qe=null!=(T=null==we?void 0:we.track)?T:ie.track,et=null!=(O=null==we?void 0:we.thumb)?O:ie.thumb,tt=null!=(P=null==we?void 0:we.valueLabel)?P:ie.valueLabel,nt=null!=(M=null==we?void 0:we.mark)?M:ie.mark,rt=null!=(R=null==we?void 0:we.markLabel)?R:ie.markLabel,it=null!=(j=null==we?void 0:we.input)?j:ie.input,ot=(0,s.Q)({elementType:Ge,getSlotProps:Te,externalSlotProps:Ze,externalForwardedProps:Ee,additionalProps:(0,i.A)({},D(Ge)&&{as:ne}),ownerState:(0,i.A)({},_e,null==Ze?void 0:Ze.ownerState),className:[$e.root,se]}),at=(0,s.Q)({elementType:Ue,externalSlotProps:Je,ownerState:_e,className:$e.rail}),st=(0,s.Q)({elementType:We,externalSlotProps:Qe,additionalProps:{style:(0,i.A)({},ke[Le].offset(ze),ke[Le].leap(Ve))},ownerState:(0,i.A)({},_e,null==Qe?void 0:Qe.ownerState),className:$e.track}),lt=(0,s.Q)({elementType:qe,getSlotProps:Pe,externalSlotProps:et,ownerState:(0,i.A)({},_e,null==et?void 0:et.ownerState),className:$e.thumb}),ct=(0,s.Q)({elementType:He,externalSlotProps:tt,ownerState:(0,i.A)({},_e,null==tt?void 0:tt.ownerState),className:$e.valueLabel}),ut=(0,s.Q)({elementType:Ye,externalSlotProps:nt,ownerState:_e,className:$e.mark}),dt=(0,s.Q)({elementType:Ke,externalSlotProps:rt,ownerState:_e,className:$e.markLabel}),ht=(0,s.Q)({elementType:Xe,getSlotProps:Oe,externalSlotProps:it,ownerState:_e});return(0,G.jsxs)(Ge,(0,i.A)({},ot,{children:[(0,G.jsx)(Ue,(0,i.A)({},at)),(0,G.jsx)(We,(0,i.A)({},st)),De.filter((e=>e.value>=fe&&e.value<=pe)).map(((e,t)=>{const n=A(e.value,fe,pe),r=ke[Le].offset(n);let s;return s=!1===Ae?-1!==Ne.indexOf(e.value):"normal"===Ae&&(je?e.value>=Ne[0]&&e.value<=Ne[Ne.length-1]:e.value<=Ne[0])||"inverted"===Ae&&(je?e.value<=Ne[0]||e.value>=Ne[Ne.length-1]:e.value>=Ne[0]),(0,G.jsxs)(o.Fragment,{children:[(0,G.jsx)(Ye,(0,i.A)({"data-index":t},ut,!(0,l.g)(Ye)&&{markActive:s},{style:(0,i.A)({},r,ut.style),className:(0,a.A)(ut.className,s&&$e.markActive)})),null!=e.label?(0,G.jsx)(Ke,(0,i.A)({"aria-hidden":!0,"data-index":t},dt,!(0,l.g)(Ke)&&{markLabelActive:s},{style:(0,i.A)({},r,dt.style),className:(0,a.A)($e.markLabel,dt.className,s&&$e.markLabelActive),children:e.label})):null]},t)})),Ne.map(((e,t)=>{const n=A(e,fe,pe),r=ke[Le].offset(n),o="off"===Se?ee:He;return(0,G.jsx)(o,(0,i.A)({},!(0,l.g)(o)&&{valueLabelFormat:Ce,valueLabelDisplay:Se,value:"function"==typeof Ce?Ce(be(e),t):Ce,index:t,open:Ie===t||Me===t||"on"===Se,disabled:ce},ct,{children:(0,G.jsx)(qe,(0,i.A)({"data-index":t},lt,{className:(0,a.A)($e.thumb,lt.className,Me===t&&$e.active,Re===t&&$e.focusVisible),style:(0,i.A)({},r,Be(t),lt.style),children:(0,G.jsx)(Xe,(0,i.A)({"data-index":t,"aria-label":ue?ue(t):V,"aria-valuenow":be(e),"aria-labelledby":te,"aria-valuetext":de?de(be(e),t):$,value:Ne[t]},ht))}))}),t)}))]}))})),ne=te},41019:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(51559),i=n(73342),o=n(30538),a=n(87286),s=n(32829),l=n(19508),c=n(87507),u=n(58990),d=n(5007),h=n(24115);function p(e){return(0,h.Ay)("MuiSvgIcon",e)}(0,d.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var f=n(97282);const g=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],m=(0,u.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,l.A)(n.color)}`],t[`fontSize${(0,l.A)(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,c,u,d,h,p,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=e.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(h=(e.vars||e).palette)||null==(h=h[t.color])?void 0:h.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}})),y=o.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiSvgIcon"}),{children:u,className:d,color:h="inherit",component:y="svg",fontSize:v="medium",htmlColor:b,inheritViewBox:w=!1,titleAccess:x,viewBox:A="0 0 24 24"}=n,S=(0,i.A)(n,g),C=o.isValidElement(u)&&"svg"===u.type,E=(0,r.A)({},n,{color:h,component:y,fontSize:v,instanceFontSize:e.fontSize,inheritViewBox:w,viewBox:A,hasSvgAsChild:C}),_={};w||(_.viewBox=A);const k=(e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root","inherit"!==t&&`color${(0,l.A)(t)}`,`fontSize${(0,l.A)(n)}`]};return(0,s.A)(i,p,r)})(E);return(0,f.jsxs)(m,(0,r.A)({as:y,className:(0,a.A)(k.root,d),focusable:"false",color:b,"aria-hidden":!x||void 0,role:x?"img":void 0,ref:t},_,S,C&&u.props,{ownerState:E,children:[C?u.props.children:u,x?(0,f.jsx)("title",{children:x}):null]}))}));y.muiName="SvgIcon";const v=y},68599:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(59015),c=n(19508),u=n(15230),d=n(99191),h=n(58990),p=n(5007),f=n(24115);function g(e){return(0,f.Ay)("MuiSwitch",e)}const m=(0,p.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var y=n(97282);const v=["className","color","edge","size","sx"],b=(0,d.h)("MuiSwitch"),w=(0,h.Ay)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${(0,c.A)(n.edge)}`],t[`size${(0,c.A)(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${m.thumb}`]:{width:16,height:16},[`& .${m.switchBase}`]:{padding:4,[`&.${m.checked}`]:{transform:"translateX(16px)"}}}}]}),x=(0,h.Ay)(u.A,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${m.input}`]:t.input},"default"!==n.color&&t[`color${(0,c.A)(n.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${m.checked}`]:{transform:"translateX(20px)"},[`&.${m.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${m.checked} + .${m.track}`]:{opacity:.5},[`&.${m.disabled} + .${m.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${m.input}`]:{left:"-100%",width:"300%"}})),(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([t])=>({props:{color:t},style:{[`&.${m.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.X4)(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${m.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?(0,l.a)(e.palette[t].main,.62):(0,l.e$)(e.palette[t].main,.55)}`}},[`&.${m.checked} + .${m.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}})))]}))),A=(0,h.Ay)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),S=(0,h.Ay)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),C=o.forwardRef((function(e,t){const n=b({props:e,name:"MuiSwitch"}),{className:o,color:l="primary",edge:u=!1,size:d="medium",sx:h}=n,p=(0,r.A)(n,v),f=(0,i.A)({},n,{color:l,edge:u,size:d}),m=(e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:l}=e,u={root:["root",n&&`edge${(0,c.A)(n)}`,`size${(0,c.A)(r)}`],switchBase:["switchBase",`color${(0,c.A)(o)}`,a&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=(0,s.A)(u,g,t);return(0,i.A)({},t,d)})(f),C=(0,y.jsx)(S,{className:m.thumb,ownerState:f});return(0,y.jsxs)(w,{className:(0,a.A)(m.root,o),sx:h,ownerState:f,children:[(0,y.jsx)(x,(0,i.A)({type:"checkbox",icon:C,checkedIcon:C,ref:t,ownerState:f},p,{classes:(0,i.A)({},m,{root:m.switchBase})})),(0,y.jsx)(A,{className:m.track,ownerState:f})]})}))},91031:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(25779),l=n(32829),c=n(58990),u=n(87507),d=n(19508),h=n(5007),p=n(24115);function f(e){return(0,p.Ay)("MuiTypography",e)}(0,h.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var g=n(97282);const m=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],y=(0,c.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${(0,d.A)(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>(0,i.A)({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),v={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},w=o.forwardRef((function(e,t){const n=(0,u.A)({props:e,name:"MuiTypography"}),o=(e=>b[e]||e)(n.color),c=(0,s.A)((0,i.A)({},n,{color:o})),{align:h="inherit",className:p,component:w,gutterBottom:x=!1,noWrap:A=!1,paragraph:S=!1,variant:C="body1",variantMapping:E=v}=c,_=(0,r.A)(c,m),k=(0,i.A)({},c,{align:h,color:o,className:p,component:w,gutterBottom:x,noWrap:A,paragraph:S,variant:C,variantMapping:E}),T=w||(S?"p":E[C]||v[C])||"span",O=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,"inherit"!==e.align&&`align${(0,d.A)(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return(0,l.A)(s,f,a)})(k);return(0,g.jsx)(y,(0,i.A)({as:T,ref:t,ownerState:k,className:(0,a.A)(O.root,p)},_))}))},15230:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(19508),c=n(58990),u=n(49968),d=n(58245),h=n(39230),p=n(92004),f=n(5007),g=n(24115);function m(e){return(0,g.Ay)("PrivateSwitchBase",e)}(0,f.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var y=n(97282);const v=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],b=(0,c.Ay)(p.A)((({ownerState:e})=>(0,i.A)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),w=(0,c.Ay)("input",{shouldForwardProp:u.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),x=o.forwardRef((function(e,t){const{autoFocus:n,checked:o,checkedIcon:c,className:u,defaultChecked:p,disabled:f,disableFocusRipple:g=!1,edge:x=!1,icon:A,id:S,inputProps:C,inputRef:E,name:_,onBlur:k,onChange:T,onFocus:O,readOnly:P,required:I=!1,tabIndex:M,type:L,value:R}=e,j=(0,r.A)(e,v),[F,D]=(0,d.A)({controlled:o,default:Boolean(p),name:"SwitchBase",state:"checked"}),N=(0,h.A)();let z=f;N&&void 0===z&&(z=N.disabled);const V="checkbox"===L||"radio"===L,B=(0,i.A)({},e,{checked:F,disabled:z,disableFocusRipple:g,edge:x}),$=(e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${(0,l.A)(i)}`],input:["input"]};return(0,s.A)(o,m,t)})(B);return(0,y.jsxs)(b,(0,i.A)({component:"span",className:(0,a.A)($.root,u),centerRipple:!0,focusRipple:!g,disabled:z,tabIndex:null,role:void 0,onFocus:e=>{O&&O(e),N&&N.onFocus&&N.onFocus(e)},onBlur:e=>{k&&k(e),N&&N.onBlur&&N.onBlur(e)},ownerState:B,ref:t},j,{children:[(0,y.jsx)(w,(0,i.A)({autoFocus:n,checked:o,defaultChecked:p,className:$.input,disabled:z,id:V?S:void 0,name:_,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;D(t),T&&T(e,t)},readOnly:P,ref:E,required:I,ownerState:B,tabIndex:M,type:L},"checkbox"===L&&void 0===R?{}:{value:R},C)),F?c:A]}))}))},69216:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});n(30538);var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},333:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(51559),i=n(73342),o=n(30538),a=n(35403),s=n(67139),l=n(5050),c=n(97282);const u=function(e){const{children:t,theme:n}=e,i=(0,a.A)(),u=o.useMemo((()=>{const e=null===i?n:function(e,t){if("function"==typeof t)return t(e);return(0,r.A)({},e,t)}(i,n);return null!=e&&(e[l.A]=null!==i),e}),[n,i]);return(0,c.jsx)(s.A.Provider,{value:u,children:t})};var d=n(18321),h=n(80187),p=n(39160);const f={};function g(e,t,n,i=!1){return o.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const a=n(o),s=e?(0,r.A)({},t,{[e]:a}):a;return i?()=>s:s}return e?(0,r.A)({},t,{[e]:n}):(0,r.A)({},t,n)}),[e,t,n,i])}const m=function(e){const{children:t,theme:n,themeId:r}=e,i=(0,h.A)(f),o=(0,a.A)()||f,s=g(r,i,n),l=g(r,o,n,!0),m="rtl"===s.direction;return(0,c.jsx)(u,{theme:l,children:(0,c.jsx)(d.T.Provider,{value:s,children:(0,c.jsx)(p.A,{value:m,children:t})})})};var y=n(38358);const v=["theme"];function b(e){let{theme:t}=e,n=(0,i.A)(e,v);const o=t[y.A];return(0,c.jsx)(m,(0,r.A)({},n,{themeId:o?y.A:void 0,theme:o||t}))}},76014:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var r=n(51559),i=n(73342),o=n(88207),a=n(43271),s=n(6856),l=n(22311),c=n(84657);var u=n(59015);const d={black:"#000",white:"#fff"},h={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},f={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},v={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=["mode","contrastThreshold","tonalOffset"],w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function A(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.a)(e.main,i):"dark"===t&&(e.dark=(0,u.e$)(e.main,o)))}function S(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,l=(0,i.A)(e,b),c=e.primary||function(e="light"){return"dark"===e?{main:m[200],light:m[50],dark:m[400]}:{main:m[700],light:m[400],dark:m[800]}}(t),S=e.secondary||function(e="light"){return"dark"===e?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(t),C=e.error||function(e="light"){return"dark"===e?{main:f[500],light:f[300],dark:f[700]}:{main:f[700],light:f[400],dark:f[800]}}(t),E=e.info||function(e="light"){return"dark"===e?{main:y[400],light:y[300],dark:y[700]}:{main:y[700],light:y[500],dark:y[900]}}(t),_=e.success||function(e="light"){return"dark"===e?{main:v[400],light:v[300],dark:v[700]}:{main:v[800],light:v[500],dark:v[900]}}(t),k=e.warning||function(e="light"){return"dark"===e?{main:g[400],light:g[300],dark:g[700]}:{main:"#ed6c02",light:g[500],dark:g[900]}}(t);function T(e){return(0,u.eM)(e,x.text.primary)>=n?x.text.primary:w.text.primary}const O=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:a=700})=>{if(!(e=(0,r.A)({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error((0,o.A)(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error((0,o.A)(12,t?` (${t})`:"",JSON.stringify(e.main)));return A(e,"light",i,s),A(e,"dark",a,s),e.contrastText||(e.contrastText=T(e.main)),e},P={dark:x,light:w};return(0,a.A)((0,r.A)({common:(0,r.A)({},d),mode:t,primary:O({color:c,name:"primary"}),secondary:O({color:S,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:O({color:C,name:"error"}),warning:O({color:k,name:"warning"}),info:O({color:E,name:"info"}),success:O({color:_,name:"success"}),grey:h,contrastThreshold:n,getContrastText:T,augmentColor:O,tonalOffset:s},P[t]),l)}const C=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const E={textTransform:"uppercase"},_='"Roboto", "Helvetica", "Arial", sans-serif';function k(e,t){const n="function"==typeof t?t(e):t,{fontFamily:o=_,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:p,pxToRem:f}=n,g=(0,i.A)(n,C);const m=s/14,y=f||(e=>e/h*m+"rem"),v=(e,t,n,i,a)=>{return(0,r.A)({fontFamily:o,fontWeight:e,fontSize:y(t),lineHeight:n},o===_?{letterSpacing:(s=i/t,Math.round(1e5*s)/1e5)+"em"}:{},a,p);var s},b={h1:v(l,96,1.167,-1.5),h2:v(l,60,1.2,-.5),h3:v(c,48,1.167,0),h4:v(c,34,1.235,.25),h5:v(c,24,1.334,0),h6:v(u,20,1.6,.15),subtitle1:v(c,16,1.75,.15),subtitle2:v(u,14,1.57,.1),body1:v(c,16,1.5,.15),body2:v(c,14,1.43,.15),button:v(u,14,1.75,.4,E),caption:v(c,12,1.66,.4),overline:v(c,12,2.66,1,E),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.A)((0,r.A)({htmlFontSize:h,pxToRem:y,fontFamily:o,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},b),g,{clone:!1})}function T(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const O=["none",T(0,2,1,-1,0,1,1,0,0,1,3,0),T(0,3,1,-2,0,2,2,0,0,1,5,0),T(0,3,3,-2,0,3,4,0,0,1,8,0),T(0,2,4,-1,0,4,5,0,0,1,10,0),T(0,3,5,-1,0,5,8,0,0,1,14,0),T(0,3,5,-1,0,6,10,0,0,1,18,0),T(0,4,5,-2,0,7,10,1,0,2,16,1),T(0,5,5,-3,0,8,10,1,0,3,14,2),T(0,5,6,-3,0,9,12,1,0,3,16,2),T(0,6,6,-3,0,10,14,1,0,4,18,3),T(0,6,7,-4,0,11,15,1,0,4,20,3),T(0,7,8,-4,0,12,17,2,0,5,22,4),T(0,7,8,-4,0,13,19,2,0,5,24,4),T(0,7,9,-4,0,14,21,2,0,5,26,4),T(0,8,9,-5,0,15,22,2,0,6,28,5),T(0,8,10,-5,0,16,24,2,0,6,30,5),T(0,8,11,-5,0,17,26,2,0,6,32,5),T(0,9,11,-5,0,18,28,2,0,7,34,6),T(0,9,12,-6,0,19,29,2,0,7,36,6),T(0,10,13,-6,0,20,31,3,0,8,38,7),T(0,10,13,-6,0,21,33,3,0,8,40,7),T(0,10,14,-6,0,22,35,3,0,8,42,7),T(0,11,14,-7,0,23,36,3,0,9,44,8),T(0,11,15,-7,0,24,38,3,0,9,46,8)];var P=n(2297);const I={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},M=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function L(e={},...t){const{mixins:n={},palette:u={},transitions:d={},typography:h={}}=e,p=(0,i.A)(e,M);if(e.vars)throw new Error((0,o.A)(18));const f=S(u),g=(0,c.A)(e);let m=(0,a.A)(g,{mixins:(y=g.breakpoints,v=n,(0,r.A)({toolbar:{minHeight:56,[y.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[y.up("sm")]:{minHeight:64}}},v)),palette:f,shadows:O.slice(),typography:k(f,h),transitions:(0,P.Ay)(d),zIndex:(0,r.A)({},I)});var y,v;return m=(0,a.A)(m,p),m=t.reduce(((e,t)=>(0,a.A)(e,t)),m),m.unstable_sxConfig=(0,r.A)({},s.A,null==p?void 0:p.unstable_sxConfig),m.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},m}const R=L},2297:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,p0:()=>s});var r=n(73342),i=n(51559);const o=["duration","easing","delay"],a={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return`${Math.round(e)}ms`}function c(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function u(e){const t=(0,i.A)({},a,e.easing),n=(0,i.A)({},s,e.duration);return(0,i.A)({getAutoHeightDuration:c,create:(e=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:c=0}=i;(0,r.A)(i,o);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof a?a:l(a)} ${s} ${"string"==typeof c?c:l(c)}`)).join(",")}},e,{easing:t,duration:n})}},75947:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(76014).A)()},38358:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="$$material"},49968:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(57088);const i=e=>(0,r.A)(e)&&"classes"!==e},57088:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},58990:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r=n(15841),i=n(75947),o=n(38358),a=n(49968);const s=(0,r.Ay)({themeId:o.A,defaultTheme:i.A,rootShouldForwardProp:a.A})},94145:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});n(30538);var r=n(38382),i=n(75947),o=n(38358);function a(){const e=(0,r.A)(i.A);return e[o.A]||e}},87507:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(92775),i=n(75947),o=n(38358);function a({props:e,name:t}){return(0,r.A)({props:e,name:t,defaultTheme:i.A,themeId:o.A})}},19508:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(2681).A},17416:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(96339).A},65127:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(51559),i=n(30538),o=n(41019),a=n(97282);function s(e,t){function n(n,i){return(0,a.jsx)(o.A,(0,r.A)({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return n.muiName=o.A.muiName,i.memo(i.forwardRef(n))}},44545:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(6995).A},90202:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>i.A,createChainedFunction:()=>o.A,createSvgIcon:()=>a.A,debounce:()=>s.A,deprecatedPropType:()=>l,isMuiElement:()=>c.A,ownerDocument:()=>u.A,ownerWindow:()=>d.A,requirePropFactory:()=>h,setRef:()=>p,unstable_ClassNameGenerator:()=>x,unstable_useEnhancedEffect:()=>f.A,unstable_useId:()=>g.A,unsupportedProp:()=>m,useControlled:()=>y.A,useEventCallback:()=>v.A,useForkRef:()=>b.A,useIsFocusVisible:()=>w.A});var r=n(58337),i=n(19508),o=n(17416),a=n(65127),s=n(44545);const l=function(e,t){return()=>null};var c=n(75361),u=n(8018),d=n(38579);n(51559);const h=function(e,t){return()=>null};const p=n(54175).A;var f=n(65420),g=n(35566);const m=function(e,t,n,r,i){return null};var y=n(58245),v=n(36064),b=n(47258),w=n(65741);const x={configure:e=>{r.A.configure(e)}}},75361:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(30538);const i=function(e,t){var n,i;return r.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(i=e.type)||null==(i=i._payload)||null==(i=i.value)?void 0:i.muiName)}},8018:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(74311).A},38579:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(56023).A},58245:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(63095).A},65420:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(43107).A},36064:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(18605).A},47258:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(18029).A},35566:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(5391).A},65741:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(73499).A},99191:(e,t,n)=>{"use strict";n.d(t,{h:()=>i});var r=n(87507);function i(e){return r.A}},5050:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__"},67139:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(30538).createContext(null)},35403:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(30538),i=n(67139);function o(){return r.useContext(i.A)}},78790:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});n(30538);var r=n(5345),i=n(97282);function o(e){const{styles:t,defaultTheme:n={}}=e,o="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return(0,i.jsx)(r.mL,{styles:o})}},29224:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});n(30538);var r=n(18321),i=n(12347),o=n(97282);let a;function s(e){const{injectFirst:t,children:n}=e;return t&&a?(0,o.jsx)(r.C,{value:a,children:n}):n}"object"==typeof document&&(a=(0,i.A)({key:"css",prepend:!0}))},77753:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalStyles:()=>w.A,StyledEngineProvider:()=>b.A,ThemeContext:()=>l.T,css:()=>v.AH,default:()=>x,internal_processStyles:()=>A,keyframes:()=>v.i7});var r=n(51559),i=n(30538),o=n(48998),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,o.A)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(18321),c=n(40106),u=n(93372),d=n(88946),h=s,p=function(e){return"theme"!==e},f=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?h:p},g=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,c.SF)(t,n,r),(0,d.s)((function(){return(0,c.sk)(t,n,r)})),null},y=function e(t,n){var o,a,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(o=n.label,a=n.target);var h=g(t,n,s),p=h||f(d),y=!p("as");return function(){var v=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&b.push("label:"+o+";"),null==v[0]||void 0===v[0].raw)b.push.apply(b,v);else{0,b.push(v[0][0]);for(var w=v.length,x=1;x{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},59015:(e,t,n)=>{"use strict";var r=n(43501);t.X4=p,t.e$=f,t.tL=m,t.eM=function(e,t){const n=h(e),r=h(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.a=g;var i=r(n(25286)),o=r(n(76772));function a(e,t=0,n=1){return(0,o.default)(e,t,n)}function s(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(s(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,i.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,i.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const c=e=>{const t=l(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function u(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function d(e){e=l(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),u({type:s,values:c})}function h(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(d(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function p(e,t){return e=l(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,u(e)}function f(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function g(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return u(e)}function m(e,t=.15){return h(e)>.5?f(e,t):g(e,t)}},15841:(e,t,n)=>{"use strict";var r=n(43501);t.Ay=function(e={}){const{themeId:t,defaultTheme:n=g,rootShouldForwardProp:r=f,slotShouldForwardProp:l=f}=e,u=e=>(0,c.default)((0,i.default)({},e,{theme:y((0,i.default)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,(e,c={})=>{(0,a.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:p,skipVariantsResolver:g,skipSx:w,overridesResolver:x=v(m(p))}=c,A=(0,o.default)(c,h),S=void 0!==g?g:p&&"Root"!==p&&"root"!==p||!1,C=w||!1;let E=f;"Root"===p||"root"===p?E=r:p?E=l:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(E=void 0);const _=(0,a.default)(e,(0,i.default)({shouldForwardProp:E,label:undefined},A)),k=e=>"function"==typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?r=>b(e,(0,i.default)({},r,{theme:y({theme:r.theme,defaultTheme:n,themeId:t})})):e,T=(r,...o)=>{let a=k(r);const s=o?o.map(k):[];d&&x&&s.push((e=>{const r=y((0,i.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[d]||!r.components[d].styleOverrides)return null;const o=r.components[d].styleOverrides,a={};return Object.entries(o).forEach((([t,n])=>{a[t]=b(n,(0,i.default)({},e,{theme:r}))})),x(e,a)})),d&&!S&&s.push((e=>{var r;const o=y((0,i.default)({},e,{defaultTheme:n,themeId:t}));return b({variants:null==o||null==(r=o.components)||null==(r=r[d])?void 0:r.variants},(0,i.default)({},e,{theme:o}))})),C||s.push(u);const l=s.length-o.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=_(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return _.withConfig&&(T.withConfig=_.withConfig),T}};var i=r(n(52305)),o=r(n(16112)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(77753)),s=n(82629),l=(r(n(8295)),r(n(63526)),r(n(21050))),c=r(n(4725));const u=["ownerState"],d=["variants"],h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function f(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const g=(0,l.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function y({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function v(e){return e?(t,n)=>n[e]:null}function b(e,t){let{ownerState:n}=t,r=(0,o.default)(t,u);const a="function"==typeof e?e((0,i.default)({ownerState:n},r)):e;if(Array.isArray(a))return a.flatMap((e=>b(e,(0,i.default)({ownerState:n},r))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,o.default)(a,d);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,i.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,i.default)({ownerState:n},r,n)):e.style))})),t}return a}},39160:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,I:()=>c});var r=n(51559),i=n(73342),o=n(30538),a=n(97282);const s=["value"],l=o.createContext();const c=()=>{const e=o.useContext(l);return null!=e&&e},u=function(e){let{value:t}=e,n=(0,i.A)(e,s);return(0,a.jsx)(l.Provider,(0,r.A)({value:null==t||t},n))}},63496:(e,t,n)=>{"use strict";n.d(t,{EU:()=>s,NI:()=>a,iZ:()=>c,kW:()=>u,vf:()=>l,zu:()=>i});var r=n(43271);const i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${i[e]}px)`};function a(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||o;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"==typeof t){const e=r.breakpoints||o;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||i).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function s(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e,...t){const n=s(e),i=[n,...t].reduce(((e,t)=>(0,r.A)(e,t)),{});return l(Object.keys(n),i)}function u({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r{null!=e[t]&&(n[t]=!0)})),n}(e,t),i=Object.keys(r);if(0===i.length)return e;let o;return i.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[o],o=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[o],o=n):t[n]=e,t)),{})}},41795:(e,t,n)=>{"use strict";n.d(t,{X4:()=>l,a:()=>u,e$:()=>c});var r=n(88207),i=n(75031);function o(e,t=0,n=1){return(0,i.A)(e,t,n)}function a(e){if(e.type)return e;if("#"===e.charAt(0))return a(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.A)(9,e));let i,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),i=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,r.A)(10,i))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:i}}function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e,t){return e=a(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function c(e,t){if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function u(e,t){if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}},10380:(e,t,n)=>{"use strict";function r(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}n.d(t,{A:()=>r})},99314:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(73342),i=n(51559);const o=["values","unit","step"],a=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,i.A)({},e,{[t.key]:t.val})),{})};function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5}=e,l=(0,r.A)(e,o),c=a(t),u=Object.keys(c);function d(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function h(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-s/100}${n})`}function p(e,r){const i=u.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[u[i]]?t[u[i]]:r)-s/100}${n})`}return(0,i.A)({keys:u,values:c,up:d,down:h,between:p,only:function(e){return u.indexOf(e)+1{"use strict";n.d(t,{A:()=>p});var r=n(51559),i=n(73342),o=n(43271),a=n(99314);const s={borderRadius:4};var l=n(3820);var c=n(22311),u=n(6856),d=n(10380);const h=["breakpoints","palette","spacing","shape"];const p=function(e={},...t){const{breakpoints:n={},palette:p={},spacing:f,shape:g={}}=e,m=(0,i.A)(e,h),y=(0,a.A)(n),v=function(e=8){if(e.mui)return e;const t=(0,l.LX)({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(f);let b=(0,o.A)({breakpoints:y,direction:"ltr",components:{},palette:(0,r.A)({mode:"light"},p),spacing:v,shape:(0,r.A)({},s,g)},m);return b.applyStyles=d.A,b=t.reduce(((e,t)=>(0,o.A)(e,t)),b),b.unstable_sxConfig=(0,r.A)({},u.A,null==m?void 0:m.unstable_sxConfig),b.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},b}},21050:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,private_createBreakpoints:()=>i.A,unstable_applyStyles:()=>o.A});var r=n(84657),i=n(99314),o=n(10380)},62648:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(43271);const i=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},3820:(e,t,n)=>{"use strict";n.d(t,{LX:()=>f,MA:()=>p,_W:()=>g,Lc:()=>v,Ms:()=>b});var r=n(63496),i=n(44197),o=n(62648);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=a[t],i=s[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],h=[...u,...d];function p(e,t,n,r){var o;const a=null!=(o=(0,i.Yn)(e,t,!1))?o:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function f(e){return p(e,"spacing",8)}function g(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function m(e,t,n,i){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=g(t,n),e)),{})}(c(n),i),a=e[n];return(0,r.NI)(e,a,o)}function y(e,t){const n=f(e.theme);return Object.keys(e).map((r=>m(e,t,r,n))).reduce(o.A,{})}function v(e){return y(e,u)}function b(e){return y(e,d)}function w(e){return y(e,h)}v.propTypes={},v.filterProps=u,b.propTypes={},b.filterProps=d,w.propTypes={},w.filterProps=h},44197:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,BO:()=>a,Yn:()=>o});var r=n(2681),i=n(63496);function o(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:o(e,n)||r,t&&(i=t(i,r,e)),i}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=o(e.theme,s)||{};return(0,i.NI)(e,c,(e=>{let i=a(u,l,e);return e===i&&"string"==typeof e&&(i=a(u,l,`${t}${"default"===e?"":(0,r.A)(e)}`,e)),!1===n?i:{[n]:i}}))};return c.propTypes={},c.filterProps=[t],c}},6856:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var r=n(3820),i=n(44197),o=n(62648);const a=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?(0,o.A)(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n};var s=n(63496);function l(e){return"number"!=typeof e?e:`${e}px solid`}function c(e,t){return(0,i.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),h=c("borderRight",l),p=c("borderBottom",l),f=c("borderLeft",l),g=c("borderColor"),m=c("borderTopColor"),y=c("borderRightColor"),v=c("borderBottomColor"),b=c("borderLeftColor"),w=c("outline",l),x=c("outlineColor"),A=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r._W)(t,e)});return(0,s.NI)(e,e.borderRadius,n)}return null};A.propTypes={},A.filterProps=["borderRadius"];a(u,d,h,p,f,g,m,y,v,b,A,w,x);const S=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.MA)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r._W)(t,e)});return(0,s.NI)(e,e.gap,n)}return null};S.propTypes={},S.filterProps=["gap"];const C=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.MA)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.columnGap,n)}return null};C.propTypes={},C.filterProps=["columnGap"];const E=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.MA)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.rowGap,n)}return null};E.propTypes={},E.filterProps=["rowGap"];a(S,C,E,(0,i.Ay)({prop:"gridColumn"}),(0,i.Ay)({prop:"gridRow"}),(0,i.Ay)({prop:"gridAutoFlow"}),(0,i.Ay)({prop:"gridAutoColumns"}),(0,i.Ay)({prop:"gridAutoRows"}),(0,i.Ay)({prop:"gridTemplateColumns"}),(0,i.Ay)({prop:"gridTemplateRows"}),(0,i.Ay)({prop:"gridTemplateAreas"}),(0,i.Ay)({prop:"gridArea"}));function _(e,t){return"grey"===t?t:e}a((0,i.Ay)({prop:"color",themeKey:"palette",transform:_}),(0,i.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_}),(0,i.Ay)({prop:"backgroundColor",themeKey:"palette",transform:_}));function k(e){return e<=1&&0!==e?100*e+"%":e}const T=(0,i.Ay)({prop:"width",transform:k}),O=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s.zu[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:k(t)}};return(0,s.NI)(e,e.maxWidth,t)}return null};O.filterProps=["maxWidth"];const P=(0,i.Ay)({prop:"minWidth",transform:k}),I=(0,i.Ay)({prop:"height",transform:k}),M=(0,i.Ay)({prop:"maxHeight",transform:k}),L=(0,i.Ay)({prop:"minHeight",transform:k}),R=((0,i.Ay)({prop:"size",cssProperty:"width",transform:k}),(0,i.Ay)({prop:"size",cssProperty:"height",transform:k}),a(T,O,P,I,M,L,(0,i.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:A},color:{themeKey:"palette",transform:_},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_},backgroundColor:{themeKey:"palette",transform:_},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms},paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:S},rowGap:{style:E},columnGap:{style:C},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:k},maxWidth:{style:O},minWidth:{transform:k},height:{transform:k},maxHeight:{transform:k},minHeight:{transform:k},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},25779:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(51559),i=n(73342),o=n(43271),a=n(6856);const s=["sx"],l=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:a.A;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function c(e){const{sx:t}=e,n=(0,i.A)(e,s),{systemProps:a,otherProps:c}=l(n);let u;return u=Array.isArray(t)?[a,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return(0,o.Q)(n)?(0,r.A)({},a,n):a}:(0,r.A)({},a,t),(0,r.A)({},c,{sx:u})}},4725:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,extendSxProp:()=>i.A,unstable_createStyleFunctionSx:()=>r.k,unstable_defaultSxConfig:()=>o.A});var r=n(22311),i=n(25779),o=n(6856)},22311:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,k:()=>l});var r=n(2681),i=n(62648),o=n(44197),a=n(63496),s=n(6856);function l(){function e(e,t,n,i){const s={[e]:t,theme:n},l=i[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:h}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const p=(0,o.Yn)(n,u)||{};if(h)return h(s);return(0,a.NI)(s,t,(t=>{let n=(0,o.BO)(p,d,t);return t===n&&"string"==typeof t&&(n=(0,o.BO)(p,d,`${e}${"default"===t?"":(0,r.A)(t)}`,t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:o,theme:l={}}=n||{};if(!o)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.A;function u(n){let r=n;if("function"==typeof n)r=n(l);else if("object"!=typeof n)return n;if(!r)return null;const o=(0,a.EU)(l.breakpoints),s=Object.keys(o);let u=o;return Object.keys(r).forEach((n=>{const o=(s=r[n],d=l,"function"==typeof s?s(d):s);var s,d;if(null!=o)if("object"==typeof o)if(c[n])u=(0,i.A)(u,e(n,o,l,c));else{const e=(0,a.NI)({theme:l},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?u=(0,i.A)(u,e):u[n]=t({sx:o,theme:l})}else u=(0,i.A)(u,e(n,o,l,c))})),(0,a.vf)(s,u)}return Array.isArray(o)?o.map(u):u(o)}}const c=l();c.filterProps=["sx"];const u=c},6467:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>d});var i=n(30538),o=n(43107),a=n(17112),s=n(80187);function l(e,t,n,r,a){const[s,l]=i.useState((()=>a&&n?n(e).matches:r?r(e).matches:t));return(0,o.A)((()=>{let t=!0;if(!n)return;const r=n(e),i=()=>{t&&l(r.matches)};return i(),r.addListener(i),()=>{t=!1,r.removeListener(i)}}),[e,n]),s}const c=(r||(r=n.t(i,2))).useSyncExternalStore;function u(e,t,n,r,o){const a=i.useCallback((()=>t),[t]),s=i.useMemo((()=>{if(o&&n)return()=>n(e).matches;if(null!==r){const{matches:t}=r(e);return()=>t}return a}),[a,e,r,o,n]),[l,u]=i.useMemo((()=>{if(null===n)return[a,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[a,n,e]);return c(u,l,s)}function d(e,t={}){const n=(0,s.A)(),r="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:i=!1,matchMedia:o=(r?window.matchMedia:null),ssrMatchMedia:d=null,noSsr:h=!1}=(0,a.A)({name:"MuiUseMediaQuery",props:t,theme:n});let p="function"==typeof e?e(n):e;p=p.replace(/^@media( ?)/m,"");return(void 0!==c?u:l)(p,i,o,d,h)}},38382:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(84657),i=n(80187);const o=(0,r.A)();const a=function(e=o){return(0,i.A)(e)}},17112:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7757);function i(e){const{theme:t,name:n,props:i}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.A)(t.components[n].defaultProps,i):i}},92775:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(17112),i=n(38382);function o({props:e,name:t,defaultTheme:n,themeId:o}){let a=(0,i.A)(n);o&&(a=a[o]||a);return(0,r.A)({theme:a,name:t,props:e})}},80187:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(30538),i=n(18321);const o=function(e=null){const t=r.useContext(i.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},98767:(e,t,n)=>{"use strict";t.A=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(30538)),i=n(77753);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}t.A=function(e=null){const t=r.useContext(i.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},58337:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r=e=>e,i=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},2681:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(88207);function i(e){if("string"!=typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},8295:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(2681)},75031:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}},76772:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(75031)},32829:(e,t,n)=>{"use strict";function r(e,t,n=void 0){const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{A:()=>r})},96339:(e,t,n)=>{"use strict";function r(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}n.d(t,{A:()=>r})},6995:(e,t,n)=>{"use strict";function r(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}n.d(t,{A:()=>r})},43271:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,Q:()=>i});var r=n(51559);function i(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function o(e){if(!i(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=o(e[n])})),t}function a(e,t,n={clone:!0}){const s=n.clone?(0,r.A)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(i(t[r])&&r in e&&i(e[r])?s[r]=a(e[r],t[r],n):n.clone?s[r]=i(t[r])?o(t[r]):t[r]:s[r]=t[r])})),s}},82629:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,isPlainObject:()=>r.Q});var r=n(43271)},88207:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;er})},25286:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(88207)},24115:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o,li:()=>i});var r=n(58337);const i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function o(e,t,n="Mui"){const o=i[t];return o?`${n}-${o}`:`${r.A.generate(e)}-${t}`}},5007:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(24115);function i(e,t,n="Mui"){const i={};return t.forEach((t=>{i[t]=(0,r.Ay)(e,t,n)})),i}},63526:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,getFunctionName:()=>o});var r=n(91272);const i=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function o(e){const t=`${e}`.match(i);return t&&t[1]||""}function a(e,t=""){return e.displayName||e.name||o(e)||t}function s(e,t,n){const r=a(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function l(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return a(e,"Component");if("object"==typeof e)switch(e.$$typeof){case r.ForwardRef:return s(e,e.render,"ForwardRef");case r.Memo:return s(e,e.type,"memo");default:return}}}},74311:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},56023:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(74311);function i(e){return(0,r.A)(e).defaultView||window}},7757:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(51559);function i(e,t){const n=(0,r.A)({},t);return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))n[o]=(0,r.A)({},e[o],n[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const a=e[o]||{},s=t[o];n[o]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[o]=(0,r.A)({},s),Object.keys(a).forEach((e=>{n[o][e]=i(a[e],s[e])}))):n[o]=s:n[o]=a}else void 0===n[o]&&(n[o]=e[o])})),n}},54175:(e,t,n)=>{"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},63095:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(30538);function i({controlled:e,default:t,name:n,state:i="value"}){const{current:o}=r.useRef(void 0!==e),[a,s]=r.useState(t);return[o?e:a,r.useCallback((e=>{o||s(e)}),[])]}},43107:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(30538);const i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},18605:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(30538),i=n(43107);const o=function(e){const t=r.useRef(e);return(0,i.A)((()=>{t.current=e})),r.useRef(((...e)=>(0,t.current)(...e))).current}},18029:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(30538),i=n(54175);function o(...e){return r.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{(0,i.A)(e,t)}))}),e)}},5391:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>s});var i=n(30538);let o=0;const a=(r||(r=n.t(i,2)))["useId".toString()];function s(e){if(void 0!==a){const t=a();return null!=e?e:t}return function(e){const[t,n]=i.useState(e),r=e||t;return i.useEffect((()=>{null==t&&(o+=1,n(`mui-${o}`))}),[t]),r}(e)}},73499:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(30538),i=n(8734);let o=!0,a=!1;const s=new i.E,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function u(){o=!1}function d(){"hidden"===this.visibilityState&&a&&(o=!0)}function h(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return o||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function p(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!h(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,s.start(100,(()=>{a=!1})),t.current=!1,!0)},ref:e}}},8734:(e,t,n)=>{"use strict";n.d(t,{E:()=>a,A:()=>s});var r=n(30538);const i={};const o=[];class a{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new a}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function s(){const e=function(e,t){const n=r.useRef(i);return n.current===i&&(n.current=e(t)),n}(a.create).current;var t;return t=e.disposeEffect,r.useEffect(t,o),e}},38540:(e,t,n)=>{"use strict";n.d(t,{$:()=>u,F:()=>c});var r=n(51559),i=n(73342),o=n(30538),a=n(87507),s=n(97282);const l=["localeText"],c=o.createContext(null);const u=function(e){var t;const{localeText:n}=e,u=(0,i.A)(e,l),{utils:d,localeText:h}=null!=(t=o.useContext(c))?t:{utils:void 0,localeText:void 0},p=(0,a.A)({props:u,name:"MuiLocalizationProvider"}),{children:f,dateAdapter:g,dateFormats:m,dateLibInstance:y,adapterLocale:v,localeText:b}=p,w=o.useMemo((()=>(0,r.A)({},b,h,n)),[b,h,n]),x=o.useMemo((()=>{if(!g)return d||null;const e=new g({locale:v,formats:m,instance:y});if(!e.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join("\n"));return e}),[g,v,m,y,d]),A=o.useMemo((()=>x?{minDate:x.date("1900-01-01T00:00:00.000"),maxDate:x.date("2099-12-31T00:00:00.000")}:null),[x]),S=o.useMemo((()=>({utils:x,defaultDates:A,localeText:w})),[A,x,w]);return(0,s.jsx)(c.Provider,{value:S,children:f})}},54370:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});const r=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join("\n"):e;return()=>{n||(n=!0,"error"===t?console.error(r):console.warn(r))}}},59790:function(e,t,n){!function(e,t,n,r,i,o){"use strict";var a="comparison",s=["PropertyIsEqualTo","PropertyIsNotEqualTo","PropertyIsLessThan","PropertyIsLessThanOrEqualTo","PropertyIsGreaterThan","PropertyIsGreaterThanOrEqualTo"],l=s.concat(["PropertyIsLike","PropertyIsNull","PropertyIsBetween"]);function c(e,t){var n=e.getElementsByTagNameNS(e.namespaceURI,t).item(0);if(!n)return null;if(n.parentNode!==e)throw new Error("Expected direct descant");return n?n.textContent.trim():null}function u(e){return l.includes(e.localName)}function d(e){return["or","and"].includes(e.localName.toLowerCase())}function h(e){if(s.includes(e.localName))return p(e);if("PropertyIsBetween"===e.localName)return m(e);if("PropertyIsNull"===e.localName)return g(e);if("PropertyIsLike"===e.localName)return f(e);throw new Error("Unknown comparison element "+e.localName)}function p(e){var t=c(e,"PropertyName"),n=c(e,"Literal");return{type:a,operator:e.localName.toLowerCase(),propertyname:t,literal:n,matchcase:"false"!==e.getAttribute("matchCase")}}function f(e){var t=c(e,"PropertyName"),n=c(e,"Literal");return{type:a,operator:e.localName.toLowerCase(),propertyname:t,literal:n,wildcard:e.getAttribute("wildCard"),singlechar:e.getAttribute("singleChar"),escapechar:e.getAttribute("escapeChar"),matchcase:"false"!==e.getAttribute("matchCase")}}function g(e){var t=c(e,"PropertyName");return{type:a,operator:e.localName.toLowerCase(),propertyname:t}}function m(e){var t=c(e,"PropertyName"),n=c(e,"LowerBoundary"),r=c(e,"UpperBoundary");return{type:a,operator:e.localName.toLowerCase(),lowerboundary:n,upperboundary:r,propertyname:t,matchcase:"false"!==e.getAttribute("matchCase")}}function y(e){for(var t=[],n=e.firstElementChild;n;n=n.nextElementSibling)u(n)&&t.push(h(n));return{type:e.localName.toLowerCase(),predicates:t}}function v(e){var t=null,n=e.firstElementChild;return n&&u(n)&&(t=h(n)),n&&d(n)&&(t=y(n)),{type:e.localName.toLowerCase(),predicate:t}}function b(e){for(var t={},n=e.firstElementChild;n;n=n.nextElementSibling)u(n)&&(t=h(n)),d(n)&&(t=y(n)),"not"===n.localName.toLowerCase()&&(t=v(n)),"featureid"===n.localName.toLowerCase()&&(t.type="featureid",t.fids=t.fids||[],t.fids.push(n.getAttribute("fid")));return t}var w=new Set(["strokeWidth","strokeOpacity","strokeDashoffset","fillOpacity","fontSize"]);function x(e,t,n){var r=n.toLowerCase();t[r]=t[r]||[];var i={};L(e,i),t[r].push(i)}function A(e,t,n){var r=n.toLowerCase();t[r]={},L(e,t[r])}function S(e,t,n,r){void 0===r&&(r=!1);var i=n.toLowerCase();t[i]=r?e.textContent.trim():e.textContent}function C(e,t,n){var r=n.toLowerCase(),i=parseFloat(e.textContent.trim());t[r]=i}function E(e,t){if(!Array.isArray(e))return e;var n=e.map((function(e){return"literal"===e.type?e.value:e})).filter((function(e){return""!==e}));return n.every((function(e){return"object"!=typeof e||null===e}))?n.join(""):1===n.length?n[0]:{type:"expression",typeHint:t,children:n}}function _(e,t,n,r){void 0===r&&(r={});for(var i={skipEmptyNodes:!0,forceLowerCase:!0,typeHint:"string"},o=Object.assign({},i,r),a=[],s=0;s0}function B(e,t){if(j(t))return!1;var n=e.lowerboundary;if(j(n))return!1;var r=e.upperboundary;return!j(r)&&N(n,t)<=0&&N(r,t)>=0}function $(e,t){return!j(t)&&!j(e.literal)&&(e.matchcase?t==e.literal:0===N(e.literal,t,!1))}function G(e,t){return!j(t)&&!$(e,t)}function U(e,t){var n=e.literal;if(j(t))return!1;var r=e.wildcard,i=e.singlechar,o=e.escapechar,a=e.matchcase,s=n.replace(new RegExp("["+r+"]","g"),".*");return s=s.replace(new RegExp("["+i+"]","g"),"."),"\\"!==o&&(s=s.replace(new RegExp("["+o+"]","g"),"\\")),s="^"+s+"$",(!1===a?new RegExp(s,"i"):new RegExp(s)).test(t)}function W(e,t,n){var r=n(t,e.propertyname);switch(e.operator){case"propertyislessthan":return z(e,r);case"propertyisequalto":return $(e,r);case"propertyislessthanorequalto":return $(e,r)||z(e,r);case"propertyisnotequalto":return G(e,r);case"propertyisgreaterthan":return V(e,r);case"propertyisgreaterthanorequalto":return $(e,r)||V(e,r);case"propertyisbetween":return B(e,r);case"propertyisnull":return j(r);case"propertyislike":return U(e,r);default:throw new Error("Unkown comparison operator "+e.operator)}}function q(e,t){for(var n=0;ne.minscaledenominator:void 0!==e.maxscaledenominator?t/28e-5e.minscaledenominator}function Z(e){return e.layers.map((function(e){return e.name}))}function J(e,t){return t?e.layers.find((function(e){return e.name===t})):e.layers[0]}function Q(e){return e.styles.map((function(e){return e.name}))}function ee(e,t){if(t)return e.styles.find((function(e){return e.name===t}));var n=e.styles.find((function(e){return e.default}));return n||e.styles[0]}function te(e,t,n,r){void 0===r&&(r={});for(var i=[],o=0,a=0;a-1&&(e.stroke.graphicstroke.__invalidated=!0))}}function Ce(e,t){if(e)if(Array.isArray(e))for(var n=0;n=2&&0!==a[0]&&(o=a[1]/a[0]+1)}return o*t}function Ve(e){return e.stroke.graphicstroke.initialgap||0}function Be(e,n,r,i,o){void 0===o&&(o=0);var a,s=n/2,l=Math.PI*o/180;switch(i&&i.getColor()&&(a=i.getColor()),e){case"circle":return new t.Circle({fill:i,radius:s,stroke:r});case"triangle":return new t.RegularShape({fill:i,points:3,radius:s,stroke:r,rotation:l});case"star":return new t.RegularShape({fill:i,points:5,radius1:s,radius2:s/2.5,stroke:r,rotation:l});case"cross":return new t.RegularShape({fill:i,points:4,radius1:s,radius2:0,stroke:r||new t.Stroke({color:a,width:s/2}),rotation:l});case"hexagon":return new t.RegularShape({fill:i,points:6,radius:s,stroke:r||new t.Stroke({color:a,width:s/2}),rotation:l});case"octagon":return new t.RegularShape({angle:Math.PI/8,fill:i,points:8,radius:s/Math.cos(Math.PI/8),stroke:r||new t.Stroke({color:a,width:s/2}),rotation:l});case"cross2":case"x":return new t.RegularShape({angle:Math.PI/4,fill:i,points:4,radius1:Math.sqrt(2)*s,radius2:0,stroke:r||new t.Stroke({color:a,width:s/2}),rotation:l});case"diamond":return new t.RegularShape({fill:i,points:4,radius1:s,stroke:r,rotation:l});case"horline":return new t.RegularShape({fill:i,points:2,radius:s,angle:Math.PI/2,stroke:r,rotation:l});case"line":return new t.RegularShape({fill:i,points:2,radius:s,angle:0,stroke:r,rotation:l});case"backslash":return new t.RegularShape({fill:i,points:2,radius:s*Math.sqrt(2),angle:-Math.PI/4,stroke:r,rotation:l});case"slash":return new t.RegularShape({fill:i,points:2,radius:s*Math.sqrt(2),angle:Math.PI/4,stroke:r,rotation:l});default:return new t.RegularShape({angle:Math.PI/4,fill:i,points:4,radius1:s*Math.sqrt(2),stroke:r,rotation:l})}}function $e(e){switch((e||{}).type){case"expression":case"propertyname":case"function":return!0;default:return!1}}function Ge(e,t,n,r){void 0===r&&(r=null);var i=null,o=typeof e;if("string"===o||"number"===o||"undefined"===o||null===e)i=e;else if("literal"===e.type)i=e.value;else if("propertyname"===e.type)i=t?n(t,e.value):r;else if("expression"===e.type)if(1===e.children.length)i=Ge(e.children[0],t,n,r);else{for(var a=[],s=0;s1&&(o.stroke.styling.strokeWidth=t*a)}return n}function Et(e){var i=e.fill.graphicfill,a=i.graphic,s=a.mark,l=(s||{}).wellknownname;if(l&&0===l.indexOf("brush://")){var c="#000000";return s.fill&&s.fill.styling&&s.fill.styling.fill&&(c=s.fill.styling.fill),xt(l,c)}var u=Number(a.size)||le,d=u*o.DEVICE_PIXEL_RATIO,h=null,p=2;try{var f=document.createElement("canvas");f.width=d*p,f.height=d*p;var g=f.getContext("2d"),m=Qe(Ct(i,p)),y=n.toContext(g,{size:[u*p,u*p]});g.imageSmoothingEnabled=!1,y.setStyle(m);var v=p*(u/2),b=p*(u/2);y.drawGeometry(new r.Point([v,b])),l&&l.indexOf("slash")>-1&&(y.drawGeometry(new r.Point([v-p*u,b])),y.drawGeometry(new r.Point([v+p*u,b])),y.drawGeometry(new r.Point([v,b-p*u])),y.drawGeometry(new r.Point([v,b+p*u])));var w=document.createElement("canvas");w.width=d,w.height=d;var x=w.getContext("2d");x.drawImage(f,0,0,d*p,d*p,0,0,d,d);var A=x.createPattern(w,"repeat");h=new t.Fill({color:A})}catch(e){h=new t.Fill({color:"#000000"})}return h}function _t(e){var i=e.fill&&e.fill.graphicfill&&e.fill.graphicfill.graphic&&e.fill.graphicfill.graphic.externalgraphic&&e.fill.graphicfill.graphic.externalgraphic.onlineresource,o=e.fill&&e.fill.graphicfill&&e.fill.graphicfill.graphic&&e.fill.graphicfill.graphic.mark,a=null;if(a=i?St(e):o?Et(e):We(e.fill),e.stroke&&e.stroke.graphicstroke){var s=st(e);return new t.Style({renderer:function(e,t){if(a){var i=t.feature,o=t.context,l=n.toContext(o);l.setFillStrokeStyle(a,void 0);var c=i.getGeometry().getType();"Polygon"===c?l.drawPolygon(new r.Polygon(e)):"MultiPolygon"===c&&l.drawMultiPolygon(new r.MultiPolygon(e))}s(e,t)}})}var l=Ue(e.stroke);return new t.Style({fill:a,stroke:l})}var kt=Fe(_t);function Tt(e,t,n){var r=kt(e);return qe(r,e,t,n),He(r,e,t,n),r}function Ot(e){if(!e||!e.label)return Pe;var n=Ge(e.label,null,null,""),r=e.font&&e.font.styling||{},i=Ge(r.fontFamily,null,null,"sans-serif"),o=Ge(r.fontSize,null,null,10),a=Ge(r.fontStyle,null,null,"")+" "+Ge(r.fontWeight,null,null,"")+" "+o+"px "+i,s=e&&e.labelplacement&&e.labelplacement.pointplacement?e.labelplacement.pointplacement:{},l=Ge(s.rotation,null,null,0),c=s&&s.displacement?s.displacement:{},u=Ge(c.displacementx,null,null,0),d=Ge(c.displacementy,null,null,0),h=s&&s.anchorpoint||{},p="center",f=Ge(h.anchorpointx,null,null,NaN);f<.25?p="left":f>.75&&(p="right");var g="middle",m=Ge(h.anchorpointy,null,null,NaN);m<.25?g="bottom":m>.75&&(g="top");var y=e.fill?e.fill.styling:{},v=Ge(y.fill,null,null,"#000000"),b=Ge(y.fillOpacity,null,null,1),w={text:n,font:a,offsetX:u,offsetY:d,rotation:Math.PI*l/180,textAlign:p,textBaseline:g,fill:new t.Fill({color:Ne(v,b)})};if(e.halo){var x=e.halo&&e.halo.fill?e.halo.fill.styling:{},A=Ge(x.fill,null,null,"#FFFFFF"),S=Ge(x.fillOpacity,null,null,1),C=Ge(e.halo.radius,null,null,1);w.stroke=new t.Stroke({color:Ne(A,S),width:2*(2===C||4===C?C-1e-5:C)})}return new t.Style({text:new t.Text(w)})}var Pt=Fe(Ot);function It(e,t,n){var r=Pt(e),i=r.getText();if(!i)return r;var o=e.label,a=e.labelplacement;if($e(o)){var s=Ge(o,t,n,"");i.setText(s.toString())}if(a){var l=a.pointplacement&&a.pointplacement.rotation||0;if($e(l)){var c=Ge(l,t,n,0);i.setRotation(Math.PI*c/180)}}var u=t.getGeometry?t.getGeometry():t.geometry,d=u.getType?u.getType():u.type,h=e&&e.labelplacement&&e.labelplacement.lineplacement?e.labelplacement.lineplacement:null,p="point"!==d&&h?"line":"point";if(i.setPlacement(p),Ye(r,e,t,n),e.font&&e.font.styling){var f=e.font.styling||{};if($e(f.fontFamily)||$e(f.fontStyle)||$e(f.fontWeight)||$e(f.fontSize)){var g=Ge(f.fontFamily,t,n,"sans-serif"),m=Ge(f.fontStyle,t,n,"")+" "+Ge(f.fontWeight,t,n,"")+" "+Ge(f.fontSize,t,n,10)+"px "+g;i.setFont(m)}}return r}function Mt(e){var t=rt(e,e.getLength()/2)[1];return[t[0],t[1]]}function Lt(e,t){if("function"!=typeof t.getGeometry)return null;var n=t.getGeometry();if(!n)return null;var i=null,o=n.getType();if("LineString"===o)(i=Qe(e,t)).setGeometry(new r.Point(Mt(n)));else if("MultiLineString"===o){var a=n.getLineStrings().map(Mt);(i=Qe(e,t)).setGeometry(new r.MultiPoint(a))}return i}function Rt(e){var t=e.getInteriorPoint().getCoordinates();return[t[0],t[1]]}function jt(e,t){if("function"!=typeof t.getGeometry)return null;var n=t.getGeometry();if(!n)return null;var i=null,o=n.getType();if("Polygon"===o)(i=Qe(e,t)).setGeometry(new r.Point(Rt(n)));else if("MultiPolygon"===o){var a=n.getPolygons().map(Rt);(i=Qe(e,t)).setGeometry(new r.MultiPoint(a))}return i}var Ft=[Ie];function Dt(e,t,n,r,i){(t||[]).forEach((function(t){var o=r(t,n,i);o&&e.push(o)}))}function Nt(e,t,n,r){void 0===r&&(r={});var i=e.polygonSymbolizers,o=e.lineSymbolizers,a=e.pointSymbolizers,s=e.textSymbolizers,l={strictGeometryMatch:!1,useFallbackStyles:!0},c=Object.assign({},l,r),u=t.getGeometry?t.getGeometry():t.geometry,d=[];switch(u.getType?u.getType():u.type){case"Point":case"MultiPoint":Dt(d,a,t,Qe,n),Dt(d,s,t,It,n);break;case"LineString":case"MultiLineString":Dt(d,o,t,dt,n),c.strictGeometryMatch||Dt(d,a,t,Lt,n),Dt(d,s,t,It,n);break;case"Polygon":case"MultiPolygon":Dt(d,i,t,Tt,n),c.strictGeometryMatch||Dt(d,o,t,dt,n),Dt(d,a,t,jt,n),Dt(d,s,t,It,n);break;default:c.useFallbackStyles&&(d=Ft)}return d.forEach((function(e,t){return e.setZIndex(t)})),d}function zt(e){return e.getId()}function Vt(e,t){return e.get(t)}function Bt(e,t){void 0===t&&(t={});var n=t.imageLoadedCallback||function(){},r={};return function(i,o){var a="function"==typeof t.convertResolution?t.convertResolution(o):o,s="function"==typeof t.getProperty?t.getProperty:Vt,l=te(e,i,a,{getProperty:s,getFeatureId:zt});return Te(l,e,n,r),Nt(ie(l),i,s)}}function $t(e,t){return Nt(ie([e]),{geometry:{type:t}},(function(){return null}),{strictGeometryMatch:!0,useFallbackStyles:!1}).filter((function(e){return null!==e}))}e.OlStyler=Nt,e.Reader=R,e.categorizeSymbolizers=ie,e.createOlStyle=$t,e.createOlStyleFunction=Bt,e.getByPath=re,e.getLayer=J,e.getLayerNames=Z,e.getRuleSymbolizers=ne,e.getRules=te,e.getStyle=ee,e.getStyleNames=Q}(t,n(6473),n(11574),n(78278),n(41218),n(27144))},58839:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=n(86557),i=n(82797),o=n(83246),a=n(10962),s=["/properties"],l="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),i.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,s):a;this.addMetaSchema(e,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=n(13809);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=n(28468);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var h=n(22917);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var p=n(21698);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})},61823:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class n{}t._CodeOrName=n,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends n{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class i extends n{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const n=[e[0]];let r=0;for(;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const r=n(61823),i=n(95284);var o=n(61823);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var a=n(95284);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),t.operators={GT:new r._Code(">"),GTE:new r._Code(">="),LT:new r._Code("<"),LTE:new r._Code("<="),EQ:new r._Code("==="),NEQ:new r._Code("!=="),NOT:new r._Code("!"),OR:new r._Code("||"),AND:new r._Code("&&"),ADD:new r._Code("+")};class s{optimizeNodes(){return this}optimizeNames(e,t){return this}}class l extends s{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const n=e?i.varKinds.var:this.varKind,r=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=I(this.rhs,e,t)),this}get names(){return this.rhs instanceof r._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof r.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=I(this.rhs,e,t),this}get names(){return P(this.lhs instanceof r.Name?{}:{...this.lhs.names},this.rhs)}}class u extends c{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class d extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class h extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class p extends s{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends s{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=I(this.code,e,t),this}get names(){return this.code instanceof r._CodeOrName?this.code.names:{}}}class g extends s{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,n)=>t+n.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const i=n[r];i.optimizeNames(e,t)||(M(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>O(e,t.names)),{})}}class m extends g{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class y extends g{}class v extends m{}v.kind="else";class b extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof b?t:t.nodes:this.nodes.length?this:new b(L(e),t instanceof b?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=I(this.condition,e,t),this}get names(){const e=super.names;return P(e,this.condition),this.else&&O(e,this.else.names),e}}b.kind="if";class w extends m{}w.kind="for";class x extends w{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=I(this.iteration,e,t),this}get names(){return O(super.names,this.iteration.names)}}class A extends w{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?i.varKinds.var:this.varKind,{name:n,from:r,to:o}=this;return`for(${t} ${n}=${r}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){const e=P(super.names,this.from);return P(e,this.to)}}class S extends w{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=I(this.iterable,e,t),this}get names(){return O(super.names,this.iterable.names)}}class C extends m{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}C.kind="func";class E extends g{render(e){return"return "+super.render(e)}}E.kind="return";class _ extends m{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&O(e,this.catch.names),this.finally&&O(e,this.finally.names),e}}class k extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}k.kind="catch";class T extends m{render(e){return"finally"+super.render(e)}}T.kind="finally";function O(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function P(e,t){return t instanceof r._CodeOrName?O(e,t.names):e}function I(e,t,n){return e instanceof r.Name?o(e):(i=e)instanceof r._Code&&i._items.some((e=>e instanceof r.Name&&1===t[e.str]&&void 0!==n[e.str]))?new r._Code(e._items.reduce(((e,t)=>(t instanceof r.Name&&(t=o(t)),t instanceof r._Code?e.push(...t._items):e.push(t),e)),[])):e;var i;function o(e){const r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function M(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function L(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:r._`!${D(e)}`}t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new i.Scope({parent:e}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){const i=this._scope.toName(t);return void 0!==n&&r&&(this._constants[i.str]=n),this._leafNode(new l(e,i,n)),i}const(e,t,n){return this._def(i.varKinds.const,e,t,n)}let(e,t,n){return this._def(i.varKinds.let,e,t,n)}var(e,t,n){return this._def(i.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new c(e,t,n))}add(e,n){return this._leafNode(new u(e,t.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==r.nil&&this._leafNode(new f(e)),this}object(...e){const t=["{"];for(const[n,i]of e)t.length>1&&t.push(","),t.push(n),(n!==i||this.opts.es5)&&(t.push(":"),(0,r.addCodeArg)(t,i));return t.push("}"),new r._Code(t)}if(e,t,n){if(this._blockNode(new b(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new b(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(b,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new x(e),t)}forRange(e,t,n,r,o=(this.opts.es5?i.varKinds.var:i.varKinds.let)){const a=this._scope.toName(e);return this._for(new A(o,a,t,n),(()=>r(a)))}forOf(e,t,n,o=i.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=t instanceof r.Name?t:this.var("_arr",t);return this.forRange("_i",0,r._`${e}.length`,(t=>{this.var(a,r._`${e}[${t}]`),n(a)}))}return this._for(new S("of",o,a,t),(()=>n(a)))}forIn(e,t,n,o=(this.opts.es5?i.varKinds.var:i.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,r._`Object.keys(${t})`,n);const a=this._scope.toName(e);return this._for(new S("in",o,a,t),(()=>n(a)))}endFor(){return this._endBlockNode(w)}label(e){return this._leafNode(new d(e))}break(e){return this._leafNode(new h(e))}return(e){const t=new E;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new _;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new k(e),t(e)}return n&&(this._currNode=r.finally=new T,this.code(n)),this._endBlockNode(k,T)}throw(e){return this._leafNode(new p(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=r.nil,n,i){return this._blockNode(new C(e,t,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(C)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=L;const R=F(t.operators.AND);t.and=function(...e){return e.reduce(R)};const j=F(t.operators.OR);function F(e){return(t,n)=>t===r.nil?n:n===r.nil?t:r._`${D(t)} ${e} ${D(n)}`}function D(e){return e instanceof r.Name?e:r._`(${e})`}t.or=function(...e){return e.reduce(j)}},95284:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const r=n(61823);class i extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o||(t.UsedValueState=o={})),t.varKinds={const:new r.Name("const"),let:new r.Name("let"),var:new r.Name("var")};class a{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof r.Name?e:this.name(e)}name(e){return new r.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=a;class s extends r.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:n}){this.value=e,this.scopePath=r._`.${new r.Name(t)}[${n}]`}}t.ValueScopeName=s;const l=r._`\n`;t.ValueScope=class extends a{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?l:r.nil}}get(){return this._scope}name(e){return new s(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const r=this.toName(e),{prefix:i}=r,o=null!==(n=t.key)&&void 0!==n?n:t.ref;let a=this._values[i];if(a){const e=a.get(o);if(e)return e}else a=this._values[i]=new Map;a.set(o,r);const s=this._scope[i]||(this._scope[i]=[]),l=s.length;return s[l]=t.ref,r.setValue(t,{property:i,itemIndex:l}),r}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return r._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,n){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,n)}_reduceValues(e,n,a={},s){let l=r.nil;for(const c in e){const u=e[c];if(!u)continue;const d=a[c]=a[c]||new Map;u.forEach((e=>{if(d.has(e))return;d.set(e,o.Started);let a=n(e);if(a){const n=this.opts.es5?t.varKinds.var:t.varKinds.const;l=r._`${l}${n} ${e} = ${a};${this.opts._n}`}else{if(!(a=null==s?void 0:s(e)))throw new i(e);l=r._`${l}${a}${this.opts._n}`}d.set(e,o.Completed)}))}return l}}},32507:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const r=n(28468),i=n(93880),o=n(42302);function a(e,t){const n=e.const("err",t);e.if(r._`${o.default.vErrors} === null`,(()=>e.assign(o.default.vErrors,r._`[${n}]`)),r._`${o.default.vErrors}.push(${n})`),e.code(r._`${o.default.errors}++`)}function s(e,t){const{gen:n,validateName:i,schemaEnv:o}=e;o.$async?n.throw(r._`new ${e.ValidationError}(${t})`):(n.assign(r._`${i}.errors`,t),n.return(!1))}t.keywordError={message:({keyword:e})=>r.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?r.str`"${e}" keyword must be ${t} ($data)`:r.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,n=t.keywordError,i,o){const{it:l}=e,{gen:u,compositeRule:d,allErrors:h}=l,p=c(e,n,i);(null!=o?o:d||h)?a(u,p):s(l,r._`[${p}]`)},t.reportExtraError=function(e,n=t.keywordError,r){const{it:i}=e,{gen:l,compositeRule:u,allErrors:d}=i;a(l,c(e,n,r)),u||d||s(i,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if(r._`${o.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(r._`${o.default.vErrors}.length`,t)),(()=>e.assign(o.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:n,data:i,errsCount:a,it:s}){if(void 0===a)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",a,o.default.errors,(a=>{e.const(l,r._`${o.default.vErrors}[${a}]`),e.if(r._`${l}.instancePath === undefined`,(()=>e.assign(r._`${l}.instancePath`,(0,r.strConcat)(o.default.instancePath,s.errorPath)))),e.assign(r._`${l}.schemaPath`,r.str`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign(r._`${l}.schema`,n),e.assign(r._`${l}.data`,i))}))};const l={keyword:new r.Name("keyword"),schemaPath:new r.Name("schemaPath"),params:new r.Name("params"),propertyName:new r.Name("propertyName"),message:new r.Name("message"),schema:new r.Name("schema"),parentSchema:new r.Name("parentSchema")};function c(e,t,n){const{createErrors:i}=e.it;return!1===i?r._`{}`:function(e,t,n={}){const{gen:i,it:a}=e,s=[u(a,n),d(e,n)];return function(e,{params:t,message:n},i){const{keyword:a,data:s,schemaValue:c,it:u}=e,{opts:d,propertyName:h,topSchemaRef:p,schemaPath:f}=u;i.push([l.keyword,a],[l.params,"function"==typeof t?t(e):t||r._`{}`]),d.messages&&i.push([l.message,"function"==typeof n?n(e):n]);d.verbose&&i.push([l.schema,c],[l.parentSchema,r._`${p}${f}`],[o.default.data,s]);h&&i.push([l.propertyName,h])}(e,t,s),i.object(...s)}(e,t,n)}function u({errorPath:e},{instancePath:t}){const n=t?r.str`${e}${(0,i.getErrorPath)(t,i.Type.Str)}`:e;return[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,n)]}function d({keyword:e,it:{errSchemaPath:t}},{schemaPath:n,parentSchema:o}){let a=o?t:r.str`${t}/${e}`;return n&&(a=r.str`${a}${(0,i.getErrorPath)(n,i.Type.Str)}`),[l.schemaPath,a]}},93638:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const r=n(28468),i=n(22917),o=n(42302),a=n(6450),s=n(93880),l=n(13809);class c{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,a.normalizeId)(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function u(e){const t=h.call(this,e);if(t)return t;const n=(0,a.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:s,lines:c}=this.opts.code,{ownProperties:u}=this.opts,d=new r.CodeGen(this.scope,{es5:s,lines:c,ownProperties:u});let p;e.$async&&(p=d.scopeValue("Error",{ref:i.default,code:r._`require("ajv/dist/runtime/validation_error").default`}));const f=d.scopeName("validate");e.validateName=f;const g={gen:d,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[r.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:d.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,r.stringify)(e.schema)}:{ref:e.schema}),validateName:f,ValidationError:p,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:r.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:r._`""`,opts:this.opts,self:this};let m;try{this._compilations.add(e),(0,l.validateFunctionCode)(g),d.optimize(this.opts.code.optimize);const t=d.toString();m=`${d.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(m=this.opts.code.process(m,e));const n=new Function(`${o.default.self}`,`${o.default.scope}`,m)(this,this.scope.get());if(this.scope.value(f,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:f,validateCode:t,scopeValues:d._values}),this.opts.unevaluated){const{props:e,items:t}=g;n.evaluated={props:e instanceof r.Name?void 0:e,items:t instanceof r.Name?void 0:t,dynamicProps:e instanceof r.Name,dynamicItems:t instanceof r.Name},n.source&&(n.source.evaluated=(0,r.stringify)(n.evaluated))}return e.validate=n,e}catch(t){throw delete e.validate,delete e.validateName,m&&this.logger.error("Error compiling schema, function code:",m),t}finally{this._compilations.delete(e)}}function d(e){return(0,a.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:u.call(this,e)}function h(e){for(const r of this._compilations)if(n=e,(t=r).schema===n.schema&&t.root===n.root&&t.baseId===n.baseId)return r;var t,n}function p(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||f.call(this,e,t)}function f(e,t){const n=this.opts.uriResolver.parse(t),r=(0,a._getFullPath)(this.opts.uriResolver,n);let i=(0,a.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===i)return m.call(this,n,e);const o=(0,a.normalizeId)(r),s=this.refs[o]||this.schemas[o];if("string"==typeof s){const t=f.call(this,e,s);if("object"!=typeof(null==t?void 0:t.schema))return;return m.call(this,n,t)}if("object"==typeof(null==s?void 0:s.schema)){if(s.validate||u.call(this,s),o===(0,a.normalizeId)(t)){const{schema:t}=s,{schemaId:n}=this.opts,r=t[n];return r&&(i=(0,a.resolveUrl)(this.opts.uriResolver,i,r)),new c({schema:t,schemaId:n,root:e,baseId:i})}return m.call(this,n,s)}}t.SchemaEnv=c,t.compileSchema=u,t.resolveRef=function(e,t,n){var r;n=(0,a.resolveUrl)(this.opts.uriResolver,t,n);const i=e.refs[n];if(i)return i;let o=p.call(this,e,n);if(void 0===o){const i=null===(r=e.localRefs)||void 0===r?void 0:r[n],{schemaId:a}=this.opts;i&&(o=new c({schema:i,schemaId:a,root:e,baseId:t}))}return void 0!==o?e.refs[n]=d.call(this,o):void 0},t.getCompilingSchema=h,t.resolveSchema=f;const g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function m(e,{baseId:t,schema:n,root:r}){var i;if("/"!==(null===(i=e.fragment)||void 0===i?void 0:i[0]))return;for(const r of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,s.unescapeFragment)(r)];if(void 0===e)return;const i="object"==typeof(n=e)&&n[this.opts.schemaId];!g.has(r)&&i&&(t=(0,a.resolveUrl)(this.opts.uriResolver,t,i))}let o;if("boolean"!=typeof n&&n.$ref&&!(0,s.schemaHasRulesButRef)(n,this.RULES)){const e=(0,a.resolveUrl)(this.opts.uriResolver,t,n.$ref);o=f.call(this,r,e)}const{schemaId:l}=this.opts;return o=o||new c({schema:n,schemaId:l,root:r,baseId:t}),o.schema!==o.root.schema?o:void 0}},42302:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i={data:new r.Name("data"),valCxt:new r.Name("valCxt"),instancePath:new r.Name("instancePath"),parentData:new r.Name("parentData"),parentDataProperty:new r.Name("parentDataProperty"),rootData:new r.Name("rootData"),dynamicAnchors:new r.Name("dynamicAnchors"),vErrors:new r.Name("vErrors"),errors:new r.Name("errors"),this:new r.Name("this"),self:new r.Name("self"),scope:new r.Name("scope"),json:new r.Name("json"),jsonPos:new r.Name("jsonPos"),jsonLen:new r.Name("jsonLen"),jsonPart:new r.Name("jsonPart")};t.default=i},21698:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(6450);class i extends Error{constructor(e,t,n,i){super(i||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,r.resolveUrl)(e,t,n),this.missingSchema=(0,r.normalizeId)((0,r.getFullPath)(e,this.missingRef))}}t.default=i},6450:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const r=n(93880),i=n(92792),o=n(23018),a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!l(e):!!t&&c(e)<=t)};const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function l(e){for(const t in e){if(s.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(l))return!0;if("object"==typeof n&&l(n))return!0}return!1}function c(e){let t=0;for(const n in e){if("$ref"===n)return 1/0;if(t++,!a.has(n)&&("object"==typeof e[n]&&(0,r.eachItem)(e[n],(e=>t+=c(e))),t===1/0))return 1/0}return t}function u(e,t="",n){!1!==n&&(t=p(t));const r=e.parse(t);return d(e,r)}function d(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=u,t._getFullPath=d;const h=/#\/?$/;function p(e){return e?e.replace(h,""):""}t.normalizeId=p,t.resolveUrl=function(e,t,n){return n=p(n),e.resolve(t,n)};const f=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:r}=this.opts,a=p(e[n]||t),s={"":a},l=u(r,a,!1),c={},d=new Set;return o(e,{allKeys:!0},((e,t,r,i)=>{if(void 0===i)return;const o=l+t;let a=s[i];function u(t){const n=this.opts.uriResolver.resolve;if(t=p(a?n(a,t):t),d.has(t))throw g(t);d.add(t);let r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?h(e,r.schema,t):t!==p(o)&&("#"===t[0]?(h(e,c[t],t),c[t]=e):this.refs[t]=o),t}function m(e){if("string"==typeof e){if(!f.test(e))throw new Error(`invalid anchor "${e}"`);u.call(this,`#${e}`)}}"string"==typeof e[n]&&(a=u.call(this,e[n])),m.call(this,e.$anchor),m.call(this,e.$dynamicAnchor),s[t]=a})),c;function h(e,t,n){if(void 0!==t&&!i(e,t))throw g(n)}function g(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},56417:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const n=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&n.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},93880:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const r=n(28468),i=n(61823);function o(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const i=r.RULES.keywords;for(const n in t)i[n]||f(e,`unknown keyword: "${n}"`)}function a(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function s(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function l(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function c({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:i}){return(o,a,s,l)=>{const c=void 0===s?a:s instanceof r.Name?(a instanceof r.Name?e(o,a,s):t(o,a,s),s):a instanceof r.Name?(t(o,s,a),a):n(a,s);return l!==r.Name||c instanceof r.Name?c:i(o,c)}}function u(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",r._`{}`);return void 0!==t&&d(e,n,t),n}function d(e,t,n){Object.keys(n).forEach((n=>e.assign(r._`${t}${(0,r.getProperty)(n)}`,!0)))}t.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!a(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRules=a,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},n,i,o){if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return r._`${n}`}return r._`${e}${t}${(0,r.getProperty)(i)}`},t.unescapeFragment=function(e){return l(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(s(e))},t.escapeJsonPointer=s,t.unescapeJsonPointer=l,t.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},t.mergeEvaluated={props:c({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>{e.if(r._`${t} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,r._`${n} || {}`).code(r._`Object.assign(${n}, ${t})`)))})),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>{!0===t?e.assign(n,!0):(e.assign(n,r._`${n} || {}`),d(e,n,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:u}),items:c({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>e.assign(n,r._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`))),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>e.assign(n,!0===t||r._`${n} > ${t} ? ${n} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=u,t.setEvaluated=d;const h={};var p;function f(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:h[t.code]||(h[t.code]=new i._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(p||(t.Type=p={})),t.getErrorPath=function(e,t,n){if(e instanceof r.Name){const i=t===p.Num;return n?i?r._`"[" + ${e} + "]"`:r._`"['" + ${e} + "']"`:i?r._`"/" + ${e}`:r._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,r.getProperty)(e).toString():"/"+s(e)},t.checkStrictMode=f},65012:(e,t)=>{"use strict";function n(e,t){return t.rules.some((t=>r(e,t)))}function r(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},r){const i=t.RULES.types[r];return i&&!0!==i&&n(e,i)},t.shouldUseGroup=n,t.shouldUseRule=r},82474:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const r=n(32507),i=n(28468),o=n(42302),a={message:"boolean schema is false"};function s(e,t){const{gen:n,data:i}=e,o={gen:n,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,r.reportError)(o,a,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:r}=e;!1===n?s(e,!1):"object"==typeof n&&!0===n.$async?t.return(o.default.data):(t.assign(i._`${r}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),s(e)):n.var(t,!0)}},42965:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const r=n(56417),i=n(65012),o=n(32507),a=n(28468),s=n(93880);var l;function c(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(r.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(l||(t.DataType=l={})),t.getSchemaTypes=function(e){const t=c(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=c,t.coerceAndCheckDataType=function(e,t){const{gen:n,data:r,opts:o}=e,s=function(e,t){return t?e.filter((e=>u.has(e)||"array"===t&&"array"===e)):[]}(t,o.coerceTypes),c=t.length>0&&!(0===s.length&&1===t.length&&(0,i.schemaHasRulesForType)(e,t[0]));if(c){const i=h(t,r,o.strictNumbers,l.Wrong);n.if(i,(()=>{s.length?function(e,t,n){const{gen:r,data:i,opts:o}=e,s=r.let("dataType",a._`typeof ${i}`),l=r.let("coerced",a._`undefined`);"array"===o.coerceTypes&&r.if(a._`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,(()=>r.assign(i,a._`${i}[0]`).assign(s,a._`typeof ${i}`).if(h(t,i,o.strictNumbers),(()=>r.assign(l,i)))));r.if(a._`${l} !== undefined`);for(const e of n)(u.has(e)||"array"===e&&"array"===o.coerceTypes)&&c(e);function c(e){switch(e){case"string":return void r.elseIf(a._`${s} == "number" || ${s} == "boolean"`).assign(l,a._`"" + ${i}`).elseIf(a._`${i} === null`).assign(l,a._`""`);case"number":return void r.elseIf(a._`${s} == "boolean" || ${i} === null
|| (${s} == "string" && ${i} && ${i} == +${i})`).assign(l,a._`+${i}`);case"integer":return void r.elseIf(a._`${s} === "boolean" || ${i} === null
|| (${s} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(l,a._`+${i}`);case"boolean":return void r.elseIf(a._`${i} === "false" || ${i} === 0 || ${i} === null`).assign(l,!1).elseIf(a._`${i} === "true" || ${i} === 1`).assign(l,!0);case"null":return r.elseIf(a._`${i} === "" || ${i} === 0 || ${i} === false`),void r.assign(l,null);case"array":r.elseIf(a._`${s} === "string" || ${s} === "number"
- || ${s} === "boolean" || ${i} === null`).assign(l,a._`[${i}]`)}}r.else(),f(e),r.endIf(),r.if(a._`${l} !== undefined`,(()=>{r.assign(i,l),function({gen:e,parentData:t,parentDataProperty:n},r){e.if(a._`${t} !== undefined`,(()=>e.assign(a._`${t}[${n}]`,r)))}(e,l)}))}(e,t,s):f(e)}))}return c};const u=new Set(["string","number","integer","boolean","null"]);function d(e,t,n,r=l.Correct){const i=r===l.Correct?a.operators.EQ:a.operators.NEQ;let o;switch(e){case"null":return a._`${t} ${i} null`;case"array":o=a._`Array.isArray(${t})`;break;case"object":o=a._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=s(a._`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=s();break;default:return a._`typeof ${t} ${i} ${e}`}return r===l.Correct?o:(0,a.not)(o);function s(e=a.nil){return(0,a.and)(a._`typeof ${t} == "number"`,e,n?a._`isFinite(${t})`:a.nil)}}function h(e,t,n,r){if(1===e.length)return d(e[0],t,n,r);let i;const o=(0,s.toHash)(e);if(o.array&&o.object){const e=a._`typeof ${t} != "object"`;i=o.null?e:a._`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else i=a.nil;o.number&&delete o.integer;for(const e in o)i=(0,a.and)(i,d(e,t,n,r));return i}t.checkDataType=d,t.checkDataTypes=h;const p={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?a._`{type: ${e}}`:a._`{type: ${t}}`};function f(e){const t=function(e){const{gen:t,data:n,schema:r}=e,i=(0,s.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}(e);(0,o.reportError)(t,p)}t.reportTypeError=f},85483:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const r=n(28468),i=n(93880);function o(e,t,n){const{gen:o,compositeRule:a,data:s,opts:l}=e;if(void 0===n)return;const c=r._`${s}${(0,r.getProperty)(t)}`;if(a)return void(0,i.checkStrictMode)(e,`default is ignored for: ${c}`);let u=r._`${c} === undefined`;"empty"===l.useDefaults&&(u=r._`${u} || ${c} === null || ${c} === ""`),o.if(u,r._`${c} = ${(0,r.stringify)(n)}`)}t.assignDefaults=function(e,t){const{properties:n,items:r}=e.schema;if("object"===t&&n)for(const t in n)o(e,t,n[t].default);else"array"===t&&Array.isArray(r)&&r.forEach(((t,n)=>o(e,n,t.default)))}},13809:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const r=n(82474),i=n(42965),o=n(65012),a=n(42965),s=n(85483),l=n(91754),c=n(35728),u=n(28468),d=n(42302),h=n(6450),p=n(93880),f=n(32507);function g({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},o){i.code.es5?e.func(t,u._`${d.default.data}, ${d.default.valCxt}`,r.$async,(()=>{e.code(u._`"use strict"; ${m(n,i)}`),function(e,t){e.if(d.default.valCxt,(()=>{e.var(d.default.instancePath,u._`${d.default.valCxt}.${d.default.instancePath}`),e.var(d.default.parentData,u._`${d.default.valCxt}.${d.default.parentData}`),e.var(d.default.parentDataProperty,u._`${d.default.valCxt}.${d.default.parentDataProperty}`),e.var(d.default.rootData,u._`${d.default.valCxt}.${d.default.rootData}`),t.dynamicRef&&e.var(d.default.dynamicAnchors,u._`${d.default.valCxt}.${d.default.dynamicAnchors}`)}),(()=>{e.var(d.default.instancePath,u._`""`),e.var(d.default.parentData,u._`undefined`),e.var(d.default.parentDataProperty,u._`undefined`),e.var(d.default.rootData,d.default.data),t.dynamicRef&&e.var(d.default.dynamicAnchors,u._`{}`)}))}(e,i),e.code(o)})):e.func(t,u._`${d.default.data}, ${function(e){return u._`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${e.dynamicRef?u._`, ${d.default.dynamicAnchors}={}`:u.nil}}={}`}(i)}`,r.$async,(()=>e.code(m(n,i)).code(o)))}function m(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?u._`/*# sourceURL=${n} */`:u.nil}function y(e,t){b(e)&&(x(e),v(e))?function(e,t){const{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&A(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,h.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=r.const("_errs",d.default.errors);w(e,o),r.var(t,u._`${o} === ${d.default.errors}`)}(e,t):(0,r.boolOrEmptySchema)(e,t)}function v({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function b(e){return"boolean"!=typeof e.schema}function x(e){(0,p.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function w(e,t){if(e.opts.jtd)return S(e,[],!1,t);const n=(0,i.getSchemaTypes)(e.schema);S(e,n,!(0,i.coerceAndCheckDataType)(e,n),t)}function A({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){const o=n.$comment;if(!0===i.$comment)e.code(u._`${d.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){const n=u.str`${r}/$comment`,i=e.scopeValue("root",{ref:t.root});e.code(u._`${d.default.self}.opts.$comment(${o}, ${n}, ${i}.schema)`)}}function S(e,t,n,r){const{gen:i,schema:s,data:l,allErrors:c,opts:h,self:f}=e,{RULES:g}=f;function m(p){(0,o.shouldUseGroup)(s,p)&&(p.type?(i.if((0,a.checkDataType)(p.type,l,h.strictNumbers)),C(e,p),1===t.length&&t[0]===p.type&&n&&(i.else(),(0,a.reportTypeError)(e)),i.endIf()):C(e,p),c||i.if(u._`${d.default.errors} === ${r||0}`))}!s.$ref||!h.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(s,g)?(h.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{_(e.dataTypes,t)||k(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const n=[];for(const r of e.dataTypes)_(t,r)?n.push(r):t.includes("integer")&&"number"===r&&n.push("integer");e.dataTypes=n}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&k(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const n=e.self.RULES.all;for(const r in n){const i=n[r];if("object"==typeof i&&(0,o.shouldUseRule)(e.schema,i)){const{type:n}=i.definition;n.length&&!n.some((e=>E(t,e)))&&k(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}(e,e.dataTypes)}(e,t),i.block((()=>{for(const e of g.rules)m(e);m(g.post)}))):i.block((()=>O(e,"$ref",g.all.$ref.definition)))}function C(e,t){const{gen:n,schema:r,opts:{useDefaults:i}}=e;i&&(0,s.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,o.shouldUseRule)(r,n)&&O(e,n.keyword,n.definition,t.type)}))}function E(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function _(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function k(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,p.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){b(e)&&(x(e),v(e))?function(e){const{schema:t,opts:n,gen:r}=e;g(e,(()=>{n.$comment&&t.$comment&&A(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,p.checkStrictMode)(e,"default is ignored in the schema root")}(e),r.let(d.default.vErrors,null),r.let(d.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",u._`${n}.evaluated`),t.if(u._`${e.evaluated}.dynamicProps`,(()=>t.assign(u._`${e.evaluated}.props`,u._`undefined`))),t.if(u._`${e.evaluated}.dynamicItems`,(()=>t.assign(u._`${e.evaluated}.items`,u._`undefined`)))}(e),w(e),function(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:o}=e;n.$async?t.if(u._`${d.default.errors} === 0`,(()=>t.return(d.default.data)),(()=>t.throw(u._`new ${i}(${d.default.vErrors})`))):(t.assign(u._`${r}.errors`,d.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:n,items:r}){n instanceof u.Name&&e.assign(u._`${t}.props`,n);r instanceof u.Name&&e.assign(u._`${t}.items`,r)}(e),t.return(u._`${d.default.errors} === 0`))}(e)}))}(e):g(e,(()=>(0,r.topBoolOrEmptySchema)(e)))};class T{constructor(e,t,n){if((0,l.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,p.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",M(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,l.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",d.default.errors))}result(e,t,n){this.failResult((0,u.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,u.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(u._`${t} !== undefined && (${(0,u.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?f.reportExtraError:f.reportError)(this,this.def.error,t)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=u.nil){this.gen.block((()=>{this.check$data(e,n),t()}))}check$data(e=u.nil,t=u.nil){if(!this.$data)return;const{gen:n,schemaCode:r,schemaType:i,def:o}=this;n.if((0,u.or)(u._`${r} === undefined`,t)),e!==u.nil&&n.assign(e,!0),(i.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==u.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:r,it:i}=this;return(0,u.or)(function(){if(n.length){if(!(t instanceof u.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return u._`${(0,a.checkDataTypes)(e,t,i.opts.strictNumbers,a.DataType.Wrong)}`}return u.nil}(),function(){if(r.validateSchema){const n=e.scopeValue("validate$data",{ref:r.validateSchema});return u._`!${n}(${t})`}return u.nil}())}subschema(e,t){const n=(0,c.getSubschema)(this.it,e);(0,c.extendSubschemaData)(n,this.it,e),(0,c.extendSubschemaMode)(n,e);const r={...this.it,...n,items:void 0,props:void 0};return y(r,t),r}mergeEvaluated(e,t){const{it:n,gen:r}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=p.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=p.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:r}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return r.if(t,(()=>this.mergeEvaluated(e,u.Name))),!0}}function O(e,t,n,r){const i=new T(e,n,t);"code"in n?n.code(i,r):i.$data&&n.validate?(0,l.funcKeywordCode)(i,n):"macro"in n?(0,l.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,l.funcKeywordCode)(i,n)}t.KeywordCxt=T;const P=/^\/(?:[^~]|~0|~1)*$/,I=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function M(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,o;if(""===e)return d.default.rootData;if("/"===e[0]){if(!P.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=d.default.rootData}else{const a=I.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+a[1];if(i=a[2],"#"===i){if(s>=t)throw new Error(l("property/index",s));return r[t-s]}if(s>t)throw new Error(l("data",s));if(o=n[t-s],!i)return o}let a=o;const s=i.split("/");for(const e of s)e&&(o=u._`${o}${(0,u.getProperty)((0,p.unescapeJsonPointer)(e))}`,a=u._`${a} && ${o}`);return a;function l(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}t.getData=M},91754:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const r=n(28468),i=n(42302),o=n(4828),a=n(32507);function s(e){const{gen:t,data:n,it:i}=e;t.if(i.parentData,(()=>t.assign(n,r._`${i.parentData}[${i.parentDataProperty}]`)))}function l(e,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,r.stringify)(n)})}t.macroKeywordCode=function(e,t){const{gen:n,keyword:i,schema:o,parentSchema:a,it:s}=e,c=t.macro.call(s.self,o,a,s),u=l(n,i,c);!1!==s.opts.validateSchema&&s.self.validateSchema(c,!0);const d=n.name("valid");e.subschema({schema:c,schemaPath:r.nil,errSchemaPath:`${s.errSchemaPath}/${i}`,topSchemaRef:u,compositeRule:!0},d),e.pass(d,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var n;const{gen:c,keyword:u,schema:d,parentSchema:h,$data:p,it:f}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(f,t);const g=!p&&t.compile?t.compile.call(f.self,d,h,f):t.validate,m=l(c,u,g),y=c.let("valid");function v(n=(t.async?r._`await `:r.nil)){const a=f.opts.passContext?i.default.this:i.default.self,s=!("compile"in t&&!p||!1===t.schema);c.assign(y,r._`${n}${(0,o.callValidateCode)(e,m,a,s)}`,t.modifying)}function b(e){var n;c.if((0,r.not)(null!==(n=t.valid)&&void 0!==n?n:y),e)}e.block$data(y,(function(){if(!1===t.errors)v(),t.modifying&&s(e),b((()=>e.error()));else{const n=t.async?function(){const e=c.let("ruleErrs",null);return c.try((()=>v(r._`await `)),(t=>c.assign(y,!1).if(r._`${t} instanceof ${f.ValidationError}`,(()=>c.assign(e,r._`${t}.errors`)),(()=>c.throw(t))))),e}():function(){const e=r._`${m}.errors`;return c.assign(e,null),v(r.nil),e}();t.modifying&&s(e),b((()=>function(e,t){const{gen:n}=e;n.if(r._`Array.isArray(${t})`,(()=>{n.assign(i.default.vErrors,r._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`).assign(i.default.errors,r._`${i.default.vErrors}.length`),(0,a.extendErrors)(e)}),(()=>e.error()))}(e,n)))}})),e.ok(null!==(n=t.valid)&&void 0!==n?n:y)},t.validSchemaType=function(e,t,n=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:r},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const a=i.dependencies;if(null==a?void 0:a.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema){if(!i.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}}},35728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const r=n(28468),i=n(93880);t.getSubschema=function(e,{keyword:t,schemaProp:n,schema:o,schemaPath:a,errSchemaPath:s,topSchemaRef:l}){if(void 0!==t&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const o=e.schema[t];return void 0===n?{schema:o,schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[n],schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}${(0,r.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,i.escapeFragment)(n)}`}}if(void 0!==o){if(void 0===a||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:a,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:n,dataPropType:o,data:a,dataTypes:s,propertyName:l}){if(void 0!==a&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:c}=t;if(void 0!==n){const{errorPath:a,dataPathArr:s,opts:l}=t;u(c.let("data",r._`${t.data}${(0,r.getProperty)(n)}`,!0)),e.errorPath=r.str`${a}${(0,i.getErrorPath)(n,o,l.jsPropertySyntax)}`,e.parentDataProperty=r._`${n}`,e.dataPathArr=[...s,e.parentDataProperty]}if(void 0!==a){u(a instanceof r.Name?a:c.let("data",a,!0)),void 0!==l&&(e.propertyName=l)}function u(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}s&&(e.dataTypes=s)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:o}){void 0!==r&&(e.compositeRule=r),void 0!==i&&(e.createErrors=i),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=n}},86557:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var r=n(13809);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return r.KeywordCxt}});var i=n(28468);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return i.CodeGen}});const o=n(22917),a=n(21698),s=n(56417),l=n(93638),c=n(28468),u=n(6450),d=n(42965),h=n(93880),p=n(98560),f=n(83253),g=(e,t)=>new RegExp(e,t);g.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],y=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function x(e){var t,n,r,i,o,a,s,l,c,u,d,h,p,m,y,v,b,x,w,A,S,C,E,_,k;const T=e.strict,O=null===(t=e.code)||void 0===t?void 0:t.optimize,P=!0===O||void 0===O?1:O||0,I=null!==(r=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==r?r:g,M=null!==(i=e.uriResolver)&&void 0!==i?i:f.default;return{strictSchema:null===(a=null!==(o=e.strictSchema)&&void 0!==o?o:T)||void 0===a||a,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:T)||void 0===l||l,strictTypes:null!==(u=null!==(c=e.strictTypes)&&void 0!==c?c:T)&&void 0!==u?u:"log",strictTuples:null!==(h=null!==(d=e.strictTuples)&&void 0!==d?d:T)&&void 0!==h?h:"log",strictRequired:null!==(m=null!==(p=e.strictRequired)&&void 0!==p?p:T)&&void 0!==m&&m,code:e.code?{...e.code,optimize:P,regExp:I}:{optimize:P,regExp:I},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(x=e.messages)||void 0===x||x,inlineRefs:null===(w=e.inlineRefs)||void 0===w||w,schemaId:null!==(A=e.schemaId)&&void 0!==A?A:"$id",addUsedSchema:null===(S=e.addUsedSchema)||void 0===S||S,validateSchema:null===(C=e.validateSchema)||void 0===C||C,validateFormats:null===(E=e.validateFormats)||void 0===E||E,unicodeRegExp:null===(_=e.unicodeRegExp)||void 0===_||_,int32range:null===(k=e.int32range)||void 0===k||k,uriResolver:M}}class w{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...x(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:y,es5:t,lines:n}),this.logger=function(e){if(!1===e)return T;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const r=e.validateFormats;e.validateFormats=!1,this.RULES=(0,s.getRules)(),A.call(this,v,e,"NOT SUPPORTED"),A.call(this,b,e,"DEPRECATED","warn"),this._metaOpts=k.call(this),e.formats&&E.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&_.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),C.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let r=p;"id"===n&&(r={...p},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const r=n(t);return"$async"in n||(this.errors=n.errors),r}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await i.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||o.call(this,n)}async function i(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),o.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const n=await c.call(this,e);this.refs[e]||await i.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function c(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,r);return this}let i;if("object"==typeof e){const{schemaId:t}=this.opts;if(i=e[t],void 0!==i&&"string"!=typeof i)throw new Error(`schema ${t} must be string`)}return t=(0,u.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const r=this.validate(n,e);if(!r&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return r}getSchema(e){let t;for(;"string"==typeof(t=S.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,r=new l.SchemaEnv({schema:{},schemaId:n});if(t=l.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=S.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,u.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(P.call(this,n,t),!t)return(0,h.eachItem)(n,(e=>I.call(this,e))),this;L.call(this,t);const r={...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)};return(0,h.eachItem)(n,0===r.type.length?e=>I.call(this,e,r):e=>r.type.forEach((t=>I.call(this,e,r,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex((t=>t.keyword===e));t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map((e=>`${n}${e.instancePath} ${e.message}`)).reduce(((e,n)=>e+t+n)):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const r of t){const t=r.split("/").slice(1);let i=e;for(const e of t)i=i[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:r}=t.definition,o=i[e];r&&o&&(i[e]=j(o))}}return e}_removeAllSchemas(e,t){for(const n in e){const r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,i=this.opts.addUsedSchema){let o;const{schemaId:a}=this.opts;if("object"==typeof e)o=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let s=this._cache.get(e);if(void 0!==s)return s;n=(0,u.normalizeId)(o||n);const c=u.getSchemaRefs.call(this,e,n);return s=new l.SchemaEnv({schema:e,schemaId:a,meta:t,baseId:n,localRefs:c}),this._cache.set(s.schema,s),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=s),r&&this.validateSchema(e,!0),s}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):l.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{l.compileSchema.call(this,e)}finally{this.opts=t}}}function A(e,t,n,r="error"){for(const i in e){const o=i;o in t&&this.logger[r](`${n}: option ${i}. ${e[o]}`)}}function S(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function C(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function E(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function _(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function k(){const e={...this.opts};for(const t of m)delete e[t];return e}w.ValidationError=o.default,w.MissingRefError=a.default,t.default=w;const T={log(){},warn(){},error(){}};const O=/^[a-z_$][a-z0-9_$:-]*$/i;function P(e,t){const{RULES:n}=this;if((0,h.eachItem)(e,(e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!O.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function I(e,t,n){var r;const i=null==t?void 0:t.post;if(n&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let a=i?o.post:o.rules.find((({type:e})=>e===n));if(a||(a={type:n,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)}};t.before?M.call(this,a,s,t.before):a.rules.push(s),o.all[e]=s,null===(r=t.implements)||void 0===r||r.forEach((e=>this.addKeyword(e)))}function M(e,t,n){const r=e.rules.findIndex((e=>e.keyword===n));r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function L(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=j(t)),e.validateSchema=this.compile(t,!0))}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function j(e){return{anyOf:[e,R]}}},69903:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(92792);r.code='require("ajv/dist/runtime/equal").default',t.default=r},42462:(e,t)=>{"use strict";function n(e){const t=e.length;let n,r=0,i=0;for(;i=55296&&n<=56319&&i{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(21188);r.code='require("ajv/dist/runtime/uri").default',t.default=r},22917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=n},7424:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const r=n(28468),i=n(93880),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?a(e,r):(0,i.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function a(e,t){const{gen:n,schema:o,data:a,keyword:s,it:l}=e;l.items=!0;const c=n.const("len",r._`${a}.length`);if(!1===o)e.setParams({len:t.length}),e.pass(r._`${c} <= ${t.length}`);else if("object"==typeof o&&!(0,i.alwaysValidSchema)(l,o)){const o=n.var("valid",r._`${c} <= ${t.length}`);n.if((0,r.not)(o),(()=>function(o){n.forRange("i",t.length,c,(t=>{e.subschema({keyword:s,dataProp:t,dataPropType:i.Type.Num},o),l.allErrors||n.if((0,r.not)(o),(()=>n.break()))}))}(o))),e.ok(o)}}t.validateAdditionalItems=a,t.default=o},78887:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4828),i=n(28468),o=n(42302),a=n(93880),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>i._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:n,parentSchema:s,data:l,errsCount:c,it:u}=e;if(!c)throw new Error("ajv implementation error");const{allErrors:d,opts:h}=u;if(u.props=!0,"all"!==h.removeAdditional&&(0,a.alwaysValidSchema)(u,n))return;const p=(0,r.allSchemaProperties)(s.properties),f=(0,r.allSchemaProperties)(s.patternProperties);function g(e){t.code(i._`delete ${l}[${e}]`)}function m(r){if("all"===h.removeAdditional||h.removeAdditional&&!1===n)g(r);else{if(!1===n)return e.setParams({additionalProperty:r}),e.error(),void(d||t.break());if("object"==typeof n&&!(0,a.alwaysValidSchema)(u,n)){const n=t.name("valid");"failing"===h.removeAdditional?(y(r,n,!1),t.if((0,i.not)(n),(()=>{e.reset(),g(r)}))):(y(r,n),d||t.if((0,i.not)(n),(()=>t.break())))}}}function y(t,n,r){const i={keyword:"additionalProperties",dataProp:t,dataPropType:a.Type.Str};!1===r&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,n)}t.forIn("key",l,(n=>{p.length||f.length?t.if(function(n){let o;if(p.length>8){const e=(0,a.schemaRefOrVal)(u,s.properties,"properties");o=(0,r.isOwnProperty)(t,e,n)}else o=p.length?(0,i.or)(...p.map((e=>i._`${n} === ${e}`))):i.nil;return f.length&&(o=(0,i.or)(o,...f.map((t=>i._`${(0,r.usePattern)(e,t)}.test(${n})`)))),(0,i.not)(o)}(n),(()=>m(n))):m(n)})),e.ok(i._`${c} === ${o.default.errors}`)}};t.default=s},10077:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(93880),i={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach(((t,n)=>{if((0,r.alwaysValidSchema)(i,t))return;const a=e.subschema({keyword:"allOf",schemaProp:n},o);e.ok(o),e.mergeEvaluated(a)}))}};t.default=i},56924:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(4828).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=r},30670:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?r.str`must contain at least ${e} valid item(s)`:r.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?r._`{minContains: ${e}}`:r._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:o,data:a,it:s}=e;let l,c;const{minContains:u,maxContains:d}=o;s.opts.next?(l=void 0===u?1:u,c=d):l=1;const h=t.const("len",r._`${a}.length`);if(e.setParams({min:l,max:c}),void 0===c&&0===l)return void(0,i.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==c&&l>c)return(0,i.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,i.alwaysValidSchema)(s,n)){let t=r._`${h} >= ${l}`;return void 0!==c&&(t=r._`${t} && ${h} <= ${c}`),void e.pass(t)}s.items=!0;const p=t.name("valid");function f(){const e=t.name("_valid"),n=t.let("count",0);g(e,(()=>t.if(e,(()=>function(e){t.code(r._`${e}++`),void 0===c?t.if(r._`${e} >= ${l}`,(()=>t.assign(p,!0).break())):(t.if(r._`${e} > ${c}`,(()=>t.assign(p,!1).break())),1===l?t.assign(p,!0):t.if(r._`${e} >= ${l}`,(()=>t.assign(p,!0))))}(n)))))}function g(n,r){t.forRange("i",0,h,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:i.Type.Num,compositeRule:!0},n),r()}))}void 0===c&&1===l?g(p,(()=>t.if(p,(()=>t.break())))):0===l?(t.let(p,!0),void 0!==c&&t.if(r._`${a}.length > 0`,f)):(t.let(p,!1),f()),e.result(p,(()=>e.reset()))}};t.default=o},76730:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const r=n(28468),i=n(93880),o=n(4828);t.error={message:({params:{property:e,depsCount:t,deps:n}})=>{const i=1===t?"property":"properties";return r.str`must have ${i} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:n,missingProperty:i}})=>r._`{property: ${e},
+ || ${s} === "boolean" || ${i} === null`).assign(l,a._`[${i}]`)}}r.else(),f(e),r.endIf(),r.if(a._`${l} !== undefined`,(()=>{r.assign(i,l),function({gen:e,parentData:t,parentDataProperty:n},r){e.if(a._`${t} !== undefined`,(()=>e.assign(a._`${t}[${n}]`,r)))}(e,l)}))}(e,t,s):f(e)}))}return c};const u=new Set(["string","number","integer","boolean","null"]);function d(e,t,n,r=l.Correct){const i=r===l.Correct?a.operators.EQ:a.operators.NEQ;let o;switch(e){case"null":return a._`${t} ${i} null`;case"array":o=a._`Array.isArray(${t})`;break;case"object":o=a._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=s(a._`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=s();break;default:return a._`typeof ${t} ${i} ${e}`}return r===l.Correct?o:(0,a.not)(o);function s(e=a.nil){return(0,a.and)(a._`typeof ${t} == "number"`,e,n?a._`isFinite(${t})`:a.nil)}}function h(e,t,n,r){if(1===e.length)return d(e[0],t,n,r);let i;const o=(0,s.toHash)(e);if(o.array&&o.object){const e=a._`typeof ${t} != "object"`;i=o.null?e:a._`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else i=a.nil;o.number&&delete o.integer;for(const e in o)i=(0,a.and)(i,d(e,t,n,r));return i}t.checkDataType=d,t.checkDataTypes=h;const p={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?a._`{type: ${e}}`:a._`{type: ${t}}`};function f(e){const t=function(e){const{gen:t,data:n,schema:r}=e,i=(0,s.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}(e);(0,o.reportError)(t,p)}t.reportTypeError=f},85483:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const r=n(28468),i=n(93880);function o(e,t,n){const{gen:o,compositeRule:a,data:s,opts:l}=e;if(void 0===n)return;const c=r._`${s}${(0,r.getProperty)(t)}`;if(a)return void(0,i.checkStrictMode)(e,`default is ignored for: ${c}`);let u=r._`${c} === undefined`;"empty"===l.useDefaults&&(u=r._`${u} || ${c} === null || ${c} === ""`),o.if(u,r._`${c} = ${(0,r.stringify)(n)}`)}t.assignDefaults=function(e,t){const{properties:n,items:r}=e.schema;if("object"===t&&n)for(const t in n)o(e,t,n[t].default);else"array"===t&&Array.isArray(r)&&r.forEach(((t,n)=>o(e,n,t.default)))}},13809:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const r=n(82474),i=n(42965),o=n(65012),a=n(42965),s=n(85483),l=n(91754),c=n(35728),u=n(28468),d=n(42302),h=n(6450),p=n(93880),f=n(32507);function g({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},o){i.code.es5?e.func(t,u._`${d.default.data}, ${d.default.valCxt}`,r.$async,(()=>{e.code(u._`"use strict"; ${m(n,i)}`),function(e,t){e.if(d.default.valCxt,(()=>{e.var(d.default.instancePath,u._`${d.default.valCxt}.${d.default.instancePath}`),e.var(d.default.parentData,u._`${d.default.valCxt}.${d.default.parentData}`),e.var(d.default.parentDataProperty,u._`${d.default.valCxt}.${d.default.parentDataProperty}`),e.var(d.default.rootData,u._`${d.default.valCxt}.${d.default.rootData}`),t.dynamicRef&&e.var(d.default.dynamicAnchors,u._`${d.default.valCxt}.${d.default.dynamicAnchors}`)}),(()=>{e.var(d.default.instancePath,u._`""`),e.var(d.default.parentData,u._`undefined`),e.var(d.default.parentDataProperty,u._`undefined`),e.var(d.default.rootData,d.default.data),t.dynamicRef&&e.var(d.default.dynamicAnchors,u._`{}`)}))}(e,i),e.code(o)})):e.func(t,u._`${d.default.data}, ${function(e){return u._`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${e.dynamicRef?u._`, ${d.default.dynamicAnchors}={}`:u.nil}}={}`}(i)}`,r.$async,(()=>e.code(m(n,i)).code(o)))}function m(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?u._`/*# sourceURL=${n} */`:u.nil}function y(e,t){b(e)&&(w(e),v(e))?function(e,t){const{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&A(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,h.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=r.const("_errs",d.default.errors);x(e,o),r.var(t,u._`${o} === ${d.default.errors}`)}(e,t):(0,r.boolOrEmptySchema)(e,t)}function v({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function b(e){return"boolean"!=typeof e.schema}function w(e){(0,p.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function x(e,t){if(e.opts.jtd)return S(e,[],!1,t);const n=(0,i.getSchemaTypes)(e.schema);S(e,n,!(0,i.coerceAndCheckDataType)(e,n),t)}function A({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){const o=n.$comment;if(!0===i.$comment)e.code(u._`${d.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){const n=u.str`${r}/$comment`,i=e.scopeValue("root",{ref:t.root});e.code(u._`${d.default.self}.opts.$comment(${o}, ${n}, ${i}.schema)`)}}function S(e,t,n,r){const{gen:i,schema:s,data:l,allErrors:c,opts:h,self:f}=e,{RULES:g}=f;function m(p){(0,o.shouldUseGroup)(s,p)&&(p.type?(i.if((0,a.checkDataType)(p.type,l,h.strictNumbers)),C(e,p),1===t.length&&t[0]===p.type&&n&&(i.else(),(0,a.reportTypeError)(e)),i.endIf()):C(e,p),c||i.if(u._`${d.default.errors} === ${r||0}`))}!s.$ref||!h.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(s,g)?(h.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{_(e.dataTypes,t)||k(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const n=[];for(const r of e.dataTypes)_(t,r)?n.push(r):t.includes("integer")&&"number"===r&&n.push("integer");e.dataTypes=n}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&k(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const n=e.self.RULES.all;for(const r in n){const i=n[r];if("object"==typeof i&&(0,o.shouldUseRule)(e.schema,i)){const{type:n}=i.definition;n.length&&!n.some((e=>E(t,e)))&&k(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}(e,e.dataTypes)}(e,t),i.block((()=>{for(const e of g.rules)m(e);m(g.post)}))):i.block((()=>O(e,"$ref",g.all.$ref.definition)))}function C(e,t){const{gen:n,schema:r,opts:{useDefaults:i}}=e;i&&(0,s.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,o.shouldUseRule)(r,n)&&O(e,n.keyword,n.definition,t.type)}))}function E(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function _(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function k(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,p.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){b(e)&&(w(e),v(e))?function(e){const{schema:t,opts:n,gen:r}=e;g(e,(()=>{n.$comment&&t.$comment&&A(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,p.checkStrictMode)(e,"default is ignored in the schema root")}(e),r.let(d.default.vErrors,null),r.let(d.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",u._`${n}.evaluated`),t.if(u._`${e.evaluated}.dynamicProps`,(()=>t.assign(u._`${e.evaluated}.props`,u._`undefined`))),t.if(u._`${e.evaluated}.dynamicItems`,(()=>t.assign(u._`${e.evaluated}.items`,u._`undefined`)))}(e),x(e),function(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:o}=e;n.$async?t.if(u._`${d.default.errors} === 0`,(()=>t.return(d.default.data)),(()=>t.throw(u._`new ${i}(${d.default.vErrors})`))):(t.assign(u._`${r}.errors`,d.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:n,items:r}){n instanceof u.Name&&e.assign(u._`${t}.props`,n);r instanceof u.Name&&e.assign(u._`${t}.items`,r)}(e),t.return(u._`${d.default.errors} === 0`))}(e)}))}(e):g(e,(()=>(0,r.topBoolOrEmptySchema)(e)))};class T{constructor(e,t,n){if((0,l.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,p.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",M(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,l.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",d.default.errors))}result(e,t,n){this.failResult((0,u.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,u.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(u._`${t} !== undefined && (${(0,u.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?f.reportExtraError:f.reportError)(this,this.def.error,t)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=u.nil){this.gen.block((()=>{this.check$data(e,n),t()}))}check$data(e=u.nil,t=u.nil){if(!this.$data)return;const{gen:n,schemaCode:r,schemaType:i,def:o}=this;n.if((0,u.or)(u._`${r} === undefined`,t)),e!==u.nil&&n.assign(e,!0),(i.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==u.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:r,it:i}=this;return(0,u.or)(function(){if(n.length){if(!(t instanceof u.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return u._`${(0,a.checkDataTypes)(e,t,i.opts.strictNumbers,a.DataType.Wrong)}`}return u.nil}(),function(){if(r.validateSchema){const n=e.scopeValue("validate$data",{ref:r.validateSchema});return u._`!${n}(${t})`}return u.nil}())}subschema(e,t){const n=(0,c.getSubschema)(this.it,e);(0,c.extendSubschemaData)(n,this.it,e),(0,c.extendSubschemaMode)(n,e);const r={...this.it,...n,items:void 0,props:void 0};return y(r,t),r}mergeEvaluated(e,t){const{it:n,gen:r}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=p.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=p.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:r}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return r.if(t,(()=>this.mergeEvaluated(e,u.Name))),!0}}function O(e,t,n,r){const i=new T(e,n,t);"code"in n?n.code(i,r):i.$data&&n.validate?(0,l.funcKeywordCode)(i,n):"macro"in n?(0,l.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,l.funcKeywordCode)(i,n)}t.KeywordCxt=T;const P=/^\/(?:[^~]|~0|~1)*$/,I=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function M(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,o;if(""===e)return d.default.rootData;if("/"===e[0]){if(!P.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=d.default.rootData}else{const a=I.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+a[1];if(i=a[2],"#"===i){if(s>=t)throw new Error(l("property/index",s));return r[t-s]}if(s>t)throw new Error(l("data",s));if(o=n[t-s],!i)return o}let a=o;const s=i.split("/");for(const e of s)e&&(o=u._`${o}${(0,u.getProperty)((0,p.unescapeJsonPointer)(e))}`,a=u._`${a} && ${o}`);return a;function l(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}t.getData=M},91754:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const r=n(28468),i=n(42302),o=n(4828),a=n(32507);function s(e){const{gen:t,data:n,it:i}=e;t.if(i.parentData,(()=>t.assign(n,r._`${i.parentData}[${i.parentDataProperty}]`)))}function l(e,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,r.stringify)(n)})}t.macroKeywordCode=function(e,t){const{gen:n,keyword:i,schema:o,parentSchema:a,it:s}=e,c=t.macro.call(s.self,o,a,s),u=l(n,i,c);!1!==s.opts.validateSchema&&s.self.validateSchema(c,!0);const d=n.name("valid");e.subschema({schema:c,schemaPath:r.nil,errSchemaPath:`${s.errSchemaPath}/${i}`,topSchemaRef:u,compositeRule:!0},d),e.pass(d,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var n;const{gen:c,keyword:u,schema:d,parentSchema:h,$data:p,it:f}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(f,t);const g=!p&&t.compile?t.compile.call(f.self,d,h,f):t.validate,m=l(c,u,g),y=c.let("valid");function v(n=(t.async?r._`await `:r.nil)){const a=f.opts.passContext?i.default.this:i.default.self,s=!("compile"in t&&!p||!1===t.schema);c.assign(y,r._`${n}${(0,o.callValidateCode)(e,m,a,s)}`,t.modifying)}function b(e){var n;c.if((0,r.not)(null!==(n=t.valid)&&void 0!==n?n:y),e)}e.block$data(y,(function(){if(!1===t.errors)v(),t.modifying&&s(e),b((()=>e.error()));else{const n=t.async?function(){const e=c.let("ruleErrs",null);return c.try((()=>v(r._`await `)),(t=>c.assign(y,!1).if(r._`${t} instanceof ${f.ValidationError}`,(()=>c.assign(e,r._`${t}.errors`)),(()=>c.throw(t))))),e}():function(){const e=r._`${m}.errors`;return c.assign(e,null),v(r.nil),e}();t.modifying&&s(e),b((()=>function(e,t){const{gen:n}=e;n.if(r._`Array.isArray(${t})`,(()=>{n.assign(i.default.vErrors,r._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`).assign(i.default.errors,r._`${i.default.vErrors}.length`),(0,a.extendErrors)(e)}),(()=>e.error()))}(e,n)))}})),e.ok(null!==(n=t.valid)&&void 0!==n?n:y)},t.validSchemaType=function(e,t,n=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:r},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const a=i.dependencies;if(null==a?void 0:a.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema){if(!i.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}}},35728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const r=n(28468),i=n(93880);t.getSubschema=function(e,{keyword:t,schemaProp:n,schema:o,schemaPath:a,errSchemaPath:s,topSchemaRef:l}){if(void 0!==t&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const o=e.schema[t];return void 0===n?{schema:o,schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[n],schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}${(0,r.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,i.escapeFragment)(n)}`}}if(void 0!==o){if(void 0===a||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:a,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:n,dataPropType:o,data:a,dataTypes:s,propertyName:l}){if(void 0!==a&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:c}=t;if(void 0!==n){const{errorPath:a,dataPathArr:s,opts:l}=t;u(c.let("data",r._`${t.data}${(0,r.getProperty)(n)}`,!0)),e.errorPath=r.str`${a}${(0,i.getErrorPath)(n,o,l.jsPropertySyntax)}`,e.parentDataProperty=r._`${n}`,e.dataPathArr=[...s,e.parentDataProperty]}if(void 0!==a){u(a instanceof r.Name?a:c.let("data",a,!0)),void 0!==l&&(e.propertyName=l)}function u(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}s&&(e.dataTypes=s)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:o}){void 0!==r&&(e.compositeRule=r),void 0!==i&&(e.createErrors=i),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=n}},86557:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var r=n(13809);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return r.KeywordCxt}});var i=n(28468);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return i.CodeGen}});const o=n(22917),a=n(21698),s=n(56417),l=n(93638),c=n(28468),u=n(6450),d=n(42965),h=n(93880),p=n(98560),f=n(83253),g=(e,t)=>new RegExp(e,t);g.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],y=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function w(e){var t,n,r,i,o,a,s,l,c,u,d,h,p,m,y,v,b,w,x,A,S,C,E,_,k;const T=e.strict,O=null===(t=e.code)||void 0===t?void 0:t.optimize,P=!0===O||void 0===O?1:O||0,I=null!==(r=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==r?r:g,M=null!==(i=e.uriResolver)&&void 0!==i?i:f.default;return{strictSchema:null===(a=null!==(o=e.strictSchema)&&void 0!==o?o:T)||void 0===a||a,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:T)||void 0===l||l,strictTypes:null!==(u=null!==(c=e.strictTypes)&&void 0!==c?c:T)&&void 0!==u?u:"log",strictTuples:null!==(h=null!==(d=e.strictTuples)&&void 0!==d?d:T)&&void 0!==h?h:"log",strictRequired:null!==(m=null!==(p=e.strictRequired)&&void 0!==p?p:T)&&void 0!==m&&m,code:e.code?{...e.code,optimize:P,regExp:I}:{optimize:P,regExp:I},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(x=e.inlineRefs)||void 0===x||x,schemaId:null!==(A=e.schemaId)&&void 0!==A?A:"$id",addUsedSchema:null===(S=e.addUsedSchema)||void 0===S||S,validateSchema:null===(C=e.validateSchema)||void 0===C||C,validateFormats:null===(E=e.validateFormats)||void 0===E||E,unicodeRegExp:null===(_=e.unicodeRegExp)||void 0===_||_,int32range:null===(k=e.int32range)||void 0===k||k,uriResolver:M}}class x{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...w(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:y,es5:t,lines:n}),this.logger=function(e){if(!1===e)return T;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const r=e.validateFormats;e.validateFormats=!1,this.RULES=(0,s.getRules)(),A.call(this,v,e,"NOT SUPPORTED"),A.call(this,b,e,"DEPRECATED","warn"),this._metaOpts=k.call(this),e.formats&&E.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&_.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),C.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let r=p;"id"===n&&(r={...p},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const r=n(t);return"$async"in n||(this.errors=n.errors),r}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await i.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||o.call(this,n)}async function i(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),o.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const n=await c.call(this,e);this.refs[e]||await i.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function c(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,r);return this}let i;if("object"==typeof e){const{schemaId:t}=this.opts;if(i=e[t],void 0!==i&&"string"!=typeof i)throw new Error(`schema ${t} must be string`)}return t=(0,u.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const r=this.validate(n,e);if(!r&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return r}getSchema(e){let t;for(;"string"==typeof(t=S.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,r=new l.SchemaEnv({schema:{},schemaId:n});if(t=l.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=S.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,u.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(P.call(this,n,t),!t)return(0,h.eachItem)(n,(e=>I.call(this,e))),this;L.call(this,t);const r={...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)};return(0,h.eachItem)(n,0===r.type.length?e=>I.call(this,e,r):e=>r.type.forEach((t=>I.call(this,e,r,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex((t=>t.keyword===e));t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map((e=>`${n}${e.instancePath} ${e.message}`)).reduce(((e,n)=>e+t+n)):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const r of t){const t=r.split("/").slice(1);let i=e;for(const e of t)i=i[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:r}=t.definition,o=i[e];r&&o&&(i[e]=j(o))}}return e}_removeAllSchemas(e,t){for(const n in e){const r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,i=this.opts.addUsedSchema){let o;const{schemaId:a}=this.opts;if("object"==typeof e)o=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let s=this._cache.get(e);if(void 0!==s)return s;n=(0,u.normalizeId)(o||n);const c=u.getSchemaRefs.call(this,e,n);return s=new l.SchemaEnv({schema:e,schemaId:a,meta:t,baseId:n,localRefs:c}),this._cache.set(s.schema,s),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=s),r&&this.validateSchema(e,!0),s}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):l.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{l.compileSchema.call(this,e)}finally{this.opts=t}}}function A(e,t,n,r="error"){for(const i in e){const o=i;o in t&&this.logger[r](`${n}: option ${i}. ${e[o]}`)}}function S(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function C(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function E(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function _(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function k(){const e={...this.opts};for(const t of m)delete e[t];return e}x.ValidationError=o.default,x.MissingRefError=a.default,t.default=x;const T={log(){},warn(){},error(){}};const O=/^[a-z_$][a-z0-9_$:-]*$/i;function P(e,t){const{RULES:n}=this;if((0,h.eachItem)(e,(e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!O.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function I(e,t,n){var r;const i=null==t?void 0:t.post;if(n&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let a=i?o.post:o.rules.find((({type:e})=>e===n));if(a||(a={type:n,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)}};t.before?M.call(this,a,s,t.before):a.rules.push(s),o.all[e]=s,null===(r=t.implements)||void 0===r||r.forEach((e=>this.addKeyword(e)))}function M(e,t,n){const r=e.rules.findIndex((e=>e.keyword===n));r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function L(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=j(t)),e.validateSchema=this.compile(t,!0))}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function j(e){return{anyOf:[e,R]}}},69903:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(92792);r.code='require("ajv/dist/runtime/equal").default',t.default=r},42462:(e,t)=>{"use strict";function n(e){const t=e.length;let n,r=0,i=0;for(;i=55296&&n<=56319&&i{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(21188);r.code='require("ajv/dist/runtime/uri").default',t.default=r},22917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=n},7424:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const r=n(28468),i=n(93880),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?a(e,r):(0,i.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function a(e,t){const{gen:n,schema:o,data:a,keyword:s,it:l}=e;l.items=!0;const c=n.const("len",r._`${a}.length`);if(!1===o)e.setParams({len:t.length}),e.pass(r._`${c} <= ${t.length}`);else if("object"==typeof o&&!(0,i.alwaysValidSchema)(l,o)){const o=n.var("valid",r._`${c} <= ${t.length}`);n.if((0,r.not)(o),(()=>function(o){n.forRange("i",t.length,c,(t=>{e.subschema({keyword:s,dataProp:t,dataPropType:i.Type.Num},o),l.allErrors||n.if((0,r.not)(o),(()=>n.break()))}))}(o))),e.ok(o)}}t.validateAdditionalItems=a,t.default=o},78887:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4828),i=n(28468),o=n(42302),a=n(93880),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>i._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:n,parentSchema:s,data:l,errsCount:c,it:u}=e;if(!c)throw new Error("ajv implementation error");const{allErrors:d,opts:h}=u;if(u.props=!0,"all"!==h.removeAdditional&&(0,a.alwaysValidSchema)(u,n))return;const p=(0,r.allSchemaProperties)(s.properties),f=(0,r.allSchemaProperties)(s.patternProperties);function g(e){t.code(i._`delete ${l}[${e}]`)}function m(r){if("all"===h.removeAdditional||h.removeAdditional&&!1===n)g(r);else{if(!1===n)return e.setParams({additionalProperty:r}),e.error(),void(d||t.break());if("object"==typeof n&&!(0,a.alwaysValidSchema)(u,n)){const n=t.name("valid");"failing"===h.removeAdditional?(y(r,n,!1),t.if((0,i.not)(n),(()=>{e.reset(),g(r)}))):(y(r,n),d||t.if((0,i.not)(n),(()=>t.break())))}}}function y(t,n,r){const i={keyword:"additionalProperties",dataProp:t,dataPropType:a.Type.Str};!1===r&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,n)}t.forIn("key",l,(n=>{p.length||f.length?t.if(function(n){let o;if(p.length>8){const e=(0,a.schemaRefOrVal)(u,s.properties,"properties");o=(0,r.isOwnProperty)(t,e,n)}else o=p.length?(0,i.or)(...p.map((e=>i._`${n} === ${e}`))):i.nil;return f.length&&(o=(0,i.or)(o,...f.map((t=>i._`${(0,r.usePattern)(e,t)}.test(${n})`)))),(0,i.not)(o)}(n),(()=>m(n))):m(n)})),e.ok(i._`${c} === ${o.default.errors}`)}};t.default=s},10077:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(93880),i={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach(((t,n)=>{if((0,r.alwaysValidSchema)(i,t))return;const a=e.subschema({keyword:"allOf",schemaProp:n},o);e.ok(o),e.mergeEvaluated(a)}))}};t.default=i},56924:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(4828).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=r},30670:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?r.str`must contain at least ${e} valid item(s)`:r.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?r._`{minContains: ${e}}`:r._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:o,data:a,it:s}=e;let l,c;const{minContains:u,maxContains:d}=o;s.opts.next?(l=void 0===u?1:u,c=d):l=1;const h=t.const("len",r._`${a}.length`);if(e.setParams({min:l,max:c}),void 0===c&&0===l)return void(0,i.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==c&&l>c)return(0,i.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,i.alwaysValidSchema)(s,n)){let t=r._`${h} >= ${l}`;return void 0!==c&&(t=r._`${t} && ${h} <= ${c}`),void e.pass(t)}s.items=!0;const p=t.name("valid");function f(){const e=t.name("_valid"),n=t.let("count",0);g(e,(()=>t.if(e,(()=>function(e){t.code(r._`${e}++`),void 0===c?t.if(r._`${e} >= ${l}`,(()=>t.assign(p,!0).break())):(t.if(r._`${e} > ${c}`,(()=>t.assign(p,!1).break())),1===l?t.assign(p,!0):t.if(r._`${e} >= ${l}`,(()=>t.assign(p,!0))))}(n)))))}function g(n,r){t.forRange("i",0,h,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:i.Type.Num,compositeRule:!0},n),r()}))}void 0===c&&1===l?g(p,(()=>t.if(p,(()=>t.break())))):0===l?(t.let(p,!0),void 0!==c&&t.if(r._`${a}.length > 0`,f)):(t.let(p,!1),f()),e.result(p,(()=>e.reset()))}};t.default=o},76730:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const r=n(28468),i=n(93880),o=n(4828);t.error={message:({params:{property:e,depsCount:t,deps:n}})=>{const i=1===t?"property":"properties";return r.str`must have ${i} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:n,missingProperty:i}})=>r._`{property: ${e},
missingProperty: ${i},
depsCount: ${t},
- deps: ${n}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const r in e){if("__proto__"===r)continue;(Array.isArray(e[r])?t:n)[r]=e[r]}return[t,n]}(e);s(e,t),l(e,n)}};function s(e,t=e.schema){const{gen:n,data:i,it:a}=e;if(0===Object.keys(t).length)return;const s=n.let("missing");for(const l in t){const c=t[l];if(0===c.length)continue;const u=(0,o.propertyInData)(n,i,l,a.opts.ownProperties);e.setParams({property:l,depsCount:c.length,deps:c.join(", ")}),a.allErrors?n.if(u,(()=>{for(const t of c)(0,o.checkReportMissingProp)(e,t)})):(n.if(r._`${u} && (${(0,o.checkMissingProp)(e,c,s)})`),(0,o.reportMissingProp)(e,s),n.else())}}function l(e,t=e.schema){const{gen:n,data:r,keyword:a,it:s}=e,l=n.name("valid");for(const c in t)(0,i.alwaysValidSchema)(s,t[c])||(n.if((0,o.propertyInData)(n,r,c,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:a,schemaProp:c},l);e.mergeValidEvaluated(t,l)}),(()=>n.var(l,!0))),e.ok(l))}t.validatePropertyDeps=s,t.validateSchemaDeps=l,t.default=a},2032:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>r.str`must match "${e.ifClause}" schema`,params:({params:e})=>r._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:o}=e;void 0===n.then&&void 0===n.else&&(0,i.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const s=a(o,"then"),l=a(o,"else");if(!s&&!l)return;const c=t.let("valid",!0),u=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(t)}(),e.reset(),s&&l){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(u,d("then",n),d("else",n))}else s?t.if(u,d("then")):t.if((0,r.not)(u),d("else"));function d(n,i){return()=>{const o=e.subschema({keyword:n},u);t.assign(c,u),e.mergeValidEvaluated(o,c),i?t.assign(i,r._`${n}`):e.setParams({ifClause:n})}}e.pass(c,(()=>e.error(!0)))}};function a(e,t){const n=e.schema[t];return void 0!==n&&!(0,i.alwaysValidSchema)(e,n)}t.default=o},88671:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7424),i=n(64939),o=n(90007),a=n(16391),s=n(30670),l=n(76730),c=n(19284),u=n(78887),d=n(16706),h=n(94560),p=n(3974),f=n(56924),g=n(31410),m=n(10077),y=n(2032),v=n(45301);t.default=function(e=!1){const t=[p.default,f.default,g.default,m.default,y.default,v.default,c.default,u.default,l.default,d.default,h.default];return e?t.push(i.default,a.default):t.push(r.default,o.default),t.push(s.default),t}},90007:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const r=n(28468),i=n(93880),o=n(4828),a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return s(e,"additionalItems",t);n.items=!0,(0,i.alwaysValidSchema)(n,t)||e.ok((0,o.validateArray)(e))}};function s(e,t,n=e.schema){const{gen:o,parentSchema:a,data:s,keyword:l,it:c}=e;!function(e){const{opts:r,errSchemaPath:o}=c,a=n.length,s=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(r.strictTuples&&!s){const e=`"${l}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,i.checkStrictMode)(c,e,r.strictTuples)}}(a),c.opts.unevaluated&&n.length&&!0!==c.items&&(c.items=i.mergeEvaluated.items(o,n.length,c.items));const u=o.name("valid"),d=o.const("len",r._`${s}.length`);n.forEach(((t,n)=>{(0,i.alwaysValidSchema)(c,t)||(o.if(r._`${d} > ${n}`,(()=>e.subschema({keyword:l,schemaProp:n,dataProp:n},u))),e.ok(u))}))}t.validateTuple=s,t.default=a},16391:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),o=n(4828),a=n(7424),s={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:s}=n;r.items=!0,(0,i.alwaysValidSchema)(r,t)||(s?(0,a.validateAdditionalItems)(e,s):e.ok((0,o.validateArray)(e)))}};t.default=s},3974:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(93880),i={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:i}=e;if((0,r.alwaysValidSchema)(i,n))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=i},31410:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>r._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:o,it:a}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(a.opts.discriminator&&o.discriminator)return;const s=n,l=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block((function(){s.forEach(((n,o)=>{let s;(0,i.alwaysValidSchema)(a,n)?t.var(u,!0):s=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},u),o>0&&t.if(r._`${u} && ${l}`).assign(l,!1).assign(c,r._`[${c}, ${o}]`).else(),t.if(u,(()=>{t.assign(l,!0),t.assign(c,o),s&&e.mergeEvaluated(s,r.Name)}))}))})),e.result(l,(()=>e.reset()),(()=>e.error(!0)))}};t.default=o},94560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4828),i=n(28468),o=n(93880),a=n(93880),s={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:s,parentSchema:l,it:c}=e,{opts:u}=c,d=(0,r.allSchemaProperties)(n),h=d.filter((e=>(0,o.alwaysValidSchema)(c,n[e])));if(0===d.length||h.length===d.length&&(!c.opts.unevaluated||!0===c.props))return;const p=u.strictSchema&&!u.allowMatchingProperties&&l.properties,f=t.name("valid");!0===c.props||c.props instanceof i.Name||(c.props=(0,a.evaluatedPropsToName)(t,c.props));const{props:g}=c;function m(e){for(const t in p)new RegExp(e).test(t)&&(0,o.checkStrictMode)(c,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function y(n){t.forIn("key",s,(o=>{t.if(i._`${(0,r.usePattern)(e,n)}.test(${o})`,(()=>{const r=h.includes(n);r||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:o,dataPropType:a.Type.Str},f),c.opts.unevaluated&&!0!==g?t.assign(i._`${g}[${o}]`,!0):r||c.allErrors||t.if((0,i.not)(f),(()=>t.break()))}))}))}!function(){for(const e of d)p&&m(e),c.allErrors?y(e):(t.var(f,!0),y(e),t.if(f))}()}};t.default=s},64939:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(90007),i={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,r.validateTuple)(e,"items")};t.default=i},16706:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(13809),i=n(4828),o=n(93880),a=n(78887),s={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:s,data:l,it:c}=e;"all"===c.opts.removeAdditional&&void 0===s.additionalProperties&&a.default.code(new r.KeywordCxt(c,a.default,"additionalProperties"));const u=(0,i.allSchemaProperties)(n);for(const e of u)c.definedProperties.add(e);c.opts.unevaluated&&u.length&&!0!==c.props&&(c.props=o.mergeEvaluated.props(t,(0,o.toHash)(u),c.props));const d=u.filter((e=>!(0,o.alwaysValidSchema)(c,n[e])));if(0===d.length)return;const h=t.name("valid");for(const n of d)p(n)?f(n):(t.if((0,i.propertyInData)(t,l,n,c.opts.ownProperties)),f(n),c.allErrors||t.else().var(h,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(h);function p(e){return c.opts.useDefaults&&!c.compositeRule&&void 0!==n[e].default}function f(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},h)}}};t.default=s},19284:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>r._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:o,it:a}=e;if((0,i.alwaysValidSchema)(a,n))return;const s=t.name("valid");t.forIn("key",o,(n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},s),t.if((0,r.not)(s),(()=>{e.error(!0),a.allErrors||t.break()}))})),e.ok(s)}};t.default=o},45301:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(93880),i={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,r.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};t.default=i},4828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const r=n(28468),i=n(93880),o=n(42302),a=n(93880);function s(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:r._`Object.prototype.hasOwnProperty`})}function l(e,t,n){return r._`${s(e)}.call(${t}, ${n})`}function c(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} === undefined`;return i?(0,r.or)(o,(0,r.not)(l(e,t,n))):o}function u(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:n,data:i,it:o}=e;n.if(c(n,i,t,o.opts.ownProperties),(()=>{e.setParams({missingProperty:r._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:n}},i,o){return(0,r.or)(...i.map((i=>(0,r.and)(c(e,t,i,n.ownProperties),r._`${o} = ${i}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=s,t.isOwnProperty=l,t.propertyInData=function(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} !== undefined`;return i?r._`${o} && ${l(e,t,n)}`:o},t.noPropertyInData=c,t.allSchemaProperties=u,t.schemaProperties=function(e,t){return u(t).filter((n=>!(0,i.alwaysValidSchema)(e,t[n])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:n,topSchemaRef:i,schemaPath:a,errorPath:s},it:l},c,u,d){const h=d?r._`${e}, ${t}, ${i}${a}`:t,p=[[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,s)],[o.default.parentData,l.parentData],[o.default.parentDataProperty,l.parentDataProperty],[o.default.rootData,o.default.rootData]];l.opts.dynamicRef&&p.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const f=r._`${h}, ${n.object(...p)}`;return u!==r.nil?r._`${c}.call(${u}, ${f})`:r._`${c}(${f})`};const d=r._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},n){const i=t.unicodeRegExp?"u":"",{regExp:o}=t.code,s=o(n,i);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:r._`${"new RegExp"===o.code?d:(0,a.useFunc)(e,o)}(${n}, ${i})`})},t.validateArray=function(e){const{gen:t,data:n,keyword:o,it:a}=e,s=t.name("valid");if(a.allErrors){const e=t.let("valid",!0);return l((()=>t.assign(e,!1))),e}return t.var(s,!0),l((()=>t.break())),s;function l(a){const l=t.const("len",r._`${n}.length`);t.forRange("i",0,l,(n=>{e.subschema({keyword:o,dataProp:n,dataPropType:i.Type.Num},s),t.if((0,r.not)(s),a)}))}},t.validateUnion=function(e){const{gen:t,schema:n,keyword:o,it:a}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some((e=>(0,i.alwaysValidSchema)(a,e)))&&!a.opts.unevaluated)return;const s=t.let("valid",!1),l=t.name("_valid");t.block((()=>n.forEach(((n,i)=>{const a=e.subschema({keyword:o,schemaProp:i,compositeRule:!0},l);t.assign(s,r._`${s} || ${l}`);e.mergeValidEvaluated(a,l)||t.if((0,r.not)(s))})))),e.result(s,(()=>e.reset()),(()=>e.error(!0)))}},25048:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n},39245:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(25048),i=n(95628),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,i.default];t.default=o},95628:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const r=n(21698),i=n(4828),o=n(28468),a=n(42302),s=n(93638),l=n(93880),c={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:i}=e,{baseId:a,schemaEnv:l,validateName:c,opts:h,self:p}=i,{root:f}=l;if(("#"===n||"#/"===n)&&a===f.baseId)return function(){if(l===f)return d(e,c,l,l.$async);const n=t.scopeValue("root",{ref:f});return d(e,o._`${n}.validate`,f,f.$async)}();const g=s.resolveRef.call(p,f,a,n);if(void 0===g)throw new r.default(i.opts.uriResolver,a,n);return g instanceof s.SchemaEnv?function(t){const n=u(e,t);d(e,n,t,t.$async)}(g):function(r){const i=t.scopeValue("schema",!0===h.code.source?{ref:r,code:(0,o.stringify)(r)}:{ref:r}),a=t.name("valid"),s=e.subschema({schema:r,dataTypes:[],schemaPath:o.nil,topSchemaRef:i,errSchemaPath:n},a);e.mergeEvaluated(s),e.ok(a)}(g)}};function u(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):o._`${n.scopeValue("wrapper",{ref:t})}.validate`}function d(e,t,n,r){const{gen:s,it:c}=e,{allErrors:u,schemaEnv:d,opts:h}=c,p=h.passContext?a.default.this:o.nil;function f(e){const t=o._`${e}.errors`;s.assign(a.default.vErrors,o._`${a.default.vErrors} === null ? ${t} : ${a.default.vErrors}.concat(${t})`),s.assign(a.default.errors,o._`${a.default.vErrors}.length`)}function g(e){var t;if(!c.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==c.props)if(r&&!r.dynamicProps)void 0!==r.props&&(c.props=l.mergeEvaluated.props(s,r.props,c.props));else{const t=s.var("props",o._`${e}.evaluated.props`);c.props=l.mergeEvaluated.props(s,t,c.props,o.Name)}if(!0!==c.items)if(r&&!r.dynamicItems)void 0!==r.items&&(c.items=l.mergeEvaluated.items(s,r.items,c.items));else{const t=s.var("items",o._`${e}.evaluated.items`);c.items=l.mergeEvaluated.items(s,t,c.items,o.Name)}}r?function(){if(!d.$async)throw new Error("async schema referenced by sync schema");const n=s.let("valid");s.try((()=>{s.code(o._`await ${(0,i.callValidateCode)(e,t,p)}`),g(t),u||s.assign(n,!0)}),(e=>{s.if(o._`!(${e} instanceof ${c.ValidationError})`,(()=>s.throw(e))),f(e),u||s.assign(n,!1)})),e.ok(n)}():e.result((0,i.callValidateCode)(e,t,p),(()=>g(t)),(()=>f(t)))}t.getValidate=u,t.callRef=d,t.default=c},83246:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(70243),o=n(93638),a=n(93880),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>r._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:s,parentSchema:l,it:c}=e,{oneOf:u}=l;if(!c.opts.discriminator)throw new Error("discriminator: requires discriminator option");const d=s.propertyName;if("string"!=typeof d)throw new Error("discriminator: requires propertyName");if(s.mapping)throw new Error("discriminator: mapping is not supported");if(!u)throw new Error("discriminator: requires oneOf keyword");const h=t.let("valid",!1),p=t.const("tag",r._`${n}${(0,r.getProperty)(d)}`);function f(n){const i=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:n},i);return e.mergeEvaluated(o,r.Name),i}t.if(r._`typeof ${p} == "string"`,(()=>function(){const n=function(){var e;const t={},n=i(l);let r=!0;for(let t=0;te.error(!1,{discrError:i.DiscrError.Tag,tag:p,tagName:d}))),e.ok(h)}};t.default=s},70243:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(n||(t.DiscrError=n={}))},82797:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(39245),i=n(11169),o=n(88671),a=n(59009),s=n(74276),l=[r.default,i.default,(0,o.default)(),a.default,s.metadataVocabulary,s.contentVocabulary];t.default=l},71498:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match format "${e}"`,params:({schemaCode:e})=>r._`{format: ${e}}`},code(e,t){const{gen:n,data:i,$data:o,schema:a,schemaCode:s,it:l}=e,{opts:c,errSchemaPath:u,schemaEnv:d,self:h}=l;c.validateFormats&&(o?function(){const o=n.scopeValue("formats",{ref:h.formats,code:c.code.formats}),a=n.const("fDef",r._`${o}[${s}]`),l=n.let("fType"),u=n.let("format");n.if(r._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>n.assign(l,r._`${a}.type || "string"`).assign(u,r._`${a}.validate`)),(()=>n.assign(l,r._`"string"`).assign(u,a))),e.fail$data((0,r.or)(!1===c.strictSchema?r.nil:r._`${s} && !${u}`,function(){const e=d.$async?r._`(${a}.async ? await ${u}(${i}) : ${u}(${i}))`:r._`${u}(${i})`,n=r._`(typeof ${u} == "function" ? ${e} : ${u}.test(${i}))`;return r._`${u} && ${u} !== true && ${l} === ${t} && !${n}`}()))}():function(){const o=h.formats[a];if(!o)return void function(){if(!1===c.strictSchema)return void h.logger.warn(e());throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${u}"`}}();if(!0===o)return;const[s,l,p]=function(e){const t=e instanceof RegExp?(0,r.regexpCode)(e):c.code.formats?r._`${c.code.formats}${(0,r.getProperty)(a)}`:void 0,i=n.scopeValue("formats",{key:a,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,r._`${i}.validate`];return["string",e,i]}(o);s===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!d.$async)throw new Error("async format in sync schema");return r._`await ${p}(${i})`}return"function"==typeof l?r._`${p}(${i})`:r._`${p}.test(${i})`}())}())}};t.default=i},59009:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[n(71498).default];t.default=r},74276:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},39090:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),o=n(69903),a={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>r._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:a,schemaCode:s,schema:l}=e;a||l&&"object"==typeof l?e.fail$data(r._`!${(0,i.useFunc)(t,o.default)}(${n}, ${s})`):e.fail(r._`${l} !== ${n}`)}};t.default=a},57352:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),o=n(69903),a={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>r._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:a,schema:s,schemaCode:l,it:c}=e;if(!a&&0===s.length)throw new Error("enum must have non-empty array");const u=s.length>=c.opts.loopEnum;let d;const h=()=>null!=d?d:d=(0,i.useFunc)(t,o.default);let p;if(u||a)p=t.let("valid"),e.block$data(p,(function(){t.assign(p,!1),t.forOf("v",l,(e=>t.if(r._`${h()}(${n}, ${e})`,(()=>t.assign(p,!0).break()))))}));else{if(!Array.isArray(s))throw new Error("ajv implementation error");const e=t.const("vSchema",l);p=(0,r.or)(...s.map(((t,i)=>function(e,t){const i=s[t];return"object"==typeof i&&null!==i?r._`${h()}(${n}, ${e}[${t}])`:r._`${n} === ${i}`}(e,i))))}e.pass(p)}};t.default=a},11169:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(52083),i=n(98876),o=n(29770),a=n(49615),s=n(36263),l=n(56560),c=n(53248),u=n(6324),d=n(39090),h=n(57352),p=[r.default,i.default,o.default,a.default,s.default,l.default,c.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,h.default];t.default=p},53248:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxItems"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`${n}.length ${o} ${i}`)}};t.default=i},29770:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),o=n(42462),a={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:a,it:s}=e,l="maxLength"===t?r.operators.GT:r.operators.LT,c=!1===s.opts.unicode?r._`${n}.length`:r._`${(0,i.useFunc)(e.gen,o.default)}(${n})`;e.fail$data(r._`${c} ${l} ${a}`)}};t.default=a},52083:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=r.operators,o={maximum:{okStr:"<=",ok:i.LTE,fail:i.GT},minimum:{okStr:">=",ok:i.GTE,fail:i.LT},exclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},exclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},a={message:({keyword:e,schemaCode:t})=>r.str`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${o[e].okStr}, limit: ${t}}`},s={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:a,code(e){const{keyword:t,data:n,schemaCode:i}=e;e.fail$data(r._`${n} ${o[t].fail} ${i} || isNaN(${n})`)}};t.default=s},36263:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxProperties"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`Object.keys(${n}).length ${o} ${i}`)}};t.default=i},98876:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>r.str`must be multiple of ${e}`,params:({schemaCode:e})=>r._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:i,it:o}=e,a=o.opts.multipleOfPrecision,s=t.let("res"),l=a?r._`Math.abs(Math.round(${s}) - ${s}) > 1e-${a}`:r._`${s} !== parseInt(${s})`;e.fail$data(r._`(${i} === 0 || (${s} = ${n}/${i}, ${l}))`)}};t.default=i},49615:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4828),i=n(28468),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>i.str`must match pattern "${e}"`,params:({schemaCode:e})=>i._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:o,schemaCode:a,it:s}=e,l=s.opts.unicodeRegExp?"u":"",c=n?i._`(new RegExp(${a}, ${l}))`:(0,r.usePattern)(e,o);e.fail$data(i._`!${c}.test(${t})`)}};t.default=o},56560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4828),i=n(28468),o=n(93880),a={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>i.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>i._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:a,data:s,$data:l,it:c}=e,{opts:u}=c;if(!l&&0===n.length)return;const d=n.length>=u.loopRequired;if(c.allErrors?function(){if(d||l)e.block$data(i.nil,h);else for(const t of n)(0,r.checkReportMissingProp)(e,t)}():function(){const o=t.let("missing");if(d||l){const n=t.let("valid",!0);e.block$data(n,(()=>function(n,o){e.setParams({missingProperty:n}),t.forOf(n,a,(()=>{t.assign(o,(0,r.propertyInData)(t,s,n,u.ownProperties)),t.if((0,i.not)(o),(()=>{e.error(),t.break()}))}),i.nil)}(o,n))),e.ok(n)}else t.if((0,r.checkMissingProp)(e,n,o)),(0,r.reportMissingProp)(e,o),t.else()}(),u.strictRequired){const t=e.parentSchema.properties,{definedProperties:r}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!r.has(e)){const t=`required property "${e}" is not defined at "${c.schemaEnv.baseId+c.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(c,t,c.opts.strictRequired)}}function h(){t.forOf("prop",a,(n=>{e.setParams({missingProperty:n}),t.if((0,r.noPropertyInData)(t,s,n,u.ownProperties),(()=>e.error()))}))}}};t.default=a},6324:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(42965),i=n(28468),o=n(93880),a=n(69903),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>i.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>i._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:n,$data:s,schema:l,parentSchema:c,schemaCode:u,it:d}=e;if(!s&&!l)return;const h=t.let("valid"),p=c.items?(0,r.getSchemaTypes)(c.items):[];function f(o,a){const s=t.name("item"),l=(0,r.checkDataTypes)(p,s,d.opts.strictNumbers,r.DataType.Wrong),c=t.const("indices",i._`{}`);t.for(i._`;${o}--;`,(()=>{t.let(s,i._`${n}[${o}]`),t.if(l,i._`continue`),p.length>1&&t.if(i._`typeof ${s} == "string"`,i._`${s} += "_"`),t.if(i._`typeof ${c}[${s}] == "number"`,(()=>{t.assign(a,i._`${c}[${s}]`),e.error(),t.assign(h,!1).break()})).code(i._`${c}[${s}] = ${o}`)}))}function g(r,s){const l=(0,o.useFunc)(t,a.default),c=t.name("outer");t.label(c).for(i._`;${r}--;`,(()=>t.for(i._`${s} = ${r}; ${s}--;`,(()=>t.if(i._`${l}(${n}[${r}], ${n}[${s}])`,(()=>{e.error(),t.assign(h,!1).break(c)}))))))}e.block$data(h,(function(){const r=t.let("i",i._`${n}.length`),o=t.let("j");e.setParams({i:r,j:o}),t.assign(h,!0),t.if(i._`${r} > 1`,(()=>(p.length>0&&!p.some((e=>"object"===e||"array"===e))?f:g)(r,o)))}),i._`${u} === false`),e.ok(h)}};t.default=s},8259:(e,t,n)=>{"use strict";n.d(t,{FU:()=>A,JE:()=>i,NA:()=>w,NF:()=>C,Nt:()=>b,OD:()=>g,Su:()=>l,VN:()=>x,Zr:()=>s,fW:()=>a,if:()=>p,ir:()=>u,mq:()=>v,nC:()=>y,ns:()=>d,oR:()=>o,qf:()=>h,t7:()=>S,wJ:()=>m,y5:()=>c});var r=n(86891),i={VECTOR:"vector",VECTOR_TILE:"vector-tile",RASTER_TILE:"raster-tile",RASTER_IMAGE:"raster-image",GROUP:"group"},o={CSV:"CSV",ESRI_DYNAMIC:"esriDynamic",ESRI_FEATURE:"esriFeature",ESRI_IMAGE:"esriImage",IMAGE_STATIC:"imageStatic",GEOJSON:"GeoJSON",GEOPACKAGE:"GeoPackage",XYZ_TILES:"xyzTiles",VECTOR_TILES:"vectorTiles",OGC_FEATURE:"ogcFeature",WFS:"ogcWfs",WMS:"ogcWms"},a={CSV:"https://cgpv/schema#/definitions/VectorLayerEntryConfig",ESRI_DYNAMIC:"https://cgpv/schema#/definitions/EsriDynamicLayerEntryConfig",ESRI_FEATURE:"https://cgpv/schema#/definitions/EsriFeatureLayerEntryConfig",ESRI_IMAGE:"https://cgpv/schema#/definitions/EsriImageLayerEntryConfig",IMAGE_STATIC:"https://cgpv/schema#/definitions/ImageStaticLayerEntryConfig",GEOJSON:"https://cgpv/schema#/definitions/VectorLayerEntryConfig",GEOPACKAGE:"https://cgpv/schema#/definitions/VectorLayerEntryConfig",XYZ_TILES:"https://cgpv/schema#/definitions/TileLayerEntryConfig",VECTOR_TILES:"Thttps://cgpv/schema#/definitions/TileLayerEntryConfig",OGC_FEATURE:"https://cgpv/schema#/definitions/VectorLayerEntryConfig",WFS:"https://cgpv/schema#/definitions/VectorLayerEntryConfig",WMS:"https://cgpv/schema#/definitions/OgcWmsLayerEntryConfig"},s={CSV:"",ESRI_DYNAMIC:"https://cgpv/schema#/definitions/EsriDynamicLayerConfig",ESRI_FEATURE:"https://cgpv/schema#/definitions/EsriFeatureLayerConfig",ESRI_IMAGE:"",IMAGE_STATIC:"",GEOJSON:"",GEOPACKAGE:"",XYZ_TILES:"",VECTOR_TILES:"",OGC_FEATURE:"",WFS:"",WMS:""},l="https://cgpv/schema#/definitions/MapFeatureConfig",c="https://cgpv/schema#/definitions/TypeLayerGroupEntryConfig",u=["1.0"],d=["en","fr"],h=["dark","light","geo.ca"],p=[3978,3857],f=["transport","osm","simple","nogeom","shaded"],g={3857:f,3978:f},m={3857:[!0,!1],3978:[!0,!1]},y={3857:[!0,!1],3978:[!0,!1]},v={3857:{lat:[-90,90],long:[-180,180]},3978:{lat:[40,90],long:[-140,40]}},b={3857:[-170,35,-20,84],3978:[-135,25,-50,89]},x={3857:[-90,55],3978:[-90,60]},w=(0,r.K)({map:{basemapOptions:{basemapId:"transport",shaded:!0,labeled:!0},interaction:"dynamic",listOfGeoviewLayerConfig:[],highlightColor:"black",viewSettings:{initialView:{zoomAndCenter:[3.5,x[3978]]},enableRotation:!0,rotation:0,minZoom:0,maxZoom:50,maxExtent:b[3978],projection:3978},extraOptions:{}},theme:"geo.ca",navBar:["zoom","fullscreen","home"],footerBar:{tabs:{core:["legend","layers","details","data-table"],custom:[]},collapsed:!1},components:["north-arrow","overview-map"],appBar:{tabs:{core:["geolocator"]}},corePackages:[],overviewMap:{hideOnZoom:0},externalPackages:[],serviceUrls:{geocoreUrl:"https://geocore.api.geo.ca",geolocator:"https://geolocator.api.geo.ca?keys=geonames,nominatim,locate",proxyUrl:"https://maps.canada.ca/wmsproxy/ws/wmsproxy/executeFromProxy"},schemaVersionUsed:"1.0"}),A={controls:{highlight:!0,hover:!0,opacity:!0,query:!1,remove:!0,table:!0,visibility:!0,zoom:!0},states:{visible:!0,opacity:1,hoverable:!0,queryable:!1}},S=["geolocator","legend","layers","details","data-table","guide"],C={GEOLOCATOR:"geolocator",EXPORT:"export",GUIDE:"guide",DETAILS:"details",LEGEND:"legend",DATA_TABLE:"data-table",LAYERS:"layers"}},86891:(e,t,n)=>{"use strict";n.d(t,{K:()=>i,N:()=>o});var r=n(31625);function i(e){return e}function o(e){if(!(e instanceof Object)||e instanceof Array)throw new Error("Can't convert parameter to TypeJsonObject! typeof = ".concat((0,r.A)(e)));return e}},37189:(e,t,n)=>{"use strict";n.d(t,{F:()=>g});var r=n(43994),i=n(28249),o=n(70640),a=n(32814),s=n(59615),l=n.n(s),c=n(58643),u=n(60854),d=n(79913);function h(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}function p(e,t){return e.get(function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(e,t))}var f=new WeakMap,g=function(){return(0,a.A)((function e(){(0,o.A)(this,e),h(this,f,[])}),[{key:"initialize",value:function(e){var t,n=this.onInitialize(e);n&&(t=p(f,this)).push.apply(t,(0,i.A)(n))}},{key:"onInitialize",value:function(e){}},{key:"destroy",value:function(){this.onDestroy()}},{key:"onDestroy",value:function(){p(f,this).forEach((function(e){return e()}))}}],[{key:"getState",value:function(e){return(0,c.Ic)(e).getState()}},{key:"getStateAsync",value:(t=(0,r.A)(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.gU)(t);case 2:return n=e.sent,e.abrupt("return",n.getState());case 4:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"helperPropagateArrayStoreBatch",value:(e=(0,r.A)(l().mark((function e(t,n,r,i,o,a,s,c){var h,p,f;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u.vF.logTraceDetailed("propagateArrayStoreBatch",t,a),r[t]||(r[t]=[]),r[t].push(n),s&&(h=n.find((function(e){return e.layerPath===s}))),p=!1,h&&("processed"!==h.queryStatus&&"error"!==h.queryStatus||(p=!0,null==c||c(""))),p){e.next=9;break}return e.next=9,(0,d.delay)(i);case 9:r[t].length&&(f=r[t][r[t].length-1],o(f),r[t]=[]);case 10:case"end":return e.stop()}}),e)}))),function(t,n,r,i,o,a,s,l){return e.apply(this,arguments)})}]);var e,t}()},92288:(e,t,n)=>{"use strict";n.d(t,{K:()=>b});var r=n(43994),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(59615),d=n.n(u),h=n(37189),p=n(79913),f=n(26098),g=n(98030),m=n(60854);function y(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,v()?Reflect.construct(t,n||[],(0,l.A)(e).constructor):t.apply(e,n))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}var b=function(e){function t(){return(0,i.A)(this,t),y(this,t,arguments)}return(0,c.A)(t,e),(0,o.A)(t,null,[{key:"getAppState",value:function(e){return(0,s.A)((0,l.A)(t),"getState",this).call(this,e).appState}},{key:"getAppStateAsync",value:(u=(0,r.A)(d().mark((function e(n){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.A)((0,l.A)(t),"getStateAsync",this).call(this,n);case 2:return e.abrupt("return",e.sent.appState);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"getDisplayLanguage",value:function(e){return this.getAppState(e).displayLanguage}},{key:"getDisplayTheme",value:function(e){return this.getAppState(e).displayTheme}},{key:"addNotification",value:(a=(0,r.A)(d().mark((function e(t,n){var r,i,o;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAppStateAsync(t);case 2:r=e.sent,i=r.notifications,(o=i.find((function(e){return e.message===n.message&&e.notificationType===n.notificationType})))?o.count+=1:i.push({key:n.key,notificationType:n.notificationType,message:n.message,count:1}),this.getAppState(t).setterActions.setNotifications(i);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"removeNotification",value:function(e,t){var n=this.getAppState(e).notifications.filter((function(e){return e.key!==t}));this.getAppState(e).setterActions.setNotifications(n)}},{key:"setAppIsCrosshairActive",value:function(e,t){this.getAppState(e).setterActions.setCrosshairActive(t)}},{key:"setDisplayLanguage",value:function(e,n){this.getAppState(e).setterActions.setDisplayLanguage(n);var r=g.d.resetBasemap(e),i=t.setGuide(e);return Promise.all([r,i])}},{key:"setDisplayTheme",value:function(e,t){this.getAppState(e).setterActions.setDisplayTheme(t)}},{key:"setFullscreen",value:function(e,t,n){this.getAppState(e).setterActions.setFullScreenActive(t),void 0!==n&&f.F.setFullscreen(t,n)}},{key:"setCircularProgress",value:function(e,t){this.getAppState(e).setterActions.setCircularProgress(t)}},{key:"setGuide",value:(n=(0,r.A)(d().mark((function e(n){var r,i;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m.vF.logMarkerStart("map-guide"),r=t.getDisplayLanguage(n),e.next=4,(0,p.createGuideObject)(n,r,this.getAppState(n).geoviewAssetsURL);case 4:void 0!==(i=e.sent)&&this.getAppState(n).setterActions.setGuide(i),m.vF.logMarkerCheck("map-guide","for guide to be loaded");case 7:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})}]);var n,a,u}(h.F)},38890:(e,t,n)=>{"use strict";n.d(t,{F:()=>g});var r=n(28249),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(37189),d=n(60854),h=n(98030);function p(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,f()?Reflect.construct(t,n||[],(0,l.A)(e).constructor):t.apply(e,n))}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}var g=function(e){function t(){return(0,i.A)(this,t),p(this,t,arguments)}return(0,c.A)(t,e),(0,o.A)(t,null,[{key:"getDataTableState",value:function(e){return(0,s.A)((0,l.A)(t),"getState",this).call(this,e).dataTableState}},{key:"applyFilters",value:function(e,t,n,r){var i=h.d.getMapViewerLayerAPI(e).getGeoviewLayerHybrid(t),o=null==i?void 0:i.getLayerConfig(t);r&&void 0!==o&&n.length?null==i||i.applyViewFilter(t,n):null==i||i.applyViewFilter(t,"")}},{key:"setInitialSettings",value:function(e,t){this.getDataTableState(e).setterActions.setInitiallayerDataTableSetting(t)}},{key:"triggerGetAllFeatureInfo",value:function(e,t){return h.d.getMapViewerLayerAPI(e).allFeatureInfoLayerSet.queryLayer(t,"all")}},{key:"propagateFeatureInfoToStore",value:function(e,t){var n=(0,r.A)(this.getDataTableState(e).allFeaturesDataArray);n.find((function(e){return e.layerPath===t.layerPath}))||n.push(t),this.getDataTableState(e).setterActions.setAllFeaturesDataArray(n)}},{key:"deleteFeatureAllInfo",value:function(e,n){var r=this;(function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")})(t,this,m).call(this,this.getDataTableState(e).allFeaturesDataArray,n,(function(t){r.getDataTableState(e).setterActions.setAllFeaturesDataArray(t),d.vF.logInfo("Removed Data Table Info in stores for layer path:",n)}))}}])}(u.F);function m(e,t,n){var r=e.findIndex((function(e){return e.layerPath===t}));r>=0&&(e.splice(r,1),n(e))}},77914:(e,t,n)=>{"use strict";n.d(t,{h:()=>y});var r,i=n(28249),o=n(70640),a=n(32814),s=n(71149),l=n(66138),c=n(99979),u=n(38096),d=n(60854),h=n(37189),p=n(38829);function f(e,t,n){return t=(0,c.A)(t),(0,s.A)(e,g()?Reflect.construct(t,n||[],(0,c.A)(e).constructor):t.apply(e,n))}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}function m(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var y=function(e){function t(){return(0,o.A)(this,t),f(this,t,arguments)}return(0,u.A)(t,e),(0,a.A)(t,[{key:"onInitialize",value:function(e){return[e.subscribe((function(e){return e.detailsState.layerDataArray}),(function(n){d.vF.logTraceCoreStoreSubscription("FEATURE-INFO EVENT PROCESSOR - layerDataArray",n),b.call(t,e.getState().mapId,n).catch((function(e){d.vF.logPromiseFailed("propagateFeatureInfoToStoreBatch in layerDataArrayUpdateBatch subscribe in feature-info-event-processor",e)}))}))]}}],[{key:"getFeatureInfoState",value:function(e){return(0,l.A)((0,c.A)(t),"getState",this).call(this,e).detailsState}},{key:"deleteFeatureInfo",value:function(e,n){var r=this.getFeatureInfoState(e);m(t,this,v).call(this,r.layerDataArray,n,(function(e){r.setterActions.setLayerDataArray(e),d.vF.logInfo("Removed Feature Info in stores for layer path:",n)}))}},{key:"propagateFeatureInfoToStore",value:function(e,t,n){var r=this.getFeatureInfoState(e),o=(0,i.A)(r.layerDataArray);if(o.find((function(e){return e.layerPath===n.layerPath}))||o.push(n),"click"===t){var a=o.find((function(e){var t;return!(null===(t=e.features)||void 0===t||!t.length)}))||!1;r.setterActions.setLayerDataArray(o),a&&(["details","geochart"].includes(p.d.getActiveFooterBarTab(e))||p.d.setActiveFooterBarTab(e,"details"),p.d.getAppBarComponents(e).includes("details")&&p.d.setActiveAppBarTab(e,"AppbarPanelButtonDetails","details",!0))}else"name"===t&&r.setterActions.setLayerDataArray(o);return Promise.resolve()}}])}(h.F);function v(e,t,n){var r=e.findIndex((function(e){return e.layerPath===t}));r>=0&&(e.splice(r,1),n(e))}function b(e,t){var n=this.getFeatureInfoState(e);return this.helperPropagateArrayStoreBatch(e,t,m(r,this,x)._,m(r,this,w)._,n.setterActions.setLayerDataArrayBatch,"feature-info-processor",n.layerDataArrayBatchLayerPathBypass,n.setterActions.setLayerDataArrayBatchLayerPathBypass)}r=y;var x={_:{}},w={_:1e3}},80084:(e,t,n)=>{"use strict";n.d(t,{U:()=>y});var r,i=n(64426),o=n(70640),a=n(32814),s=n(71149),l=n(66138),c=n(99979),u=n(38096),d=n(60854);function h(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 p(e){for(var t=1;t{"use strict";n.d(t,{K:()=>A});var r,i=n(47361),o=n(70640),a=n(32814),s=n(71149),l=n(66138),c=n(99979),u=n(38096),d=n(18260),h=n.n(d),p=n(85813),f=n(79913),g=n(37189),m=n(48660),y=n(92288),v=n(98030);function b(e,t,n){return t=(0,c.A)(t),(0,s.A)(e,x()?Reflect.construct(t,n||[],(0,c.A)(e).constructor):t.apply(e,n))}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x=function(){return!!e})()}function w(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var A=function(e){function t(){return(0,o.A)(this,t),b(this,t,arguments)}return(0,u.A)(t,e),(0,a.A)(t,null,[{key:"getLayerState",value:function(e){return(0,l.A)((0,c.A)(t),"getState",this).call(this,e).layerState}},{key:"getLayerIconImage",value:function(e){var t=[];if(e){if((0,p.XY)(e)||(0,p.Bq)(e)){var n={iconType:"simple"};e.legend?n.iconImage=e.legend.toDataURL():e.styles&&e.styles[0].legend?n.iconImage=e.styles[0].legend.toDataURL():n.iconImage="no data",t.push(n)}else null===e.legend||0===Object.keys(e.legend).length?t[0]={iconImage:"no data"}:(0,p.FB)(e)&&Object.entries(e.legend).forEach((function(n){var r=(0,i.A)(n,2),o=r[0],a=r[1],s=o,l=e.styleConfig[s],c={};if(c.geometryType=s,(0,m.s0)(l)){c.iconType="simple",c.iconImage=a.defaultCanvas.toDataURL(),c.name=l.label;var u={geometryType:s,icon:c.iconImage,name:c.name,isVisible:!0};c.iconList=[u],t.push(c)}else{var d;if(c.iconType="list",(0,m.$h)(l)){if(c.iconList=a.arrayOfCanvas.map((function(e,t){return{geometryType:s,icon:e?e.toDataURL():null,name:l.classBreakStyleInfo[t].label,isVisible:l.classBreakStyleInfo[t].visible}})),a.defaultCanvas){var h={geometryType:s,icon:a.defaultCanvas.toDataURL(),name:l.defaultLabel,isVisible:l.defaultVisible};c.iconList.push(h)}}else if((0,m.IG)(l)&&(c.iconList=a.arrayOfCanvas.map((function(e,t){return{geometryType:s,icon:e?e.toDataURL():null,name:l.uniqueValueStyleInfo[t].label,isVisible:!1!==l.uniqueValueStyleInfo[t].visible}})),a.defaultCanvas)){var p={geometryType:s,icon:a.defaultCanvas.toDataURL(),name:l.defaultLabel,isVisible:l.defaultVisible};c.iconList.push(p)}null!==(d=c.iconList)&&void 0!==d&&d.length&&(c.iconImage=c.iconList[0].icon),c.iconList&&c.iconList.length>1&&(c.iconImageStacked=c.iconList[1].icon),t.push(c)}}));return t}}},{key:"propagateLegendToStore",value:function(e,n){var r=n.layerPath,i=r.split("/"),o=function(e){var t,n,r,i,o,a,s,l,c,u,d,h,p,f,g,m;return{highlight:void 0===(null===(t=e.initialSettings)||void 0===t||null===(t=t.controls)||void 0===t?void 0:t.highlight)||(null===(n=e.initialSettings)||void 0===n||null===(n=n.controls)||void 0===n?void 0:n.highlight),hover:void 0===(null===(r=e.initialSettings)||void 0===r||null===(r=r.controls)||void 0===r?void 0:r.hover)||(null===(i=e.initialSettings)||void 0===i||null===(i=i.controls)||void 0===i?void 0:i.hover),opacity:void 0===(null===(o=e.initialSettings)||void 0===o||null===(o=o.controls)||void 0===o?void 0:o.opacity)||(null===(a=e.initialSettings)||void 0===a||null===(a=a.controls)||void 0===a?void 0:a.opacity),query:void 0===(null===(s=e.initialSettings)||void 0===s||null===(s=s.controls)||void 0===s?void 0:s.query)||(null===(l=e.initialSettings)||void 0===l||null===(l=l.controls)||void 0===l?void 0:l.query),remove:void 0===(null===(c=e.initialSettings)||void 0===c||null===(c=c.controls)||void 0===c?void 0:c.remove)||(null===(u=e.initialSettings)||void 0===u||null===(u=u.controls)||void 0===u?void 0:u.remove),table:void 0===(null===(d=e.initialSettings)||void 0===d||null===(d=d.controls)||void 0===d?void 0:d.table)||(null===(h=e.initialSettings)||void 0===h||null===(h=h.controls)||void 0===h?void 0:h.table),visibility:void 0===(null===(p=e.initialSettings)||void 0===p||null===(p=p.controls)||void 0===p?void 0:p.visibility)||(null===(f=e.initialSettings)||void 0===f||null===(f=f.controls)||void 0===f?void 0:f.visibility),zoom:void 0===(null===(g=e.initialSettings)||void 0===g||null===(g=g.controls)||void 0===g?void 0:g.zoom)||(null===(m=e.initialSettings)||void 0===m||null===(m=m.controls)||void 0===m?void 0:m.zoom)}},a=this.getLayerState(e).legendLayers;!function a(s,l){if(!(i.length0){var o=t.findLayerByPath(e.children,n);o&&(r=o)}})),r}},{key:"deleteLayerFromLegendLayers",value:function(e,n){var r=this.getLayerState(e).legendLayers;S.call(t,e,r,n)}},{key:"deleteLayer",value:function(e,t){v.d.getMapViewerLayerAPI(e).removeLayerUsingPath(t)}},{key:"setItemVisibility",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.getLayerState(e).legendLayers;t.isVisible=n,this.getLayerState(e).setterActions.setLegendLayers(r)}},{key:"toggleItemVisibility",value:function(e,t,n){v.d.getMapViewerLayerAPI(e).setItemVisibility(t,n,!n.isVisible)}},{key:"setAllItemsVisibility",value:function(e,t,n){v.d.setOrToggleMapLayerVisibility(e,t,!0);var r=this.getLayerState(e).legendLayers,i=this.findLayerByPath(r,t);i&&i.items.forEach((function(r){v.d.getMapViewerLayerAPI(e).setItemVisibility(t,r,n,!1),r.isVisible=n})),this.getLayerState(e).setterActions.setLegendLayers(r)}},{key:"setLayerOpacity",value:function(e,n,r){var i=this.getLayerState(e).legendLayers,o=t.findLayerByPath(i,n);o&&(o.opacity=r,w(t,this,C).call(this,e,o,r)),this.getLayerState(e).setterActions.setLegendLayers(i)}}])}(g.F);function S(e,t,n){var i=t.findIndex((function(e){return e.layerPath===n}));i>=0?t.splice(i,1):t.forEach((function(t){t.children&&t.children.length>0&&S.call(r,e,t.children,n)}))}function C(e,t,n){var i,o=this,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];h()(t,"opacity",n),null===(i=v.d.getMapViewerLayerAPI(e).getGeoviewLayer(t.layerPath))||void 0===i||i.setOpacity(n,t.layerPath),a&&h()(t,"opacityFromParent",n),t.children&&t.children.length>0&&t.children.forEach((function(t){w(r,o,C).call(o,e,t,n,!0)}))}r=A},98030:(e,t,n)=>{"use strict";n.d(t,{d:()=>D});var r=n(47361),i=n(43994),o=n(28249),a=n(70640),s=n(32814),l=n(71149),c=n(99979),u=n(38096),d=n(64426),h=n(59615),p=n.n(h),f=n(55731),g=n(99423),m=n(34336);const y="units",v=[1,2,5],b=25.4/.28;class x extends f.A{constructor(e){e=e||{};const t=document.createElement("div");t.style.pointerEvents="none",super({element:t,render:e.render,target:e.target}),this.on,this.once,this.un;const n=void 0!==e.className?e.className:e.bar?"ol-scale-bar":"ol-scale-line";this.innerElement_=document.createElement("div"),this.innerElement_.className=n+"-inner",this.element.className=n+" "+g.XI,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=void 0!==e.minWidth?e.minWidth:64,this.maxWidth_=e.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",this.addChangeListener(y,this.handleUnitsChanged_),this.setUnits(e.units||"metric"),this.scaleBar_=e.bar||!1,this.scaleBarSteps_=e.steps||4,this.scaleBarText_=e.text||!1,this.dpi_=e.dpi||void 0}getUnits(){return this.get(y)}handleUnitsChanged_(){this.updateElement_()}setUnits(e){this.set(y,e)}setDpi(e){this.dpi_=e}updateElement_(){const e=this.viewState_;if(!e)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const t=e.center,n=e.projection,r=this.getUnits(),i="degrees"==r?"degrees":"m";let o=(0,m.hO)(n,e.resolution,t,i);const a=this.minWidth_*(this.dpi_||b)/b,s=void 0!==this.maxWidth_?this.maxWidth_*(this.dpi_||b)/b:void 0;let l=a*o,c="";if("degrees"==r){const e=m.Ig.degrees;l*=e,l=s){u=p,d=f,h=g;break}if(d>=a)break;p=u,f=d,g=h,++y}const x=this.scaleBar_?this.createScaleBar(d,u,c):u.toFixed(h<0?-h:0)+" "+c;this.renderedHTML_!=x&&(this.innerElement_.innerHTML=x,this.renderedHTML_=x),this.renderedWidth_!=d&&(this.innerElement_.style.width=d+"px",this.renderedWidth_=d),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}createScaleBar(e,t,n){const r=this.getScaleForResolution(),i=r<1?Math.round(1/r).toLocaleString()+" : 1":"1 : "+Math.round(r).toLocaleString(),o=this.scaleBarSteps_,a=e/o,s=[this.createMarker("absolute")];for(let r=0;r`+this.createMarker("relative")+(r%2==0||2===o?this.createStepText(r,e,!1,t,n):"")+"")}s.push(this.createStepText(o,e,!0,t,n));return(this.scaleBarText_?``+i+"
":"")+s.join("")}createMarker(e){return``}createStepText(e,t,n,r,i){const o=(0===e?0:Math.round(r/this.scaleBarSteps_*e*100)/100)+(0===e?"":" "+i);return``+o+"
"}getScaleForResolution(){return(0,m.hO)(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,"m")*(1e3/25.4)*(this.dpi_||b)}render(e){const t=e.frameState;this.viewState_=t?t.viewState:null,this.updateElement_()}}const w=x;var A,S=n(8584),C=n(11989),E=n(8259),_=n(86784),k=n(58368),T=n(85813),O=n(12311),P=n(58643),I=n(46457),M=n(60854),L=n(79913),R=n(92288);function j(e,t,n){return t=(0,c.A)(t),(0,l.A)(e,F()?Reflect.construct(t,n||[],(0,c.A)(e).constructor):t.apply(e,n))}function F(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(F=function(){return!!e})()}var D=function(e){function t(){return(0,a.A)(this,t),j(this,t,arguments)}return(0,u.A)(t,e),(0,s.A)(t,[{key:"onInitialize",value:function(e){var n=e.getState().mapId;return[e.subscribe((function(e){return e.mapState.highlightedFeatures}),(function(e,r){if(M.vF.logTraceCoreStoreSubscription("MAP EVENT PROCESSOR - highlightedFeatures",n,e),0===e.length)t.getMapViewerLayerAPI(n).featureHighlight.removeHighlight("all");else{for(var i=e.map((function(e){return e.geometry.ol_uid})),o=r.map((function(e){return e.geometry.ol_uid})),a=e.filter((function(e){return!o.includes(e.geometry.ol_uid)})),s=r.filter((function(e){return!i.includes(e.geometry.ol_uid)})),l=0;l2&&void 0!==arguments[2]?arguments[2]:I.Xl;this.getMapViewer(e).map.getView().animate({zoom:t,duration:n})}},{key:"getMapOrderedLayerInfo",value:function(e){return this.getMapStateProtected(e).orderedLayerInfo}},{key:"getMapIndexFromOrderedLayerInfo",value:function(e,t){for(var n=this.getMapStateProtected(e).orderedLayerInfo,r=0;r0;)(d+=r)===a.length||0===d?i=0:a[d].layerPath.split("/").length===h&&i--;a.splice.apply(a,[d,0].concat((0,o.A)(u))),this.setMapOrderedLayerInfo(e,a)}},{key:"replaceOrderedLayerInfo",value:function(e,t,n){var r=this.getMapStateProtected(e).orderedLayerInfo,i=t.geoviewLayerId?"".concat(t.geoviewLayerId,"/").concat(t.geoviewLayerId):t.layerPath,a=this.getMapIndexFromOrderedLayerInfo(e,n||i),s=r.filter((function(e){return e.layerPath.startsWith(n||i)})),l=k.A.generateArrayOfLayerOrderInfo(t);r.splice.apply(r,[a,s.length].concat((0,o.A)(l))),this.setMapOrderedLayerInfo(e,r)}},{key:"addOrderedLayerInfo",value:function(e,t,n){var r=this.getMapStateProtected(e).orderedLayerInfo,i=k.A.generateArrayOfLayerOrderInfo(t);n?r.splice.apply(r,[n,0].concat((0,o.A)(i))):r.unshift.apply(r,(0,o.A)(i)),this.setMapOrderedLayerInfo(e,r)}},{key:"removeOrderedLayerInfo",value:function(e,t){var n=this.getMapStateProtected(e).orderedLayerInfo.filter((function(e){return!e.layerPath.startsWith(t)}));this.setMapOrderedLayerInfo(e,n)}},{key:"createOverviewMapBasemap",value:function(e){return this.getMapViewer(e).basemap.getOverviewMap()}},{key:"resetBasemap",value:function(e){var t=R.K.getDisplayLanguage(e),n=this.getMapState(e).currentProjection;return this.getMapViewer(e).basemap.loadDefaultBasemaps(n,t)}},{key:"setMapKeyboardPanInteractions",value:function(e,t){var n=this.getMapViewer(e).map;n.getInteractions().forEach((function(e){e instanceof C.A&&n.removeInteraction(e)})),n.addInteraction(new C.A({pixelDelta:t}))}},{key:"setMapOverviewMapRoot",value:function(e,t){this.getMapViewer(e).overviewRoot=t}},{key:"zoomToExtent",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{padding:[100,100,100,100],maxZoom:11,duration:1e3};return this.getMapViewer(e).getView().fit(t,n),new Promise((function(e){setTimeout((function(){e()}),(n.duration||1e3)+150)}))}},{key:"zoomToGeoLocatorLocation",value:(n=(0,i.A)(p().mark((function e(t,n,r){var i,a,s,l,c,u,d,h,f;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(i=document.getElementsByClassName("ol-overviewmap-box"),a=0;a{"use strict";n.d(t,{Z:()=>p});var r=n(28249),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(60854);function d(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,h()?Reflect.construct(t,n||[],(0,l.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var p=function(e){function t(){return(0,i.A)(this,t),d(this,t,arguments)}return(0,c.A)(t,e),(0,o.A)(t,null,[{key:"getSwiperState",value:function(e){return(0,s.A)((0,l.A)(t),"getState",this).call(this,e).swiperState}},{key:"setLayerPaths",value:function(e,t){var n;null===(n=this.getSwiperState(e))||void 0===n||n.setterActions.setLayerPaths(t),u.vF.logInfo("Added Swiper functionality for layer paths:",t)}},{key:"addLayerPath",value:function(e,t){var n;if(this.getSwiperState(e)&&null!==(n=this.getSwiperState(e))&&void 0!==n&&n.layerPaths)if(this.getSwiperState(e).layerPaths.includes(t))u.vF.logInfo("Swiper functionality already active for layer path:",t);else{var i=(0,r.A)(this.getSwiperState(e).layerPaths);i.push(t),this.getSwiperState(e).setterActions.setLayerPaths(i),u.vF.logInfo("Added Swiper functionality for layer path:",t)}}},{key:"removeLayerPath",value:function(e,t){var n;if(this.getSwiperState(e)&&null!==(n=this.getSwiperState(e))&&void 0!==n&&n.layerPaths){var i=this.getSwiperState(e).layerPaths.findIndex((function(e){return e===t}));if(void 0!==i&&i>=0){var o=(0,r.A)(this.getSwiperState(e).layerPaths);o.splice(i,1),this.getSwiperState(e).setterActions.setLayerPaths(o),u.vF.logInfo("Removed Swiper functionality for layer path:",t)}else u.vF.logInfo("Swiper functionality already inactive for layer path:",t)}}},{key:"removeAll",value:function(e){var t;if(this.getSwiperState(e)&&null!==(t=this.getSwiperState(e))&&void 0!==t&&t.layerPaths){var n=this.getSwiperState(e).layerPaths;this.getSwiperState(e).setterActions.setLayerPaths([]),u.vF.logInfo("Removed Swiper functionality for all layer paths",n)}}}])}(n(37189).F)},6106:(e,t,n)=>{"use strict";n.d(t,{t:()=>x});var r=n(64426),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(37189),d=n(79913),h=n(30560),p=n(21838),f=n(92288),g=n(98030),m=n(64873),y=n(82015);function v(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,b()?Reflect.construct(t,n||[],(0,l.A)(e).constructor):t.apply(e,n))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}var x=function(e){function t(){return(0,i.A)(this,t),v(this,t,arguments)}return(0,c.A)(t,e),(0,o.A)(t,null,[{key:"getTimesliderState",value:function(e){return(0,s.A)((0,l.A)(t),"getState",this).call(this,e).timeSliderState}},{key:"checkInitTimeSliderLayerAndApplyFilters",value:function(e,t){if(this.getTimesliderState(e)){var n=this.getInitialTimeSliderValues(e,t);n&&this.addTimeSliderLayerAndApplyFilters(e,t.layerPath,n)}}},{key:"addTimeSliderLayerAndApplyFilters",value:function(e,t,n){var i;if(this.getTimesliderState(e)){var o=(0,r.A)({},t,n);null===(i=this.getTimesliderState(e))||void 0===i||i.setterActions.addTimeSliderLayer(o);var a=o[t],s=a.defaultValue,l=a.field,c=a.filtering,u=a.minAndMax,d=a.values;this.applyFilters(e,t,s,l,c,u,d)}}},{key:"removeTimeSliderLayer",value:function(e,t){var n;null===(n=this.getTimesliderState(e))||void 0===n||n.setterActions.removeTimeSliderLayer(t)}},{key:"getInitialTimeSliderValues",value:function(e,t){var n,r;if(t.layerPath){var i=g.d.getMapViewerLayerAPI(e).getGeoviewLayerHybrid(t.layerPath).getTemporalDimension(t.layerPath);if(i&&i.range){var o,a,s=i.range.range,l=Array.isArray(i.default),c=l?i.default[0]:i.default,u=[new Date(s[0]).getTime(),new Date(s[s.length-1]).getTime()],h=i.field,p=i.singleHandle,m=i.nearestValues,y=h,v=t.source.featureInfo;if(v){var b,x,w=v,A=w.aliasFields,S=w.outfields;a=null===(b=(0,d.getLocalizedValue)(S,f.K.getDisplayLanguage(e)))||void 0===b?void 0:b.split(","),o=null===(x=(0,d.getLocalizedValue)(A,f.K.getDisplayLanguage(e)))||void 0===x?void 0:x.split(",")}var C=a?a.indexOf(h):-1;return-1!==C&&o&&a&&(null===(n=o)||void 0===n?void 0:n.length)===(null===(r=a)||void 0===r?void 0:r.length)&&(y=o[C]),{range:s,defaultValue:c,discreteValues:"discrete"===m,minAndMax:u,field:h,fieldAlias:y,singleHandle:p,filtering:!0,values:p?[new Date(i.default).getTime()]:l?[new Date(i.default[0]).getTime(),new Date(i.default[1]).getTime()]:[].concat(u),delay:1e3,locked:void 0,reversed:void 0}}}}},{key:"applyFilters",value:function(e,t,n,r,i,o,a){var s,l,c=g.d.getMapViewerLayerAPI(e).getGeoviewLayerHybrid(t);if(c instanceof h.GB||c instanceof m.V)if(i){var u="".concat(new Date(a[0]).toISOString().slice(0,new Date(a[0]).toISOString().length-5),"Z"),d="".concat(r,"=date '").concat(u,"'");c.applyViewFilter(t,d)}else{var f="".concat(r,"=date '").concat(n,"'");c.applyViewFilter(t,f)}else if(c instanceof p.$x||c instanceof y.o)if(i){var v="time=".concat(o[0],",").concat(a[0]);c.applyViewFilter(t,v)}else{var b="time=".concat(o[0],",").concat(n);c.applyViewFilter(t,b)}else if(i){var x="".concat(r," >= date '").concat(new Date(a[0]).toISOString(),"'");a.length>1&&(x+=" and ".concat(r," <= date '").concat(new Date(a[1]).toISOString(),"'")),c.applyViewFilter(t,x)}else{var w="".concat(r," >= date '").concat(new Date(o[0]).toISOString(),"'");a.length>1&&(w+="and ".concat(r," <= date '").concat(new Date(o[1]).toISOString(),"'")),c.applyViewFilter(t,w)}null===(s=this.getTimesliderState(e))||void 0===s||s.setterActions.setFiltering(t,i),null===(l=this.getTimesliderState(e))||void 0===l||l.setterActions.setValues(t,a)}}])}(u.F)},38829:(e,t,n)=>{"use strict";n.d(t,{d:()=>d});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096);function c(e,t,n){return t=(0,s.A)(t),(0,o.A)(e,u()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}var d=function(e){function t(){return(0,r.A)(this,t),c(this,t,arguments)}return(0,l.A)(t,e),(0,i.A)(t,null,[{key:"getUIState",value:function(e){return(0,a.A)((0,s.A)(t),"getState",this).call(this,e).uiState}},{key:"getActiveFooterBarTab",value:function(e){return this.getUIState(e).activeFooterBarTabId}},{key:"getAppBarComponents",value:function(e){return this.getUIState(e).appBarComponents}},{key:"getCorePackageComponents",value:function(e){return this.getUIState(e).corePackagesComponents}},{key:"setActiveFooterBarTab",value:function(e,t){this.getUIState(e).setterActions.setActiveFooterBarTab(t)}},{key:"setActiveAppBarTab",value:function(e,t,n,r){this.getUIState(e).setterActions.setActiveAppBarTab(t,n,r)}},{key:"getActiveAppBarTab",value:function(e){return this.getUIState(e).activeAppBarTab}}])}(n(37189).F)},16221:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(70640),i=n(32814),o=function(){return(0,i.A)((function e(){(0,r.A)(this,e)}),null,[{key:"emitEvent",value:function(e,t,n){t.forEach((function(t){return t(e,n)}))}},{key:"onEvent",value:function(e,t){e.push(t)}},{key:"offEvent",value:function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}}])}()},50196:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});var r=n(70640),i=n(32814),o=n(64426),a=n(60854),s=function(){return(0,i.A)((function e(t,n){(0,r.A)(this,e),(0,o.A)(this,"pluginId",void 0),(0,o.A)(this,"pluginProps",void 0),(0,o.A)(this,"configObj",void 0),(0,o.A)(this,"api",void 0),(0,o.A)(this,"react",void 0),(0,o.A)(this,"translate",void 0),(0,o.A)(this,"useTheme",void 0),this.pluginId=t,this.pluginProps=n}),[{key:"mapViewer",value:function(){return this.api.maps[this.pluginProps.mapId]}},{key:"displayLanguage",value:function(){var e;return(null===(e=this.translate)||void 0===e?void 0:e.getI18n().language)||"en"}},{key:"added",value:function(){var e;window.cgpv&&(a.vF.logInfo("Plugin ".concat(this.pluginId," loaded, adding it on map ").concat(this.pluginProps.mapId)),this.onAdd(),null===(e=this.onAdded)||void 0===e||e.call(this),a.vF.logInfo("Plugin ".concat(this.pluginId," loaded, and added to map ").concat(this.pluginProps.mapId)))}},{key:"removed",value:function(){var e;window.cgpv&&(a.vF.logInfo("Plugin ".concat(this.pluginId," being removed from map ").concat(this.pluginProps.mapId)),this.onRemove(),null===(e=this.onRemoved)||void 0===e||e.call(this),a.vF.logInfo("Plugin ".concat(this.pluginId," removed from map ").concat(this.pluginProps.mapId)))}}])}()},90763:(e,t,n)=>{"use strict";n.d(t,{k:()=>x});var r=n(31625),i=n(43994),o=n(70640),a=n(32814),s=n(64426),l=n(59615),c=n.n(l),u=n(30538),d=n(65868),h=n(43331),p=n(94145),f=n(58839),g=n.n(f),m=n(79913),y=n(86784),v=n(60854),b=n(98030),x=function(){function e(){(0,o.A)(this,e),(0,s.A)(this,"pluginsLoaded",!1)}return(0,a.A)(e,null,[{key:"loadScript",value:function(e){return new Promise((function(t,n){if(document.getElementById(e))(0,m.whenThisThen)((function(){var t;return null===(t=window.geoviewPlugins)||void 0===t?void 0:t[e]})).then((function(){t(window.geoviewPlugins[e])})).catch((function(e){n(e)}));else{var r=(0,m.getScriptAndAssetURL)(),i=document.createElement("script");i.src="".concat(r,"/corePackages/geoview-").concat(e,".js"),i.id=e,document.body.appendChild(i),i.onload=function(){t(window.geoviewPlugins[e])},i.onerror=function(){t(null)}}}))}},{key:"addPlugin",value:(l=(0,i.A)(c().mark((function e(t,n,i,o){var a,s,l,f,m,x,w,A,S,C,E,_,k,T,O;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b.d.getMapViewerPlugins(n);case 2:if((a=e.sent)[t]){e.next=34;break}if(s=null,i&&(s=new i(t,o)),!s){e.next=34;break}if(l={},!s.schema||!s.defaultConfig){e.next=30;break}if(m=s.schema(),x=s.defaultConfig(),w=new(g())({strict:!1,allErrors:!0}),A=w.compile(m),l=x,!(S=null===(f=document.getElementById(n))||void 0===f?void 0:f.getAttribute("data-config-url"))){e.next=28;break}return C="".concat(S.split(".json")[0],"-").concat(t,".json"),e.prev=17,e.next=20,fetch(C);case 20:return e.next=22,e.sent.json();case 22:(E=e.sent)&&(l=E),e.next=28;break;case 26:e.prev=26,e.t0=e.catch(17);case 28:if(!A(l)&&A.errors&&A.errors.length)for(_=0;_{"use strict";n.d(t,{FHQ:()=>jt,WDX:()=>Ut,d1f:()=>Dt});var r=n(43994),i=n(59615),o=n.n(i),a=n(30538),s=n(17004),l=n(6467),c=n(94145),u=n(27612),d=n.n(u),h=n(15397),p=n.n(h),f=n(76743),g=n.n(f),m=n(34804),y=n.n(m),v=n(74032),b=n.n(v),x=n(60605),w=n.n(x),A=n(77946),S={};S.styleTagTransform=w(),S.setAttributes=y(),S.insert=g().bind(null,"head"),S.domAPI=p(),S.insertStyleElement=b();d()(A.A,S);A.A&&A.A.locals&&A.A.locals;var C=n(3836),E={};E.styleTagTransform=w(),E.setAttributes=y(),E.insert=g().bind(null,"head"),E.domAPI=p(),E.insertStyleElement=b();d()(C.A,E);C.A&&C.A.locals&&C.A.locals;var _=n(98189),k={};k.styleTagTransform=w(),k.setAttributes=y(),k.insert=g().bind(null,"head"),k.domAPI=p(),k.insertStyleElement=b();d()(_.A,k);_.A&&_.A.locals&&_.A.locals;var T=n(20522),O={};O.styleTagTransform=w(),O.setAttributes=y(),O.insert=g().bind(null,"head"),O.domAPI=p(),O.insertStyleElement=b();d()(T.A,O);T.A&&T.A.locals&&T.A.locals;var P=n(82942),I=n(68179),M=n(70640),L=n(32814),R=n(64426),j=n(47361),F=n(8259),D=n(86891),N=n(28249),z=n(80363),V=n.n(z),B=n(79950),$=n.n(B),G=n(71149),U=n(99979),W=n(38096),q=n(58839),H=n.n(q);const Y=JSON.parse('{"$id":"https://cgpv/schema","$schema":"http://json-schema.org/draft-07/schema#","title":"GeoView Core Config Schema","type":"object","version":1,"comments":"This schema is used to validate the JSON representation of the input configuration and the internal instance of map features and geoview layers.","additionalProperties":false,"definitions":{"MapFeatureConfig":{"description":"The map feature configuration.","additionalProperties":false,"type":"object","properties":{"map":{"$ref":"#/definitions/TypeMapConfig"},"theme":{"description":"Theme style the viewer uses.","$ref":"#/definitions/TypeDisplayTheme"},"navBar":{"$ref":"#/definitions/TypeNavBarProps"},"footerBar":{"$ref":"#/definitions/TypeFooterBarProps"},"appBar":{"$ref":"#/definitions/TypeAppBarProps"},"overviewMap":{"$ref":"#/definitions/TypeOverviewMapProps"},"components":{"$ref":"#/definitions/TypeMapComponents"},"corePackages":{"$ref":"#/definitions/TypeMapCorePackages"},"externalPackages":{"$ref":"#/definitions/TypeExternalPackages"},"serviceUrls":{"$ref":"#/definitions/TypeServiceUrls"},"schemaVersionUsed":{"$ref":"#/definitions/TypeValidVersions"}},"required":["map"]},"TypeMapConfig":{"additionalProperties":false,"type":"object","properties":{"basemapOptions":{"$ref":"#/definitions/TypeBasemapOptions"},"interaction":{"$ref":"#/definitions/TypeInteraction"},"listOfGeoviewLayerConfig":{"description":"List of GeoView Layers in the order which they should be added to the map.","additionalProperties":false,"$ref":"#/definitions/TypeListOfAbstractGeoviewLayerConfig"},"viewSettings":{"$ref":"#/definitions/TypeViewSettings"},"highlightColor":{"$ref":"#/definitions/TypeHighlightColors"},"extraOptions":{"description":"Additional options used for OpenLayers map options","type":"object"}},"required":["basemapOptions","interaction","viewSettings"]},"TypeListOfAbstractGeoviewLayerConfig":{"description":"The list of geoview layer configurations. The map config validation ends here. The only thing we need to verify for the moment is it must be an array.","type":"array"},"TypeDisplayTheme":{"description":"Valid values for the theme property.","additionalProperties":false,"enum":["dark","light","geo.ca"],"default":"geo.ca"},"TypeValidNavBarProps":{"description":"Valid values for the navBar array.","additionalProperties":false,"enum":["zoom","fullscreen","home","location"]},"TypeNavBarProps":{"description":"Controls available on the navigation bar.","additionalProperties":false,"type":"array","uniqueItems":true,"items":{"$ref":"#/definitions/TypeValidNavBarProps"},"default":["zoom","fullscreen","home"],"minItems":0},"TypeValidFooterBarTabsCoreProps":{"description":"Valid values for the footerBar tabs core array.","additionalProperties":false,"enum":["legend","layers","details","data-table","time-slider","geochart"]},"TypeFooterBarTabsCustomProps":{"description":"Footer bar tabs custom definition.","type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"defaultTabs":{"type":"string"},"contentHTML":{"type":"string"}}},"TypeFooterBarProps":{"type":"object","additionalProperties":false,"properties":{"tabs":{"description":"Available tabs","type":"object","properties":{"core":{"description":"Default core tabs of footer bar to use. NOTE: config from packages for time-slider and geochart are in the same loaction as core config (<>-<>.json).","type":"array","items":{"$ref":"#/definitions/TypeValidFooterBarTabsCoreProps"},"minItems":1,"default":["legend","layers","details","data-table"],"uniqueItems":true},"custom":{"description":"Custom tabs of footer bar to use","type":"array","items":{"$ref":"#/definitions/TypeFooterBarTabsCustomProps"},"minItems":0,"default":[],"uniqueItems":true}},"additionalProperties":false},"collapsed":{"description":"State of footer bar when map is loaded (expanded or collapsed)","type":"boolean","default":false}},"required":["tabs"]},"TypeValidAppBarCoreProps":{"description":"Valid values for the app bar tabs core array.","additionalProperties":false,"enum":["geolocator","export","basemap-panel","geochart","details","legend","guide","data-table","layers"]},"TypeAppBarProps":{"type":"object","additionalProperties":false,"properties":{"tabs":{"description":"Available tabs - controls","type":"object","additionalProperties":false,"properties":{"core":{"description":"Default core tabs of app-bar to use. NOTE: config from packages like geochart are in the same loaction as core config (<>-<>.json).","type":"array","items":{"$ref":"#/definitions/TypeValidAppBarCoreProps"},"minItems":0,"default":["geolocator"],"uniqueItems":true}}}},"required":["tabs"]},"TypeOverviewMapProps":{"type":"object","additionalProperties":false,"properties":{"hideOnZoom":{"description":"Minimum zoom level to show overview map","type":"number","minimum":0,"maximum":10,"default":0}}},"TypeValidMapComponentProps":{"description":"Valid values for the map component array.","additionalProperties":false,"enum":["overview-map","north-arrow"]},"TypeMapComponents":{"description":"Core components to initialize on viewer load. The schema for those are inside this file.","additionalProperties":false,"type":"array","uniqueItems":true,"items":{"$ref":"#/definitions/TypeValidMapComponentProps"},"default":["overview-map","north-arrow"],"minItems":0},"TypeValidMapCorePackageProps":{"description":"Valid values for the map core package array.","additionalProperties":false,"enum":["swiper"]},"TypeMapCorePackages":{"description":"Core map packages to initialize on viewer load. The schema for those are on their own package. NOTE: config from packages are in the same loaction as core config (<>-<>.json).","additionalProperties":false,"type":"array","uniqueItems":true,"items":{"$ref":"#/definitions/TypeValidMapCorePackageProps"},"default":[],"minItems":0},"TypeExternalPackagesProps":{"additionalProperties":false,"type":"object","properties":{"name":{"description":"External Package name. The name must be identical to the window external package object to load.","type":"string"},"configUrl":{"description":"The url to the external package configuration setting. The core package will read the configuration and pass it inside the package.","type":"string"}},"required":["name"]},"TypeExternalPackages":{"description":"List of external packages to initialize on viewer load.","additionalProperties":false,"type":"array","items":{"$ref":"#/definitions/TypeExternalPackagesProps"},"default":[],"minItems":0},"TypeServiceUrls":{"description":"Service endpoint urls","additionalProperties":false,"type":"object","properties":{"geocoreUrl":{"description":"Service end point to access API for layers specification (loading and plugins parameters). By default it is GeoCore but can be another endpoint with similar output.","type":"string","default":"https://geocore.api.geo.ca"},"proxyUrl":{"description":"An optional proxy to be used for dealing with same-origin issues. URL must either be a relative path on the same server or an absolute path on a server which sets CORS headers.","type":"string","default":"https://maps.canada.ca/wmsproxy/ws/wmsproxy/executeFromProxy"},"geolocator":{"description":"Service end point to access geo location of searched value.","type":"string","default":"https://geolocator.api.geo.ca?keys=geonames,nominatim,locate"}}},"TypeValidVersions":{"description":"The schema version that can be used to validate the configuration file. The schema should enumerate the list of versions accepted by this version of the viewer.","enum":["1.0"]},"TypeBasemapOptions":{"additionalProperties":false,"type":"object","properties":{"basemapId":{"$ref":"#/definitions/TypeBasemapId"},"shaded":{"description":"Enable or disable shaded basemap (if basemap id is set to shaded then this should be false).","type":"boolean","default":true},"labeled":{"description":"Enable or disable basemap labels","type":"boolean","default":true}},"required":["basemapId","shaded","labeled"]},"TypeBasemapId":{"description":"Id of the basemap to use.","enum":["transport","osm","simple","nogeom","shaded"],"default":"transport"},"TypeInteraction":{"description":"If map is dynamic (pan/zoom) or static to act as a thumbnail (no nav bar).","additionalProperties":false,"enum":["static","dynamic"],"default":"dynamic"},"AbstractGeoviewLayerConfig":{"additionalProperties":false,"type":"object","properties":{"geoviewLayerId":{"description":"The id of the layer for referencing within the viewer (does not relate directly to any external service). The id will have the language extension (id-\'lang\').","type":"string"},"geoviewLayerName":{"description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information.","oneOf":[{"description":"Used by the input schema.","$ref":"#/definitions/TypeLocalizedString"},{"description":"Used by the internal schema.","type":"string"}]},"isGeocore":{"description":"A flag used to indicate that the layer is a GeoCore layer.","type":"boolean"},"metadataAccessPath":{"description":"The GeoView layer service access path (English/French).","oneOf":[{"description":"Used by the input schema.","$ref":"#/definitions/TypeLocalizedString"},{"description":"Used by the internal schema.","type":"string"}]},"geoviewLayerType":{"description":"Type of GeoView layer.","$ref":"#/definitions/TypeGeoviewLayerType"},"serviceDateFormat":{"description":"Date format used by the service endpoint (default \'DD/MM/YYYY HH:MM:SSZ\').","type":"string"},"externalDateFormat":{"description":"Date format used by the getFeatureInfo to output date variable (default \'DD/MM/YYYY HH:MM:SSZ\').","type":"string"},"initialSettings":{"description":"Initial settings to apply to the GeoView layer at creation time.","$ref":"#/definitions/TypeLayerInitialSettings"},"listOfLayerEntryConfig":{"description":"The layer entries to use from the GeoView layer.","$ref":"#/definitions/TypeListOfLayerEntryConfig"}},"if":{"properties":{"isGeocore":{"description":"The isGeocore property is not defined by the user but by the viewer according to the geoview layer type. It is used as a flag indicating the type of schema used (input/internal).","enum":[true,false]}},"required":["isGeocore"]},"then":{"description":"Use Internal Schema","properties":{"geoviewLayerName":{"description":"The display name of the layer.","type":"string"},"geoviewLayerType":{"description":"Type of GeoView layer.","$ref":"#/definitions/TypeGeoviewLayerType"}}},"else":{"description":"Use Input Schema","properties":{"geoviewLayerName":{"description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information.","$ref":"#/definitions/TypeLocalizedString"},"geoviewLayerType":{"description":"Type of GeoView layer.","type":"string","enum":["CSV","esriDynamic","esriFeature","esriImage","GeoJSON","imageStatic","ogcFeature","ogcWfs","ogcWms","vectorTiles","xyzTiles","geoCore"]}}},"required":["geoviewLayerId","geoviewLayerName","geoviewLayerType","listOfLayerEntryConfig"]},"TypeListOfLayerEntryConfig":{"description":"The list of layer configurations. The AbstractGeoviewLayerConfig validation ends here. The only thing we need to verify for the moment is it must be an array of at least one element.","type":"array"},"TypeViewSettings":{"additionalProperties":false,"type":"object","properties":{"initialView":{"description":"Settings for the initial viewing area of the map.","$ref":"#/definitions/TypeMapViewSettings"},"enableRotation":{"description":"Enable rotation. If false, a rotation constraint that always sets the rotation to zero is used.","type":"boolean","default":true},"rotation":{"description":"The initial rotation for the view in degree (positive rotation clockwise, 0 means North). Will be converted to radiant by the viewer.","type":"integer","minimum":-360,"maximum":360,"default":0},"maxExtent":{"description":"The extent that constrains the view. Called with [minX, minY, maxX, maxY] extent coordinates.","type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"default":[-125,30,-60,89]},"minZoom":{"description":"The minimum zoom level used to determine the resolution constraint. If not set, will use default from basemap.","type":"integer","minimum":0,"maximum":50},"maxZoom":{"description":"The maximum zoom level used to determine the resolution constraint. If not set, will use default from basemap.","type":"integer","minimum":0,"maximum":50},"projection":{"$ref":"#/definitions/TypeValidMapProjectionCodes","default":3978}}},"TypeHighlightColors":{"description":"Color to use for feature highlights.","additionalProperties":false,"enum":["black","white","red","green"],"default":"black"},"TypeDisplayLanguage":{"description":"Display languages supported.","enum":["en","fr"]},"TypeLocalizedString":{"additionalProperties":false,"minProperties":1,"type":"object","properties":{"en":{"description":"The English version of the string.","type":"string"},"fr":{"description":"The French version of the string.","type":"string"}}},"TypeGeoviewLayerType":{"description":"Type of GeoView layer.","type":"string","enum":["CSV","esriDynamic","esriFeature","esriImage","GeoJSON","imageStatic","ogcFeature","ogcWfs","ogcWms","vectorTiles","xyzTiles"]},"TypeLayerInitialSettings":{"additionalProperties":false,"type":"object","properties":{"controls":{"description":"The status of various controls for the layer (available/unavailable).","$ref":"#/definitions/TypeLayerControls"},"bounds":{"description":"The geographic bounding box that contains all the layer\'s features.","type":"array","minItems":4,"maxItems":4,"items":{"type":"number"}},"extent":{"description":"The extent that constrains the view. Called with [minX, minY, maxX, maxY] extent coordinates.","type":"array","minItems":4,"maxItems":4,"items":{"type":"number"}},"minZoom":{"description":"The minimum view zoom level (exclusive) above which this layer will be visible.","type":"integer","minimum":0,"maximum":50},"maxZoom":{"description":"The maximum view zoom level (inclusive) above which this layer will be visible.","type":"integer","minimum":0,"maximum":50},"className":{"description":"A CSS class name to set to the layer element.","type":"string"},"states":{"description":"The status of initial states for the layer.","$ref":"#/definitions/TypeLayerStates"}}},"TypeLayerControls":{"description":"Which UI controls are available.","additionalProperties":false,"type":"object","properties":{"highlight":{"type":"boolean","default":true},"hover":{"type":"boolean","default":true},"opacity":{"type":"boolean","default":true},"query":{"type":"boolean","default":false},"remove":{"type":"boolean","default":true},"table":{"type":"boolean","default":true},"visibility":{"type":"boolean","default":true},"zoom":{"type":"boolean","default":true}}},"TypeLayerStates":{"description":"Which UI controls are available.","additionalProperties":false,"type":"object","properties":{"visible":{"description":"Initial visibility setting.","type":"boolean","default":true},"opacity":{"description":"Initial opacity setting.","type":"number","minimum":0,"maximum":1,"default":1},"hoverable":{"description":"Is the layer hoverable.","type":"boolean"},"queryable":{"description":"Is the layer queryable.","type":"boolean"}}},"TypeMapViewSettings":{"type":"object","maxItems":1,"properties":{"zoomAndCenter":{"$ref":"#/definitions/TypeZoomAndCenter"},"extent":{"description":"The extent for the initial view. Called with [minX, minY, maxX, maxY] extent coordinates.","type":"array","minItems":4,"maxItems":4,"items":{"type":"number"}},"layerIds":{"description":"ID(s) of layer(s) to use as initial map focus.","type":"array","minItems":1,"items":{"type":"string"}}}},"TypeZoomAndCenter":{"description":"Initial zoom and center coordinates to set map view.","type":"array","prefixItems":[{"type":"number","description":"Initial map zoom level. Zoom level are define by the basemap zoom levels. Levels between whole numbers are supported to fine tune initial view.","minimum":0,"maximum":28,"default":3.5},[{"type":"number","description":"Initial longitude value for map center.","minimum":-160,"maximum":160,"default":-90},{"type":"number","description":"Initial latitude value for map center.","minimum":-80,"maximum":80,"default":60}]],"default":[4.5,[-90,67]]},"TypeValidMapProjectionCodes":{"description":"Spatial Reference EPSG code supported (https://epsg.io/). We support Web Mercator and Lambert Conical Conform Canada.","enum":[3978,3857],"default":3978},"EsriDynamicLayerConfig":{"description":"Structure used by the viewer to describe the configuration of an ESRI dynamic layer.","type":"object","allOf":[{"$ref":"#/definitions/AbstractGeoviewLayerConfig"},{"type":"object","properties":{"geoviewLayerType":{"enum":["esriDynamic"]}}}]},"EsriFeatureLayerConfig":{"description":"Structure used by the viewer to describe the configuration of an ESRI feature layer.","type":"object","allOf":[{"$ref":"#/definitions/AbstractGeoviewLayerConfig"},{"type":"object","properties":{"geoviewLayerType":{"enum":["esriFeature"]}}}]},"ConfigBaseClass":{"description":"Base class from which we derive all the nodes (group and leaves) in the layer tree.","type":"object","properties":{"layerId":{"description":"The id of the layer to display on the map.","type":"string"},"layerName":{"description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information.","oneOf":[{"description":"Used by the input schema.","$ref":"#/definitions/TypeLocalizedString"},{"description":"Used by the internal schema.","type":"string"}]},"attributions":{"type":"array","items":{"type":"string"}},"bounds":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"}},"minScale":{"description":"Minimum scale the layer can display (default: 0).","type":"number","default":0},"maxScale":{"description":"Maximum scale the layer can display (default: 0).","type":"number","default":0},"initialSettings":{"description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree.","$ref":"#/definitions/TypeLayerInitialSettings"}},"if":{"properties":{"entryType":{"description":"The entryType property is not defined by the user but by the viewer according to the geoview layer type. It is used as a flag indicating the type of schema used (input/internal).","enum":["vector","raster-image","group"]}},"required":["entryType"]},"then":{"properties":{"layerName":{"description":"Used by the internal schema.","type":"string"}}},"else":{"properties":{"layerName":{"description":"Used by the input schema. The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information.","$ref":"#/definitions/TypeLocalizedString"}}},"required":["layerId"]},"AbstractBaseLayerEntryConfig":{"description":"Base class from which we derive all the leaf nodes in the layer tree.","type":"object","allOf":[{"$ref":"#/definitions/ConfigBaseClass"},{"type":"object","properties":{"geometryType":{"description":"The geometry type of the leaf node.","$ref":"#/definitions/TypeGeometryType"},"source":{"$ref":"#/definitions/TypeBaseSourceInitialConfig"},"temporalDimension":{"$ref":"#/definitions/TypeTemporalDimension"}}}]},"EsriDynamicLayerEntryConfig":{"description":"Class from which we derive all the ESRI Dynamic leaf nodes in the layer tree.","type":"object","allOf":[{"$ref":"#/definitions/AbstractBaseLayerEntryConfig"},{"type":"object","properties":{"source":{"$ref":"#/definitions/TypeSourceEsriDynamicInitialConfig"},"style":{"$ref":"#/definitions/TypeStyleConfig"}}}]},"EsriFeatureLayerEntryConfig":{"description":"Class from which we derive all the ESRI Feature leaf nodes in the layer tree.","type":"object","allOf":[{"$ref":"#/definitions/AbstractBaseLayerEntryConfig"},{"type":"object","properties":{"source":{"$ref":"#/definitions/TypeSourceEsriFeatureInitialConfig"},"style":{"$ref":"#/definitions/TypeStyleConfig"}}}]},"TypeGeometryType":{"description":"Valid keys for the geometryType property.","enum":["point","linestring","polygon"]},"TypeBaseSourceInitialConfig":{"description":"Base type from which we derive the source properties for all the leaf nodes in the layer tree.","type":"object","properties":{"projection":{"$ref":"#/definitions/TypeValidMapProjectionCodes"},"crossOrigin":{"description":"The crossOrigin attribute if needed to load the data.","type":"string"}}},"TypeSourceTileInitialConfig":{"description":"Initial settings for tile image sources.","additionalProperties":false,"type":"object","allOf":[{"$ref":"#/definitions/TypeBaseSourceInitialConfig"},{"additionalProperties":false,"type":"object","properties":{"tileGrid":{"description":"Tile grid parameters to use.","$ref":"#/definitions/TypeTileGrid"}}}]},"TypeSourceImageWmsInitialConfig":{"description":"Initial settings for tile image sources.","additionalProperties":false,"type":"object","allOf":[{"$ref":"#/definitions/TypeBaseSourceInitialConfig"},{"additionalProperties":false,"type":"object","properties":{"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"serverType":{"$ref":"#/definitions/TypeOfServer","description":"The type of the remote WMS server. The default value is mapserver."},"style":{"oneOf":[{"type":"string","description":"Single style to apply"},{"type":"array","items":{"type":"string"},"description":"Array of style to choose."}]}}}]},"TypeOfServer":{"description":"The type of the remote WMS server. The default value is mapserver.","enum":["mapserver","geoserver","qgis"]},"TypeSourceImageStaticInitialConfig":{"description":"Initial settings for static image sources.","additionalProperties":false,"type":"object","allOf":[{"$ref":"#/definitions/TypeBaseSourceInitialConfig"},{"additionalProperties":false,"type":"object","properties":{"extent":{"description":"The extent of the static image. Called with [minX, minY, maxX, maxY] extent coordinates.","type":"array","minItems":4,"maxItems":4,"items":{"type":"number"}}}}]},"TypeBaseVectorSourceInitialConfig":{"description":"Base type from which we derive the source properties for all the vector leaf nodes in the layer tree.","type":"object","allOf":[{"$ref":"#/definitions/TypeBaseSourceInitialConfig"},{"type":"object","properties":{"maxRecordCount":{"description":"Maximum number of records to fetch (default: 0).","type":"number"},"layerFilter":{"description":"Filter to apply on features of this layer.","type":"string"},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"format":{"$ref":"#/definitions/TypeVectorSourceFormats"},"strategy":{"enum":["all","bbox"],"default":"all","description":"The loading strategy to use. By default an all strategy is used, a one-off strategy which loads all features at once."}}}]},"TypeVectorSourceInitialConfig":{"description":"Initial settings to apply to the GeoView vector layer source at creation time.","additionalProperties":false,"type":"object","allOf":[{"$ref":"#/definitions/TypeBaseVectorSourceInitialConfig"},{"type":"object","properties":{"separator":{"description":"The character used to separate columns of csv file.","type":"string"}}}]},"TypeVectorTileSourceInitialConfig":{"description":"Initial settings to apply to layer sources providing vector data divided into a tile grid.","additionalProperties":false,"type":"object","allOf":[{"$ref":"#/definitions/TypeBaseVectorSourceInitialConfig"},{"type":"object","properties":{"tileGrid":{"$ref":"#/definitions/TypeTileGrid"}}}]},"TypeTileGrid":{"additionalProperties":false,"type":"object","properties":{"extent":{"description":"The extent that constrains the view. Called with [minX, minY, maxX, maxY] extent coordinates.","type":"array","minItems":4,"maxItems":4,"items":{"type":"number"}},"origin":{"description":"The tile grid origin, i.e. where the x and y axes meet ([z, 0, 0]). Tile coordinates increase left to right and downwards. If not specified, extent must be provided.","type":"array","prefixItems":[{"type":"number"},{"type":"number"}]},"resolutions":{"description":"Resolutions. The array index of each resolution needs to match the zoom level. This means that even if a minZoom is configured, the resolutions array will have a length of maxZoom + 1.","type":"array","items":{"type":"number"}},"tileSize":{"description":"The tile grid origin, i.e. where the x and y axes meet ([z, 0, 0]). Tile coordinates increase left to right and downwards. If not specified, extent must be provided.","type":"array","minItems":2,"maxItems":2,"items":{"type":"number"},"default":[256,256]}},"required":["origin","resolutions"]},"TypeVectorSourceFormats":{"description":"The feature format used by the XHR feature loader when access path is set.","enum":["GeoJSON","EsriJSON","KML","WFS","featureAPI","GeoPackage","CSV"]},"TypeSourceEsriDynamicInitialConfig":{"description":"Type from which we derive the source properties for all the ESRI dynamic leaf nodes in the layer tree.","type":"object","allOf":[{"$ref":"#/definitions/TypeBaseSourceInitialConfig"},{"type":"object","properties":{"maxRecordCount":{"description":"Maximum number of records to fetch (default: 0).","type":"number"},"layerFilter":{"description":"Filter to apply on features of this layer.","type":"string"},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"format":{"$ref":"#/definitions/TypeEsriFormatParameter"},"transparent":{"description":"If true, the image will be exported with the background color of the map set as its transparent color. Only the .png and .gif formats support transparency.","type":"boolean","default":true}}}]},"TypeEsriFormatParameter":{"description":"The format of the exported image. The default format is png.","enum":["png","jpg","gif","svg"],"default":"png"},"TypeSourceEsriFeatureInitialConfig":{"description":"Type from which we derive the source properties for all the ESRI feature leaf nodes in the layer tree.","type":"object","allOf":[{"$ref":"#/definitions/TypeBaseVectorSourceInitialConfig"},{"type":"object","properties":{"maxRecordCount":{"description":"Maximum number of records to fetch (default: 0).","type":"number"},"layerFilter":{"description":"Filter to apply on features of this layer.","type":"string"},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"format":{"enum":["EsriJSON"]}}}]},"TypeFeatureInfoLayerConfig":{"type":"object","properties":{"queryable":{"description":"Allow querying. Default = false.","type":"boolean","default":false},"nameField":{"description":"The display field of the layer. If it is not present the viewer will make an attempt to find the first valid field.","type":"string"},"outfields":{"type":"array","items":{"$ref":"#/definitions/TypeOutfields"}}},"required":["queryable"]},"TypeOutfields":{"type":"object","properties":{"name":{"description":"The field name.","type":"string"},"alias":{"description":"The field alias that replaces the name when comes time to display it.","type":"string"},"type":{"description":"The field type.","type":"string"},"domain":{"description":"An array of values that constitute the domain.","type":"array"}},"required":["name","alias","type","domain"]},"TypeOutfieldsType":{"description":"The types supported by the outfields object.","additionalProperties":false,"enum":["string","number","date","url"]},"TypeLayerEntryType":{"description":"Layer entry data type.","enum":["vector","vector-tile","raster-tile","raster-image","group"]},"TypeTemporalDimension":{"additionalProperties":false,"type":"object","description":"OGC time dimension definition.","properties":{"field":{"type":"string"},"default":{"type":"string"},"unitSymbol":{"type":"string"},"range":{"$ref":"#/definitions/TypeRangeItems"},"nearestValues":{"enum":["discrete","absolute"]},"singleHandle":{"type":"boolean"}}},"TypeRangeItems":{"description":"Definition of the range object in the OGC time dimension.","additionalProperties":false,"type":"object","properties":{"type":{"type":"string"},"range":{"type":"array","items":{"type":"string"}}}},"TypeStyleConfig":{"type":"object","properties":{"type":{"description":"The type of style used by the layer.","$ref":"#/definitions/TypeStyleConfigType"},"fields":{"type":"array","items":{"type":"string"},"minItems":1},"hasDefault":{"description":"Flag used to indicate that the symbology has a default value.","type":"boolean"},"info":{"description":"Array of style information.","type":"array","items":{"$ref":"#/definitions/TypeStyleConfigInfo"}}}},"TypeStyleConfigType":{"description":"Valid keys for the type property of style configurations.","enum":["simple","uniqueValue","classBreaks"]},"TypeStyleConfigInfo":{"type":"object","properties":{"visible":{"description":"Flag used to show/hide features associated to the label (default: true).","type":"boolean"},"label":{"type":"string"},"values":{"description":"Simple type has a single value at index 0; uniqueValue type has many entries (up to 3 for ESRI) and classBreaks type has two entries (index 0 for min and index 1 for max).","type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"minItems":1},"settings":{"$ref":"#/definitions/TypeKindOfVectorSettings"}}},"TypeKindOfVectorSettings":{"description":"The type of geometry settings. It must respect the base type and one of the children types.","allOf":[{"description":"Base type for the vector geometry.","$ref":"#/definitions/TypeBaseVectorGeometryConfig"},{"description":"One of the chid type.","oneOf":[{"$ref":"#/definitions/TypeLineStringVectorConfig"},{"$ref":"#/definitions/TypePolygonVectorConfig"},{"$ref":"#/definitions/TypeSimpleSymbolVectorConfig"},{"$ref":"#/definitions/TypeIconSymbolVectorConfig"}]}]},"TypeBaseVectorGeometryConfig":{"description":"Base type for the vector geometry types.","type":"object","properties":{"type":{"description":"Type of vector config.","$ref":"#/definitions/TypeBaseVectorType"}}},"TypeBaseVectorType":{"description":"Valid values for the type property of the base vector settings.","enum":["lineString","filledPolygon","simpleSymbol","iconSymbol"]},"TypeLineStringVectorConfig":{"description":"Definition of the line symbol vector settings type.","type":"object","allOf":[{"$ref":"#/definitions/TypeBaseVectorGeometryConfig"},{"type":"object","properties":{"type":{"enum":["lineString"]},"stroke":{"$ref":"#/definitions/TypeStrokeSymbolConfig"}}}],"required":["type","stroke"]},"TypeStrokeSymbolConfig":{"description":"Stroke style for vector features.","minProperties":1,"additionalProperties":false,"type":"object","properties":{"color":{"type":"string"},"lineStyle":{"$ref":"#/definitions/TypeLineStyle"},"width":{"type":"number"}}},"TypeLineStyle":{"description":"Line style to use for the feature.","enum":["dash","dash-dot","dash-dot-dot","dot","longDash","longDash-dot","null","shortDash","shortDash-dot","shortDash-dot-dot","solid"]},"TypePolygonVectorConfig":{"description":"Definition of the polygon symbol vector settings type.","type":"object","allOf":[{"$ref":"#/definitions/TypeBaseVectorGeometryConfig"},{"type":"object","properties":{"type":{"enum":["filledPolygon"]},"color":{"type":"string"},"stroke":{"$ref":"#/definitions/TypeStrokeSymbolConfig"},"paternSize":{"description":"Distance between patern lines. Default = 8","type":"number"},"paternWidth":{"description":"Patern line width.default = 1.","type":"number"},"fillStyle":{"description":"Kind of filling for vector features. Default = solid. ","$ref":"#/definitions/TypeFillStyle"}}}],"required":["type","stroke"]},"TypeFillStyle":{"description":"Valid values to specify fill styles.","enum":["null","solid","backwardDiagonal","cross","diagonalCross","forwardDiagonal","horizontal","vertical"]},"TypeSimpleSymbolVectorConfig":{"description":" Definition of the simple symbol vector settings type.","type":"object","allOf":[{"$ref":"#/definitions/TypeBaseVectorGeometryConfig"},{"type":"object","properties":{"type":{"enum":["simpleSymbol"]},"rotation":{"description":"Symbol rotation in radians.","type":"number"},"color":{"type":"string"},"stroke":{"$ref":"#/definitions/TypeStrokeSymbolConfig"},"size":{"type":"number"},"offset":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2},"symbol":{"$ref":"#/definitions/TypeSymbol"}}}],"required":["type","symbol"]},"TypeSymbol":{"description":"Valid values to specify symbol shapes.","enum":["circle","+","diamond","square","triangle","X","star"]},"TypeIconSymbolVectorConfig":{"type":"object","allOf":[{"$ref":"#/definitions/TypeBaseVectorGeometryConfig"},{"type":"object","properties":{"type":{"enum":["iconSymbol"]},"mimeType":{"type":"string"},"src":{"type":"string"},"width":{"description":"Icon width in pixel.","type":"integer"},"height":{"description":"Icon height in pixel.","type":"integer"},"rotation":{"description":"Icon rotation in radians.","type":"number"},"opacity":{"type":"number","minimum":0,"maximum":1,"default":1},"offset":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2},"crossOrigin":{"description":"The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer.","type":"string"}}}],"required":["type","mimeType","src"]},"TypePostSettings":{"description":"Definition of the post settings type needed when the GeoView GeoJSON layers need to use a POST instead of a GET.","additionalProperties":false,"type":"object","properties":{"header":{"description":"An optional header object with string keys and string values.","type":"object","additionalProperties":{"type":"string"}},"data":{"description":"A required property that can be any type.","type":["object","array","string","number","boolean","null"]}},"required":["data"]}}}');var K=n(60854);function X(e,t){var n,r,i=new(H())({strict:!1,allErrors:!1});i.compile(Y);var o=i.getSchema(e);if(o){if(!o(t)){for(var a,s,l=0;l0&&void 0!==arguments[0]?arguments[0]:2;return JSON.stringify(this,void 0,e||void 0)}}])}(),ae=function(e){return null==e?void 0:e.isLayerGroup};function se(e,t,n){return t=(0,U.A)(t),(0,G.A)(e,le()?Reflect.construct(t,n||[],(0,U.A)(e).constructor):t.apply(e,n))}function le(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(le=function(){return!!e})()}var ce=function(e){function t(e,n,r,i,o){var a;return(0,M.A)(this,t),a=se(this,t,[e,n,r,i,o]),(0,R.A)(a,"entryType",F.JE.GROUP),(0,R.A)(a,"listOfLayerEntryConfig",[]),a.listOfLayerEntryConfig=e.listOfLayerEntryConfig.map((function(e){return ae(e)?new t(e,n,r,i,a):i.createLeafNode(e,n,r,i,a)})).filter((function(e){return e})),a}return(0,W.A)(t,e),(0,L.A)(t,[{key:"schemaPath",get:function(){return F.y5}},{key:"getEntryType",value:function(){return F.JE.GROUP}}])}(oe),ue=n(79913);function de(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 he(e){for(var t=1;t1&&(fe(ve,this).listOfLayerEntryConfig=[{layerId:fe(ve,this).geoviewLayerId,initialSettings:this.initialSettings,layerName:he({},fe(ve,this).geoviewLayerName),isLayerGroup:!0,listOfLayerEntryConfig:fe(ve,this).listOfLayerEntryConfig}]),this.geoviewLayerId=fe(ve,this).geoviewLayerId||(0,ue.generateId)(),this.geoviewLayerName=Z(null===(o=fe(ve,this))||void 0===o?void 0:o.geoviewLayerName)[fe(ye,this)],this.metadataAccessPath=Z(fe(ve,this).metadataAccessPath)[fe(ye,this)],this.serviceDateFormat=fe(ve,this).serviceDateFormat||"DD/MM/YYYY HH:MM:SSZ",this.externalDateFormat=fe(ve,this).externalDateFormat||"DD/MM/YYYY HH:MM:SSZ",this.listOfLayerEntryConfig=null===(a=fe(ve,this))||void 0===a||null===(a=a.listOfLayerEntryConfig)||void 0===a||null===(a=a.map((function(e){return ae(e)?new ce(e,s.initialSettings,n,s):s.createLeafNode(e,s.initialSettings,n,s)})))||void 0===a?void 0:a.filter((function(e){return e}))}),[{key:"validate",value:function(){if(!this.geoviewLayerType)throw new Error("Property geoviewLayerType is mandatory for GeoView layer ".concat(this.geoviewLayerId," of type ").concat(this.geoviewLayerType,"."));if(!this.geoviewLayerId)throw new Error("geoviewLayerId is mandatory for GeoView layer of type ".concat(this.geoviewLayerType,"."));if(!this.geoviewLayerName)throw new Error("Property geoviewLayerName is mandatory for GeoView layer ".concat(this.geoviewLayerId," of type ").concat(this.geoviewLayerType,"."));if(!this.metadataAccessPath)throw new Error("metadataAccessPath is mandatory for GeoView layer ".concat(this.geoviewLayerId," of type ").concat(this.geoviewLayerType,"."))}},{key:"propagateError",value:function(){var e;ge(xe,this,!0),null===(e=fe(be,this))||void 0===e||e.propagateError()}},{key:"isValid",get:function(){return!fe(xe,this)}},{key:"getJsonString",value:function(){return this.getIndentedJsonString(null)}},{key:"getIndentedJsonString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;return JSON.stringify(this,void 0,e||void 0)}}])}();function Ae(e,t,n){return t=(0,U.A)(t),(0,G.A)(e,Se()?Reflect.construct(t,n||[],(0,U.A)(e).constructor):t.apply(e,n))}function Se(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Se=function(){return!!e})()}var Ce=function(e){function t(e,n,r,i,o){var a;return(0,M.A)(this,t),a=Ae(this,t,[e,n,r,i,o]),(0,R.A)(a,"geometryType",void 0),(0,R.A)(a,"source",void 0),(0,R.A)(a,"temporalDimension",void 0),a.geometryType=e.geometryType,e.source?a.source=(0,D.K)(V()(e.source)):a.source=(0,D.K)({projection:F.NA.map.viewSettings.projection}),e.temporalDimension&&(a.temporalDimension=(0,D.K)(V()(e.temporalDimension))),a}return(0,W.A)(t,e),(0,L.A)(t)}(oe);function Ee(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 _e(e,t,n){return t=(0,U.A)(t),(0,G.A)(e,ke()?Reflect.construct(t,n||[],(0,U.A)(e).constructor):t.apply(e,n))}function ke(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ke=function(){return!!e})()}var Te=function(e){function t(e,n,r,i,o){var a,s;if((0,M.A)(this,t),s=_e(this,t,[e,n,r,i,o]),(0,R.A)(s,"style",void 0),s.source=$()(s.source,{maxRecordCount:0,format:"png",featureInfo:{queryable:!1}}),s.style=e.style?function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:2;return JSON.stringify(this,void 0,e||void 0)}},{key:"propagateError",value:function(){$e(qe,this,!0)}}],[{key:"nodeFactory",value:function(e,t,n){switch(e.geoviewLayerType){case F.oR.ESRI_DYNAMIC:return new Ie(e,t,n);case F.oR.ESRI_FEATURE:return new Ne(e,t,n)}}}])}();function Ke(e){var t=e&&F.if.includes(e)?e:F.NA.map.viewSettings.projection,n=V()(F.NA.map);return n.viewSettings.maxExtent=(0,N.A)(F.Nt[t]),n.viewSettings.initialView||(n.viewSettings.initialView={zoomAndCenter:[3.5,F.VN[t]]}),n}function Xe(){this.map.viewSettings.projection=this.map.viewSettings.projection&&F.if.includes(this.map.viewSettings.projection)?this.map.viewSettings.projection:F.NA.map.viewSettings.projection,Ge(He,this,Ze).call(this);var e=this.map.viewSettings.initialView.zoomAndCenter[0];this.map.viewSettings.initialView.zoomAndCenter[0]=!Number.isNaN(e)&&e>=0&&e<=28?e:F.NA.map.viewSettings.initialView.zoomAndCenter[0],Ge(He,this,Je).call(this),this.schemaVersionUsed=F.ir.includes(this.schemaVersionUsed)?this.schemaVersionUsed:F.NA.schemaVersionUsed;var t=this.map.viewSettings.minZoom;this.map.viewSettings.minZoom=!Number.isNaN(t)&&t>=0&&t<=50?t:F.NA.map.viewSettings.minZoom;var n=this.map.viewSettings.maxZoom;this.map.viewSettings.maxZoom=!Number.isNaN(n)&&n>=0&&n<=50?n:F.NA.map.viewSettings.maxZoom,Ge(He,this,Qe).call(this),Ge(He,this,et).call(this)}function Ze(){var e=this.map.viewSettings.initialView.zoomAndCenter[1][0],t=this.map.viewSettings.initialView.zoomAndCenter[1][1],n=this.map.viewSettings.projection;this.map.viewSettings.initialView.zoomAndCenter[1][0]=!Number.isNaN(e)&&e>F.mq[n].long[0]&&eF.mq[n].lat[0]&&tt[0]?a:F.mq[e].long[1],d=!Number.isNaN(s)&&s>t[1]?s:F.mq[e].lat[1];this.map.viewSettings.maxExtent=[l,c,u,d]}function et(){var e,t,n,r,i,o,a,s,l,c,u=this;(Object.keys(Be(We,this)).forEach((function(e){e in u||K.vF.logWarning("- Key '".concat(e,"' is invalid -"))})),(null===(e=Be(We,this))||void 0===e||null===(e=e.map)||void 0===e||null===(e=e.viewSettings)||void 0===e?void 0:e.projection)!==this.map.viewSettings.projection)&&K.vF.logWarning("- Invalid projection code ".concat(null===(s=Be(We,this))||void 0===s||null===(s=s.map)||void 0===s||null===(s=s.viewSettings)||void 0===s?void 0:s.projection," replaced by ").concat(this.map.viewSettings.projection," -"));null!==(t=Be(We,this))&&void 0!==t&&null!==(t=t.map)&&void 0!==t&&null!==(t=t.viewSettings)&&void 0!==t&&null!==(t=t.initialView)&&void 0!==t&&t.zoomAndCenter&&null!==(n=this.map.viewSettings.initialView)&&void 0!==n&&n.zoomAndCenter&&(null===(r=Be(We,this))||void 0===r||null===(r=r.map)||void 0===r||null===(r=r.viewSettings)||void 0===r||null===(r=r.initialView)||void 0===r?void 0:r.zoomAndCenter[0])!==(null===(i=this.map.viewSettings.initialView)||void 0===i?void 0:i.zoomAndCenter[0])&&K.vF.logWarning("- Invalid zoom level ".concat(null===(l=Be(We,this))||void 0===l||null===(l=l.map)||void 0===l||null===(l=l.viewSettings)||void 0===l||null===(l=l.initialView)||void 0===l?void 0:l.zoomAndCenter[0],"\n replaced by ").concat(null===(c=this.map.viewSettings.initialView)||void 0===c?void 0:c.zoomAndCenter[0]," -"));var d,h=null===(o=Be(We,this))||void 0===o||null===(o=o.map)||void 0===o||null===(o=o.viewSettings)||void 0===o||null===(o=o.initialView)||void 0===o?void 0:o.zoomAndCenter;(h&&Array.isArray(h)&&2===h.length&&Array.isArray(h[1])&&2===h[1].length&&(0,D.K)(h[1])!==this.map.viewSettings.initialView.zoomAndCenter[1]&&K.vF.logWarning("- Invalid center ".concat(h[1],"\n replaced by ").concat(this.map.viewSettings.initialView.zoomAndCenter[1])),JSON.stringify(null===(a=Be(We,this))||void 0===a||null===(a=a.map)||void 0===a?void 0:a.basemapOptions)!==JSON.stringify(this.map.basemapOptions))&&K.vF.logWarning("- Invalid basemap options ".concat(JSON.stringify(null===(d=Be(We,this))||void 0===d||null===(d=d.map)||void 0===d?void 0:d.basemapOptions)," replaced by ").concat(JSON.stringify(this.map.basemapOptions)," -"))}var tt=n(97493);function nt(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var rt=function(){function e(){(0,M.A)(this,e)}return(0,L.A)(e,null,[{key:"getGVConfigFromUUIDs",value:(t=(0,r.A)(o().mark((function t(n,r,i){var a,s;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a="".concat(n,"/vcs?lang=").concat(r,"&id=").concat(i.toString()),t.next=3,tt.A.get(a);case 3:return s=t.sent,t.abrupt("return",nt(e,this,it).call(this,s,r));case 5:case"end":return t.stop()}}),t,this)}))),function(e,n,r){return t.apply(this,arguments)})}]);var t}();function it(e,t){if(!(null!=e&&e.data&&e.data.reponse&&e.data.reponse.rcs&&e.data.reponse.rcs[t]))throw new Error("Invalid response from GeoCore service");if(0===e.data.reponse.rcs[t].length)throw new Error("No layers returned by GeoCore service");for(var n=[],r=0;r0){var o=i.layers[0];if(o){var a=o.layerType,s=o.layerEntries,l=o.name,c=o.url,u=o.id,d=c.indexOf("FeatureServer")>-1;if(a!==F.oR.ESRI_DYNAMIC||d)if(d)for(var h=0;h{"use strict";n.d(t,{w:()=>O,A:()=>P});var r=n(30538),i=(n(82810),n(65868)),o=n(43331),a=n(333),s=n(29224),l=n(73342),c=n(51559),u=n(87286),d=n(32829),h=n(87507),p=n(58990),f=n(97282);const g=(e,t)=>(0,c.A)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),m=e=>(0,c.A)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});var y=n(5007),v=n(24115);function b(e){return(0,v.Ay)("MuiScopedCssBaseline",e)}(0,y.A)("MuiScopedCssBaseline",["root"]);const x=["className","component","enableColorScheme"],w=(0,p.Ay)("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{const n={};return t.enableColorScheme&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((([t,r])=>{var i;n[`&${e.getColorSchemeSelector(t).replace(/\s*&/,"")}`]={colorScheme:null==(i=r.palette)?void 0:i.mode}})),(0,c.A)({},g(e,t.enableColorScheme),m(e),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold}},n)})),A=r.forwardRef((function(e,t){const n=(0,h.A)({props:e,name:"MuiScopedCssBaseline"}),{className:r,component:i="div"}=n,o=(0,l.A)(n,x),a=(0,c.A)({},n,{component:i}),s=(e=>{const{classes:t}=e;return(0,d.A)({root:["root"]},b,t)})(a);return(0,f.jsx)(w,(0,c.A)({as:i,className:(0,u.A)(s.root,r),ref:t,ownerState:a},o))}));var S=n(25329),C=n(3389),E=n(26098),_=n(86784),k=n(60854),T=n(31726),O=(0,r.createContext)({mapId:"",mapFeaturesConfig:void 0});const P=function(e){k.vF.logTraceRender("components/app-start");var t=e.mapFeaturesConfig,n=e.onMapViewerInit,l=t.mapId,c=(0,r.useMemo)((function(){return k.vF.logTraceUseMemo("APP-START - mapContextValue",l),{mapId:l}}),[l]),u=(0,T.lk)(l),d=(0,T.iO)(l);return(0,f.jsx)(s.A,{injectFirst:!0,children:(0,f.jsx)(a.A,{theme:C.w,children:(0,f.jsx)(A,{children:(0,f.jsx)(r.Suspense,{fallback:"",children:function(){var e=i.Ay.cloneInstance({lng:u,fallbackLng:u});if(!(l in _.FHQ.maps)){var r=new E.F(t,e);_.FHQ.maps[l]=r}return _.FHQ.maps[l].onMapInit((function(e){null==n||n(e)})),(0,f.jsx)(o.I18nextProvider,{i18n:e,children:(0,f.jsx)(O.Provider,{value:c,children:(0,f.jsx)(a.A,{theme:(0,C.O)(d),children:(0,f.jsx)(S.$,{mapViewer:_.FHQ.maps[l]})})})})}()})})})})}},97886:(e,t,n)=>{"use strict";n.d(t,{r:()=>b});var r=n(70640),i=n(32814),o=n(64426),a=n(64941),s=n(79913),l=n(16221),c=n(38829);function u(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 d(e){for(var t=1;t2&&void 0!==arguments[2])||arguments[2];c.d.setActiveAppBarTab(this.mapId,e,t,n)}}])}();function x(e){l.A.emitEvent(this,f(m,this),e)}function w(e){l.A.emitEvent(this,f(y,this),e)}function A(){this.buttons.default={}}},95811:(e,t,n)=>{"use strict";n.d(t,{h:()=>z});var r=n(64426),i=n(47361),o=n(76390),a=n.n(o),s=n(46900),l=n.n(s),c=n(43331),u=n(30538),d=n(94145),h=n(82942),p=n(90763),f=n(79437),g=n(58726),m=n(69495),y=n(28187),v=n(31726),b=n(15247),x=n(60854),w=n(8124),A=n(12805),S=n(96974),C=function(e){return{appBar:{display:"flex",flexDirection:"row",justifyContent:"space-between",zIndex:e.zIndex.appBar,pointerEvents:"all",backgroundColor:e.palette.geoViewColor.bgColor.main,border:e.palette.geoViewColor.primary.light[100],"&.interaction-static":{position:"absolute",left:0,top:0,height:"100%",backgroundColor:"unset",border:"unset",paddingBottom:"60px","&>div":{border:"unset !important"}}},appBarList:{width:60,"& li":{backgroundColor:"transparent",justifyContent:"center",margin:"16px 0",padding:0,"&:hover":{backgroundColor:"transparent",color:e.palette.geoViewColor.primary.light[300]}},"& hr":{width:"80%",marginLeft:"7px"}},appBarButtons:{borderRightColor:e.palette.geoViewColor.primary.light[100],borderRightWidth:1,borderRightStyle:"solid",width:64},appBarButton:{backgroundColor:e.palette.geoViewColor.primary.main,color:e.palette.geoViewColor.primary.light[700],height:44,width:44,transition:"background-color 0.3s ease-in-out",border:"2px solid transparent","&:hover":{backgroundColor:e.palette.geoViewColor.primary.light[100],color:e.palette.geoViewColor.primary.light[700]},"&:focus":{backgroundColor:e.palette.geoViewColor.primary.light[150],color:e.palette.geoViewColor.primary.light[700]},"&:active":{backgroundColor:e.palette.geoViewColor.primary.light[100],color:e.palette.geoViewColor.primary.light[700]},"&.active":{border:"2px solid ".concat(e.palette.geoViewColor.primary.light[100]),backgroundColor:"transparent",color:e.palette.geoViewColor.primary.light[100]},"& .MuiSvgIcon-root":{height:20,width:20}},versionButtonDiv:{position:"absolute",bottom:0},appBarPanels:{}}},E=n(28249);function _(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 k(e){for(var t=1;t{"use strict";n.d(t,{A:()=>v});var r=n(47361),i=n(30538),o=n(43331),a=n(26565),s=n(66469),l=n(41019),c=n(8088),u=n(91031),d=n(64987),h=n(46457),p=n(82942),f=n(15247),g=n(28187),m=n(98533),y=n(97282);function v(){var e=(0,o.useTranslation)().t,t=(0,f.Jh)(),n=(0,g.GT)(),v=document.getElementById("shell-".concat(t)),b=(0,i.useState)(null),x=(0,r.A)(b,2),w=x[0],A=x[1],S=(0,i.useState)(!1),C=(0,r.A)(S,2),E=C[0],_=C[1],k=function(){E&&(_(!1),A(null))},T={versionInfoPanel:{width:"200px",backgroundColor:function(e){return e.palette.geoViewColor.bgColor.light[200]},borderRadius:"5px",boxShadow:2,marginLeft:"15px",padding:"10px","& a":{color:function(e){return"light"===e.palette.mode?e.palette.secondary.contrastText:e.palette.geoViewColor.primary.light[300]},textDecoration:"underLine"}},versionsInfoTitle:{fontSize:function(e){return e.palette.geoViewFontSize.default},fontWeight:"700",padding:"10px",color:function(e){return e.palette.geoViewColor.textColor.main},borderBottom:function(e){return"1px solid ".concat(e.palette.geoViewColor.bgColor.dark[300],"}")},marginBottom:"10px"}};return(0,y.jsx)(a.x,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:k,children:(0,y.jsxs)(s.A,{children:[(0,y.jsx)(p.IconButton,{id:"version-button",tooltip:"appbar.version",tooltipPlacement:"bottom-end",onClick:function(e){A(e.currentTarget),_(!E)},className:"".concat("dynamic"===n?"buttonFilled":"style4"," ").concat(E?"active":""),children:(0,y.jsx)(l.A,{viewBox:"-4 -2 38 36",children:(0,y.jsx)(p.GeoCaIcon,{})})}),(0,y.jsx)(p.Popper,{open:E,anchorEl:w,placement:"right-end",onClose:k,container:v,children:(0,y.jsxs)(c.A,{sx:T.versionInfoPanel,children:[(0,y.jsx)(u.A,{sx:T.versionsInfoTitle,component:"h3",children:e("appbar.version")}),(0,y.jsxs)(s.A,{sx:{padding:"10px",gap:"5px",display:"flex",flexDirection:"column"},children:[(0,y.jsxs)(s.A,{sx:{display:"flex",flexDirection:"row",alignContent:"center",gap:"6px"},children:[(0,y.jsx)(l.A,{viewBox:"-4 -2 38 36",children:(0,y.jsx)(p.GeoCaIcon,{})}),(0,y.jsx)(d.A,{rel:"noopener",href:h.un.url,target:"_black",children:h.un.text})]}),(0,y.jsxs)(s.A,{sx:{display:"flex",flexDirection:"row",alignContent:"center",gap:"6px"},children:[(0,y.jsx)(m.A,{}),(0,y.jsx)(d.A,{rel:"noopener",href:h.Dy,target:"_black",children:e("appbar.repoLink")})]}),(0,y.jsx)(u.A,{component:"div",children:"v.".concat(0,".").concat(1,".").concat(0)}),(0,y.jsx)(u.A,{component:"div",children:new Date(1717706620057).toLocaleDateString()})]})]})})]})})}},17161:(e,t,n)=>{"use strict";n.d(t,{m:()=>f});var r=n(64426),i=n(47361),o=n(30538),a=n(94145),s=n(82942),l=n(69495),c=n(28187),u=n(79913),d=n(15247),h=n(60854),p=n(97282);function f(){h.vF.logTraceRender("components/attribution/attribution");var e=(0,a.A)(),t=(0,d.Jh)(),n=document.getElementById("shell-".concat(t)),f=(0,o.useState)(null),g=(0,i.A)(f,2),m=g[0],y=g[1],v=Boolean(m),b=(0,c.re)(),x=(0,l.dY)(),w=(0,o.useCallback)((function(e){y(e.currentTarget)}),[]),A=(0,o.useCallback)((function(){y(null)}),[]);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(s.IconButton,{id:"attribution",onClick:w,className:v?"active":"",tooltipPlacement:"top",tooltip:"mapctrl.attribution.tooltip",sx:(0,r.A)((0,r.A)((0,r.A)({color:e.palette.geoViewColor.bgColor.light[800],marginTop:x?"0.75rem":"0.25rem"},e.breakpoints.up("md"),{marginTop:x?"1.4375rem":"none"}),"width","30px"),"height","30px"),"aria-label":"mapctrl.attribution.tooltip",children:(0,p.jsx)(s.MoreHorizIcon,{})}),(0,p.jsx)(s.Popover,{open:v,anchorEl:m,container:n,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"},onClose:A,children:(0,p.jsx)(s.Box,{sx:{padding:"1rem",width:"28.125rem"},children:b.map((function(e){return(0,p.jsx)(s.Typography,{children:e},(0,u.generateId)())}))})})]})}},57449:(e,t,n)=>{"use strict";n.d(t,{n:()=>c});var r=n(30538),i=n(82942),o=n(28187),a=n(60854),s=n(15247),l=n(97282);function c(){a.vF.logTraceRender("components/click-marker/click-marker");var e=(0,s.Jh)(),t=(0,r.useRef)(null),n="".concat(e,"-clickmarker"),c=(0,o.yC)(),u=(0,o.Rs)(),d=(0,o.U6)(),h=d.setOverlayClickMarkerRef,p=d.showClickMarker;return setTimeout((function(){return h(t.current)}),0),(0,r.useEffect)((function(){a.vF.logTraceUseEffect("CLICK-MARKER - clickCoordinates"),u&&p({lnglat:u.lnglat})}),[u,p]),(0,l.jsx)(i.Box,{ref:t,id:n,sx:{position:"absolute",visibility:void 0!==c?"visible":"hidden"},children:(0,l.jsx)(i.ClickMapMarker,{sx:{animation:"opacity 1s ease-in","@keyframes opacity":{from:{opacity:0},to:{opacity:1}}},fontSize:"large",color:"warning"})})}},95785:(e,t,n)=>{"use strict";n.d(t,{y:()=>u});var r=n(30538),i=n(43331),o=n(23799),a=n(69495),s=n(82942),l=n(60854),c=n(97282);function u(e){var t=e.id,n=e.content,u=(0,i.useTranslation)().t,d=(0,a.A6)().closeModal,h=(0,a.XP)(),p=(0,a.NP)();return(0,r.useEffect)((function(){l.vF.logTraceUseEffect("FOCUS-TRAP-ELEMENT - activeTrapGeoView",h),h||d()}),[h,d]),(0,r.useEffect)((function(){l.vF.logTraceUseEffect("FOCUS-TRAP-ELEMENT - focusItem",p),t===p.activeElementId&&setTimeout((function(){var e;return null===(e=document.getElementById("".concat(t,"-exit-btn")))||void 0===e?void 0:e.focus()}),0)}),[p,t]),(0,c.jsx)(o.s,{open:t===p.activeElementId,children:(0,c.jsxs)(s.Box,{children:[(0,c.jsx)(s.Button,{id:"".concat(t,"-exit-btn"),type:"text",autoFocus:!0,onClick:function(){var e;d(),null===(e=document.getElementById(p.callbackElementId))||void 0===e||e.focus()},sx:{display:h?"block":"none",width:"95%",margin:"10px auto"},children:u("general.exit")}),n]})})}},78383:(e,t,n)=>{"use strict";n.d(t,{PE:()=>v,Wu:()=>b.W,xk:()=>A});n(95785),n(43367);var r=n(30538),i=n(94145),o=n(43331),a=n(78283),s=n(82942),l=function(e){return{list:{overflowY:"auto",color:"text.primary",width:"100%",paddingRight:"14px","& .MuiListItemText-primary":{fontSize:e.palette.geoViewFontSize.lg,fontWeight:"600"},"& .MuiListItem-root":{height:"100%","& .MuiListItemButton-root":{padding:"0 0 0 16px",height:"100%",backgroundColor:e.palette.geoViewColor.bgColor.light[500]}},"& .MuiListItemButton-root":{minHeight:"73px"},"& .MuiListItemIcon-root":{minWidth:"2rem"},"& .MuiListItemText-root":{">span":{fontSize:e.palette.geoViewFontSize.default},"> p":{fontSize:e.palette.geoViewFontSize.sm,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},listPrimaryText:{minWidth:"0",marginTop:"0.5rem",marginBottom:"0.5rem",marginLeft:"10px",flex:"1 1 auto",display:"flex",flexDirection:"column","& .layerTitle":{fontSize:e.palette.geoViewFontSize.default,fontWeight:"600",lineHeight:1.5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},">div":{display:"flex",alignItems:"center",marginTop:"4px",">p":{fontSize:"".concat(e.palette.geoViewFontSize.sm," !important"),color:e.palette.text.secondary,fontWeight:400}," svg":{width:"0.75em",height:"0.75em"}}},borderWithIndex:"2px solid ".concat(e.palette.geoViewColor.primary.main," !important"),borderNone:"none",headline:{fontSize:e.palette.geoViewFontSize.md,fontWeight:"bold"},layersInstructionsPaper:{padding:"2rem",cursor:"pointer"},layersInstructionsTitle:{fontSize:e.palette.geoViewFontSize.md,fontWeight:"600",lineHeight:"1.5em"},layersInstructionsBody:{fontSize:e.palette.geoViewFontSize.default}}},c=n(46182),u=n(97282),d=(0,r.memo)((function(e){var t=e.isSelected,n=e.layer,d=e.onListItemClick,h=e.layerIndex,p=(0,i.A)(),f=l(p),g=(0,o.useTranslation)().t,m=0===(null==n?void 0:n.numOffeatures)||null===(null==n?void 0:n.features),y=0===(null==n?void 0:n.numOffeatures)||null===(null==n?void 0:n.features)||"processing"===n.queryStatus||"loading"===n.layerStatus||"processing"===n.layerStatus,v=(0,r.useCallback)((function(){var e;return"error"===n.layerStatus||"error"===(null==n?void 0:n.queryStatus)?"".concat(g("legend.layerError")):["init","processing"].includes(n.queryStatus)?"".concat(g("layers.querying"),"..."):(0,u.jsxs)(u.Fragment,{children:[n.layerFeatures," ",null!==(e=null==n?void 0:n.mapFilteredIcon)&&void 0!==e?e:""]})}),[n,g]);var b,x,w=(0,a.zh)({delay:150*h,from:{opacity:.1},to:{opacity:1}}),A=(0,r.useCallback)((function(e,t){"Enter"===e.key&&d(t)}),[d]),S=(0,a.CS)(s.Paper);return(0,u.jsx)(S,{sx:{marginBottom:"1rem"},style:w,className:(x=["layer-panel","bordered",null!==(b=n.layerStatus)&&void 0!==b?b:"","query-".concat(n.queryStatus)],t&&x.push("selectedLayer bordered-primary"),x.join(" ")),children:(0,u.jsx)(s.Tooltip,{title:n.tooltip,placement:"top",arrow:!0,children:(0,u.jsx)(s.Box,{children:(0,u.jsx)(s.ListItem,{disablePadding:!0,onKeyDown:function(e){return A(e,n)},tabIndex:0,children:(0,u.jsxs)(s.ListItemButton,{tabIndex:-1,selected:t,disabled:m||y,onClick:function(){return d(n)},"aria-label":n.layerName,children:[n.layerPath&&!n.content?(0,u.jsx)(s.ListItemIcon,{"aria-hidden":"true",children:(0,u.jsx)(c.B,{layer:n})}):null,(0,u.jsxs)(s.Box,{sx:f.listPrimaryText,children:[(0,u.jsx)(s.Typography,{className:"layerTitle",children:n.layerName}),(0,u.jsx)(s.Box,{display:"flex",alignContent:"center",children:(0,u.jsx)(s.Typography,{component:"p",variant:"subtitle1",noWrap:!0,display:"flex",children:v()})})]})]})})})})})}));function h(e){var t=e.layerList,n=e.selectedLayerPath,r=e.onListItemClick,a=(0,i.A)(),c=l(a),h=(0,o.useTranslation)().t;return(0,u.jsxs)(s.List,{sx:c.list,children:[!!t.length&&t.map((function(e,t){var i;return(0,u.jsx)(d,{isSelected:(null!==(i=null==e?void 0:e.numOffeatures)&&void 0!==i?i:1)>0&&e.layerPath===n,layer:e,onListItemClick:r,layerIndex:t},e.layerPath)})),!t.length&&(0,u.jsx)(d,{isSelected:!1,layerIndex:0,layer:{layerPath:"",layerName:h("layers.instructionsNoLayersTitle"),layerFeatures:h("layers.instructionsNoLayersBody"),layerStatus:"processed",queryStatus:"processed",numOffeatures:0},onListItemClick:r},"dummyPath")]})}var p=n(64426),f=n(60854),g=n(27892),m=n(46457);function y(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 v(e){var t=e.children,n=e.guideContentIds,o=e.layerList,a=e.selectedLayerPath,l=e.onLayerListClicked,c=e.onIsEnlargeClicked,d=e.fullWidth,v=e.onGuideIsOpen,b=e.containerType,x=void 0===b?m.vB.FOOTER_BAR:b,w=(0,r.useRef)(null),A=(0,i.A)(),S=(0,r.useCallback)((function(e){var t;null==l||l(e),null===(t=w.current)||void 0===t||t.setIsRightPanelVisible(!0)}),[l]),C=(0,r.useCallback)((function(){return f.vF.logTraceUseCallback("LAYOUT - renderLayerList"),(0,u.jsx)(h,{selectedLayerPath:a,onListItemClick:S,layerList:o})}),[a,o,S]),E=(0,r.useMemo)((function(){var e,t;return null!==(e=null===(t=o.find((function(e){return e.layerPath===a})))||void 0===t?void 0:t.layerName)&&void 0!==e?e:""}),[o,a]),_=(0,r.useCallback)((function(){var e=function(e){for(var t=1;t{"use strict";n.d(t,{B:()=>c});var r=n(94145),i=n(82942),o=function(e){return{legendIconTransparent:{display:"flex",justifyContent:"center",alignItems:"center",width:24,height:24},iconPreviewHoverable:{width:24,height:24,position:"absolute",left:-3,top:-2,padding:0,borderRadius:0,boxShadow:2,transition:"transform .3s ease-in-out","&:hover":{transform:"rotate(-18deg) translateX(-8px)"}},iconPreviewStacked:{width:24,height:24,padding:0,borderRadius:0,border:"1px solid",borderColor:e.palette.geoViewColor.bgColor.dark[600],boxShadow:2,backgroundColor:e.palette.geoViewColor.white},maxIconImg:{maxWidth:24,maxHeight:24},legendIcon:{display:"flex",justifyContent:"center",alignItems:"center",width:24,height:"24px !important",backgroundColor:e.palette.geoViewColor.white,border:"1px solid",borderColor:e.palette.geoViewColor.bgColor.dark[600],borderRadius:.5},stackIconsBox:{width:24,height:24,position:"relative","&:focus":{outlineColor:e.palette.geoViewColor.bgColor.dark[600]}},iconPreview:{padding:0,borderRadius:0,boxShadow:2,"&:focus":{border:"revert"}}}},a=n(91140),s=n(97282);function l(e){var t=e.layerPath,n=e.onIconClick,l=e.onStackIconClick,c=(0,r.A)(),u=o(c),d=(0,a.Uk)(t),h=(null==d?void 0:d.length)>0?d[0]:"",p=(null==d?void 0:d.length)>1?d[1]:"",f=null==d?void 0:d.length;return 1===f?(0,s.jsx)(i.IconButton,{tabIndex:-1,sx:u.iconPreview,color:"primary",size:"small",onClick:"no data"===h?void 0:n,"aria-hidden":"true",children:"no data"===h?(0,s.jsx)(i.BrowserNotSupportedIcon,{}):(0,s.jsx)(i.Box,{sx:u.legendIcon,children:(0,s.jsx)("img",{alt:"icon",src:h,style:u.maxIconImg})})}):f&&f>0?(0,s.jsxs)(i.Box,{tabIndex:-1,onClick:n,sx:u.stackIconsBox,onKeyPress:function(e){return null==l?void 0:l(e)},"aria-hidden":"true",children:[(0,s.jsx)(i.IconButton,{sx:u.iconPreviewStacked,color:"primary",size:"small",tabIndex:-1,"aria-hidden":"true",children:(0,s.jsx)(i.Box,{sx:u.legendIconTransparent,children:p&&(0,s.jsx)("img",{alt:"icon",src:p,style:u.maxIconImg})})}),(0,s.jsx)(i.IconButton,{sx:u.iconPreviewHoverable,color:"primary",size:"small",tabIndex:-1,"aria-hidden":"true",children:(0,s.jsx)(i.Box,{sx:u.legendIcon,children:h&&(0,s.jsx)("img",{alt:"icon",src:h,style:u.maxIconImg})})})]}):""!==t&&0===d.length&&"!"!==t.charAt(0)?(0,s.jsx)(i.Box,{tabIndex:-1,onClick:n,sx:u.stackIconsBox,onKeyPress:function(e){return null==l?void 0:l(e)},"aria-hidden":"true",children:(0,s.jsx)(i.IconButton,{sx:u.iconPreviewStacked,color:"primary",size:"small",tabIndex:-1,"aria-hidden":"true",children:(0,s.jsx)(i.Box,{sx:u.legendIconTransparent,children:(0,s.jsx)(i.BrowserNotSupportedIcon,{})})})}):null}function c(e){var t=e.layer;return"error"===t.layerStatus||"queryStatus"in t&&"error"===t.queryStatus?(0,s.jsx)(i.ErrorIcon,{color:"error"}):"processing"===t.layerStatus||"loading"===t.layerStatus||"queryStatus"in t&&"processing"===t.queryStatus?(0,s.jsx)(i.Box,{sx:{padding:"5px",marginRight:"10px"},children:(0,s.jsx)(i.CircularProgressBase,{size:20})}):"children"in t&&null!=t&&t.children.length?(0,s.jsx)(i.GroupWorkOutlinedIcon,{color:"primary"}):(0,s.jsx)(l,{layerPath:t.layerPath})}},27892:(e,t,n)=>{"use strict";n.d(t,{z:()=>S});var r=n(64426),i=n(47361),o=n(30538),a=n(43331),s=n(94145),l=n(34089),c=n(82942),u=n(43367),d=n(43422),h=n(97282);const p=function(e){var t=e.open,n=e.onClose,r=e.children;return(0,h.jsx)(c.Dialog,{fullScreen:!0,maxWidth:"xl",open:t,onClose:n,disablePortal:!0,children:(0,h.jsxs)(c.DialogContent,{sx:{display:"flex",flexDirection:"column",alignItems:"end"},children:[(0,h.jsx)(c.IconButton,{onClick:n,color:"primary",className:"buttonFilledOutline",sx:{marginBottom:"1.5rem"},children:(0,h.jsx)(c.CloseIcon,{})}),r]})})};var f=n(60854),g=n(13659),m=n(78918),y=n(60192),v=n(27927),b=n(31726),x=n(46457);function w(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 div":{maxHeight:"calc(100vh - 120px)",overflow:"auto"},"& .MuiTableContainer-root":{maxHeight:"calc(100vh - 260px)"},"& .guidebox-container":{maxHeight:"calc(100vh - 120px)",overflow:"auto"}},"& .MuiPaper-root":{border:"none"},"& .guideBox":{color:"".concat(e.palette.geoViewColor.grey.dark[800]," !important"),margin:"1rem",img:{maxWidth:"100%"},td:{width:"auto",paddingLeft:"15px"},th:{textAlign:"left",paddingLeft:"15px"},"& h3":{"&:first-of-type":{display:"flex",alignItems:"center",gap:"0.325rem"}}}}}}(N),V=(0,a.useTranslation)().t,B=(0,b.DR)(),$=(0,b.kv)(),G=(0,o.useState)(!1),U=(0,i.A)(G,2),W=U[0],q=U[1],H=(0,o.useState)(!1),Y=(0,i.A)(H,2),K=Y[0],X=Y[1],Z=(0,o.useState)(!1),J=(0,i.A)(Z,2),Q=J[0],ee=J[1],te=(0,o.useState)(!1),ne=(0,i.A)(te,2),re=ne[0],ie=ne[1],oe=(0,d.W)({footerPanelTab:"default"}),ae=oe.leftPanelRef,se=oe.rightPanelRef,le=oe.panelTitleRef;(0,o.useImperativeHandle)(t,(function(){return{setIsRightPanelVisible:function(e){return q(e)}}})),(0,o.useEffect)((function(){X(!T&&!!M)}),[T,M]),(0,o.useEffect)((function(){null==R||R(K)}),[K,R]),(0,o.useEffect)((function(){F&&Q&&ee(!1)}),[F,Q]);var ce=(0,o.useCallback)((function(e){f.vF.logTraceUseCallback("LAYOUT - handleIsEnlarge"),ee(e),null==L||L(e)}),[L]),ue=(0,o.useCallback)((function(){M&&X(!0)}),[X,M]);N.breakpoints.down("md")&&(C||w||W||P||q(!0));var de,he;return(0,h.jsxs)(c.Box,{ref:t,children:[(0,h.jsxs)(u.N.Root,{sx:{pt:8,pb:0},ref:le,children:[!P&&(0,h.jsx)(u.N.Left,{isRightPanelVisible:W,isEnlarged:Q,"aria-hidden":!W,sxProps:{zIndex:re?"unset":200},className:"responsive-layout-left-top",children:w}),(0,h.jsx)(u.N.Right,{isRightPanelVisible:W,isEnlarged:Q,fullWidth:P,sxProps:{zIndex:re?"unset":100},className:"responsive-layout-right-top",children:(0,h.jsxs)(c.Box,{sx:(0,r.A)((0,r.A)({display:"flex",alignItems:P||D===x.vB.APP_BAR?"end":"center",flexDirection:P||D===x.vB.APP_BAR?"column":"row",gap:P||D===x.vB.APP_BAR?"10px":"0"},N.breakpoints.up("md"),{justifyContent:P||D===x.vB.APP_BAR?"space-between":"right"}),N.breakpoints.down("md"),{justifyContent:"space-between"}),children:[null!=_?_:(0,h.jsx)(c.Box,{}),(0,h.jsx)(c.Box,{sx:z.rightButtonsContainer,children:(0,h.jsxs)(c.ButtonGroup,{size:"small",variant:"outlined","aria-label":"outlined button group",children:[!P&&!F&&(window.innerWidth<=N.breakpoints.values.md?null:(0,h.jsx)(c.Button,{makeResponsive:!0,type:"text",size:"small",variant:"outlined",startIcon:Q?(0,h.jsx)(g.A,{}):(0,h.jsx)(m.A,{}),sx:{boxShadow:"none"},onClick:function(){return ce(!Q)},tooltip:V(Q?"dataTable.reduceBtn":"dataTable.enlargeBtn"),children:V(Q?"dataTable.reduceBtn":"dataTable.enlargeBtn")})),!(null==M||!M.length)&&(window.innerWidth<=N.breakpoints.values.md?null:(0,h.jsx)(c.Button,{makeResponsive:!0,type:"text",disabled:K,variant:"outlined",size:"small",onClick:function(){return ue()},tooltip:V("general.openGuide"),startIcon:(0,h.jsx)(v.A,{}),children:V("general.guide")})),!$&&(0,h.jsx)(c.Button,{makeResponsive:!0,type:"text",variant:"outlined",size:"small",onClick:function(){return ie(!re)},tooltip:V(re?"general.closeFullscreen":"general.openFullscreen"),startIcon:(0,h.jsx)(c.FullscreenIcon,{}),children:V("general.fullScreen")}),!(!C&&!w)&&(P||!(window.innerWidth>=N.breakpoints.values.md)&&W?(0,h.jsx)(c.Button,{makeResponsive:!0,type:"text",size:"small",variant:"outlined",color:"primary",className:"buttonFilledOutline",startIcon:(0,h.jsx)(y.A,{fontSize:N.palette.geoViewFontSize.sm}),sx:A({},P?z.appBarEnlargeButton:z.footerBarEnlargeButton),onClick:function(){return q(!1)},tooltip:null!==(he=V("dataTable.close"))&&void 0!==he?he:"",children:V("dataTable.close")}):null)]})})]})})]}),(0,h.jsxs)(u.N.Root,{children:[(0,h.jsx)(u.N.Left,A(A({},!P&&{ref:ae}),{},{isEnlarged:Q,isRightPanelVisible:W,fullWidth:P,"aria-hidden":!W,sxProps:{zIndex:re?"unset":200},className:"responsive-layout-left-main",children:C})),(0,h.jsx)(u.N.Right,A(A({},!P&&{ref:se}),{},{isEnlarged:Q,isRightPanelVisible:W,fullWidth:P,sxProps:{zIndex:re?"unset":100},className:"responsive-layout-right-main",children:(de=K?function(){var e=null==M?void 0:M.map((function(e){var t;return function(e,t){if(null!=e){var n=t.split("."),r=e;return n.forEach((function(e){r=e in r?r[e]:void 0})),r}}(null==B||null===(t=B.footerPanel)||void 0===t?void 0:t.children,"".concat(e,".content"))})).filter((function(e){return void 0!==e})).join("\n");return e?(0,h.jsx)(c.Box,{sx:{padding:"20px",overflow:"auto"},children:(0,h.jsx)(c.Box,{className:"guideBox",children:(0,h.jsx)(l.Ay,{options:{wrapper:"article"},children:e})})}):null}():T,(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(p,{open:re,onClose:function(){return ie(!1)},children:(0,h.jsx)(c.Box,{sx:z.rightGridContent,className:"responsive-layout-right-main-content fullscreen-mode",children:de})}),(0,h.jsx)(c.Box,{sx:z.rightGridContent,className:K?"responsive-layout-right-main-content guide-container":"responsive-layout-right-main-content",children:de})]}))}))]})]})}));S.displayName="ResponsiveGridLayout"},43367:(e,t,n)=>{"use strict";n.d(t,{N:()=>y});var r=n(64426),i=n(55594),o=n(30538),a=n(94145),s=n(82942),l=n(97282),c=["children"],u=["children","className","isRightPanelVisible","sxProps","isEnlarged","fullWidth"],d=["children","className","isRightPanelVisible","sxProps","isEnlarged","fullWidth"];function h(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 p(e){for(var t=1;t{"use strict";n.d(t,{W:()=>g});var r=n(30538),i=n(94145),o=n(6467),a=n(31726),s=n(69495),l=n(62e3),c=n(74624),u=n(60854),d=n(46457),h=n(15247),p=n(8259),f=n(28187);function g(e){var t=e.footerPanelTab,n=void 0===t?"default":t,g=600,m=(0,i.A)(),y=(0,h.Jh)(),v=(0,r.useRef)(null),b=(0,r.useRef)(null),x=(0,r.useRef)(0),w=(0,o.A)(m.breakpoints.down("md")),A=(0,r.useCallback)((function(e){var t,n;e&&(x.current=null!==(t=null===(n=e.getBoundingClientRect())||void 0===n?void 0:n.height)&&void 0!==t?t:0)}),[]),S=(0,a.kv)(),C=(0,f.ht)(),E=(0,s.ex)(),_=(0,s.g_)(),k=(0,l.yU)(),T=(0,c.Xh)(),O=(0,c.eQ)().setTableHeight,P=(0,s.bd)().tabGroup,I=function(e){var t,n,r=null!==(t=null===(n=b.current)||void 0===n?void 0:n.firstElementChild)&&void 0!==t?t:null;r&&(r.style.maxHeight=null!=e?e:"".concat(g,"px"),r.style.overflowY="auto")};return(0,r.useEffect)((function(){if(u.vF.logTraceUseEffect("USE-FOOTER-PANEL-HEIGHT - footerPanelResizeValue",E,S),v.current&&S&&(_===n||"default"===n)){var e,t,r=document.getElementById("".concat(y,"-tabsContainer")),i=null==r||null===(e=r.firstElementChild)||void 0===e?void 0:e.firstElementChild,o=null!==(t=null==i?void 0:i.clientHeight)&&void 0!==t?t:0,a=window.screen.height*E/100-x.current-o-10;if(P!==p.NF.DATA_TABLE&&P!==p.NF.LAYERS||(a=window.screen.height-200),v.current.style.maxHeight="".concat(a,"px"),v.current.style.overflow="auto",v.current.style.paddingBottom="24px",_===d.DF.DATA_TABLE||P===p.NF.DATA_TABLE)I("".concat(a,"px")),O("".concat(a-100,"px"));else if(_===d.DF.GEO_CHART&&b.current){var s,l=null===(s=b.current)||void 0===s?void 0:s.firstElementChild;l&&(l.style.maxHeight="".concat(a,"px"),l.style.overflowY="auto")}else I("".concat(a,"px"))}if(!S&&v.current)if(v.current.style.maxHeight="".concat(g,"px"),v.current.style.overflow="auto",I(),_===d.DF.DATA_TABLE||P===p.NF.DATA_TABLE)O("".concat(500,"px"));else if(_===d.DF.GEO_CHART&&b.current){var c,h=null===(c=b.current)||void 0===c?void 0:c.firstElementChild;h&&(h.style.maxHeight="".concat(g,"px"),h.style.overflowY="auto")}}),[E,S,_,n,y,O,k,T,P]),(0,r.useEffect)((function(){v.current&&!S&&(P!==p.NF.DATA_TABLE&&P!==p.NF.LAYERS||!w?v.current.style.maxHeight="".concat(g,"px"):v.current.style.maxHeight="100%")}),[C,S,P,w]),{leftPanelRef:v,rightPanelRef:b,panelTitleRef:A,activeFooterBarTabId:_}}},89971:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(97282);function i(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 275 275",focusable:"false",children:(0,r.jsx)("g",{fill:"none",stroke:"#616161",strokeWidth:"1px",id:"crosshairs",transform:"translate(0 -1824.72) scale(2)",children:(0,r.jsx)("path",{d:"m136.18 983.66-130.93-0.00001m65.467-65.467v130.93m32.2-65.466c0 17.784-14.417 32.2-32.2 32.2-17.784 0-32.2-14.417-32.2-32.2 0-17.784 14.417-32.2 32.2-32.2 17.784 0 32.2 14.417 32.2 32.2z"})})})}},77082:(e,t,n)=>{"use strict";n.d(t,{B:()=>m});var r=n(64426),i=n(30538),o=n(94145),a=n(43331),s=n(82942),l=function(e){var t;return{crosshairContainer:{position:"absolute",top:e.spacing(0),right:e.spacing(0),left:e.spacing(0),bottom:e.spacing(0),paddingBottom:e.spacing(6),display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none !important",zIndex:e.zIndex.olControl},crosshairInfo:{position:"absolute",top:e.spacing(0),right:e.spacing(0),left:e.spacing(0),height:"calc(1em + 8px)",padding:e.spacing(2,1,4,1),backgroundColor:e.palette.geoViewColor.grey.lighten(.1,.9),"& span":{paddingLeft:70}},crosshairIcon:{width:e.overrides.crosshairIcon.size.width,height:null===(t=e.overrides.crosshairIcon)||void 0===t?void 0:t.size.height}}},c=n(89971),u=n(31726),d=n(28187),h=n(60854),p=n(97282);function f(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 g(e){for(var t=1;t{"use strict";n.d(t,{t:()=>S});var r=n(64426),i=n(47361),o=n(75299),a=n.n(o),s=n(30538),l=n(43331),c=n(94145),u=n(82942),d=n(87485),h=n(74624),p=n(28187),f=n(69495),g=n(78383),m=n(60854),y=n(15560),v=n(46457),b=n(8259),x=n(97282);function w(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;t0&&(r="".concat(i," ").concat(w("dataTable.features"))),r}),[I,B,w]),W=(0,s.useCallback)((function(e,t){return m.vF.logTraceUseCallback("DATA-PANEL - getLayerTooltip"),(0,x.jsxs)(u.Box,{sx:{display:"flex",alignContent:"center","& svg ":{width:"0.75em",height:"0.75em"}},children:["".concat(e,", ").concat(U(t)),G(t)&&(0,x.jsx)(u.FilterAltIcon,{})]})}),[U,G]),q=(0,s.useMemo)((function(){return m.vF.logTraceUseMemo("DATA-PANEL - isLayerDisabled",P),function(){return!!B.find((function(e){return e.layerPath===P&&null===e.features}))}}),[B,P]),H=(0,s.useMemo)((function(){return m.vF.logTraceUseMemo("DATA-PANEL - isSelectedLayerHasFeatures",P),function(){return B.find((function(e){var t;return e.layerPath===P&&(null==e||null===(t=e.features)||void 0===t?void 0:t.length)}))}}),[P,B]);(0,s.useEffect)((function(){m.vF.logTraceUseEffect("DATA-PANEL - isLoading",k,P);var e=a()((function(){T(!1)}),100);return function(){return clearTimeout(e)}}),[k,P]),(0,s.useEffect)((function(){m.vF.logTraceUseEffect("DATA-PANEL - unmount",P),R!==v.DF.DATA_TABLE&&M("")}),[R]),(0,s.useEffect)((function(){D===b.NF.DATA_TABLE&&N||!z.includes(b.NF.DATA_TABLE)||M("")}),[D,N,M,z]);var Y=(0,s.useMemo)((function(){return m.vF.logTraceUseMemo("DATA-PANEL - order layer status processing."),function(){return!!B.find((function(e){return e.queryStatus===v.RI.PROCESSING}))}}),[B]),K=(0,s.useCallback)((function(e){e&&M("")}),[M]),X=(0,s.useMemo)((function(){return m.vF.logTraceUseMemo("DATA-PANEL - memoLayersList",B),B.map((function(e){var t;return A(A({},e),{},{layerFeatures:U(e.layerPath),tooltip:W(null!==(t=e.layerName)&&void 0!==t?t:"",e.layerPath),mapFilteredIcon:G(e.layerPath)&&(0,x.jsx)(u.FilterAltIcon,{sx:{color:S.palette.geoViewColor.grey.main}})})}))}),[G,B]);return(0,x.jsx)(g.PE,{containerType:o,selectedLayerPath:P||"",layerList:X,onLayerListClicked:$,fullWidth:n,onGuideIsOpen:K,guideContentIds:["dataTable","dataTable.children.filterData","dataTable.children.sortingAndReordering","dataTable.children.keyboardNavigation"],children:k||Y()?(0,x.jsx)(u.Skeleton,{variant:"rounded",width:"100%",height:400,sx:{bgcolor:S.palette.grey[400]}}):!q()&&H()?(0,x.jsx)(x.Fragment,{children:B.map((function(e){return(0,x.jsx)(u.Box,{children:e.layerPath===P?(0,x.jsx)(d.A,{data:e,layerPath:e.layerPath,tableHeight:O}):null},e.layerPath)}))}):null})}},39647:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var r=function(e){return{dataPanel:{background:e.palette.geoViewColor.bgColor.main,paddingBottom:"1rem"},gridContainer:{paddingLeft:"1rem",paddingRight:"1rem"},selectedRows:{transition:"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",fontWeight:400,fontSize:e.palette.geoViewFontSize.sm,linHeight:1.43,letterSpacing:"0.01071em",display:"flex",padding:"6px"},selectedRowsDirection:{display:"flex",flexDirection:"column"},tableCell:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},dataTableWrapper:{"& .MuiTableContainer-root":{borderRadius:"6px"},"& .MuiToolbar-root ":{borderRadius:"6px"}},filterMap:{"& .Mui-checked":{"& .MuiTouchRipple-root":{color:e.palette.action.active}},"& .MuiTouchRipple-root":{color:e.palette.geoViewColor.grey.dark[900]}},tableHeadCell:{"& .MuiCollapse-wrapperInner":{"& .MuiBox-root":{gridTemplateColumns:"1fr"}},"& .MuiInput-root":{fontSize:e.palette.geoViewFontSize.sm,"& .MuiSvgIcon-root":{width:"0.75em",height:"0.75em"}},"& .MuiBadge-root":{marginLeft:"0.5rem",">span":{width:"100%"},svg:{marginTop:"0.25rem",marginBottom:"0.25rem"},"& .keyboard-focused":{backgroundColor:"rgba(81, 91, 165, 0.08)",borderRadius:"50%",border:"1px solid black !important","> svg":{opacity:1}}}},dataTableInstructionsTitle:{fontSize:e.palette.geoViewFontSize.lg,fontWeight:"600",lineHeight:"1.5em"},dataTableInstructionsBody:{fontSize:e.palette.geoViewFontSize.sm},rightPanelContainer:{overflowY:"auto",color:e.palette.geoViewColor.textColor.main}}}},87485:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=n(31625),i=n(43994),o=n(64426),a=n(47361),s=n(59615),l=n.n(s),c=n(30538),u=n(43331),d=n(44481),h=n.n(d),p=n(58452),f=n.n(p),g=n(41218),m=n(51559),y=n(78185),v=n.n(y),b=n(41294),x=n.n(b),w=n(76853),A=n.n(w),S=n(13246),C=n.n(S),E=n(45816),_=n.n(E),k=n(54370);v().extend(A()),v().extend(C()),v().extend(_());const T=(0,k.f)(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),O={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},P={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},I=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join("\n"),M=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join("\n");class L{constructor({locale:e,formats:t,instance:n}={}){var r,i,o;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=O,this.setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)},this.hasUTCPlugin=()=>void 0!==v().utc,this.hasTimezonePlugin=()=>void 0!==v().tz,this.isSame=(e,t,n)=>{const r=this.setTimezone(t,this.getTimezone(e));return e.format(n)===r.format(n)},this.cleanTimezone=e=>{switch(e){case"default":return;case"system":return v().tz.guess();default:return e}},this.createSystemDate=e=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(e);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const t=v().tz.guess();return"UTC"!==t?v().tz(e,t):v()(e)}return v()(e)},this.createUTCDate=e=>{if(!this.hasUTCPlugin())throw new Error(I);return v().utc(e)},this.createTZDate=(e,t)=>{if(!this.hasUTCPlugin())throw new Error(I);if(!this.hasTimezonePlugin())throw new Error(M);const n=void 0!==e&&!e.endsWith("Z");return v()(e).tz(this.cleanTimezone(t),n)},this.getLocaleFormats=()=>{const e=v().Ls;let t=e[this.locale||"en"];return void 0===t&&(T(),t=e.en),t.formats},this.adjustOffset=e=>{if(!this.hasTimezonePlugin())return e;const t=this.getTimezone(e);if("UTC"!==t){var n,r;const i=e.tz(this.cleanTimezone(t),!0);return(null!=(n=i.$offset)?n:0)===(null!=(r=e.$offset)?r:0)?e:i}return e},this.date=e=>null===e?null:this.dayjs(e),this.dateWithTimezone=(e,t)=>{if(null===e)return null;let n;return n="UTC"===t?this.createUTCDate(e):"system"===t||"default"===t&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t),void 0===this.locale?n:n.locale(this.locale)},this.getTimezone=e=>{if(this.hasTimezonePlugin()){var t;const n=null==(t=e.$x)?void 0:t.$timezone;if(n)return n}return this.hasUTCPlugin()&&e.isUTC()?"UTC":"system"},this.setTimezone=(e,t)=>{if(this.getTimezone(e)===t)return e;if("UTC"===t){if(!this.hasUTCPlugin())throw new Error(I);return e.utc()}if("system"===t)return e.local();if(!this.hasTimezonePlugin()){if("default"===t)return e;throw new Error(M)}return v().tz(e,this.cleanTimezone(t))},this.toJsDate=e=>e.toDate(),this.parseISO=e=>this.dayjs(e),this.toISO=e=>e.toISOString(),this.parse=(e,t)=>""===e?null:this.dayjs(e,t,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=e=>{const t=this.getLocaleFormats();return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,((e,n,r)=>{const i=r&&r.toUpperCase();return n||t[r]||t[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,((e,t,n)=>t||n.slice(1)))}))},this.getFormatHelperText=e=>this.expandFormat(e).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=e=>null===e,this.isValid=e=>this.dayjs(e).isValid(),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>this.dayjs(e).format(t),this.formatNumber=e=>e,this.getDiff=(e,t,n)=>e.diff(t,n),this.isEqual=(e,t)=>null===e&&null===t||this.dayjs(e).toDate().getTime()===this.dayjs(t).toDate().getTime(),this.isSameYear=(e,t)=>this.isSame(e,t,"YYYY"),this.isSameMonth=(e,t)=>this.isSame(e,t,"YYYY-MM"),this.isSameDay=(e,t)=>this.isSame(e,t,"YYYY-MM-DD"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.isAfter=(e,t)=>e>t,this.isAfterYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()>t.utc():e.isAfter(t,"year"),this.isAfterDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()>t.utc():e.isAfter(t,"day"),this.isBefore=(e,t)=>ethis.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()e>=t&&e<=n,this.startOfYear=e=>this.adjustOffset(e.startOf("year")),this.startOfMonth=e=>this.adjustOffset(e.startOf("month")),this.startOfWeek=e=>this.adjustOffset(e.startOf("week")),this.startOfDay=e=>this.adjustOffset(e.startOf("day")),this.endOfYear=e=>this.adjustOffset(e.endOf("year")),this.endOfMonth=e=>this.adjustOffset(e.endOf("month")),this.endOfWeek=e=>this.adjustOffset(e.endOf("week")),this.endOfDay=e=>this.adjustOffset(e.endOf("day")),this.addYears=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"year"):e.add(t,"year")),this.addMonths=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"month"):e.add(t,"month")),this.addWeeks=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"week"):e.add(t,"week")),this.addDays=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"day"):e.add(t,"day")),this.addHours=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"hour"):e.add(t,"hour")),this.addMinutes=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"minute"):e.add(t,"minute")),this.addSeconds=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"second"):e.add(t,"second")),this.getYear=e=>e.year(),this.getMonth=e=>e.month(),this.getDate=e=>e.date(),this.getHours=e=>e.hour(),this.getMinutes=e=>e.minute(),this.getSeconds=e=>e.second(),this.getMilliseconds=e=>e.millisecond(),this.setYear=(e,t)=>this.adjustOffset(e.set("year",t)),this.setMonth=(e,t)=>this.adjustOffset(e.set("month",t)),this.setDate=(e,t)=>this.adjustOffset(e.set("date",t)),this.setHours=(e,t)=>this.adjustOffset(e.set("hour",t)),this.setMinutes=(e,t)=>this.adjustOffset(e.set("minute",t)),this.setSeconds=(e,t)=>this.adjustOffset(e.set("second",t)),this.setMilliseconds=(e,t)=>this.adjustOffset(e.set("millisecond",t)),this.getDaysInMonth=e=>e.daysInMonth(),this.getNextMonth=e=>this.addMonths(e,1),this.getPreviousMonth=e=>this.addMonths(e,-1),this.getMonthArray=e=>{const t=[e.startOf("year")];for(;t.length<12;){const e=t[t.length-1];t.push(this.addMonths(e,1))}return t},this.mergeDateAndTime=(e,t)=>e.hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>{const e=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map((t=>this.formatByString(this.addDays(e,t),"dd")))},this.getWeekArray=e=>{const t=this.setLocaleToValue(e),n=t.startOf("month").startOf("week"),r=t.endOf("month").endOf("week");let i=0,o=n;const a=[];for(;oe.week(),this.getYearRange=(e,t)=>{const n=e.startOf("year"),r=t.endOf("year"),i=[];let o=n;for(;o"am"===e?"AM":"PM",this.rawDayJsInstance=n,this.dayjs=(i=null!=(r=this.rawDayJsInstance)?r:v(),(o=e)?(...e)=>i(...e).locale(o):i),this.locale=e,this.formats=(0,m.A)({},P,t),v().extend(x())}}var R=n(38540),j=n(61821);const F={actions:"Actions",and:"et",cancel:"Annuler",changeFilterMode:"Changer le mode de filtre",changeSearchMode:"Changer le mode de recherche",clearFilter:"Effacer le filtre",clearSearch:"Effacer la recherche",clearSelection:"Effacer la sélection",clearSort:"Effacer le tri",clickToCopy:"Cliquer pour copier",copy:"Copier",collapse:"Réduire",collapseAll:"Réduire tout",columnActions:"Actions de colonne",copiedToClipboard:"Copié dans le presse-papier",dropToGroupBy:"Déposer pour grouper par {column}",edit:"Editer",expand:"Développer",expandAll:"Tout développer",filterArrIncludes:"Inclure",filterArrIncludesAll:"Tout inclure",filterArrIncludesSome:"Inclure",filterBetween:"Entre",filterBetweenInclusive:"Entre inclus",filterByColumn:"Filtrer par {column}",filterContains:"Contient",filterEmpty:"Vide",filterEndsWith:"Se termine par",filterEquals:"Egale",filterEqualsString:"Egale",filterFuzzy:"Flou",filterGreaterThan:"Plus grand que",filterGreaterThanOrEqualTo:"Plus grand que ou égale à",filterInNumberRange:"Entre",filterIncludesString:"Contient",filterIncludesStringSensitive:"Contient",filterLessThan:"Plus petit que",filterLessThanOrEqualTo:"Plus petit que ou égale à",filterMode:"Mode filtre: {filterType}",filterNotEmpty:"Pas vide",filterNotEquals:"Pas égal",filterStartsWith:"Commence avec",filterWeakEquals:"Egale",filteringByColumn:"Filtrage par {column} - {filterType} {filterValue}",goToFirstPage:"Aller à la première page",goToLastPage:"Aller à la dernière page",goToNextPage:"Aller à la page suivante",goToPreviousPage:"Aller à la page précédente",grab:"Saisir",groupByColumn:"Grouper par {column}",groupedBy:"Groupé par ",hideAll:"Cacher tout",hideColumn:"Cacher colonne {column}",max:"Max",min:"Min",move:"Déplacer",noRecordsToDisplay:"Aucun enregistrement à afficher",noResultsFound:"Aucun résultat trouvé",of:"de",or:"ou",pin:"Attacher",pinToLeft:"Épingler à gauche",pinToRight:"Épingler à droite",resetColumnSize:"Réinitialiser la taille de la colonne",resetOrder:"Réinitialiser l'ordre",rowActions:"Actions de ligne",rowNumber:"#",rowNumbers:"Numéros de ligne",rowsPerPage:"Lignes par page",save:"Sauvegarder",search:"Rechercher",selectedCountOfRowCountRowsSelected:"{selectedCount} sur {rowCount} ligne(s)",select:"Sélectionner",showAll:"Afficher tous",showAllColumns:"Afficher toutes les colonnes",showHideColumns:"Afficher/Masquer les colonnes",showHideFilters:"Afficher/Masquer les filtres",showHideSearch:"Afficher/Masquer la recherche",sortByColumnAsc:"Trier par {column} croissant",sortByColumnDesc:"Trier par {column} décroissant",sortedByColumnAsc:"Trié par {column} croissant",sortedByColumnDesc:"Trié par {column} décroissant",thenBy:", puis par ",toggleDensity:"Changer la densité",toggleFullScreen:"Passer en plein écran",toggleSelectAll:"Basculer tout sélectionner",toggleSelectRow:"Basculer la sélection de ligne",toggleVisibility:"Basculer la visibilité",ungroupByColumn:"Dissocier par {column}",unpin:"Détacher",unpinAll:"Tout détacher"},D={actions:"Actions",and:"and",cancel:"Cancel",changeFilterMode:"Change filter mode",changeSearchMode:"Change search mode",clearFilter:"Clear filter",clearSearch:"Clear search",clearSelection:"Clear selection",clearSort:"Clear sort",clickToCopy:"Click to copy",copy:"Copy",collapse:"Collapse",collapseAll:"Collapse all",columnActions:"Column Actions",copiedToClipboard:"Copied to clipboard",dropToGroupBy:"Drop to group by {column}",edit:"Edit",expand:"Expand",expandAll:"Expand all",filterArrIncludes:"Includes",filterArrIncludesAll:"Includes all",filterArrIncludesSome:"Includes",filterBetween:"Between",filterBetweenInclusive:"Between Inclusive",filterByColumn:"Filter by {column}",filterContains:"Contains",filterEmpty:"Empty",filterEndsWith:"Ends With",filterEquals:"Equals",filterEqualsString:"Equals",filterFuzzy:"Fuzzy",filterGreaterThan:"Greater Than",filterGreaterThanOrEqualTo:"Greater Than Or Equal To",filterInNumberRange:"Between",filterIncludesString:"Contains",filterIncludesStringSensitive:"Contains",filterLessThan:"Less Than",filterLessThanOrEqualTo:"Less Than Or Equal To",filterMode:"Filter Mode: {filterType}",filterNotEmpty:"Not Empty",filterNotEquals:"Not Equals",filterStartsWith:"Starts With",filterWeakEquals:"Equals",filteringByColumn:"Filtering by {column} - {filterType} {filterValue}",goToFirstPage:"Go to first page",goToLastPage:"Go to last page",goToNextPage:"Go to next page",goToPreviousPage:"Go to previous page",grab:"Grab",groupByColumn:"Group by {column}",groupedBy:"Grouped by ",hideAll:"Hide all",hideColumn:"Hide {column} column",max:"Max",min:"Min",move:"Move",noRecordsToDisplay:"No records to display",noResultsFound:"No results found",of:"of",or:"or",pin:"Pin",pinToLeft:"Pin to left",pinToRight:"Pin to right",resetColumnSize:"Reset column size",resetOrder:"Reset order",rowActions:"Row Actions",rowNumber:"#",rowNumbers:"Row Numbers",rowsPerPage:"Rows per page",save:"Save",search:"Search",selectedCountOfRowCountRowsSelected:"{selectedCount} of {rowCount} row(s) selected",select:"Select",showAll:"Show all",showAllColumns:"Show all columns",showHideColumns:"Show/Hide columns",showHideFilters:"Show/Hide filters",showHideSearch:"Show/Hide search",sortByColumnAsc:"Sort by {column} ascending",sortByColumnDesc:"Sort by {column} descending",sortedByColumnAsc:"Sorted by {column} ascending",sortedByColumnDesc:"Sorted by {column} descending",thenBy:", then by ",toggleDensity:"Toggle density",toggleFullScreen:"Toggle full screen",toggleSelectAll:"Toggle select all",toggleSelectRow:"Toggle select row",toggleVisibility:"Toggle visibility",ungroupByColumn:"Ungroup by {column}",unpin:"Unpin",unpinAll:"Unpin all"};var N=n(94145),z=n(43975),V=n(82942),B=n(28187),$=n(74624),G=n(31726),U=n(69495),W=n(34028),q=n(79913),H=n(60854),Y=n(15560),K=n(39647),X=n(81247),Z=n(74468),J=n(45457),Q=n(78383),ee=n(46457),te=n(97282);function ne(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 re(e){for(var t=1;t td":{backgroundColor:e.palette.geoViewColor.bgColor.darken(.1)},"& tr:hover > td":{backgroundColor:e.palette.secondary.light},"& .Mui-selected > td":{backgroundColor:"".concat(e.palette.secondary.light," !important")}}}}});(0,c.useEffect)((function(){H.vF.logTraceUseEffect("DATA-TABLE - sorting",E);var e=Ie.getRowCount();try{var t,n;if(e>0)null===(t=A.current)||void 0===t||null===(n=t.scrollToIndex)||void 0===n||n.call(t,0)}catch(e){H.vF.logError("Data table error on sorting action",e)}}),[E]);var Me=(0,c.useCallback)((function(e){H.vF.logTraceUseEffect("DATA-TABLE - buildFilterList");var t=Ie.getState();return e.length?e.map((function(e){var n,i=e.value,o=e.id;if(Array.isArray(i)){var a="",s=""===i[0]?void 0:Number(i[0]),l=""===i[1]?void 0:Number(i[1]),c="betweenInclusive"===(null==t?void 0:t.columnFilterFns[o])?"=":"";return s&&l?a="".concat(o," >").concat(c," ").concat(s," and ").concat(o," <").concat(c," ").concat(l):s?a="".concat(o," >").concat(c," ").concat(s):l&&(a="".concat(o," <").concat(c," ").concat(l)),a}if(!Number.isNaN(Number(i)))return"".concat(o," ").concat(ee.LK[null==t?void 0:t.columnFilterFns[o]]," ").concat(Number(i));if("empty"===(null==t?void 0:t.columnFilterFns[o]))return"".concat(o," is null");if("notEmpty"===(null==t?void 0:t.columnFilterFns[o]))return"".concat(o," is not null");if("object"===(0,r.A)(i)&&i){var u=(null==t?void 0:t.columnFilterFns[o])||"equals",d=ee.Ax[u],h=W.P.applyInputDateFormat("".concat(i.toISOString().slice(0,-5),"Z")).slice(0,-1);return"".concat(o," ").concat(d.replace("value",h))}var p=null!==(n=null==t?void 0:t.columnFilterFns[o])&&void 0!==n?n:"contains",f=ee.Fz[p];return"".concat(f.replace("filterId",o).replace("value",i))})):[""]}),[]),Le=h()((function(e){var t=Me(e).filter((function(e){return e.length})).join(" and ");oe(t)}),1e3),Re=(0,c.useCallback)((function(e){return Le(e)}),[null===(t=le[o])||void 0===t?void 0:t.mapFilteredRecord]);return(0,c.useEffect)((function(){H.vF.logTraceUseEffect("DATA-TABLE - columnFilters",ye),ye&&le[o].mapFilteredRecord&&Re(ye)}),[ye]),(0,c.useEffect)((function(){H.vF.logTraceUseEffect("DATA-TABLE - mapFilteredRecord",le[o].mapFilteredRecord),Le(ye)}),[le[o].mapFilteredRecord]),(0,Y.iI)({data:n,columnFilters:ye,globalFilter:xe,layerPath:o,tableInstance:Ie}),(0,te.jsxs)(V.Box,{sx:y.dataTableWrapper,children:[(0,te.jsx)(V.MaterialReactTable,{table:Ie}),(0,te.jsx)(ge,{})]})}const oe=(0,c.memo)(ie)},81247:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(47361),i=n(30538),o=n(43331),a=n(68312),s=n(82942),l=n(60854),c=n(97282);const u=function(e){var t=e.rows,n=e.columns,u=e.children;l.vF.logTraceRender("components/data-table/export-button");var d=(0,o.useTranslation)().t,h=(0,i.useState)(null),p=(0,r.A)(h,2),f=p[0],g=p[1],m=Boolean(f),y=(0,i.useCallback)((function(e){l.vF.logTraceUseCallback("DATA-TABLE - EXPORT BUTTON - handleClick"),g(e.currentTarget)}),[]),v=(0,i.useCallback)((function(){l.vF.logTraceUseCallback("DATA-TABLE - EXPORT BUTTON - handleClose"),g(null)}),[]),b=(0,i.useMemo)((function(){return l.vF.logTraceUseMemo("DATA-TABLE - EXPORT BUTTON - getCsvOptions",n),function(){return{fieldSeparator:",",quoteStrings:'"',decimalSeparator:".",showLabels:!0,useBom:!0,useKeysAsHeaders:!1,headers:n.map((function(e){return e.id}))}}}),[n]),x=(0,i.useCallback)((function(){l.vF.logTraceUseCallback("DATA-TABLE - EXPORT BUTTON - handleExportData");var e=t.map((function(e){return Object.keys(e).reduce((function(t,n){var r,i;return t[n]=null!==(r=null===(i=e[n])||void 0===i?void 0:i.value)&&void 0!==r?r:"",t}),{})}));new a.ExportToCsv(b()).generateCsv(e)}),[b,t]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.IconButton,{onClick:y,className:"buttonOutline",children:(0,c.jsx)(s.Tooltip,{title:d("dataTable.exportBtn"),placement:"bottom",enterDelay:100,children:(0,c.jsx)(s.DownloadIcon,{})})}),(0,c.jsxs)(s.Menu,{anchorEl:f,open:m,onClose:v,children:[(0,c.jsx)(s.MenuItem,{onClick:x,children:d("dataTable.downloadAsCSV")}),u]})]})}},45457:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(43331),i=n(68599),o=n(94145),a=n(82942),s=n(39647),l=n(74624),c=n(60854),u=n(97282);const d=function(e){var t=e.layerPath,n=e.isGlobalFilterOn;c.vF.logTraceRender("components/data-table/filter-map");var d=(0,o.A)(),h=(0,s.S)(d),p=(0,l._M)(),f=(0,l.eQ)().setMapFilteredEntry,g=(0,r.useTranslation)().t;return(0,u.jsx)(a.Tooltip,{title:p[t]?g("dataTable.stopFilterMap"):g("dataTable.filterMap"),children:(0,u.jsx)(i.A,{size:"medium",onChange:function(){var e;return f(null===(e=!p[t].mapFilteredRecord)||void 0===e||e,t)},checked:!!p[t].mapFilteredRecord,sx:h.filterMap,disabled:n})})}},15560:(e,t,n)=>{"use strict";n.d(t,{bc:()=>p,j8:()=>s,bv:()=>f,iI:()=>c});var r=n(47361),i=n(30538),o=n(74624),a=n(60854);function s(e){var t=e.layerPath,n=(0,o._M)(),s=(0,o.eQ)().setColumnFiltersEntry,l=(0,i.useState)(n[t].columnFiltersRecord||[]),c=(0,r.A)(l,2),u=c[0],d=c[1];return(0,i.useEffect)((function(){a.vF.logTraceUseEffect("USEFILTERROWS - columnFilters",u),s(u,t)}),[u]),{columnFilters:u,setColumnFilters:d}}var l=n(43331);function c(e){var t=e.data,n=e.columnFilters,r=e.globalFilter,s=e.layerPath,c=e.tableInstance,u=(0,l.useTranslation)().t,d=(0,o._M)(),h=(0,o.eQ)(),p=h.setToolbarRowSelectedMessageEntry,f=h.setRowsFilteredEntry;(0,i.useEffect)((function(){var e,n;a.vF.logTraceUseEffect("USETOOLBARACTIONMESSAGE - rowSelection");var r,i,o=null!==(e=d[s].toolbarRowSelectedMessageRecord)&&void 0!==e?e:"";c&&c.getFilteredRowModel().rows.length!==(null===(n=t.features)||void 0===n?void 0:n.length)?o=u("dataTable.rowsFiltered").replace("{rowsFiltered}",c.getFilteredRowModel().rows.length.toString()).replace("{totalRows}",null!==(r=null===(i=t.features)||void 0===i?void 0:i.length.toString())&&void 0!==r?r:""):o="";p(o,s)}),[t.features,r]),(0,i.useEffect)((function(){var e;a.vF.logTraceUseEffect("USETOOLBARACTIONMESSAGE - columnFilters",n);var r=null!==(e=d[s].toolbarRowSelectedMessageRecord)&&void 0!==e?e:"",i=0;if(c){var o,l,h,g=c.getFilteredRowModel();if(g.rows.length!==(null==t||null===(o=t.features)||void 0===o?void 0:o.length))i=g.rows.length,r=u("dataTable.rowsFiltered").replace("{rowsFiltered}",g.rows.length.toString()).replace("{totalRows}",null!==(l=null==t||null===(h=t.features)||void 0===h?void 0:h.length.toString())&&void 0!==l?l:"");else r="",i=0;f(i,s)}p(r,s)}),[n,t.features,r])}var u=n(64426);function d(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 h(e){for(var t=1;t{"use strict";n.d(t,{A:()=>h});var r=n(30538),i=n(43331),o=n(17567),a=n(24438),s=n(62767),l=n(4180),c=n(82942),u=n(28187),d=n(97282);const h=function(e){var t=e.features,n=e.layerPath,h=(0,i.useTranslation)().t,p=(0,u.U6)().transformPoints,f=(0,r.useCallback)((function(e){var t={};return e instanceof o.Ay?t={type:"Polygon",coordinates:e.getCoordinates().map((function(e){return e.map((function(e){return p([e],4326)[0]}))}))}:e instanceof a.A?t={type:"LineString",coordinates:e.getCoordinates().map((function(e){return p([e],4326)[0]}))}:e instanceof s.A?t={type:"Point",coordinates:p([e.getCoordinates()],4326)[0]}:e instanceof l.A&&(t={type:"MultiPoint",coordinates:e.getCoordinates().map((function(e){return p([e],4326)[0]}))}),t}),[p]),g=(0,r.useCallback)((function(){var e=t.map((function(e){var t=e.geometry,n=e.fieldInfo;return{type:"Feature",geometry:f(null==t?void 0:t.getGeometry()),properties:n}}));return JSON.stringify({type:"FeatureCollection",features:e},null,2)}),[f,t]),m=(0,r.useCallback)((function(e,t){var n=URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download=t,r.click(),URL.revokeObjectURL(n)}),[]),y=(0,r.useCallback)((function(){var e=g(),t=new Blob([e],{type:"text/json"});m(t,"table-".concat(n,".json"))}),[m,g,n]);return(0,d.jsx)(c.MenuItem,{onClick:y,children:h("dataTable.jsonExportBtn")})}},48495:(e,t,n)=>{"use strict";n.d(t,{r:()=>k});var r=n(64426),i=n(47361),o=n(30538),a=n(43331),s=n(94145),l=n(82942),c=n(62e3),u=n(28187),d=n(60854),h=n(78383),p=n(55587),f=n(43994),g=n(59615),m=n.n(g),y=n(41218),v=n(79913),b=n(10247),x=n(97282);function w(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;t1?"s":"")}),[f]),Z=(0,o.useMemo)((function(){return d.vF.logTraceUseMemo("DETAILS-PANEL - memoLayersList",w,v),w.map((function(e){return v.find((function(t){return t.layerPath===e}))})).filter((function(e){return e})).map((function(e){var t,n,r;return{layerName:null!==(t=e.layerName)&&void 0!==t?t:"",layerPath:e.layerPath,layerStatus:e.layerStatus,queryStatus:e.queryStatus,numOffeatures:null!==(n=null===(r=e.features)||void 0===r?void 0:r.length)&&void 0!==n?n:0,layerFeatures:X(e),tooltip:"".concat(e.layerName,", ").concat(X(e))}}))}),[w,v,X]),J=(0,o.useMemo)((function(){return d.vF.logTraceUseMemo("DETAILS-PANEL - memoLayerSelectedItem",Z,y),Z.find((function(e){return e.layerPath===y}))}),[Z,y]),Q=(0,o.useMemo)((function(){return d.vF.logTraceUseMemo("DETAILS-PANEL - memoSelectedLayerData",v,y),v.find((function(e){return e.layerPath===y}))}),[v,y]),ee=(0,o.useMemo)((function(){return d.vF.logTraceUseMemo("DETAILS-PANEL - memoSelectedLayerDataFeatures",null==Q?void 0:Q.features),null==Q?void 0:Q.features}),[null==Q?void 0:Q.features]),te=(0,o.useCallback)((function(e,t){var n,r,i;(d.vF.logTraceUseCallback("DETAILS-PANEL - updateFeatureSelected"),null!=t&&t.features)&&(r=null==t||null===(i=t.features)||void 0===i?void 0:i[H.current]);r&&!Y(r)&&M(r);var o=null==Q||null===(n=Q.features)||void 0===n?void 0:n[e];o&&I(o),F(e)}),[Q,Y,M,I]);(0,o.useEffect)((function(){d.vF.logTraceUseEffect("DETAILS-PANEL - memoLayersList changed",Z),M("all"),Z.length||k("")}),[Z,k,M]),(0,o.useEffect)((function(){d.vF.logTraceUseEffect("DETAILS-PANEL - memoSelectedLayerDataFeatures changed",Z,ee),K(q.current),K(ee),ee&&ee.length&&I(ee[j])}),[Z,ee,j,I,M,K]),(0,o.useEffect)((function(){d.vF.logTraceUseEffect("DETAILS-PANEL - update layer data bypass",y),O(y)}),[y,O]),(0,o.useEffect)((function(){if(d.vF.logTraceUseEffect("DETAILS-PANEL - check selection",J),(!J||"processed"===J.queryStatus||"error"===J.queryStatus)&&""!==y)if(null!=J&&J.numOffeatures)d.vF.logDebug("DETAILS-PANEL","keep selection",J),O(J.layerPath);else{var e=Z.find((function(e){return Z.find((function(t){return e.layerPath===t.layerPath&&t.numOffeatures}))}));e?(d.vF.logDebug("DETAILS-PANEL","select another",J,e.layerPath),k(e.layerPath)):d.vF.logDebug("DETAILS-PANEL","select none",J)}}),[J,Z]);var ne=(0,o.useCallback)((function(e){d.vF.logTraceUseCallback("DETAILS PANEL - handleFeatureNavigateChange",j),H.current=j,te(j+e,Q)}),[j,Q,te]),re=(0,o.useCallback)((function(e){d.vF.logTraceUseCallback("DETAILS-PANEL - handleLayerChange",e.layerPath),k(e.layerPath)}),[k]),ie=function(){var e;W.current=v.find((function(e){return e.layerPath===z})),q.current=null===(e=W.current)||void 0===e?void 0:e.features,H.current=j,F(0)};G!==Z&&(U(Z),ie()),z!==y&&(V(y),ie());var oe=(0,o.useCallback)((function(e){d.vF.logTraceUseCallback("DETAILS PANEL - handleGuideIsOpen"),e&&k("")}),[k]);(0,o.useEffect)((function(){if(d.vF.logTraceUseEffect("DETAILS-PANEL- mapClickCoordinates",A),A&&null!=Z&&Z.length&&!y.length){var e,t=Z.find((function(e){return!!e.numOffeatures}));k(null!==(e=null==t?void 0:t.layerPath)&&void 0!==e?e:"")}}),[A,Z]);var ae=(0,o.useMemo)((function(){return d.vF.logTraceUseMemo("DETAILS-PANEL - order layer status processing."),function(){return!(null==v||!v.find((function(e){return e.queryStatus===C.RI.PROCESSING})))}}),[v]);return(0,x.jsx)(h.PE,{selectedLayerPath:y||"",layerList:Z,onLayerListClicked:function(e){return re(e)},fullWidth:n,onGuideIsOpen:oe,guideContentIds:["details"],children:ae()?(0,x.jsx)(l.Skeleton,{variant:"rounded",width:"100%",height:500,sx:{bgcolor:g.palette.grey[400]}}):ee&&ee.length>0?(0,x.jsxs)(l.Box,{sx:n?m.rightPanelContainer:_({},m.rightPanelContainer),children:[(0,x.jsxs)(l.Grid,{container:!0,sx:m.rightPanelBtnHolder,children:[(0,x.jsx)(l.Grid,{item:!0,xs:6,children:(0,x.jsxs)(l.Box,{style:{marginLeft:"1.375rem"},children:[f("details.featureDetailsTitle").replace("{count}","".concat(j+1)).replace("{total}","".concat(null==ee?void 0:ee.length)),(0,x.jsx)(l.IconButton,{sx:(0,r.A)({marginLeft:"1.25rem"},g.breakpoints.down("sm"),{display:"none"}),"aria-label":"clear-all-features",tooltip:"details.clearAllfeatures",tooltipPlacement:"top",onClick:function(){return M("all"),T("all"),void I(null==Q||null===(e=Q.features)||void 0===e?void 0:e[j]);var e},className:"buttonOutline",disabled:0===b.length,children:(0,x.jsx)(l.LayersClearOutlinedIcon,{})})]})}),(0,x.jsx)(l.Grid,{item:!0,xs:6,children:(0,x.jsxs)(l.Box,{sx:{textAlign:"right",marginRight:"1.625rem"},children:[(0,x.jsx)(l.IconButton,{"aria-label":"backward",tooltip:"details.previousFeatureBtn",tooltipPlacement:"top",onClick:function(){return ne(-1)},disabled:j<=0,className:"buttonOutline",children:(0,x.jsx)(l.ArrowBackIosOutlinedIcon,{})}),(0,x.jsx)(l.IconButton,{sx:{marginLeft:"1.25rem"},"aria-label":"forward",tooltip:"details.nextFeatureBtn",tooltipPlacement:"top",onClick:function(){return ne(1)},disabled:!(null!=Q&&Q.features)||j+1>=Q.features.length,className:"buttonOutline",children:(0,x.jsx)(l.ArrowForwardIosOutlinedIcon,{})})]})})]}),(0,x.jsx)(S,{features:null==Q?void 0:Q.features,currentFeatureIndex:j})]}):null})}},55587:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var r=function(e){return{detailsContainer:{background:e.palette.geoViewColor.bgColor.main,paddingBottom:"1rem"},detailsInstructionsTitle:{fontSize:e.palette.geoViewFontSize.lg,fontWeight:"600",lineHeight:"1.5em"},detailsInstructionsBody:{fontSize:e.palette.geoViewFontSize.default},panelHeaders:{fontSize:e.palette.geoViewFontSize.lg,fontWeight:"600"},rightPanelContainer:{color:e.palette.geoViewColor.textColor.main},rightPanelBtnHolder:{marginTop:"20px",paddingBottom:"9px",boxShadow:"0px 12px 9px -13px ".concat(e.palette.geoViewColor.bgColor.dark[200])},featureInfoListContainer:{paddingLeft:"25px",paddingRight:"25px",paddingBottom:"25px",overflowY:"auto",overflowX:"hidden"},featureDetailListContainer:{overflowY:"auto",overflowX:"hidden"},selectFeatureCheckbox:{color:e.palette.geoViewColor.primary.main,"&.Mui-checked":{color:e.palette.geoViewColor.primary.main}},featureInfoItemValue:{marginRight:0,wordBreak:"break-word",overflow:"hidden",textOverflow:"ellipsis"},boxContainerFeatureInfo:{wordWrap:"break-word",fontSize:e.palette.geoViewFontSize.default,lineHeight:"19px"},flexBoxAlignCenter:{display:"flex",flexDirection:"row",alignItems:"center"},featureDetailModal:{"& .MuiDialog-container":{"& .MuiPaper-root":{minWidth:"40rem"}}}}}},10247:(e,t,n)=>{"use strict";n.d(t,{P:()=>Mt});var r=n(64426),i=n(30538),o=n(43331),a=n(94145);const s="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",l="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",c=(e,t)=>{for(const n in t)e[n]=t[n];return e},u="numeric",d="ascii",h="alpha",p="asciinumeric",f="alphanumeric",g="domain",m="emoji",y="scheme",v="slashscheme",b="whitespace";function x(e,t){return e in t||(t[e]=[]),t[e]}function w(e,t,n){t[u]&&(t[p]=!0,t[f]=!0),t[d]&&(t[p]=!0,t[h]=!0),t[p]&&(t[f]=!0),t[h]&&(t[f]=!0),t[f]&&(t[g]=!0),t[m]&&(t[g]=!0);for(const r in t){const t=x(r,n);t.indexOf(e)<0&&t.push(e)}}function A(e){void 0===e&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}A.groups={},A.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let n=0;n=0&&(n[r]=!0);return n}(a.t,r),n);w(o,e,r)}else n&&w(o,n,r);a.t=o}return i.j[e]=a,a}};const S=(e,t,n,r,i)=>e.ta(t,n,r,i),C=(e,t,n,r,i)=>e.tr(t,n,r,i),E=(e,t,n,r,i)=>e.ts(t,n,r,i),_=(e,t,n,r,i)=>e.tt(t,n,r,i),k="WORD",T="UWORD",O="LOCALHOST",P="TLD",I="UTLD",M="SCHEME",L="SLASH_SCHEME",R="NUM",j="WS",F="NL",D="OPENBRACE",N="CLOSEBRACE",z="OPENBRACKET",V="CLOSEBRACKET",B="OPENPAREN",$="CLOSEPAREN",G="OPENANGLEBRACKET",U="CLOSEANGLEBRACKET",W="FULLWIDTHLEFTPAREN",q="FULLWIDTHRIGHTPAREN",H="LEFTCORNERBRACKET",Y="RIGHTCORNERBRACKET",K="LEFTWHITECORNERBRACKET",X="RIGHTWHITECORNERBRACKET",Z="FULLWIDTHLESSTHAN",J="FULLWIDTHGREATERTHAN",Q="AMPERSAND",ee="APOSTROPHE",te="ASTERISK",ne="AT",re="BACKSLASH",ie="BACKTICK",oe="CARET",ae="COLON",se="COMMA",le="DOLLAR",ce="DOT",ue="EQUALS",de="EXCLAMATION",he="HYPHEN",pe="PERCENT",fe="PIPE",ge="PLUS",me="POUND",ye="QUERY",ve="QUOTE",be="SEMI",xe="SLASH",we="TILDE",Ae="UNDERSCORE",Se="EMOJI",Ce="SYM";var Ee=Object.freeze({__proto__:null,WORD:k,UWORD:T,LOCALHOST:O,TLD:P,UTLD:I,SCHEME:M,SLASH_SCHEME:L,NUM:R,WS:j,NL:F,OPENBRACE:D,CLOSEBRACE:N,OPENBRACKET:z,CLOSEBRACKET:V,OPENPAREN:B,CLOSEPAREN:$,OPENANGLEBRACKET:G,CLOSEANGLEBRACKET:U,FULLWIDTHLEFTPAREN:W,FULLWIDTHRIGHTPAREN:q,LEFTCORNERBRACKET:H,RIGHTCORNERBRACKET:Y,LEFTWHITECORNERBRACKET:K,RIGHTWHITECORNERBRACKET:X,FULLWIDTHLESSTHAN:Z,FULLWIDTHGREATERTHAN:J,AMPERSAND:Q,APOSTROPHE:ee,ASTERISK:te,AT:ne,BACKSLASH:re,BACKTICK:ie,CARET:oe,COLON:ae,COMMA:se,DOLLAR:le,DOT:ce,EQUALS:ue,EXCLAMATION:de,HYPHEN:he,PERCENT:pe,PIPE:fe,PLUS:ge,POUND:me,QUERY:ye,QUOTE:ve,SEMI:be,SLASH:xe,TILDE:we,UNDERSCORE:Ae,EMOJI:Se,SYM:Ce});const _e=/[a-z]/,ke=/\p{L}/u,Te=/\p{Emoji}/u,Oe=/\d/,Pe=/\s/;const Ie="\n",Me="️",Le="";let Re=null,je=null;function Fe(e,t,n,r,i){let o;const a=t.length;for(let n=0;n=0;)i++;if(i>0){t.push(n.join(""));for(let t=parseInt(e.substring(r,r+i),10);t>0;t--)n.pop();r+=i}else n.push(e[r]),r++}return t}const Ne={defaultProtocol:"http",events:null,format:Ve,formatHref:Ve,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function ze(e,t){void 0===t&&(t=null);let n=c({},Ne);e&&(n=c(n,e instanceof ze?e.o:e));const r=n.ignoreTags,i=[];for(let e=0;ee,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const r=null!=t;let i=this.o[e];return i?("object"==typeof i?(i=n.t in i?i[n.t]:Ne[e],"function"==typeof i&&r&&(i=i(t,n))):"function"==typeof i&&r&&(i=i(t,n.t,n)),i):i},getObj(e,t,n){let r=this.o[e];return"function"==typeof r&&null!=t&&(r=r(t,n.t,n)),r},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function Be(e,t){this.t="token",this.v=e,this.tk=t}function $e(e,t){class n extends Be{constructor(t,n){super(t,n),this.t=e}}for(const e in t)n.prototype[e]=t[e];return n.t=e,n}Be.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return void 0===e&&(e=Ne.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),i=e.get("tagName",n,t),o=this.toFormattedString(e),a={},s=e.get("className",n,t),l=e.get("target",n,t),u=e.get("rel",n,t),d=e.getObj("attributes",n,t),h=e.getObj("events",n,t);return a.href=r,s&&(a.class=s),l&&(a.target=l),u&&(a.rel=u),d&&c(a,d),{tagName:i,attributes:a,content:o,eventListeners:h}}};const Ge=$e("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Ue=$e("text"),We=$e("nl"),qe=$e("url",{isLink:!0,toHref(e){return void 0===e&&(e=Ne.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==O&&e[1].t===ae}});const He=e=>new A(e);function Ye(e,t,n){const r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}"undefined"!=typeof console&&console&&console.warn;const Ke={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Xe(){Ke.scanner=function(e){void 0===e&&(e=[]);const t={};A.groups=t;const n=new A;null==Re&&(Re=De(s)),null==je&&(je=De(l)),_(n,"'",ee),_(n,"{",D),_(n,"}",N),_(n,"[",z),_(n,"]",V),_(n,"(",B),_(n,")",$),_(n,"<",G),_(n,">",U),_(n,"(",W),_(n,")",q),_(n,"「",H),_(n,"」",Y),_(n,"『",K),_(n,"』",X),_(n,"<",Z),_(n,">",J),_(n,"&",Q),_(n,"*",te),_(n,"@",ne),_(n,"`",ie),_(n,"^",oe),_(n,":",ae),_(n,",",se),_(n,"$",le),_(n,".",ce),_(n,"=",ue),_(n,"!",de),_(n,"-",he),_(n,"%",pe),_(n,"|",fe),_(n,"+",ge),_(n,"#",me),_(n,"?",ye),_(n,'"',ve),_(n,"/",xe),_(n,";",be),_(n,"~",we),_(n,"_",Ae),_(n,"\\",re);const r=C(n,Oe,R,{[u]:!0});C(r,Oe,r);const i=C(n,_e,k,{[d]:!0});C(i,_e,i);const o=C(n,ke,T,{[h]:!0});C(o,_e),C(o,ke,o);const a=C(n,Pe,j,{[b]:!0});_(n,Ie,F,{[b]:!0}),_(a,Ie),C(a,Pe,a);const f=C(n,Te,Se,{[m]:!0});C(f,Te,f),_(f,Me,f);const x=_(f,Le);C(x,Te,f);const S=[[_e,i]],Ne=[[_e,null],[ke,o]];for(let e=0;ee[0]>t[0]?1:-1));for(let t=0;t=0?i[g]=!0:_e.test(r)?Oe.test(r)?i[p]=!0:i[d]=!0:i[u]=!0,E(n,r,r,i)}return E(n,"localhost",O,{ascii:!0}),n.jd=new A(Ce),{start:n,tokens:c({groups:t},Ee)}}(Ke.customSchemes);for(let e=0;e=0&&h++,i++,u++;if(h<0)i-=u,i0&&(o.push(Ye(Ue,t,a)),a=[]),i-=h,u-=h;const e=d.t,r=n.slice(i-u,i);o.push(Ye(e,t,r))}}return a.length>0&&o.push(Ye(Ue,t,a)),o}(Ke.parser.start,e,function(e,t){const n=function(e){const t=[],n=e.length;let r=0;for(;r56319||r+1===n||(i=e.charCodeAt(r+1))<56320||i>57343?e[r]:e.slice(r,r+2);t.push(a),r+=a.length}return t}(t.replace(/[A-Z]/g,(e=>e.toLowerCase()))),r=n.length,i=[];let o=0,a=0;for(;a=0&&(d+=n[a].length,h++),c+=n[a].length,o+=n[a].length,a++;o-=d,a-=h,c-=d,i.push({t:u.t,v:t.slice(o-c,o),s:o-c,e:o})}return i}(Ke.scanner.start,e))}var Je={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"'},Qe=/^#[xX]([A-Fa-f0-9]+)$/,et=/^#([0-9]+)$/,tt=/^([A-Za-z0-9]+)$/,nt=function(){function e(e){this.named=e}return e.prototype.parse=function(e){if(e){var t=e.match(Qe);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(et))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(tt))?this.named[t[1]]||"&"+t[1]+";":void 0}},e}(),rt=/[\t\n\f ]/,it=/[A-Za-z]/,ot=/\r\n?/g;function at(e){return rt.test(e)}function st(e){return it.test(e)}var lt=function(){function e(e,t,n){void 0===n&&(n="precompile"),this.delegate=e,this.entityParser=t,this.mode=n,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("precompile"===this.mode&&"\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer;"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||st(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){var e=this.consume();"-"===e&&"-"===this.peek()?(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment()):"DOCTYPE"===e.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase()&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())},doctype:function(){at(this.consume())&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var e=this.consume();at(e)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase()))},doctypeName:function(){var e=this.consume();at(e)?this.transitionTo("afterDoctypeName"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase())},afterDoctypeName:function(){var e=this.consume();if(!at(e))if(">"===e)this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var t=e.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),n="PUBLIC"===t.toUpperCase(),r="SYSTEM"===t.toUpperCase();(n||r)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),n?this.transitionTo("afterDoctypePublicKeyword"):r&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var e=this.peek();at(e)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):'"'===e?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):"'"===e?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):">"===e&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},doctypePublicIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},afterDoctypePublicIdentifier:function(){var e=this.consume();at(e)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var e=this.consume();at(e)||(">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},doctypeSystemIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},afterDoctypeSystemIdentifier:function(){var e=this.consume();at(e)||">"===e&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var e=this.consume();"-"===e?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();at(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();at(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();at(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();at(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();at(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();at(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();at(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();at(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||st(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(ot,"\n")}(e);this.index"!==this.input.substring(this.index,this.index+8)||"style"===e&&""!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),ct=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new lt(this,e,t.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t=0))continue;let a=r.length;vt(i,n,++e,r),e+=r.length-a-1}else if(t.type!==pt)r.push(t);else{const e=yt(t.chars,o);r.push.apply(r,e)}}for(let e=0;e0&&(e+=" "+At(t.attributes).join(" ")),t.selfClosing&&(e+=" /"),e+=">",i.push(e);break}case ht:i.push(`${t.tagName}>`);break;case pt:i.push(xt(t.chars));break;case ft:i.push(`\x3c!--${xt(t.chars)}--\x3e`);break;case gt:{let e=`",i.push(e);break}}}return i.join("")}function yt(e,t){const n=Ze(e),r=[];for(let e=0;e0;){let o=t[n];o.type===dt&&o.tagName.toUpperCase()===e?i++:o.type===ht&&o.tagName.toUpperCase()===e&&i--,r.push(o),n++}return r}function bt(e){let{tagName:t,attributes:n,content:r}=e;return`<${t} ${function(e){const t=[];for(const n in e){const r=e[n]+"";t.push(`${n}="${wt(r)}"`)}return t.join(" ")}(n)}>${xt(r)}${t}>`}function xt(e){return e.replace(//g,">")}function wt(e){return e.replace(/"/g,""")}function At(e){const t=[];for(let n=0;n50?"".concat(e.slice(0,40),"…").concat(e.slice(e.length-10,e.length)):e}},ignoreTags:["script","style","img"],target:"_blank"}}),[n]);function h(e){function t(t,n,r){return"string"==typeof t&&(0,Ct.isImage)(t)?(0,Ot.jsx)(St.CardMedia,{sx:It(It({},s.featureInfoItemValue),{},{cursor:"pointer"}),alt:"".concat(n," ").concat(r),src:t,tabIndex:0,click:function(){return c(e.value,e.alias,r)},keyDown:function(t){"Enter"===t.key&&c(e.value,e.alias,r)}},(0,Ct.generateId)()):(0,Ot.jsx)(St.Box,{sx:s.featureInfoItemValue,children:(0,Ot.jsx)(Et.S,{htmlContent:(0,Ct.sanitizeHtmlContent)(mt(t,d))})},(0,Ct.generateId)())}var n=e.alias,r=e.value,i=Array.isArray(r)?String(r.map(Ct.stringify)):String((0,Ct.stringify)(r));return i=i.toString().split(";"),Array.isArray(i)?i.map((function(e,r){return t(e,n,r)})):t(i,n,0)}return(0,Ot.jsxs)(St.Box,{sx:s.boxContainerFeatureInfo,children:[t.map((function(e,t){return(0,Ot.jsxs)(St.Grid,{container:!0,spacing:5,sx:{backgroundColor:t%2>0?r.palette.geoViewColor.bgColor.darken(.1):"",color:t%2>0?r.palette.geoViewColor.bgColor.darken(.9):"",marginBottom:"1.25rem"},children:[(0,Ot.jsx)(St.Grid,{item:!0,xs:"auto",sx:{fontWeight:"bold",width:"80% !important"},children:e.alias}),(0,Ot.jsx)(St.Grid,{item:!0,sx:{ml:"auto",wordWrap:"break-word",pr:"0.3125rem"},children:h(e)})]},"".concat(e.alias," ").concat(t.toString()))})),(0,Ot.jsx)(u,{})]})}},58726:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(82942),i=n(69495),o=n(15247),a=n(97282);function s(e){var t=e.className,n=void 0===t?"":t,s=e.sxDetails,l=(0,o.Jh)(),c=(0,i.A6)().openModal;return(0,a.jsx)(r.IconButton,{id:"".concat(l,"-export-btn"),tooltip:"appbar.export",tooltipPlacement:"bottom-end",onClick:function(){return c({activeElementId:"export",callbackElementId:"".concat(l,"-export-btn")})},sx:s,className:n,children:(0,a.jsx)(r.DownloadIcon,{})})}},28184:(e,t,n)=>{"use strict";n.d(t,{A:()=>ie});var r=n(47361),i=n(30538),o=n(43331),a=n(94145);const s=(()=>{let e=0;return()=>(e+=1,`u${`0000${(Math.random()*36**4|0).toString(36)}`.slice(-4)}${e}`)})();function l(e){const t=[];for(let n=0,r=e.length;n{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e}))}async function p(e,t,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),o=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),i.appendChild(o),o.appendChild(e),async function(e){return Promise.resolve().then((()=>(new XMLSerializer).serializeToString(e))).then(encodeURIComponent).then((e=>`data:image/svg+xml;charset=utf-8,${e}`))}(i)}const f=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return null!==n&&(n.constructor.name===t.name||f(n,t))};function g(e,t,n){const r=`.${e}:${t}`,i=n.cssText?function(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(n):function(e){return l(e).map((t=>`${t}: ${e.getPropertyValue(t)}${e.getPropertyPriority(t)?" !important":""};`)).join(" ")}(n);return document.createTextNode(`${r}{${i}}`)}function m(e,t,n){const r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(""===i||"none"===i)return;const o=s();try{t.className=`${t.className} ${o}`}catch(e){return}const a=document.createElement("style");a.appendChild(g(o,n,r)),t.appendChild(a)}const y="application/font-woff",v="image/jpeg",b={woff:y,woff2:y,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:v,jpeg:v,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function x(e){const t=function(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}(e).toLowerCase();return b[t]||""}function w(e){return-1!==e.search(/^(data:)/)}function A(e,t){return`data:${t};base64,${e}`}async function S(e,t,n){const r=await fetch(e,t);if(404===r.status)throw new Error(`Resource "${r.url}" not found`);const i=await r.blob();return new Promise(((e,t)=>{const o=new FileReader;o.onerror=t,o.onloadend=()=>{try{e(n({res:r,result:o.result}))}catch(e){t(e)}},o.readAsDataURL(i)}))}const C={};async function E(e,t,n){const r=function(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}(e,t,n.includeQueryParams);if(null!=C[r])return C[r];let i;n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(new Date).getTime());try{const r=await S(e,n.fetchRequestInit,(({res:e,result:n})=>(t||(t=e.headers.get("Content-Type")||""),function(e){return e.split(/,/)[1]}(n))));i=A(r,t)}catch(t){i=n.imagePlaceholder||"";let r=`Failed to fetch resource: ${e}`;t&&(r="string"==typeof t?t:t.message),r&&console.warn(r)}return C[r]=i,i}async function _(e,t){return f(e,HTMLCanvasElement)?async function(e){const t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):h(t)}(e):f(e,HTMLVideoElement)?async function(e,t){if(e.currentSrc){const t=document.createElement("canvas"),n=t.getContext("2d");return t.width=e.clientWidth,t.height=e.clientHeight,null==n||n.drawImage(e,0,0,t.width,t.height),h(t.toDataURL())}const n=e.poster,r=x(n);return h(await E(n,r,t))}(e,t):f(e,HTMLIFrameElement)?async function(e){var t;try{if(null===(t=null==e?void 0:e.contentDocument)||void 0===t?void 0:t.body)return await O(e.contentDocument.body,{},!0)}catch(e){}return e.cloneNode(!1)}(e):e.cloneNode(!1)}const k=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase();function T(e,t){return f(t,Element)&&(function(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):l(r).forEach((i=>{let o=r.getPropertyValue(i);if("font-size"===i&&o.endsWith("px")){const e=Math.floor(parseFloat(o.substring(0,o.length-2)))-.1;o=`${e}px`}f(e,HTMLIFrameElement)&&"display"===i&&"inline"===o&&(o="block"),"d"===i&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),n.setProperty(i,o,r.getPropertyPriority(i))}))}(e,t),function(e,t){m(e,t,":before"),m(e,t,":after")}(e,t),function(e,t){f(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),f(e,HTMLInputElement)&&t.setAttribute("value",e.value)}(e,t),function(e,t){if(f(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find((t=>e.value===t.getAttribute("value")));r&&r.setAttribute("selected","")}}(e,t)),t}async function O(e,t,n){return n||!t.filter||t.filter(e)?Promise.resolve(e).then((e=>_(e,t))).then((n=>async function(e,t,n){var r,i;let o=[];return o=k(e)&&e.assignedNodes?l(e.assignedNodes()):f(e,HTMLIFrameElement)&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?l(e.contentDocument.body.childNodes):l((null!==(i=e.shadowRoot)&&void 0!==i?i:e).childNodes),0===o.length||f(e,HTMLVideoElement)||await o.reduce(((e,r)=>e.then((()=>O(r,n))).then((e=>{e&&t.appendChild(e)}))),Promise.resolve()),t}(e,n,t))).then((t=>T(e,t))).then((e=>async function(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===n.length)return e;const r={};for(let i=0;i{for(;;){const[n,,r]=I.exec(e)||[];if(!r)return"";if(r===t)return`src: ${n};`}})):e}(e,n),i=function(e){const t=[];return e.replace(P,((e,n,r)=>(t.push(r),e))),t.filter((e=>!w(e)))}(r);return i.reduce(((e,r)=>e.then((e=>L(e,r,t,n)))),Promise.resolve(r))}async function F(e,t,n){var r;const i=null===(r=t.style)||void 0===r?void 0:r.getPropertyValue(e);if(i){const r=await j(i,null,n);return t.style.setProperty(e,r,t.style.getPropertyPriority(e)),!0}return!1}async function D(e,t){f(e,Element)&&(await async function(e,t){await F("background",e,t)||await F("background-image",e,t),await F("mask",e,t)||await F("mask-image",e,t)}(e,t),await async function(e,t){const n=f(e,HTMLImageElement);if((!n||w(e.src))&&(!f(e,SVGImageElement)||w(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,i=await E(r,x(r),t);await new Promise(((t,r)=>{e.onload=t,e.onerror=r;const o=e;o.decode&&(o.decode=t),"lazy"===o.loading&&(o.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i}))}(e,t),await async function(e,t){const n=l(e.childNodes).map((e=>D(e,t)));await Promise.all(n).then((()=>e))}(e,t))}const N={};async function z(e){let t=N[e];if(null!=t)return t;const n=await fetch(e);return t={url:e,cssText:await n.text()},N[e]=t,t}async function V(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map((async i=>{let o=i.replace(r,"$1");return o.startsWith("https://")||(o=new URL(o,e.url).href),S(o,t.fetchRequestInit,(({result:e})=>(n=n.replace(i,`url(${e})`),[i,e])))}));return Promise.all(i).then((()=>n))}function B(e){if(null==e)return[];const t=[];let n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,"");const r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const e=r.exec(n);if(null===e)break;t.push(e[0])}n=n.replace(r,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=i.exec(n);if(null===e){if(e=o.exec(n),null===e)break;i.lastIndex=o.lastIndex}else o.lastIndex=i.lastIndex;t.push(e[0])}return t}async function $(e,t){if(null==e.ownerDocument)throw new Error("Provided element is not within a Document");const n=l(e.ownerDocument.styleSheets),r=await async function(e,t){const n=[],r=[];return e.forEach((n=>{if("cssRules"in n)try{l(n.cssRules||[]).forEach(((e,i)=>{if(e.type===CSSRule.IMPORT_RULE){let o=i+1;const a=z(e.href).then((e=>V(e,t))).then((e=>B(e).forEach((e=>{try{n.insertRule(e,e.startsWith("@import")?o+=1:n.cssRules.length)}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t})}})))).catch((e=>{console.error("Error loading remote css",e.toString())}));r.push(a)}}))}catch(i){const o=e.find((e=>null==e.href))||document.styleSheets[0];null!=n.href&&r.push(z(n.href).then((e=>V(e,t))).then((e=>B(e).forEach((e=>{o.insertRule(e,n.cssRules.length)})))).catch((e=>{console.error("Error loading remote stylesheet",e)}))),console.error("Error inlining remote css file",i)}})),Promise.all(r).then((()=>(e.forEach((e=>{if("cssRules"in e)try{l(e.cssRules||[]).forEach((e=>{n.push(e)}))}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}})),n)))}(n,t);return function(e){return e.filter((e=>e.type===CSSRule.FONT_FACE_RULE)).filter((e=>R(e.style.getPropertyValue("src"))))}(r)}async function G(e,t){const n=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await async function(e,t){const n=await $(e,t);return(await Promise.all(n.map((e=>{const n=e.parentStyleSheet?e.parentStyleSheet.href:null;return j(e.cssText,n,t)})))).join("\n")}(e,t);if(n){const t=document.createElement("style"),r=document.createTextNode(n);t.appendChild(r),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}async function U(e,t={}){const{width:n,height:r}=u(e,t),i=await O(e,t,!0);await G(i,t),await D(i,t),function(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;null!=r&&Object.keys(r).forEach((e=>{n[e]=r[e]}))}(i,t);return await p(i,n,r)}async function W(e,t={}){const{width:n,height:r}=u(e,t),i=await U(e,t),o=await h(i),a=document.createElement("canvas"),s=a.getContext("2d"),l=t.pixelRatio||function(){let e,t;try{t=process}catch(e){}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}(),c=t.canvasWidth||n,p=t.canvasHeight||r;return a.width=c*l,a.height=p*l,t.skipAutoScale||function(e){(e.width>d||e.height>d)&&(e.width>d&&e.height>d?e.width>e.height?(e.height*=d/e.width,e.width=d):(e.width*=d/e.height,e.height=d):e.width>d?(e.height*=d/e.width,e.width=d):(e.width*=d/e.height,e.height=d))}(a),a.style.width=`${c}`,a.style.height=`${p}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,a.width,a.height)),s.drawImage(o,0,0,a.width,a.height),a}async function q(e,t={}){return(await W(e,t)).toDataURL()}var H=n(82942),Y=n(79913),K=n(34028),X=n(69495),Z=n(15247),J=n(31726),Q=n(52315),ee=n(28187),te=n(46686),ne=n(60854),re=n(97282);function ie(){var e=(0,o.useTranslation)().t,t=(0,Z.Jh)(),n=(0,J.sd)(),s=n.getElementsByClassName("ol-viewport")[0],l=n.querySelector('[id^="'.concat(t,'-footerBar-legendContainer"]')),c=n.querySelector('[id^="'.concat(t,'-appBar-legendContainer"]')),u=(0,a.A)(),d=(0,i.useState)(!0),h=(0,r.A)(d,2),p=h[0],f=h[1],g=(0,i.useState)(!0),m=(0,r.A)(g,2),y=m[0],v=m[1],b=(0,i.useState)(!1),x=(0,r.A)(b,2),w=x[0],A=x[1],S=(0,i.useState)(""),C=(0,r.A)(S,2),E=C[0],_=C[1],k=(0,i.useRef)(null),T=(0,i.useRef)(null),O=(0,i.useRef)(null),P=(0,i.useRef)(null),I=(0,i.useRef)(null),M=(0,i.useRef)(null),L=(0,ee.Mk)(),R=(0,ee.gx)(),j=(0,ee.re)(),F=(0,te.A)().rotationAngle,D=(0,X.A6)(),N=D.closeModal,z=D.setActiveAppBarTab,V=(0,X.NP)().activeElementId,B=(0,X.bd)().isOpen,$=function(e){var t=window.getComputedStyle(e),n=Number(t.getPropertyValue("padding-left").match(/\d+/)[0]),r=Number(t.getPropertyValue("padding-left").match(/\d+/)[0]);return e.clientWidth-n-r};return(0,i.useEffect)((function(){var e;if(ne.vF.logTraceUseEffect("Export Modal - mount"),"export"===V&&T.current&&O.current){var n=T.current,r=O.current;c&&!l&&z("AppbarPanelButtonLegend","legend",!0),e=setTimeout((function(){f(!0),q(s).then((function(e){f(!1);var t=new Image;t.src=e,t.style.maxWidth="".concat($(r),"px"),n.appendChild(t)})).catch((function(e){ne.vF.logError("Error occured while converting map to image",e)}));var e=null!=l?l:c;if(e&&P.current){var i;e.removeAttribute("style"),v(!0);var o=document.getElementById("".concat(t,"-legend")),a=null!==(i=null==o?void 0:o.hasAttribute("hidden"))&&void 0!==i?i:null;a&&o.removeAttribute("hidden"),q(e).then((function(e){var t;v(!1);var n=new Image;n.src=e,n.style.maxWidth="".concat($(r),"px"),null===(t=P.current)||void 0===t||t.appendChild(n),a&&(o.hidden=!0)})).catch((function(e){ne.vF.logError("Error occured while converting legend to image",e)}))}}),500)}return function(){e&&clearTimeout(e),f(!0),v(!0)}}),[V,B]),(0,re.jsxs)(H.Dialog,{open:"export"===V,onClose:N,fullWidth:!0,maxWidth:"xl",disablePortal:!0,children:[(0,re.jsx)(H.DialogTitle,{children:e("exportModal.title")}),(0,re.jsx)(H.DialogContent,{dividers:!0,ref:O,children:(0,re.jsxs)(H.Box,{ref:k,textAlign:"center",children:[(0,re.jsx)(H.Box,{ref:I,children:(0,re.jsx)(H.TextField,{label:e("exportModal.exportTitle"),variant:"standard",value:E,onChange:function(e){return _(e.target.value)},sx:{paddingBottom:"1rem",minWidth:300}})}),(0,re.jsx)(H.Box,{ref:M}),(0,re.jsx)(H.Box,{ref:T,children:p&&(0,re.jsx)(H.Skeleton,{variant:"rounded",width:"100%",height:500,sx:{bgcolor:u.palette.grey[500]}})}),(0,re.jsxs)(H.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",sx:{padding:"1rem",paddingBottom:0},children:[(0,re.jsx)(H.Box,{children:!!R.labelGraphic.length&&(0,re.jsxs)(H.Box,{children:[R.labelGraphic," ",e("exportModal.approx")," ",(0,re.jsx)("hr",{})]})}),L&&(0,re.jsx)(H.Box,{textAlign:"right",style:{transform:"rotate(".concat(F.angle,"deg)")},children:(0,re.jsx)(Q.e,{width:44,height:44})})]}),(0,re.jsx)(H.Box,{ref:P,children:y&&(0,re.jsx)(H.Skeleton,{variant:"rounded",width:"100%",height:500,sx:{bgcolor:u.palette.grey[500]}})}),(0,re.jsx)(H.Box,{textAlign:"center",children:j.map((function(e){return(0,re.jsx)(H.Box,{component:"p",sx:{margin:0},children:e},e)}))}),(0,re.jsx)(H.Box,{textAlign:"center",sx:{marginBottom:"1rem"},children:K.P.formatDate(new Date,"YYYY-MM-DD, hh:mm:ss A")})]})}),(0,re.jsxs)(H.DialogActions,{children:[(0,re.jsx)(H.Button,{onClick:function(){z("AppbarPanelButtonLegend","legend",!1),N()},type:"text",size:"small",role:"button",tabIndex:-1,autoFocus:!0,"aria-hidden":"true",sx:{width:"inherit",fontSize:u.palette.geoViewFontSize.sm,color:u.palette.common.white,padding:"0.7rem 1rem",backgroundColor:u.palette.geoViewColor.primary.main},children:e("exportModal.cancelBtn")}),(0,re.jsx)(H.LoadingButton,{loading:w,variant:"contained",onClick:function(){k.current&&I.current&&M.current&&(I.current.style.display="none",M.current.style.padding="1rem",M.current.innerHTML=E,A(!0),q(k.current,{backgroundColor:u.palette.common.white}).then((function(e){A(!1),(0,Y.exportPNG)(e,t),z("AppbarPanelButtonLegend","legend",!1),N()})).catch((function(e){ne.vF.logError("Error while exporting the image",e)})))},size:"small",sx:{fontSize:u.palette.geoViewFontSize.sm,padding:"0.7rem 1rem",backgroundColor:u.palette.geoViewColor.primary.main,height:"50px"},disabled:y||p,children:e("exportModal.exportBtn")})]})]})}},18114:(e,t,n)=>{"use strict";n.d(t,{x:()=>m});var r=n(70640),i=n(32814),o=n(64426),a=n(38829),s=n(16221),l=n(79913);function c(e,t,n){u(e,t),t.set(e,n)}function u(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function d(e,t){return e.get(h(e,t))}function h(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var p=new WeakMap,f=new WeakMap,g=new WeakSet,m=function(){return(0,i.A)((function e(t){var n,i;(0,r.A)(this,e),u(n=this,i=g),i.add(n),(0,o.A)(this,"mapId",void 0),(0,o.A)(this,"tabs",[]),c(this,p,[]),c(this,f,[]),this.mapId=t}),[{key:"onFooterTabCreated",value:function(e){s.A.onEvent(d(p,this),e)}},{key:"offFooterTabCreated",value:function(e){s.A.offEvent(d(p,this),e)}},{key:"onFooterTabRemoved",value:function(e){s.A.onEvent(d(f,this),e)}},{key:"offFooterTabRemoved",value:function(e){s.A.offEvent(d(f,this),e)}},{key:"createTab",value:function(e){e&&(this.tabs.find((function(t){return t.id===e.id}))||("string"==typeof e.content&&(e.content=(0,l.sanitizeHtmlContent)(e.content)),this.tabs.push(e),h(g,this,y).call(this,{tab:e})))}},{key:"removeTab",value:function(e){this.tabs.find((function(t){return t.id===e}))&&(this.tabs=this.tabs.filter((function(t){return t.id!==e})),h(g,this,v).call(this,{tabid:e}))}},{key:"selectTab",value:function(e){a.d.setActiveFooterBarTab(this.mapId,e)}}])}();function y(e){s.A.emitEvent(this,d(p,this),e)}function v(e){s.A.emitEvent(this,d(f,this),e)}},21793:(e,t,n)=>{"use strict";n.d(t,{N:()=>j});var r=n(64426),i=n(47361),o=n(76390),a=n.n(o),s=n(30538),l=n(94145),c=n(82942),u=n(90763),d=function(e){return{tabsContainer:{position:"relative",background:e.palette.geoViewColor.bgColor.dark[50],boxShadow:2,width:"100%",transition:"height 0.2s ease-out",height:"55px","&.MuiGrid-container":{background:e.palette.geoViewColor.bgColor.dark[50]}}}},h=n(23296),p=n(15247),f=function(){return{slider:{height:300,padding:"1.5rem 0.5rem 1.5rem 1rem","& .MuiSlider-markLabel":{left:"33px","&:nth-of-type(1)":{bottom:"3%"},"&:last-of-type":{bottom:"98%",left:"30px"}}}}},g=n(69495),m=n(60854),y=n(97282);function v(){var e=f(),t=(0,p.Jh)(),n=document.getElementById("shell-".concat(t)),r=(0,g.ex)(),o=(0,g.r4)(),a=(0,g.A6)().setFooterPanelResizeValue,l=(0,s.useState)(null),u=(0,i.A)(l,2),d=u[0],v=u[1],b=(0,s.useMemo)((function(){return m.vF.logTraceUseMemo("RESIZE-FOOTER-PANEL - marks",o),o.map((function(e){return{value:e,label:"".concat(e,"%")}}))}),[o]),x=function(){v(null)},w=Boolean(d);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.IconButton,{onClick:function(e){return(t=e).preventDefault(),void v(t.currentTarget);var t},tooltip:"footerBar.resizeTooltip",children:(0,y.jsx)(c.HeightIcon,{})}),(0,y.jsx)(c.Popover,{open:w,anchorEl:d,onClose:x,container:n,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},children:(0,y.jsx)(c.Box,{sx:e.slider,children:(0,y.jsx)(h.Ay,{sx:{'& input[type="range"]':{WebkitAppearance:"slider-vertical"}},orientation:"vertical",value:r,step:null,valueLabelDisplay:"off",marks:b,onChange:function(e,t){a(t),x()},min:o[0],max:o[o.length-1]})})})]})}var b=n(31726),x=n(62e3),w=n(76262),A=n(15789),S=n(15470),C=n(19512),E=n(94321),_=n(27927),k=n(14476),T=n(97182),O=n(48495),P=n(53191),I=n(82875),M=n(98030);function L(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 R(e){for(var t=1;t0?(0,y.jsx)(c.Box,{ref:z,sx:L.tabsContainer,className:"tabsContainer",id:"".concat(h,"-tabsContainer"),children:(0,y.jsx)(c.Tabs,{activeTrap:W,isCollapsed:q,onToggleCollapse:function(){J(!q)},onSelectedTabChanged:function(e){K(e.id)},onOpenKeyboard:X,onCloseKeyboard:Z,selectedTab:ae.findIndex((function(e){return e.id===U})),tabsProps:{variant:"scrollable"},tabs:ae,TabContentVisibilty:q?"hidden":"visible",rightButtons:(0,y.jsxs)(y.Fragment,{children:[!q&&V&&(0,y.jsx)(v,{}),(0,y.jsx)(c.IconButton,{onClick:ue,tooltip:D?"footerBar.focusToMap":"footerBar.focusToFooter",className:"buttonFilled",disabled:q||V||G[G.length-1]===$,children:D?(0,y.jsx)(c.MoveUpRoundedIcon,{}):(0,y.jsx)(c.MoveDownRoundedIcon,{})})]})})}):null}},84050:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(30538),i=n(82942),o=n(65423),a=n(28187),s=n(43975),l=n(60854),c=n(97282);function u(e){var t=e.geoListItems,n=e.searchValue,u=(0,a.U6)().zoomToGeoLocatorLocation,d=(0,r.useCallback)((function(e){var t=e.name,n=e.province,r=e.category;l.vF.logTraceUseCallback("GEOLOCATOR - geolist - getTooltipTitle",t,n,r);var i=t;return r&&"null"!==r&&(i+=", ".concat(r)),n&&"null"!==n&&(i+=", ".concat(n)),i}),[]),h=(0,r.useCallback)((function(e,t,n){l.vF.logTraceUseCallback("GEOLOCATOR - geolist - transformListTitle",e,t,n);var r=e.toUpperCase(),i=t.toUpperCase(),o=r.indexOf(i),a=i.length;return i&&-1!==o?(0,c.jsx)(s.S,{extraOptions:{component:"span"},itemOptions:{component:"span"},htmlContent:"".concat(e.slice(0,o),"").concat(e.slice(o,o+a),"").concat(e.slice(o+a)).concat(n)}):e}),[]);return(0,c.jsx)(i.Box,{children:t.map((function(e,t){return(0,c.jsx)(i.Tooltip,{title:d(e),placement:"right",children:(0,c.jsx)(i.ListItem,{component:"div",disablePadding:!0,children:(0,c.jsx)(i.ListItemButton,{onClick:function(){return t=[e.lng,e.lat],n=e.bbox,void u(t,n).catch((function(e){l.vF.logPromiseFailed("Failed to triggerGetAllFeatureInfo in data-panel.GeoList.handleZoomToGeoLocator",e)}));var t,n},children:(0,c.jsxs)(i.Grid,{container:!0,children:[(0,c.jsx)(i.Grid,{item:!0,xs:12,sm:8,children:(0,c.jsx)(i.Typography,{sx:o.aP.listStyle,children:h(e.name,n,e.province&&"null"!==e.province?", ".concat(e.province):"")})}),(0,c.jsx)(i.Grid,{item:!0,xs:12,sm:4,sx:{textAlign:"right"},children:!!e.category&&"null"!==e.category&&(0,c.jsx)(i.Typography,{component:"p",sx:o.aP.main,children:(0,c.jsxs)(i.Typography,{component:"span",children:[" ",e.category]})})})]})})})},"".concat(e.name,"-").concat(e.lat,"-").concat(t.toString()))}))})}},65423:(e,t,n)=>{"use strict";n.d(t,{K9:()=>o,aP:()=>a,cm:()=>s});var r=n(58990),i=n(20553),o={root:{position:"absolute",top:12,left:80,maxWidth:350,width:350},geolocator:{position:"relative",display:"flex",zIndex:1100,"& form":{display:"flex",width:"100%",paddingLeft:5},"& .MuiPaper-root":{backgroundColor:"background.default",color:"text.primary","& .MuiToolbar-root":{justifyContent:"space-between"}}},progressBar:{position:"relative",zIndex:1100,"& span":{width:"100%"}},filter:{display:"flex",flexDirection:"row",alignItems:"end",padding:6,paddingTop:2,"& .MuiInputLabel-formControl":{fontSize:function(e){return e.palette.geoViewFontSize.default},marginTop:0},"& .MuiSelect-select":{padding:"0px 12px 4px 0px !important"}},searchResult:{position:"relative",display:"flex",flexDirection:"column",zIndex:1100,marginTop:6},filterListError:{listStyleType:"disc",listStylePosition:"inside","& li":{display:"list-item",paddingLeft:12,"& .MuiListItemText-root":{display:"inline-flex",marginLeft:"-8px"}}}},a={listStyle:{fontSize:function(e){return e.palette.geoViewFontSize.sm},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},main:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","& span":{fontSize:function(e){return e.palette.geoViewFontSize.xs},":first-of-type":{fontSize:function(e){return e.palette.geoViewFontSize.sm}}}}},s=(0,r.Ay)(i.A)((function(e){var t=e.theme;return{color:"inherit",width:"100%",fontSize:t.palette.geoViewFontSize.default,"& .MuiInputBase-input":{transition:t.transitions.create("width"),width:"100%"}}}))},79437:(e,t,n)=>{"use strict";n.d(t,{u:()=>C});var r=n(43994),i=n(47361),o=n(59615),a=n.n(o),s=n(30538),l=n(43331),c=n(44481),u=n.n(c),d=n(94145),h=n(82942),p=n(65423),f=n(46457),g=n(69495),m=n(31726),y=n(28249),v=n(84050),b=n(28187),x=n(60854),w=n(97282);function A(e){var t=e.geoLocationData,n=e.searchValue,r=e.error,o=(0,l.useTranslation)().t,a=(0,s.useState)(""),c=(0,i.A)(a,2),u=c[0],f=c[1],g=(0,s.useState)(""),m=(0,i.A)(g,2),A=m[0],S=m[1],C=(0,s.useState)(t),E=(0,i.A)(C,2),_=E[0],k=E[1],T=(0,b.ht)(),O=(0,d.A)(),P=(0,s.useMemo)((function(){x.vF.logTraceUseMemo("GEOLOCATOR-RESULT - provinces",t);var e=t.reduce((function(e,t){return t.province&&!e.includes(t.province)&&e.push(t.province),e}),[]).sort();return[""].concat((0,y.A)(new Set(e))).map((function(e){return{type:"item",item:{value:e.length?e:"",children:e.length?e:o("geolocator.noFilter")}}}))}),[t]),I=(0,s.useMemo)((function(){x.vF.logTraceUseMemo("GEOLOCATOR-RESULT - categories",t);var e=t.reduce((function(e,t){return t.category&&e.push(t.category),e}),[]).sort();return[""].concat((0,y.A)(new Set(e))).map((function(e){return{type:"item",item:{value:e.length?e:"",children:e.length?e:o("geolocator.noFilter")}}}))}),[t]),M=(0,s.useMemo)((function(){return x.vF.logTraceUseMemo("GEOLOCATOR-RESULT - memoFilterData",t,u,A),t.filter((function(e){var t=!0;return u.length&&!A.length?t=e.province.toLowerCase()===u.toLowerCase():u.length&&A.length?t=e.province.toLowerCase()===u.toLowerCase()&&e.category.toLowerCase()===A.toLowerCase():!u.length&&A.length&&(t=e.category.toLowerCase()===A.toLowerCase()),t}))}),[A,t,u]);return(0,s.useEffect)((function(){x.vF.logTraceUseEffect("GEOLOCATOR-RESULT - geoLocationData",t),k(t)}),[t]),(0,s.useEffect)((function(){x.vF.logTraceUseEffect("GEOLOCATOR-RESULT - geoLocationData province category",M),k(M)}),[M]),(0,s.useEffect)((function(){x.vF.logTraceUseEffect("GEOLOCATOR-RESULT - geoLocationData reset",t),t.length||(f(""),S(""))}),[t]),(0,w.jsxs)(h.Paper,{component:"div",elevation:4,square:!0,sx:{width:350},children:[!r&&(0,w.jsxs)(h.Box,{sx:p.K9.filter,children:[(0,w.jsx)(h.Box,{sx:{flexGrow:2,paddingRight:"8px",maxWidth:150},children:(0,w.jsx)(h.Select,{labelId:"provinceGeolocatorFiltersLabel",formControlProps:{variant:"standard",size:"small"},id:"provinceGeolocatorFilters",fullWidth:!0,value:null!=u?u:"",onChange:function(e){return f(e.target.value)},label:o("geolocator.province"),inputLabel:{id:"geolocationProvinceFilter"},menuItems:P,disabled:!t.length,variant:"standard"})}),(0,w.jsx)(h.Box,{sx:{flexGrow:2,paddingRight:"8px",maxWidth:150},children:(0,w.jsx)(h.Select,{labelId:"categoryGeolocatorFiltersLabel",id:"typeGeolocatorFilters",formControlProps:{variant:"standard",size:"small"},value:null!=A?A:"",fullWidth:!0,onChange:function(e){return S(e.target.value)},label:o("geolocator.category"),inputLabel:{id:"geolocationCategoryFilter"},menuItems:I,disabled:!t.length,variant:"standard"})}),(0,w.jsx)(h.Box,{children:(0,w.jsx)(h.IconButton,{size:"small",edge:"end",color:"inherit",tooltip:"geolocator.clearFilters",onClick:function(){(u||A)&&(f(""),S(""),k(t))},disabled:!t.length,children:(0,w.jsx)(h.FilterAltOffIcon,{fontSize:O.palette.geoViewFontSize.sm})})})]}),(0,w.jsx)(h.Divider,{}),(0,w.jsxs)(h.Box,{sx:{maxHeight:T[1]-160,overflowY:"auto"},children:[!!_.length&&(0,w.jsx)(v.A,{geoListItems:_,searchValue:n}),(!_.length||r)&&(0,w.jsxs)(h.Box,{sx:{p:10},children:[(0,w.jsxs)(h.Typography,{component:"p",sx:{fontSize:O.palette.geoViewFontSize.md},children:[o("geolocator.errorMessage")," ",(0,w.jsx)("b",{children:n})]}),!(!u.length&&!A.length)&&(0,w.jsxs)(h.List,{sx:p.K9.filterListError,children:[!!u.length&&(0,w.jsx)(h.ListItem,{children:(0,w.jsx)(h.ListItemText,{primary:"".concat(o("geolocator.province"),": ").concat(u)})}),!!A.length&&(0,w.jsx)(h.ListItem,{children:(0,w.jsx)(h.ListItemText,{primary:"".concat(o("geolocator.category"),": ").concat(A)})})]})]})]})]})}var S=n(8259);function C(){x.vF.logTraceRender("components/geolocator/geolocator");var e=(0,l.useTranslation)().t,t=(0,d.A)(),n=(0,s.useState)(),o=(0,i.A)(n,2),c=o[0],y=o[1],v=(0,s.useState)(),b=(0,i.A)(v,2),C=b[0],E=b[1],_=(0,s.useState)(!1),k=(0,i.A)(_,2),T=k[0],O=k[1],P=(0,s.useState)(""),I=(0,i.A)(P,2),M=I[0],L=I[1],R=(0,m.t)(),j=(0,m._V)(),F=(0,g.A6)().setActiveAppBarTab,D=(0,g.bd)(),N=D.tabGroup,z=D.isOpen,V=(0,s.useRef)("".concat(j,"&lang=").concat(R)),B=(0,s.useRef)(null),$=function(e){if(!/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),\s*[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/.test(e))return null;var t=e.split(/[\s|,|;|]/).filter((function(e){return!Number.isNaN(e)&&""!==e})).map((function(e){return parseFloat(e)})),n=.015,r=[t[1]-n,t[0]-n,t[1]+n,t[0]+n];return{key:"coordinates",name:"".concat(t[0],",").concat(t[1]),lat:t[0],lng:t[1],bbox:r,province:"",category:"Latitude/Longitude"}},G=(0,s.useCallback)(function(){var e=(0,r.A)(a().mark((function e(t){var n,r,i,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,O(!0),B.current&&B.current.abort(),n=new AbortController,B.current=n,e.next=7,fetch("".concat(V.current,"&q=").concat(encodeURIComponent("".concat(t,"*"))),{signal:B.current.signal});case 7:if((r=e.sent).ok){e.next=10;break}throw new Error("Error");case 10:return e.next=12,r.json();case 12:i=e.sent,O(!1),(o=$(t))&&i.unshift(o),y(i),e.next=23;break;case 19:e.prev=19,e.t0=e.catch(0),O(!1),E(e.t0);case 23:case"end":return e.stop()}}),e,null,[[0,19]])})));return function(t){return e.apply(this,arguments)}}(),[]),U=(0,s.useCallback)((function(){L(""),y(void 0),F("AppbarPanelButtonGeolocator",S.NF.GEOLOCATOR,!1)}),[F]),W=u()((function(e){G(e).catch((function(e){x.vF.logPromiseFailed("getGeolocations in deRequest in Geolocator",e)}))}),f.Xl),q=(0,s.useCallback)((function(e){return W(e)}),[]),H=(0,s.useCallback)((function(){M.length>=3&&(W.cancel(),G(M).catch((function(e){x.vF.logPromiseFailed("getGeolocations in Geolocator",e)})))}),[W,G,M]);return(0,s.useEffect)((function(){return function(){B.current&&B.current.abort()}}),[]),(0,w.jsxs)(h.Box,{sx:p.K9.root,visibility:N===S.NF.GEOLOCATOR&&z?"visible":"hidden",id:"geolocator-search",children:[(0,w.jsx)(h.Box,{sx:p.K9.geolocator,children:(0,w.jsx)(h.AppBarUI,{position:"static",children:(0,w.jsx)(h.Toolbar,{variant:"dense",children:(0,w.jsxs)("form",{onSubmit:function(e){e.preventDefault(),H()},children:[(0,w.jsx)(p.cm,{placeholder:e("geolocator.search"),autoFocus:!0,onChange:function(e){var t=e.target.value;L(t),t.length>=3&&q(t),(!t.length||t.length<3)&&(B.current&&B.current.abort(),W.cancel(),y(void 0))},value:M}),(0,w.jsxs)(h.Box,{sx:{display:"flex",marginLeft:"auto",alignItems:"center"},children:[(0,w.jsx)(h.IconButton,{size:"small",edge:"end",color:"inherit",sx:{mr:4},disabled:!M.length,onClick:H,children:(0,w.jsx)(h.SearchIcon,{fontSize:t.palette.geoViewFontSize.sm})}),(0,w.jsx)(h.Divider,{orientation:"vertical",variant:"middle",flexItem:!0}),(0,w.jsx)(h.IconButton,{size:"small",edge:"end",color:"inherit",sx:{mr:2,ml:4},onClick:U,children:(0,w.jsx)(h.CloseIcon,{fontSize:t.palette.geoViewFontSize.sm})})]})]})})})}),T&&(0,w.jsx)(h.Box,{sx:p.K9.progressBar,children:(0,w.jsx)(h.ProgressBar,{})}),!!c&&(null==M?void 0:M.length)>=3&&(0,w.jsx)(h.Box,{sx:p.K9.searchResult,children:(0,w.jsx)(A,{geoLocationData:c,searchValue:M,error:C})})]})}},82875:(e,t,n)=>{"use strict";n.d(t,{r:()=>f});var r=n(47361),i=n(30538),o=n(34089),a=n(43331),s=n(94145),l=n(82942),c=n(31726),u=n(60854),d=function(e){return{guideContainer:{"& .responsive-layout-right-main-content":{backgroundColor:e.palette.geoViewColor.white}},rightPanelContainer:{color:e.palette.geoViewColor.textColor.main},footerGuideListItemText:{"&:hover":{cursor:"pointer"},"& .MuiListItemText-primary":{padding:"15px",fontSize:"".concat(e.palette.geoViewFontSize.lg," !important"),lineHeight:1.5,fontWeight:"700",textTransform:"capitalize"}},footerGuideListItemCollapse:{"& .MuiListItemText-primary":{padding:"15px 15px 15px 30px",fontSize:"".concat(e.palette.geoViewFontSize.md," !important"),lineHeight:1.5,whiteSpace:"unset"}},errorMessage:{marginLeft:"60px",marginTop:"30px",marginBottom:"12px"}}},h=n(78383),p=n(97282);function f(e){var t,n=e.fullWidth,f=(0,a.useTranslation)().t,g=(0,s.A)(),m=d(g),y=(0,c.DR)(),v=(0,i.useState)(""),b=(0,r.A)(v,2),x=b[0],w=b[1],A=(0,i.useState)(0),S=(0,r.A)(A,2),C=S[0],E=S[1],_=(0,i.useCallback)((function(){return u.vF.logTraceUseCallback("GUIDE_PANEL - getListOfGuides"),y?Object.keys(y).map((function(e){var t=y[e].content;return y[e].children&&Object.keys(y[e].children).forEach((function(n){t+="\n".concat(y[e].children[n].content),y[e].children[n].children&&Object.keys(y[e].children[n].children).forEach((function(r){t+="\n".concat(y[e].children[n].children[r].content)}))})),{layerName:y[e].heading,layerPath:e,layerStatus:"loaded",queryStatus:"processed",content:(0,p.jsx)(o.Ay,{options:{wrapper:"article"},children:t})}})):[]}),[y]),k=(0,i.useMemo)((function(){return u.vF.logTraceUseMemo("GUIDE_PANEL - layerlist"),w("navigationControls"),_()}),[_]),T=(0,i.useCallback)((function(e){u.vF.logTraceUseCallback("GUIDE PANEL - handleGuideItemClick",e);var t=k.findIndex((function(t){return t.layerName===e.layerName}));E(t),w(e.layerPath)}),[k]);return(0,p.jsx)(l.Box,{sx:m.guideContainer,children:(0,p.jsx)(h.PE,{selectedLayerPath:x||"",layerList:k,onLayerListClicked:T,fullWidth:n,"aria-label":f("guide.title"),children:(0,p.jsx)(l.Box,{sx:m.rightPanelContainer,"aria-label":f("guide.title"),className:"guidebox-container",children:(0,p.jsx)(l.Box,{className:"guideBox",children:null===(t=k[C])||void 0===t?void 0:t.content})})})})}},16154:(e,t,n)=>{"use strict";n.d(t,{s:()=>f});var r=n(47361),i=n(30538),o=n(43331),a=n(94145),s=n(82942),l=n(60854),c=n(28187),u=function(e){return{tooltipItem:{color:e.palette.geoViewColor.bgColor.light[900],background:e.palette.geoViewColor.bgColor.dark[900],opacity:.9,fontSize:e.palette.geoViewFontSize.default,padding:"3px 8px",borderRadius:"5px",textAlign:"center",maxWidth:"350px",maxHeight:"60px",position:"absolute",display:"flex",top:"-5px",left:"3px"},tooltipText:{fontSize:e.palette.geoViewFontSize.default,color:e.palette.geoViewColor.bgColor.light[900],textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",padding:"5px"}}},d=n(15247),h=n(31726),p=n(97282);function f(){var e=(0,o.useTranslation)().t,t=(0,d.Jh)(),n=(0,a.A)(),f=(0,i.useState)(""),g=(0,r.A)(f,2),m=g[0],y=g[1],v=(0,i.useState)(""),b=(0,r.A)(v,2),x=b[0],w=b[1],A=(0,i.useState)(!1),S=(0,r.A)(A,2),C=S[0],E=S[1],_=u(n),k=(0,c.kI)(),T=(0,c.KE)(),O=(0,h.sd)().querySelector('[id^="mapTargetElement-'.concat(t,'"]')),P=(0,i.useRef)(null);return(0,i.useEffect)((function(){var e;(l.vF.logTraceUseEffect("HOVER-TOOLTIP - hoverFeatureInfo",k),k)&&(y(null===(e=k.fieldInfo)||void 0===e?void 0:e.value),w(k.featureIcon.toDataURL()),E(!0))}),[k]),(0,i.useEffect)((function(){y(""),w(""),E(!1)}),[T]),(0,i.useEffect)((function(){if(l.vF.logTraceUseEffect("HOVER-TOOLTIP - tooltipValue changed",m),O&&P.current&&T&&T.pixel&&m){var e=O.getBoundingClientRect(),t=P.current.getBoundingClientRect(),n=T.pixel[0]+10,r=T.pixel[1]-35;T.pixel[0]+t.width>e.width&&(n=T.pixel[0]-t.width-10),T.pixel[1]-t.height{"use strict";n.d(t,{$:()=>s.$,re:()=>o.r,rn:()=>i.r,s$:()=>a.s,tk:()=>r.t});n(96974),n(95811),n(97886),n(17161),n(57449),n(89971),n(77082),n(81247),n(45457),n(74468),n(87485);var r=n(53191),i=n(48495),o=(n(58726),n(28184),n(55147),n(98625),n(55589),n(6017),n(18114),n(21793),n(84050),n(79437),n(65423),n(82875)),a=(n(16154),n(14476)),s=n(97182);n(77143),n(55284),n(45094),n(93201),n(33859),n(21343),n(35971),n(89780),n(21350),n(69561),n(52315),n(94044),n(12805),n(62523),n(67121),n(5099)},97182:(e,t,n)=>{"use strict";n.d(t,{$:()=>Ae});var r=n(64426),i=n(47361),o=n(30538),a=n(94145),s=n(82942),l=n(91140),c=n(43331),u=n(97282);function d(){var e=(0,a.A)(),t=(0,c.useTranslation)().t,n=(0,l.y5)(),r=(0,l.Yo)(),i=(0,l.$T)().setDisplayState,o=function(e){i(e)};return(0,u.jsx)(s.Box,{id:"layers-toolbar",sx:{padding:"8px 18px 0px 18px"},children:(0,u.jsxs)(s.ButtonGroup,{size:"small",variant:"outlined","aria-label":"outlined button group",children:[(0,u.jsx)(s.Button,{makeResponsive:!0,type:"text",disabled:!r.length,size:"small",tooltip:"general.view",variant:"view"===n?"contained":"outlined",startIcon:(0,u.jsx)(s.VisibilityOutlinedIcon,{fontSize:e.palette.geoViewFontSize.sm}),onClick:function(){return o("view")},children:t("general.view")}),(0,u.jsx)(s.Button,{makeResponsive:!0,type:"text",size:"small",tooltip:"legend.addLayer",variant:"add"===n?"contained":"outlined",startIcon:(0,u.jsx)(s.AddCircleOutlineIcon,{fontSize:e.palette.geoViewFontSize.sm}),onClick:function(){return o("add")},children:t("general.add")}),(0,u.jsx)(s.Button,{makeResponsive:!0,type:"text",disabled:!r.length,size:"small",tooltip:"legend.sortLayers",variant:"order"===n?"contained":"outlined",startIcon:(0,u.jsx)(s.HandleIcon,{fontSize:e.palette.geoViewFontSize.sm}),onClick:function(){return o("order")},children:t("legend.sort")}),(0,u.jsx)(s.Button,{makeResponsive:!0,type:"text",disabled:!r.length,size:"small",tooltip:"legend.removeLayer",variant:"remove"===n?"contained":"outlined",startIcon:(0,u.jsx)(s.DeleteOutlineIcon,{fontSize:e.palette.geoViewFontSize.sm}),onClick:function(){return o("remove")},children:t("general.remove")})]})})}var h=n(89255),p=n.n(h),f=function(e){return{categoryTitle:{textAlign:"left",fontWeight:"600",fontSize:e.palette.geoViewFontSize.lg},layerDetails:{padding:"20px"},buttonDescriptionContainer:{display:"flex",flexDirection:"row",alignItems:"center"},layerOpacityControlContainer:{display:"flex",flexDirection:"row",alignItems:"right",justifyContent:"right","& #layerOpacity":{width:{xs:"100%",sm:"100%",md:"50%",lg:"40%",xl:"40%"}}},itemsGrid:{width:"100%","& .MuiGrid-container":{"&:first-of-type":{fontWeight:"bold",borderTop:"1px solid ".concat(e.palette.geoViewColor.bgColor.dark[300]),borderBottom:"1px solid ".concat(e.palette.geoViewColor.bgColor.dark[300])},"& .MuiGrid-item":{padding:"3px 6px","&:first-of-type":{width:"80px"},"&:nth-of-type(2)":{flexGrow:1,textAlign:"left",display:"flex",flexDirection:"row",alignItems:"center"}}}},tableIconLabel:{color:e.palette.geoViewColor.textColor.main,fontSize:e.palette.geoViewFontSize.default,noWrap:!0,marginLeft:20},wmsImage:{maxWidth:"100%",height:"auto"}}},g=n(69495),m=n(74624),y=n(79913),v=n(46182),b=function(e){return{layerOpacityControl:{display:"flex",alignItems:"center",gap:"15px",padding:"8px 20px 7px 15px",backgroundColor:e.palette.geoViewColor.bgColor.main,borderRadius:"10px","& .MuiSlider-mark":{width:"9px",height:"9px",opacity:1,backgroundColor:e.palette.geoViewColor.primary.light[600],border:"2px solid ".concat(e.palette.geoViewColor.primary.main),borderRadius:"50%"},"& .MuiSlider-markLabel":{fontSize:e.palette.geoViewFontSize.xs,color:e.palette.geoViewColor.textColor.main}}}},x=n(60854);function w(e){x.vF.logTraceRender("components/layers/right-panel/layer-opacity-control/layer-opacity-control");var t=e.layerDetails,n=(0,c.useTranslation)().t,r=(0,a.A)(),i=b(r),o=(0,l.$T)().setLayerOpacity,d=[];t.opacityFromParent&&1!==t.opacityFromParent&&(d=[{value:100*t.opacityFromParent,label:n("layers.opacityMax")}]);return(0,u.jsx)(s.Box,{style:{padding:"16px 17px 16px 23px"},children:(0,u.jsxs)(s.Box,{sx:i.layerOpacityControl,children:[(0,u.jsx)(s.Typography,{sx:{fontWeight:"bold"},children:n("layers.opacity")}),(0,u.jsx)(s.Slider,{min:0,max:100,step:1,value:100*(t.opacity?t.opacity:1),onChange:function(e,n){var r=Array.isArray(e)?e[0]:e;t.opacityFromParent&&1!==t.opacityFromParent&&r/100>=t.opacityFromParent?o(t.layerPath,t.opacityFromParent):o(t.layerPath,r/100)},marks:d})]})})}function A(e){var t,n;x.vF.logTraceRender("components/layers/right-panel/layer-details");var d=e.layerDetails,h=(0,c.useTranslation)().t,b=(0,a.A)(),A=f(b),S=(0,o.useState)(!1),C=(0,i.A)(S,2),E=C[0],_=C[1],k=(0,l.Zt)(),T=(0,l.$T)(),O=T.setAllItemsVisibility,P=T.toggleItemVisibility,I=T.setHighlightLayer,M=T.zoomToLayerExtent,L=T.getLayerBounds,R=(0,g.A6)().openModal,j=(0,m.Xh)(),F=j.find((function(e){return e.layerPath===(null==d?void 0:d.layerPath)}));(0,o.useEffect)((function(){var e;return x.vF.logTraceUseEffect("LAYER DETAILS",F,d),F?e=setTimeout((function(){_(!0)}),100):_(!0),function(){_(!1),e&&clearTimeout(e)}}),[j,d,F]);var D=function(){M(d.layerPath).catch((function(e){x.vF.logPromiseFailed("in zoomToLayerExtent in layer-details.handleZoomTo",e)}))},N=function(){R({activeElementId:"layerDataTable",callbackElementId:"table-details"})};if(void 0===d.bounds||d.bounds[0]===1/0){var z=L(d.layerPath);z&&(d.bounds=z)}var V=function(){x.vF.logDebug("Refresh is not implemented")},B=function(){I(d.layerPath)},$=function(){return p()(d.items,(function(e){return!1!==e.isVisible}))};function G(e){var t,n,r;return"simple"===(null===(t=d.styleConfig)||void 0===t||null===(t=t.LineString)||void 0===t?void 0:t.styleType)||"simple"===(null===(n=d.styleConfig)||void 0===n||null===(n=n.Point)||void 0===n?void 0:n.styleType)||"simple"===(null===(r=d.styleConfig)||void 0===r||null===(r=r.Polygon)||void 0===r?void 0:r.styleType)?null:d.canToggle?(0,u.jsx)(s.IconButton,{color:"primary",onClick:function(){return P(d.layerPath,e)},children:!0===e.isVisible?(0,u.jsx)(s.CheckBoxIcon,{}):(0,u.jsx)(s.CheckBoxOutlineBlankIcon,{})}):(0,u.jsxs)(s.IconButton,{disabled:!0,tooltip:"layers.visibilityIsAlways",children:[" ",(0,u.jsx)(s.CheckBoxIcon,{color:"disabled"})," "]})}var U,W,q,H;return(0,u.jsx)(s.Paper,{sx:A.layerDetails,children:void 0!==d&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(s.Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[(0,u.jsxs)(s.Box,{sx:(0,r.A)({textAlign:"left"},b.breakpoints.down("md"),{display:"none"}),children:[(0,u.jsxs)(s.Typography,{sx:A.categoryTitle,children:[" ",d.layerName," "]}),(0,u.jsxs)(s.Typography,{sx:{fontSize:b.palette.geoViewFontSize.sm},children:[" ",function(){if(d.children.length>0)return h("legend.subLayersCount").replace("{count}",d.children.length.toString());var e=d.items.filter((function(e){return!1!==e.isVisible})).length,t=d.items.length;return t<=1?null:h("legend.itemsCount").replace("{count}",e.toString()).replace("{totalCount}",t.toString())}()," "]})]}),(0,u.jsxs)(s.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"15px"},children:[E&&(null==F||null===(U=F.features)||void 0===U?void 0:U.length)&&(!1!==(null===(H=d.controls)||void 0===H?void 0:H.table)?(0,u.jsx)(s.IconButton,{id:"table-details",tooltip:"legend.tableDetails",className:"buttonOutline",onClick:N,children:(0,u.jsx)(s.TableViewIcon,{})}):(0,u.jsx)(s.IconButton,{id:"table-details",className:"buttonOutline",disabled:!0,children:(0,u.jsx)(s.TableViewIcon,{color:"disabled"})})),(0,u.jsx)(s.IconButton,{tooltip:"legend.refreshLayer",className:"buttonOutline",onClick:V,children:(0,u.jsx)(s.RestartAltIcon,{})}),!1!==(null===(q=d.controls)||void 0===q?void 0:q.highlight)?(0,u.jsx)(s.IconButton,{tooltip:"legend.highlightLayer",onClick:B,className:k===d.layerPath?"buttonOutline active":"buttonOutline",children:(0,u.jsx)(s.HighlightOutlinedIcon,{})}):(0,u.jsx)(s.IconButton,{className:"buttonOutline",disabled:!0,children:(0,u.jsx)(s.HighlightOutlinedIcon,{color:"disabled"})}),!1!==(null===(W=d.controls)||void 0===W?void 0:W.zoom)?(0,u.jsx)(s.IconButton,{tooltip:"legend.zoomTo",onClick:D,className:"buttonOutline",disabled:void 0===d.bounds,children:(0,u.jsx)(s.ZoomInSearchIcon,{})}):(0,u.jsx)(s.IconButton,{className:"buttonOutline",disabled:!0,children:(0,u.jsx)(s.ZoomInSearchIcon,{color:"disabled"})})]})]}),!1!==(null===(t=d.controls)||void 0===t?void 0:t.opacity)&&(0,u.jsx)(s.Box,{sx:A.layerOpacityControlContainer,children:(0,u.jsx)(s.Box,{id:"layerOpacity",children:(0,u.jsx)(w,{layerDetails:d})})}),"ogcWms"===d.type&&d.icons.length&&d.icons[0].iconImage&&"no data"!==d.icons[0].iconImage?(0,u.jsx)(s.Box,{sx:{marginTop:"10px"},children:(0,u.jsx)("img",{alt:"icon",src:d.icons[0].iconImage,style:A.wmsImage})}):null,(0,u.jsxs)(s.Box,{sx:{marginTop:"20px"},children:[(null===(n=d.items)||void 0===n?void 0:n.length)>0&&(0,u.jsxs)(s.Grid,{container:!0,direction:"column",spacing:0,sx:A.itemsGrid,justifyContent:"left",justifyItems:"stretch",children:[d.items.length>1&&(0,u.jsxs)(s.Grid,{container:!0,direction:"row",justifyContent:"center",alignItems:"stretch",justifyItems:"stretch",children:[(0,u.jsx)(s.Grid,{item:!0,xs:"auto",children:d.canToggle?(0,u.jsx)(s.IconButton,{color:"primary",onClick:function(){return O(d.layerPath,!$())},children:$()?(0,u.jsx)(s.CheckBoxIcon,{}):(0,u.jsx)(s.CheckBoxOutlineBlankIcon,{})}):(0,u.jsxs)(s.IconButton,{disabled:!0,children:[" ",(0,u.jsx)(s.CheckBoxIcon,{color:"disabled"})," "]})}),(0,u.jsx)(s.Grid,{item:!0,xs:"auto",children:(0,u.jsx)(s.Box,{component:"span",children:h("general.name")})})]}),d.items.map((function(e){return(0,u.jsxs)(s.Grid,{container:!0,direction:"row",justifyContent:"center",alignItems:"stretch",children:[(0,u.jsx)(s.Grid,{item:!0,xs:"auto",children:G(e)}),(0,u.jsxs)(s.Grid,{item:!0,xs:"auto",children:[e.icon?(0,u.jsx)("img",{alt:e.name,src:e.icon}):(0,u.jsx)(s.BrowserNotSupportedIcon,{}),(0,u.jsx)(s.Box,{component:"span",style:A.tableIconLabel,children:e.name})]})]},e.name)}))]}),d.children.length>0&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.Typography,{sx:{fontWeight:"bold",textAlign:"left",margin:"10px 0px"},children:h("layers.subLayersList")}),function e(t){return(0,u.jsx)(s.List,{children:t.children.map((function(t){return(0,u.jsxs)(o.Fragment,{children:[(0,u.jsxs)(s.ListItem,{sx:{padding:"6px 0px",borderTop:"1px solid ".concat(b.palette.geoViewColor.bgColor.dark[50])},children:[(0,u.jsx)(s.ListItemIcon,{children:(0,u.jsx)(v.B,{layer:t})}),(0,u.jsx)(s.ListItemText,{primary:t.layerName})]}),t.children.length>0&&(0,u.jsx)(s.Box,{sx:{paddingLeft:"30px",width:"100%"},children:e(t)})]},t.layerId)}))})}(d)]})]}),(0,u.jsx)(s.Divider,{sx:{marginTop:"50px",marginBottom:"10x"},variant:"middle"}),d.layerAttribution&&d.layerAttribution.map((function(e){return(0,u.jsx)(s.Typography,{sx:{marginTop:"10px",color:b.palette.geoViewColor.textColor.light[200],fontSize:b.palette.geoViewFontSize.sm,textAlign:"center"},children:-1===e.indexOf("©")?"© ".concat(e):e},(0,y.generateId)())}))]})})}var S=n(28187),C=n(30886),E=n.n(C),_=n(78283);function k(e){x.vF.logTraceRender("components/layers/left-panel/delete-undo-button/UndoButtonWithProgress");var t=e.progressValue,n=e.onUndo;return(0,u.jsxs)(s.Box,{sx:{position:"relative",display:"inline-flex"},onClick:n,children:[(0,u.jsx)(s.CircularProgressBase,{variant:"determinate",size:40,value:t}),(0,u.jsx)(s.Box,{style:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,u.jsx)(s.IconButton,{edge:"end",size:"small",children:(0,u.jsx)(s.UndoIcon,{})})})]})}function T(e){var t;x.vF.logTraceRender("components/layers/left-panel/delete-undo-button/DeleteUndoButton");var n=e.layer,r=(0,o.useState)(10),a=(0,i.A)(r,2),c=a[0],d=a[1],h=(0,o.useState)(!1),p=(0,i.A)(h,2),f=p[0],g=p[1],m=(0,l.$T)(),y=m.deleteLayer,v=m.setLayerDeleteInProgress,b=m.getLayerDeleteInProgress,w=(0,S.U6)(),A=w.getVisibilityFromOrderedLayerInfo,C=w.setOrToggleLayerVisibility,E=function(){A(n.layerPath)&&C(n.layerPath),g(!0),v(!0)};return(0,o.useEffect)((function(){100===c&&(y(n.layerPath),g(!1))}),[c]),(0,o.useEffect)((function(){if(f){var e=setInterval((function(){d((function(e){return e>=100?0:e+5}))}),90);return function(){clearInterval(e)}}d(0)}),[f]),f||!1===(null===(t=n.controls)||void 0===t?void 0:t.remove)||b()?f?(0,u.jsx)(k,{progressValue:c,onUndo:function(){C(n.layerPath),g(!1),v(!1)}}):(0,u.jsx)(s.IconButton,{onClick:E,edge:"end",size:"small",disabled:!0,children:(0,u.jsx)(s.DeleteOutlineIcon,{color:"disabled"})}):(0,u.jsx)(s.IconButton,{onClick:E,edge:"end",size:"small",children:(0,u.jsx)(s.DeleteOutlineIcon,{color:"error"})})}var O=n(46457),P=n(91693),I=n(2890),M=n(75311),L=n(37112);function R(e){var t=e.depth,n=e.layer,r=e.setIsLayersListPanelVisible,a=e.index,d=e.isFirst,h=e.isLast,p=e.isLayoutEnlarged;x.vF.logTraceRender("components/layers/left-panel/single-layer");var f=(0,c.useTranslation)().t,g=(0,l.$T)().setSelectedLayerPath,y=(0,S.U6)(),b=y.getVisibilityFromOrderedLayerInfo,w=y.setOrToggleLayerVisibility,A=y.reorderLayer,C=(0,l.u1)(),k=(0,l.y5)(),R=(0,m._M)(),j=(0,m.Xh)(),F=(0,m.eQ)().triggerGetAllFeatureInfo,N=function e(t){return"view"===k&&(!!(t.children&&t.children.length>0)&&(t.children.filter((function(e){return e.layerPath===C})).length>0||E()(t.children,(function(t){return e(t)}))))}(n),z=n.layerPath===C&&"view"===k,V=function e(t){var n;if(!1===(null===(n=t.controls)||void 0===n?void 0:n.visibility))return!0;var r=!1;return t.children&&t.children.length>0&&(r=t.children.some((function(t){return e(t)}))),r}(n),B=(0,o.useState)(z||N),$=(0,i.A)(B,2),G=$[0],U=$[1],W=function(){U(!G)},q=function(){["processed","loaded"].includes(n.layerStatus)&&(g(n.layerPath),r&&(n.children.length>0&&U(!0),r(!0),j.filter((function(e){var t;return e.layerPath===n.layerPath&&!(null==e||null===(t=e.features)||void 0===t||!t.length)})).length&&n.layerStatus!==O.RI.ERROR||F(n.layerPath).catch((function(e){x.vF.logPromiseFailed("Failed to triggerGetAllFeatureInfo in single-layer.handleLayerClick",e)}))))};var H,Y,K,X,Z=(0,_.zh)({delay:150*a+150*t/2,from:{opacity:.1},to:{opacity:1}}),J=(0,_.CS)(s.Paper);return(0,u.jsxs)(J,{className:(X=["layer-panel ",null!==(K=n.layerStatus)&&void 0!==K?K:""],0===t&&X.push("bordered"),!N||z||G||X.push("selectedLayer bordered-primary"),z&&X.push("selectedLayer bordered-primary"),X.join(" ")),style:Z,"data-layer-depth":t,children:[(0,u.jsx)(s.Tooltip,{title:n.layerName,placement:"top",enterDelay:1e3,arrow:!0,children:(0,u.jsx)(s.ListItem,{divider:!0,tabIndex:0,onKeyDown:function(e){return function(e){"Enter"===e.key&&q()}(e)},children:(0,u.jsxs)(s.ListItemButton,{selected:z||N&&!G,tabIndex:-1,sx:{minHeight:"4.51rem"},children:[(0,u.jsx)(v.B,{layer:n}),(0,u.jsx)(s.ListItemText,{primary:void 0!==n.layerName?n.layerName:n.layerId,secondary:function(){if("error"===n.layerStatus)return f("legend.layerError");if("processing"===n.layerStatus||"loading"===n.layerStatus)return f("legend.layerLoading");if(n.children.length>0)return f("legend.subLayersCount").replace("{count}",n.children.length.toString());var e=n.items.filter((function(e){return!1!==e.isVisible})).length,t=n.items.length,r=f("legend.itemsCount").replace("{count}",e.toString()).replace("{totalCount}",t.toString());return t<=1&&(r=""),R[n.layerPath]?(0,u.jsxs)(s.Typography,{sx:{color:"unset",fontSize:"unset"},component:"span",children:[r," ",(0,u.jsx)(P.A,{sx:{marginBottom:"-5px"},fontSize:"small"})]}):r}(),onClick:q}),!p&&(0,u.jsxs)(s.ListItemIcon,{className:"rightIcons-container",children:["processing"===n.layerStatus||"loading"===n.layerStatus||"view"!==k?null:"error"===n.layerStatus?(0,u.jsx)(T,{layer:n}):V?(0,u.jsx)(s.IconButton,{edge:"end",size:"small",tooltip:"layers.visibilityIsAlways",className:"buttonOutline",disabled:!0,children:(0,u.jsx)(s.VisibilityOutlinedIcon,{color:"disabled"})}):(0,u.jsx)(s.IconButton,{edge:"end",size:"small",onClick:function(){w(n.layerPath)},tooltip:"layers.toggleVisibility",className:"buttonOutline",children:b(n.layerPath)?(0,u.jsx)(s.VisibilityOutlinedIcon,{}):(0,u.jsx)(s.VisibilityOffOutlinedIcon,{})}),null!==(Y=n.children)&&void 0!==Y&&Y.length?(0,u.jsx)(s.IconButton,{color:"primary",edge:"end",size:"small",onClick:W,tooltip:"layers.toggleCollapse",className:"buttonOutline",children:G?(0,u.jsx)(s.KeyboardArrowUpIcon,{}):(0,u.jsx)(s.KeyboardArrowDownIcon,{})}):null,"remove"===k?(0,u.jsx)(T,{layer:n}):"order"===k?(0,u.jsxs)(u.Fragment,{children:[(null===(H=n.children)||void 0===H?void 0:H.length)>0&&(0,u.jsx)(L.c,{orientation:"vertical",sx:{marginLeft:"0.4rem",height:"1.5rem",backgroundColor:function(e){return e.palette.geoViewColor.bgColor.dark[300]}},variant:"middle",flexItem:!0}),(0,u.jsx)(s.IconButton,{disabled:d,edge:"end",size:"small",onClick:function(){return A(n.layerPath,-1)},children:(0,u.jsx)(I.A,{})}),(0,u.jsx)(s.IconButton,{disabled:h,edge:"end",size:"small",onClick:function(){return A(n.layerPath,1)},children:(0,u.jsx)(M.A,{})})]}):null]})]})},n.layerName)}),n.children&&n.children.length?(0,u.jsx)(s.Collapse,{in:G,timeout:"auto",children:(0,u.jsx)(D,{depth:1+t,layersList:n.children,isLayoutEnlarged:p,setIsLayersListPanelVisible:r})}):null]})}var j=function(e){return{list:{color:"text.primary",width:"100%",padding:"8px",paddingRight:"14px !important",overflowY:"auto","& .MuiListItemText-primary":{fontWeight:"600",padding:"5px 0px",fontSize:"".concat(e.palette.geoViewFontSize.default," !important"),lineHeight:1.5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& .layer-panel":{"& .MuiListItemText-root":{marginLeft:"12px"},"& .rightIcons-container":{display:"flex",flexDirection:"row",justifyContent:"right",alignItems:"center","& .MuiIconButton-root":{margin:"0px 5px"}}},"& .MuiListItem-root":{height:"100%","& .MuiListItemButton-root":{padding:"0 0 0 16px",height:"100%"},"& .MuiBox-root":{height:"100%",borderTopRightRadius:"4px",borderBottomRightRadius:"4px",position:"relative",display:"flex",justifyContent:"center",alignItems:"center"}},"& .MuiListItemIcon-root":{minWidth:"2.5rem",marginRight:"20px"},"& .MuiListItemText-root":{">span":{fontSize:e.palette.geoViewFontSize.default},"> p":{fontSize:e.palette.geoViewFontSize.sm,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},evenDepthList:{background:e.palette.geoViewColor.bgColor.main,boxShadow:2,padding:"0px",margin:"20px",width:"unset",boxSizing:"border-box","& .layerItemContainer":{backgroundColor:"transparent",marginBottom:"0px"}},oddDepthList:{background:"white",boxShadow:2,padding:"0px",margin:"20px",width:"unset",boxSizing:"border-box","& .layerItemContainer":{backgroundColor:"transparent",marginBottom:"0px"}}}},F=n(46910);function D(e){var t=e.layersList,n=e.setIsLayersListPanelVisible,r=e.isLayoutEnlarged,i=e.depth;x.vF.logTraceRender("components/layers/left-panel/layers-list");var o=(0,a.A)(),l=j(o),c=(0,F.U6)().getIndexFromOrderedLayerInfo,d=t.sort((function(e,t){return c(e.layerPath)>c(t.layerPath)?1:-1})),h=d.map((function(e,t){var o=0===t,a=t===d.length-1;return(0,u.jsx)(R,{depth:i,layer:e,setIsLayersListPanelVisible:n,index:t,isFirst:o,isLast:a,isLayoutEnlarged:r},"layerKey-".concat(t,"-").concat(e.layerPath).toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-"))}));return(0,u.jsx)(s.Box,{sx:0===i?l.list:i%2?l.evenDepthList:l.oddDepthList,children:h})}var N=n(43994),z=n(59615),V=n.n(z),B=n(12311),$=n(55373),G=n(30560),U=n(78752),W=n(38509),q=n(76262),H=n(15247),Y=n(86784),K=n(21838),X=n(98030),Z=n(74490),J=n(91777),Q=n(45380),ee=n(39225),te=n(97752),ne=n(51397),re=n(16535),ie=n(80995),oe=n(5715),ae=n(91195),se=n(71587),le=n(62754),ce=n(85813),ue=n(48660),de=n(10454),he=n(12764),pe=n(52375),fe=n(12358),ge=n(68709);function me(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 ye(e){for(var t=1;t0&&t.Layer.forEach((function(t){var n=t.Name;(0===u.length||u.includes(n))&&(x.vF.logDebug("NAME",n),f.push(new ae.Q({geoviewLayerConfig:d,layerId:t.Name,layerName:(0,y.createLocalizedString)(t.Title)}))),e(t)}))},p.Capability.Layer&&m(p.Capability.Layer),1===f.length?(ke(f[0].layerName.en),Ie([f[0]])):Se(f),e.next=32;break;case 28:return e.prev=28,e.t0=e.catch(2),"proj"===e.t0.message?it("WMS",t,n):rt("WMS"),e.abrupt("return",!1);case 32:return e.abrupt("return",!0);case 33:case"end":return e.stop()}}),e,null,[[2,28]])})));return function(){return e.apply(this,arguments)}}(),at=function(){var e=(0,N.A)(V().mark((function e(){var t,n,r,i;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t={geoviewLayerType:m,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(M)},n=new U.dS(Ke,t),t.geoviewLayerId=n.geoviewLayerId,E(n),e.next=7,n.createGeoViewLayers();case 7:if(n.metadata){e.next=9;break}throw new Error("Cannot get metadata");case 9:Ge(!0),r=n.metadata,1===(i=r.FeatureTypeList.FeatureType.map((function(e){return new Z.q({geoviewLayerConfig:t,layerId:e.Name["#text"].split(":")[1],layerName:(0,y.createLocalizedString)(e.Title["#text"])})}))).length?(ke(i[0].layerName.en),Ie([i[0]])):Se(i),e.next=19;break;case 15:return e.prev=15,e.t0=e.catch(0),rt("WFS"),e.abrupt("return",!1);case 19:return e.abrupt("return",!0);case 20:case"end":return e.stop()}}),e,null,[[0,15]])})));return function(){return e.apply(this,arguments)}}(),st=function(){var e=(0,N.A)(V().mark((function e(){var t,n,r,i;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t={geoviewLayerType:v,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(M.split("collections")[0])},n=new $.ke(Ke,t),t.geoviewLayerId=n.geoviewLayerId,E(n),e.next=7,n.createGeoViewLayers();case 7:if(r=n.metadata,n.metadata){e.next=10;break}throw new Error("Cannot get metadata");case 10:if(Ge(!0),Object.keys(r).length){e.next=14;break}return rt("OGC API Feature"),e.abrupt("return",!1);case 14:if(["collections","links"].every((function(e){return Object.keys(r).includes(e)}))){e.next=18;break}throw new Error("err");case 18:i=[],2===M.split("/collections/").length&&r.collections.forEach((function(e){M.split("/collections/")[1]===e.id&&i.push(new J.j({geoviewLayerConfig:t,layerId:e.id,layerName:(0,y.createLocalizedString)(e.title)}))})),0===i.length&&(i=r.collections.map((function(e){return new J.j({geoviewLayerConfig:t,layerId:e.id,layerName:(0,y.createLocalizedString)(e.title)})}))),1===i.length?(ke(i[0].layerName.en),Ie([i[0]])):Se(i),e.next=28;break;case 24:return e.prev=24,e.t0=e.catch(0),rt("OGC API Feature"),e.abrupt("return",!1);case 28:return e.abrupt("return",!0);case 29:case"end":return e.stop()}}),e,null,[[0,24]])})));return function(){return e.apply(this,arguments)}}(),lt=function(){var e=(0,N.A)(V().mark((function e(){var t,n;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,-1===M.indexOf("/")&&32===M.replaceAll("-","").length){e.next=4;break}throw new Error("err");case 4:return t=new le.h(Ke,Y.FHQ.maps[Ke].getDisplayLanguage()),e.next=7,t.createLayersFromUUID(M);case 7:1===(n=e.sent).length&&(1===n.length?(ke(n[0].geoviewLayerName.en),Ie(n)):Se(n)),e.next=15;break;case 11:return e.prev=11,e.t0=e.catch(0),rt("GeoCore UUID"),e.abrupt("return",!1);case 15:return e.abrupt("return",!0);case 16:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}(),ct=function(){var e=(0,N.A)(V().mark((function e(t){var n,i,o,a;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=t===r?{geoviewLayerType:t,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(M)}:{geoviewLayerType:t,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(M.substring(0,M.lastIndexOf("/")))},i=t===r?new de.zt(Ke,n):new pe.Uw(Ke,n),n.geoviewLayerId=i.geoviewLayerId,E(i),e.next=7,i.createGeoViewLayers();case 7:if(o=i.metadata){e.next=10;break}throw new Error("Cannot get metadata");case 10:if(Ge(!0),null===o||!o.capabilities.includes(tt(t).capability)){e.next=15;break}"layers"in o&&(a=[],t===r?o.layers.forEach((function(e){return a.push(new ie.q({geoviewLayerConfig:n,layerId:e.id,layerName:(0,y.createLocalizedString)(e.name)}))})):a.push(new te.h({geoviewLayerConfig:n,layerId:o.layers[0].id,layerName:(0,y.createLocalizedString)(o.layers[0].name)})),1===a.length?(ke(a[0].layerName.en),Ie([a[0]])):Se(a)),e.next=16;break;case 15:throw new Error("err");case 16:e.next=22;break;case 18:return e.prev=18,e.t0=e.catch(0),rt(tt(t).err),e.abrupt("return",!1);case 22:return e.abrupt("return",!0);case 23:case"end":return e.stop()}}),e,null,[[0,18]])})));return function(t){return e.apply(this,arguments)}}(),ut=function(){var e=(0,N.A)(V().mark((function e(){var t,n,r,i,o;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r={geoviewLayerType:h,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(M)},i=new K.$x(Ke,r),r.geoviewLayerId=i.geoviewLayerId,E(i),e.next=7,i.createGeoViewLayers();case 7:o=[new oe.Q({geoviewLayerConfig:r,layerId:r.geoviewLayerId,layerName:(0,y.createLocalizedString)("string"==typeof(null===(t=i.metadata)||void 0===t?void 0:t.name)?null===(n=i.metadata)||void 0===n?void 0:n.name:""),source:{dataAccessPath:(0,y.createLocalizedString)(M)}})],ke(o[0].layerName.en),Ie([o[0]]),e.next=16;break;case 12:return e.prev=12,e.t0=e.catch(0),rt("ESRI Image"),e.abrupt("return",!1);case 16:return e.abrupt("return",!0);case 17:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(){return e.apply(this,arguments)}}(),dt=function(){var e=(0,N.A)(V().mark((function e(){var t,n,r,i,o;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,t=["{x}","{y}","{z}"],n=0;case 3:if(!(n1?Ae.forEach((function(t){var n=Y.FHQ.maps[Ke].layer.addGeoviewLayer(t);n&&e.push(n)})):Pe.length>0&&Pe.forEach((function(t){var n=Y.FHQ.maps[Ke].layer.addGeoviewLayer(t);n&&e.push(n)})),Promise.allSettled(e.map((function(e){return e.promiseLayer}))).then((function(){ft(),e.forEach((function(e){return gt(e.layer)}))})).catch((function(e){x.vF.logPromiseFailed("Promise.allSettled in handleStepLast in AddNewLayer",e)}))}else if(C){var t=Pe[0].geoviewLayerConfig;t.listOfLayerEntryConfig=Pe,t.geoviewLayerName=(0,y.createLocalizedString)(_e),ve===b&&(Pe[0].layerName=(0,y.createLocalizedString)(_e)),1===t.listOfLayerEntryConfig.length&&(t.listOfLayerEntryConfig[0].layerName=t.geoviewLayerName);var n=Y.FHQ.maps[Ke].layer.addGeoviewLayer(t);n?n.promiseLayer.then((function(){ft(),gt(n.layer)})).catch((function(e){x.vF.logPromiseFailed("addedLayer.promiseLayer in handleStepLast in AddNewLayer",e)})):je(!1)}},yt=function(){O((function(e){return e-1})),He(!1)},vt=function(e){var t=URL.createObjectURL(e);D(e.name),L(t);var n=e.name.split(".")[0];be(""),Se([]),ke(n),Ie([])},bt=function(e,t){He(!0),Je()?0!==t.length&&(Ie(t),ke(t.map((function(e){return e.layerName.en})).join(", ")),He(!1)):(Ie([t]),ke(t.layerName.en),He(!1))},xt=function(e){He(!1),ke(e.target.value)};(0,o.useEffect)((function(){2===T&&Pe.length>0&&He(!1)}),[_e,T,Pe]);var wt=function(e){var t;if(e.preventDefault(),e.stopPropagation(),ze(!1),null!==(t=e.dataTransfer)&&void 0!==t&&t.files){var n=e.dataTransfer.files[0],r=n.name.toUpperCase();r.endsWith(".JSON")||r.endsWith(".GEOJSON")||r.endsWith(".GPKG")||r.endsWith(".CSV")?vt(n):Y.FHQ.maps[Ke].notifications.showError("layers.errorFile",[],!1)}};function At(t){var n=t.isFirst,r=void 0!==n&&n,i=t.isLast,o=void 0!==i&&i,a=t.handleNext;return Re?(0,u.jsx)(s.Box,{sx:{padding:10},children:(0,u.jsx)(s.CircularProgressBase,{})}):(0,u.jsxs)(s.ButtonGroup,{sx:et.buttonGroup,children:[(0,u.jsx)(s.Button,{variant:"contained",className:"buttonOutlineFilled",size:"small",type:"text",disabled:qe,onClick:a,children:e(o?"layers.finish":"layers.continue")}),!r&&(0,u.jsx)(s.Button,{variant:"contained",className:"buttonOutlineFilled",size:"small",type:"text",onClick:yt,children:e("layers.back")})]})}var St=(0,u.jsx)(s.CheckBoxOutlineBlankIcon,{fontSize:t.palette.geoViewFontSize.sm}),Ct=(0,u.jsx)(s.CheckBoxIcon,{fontSize:t.palette.geoViewFontSize.sm});return(0,u.jsx)(s.Paper,{sx:{padding:"20px",gap:"8"},children:(0,u.jsx)(s.Stepper,{activeStep:T,orientation:"vertical",steps:[{stepLabel:{children:e("layers.stepOne")},stepContent:{children:(0,u.jsxs)(s.Box,{className:"dropzone",style:{position:"relative"},onDrop:function(e){return wt(e)},onDragOver:function(e){return(t=e).preventDefault(),void t.stopPropagation();var t},onDragEnter:function(e){return(t=e).preventDefault(),t.stopPropagation(),void(t.target!==Ye.current&&ze(!0));var t},onDragLeave:function(e){return(t=e).preventDefault(),t.stopPropagation(),void(t.target===Ye.current&&ze(!1));var t},children:[Ne&&(0,u.jsx)(s.Box,{ref:Ye,style:{backgroundColor:"rgba(128,128,128,.95)",position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:9999,textAlign:"center",color:"black",fontSize:24},children:(0,u.jsxs)("h3",{children:[(0,u.jsx)("br",{}),(0,u.jsx)("br",{}),e("layers.dropzone")]})}),(0,u.jsx)(s.Box,{children:(0,u.jsx)("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:function(e){e.target.files&&vt(e.target.files[0])},accept:".gpkg, .json, .geojson, .csv"})}),(0,u.jsxs)(s.Button,{fullWidth:!0,variant:"outlined",size:"small",sx:{width:"100%"},type:"text",onClick:function(){var e;return null===(e=document.getElementById("fileUpload"))||void 0===e?void 0:e.click()},className:"buttonOutlineFilled",children:[(0,u.jsx)(s.FileUploadIcon,{}),(0,u.jsx)(s.Box,{component:"span",children:e("layers.upload")})]}),(0,u.jsx)("p",{style:{textAlign:"center"},children:(0,u.jsx)("small",{children:e("layers.drop")})}),(0,u.jsx)("p",{style:{textAlign:"center"},children:e("layers.or")}),(0,u.jsx)(s.TextField,{sx:{width:"100%"},label:e("layers.url"),variant:"standard",value:F,onChange:function(e){D(e.target.value.trim()),L(e.target.value.trim()),be(""),Se([]),ke(""),Ie([]),He(!(e.target.value.trim().startsWith("https://")||35!==e.target.value.trim().length))},multiline:!0}),(0,u.jsx)("br",{}),(0,u.jsx)(At,{isFirst:!0,handleNext:function(){var e,t,i=!0;""===M.trim()&&(i=!1,je(!1),Y.FHQ.maps[Ke].notifications.showError("layers.errorNone",[],!1)),i&&(e=F.toUpperCase().split("/"),t=parseInt(e[e.length-1],10),F.toUpperCase().endsWith("MAPSERVER")||F.toUpperCase().endsWith("MAPSERVER/")?be(r):-1!==F.toUpperCase().indexOf("FEATURESERVER")||-1!==F.toUpperCase().indexOf("MAPSERVER")&&!Number.isNaN(t)?be(d):-1!==F.toUpperCase().indexOf("IMAGESERVER")?be(h):-1!==e.indexOf("WFS")?be(m):F.toUpperCase().endsWith(".JSON")||F.toUpperCase().endsWith(".GEOJSON")?be(p):F.toUpperCase().endsWith(".GPKG")?be(f):-1!==F.toUpperCase().indexOf("{Z}/{X}/{Y}")||-1!==F.toUpperCase().indexOf("{Z}/{Y}/{X}")?be(b):-1===F.indexOf("/")&&32===F.replaceAll("-","").length?be(w):-1!==F.toUpperCase().indexOf("WMS")?be(g):F.toUpperCase().endsWith(".CSV")?be(n):(be(""),He(!0)),O(1))}})]})}},{stepLabel:{children:e("layers.stepTwo")},stepContent:{children:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.Select,{fullWidth:!0,labelId:"service-type-label",value:ve,onChange:function(e){be(e.target.value),Se([]),Ie([]),He(!1)},label:e("layers.service"),variant:"standard",inputLabel:{id:"service-type-label"},menuItems:Qe.map((function(e){var t=(0,i.A)(e,2),n=t[0];return{key:n,item:{value:n,children:t[1]}}}))}),(0,u.jsx)(At,{handleNext:function(){var t;je(!0),void 0===ve?(je(!1),nt(e("layers.service"))):ve===g?t=ot():ve===m?t=at():ve===v?t=st():ve===b?t=dt():ve===r?t=ct(r):ve===d?t=ct(d):ve===h?t=ut():ve===p?t=pt():ve===f?t=Promise.resolve(function(){try{Ge(!1);var e={geoviewLayerType:f,listOfLayerEntryConfig:[]},t=new se.OH(Ke,e);e.geoviewLayerId=t.geoviewLayerId,E(t);var n=[new ne.X({geoviewLayerConfig:e,layerId:e.geoviewLayerId,layerName:(0,y.createLocalizedString)(""),source:{dataAccessPath:(0,y.createLocalizedString)(M)}})];ke(n[0].layerName.en),Ie([n[0]])}catch(e){return rt("GeoPackage"),!1}return!0}()):ve===w?t=lt():ve===n&&(t=ht()),t&&t.then((function(e){e&&(je(!1),O(2),He(!0))})).catch((function(e){x.vF.logPromiseFailed("promise of layer validation in handleStep2 in AddNewLayer",e)}))}})]})}},{stepLabel:{children:e("layers.stepThree")},stepContent:{children:(0,u.jsxs)(u.Fragment,{children:[0===Ae.length&&(0,u.jsx)(s.TextField,{label:e("layers.name"),variant:"standard",value:_e,onChange:xt}),Ae.length>1&&Ae[0].layerName&&(0,u.jsx)(s.Autocomplete,{fullWidth:!0,multiple:Je(),disableClearable:!Je(),disableCloseOnSelect:!0,id:"service-layer-label",options:Ae,getOptionLabel:function(e){return"".concat(e.layerName.en," (").concat(e.layerId,")")},renderOption:function(e,t,n){var r=n.selected;return(0,u.jsxs)("li",ye(ye({},e),{},{children:[(0,u.jsx)(s.Checkbox,{icon:St,checkedIcon:Ct,style:{marginRight:8},checked:r}),t.layerName.en]}))},onChange:bt,renderInput:function(t){return(0,u.jsx)(s.TextField,ye(ye({},t),{},{label:e("layers.layerSelect")}))}}),Ae.length>1&&Ae[0].geoviewLayerName&&(0,u.jsx)(s.Autocomplete,{fullWidth:!0,multiple:Je(),disableClearable:!Je(),id:"service-layer-label",options:Ae,getOptionLabel:function(e){return"".concat(e.geoviewLayerName.en," (").concat(e.geoviewLayerId,")")},disableCloseOnSelect:!0,renderOption:function(e,t,n){var r=n.selected;return(0,u.jsxs)("li",ye(ye({},e),{},{children:[(0,u.jsx)(s.Checkbox,{icon:St,checkedIcon:Ct,style:{marginRight:8},checked:r}),t.geoviewLayerName.en]}))},onChange:bt,renderInput:function(t){return(0,u.jsx)(s.TextField,ye(ye({},t),{},{label:e("layers.layerSelect")}))}}),(0,u.jsx)("br",{}),(0,u.jsx)(At,{isLast:!Je(),handleNext:Je()?function(){var t=!0;0===Pe.length&&(t=!1,nt(e("layers.layer"))),t&&O(3)}:mt})]})}},Je()?{stepLabel:{children:e("layers.stepFour")},stepContent:{children:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.TextField,{sx:{width:"100%"},label:e("layers.name"),variant:"standard",value:_e,onChange:xt}),(0,u.jsx)("br",{}),(0,u.jsx)(At,{isLast:!0,handleNext:mt})]})}}:null]})})}function be(e){var t=e.setIsLayersListPanelVisible,n=e.isLayoutEnlarged;x.vF.logTraceRender("components/layers/left-panel/left-panel");var r=(0,l.Yo)(),a=(0,l.y5)(),s=(0,S._I)(),c=(0,S.U6)().getIndexFromOrderedLayerInfo,d=(0,l.$T)().setDisplayState,h=(0,o.useState)([]),p=(0,i.A)(h,2),f=p[0],g=p[1];return(0,o.useEffect)((function(){var e=r.sort((function(e,t){return c(e.layerPath)>c(t.layerPath)?1:-1}));g(e)}),[s,r,c]),(0,o.useEffect)((function(){"add"===a||r.length||d("add")}),[a,r,d]),"add"===a?(0,u.jsx)(ve,{}):(0,u.jsx)(D,{layersList:f,depth:0,setIsLayersListPanelVisible:t,isLayoutEnlarged:n})}var xe=n(27892),we=n(67207);function Ae(e){var t=e.containerType,n=(0,a.A)();x.vF.logTraceRender("components/layers/layers-panel");var c,h=(0,l.wU)(),p=(0,l.y5)(),f=(0,l.$T)().setSelectedLayerPath,g=(0,o.useState)(!1),m=(0,i.A)(g,2),y=m[0],v=m[1],b=(0,o.useRef)(null),w=function(){var e;null===(e=b.current)||void 0===e||e.setIsRightPanelVisible(!0)},S=(0,o.useCallback)((function(e){e&&f("")}),[f]),C=(0,o.useCallback)((function(e){v(e)}),[v]);return(0,u.jsx)(xe.z,{ref:b,leftTop:(0,u.jsx)(d,{}),leftMain:(0,u.jsx)(s.Box,{children:(0,u.jsx)(be,{setIsLayersListPanelVisible:w,isLayoutEnlarged:y})}),rightTop:(0,u.jsx)(we.o,{sx:(0,r.A)({fontSize:n.palette.geoViewFontSize.lg,fontWeight:"600",marginTop:"12px"},n.breakpoints.up("md"),{display:"none"}),component:"div",children:null!==(c=null==h?void 0:h.layerName)&&void 0!==c?c:""}),rightMain:h&&"view"===p?(0,u.jsx)(A,{layerDetails:h}):null,guideContentIds:"view"===p?["layers.children.view","layers.children.layerSettings"]:"remove"===p?["layers.children.remove"]:"order"===p?["layers.children.sort"]:"add"===p?["layers.children.add"]:[],fullWidth:!1,onGuideIsOpen:S,hideEnlargeBtn:"view"!==p,containerType:t,onIsEnlargeClicked:C})}},14476:(e,t,n)=>{"use strict";n.d(t,{s:()=>b});var r=n(64426),i=n(47361),o=n(94145),a=n(30538),s=n(43331),l=n(82942),c=n(46910),u=n(60854),d=function(e){return{container:{padding:"20px",display:"flex",flexDirection:"column"},title:{textAlign:"left",fontWeight:"600",color:e.palette.geoViewColor.textColor.main,fontSize:e.palette.geoViewFontSize.md},subtitle:{fontWeight:"normal",fontSize:e.palette.geoViewFontSize.md,textAlign:"left",marginBottom:"15px"},layersListContainer:(0,r.A)((0,r.A)((0,r.A)({padding:"20px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},e.breakpoints.down("sm"),{width:"100%"}),e.breakpoints.up("md"),{width:"50%"}),e.breakpoints.up("lg"),{width:"33.33%"}),legendLayerListItem:{padding:"6px 4px","& .layerTitle":{fontSize:e.palette.geoViewFontSize.md,fontWeight:"600",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",">p":{margin:0,color:e.palette.geoViewColor.textColor.light[400],fontSize:e.palette.geoViewFontSize.sm,lineHeight:1.43}},"& .layerTitle > .MuiListItemText-secondary":{color:e.palette.geoViewColor.textColor.light[400]},"& .layerTitle > div":{color:e.palette.geoViewColor.textColor.light[400]},"& .MuiListItemText-root":{marginLeft:"12px"},"& .MuiCollapse-vertical":{marginLeft:"6px","& ul":{marginTop:0,padding:0},"& li":{borderLeft:"5px solid ".concat(e.palette.geoViewColor.bgColor.dark[200]),paddingLeft:"6px",marginBottom:"3px",fontWeight:"400","&.unchecked":{borderLeft:"5px solid ".concat(e.palette.geoViewColor.bgColor.dark[600]),fontStyle:"italic",color:e.palette.geoViewColor.textColor.light[600]}}}},collapsibleContainer:{width:"100%",padding:"10px 0",margin:"0px 10px"},legendInstructionsTitle:{fontSize:e.palette.geoViewFontSize.lg,fontWeight:"600",lineHeight:"1.5em"},legendInstructionsBody:{fontSize:e.palette.geoViewFontSize.default},subList:{width:"100%","& .MuiListItemIcon-root":{minWidth:"1rem"},"& img":{maxWidth:"1.5rem"}},layerStackIcons:{"& button":{padding:"0.25rem","& svg":{width:"1.25rem",height:"1.25rem"}}}}},h=n(91140),p=n(46182),f=n(97282);function g(e){var t,n,r,m;u.vF.logTraceRender("components/legend/legend-layer");var y,v,b,x,w=e.layer,A=(0,s.useTranslation)().t,S=(0,o.A)(),C=d(S),E=(0,a.useState)(!0),_=(0,i.A)(E,2),k=_[0],T=_[1],O=(0,h.Zt)(),P=(0,c.U6)(),I=P.getVisibilityFromOrderedLayerInfo,M=P.setOrToggleLayerVisibility,L=(0,h.$T)(),R=L.setHighlightLayer,j=L.zoomToLayerExtent,F=function(){var e;return null===(e=w.children)||void 0===e?void 0:e.filter((function(e){var t;return["processed","loaded"].includes(null!==(t=e.layerStatus)&&void 0!==t?t:"")}))},D=!I(w.layerPath),N=null!==(t=null===(n=w.controls)||void 0===n?void 0:n.visibility)&&void 0!==t&&t;return(0,f.jsxs)(l.Box,{sx:C.legendLayerListItem,children:[(0,f.jsxs)(l.ListItem,{divider:!0,onClick:function(){T(!k)},children:[(0,f.jsx)(p.B,{layer:w}),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(l.Tooltip,{title:w.layerName,placement:"top",children:(0,f.jsx)(l.ListItemText,{sx:{"&:hover":{cursor:"pointer"}},primary:w.layerName,className:"layerTitle",disableTypography:!0,secondary:function(){if(F().length)return(0,f.jsx)(l.Typography,{component:"p",children:A("legend.subLayersCount").replace("{count}",F().length.toString())});if(w.items.length){var e="";return w.items.length>1&&(e=A("legend.itemsCount").replace("{count}",w.items.length.toString()).replace("{totalCount}",w.items.length.toString())),(0,f.jsxs)(l.Stack,{direction:"row",alignItems:"center",sx:C.layerStackIcons,children:[(0,f.jsx)(l.Typography,{component:"span",fontSize:14,children:e}),(0,f.jsx)(l.IconButton,{edge:"end",tooltip:"layers.toggleVisibility",className:"buttonOutline",onClick:function(e){return function(e){e.stopPropagation(),M(w.layerPath)}(e)},disabled:!N,children:D?(0,f.jsx)(l.VisibilityOffOutlinedIcon,{}):(0,f.jsx)(l.VisibilityOutlinedIcon,{})}),(0,f.jsx)(l.IconButton,{tooltip:"legend.highlightLayer",sx:{marginTop:"-0.3125rem"},className:"buttonOutline",onClick:function(e){return function(e){e.stopPropagation(),R(w.layerPath)}(e)},children:O===w.layerPath?(0,f.jsx)(l.HighlightIcon,{}):(0,f.jsx)(l.HighlightOutlinedIcon,{})}),(0,f.jsx)(l.IconButton,{tooltip:"legend.zoomTo",className:"buttonOutline",onClick:function(e){return function(e){e.stopPropagation(),j(w.layerPath).catch((function(e){u.vF.logPromiseFailed("in zoomToLayerExtent in legend-layer.handleZoomTo",e)}))}(e)},children:(0,f.jsx)(l.ZoomInSearchIcon,{})})]})}return(0,f.jsx)(l.Box,{})}()})}),!!((null===(r=w.children)||void 0===r?void 0:r.length)>1||(null===(m=w.items)||void 0===m?void 0:m.length)>1)&&(0,f.jsx)(l.IconButton,{sx:{marginBottom:"20px"},className:"buttonOutline",edge:"end",size:"small",tooltip:"layers.toggleCollapse",children:k?(0,f.jsx)(l.KeyboardArrowUpIcon,{}):(0,f.jsx)(l.KeyboardArrowDownIcon,{})})]})]},w.layerName),"ogcWms"===w.type&&w.icons.length&&w.icons[0].iconImage&&"no data"!==w.icons[0].iconImage?(0,f.jsx)(l.Collapse,{in:k,sx:C.collapsibleContainer,timeout:"auto",children:(0,f.jsx)(l.Box,{component:"img",alt:"icon",src:w.icons[0].iconImage,sx:{maxWidth:"100%"}})}):(null===(y=w.children)||void 0===y?void 0:y.length)>1||(null===(v=w.items)||void 0===v?void 0:v.length)>1?(0,f.jsxs)(l.Collapse,{in:k,sx:C.collapsibleContainer,timeout:"auto",children:[null!==(x=w.children)&&void 0!==x&&x.length?(0,f.jsx)(l.List,{sx:{width:"100%",padding:"20px",margin:"20px 0px"},children:w.children.filter((function(e){var t;return!["error","processing"].includes(null!==(t=e.layerStatus)&&void 0!==t?t:"")})).map((function(e){return(0,f.jsx)(g,{layer:e},e.layerPath)}))}):null,null!==(b=w.items)&&void 0!==b&&b.length?(0,f.jsx)(l.List,{sx:C.subList,children:w.items.map((function(e){return(0,f.jsxs)(l.ListItem,{className:e.isVisible?"":"unchecked",children:[(0,f.jsx)(l.ListItemIcon,{children:e.icon?(0,f.jsx)(l.Box,{component:"img",alt:e.name,src:e.icon}):(0,f.jsx)(l.BrowserNotSupportedIcon,{})}),(0,f.jsx)(l.Tooltip,{title:e.name,placement:"top",enterDelay:1e3,children:(0,f.jsx)(l.ListItemText,{primary:e.name})})]},"".concat(e.icon,"/").concat(e.name))}))}):null]}):null]})}var m=n(78383);function y(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 v(e){for(var t=1;t{"use strict";n.d(t,{h:()=>qt});var r=n(47361),i=n(30538),o=n(43331);const a="carousel",s="controller",l="portal",c="toolbar",u="download",d="loading",h="error",p="complete",f="placeholder",g=e=>`active-slide-${e}`,m=(g(d),g("playing"),g(h),g(p),"flex_center"),y="no_scroll_padding",v="slide_wrapper",b="prev",x="next",w="swipe",A="close",S="onPointerDown",C="onPointerMove",E="onPointerUp",_="onPointerLeave",k="onPointerCancel",T="onKeyDown",O="onKeyUp",P="onWheel",I="Escape",M="ArrowLeft",L="ArrowRight",R="icon",j="contain",F="cover",D="Unknown action type";var N=n(95491);const z="yarl__";function V(...e){return[...e].filter(Boolean).join(" ")}function B(e){return`${z}${e}`}function $(e){return`--${z}${e}`}function G(e,t){return`${e}${t?`_${t}`:""}`}function U(e){return t=>G(e,t)}function W(e,t){var n;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:t}function q(...e){return()=>{e.forEach((e=>{e()}))}}function H(e,t,n){return()=>{const r=i.useContext(n);if(!r)throw new Error(`${e} must be used within a ${t}.Provider`);return r}}function Y(){return"undefined"!=typeof window}function K(e){return void 0===e.type||"image"===e.type}function X(e){return"string"==typeof e?Number.parseInt(e,10):e}function Z(e){if("number"==typeof e)return{pixel:e};if("string"==typeof e){const t=X(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function J(e,t){const n=Z(t),r=void 0!==n.percent?e.width/100*n.percent:n.pixel;return{width:Math.max(e.width-2*r,0),height:Math.max(e.height-2*r,0)}}function Q(e,t){return t>0?(e%t+t)%t:0}function ee(e){return e.length>0}function te(e,t){return e[Q(t,e.length)]}function ne(e,t){return ee(e)?te(e,t):void 0}function re(e){return K(e)?e.src:void 0}function ie(e,t,n){if(!n)return e;const{buttons:r,...o}=e,a=r.findIndex((e=>e===t)),s=i.isValidElement(n)?i.cloneElement(n,{key:t},null):n;if(a>=0){const e=[...r];return e.splice(a,1,s),{buttons:e,...o}}return{buttons:[s,...r],...o}}const oe={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[A]},labels:{},animation:{fade:250,swipe:500,easing:{fade:"ease",swipe:"ease-out",navigation:"ease-in-out"}},carousel:{finite:!1,preload:2,padding:"16px",spacing:"30%",imageFit:j,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullUp:!1,closeOnPullDown:!1,closeOnBackdropClick:!1,preventDefaultWheelX:!0,preventDefaultWheelY:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function ae(e,t){return{name:e,component:t}}function se(e,t){return{module:e,children:t}}function le(e,t,n){return e.module.name===t?n(e):e.children?[se(e.module,e.children.flatMap((e=>{var r;return null!==(r=le(e,t,n))&&void 0!==r?r:[]})))]:[e]}function ce(e,t,n){return e.flatMap((e=>{var r;return null!==(r=le(e,t,n))&&void 0!==r?r:[]}))}const ue=i.createContext(null),de=H("useEvents","EventsContext",ue);function he({children:e}){const[t]=i.useState({});i.useEffect((()=>()=>{Object.keys(t).forEach((e=>delete t[e]))}),[t]);const n=i.useMemo((()=>{const e=(e,n)=>{var r;null===(r=t[e])||void 0===r||r.splice(0,t[e].length,...t[e].filter((e=>e!==n)))};return{publish:(...[e,n])=>{var r;null===(r=t[e])||void 0===r||r.forEach((e=>e(n)))},subscribe:(n,r)=>(t[n]||(t[n]=[]),t[n].push(r),()=>e(n,r)),unsubscribe:e}}),[t]);return i.createElement(ue.Provider,{value:n},e)}const pe=i.createContext(null),fe=H("useLightboxProps","LightboxPropsContext",pe);function ge({children:e,...t}){return i.createElement(pe.Provider,{value:t},e)}const me=i.createContext(null),ye=H("useLightboxState","LightboxStateContext",me),ve=i.createContext(null),be=H("useLightboxDispatch","LightboxDispatchContext",ve);function xe(e,t){switch(t.type){case"swipe":{const{slides:n}=e,r=(null==t?void 0:t.increment)||0,i=e.globalIndex+r,o=Q(i,n.length);return{slides:n,currentIndex:o,globalIndex:i,currentSlide:ne(n,o),animation:r||t.duration?{increment:r,duration:t.duration,easing:t.easing}:void 0}}case"update":return t.slides!==e.slides||t.index!==e.currentIndex?{slides:t.slides,currentIndex:t.index,globalIndex:t.index,currentSlide:ne(t.slides,t.index)}:e;default:throw new Error(D)}}function we({slides:e,index:t,children:n}){const[r,o]=i.useReducer(xe,{slides:e,currentIndex:t,globalIndex:t,currentSlide:ne(e,t)});i.useEffect((()=>{o({type:"update",slides:e,index:t})}),[e,t]);const a=i.useMemo((()=>({...r,state:r,dispatch:o})),[r,o]);return i.createElement(ve.Provider,{value:o},i.createElement(me.Provider,{value:a},n))}const Ae=i.createContext(null),Se=H("useTimeouts","TimeoutsContext",Ae);function Ce({children:e}){const[t]=i.useState([]);i.useEffect((()=>()=>{t.forEach((e=>window.clearTimeout(e))),t.splice(0,t.length)}),[t]);const n=i.useMemo((()=>{const e=e=>{t.splice(0,t.length,...t.filter((t=>t!==e)))};return{setTimeout:(n,r)=>{const i=window.setTimeout((()=>{e(i),n()}),r);return t.push(i),i},clearTimeout:t=>{void 0!==t&&(e(t),window.clearTimeout(t))}}}),[t]);return i.createElement(Ae.Provider,{value:n},e)}const Ee=i.forwardRef((function({label:e,className:t,icon:n,renderIcon:r,onClick:o,style:a,...s},l){const{styles:c,labels:u}=fe();return i.createElement("button",{ref:l,type:"button","aria-label":W(u,e),className:V(B("button"),t),onClick:o,style:{...a,...c.button},...s},r?r():i.createElement(n,{className:B(R),style:c.icon}))}));function _e(e,t){const n=e=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...e},t);return n.displayName=e,n}function ke(e,t){return _e(e,i.createElement("g",{fill:"currentColor"},i.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}const Te=ke("Close",i.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Oe=ke("Previous",i.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Pe=ke("Next",i.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),Ie=ke("Loading",i.createElement(i.Fragment,null,Array.from({length:8}).map(((e,t,n)=>i.createElement("line",{key:t,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/n.length*(t+1),transform:`rotate(${360/n.length*t}, 12, 12)`}))))),Me=ke("Error",i.createElement("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"})),Le=Y()?i.useLayoutEffect:i.useEffect;function Re(){const[e,t]=i.useState(!1);return i.useEffect((()=>{var e,n;const r=null===(e=window.matchMedia)||void 0===e?void 0:e.call(window,"(prefers-reduced-motion: reduce)");t(null==r?void 0:r.matches);const i=e=>t(e.matches);return null===(n=null==r?void 0:r.addEventListener)||void 0===n||n.call(r,"change",i),()=>{var e;return null===(e=null==r?void 0:r.removeEventListener)||void 0===e?void 0:e.call(r,"change",i)}}),[]),e}function je(e,t){const n=i.useRef(),r=i.useRef(),o=Re();return Le((()=>{var i,a,s;if(e.current&&void 0!==n.current&&!o){const{keyframes:o,duration:l,easing:c,onfinish:u}=t(n.current,e.current.getBoundingClientRect(),function(e){let t=0,n=0,r=0;const i=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(i){const e=i[1].split(",").map(X);6===e.length?(t=e[4],n=e[5]):16===e.length&&(t=e[12],n=e[13],r=e[14])}return{x:t,y:n,z:r}}(e.current))||{};if(o&&l){null===(i=r.current)||void 0===i||i.cancel(),r.current=void 0;try{r.current=null===(s=(a=e.current).animate)||void 0===s?void 0:s.call(a,o,{duration:l,easing:c})}catch(e){console.error(e)}r.current&&(r.current.onfinish=()=>{r.current=void 0,null==u||u()})}}n.current=void 0})),{prepareAnimation:e=>{n.current=e},isAnimationPlaying:()=>{var e;return"running"===(null===(e=r.current)||void 0===e?void 0:e.playState)}}}function Fe(){const e=i.useRef(null),t=i.useRef(),[n,r]=i.useState(),o=i.useCallback((n=>{e.current=n,t.current&&(t.current.disconnect(),t.current=void 0);const i=()=>{if(n){const e=window.getComputedStyle(n),t=e=>parseFloat(e)||0;r({width:Math.round(n.clientWidth-t(e.paddingLeft)-t(e.paddingRight)),height:Math.round(n.clientHeight-t(e.paddingTop)-t(e.paddingBottom))})}else r(void 0)};i(),n&&"undefined"!=typeof ResizeObserver&&(t.current=new ResizeObserver(i),t.current.observe(n))}),[]);return{setContainerRef:o,containerRef:e,containerRect:n}}function De(){const e=i.useRef(),{setTimeout:t,clearTimeout:n}=Se();return i.useCallback(((r,i)=>{n(e.current),e.current=t(r,i>0?i:0)}),[t,n])}function Ne(e){const t=i.useRef(e);return Le((()=>{t.current=e})),i.useCallback(((...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function ze(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Ve(e,t){return i.useMemo((()=>null==e&&null==t?null:n=>{ze(e,n),ze(t,n)}),[e,t])}function Be(e,t=!1){const n=i.useRef();Le((()=>{t&&n.current&&(n.current=!1,e())}),[t,e]);return{onFocus:i.useCallback((()=>{n.current=!0}),[]),onBlur:i.useCallback((()=>{n.current=!1}),[])}}function $e(){const[e,t]=i.useState(!1);return Le((()=>{t("rtl"===window.getComputedStyle(window.document.documentElement).direction)}),[]),e}function Ge(e,t){const n=i.useRef(0),r=De(),o=Ne(((...t)=>{n.current=Date.now(),e(t)}));return i.useCallback(((...e)=>{r((()=>{o(e)}),t-(Date.now()-n.current))}),[t,o,r])}const Ue=U("slide"),We=U("slide_image");function qe({slide:e,offset:t,render:n,rect:r,imageFit:o,imageProps:a,onClick:s,onLoad:l,style:c}){var u,m,y,v,b,x,w;const[A,S]=i.useState(d),{publish:C}=de(),{setTimeout:E}=Se(),_=i.useRef(null);i.useEffect((()=>{0===t&&C(g(A))}),[t,A,C]);const k=Ne((e=>{("decode"in e?e.decode():Promise.resolve()).catch((()=>{})).then((()=>{e.parentNode&&(S(p),E((()=>{null==l||l(e)}),0))}))})),T=i.useCallback((e=>{_.current=e,(null==e?void 0:e.complete)&&k(e)}),[k]),O=i.useCallback((e=>{k(e.currentTarget)}),[k]),P=i.useCallback((()=>{S(h)}),[]),I=function(e,t){return e.imageFit===F||e.imageFit!==j&&t===F}(e,o),M=(e,t)=>Number.isFinite(e)?e:t,L=M(Math.max(...(null!==(m=null===(u=e.srcSet)||void 0===u?void 0:u.map((e=>e.width)))&&void 0!==m?m:[]).concat(e.width?[e.width]:[]).filter(Boolean)),(null===(y=_.current)||void 0===y?void 0:y.naturalWidth)||0),D=M(Math.max(...(null!==(b=null===(v=e.srcSet)||void 0===v?void 0:v.map((e=>e.height)))&&void 0!==b?b:[]).concat(e.height?[e.height]:[]).filter(Boolean)),(null===(x=_.current)||void 0===x?void 0:x.naturalHeight)||0),N=L&&D?{maxWidth:`min(${L}px, 100%)`,maxHeight:`min(${D}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},z=null===(w=e.srcSet)||void 0===w?void 0:w.sort(((e,t)=>e.width-t.width)).map((e=>`${e.src} ${e.width}w`)).join(", "),$=z&&r&&Y()?`${Math.round(Math.min(r&&!I&&e.width&&e.height?r.height/e.height*e.width:Number.MAX_VALUE,r.width))}px`:void 0,{style:G,className:U,...W}=a||{};return i.createElement(i.Fragment,null,i.createElement("img",{ref:T,onLoad:O,onError:P,onClick:s,draggable:!1,className:V(B(We()),I&&B(We("cover")),A!==p&&B(We("loading")),U),style:{...N,...c,...G},...W,alt:e.alt,sizes:$,srcSet:z,src:e.src}),A!==p&&i.createElement("div",{className:B(Ue(f))},A===d&&((null==n?void 0:n.iconLoading)?n.iconLoading():i.createElement(Ie,{className:V(B(R),B(Ue(d)))})),A===h&&((null==n?void 0:n.iconError)?n.iconError():i.createElement(Me,{className:V(B(R),B(Ue(h)))}))))}var He,Ye;!function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL",e[e.ANIMATION=3]="ANIMATION"}(He||(He={})),function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL"}(Ye||(Ye={}));const Ke=30;function Xe(e,t,n,r,o,a,s,l,c,u,d,h,p,f){const g=i.useRef(0),m=i.useRef([]),y=i.useRef(),v=i.useRef(0),b=i.useRef(Ye.NONE),x=i.useCallback((e=>{y.current===e.pointerId&&(y.current=void 0,b.current=Ye.NONE);const t=m.current;t.splice(0,t.length,...t.filter((t=>t.pointerId!==e.pointerId)))}),[]),w=i.useCallback((e=>{x(e),e.persist(),m.current.push(e)}),[x]),A=Ne((e=>{w(e)})),T=(e,t)=>u&&e>t||c&&e<-t,O=Ne((e=>{if(m.current.find((t=>t.pointerId===e.pointerId))&&y.current===e.pointerId){const e=Date.now()-v.current,t=g.current;b.current===Ye.SWIPE?Math.abs(t)>.3*n||Math.abs(t)>5&&eo?()=>{}:q(e(S,t),e(C,n),e(E,r),e(_,r),e(k,r))),[e,t,n,r,o])}(e,A,Ne((e=>{const n=m.current.find((t=>t.pointerId===e.pointerId));if(n){const r=y.current===e.pointerId;if(0===e.buttons)return void(r&&0!==g.current?O(e):x(n));const i=e.clientX-n.clientX,s=e.clientY-n.clientY;if(void 0===y.current){const n=t=>{w(e),y.current=e.pointerId,v.current=Date.now(),b.current=t};Math.abs(i)>Math.abs(s)&&Math.abs(i)>Ke&&t(i)?(n(Ye.SWIPE),o()):Math.abs(s)>Math.abs(i)&&T(s,Ke)&&(n(Ye.PULL),d())}else r&&(b.current===Ye.SWIPE?(g.current=i,a(i)):b.current===Ye.PULL&&(g.current=s,h(s)))}})),O)}const Ze=U("container"),Je=i.createContext(null),Qe=H("useController","ControllerContext",Je);const et=ae(s,(function({children:e,...t}){var n;const{carousel:r,animation:o,controller:a,on:s,styles:c,render:u}=t,{closeOnPullUp:d,closeOnPullDown:h,preventDefaultWheelX:p,preventDefaultWheelY:f}=a,[g,y]=i.useState(),v=ye(),I=be(),[M,L]=i.useState(He.NONE),R=i.useRef(0),j=i.useRef(0),F=i.useRef(1),{registerSensors:D,subscribeSensors:N}=function(){const[e]=i.useState({}),t=i.useCallback(((t,n)=>{var r;null===(r=e[t])||void 0===r||r.forEach((e=>{n.isPropagationStopped()||e(n)}))}),[e]);return{registerSensors:i.useMemo((()=>({onPointerDown:e=>t(S,e),onPointerMove:e=>t(C,e),onPointerUp:e=>t(E,e),onPointerLeave:e=>t(_,e),onPointerCancel:e=>t(k,e),onKeyDown:e=>t(T,e),onKeyUp:e=>t(O,e),onWheel:e=>t(P,e)})),[t]),subscribeSensors:i.useCallback(((t,n)=>(e[t]||(e[t]=[]),e[t].unshift(n),()=>{const r=e[t];r&&r.splice(0,r.length,...r.filter((e=>e!==n)))})),[e])}}(),{subscribe:z,publish:G}=de(),U=De(),W=De(),H=De(),{containerRef:Y,setContainerRef:K,containerRect:X}=Fe(),Q=Ve(function({preventDefaultWheelX:e,preventDefaultWheelY:t}){const n=i.useRef(null),r=Ne((n=>{const r=Math.abs(n.deltaX)>Math.abs(n.deltaY);(r&&e||!r&&t||n.ctrlKey)&&n.preventDefault()}));return i.useCallback((e=>{var t;e?e.addEventListener("wheel",r,{passive:!1}):null===(t=n.current)||void 0===t||t.removeEventListener("wheel",r),n.current=e}),[r])}({preventDefaultWheelX:p,preventDefaultWheelY:f}),K),ee=i.useRef(null),te=Ve(ee,void 0),ne=$e(),re=e=>(ne?-1:1)*("number"==typeof e?e:1),ie=Ne((()=>{var e;return null===(e=Y.current)||void 0===e?void 0:e.focus()})),oe=Ne((()=>t)),ae=Ne((()=>v)),se=i.useCallback((e=>G(b,e)),[G]),le=i.useCallback((e=>G(x,e)),[G]),ce=i.useCallback((()=>G(A)),[G]),ue=e=>!(r.finite&&(re(e)>0&&0===v.currentIndex||re(e)<0&&v.currentIndex===v.slides.length-1)),he=e=>{var t;R.current=e,null===(t=Y.current)||void 0===t||t.style.setProperty($("swipe_offset"),`${Math.round(e)}px`)},pe=e=>{var t,n;j.current=e,F.current=(()=>{const t=h&&e>0?e:d&&e<0?-e:0;return Math.min(Math.max(function(e,t=0){const n=10**t;return Math.round((e+Number.EPSILON)*n)/n}(1-t/60*.5,2),.5),1)})(),null===(t=Y.current)||void 0===t||t.style.setProperty($("pull_offset"),`${Math.round(e)}px`),null===(n=Y.current)||void 0===n||n.style.setProperty($("pull_opacity"),`${F.current}`)},{prepareAnimation:fe}=je(ee,((e,t,n)=>{if(ee.current&&X)return{keyframes:[{transform:`translate(0, ${e.rect.y-t.y+n.y}px)`,opacity:e.opacity},{transform:"translate(0, 0)",opacity:1}],duration:e.duration,easing:o.easing.fade}})),ge=(e,t)=>{if(d||h){pe(e);let n=0;ee.current&&(n=o.fade*(t?2:1),fe({rect:ee.current.getBoundingClientRect(),opacity:F.current,duration:n})),H((()=>{pe(0),L(He.NONE)}),n),L(He.ANIMATION),t||ce()}},{prepareAnimation:me,isAnimationPlaying:ve}=je(ee,((e,t,n)=>{var i;if(ee.current&&X&&(null===(i=v.animation)||void 0===i?void 0:i.duration)){const i=Z(r.spacing),o=(i.percent?i.percent*X.width/100:i.pixel)||0;return{keyframes:[{transform:`translate(${re(v.globalIndex-e.index)*(X.width+o)+e.rect.x-t.x+n.x}px, 0)`},{transform:"translate(0, 0)"}],duration:v.animation.duration,easing:v.animation.easing}}})),xe=Ne((e=>{var t,n;const r=e.offset||0,i=r?o.swipe:null!==(t=o.navigation)&&void 0!==t?t:o.swipe,a=r||ve()?o.easing.swipe:o.easing.navigation;let{direction:s}=e;const l=null!==(n=e.count)&&void 0!==n?n:1;let c=He.ANIMATION,u=i*l;if(!s){const t=null==X?void 0:X.width,n=e.duration||0,o=t?i/t*Math.abs(r):i;0!==l?(n0?b:x):u=i/2}let d=0;s===b?ue(re(1))?d=-l:(c=He.NONE,u=i):s===x&&(ue(re(-1))?d=l:(c=He.NONE,u=i)),u=Math.round(u),W((()=>{he(0),L(He.NONE)}),u),ee.current&&me({rect:ee.current.getBoundingClientRect(),index:v.globalIndex}),L(c),G(w,{type:"swipe",increment:d,duration:u,easing:a})}));i.useEffect((()=>{var e,t;(null===(e=v.animation)||void 0===e?void 0:e.increment)&&(null===(t=v.animation)||void 0===t?void 0:t.duration)&&U((()=>I({type:"swipe",increment:0})),v.animation.duration)}),[v.animation,I,U]);const we=[N,ue,(null==X?void 0:X.width)||0,o.swipe,()=>L(He.SWIPE),e=>he(e),(e,t)=>xe({offset:e,duration:t,count:1}),e=>xe({offset:e,count:0})],Ae=[()=>{h&&L(He.PULL)},e=>pe(e),e=>ge(e),e=>ge(e,!0)];Xe(...we,d,h,...Ae),function(e,t,n,r,o,a,s,l,c){const u=i.useRef(0),d=i.useRef(0),h=i.useRef(),p=i.useRef(),f=i.useRef(0),g=i.useRef(0),{setTimeout:m,clearTimeout:y}=Se(),v=i.useCallback((()=>{h.current&&(y(h.current),h.current=void 0)}),[y]),b=i.useCallback((()=>{p.current&&(y(p.current),p.current=void 0)}),[y]),x=Ne((()=>{e!==He.SWIPE&&(u.current=0,g.current=0,v(),b())}));i.useEffect(x,[e,x]);const w=Ne((e=>{p.current=void 0,u.current===e&&c(u.current)})),A=Ne((t=>{if(!(t.ctrlKey||Math.abs(t.deltaY)>Math.abs(t.deltaX)))if(e===He.NONE){if(Math.abs(t.deltaX)<=1.2*Math.abs(f.current))return void(f.current=t.deltaX);if(!n(-t.deltaX))return;if(d.current+=t.deltaX,v(),Math.abs(d.current)>30)d.current=0,f.current=0,g.current=Date.now(),a();else{const e=d.current;h.current=m((()=>{h.current=void 0,e===d.current&&(d.current=0)}),o)}}else if(e===He.SWIPE){let e=u.current-t.deltaX;if(e=Math.min(Math.abs(e),r)*Math.sign(e),u.current=e,s(e),b(),Math.abs(e)>.2*r)return f.current=t.deltaX,void l(e,Date.now()-g.current);p.current=m((()=>w(e)),2*o)}else f.current=t.deltaX}));i.useEffect((()=>t(P,A)),[t,A])}(M,...we);const Ce=Ne((()=>{a.focus&&document.querySelector(`.${B(l)} .${B(Ze())}`)&&ie()}));i.useEffect(Ce,[Ce]);const Ee=Ne((()=>{var e;null===(e=s.view)||void 0===e||e.call(s,{index:v.currentIndex})}));i.useEffect(Ee,[v.globalIndex,Ee]),i.useEffect((()=>q(z(b,(e=>xe({direction:b,...e}))),z(x,(e=>xe({direction:x,...e}))),z(w,(e=>I(e))))),[z,xe,I]);const _e=i.useMemo((()=>({prev:se,next:le,close:ce,focus:ie,slideRect:X?J(X,r.padding):{width:0,height:0},containerRect:X||{width:0,height:0},subscribeSensors:N,containerRef:Y,setCarouselRef:te,toolbarWidth:g,setToolbarWidth:y})),[se,le,ce,ie,N,X,Y,te,g,y,r.padding]);return i.useImperativeHandle(a.ref,(()=>({prev:se,next:le,close:ce,focus:ie,getLightboxProps:oe,getLightboxState:ae})),[se,le,ce,ie,oe,ae]),i.createElement("div",{ref:Q,className:V(B(Ze()),B(m)),style:{...M===He.SWIPE?{[$("swipe_offset")]:`${Math.round(R.current)}px`}:null,...M===He.PULL?{[$("pull_offset")]:`${Math.round(j.current)}px`,[$("pull_opacity")]:`${F.current}`}:null,..."none"!==a.touchAction?{[$("controller_touch_action")]:a.touchAction}:null,...c.container},...a.aria?{role:"presentation","aria-live":"polite"}:null,tabIndex:-1,...D},X&&i.createElement(Je.Provider,{value:_e},e,null===(n=u.controls)||void 0===n?void 0:n.call(u)))}));function tt(e){return G(a,e)}function nt(e){return G("slide",e)}function rt({slide:e,offset:t}){const n=i.useRef(null),{currentIndex:r}=ye(),{slideRect:o,close:a}=Qe(),{render:s,carousel:{imageFit:l,imageProps:c},on:{click:u},controller:{closeOnBackdropClick:d},styles:{slide:h}}=fe();return i.createElement("div",{ref:n,className:V(B(nt()),0===t&&B(nt("current")),B(m)),onClick:e=>{const t=n.current,r=e.target instanceof HTMLElement?e.target:void 0;d&&r&&t&&(r===t||Array.from(t.children).find((e=>e===r))&&r.classList.contains(B(v)))&&a()},style:h},(()=>{var n,a,d,h;let p=null===(n=s.slide)||void 0===n?void 0:n.call(s,{slide:e,offset:t,rect:o});return!p&&K(e)&&(p=i.createElement(qe,{slide:e,offset:t,render:s,rect:o,imageFit:l,imageProps:c,onClick:0===t?()=>null==u?void 0:u({index:r}):void 0})),p?i.createElement(i.Fragment,null,null===(a=s.slideHeader)||void 0===a?void 0:a.call(s,{slide:e}),(null!==(d=s.slideContainer)&&void 0!==d?d:({children:e})=>e)({slide:e,children:p}),null===(h=s.slideFooter)||void 0===h?void 0:h.call(s,{slide:e})):null})())}function it(){const e=fe().styles.slide;return i.createElement("div",{className:B("slide"),style:e})}const ot=ae(a,(function({carousel:e}){const{slides:t,currentIndex:n,globalIndex:r}=ye(),{setCarouselRef:o}=Qe(),a=Z(e.spacing),s=Z(e.padding),l=function(e,t,n=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),n))}(e,t,1),c=[];if(ee(t))for(let i=n-l;i<=n+l;i+=1){const o=te(t,i),a=r-n+i,s=e.finite&&(i<0||i>t.length-1);c.push(s?{key:a}:{key:[`${a}`,re(o)].filter(Boolean).join("|"),offset:i-n,slide:o})}return i.createElement("div",{ref:o,className:V(B(tt()),c.length>0&&B(tt("with_slides"))),style:{[`${$(tt("slides_count"))}`]:c.length,[`${$(tt("spacing_px"))}`]:a.pixel||0,[`${$(tt("spacing_percent"))}`]:a.percent||0,[`${$(tt("padding_px"))}`]:s.pixel||0,[`${$(tt("padding_percent"))}`]:s.percent||0}},c.map((({key:e,slide:t,offset:n})=>t?i.createElement(rt,{key:e,slide:t,offset:n}):i.createElement(it,{key:e}))))}));function at(){const{carousel:e}=fe(),{slides:t,currentIndex:n}=ye();return{prevDisabled:0===t.length||e.finite&&0===n,nextDisabled:0===t.length||e.finite&&n===t.length-1}}function st({label:e,icon:t,renderIcon:n,action:r,onClick:o,disabled:a,style:s}){return i.createElement(Ee,{label:e,icon:t,renderIcon:n,className:B(`navigation_${r}`),disabled:a,onClick:o,style:s,...Be(Qe().focus,a)})}const lt=ae("navigation",(function({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:r},styles:o}){const{prev:a,next:s,subscribeSensors:l}=Qe(),{prevDisabled:c,nextDisabled:u}=at();return function(e){var t;const n=$e(),{publish:r}=de(),{animation:o}=fe(),{prevDisabled:a,nextDisabled:s}=at(),l=(null!==(t=o.navigation)&&void 0!==t?t:o.swipe)/2,c=Ge((()=>r(b)),l),u=Ge((()=>r(x)),l),d=Ne((e=>{switch(e.key){case I:r(A);break;case M:(n?s:a)||(n?u:c)();break;case L:(n?a:s)||(n?c:u)()}}));i.useEffect((()=>e(T,d)),[e,d])}(l),i.createElement(i.Fragment,null,e?e():i.createElement(st,{label:"Previous",action:b,icon:Oe,renderIcon:n,style:o.navigationPrev,disabled:c,onClick:a}),t?t():i.createElement(st,{label:"Next",action:x,icon:Pe,renderIcon:r,style:o.navigationNext,disabled:u,onClick:s}))})),ct=B("no_scroll"),ut=B(y);function dt(e){return"style"in e}function ht(e,t,n){const r=window.getComputedStyle(e),i=n?"padding-left":"padding-right",o=n?r.paddingLeft:r.paddingRight,a=e.style.getPropertyValue(i);return e.style.setProperty(i,`${(X(o)||0)+t}px`),()=>{a?e.style.setProperty(i,a):e.style.removeProperty(i)}}const pt=ae("no-scroll",(function({noScroll:{disabled:e},children:t}){const n=$e();return Le((()=>{if(e)return()=>{};const t=[],{body:r,documentElement:i}=document,o=Math.round(window.innerWidth-i.clientWidth);if(o>0){t.push(ht(r,o,n));const e=r.getElementsByTagName("*");for(let r=0;r{r.classList.remove(ct),t.forEach((e=>e()))}}),[n,e]),i.createElement(i.Fragment,null,t)}));function ft(e){return G(l,e)}function gt(e,t,n){const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}const mt=ae(l,(function({children:e,animation:t,styles:n,className:r,on:o,portal:a,close:s}){const[l,c]=i.useState(!1),[u,d]=i.useState(!1),h=i.useRef([]),p=i.useRef(null),{setTimeout:f}=Se(),{subscribe:g}=de(),m=Re()?0:t.fade;i.useEffect((()=>(c(!0),()=>{c(!1),d(!1)})),[]);const v=Ne((()=>{h.current.forEach((e=>e())),h.current=[]})),b=Ne((()=>{var e;d(!1),v(),null===(e=o.exiting)||void 0===e||e.call(o),f((()=>{var e;null===(e=o.exited)||void 0===e||e.call(o),s()}),m)}));i.useEffect((()=>g(A,b)),[g,b]);const x=Ne((e=>{var t,n,r;e.scrollTop,d(!0),null===(t=o.entering)||void 0===t||t.call(o);const i=null!==(r=null===(n=e.parentNode)||void 0===n?void 0:n.children)&&void 0!==r?r:[];for(let t=0;t{var e,t;null===(t=null===(e=p.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)})),f((()=>{var e;null===(e=o.entered)||void 0===e||e.call(o)}),m)})),w=i.useCallback((e=>{e?x(e):v()}),[x,v]);return l?(0,N.createPortal)(i.createElement("div",{ref:w,className:V(r,B("root"),B(ft()),B(y),u&&B(ft("open"))),role:"presentation","aria-live":"polite",style:{...t.fade!==oe.animation.fade?{[$("fade_animation_duration")]:`${m}ms`}:null,...t.easing.fade!==oe.animation.easing.fade?{[$("fade_animation_timing_function")]:t.easing.fade}:null,...n.root},onFocus:e=>{p.current||(p.current=e.relatedTarget)}},e),a.root||document.body):null}));const yt=ae("root",(function({children:e}){return i.createElement(i.Fragment,null,e)}));const vt=ae(c,(function({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:r}){const{close:o,setToolbarWidth:a}=Qe(),{setContainerRef:s,containerRect:l}=Fe();return Le((()=>{a(null==l?void 0:l.width)}),[a,null==l?void 0:l.width]),i.createElement("div",{ref:s,style:r.toolbar,className:B(G(c,u))},null==e?void 0:e.map((e=>e===A?t?t():i.createElement(Ee,{key:A,label:"Close",icon:Te,renderIcon:n,onClick:o}):e)));var u}));function bt(e,t){var n;return i.createElement(e.module.component,{key:e.module.name,...t},null===(n=e.children)||void 0===n?void 0:n.map((e=>bt(e,t))))}function xt(e,t={}){const{easing:n,...r}=e,{easing:i,...o}=t;return{easing:{...n,...i},...r,...o}}function wt({carousel:e,animation:t,render:n,toolbar:r,controller:o,noScroll:a,on:l,plugins:c,slides:u,index:d,...h}){const{animation:p,carousel:f,render:g,toolbar:m,controller:y,noScroll:v,on:b,slides:x,index:w,plugins:A,...S}=oe,{config:C,augmentation:E}=function(e,t=[],n=[]){let r=e;const i=e=>{const t=[...r];for(;t.length>0;){const n=t.pop();if((null==n?void 0:n.module.name)===e)return!0;(null==n?void 0:n.children)&&t.push(...n.children)}return!1},o=(e,t)=>{r=""!==e?ce(r,e,(e=>[se(t,[e])])):[se(t,r)]},a=(e,t)=>{r=ce(r,e,(e=>[se(e.module,[se(t,e.children)])]))},l=(e,t,n)=>{r=ce(r,e,(e=>{var r;return[se(e.module,[...n?[se(t)]:[],...null!==(r=e.children)&&void 0!==r?r:[],...n?[]:[se(t)]])]}))},c=(e,t,n)=>{r=ce(r,e,(e=>[...n?[se(t)]:[],e,...n?[]:[se(t)]]))},u=e=>{a(s,e)},d=(e,t)=>{r=ce(r,e,(e=>[se(t,e.children)]))},h=e=>{r=ce(r,e,(e=>e.children))},p=e=>{n.push(e)};return t.forEach((e=>{e({contains:i,addParent:o,append:a,addChild:l,addSibling:c,addModule:u,replace:d,remove:h,augment:p})})),{config:r,augmentation:e=>n.reduce(((e,t)=>t(e)),e)}}([se(mt,[se(pt,[se(et,[se(ot),se(vt),se(lt)])])])],c||A),_=E({animation:xt(p,t),carousel:{...f,...e},render:{...g,...n},toolbar:{...m,...r},controller:{...y,...o},noScroll:{...v,...a},on:{...b,...l},...S,...h});return _.open?i.createElement(ge,{..._},i.createElement(we,{slides:u||x,index:X(d||w)},i.createElement(Ce,null,i.createElement(he,null,bt(se(yt,C),_))))):null}const At={download:void 0},St=e=>({...At,...e});function Ct(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}function Et(e,t){const n=document.createElement("a");n.rel="noopener",n.download=t||"",n.download||(n.target="_blank"),"string"==typeof e?(n.href=e,n.origin!==window.location.origin?function(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}(n.href)?function(e,t){const n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=()=>{Et(n.response,t)},n.onerror=()=>{console.error("Failed to download file")},n.send()}(e,t):(n.target="_blank",Ct(n)):Ct(n)):(n.href=URL.createObjectURL(e),setTimeout((()=>URL.revokeObjectURL(n.href)),3e4),setTimeout((()=>Ct(n)),0))}const _t=ke("DownloadIcon",i.createElement("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5 5-5z"}));function kt(){const{render:e,on:t,download:n}=fe(),{download:r}=St(n),{currentSlide:o,currentIndex:a}=ye();if(e.buttonDownload)return i.createElement(i.Fragment,null,e.buttonDownload());const s=o&&(o.downloadUrl||"string"==typeof o.download&&o.download||"object"==typeof o.download&&o.download.url||K(o)&&o.src)||void 0,l=r?!1!==(null==o?void 0:o.download):Boolean(s),c=()=>{if(o&&s){const e=o.downloadFilename||"object"==typeof o.download&&o.download.filename||void 0;Et(s,e)}};return i.createElement(Ee,{label:"Download",icon:_t,renderIcon:e.iconDownload,disabled:!l,onClick:()=>{var e;o&&((r||c)({slide:o,saveAs:Et}),null===(e=t.download)||void 0===e||e.call(t,{index:a}))}})}function Tt({augment:e}){e((({toolbar:e,download:t,...n})=>({toolbar:ie(e,u,i.createElement(kt,null)),download:St(t),...n})))}var Ot=n(27612),Pt=n.n(Ot),It=n(15397),Mt=n.n(It),Lt=n(76743),Rt=n.n(Lt),jt=n(34804),Ft=n.n(jt),Dt=n(74032),Nt=n.n(Dt),zt=n(60605),Vt=n.n(zt),Bt=n(11355),$t={};$t.styleTagTransform=Vt(),$t.setAttributes=Ft(),$t.insert=Rt().bind(null,"head"),$t.domAPI=Mt(),$t.insertStyleElement=Nt();Pt()(Bt.A,$t);Bt.A&&Bt.A.locals&&Bt.A.locals;var Gt=n(82942),Ut=n(60854),Wt=n(97282);function qt(e){Ut.vF.logTraceRender("components/lightbox/lightbox");var t=e.open,n=e.slides,a=e.index,s=e.exited,l=(0,o.useTranslation)().t,c=(0,i.useState)(t),u=(0,r.A)(c,2),d=u[0],h=u[1],p=(0,i.useState)(!0),f=(0,r.A)(p,1)[0],g=(0,i.useState)(!0),m=(0,r.A)(g,1)[0],y=(0,i.useState)(250),v=(0,r.A)(y,1)[0],b=(0,i.useState)(500),x=(0,r.A)(b,1)[0];return(0,i.useEffect)((function(){Ut.vF.logTraceUseEffect("LIGHTBOX - open",t),h(t)}),[t]),(0,Wt.jsx)(wt,{styles:{root:{width:"90%",height:"90%",margin:"auto"},container:{backgroundColor:"rgba(0, 0, 0, .9)"}},open:d,close:function(){return h(!1)},slides:n,index:a,carousel:{finite:!0},controller:{closeOnPullDown:f,closeOnBackdropClick:m},animation:{fade:v,swipe:x},labels:{Next:l("lightbox.next"),Previous:l("lightbox.previous"),Close:l("lightbox.close"),Download:l("lightbox.download")},on:{entered:function(){},exited:s},render:{iconClose:function(){return(0,Wt.jsx)(Gt.Tooltip,{title:l("lightbox.close"),placement:"top",children:(0,Wt.jsx)(Gt.CloseIcon,{})})},iconNext:function(){return(0,Wt.jsx)(Gt.Tooltip,{title:l("lightbox.next"),placement:"top",children:(0,Wt.jsx)(Gt.ArrowRightIcon,{})})},iconPrev:function(){return(0,Wt.jsx)(Gt.Tooltip,{title:l("lightbox.previous"),placement:"top",children:(0,Wt.jsx)(Gt.ArrowLeftIcon,{})})},iconDownload:function(){return(0,Wt.jsx)(Gt.Tooltip,{title:l("lightbox.download"),placement:"top",children:(0,Wt.jsx)(Gt.DownloadIcon,{})})}},plugins:[Tt]})}},55147:(e,t,n)=>{"use strict";n.d(t,{p:()=>d});var r=n(30538),i=n(94145),o=n(82942),a=n(87167),s=n(69495),l=n(60854),c=n(15247),u=n(97282);function d(){var e=(0,i.A)(),t=(0,a.S)(e),n=(0,c.Jh)(),d=(0,s.dY)(),h=(0,s.A6)().setMapInfoExpanded,p="layers.toggleCollapse",f=function(){h(!0)};return(0,r.useEffect)((function(){return l.vF.logTraceUseEffect("MAP-INFO-EXPAND-BUTTON - mount"),function(){var e=document.getElementById("".concat(n,"-mapInfo"));e&&e.removeEventListener("transitionend",f)}}),[]),(0,u.jsx)(o.Box,{children:(0,u.jsx)(o.IconButton,{"aria-label":p,tooltip:p,sx:t.expandButton,onClick:function(){return d?function(){var e=document.getElementById("".concat(n,"-mapInfo"));if(e){var t=e.querySelector(".ol-attribution ul");t&&(t.style.width="0px"),e.style.transition="max-height 300ms ease-out",e.style.maxHeight="25px"}h(!1)}():function(){var e=document.getElementById("".concat(n,"-mapInfo"));if(e){e.style.transition="max-height 300ms ease-in 0s",e.style.maxHeight="80px",e.style.height="80px";var t=e.querySelector(".ol-attribution ul");t&&(t.style.width="100%"),e.addEventListener("transitionend",f,{once:!0})}}()},children:d?(0,u.jsx)(o.ExpandMoreIcon,{}):(0,u.jsx)(o.ExpandLessIcon,{})})})}},98625:(e,t,n)=>{"use strict";n.d(t,{F:()=>f});var r=n(64426),i=n(30538),o=n(43331),a=n(94145),s=n(6467),l=n(82942),c=n(12311),u=n(69495),d=n(28187),h=n(60854),p=n(97282);function f(){var e=(0,o.useTranslation)().t,t=(0,a.A)(),n=(0,s.A)(t.breakpoints.down("md")),f=(0,u.dY)(),g=(0,d.Mk)(),m=(0,d.C0)(),y=(0,d.HA)(),v=(0,d.U6)(),b=v.setFixNorth,x=v.setRotation;return(0,i.useEffect)((function(){h.vF.logTraceUseEffect("MAP-INFO-FIXNORTH-SWITCH - deviceSizeMedUp",n),n&&b(!1)}),[n,b]),(0,p.jsx)(l.Box,{sx:(0,r.A)({},t.breakpoints.down("md"),{display:"none"}),children:f&&"EPSG:".concat(y)===c.M.PROJECTION_NAMES.LCC&&g?(0,p.jsx)(l.Switch,{size:"small",onChange:function(e){b(e.target.checked),e.target.checked||x(0)},title:e("mapctrl.rotation.fixedNorth"),checked:m}):null})}},55589:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(30538),i=n(43331),o=n(94145),a=n(82942),s=n(87167),l=n(28187),c=n(97282);function u(){var e=(0,i.useTranslation)().t,t=(0,o.A)(),n=(0,s.S)(t),u="mapctrl.rotation.resetRotation",d=(0,r.useRef)(null),h=(0,l.uE)(),p=(0,l.U6)().setRotation;return(0,c.jsx)(a.IconButton,{sx:n.rotationButton.rotationButton,tooltipPlacement:"top",tooltip:u,"aria-label":u,title:e("mapctrl.rotation.resetRotation"),onClick:function(){return p(0)},children:(0,c.jsx)(a.ArrowUpIcon,{ref:d,sx:n.rotationButton.rotationIcon,style:{transform:"rotate(".concat(h,"rad)")}})})}},87167:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var r=function(e){return{mapInfoContainer:{flexGrow:1,zIndex:200,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"calc(100%)",minHeight:"35px",maxHeight:"35px",backdropFilter:"blur(5px)",backgroundColor:e.palette.geoViewColor.bgColor.dark[800],color:"".concat(e.palette.geoViewColor.bgColor.light[800]," !important"),pointerEvents:"all",gap:.5,order:3,fill:"".concat(e.palette.geoViewColor.grey.dark[900]," !important"),position:"absolute",bottom:0,left:"0px","&.interaction-static":{backdropFilter:"unset",backgroundColor:"unset",color:"".concat(e.palette.geoViewColor.grey.dark[900]," !important"),fill:"".concat(e.palette.geoViewColor.grey.dark[900]," !important"),position:"absolute",width:"calc(100% - 60px)",bottom:0,left:"60px","& button svg":{fill:"".concat(e.palette.geoViewColor.grey.dark[900]," !important")},"& button span":{color:"".concat(e.palette.geoViewColor.grey.dark[900]," !important")}}},mouseScaleControlsContainer:{display:"flex",flexDirection:"row","& button":{cursor:"pointer",margin:"auto 0 auto auto"},justifyContent:"end"},rotationControlsContainer:{display:"flex",flexDirection:"column",marginLeft:"20px",alignItems:"flex-end"},expandButton:{display:{xs:"none",sm:"none",md:"flex",lg:"flex",xl:"flex"},alignItems:"center",justifyContent:"center",color:e.palette.geoViewColor.bgColor.light[800],height:"30px",width:"30px",marginLeft:"5px"},rotationButton:{rotationButton:{height:25,width:25,marginRight:5},rotationIcon:{width:"1.5em",height:"1.5em",fontSize:e.palette.geoViewFontSize.default,color:e.palette.geoViewColor.bgColor.light[800]}}}}},6017:(e,t,n)=>{"use strict";n.d(t,{p:()=>w});var r=n(64426),i=n(30538),o=n(94145),a=n(82942),s=n(17161),l=n(45094),c=n(5099),u=n(55147),d=n(55589),h=n(98625),p=n(87167),f=n(28187),g=n(69495),m=n(60854),y=n(15247),v=n(97282);function b(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 x(e){for(var t=1;t{"use strict";n.d(t,{T:()=>b});var r=n(30538),i=n(6467),o=n(66469),a=n(94145),s=n(94044),l=n(77082),c=n(67121),u=n(57449),d=n(16154),h={mapContainer:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative","& .ol-overviewmap.ol-custom-overviewmap":{bottom:"auto",left:"auto",right:"5px",top:"5px",margin:5,order:1,padding:0,position:"absolute",borderRadius:4,"& .ol-overviewmap-map":{border:"none",display:"block !important",WebkitTransition:"300ms linear",MozTransition:"300ms linear",OTransition:"300ms linear",msTransition:"300ms linear",transition:"300ms linear"},"&.ol-uncollapsible":{bottom:"auto",left:"auto",right:100,top:100,margin:5},"&:not(.ol-collapsed)":{boxShadow:"0 1px 5px rgb(0 0 0 / 65%)",borderRadius:"4px",border:"none"},"&:is(.ol-collapsed)":{boxShadow:"0 1px 5px rgb(0 0 0 / 65%)",borderRadius:4,border:"none"},"& button":{zIndex:100,position:"absolute",top:0,right:0,left:"auto !important",bottom:"auto !important",backgroundColor:"#cccccc"},"&::before":{content:'""',display:"block",position:"absolute",width:0,height:0,borderRadius:2,zIndex:100,right:0,top:0},"& .ol-overviewmap-box":{backgroundColor:"rgba(0, 0, 0, 0.2)"},"& .ol-viewport":{borderRadius:"4px","& .ol-layer":{backgroundColor:"#FFF"}}}}},p=n(28187),f=n(15247),g=n(90763),m=n(60854),y=n(76262),v=n(97282);function b(e){m.vF.logTraceRender("components/map/map");var t=e.viewer,n=(0,a.A)(),b=(0,r.useRef)(),x=(0,i.A)(n.breakpoints.up("md")),w=(0,f.Jh)(),A=(0,p.JQ)(),S=(0,p.Mk)(),C=(0,p.Nt)(),E=(0,f.oy)(),_=(0,r.useCallback)((function(){var e;m.vF.logTraceUseCallback("map.initCGPVMap"),null==E||null===(e=E.corePackages)||void 0===e||e.forEach((function(e){g.k.loadScript(e).then((function(n){g.k.addPlugin(e,w,n,(0,y.NK)({mapId:w,viewer:t})).catch((function(e){m.vF.logPromiseFailed("api.plugin.addPlugin in useCallback in map",e)}))})).catch((function(e){m.vF.logPromiseFailed("api.plugin.addPlugin in useCallback in map",e)}))}))}),[w,null==E?void 0:E.corePackages,t]);return(0,r.useEffect)((function(){m.vF.logTraceUseEffect("map.initMap"),t.createMap(b.current),_()}),[_,t]),(0,v.jsx)(o.A,{id:"mapTargetElement-".concat(w),ref:b,sx:h.mapContainer,tabIndex:0,children:C&&(0,v.jsxs)(v.Fragment,{children:[S&&(0,v.jsx)(s.l,{}),(0,v.jsx)(s.g,{}),(0,v.jsx)(l.B,{mapTargetElement:b.current}),(0,v.jsx)(u.n,{}),(0,v.jsx)(d.s,{}),x&&A&&t.map&&(0,v.jsx)(c.G,{olMap:t.map})]})})}},45094:(e,t,n)=>{"use strict";n.d(t,{d:()=>m});var r=n(64426),i=n(47361),o=n(30538),a=n(43331),s=n(94145),l=n(82942),c=n(69495),u=n(28187),d=n(62338),h=function(e){return{mousePosition:{display:"flex",minWidth:"fit-content",padding:e.spacing(0,4),textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",alignItems:"center",width:"auto",backgroundColor:"transparent !important",height:"inherit !important",color:e.palette.geoViewColor.bgColor.light[800],lineHeight:1.5,":hover":{backgroundColor:"transparent !important",color:e.palette.geoViewColor.bgColor.light[600]}},mousePositionTextContainer:(0,r.A)({display:"flex",flexDirection:"column"},e.breakpoints.down("md"),{display:"none"}),mousePositionTextCheckmarkContainer:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center","& span":{fontSize:e.palette.geoViewFontSize.default,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}},mousePositionCheckmark:{paddingRight:5},mousePositionText:{fontSize:e.palette.geoViewFontSize.default,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}},p=n(97282);function f(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 g(e){for(var t=1;t{"use strict";n.d(t,{A:()=>d});var r=n(30538),i=n(94145),o=n(82942),a=n(22279),s=n(31726),l=n(15247),c=n(60854),u=n(97282);function d(){c.vF.logTraceRender("components/nav-bar/buttons/fullscreen");var e=(0,l.Jh)(),t=(0,i.A)(),n=(0,a.S)(t),d=(0,s.kv)(),h=(0,s.dD)().setFullScreenActive;return(0,r.useEffect)((function(){function e(){document.fullscreenElement||h(!1)}return c.vF.logTraceUseEffect("FULLSCREEN - mount"),document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("MSFullscreenChange",e),function(){document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("MSFullscreenChange",e)}}),[]),(0,u.jsx)(o.IconButton,{id:"fullscreen",tooltip:"mapnav.fullscreen",tooltipPlacement:"left",onClick:function(){var t;(t=document.getElementById("shell-".concat(e)))&&h(!d,t)},sx:n.navButton,children:d?(0,u.jsx)(o.FullscreenExitIcon,{}):(0,u.jsx)(o.FullscreenIcon,{})})}},33859:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(94145),i=n(82942),o=n(22279),a=n(28187),s=n(60854),l=n(97282);function c(){s.vF.logTraceRender("components/nav-bar/buttons/home");var e=(0,r.A)(),t=(0,o.S)(e),n=(0,a.U6)().zoomToInitialExtent;return(0,l.jsx)(i.IconButton,{id:"home",tooltip:"mapnav.home",tooltipPlacement:"left",onClick:function(){n().catch((function(e){s.vF.logPromiseFailed("Failed to zoomToInitialExtent in home.handleZoom",e)}))},sx:t.navButton,children:(0,l.jsx)(i.HomeIcon,{})})}},21343:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(94145),i=n(82942),o=n(22279),a=n(28187),s=n(31726),l=n(60854),c=n(97282);function u(){l.vF.logTraceRender("components/nav-bar/buttons/location");var e=(0,r.A)(),t=(0,o.S)(e),n=(0,a.U6)().zoomToMyLocation,u=(0,s.dD)().addNotification,d=function(e){n(e).catch((function(e){l.vF.logPromiseFailed("Failed to zoomToMyLocation in location.successCallback",e)}))},h=function(e){u({key:"location",message:"ERROR(".concat(e.code,"): ").concat(e.message),notificationType:"warning",count:0})};return(0,c.jsx)(i.IconButton,{id:"location",tooltip:"mapnav.location",tooltipPlacement:"left",onClick:function(){navigator.geolocation.getCurrentPosition(d,h)},sx:t.navButton,children:(0,c.jsx)(i.EmojiPeopleIcon,{})})}},35971:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(94145),i=n(82942),o=n(22279),a=n(28187),s=n(60854),l=n(97282);function c(){s.vF.logTraceRender("components/nav-bar/buttons/zoom-in");var e=(0,r.A)(),t=(0,o.S)(e),n=(0,a.Bm)(),c=(0,a.U6)().setZoom;return(0,l.jsx)(i.IconButton,{id:"zoomIn",tooltip:"mapnav.zoomIn",tooltipPlacement:"left",onClick:function(){return c(n+.5)},sx:t.navButton,children:(0,l.jsx)(i.ZoomInIcon,{})})}},89780:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(94145),i=n(82942),o=n(22279),a=n(28187),s=n(60854),l=n(97282);function c(){s.vF.logTraceRender("components/nav-bar/buttons/zoom-out");var e=(0,r.A)(),t=(0,o.S)(e),n=(0,a.Bm)(),c=(0,a.U6)().setZoom;return(0,l.jsx)(i.IconButton,{id:"zoomOut",tooltip:"mapnav.zoomOut",tooltipPlacement:"left",onClick:function(){return c(n-.5)},sx:t.navButton,children:(0,l.jsx)(i.ZoomOutIcon,{})})}},21350:(e,t,n)=>{"use strict";n.d(t,{v:()=>y});var r=n(70640),i=n(32814),o=n(64426),a=n(16221),s=n(79913);function l(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{"use strict";n.d(t,{S:()=>r});var r=function(e){return{navBarRef:{position:"absolute",right:e.spacing(5),display:"flex",flexDirection:"row",marginRight:0,zIndex:150,pointerEvents:"all",justifyContent:"center",backgroundColor:"transparent",transition:"bottom 300ms ease-in-out",bottom:"6rem"},navBtnGroupContainer:{display:"flex",position:"relative",flexDirection:"column",pointerEvents:"auto",justifyContent:"end",overflowY:"hidden",padding:5},navBtnGroup:{borderRadius:e.spacing(5),backgroundColor:e.palette.geoViewColor.bgColor.light[500],"&:not(:last-child)":{marginBottom:e.spacing(11)},"& .MuiButtonGroup-grouped:not(:last-child)":{borderColor:e.palette.geoViewColor.bgColor.light[900]}},navButton:{backgroundColor:e.palette.geoViewColor.bgColor.light[500],color:e.palette.geoViewColor.bgColor.dark[900],borderRadius:e.spacing(5),width:"44px",height:"44px",maxWidth:"44px",minWidth:"44px",padding:"initial",transition:"background-color 0.3s ease-in-out","&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"1px solid ".concat(e.palette.geoViewColor.bgColor.light[900])},"&:not(:first-of-type)":{borderTopLeftRadius:0,borderTopRightRadius:0},"&:hover":{backgroundColor:e.palette.geoViewColor.bgColor.light[500],color:e.palette.geoViewColor.bgColor.dark[700]},"&:focus":{backgroundColor:e.palette.geoViewColor.bgColor.light[500],color:e.palette.geoViewColor.bgColor.dark[700]},"&:active":{backgroundColor:e.palette.geoViewColor.bgColor.light[500],color:e.palette.geoViewColor.bgColor.dark[950]}}}}},69561:(e,t,n)=>{"use strict";n.d(t,{j:()=>m});var r=n(30538),i=n(43331),o=n(94145),a=n(35971),s=n(89780),l=n(93201),c=n(33859),u=n(21343),d=n(82942),h=n(22279),p=n(69495),f=n(60854),g=n(97282);function m(e){f.vF.logTraceRender("components/nav-bar/nav-bar");var t=e.api,n=(0,i.useTranslation)().t,m=(0,o.A)(),y=(0,h.S)(m),v=(0,r.useRef)(null),b=(0,p.m)();return(0,r.useEffect)((function(){f.vF.logTraceUseEffect("NAV-BAR - mount");var e=function(){return f.vF.logInfo("NavbarCreated")};return t.onNavbarCreated(e),function(){t.offNavbarCreated(e)}}),[t]),(0,g.jsx)(d.Box,{ref:v,sx:[y.navBarRef],children:(0,g.jsxs)(d.Box,{sx:y.navBtnGroupContainer,children:[(0,g.jsxs)(d.ButtonGroup,{orientation:"vertical","aria-label":n("mapnav.arianavbar"),variant:"contained",sx:y.navBtnGroup,children:[(0,g.jsx)(a.A,{}),(0,g.jsx)(s.A,{})]}),(0,g.jsxs)(d.ButtonGroup,{orientation:"vertical","aria-label":n("mapnav.arianavbar"),variant:"contained",sx:y.navBtnGroup,children:[b.includes("fullscreen")&&(0,g.jsx)(l.A,{}),b.includes("location")&&(0,g.jsx)(u.A,{}),b.includes("home")&&(0,g.jsx)(c.A,{})]})]})})}},46686:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(47361),i=n(30538),o=n(12311),a=n(46457),s=n(28187),l=n(60854);const c=function(){var e=(0,i.useState)({angle:0}),t=(0,r.A)(e,2),n=t[0],c=t[1],u=(0,i.useState)(0),d=(0,r.A)(u,2),h=d[0],p=d[1],f=(0,i.useRef)(0),g=(0,s.HA)(),m=(0,s.ej)(),y=(0,s.C0)(),v=(0,s.Bm)(),b=(0,s.uE)(),x=(0,s.a7)(),w=(0,s.ht)(),A=(0,s.U6)(),S=A.getPixelFromCoordinate,C=A.setRotation;return(0,i.useEffect)((function(){if(l.vF.logTraceUseEffect("USEMANAGEARROW - northArrowElement",m,y),"EPSG:".concat(g)===o.M.PROJECTION_NAMES.LCC&&!m.isNorthVisible){var e=parseFloat(m.degreeRotation),t=270-e;if(y&&(Math.round(f.current)!==Math.round(e)||v>7))f.current=e,C((180-e)*(2*Math.PI)/360),c({angle:0});else{var n=y?b*(180/Math.PI):0;c({angle:90-t+n})}!function(e){var t=w[0]/2,n=t-12;if(y||null===S(a.Tg))p(n);else{var i=S(a.Tg),o=i[1],s={x:n,y:S(x)[1],m:1};if(i[0]<2400&&i[1]>-1300&&-i[1]<3e3){var l=(0,r.A)(i,2);s.x=l[0],s.y=l[1],s.m=-1}var c=s.y/Math.sin(.01745329252*e),u=o<0?s.x+s.m*(Math.sin(.01745329252*(90-e))*c)-12:i[0]-24;u=Math.max(n-.25*t,Math.min(u,n+.25*t)),p(u)}}(t)}}),[m,y]),{rotationAngle:n,northOffset:h}}},52315:(e,t,n)=>{"use strict";n.d(t,{d:()=>o,e:()=>i});var r=n(97282);function i(e){var t=e.width,n=e.height;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",focusable:"false",style:{width:t,height:n},children:(0,r.jsxs)("g",{id:"northarrow",transform:"translate(-285.24 -142.234)",children:[(0,r.jsx)("path",{id:"path3770-7",d:"M305.91 156.648a8.652 8.652 0 0 1-8.654 8.653 8.652 8.652 0 0 1-8.653-8.653 8.653 8.653 0 0 1 8.653-8.653 8.653 8.653 0 0 1 8.653 8.653z",fill:"#fff",stroke:"#fff",strokeWidth:".895"}),(0,r.jsx)("path",{id:"path3770",d:"M304.982 156.648a7.725 7.725 0 0 1-7.726 7.726 7.725 7.725 0 0 1-7.726-7.726 7.725 7.725 0 0 1 7.726-7.726 7.725 7.725 0 0 1 7.726 7.726z",fill:"none",stroke:"#6d6d6d",strokeWidth:".799"}),(0,r.jsx)("path",{id:"path3774",d:"M297.256 156.648v-8.525",fill:"none",stroke:"#000",strokeWidth:".067"}),(0,r.jsx)("path",{d:"M297.258 143.48l8.793 22.432-8.811-8.812-8.812 8.812z",id:"path3778",fill:"#fff",stroke:"#fff",strokeWidth:".912"}),(0,r.jsx)("path",{d:"M297.256 144.805l7.726 19.568-7.726-7.726-7.726 7.726z",id:"path3780",fill:"#d6d6d6",stroke:"#000",strokeWidth:".266",strokeLinecap:"square"}),(0,r.jsx)("path",{id:"path6038",d:"M297.256 144.666l-7.726 19.568 7.726-7.726",fill:"#6d6d6d",strokeWidth:".296",strokeLinecap:"square"})]})})}function o(){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[(0,r.jsx)("path",{d:"M0 0h24v24H0z",fill:"none"}),(0,r.jsx)("path",{d:"M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"})]})}},94044:(e,t,n)=>{"use strict";n.d(t,{l:()=>f,g:()=>g});var r=n(30538),i=n(94145),o=n(82942),a=n(12311),s=n(52315),l=function(e){var t,n;return{northArrowContainer:{left:"50%",position:"absolute"},northArrow:{width:null===(t=e.overrides)||void 0===t||null===(t=t.northArrow)||void 0===t?void 0:t.size.width,height:null===(n=e.overrides)||void 0===n||null===(n=n.northArrow)||void 0===n?void 0:n.size.height}}},c=n(28187),u=n(46686),d=n(15247),h=n(60854),p=n(97282);function f(){h.vF.logTraceRender("components/north-arrow/north-arrow");var e=(0,i.A)(),t=l(e),n=(0,r.useRef)(null),d=(0,c.HA)(),f=(0,c.ej)(),g=(0,u.A)(),m=g.rotationAngle,y=g.northOffset;return"EPSG:".concat(d)===a.M.PROJECTION_NAMES.LCC?(0,p.jsx)(o.Box,{ref:n,sx:t.northArrowContainer,style:{transition:e.transitions.create(["all","transform"],{duration:e.transitions.duration.standard,easing:e.transitions.easing.easeOut}),transform:"rotate(".concat(m.angle,"deg)"),visibility:f.isNorthVisible?"hidden":"visible",left:y},children:(0,p.jsx)(s.e,{width:t.northArrow.width,height:t.northArrow.height})}):(0,p.jsx)(o.Box,{})}function g(){var e=(0,d.Jh)(),t="".concat(e,"-northpole"),n=(0,r.useRef)(null),i=(0,c.HA)(),l=(0,c.U6)().setOverlayNorthMarkerRef;return setTimeout((function(){return l(n.current)}),0),(0,p.jsx)(o.Box,{ref:n,id:t,style:{visibility:"EPSG:".concat(i)===a.M.PROJECTION_NAMES.LCC?"visible":"hidden"},children:(0,p.jsx)(s.d,{})})}},12805:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=n(64426),i=n(43994),o=n(47361),a=n(67970),s=n.n(a),l=n(59615),c=n.n(l),u=n(30538),d=n(43331),h=n(94145),p=n(26565),f=n(78283),g=n(82942),m=function(e){return{notificationPanel:{display:"flex",flexDirection:"column",width:"350px",maxHeight:"500px",overflowY:"hidden",gap:"8px",marginLeft:"15px",backgroundColor:e.palette.geoViewColor.bgColor.light[200],borderRadius:"5px",boxShadow:2,padding:"10px"},notificationsTitle:{fontSize:e.palette.geoViewFontSize.default,fontWeight:"700",padding:"10px",color:e.palette.geoViewColor.textColor.main,borderBottom:"1px solid ".concat(e.palette.geoViewColor.bgColor.dark[300],"}"),marginBottom:"10px"},notificationsList:{overflowY:"auto",padding:"0px 0px 10px 0px"},notificationItem:{display:"flex",flexDirection:"row",alignItems:"center",gap:"8px",padding:"10px 15px","&:not(:last-child)":{borderBottom:"1px solid ".concat(e.palette.geoViewColor.bgColor.dark[300])},"& .MuiIconButton-root":{color:e.palette.geoViewColor.textColor.lighten(.2,.4),"&:hover":{color:e.palette.geoViewColor.textColor.lighten(.2,.6)}}},notificationsCount:{backgroundColor:e.palette.geoViewColor.bgColor.dark[800],color:e.palette.geoViewColor.bgColor.light[800],fontSize:e.palette.geoViewFontSize.sm,borderRadius:"10px",height:"20px",width:"40px",textAlign:"center",lineHeight:"20px"}}},y=n(31726),v=n(15247),b=n(60854),x=n(28187),w=n(97282);function A(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 S(e){for(var t=1;tM&&O(!0),L(e)}),[N,M]),(0,u.useEffect)((function(){if(b.vF.logTraceUseEffect("Notifications - hasNewNotification change",T),T){var e=setTimeout((function(){return O(!1)}),1e3);return function(){return clearTimeout(e)}}}),[T]);var B,$=function(){F&&D(!1)},G=(0,f.zh)({from:{x:0,scale:1},to:(B=(0,i.A)(c().mark((function e(t){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({x:2});case 2:return e.next=4,t({x:-2});case 4:return e.next=6,t({x:0});case 6:case"end":return e.stop()}}),e)}))),function(e){return B.apply(this,arguments)}),config:{duration:50},loop:!0}),U=(0,f.CS)(g.Box);function W(e){switch(e.notificationType){case"success":return(0,w.jsx)(g.CheckCircleIcon,{color:"success"});case"info":return(0,w.jsx)(g.InfoIcon,{color:"info"});case"warning":return(0,w.jsx)(g.WarningIcon,{color:"warning"});default:return(0,w.jsx)(g.ErrorIcon,{color:"error"})}}function q(e,r){return(0,w.jsxs)(g.Box,{sx:n.notificationItem,children:[(0,w.jsx)(g.Box,{children:W(e)}),(0,w.jsx)(g.Box,{sx:{flexGrow:1,fontSize:t.palette.geoViewFontSize.sm,color:t.palette.geoViewColor.textColor.light[250]},children:(0,w.jsx)(g.Box,{component:"span",children:e.message})}),e.count>1?(0,w.jsx)(g.Box,{children:(0,w.jsx)(g.Box,{sx:n.notificationsCount,children:e.count})}):null,(0,w.jsx)(g.IconButton,{onClick:function(){return function(e){V(e.key)}(e)},children:(0,w.jsx)(g.CloseIcon,{})})]},r)}return(0,w.jsx)(p.x,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:$,children:(0,w.jsxs)(g.Box,{children:[(0,w.jsx)(g.Badge,{badgeContent:M>99?"99+":M,color:"error",children:(0,w.jsxs)(g.IconButton,{id:"notification",tooltip:"appbar.notifications",tooltipPlacement:"bottom-end",onClick:function(e){E(e.currentTarget),D(!F)},className:"".concat("dynamic"===z?"buttonFilled":"style4"," ").concat(F?"active":""),color:"primary",children:[!T&&(0,w.jsx)(g.NotificationsIcon,{}),T&&(0,w.jsx)(U,{style:S({},G),children:(0,w.jsx)(g.NotificationsActiveIcon,{})})]})}),(0,w.jsx)(g.Popper,{open:F,anchorEl:C,placement:"right-end",onClose:$,container:a,children:(0,w.jsxs)(g.Paper,{sx:n.notificationPanel,children:[(0,w.jsx)(g.Typography,{component:"h3",sx:n.notificationsTitle,children:e("appbar.notifications")}),(0,w.jsx)(g.Box,{sx:n.notificationsList,children:N.length>0?N.map((function(e,t){return q(e,t)})):(0,w.jsx)(g.Typography,{component:"div",sx:{padding:"10px 15px"},children:e("appbar.no_notifications_available")})})]})})]})})}},62523:(e,t,n)=>{"use strict";n.d(t,{I:()=>d});var r=n(47361),i=n(30538),o=n(43331),a=n(82942),s=n(60854),l=n(66469),c={toggleBtn:{transform:"rotate(45deg)",color:"black",zIndex:150,"&:hover":{cursor:"pointer"},"&.minimapOpen":{transform:"rotate(-45deg)"},"&.minimapClosed":{transform:"rotate(135deg)"}},toggleBtnContainer:{zIndex:150,position:"absolute",top:0,right:0}},u=n(97282);function d(e){var t=e.overviewMap,n=(0,(0,o.useTranslation)().t)("mapctrl.overviewmap.toggle"),d=(0,i.useState)(!0),h=(0,r.A)(d,2),p=h[0],f=h[1],g=(0,i.useRef)(null);return(0,i.useEffect)((function(){if(s.vF.logTraceUseEffect("OVERVIEW-MAP-TOGGLE - mount"),g&&g.current){var e=g.current.closest("button");e&&(e.setAttribute("aria-label",n),e.addEventListener("click",(function(){var e=t.getCollapsed();f(!e);var n=t.getOverviewMap().getTargetElement();n&&(e?(n.style.width="40px",n.style.height="40px",n.style.margin="0px"):(n.style.width="150px",n.style.height="150px"))})))}}),[]),(0,u.jsx)(a.Tooltip,{title:n,children:(0,u.jsx)(l.A,{ref:g,sx:c.toggleBtnContainer,children:(0,u.jsx)(l.A,{component:"div",sx:c.toggleBtn,className:p?"minimapOpen":"minimapClosed",style:{margin:0,padding:0,height:"initial",minWidth:"initial"},children:(0,u.jsx)(a.ChevronLeftIcon,{})})})})}},67121:(e,t,n)=>{"use strict";n.d(t,{G:()=>D});var r=n(30538),i=n(17004),o=n(65868),a=n(43331),s=n(333),l=n(12791),c=n(64874),u=n(55731),d=n(41320),h=n(66143),p=n(67760),f=n(56035),g=n(1841),m=n(8584),y=n(36203),v=n(1970),b=n(99423),x=n(41218),w=n(24363),A=n(17567),S=n(31752);const C=.75,E=.1;class _ extends u.A{constructor(e){e=e||{},super({element:document.createElement("div"),render:e.render,target:e.target}),this.boundHandleRotationChanged_=this.handleRotationChanged_.bind(this),this.collapsed_=void 0===e.collapsed||e.collapsed,this.collapsible_=void 0===e.collapsible||e.collapsible,this.collapsible_||(this.collapsed_=!1),this.rotateWithView_=void 0!==e.rotateWithView&&e.rotateWithView,this.viewExtent_=void 0;const t=void 0!==e.className?e.className:"ol-overviewmap",n=void 0!==e.tipLabel?e.tipLabel:"Overview map",r=void 0!==e.collapseLabel?e.collapseLabel:"‹";"string"==typeof r?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=r):this.collapseLabel_=r;const i=void 0!==e.label?e.label:"›";"string"==typeof i?(this.label_=document.createElement("span"),this.label_.textContent=i):this.label_=i;const o=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_,a=document.createElement("button");a.setAttribute("type","button"),a.title=n,a.appendChild(o),a.addEventListener(d.A.CLICK,this.handleClick_.bind(this),!1),this.ovmapDiv_=document.createElement("div"),this.ovmapDiv_.className="ol-overviewmap-map",this.view_=e.view;const s=new h.A({view:e.view,controls:new c.A,interactions:new c.A});this.ovmap_=s,e.layers&&e.layers.forEach((function(e){s.addLayer(e)}));const l=document.createElement("div");l.className="ol-overviewmap-box",l.style.boxSizing="border-box",this.boxOverlay_=new m.A({position:[0,0],positioning:"center-center",element:l}),this.ovmap_.addOverlay(this.boxOverlay_);const u=t+" "+b.XI+" "+b.$N+(this.collapsed_&&this.collapsible_?" "+b.nT:"")+(this.collapsible_?"":" ol-uncollapsible"),p=this.element;p.className=u,p.appendChild(this.ovmapDiv_),p.appendChild(a);const f=this,g=this.boxOverlay_,y=this.boxOverlay_.getElement(),v=function(e){const t={clientX:(n=e).clientX,clientY:n.clientY};var n;const r=s.getEventCoordinateInternal(t);g.setPosition(r)},x=function(e){const t=s.getEventCoordinateInternal(e);f.getMap().getView().setCenterInternal(t),window.removeEventListener("mousemove",v),window.removeEventListener("mouseup",x)};y.addEventListener("mousedown",(function(){window.addEventListener("mousemove",v),window.addEventListener("mouseup",x)}))}setMap(e){const t=this.getMap();if(e!==t){if(t){const e=t.getView();e&&this.unbindView_(e),this.ovmap_.setTarget(null)}if(super.setMap(e),e){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push((0,w.KT)(e,g.A.PROPERTYCHANGE,this.handleMapPropertyChange_,this));const t=e.getView();t&&(this.bindView_(t),t.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())),this.ovmap_.isRendered()||this.updateBoxAfterOvmapIsRendered_()}}}handleMapPropertyChange_(e){if(e.key===f.A.VIEW){const t=e.oldValue;t&&this.unbindView_(t);const n=this.getMap().getView();this.bindView_(n)}else this.ovmap_.isRendered()||e.key!==f.A.TARGET&&e.key!==f.A.SIZE||this.ovmap_.updateSize()}bindView_(e){if(!this.view_){const t=new y.Ay({projection:e.getProjection()});this.ovmap_.setView(t)}e.addChangeListener(v.A.ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_()}unbindView_(e){e.removeChangeListener(v.A.ROTATION,this.boundHandleRotationChanged_)}handleRotationChanged_(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())}validateExtent_(){const e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;const n=e.getSize(),r=e.getView().calculateExtentInternal(n);if(this.viewExtent_&&(0,x.equals)(r,this.viewExtent_))return;this.viewExtent_=r;const i=t.getSize(),o=t.getView().calculateExtentInternal(i),a=t.getPixelFromCoordinateInternal((0,x.getTopLeft)(r)),s=t.getPixelFromCoordinateInternal((0,x.getBottomRight)(r)),l=Math.abs(a[0]-s[0]),c=Math.abs(a[1]-s[1]),u=i[0],d=i[1];lu*C||c>d*C?this.resetExtent_():(0,x.containsExtent)(o,r)||this.recenter_()}resetExtent_(){const e=this.getMap(),t=this.ovmap_,n=e.getSize(),r=e.getView().calculateExtentInternal(n),i=t.getView(),o=Math.log(7.5)/Math.LN2,a=1/(Math.pow(2,o/2)*E);(0,x.scaleFromCenter)(r,a),i.fitInternal((0,A.VY)(r))}recenter_(){const e=this.getMap(),t=this.ovmap_,n=e.getView();t.getView().setCenterInternal(n.getCenterInternal())}updateBox_(){const e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;const n=e.getSize(),r=e.getView(),i=t.getView(),o=this.rotateWithView_?0:-r.getRotation(),a=this.boxOverlay_,s=this.boxOverlay_.getElement(),l=r.getCenterInternal(),c=r.getResolution(),u=i.getResolution(),d=n[0]*c/u,h=n[1]*c/u;if(a.setPosition(l),s){s.style.width=d+"px",s.style.height=h+"px";const e="rotate("+o+"rad)";s.style.transform=e}}updateBoxAfterOvmapIsRendered_(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=(0,w.Jz)(this.ovmap_,p.A.POSTRENDER,(function(e){delete this.ovmapPostrenderKey_,this.updateBox_()}),this))}handleClick_(e){e.preventDefault(),this.handleToggle_()}handleToggle_(){this.element.classList.toggle(b.nT),this.collapsed_?(0,S.fo)(this.collapseLabel_,this.label_):(0,S.fo)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;const e=this.ovmap_;if(!this.collapsed_){if(e.isRendered())return this.viewExtent_=void 0,void e.render();e.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}}getCollapsible(){return this.collapsible_}setCollapsible(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),!e&&this.collapsed_&&this.handleToggle_())}setCollapsed(e){this.collapsible_&&this.collapsed_!==e&&this.handleToggle_()}getCollapsed(){return this.collapsed_}getRotateWithView(){return this.rotateWithView_}setRotateWithView(e){this.rotateWithView_!==e&&(this.rotateWithView_=e,0!==this.getMap().getView().getRotation()&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))}getOverviewMap(){return this.ovmap_}render(e){this.validateExtent_(),this.updateBox_()}}const k=_;var T=n(3389),O=n(62523),P=n(15247),I=n(31726),M=n(28187),L=n(98030),R=n(60854),j=n(66469),F=n(97282);function D(e){R.vF.logTraceRender("components/overview-map/overview-map");var t=e.olMap,n=(0,P.Jh)(),c=(0,M.kg)(),u=(0,M.Bm)(),d=(0,M.HA)(),h=(0,I.t)(),p=(0,I.MF)();return(0,r.useEffect)((function(){R.vF.logTraceUseEffect("OVERVIEW-MAP - zoom level changed");var e=t.getControls().getArray().filter((function(e){return e instanceof k}))[0];e&&(u{"use strict";n.d(t,{F:()=>y});var r=n(64426),i=n(47361),o=n(30538),a=n(43331),s=n(94145),l=n(82942),c=function(e){return{scaleControl:{display:"none"},scaleContainer:{display:"flex",backgroundColor:"transparent",border:"none",height:"100%",":hover":{backgroundColor:"transparent",color:e.palette.geoViewColor.white},"&.interaction-static":{padding:"5px",backdropFilter:"blur(5px)"}},scaleExpandedContainer:{display:"flex",flexDirection:"column",justifyContent:"center",height:"100%",gap:e.spacing(5)},scaleExpandedCheckmarkText:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",height:"18px",maxHeight:"18px"},scaleText:{fontSize:e.palette.geoViewFontSize.default,color:e.palette.geoViewColor.bgColor.light[800],whiteSpace:"nowrap",borderBottom:"2px solid ".concat(e.palette.geoViewColor.primary.light[300]),textTransform:"lowercase",position:"relative",display:"inline-block","&.interaction-static":{fontSize:e.palette.geoViewFontSize.md,fontWeight:"bold",borderBottom:"2px solid"},"&.hasScaleLine::before, &.hasScaleLine::after":{content:'""',position:"absolute",bottom:"-1px",width:"1px",height:"8px",backgroundColor:e.palette.geoViewColor.bgColor.light[800]},"&.hasScaleLine::before":{left:"0px"},"&.hasScaleLine::after":{right:"0px"}},scaleCheckmark:{paddingRight:5,color:e.palette.geoViewColor.bgColor.light[800]}}},u=n(28187),d=n(69495),h=n(15247),p=n(60854),f=n(97282);function g(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 m(e){for(var t=1;t{"use strict";n.d(t,{V:()=>r,e:()=>i});var r=function(e){var t="light"===e.palette.mode?e.palette.geoViewColor.primary.dark[300]:e.palette.geoViewColor.primary.light[300];return{trap:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",top:e.spacing(0),left:e.spacing(0),width:"100%",height:"100%",zIndex:e.zIndex.focusDialog,overflow:"hidden"},exitFocus:{border:"unset"},enableFocus:{border:"5px solid ".concat(t,"\n }")}}},i=function(e){return{all:{height:"100%",width:"100%","& .layer-icon":{padding:3,borderRadius:0,border:"1px solid",borderColor:e.palette.geoViewColor.grey.dark[100],boxShadow:2,background:e.palette.geoViewColor.white,objectFit:"scale-down",width:"35px",height:"35px",marginRight:"10px"},"& a[href]":{color:e.palette.geoViewColor.primary.main,"*:hover":{color:e.palette.geoViewColor.primary.dark[300]}},"& *::-webkit-scrollbar":{width:"8px"},"& *::-webkit-scrollbar-track":{background:e.palette.geoViewColor.bgColor.darken(.5,.5),borderRadius:"5px"},"& *::-webkit-scrollbar-thumb":{background:e.palette.geoViewColor.bgColor.darken(.5),borderRadius:"5px"},".bordered":{border:"1px solid ".concat(e.palette.geoViewColor.bgColor.darken(.5,.5)),boxShadow:"0px 12px 9px -13px ".concat(e.palette.geoViewColor.bgColor.darken(.2,.5))},".bordered-primary":{border:"1px solid ".concat(e.palette.geoViewColor.primary.darken(.1,.9)),boxShadow:"0px 12px 9px -13px ".concat(e.palette.geoViewColor.bgColor.dark[200])}},shell:{display:"flex",flexDirection:"column",top:e.spacing(0),right:e.spacing(0),left:e.spacing(0),bottom:e.spacing(0),overflow:"hidden",zIndex:0,height:"100%"},mapShellContainer:{display:"flex",flexDirection:"row",minHeight:"100%",width:"100%",position:"relative",alignItems:"stretch"},mapContainer:{display:"flex",flexDirection:"column",minHeight:"100%",width:"100%",position:"relative",alignItems:"stretch"},skip:{position:"absolute",left:-1e3,height:"1px",width:"1px",textAlign:"left",overflow:"hidden",backgroundColor:e.palette.geoViewColor.white,zIndex:e.zIndex.tooltip,"&:active, &:focus":{left:e.spacing(0),zIndex:e.zIndex.tooltip,width:"auto",height:"auto",overflow:"visible"}}}}},51098:(e,t,n)=>{"use strict";n.d(t,{S:()=>m});var r=n(47361),i=n(30538),o=n(43331),a=n(94145),s=n(6467),l=n(82942),c=n(43975),u=n(80430),d=n(46457),h=n(31726),p=n(69495),f=n(60854),g=n(97282);function m(e){f.vF.logTraceRender("containers/focus-trap/focus-trap");var t=e.mapId,n=e.focusTrapId,m=(0,o.useTranslation)().t,y=(0,a.A)(),v=(0,u.V)(y),b=(0,s.A)(y.breakpoints.down("md")),x=(0,i.useState)(!1),w=(0,r.A)(x,2),A=w[0],S=w[1],C=(0,i.useRef)(),E=(0,h.dD)().setCrosshairActive,_=(0,p.A6)().setActiveTrapGeoView,k=(0,h.sd)(),T=k.querySelector('[id^="mapTargetElement-"]'),O=(0,i.useRef)(T);O.current=T;var P=(0,i.useRef)();function I(e){var t;t=e,O.current===document.activeElement&&"Space"===t.code&&t.preventDefault()}function M(){_(!1),k.classList.remove("map-focus-trap"),k.querySelector(".geoview-shell").removeEventListener("keydown",L),document.removeEventListener("keydown",I),setTimeout((function(){var e;return null===(e=document.getElementById("toplink-".concat(n)))||void 0===e?void 0:e.focus()}),0),E(!1)}void 0!==O.current&&(P.current=O.current);var L=function(e){d.xb.includes(e.code)||(T.style.border=v.exitFocus.border),"KeyQ"===e.code&&e.ctrlKey&&M()};function R(e){var r=e.target.id.split("-")[0];("Tab"===e.code&&!e.shiftKey&&"toplink"===r||"Tab"===e.code&&e.shiftKey&&"bottomlink"===r)&&(e.preventDefault(),e.stopPropagation(),C.current="toplink"===r?"bottomlink-".concat(n):"toplink-".concat(n),S(!0),document.addEventListener("keydown",I),k.querySelector(".geoview-shell").addEventListener("mousemove",(function(){S(!1),M(),document.getElementById("mapTargetElement-".concat(t)).style.border=v.exitFocus.border}),{once:!0}))}return(0,i.useEffect)((function(){var e,t;return null===(e=document.getElementById("bottomlink-".concat(n)))||void 0===e||e.addEventListener("keydown",R),null===(t=document.getElementById("toplink-".concat(n)))||void 0===t||t.addEventListener("keydown",R),function(){var e,t;null===(e=document.getElementById("bottomlink-".concat(n)))||void 0===e||e.removeEventListener("keydown",R),null===(t=document.getElementById("toplink-".concat(n)))||void 0===t||t.removeEventListener("keydown",R),document.removeEventListener("keydown",I)}}),[]),(0,g.jsx)(l.Modal,{container:document.getElementById(n),modalId:n,open:A,"aria-labelledby":"wcag-dialog-title","aria-describedby":"wcag-dialog-description",fullScreen:b,sx:v.trap,titleId:"wcag-dialog-title",title:m("keyboardnav.focusdialog.title"),contentTextId:"wcag-dialog-description",contentModal:(0,g.jsx)(c.S,{htmlContent:m("keyboardnav.focusdialog.main")}),actions:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.Button,{id:"enable-focus",tooltip:m("keyboardnav.focusdialog.button.enable"),tooltipPlacement:"top-end",autoFocus:!0,onClick:function(){var e;S(!1),e=k.querySelector(".geoview-shell"),_(!0),e.classList.add("map-focus-trap"),e.addEventListener("keydown",L),setTimeout((function(){var e;return null===(e=document.getElementById("mapTargetElement-".concat(t)))||void 0===e?void 0:e.focus()}),0),E(!0),document.getElementById("mapTargetElement-".concat(t)).style.border=v.enableFocus.border},type:"text",sx:{width:"initial",textTransform:"none"},children:m("keyboardnav.focusdialog.button.enable")}),(0,g.jsx)(l.Button,{id:"skip-focus",tooltip:m("keyboardnav.focusdialog.button.skip"),tooltipPlacement:"top-end",onClick:function(){S(!1),setTimeout((function(){var e;return null===(e=document.getElementById(C.current))||void 0===e?void 0:e.focus()}),0)},type:"text",sx:{width:"initial",textTransform:"none"},children:m("keyboardnav.focusdialog.button.skip")})]})})}},43975:(e,t,n)=>{"use strict";n.d(t,{S:()=>d});var r=n(64426),i=n(31625),o=n(31082);o.domToReact,o.htmlToDOM,o.attributesToProps,o.Element;const a=o;var s=n(66469),l=n(97282);function c(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 u(e){for(var t=1;t{"use strict";n.d(t,{$:()=>R});var r=n(64426),i=n(47361),o=n(30538),a=n(43331),s=n(94145),l=n(23799),c=n(55284),u=n(95811),d=n(69561),h=n(21793),p=n(6017),f=n(82942),g=n(80430),m=n(28187),y=n(31726),v=n(69495),b=n(28184),x=n(91140),w=n(39647),A=n(60854),S=n(74624),C=n(15560),E=n(97282);function _(){var e,t,n,r,l;A.vF.logTraceRender("components/data-table/data-table-modal");var c=(0,a.useTranslation)().t,u=(0,s.A)(),d=(0,w.S)(u),h=(0,o.useState)(!0),p=(0,i.A)(h,2),g=p[0],m=p[1],y=(0,v.A6)().closeModal,b=(0,v.NP)().activeElementId,_=(0,x.u1)(),k=(0,S.Xh)(),T=(0,C.bc)(k),O=(0,o.useMemo)((function(){return A.vF.logTraceUseMemo("DATA-TABLE-MODAL - layer",T,_),null==T?void 0:T.find((function(e){return e.layerPath===_}))}),[T,_]),P=(0,o.useCallback)((function(e){return A.vF.logTraceUseCallback("DATA-TABLE-MODAL - getCellValue"),(0,E.jsx)(f.Box,{component:"div",sx:d.tableCell,children:e})}),[d.tableCell]),I=(0,o.useCallback)((function(e){return A.vF.logTraceUseCallback("DATA-TABLE-MODAL - getTableHeader"),(0,E.jsx)(f.Box,{component:"span",sx:{whiteSpace:"nowrap"},children:e})}),[]),M=(0,o.useMemo)((function(){var e;if(A.vF.logTraceUseMemo("DATA-TABLE-MODAL - columns",null==O?void 0:O.features),null==O||!O.fieldInfos)return[];var t=Object.entries(null!==(e=null==O?void 0:O.fieldInfos)&&void 0!==e?e:{}),n=[];return t.forEach((function(e){var t,r=(0,i.A)(e,2),a=r[0],s=r[1];n.push({id:a,accessorFn:function(e){var t,n,r,i;return(0,o.isValidElement)(e[a])?e[a]:("string"==typeof(null===(t=e[a])||void 0===t?void 0:t.value)||"number"==typeof(null===(n=e[a])||void 0===n?void 0:n.value))&&null!==(r=null===(i=e[a])||void 0===i?void 0:i.value)&&void 0!==r?r:""},header:null!==(t=null==s?void 0:s.alias)&&void 0!==t?t:"",Cell:function(e){var t=e.cell;return P(t.getValue())},Header:function(e){var t=e.column;return I(t.columnDef.header)},maxSize:120})})),n}),[null==O?void 0:O.fieldInfos]),L=(0,o.useMemo)((function(){var e,t;return A.vF.logTraceUseMemo("DATA-TABLE-MODAL - rows",null==O?void 0:O.fieldInfos),null!==(e=null==O||null===(t=O.features)||void 0===t?void 0:t.map((function(e){return e.fieldInfo})))&&void 0!==e?e:[]}),[null==O?void 0:O.features,null==O?void 0:O.fieldInfos]);return(0,o.useEffect)((function(){var e,t;A.vF.logTraceUseEffect("DATA-TABLE-MODAL - isLoading",g,_);var n=setTimeout((function(){m(!1)}),(null!==(e=null==O||null===(t=O.features)||void 0===t?void 0:t.length)&&void 0!==e?e:0)>100?1e3:0);return function(){return clearTimeout(n)}}),[g,_]),(0,E.jsxs)(f.Dialog,{open:"layerDataTable"===b,onClose:y,maxWidth:"xl",children:[(0,E.jsx)(f.DialogTitle,{children:"".concat(c("legend.tableDetails")," ").concat(null!==(e=null==O?void 0:O.layerName)&&void 0!==e?e:_)}),(0,E.jsxs)(f.DialogContent,{sx:{overflow:"hidden"},children:[g&&(0,E.jsx)(f.Box,{sx:{minHeight:"300px",minWidth:"450px",position:"relative"},children:(0,E.jsx)(f.CircularProgress,{isLoaded:!g,sx:{backgroundColor:"inherit"}})}),!g&&(0,E.jsx)(f.Table,{columns:M,data:L,enableColumnActions:!1,enablePagination:(null!==(t=null==O||null===(n=O.features)||void 0===n?void 0:n.length)&&void 0!==t?t:0)>50,enableBottomToolbar:(null!==(r=null==O||null===(l=O.features)||void 0===l?void 0:l.length)&&void 0!==r?r:0)>50,initialState:{density:"compact",pagination:{pageSize:50,pageIndex:0}},muiPaginationProps:{rowsPerPageOptions:[50,100]},muiTableContainerProps:{sx:{maxHeight:"60vh"}},enableStickyHeader:!0,enableSorting:!0,positionToolbarAlertBanner:"none",enableGlobalFilter:!1,enableColumnFilters:!1,enableDensityToggle:!1,enableFilters:!1,enableFullScreenToggle:!1,enableHiding:!1,enableTopToolbar:!1})]}),(0,E.jsx)(f.DialogActions,{children:(0,E.jsx)(f.Button,{fullWidth:!0,variant:"contained",className:"buttonOutlineFilled",onClick:y,type:"text",autoFocus:!0,children:c("general.close")})})]})}var k=n(55587),T=n(10247);function O(){var e;A.vF.logTraceRender("components/details/feature-detail-modal");var t=(0,a.useTranslation)().t,n=(0,s.A)(),r=(0,k.S)(n),i=(0,v.A6)().closeModal,l=(0,v.NP)().activeElementId,c=(0,S.j3)(),u=(0,o.useMemo)((function(){var e;return A.vF.logTraceUseMemo("DETAILS PANEL - Feature Detail Modal - featureInfoList"),Object.keys(null!==(e=null==c?void 0:c.fieldInfo)&&void 0!==e?e:{}).map((function(e){return{fieldKey:c.fieldInfo[e].fieldKey,value:c.fieldInfo[e].value,dataType:c.fieldInfo[e].dataType,alias:c.fieldInfo[e].alias?c.fieldInfo[e].alias:e,domain:null}}))}),[c]);return(0,E.jsxs)(f.Dialog,{open:"featureDetailDataTable"===l&&!!c,onClose:i,maxWidth:"lg",disablePortal:!0,sx:r.featureDetailModal,children:[(0,E.jsx)(f.DialogTitle,{children:t("details.featureDetailModalTitle")}),(0,E.jsxs)(f.DialogContent,{children:[(0,E.jsxs)(f.Box,{display:"flex",flexDirection:"row",alignItems:"center",pb:10,children:[(0,E.jsx)(f.Box,{component:"img",alt:null!==(e=null==c?void 0:c.nameField)&&void 0!==e?e:"",src:c.featureIcon.toDataURL().toString(),className:"layer-icon"}),(0,E.jsx)(f.Typography,{sx:{display:"inline-block"},component:"div",children:c.nameField})]}),(0,E.jsx)(f.List,{sx:r.featureDetailListContainer,children:(0,E.jsx)(T.P,{featureInfoList:u})})]}),(0,E.jsx)(f.DialogActions,{children:(0,E.jsx)(f.Button,{fullWidth:!0,variant:"contained",className:"buttonOutlineFilled",onClick:i,type:"text",size:"small",autoFocus:!0,children:t("general.close")})})]})}var P=n(15247),I=n(51098);function M(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 L(e){for(var t=1;t{"use strict";n.d(t,{O7:()=>b,oy:()=>w,Jh:()=>x});var r=n(71129);const i=e=>(t,n,r)=>{const i=r.subscribe;r.subscribe=(e,t,n)=>{let o=e;if(t){const i=(null==n?void 0:n.equalityFn)||Object.is;let a=e(r.getState());o=n=>{const r=e(n);if(!i(a,r)){const e=a;t(a=r,e)}},(null==n?void 0:n.fireImmediately)&&t(a,a)}return i(o)};return e(t,n,r)};var o=n(80363),a=n.n(o),s=n(58643),l=n(31726),c=n(62e3),u=n(91140),d=n(28187),h=n(74624),p=n(21160),f=n(22374),g=n(47521),m=n(69495),y=n(60854),v=n(48660),b=i((function(e,t){return y.vF.logTraceCore("Initializing store core states..."),{mapConfig:void 0,setMapConfig:function(n){var r,i,o;y.vF.logDebug("Sending the map config to the store...",n.mapId);for(var s=a()(n),l=0;l<((null===(c=s.map)||void 0===c||null===(c=c.listOfGeoviewLayerConfig)||void 0===c?void 0:c.length)||0);l++){var c,u=(0,v.si)(s.map.listOfGeoviewLayerConfig[l]);s.map.listOfGeoviewLayerConfig[l]=u}e({mapConfig:s,mapId:n.mapId}),t().appState.setDefaultConfigValues(n),t().mapState.setDefaultConfigValues(n),t().uiState.setDefaultConfigValues(n),null!==(r=n.footerBar)&&void 0!==r&&r.tabs.core.includes("time-slider")&&e({timeSliderState:(0,p.mU)(e,t)}),null!==(i=n.footerBar)&&void 0!==i&&i.tabs.core.includes("geochart")&&e({geochartState:(0,f.Dj)(e,t)}),null!==(o=n.corePackages)&&void 0!==o&&o.includes("swiper")&&e({swiperState:(0,g.eC)(e,t)})},appState:(0,l.$g)(e,t),detailsState:(0,c.yw)(e,t),dataTableState:(0,h.Mo)(e,t),layerState:(0,u.tK)(e,t),mapState:(0,d.aM)(e,t),uiState:(0,m.Oz)(e,t)}})),x=((0,r.vt)()(b),function(){return(0,r.Pj)((0,s.Ni)(),(function(e){return e.mapId}))}),w=function(){return(0,r.Pj)((0,s.Ni)(),(function(e){return e.mapConfig}))}},46910:(e,t,n)=>{"use strict";n.d(t,{Jh:()=>r.Jh,U6:()=>o.U6,Yo:()=>i.Yo,wE:()=>o.wE});var r=n(15247),i=(n(31726),n(74624),n(62e3),n(22374),n(91140)),o=n(28187);n(21160),n(69495),n(58643)},31726:(e,t,n)=>{"use strict";n.d(t,{$g:()=>h,D4:()=>p,DR:()=>x,MF:()=>m,_V:()=>v,dD:()=>C,e_:()=>f,iO:()=>S,kv:()=>y,lk:()=>A,sd:()=>b,t:()=>g,v9:()=>w});var r=n(28249),i=n(64426),o=n(71129),a=n(92288),s=n(58643),l=n(60854),c=n(79913);function u(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 d(e){for(var t=1;t{"use strict";n.d(t,{D5:()=>d,Mo:()=>c,Xh:()=>u,_M:()=>h,eQ:()=>g,j3:()=>f,x9:()=>p});var r=n(64426),i=n(71129),o=n(38890),a=n(58643);function s(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 l(e){for(var t=1;t{"use strict";n.d(t,{Jr:()=>p,MQ:()=>f,SK:()=>h,aU:()=>u,yU:()=>d,yw:()=>c});var r=n(28249),i=n(64426),o=n(71129),a=n(58643);function s(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 l(e){for(var t=1;t{"use strict";n.d(t,{Dj:()=>l,N3:()=>h,bS:()=>u,eq:()=>d,if:()=>c});var r=n(64426),i=n(71129),o=n(58643);function a(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 s(e){for(var t=1;t{"use strict";n.d(t,{$T:()=>y,Uk:()=>b,Yo:()=>f,Zt:()=>p,tK:()=>h,u1:()=>g,wU:()=>v,y5:()=>m});var r=n(28249),i=n(64426),o=n(71129),a=n(58643),s=n(46457),l=n(98030),c=n(55950);function u(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 d(e){for(var t=1;t{"use strict";n.d(t,{Bm:()=>M,C0:()=>y,GT:()=>v,HA:()=>k,JQ:()=>C,KE:()=>_,Mk:()=>w,Nt:()=>x,Rs:()=>m,U6:()=>L,_I:()=>S,a7:()=>f,aM:()=>h,ej:()=>A,gx:()=>O,ht:()=>P,kI:()=>b,kg:()=>E,re:()=>p,uE:()=>T,wE:()=>I,yC:()=>g});var r=n(28249),i=n(64426),o=n(71129),a=n(58643),s=n(12311),l=n(98030),c=n(8259);function u(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 d(e){for(var t=1;t-1||!1,overviewMap:n.components.indexOf("overview-map")>-1||!1,overviewMapHideZoom:void 0!==n.overviewMap?n.overviewMap.hideOnZoom:0,rotation:n.map.viewSettings.rotation||0,zoom:null!==(i=n.map.viewSettings.initialView)&&void 0!==i&&i.zoomAndCenter?n.map.viewSettings.initialView.zoomAndCenter[0]:3.5})})},actions:{createBaseMapFromOptions:function(){return l.d.resetBasemap(t().mapId)},getPixelFromCoordinate:function(e){return l.d.getPixelFromCoordinate(t().mapId,e)},getIndexFromOrderedLayerInfo:function(e){return l.d.getMapIndexFromOrderedLayerInfo(t().mapId,e)},getVisibilityFromOrderedLayerInfo:function(e){return l.d.getMapVisibilityFromOrderedLayerInfo(t().mapId,e)},showClickMarker:function(e){l.d.clickMarkerIconShow(t().mapId,e)},hideClickMarker:function(){l.d.clickMarkerIconHide(t().mapId)},highlightBBox:function(e,n){l.d.highlightBBox(t().mapId,e,n)},addHighlightedFeature:function(e){l.d.addHighlightedFeature(t().mapId,e)},removeHighlightedFeature:function(e){l.d.removeHighlightedFeature(t().mapId,e)},reorderLayer:function(e,n){l.d.reorderLayer(t().mapId,e,n)},setOrToggleLayerVisibility:function(e,n){l.d.setOrToggleMapLayerVisibility(t().mapId,e,n)},setMapKeyboardPanInteractions:function(e){l.d.setMapKeyboardPanInteractions(t().mapId,e)},setZoom:function(e,n){l.d.zoom(t().mapId,e,n)},setInteraction:function(e){l.d.setInteraction(t().mapId,e)},setRotation:function(e){l.d.rotate(t().mapId,e)},zoomToExtent:function(e,n){return l.d.zoomToExtent(t().mapId,e,n)},zoomToInitialExtent:function(){return l.d.zoomToInitialExtent(t().mapId)},zoomToGeoLocatorLocation:function(e,n){return l.d.zoomToGeoLocatorLocation(t().mapId,e,n)},zoomToMyLocation:function(e){return l.d.zoomToMyLocation(t().mapId,e)},transformPoints:function(e,n){return s.M.transformPoints(e,"EPSG:".concat(t().mapState.currentProjection),"EPSG:".concat(n))},setClickCoordinates:function(e){return l.d.setClickCoordinates(t().mapId,e)},setFixNorth:function(e){t().mapState.setterActions.setFixNorth(e)},setOverlayClickMarkerRef:function(e){var n=t().mapState.overlayClickMarker;void 0!==n&&n.setElement(e)},setOverlayNorthMarkerRef:function(e){var n=t().mapState.overlayNorthMarker;void 0!==n&&n.setElement(e)}},setterActions:{setMapChangeSize:function(n,r){e({mapState:d(d({},t().mapState),{},{size:n,scale:r})})},setMapLoaded:function(n){e({mapState:d(d({},t().mapState),{},{mapLoaded:n})})},setAttribution:function(n){e({mapState:d(d({},t().mapState),{},{attribution:n})})},setInteraction:function(n){e({mapState:d(d({},t().mapState),{},{interaction:n})})},setZoom:function(n){e({mapState:d(d({},t().mapState),{},{zoom:n})})},setRotation:function(n){e({mapState:d(d({},t().mapState),{},{rotation:n})})},setOverlayClickMarker:function(n){e({mapState:d(d({},t().mapState),{},{overlayClickMarker:n})})},setOverlayNorthMarker:function(n){e({mapState:d(d({},t().mapState),{},{overlayNorthMarker:n})})},setProjection:function(n){e({mapState:d(d({},t().mapState),{},{currentProjection:n})})},setMapMoveEnd:function(n,r,i,o,a){e({mapState:d(d({},t().mapState),{},{centerCoordinates:n,northArrowElement:{degreeRotation:i,isNorthVisible:o},scale:a})}),t().mapState.setterActions.setClickMarker(void 0),t().appState.isCrosshairsActive&&t().mapState.setterActions.setPointerPosition(r)},setPointerPosition:function(n){e({mapState:d(d({},t().mapState),{},{pointerPosition:n})})},setClickCoordinates:function(n){e({mapState:d(d({},t().mapState),{},{clickCoordinates:n})})},setFixNorth:function(n){e({mapState:d(d({},t().mapState),{},{fixNorth:n})})},setHighlightedFeatures:function(n){e({mapState:d(d({},t().mapState),{},{highlightedFeatures:n})})},setVisibleLayers:function(n){e({mapState:d(d({},t().mapState),{},{visibleLayers:n})})},setOrderedLayerInfo:function(n){e({mapState:d(d({},t().mapState),{},{orderedLayerInfo:(0,r.A)(n)})})},setHoverable:function(e,n){var r=t().mapState.orderedLayerInfo,i=r.find((function(t){return t.layerPath===e}));i&&(i.hoverable=n,t().mapState.setterActions.setOrderedLayerInfo(r))},setQueryable:function(e,n){var r=t().mapState.orderedLayerInfo,i=r.find((function(t){return t.layerPath===e}));i&&(i.queryable=n,n&&(i.hoverable=n),t().mapState.setterActions.setOrderedLayerInfo(r))},setClickMarker:function(n){e({mapState:d(d({},t().mapState),{},{clickMarker:n?{lnglat:n}:void 0})})},setHoverFeatureInfo:function(n){e({mapState:d(d({},t().mapState),{},{hoverFeatureInfo:n})})}}}}var p=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.attribution}))},f=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.centerCoordinates}))},g=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.clickMarker}))},m=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.clickCoordinates}))},y=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.fixNorth}))},v=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.interaction}))},b=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.hoverFeatureInfo}))},x=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.mapLoaded}))},w=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.northArrow}))},A=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.northArrowElement}))},S=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.orderedLayerInfo}))},C=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.overviewMap}))},E=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.overviewMapHideZoom}))},_=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.pointerPosition}))},k=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.currentProjection}))},T=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.rotation}))},O=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.scale}))},P=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.size}))},I=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.visibleLayers}))},M=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.zoom}))},L=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.actions}))}},47521:(e,t,n)=>{"use strict";n.d(t,{eC:()=>c,lT:()=>u});var r=n(64426),i=n(71129),o=n(58643),a=n(35587);function s(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 l(e){for(var t=1;t{"use strict";n.d(t,{Gg:()=>d,ky:()=>u,mU:()=>c});var r=n(64426),i=n(71129),o=n(58643),a=n(6106);function s(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 l(e){for(var t=1;t{"use strict";n.d(t,{A6:()=>b,NP:()=>c,OZ:()=>p,Oz:()=>l,PK:()=>v,XP:()=>h,bd:()=>d,dY:()=>m,ex:()=>f,g_:()=>u,m:()=>y,r4:()=>g});var r=n(64426),i=n(71129),o=n(58643);function a(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 s(e){for(var t=1;t{"use strict";n.d(t,{dE:()=>I,Ic:()=>M,gU:()=>L,e4:()=>R,Ni:()=>j});var r=n(64426),i=n(30538),o=n(55756),a=n(71129),s=n(17004);var l=n(92288),c=n(77914),u=n(55950),d=n(98030),h=n(6106),p=n(80084),f=n(38890),g=n(35587),m=new l.K,y=new c.h,v=new u.K,b=new d.d,x=new f.F,w=new h.t,A=new p.U,S=new g.Z;var C=n(15247),E=n(68179),_=n(60854),k=n(79913);function T(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 O(e){for(var t=1;t{const n=(0,i.useRef)(r.count);return(0,i.useEffect)((()=>{n.current+=1,n.current===r.count+1&&(n.current-=1,t.setState(e))})),null};if(o.displayName=`((${e})) devtool`,"undefined"==typeof document)return;if(!n){let t=document.getElementById(`simple-zustand-devtools-${e}`);t||(t=document.createElement("div"),t.id=`simple-zustand-devtools-${e}`),document.body.appendChild(t),n=t}const a=(0,s.H)(n),l=e=>{e&&(a.render(i.createElement(o,Object.assign({},e))),r.count+=1)};l(t.getState()),t.subscribe(l)}("getViewStore-".concat(e.mapId),c)}},M=function(e){return P.getState().stores[null!=e?e:"unknown"]},L=function(e){return(0,k.whenThisThen)((function(){return M(e)}))},R=function(e){var t,n,r,i;t=M(e),m.destroy(),y.destroy(),v.destroy(),b.destroy(),x.destroy(),null!==(n=t.getState().mapConfig.footerBar)&&void 0!==n&&n.tabs.core.includes("time-slider")&&w.destroy(),null!==(r=t.getState().mapConfig.footerBar)&&void 0!==r&&r.tabs.core.includes("geochart")&&A.destroy(),null!==(i=t.getState().mapConfig.corePackages)&&void 0!==i&&i.includes("swiper")&&S.destroy(),delete P.getState().stores[e]},j=function(){var e=(0,i.useContext)(E.w).mapId;return P.getState().stores[null!=e?e:"unknown"]}},82810:(e,t,n)=>{"use strict";var r=n(65868),i=n(43331);const o=JSON.parse('{"general":{"add":"Add","close":"Close","exit":"Exit","layers":"Layers","name":"Name","open":"Open","remove":"Remove","view":"View","openFullscreen":"Open in fullscreen","closeFullscreen":"Close fullscreen","openGuide":"Open guide","guide":"Guide","fullScreen":"Full screen"},"mapnav":{"arianavbar":"Vertical button group for map navigation","fullscreen":"Full screen","home":"Reset to initial view","zoomIn":"Zoom in","zoomOut":"Zoom out","coordinates":"Toggle coordinates format","scale":"Toggle between scale and resolution","location":"Zoom to my location"},"mapctrl":{"rotation":{"resetRotation":"Reset Rotation","fixedNorth":"Fix North"},"mouseposition":{"east":"E","west":"W","north":"N","south":"S"},"overviewmap":{"toggle":"Toggle overview map","error":"Error loading overview map"},"attribution":{"defaultnrcan":"© His Majesty the King in Right of Canada, as represented by the Minister of Natural Resources","tooltip":"Attribution"},"crosshair":"Use Arrows, + and - keys to navigate the map, Enter to select and Shift+Arrow Up or Down to modify the pan value."},"appbar":{"export":"Export","notifications":"Notification","no_notifications_available":"No notifications available","layers":"Layers","share":"Share","version":"About GeoView","repoLink":"GitHub"},"legend":{"title":"Legend","removeLayer":"Remove layer","zoomTo":"Zoom to layer","addLayer":"Add layer","sortLayers":"Sort layers","sort":"Sort","layerError":"Layer has an error...","layerLoading":"Layer is loading...","tableDetails":"Table details","refreshLayer":"Refresh layer","highlightLayer":"Highlight layer","subLayersCount":"{count} sublayers","itemsCount":"{count} of {totalCount} classes","legendInstructions":"Legend Instructions","noLayersAdded":"No layers added to the map","noLayersAddedDescription":"Add layers to the map by clicking on the \'Layers\' button and adding the layers you want to display."},"layers":{"title":"Layers","subLayersList":"Sublayers list","finish":"Finish","continue":"Continue","back":"Back","or":"or","dropzone":"Drop here","upload":"Choose a file","drop":"Drop the file to upload","url":"Enter URL or Geocore id","layer":"Layer","stepOne":"Upload a file or enter URL/Geocore id","stepTwo":"Select format","stepThree":"Configure layer","stepFour":"Enter name","service":"Service type","name":"Name","layerSelect":"Select layer(s)","errorEmpty":"cannot be empty","errorNone":"No file or source added","errorFile":"Only geoJSON, CSV and GeoPackage files can be used","errorServer":"source is not valid","errorNotLoaded":"An error occured when loading the layer","errorProj":"does not support current map projection","only":"only","opacity":"Opacity","opacityMax":"Maximum from parent","reloadLayer":"Reload layer","visibilityIsAlways":"Visibility is always enabled","toggleVisibility":"Toggle visibility","toggleCollapse":"Toggle collapse","querying":"Querying","layerAdded":"Layer __param__ added","instructionsNoLayersTitle":"No layers visible","instructionsNoLayersBody":"Add visible layers on the map."},"details":{"title":"Details","zoomTo":"Zoom to feature","select":"Highlight feature on map","externalLink":"External Link","feature":"feature","clickOnMap":"Click on map","nextFeatureBtn":"Next feature","previousFeatureBtn":"Previous feature","clearAllfeatures":"Clear all feature highlights","keepFeatureSelected":"Keep feature highlighted","featureDetailsTitle":"Feature {count} of {total}","featureDetailModalTitle":"Feature Detail"},"lightbox":{"next":"Next","previous":"Previous","close":"Close","download":"Download"},"keyboardnav":{"start":"Skip after map element","end":"Skip before map element","focusdialog":{"title":"Keyboard navigation","main":"If enable, we will keep focus locked on the viewer.\\nTo exit, press CTRL + Q","button":{"enable":"Enable","skip":"Skip"}}},"validation":{"layer":{"loadfailed":"Layer [__param__] failed to load on map __param__.","notfound":"The sublayer __param__ of the layer __param__ does not exist on the server","createtwice":"Can not execute the createGeoViewRasterLayers method twice for the layer __param__ on map __param__","usedtwice":"Duplicate use of layer identifier [__param__] on map __param__","multipleUUID":"GeoCore layers may only have one GeoCore id per layer"},"schema":{"notFound":"A schema error was found, check the console to see what is wrong.","wrongPath":"Cannot find schema ([__param__])"},"changeDisplayLanguageLayers":"Layers can not be relaoded because the configuration does not support this language","changeDisplayLanguage":"Only \'en\' and \'fr\' are supported","changeDisplayTheme":"Theme unsupported","changeDisplayProjection":"Projection unsupported","invalidConfig":"Invalid JSON config, default configuration applied."},"exportModal":{"title":"Export map as PNG","cancelBtn":"Cancel","exportBtn":"Export","exportTitle":"Title","approx":"approx"},"geolocator":{"title":"Geolocator","search":"Search","errorMessage":"No matches found for","province":"Province","category":"Category","clearFilters":"Clear filters","noFilter":"No filter"},"hovertooltip":{"alticon":"Selected feature icon"},"dataTable":{"title":"Data Table","icon":"ICON","zoom":"ZOOM","details":"DETAILS","exportBtn":"Export","jsonExportBtn":"Download GeoJSON","downloadAsCSV":"Download CSV","filterMap":"Filter map","stopFilterMap":"Stop filter map","rowsSelected":"{rowsSelected} of {totalRows} row(s) selected","rowsFiltered":"{rowsFiltered} of {totalRows} row(s) filtered","enlargeBtn":"Enlarge","reduceBtn":"Reduce","features":"feature(s)","featureFiltered":"features filtered","images":"Images","close":"Close","noFeatures":"unknown..."},"geoChart":{"noChartAvailable":"Click on the map on a layer with chart"},"guide":{"title":"Guide","errorMessage":"Sorry, unable to find the help document!"},"footerBar":{"focusToMap":"Focus to map","focusToFooter":"Focus to footer","resizeTooltip":"Resize","noTab":"No tab"}}'),a=JSON.parse('{"general":{"add":"Ajouter","close":"Fermer","layers":"Couches","name":"Nom","exit":"Sortir","open":"Ouvrir","remove":"Retirer","view":"Vue","openFullscreen":"Ouvrir en plein écran","closeFullscreen":"Fermer le plein écran","openGuide":"Ouvrir le guide","guide":"Guide","fullScreen":"Plein écran"},"mapnav":{"arianavbar":"Groupe de buttons vertical pour navigation sur la carte","fullscreen":"Plein écran","home":"Retour à la vue initiale","zoomIn":"Zoom avant","zoomOut":"Zoom arrière","coordinates":"Basculer le format des coordonnées","scale":"Basculer entre l\'échelle et la résolution","location":"Zoom sur ma position"},"mapctrl":{"rotation":{"resetRotation":"Réinitialiser la rotation","fixedNorth":"Nord fixe"},"mouseposition":{"east":"E","west":"O","north":"N","south":"S"},"overviewmap":{"toggle":"Basculer la carte d\'aperçu","error":"Erreur lors du chargement de la carte d\'aperçu"},"attribution":{"defaultnrcan":"© Sa Majesté le Roi du Chef du Canada, représentée par le ministre des Ressources naturelle","tooltip":"Attribution"},"crosshair":"Utiliser les touches fléchées, + et - pour naviguer sur la carte, Entrée pour sélectionner et Shift+fléchées Haut et Bas pour modfier le déplacement."},"appbar":{"export":"Exporter","notifications":"Notification","no_notifications_available":"Aucune notification disponible","layers":"Couches","share":"Partager","version":"À propos de GéoView","repoLink":"GitHub"},"legend":{"title":"Légende","removeLayer":"Retirer la couche","zoomTo":"Zoom sur la couche","addLayer":"Ajouter une couche","sortLayers":"Trier les couches","sort":"Trier","layerError":"La couche a une erreur...","layerLoading":"La couche se charge...","tableDetails":"Table détaillée","refreshLayer":"Rafraîchir la couche","highlightLayer":"Couche mise en évidence","subLayersCount":"{count} sous-couches","itemsCount":"{count} sur {totalCount} classes","legendInstructions":"Legend Instructions","noLayersAdded":"Aucune couche ajoutée","noLayersAddedDescription":"Ajoutez des couches à la carte en cliquant sur le bouton \'Couches\' et en sélectionnant les couches que vous souhaitez afficher."},"layers":{"title":"Couches","subLayersList":"Liste des sous-couches","finish":"Terminer","continue":"Continuer","back":"Retour","or":"ou","dropzone":"Déposer ici","upload":"Choisir un fichier","drop":"Déposer le fichier à télécharger","url":"Entrer l\'URL ou l\'identifiant Geocore","layer":"Couche","stepOne":"Ajouter un fichier ou entrer l\'URL/ l\'identifiant Geocore","stepTwo":"Sélectionner le format","stepThree":"Configurer la couche","stepFour":"Entrer le nom","service":"Type de service","name":"Nom","layerSelect":"Sélectionner couche(s)","errorEmpty":"ne peut être vide","errorNone":"Pas de fichier ou de source ajouté","errorFile":"Seuls les fichiers geoJSON, CSV et GeoPackage peuvent être utilisés","errorServer":"source n\'est pas valide","errorNotLoaded":"Une erreur s\'est produite lors du chargement de la couche","errorProj":"ne prend pas en charge la projection cartographique actuelle","only":"seulement","opacity":"Opacité","opacityMax":"Maximum du parent","reloadLayer":"Recharger la couche","visibilityIsAlways":"La visibilité est toujours activée","toggleVisibility":"Basculer la visibilité","toggleCollapse":"Basculer la fermeture","querying":"Requête en cours","layerAdded":"Couche __param__ ajoutée","instructionsNoLayersTitle":"Aucune couche visible","instructionsNoLayersBody":"Ajoutez des couches visibles sur la carte."},"details":{"title":"Détails","zoomTo":"Zoom à l\'élément","select":"Sélectionner l\'élément sur la carte","externalLink":"Lien externe","feature":"élément","clickOnMap":"Cliquer sur la carte","nextFeatureBtn":"Élément suivant","previousFeatureBtn":"Élément précédent","clearAllfeatures":"Déselctionner tout les Élément","keepFeatureSelected":"Garder l\'élément sélectionné","featureDetailsTitle":"Élément {count} sur {total}","featureDetailModalTitle":"Détails de l\'élément"},"lightbox":{"next":"Prochaine","previous":"Précédente","close":"Fermer","download":"Télécharger"},"keyboardnav":{"start":"Aller après l\'élément carte","end":"Aller avant l\'élément carte","focusdialog":{"title":"Navigation clavier","main":"Si activé, le focus sera verrouillé sur le visualiseur. \\nPour sortir, appuyez sur CTRL + Q.","button":{"enable":"Activer","skip":"Sauter"}}},"validation":{"layer":{"loadfailed":"Le chargement de la couche [__param__] a échoué sur la carte __param__.","notfound":"La sous couche __param__ de la couche __param__ n\'existe pas sur le sereur","createtwice":"On ne peut exécuter deux fois la méthode createGeoViewRasterLayers pour la couche __param__ sur la carte __param__","usedtwice":"Utilisation en double de l\'identifiant de couche [__param__] sur la carte __param__","multipleUUID":"Les couches GeoCore ne peuvent avoir qu\'un seul identifiant par couche."},"schema":{"notFound":"Une erreur de schéma a été trouvée, vérifiez la console pour voir ce qui ne va pas.","wrongPath":"Impossible de trouver le schéma ([__param__])"},"changeDisplayLanguageLayers":"Les couches ne peuvent être chargée(s) de nouveau car la configuration ne supporte pas ce langage","changeDisplayLanguage":"Seulement \'en\' et \'fr\' sont supporées","changeDisplayTheme":"Theme non supporté","changeDisplayProjection":"Projection non supportée","invalidConfig":"Configuration JSON non valide, configuration par défaut appliquée."},"exportModal":{"title":"Exporter la carte en PNG","cancelBtn":"Annuler","exportBtn":"Exporter","exportTitle":"Titre","approx":"approx"},"geolocator":{"title":"Géolocalisation","search":"Texte à rechercher","errorMessage":"Aucun résultat correspondant à","province":"Province","category":"Catégorie","clearFilters":"Effacer les filtres","noFilter":"Aucun Filtre"},"hovertooltip":{"alticon":"Symbol de l\'élément sélectionné"},"dataTable":{"title":"Données","icon":"ICÔNE","zoom":"ZOOM","details":"DÉTAILS","exportBtn":"Exporter","jsonExportBtn":"Télécharger GeoJSON","downloadAsCSV":"Télécharger CSV","filterMap":"Filtrer la carte","stopFilterMap":"Arrêt des filtres","rowsSelected":"{rowsSelected} sur {totalRows} ligne(s) sélectionnée(s)","rowsFiltered":"{rowsFiltered} sur {totalRows} ligne(s) filtrée(s)","enlargeBtn":"Agrandir","reduceBtn":"Réduire","features":"Élément(s)","featureFiltered":"élément filtré(s)","images":"Images","close":"Fermer","noFeatures":"inconnue..."},"geochart":{"noChartAvailable":"Cliquer sur une couche de la carte qui contient un graphique"},"guide":{"title":"Guide","errorMessage":"Désolé, impossible de trouver le document d\'aide!"},"footerBar":{"focusToMap":"Aller à la carte","focusToFooter":"Aller au pied de page","resizeTooltip":"Redimensionner","noTab":"Pas d\'onglet"}}');var s=n(60854);r.Ay.use(i.initReactI18next).init({debug:!1,lng:"en",fallbackLng:["en","fr"],supportedLngs:["en","fr"],interpolation:{escapeValue:!1},resources:{en:{translation:o},fr:{translation:a}},react:{useSuspense:!0}}).catch((function(e){s.vF.logPromiseFailed("in init in translation/i18n",e)}))},76262:(e,t,n)=>{"use strict";n.d(t,{KX:()=>i,NK:()=>o});var r=n(31625);n(58643);function i(e){return e}function o(e){if(!(e instanceof Object)||e instanceof Array)throw new Error("Can't convert parameter to TypeJsonObject! typeof = ".concat((0,r.A)(e)));return e}},23222:(e,t,n)=>{"use strict";n.d(t,{z:()=>x});var r=n(43994),i=n(70640),o=n(32814),a=n(59615),s=n.n(a);function l(e,t,n){c(e,t),t.set(e,n)}function c(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function u(e,t){return e.get(h(e,t))}function d(e,t,n){return e.set(h(e,t),n),n}function h(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var p=new WeakMap,f=new WeakMap,g=new WeakMap,m=new WeakMap,y=new WeakMap,v=new WeakMap,b=new WeakSet,x=function(){return(0,o.A)((function e(t){var n,r;if((0,i.A)(this,e),c(n=this,r=b),r.add(n),l(this,p,void 0),l(this,f,void 0),l(this,g,void 0),l(this,m,void 0),l(this,y,void 0),l(this,v,void 0),t<=0)throw new Error("workersCount must be positive");d(f,this,t),d(p,this,t),d(g,this,[]),d(m,this,[]),h(b,this,_).call(this)}),[{key:"withLock",value:(t=(0,r.A)(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h(b,this,C).call(this);case 2:return e.abrupt("return",h(b,this,w).call(this,t));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"withLockRunAndForget",value:(e=(0,r.A)(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h(b,this,C).call(this);case 2:h(b,this,w).call(this,t);case 3:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"awaitTerminate",value:function(){return u(p,this)0)){var e=function(){},t=new Promise((function(t){e=t}));return u(g,this).push(e),t}d(p,this,u(p,this)-1)}function E(){var e=h(b,this,S).call(this);if(e.length){var t=e.pop();t&&t()}else if(d(p,this,u(p,this)+1),u(p,this)>=u(f,this)){var n=u(y,this);h(b,this,_).call(this),n()}}function _(){var e=function(){};d(v,this,new Promise((function(t){e=t}))),d(y,this,e)}},68709:(e,t,n)=>{"use strict";n.d(t,{O:()=>Y});var r=n(31625),i=n(70640),o=n(32814),a=n(58839),s=n.n(a),l=n(79950),c=n.n(l),u=n(30560),d=n(78643),h=n(12764),p=n(98178),f=n(10454),g=n(52375),m=n(78752),y=n(55373),v=n(12358),b=n(38509),x=n(71587),w=n(48660),A=n(76262),S=n(85813),C=n(21838),E=n(60854),_=n(79913);const k=JSON.parse('{"$id":"https://cgpv/schema","$schema":"http://json-schema.org/draft-07/schema#","title":"GeoView Core Config Schema","type":"object","version":1,"comments":"Configuration for GeoView core packages, each packages manages it own schema. It correspond to the TypeMapFeaturesInstance type.","additionalProperties":false,"definitions":{"TypeLocalizedString":{"additionalProperties":false,"minProperties":1,"type":"object","properties":{"en":{"type":"string","description":"The English version of the string."},"fr":{"type":"string","description":"The French version of the string. "}}},"TypeFeatureInfoLayerConfig":{"additionalProperties":false,"type":"object","properties":{"queryable":{"type":"boolean","default":true,"description":"Allow querying. Default = false."},"nameField":{"$ref":"#/definitions/TypeLocalizedString","description":"The display field (English/French) of the layer. If it is not present the viewer will make an attempt to find the first valid field."},"outfields":{"$ref":"#/definitions/TypeLocalizedString","description":"A comma separated list of attribute names (English/French) that should be requested on query (all by default)."},"fieldTypes":{"type":"string","description":"A comma separated list of types. Type at index i is associated to the variable at index i."},"aliasFields":{"$ref":"#/definitions/TypeLocalizedString","description":"A comma separated list of attribute names (English/French) that should be use for alias. If empty, no alias will be set if not found."}},"required":["queryable"]},"TypeFeatureInfoNotQueryable":{"additionalProperties":false,"type":"object","properties":{"queryable":{"type":"boolean","const":false,"description":"Do not allow querying."}},"required":["queryable"]},"TypeStrokeSymbolConfig":{"minProperties":1,"additionalProperties":false,"type":"object","description":"Stroke style for vector features.","properties":{"color":{"type":"string"},"lineStyle":{"enum":["dash","dash-dot","dash-dot-dot","dot","longDash","longDash-dot","null","shortDash","shortDash-dot","shortDash-dot-dot","solid"]},"width":{"type":"number"}}},"TypeLineStringVectorConfig":{"additionalProperties":false,"type":"object","properties":{"type":{"enum":["lineString"]},"stroke":{"$ref":"#/definitions/TypeStrokeSymbolConfig"}},"required":["type","stroke"]},"TypePolygonVectorConfig":{"additionalProperties":false,"type":"object","properties":{"type":{"enum":["filledPolygon"]},"color":{"type":"string"},"stroke":{"$ref":"#/definitions/TypeStrokeSymbolConfig"},"paternSize":{"type":"number","description":"Distance between patern lines. Default = 8"},"paternWidth":{"type":"number","description":"Patern line width.default = 1."},"fillStyle":{"enum":["solid","backwardDiagonal","cross","diagonalCross","forwardDiagonal","horizontal","null","vertical"],"description":"Kind of filling for vector features. Default = solid. "}},"required":["type","stroke"]},"TypeSimpleSymbolVectorConfig":{"additionalProperties":false,"type":"object","properties":{"type":{"enum":["simpleSymbol"]},"rotation":{"type":"number","description":"Symbol rotation in radians."},"color":{"type":"string"},"stroke":{"$ref":"#/definitions/TypeStrokeSymbolConfig"},"size":{"type":"number"},"offset":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2},"symbol":{"enum":["circle","+","diamond","square","triangle","X","star"]}},"required":["type","symbol"]},"TypeIconSymbolVectorConfig":{"additionalProperties":false,"type":"object","properties":{"type":{"enum":["iconSymbol"]},"mimeType":{"type":"string"},"src":{"type":"string"},"width":{"type":"integer","description":"Icon width in pixel."},"height":{"type":"integer","description":"Icon height in pixel."},"rotation":{"type":"number","description":"Icon rotation in radians."},"opacity":{"type":"number","minimum":0,"maximum":1,"default":1},"offset":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2},"crossOrigin":{"type":"string","description":"The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer."}},"required":["type","mimeType","src"]},"TypeSimpleStyleConfig":{"additionalProperties":false,"type":"object","properties":{"styleId":{"type":"string"},"styleType":{"enum":["simple"]},"label":{"type":"string"},"settings":{"$ref":"#/definitions/TypeKindOfVectorSettings"}},"required":["styleType","label","settings"]},"TypeUniqueValueStyleConfig":{"additionalProperties":false,"type":"object","properties":{"styleId":{"type":"string"},"styleType":{"enum":["uniqueValue"]},"defaultLabel":{"type":"string","description":"Label used if field/value association is not found."},"defaultVisible":{"type":"boolean","description":"Flag used to show/hide features associated to the default label (default: true)."},"defaultSettings":{"$ref":"#/definitions/TypeKindOfVectorSettings","description":"Settings used if field/value association is not found."},"fields":{"type":"array","items":{"type":"string"},"minItems":1},"uniqueValueStyleInfo":{"$ref":"#/definitions/TypeUniqueValueStyleInfo"}},"required":["styleType","fields","uniqueValueStyleInfo"]},"TypeUniqueValueStyleInfo":{"type":"array","items":{"additionalProperties":false,"type":"object","properties":{"label":{"type":"string"},"visible":{"type":"boolean","description":"Flag used to show/hide features associated to the label (default: true)."},"values":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"minItems":1},"settings":{"$ref":"#/definitions/TypeKindOfVectorSettings"}}},"minItems":1,"required":["label","values","options"]},"TypeClassBreakStyleConfig":{"additionalProperties":false,"type":"object","properties":{"styleId":{"type":"string"},"styleType":{"enum":["classBreaks"]},"defaultLabel":{"type":"string","description":"Label used if field/value association is not found."},"defaultVisible":{"type":"boolean","description":"Flag used to show/hide features associated to the default label (default: true)."},"defaultSettings":{"$ref":"#/definitions/TypeKindOfVectorSettings","description":"Settings used if field/value association is not found."},"field":{"type":"string"},"classBreakStyleInfo":{"$ref":"#/definitions/TypeClassBreakStyleInfo"}},"required":["styleType","field","classBreakStyleInfo"]},"TypeClassBreakStyleInfo":{"additionalProperties":false,"type":"array","items":{"additionalProperties":false,"type":"object","properties":{"label":{"type":"string"},"visible":{"type":"boolean","description":"Flag used to show/hide features associated to the label (default: true)."},"minValue":{"oneOf":[{"type":"string"},{"type":"number"}]},"maxValue":{"oneOf":[{"type":"string"},{"type":"number"}]},"settings":{"$ref":"#/definitions/TypeKindOfVectorSettings"}}},"minItems":1,"required":["label","minValue","maxValue","settings"]},"TypeKindOfVectorSettings":{"oneOf":[{"$ref":"#/definitions/TypeLineStringVectorConfig"},{"$ref":"#/definitions/TypePolygonVectorConfig"},{"$ref":"#/definitions/TypeSimpleSymbolVectorConfig"},{"$ref":"#/definitions/TypeIconSymbolVectorConfig"}]},"TypeStyleSettings":{"oneOf":[{"$ref":"#/definitions/TypeSimpleStyleConfig"},{"$ref":"#/definitions/TypeUniqueValueStyleConfig"},{"$ref":"#/definitions/TypeClassBreakStyleConfig"}]},"TypeStyleConfig":{"additionalProperties":false,"minProperties":1,"type":"object","properties":{"Point":{"$ref":"#/definitions/TypeStyleSettings"},"LineString":{"$ref":"#/definitions/TypeStyleSettings"},"Polygon":{"$ref":"#/definitions/TypeStyleSettings"}}},"TypeLayerControls":{"additionalProperties":false,"type":"object","properties":{"highlight":{"type":"boolean","default":true},"hover":{"type":"boolean","default":true},"opacity":{"type":"boolean","default":true},"query":{"type":"boolean","default":true},"remove":{"type":"boolean","default":true},"table":{"type":"boolean","default":true},"visibility":{"type":"boolean","default":true},"zoom":{"type":"boolean","default":true}},"description":"Which UI controls are available."},"TypeLayerStates":{"additionalProperties":false,"type":"object","properties":{"visible":{"type":"boolean","default":true,"description":"Initial visibility setting."},"opacity":{"type":"number","minimum":0,"maximum":1,"default":1,"description":"Initial opacity setting."},"hoverable":{"type":"boolean","description":"Is the layer hoverable."},"queryable":{"type":"boolean","description":"Is the layer queryable."}},"description":"Which UI controls are available."},"TypeLayerInitialSettings":{"additionalProperties":false,"type":"object","properties":{"controls":{"$ref":"#/definitions/TypeLayerControls","description":"The status of various controls for the layer (available/unavailable)."},"bounds":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"description":"The geographic bounding box that contains all the layer\'s features."},"extent":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"description":"The extent that constrains the view. Called with [minX, minY, maxX, maxY] extent coordinates."},"minZoom":{"type":"integer","minimum":0,"maximum":50,"description":"The minimum view zoom level (exclusive) above which this layer will be visible."},"maxZoom":{"type":"integer","minimum":0,"maximum":50,"description":"The maximum view zoom level (inclusive) above which this layer will be visible."},"className":{"type":"string","description":"A CSS class name to set to the layer element."},"states":{"$ref":"#/definitions/TypeLayerStates","description":"The status of initial states for the layer."}}},"TypeVectorSourceFormats":{"enum":["GeoJSON","EsriJSON","KML","WFS","featureAPI","GeoPackage","CSV"],"description":"The feature format used by the XHR feature loader when access path is set."},"TypeVectorSourceInitialConfig":{"additionalProperties":false,"type":"object","properties":{"dataAccessPath":{"$ref":"#/definitions/TypeLocalizedString","description":"The path (English/French) to reach the data to display. If not specified, metadataAccessPath will be assigned to it."},"postSettings":{"type":"object","properties":{"header":{"type":"object"},"data":{"type":"object"}}},"format":{"$ref":"#/definitions/TypeVectorSourceFormats"},"dataProjection":{"type":"string","description":"The projection code of the source. Used only for GeoJSON format. Default value is EPSG:4326. "},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"strategy":{"enum":["all","bbox"],"default":"all","description":"The loading strategy to use. By default an all strategy is used, a one-off strategy which loads all features at once."},"separator":{"type":"string","description":"The character used to separate columns of csv file"}}},"TypeSourceImageWmsInitialConfig":{"additionalProperties":false,"type":"object","properties":{"dataAccessPath":{"$ref":"#/definitions/TypeLocalizedString","description":"The path (English/French) to reach the data to display. If not specified, metadatAccessPath will be assigne dto it."},"crossOrigin":{"type":"string","description":"The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer."},"projection":{"type":"integer","description":"Spatial Reference EPSG code supported (https://epsg.io/). We support Web Mercator and Lambert Conical Conform Canada."},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"serverType":{"$ref":"#/definitions/TypeOfServer","description":"The type of the remote WMS server. The default value is mapserver."},"style":{"oneOf":[{"type":"string","description":"Single style to apply"},{"type":"array","items":{"type":"string"},"description":"Array of style to choose."}]}}},"TypeOfServer":{"enum":["mapserver","geoserver","qgis"],"description":"The type of the remote WMS server. The default value is mapserver."},"TypeSourceImageStaticInitialConfig":{"additionalProperties":false,"type":"object","properties":{"dataAccessPath":{"$ref":"#/definitions/TypeLocalizedString","description":"The path (English/French) to reach the data to display. If not specified, metadatAccessPath will be assigne dto it."},"crossOrigin":{"type":"string","description":"The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer."},"projection":{"type":"integer","description":"Spatial Reference EPSG code supported (https://epsg.io/). We support Web Mercator and Lambert Conical Conform Canada."},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoNotQueryable"},"extent":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"description":"The extent of the static image. Called with [minX, minY, maxX, maxY] extent coordinates."}}},"TypeSourceImageEsriInitialConfig":{"additionalProperties":false,"type":"object","properties":{"dataAccessPath":{"$ref":"#/definitions/TypeLocalizedString","description":"The path (English/French) to reach the data to display. If not specified, metadatAccessPath will be assigne dto it."},"crossOrigin":{"type":"string","description":"The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer."},"projection":{"type":"integer","description":"Spatial Reference EPSG code supported (https://epsg.io/). We support Web Mercator and Lambert Conical Conform Canada."},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"format":{"$ref":"#/definitions/TypeEsriFormatParameter"},"transparent":{"type":"boolean","default":true,"description":"If true, the image will be exported with the background color of the map set as its transparent color. Only the .png and .gif formats support transparency."}}},"TypeEsriFormatParameter":{"enum":["png","jpg","gif","svg"],"default":"png","description":"The format of the exported image. The default format is png."},"TypeSourceTileInitialConfig":{"additionalProperties":false,"properties":{"dataAccessPath":{"$ref":"#/definitions/TypeLocalizedString","description":"The path (English/French) to reach the data to display. If not specified, metadatAccessPath will be assigne dto it."},"crossOrigin":{"type":"string","description":"The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer."},"projection":{"type":"integer","description":"Spatial Reference EPSG code supported (https://epsg.io/). We support Web Mercator and Lambert Conical Conform Canada."},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoNotQueryable"},"tileGrid":{"$ref":"#/definitions/TypeTileGrid"}}},"TypeTileGrid":{"additionalProperties":false,"type":"object","properties":{"extent":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"description":"The extent that constrains the view. Called with [minX, minY, maxX, maxY] extent coordinates."},"origin":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"The tile grid origin, i.e. where the x and y axes meet ([z, 0, 0]). Tile coordinates increase left to right and downwards. If not specified, extent must be provided."},"resolutions":{"type":"array","items":{"type":"number"},"description":"Resolutions. The array index of each resolution needs to match the zoom level. This means that even if a minZoom is configured, the resolutions array will have a length of maxZoom + 1."},"tileSize":{"type":"array","minItems":2,"maxItems":2,"items":{"type":"number"},"default":[256,256],"description":"The tile grid origin, i.e. where the x and y axes meet ([z, 0, 0]). Tile coordinates increase left to right and downwards. If not specified, extent must be provided."}},"required":["origin","resolutions"]},"TypeVectorLayerEntryConfig":{"additionalProperties":false,"type":"object","properties":{"schemaTag":{"enum":["CSV","GeoJSON","esriFeature","ogcWfs","ogcFeature","GeoPackage"]},"entryType":{"enum":["vector"]},"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."},"layerId":{"type":"string","description":"The id of the layer to display on the map."},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"layerFilter":{"type":"string","description":"Filter to apply on feature of this layer."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree."},"source":{"$ref":"#/definitions/TypeVectorSourceInitialConfig"},"style":{"$ref":"#/definitions/TypeStyleConfig"},"not":{"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}}},"required":["schemaTag","entryType","layerId"]},"TypeVectorTileLayerEntryConfig":{"additionalProperties":false,"type":"object","description":"Layer sources providing vector data divided into a tile grid.","properties":{"schemaTag":{"enum":["not used yet"]},"entryType":{"enum":["vector-tile"]},"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."},"layerId":{"type":"string","description":"The id of the layer to display on the map."},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"layerFilter":{"type":"string","description":"Filter to apply on feature of this layer."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree."},"source":{"$ref":"#/definitions/TypeVectorTileSourceInitialConfig","description":"Information used to configure the source of a vector tile layer."},"style":{"$ref":"#/definitions/TypeStyleConfig"},"not":{"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}}},"required":["schemaTag","entryType","layerId"]},"TypeVectorTileSourceInitialConfig":{"additionalProperties":false,"type":"object","description":"Layer sources providing vector data divided into a tile grid.","properties":{"dataAccessPath":{"$ref":"#/definitions/TypeLocalizedString","description":"The path (English/French) to reach the data to display. If not specified, metadatAccessPath will be assigne dto it."},"format":{"enum":["GeoJSON","EsriJSON","KML","WFS","MVT","featureAPI"],"description":"The feature format used by the XHR feature loader when access path is set."},"dataProjection":{"type":"string","description":"The projection code of the source. Used only for GeoJSON format. Default value is EPSG:4326."},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"tileGrid":{"$ref":"#/definitions/TypeTileGrid"}}},"TypeOgcWmsLayerEntryConfig":{"additionalProperties":false,"type":"object","properties":{"schemaTag":{"enum":["ogcWms"]},"entryType":{"enum":["raster-image"]},"layerId":{"type":"string","description":"The id of the layer to display on the map."},"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"layerFilter":{"type":"string","description":"Filter to apply on feature of this layer."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree."},"source":{"$ref":"#/definitions/TypeSourceImageWmsInitialConfig"},"style":{"$ref":"#/definitions/TypeStyleConfig"},"not":{"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}}},"required":["schemaTag","entryType","layerId"]},"TypeEsriDynamicLayerEntryConfig":{"additionalProperties":false,"type":"object","properties":{"schemaTag":{"enum":["esriDynamic"]},"entryType":{"enum":["raster-image"]},"layerId":{"type":"string","description":"The id of the layer to display on the map."},"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"layerFilter":{"type":"string","description":"Filter to apply on feature of this layer."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree."},"source":{"$ref":"#/definitions/TypeSourceImageEsriInitialConfig"},"style":{"$ref":"#/definitions/TypeStyleConfig"},"not":{"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}}},"required":["schemaTag","entryType","layerId"]},"TypeEsriImageLayerEntryConfig":{"additionalProperties":false,"type":"object","properties":{"schemaTag":{"enum":["esriImage"]},"entryType":{"enum":["raster-image"]},"layerId":{"type":"string","description":"The id of the layer to display on the map."},"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"layerFilter":{"type":"string","description":"Filter to apply on feature of this layer."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree."},"source":{"$ref":"#/definitions/TypeSourceImageEsriInitialConfig"},"style":{"$ref":"#/definitions/TypeStyleConfig"},"not":{"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}}},"required":["schemaTag","entryType","layerId"]},"TypeImageStaticLayerEntryConfig":{"additionalProperties":false,"type":"object","properties":{"schemaTag":{"enum":["imageStatic"]},"entryType":{"enum":["raster-image"]},"layerId":{"type":"string","description":"The id of the layer to display on the map."},"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree."},"source":{"$ref":"#/definitions/TypeSourceImageStaticInitialConfig"},"not":{"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}}},"required":["schemaTag","entryType","layerId"]},"TypeTileLayerEntryConfig":{"additionalProperties":false,"type":"object","properties":{"schemaTag":{"enum":["ogcWms","xyzTiles","vectorTiles"]},"entryType":{"enum":["raster-tile"]},"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."},"layerId":{"type":"string","description":"The id of the layer to display on the map."},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer entry at creation time. Initial settings are inherited from the parent in the configuration tree."},"source":{"$ref":"#/definitions/TypeSourceTileInitialConfig"},"not":{"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}}},"required":["schemaTag","entryType","layerId"]},"TypeLayerEntryType":{"enum":["vector","vector-tile","raster-tile","raster-image","geoCore"],"description":"Layer entry data type."},"TypeLayerGroupEntryConfig":{"additionalProperties":false,"type":"object","description":"Entry used to define a layer Group.","properties":{"entryType":{"enum":["group"]},"layerId":{"type":"string","description":"The id of the layer group to display on the map."},"not":{"layerPathEnding":{"type":"string","description":"The ending element of the layer configuration path."}},"layerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer group (English/French)."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the layer group entries at creation time. Initial settings are inherited from the parent in the configuration tree."},"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The list of layer entry configurations to use from the GeoView layer group."}},"required":["entryType","layerId","listOfLayerEntryConfig"]},"TypeLayerEntryConfig":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeVectorTileLayerEntryConfig"},{"$ref":"#/definitions/TypeVectorLayerEntryConfig"},{"$ref":"#/definitions/TypeOgcWmsLayerEntryConfig"},{"$ref":"#/definitions/TypeEsriDynamicLayerEntryConfig"},{"$ref":"#/definitions/TypeEsriImageLayerEntryConfig"},{"$ref":"#/definitions/TypeTileLayerEntryConfig"}]},"TypeListOfOgcWmsLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeOgcWmsLayerEntryConfig"}]}},"TypeListOfImageStaticLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeImageStaticLayerEntryConfig"}]}},"TypeListOfXyzTilesLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeTileLayerEntryConfig"}]}},"TypeListOfEsriDynamicLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeEsriDynamicLayerEntryConfig"}]}},"TypeListOfEsriFeatureLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeVectorLayerEntryConfig"}]}},"TypeListOfEsriImageLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeEsriImageLayerEntryConfig"}]}},"TypeListOfGeoJSONLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeVectorLayerEntryConfig"}]}},"TypeListOfOgcWfsLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeVectorLayerEntryConfig"}]}},"TypeListOfOgcFeatureLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeVectorLayerEntryConfig"}]}},"TypeListOfGeoPackageLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeVectorLayerEntryConfig"}]}},"TypeListOfCsvLayerEntryConfig":{"description":"This type is used recursively by the IsValidTypeListOfLayerEntryConfig method coded in config-validation.ts file. It completes the validation of the list of layer entry config.","type":"array","minItems":1,"additionalProperties":false,"items":{"oneOf":[{"$ref":"#/definitions/TypeLayerGroupEntryConfig"},{"$ref":"#/definitions/TypeCsvLayerEntryConfig"}]}},"TypeListOfLayerEntryConfig":{"type":"array","minItems":1},"TypeMapConfig":{"additionalProperties":false,"type":"object","properties":{"basemapOptions":{"$ref":"#/definitions/TypeBasemapOptions"},"interaction":{"$ref":"#/definitions/TypeInteraction"},"listOfGeoviewLayerConfig":{"$ref":"#/definitions/TypeListOfGeoviewLayerConfig"},"viewSettings":{"$ref":"#/definitions/TypeViewSettings"},"highlightColor":{"$ref":"#/definitions/TypeHighlightColors"},"extraOptions":{"type":"object","description":"Additional options used for OpenLayers map options"}},"required":["basemapOptions","interaction","viewSettings"]},"TypeBasemapOptions":{"additionalProperties":false,"type":"object","properties":{"basemapId":{"$ref":"#/definitions/TypeBasemapId"},"shaded":{"type":"boolean","default":true,"description":"Enable or disable shaded basemap (if basemap id is set to shaded then this should be false)."},"labeled":{"type":"boolean","default":true,"description":"Enable or disable basemap labels"}},"required":["basemapId","shaded","labeled"]},"TypeBasemapId":{"enum":["transport","osm","simple","nogeom","shaded"],"default":"transport","description":"Id of the basemap to use."},"TypeInteraction":{"enum":["static","dynamic"],"default":"dynamic","description":"If map is dynamic (pan/zoom) or static to act as a thumbnail (no nav bar)."},"TypeHighlightColors":{"enum":["black","white","red","green"],"default":"black","description":"Color to use for feature highlights."},"TypeListOfGeoviewLayerConfig":{"description":"List of GeoView Layers in the order which they should be added to the map.","type":"array","additionalProperties":false,"items":{"anyOf":[{"$ref":"#/definitions/TypeGeoviewLayerConfig"},{"$ref":"#/definitions/TypeGeoCoreLayerConfig"}]}},"TypeGeoviewLayerConfig":{"additionalProperties":false,"type":"object","properties":{"geoviewLayerId":{"type":"string","description":"The id of the layer for referencing within the viewer (does not relate directly to any external service). The id will have the language extension (id-\'lang\')."},"geoviewLayerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"metadataAccessPath":{"$ref":"#/definitions/TypeLocalizedString","description":"The GeoView layer access path (English/French)."},"geoviewLayerType":{"$ref":"#/definitions/TypeGeoviewLayerType","description":"Type of GeoView layer."},"serviceDateFormat":{"type":"string","description":"Date format used by the service endpoint."},"externalDateFormat":{"type":"string","description":"Date format used by the getFeatureInfo to output date variable."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the GeoView layer at creation time."},"listOfLayerEntryConfig":{"$ref":"#/definitions/TypeListOfLayerEntryConfig","description":"The layer entries to use from the GeoView layer."}},"required":["geoviewLayerType","listOfLayerEntryConfig"]},"TypeGeoCoreLayerConfig":{"additionalProperties":false,"type":"object","properties":{"geoviewLayerId":{"type":"string","description":"The id of the layer for referencing within the viewer (does not relate directly to any external service). The id will have the language extension (id-\'lang\')."},"geoviewLayerType":{"$ref":"#/definitions/TypeGeoCoreLayerType","description":"Type of GeoCore layer."},"geoviewLayerName":{"$ref":"#/definitions/TypeLocalizedString","description":"The display name of the layer (English/French). If it is not present the viewer will make an attempt to scrape this information."},"initialSettings":{"$ref":"#/definitions/TypeLayerInitialSettings","description":"Initial settings to apply to the GeoView layer at creation time."}},"required":["geoviewLayerId","geoviewLayerType"]},"TypeGeoviewLayerType":{"type":"string","items":{"enum":["CSV","esriDynamic","esriFeature","esriImage","GeoJSON","GeoPackage","xyzTiles","ogcFeature","ogcWfs","ogcWms","imageStatic","vectorTiles"]},"description":"Type of GeoView layer."},"TypeGeoCoreLayerType":{"type":"string","items":{"enum":["geoCore"]},"description":"Type of GeoCore layer."},"TypeViewSettings":{"additionalProperties":false,"type":"object","properties":{"initialView":{"$ref":"#/definitions/TypeInitialViewSettings","description":"Settings for the initial viewing area of the map."},"enableRotation":{"type":"boolean","default":true,"description":"Enable rotation. If false, a rotation constraint that always sets the rotation to zero is used."},"maxExtent":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"default":[-125,30,-60,89],"description":"The extent that constrains the view. Called with [minX, minY, maxX, maxY] extent coordinates."},"minZoom":{"type":"integer","description":"The minimum zoom level used to determine the resolution constraint. If not set, will use default from basemap.","minimum":0,"maximum":50},"maxZoom":{"type":"integer","description":"The maximum zoom level used to determine the resolution constraint. If not set, will use default from basemap.","minimum":0,"maximum":50},"projection":{"$ref":"#/definitions/TypeValidMapProjectionCodes"},"rotation":{"type":"integer","minimum":-360,"maximum":360,"default":0,"description":"The initial rotation for the view in degree (positive rotation clockwise, 0 means North). Will be converted to radiant by the viewer."}}},"TypeInitialViewSettings":{"additionalProperties":false,"type":"object","maxItems":1,"properties":{"zoomAndCenter":{"$ref":"#/definitions/TypeZoomAndCenter"},"extent":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"description":"The extent for the initial view. Called with [minX, minY, maxX, maxY] extent coordinates."},"layerIds":{"type":"array","minItems":1,"items":{"type":"string"},"description":"ID(s) of layer(s) to use as initial map focus."}}},"TypeZoomAndCenter":{"type":"array","prefixItems":[{"type":"number","minimum":0,"maximum":28,"default":3.5,"description":"Initial map zoom level. Zoom level are define by the basemap zoom levels. Levels between whole numbers are supported to fine tune initial view."},[{"type":"number","minimum":-160,"maximum":160,"default":-90,"description":"Initial longitude value for map center."},{"type":"number","minimum":-80,"maximum":80,"default":60,"description":"Initial latitude value for map center."}]],"description":"Initial zoom and center coordinates to set map view."},"TypeValidMapProjectionCodes":{"enum":[3978,3857],"default":3978,"description":"Spatial Reference EPSG code supported (https://epsg.io/). We support Web Mercator and Lambert Conical Conform Canada."},"TypeNavBarProps":{"type":"array","uniqueItems":true,"items":{"enum":["zoom","fullscreen","home","location"]},"default":["zoom","fullscreen","home"],"description":"Controls available on the navigation bar.","minItems":0},"TypeFooterBarProps":{"type":"object","additionalProperties":false,"properties":{"tabs":{"type":"object","description":"Available tabs","properties":{"core":{"type":"array","items":{"type":"string","enum":["legend","layers","details","data-table","time-slider","geochart"]},"minItems":1,"default":["legend","layers","details","data-table"],"uniqueItems":true,"description":"Default core tabs of footer bar to use. NOTE: config from packages for time-slider and geochart are in the same loaction as core config (<>-<>.json)."},"custom":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"defaultTabs":{"type":"string"},"contentHTML":{"type":"string"}}},"minItems":0,"default":[],"uniqueItems":true,"description":"Custom tabs of footer bar to use"}},"additionalProperties":false},"collapsed":{"type":"boolean","default":false,"description":"State of footer bar when map is loaded (expanded or collapsed)"}},"required":["tabs"]},"TypeAppBarProps":{"type":"object","additionalProperties":false,"properties":{"tabs":{"type":"object","description":"Available tabs - controls","properties":{"core":{"type":"array","items":{"type":"string","enum":["geolocator","export","basemap-panel","geochart","details","legend","guide"]},"minItems":0,"default":["geolocator"],"uniqueItems":true,"description":"Default core tabs of app-bar to use. NOTE: config from packages like geochart are in the same loaction as core config (<>-<>.json)."}},"additionalProperties":false}},"required":["tabs"]},"TypeOverviewMapProps":{"type":"object","additionalProperties":false,"properties":{"hideOnZoom":{"type":"number","minimum":0,"maximum":10,"default":0,"description":"Minimum zoom level to show overview map"}}},"TypeMapComponents":{"type":"array","uniqueItems":true,"items":{"enum":["overview-map","north-arrow"]},"default":["overview-map","north-arrow"],"description":"Core components to initialize on viewer load. The schema for those are inside this file.","minItems":0},"TypeMapCorePackages":{"type":"array","uniqueItems":true,"items":{"enum":["swiper"]},"default":[],"description":"Core map packages to initialize on viewer load. The schema for those are on their own package. NOTE: config from packages are in the same loaction as core config (<>-<>.json).","minItems":0},"TypeExternalPackages":{"type":"array","items":{"additionalProperties":false,"type":"object","properties":{"name":{"type":"string","description":"External Package name. The name must be identical to the window external package object to load."},"configUrl":{"type":"string","description":"The url to the external package configuration setting. The core package will read the configuration and pass it inside the package."}},"required":["name"]},"default":[],"description":"List of external packages to initialize on viewer load.","minItems":0},"TypeServiceUrls":{"additionalProperties":false,"type":"object","description":"Service endpoint urls","properties":{"geocoreUrl":{"type":"string","default":"https://geocore.api.geo.ca","description":"Service end point to access API for layers specification (loading and plugins parameters). By default it is GeoCore but can be another endpoint with similar output."},"proxyUrl":{"type":"string","description":"An optional proxy to be used for dealing with same-origin issues. URL must either be a relative path on the same server or an absolute path on a server which sets CORS headers."},"geolocator":{"type":"string","description":"Service end point to access geo location of searched value."}},"required":["geocoreUrl"]},"TypeDisplayLanguage":{"enum":["en","fr"],"description":"Display languages supported."},"TypeLocalizedLanguages":{"enum":["en","fr"],"description":"ISO 639-1 code indicating the languages supported by the configuration file."},"TypeListOfLocalizedLanguages":{"type":"array","uniqueItems":true,"items":{"$ref":"#/definitions/TypeLocalizedLanguages"},"default":["en","fr"],"description":"ISO 639-1 code indicating the languages supported by the configuration file. It will use value(s) provided here to access bilangual configuration nodes. For value(s) provided here, each bilingual configuration node MUST provide a value.","minItems":1},"TypeValidVersions":{"enum":["1.0"],"description":"The schema version that can be used to validate the configuration file. The schema should enumerate the list of versions accepted by this version of the viewer."},"TypeMapFeaturesInstance":{"description":"The map features configuration. This type is used by the IsValidTypeMapFeaturesInstance method coded in config-validation.ts file. It does the validation down to the list of layer entry config.","additionalProperties":false,"type":"object","properties":{"mapId":{"type":"string"},"map":{"$ref":"#/definitions/TypeMapConfig"},"theme":{"enum":["dark","light","geo.ca"],"default":"dark","description":"Theme style the viewer."},"navBar":{"$ref":"#/definitions/TypeNavBarProps"},"footerBar":{"$ref":"#/definitions/TypeFooterBarProps"},"appBar":{"$ref":"#/definitions/TypeAppBarProps"},"overviewMap":{"$ref":"#/definitions/TypeOverviewMapProps"},"components":{"$ref":"#/definitions/TypeMapComponents"},"corePackages":{"$ref":"#/definitions/TypeMapCorePackages"},"externalPackages":{"$ref":"#/definitions/TypeExternalPackages"},"serviceUrls":{"$ref":"#/definitions/TypeServiceUrls"},"schemaVersionUsed":{"$ref":"#/definitions/TypeValidVersions"}},"required":["map"]}}}');var T,O=n(74490),P=n(91777),I=n(45380),M=n(22769),L=n(39225),R=n(97752),j=n(51397),F=n(16535),D=n(91195),N=n(27918),z=n(80995),V=n(5715),B=n(66372),$=n(86784);function G(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function U(e,t,n){return e.set(W(e,t),n),n}function W(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var q=new WeakMap,H=new WeakSet,Y=function(){function e(){var t,n;(0,i.A)(this,e),G(t=this,n=H),n.add(t),function(e,t,n){G(e,t),t.set(e,n)}(this,q,void 0),U(q,this,(0,_.generateId)())}return(0,o.A)(e,[{key:"mapId",get:function(){return t=this,(e=q).get(W(e,t));var e,t},set:function(e){U(q,this,e)}},{key:"validateMapConfigAgainstSchema",value:function(t){var n=new(s())({strict:!1,allErrors:!1});n.compile(k);for(var r=!0,i=0;i{"use strict";n.d(t,{d:()=>m});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(64426),u=n(85182);function d(e,t,n){return t=(0,s.A)(t),(0,o.A)(e,h()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function p(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}function f(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var g=new WeakMap,m=function(e){function t(e){var n;return(0,r.A)(this,t),n=d(this,t,[e]),(0,c.A)(n,"layerIdExtension",void 0),p(n,g,void 0),(0,c.A)(n,"filterEquation",void 0),(0,c.A)(n,"legendFilterIsOff",!1),(0,c.A)(n,"source",void 0),Object.assign(n,e),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"getMetadata",value:function(){return t=this,(e=g).get(f(e,t));var e,t}},{key:"setMetadata",value:function(e){var t,n,r;n=this,r=e,(t=g).set(f(t,n),r)}},{key:"onSerialize",value:function(){var e=(0,a.A)((0,s.A)(t.prototype),"onSerialize",this).call(this);return e.layerIdExtension=this.layerIdExtension,e.layerName=this.layerName,e.initialSettings=this.initialSettings,e}}])}(u.c)},85182:(e,t,n)=>{"use strict";n.d(t,{c:()=>v});var r,i=n(70640),o=n(32814),a=n(64426),s=n(16221),l=n(48660),c=n(60854);function u(e,t,n){d(e,t),t.set(e,n)}function d(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){return e.get(p(e,t))}function p(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var f=new WeakMap,g=new WeakMap,m=new WeakMap,y=new WeakSet,v=function(){function e(t){var n,r;(0,i.A)(this,e),d(n=this,r=y),r.add(n),(0,a.A)(this,"_layerId",""),(0,a.A)(this,"_layerPath",""),(0,a.A)(this,"_layerStatus","newInstance"),(0,a.A)(this,"layerIdExtension",void 0),(0,a.A)(this,"layerName",void 0),(0,a.A)(this,"schemaTag",void 0),(0,a.A)(this,"entryType",void 0),(0,a.A)(this,"geoviewLayerConfig",{}),(0,a.A)(this,"initialSettings",{}),(0,a.A)(this,"isMetadataLayerGroup",void 0),(0,a.A)(this,"parentLayerConfig",void 0),u(this,f,!1),u(this,g,[]),u(this,m,[]),Object.assign(this,t),this.geoviewLayerConfig?this._layerPath=b.call(e,t):c.vF.logError("Couldn't calculate layerPath because geoviewLayerConfig has an invalid value")}return(0,o.A)(e,[{key:"layerId",get:function(){return this._layerId},set:function(t){this._layerId=t,this._layerPath=b.call(e,this)}},{key:"layerPath",get:function(){return this._layerPath=b.call(e,this),this._layerPath}},{key:"layerStatus",get:function(){return this._layerStatus},set:function(t){if("loaded"===t&&!(0,l.KD)(this)&&!this.isGreaterThanOrEqualTo("loading")&&!h(f,this))return r=this,i=!0,void(n=f).set(p(n,r),i);var n,r,i;this.isGreaterThanOrEqualTo(t)||(this._layerStatus=t,p(y,this,x).call(this,{layerStatus:t})),"processed"===t&&h(f,this)&&(this.layerStatus="loaded"),"loaded"===this._layerStatus&&this.parentLayerConfig&&e.allLayerStatusAreGreaterThanOrEqualTo("loaded",[this.parentLayerConfig])&&(this.parentLayerConfig.layerStatus="loaded")}},{key:"isGreaterThanOrEqualTo",value:function(e){return A._[this.layerStatus]>=A._[e]}},{key:"serialize",value:function(){return this.onSerialize()}},{key:"onSerialize",value:function(){return{layerIdExtension:this.layerIdExtension,schemaTag:this.schemaTag,entryType:this.entryType,layerStatus:this.layerStatus,isMetadataLayerGroup:this.isMetadataLayerGroup}}},{key:"addDefaultStyle",value:function(e,t){var n=this;n.style||(n.style={}),n.style[e]=t,p(y,this,w).call(this,{geometryType:e,style:t})}},{key:"onLayerStatusChanged",value:function(e){s.A.onEvent(h(g,this),e)}},{key:"offLayerStatusChanged",value:function(e){s.A.offEvent(h(g,this),e)}},{key:"onLayerStyleChanged",value:function(e){s.A.onEvent(h(m,this),e)}},{key:"offLayerStyleChanged",value:function(e){s.A.offEvent(h(m,this),e)}}],[{key:"allLayerStatusAreGreaterThanOrEqualTo",value:function(e,t){var n=this;return!t.find((function(t){return(0,l.KD)(t)?!n.allLayerStatusAreGreaterThanOrEqualTo(e,t.listOfLayerEntryConfig):!t.isGreaterThanOrEqualTo(e||"newInstance")}))}}])}();function b(e,t){var n=t;return void 0===n&&(n=void 0===e.layerIdExtension?e.layerId:"".concat(e.layerId,".").concat(e.layerIdExtension)),e.parentLayerConfig?p(r,this,b).call(this,e.parentLayerConfig,"".concat(e.parentLayerConfig.layerId,"/").concat(n)):"".concat(e.geoviewLayerConfig.geoviewLayerId,"/").concat(n)}function x(e){s.A.emitEvent(this,h(g,this),e)}function w(e){s.A.emitEvent(this,h(m,this),e)}r=v;var A={_:{newInstance:10,registered:20,processing:30,processed:40,loading:50,loaded:60,error:70}}},66372:(e,t,n)=>{"use strict";n.d(t,{x:()=>h});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(48660);function u(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,d()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}var h=function(e){function t(e){var n;return(0,i.A)(this,t),n=u(this,t,[e]),(0,l.A)(n,"entryType",c.hJ.GROUP),(0,l.A)(n,"listOfLayerEntryConfig",[]),Object.assign(n,e),n}return(0,s.A)(t,e),(0,r.A)(t)}(n(85182).c)},80995:(e,t,n)=>{"use strict";n.d(t,{q:()=>f});var r=n(70640),i=n(32814),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(85813),u=n(48660);function d(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 h(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,p()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var f=function(e){function t(e){var n;return(0,r.A)(this,t),n=h(this,t,[e]),(0,l.A)(n,"schemaTag",c.y6.ESRI_DYNAMIC),(0,l.A)(n,"entryType",u.hJ.RASTER_IMAGE),(0,l.A)(n,"layerFilter",void 0),(0,l.A)(n,"style",void 0),Object.assign(n,e),n.source||(n.source={}),n.source.dataAccessPath||(n.source.dataAccessPath=function(e){for(var t=1;t{"use strict";n.d(t,{Q:()=>f});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(85813),u=n(48660);function d(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 h(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,p()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var f=function(e){function t(e){var n;if((0,i.A)(this,t),n=h(this,t,[e]),(0,l.A)(n,"schemaTag",c.y6.ESRI_IMAGE),(0,l.A)(n,"entryType",u.hJ.RASTER_IMAGE),(0,l.A)(n,"layerFilter",void 0),(0,l.A)(n,"style",void 0),Object.assign(n,e),Number.isNaN(n.layerId))throw new Error("The layer entry with layerId equal to ".concat(n.layerPath," must be an integer string"));return n.source||(n.source={}),n.source.dataAccessPath||(n.source.dataAccessPath=function(e){for(var t=1;t{"use strict";n.d(t,{V:()=>p});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(85813),u=n(48660);function d(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,h()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var p=function(e){function t(e){var n;if((0,i.A)(this,t),n=d(this,t,[e]),(0,l.A)(n,"schemaTag",c.y6.IMAGE_STATIC),(0,l.A)(n,"entryType",u.hJ.RASTER_IMAGE),(0,l.A)(n,"layerFilter",void 0),Object.assign(n,e),!n.source.dataAccessPath)throw new Error("source.dataAccessPath on layer entry ".concat(n.layerPath," is mandatory for GeoView layer ").concat(n.geoviewLayerConfig.geoviewLayerId," of type ").concat(n.geoviewLayerConfig.geoviewLayerType));return n}return(0,s.A)(t,e),(0,r.A)(t)}(n(60133).d)},91195:(e,t,n)=>{"use strict";n.d(t,{Q:()=>g});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(85813),u=n(48660),d=n(60133),h=n(79913);function p(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,f()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}var g=function(e){function t(e){var n;return(0,i.A)(this,t),n=p(this,t,[e]),(0,l.A)(n,"schemaTag",c.y6.WMS),(0,l.A)(n,"entryType",u.hJ.RASTER_IMAGE),(0,l.A)(n,"layerFilter",void 0),(0,l.A)(n,"style",void 0),Object.assign(n,e),n.source||(n.source={}),n.source.dataAccessPath||(n.source.dataAccessPath=(0,h.createLocalizedString)(""),".xml"!==n.geoviewLayerConfig.metadataAccessPath.en.slice(-4).toLowerCase()&&(n.source.dataAccessPath.en=n.geoviewLayerConfig.metadataAccessPath.en),".xml"!==n.geoviewLayerConfig.metadataAccessPath.fr.slice(-4).toLowerCase()&&(n.source.dataAccessPath.fr=n.geoviewLayerConfig.metadataAccessPath.fr)),n.source.serverType||(n.source.serverType="mapserver"),n}return(0,s.A)(t,e),(0,r.A)(t)}(d.d)},22769:(e,t,n)=>{"use strict";n.d(t,{E:()=>d});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426);function c(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,u()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}var d=function(e){function t(e){var n;if((0,i.A)(this,t),n=c(this,t,[e]),(0,l.A)(n,"style",void 0),(0,l.A)(n,"tileGrid",void 0),Object.assign(n,e),!e.source.dataAccessPath)throw new Error("source.dataAccessPath on layer entry ".concat(n.layerPath," is mandatory for GeoView layer ").concat(n.geoviewLayerConfig.geoviewLayerId," of type ").concat(n.geoviewLayerConfig.geoviewLayerType));return n}return(0,s.A)(t,e),(0,r.A)(t)}(n(30177).q)},16535:(e,t,n)=>{"use strict";n.d(t,{m:()=>u});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096);function l(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,c()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}var u=function(e){function t(e){var n;if((0,i.A)(this,t),n=l(this,t,[e]),Object.assign(n,e),!n.source.dataAccessPath)throw new Error("source.dataAccessPath on layer entry ".concat(n.layerPath," is mandatory for GeoView layer ").concat(n.geoviewLayerConfig.geoviewLayerId," of type ").concat(n.geoviewLayerConfig.geoviewLayerType));return n}return(0,s.A)(t,e),(0,r.A)(t)}(n(30177).q)},30177:(e,t,n)=>{"use strict";n.d(t,{q:()=>h});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(48660);function u(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,d()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}var h=function(e){function t(e){var n;return(0,i.A)(this,t),n=u(this,t,[e]),(0,l.A)(n,"entryType",c.hJ.RASTER_TILE),Object.assign(n,e),n}return(0,s.A)(t,e),(0,r.A)(t)}(n(60133).d)},98208:(e,t,n)=>{"use strict";n.d(t,{T:()=>h});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(48660);function u(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,d()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}var h=function(e){function t(e){var n;return(0,i.A)(this,t),n=u(this,t,[e]),(0,l.A)(n,"entryType",c.hJ.VECTOR),(0,l.A)(n,"layerFilter",void 0),(0,l.A)(n,"style",void 0),Object.assign(n,e),n}return(0,s.A)(t,e),(0,r.A)(t)}(n(60133).d)},45380:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(98208),u=n(48660),d=n(12311);function h(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,p()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var f=function(e){function t(e){var n,r,o,a,s;if((0,i.A)(this,t),s=h(this,t,[e]),(0,l.A)(s,"valueSeparator",","),Object.assign(s,e),!(s.geoviewLayerConfig.metadataAccessPath||null!==(n=s.source)&&void 0!==n&&n.dataAccessPath))throw new Error("dataAccessPath is mandatory for GeoView layer ".concat(s.geoviewLayerConfig.geoviewLayerId," of type CSV when the metadataAccessPath is undefined."));if(void 0===s.entryType&&(s.entryType=u.hJ.VECTOR),"style"in s||(s.style=void 0),s.source||(s.source={format:"CSV",separator:","}),s.source.format||(s.source.format="CSV"),s.source.separator||(s.source.separator=","),!s.source.dataAccessPath){var c=s.geoviewLayerConfig.metadataAccessPath,p=c.en,f=c.fr;p=p.split("/").length>1?p.split("/").slice(0,-1).join("/"):"./",f=f.split("/").length>1?f.split("/").slice(0,-1).join("/"):"./",s.source.dataAccessPath={en:p,fr:f}}return null!==(r=s.source.dataAccessPath.en)&&void 0!==r&&r.startsWith("blob")&&(null===(o=s.source.dataAccessPath.en)||void 0===o||!o.endsWith("/"))||null!==(a=s.source.dataAccessPath.en)&&void 0!==a&&a.toUpperCase().endsWith(".CSV")||(s.source.dataAccessPath.en=s.source.dataAccessPath.en.endsWith("/")?"".concat(s.source.dataAccessPath.en).concat(s.layerId):"".concat(s.source.dataAccessPath.en,"/").concat(s.layerId),s.source.dataAccessPath.fr=s.source.dataAccessPath.fr.endsWith("/")?"".concat(s.source.dataAccessPath.fr).concat(s.layerId):"".concat(s.source.dataAccessPath.fr,"/").concat(s.layerId)),s.source.dataProjection||(s.source.dataProjection=d.M.PROJECTION_NAMES.LNGLAT),s}return(0,s.A)(t,e),(0,r.A)(t)}(c.T)},97752:(e,t,n)=>{"use strict";n.d(t,{h:()=>h});var r=n(64426),i=n(32814),o=n(70640),a=n(71149),s=n(99979),l=n(38096);function c(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 u(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,d()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}var h=function(e){function t(e){var n;if((0,o.A)(this,t),n=u(this,t,[e]),Object.assign(n,e),Number.isNaN(n.layerId))throw new Error("The layer entry with layerId equal to ".concat(n.layerPath," must be an integer string"));return"style"in n||(n.style=void 0),n.source||(n.source={format:"EsriJSON"}),n.source.format||(n.source.format="EsriJSON"),n.source.dataAccessPath||(n.source.dataAccessPath=function(e){for(var t=1;t{"use strict";n.d(t,{d:()=>p});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(98208),c=n(48660),u=n(12311);function d(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,h()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var p=function(e){function t(e){var n,r,o,a,s,l,h;if((0,i.A)(this,t),h=d(this,t,[e]),Object.assign(h,e),!(h.geoviewLayerConfig.metadataAccessPath||null!==(n=h.source)&&void 0!==n&&n.dataAccessPath))throw new Error("dataAccessPath is mandatory for GeoView layer ".concat(h.geoviewLayerConfig.geoviewLayerId," of type GeoJSON when the metadataAccessPath is undefined."));if(void 0===h.entryType&&(h.entryType=c.hJ.VECTOR),"style"in h||(h.style=void 0),h.source||(h.source={format:"GeoJSON"}),h.source.format||(h.source.format="GeoJSON"),!h.source.dataAccessPath){var p=h.geoviewLayerConfig.metadataAccessPath,f=p.en,g=p.fr;f=f.split("/").length>1?f.split("/").slice(0,-1).join("/"):"./",g=g.split("/").length>1?g.split("/").slice(0,-1).join("/"):"./",h.source.dataAccessPath={en:f,fr:g}}return null!==(r=h.source.dataAccessPath.en)&&void 0!==r&&r.startsWith("blob")&&(null===(o=h.source.dataAccessPath.en)||void 0===o||!o.endsWith("/"))||null!==(a=h.source.dataAccessPath.en)&&void 0!==a&&a.toUpperCase().endsWith(".JSON")||null!==(s=h.source.dataAccessPath.en)&&void 0!==s&&s.toUpperCase().endsWith(".GEOJSON")||null!==(l=h.source.dataAccessPath.en)&&void 0!==l&&l.toUpperCase().endsWith("=JSON")||(h.source.dataAccessPath.en=h.source.dataAccessPath.en.endsWith("/")?"".concat(h.source.dataAccessPath.en).concat(h.layerId):"".concat(h.source.dataAccessPath.en,"/").concat(h.layerId),h.source.dataAccessPath.fr=h.source.dataAccessPath.fr.endsWith("/")?"".concat(h.source.dataAccessPath.fr).concat(h.layerId):"".concat(h.source.dataAccessPath.fr,"/").concat(h.layerId)),h.source.dataProjection||(h.source.dataProjection=u.M.PROJECTION_NAMES.LNGLAT),h}return(0,s.A)(t,e),(0,r.A)(t)}(l.T)},51397:(e,t,n)=>{"use strict";n.d(t,{X:()=>p});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(98208),c=n(48660),u=n(12311);function d(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,h()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var p=function(e){function t(e){var n,r,o,a,s;if((0,i.A)(this,t),s=d(this,t,[e]),Object.assign(s,e),void 0===s.entryType&&(s.entryType=c.hJ.VECTOR),"style"in s||(s.style=void 0),s.source||(s.source={format:"GeoPackage"}),s.source.format||(s.source.format="GeoPackage"),!s.source.dataAccessPath){var l=s.geoviewLayerConfig.metadataAccessPath,h=l.en,p=l.fr;h=h.split("/").length>1?h.split("/").slice(0,-1).join("/"):"./",p=p.split("/").length>1?p.split("/").slice(0,-1).join("/"):"./",s.source.dataAccessPath={en:h,fr:p}}return null!==(n=s.source.dataAccessPath.en)&&void 0!==n&&n.startsWith("blob")&&(null===(r=s.source.dataAccessPath.en)||void 0===r||!r.endsWith("/"))||null!==(o=s.source.dataAccessPath.en)&&void 0!==o&&o.toLowerCase().endsWith(".gpkg")||(s.source.dataAccessPath.en=s.source.dataAccessPath.en.endsWith("/")?"".concat(s.source.dataAccessPath.en).concat(s.layerId):"".concat(s.source.dataAccessPath.en,"/").concat(s.layerId),s.source.dataAccessPath.fr=s.source.dataAccessPath.fr.endsWith("/")?"".concat(s.source.dataAccessPath.fr).concat(s.layerId):"".concat(s.source.dataAccessPath.fr,"/").concat(s.layerId)),null!==(a=s)&&void 0!==a&&null!==(a=a.source)&&void 0!==a&&a.dataProjection||(s.source.dataProjection=u.M.PROJECTION_NAMES.LNGLAT),s}return(0,s.A)(t,e),(0,r.A)(t)}(l.T)},91777:(e,t,n)=>{"use strict";n.d(t,{j:()=>f});var r=n(64426),i=n(32814),o=n(70640),a=n(71149),s=n(99979),l=n(38096),c=n(98208),u=n(12311);function d(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 h(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,p()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var f=function(e){function t(e){var n,i;return(0,o.A)(this,t),i=h(this,t,[e]),Object.assign(i,e),"style"in i||(i.style=void 0),i.source||(i.source={format:"featureAPI"}),null!==(n=i)&&void 0!==n&&null!==(n=n.source)&&void 0!==n&&n.format||(i.source.format="featureAPI"),i.source.dataAccessPath||(i.source.dataAccessPath=function(e){for(var t=1;t{"use strict";n.d(t,{q:()=>f});var r=n(64426),i=n(32814),o=n(70640),a=n(71149),s=n(99979),l=n(38096),c=n(98208),u=n(12311);function d(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 h(e,t,n){return t=(0,s.A)(t),(0,a.A)(e,p()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var f=function(e){function t(e){var n;return(0,o.A)(this,t),n=h(this,t,[e]),Object.assign(n,e),"style"in n||(n.style=void 0),n.source||(n.source={format:"WFS"}),n.source.format||(n.source.format="WFS"),n.source.dataAccessPath||(n.source.dataAccessPath=function(e){for(var t=1;t{"use strict";n.d(t,{$r:()=>u,Ax:()=>p,DF:()=>d,Dy:()=>r,Fz:()=>f,LK:()=>h,MK:()=>s,RI:()=>l,Tg:()=>a,Xl:()=>o,un:()=>i,vB:()=>g,xb:()=>c});var r="https://github.com/Canadian-Geospatial-Platform/geoview",i={url:"https://geo.ca/",text:"Geo.ca"},o=500,a=[90,-95],s=[100,100,100,100],l={NEW_INSTANCE:"newInstance",PROCESSING:"processing",LOADING:"loading",LOADED:"loaded",ERROR:"error"},c=["ArrowUp","ArrowRight","ArrowDown","ArrowLefts"],u=[].concat(c,["Space"]),d={LEGEND:"legend",DETAILS:"details",LAYERS:"layers",DATA_TABLE:"data-table",GUIDE:"guide",TIME_SLIDER:"time-slider",GEO_CHART:"geochart"},h={lessThanOrEqualTo:"<=",lessThan:"<",greaterThan:">",greaterThanOrEqualTo:">=",empty:"is null",notEmpty:"is not null",between:">",betweenInclusive:">=",equals:"=",notEquals:"<>"},p={greaterThan:"> date 'value'",greaterThanOrEqualTo:">= date 'value'",lessThan:"< date 'value'",lessThanOrEqualTo:"<= date 'value'",equals:"= date 'value'",empty:"is null",notEmpty:"is not null",notEquals:"<> date 'value'",between:"> date 'value'",betweenInclusive:">= date 'value'"},f={contains:"(filterId) like ('%value%')",startsWith:"(filterId) like ('value%')",endsWith:"(filterId) like ('%value')",empty:"(filterId) is null",notEmpty:"(filterId) is not null",equals:"filterId = 'value'",notEquals:"filterId <> 'value'"},g={APP_BAR:"appBar",FOOTER_BAR:"footerBar"}},34028:(e,t,n)=>{"use strict";n.d(t,{P:()=>E});var r=n(28249),i=n(31625),o=n(47361),a=n(70640),s=n(32814),l=n(78185),c=n.n(l),u=n(31770),d=n.n(u),h=n(75274),p=n.n(h),f=n(13246),g=n.n(f);n(20851),n(47658);function m(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}c().extend(p());var y=[[0,1,2,3],[0,1,2,3],["-","-","T","+","00:00"]],v={year:"YYYY",month:"YYYY-MM",day:"YYYY-MM-DD"},b={hour:"THHZ",minute:"THH:mmZ",second:"THH:mm:ssZ"},x={esriTimeUnitsHours:"H",esriTimeUnitsDays:"D",esriTimeUnitsWeeks:"W",esriTimeUnitsMonths:"M",esriTimeUnitsYears:"Y"};c().extend(d()),c().extend(p()),c().extend(g());var w="Invalid Date",A="Invalid Time Dimension Duration",S=function(e){return c()(e).isValid()},C=function(e){return c().isDuration(c().duration(e))},E=function(){function e(){(0,a.A)(this,e)}return(0,s.A)(e,null,[{key:"convertToLocal",value:function(e){if("string"==typeof e&&!S(e))throw new Error("".concat(w," (convertToLocal)"));return c()(e).local().format()}},{key:"formatDate",value:function(e,t){if("string"==typeof e&&!S(e))throw new Error("".concat(w," (convertToLocal)"));return c()(e).format(t)}},{key:"convertToUTC",value:function(e){return"string"!=typeof e||S(e)?c()(e).utc(!1).format():""}},{key:"format",value:function(e,t,n){if("string"==typeof e&&!S(e))throw new Error("".concat(w," (format)"));var r="".concat(v[t]).concat(void 0!==n?b[n]:"");return c()(e).utc(!1).format(r)}},{key:"convertToMilliseconds",value:function(e){if("string"==typeof e&&!S(e))throw new Error("".concat(w," (convertToMilliseconds)"));return c()(e).valueOf()}},{key:"convertMilisecondsToDate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DDTHH:mm:ss";return c()(e).utc(!1).format(t)}},{key:"extractDateFormat",value:function(e){if("string"==typeof e&&!S(e))throw new Error("".concat(w," (extractDateFormat)"));var t,n,r=e.split("T"),i=(0,o.A)(r,2),a=i[0],s=i[1];if(t=3===a.split("-").length?"day":2===a.split("-").length?"month":"year",s){var l=s.slice(0,8).split(":").length;return n=3===l?"second":2===l?"minute":"hour","".concat(v[t]).concat(b[n])}return v[t]}},{key:"createDimensionFromESRI",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.startTimeField,i=e.timeExtent,o=e.timeInterval,a=e.timeIntervalUnits,s="".concat(this.convertMilisecondsToDate(i[0]),"Z/").concat(this.convertMilisecondsToDate(i[1]),"Z").concat((t="",void 0!==a&&void 0!==o&&void 0!==x[a]&&(t="/P".concat(o).concat(x[a])),t)),l=this.createRangeOGC(s);return{field:r,default:l.range[l.range.length-1],unitSymbol:"",range:l,nearestValues:""===r?"absolute":"discrete",singleHandle:n}}},{key:"createDimensionFromOGC",value:function(e){var t="object"===(0,i.A)(e)?e:JSON.parse(e);return{field:t.name,default:t.default,unitSymbol:t.unitSymbol||"",range:this.createRangeOGC(t.values),nearestValues:!1!==t.nearestValues?"absolute":"discrete",singleHandle:!0}}},{key:"createRangeOGC",value:function(t){var n={type:"none",range:[]};if(t.split(",").length>1?n={type:"discrete",range:t.replace(/\s/g,"").split(",")}:!function(e){return 2===e.split("/").length}(t)?function(e){return 3===e.split("/").length}(t)&&(n={type:"discrete",range:m(e,this,_).call(this,t)}):n={type:"relative",range:m(e,this,k).call(this,t)},0===n.range.length)throw"Invalid Time Dimension";return n}},{key:"createDateLocaleTooltip",value:function(e,t){return c()(e).locale("".concat(t,"-CA")).format("".concat(e.split("T").length>1?"LLL":"LL"))}},{key:"getDateFragmentsOrder",value:function(e){var t=[-1,-1,-1,-1],n=[-1,-1,-1,-1],i=[],a=[t,n,i];if(e){var s=e.toUpperCase().replace(/Z/,"+00:00"),l=s,c=(0,r.A)(l.matchAll(/[[\]]/g));if(!(l.startsWith("Y")?[0,2]:[0,2,4]).includes(c.length))throw new Error('The string "'.concat(e,'" is an invalid date format.'));if(l=(l=(l=l.replace(/YYYY\[?[-/]MM\[?[-/]DD\[?[\sT]HH:MM:SS\[?[+-]\d\d:\d\d]?/,"")).replace(/\[?DD[-/]]?MM[-/]]?YYYY\[?[\sT]HH:MM:SS\[?[+-]\d\d:\d\d]?/,"")).replace(/MM[-/]DD[-/]YYYY\[?[\sT]HH:MM:SS[+-]\d\d:\d\d]?|(\[MM[-/]DD[-/]]|MM[-/]\[DD[-/]])YYYY\[[T\s]HH:MM:SS[+-]\d\d:\d\d]/,""))throw new Error('The string "'.concat(e,'" is an invalid date format.'));l=s;for(var u=0;u=0&&(n[t[r]]=r)})),f&&(t[3]=3,n[3]=3,i[4]=f.split(/[+-]/)[1]);for(var m=s.replace(/\[[YMDHMS\d\-+/\sT:]*\]|\[[\sTHMS:]*\]/g,"").split(/-|\/|\s|T|\+/g).length;m<4;m++)n[t[m]]=-1;return a}return y}},{key:"applyInputDateFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return e;var r=t[0],i=t[2],a=e.toUpperCase().replace("Z","+00:00").replaceAll(" ","T").split("T"),s=(0,o.A)(a,2),l=s[0],c=s[1];c||(c="00:00:00");var u=l.replaceAll("/","-").toUpperCase().split("-").map((function(e){return 1===e.length?"0".concat(e):e})),d=[];3===u.length?d=u:(u[0].length<3?d[r[1]]=u[0]:d[r[0]]=u[0],u[1]?u[1].length<3?d[r[1]]=u[1]:d[r[0]]=u[1]:d[r[1]]="01",d[r[2]]="01");var h="".concat(d[r[0]],"-").concat(d[r[1]],"-").concat(d[r[2]],"T").concat(c);return 19===h.length&&(h="".concat(h).concat(i[3]).concat(i[4])),h.endsWith("+00:00")?"Z"===e.slice(-1).toUpperCase()&&(h=h.replace("+00:00","Z")):(n&&(h="".concat(h.slice(0,19)).concat("+"===h.slice(19,20)?"-":"+").concat(h.slice(20))),h=this.convertToUTC(h)),h}},{key:"applyOutputDateFormat",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return e;if(t){var r=t[1],i=t[2],a=this.convertToUTC(e);"Z"===a.slice(-1).toUpperCase()&&(a="".concat(a.slice(0,-1),"+00:00"));var s="+"===i[3]?"-":"+",l=this.convertToUTC("".concat(a.toUpperCase().slice(0,-6)).concat(n?s:i[3]).concat(i[4])).split("T"),c=(0,o.A)(l,2),u=c[0],d=c[1],h=u.toUpperCase().split("-"),p="".concat(r[0]+1?"".concat(h[r[0]]):"");return p&&r[1]+1&&(p="".concat(p).concat(i[0])),r[1]+1&&(p="".concat(p).concat(h[r[1]])),p&&r[2]+1&&(p="".concat(p).concat(i[0])),r[2]+1&&(p="".concat(p).concat(h[r[2]])),r[3]+1&&(p="".concat(p).concat(i[2]).concat(d.slice(0,8))),p}return e}},{key:"deduceDateFormat",value:function(e){var t=null!==e?e.toUpperCase().replaceAll("/","-").replaceAll(" ","T"):"YYYY-MM-DD";return 4===(t=t.replace(/\d{4}/,"YYYY").replace(/^\d{1,2}(?=-\d{1,2}-YYYY)|((?<=^YYYY-\d-)|(?<=^YYYY-\d\d-))\d{1,2}/,"DD").replace(/(?<=^DD-)\d{1,2}(?=-YYYY)|(?<=^YYYY-)\d{1,2}(?=-DD)/,"MM").replace(/(?<=T)\d{1,2}/,"HH").replace(/(?<=THH:)\d{1,2}/,"MM").replace(/(?<=THH:MM:)\d{1,2}/,"SS")).length?t="".concat(t,"-MM-DDTHH:MM:SSZ"):7===t.length?t=t.startsWith("YYYY")?"".concat(t,"-DDTHH:MM:SSZ"):"DD-".concat(t,"THH:MM:SSZ"):10===t.length?t="".concat(t,"THH:MM:SSZ"):19===t.length&&(t="".concat(t,"Z")),t}}])}();function _(e){var t=e.split("/"),n=(0,o.A)(t,3),r=n[0],i=n[1],a=n[2];if(!S(r))throw new Error("".concat(w," (createAbsoluteInterval)"));if(!S(i))throw new Error("".concat(w," (createAbsoluteInterval)"));if(!C(a))throw A;var s="Z"===r.slice(-1).toUpperCase(),l=this.extractDateFormat(r),u=s?"".concat(c()(r).utc(!1).format(l).slice(0,-6),"Z"):c()(r).utc(!1).format(l),d=s?"".concat(c()(i).utc(!1).format(l).slice(0,-6),"Z"):c()(i).utc(!1).format(l),h=c().duration(a).asMilliseconds(),p=c().duration(h),f=[],g=0;f.push(u);do{var m=c()(f[g]).add(p).utc(!1).format(l);s&&(m="".concat(m.slice(0,-6),"Z")),f.push(m),31536e6===h&&f[g].slice(4,10)!==f[g+1].slice(4,10)&&(m=c()(f[g]).add(c().duration({milliseconds:316224e5})).utc(!1).format(l),s&&(m="".concat(m.slice(0,-6),"Z")),f[g+1]=m),g++}while(c()(f[f.length-1]).isBefore(d));return f.push(d),f}function k(e){var t=e.split("/"),n=(0,o.A)(t,2),r=n[0],i=n[1];if(!C(i)&&!S(i))throw A;if(!S(r))throw new Error("".concat(w," (createRelativeIntervale)"));var a=this.extractDateFormat(r),s=c().duration(i),l=c()(r).utc(!1).format(a),u=S(i)?c()(i):c()(r).add(s);return[l,c()(u).utc(!1).format(a)]}},60854:(e,t,n)=>{"use strict";n.d(t,{vF:()=>D});var r,i=n(70640),o=n(32814),a=n(64426),s=n(86973),l=n.n(s),c=function(e,t){try{var n=localStorage.getItem(e),r=Number(n);if(r&&!Number.isNaN(r))return r}catch(e){}return t};function u(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function d(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var h,p,f,g=1,m=2,y=3,v=4,b=5,x=6,w=8,A=9,S=10,C=20,E=30,_=40,k=50,T=!!c("GEOVIEW_LOG_ACTIVE"),O=(p=C,f=function(e,t){try{var n=localStorage.getItem(e);if(null!=n&&n.includes(","))return n.split(",").map((function(e){return Number(e.trim())})).filter((function(e){return!!e&&!Number.isNaN(e)}));var r=Number(n);if(r&&!Number.isNaN(r))return r}catch(e){}return t}(h="GEOVIEW_LOG_LEVEL"),void 0!==f?f:(localStorage.setItem(h,p.toString()),p)),P=new WeakSet,I=function(){return(0,o.A)((function e(t){(0,i.A)(this,e),u(this,P),(0,a.A)(this,"loggingLevel",void 0),(0,a.A)(this,"markers",{}),(0,a.A)(this,"trackers",{}),(0,a.A)(this,"trackerInterval",100),this.loggingLevel=t}),[{key:"logTraceDetailed",value:function(){var e;if(T){for(var t=arguments.length,n=new Array(t),r=0;r1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?s-1:0),c=1;c1?t-1:0),r=1;r=C||this.loggingLevel.includes(e):this.loggingLevel<=e}function L(e,t,n){for(var i,o=arguments.length,a=new Array(o>3?o-3:0),s=3;s1?n-1:0),o=1;o1?n-1:0),o=1;o{"use strict";n.r(t),n.d(t,{addUiComponent:()=>A,createGuideObject:()=>F,createLocalizedString:()=>h,delay:()=>L,escapeRegExp:()=>R,exportPNG:()=>_,findPropertyNameByRegex:()=>k,generateId:()=>m,getLocalizedMessage:()=>f,getLocalizedValue:()=>p,getScriptAndAssetURL:()=>g,getXMLHttpRequest:()=>w,isImage:()=>T,isJsonString:()=>b,parseJSONConfig:()=>E,removeCommentsFromJSON:()=>C,replaceParams:()=>y,sanitizeHtmlContent:()=>S,setAlphaColor:()=>v,stringify:()=>O,whenThisThen:()=>M,whenThisThenThat:()=>I,xmlToJson:()=>x});var r=n(43994),i=n(59615),o=n.n(i),a=n(17004),s=n(65868),l=n(17309),c=n.n(l),u=n(76262),d=n(60854);function h(e){return{en:e,fr:e}}function p(e,t){if(e)return e[t]}function f(e,t){return s.Ay.getFixedT(t)(e)}function g(){var e=document.getElementsByTagName("script"),t="";if(e&&e.length)for(var n=0;n0?e:(Date.now().toString(36)+Math.random().toString(36).substr(2,5)).toUpperCase()}function y(e,t){var n=t;return e.forEach((function(e){n=n.replace("__param__",e)})),n}function v(e,t){var n=e;return n[3]=t,n}function b(e){try{if(""===e)return!1;JSON.parse(e)}catch(t){return d.vF.logError("- Invalid JSON string. String passed to the JSON parser:",e,"- JSON Parser error:",t.message,"- See text above."),!1}return!0}function x(e){var t={};if(1===e.nodeType){var n=(0,u.KX)(e);if(n.attributes&&n.attributes.length>0){t["@attributes"]={};for(var r=0;r=400&&t("{}")},n.onerror=function(){t("{}")},n.send(null)}catch(e){t("{}")}}))}function A(e,t){var n=(0,a.H)(document.getElementById(e));return n.render(t),n}function S(e){return c()(e)}function C(e){return e.split(/(?3&&void 0!==arguments[3]?arguments[3]:1e4,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:100;P(e,t,n,new Date,r,i)}function M(e,t,n){return new Promise((function(r,i){I(e,r,i,t,n)}))}var L=function(e){return new Promise((function(t){setTimeout(t,e)}))};function R(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function j(e){return e.split("\n")[0].trim().split(" ").filter((function(e){return!e.startsWith("#")&&!e.startsWith("!")})).join(" ")}function F(e,t,n){return D.apply(this,arguments)}function D(){return(D=(0,r.A)(o().mark((function e(t,n,r){var i,a,s,l,c,u,h,p,f,g,m,y,v,b,x,w,A,S,C,E,_,k;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(r,"/locales/").concat(n,"/guide.md"));case 3:return i=e.sent,e.next=6,i.text();case 6:for(a=e.sent,(s=a.replaceAll("{{assetsURL}}",r).split(/=(?=1!)(.*?)=/))[0].trim()||s.shift(),l={},c=0;c1)for(y=1;y{"use strict";n.d(t,{X:()=>ue});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(82449),u=n(22288),d=n(41320),h=n(20662),p=n(31997),f=n(49878),g=n(24438),m=n(1786),y=n(98962),v=n(67087),b=n(4180),x=n(1660),w=n(62767),A=n(80366),S=n(17567),C=n(44999),E=n(83605),_=n(92425),k=n(99565),T=n(41218),O=n(24356),P=n(25899),I=n(45800),M=n(34336),L=n(6819);const R="drawstart",j="drawend",F="drawabort";class D extends u.Ay{constructor(e,t){super(e),this.feature=t}}function N(e,t){return(0,O.hG)(e[0],e[1],t[0],t[1])}function z(e,t){const n=e.length;return t<0?e[t+n]:t>=n?e[t-n]:e[t]}function V(e,t,n){let r,i;ta){return N(q(e,r),q(e,i))}let s=0;if(r=n?r-=n:r<0&&(r+=n);let o=r+1;o>=n&&(o-=n);const a=e[r],s=a[0],l=a[1],c=e[o];return[s+(c[0]-s)*i,l+(c[1]-l)*i]}class H extends A.A{constructor(e){const t=e;t.stopDown||(t.stopDown=_.W8),super(t),this.on,this.once,this.un,this.shouldHandle_=!1,this.downPx_=null,this.downTimeout_,this.lastDragTime_,this.pointerType_,this.freehand_=!1,this.source_=e.source?e.source:null,this.features_=e.features?e.features:null,this.snapTolerance_=e.snapTolerance?e.snapTolerance:12,this.type_=e.type,this.mode_=function(e){switch(e){case"Point":case"MultiPoint":return"Point";case"LineString":case"MultiLineString":return"LineString";case"Polygon":case"MultiPolygon":return"Polygon";case"Circle":return"Circle";default:throw new Error("Invalid type: "+e)}}(this.type_),this.stopClick_=!!e.stopClick,this.minPoints_=e.minPoints?e.minPoints:"Polygon"===this.mode_?3:2,this.maxPoints_="Circle"===this.mode_?2:e.maxPoints?e.maxPoints:1/0,this.finishCondition_=e.finishCondition?e.finishCondition:_.rT,this.geometryLayout_=e.geometryLayout?e.geometryLayout:"XY";let n=e.geometryFunction;if(!n){const e=this.mode_;if("Circle"===e)n=function(e,t,n){const r=t||new c.A([NaN,NaN]),i=(0,M.Ad)(e[0],n),o=(0,I.hG)(i,(0,M.Ad)(e[e.length-1],n));r.setCenterAndRadius(i,Math.sqrt(o),this.geometryLayout_);const a=(0,M.Tf)();return a&&r.transform(n,a),r};else{let t;"Point"===e?t=w.A:"LineString"===e?t=g.A:"Polygon"===e&&(t=S.Ay),n=function(n,r,i){return r?"Polygon"===e?n[0].length?r.setCoordinates([n[0].concat([n[0][0]])],this.geometryLayout_):r.setCoordinates([],this.geometryLayout_):r.setCoordinates(n,this.geometryLayout_):r=new t(n,this.geometryLayout_),r}}}this.geometryFunction_=n,this.dragVertexDelay_=void 0!==e.dragVertexDelay?e.dragVertexDelay:500,this.finishCoordinate_=null,this.sketchFeature_=null,this.sketchPoint_=null,this.sketchCoords_=null,this.sketchLine_=null,this.sketchLineCoords_=null,this.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,this.overlay_=new C.A({source:new E.A({useSpatialIndex:!1,wrapX:!!e.wrapX&&e.wrapX}),style:e.style?e.style:Y(),updateWhileInteracting:!0}),this.geometryName_=e.geometryName,this.condition_=e.condition?e.condition:k.TS,this.freehandCondition_,e.freehand?this.freehandCondition_=k.Gk:this.freehandCondition_=e.freehandCondition?e.freehandCondition:k.Kg,this.traceCondition_,this.setTrace(e.trace||!1),this.traceState_={active:!1},this.traceSource_=e.traceSource||e.source||null,this.addChangeListener(f.A.ACTIVE,this.updateState_)}setTrace(e){let t;t=e?!0===e?k.Gk:e:k.Zm,this.traceCondition_=t}setMap(e){super.setMap(e),this.updateState_()}getOverlay(){return this.overlay_}handleEvent(e){e.originalEvent.type===d.A.CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_="Point"!==this.mode_&&this.freehandCondition_(e);let t=e.type===y.A.POINTERMOVE,n=!0;if(!this.freehand_&&this.lastDragTime_&&e.type===y.A.POINTERDRAG){Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,t=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&e.type===y.A.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e.coordinate),n=!1):this.freehand_&&e.type===y.A.POINTERDOWN?n=!1:t&&this.getPointerCount()<2?(n=e.type===y.A.POINTERMOVE,n&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):("mouse"===e.originalEvent.pointerType||e.type===y.A.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e)):e.type===y.A.DBLCLICK&&(n=!1),super.handleEvent(e)&&n}handleDownEvent(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout((()=>{this.handlePointerMove_(new m.A(y.A.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))}),this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)}deactivateTrace_(){this.traceState_={active:!1}}toggleTraceState_(e){if(!this.traceSource_||!this.traceCondition_(e))return;if(this.traceState_.active)return void this.deactivateTrace_();const t=this.getMap(),n=t.getCoordinateFromPixel([e.pixel[0]-this.snapTolerance_,e.pixel[1]+this.snapTolerance_]),r=t.getCoordinateFromPixel([e.pixel[0]+this.snapTolerance_,e.pixel[1]-this.snapTolerance_]),i=(0,T.boundingExtent)([n,r]),o=this.traceSource_.getFeaturesInExtent(i);if(0===o.length)return;const a=function(e,t){const n=[];for(let r=0;re.endIndex||!n&&te.endIndex)&&this.removeTracedCoordinates_(t,e.endIndex):(this.removeTracedCoordinates_(e.startIndex,e.endIndex),this.addTracedCoordinates_(e,e.startIndex,t))}removeTracedCoordinates_(e,t){if(e===t)return;let n=0;if(e0&&this.removeLastPoints_(n)}addTracedCoordinates_(e,t,n){if(t===n)return;const r=[];if(t=o;--t)r.push(z(e.coordinates,t))}r.length&&this.appendCoordinates(r)}updateTrace_(e){const t=this.traceState_;if(!t.active)return;if(-1===t.targetIndex&&(0,I.Io)(t.startPx,e.pixel)n.startIndex?cn.startIndex&&(c-=r.length)),l=c,s=e)}const c=t.targets[s];let u=c.ring;if(t.targetIndex===s&&u){const e=q(c.coordinates,l),i=n.getPixelFromCoordinate(e);(0,I.Io)(i,t.startPx)>r&&(u=!1)}if(u){const e=c.coordinates,t=e.length,n=c.startIndex,r=l;if(nthis.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?(this.updateTrace_(e),this.modifyDrawing_(e.coordinate)):this.createOrUpdateSketchPoint_(e.coordinate.slice())}atFinish_(e,t){let n=!1;if(this.sketchFeature_){let r=!1,i=[this.finishCoordinate_];const o=this.mode_;if("Point"===o)n=!0;else if("Circle"===o)n=2===this.sketchCoords_.length;else if("LineString"===o)r=!t&&this.sketchCoords_.length>this.minPoints_;else if("Polygon"===o){const e=this.sketchCoords_;r=e[0].length>this.minPoints_,i=[e[0][0],e[0][e[0].length-2]],i=t?[e[0][0]]:[e[0][0],e[0][e[0].length-2]]}if(r){const t=this.getMap();for(let r=0,o=i.length;r=this.maxPoints_&&(this.freehand_?i.pop():r=!0),i.push(e.slice()),this.geometryFunction_(i,t,n)):"Polygon"===o&&(i=this.sketchCoords_[0],i.length>=this.maxPoints_&&(this.freehand_?i.pop():r=!0),i.push(e.slice()),r&&(this.finishCoordinate_=i[0]),this.geometryFunction_(this.sketchCoords_,t,n)),this.createOrUpdateSketchPoint_(e.slice()),this.updateSketchFeatures_(),r?this.finishDrawing():this.sketchFeature_}removeLastPoints_(e){if(!this.sketchFeature_)return;const t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),r=this.mode_;for(let i=0;i=2){this.finishCoordinate_=e[e.length-2].slice();const t=this.finishCoordinate_.slice();e[e.length-1]=t,this.createOrUpdateSketchPoint_(t)}this.geometryFunction_(e,t,n),"Polygon"===t.getType()&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if("Polygon"===r){e=this.sketchCoords_[0],e.splice(-2,1);const r=this.sketchLine_.getGeometry();if(e.length>=2){const t=e[e.length-2].slice();e[e.length-1]=t,this.createOrUpdateSketchPoint_(t)}r.setCoordinates(e),this.geometryFunction_(this.sketchCoords_,t,n)}if(1===e.length){this.abortDrawing();break}}this.updateSketchFeatures_()}removeLastPoint(){this.removeLastPoints_(1)}finishDrawing(){const e=this.abortDrawing_();if(!e)return null;let t=this.sketchCoords_;const n=e.getGeometry(),r=this.getMap().getView().getProjection();return"LineString"===this.mode_?(t.pop(),this.geometryFunction_(t,n,r)):"Polygon"===this.mode_&&(t[0].pop(),this.geometryFunction_(t,n,r),t=n.getCoordinates()),"MultiPoint"===this.type_?e.setGeometry(new b.A([t])):"MultiLineString"===this.type_?e.setGeometry(new v.A([t])):"MultiPolygon"===this.type_&&e.setGeometry(new x.A([t])),this.dispatchEvent(new D(j,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e),e}abortDrawing_(){this.finishCoordinate_=null;const e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),this.deactivateTrace_(),e}abortDrawing(){const e=this.abortDrawing_();e&&this.dispatchEvent(new D(F,e))}appendCoordinates(e){const t=this.mode_,n=!this.sketchFeature_;let r;if(n&&this.startDrawing_(e[0]),"LineString"===t||"Circle"===t)r=this.sketchCoords_;else{if("Polygon"!==t)return;r=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}n&&r.shift(),r.pop();for(let t=0;t{"use strict";n.d(t,{z:()=>$});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(22288),u=n(20662),d=n(98962),h=n(62767),p=n(80366),f=n(44999),g=n(83605),m=n(99565),y=n(41218),v=n(45800),b=n(25899),x=n(17567),w=n(34336);const A="extentchanged";class S extends c.Ay{constructor(e){super(A),this.extent=e}}class C extends p.A{constructor(e){super(e=e||{}),this.on,this.once,this.un,this.condition_=e.condition?e.condition:m.Gk,this.extent_=null,this.pointerHandler_=null,this.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,this.snappedToVertex_=!1,this.extentFeature_=null,this.vertexFeature_=null,e||(e={}),this.extentOverlay_=new f.A({source:new g.A({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.boxStyle?e.boxStyle:E(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.vertexOverlay_=new f.A({source:new g.A({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.pointerStyle?e.pointerStyle:_(),updateWhileAnimating:!0,updateWhileInteracting:!0}),e.extent&&this.setExtent(e.extent)}snapToVertex_(e,t){const n=t.getCoordinateFromPixelInternal(e),r=function(e,t){return(0,v.$x)(n,e)-(0,v.$x)(n,t)},i=this.getExtentInternal();if(i){const o=function(e){return[[[e[0],e[1]],[e[0],e[3]]],[[e[0],e[3]],[e[2],e[3]]],[[e[2],e[3]],[e[2],e[1]]],[[e[2],e[1]],[e[0],e[1]]]]}(i);o.sort(r);const a=o[0];let s=(0,v.sG)(n,a);const l=t.getPixelFromCoordinateInternal(s);if((0,v.Io)(e,l)<=this.pixelTolerance_){const e=t.getPixelFromCoordinateInternal(a[0]),n=t.getPixelFromCoordinateInternal(a[1]),r=(0,v.hG)(l,e),i=(0,v.hG)(l,n),o=Math.sqrt(Math.min(r,i));return this.snappedToVertex_=o<=this.pixelTolerance_,this.snappedToVertex_&&(s=r>i?a[1]:a[0]),s}}return null}handlePointerMove_(e){const t=e.pixel,n=e.map;let r=this.snapToVertex_(t,n);r||(r=n.getCoordinateFromPixelInternal(t)),this.createOrUpdatePointerFeature_(r)}createOrUpdateExtentFeature_(e){let t=this.extentFeature_;return t?e?t.setGeometry((0,x.VY)(e)):t.setGeometry(void 0):(t=e?new u.A((0,x.VY)(e)):new u.A({}),this.extentFeature_=t,this.extentOverlay_.getSource().addFeature(t)),t}createOrUpdatePointerFeature_(e){let t=this.vertexFeature_;if(t){t.getGeometry().setCoordinates(e)}else t=new u.A(new h.A(e)),this.vertexFeature_=t,this.vertexOverlay_.getSource().addFeature(t);return t}handleEvent(e){return!e.originalEvent||!this.condition_(e)||(e.type!=d.A.POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(e),super.handleEvent(e),!1)}handleDownEvent(e){const t=e.pixel,n=e.map,r=this.getExtentInternal();let i=this.snapToVertex_(t,n);const o=function(e){let t=null,n=null;return e[0]==r[0]?t=r[2]:e[0]==r[2]&&(t=r[0]),e[1]==r[1]?n=r[3]:e[1]==r[3]&&(n=r[1]),null!==t&&null!==n?[t,n]:null};if(i&&r){const e=i[0]==r[0]||i[0]==r[2]?i[0]:null,t=i[1]==r[1]||i[1]==r[3]?i[1]:null;null!==e&&null!==t?this.pointerHandler_=k(o(i)):null!==e?this.pointerHandler_=T(o([e,r[1]]),o([e,r[3]])):null!==t&&(this.pointerHandler_=T(o([r[0],t]),o([r[2],t])))}else i=n.getCoordinateFromPixelInternal(t),this.setExtent([i[0],i[1],i[0],i[1]]),this.pointerHandler_=k(i);return!0}handleDragEvent(e){if(this.pointerHandler_){const t=e.coordinate;this.setExtent(this.pointerHandler_(t)),this.createOrUpdatePointerFeature_(t)}}handleUpEvent(e){this.pointerHandler_=null;const t=this.getExtentInternal();return t&&0!==(0,y.getArea)(t)||this.setExtent(null),!1}setMap(e){this.extentOverlay_.setMap(e),this.vertexOverlay_.setMap(e),super.setMap(e)}getExtent(){return(0,w.JR)(this.getExtentInternal(),this.getMap().getView().getProjection())}getExtentInternal(){return this.extent_}setExtent(e){this.extent_=e||null,this.createOrUpdateExtentFeature_(e),this.dispatchEvent(new S(this.extent_))}}function E(){const e=(0,b.mY)();return function(t,n){return e.Polygon}}function _(){const e=(0,b.mY)();return function(t,n){return e.Point}}function k(e){return function(t){return(0,y.boundingExtent)([e,t])}}function T(e,t){return e[0]==t[0]?function(n){return(0,y.boundingExtent)([e,[n[0],t[1]]])}:e[1]==t[1]?function(n){return(0,y.boundingExtent)([e,[t[0],n[1]]])}:null}const O=C;var P=n(16221),I=n(62338),M=n(38902);function L(e,t,n){return t=(0,s.A)(t),(0,o.A)(e,R()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function R(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(R=function(){return!!e})()}function j(e,t,n){F(e,t),t.set(e,n)}function F(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function D(e,t){return e.get(N(e,t))}function N(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var z=new WeakMap,V=new WeakMap,B=new WeakSet,$=function(e){function t(e){var n,i,o;(0,r.A)(this,t),n=L(this,t,[e]),F(i=n,o=B),o.add(i),j(n,z,void 0),j(n,V,[]);var a,s,l,c={condition:m.Kg,boxStyle:(0,I.convertTypeFeatureStyleToOpenLayersStyle)(e.boxStyle),pixelTolerance:e.pixelTolerance||0};return a=z,s=n,l=new O(c),a.set(N(a,s),l),D(z,n).on("extentchanged",N(B,n,G).bind(n)),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"startInteraction",value:function(){(0,a.A)((0,s.A)(t.prototype),"startInteraction",this).call(this,D(z,this))}},{key:"stopInteraction",value:function(){(0,a.A)((0,s.A)(t.prototype),"stopInteraction",this).call(this,D(z,this))}},{key:"onExtentChanged",value:function(e){P.A.onEvent(D(V,this),e)}},{key:"offExtentChanged",value:function(e){P.A.offEvent(D(V,this),e)}}])}(M.N);function G(e){P.A.emitEvent(this,D(V,this),e)}},38902:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var r=n(70640),i=n(32814),o=n(64426),a=function(){return(0,i.A)((function e(t){(0,r.A)(this,e),(0,o.A)(this,"mapViewer",void 0),this.mapViewer=t.mapViewer}),[{key:"startInteraction",value:function(e){this.mapViewer.map.addInteraction(e)}},{key:"stopInteraction",value:function(e){this.mapViewer.map.removeInteraction(e)}}])}()},91424:(e,t,n)=>{"use strict";n.d(t,{B:()=>Q});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(64874),u=n(75320),d=n(22288),h=n(41320),p=n(20662),f=n(98962),g=n(62767),m=n(80366),y=n(6013),v=n(10809),b=n(44999),x=n(83605),w=n(99565),A=n(41218),S=n(45800),C=n(25899),E=n(17217),_=n(17567),k=n(34336),T=n(94994);const O=[0,0,0,0],P=[],I="modifystart",M="modifyend";class L extends d.Ay{constructor(e,t,n){super(e),this.features=t,this.mapBrowserEvent=n}}class R extends m.A{constructor(e){let t;if(super(e),this.on,this.once,this.un,this.boundHandleFeatureChange_=this.handleFeatureChange_.bind(this),this.condition_=e.condition?e.condition:w.fs,this.defaultDeleteCondition_=function(e){return(0,w.Js)(e)&&(0,w.t5)(e)},this.deleteCondition_=e.deleteCondition?e.deleteCondition:this.defaultDeleteCondition_,this.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:w.Gk,this.vertexFeature_=null,this.vertexSegments_=null,this.lastPixel_=[0,0],this.ignoreNextSingleClick_=!1,this.featuresBeingModified_=null,this.rBush_=new y.A,this.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,this.snappedToVertex_=!1,this.changingFeature_=!1,this.dragSegments_=[],this.overlay_=new b.A({source:new x.A({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.style?e.style:N(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.SEGMENT_WRITERS_={Point:this.writePointGeometry_.bind(this),LineString:this.writeLineStringGeometry_.bind(this),LinearRing:this.writeLineStringGeometry_.bind(this),Polygon:this.writePolygonGeometry_.bind(this),MultiPoint:this.writeMultiPointGeometry_.bind(this),MultiLineString:this.writeMultiLineStringGeometry_.bind(this),MultiPolygon:this.writeMultiPolygonGeometry_.bind(this),Circle:this.writeCircleGeometry_.bind(this),GeometryCollection:this.writeGeometryCollectionGeometry_.bind(this)},this.source_=null,this.hitDetection_=null,e.features?t=e.features:e.source&&(this.source_=e.source,t=new c.A(this.source_.getFeatures()),this.source_.addEventListener(v.A.ADDFEATURE,this.handleSourceAdd_.bind(this)),this.source_.addEventListener(v.A.REMOVEFEATURE,this.handleSourceRemove_.bind(this))),!t)throw new Error("The modify interaction requires features, a source or a layer");e.hitDetection&&(this.hitDetection_=e.hitDetection),this.features_=t,this.features_.forEach(this.addFeature_.bind(this)),this.features_.addEventListener(u.A.ADD,this.handleFeatureAdd_.bind(this)),this.features_.addEventListener(u.A.REMOVE,this.handleFeatureRemove_.bind(this)),this.lastPointerEvent_=null,this.delta_=[0,0],this.snapToPointer_=void 0===e.snapToPointer?!this.hitDetection_:e.snapToPointer}addFeature_(e){const t=e.getGeometry();if(t){const n=this.SEGMENT_WRITERS_[t.getType()];n&&n(e,t)}const n=this.getMap();n&&n.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,n),e.addEventListener(h.A.CHANGE,this.boundHandleFeatureChange_)}willModifyFeatures_(e,t){if(!this.featuresBeingModified_){this.featuresBeingModified_=new c.A;const n=this.featuresBeingModified_.getArray();for(let e=0,r=t.length;e=0;--e){const r=n[e];for(let e=this.dragSegments_.length-1;e>=0;--e)this.dragSegments_[e][0]===r&&this.dragSegments_.splice(e,1);t.remove(r)}}setActive(e){this.vertexFeature_&&!e&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),super.setActive(e)}setMap(e){this.overlay_.setMap(e),super.setMap(e)}getOverlay(){return this.overlay_}handleSourceAdd_(e){e.feature&&this.features_.push(e.feature)}handleSourceRemove_(e){e.feature&&this.features_.remove(e.feature)}handleFeatureAdd_(e){this.addFeature_(e.element)}handleFeatureChange_(e){if(!this.changingFeature_){const t=e.target;this.removeFeature_(t),this.addFeature_(t)}}handleFeatureRemove_(e){this.removeFeature_(e.element)}writePointGeometry_(e,t){const n=t.getCoordinates(),r={feature:e,geometry:t,segment:[n,n]};this.rBush_.insert(t.getExtent(),r)}writeMultiPointGeometry_(e,t){const n=t.getCoordinates();for(let r=0,i=n.length;r=0;--e)this.insertVertex_(i[e],o)}return!!this.vertexFeature_}handleUpEvent(e){for(let t=this.dragSegments_.length-1;t>=0;--t){const n=this.dragSegments_[t][0],r=n.geometry;if("Circle"===r.getType()){const t=r.getCenter(),i=n.featureSegments[0],o=n.featureSegments[1];i.segment[0]=t,i.segment[1]=t,o.segment[0]=t,o.segment[1]=t,this.rBush_.update((0,A.createOrUpdateFromCoordinate)(t),i);let a=r;const s=(0,k.Tf)();if(s){const t=e.map.getView().getProjection();a=a.clone().transform(s,t),a=(0,_.nD)(a).transform(t,s)}this.rBush_.update(a.getExtent(),o)}else this.rBush_.update((0,A.boundingExtent)(n.segment),n)}return this.featuresBeingModified_&&(this.dispatchEvent(new L(M,this.featuresBeingModified_,e)),this.featuresBeingModified_=null),!1}handlePointerMove_(e){this.lastPixel_=e.pixel,this.handlePointerAtPixel_(e.pixel,e.map,e.coordinate)}handlePointerAtPixel_(e,t,n){const r=n||t.getCoordinateFromPixel(e),i=t.getView().getProjection(),o=function(e,t){return F(r,e,i)-F(r,t,i)};let a,s;if(this.hitDetection_){const n="object"==typeof this.hitDetection_?e=>e===this.hitDetection_:void 0;t.forEachFeatureAtPixel(e,((e,t,n)=>{n&&"Point"===n.getType()&&(n=new g.A((0,k.te)(n.getCoordinates(),i)));const r=n||e.getGeometry();if(e instanceof p.A&&this.features_.getArray().includes(e)){s=r;const t=e.getGeometry().getFlatCoordinates().slice(0,2);a=[{feature:e,geometry:s,segment:[t,t]}]}return!0}),{layerFilter:n})}if(!a){const e=(0,k.SD)((0,A.createOrUpdateFromCoordinate)(r,O),i),n=t.getView().getResolution()*this.pixelTolerance_,o=(0,k.JR)((0,A.buffer)(e,n,O),i);a=this.rBush_.getInExtent(o)}if(a&&a.length>0){const n=a.sort(o)[0],l=n.segment;let c=D(r,n,i);const u=t.getPixelFromCoordinate(c);let d=(0,S.Io)(e,u);if(s||d<=this.pixelTolerance_){const e={};if(e[(0,T.v6)(l)]=!0,this.snapToPointer_||(this.delta_[0]=c[0]-r[0],this.delta_[1]=c[1]-r[1]),"Circle"===n.geometry.getType()&&1===n.index)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(c,[n.feature],[n.geometry]);else{const r=t.getPixelFromCoordinate(l[0]),i=t.getPixelFromCoordinate(l[1]),o=(0,S.hG)(u,r),s=(0,S.hG)(u,i);d=Math.sqrt(Math.min(o,s)),this.snappedToVertex_=d<=this.pixelTolerance_,this.snappedToVertex_&&(c=o>s?l[1]:l[0]),this.createOrUpdateVertexFeature_(c,[n.feature],[n.geometry]);const h={};h[(0,T.v6)(n.geometry)]=!0;for(let t=1,n=a.length;t=0;--a)i=e[a],d=i[0],h=(0,T.v6)(d.feature),d.depth&&(h+="-"+d.depth.join("-")),h in t||(t[h]={}),0===i[1]?(t[h].right=d,t[h].index=d.index):1==i[1]&&(t[h].left=d,t[h].index=d.index+1);for(h in t){switch(u=t[h].right,l=t[h].left,s=t[h].index,c=s-1,d=void 0!==l?l:u,c<0&&(c=0),o=d.geometry,r=o.getCoordinates(),n=r,p=!1,o.getType()){case"MultiLineString":r[d.depth[0]].length>2&&(r[d.depth[0]].splice(s,1),p=!0);break;case"LineString":r.length>2&&(r.splice(s,1),p=!0);break;case"MultiPolygon":n=n[d.depth[1]];case"Polygon":n=n[d.depth[0]],n.length>4&&(s==n.length-1&&(s=0),n.splice(s,1),p=!0,0===s&&(n.pop(),n.push(n[0]),c=n.length-1))}if(p){this.setGeometryCoordinates_(o,r);const t=[];if(void 0!==l&&(this.rBush_.remove(l),t.push(l.segment[0])),void 0!==u&&(this.rBush_.remove(u),t.push(u.segment[1])),void 0!==l&&void 0!==u){const e={depth:d.depth,feature:d.feature,geometry:d.geometry,index:c,segment:t};this.rBush_.insert((0,A.boundingExtent)(e.segment),e)}this.updateSegmentIndices_(o,s,d.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),e.length=0}}return p}setGeometryCoordinates_(e,t){this.changingFeature_=!0,e.setCoordinates(t),this.changingFeature_=!1}updateSegmentIndices_(e,t,n,r){this.rBush_.forEachInExtent(e.getExtent(),(function(i){i.geometry===e&&(void 0===n||void 0===i.depth||(0,E.aI)(i.depth,n))&&i.index>t&&(i.index+=r)}))}}function j(e,t){return e.index-t.index}function F(e,t,n){const r=t.geometry;if("Circle"===r.getType()){let i=r;if(1===t.index){const t=(0,k.Tf)();t&&(i=i.clone().transform(t,n));const r=(0,S.hG)(i.getCenter(),(0,k.Ad)(e,n)),o=Math.sqrt(r)-i.getRadius();return o*o}}const i=(0,k.Ad)(e,n);return P[0]=(0,k.Ad)(t.segment[0],n),P[1]=(0,k.Ad)(t.segment[1],n),(0,S.$x)(i,P)}function D(e,t,n){const r=t.geometry;if("Circle"===r.getType()&&1===t.index){let t=r;const i=(0,k.Tf)();return i&&(t=t.clone().transform(i,n)),(0,k.te)(t.getClosestPoint((0,k.Ad)(e,n)),n)}const i=(0,k.Ad)(e,n);return P[0]=(0,k.Ad)(t.segment[0],n),P[1]=(0,k.Ad)(t.segment[1],n),(0,k.te)((0,S.sG)(i,P),n)}function N(){const e=(0,C.mY)();return function(t,n){return e.Point}}const z=R;var V=n(16221),B=n(62338),$=n(38902);function G(e,t,n){return t=(0,s.A)(t),(0,o.A)(e,U()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function U(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(U=function(){return!!e})()}function W(e,t,n){q(e,t),t.set(e,n)}function q(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function H(e,t){return e.get(Y(e,t))}function Y(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var K=new WeakMap,X=new WeakMap,Z=new WeakMap,J=new WeakSet,Q=function(e){function t(e){var n,i,o;(0,r.A)(this,t),n=G(this,t,[e]),q(i=n,o=J),o.add(i),W(n,K,void 0),W(n,X,[]),W(n,Z,[]);var a,s,l,c={style:(0,B.convertTypeFeatureStyleToOpenLayersStyle)(e.style)};if(e.features)c.features=e.features;else if(e.geometryGroupKey){var u,d=null===(u=n.mapViewer.layer.geometry)||void 0===u?void 0:u.createGeometryGroup(e.geometryGroupKey);c.source=null==d?void 0:d.vectorSource}return a=K,s=n,l=new z(c),a.set(Y(a,s),l),H(K,n).on("modifystart",Y(J,n,ee).bind(n)),H(K,n).on("modifyend",Y(J,n,te).bind(n)),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"startInteraction",value:function(){(0,a.A)((0,s.A)(t.prototype),"startInteraction",this).call(this,H(K,this))}},{key:"stopInteraction",value:function(){(0,a.A)((0,s.A)(t.prototype),"stopInteraction",this).call(this,H(K,this))}},{key:"onModifyStarted",value:function(e){V.A.onEvent(H(X,this),e)}},{key:"offModifyStarted",value:function(e){V.A.offEvent(H(X,this),e)}},{key:"onModifyEnded",value:function(e){V.A.onEvent(H(Z,this),e)}},{key:"offModifyEnded",value:function(e){V.A.offEvent(H(Z,this),e)}}])}($.N);function ee(e){V.A.emitEvent(this,H(X,this),e)}function te(e){V.A.emitEvent(this,H(Z,this),e)}},48818:(e,t,n)=>{"use strict";n.d(t,{P:()=>j});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(75320),u=n(41320),d=n(80366),h=n(6013),p=n(10809),f=n(92425),g=n(22288);const m="snap";class y extends g.Ay{constructor(e,t){super(e),this.vertex=t.vertex,this.vertexPixel=t.vertexPixel,this.feature=t.feature,this.segment=t.segment}}var v=n(41218),b=n(45800),x=n(17567),w=n(34336),A=n(94994),S=n(24363);function C(e){return e.feature?e.feature:e.element?e.element:null}const E=[];class _ extends d.A{constructor(e){const t=e=e||{};t.handleDownEvent||(t.handleDownEvent=f.rT),t.stopDown||(t.stopDown=f.W8),super(t),this.on,this.once,this.un,this.source_=e.source?e.source:null,this.vertex_=void 0===e.vertex||e.vertex,this.edge_=void 0===e.edge||e.edge,this.features_=e.features?e.features:null,this.featuresListenerKeys_=[],this.featureChangeListenerKeys_={},this.indexedFeaturesExtents_={},this.pendingFeatures_={},this.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,this.rBush_=new h.A,this.GEOMETRY_SEGMENTERS_={Point:this.segmentPointGeometry_.bind(this),LineString:this.segmentLineStringGeometry_.bind(this),LinearRing:this.segmentLineStringGeometry_.bind(this),Polygon:this.segmentPolygonGeometry_.bind(this),MultiPoint:this.segmentMultiPointGeometry_.bind(this),MultiLineString:this.segmentMultiLineStringGeometry_.bind(this),MultiPolygon:this.segmentMultiPolygonGeometry_.bind(this),GeometryCollection:this.segmentGeometryCollectionGeometry_.bind(this),Circle:this.segmentCircleGeometry_.bind(this)}}addFeature(e,t){t=void 0===t||t;const n=(0,A.v6)(e),r=e.getGeometry();if(r){const t=this.GEOMETRY_SEGMENTERS_[r.getType()];if(t){this.indexedFeaturesExtents_[n]=r.getExtent((0,v.createEmpty)());const i=[];if(t(i,r),1===i.length)this.rBush_.insert((0,v.boundingExtent)(i[0]),{feature:e,segment:i[0]});else if(i.length>1){const t=i.map((e=>(0,v.boundingExtent)(e))),n=i.map((t=>({feature:e,segment:t})));this.rBush_.load(t,n)}}}t&&(this.featureChangeListenerKeys_[n]=(0,S.KT)(e,u.A.CHANGE,this.handleFeatureChange_,this))}getFeatures_(){let e;return this.features_?e=this.features_:this.source_&&(e=this.source_.getFeatures()),e}handleEvent(e){const t=this.snapTo(e.pixel,e.coordinate,e.map);return t&&(e.coordinate=t.vertex.slice(0,2),e.pixel=t.vertexPixel,this.dispatchEvent(new y(m,{vertex:e.coordinate,vertexPixel:e.pixel,feature:t.feature,segment:t.segment}))),super.handleEvent(e)}handleFeatureAdd_(e){const t=C(e);t&&this.addFeature(t)}handleFeatureRemove_(e){const t=C(e);t&&this.removeFeature(t)}handleFeatureChange_(e){const t=e.target;if(this.handlingDownUpSequence){const e=(0,A.v6)(t);e in this.pendingFeatures_||(this.pendingFeatures_[e]=t)}else this.updateFeature_(t)}handleUpEvent(e){const t=Object.values(this.pendingFeatures_);return t.length&&(t.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1}removeFeature(e,t){const n=void 0===t||t,r=(0,A.v6)(e),i=this.indexedFeaturesExtents_[r];if(i){const t=this.rBush_,n=[];t.forEachInExtent(i,(function(t){e===t.feature&&n.push(t)}));for(let e=n.length-1;e>=0;--e)t.remove(n[e])}n&&((0,S.JH)(this.featureChangeListenerKeys_[r]),delete this.featureChangeListenerKeys_[r])}setMap(e){const t=this.getMap(),n=this.featuresListenerKeys_,r=this.getFeatures_();t&&(n.forEach(S.JH),n.length=0,this.rBush_.clear(),Object.values(this.featureChangeListenerKeys_).forEach(S.JH),this.featureChangeListenerKeys_={}),super.setMap(e),e&&(this.features_?n.push((0,S.KT)(this.features_,c.A.ADD,this.handleFeatureAdd_,this),(0,S.KT)(this.features_,c.A.REMOVE,this.handleFeatureRemove_,this)):this.source_&&n.push((0,S.KT)(this.source_,p.A.ADDFEATURE,this.handleFeatureAdd_,this),(0,S.KT)(this.source_,p.A.REMOVEFEATURE,this.handleFeatureRemove_,this)),r.forEach((e=>this.addFeature(e))))}snapTo(e,t,n){const r=n.getView().getProjection(),i=(0,w.Ad)(t,r),o=(0,w.JR)((0,v.buffer)((0,v.boundingExtent)([i]),n.getView().getResolution()*this.pixelTolerance_),r),a=this.rBush_.getInExtent(o),s=a.length;if(0===s)return null;let l,c,u=1/0,d=null;const h=this.pixelTolerance_*this.pixelTolerance_,p=()=>{if(l){const t=n.getPixelFromCoordinate(l);if((0,b.hG)(e,t)<=h)return{vertex:l,vertexPixel:[Math.round(t[0]),Math.round(t[1])],feature:c,segment:d}}return null};if(this.vertex_){for(let e=0;e{const n=(0,w.Ad)(e,r),o=(0,b.hG)(i,n);o{e.push([t])}))}segmentMultiPolygonGeometry_(e,t){const n=t.getCoordinates();for(let t=0,r=n.length;t{"use strict";n.d(t,{H:()=>j});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(64874),u=n(22288),d=n(20662),h=n(49878),p=n(80366),f=n(92425),g=n(99565),m=n(34336);const y="translatestart",v="translating",b="translateend";class x extends u.Ay{constructor(e,t,n,r,i){super(e),this.features=t,this.coordinate=n,this.startCoordinate=r,this.mapBrowserEvent=i}}class w extends p.A{constructor(e){let t;if(super(e=e||{}),this.on,this.once,this.un,this.lastCoordinate_=null,this.startCoordinate_=null,this.features_=void 0!==e.features?e.features:null,e.layers&&!this.features_)if("function"==typeof e.layers)t=e.layers;else{const n=e.layers;t=function(e){return n.includes(e)}}else t=f.rT;this.layerFilter_=t,this.filter_=e.filter&&!this.features_?e.filter:f.rT,this.hitTolerance_=e.hitTolerance?e.hitTolerance:0,this.condition_=e.condition?e.condition:g.Gk,this.lastFeature_=null,this.addChangeListener(h.A.ACTIVE,this.handleActiveChanged_)}handleDownEvent(e){if(!e.originalEvent||!this.condition_(e))return!1;if(this.lastFeature_=this.featuresAtPixel_(e.pixel,e.map),!this.lastCoordinate_&&this.lastFeature_){this.startCoordinate_=e.coordinate,this.lastCoordinate_=e.coordinate,this.handleMoveEvent(e);const t=this.features_||new c.A([this.lastFeature_]);return this.dispatchEvent(new x(y,t,e.coordinate,this.startCoordinate_,e)),!0}return!1}handleUpEvent(e){if(this.lastCoordinate_){this.lastCoordinate_=null,this.handleMoveEvent(e);const t=this.features_||new c.A([this.lastFeature_]);return this.dispatchEvent(new x(b,t,e.coordinate,this.startCoordinate_,e)),this.startCoordinate_=null,!0}return!1}handleDragEvent(e){if(this.lastCoordinate_){const t=e.coordinate,n=e.map.getView().getProjection(),r=(0,m.Ad)(t,n),i=(0,m.Ad)(this.lastCoordinate_,n),o=r[0]-i[0],a=r[1]-i[1],s=this.features_||new c.A([this.lastFeature_]),l=(0,m.Tf)();s.forEach((function(e){const t=e.getGeometry();l?(t.transform(l,n),t.translate(o,a),t.transform(n,l)):t.translate(o,a),e.setGeometry(t)})),this.lastCoordinate_=t,this.dispatchEvent(new x(v,s,t,this.startCoordinate_,e))}}handleMoveEvent(e){const t=e.map.getViewport();this.featuresAtPixel_(e.pixel,e.map)?(t.classList.remove(this.lastCoordinate_?"ol-grab":"ol-grabbing"),t.classList.add(this.lastCoordinate_?"ol-grabbing":"ol-grab")):t.classList.remove("ol-grab","ol-grabbing")}featuresAtPixel_(e,t){return t.forEachFeatureAtPixel(e,((e,t)=>{if(e instanceof d.A&&this.filter_(e,t)&&(!this.features_||this.features_.getArray().includes(e)))return e}),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_})}getHitTolerance(){return this.hitTolerance_}setHitTolerance(e){this.hitTolerance_=e}setMap(e){const t=this.getMap();super.setMap(e),this.updateState_(t)}handleActiveChanged_(){this.updateState_(null)}updateState_(e){let t=this.getMap();const n=this.getActive();if((!t||!n)&&(t=t||e,t)){t.getViewport().classList.remove("ol-grab","ol-grabbing")}}}const A=w;var S=n(16221),C=n(38902);function E(e,t,n){return t=(0,s.A)(t),(0,o.A)(e,_()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_=function(){return!!e})()}function k(e,t,n){T(e,t),t.set(e,n)}function T(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function O(e,t){return e.get(P(e,t))}function P(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var I=new WeakMap,M=new WeakMap,L=new WeakMap,R=new WeakSet,j=function(e){function t(e){var n,i,o;(0,r.A)(this,t),n=E(this,t,[e]),T(i=n,o=R),o.add(i),k(n,I,void 0),k(n,M,[]),k(n,L,[]);var a,s,l,c={};return e.features&&(c.features=e.features),a=I,s=n,l=new A(c),a.set(P(a,s),l),O(I,n).on("translatestart",P(R,n,F).bind(n)),O(I,n).on("translateend",P(R,n,D).bind(n)),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"startInteraction",value:function(){(0,a.A)((0,s.A)(t.prototype),"startInteraction",this).call(this,O(I,this))}},{key:"stopInteraction",value:function(){(0,a.A)((0,s.A)(t.prototype),"stopInteraction",this).call(this,O(I,this))}},{key:"onTranslateStarted",value:function(e){S.A.onEvent(O(M,this),e)}},{key:"offTranslateStarted",value:function(e){S.A.offEvent(O(M,this),e)}},{key:"onTranslateEnded",value:function(e){S.A.onEvent(O(L,this),e)}},{key:"offTranslateEnded",value:function(e){S.A.offEvent(O(L,this),e)}}])}(C.N);function F(e){S.A.emitEvent(this,O(M,this),e)}function D(e){S.A.emitEvent(this,O(L,this),e)}},39534:(e,t,n)=>{"use strict";n.d(t,{i:()=>T});var r=n(43994),i=n(70640),o=n(32814),a=n(64426),s=n(59615),l=n.n(s),c=n(97493),u=n(9063);class d extends u.A{constructor(e){let t;t=void 0!==(e=e||{}).attributions?e.attributions:['© OpenStreetMap contributors.'];const n=void 0!==e.crossOrigin?e.crossOrigin:"anonymous",r=void 0!==e.url?e.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:t,attributionsCollapsible:!1,cacheSize:e.cacheSize,crossOrigin:n,interpolate:e.interpolate,maxZoom:void 0!==e.maxZoom?e.maxZoom:19,opaque:void 0===e.opaque||e.opaque,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,transition:e.transition,url:r,wrapX:e.wrapX,zDirection:e.zDirection})}}const h=d;var p,f=n(70861),g=n(12791),m=n(86784),y=n(76262),v=n(79913),b=n(12311),x=n(98030),w=n(92288),A=n(60854);function S(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;t0||0===i.length&&"nogeom"===m.basemapId)){e.next=34;break}return O={basemapId:o.join(""),layers:i,type:o.join("-"),basemapOptions:m,attribution:"osm"===m.basemapId?["© OpenStreetMap",(0,v.getLocalizedMessage)("mapctrl.attribution.defaultnrcan",w.K.getDisplayLanguage(this.mapId))]:[(0,v.getLocalizedMessage)("mapctrl.attribution.defaultnrcan",w.K.getDisplayLanguage(this.mapId))],zoomLevels:{min:d,max:p},defaultExtent:c,defaultOrigin:s,defaultResolutions:u,name:"",description:"",descSummary:"",altText:"",thumbnailUrl:""},e.abrupt("return",O);case 34:return e.abrupt("return",void 0);case 35:case"end":return e.stop()}}),e,this)}))),function(e,n,r){return t.apply(this,arguments)})},{key:"createCustomBasemap",value:function(e,t,n){var r=this,i=e.name,o=e.description,a=e.thumbnailUrl,s=e.attribution,l=void 0===n?w.K.getDisplayLanguage(this.mapId):n,c=C({},e);return c.name="en"===l?i.en:i.fr,c.layers=e.layers.map((function(e){return C(C({},e),{},{url:"en"===l?e.url.en:e.url.fr,source:new u.A({attributions:s[l],projection:b.M.PROJECTIONS[t],url:"en"===l?e.url.en:e.url.fr,crossOrigin:"Anonymous",tileGrid:new f.A({extent:r.defaultExtent,origin:r.defaultOrigin,resolutions:r.defaultResolutions})})})})),c.type="test",c.description="en"===l?o.en:o.fr,c.altText="en"===l?o.en:o.fr,c.thumbnailUrl="en"===l?a.en:a.fr,c.attribution="en"===l?[s.en]:[s.fr],c}},{key:"loadDefaultBasemaps",value:(e=(0,r.A)(l().mark((function e(t,n){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.createCoreBasemap(x.d.getBasemapOptions(this.mapId),t,n);case 2:(r=e.sent)&&(this.defaultOrigin=null==r?void 0:r.defaultOrigin,this.defaultResolutions=null==r?void 0:r.defaultResolutions,this.defaultExtent=null==r?void 0:r.defaultExtent,this.setBasemap(r));case 4:case"end":return e.stop()}}),e,this)}))),function(t,n){return e.apply(this,arguments)})},{key:"setBasemap",value:function(e){var t=this;if(this.activeBasemap=e,x.d.setMapAttribution(this.mapId,e?e.attribution:[""]),null!=e&&e.layers){for(var n=x.d.getMapViewer(this.mapId).map.getAllLayers(),r=0;r=k&&(o.push(n),I[t]=e)})),h=[(null==P||null===(S=P.origin)||void 0===S?void 0:S.x)||0,(null==P||null===(C=P.origin)||void 0===C?void 0:C.y)||0],a=I[_].level,s=I[k].level,d=[T.xmin,T.ymin,T.xmax,T.ymax],g=O.call(p,n.url),e.abrupt("return",{basemapId:t,type:t,url:n.url,jsonUrl:n.jsonUrl,source:new u.A({attributions:(0,v.getLocalizedMessage)("mapctrl.attribution.defaultnrcan",w.K.getDisplayLanguage(this.mapId)),projection:b.M.PROJECTIONS[g],url:n.url,crossOrigin:"Anonymous",tileGrid:new f.A({extent:d,origin:h,resolutions:o})}),opacity:r,origin:h,extent:d,resolutions:o,minScale:a,maxScale:s});case 26:e.next=31;break;case 28:return e.prev=28,e.t0=e.catch(8),e.abrupt("return",null);case 31:return e.abrupt("return",null);case 32:case"end":return e.stop()}}),e,this,[[8,28]])})))).apply(this,arguments)}p=T,(0,a.A)(T,"REQUEST_DELAY_MAX",3e3)},61970:(e,t,n)=>{"use strict";n.d(t,{Kz:()=>g,ns:()=>f});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426);function c(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,u()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function d(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,h()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var p=function(e){function t(e,n){var r;return(0,i.A)(this,t),r=d(this,t,[n]),(0,l.A)(r,"geoviewLayerId",void 0),r.message="A generic error happened for layer ".concat(e," on map ").concat(n),r.geoviewLayerId=e,Object.setPrototypeOf(r,t.prototype),r}return(0,s.A)(t,e),(0,r.A)(t)}(function(e){function t(e){var n;return(0,i.A)(this,t),n=c(this,t,["An error happened on map ".concat(e)]),(0,l.A)(n,"mapId",void 0),n.mapId=e,Object.setPrototypeOf(n,t.prototype),n}return(0,s.A)(t,e),(0,r.A)(t)}((0,n(31611).A)(Error))),f=function(e){function t(e,n){var r;return(0,i.A)(this,t),(r=d(this,t,[e,n])).message="Failed to create the layer ".concat(e," on map ").concat(n),Object.setPrototypeOf(r,t.prototype),r}return(0,s.A)(t,e),(0,r.A)(t)}(p),g=function(e){function t(e,n){var r;return(0,i.A)(this,t),r=d(this,t,[e.geoviewLayerId,n]),(0,l.A)(r,"geoviewLayer",void 0),r.message="Can not execute twice the createGeoViewLayers method for layer ".concat(e.geoviewLayerId," on map ").concat(n),r.geoviewLayer=e,Object.setPrototypeOf(r,t.prototype),r}return(0,s.A)(t,e),(0,r.A)(t)}(p)},48690:(e,t,n)=>{"use strict";n.d(t,{p:()=>M});var r=n(70640),i=n(32814),o=n(64426),a=n(44999),s=n(83605),l=n(20662),c=n(24438),u=n(17567),d=n(82449),h=n(62767),p=n(13645),f=n(22840),g=n(25899),m=n(39605),y=n(78862),v=n(16221),b=n(79913),x=n(12311),w=n(98030),A=n(60854);function S(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{"use strict";n.d(t,{Bq:()=>oe,FB:()=>re,XY:()=>ie,_B:()=>te,qt:()=>G,y6:()=>ee});var r=n(43994),i=n(70640),o=n(32814),a=n(64426),s=n(59615),l=n.n(s),c=n(64874),u=n(44773),d=n(79913),h=n(76262),p=n(34028),f=n(60854),g=n(23222),m=n(66372),y=n(16221),v=n(92288),b=n(55950),x=n(98030),w=n(48660),A=n(61970),S=n(12311),C=n(10011),E=n(85182),_=n(58368);function k(e,t,n){T(e,t),t.set(e,n)}function T(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function O(e,t){return e.get(P(e,t))}function P(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var I={CSV:"CSV Layer",esriDynamic:"Esri Dynamic Layer",esriFeature:"Esri Feature Layer",esriImage:"Esri Image Layer",imageStatic:"Static Image Layer",GeoJSON:"GeoJson Layer",GeoPackage:"GeoPackage Layer",xyzTiles:"XYZ Tiles",vectorTiles:"Vector Tiles",ogcFeature:"OGC Feature Layer",ogcWfs:"WFS Layer",ogcWms:"WMS Layer"},M=new WeakMap,L=new WeakMap,R=new WeakMap,j=new WeakMap,F=new WeakMap,D=new WeakMap,N=new WeakMap,z=new WeakMap,V=new WeakMap,B=new WeakMap,$=new WeakSet,G=function(){return(0,o.A)((function e(t,n,r){var o,s,l,c,u,h;(0,i.A)(this,e),T(u=this,h=$),h.add(u),(0,a.A)(this,"hitTolerance",e.DEFAULT_HIT_TOLERANCE),(0,a.A)(this,"mapId",void 0),(0,a.A)(this,"type",void 0),(0,a.A)(this,"geoviewLayerId",void 0),(0,a.A)(this,"geoviewLayerName",(0,d.createLocalizedString)("")),(0,a.A)(this,"metadataAccessPath",(0,d.createLocalizedString)("")),(0,a.A)(this,"listOfLayerEntryConfig",[]),(0,a.A)(this,"initialSettings",void 0),(0,a.A)(this,"layerLoadError",[]),(0,a.A)(this,"olRootLayer",void 0),(0,a.A)(this,"metadata",null),k(this,M,{}),k(this,L,{}),k(this,R,{}),(0,a.A)(this,"attributions",[]),(0,a.A)(this,"serverDateFragmentsOrder",void 0),(0,a.A)(this,"externalFragmentsOrder",void 0),k(this,j,[]),k(this,F,[]),k(this,D,[]),k(this,N,[]),k(this,z,[]),k(this,V,[]),k(this,B,[]),this.mapId=r,this.type=t,this.geoviewLayerId=n.geoviewLayerId||(0,d.generateId)(""),this.geoviewLayerName.en=null!=n&&null!==(o=n.geoviewLayerName)&&void 0!==o&&o.en?n.geoviewLayerName.en:I[t],this.geoviewLayerName.fr=null!=n&&null!==(s=n.geoviewLayerName)&&void 0!==s&&s.fr?n.geoviewLayerName.fr:I[t],null!==(l=n.metadataAccessPath)&&void 0!==l&&l.en&&(this.metadataAccessPath.en=n.metadataAccessPath.en.trim()),null!==(c=n.metadataAccessPath)&&void 0!==c&&c.fr&&(this.metadataAccessPath.fr=n.metadataAccessPath.fr.trim()),this.initialSettings=n.initialSettings,this.serverDateFragmentsOrder=n.serviceDateFormat?p.P.getDateFragmentsOrder(n.serviceDateFormat):void 0,this.externalFragmentsOrder=p.P.getDateFragmentsOrder(n.externalDateFormat),P($,this,U).call(this,n,n.listOfLayerEntryConfig)}),[{key:"getMapViewer",value:function(){return x.d.getMapViewer(this.mapId)}},{key:"getLayerConfig",value:function(e){return this.getMapViewer().layer.getLayerEntryConfig(e)}},{key:"getOLLayer",value:function(e){return this.getMapViewer().layer.getOLLayer(e)}},{key:"getGeoviewLayerId",value:function(){return this.geoviewLayerId}},{key:"getGeoviewLayerName",value:function(){return this.geoviewLayerName}},{key:"getLayerStatus",value:function(e){return this.getLayerConfig(e).layerStatus}},{key:"getLayerName",value:function(e){var t;return O(M,this)[e]?O(M,this)[e]:null===(t=this.getLayerConfig(e))||void 0===t?void 0:t.layerName}},{key:"setLayerName",value:function(e,t){O(M,this)[e]=t,P($,this,Q).call(this,{layerPath:e,layerName:t})}},{key:"getLayerMetadata",value:function(e){return O(L,this)[e]}},{key:"setLayerMetadata",value:function(e,t){O(L,this)[e]=t}},{key:"getTemporalDimension",value:function(e){return O(R,this)[e]}},{key:"setTemporalDimension",value:function(e,t){O(R,this)[e]=t}},{key:"countErrorStatus",value:function(){var e=this;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.listOfLayerEntryConfig).reduce((function(t,n){return(0,w.KD)(n)?t+e.countErrorStatus(n.listOfLayerEntryConfig):"error"===n.layerStatus?t+1:t}),0)}},{key:"createGeoViewLayers",value:(ne=(0,r.A)(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.olRootLayer){e.next=13;break}return f.vF.logTraceCore("ABSTRACT-GEOVIEW-LAYERS - createGeoViewLayers",this.listOfLayerEntryConfig),this.listOfLayerEntryConfig.length>0&&(t="".concat(this.mapId," | ").concat(this.listOfLayerEntryConfig[0].layerPath)),t&&f.vF.logMarkerStart(t),e.next=6,this.getAdditionalServiceDefinition();case 6:return t&&f.vF.logMarkerCheck(t,"to get additional service definition"),e.next=9,this.processListOfLayerEntryConfig(this.listOfLayerEntryConfig);case 9:this.olRootLayer=e.sent,t&&f.vF.logMarkerCheck(t,"to process list of layer entry config"),e.next=14;break;case 13:throw new A.Kz(this,this.mapId);case 14:case"end":return e.stop()}}),e,this)}))),function(){return ne.apply(this,arguments)})},{key:"getAdditionalServiceDefinition",value:(te=(0,r.A)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.fetchServiceMetadata();case 3:if(!this.listOfLayerEntryConfig.length){e.next=6;break}return e.next=6,this.validateAndExtractLayerMetadata();case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),f.vF.logError(e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return te.apply(this,arguments)})},{key:"validateAndExtractLayerMetadata",value:(ee=(0,r.A)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.validateListOfLayerEntryConfig(this.listOfLayerEntryConfig),e.next=4,this.processListOfLayerEntryMetadata(this.listOfLayerEntryConfig);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),f.vF.logError(e.t0);case 9:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(){return ee.apply(this,arguments)})},{key:"fetchServiceMetadata",value:(q=(0,r.A)(l().mark((function e(){var t,n,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=(0,d.getLocalizedValue)(this.metadataAccessPath,v.K.getDisplayLanguage(this.mapId)))){e.next=13;break}return e.prev=2,e.next=5,(0,d.getXMLHttpRequest)("".concat(t,"?f=json"));case 5:"{}"===(n=e.sent)?this.metadata=null:(this.metadata=(0,h.NK)(JSON.parse(n)),(r=this.metadata.copyrightText)&&!this.attributions.includes(r)&&this.attributions.push(r)),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),f.vF.logError(e.t0),this.setAllLayerStatusTo("error",this.listOfLayerEntryConfig,"Unable to read metadata");case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return q.apply(this,arguments)})},{key:"processListOfLayerEntryMetadata",value:(G=(0,r.A)(l().mark((function e(t){var n,r,i,o=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,n=[],r=0;case 3:if(!(r2&&void 0!==u[2]?u[2]:null,e.prev=1,null!=(o=this.getLayerConfig(n))&&null!==(i=o.source)&&void 0!==i&&null!==(i=i.featureInfo)&&void 0!==i&&i.queryable){e.next=6;break}return f.vF.logError("Layer at path ".concat(o.layerPath," is not queryable")),e.abrupt("return",null);case 6:f.vF.logTraceCore("ABSTRACT-GEOVIEW-LAYERS - getFeatureInfo",t,n),a="".concat(t," | ").concat(n),f.vF.logMarkerStart(a),e.t0=t,e.next="all"===e.t0?12:"at_pixel"===e.t0?14:"at_coordinate"===e.t0?16:"at_long_lat"===e.t0?18:"using_a_bounding_box"===e.t0?20:"using_a_polygon"===e.t0?22:24;break;case 12:return s=this.getAllFeatureInfo(n),e.abrupt("break",26);case 14:return s=this.getFeatureInfoAtPixel(r,n),e.abrupt("break",26);case 16:return s=this.getFeatureInfoAtCoordinate(r,n),e.abrupt("break",26);case 18:return s=this.getFeatureInfoAtLongLat(r,n),e.abrupt("break",26);case 20:return s=this.getFeatureInfoUsingBBox(r,n),e.abrupt("break",26);case 22:return s=this.getFeatureInfoUsingPolygon(r,n),e.abrupt("break",26);case 24:s=Promise.resolve([]),f.vF.logError("Queries using ".concat(t," are invalid."));case 26:return e.next=28,s;case 28:return c=e.sent,f.vF.logMarkerCheck(a,"to getFeatureInfo",c),e.abrupt("return",c);case 33:return e.prev=33,e.t1=e.catch(1),f.vF.logError(e.t1),e.abrupt("return",null);case 37:case"end":return e.stop()}}),e,this,[[1,33]])}))),function(e,t){return s.apply(this,arguments)})},{key:"getAllFeatureInfo",value:function(e){return f.vF.logError("getAllFeatureInfo is not implemented! for ".concat(e)),Promise.resolve(null)}},{key:"getFeatureInfoAtPixel",value:function(e,t){return f.vF.logError("getFeatureInfoAtPixel is not implemented! for ".concat(t," - ").concat(e)),Promise.resolve(null)}},{key:"getFeatureInfoAtCoordinate",value:function(e,t){return f.vF.logError("getFeatureInfoAtCoordinate is not implemented! for ".concat(t," - ").concat(e)),Promise.resolve(null)}},{key:"getFeatureInfoAtLongLat",value:function(e,t){return f.vF.logError("getFeatureInfoAtLongLat is not implemented for ".concat(t," - ").concat(e,"!")),Promise.resolve(null)}},{key:"getFeatureInfoUsingBBox",value:function(e,t){return f.vF.logError("getFeatureInfoUsingBBox is not implemented! for ".concat(t," - ").concat(e)),Promise.resolve(null)}},{key:"getFeatureInfoUsingPolygon",value:function(e,t){return f.vF.logError("getFeatureInfoUsingPolygon is not implemented! for ".concat(t," - ").concat(e)),Promise.resolve(null)}},{key:"queryLegend",value:function(e){var t=this;P($,this,Y).call(this,{layerPath:e});var n=this.getLegend(e);return n.then((function(n){n&&P($,t,K).call(t,{layerPath:e,legend:n})})).catch((function(e){f.vF.logPromiseFailed("promiseLegend in queryLegend in AbstractGeoviewLayer",e)})),n}},{key:"createLayerGroup",value:function(e,t){var n,r,i={layers:new c.A,properties:{layerConfig:e}};void 0!==(null==t?void 0:t.extent)&&(i.extent=t.extent),void 0!==(null==t?void 0:t.maxZoom)&&(i.maxZoom=t.maxZoom),void 0!==(null==t?void 0:t.minZoom)&&(i.minZoom=t.minZoom),void 0!==(null==t||null===(n=t.states)||void 0===n?void 0:n.opacity)&&(i.opacity=t.states.opacity),void 0!==(null==t||null===(r=t.states)||void 0===r?void 0:r.visible)&&(i.visible=t.states.visible);var o=new u.A(i);return P($,this,J).call(this,{layer:o,config:e}),o}},{key:"getMetadataBounds",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=function e(n){n.forEach((function(n){var r;(0,w.KD)(n)?e(n.listOfLayerEntryConfig):null!==(r=n.initialSettings)&&void 0!==r&&r.bounds&&(t=t?[Math.min(n.initialSettings.bounds[0],t[0]),Math.min(n.initialSettings.bounds[1],t[1]),Math.max(n.initialSettings.bounds[2],t[2]),Math.max(n.initialSettings.bounds[3],t[3])]:[n.initialSettings.bounds[0],n.initialSettings.bounds[1],n.initialSettings.bounds[2],n.initialSettings.bounds[3]])}))},i=e.includes("/")?this.getLayerConfig(e):this.listOfLayerEntryConfig;return i&&(Array.isArray(i)?r(i):r([i]),n&&t)?S.M.transformExtent(t,"EPSG:4326","EPSG:".concat(n)):t}},{key:"getFieldDomain",value:function(e,t){return f.vF.logWarning("getFieldDomain is not implemented for ".concat(e," - ").concat(t)),null}},{key:"getFieldType",value:function(e,t){return f.vF.logWarning("getFieldType is not implemented for ".concat(e," - ").concat(t)),"string"}},{key:"getExtent",value:function(e){var t=this.getOLLayer(e);return null==t?void 0:t.getExtent()}},{key:"setExtent",value:function(e,t){var n=this.getOLLayer(t);n&&n.setExtent(e)}},{key:"getOpacity",value:function(e){var t=this.getOLLayer(e);return null==t?void 0:t.getOpacity()}},{key:"setOpacity",value:function(e,t){var n=this.getOLLayer(t);n&&n.setOpacity(e)}},{key:"getVisible",value:function(e){var t=this.getOLLayer(e);return null==t?void 0:t.getVisible()}},{key:"setVisible",value:function(e,t){var n=this.getOLLayer(t);n&&(n.setVisible(e),e!==this.getVisible(t)&&P($,this,X).call(this,{visible:e}))}},{key:"getMinZoom",value:function(e){var t=this.getOLLayer(e);return null==t?void 0:t.getMinZoom()}},{key:"setMinZoom",value:function(e,t){var n=this.getOLLayer(t);n&&n.setMinZoom(e)}},{key:"getMaxZoom",value:function(e){var t=this.getOLLayer(e);return null==t?void 0:t.getMaxZoom()}},{key:"setMaxZoom",value:function(e,t){var n=this.getOLLayer(t);n&&n.setMaxZoom(e)}},{key:"getLegend",value:(n=(0,r.A)(l().mark((function e(t){var n,r,i,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=this.getLayerConfig(t)){e.next=5;break}return r={type:this.type,layerName:{en:"config not found",fr:"config inexistante"},styleConfig:null,legend:null},e.abrupt("return",r);case 5:if(n.style){e.next=8;break}return i={type:this.type,layerName:n.layerName,styleConfig:n.style,legend:null},e.abrupt("return",i);case 8:return e.t0=this.type,e.t1=null==n?void 0:n.layerName,e.t2=null==n?void 0:n.style,e.next=13,(0,C.qC)(n);case 13:return e.t3=e.sent,o={type:e.t0,layerName:e.t1,styleConfig:e.t2,legend:e.t3},e.abrupt("return",o);case 18:return e.prev=18,e.t4=e.catch(0),f.vF.logError(e.t4),e.abrupt("return",null);case 22:case"end":return e.stop()}}),e,this,[[0,18]])}))),function(e){return n.apply(this,arguments)})},{key:"getFieldValue",value:function(e,t,n){var r,i=e.get(t);if("date"===n){"string"==typeof i?(this.serverDateFragmentsOrder||(this.serverDateFragmentsOrder=p.P.getDateFragmentsOrder(p.P.deduceDateFormat(i))),r=p.P.applyInputDateFormat(i,this.serverDateFragmentsOrder)):r=p.P.convertToUTC("".concat(p.P.convertMilisecondsToDate(i),"Z"));return this.externalFragmentsOrder&&(r=p.P.applyOutputDateFormat(r,this.externalFragmentsOrder,!0)),r}return i}},{key:"formatFeatureInfoResult",value:(t=(0,r.A)(l().mark((function e(t,n){var i,o,a,s,c,u,h,p,m,y,x,w,A,S,E,_,k,T=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t.length){e.next=3;break}return e.abrupt("return",[]);case 3:return u=new g.z(1),h=function(){return u.withLock((0,r.A)(l().mark((function e(){var t,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==c){e.next=7;break}return c=null,e.next=4,T.queryLegend(n.layerPath);case 4:t=e.sent,(r=b.K.getLayerIconImage(t))&&(c=r[0].iconImage||null);case 7:return e.abrupt("return",c);case 8:case"end":return e.stop()}}),e)}))))},p=null==n||null===(i=n.source)||void 0===i?void 0:i.featureInfo,m=null==p||null===(o=p.fieldTypes)||void 0===o?void 0:o.split(","),y=null===(a=(0,d.getLocalizedValue)(null==p?void 0:p.outfields,v.K.getDisplayLanguage(this.mapId)))||void 0===a?void 0:a.split(","),x=null===(s=(0,d.getLocalizedValue)(null==p?void 0:p.aliasFields,v.K.getDisplayLanguage(this.mapId)))||void 0===s?void 0:s.split(","),w=[],t.forEach((function(e){w.push(new Promise((function(t){(0,C.$G)(e,n,h).then((function(n){t({feature:e,canvas:n})})).catch((function(e){f.vF.logPromiseFailed("getFeatureCanvas in featureNeedingItsCanvas loop in formatFeatureInfoResult in AbstractGeoViewLayer",e)}))})))})),A={},S={},E=0,_=0,k=[],e.next=18,Promise.all(w);case 18:return e.sent.forEach((function(e){var t,r,i=e.feature,o=e.canvas;i.getGeometry()&&(r=i.getGeometry().getExtent());var a={featureKey:E++,geoviewLayerType:T.type,extent:r,geometry:i,featureIcon:o,fieldInfo:{},nameField:(0,d.getLocalizedValue)(null==n||null===(t=n.source)||void 0===t||null===(t=t.featureInfo)||void 0===t?void 0:t.nameField,v.K.getDisplayLanguage(T.mapId))||null};i.getKeys().forEach((function(e){if("geometry"!==e){e in A||(A[e]=T.getFieldDomain(e,n));var t=A[e];e in S||(S[e]=T.getFieldType(e,n));var r=S[e];if(null!=y&&y.includes(e)){var o=y.indexOf(e);a.fieldInfo[e]={fieldKey:_++,value:T.getFieldValue(i,e,m[o]),dataType:m[o],alias:x[o],domain:t}}else y||(a.fieldInfo[e]={fieldKey:_++,value:T.getFieldValue(i,e,r),dataType:r,alias:e,domain:t})}})),k.push(a)})),e.abrupt("return",k);case 23:return e.prev=23,e.t0=e.catch(0),f.vF.logError(e.t0),e.abrupt("return",[]);case 27:case"end":return e.stop()}}),e,this,[[0,23]])}))),function(e,n){return t.apply(this,arguments)})},{key:"getLayerFilter",value:function(e){var t=this.getLayerConfig(e);return null==t?void 0:t.layerFilter}},{key:"onLoaded",value:function(e){var t;e.layerStatus="loaded",this.setVisible(!1!==(null===(t=e.initialSettings)||void 0===t||null===(t=t.states)||void 0===t?void 0:t.visible),e.layerPath)}},{key:"onError",value:function(e){e.layerStatus="error"}},{key:"calculateBounds",value:function(e){var t=this;try{var n,r=function e(r){r.forEach((function(r){(0,w.KD)(r)?e(r.listOfLayerEntryConfig):n=t.getBounds(r.layerPath,n)}))},i=this.getLayerConfig(e);return i&&(Array.isArray(i)?r(i):r([i])),n}catch(t){return void f.vF.logError("Couldn't calculate bounds on layer ".concat(e),t)}}},{key:"setAllLayerStatusTo",value:function(e,t,n){var r=this;t.forEach((function(t){if((0,w.KD)(t))r.setAllLayerStatusTo(e,t.listOfLayerEntryConfig,n);else{if("error"===t.layerStatus)return;if(t.layerStatus=e,"error"===e){var i=t.layerPath;r.layerLoadError.push({layer:i,loggerMessage:"".concat(n," for layer ").concat(i," of map ").concat(r.mapId)})}}}))}},{key:"allLayerStatusAreGreaterThanOrEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.listOfLayerEntryConfig;return E.c.allLayerStatusAreGreaterThanOrEqualTo(e,t)}},{key:"waitForAllLayerStatusAreGreaterThanOrEqualTo",value:(e=(0,r.A)(l().mark((function e(t,n){var r=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.whenThisThen)((function(){return r.allLayerStatusAreGreaterThanOrEqualTo("processed")}),t,n);case 2:return e.abrupt("return",Promise.resolve());case 3:case"end":return e.stop()}}),e)}))),function(t,n){return e.apply(this,arguments)})},{key:"setLayerAndLoadEndListeners",value:function(e,t,n){var r=this;if(!t)throw new Error("An OpenLayer must be provided to register listeners. Layer path ".concat(e.layerPath));if(!n)throw new Error("A listenerType must be provided to register listeners. Layer path ".concat(e.layerPath));if(e.entryType!==w.hJ.GROUP){var i,o=function(){r.onLoaded(e),t.get("source").un("".concat(n,"loaderror"),i)};i=function(){r.onError(e),t.get("source").un("".concat(n,"loadend"),o)},_.A.LAYERS_HYBRID_MODE||(t.get("source").once("".concat(n,"loaderror"),i),t.get("source").once("".concat(n,"loadend"),o))}P($,this,J).call(this,{layer:t,config:e})}},{key:"getAllLayerEntryConfigs",value:function(){var e=this,t=[];return this.listOfLayerEntryConfig.forEach((function(n){P($,e,H).call(e,t,n)})),t}},{key:"onLegendQuerying",value:function(e){y.A.onEvent(O(j,this),e)}},{key:"offLegendQuerying",value:function(e){y.A.offEvent(O(j,this),e)}},{key:"onLegendQueried",value:function(e){y.A.onEvent(O(F,this),e)}},{key:"offLegendQueried",value:function(e){y.A.offEvent(O(F,this),e)}},{key:"onVisibleChanged",value:function(e){y.A.onEvent(O(D,this),e)}},{key:"offVisibleChanged",value:function(e){y.A.offEvent(O(D,this),e)}},{key:"onLayerEntryProcessed",value:function(e){y.A.onEvent(O(N,this),e)}},{key:"offLayerEntryProcessed",value:function(e){y.A.offEvent(O(N,this),e)}},{key:"onLayerCreation",value:function(e){y.A.onEvent(O(z,this),e)}},{key:"offLayerCreation",value:function(e){y.A.offEvent(O(z,this),e)}},{key:"emitLayerFilterApplied",value:function(e){y.A.emitEvent(this,O(V,this),e)}},{key:"onLayerFilterApplied",value:function(e){y.A.onEvent(O(V,this),e)}},{key:"offLayerFilterApplied",value:function(e){y.A.offEvent(O(V,this),e)}},{key:"onLayerNameChanged",value:function(e){y.A.onEvent(O(B,this),e)}},{key:"offLayerNameChanged",value:function(e){y.A.offEvent(O(B,this),e)}}]);var e,t,n,s,m,G,q,ee,te,ne}();function U(e,t){if(0!==t.length){if(1===t.length)this.listOfLayerEntryConfig=t;else{var n=new m.x({geoviewLayerConfig:t[0].geoviewLayerConfig,layerId:this.geoviewLayerId,layerName:this.geoviewLayerName,isMetadataLayerGroup:!1,initialSettings:e.initialSettings,listOfLayerEntryConfig:t});this.listOfLayerEntryConfig=[n],n.listOfLayerEntryConfig.forEach((function(e){e.parentLayerConfig=n}))}this.listOfLayerEntryConfig[0].geoviewLayerConfig.listOfLayerEntryConfig=t}}function W(e){return q.apply(this,arguments)}function q(){return(q=(0,r.A)(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.processLayerMetadata(t);case 3:return e.next=5,this.processListOfLayerEntryMetadata(t.listOfLayerEntryConfig);case 5:return t.layerStatus="processed",P($,this,Z).call(this,{config:t}),e.abrupt("return",t);case 10:e.prev=10,e.t0=e.catch(0),f.vF.logError(e.t0);case 13:return e.abrupt("return",t);case 14:case"end":return e.stop()}}),e,this,[[0,10]])})))).apply(this,arguments)}function H(e,t){var n,r=this;e.push(t),null===(n=t.listOfLayerEntryConfig)||void 0===n||n.forEach((function(t){P($,r,H).call(r,e,t)}))}function Y(e){y.A.emitEvent(this,O(j,this),e)}function K(e){y.A.emitEvent(this,O(F,this),e)}function X(e){y.A.emitEvent(this,O(D,this),e)}function Z(e){y.A.emitEvent(this,O(N,this),e)}function J(e){y.A.emitEvent(this,O(z,this),e)}function Q(e){y.A.emitEvent(this,O(B,this),e)}(0,a.A)(G,"DEFAULT_HIT_TOLERANCE",4);var ee={CSV:"CSV",ESRI_DYNAMIC:"esriDynamic",ESRI_FEATURE:"esriFeature",ESRI_IMAGE:"esriImage",IMAGE_STATIC:"imageStatic",GEOJSON:"GeoJSON",GEOPACKAGE:"GeoPackage",XYZ_TILES:"xyzTiles",VECTOR_TILES:"vectorTiles",OGC_FEATURE:"ogcFeature",WFS:"ogcWfs",WMS:"ogcWms"},te={CSV:"TypeVectorLayerEntryConfig",imageStatic:"TypeImageStaticLayerEntryConfig",esriDynamic:"TypeEsriDynamicLayerEntryConfig",esriFeature:"TypeVectorLayerEntryConfig",esriImage:"TypeEsriImageLayerEntryConfig",GeoJSON:"TypeVectorLayerEntryConfig",GeoPackage:"TypeVectorLayerEntryConfig",xyzTiles:"TypeTileLayerEntryConfig",vectorTiles:"TypeTileLayerEntryConfig",ogcFeature:"TypeVectorLayerEntryConfig",ogcWfs:"TypeVectorLayerEntryConfig",ogcWms:"TypeOgcWmsLayerEntryConfig"},ne=[ee.CSV,ee.GEOJSON,ee.ESRI_DYNAMIC,ee.ESRI_FEATURE,ee.ESRI_IMAGE,ee.OGC_FEATURE,ee.WFS,ee.GEOPACKAGE],re=function(e){return ne.includes(null==e?void 0:e.type)},ie=function(e){return(null==e?void 0:e.type)===ee.WMS},oe=function(e){return(null==e?void 0:e.type)===ee.IMAGE_STATIC}},80104:(e,t,n)=>{"use strict";n.d(t,{$A:()=>L,KS:()=>P,Nf:()=>j,RW:()=>M,Sh:()=>O,YX:()=>I,gm:()=>R,mF:()=>k});var r=n(64426),i=n(43994),o=n(59615),a=n.n(o),s=n(97493),l=n(80363),c=n.n(l),u=n(98030),d=n(76262),h=n(79913),p=n(12311),f=n(34028),g=n(60854),m=n(97752),y=n(80995),v=n(66372),b=n(48660),x=n(85813),w=n(10454),A=n(52375),S=n(49848),C=n(92288);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 _(e){for(var t=1;t{"use strict";n.d(t,{A:()=>u});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096);function l(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,c()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}var u=function(e){function t(){return(0,i.A)(this,t),l(this,t,arguments)}return(0,s.A)(t,e),(0,r.A)(t)}(n(85813).qt)},10454:(e,t,n)=>{"use strict";n.d(t,{IU:()=>j,xM:()=>F,zt:()=>N});var r=n(28249),i=n(43994),o=n(70640),a=n(32814),s=n(71149),l=n(66138),c=n(99979),u=n(38096),d=n(64426),h=n(59615),p=n.n(h),f=n(76352),g=n(28596),m=n(987),y=n(20662),v=n(48690),b=n(79913),x=n(85813),w=n(86203),A=n(12311),S=n(62338),C=n(60854),E=n(34028),_=n(48660),k=n(80104),T=n(92288);function O(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 P(e){for(var t=1;t= ").concat(R(D,this,$).call(this,a.field,a.classBreakStyleInfo[0].minValue,n.source.featureInfo))):!1===a.classBreakStyleInfo[0].visible&&!1!==a.defaultVisible&&(d.push("".concat(a.field," < ").concat(R(D,this,$).call(this,a.field,a.classBreakStyleInfo[0].minValue,n.source.featureInfo))),h=p):!1!==a.classBreakStyleInfo[p].visible&&!1===a.defaultVisible?(d.push("".concat(a.field," > ").concat(R(D,this,$).call(this,a.field,a.classBreakStyleInfo[p].minValue,n.source.featureInfo))),p+1===a.classBreakStyleInfo.length&&d.push("".concat(a.field," <= ").concat(R(D,this,$).call(this,a.field,a.classBreakStyleInfo[p].maxValue,n.source.featureInfo)))):!1===a.classBreakStyleInfo[p].visible&&!1!==a.defaultVisible&&(d.push("".concat(a.field," <= ").concat(R(D,this,$).call(this,a.field,a.classBreakStyleInfo[p].minValue,n.source.featureInfo))),h=p):!1===a.defaultVisible?!1===a.classBreakStyleInfo[p].visible?d.push("".concat(a.field," <= ").concat(R(D,this,$).call(this,a.field,a.classBreakStyleInfo[p-1].maxValue,n.source.featureInfo))):p+1===a.classBreakStyleInfo.length&&d.push("".concat(a.field," <= ").concat(R(D,this,$).call(this,a.field,a.classBreakStyleInfo[p].maxValue,n.source.featureInfo))):!1!==a.classBreakStyleInfo[p].visible?(d.push("".concat(a.field," > ").concat(R(D,this,$).call(this,a.field,a.classBreakStyleInfo[p-1].maxValue,n.source.featureInfo))),h=-1):h=p;if(-1!==h&&d.push("".concat(a.field," > ").concat(R(D,this,$).call(this,a.field,a.classBreakStyleInfo[h].maxValue,n.source.featureInfo))),!1!==a.defaultVisible){var f="".concat(d.slice(0,-1).reduce((function(e,t,n){return 0===n?"(".concat(t," or "):n%2==0?"".concat(e," and ").concat(t,") or "):"".concat(e,"(").concat(t)}),"")).concat(d.slice(-1)[0],")");return"".concat(f).concat(r?" and (".concat(r,")"):"")}var g=d.length?"".concat(d.reduce((function(e,t,n){return 0===n?"((".concat(t," and "):n%2==0?"".concat(e," or (").concat(t," and "):"".concat(e).concat(t,")")}),""),")"):"(1=0)";return"".concat(g).concat(r?" and (".concat(r,")"):"")}}return"(1=1)"}},{key:"onLoaded",value:function(e){(0,l.A)((0,c.A)(t.prototype),"onLoaded",this).call(this,e),this.applyViewFilter(e.layerPath,e.layerFilter||"")}},{key:"applyViewFilter",value:function(e,t){var n=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];C.vF.logTraceCore("ESRI-DYNAMIC - applyViewFilter",e);var o=this.getLayerConfig(e),a=this.getOLLayer(e),s=t.replaceAll(/\s{2,}/g," ").trim();o.legendFilterIsOff=!i,o.layerFilter=s,i&&(s=this.getViewFilter(e));var l=(0,r.A)(s.matchAll(/(?<=^date\b\s')[\d/\-T\s:+Z]{4,25}(?=')|(?<=[(\s]date\b\s')[\d/\-T\s:+Z]{4,25}(?=')/gi));l.reverse(),l.forEach((function(e){var t=![20,25].includes(e[0].length),r=E.P.applyInputDateFormat(e[0],n.externalFragmentsOrder,t);r=(r=r.slice(0,20===r.length?-1:-6)).replace("T"," "),s="".concat(s.slice(0,e.index)).concat(r).concat(s.slice(e.index+e[0].length))})),null==a||a.getSource().updateParams({layerDefs:'{"'.concat(o.layerId,'": "').concat(s,'"}')}),null==a||a.changed(),this.emitLayerFilterApplied({layerPath:e,filter:s})}},{key:"getBounds",value:function(e,t){var n,r,i,o,a,s,l,c=this.getLayerConfig(e),u=(null==c||null===(n=c.initialSettings)||void 0===n?void 0:n.bounds)||[],d=(null===(r=this.metadata)||void 0===r||null===(r=r.fullExtent)||void 0===r||null===(r=r.spatialReference)||void 0===r?void 0:r.wkid)||this.getMapViewer().getProjection().getCode().replace("EPSG:","");null!==(i=this.metadata)&&void 0!==i&&i.fullExtent&&(u[0]=null===(o=this.metadata)||void 0===o?void 0:o.fullExtent.xmin,u[1]=null===(a=this.metadata)||void 0===a?void 0:a.fullExtent.ymin,u[2]=null===(s=this.metadata)||void 0===s?void 0:s.fullExtent.xmax,u[3]=null===(l=this.metadata)||void 0===l?void 0:l.fullExtent.ymax);if(u){var h,p=u;(null===(h=this.metadata)||void 0===h||null===(h=h.fullExtent)||void 0===h||null===(h=h.spatialReference)||void 0===h?void 0:h.wkid)!==this.getMapViewer().getProjection().getCode().replace("EPSG:","")&&(p=this.getMapViewer().convertExtentFromProjToMapProj(u,"EPSG:".concat(d))),t=t?(0,S.getMinOrMaxExtents)(t,p):[p[0],p[1],p[2],p[3]]}return t}}]);var n,s,h}(w.A);function z(e){return e.uniqueValueStyleInfo.reduce((function(t,n){return(!1===n.visible&&!1!==e.defaultVisible||!1!==n.visible&&!1===e.defaultVisible)&&n.values.forEach((function(e,n){var r=t[n].find((function(t){return t.value===e}));r?r.nbOccurence++:t[n].push({value:e,nbOccurence:1})})),t}),e.fields.map((function(){return[]})))}function V(e,t){for(var n=e.fields.map((function(){return!0})),r=[],i=0;-1!==i;i=n.findIndex((function(e){return e}))){for(var o=t[i].reduce((function(e,t){return e+t.nbOccurence}),0),a=0;at[a].length||t[i].length===t[a].length&&o{"use strict";n.d(t,{$x:()=>P,sV:()=>O,yl:()=>T});var r=n(64426),i=n(28249),o=n(43994),a=n(70640),s=n(32814),l=n(71149),c=n(66138),u=n(99979),d=n(38096),h=n(59615),p=n.n(h),f=n(76352),g=n(28596),m=n(79913),y=n(62338),v=n(34028),b=n(60854),x=n(85813),w=n(86203),A=n(48660),S=n(80104),C=n(92288),E=n(10011);function _(e,t,n){return t=(0,u.A)(t),(0,l.A)(e,k()?Reflect.construct(t,n||[],(0,u.A)(e).constructor):t.apply(e,n))}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k=function(){return!!e})()}var T=function(e){return(null==e?void 0:e.geoviewLayerType)===x.y6.ESRI_IMAGE},O=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===x.y6.ESRI_IMAGE},P=function(e){function t(e,n){return(0,a.A)(this,t),n.serviceDateFormat||(n.serviceDateFormat="DD/MM/YYYY HH:MM:SSZ"),_(this,t,[x.y6.ESRI_IMAGE,n,e])}return(0,d.A)(t,e),(0,s.A)(t,[{key:"getLegend",value:(l=(0,o.A)(p().mark((function e(t){var n,r,i,o,a,s,l,c,u,d;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=this.getLayerConfig(t)){e.next=4;break}return e.abrupt("return",null);case 4:return r="".concat((0,m.getLocalizedValue)(n.geoviewLayerConfig.metadataAccessPath,C.K.getDisplayLanguage(this.mapId)),"/legend?f=pjson"),e.next=7,fetch(r);case 7:return i=e.sent,e.next=10,i.json();case 10:if((o=e.sent).layers&&1===o.layers.length?a=o.layers[0].legend:o.layers.length&&(s=o.layers.find((function(e){return e.layerId===n.layerId})))&&(a=s.legend),a){e.next=15;break}return l={type:this.type,layerName:n.layerName,styleConfig:n.style,legend:null},e.abrupt("return",l);case 15:return c=[],a.forEach((function(e){var t={label:e.label,values:e.label.split(","),settings:{type:"iconSymbol",mimeType:e.contentType,src:e.imageData,width:e.width,height:e.height}};c.push(t)})),u={Point:{styleType:"uniqueValue",fields:["default"],uniqueValueStyleInfo:c}},n.style=u,e.t0=this.type,e.t1=null==n?void 0:n.layerName,e.t2=u,e.next=25,(0,E.qC)(n);case 25:return e.t3=e.sent,d={type:e.t0,layerName:e.t1,styleConfig:e.t2,legend:e.t3},e.abrupt("return",d);case 30:return e.prev=30,e.t4=e.catch(0),b.vF.logError("Get Legend for ".concat(t," error"),e.t4),e.abrupt("return",null);case 34:case"end":return e.stop()}}),e,this,[[0,30]])}))),function(e){return l.apply(this,arguments)})},{key:"validateListOfLayerEntryConfig",value:function(e){var t=this;e.forEach((function(e){var n=e.layerPath;(0,A.KD)(e)&&(t.validateListOfLayerEntryConfig(e.listOfLayerEntryConfig),e.listOfLayerEntryConfig.length||(t.layerLoadError.push({layer:n,loggerMessage:"Empty layer group (mapId: ".concat(t.mapId,", layerPath: ").concat(n,")")}),e.layerStatus="error"))}))}},{key:"getFieldType",value:function(e,t){return(0,S.KS)(this,e,t)}},{key:"getFieldDomain",value:function(e,t){return(0,S.YX)(this,e,t)}},{key:"processTemporalDimension",value:function(e,t){(0,S.RW)(this,e,t,!0)}},{key:"processFeatureInfoConfig",value:function(e){(0,S.$A)(this,e)}},{key:"processInitialSettings",value:function(e){(0,S.gm)(this,e)}},{key:"processLayerMetadata",value:function(e){return(0,S.Nf)(this,e)}},{key:"processOneLayerEntry",value:(n=(0,o.A)(p().mark((function e(n){var r,i,o,a,s,l,d,h;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.A)((0,u.A)(t.prototype),"processOneLayerEntry",this).call(this,n);case 2:return(l={}).attributions=[this.metadata.copyrightText?this.metadata.copyrightText:""],l.url=(0,m.getLocalizedValue)(n.source.dataAccessPath,C.K.getDisplayLanguage(this.mapId)),l.params={LAYERS:"show:".concat(n.layerId)},n.source.transparent&&Object.defineProperty(l.params,"transparent",n.source.transparent),n.source.format&&Object.defineProperty(l.params,"format",n.source.format),n.source.crossOrigin?l.crossOrigin=n.source.crossOrigin:l.crossOrigin="Anonymous",n.source.projection&&(l.projection="EPSG:".concat(n.source.projection)),d={source:new f.A(l),properties:{layerConfig:n}},void 0!==(null===(r=n.initialSettings)||void 0===r?void 0:r.className)&&(d.className=n.initialSettings.className),void 0!==(null===(i=n.initialSettings)||void 0===i?void 0:i.extent)&&(d.extent=n.initialSettings.extent),void 0!==(null===(o=n.initialSettings)||void 0===o?void 0:o.maxZoom)&&(d.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(a=n.initialSettings)||void 0===a?void 0:a.minZoom)&&(d.minZoom=n.initialSettings.minZoom),void 0!==(null===(s=n.initialSettings)||void 0===s||null===(s=s.states)||void 0===s?void 0:s.opacity)&&(d.opacity=n.initialSettings.states.opacity),h=new g.A(d),this.setLayerAndLoadEndListeners(n,h,"image"),e.abrupt("return",Promise.resolve(h));case 19:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"onLoaded",value:function(e){(0,c.A)((0,u.A)(t.prototype),"onLoaded",this).call(this,e),this.applyViewFilter(e.layerPath,e.layerFilter||"")}},{key:"applyViewFilter",value:function(e,t,n){var o=this;b.vF.logTraceCore("ESRIImage - applyViewFilter",e);var a=this.getLayerConfig(e),s=this.getOLLayer(e),l=s.getSource();if(l){var c=t;if(a.legendFilterIsOff=!n,n&&(a.layerFilter=t),c){var u=(c=c.replaceAll(/\s{2,}/g," ").trim()).split(/(?<=\b)\s*=/),d=u[0].trim();c=u[1].trim();var h=(0,i.A)("".concat(c," ").matchAll(/(?<=^date\b\s')[\d/\-T\s:+Z]{4,25}(?=')|(?<=[(\s]date\b\s')[\d/\-T\s:+Z]{4,25}(?=')/gi));h.reverse(),h.forEach((function(e){var t=![20,25].includes(e[0].length),n=v.P.applyInputDateFormat(e[0],o.externalFragmentsOrder,t);c="".concat(c.slice(0,e.index-6)).concat(n).concat(c.slice(e.index+e[0].length+2))})),l.updateParams((0,r.A)({},d,c.replace(/\s*/g,""))),s.changed(),this.emitLayerFilterApplied({layerPath:e,filter:c})}}}},{key:"getBounds",value:function(e,t){var n,r,i,o,a,s,l,c=this.getLayerConfig(e),u=(null===(n=this.metadata)||void 0===n||null===(n=n.fullExtent)||void 0===n||null===(n=n.spatialReference)||void 0===n?void 0:n.wkid)||this.getMapViewer().getProjection().getCode().replace("EPSG:",""),d=(null==c||null===(r=c.initialSettings)||void 0===r?void 0:r.bounds)||[];null!==(i=this.metadata)&&void 0!==i&&i.fullExtent&&(d[0]=null===(o=this.metadata)||void 0===o?void 0:o.fullExtent.xmin,d[1]=null===(a=this.metadata)||void 0===a?void 0:a.fullExtent.ymin,d[2]=null===(s=this.metadata)||void 0===s?void 0:s.fullExtent.xmax,d[3]=null===(l=this.metadata)||void 0===l?void 0:l.fullExtent.ymax);if(d){var h,p=d;(null===(h=this.metadata)||void 0===h||null===(h=h.fullExtent)||void 0===h||null===(h=h.spatialReference)||void 0===h?void 0:h.wkid)!==this.getMapViewer().getProjection().getCode().replace("EPSG:","")&&(p=this.getMapViewer().convertExtentFromProjToMapProj(d,"EPSG:".concat(u))),t=t?(0,y.getMinOrMaxExtents)(t,p):[p[0],p[1],p[2],p[3]]}return t}}]);var n,l}(w.A)},78643:(e,t,n)=>{"use strict";n.d(t,{S6:()=>D,Qn:()=>j,HO:()=>R});var r=n(43994),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(59615),d=n.n(u),h=n(97493),p=n(28596),f=n(41320),g=n(82402),m=n(62661),y=n(41218);var v=n(34336);class b extends g.Ay{constructor(e){const t=void 0!==e.crossOrigin?e.crossOrigin:null,n=void 0!==e.imageLoadFunction?e.imageLoadFunction:g.VV;super({attributions:e.attributions,interpolate:e.interpolate,projection:(0,v.Jt)(e.projection)}),this.url_=e.url,this.imageExtent_=e.imageExtent,this.image=null,this.image=new m.Ay(this.imageExtent_,void 0,1,function(e){const t=e.load||m.D4,n=e.imageExtent,r=new Image;return null!==e.crossOrigin&&(r.crossOrigin=e.crossOrigin),()=>t(r,e.url).then((e=>{const t=(0,y.getWidth)(n)/e.width,r=(0,y.getHeight)(n)/e.height;return{image:e,extent:n,resolution:t!==r?[t,r]:r,pixelRatio:1}}))}({url:e.url,imageExtent:e.imageExtent,crossOrigin:t,load:(e,t)=>(this.image.setImage(e),n(this.image,t),(0,m.D4)(e))})),this.image.addEventListener(f.A.CHANGE,this.handleImageChange.bind(this))}getImageExtent(){return this.imageExtent_}getImageInternal(e,t,n,r){return(0,y.intersects)(e,this.image.getExtent())?this.image:null}getUrl(){return this.url_}}const x=b;var w=n(76262),A=n(85813),S=n(86203),C=n(48660),E=n(79913),_=n(62338),k=n(60854),T=n(92288),O=n(10011);function P(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,I()?Reflect.construct(t,n||[],(0,l.A)(e).constructor):t.apply(e,n))}function I(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(I=function(){return!!e})()}function M(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function L(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var R=function(e){return(null==e?void 0:e.geoviewLayerType)===A.y6.IMAGE_STATIC},j=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===A.y6.IMAGE_STATIC},F=new WeakSet,D=function(e){function t(e,n){var r;return(0,i.A)(this,t),M(r=P(this,t,[A.y6.IMAGE_STATIC,n,e]),F),r}return(0,c.A)(t,e),(0,o.A)(t,[{key:"fetchServiceMetadata",value:function(){return new Promise((function(e){e()}))}},{key:"getLegend",value:(a=(0,r.A)(d().mark((function e(t){var n,r,i,o,a,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=this.getLayerConfig(t)){e.next=4;break}return e.abrupt("return",null);case 4:return e.next=6,L(F,this,N).call(this,n);case 6:if(r=e.sent){e.next=10;break}return i={type:this.type,layerName:n.layerName,legend:null},e.abrupt("return",i);case 10:return e.next=12,(0,O.yt)(r);case 12:if(!(o=e.sent)){e.next=21;break}return(a=document.createElement("canvas")).width=o.width,a.height=o.height,a.getContext("2d").drawImage(o,0,0),s={type:this.type,layerName:n.layerName,legend:a},e.abrupt("return",s);case 21:return l={type:this.type,layerName:n.layerName,legend:null},e.abrupt("return",l);case 25:return e.prev=25,e.t0=e.catch(0),k.vF.logError("Error getting legend for ".concat(t),e.t0),e.abrupt("return",null);case 29:case"end":return e.stop()}}),e,this,[[0,25]])}))),function(e){return a.apply(this,arguments)})},{key:"validateListOfLayerEntryConfig",value:function(e){var t=this;e.forEach((function(e){var n,r=e.layerPath;if((0,C.KD)(e)&&(t.validateListOfLayerEntryConfig(e.listOfLayerEntryConfig),!e.listOfLayerEntryConfig.length))return t.layerLoadError.push({layer:r,loggerMessage:"Empty layer group (mapId: ".concat(t.mapId,", layerPath: ").concat(r,")")}),void(e.layerStatus="error");if(e.layerStatus="processing",t.metadata){var i;if(Array.isArray(null===(n=t.metadata)||void 0===n?void 0:n.listOfLayerEntryConfig))return(0,w.KX)(null===(i=t.metadata)||void 0===i?void 0:i.listOfLayerEntryConfig).find((function(t){return t.layerId===e.layerId}))?void 0:(t.layerLoadError.push({layer:r,loggerMessage:"GeoJSON layer not found (mapId: ".concat(t.mapId,", layerPath: ").concat(r,")")}),void(e.layerStatus="error"));throw new Error("Invalid GeoJSON metadata (listOfLayerEntryConfig) prevent loading of layer (mapId: ".concat(t.mapId,", layerPath: ").concat(r,")"))}}))}},{key:"processOneLayerEntry",value:(n=(0,r.A)(d().mark((function e(n){var r,i,o,a,c,u,h,f,g,m;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.A)((0,l.A)(t.prototype),"processOneLayerEntry",this).call(this,n);case 2:if(null!=n&&null!==(r=n.source)&&void 0!==r&&r.extent){e.next=4;break}throw new Error("Parameter extent is not defined in source element of layerConfig.");case 4:if(f={url:(0,E.getLocalizedValue)(n.source.dataAccessPath,T.K.getDisplayLanguage(this.mapId))||"",imageExtent:n.source.extent},null!=n&&null!==(i=n.source)&&void 0!==i&&i.crossOrigin?f.crossOrigin=n.source.crossOrigin:f.crossOrigin="Anonymous",null==n||null===(o=n.source)||void 0===o||!o.projection){e.next=10;break}f.projection="EPSG:".concat(n.source.projection),e.next=11;break;case 10:throw new Error("Parameter projection is not define in source element of layerConfig.");case 11:return g={source:new x(f)},void 0!==(null===(a=n.initialSettings)||void 0===a?void 0:a.extent)&&(g.extent=n.initialSettings.extent),void 0!==(null===(c=n.initialSettings)||void 0===c?void 0:c.maxZoom)&&(g.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(u=n.initialSettings)||void 0===u?void 0:u.minZoom)&&(g.minZoom=n.initialSettings.minZoom),void 0!==(null===(h=n.initialSettings)||void 0===h||null===(h=h.states)||void 0===h?void 0:h.opacity)&&(g.opacity=n.initialSettings.states.opacity),m=new p.A(g),this.setLayerAndLoadEndListeners(n,m,"image"),e.abrupt("return",Promise.resolve(m));case 19:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"getBounds",value:function(e,t){var n,r,i=this.getOLLayer(e),o=null==i||null===(n=i.getSource())||void 0===n?void 0:n.getImageExtent(),a=(null==i||null===(r=i.getSource())||void 0===r||null===(r=r.getProjection())||void 0===r?void 0:r.getCode())||this.getMapViewer().getProjection().getCode();if(o){var s,l=o;(null===(s=this.metadata)||void 0===s||null===(s=s.fullExtent)||void 0===s||null===(s=s.spatialReference)||void 0===s?void 0:s.wkid)!==this.getMapViewer().getProjection().getCode().replace("EPSG:","")&&(l=this.getMapViewer().convertExtentFromProjToMapProj(o,a)),t=t?(0,_.getMinOrMaxExtents)(t,l):[l[0],l[1],l[2],l[3]]}return t}}]);var n,a}(S.A);function N(e){var t=this;return new Promise((function(n){var r=(0,E.getLocalizedValue)(e.source.dataAccessPath,T.K.getDisplayLanguage(t.mapId));r?(r=r.toLowerCase().startsWith("http:")?"https".concat(r.slice(4)):r,h.A.get(r,{responseType:"blob",withCredentials:!1}).then((function(e){var t;n((t=(0,w.KX)(e.data),new Promise((function(e){var n=new FileReader;n.onloadend=function(){return e(n.result)},n.onerror=function(){return e(null)},n.readAsDataURL(t)}))))})).catch((function(){return n(null)}))):n(null)}))}},98178:(e,t,n)=>{"use strict";n.d(t,{RZ:()=>Yo,Pg:()=>Ho,c9:()=>qo});var r=n(64426),i=n(43994),o=n(70640),a=n(32814),s=n(71149),l=n(66138),c=n(99979),u=n(38096),d=n(59615),h=n.n(d),p=n(36203),f=n(36116),g=n(41320),m=n(82562),y=n(66749);class v extends m.A{constructor(e,t,n,r,i,o){super(e,t,o),this.extent=null,this.format_=r,this.features_=null,this.loader_,this.projection=null,this.resolution,this.tileLoadFunction_=i,this.url_=n,this.key=n}getFormat(){return this.format_}getFeatures(){return this.features_}load(){this.state==y.A.IDLE&&(this.setState(y.A.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_&&this.loader_(this.extent,this.resolution,this.projection))}onLoad(e,t){this.setFeatures(e)}onError(){this.setState(y.A.ERROR)}setFeatures(e){this.features_=e,this.setState(y.A.LOADED)}setLoader(e){this.loader_=e}}const b=v;var x=n(75005),w=n(70861),A=n(39966),S=n(31752),C=n(94994);const E=[];class _ extends m.A{constructor(e,t,n,r){super(e,t,{transition:0}),this.context_={},this.executorGroups={},this.loadingSourceTiles=0,this.hitDetectionImageData={},this.replayState_={},this.sourceTiles=[],this.errorTileKeys={},this.wantedResolution,this.getSourceTiles=r.bind(void 0,this),this.wrappedTileCoord=n}getContext(e){const t=(0,C.v6)(e);return t in this.context_||(this.context_[t]=(0,S.Y)(1,1,E)),this.context_[t]}hasContext(e){return(0,C.v6)(e)in this.context_}getImage(e){return this.hasContext(e)?this.getContext(e).canvas:null}getReplayState(e){const t=(0,C.v6)(e);return t in this.replayState_||(this.replayState_[t]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedTileZ:-1}),this.replayState_[t]}load(){this.getSourceTiles()}release(){for(const e in this.context_){const t=this.context_[e];(0,S.Yg)(t),E.push(t.canvas),delete this.context_[e]}super.release()}}const k=_;var T=n(43636),O=n(41218),P=n(73478),I=n(54869),M=n(62821),L=n(16405),R=n(48179);class j extends A.A{constructor(e){const t=e.projection||"EPSG:3857",n=e.extent||(0,P.kZ)(t),r=e.tileGrid||(0,P.EN)({extent:n,maxResolution:e.maxResolution,maxZoom:void 0!==e.maxZoom?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,opaque:!1,projection:t,state:e.state,tileGrid:r,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:D,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:void 0===e.zDirection?1:e.zDirection}),this.format_=e.format?e.format:null,this.sourceTileCache=new x.A(this.tileCache.highWaterMark),this.overlaps_=null==e.overlaps||e.overlaps,this.tileClass=e.tileClass?e.tileClass:b,this.tileGrids_={}}getFeaturesInExtent(e){const t=[],n=this.tileCache;if(0===n.getCount())return t;const r=(0,I.K)(n.peekFirstKey())[0],i=this.tileGrid;return n.forEach((function(n){if(n.tileCoord[0]!==r||n.getState()!==y.A.LOADED)return;const o=n.getSourceTiles();for(let n=0,r=o.length;n{const r=(0,I.gr)(t),i=n.peek(r);if(i){const t=i.sourceTiles;for(let n=0,r=t.length;n{const i=this.tileUrlFunction(r,e,t),o=this.sourceTileCache.containsKey(i)?this.sourceTileCache.get(i):new this.tileClass(r,i?y.A.IDLE:y.A.EMPTY,i,this.format_,this.tileLoadFunction);n.sourceTiles.push(o);const a=o.getState();if(a{this.handleTileChange(t);const r=o.getState();if(r===y.A.LOADED||r===y.A.ERROR){const t=o.getKey();t in n.errorTileKeys?o.getState()===y.A.LOADED&&delete n.errorTileKeys[t]:n.loadingSourceTiles--,r===y.A.ERROR?n.errorTileKeys[t]=!0:o.removeEventListener(g.A.CHANGE,e),0===n.loadingSourceTiles&&n.setState((0,M.p)(n.errorTileKeys)?y.A.LOADED:y.A.ERROR)}};o.addEventListener(g.A.CHANGE,e),n.loadingSourceTiles++}a===y.A.IDLE&&(o.extent=l.getTileCoordExtent(r),o.projection=t,o.resolution=l.getResolution(r[0]),this.sourceTileCache.set(i,o),o.load())})),n.loadingSourceTiles||n.setState(n.sourceTiles.some((e=>e.getState()===y.A.ERROR))?y.A.ERROR:y.A.LOADED)}return n.sourceTiles}getTile(e,t,n,r,i){const o=(0,I.dp)(e,t,n),a=this.getKey();let s;if(this.tileCache.containsKey(o)&&(s=this.tileCache.get(o),s.key===a))return s;const l=[e,t,n];let c=this.getTileCoordForTileUrlFunction(l,i);const u=this.getTileGrid().getExtent(),d=this.getTileGridForProjection(i);if(c&&u){const t=d.getTileCoordExtent(c);(0,O.buffer)(t,-d.getResolution(e),t),(0,O.intersects)(u,t)||(c=null)}let h=!0;if(null!==c){const t=this.tileGrid,n=d.getResolution(e),o=t.getZForResolution(n,1),a=d.getTileCoordExtent(c);(0,O.buffer)(a,-n,a),t.forEachTileCoord(a,o,(e=>{h=h&&!this.tileUrlFunction(e,r,i)}))}const p=new k(l,h?y.A.EMPTY:y.A.IDLE,c,this.getSourceTiles.bind(this,r,i));return p.key=a,s?(p.interimTile=s,p.refreshInterimChain(),this.tileCache.replace(o,p)):this.tileCache.set(o,p),p}getTileGridForProjection(e){const t=e.getCode();let n=this.tileGrids_[t];if(!n){const e=this.tileGrid,r=e.getResolutions().slice(),i=r.map((function(t,n){return e.getOrigin(n)})),o=r.map((function(t,n){return e.getTileSize(n)})),a=T.L+1;for(let e=r.length;e>3}if(a--,1===o||2===o)s+=e.readSVarint(),l+=e.readSVarint(),1===o&&c>u&&(r.push(c),u=c),n.push(s,l),c+=2;else{if(7!==o)throw new Error("Invalid command found in the PBF");c>u&&(n.push(n[u],n[u+1]),c+=2)}}c>u&&(r.push(c),u=c)}createFeature_(e,t,n){const r=t.type;if(0===r)return null;let i;const o=t.properties;let a;this.idProperty_?(a=o[this.idProperty_],delete o[this.idProperty_]):a=t.id,o[this.layerName_]=t.layer.name;const s=[],l=[];this.readRawGeometry_(e,t,s,l);const c=function(e,t){let n;1===e?n=1===t?"Point":"MultiPoint":2===e?n=1===t?"LineString":"MultiLineString":3===e&&(n="Polygon");return n}(r,l.length);if(this.featureClass_===B.Ay)i=new this.featureClass_(c,s,l,2,o,a),i.transform(n.dataProjection);else{let e;if("Polygon"==c){const t=(0,se.yJ)(s,l);e=t.length>1?new te.A(s,"XY",t):new ie.Ay(s,"XY",l)}else e="Point"===c?new re.A(s,"XY"):"LineString"===c?new J.A(s,"XY"):"MultiPoint"===c?new ee.A(s,"XY"):"MultiLineString"===c?new Q.A(s,"XY",l):null;i=new(0,this.featureClass_),this.geometryName_&&i.setGeometryName(this.geometryName_);const t=(0,Z.hX)(e,!1,n);i.setGeometry(t),void 0!==a&&i.setId(a),i.setProperties(o,!0)}return i}getType(){return"arraybuffer"}readFeatures(e,t){const n=this.layers_;t=this.adaptOptions(t);const r=(0,ae.Jt)(t.dataProjection);r.setWorldExtent(t.extent),t.dataProjection=r;const i=new ne(e),o=i.readFields(ce,{}),a=[];for(const e in o){if(n&&!n.includes(e))continue;const s=o[e],l=s?[0,0,s.extent,s.extent]:null;r.setExtent(l);for(let e=0,n=s.length;e>3)?n.readString():2===e?n.readFloat():3===e?n.readDouble():4===e?n.readVarint64():5===e?n.readVarint():6===e?n.readSVarint():7===e?n.readBoolean():null;t.values.push(r)}}function de(e,t,n){if(1==e)t.id=n.readVarint();else if(2==e){const e=n.readVarint()+n.pos;for(;n.posthis._maxQueueLength;)this._queue.shift().callback(null,null)}_dispatch(){if(this._running||0===this._queue.length)return;const e=this._queue.shift();this._job=e;const t=e.inputs[0].width,n=e.inputs[0].height,r=e.inputs.map((function(e){return e.data.buffer})),i=this._workers.length;if(this._running=i,1===i)return void this._workers[0].postMessage({buffers:r,meta:e.meta,imageOps:this._imageOps,width:t,height:n},r);const o=e.inputs[0].data.length,a=4*Math.ceil(o/4/i);for(let o=0;o=200&&t.status<300){let e;try{e=JSON.parse(t.responseText)}catch(e){return void this.handleTileJSONError()}this.handleTileJSONResponse(e)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=(0,ae.Jt)("EPSG:4326"),n=this.getProjection();let r;if(void 0!==e.bounds){const i=(0,ae.FO)(t,n);r=(0,O.applyTransform)(e.bounds,i)}const i=(0,P.kZ)(n),o=e.minzoom||0,a=e.maxzoom||22,s=(0,P.EN)({extent:i,maxZoom:a,minZoom:o,tileSize:this.tileSize_});if(this.tileGrid=s,this.tileUrlFunction=(0,H.Qz)(e.tiles,s),e.attribution&&!this.getAttributions()){const t=void 0!==r?r:i;this.setAttributions((function(n){return(0,O.intersects)(t,n.extent)?[e.attribution]:null}))}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}const ze=Ne;var Ve=n(44999),Be=n(83605),$e=n(32753),Ge=n(98949);function Ue(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var We,qe={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function He(e){return(e=Math.round(e))<0?0:e>255?255:e}function Ye(e){return e<0?0:e>1?1:e}function Ke(e){return"%"===e[e.length-1]?He(parseFloat(e)/100*255):He(parseInt(e))}function Xe(e){return"%"===e[e.length-1]?Ye(parseFloat(e)/100):Ye(parseFloat(e))}function Ze(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}try{We={}.parseCSSColor=function(e){var t,n=e.replace(/ /g,"").toLowerCase();if(n in qe)return qe[n].slice();if("#"===n[0])return 4===n.length?(t=parseInt(n.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===n.length&&(t=parseInt(n.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var r=n.indexOf("("),i=n.indexOf(")");if(-1!==r&&i+1===n.length){var o=n.substr(0,r),a=n.substr(r+1,i-(r+1)).split(","),s=1;switch(o){case"rgba":if(4!==a.length)return null;s=Xe(a.pop());case"rgb":return 3!==a.length?null:[Ke(a[0]),Ke(a[1]),Ke(a[2]),s];case"hsla":if(4!==a.length)return null;s=Xe(a.pop());case"hsl":if(3!==a.length)return null;var l=(parseFloat(a[0])%360+360)%360/360,c=Xe(a[1]),u=Xe(a[2]),d=u<=.5?u*(c+1):u+c-u*c,h=2*u-d;return[He(255*Ze(h,d,l+1/3)),He(255*Ze(h,d,l)),He(255*Ze(h,d,l-1/3)),s];default:return null}}return null}}catch(e){}class Je{constructor(e,t,n,r=1){this.r=e,this.g=t,this.b=n,this.a=r}static parse(e){if(!e)return;if(e instanceof Je)return e;if("string"!=typeof e)return;const t=We(e);return t?new Je(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3]):void 0}toString(){const[e,t,n,r]=this.toArray();return`rgba(${Math.round(e)},${Math.round(t)},${Math.round(n)},${r})`}toArray(){const{r:e,g:t,b:n,a:r}=this;return 0===r?[0,0,0,0]:[255*e/r,255*t/r,255*n/r,r]}toArray01(){const{r:e,g:t,b:n,a:r}=this;return 0===r?[0,0,0,0]:[e/r,t/r,n/r,r]}toArray01PremultipliedAlpha(){const{r:e,g:t,b:n,a:r}=this;return[e,t,n,r]}}Je.black=new Je(0,0,0,1),Je.white=new Je(1,1,1,1),Je.transparent=new Je(0,0,0,0),Je.red=new Je(1,0,0,1),Je.blue=new Je(0,0,1,1);var Qe=Je;function et(e){return"object"==typeof e?["literal",e]:e}function tt(e,t){let n=e.stops;if(!n)return function(e,t){const n=["get",e.property];if(void 0===e.default)return"string"===t.type?["string",n]:n;if("enum"===t.type)return["match",n,Object.keys(t.values),n,e.default];{const r=["color"===t.type?"to-color":t.type,n,et(e.default)];return"array"===t.type&&r.splice(1,0,t.value,t.length||null),r}}(e,t);const r=n&&"object"==typeof n[0][0],i=r||void 0!==e.property,o=r||!i;return n=n.map((e=>!i&&t.tokens&&"string"==typeof e[1]?[e[0],lt(e[1])]:[e[0],et(e[1])])),r?function(e,t,n){const r={},i={},o=[];for(let t=0;t3&&t===e[e.length-2]||(r&&2===e.length||e.push(t),e.push(n))}function st(e,t){return e.type?e.type:t.expression.interpolated?"exponential":"interval"}function lt(e){const t=["concat"],n=/{([^{}]+)}/g;let r=0;for(let i=n.exec(e);null!==i;i=n.exec(e)){const o=e.slice(r,n.lastIndex-i[0].length);r=n.lastIndex,o.length>0&&t.push(o),t.push(["get",i[1]])}if(1===t.length)return e;if(r`:"value"===e.itemType.kind?"array":`array<${t}>`}return e.kind}const Et=[pt,ft,gt,mt,yt,wt,vt,St(bt),At];function _t(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!_t(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(const e of Et)if(!_t(e,t))return null}return`Expected ${Ct(e)} but found ${Ct(t)} instead.`}function kt(e,t){return t.some((t=>t.kind===e.kind))}function Tt(e,t){return t.some((t=>"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e))}class Ot{constructor(e,t,n){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,t){return this.collator.compare(e,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Pt{constructor(e,t,n,r,i){this.text=e.normalize?e.normalize():e,this.image=t,this.scale=n,this.fontStack=r,this.textColor=i}}class It{constructor(e){this.sections=e}static fromString(e){return new It([new Pt(e,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some((e=>0!==e.text.length||e.image&&0!==e.image.name.length))}static factory(e){return e instanceof It?e:It.fromString(e)}toString(){return 0===this.sections.length?"":this.sections.map((e=>e.text)).join("")}serialize(){const e=["format"];for(const t of this.sections){if(t.image){e.push(["image",t.image.name]);continue}e.push(t.text);const n={};t.fontStack&&(n["text-font"]=["literal",t.fontStack.split(",")]),t.scale&&(n["font-scale"]=t.scale),t.textColor&&(n["text-color"]=["rgba"].concat(t.textColor.toArray())),e.push(n)}return e}}class Mt{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(e){return e?new Mt({name:e,available:!1}):null}serialize(){return["image",this.name]}}function Lt(e,t,n,r){if(!("number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof n&&n>=0&&n<=255)){return`Invalid rgba value [${("number"==typeof r?[e,t,n,r]:[e,t,n]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}return void 0===r||"number"==typeof r&&r>=0&&r<=1?null:`Invalid rgba value [${[e,t,n,r].join(", ")}]: 'a' must be between 0 and 1.`}function Rt(e){if(null===e)return!0;if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof Qe)return!0;if(e instanceof Ot)return!0;if(e instanceof It)return!0;if(e instanceof Mt)return!0;if(Array.isArray(e)){for(const t of e)if(!Rt(t))return!1;return!0}if("object"==typeof e){for(const t in e)if(!Rt(e[t]))return!1;return!0}return!1}function jt(e){if(null===e)return pt;if("string"==typeof e)return gt;if("boolean"==typeof e)return mt;if("number"==typeof e)return ft;if(e instanceof Qe)return yt;if(e instanceof Ot)return xt;if(e instanceof It)return wt;if(e instanceof Mt)return At;if(Array.isArray(e)){const t=e.length;let n;for(const t of e){const e=jt(t);if(n){if(n===e)continue;n=bt;break}n=e}return St(n||bt,t)}return vt}function Ft(e){const t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof Qe||e instanceof It||e instanceof Mt?e.toString():JSON.stringify(e)}class Dt{constructor(e,t){this.type=e,this.value=t}static parse(e,t){if(2!==e.length)return t.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!Rt(e[1]))return t.error("invalid value");const n=e[1];let r=jt(n);const i=t.expectedType;return"array"!==r.kind||0!==r.N||!i||"array"!==i.kind||"number"==typeof i.N&&0!==i.N||(r=i),new Dt(r,n)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof Qe?["rgba"].concat(this.value.toArray()):this.value instanceof It?this.value.serialize():this.value}}var Nt=Dt;var zt=class{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}};const Vt={string:gt,number:ft,boolean:mt,object:vt};class Bt{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let n,r=1;const i=e[0];if("array"===i){let i,o;if(e.length>2){const n=e[1];if("string"!=typeof n||!(n in Vt)||"object"===n)return t.error('The item type argument of "array" must be one of string, number, boolean',1);i=Vt[n],r++}else i=bt;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);o=e[2],r++}n=St(i,o)}else n=Vt[i];const o=[];for(;re.outputDefined()))}serialize(){const e=this.type,t=[e.kind];if("array"===e.kind){const n=e.itemType;if("string"===n.kind||"number"===n.kind||"boolean"===n.kind){t.push(n.kind);const r=e.N;("number"==typeof r||this.args.length>1)&&t.push(r)}}return t.concat(this.args.map((e=>e.serialize())))}}var $t=Bt;class Gt{constructor(e){this.type=wt,this.sections=e}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const n=e[1];if(!Array.isArray(n)&&"object"==typeof n)return t.error("First argument must be an image or text section.");const r=[];let i=!1;for(let n=1;n<=e.length-1;++n){const o=e[n];if(i&&"object"==typeof o&&!Array.isArray(o)){i=!1;let e=null;if(o["font-scale"]&&(e=t.parse(o["font-scale"],1,ft),!e))return null;let n=null;if(o["text-font"]&&(n=t.parse(o["text-font"],1,St(gt)),!n))return null;let a=null;if(o["text-color"]&&(a=t.parse(o["text-color"],1,yt),!a))return null;const s=r[r.length-1];s.scale=e,s.font=n,s.textColor=a}else{const o=t.parse(e[n],1,bt);if(!o)return null;const a=o.type.kind;if("string"!==a&&"value"!==a&&"null"!==a&&"resolvedImage"!==a)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,r.push({content:o,scale:null,font:null,textColor:null})}}return new Gt(r)}evaluate(e){return new It(this.sections.map((t=>{const n=t.content.evaluate(e);return jt(n)===At?new Pt("",n,null,null,null):new Pt(Ft(n),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)})))}eachChild(e){for(const t of this.sections)e(t.content),t.scale&&e(t.scale),t.font&&e(t.font),t.textColor&&e(t.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const t of this.sections){e.push(t.content.serialize());const n={};t.scale&&(n["font-scale"]=t.scale.serialize()),t.font&&(n["text-font"]=t.font.serialize()),t.textColor&&(n["text-color"]=t.textColor.serialize()),e.push(n)}return e}}class Ut{constructor(e){this.type=At,this.input=e}static parse(e,t){if(2!==e.length)return t.error("Expected two arguments.");const n=t.parse(e[1],1,gt);return n?new Ut(n):t.error("No image name provided.")}evaluate(e){const t=this.input.evaluate(e),n=Mt.fromString(t);return n&&e.availableImages&&(n.available=e.availableImages.indexOf(t)>-1),n}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const Wt={"to-boolean":mt,"to-color":yt,"to-number":ft,"to-string":gt};class qt{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const n=e[0];if(("to-boolean"===n||"to-string"===n)&&2!==e.length)return t.error("Expected one argument.");const r=Wt[n],i=[];for(let n=1;n4?`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:Lt(t[0],t[1],t[2],t[3]),!n))return new Qe(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new zt(n||`Could not parse color from value '${"string"==typeof t?t:String(JSON.stringify(t))}'`)}if("number"===this.type.kind){let t=null;for(const n of this.args){if(t=n.evaluate(e),null===t)return 0;const r=Number(t);if(!isNaN(r))return r}throw new zt(`Could not convert ${JSON.stringify(t)} to number.`)}return"formatted"===this.type.kind?It.fromString(Ft(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?Mt.fromString(Ft(this.args[0].evaluate(e))):Ft(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){if("formatted"===this.type.kind)return new Gt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Ut(this.args[0]).serialize();const e=[`to-${this.type.kind}`];return this.eachChild((t=>{e.push(t.serialize())})),e}}var Ht=qt;const Yt=["Unknown","Point","LineString","Polygon"];var Kt=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null}id(){return this.feature&&void 0!==this.feature.id?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?Yt[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,t=this.featureDistanceData.scale,{x:n,y:r}=this.featureTileCoord,i=n*t-e[0],o=r*t-e[1];return this.featureDistanceData.bearing[0]*i+this.featureDistanceData.bearing[1]*o}return 0}parseColor(e){let t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=Qe.parse(e)),t}};class Xt{constructor(e,t,n,r){this.name=e,this.type=t,this._evaluate=n,this.args=r}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map((e=>e.serialize())))}static parse(e,t){const n=e[0],r=Xt.definitions[n];if(!r)return t.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0);const i=Array.isArray(r)?r[0]:r.type,o=Array.isArray(r)?[[r[1],r[2]]]:r.overloads,a=o.filter((([t])=>!Array.isArray(t)||t.length===e.length-1));let s=null;for(const[r,o]of a){s=new En(t.registry,t.path,null,t.scope);const a=[];let l=!1;for(let t=1;t{return t=e,Array.isArray(t)?`(${t.map(Ct).join(", ")})`:`(${Ct(t.type)}...)`;var t})).join(" | "),r=[];for(let n=1;n=t[2])&&(!(e[1]<=t[1])&&!(e[3]>=t[3])))}function nn(e,t){const n=(180+e[0])/360;const r=(i=e[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i*Math.PI/360)))/360);var i;const o=Math.pow(2,t.z);return[Math.round(n*o*Qt),Math.round(r*o*Qt)]}function rn(e,t,n){const r=e[0]-t[0],i=e[1]-t[1],o=e[0]-n[0],a=e[1]-n[1];return r*a-o*i==0&&r*o<=0&&i*a<=0}function on(e,t){let n=!1;for(let a=0,s=t.length;ar[1]!=o[1]>r[1]&&r[0]<(o[0]-i[0])*(r[1]-i[1])/(o[1]-i[1])+i[0]&&(n=!n)}}var r,i,o;return n}function an(e,t){for(let n=0;n0&&d<0||u<0&&d>0}function ln(e,t,n,r){const i=[t[0]-e[0],t[1]-e[1]],o=[r[0]-n[0],r[1]-n[1]];return 0!=(a=o)[0]*(s=i)[1]-a[1]*s[0]&&!(!sn(e,t,n,r)||!sn(n,r,e,t));var a,s}function cn(e,t,n){for(const r of n)for(let n=0;nn[2]){const t=.5*r;let i=e[0]-n[0]>t?-r:n[0]-e[0]>t?r:0;0===i&&(i=e[0]-n[2]>t?-r:n[2]-e[0]>t?r:0),e[0]+=i}en(t,e)}function gn(e,t,n,r){const i=Math.pow(2,r.z)*Qt,o=[r.x*Qt,r.y*Qt],a=[];if(!e)return a;for(const r of e)for(const e of r){const r=[e.x+o[0],e.y+o[1]];fn(r,t,n,i),a.push(r)}return a}function mn(e,t,n,r){const i=Math.pow(2,r.z)*Qt,o=[r.x*Qt,r.y*Qt],a=[];if(!e)return a;for(const n of e){const e=[];for(const r of n){const n=[r.x+o[0],r.y+o[1]];en(t,n),e.push(n)}a.push(e)}if(t[2]-t[0]<=i/2){(s=t)[0]=s[1]=1/0,s[2]=s[3]=-1/0;for(const e of a)for(const r of e)fn(r,t,n,i)}var s;return a}class yn{constructor(e,t){this.type=mt,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(Rt(e[1])){const t=e[1];if("FeatureCollection"===t.type)for(let e=0;e{t&&!bn(e)&&(t=!1)})),t}function xn(e){if(e instanceof Zt&&"feature-state"===e.name)return!1;let t=!0;return e.eachChild((e=>{t&&!xn(e)&&(t=!1)})),t}function wn(e,t){if(e instanceof Zt&&t.indexOf(e.name)>=0)return!1;let n=!0;return e.eachChild((e=>{n&&!wn(e,t)&&(n=!1)})),n}class An{constructor(e,t){this.type=t.type,this.name=e,this.boundExpression=t}static parse(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");const n=e[1];return t.scope.has(n)?new An(n,t.scope.get(n)):t.error(`Unknown variable "${n}". Make sure "${n}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var Sn=An;class Cn{constructor(e,t=[],n,r=new ht,i=[]){this.registry=e,this.path=t,this.key=t.map((e=>`[${e}]`)).join(""),this.scope=r,this.errors=i,this.expectedType=n}parse(e,t,n,r,i={}){return t?this.concat(t,n,r)._parse(e,i):this._parse(e,i)}_parse(e,t){function n(e,t,n){return"assert"===n?new $t(t,[e]):"coerce"===n?new Ht(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const r=e[0];if("string"!=typeof r)return this.error(`Expression name must be a string, but found ${typeof r} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const i=this.registry[r];if(i){let r=i.parse(e,this);if(!r)return null;if(this.expectedType){const e=this.expectedType,i=r.type;if("string"!==e.kind&&"number"!==e.kind&&"boolean"!==e.kind&&"object"!==e.kind&&"array"!==e.kind||"value"!==i.kind)if("color"!==e.kind&&"formatted"!==e.kind&&"resolvedImage"!==e.kind||"value"!==i.kind&&"string"!==i.kind){if(this.checkSubtype(e,i))return null}else r=n(r,e,t.typeAnnotation||"coerce");else r=n(r,e,t.typeAnnotation||"assert")}if(!(r instanceof Nt)&&"resolvedImage"!==r.type.kind&&_n(r)){const e=new Kt;try{r=new Nt(r.type,r.evaluate(e))}catch(e){return this.error(e.message),null}}return r}return this.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0)}return void 0===e?this.error("'undefined' value invalid. Use null instead."):"object"==typeof e?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof e} instead.`)}concat(e,t,n){const r="number"==typeof e?this.path.concat(e):this.path,i=n?this.scope.concat(n):this.scope;return new Cn(this.registry,r,t||null,i,this.errors)}error(e,...t){const n=`${this.key}${t.map((e=>`[${e}]`)).join("")}`;this.errors.push(new ut(n,e))}checkSubtype(e,t){const n=_t(e,t);return n&&this.error(n),n}}var En=Cn;function _n(e){if(e instanceof Sn)return _n(e.boundExpression);if(e instanceof Zt&&"error"===e.name)return!1;if(e instanceof Jt)return!1;if(e instanceof vn)return!1;const t=e instanceof Ht||e instanceof $t;let n=!0;return e.eachChild((e=>{n=t?n&&_n(e):n&&e instanceof Nt})),!!n&&(bn(e)&&wn(e,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"]))}function kn(e,t){const n=e.length-1;let r,i,o=0,a=n,s=0;for(;o<=a;)if(s=Math.floor((o+a)/2),r=e[s],i=e[s+1],r<=t){if(s===n||tt))throw new zt("Input is not a number.");a=s-1}return 0}class Tn{constructor(e,t,n){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(const[e,t]of n)this.labels.push(e),this.outputs.push(t)}static parse(e,t){if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");const n=t.parse(e[1],1,ft);if(!n)return null;const r=[];let i=null;t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType);for(let n=1;n=o)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',s);const c=t.parse(a,l,i);if(!c)return null;i=i||c.type,r.push([o,c])}return new Tn(i,n,r)}evaluate(e){const t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);const r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);const i=t.length;if(r>=t[i-1])return n[i-1].evaluate(e);return n[kn(t,r)].evaluate(e)}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}serialize(){const e=["step",this.input.serialize()];for(let t=0;t0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e}}var On=Tn,Pn=In;function In(e,t,n,r){this.cx=3*e,this.bx=3*(n-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(r-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=r,this.p2x=n,this.p2y=r}In.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},In.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},In.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},In.prototype.solveCurveX=function(e,t){var n,r,i,o,a;for(void 0===t&&(t=1e-6),i=e,a=0;a<8;a++){if(o=this.sampleCurveX(i)-e,Math.abs(o)(r=1))return r;for(;no?n=i:r=i,i=.5*(r-n)+n}return i},In.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var Mn=Ue(Pn);function Ln(e,t,n){return e*(1-n)+t*n}var Rn=Object.freeze({__proto__:null,number:Ln,color:function(e,t,n){return new Qe(Ln(e.r,t.r,n),Ln(e.g,t.g,n),Ln(e.b,t.b,n),Ln(e.a,t.a,n))},array:function(e,t,n){return e.map(((e,r)=>Ln(e,t[r],n)))}});const jn=.95047,Fn=1,Dn=1.08883,Nn=4/29,zn=6/29,Vn=3*zn*zn,Bn=zn*zn*zn,$n=Math.PI/180,Gn=180/Math.PI;function Un(e){return e>Bn?Math.pow(e,1/3):e/Vn+Nn}function Wn(e){return e>zn?e*e*e:Vn*(e-Nn)}function qn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Hn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Yn(e){const t=Hn(e.r),n=Hn(e.g),r=Hn(e.b),i=Un((.4124564*t+.3575761*n+.1804375*r)/jn),o=Un((.2126729*t+.7151522*n+.072175*r)/Fn);return{l:116*o-16,a:500*(i-o),b:200*(o-Un((.0193339*t+.119192*n+.9503041*r)/Dn)),alpha:e.a}}function Kn(e){let t=(e.l+16)/116,n=isNaN(e.a)?t:t+e.a/500,r=isNaN(e.b)?t:t-e.b/200;return t=Fn*Wn(t),n=jn*Wn(n),r=Dn*Wn(r),new Qe(qn(3.2404542*n-1.5371385*t-.4985314*r),qn(-.969266*n+1.8760108*t+.041556*r),qn(.0556434*n-.2040259*t+1.0572252*r),e.alpha)}function Xn(e,t,n){const r=t-e;return e+n*(r>180||r<-180?r-360*Math.round(r/360):r)}const Zn={forward:Yn,reverse:Kn,interpolate:function(e,t,n){return{l:Ln(e.l,t.l,n),a:Ln(e.a,t.a,n),b:Ln(e.b,t.b,n),alpha:Ln(e.alpha,t.alpha,n)}}},Jn={forward:function(e){const{l:t,a:n,b:r}=Yn(e),i=Math.atan2(r,n)*Gn;return{h:i<0?i+360:i,c:Math.sqrt(n*n+r*r),l:t,alpha:e.a}},reverse:function(e){const t=e.h*$n,n=e.c;return Kn({l:e.l,a:Math.cos(t)*n,b:Math.sin(t)*n,alpha:e.alpha})},interpolate:function(e,t,n){return{h:Xn(e.h,t.h,n),c:Ln(e.c,t.c,n),l:Ln(e.l,t.l,n),alpha:Ln(e.alpha,t.alpha,n)}}};class Qn{constructor(e,t,n,r,i){this.type=e,this.operator=t,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];for(const[e,t]of i)this.labels.push(e),this.outputs.push(t)}static interpolationFactor(e,t,n,r){let i=0;if("exponential"===e.name)i=er(t,e.base,n,r);else if("linear"===e.name)i=er(t,1,n,r);else if("cubic-bezier"===e.name){const o=e.controlPoints;i=new Mn(o[0],o[1],o[2],o[3]).solve(er(t,1,n,r))}return i}static parse(e,t){let[n,r,i,...o]=e;if(!Array.isArray(r)||0===r.length)return t.error("Expected an interpolation type expression.",1);if("linear"===r[0])r={name:"linear"};else if("exponential"===r[0]){const e=r[1];if("number"!=typeof e)return t.error("Exponential interpolation requires a numeric base.",1,1);r={name:"exponential",base:e}}else{if("cubic-bezier"!==r[0])return t.error(`Unknown interpolation type ${String(r[0])}`,1,0);{const e=r.slice(1);if(4!==e.length||e.some((e=>"number"!=typeof e||e<0||e>1)))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:e}}}if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(i=t.parse(i,2,ft),!i)return null;const a=[];let s=null;"interpolate-hcl"===n||"interpolate-lab"===n?s=yt:t.expectedType&&"value"!==t.expectedType.kind&&(s=t.expectedType);for(let e=0;e=n)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',i);const c=t.parse(r,l,s);if(!c)return null;s=s||c.type,a.push([n,c])}return"number"===s.kind||"color"===s.kind||"array"===s.kind&&"number"===s.itemType.kind&&"number"==typeof s.N?new Qn(s,n,r,i,a):t.error(`Type ${Ct(s)} is not interpolatable.`)}evaluate(e){const t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);const r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);const i=t.length;if(r>=t[i-1])return n[i-1].evaluate(e);const o=kn(t,r),a=t[o],s=t[o+1],l=Qn.interpolationFactor(this.interpolation,r,a,s),c=n[o].evaluate(e),u=n[o+1].evaluate(e);return"interpolate"===this.operator?Rn[this.type.kind.toLowerCase()](c,u,l):"interpolate-hcl"===this.operator?Jn.reverse(Jn.interpolate(Jn.forward(c),Jn.forward(u),l)):Zn.reverse(Zn.interpolate(Zn.forward(c),Zn.forward(u),l))}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}serialize(){let e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const t=[this.operator,e,this.input.serialize()];for(let e=0;e_t(r,e.type)));return new nr(o?bt:n,i)}evaluate(e){let t,n=null,r=0;for(const i of this.args){if(r++,n=i.evaluate(e),n&&n instanceof Mt&&!n.available&&(t||(t=n),n=null,r===this.args.length))return t;if(null!==n)break}return n}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){const e=["coalesce"];return this.eachChild((t=>{e.push(t.serialize())})),e}}var rr=nr;class ir{constructor(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const t of this.bindings)e(t[1]);e(this.result)}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const n=[];for(let r=1;r=n.length)throw new zt(`Array index out of bounds: ${t} > ${n.length-1}.`);if(t!==Math.floor(t))throw new zt(`Array index must be an integer, but found ${t} instead.`);return n[t]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var sr=ar;class lr{constructor(e,t){this.type=mt,this.needle=e,this.haystack=t}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,bt),r=t.parse(e[2],2,bt);return n&&r?kt(n.type,[mt,gt,ft,pt,bt])?new lr(n,r):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ct(n.type)} instead`):null}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(null==n)return!1;if(!Tt(t,["boolean","string","number","null"]))throw new zt(`Expected first argument to be of type boolean, string, number or null, but found ${Ct(jt(t))} instead.`);if(!Tt(n,["string","array"]))throw new zt(`Expected second argument to be of type array or string, but found ${Ct(jt(n))} instead.`);return n.indexOf(t)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var cr=lr;class ur{constructor(e,t,n){this.type=ft,this.needle=e,this.haystack=t,this.fromIndex=n}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,bt),r=t.parse(e[2],2,bt);if(!n||!r)return null;if(!kt(n.type,[mt,gt,ft,pt,bt]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ct(n.type)} instead`);if(4===e.length){const i=t.parse(e[3],3,ft);return i?new ur(n,r,i):null}return new ur(n,r)}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!Tt(t,["boolean","string","number","null"]))throw new zt(`Expected first argument to be of type boolean, string, number or null, but found ${Ct(jt(t))} instead.`);if(!Tt(n,["string","array"]))throw new zt(`Expected second argument to be of type array or string, but found ${Ct(jt(n))} instead.`);if(this.fromIndex){const r=this.fromIndex.evaluate(e);return n.indexOf(t,r)}return n.indexOf(t)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(null!=this.fromIndex&&void 0!==this.fromIndex){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var dr=ur;class hr{constructor(e,t,n,r,i,o){this.inputType=e,this.type=t,this.input=n,this.cases=r,this.outputs=i,this.otherwise=o}static parse(e,t){if(e.length<5)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return t.error("Expected an even number of arguments.");let n,r;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);const i={},o=[];for(let a=2;aNumber.MAX_SAFE_INTEGER)return c.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof e&&Math.floor(e)!==e)return c.error("Numeric branch labels must be integer values.");if(n){if(c.checkSubtype(n,jt(e)))return null}else n=jt(e);if(void 0!==i[String(e)])return c.error("Branch labels must be unique.");i[String(e)]=o.length}const u=t.parse(l,a,r);if(!u)return null;r=r||u.type,o.push(u)}const a=t.parse(e[1],1,bt);if(!a)return null;const s=t.parse(e[e.length-1],e.length-1,r);return s?"value"!==a.type.kind&&t.concat(1).checkSubtype(n,a.type)?null:new hr(n,r,a,i,o,s):null}evaluate(e){const t=this.input.evaluate(e);return(jt(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],t=Object.keys(this.cases).sort(),n=[],r={};for(const e of t){const t=r[this.cases[e]];void 0===t?(r[this.cases[e]]=n.length,n.push([this.cases[e],[e]])):n[t][1].push(e)}const i=e=>"number"===this.inputType.kind?Number(e):e;for(const[t,r]of n)1===r.length?e.push(i(r[0])):e.push(r.map(i)),e.push(this.outputs[t].serialize());return e.push(this.otherwise.serialize()),e}}var pr=hr;class fr{constructor(e,t,n){this.type=e,this.branches=t,this.otherwise=n}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return t.error("Expected an odd number of arguments.");let n;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);const r=[];for(let i=1;it.outputDefined()))&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild((t=>{e.push(t.serialize())})),e}}var gr=fr;class mr{constructor(e,t,n,r){this.type=e,this.input=t,this.beginIndex=n,this.endIndex=r}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,bt),r=t.parse(e[2],2,ft);if(!n||!r)return null;if(!kt(n.type,[St(bt),gt,bt]))return t.error(`Expected first argument to be of type array or string, but found ${Ct(n.type)} instead`);if(4===e.length){const i=t.parse(e[3],3,ft);return i?new mr(n.type,n,r,i):null}return new mr(n.type,n,r)}evaluate(e){const t=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!Tt(t,["string","array"]))throw new zt(`Expected first argument to be of type array or string, but found ${Ct(jt(t))} instead.`);if(this.endIndex){const r=this.endIndex.evaluate(e);return t.slice(n,r)}return t.slice(n)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(null!=this.endIndex&&void 0!==this.endIndex){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var yr=mr;function vr(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function br(e,t,n,r){return 0===r.compare(t,n)}function xr(e,t,n){const r="=="!==e&&"!="!==e;return class i{constructor(e,t,n){this.type=mt,this.lhs=e,this.rhs=t,this.collator=n,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}static parse(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");const n=e[0];let o=t.parse(e[1],1,bt);if(!o)return null;if(!vr(n,o.type))return t.concat(1).error(`"${n}" comparisons are not supported for type '${Ct(o.type)}'.`);let a=t.parse(e[2],2,bt);if(!a)return null;if(!vr(n,a.type))return t.concat(2).error(`"${n}" comparisons are not supported for type '${Ct(a.type)}'.`);if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error(`Cannot compare types '${Ct(o.type)}' and '${Ct(a.type)}'.`);r&&("value"===o.type.kind&&"value"!==a.type.kind?o=new $t(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new $t(o.type,[a])));let s=null;if(4===e.length){if("string"!==o.type.kind&&"string"!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error("Cannot use collator to compare non-string types.");if(s=t.parse(e[3],3,xt),!s)return null}return new i(o,a,s)}evaluate(i){const o=this.lhs.evaluate(i),a=this.rhs.evaluate(i);if(r&&this.hasUntypedArgument){const t=jt(o),n=jt(a);if(t.kind!==n.kind||"string"!==t.kind&&"number"!==t.kind)throw new zt(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${t.kind}, ${n.kind}) instead.`)}if(this.collator&&!r&&this.hasUntypedArgument){const e=jt(o),n=jt(a);if("string"!==e.kind||"string"!==n.kind)return t(i,o,a)}return this.collator?n(i,o,a,this.collator.evaluate(i)):t(i,o,a)}eachChild(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)}outputDefined(){return!0}serialize(){const t=[e];return this.eachChild((e=>{t.push(e.serialize())})),t}}}const wr=xr("==",(function(e,t,n){return t===n}),br),Ar=xr("!=",(function(e,t,n){return t!==n}),(function(e,t,n,r){return!br(0,t,n,r)})),Sr=xr("<",(function(e,t,n){return t",(function(e,t,n){return t>n}),(function(e,t,n,r){return r.compare(t,n)>0})),Er=xr("<=",(function(e,t,n){return t<=n}),(function(e,t,n,r){return r.compare(t,n)<=0})),_r=xr(">=",(function(e,t,n){return t>=n}),(function(e,t,n,r){return r.compare(t,n)>=0}));class kr{constructor(e,t,n,r,i,o){this.type=gt,this.number=e,this.locale=t,this.currency=n,this.unit=r,this.minFractionDigits=i,this.maxFractionDigits=o}static parse(e,t){if(3!==e.length)return t.error("Expected two arguments.");const n=t.parse(e[1],1,ft);if(!n)return null;const r=e[2];if("object"!=typeof r||Array.isArray(r))return t.error("NumberFormat options argument must be an object.");let i=null;if(r.locale&&(i=t.parse(r.locale,1,gt),!i))return null;let o=null;if(r.currency&&(o=t.parse(r.currency,1,gt),!o))return null;let a=null;if(r.unit&&(a=t.parse(r.unit,1,gt),!a))return null;let s=null;if(r["min-fraction-digits"]&&(s=t.parse(r["min-fraction-digits"],1,ft),!s))return null;let l=null;return r["max-fraction-digits"]&&(l=t.parse(r["max-fraction-digits"],1,ft),!l)?null:new kr(n,i,o,a,s,l)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class Tr{constructor(e){this.type=ft,this.input=e}static parse(e,t){if(2!==e.length)return t.error(`Expected 1 argument, but found ${e.length-1} instead.`);const n=t.parse(e[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?t.error(`Expected argument of type string or array, but found ${Ct(n.type)} instead.`):new Tr(n):null}evaluate(e){const t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new zt(`Expected value to be of type string or array, but found ${Ct(jt(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild((t=>{e.push(t.serialize())})),e}}const Or={"==":wr,"!=":Ar,">":Cr,"<":Sr,">=":_r,"<=":Er,array:$t,at:sr,boolean:$t,case:gr,coalesce:rr,collator:Jt,format:Gt,image:Ut,in:cr,"index-of":dr,interpolate:tr,"interpolate-hcl":tr,"interpolate-lab":tr,length:Tr,let:or,literal:Nt,match:pr,number:$t,"number-format":kr,object:$t,slice:yr,step:On,string:$t,"to-boolean":Ht,"to-color":Ht,"to-number":Ht,"to-string":Ht,var:Sn,within:vn};function Pr(e,[t,n,r,i]){t=t.evaluate(e),n=n.evaluate(e),r=r.evaluate(e);const o=i?i.evaluate(e):1,a=Lt(t,n,r,o);if(a)throw new zt(a);return new Qe(t/255*o,n/255*o,r/255*o,o)}function Ir(e,t){return e in t}function Mr(e,t){const n=t[e];return void 0===n?null:n}function Lr(e){return{type:e}}Zt.register(Or,{error:[{kind:"error"},[gt],(e,[t])=>{throw new zt(t.evaluate(e))}],typeof:[gt,[bt],(e,[t])=>Ct(jt(t.evaluate(e)))],"to-rgba":[St(ft,4),[yt],(e,[t])=>t.evaluate(e).toArray()],rgb:[yt,[ft,ft,ft],Pr],rgba:[yt,[ft,ft,ft,ft],Pr],has:{type:mt,overloads:[[[gt],(e,[t])=>Ir(t.evaluate(e),e.properties())],[[gt,vt],(e,[t,n])=>Ir(t.evaluate(e),n.evaluate(e))]]},get:{type:bt,overloads:[[[gt],(e,[t])=>Mr(t.evaluate(e),e.properties())],[[gt,vt],(e,[t,n])=>Mr(t.evaluate(e),n.evaluate(e))]]},"feature-state":[bt,[gt],(e,[t])=>Mr(t.evaluate(e),e.featureState||{})],properties:[vt,[],e=>e.properties()],"geometry-type":[gt,[],e=>e.geometryType()],id:[bt,[],e=>e.id()],zoom:[ft,[],e=>e.globals.zoom],pitch:[ft,[],e=>e.globals.pitch||0],"distance-from-center":[ft,[],e=>e.distanceFromCenter()],"heatmap-density":[ft,[],e=>e.globals.heatmapDensity||0],"line-progress":[ft,[],e=>e.globals.lineProgress||0],"sky-radial-progress":[ft,[],e=>e.globals.skyRadialProgress||0],accumulated:[bt,[],e=>void 0===e.globals.accumulated?null:e.globals.accumulated],"+":[ft,Lr(ft),(e,t)=>{let n=0;for(const r of t)n+=r.evaluate(e);return n}],"*":[ft,Lr(ft),(e,t)=>{let n=1;for(const r of t)n*=r.evaluate(e);return n}],"-":{type:ft,overloads:[[[ft,ft],(e,[t,n])=>t.evaluate(e)-n.evaluate(e)],[[ft],(e,[t])=>-t.evaluate(e)]]},"/":[ft,[ft,ft],(e,[t,n])=>t.evaluate(e)/n.evaluate(e)],"%":[ft,[ft,ft],(e,[t,n])=>t.evaluate(e)%n.evaluate(e)],ln2:[ft,[],()=>Math.LN2],pi:[ft,[],()=>Math.PI],e:[ft,[],()=>Math.E],"^":[ft,[ft,ft],(e,[t,n])=>Math.pow(t.evaluate(e),n.evaluate(e))],sqrt:[ft,[ft],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[ft,[ft],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[ft,[ft],(e,[t])=>Math.log(t.evaluate(e))],log2:[ft,[ft],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[ft,[ft],(e,[t])=>Math.sin(t.evaluate(e))],cos:[ft,[ft],(e,[t])=>Math.cos(t.evaluate(e))],tan:[ft,[ft],(e,[t])=>Math.tan(t.evaluate(e))],asin:[ft,[ft],(e,[t])=>Math.asin(t.evaluate(e))],acos:[ft,[ft],(e,[t])=>Math.acos(t.evaluate(e))],atan:[ft,[ft],(e,[t])=>Math.atan(t.evaluate(e))],min:[ft,Lr(ft),(e,t)=>Math.min(...t.map((t=>t.evaluate(e))))],max:[ft,Lr(ft),(e,t)=>Math.max(...t.map((t=>t.evaluate(e))))],abs:[ft,[ft],(e,[t])=>Math.abs(t.evaluate(e))],round:[ft,[ft],(e,[t])=>{const n=t.evaluate(e);return n<0?-Math.round(-n):Math.round(n)}],floor:[ft,[ft],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[ft,[ft],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[mt,[gt,bt],(e,[t,n])=>e.properties()[t.value]===n.value],"filter-id-==":[mt,[bt],(e,[t])=>e.id()===t.value],"filter-type-==":[mt,[gt],(e,[t])=>e.geometryType()===t.value],"filter-<":[mt,[gt,bt],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r{const n=e.id(),r=t.value;return typeof n==typeof r&&n":[mt,[gt,bt],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r>i}],"filter-id->":[mt,[bt],(e,[t])=>{const n=e.id(),r=t.value;return typeof n==typeof r&&n>r}],"filter-<=":[mt,[gt,bt],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r<=i}],"filter-id-<=":[mt,[bt],(e,[t])=>{const n=e.id(),r=t.value;return typeof n==typeof r&&n<=r}],"filter->=":[mt,[gt,bt],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r>=i}],"filter-id->=":[mt,[bt],(e,[t])=>{const n=e.id(),r=t.value;return typeof n==typeof r&&n>=r}],"filter-has":[mt,[bt],(e,[t])=>t.value in e.properties()],"filter-has-id":[mt,[],e=>null!==e.id()&&void 0!==e.id()],"filter-type-in":[mt,[St(gt)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[mt,[St(bt)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[mt,[gt,St(bt)],(e,[t,n])=>n.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[mt,[gt,St(bt)],(e,[t,n])=>function(e,t,n,r){for(;n<=r;){const i=n+r>>1;if(t[i]===e)return!0;t[i]>e?r=i-1:n=i+1}return!1}(e.properties()[t.value],n.value,0,n.value.length-1)],all:{type:mt,overloads:[[[mt,mt],(e,[t,n])=>t.evaluate(e)&&n.evaluate(e)],[Lr(mt),(e,t)=>{for(const n of t)if(!n.evaluate(e))return!1;return!0}]]},any:{type:mt,overloads:[[[mt,mt],(e,[t,n])=>t.evaluate(e)||n.evaluate(e)],[Lr(mt),(e,t)=>{for(const n of t)if(n.evaluate(e))return!0;return!1}]]},"!":[mt,[mt],(e,[t])=>!t.evaluate(e)],"is-supported-script":[mt,[gt],(e,[t])=>{const n=e.globals&&e.globals.isSupportedScript;return!n||n(t.evaluate(e))}],upcase:[gt,[gt],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[gt,[gt],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[gt,Lr(bt),(e,t)=>t.map((t=>Ft(t.evaluate(e)))).join("")],"resolved-locale":[gt,[xt],(e,[t])=>t.evaluate(e).resolvedLocale()]});var Rr=Or;function jr(e){return{result:"success",value:e}}function Fr(e){return{result:"error",value:e}}function Dr(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}class Nr{constructor(e,t){this.expression=e,this._warningHistory={},this._evaluator=new Kt,this._defaultValue=t?function(e){return"color"===e.type&&(Dr(e.default)||Array.isArray(e.default))?new Qe(0,0,0,0):"color"===e.type?Qe.parse(e.default)||null:void 0===e.default?null:e.default}(t):null,this._enumValues=t&&"enum"===t.type?t.values:null}evaluateWithoutErrorHandling(e,t,n,r,i,o,a,s){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=n,this._evaluator.canonical=r||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null,this.expression.evaluate(this._evaluator)}evaluate(e,t,n,r,i,o,a,s){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=n||null,this._evaluator.canonical=r||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o||null,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null;try{const e=this.expression.evaluate(this._evaluator);if(null==e||"number"==typeof e&&e!=e)return this._defaultValue;if(this._enumValues&&!(e in this._enumValues))throw new zt(`Expected value to be one of ${Object.keys(this._enumValues).map((e=>JSON.stringify(e))).join(", ")}, but found ${JSON.stringify(e)} instead.`);return e}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}}}function zr(e,t){const n=new En(Rr,[],t?function(e){const t={color:yt,string:gt,number:ft,enum:gt,boolean:mt,formatted:wt,resolvedImage:At};if("array"===e.type)return St(t[e.value]||bt,e.length);return t[e.type]}(t):void 0),r=n.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return r?jr(new Nr(r,t)):Fr(n.errors)}class Vr{constructor(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!xn(t.expression)}evaluateWithoutErrorHandling(e,t,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,i,o)}evaluate(e,t,n,r,i,o){return this._styleExpression.evaluate(e,t,n,r,i,o)}}class Br{constructor(e,t,n,r){this.kind=e,this.zoomStops=n,this._styleExpression=t,this.isStateDependent="camera"!==e&&!xn(t.expression),this.interpolationType=r}evaluateWithoutErrorHandling(e,t,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,i,o)}evaluate(e,t,n,r,i,o){return this._styleExpression.evaluate(e,t,n,r,i,o)}interpolationFactor(e,t,n){return this.interpolationType?tr.interpolationFactor(this.interpolationType,e,t,n):0}}function $r(e,t){if("error"===(e=zr(e,t)).result)return e;const n=e.value.expression,r=bn(n);if(!r&&!function(e){return"data-driven"===e["property-type"]}(t))return Fr([new ut("","data expressions not supported")]);const i=wn(n,["zoom","pitch","distance-from-center"]);if(!i&&!function(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}(t))return Fr([new ut("","zoom expressions not supported")]);const o=Gr(n);if(!o&&!i)return Fr([new ut("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(o instanceof ut)return Fr([o]);if(o instanceof tr&&!function(e){return!!e.expression&&e.expression.interpolated}(t))return Fr([new ut("",'"interpolate" expressions cannot be used with this property')]);if(!o)return jr(new Vr(r?"constant":"source",e.value));const a=o instanceof tr?o.interpolation:void 0;return jr(new Br(r?"camera":"composite",e.value,o.labels,a))}function Gr(e){let t=null;if(e instanceof or)t=Gr(e.result);else if(e instanceof rr){for(const n of e.args)if(t=Gr(n),t)break}else(e instanceof On||e instanceof tr)&&e.input instanceof Zt&&"zoom"===e.input.name&&(t=e);return t instanceof ut||e.eachChild((e=>{const n=Gr(e);n instanceof ut?t=n:!t&&n?t=new ut("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&n&&t!==n&&(t=new ut("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),t}function Ur(e){if(Array.isArray(e))return e.map(Ur);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){const t={};for(const n in e)t[n]=Ur(e[n]);return t}return function(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}(e)}var Wr={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},fog:{type:"fog"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},projection:{type:"projection"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{},sky:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_sky:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"},"fill-extrusion-edge-radius":{type:"number",private:!0,default:0,minimum:0,maximum:1,"property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_symbol:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature","pitch","distance-from-center"]}},filter_fill:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_line:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_circle:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},"filter_fill-extrusion":{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_heatmap:{type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},in:{group:"Lookup"},"index-of":{group:"Lookup"},slice:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Camera"},pitch:{group:"Camera"},"distance-from-center":{group:"Camera"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},"sky-radial-progress":{group:"sky"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},distance:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},within:{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},fog:{range:{type:"array",default:[.5,10],minimum:-20,maximum:20,length:2,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"high-color":{type:"color","property-type":"data-constant",default:"#245cdf",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"space-color":{type:"color","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-blend":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,.2,7,.1],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"star-intensity":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],5,.35,6,0],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},projection:{name:{type:"enum",values:{albers:{},equalEarth:{},equirectangular:{},lambertConformalConic:{},mercator:{},naturalEarth:{},winkelTripel:{},globe:{}},default:"mercator",required:!0},center:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-180,-90],maximum:[180,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]},parallels:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-90,-90],maximum:[90,90],transition:!1,requires:[{name:["albers","lambertConformalConic"]}]}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number","property-type":"data-constant",default:1,minimum:0,maximum:1e3,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["source"]}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant",type:"number",private:!0,default:0,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant",type:"number",private:!0,default:3,minimum:0,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,requires:["fill-extrusion-edge-radius"]}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!1,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{type:"array",value:"number",length:2,default:[0,0],minimum:[0,0],maximum:[1,1],transition:!1,requires:[{source:"geojson",has:{lineMetrics:!0}}],"property-type":"constant"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_sky:{"sky-type":{type:"enum",values:{gradient:{},atmosphere:{}},default:"atmosphere",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{type:"array",value:"number",length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,requires:[{"sky-type":"atmosphere"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{type:"number",requires:[{"sky-type":"atmosphere"}],default:10,minimum:0,maximum:100,transition:!1,"property-type":"data-constant"},"sky-gradient-center":{type:"array",requires:[{"sky-type":"gradient"}],value:"number",default:[0,0],length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{type:"number",requires:[{"sky-type":"gradient"}],default:90,minimum:0,maximum:180,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient":{type:"color",default:["interpolate",["linear"],["sky-radial-progress"],.8,"#87ceeb",1,"white"],transition:!1,requires:[{"sky-type":"gradient"}],expression:{interpolated:!0,parameters:["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{type:"color",default:"white",transition:!1,requires:[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};function qr(e){if(!0===e||!1===e)return!0;if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(const t of e.slice(1))if(!qr(t)&&"boolean"!=typeof t)return!1;return!0;default:return!0}}function Hr(e,t="fill"){if(null==e)return{filter:()=>!0,needGeometry:!1,needFeature:!1};qr(e)||(e=ei(e));const n=e;let r=!0;try{r=function(e){if(!Xr(e))return e;let t=Ur(e);return Kr(t),t=Yr(t),t}(n)}catch(e){console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n${JSON.stringify(n,null,2)}\n `)}const i=Wr[`filter_${t}`],o=zr(r,i);let a=null;if("error"===o.result)throw new Error(o.value.map((e=>`${e.key}: ${e.message}`)).join(", "));a=(e,t,n)=>o.value.evaluate(e,t,{},n);let s=null,l=null;if(r!==n){const e=zr(n,i);if("error"===e.result)throw new Error(e.value.map((e=>`${e.key}: ${e.message}`)).join(", "));s=(t,n,r,i,o)=>e.value.evaluate(t,n,{},r,void 0,void 0,i,o),l=!bn(e.value.expression)}return{filter:a,dynamicFilter:s||void 0,needGeometry:Qr(r),needFeature:!!l}}function Yr(e){if(!Array.isArray(e))return e;const t=function(e){if(Zr.has(e[0]))for(let t=1;tYr(e)))}function Kr(e){let t=!1;const n=[];if("case"===e[0]){for(let r=1;r",">=","<","<=","to-boolean"]);function Jr(e,t){return et?1:0}function Qr(e){if(!Array.isArray(e))return!1;if("within"===e[0])return!0;for(let t=1;t"===t||"<="===t||">="===t?ti(e[1],e[2],t):"any"===t?(n=e.slice(1),["any"].concat(n.map(ei))):"all"===t?["all"].concat(e.slice(1).map(ei)):"none"===t?["all"].concat(e.slice(1).map(ei).map(ii)):"in"===t?ni(e[1],e.slice(2)):"!in"===t?ii(ni(e[1],e.slice(2))):"has"===t?ri(e[1]):"!has"===t?ii(ri(e[1])):"within"!==t||e}function ti(e,t,n){switch(e){case"$type":return[`filter-type-${n}`,t];case"$id":return[`filter-id-${n}`,t];default:return[`filter-${n}`,e,t]}}function ni(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some((e=>typeof e!=typeof t[0]))?["filter-in-large",e,["literal",t.sort(Jr)]]:["filter-in-small",e,["literal",t]]}}function ri(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function ii(e){return["!",e]}var oi=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function ai(e,t){const n={};for(const t in e)"ref"!==t&&(n[t]=e[t]);return oi.forEach((e=>{e in t&&(n[e]=t[e])})),n}function si(e){e=e.slice();const t=Object.create(null);for(let n=0;n1?d[d.length-2].toLowerCase():"";if(h==p||h==p.replace("-","")||f+"-"+h==p){a=i?a:li[p],d.pop(),f&&p.startsWith(f)&&d.pop();break}}i||"number"!=typeof h||(a=h,i=!0);var g=d.join(ci).replace("Klokantech Noto Sans","Noto Sans");-1!==g.indexOf(ci)&&(g='"'+g+'"'),l.push(g)}r=di[e]=[s,a,l]}return r[0]+ci+r[1]+ci+t+"px"+(n?"/"+n:"")+ci+r[2]},pi=Ue(hi);const fi="https://api.mapbox.com";function gi(e){const t="mapbox://";return 0!==e.indexOf(t)?"":e.slice(9)}function mi(e,t){const n=gi(e);if(!n)return decodeURI(new URL(e,location.href).href);const r="styles/";if(0!==n.indexOf(r))throw new Error(`unexpected style url: ${e}`);const i=n.slice(7);return`${fi}/styles/v1/${i}?&access_token=${t}`}function yi(e,t,n,r){const i=new URL(e,r),o=gi(e);if(!o)return t?(i.searchParams.has(n)||i.searchParams.set(n,t),decodeURI(i.href)):decodeURI(i.href);if("mapbox.satellite"===o){return`https://api.mapbox.com/v4/${o}/{z}/{x}/{y}${window.devicePixelRatio>=1.5?"@2x":""}.webp?access_token=${t}`}return`https://{a-d}.tiles.mapbox.com/v4/${o}/{z}/{x}/{y}.vector.pbf?access_token=${t}`}const vi={},bi={};let xi=0;function wi(e){return e.id||(e.id=xi++),e.id}function Ai(e,t){return wi(e)+"."+(0,C.v6)(t)}function Si(e){let t=vi[e.id];return t||(t={},vi[wi(e)]=t),t}function Ci(e){let t=bi[e.id];return t||(t={},bi[wi(e)]=t),t}function Ei(e){return e*Math.PI/180}const _i=function(){const e=[];for(let t=78271.51696402048;e.length<=24;t/=2)e.push(t);return e}();function ki(e,t){if("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas)return new OffscreenCanvas(e,t);const n=document.createElement("canvas");return n.width=e,n.height=t,n}function Ti(e,t){let n=0;const r=t.length;for(;ni)).then((e=>(e instanceof Request||(e=new Request(e)),e.headers.get("Accept")||e.headers.set("Accept","application/json"),r&&(r.request=e),fetch(e).then((function(e){return delete Pi[t],e.ok?e.json():Promise.reject(new Error("Error fetching source "+t))})).catch((function(e){return delete Pi[t],Promise.reject(new Error("Error fetching source "+t))})))));return Pi[t]=[i,o],o}function Mi(e,t){if("string"!=typeof e)return Promise.resolve(e);if(!e.trim().startsWith("{"))return Ii("Style",e=mi(e,t.accessToken),t);try{const t=JSON.parse(e);return Promise.resolve(t)}catch(e){return Promise.reject(e)}}const Li={};function Ri(e,t,n={}){const r=[t,JSON.stringify(e)].toString();let i=Li[r];if(!i||n.transformRequest){let o;n.transformRequest&&(o=(e,t)=>{const r=n.transformRequest&&n.transformRequest(t,"Tiles")||t;if(e instanceof b)e.setLoader(((t,n,i)=>{(0,W.hq)((()=>r)).then((n=>{fetch(n).then((e=>e.arrayBuffer())).then((n=>{const r=e.getFormat().readFeatures(n,{extent:t,featureProjection:i});e.setFeatures(r)})).catch((t=>e.setState(y.A.ERROR)))}))}));else{const t=e.getImage();(0,W.hq)((()=>r)).then((n=>{n instanceof Request?fetch(n).then((e=>e.blob())).then((e=>{const n=URL.createObjectURL(e);t.addEventListener("load",(()=>URL.revokeObjectURL(n))),t.addEventListener("error",(()=>URL.revokeObjectURL(n))),t.src=n})).catch((t=>e.setState(y.A.ERROR))):t.src=n}))}});const a=e.url;if(a&&!e.tiles){const r=yi(a,n.accessToken,n.accessTokenParam||"access_token",t||location.href);if(a.startsWith("mapbox://"))i=Promise.resolve({tileJson:Object.assign({},e,{url:void 0,tiles:(0,H.Uu)(r)}),tileLoadFunction:o});else{const e={};i=Ii("Source",r,n,e).then((function(t){return t.tiles=t.tiles.map((function(r){return"tms"===t.scheme&&(r=r.replace("{y}","{-y}")),yi(r,n.accessToken,n.accessTokenParam||"access_token",e.request.url)})),Promise.resolve({tileJson:t,tileLoadFunction:o})}))}}else e=Object.assign({},e,{tiles:e.tiles.map((function(r){return"tms"===e.scheme&&(r=r.replace("{y}","{-y}")),yi(r,n.accessToken,n.accessTokenParam||"access_token",t||location.href)}))}),i=Promise.resolve({tileJson:Object.assign({},e),tileLoadFunction:o});Li[r]=i}return i}function ji(e,t,n,r){const i=[2*n*t.pixelRatio+t.width,2*n*t.pixelRatio+t.height],o=ki(i[0],i[1]),a=o.getContext("2d");a.drawImage(e,t.x,t.y,t.width,t.height,n*t.pixelRatio,n*t.pixelRatio,t.width,t.height);const s=a.getImageData(0,0,i[0],i[1]);a.globalCompositeOperation="destination-over",a.fillStyle=`rgba(${255*r.r},${255*r.g},${255*r.b},${r.a})`;const l=s.data;for(let e=0,r=s.width;e0&&a.arc(e,i,n*t.pixelRatio,0,2*Math.PI)}return a.fill(),o}function Fi(e,t,n){const r=Math.max(0,Math.min(1,(n-e)/(t-e)));return r*r*(3-2*r)}function Di(e,t,n){const r=ki(t.width,t.height),i=r.getContext("2d");i.drawImage(e,t.x,t.y,t.width,t.height,0,0,t.width,t.height);const o=i.getImageData(0,0,t.width,t.height),a=o.data;for(let e=0,t=o.width;e0?(a[i+0]=Math.round(255*n.r*l),a[i+1]=Math.round(255*n.g*l),a[i+2]=Math.round(255*n.b*l),a[i+3]=Math.round(255*l)):a[i+3]=0}return i.putImageData(o,0,0),r}const Ni=Array(256).join(" ");function zi(e,t){if(t>=.05){let n="";const r=e.split("\n"),i=Ni.slice(0,Math.round(t/.1));for(let e=0,t=r.length;e0&&(n+="\n"),n+=r[e].split("").join(i);return n}return e}let Vi;function Bi(){return Vi||(Vi=ki(1,1).getContext("2d")),Vi}function $i(e,t){return Bi().measureText(e).width+(e.length-1)*t}const Gi={};function Ui(e,t,n,r){if(-1!==e.indexOf("\n")){const i=e.split("\n"),o=[];for(let e=0,a=i.length;e1){const e=Bi();e.font=t;const i=e.measureText("M").width*n;let s="";const l=[];for(let e=0,t=a.length;e1;++e){const n=l[e];if($i(n,r)<.35*i){const i=e>0?$i(l[e-1],r):1/0,o=e.7*i&&$i(o,r)<.6*i){const a=n.split(" "),s=a.pop();$i(s,r)<.2*i&&(l[e]=a.join(" "),l[e+1]=s+" "+o),t-=1}}o=l.join("\n")}else o=e;o=zi(o,r),Gi[i]=o}return o}const Wi=/font-family: ?([^;]*);/,qi=/("|')/g;let Hi;function Yi(e){if(!Hi){Hi={};const e=document.styleSheets;for(let t=0,n=e.length;t`${e.key}: ${e.message}`)).join(", "));return n.value},Qi={},eo={zoom:0};let to,no;function ro(e,t,n,r,i,o,a){const s=e.id;o||(o={},console.warn("No functionCache provided to getValue()")),o[s]||(o[s]={});const l=o[s];if(!l[n]){let r=(e[t]||Qi)[n];const i=Wr[`${t}_${e.type}`][n];void 0===r&&(r=i.default);let o=(c=r,Array.isArray(c)&&c.length>0&&"string"==typeof c[0]&&c[0]in Rr);if(!o&&Dr(r)&&(r=tt(r,i),o=!0),o){const e=Ji(r,i);l[n]=e.evaluate.bind(e)}else"color"==i.type&&(r=Qe.parse(r)),l[n]=function(){return r}}var c;return eo.zoom=r,l[n](eo,i,a)}function io(e,t,n,r,i){if(!ro(e,"layout",`${r}-allow-overlap`,t,n,i))return"declutter";return ro(e,"layout",`${r}-ignore-placement`,t,n,i)?"none":"obstacle"}function oo(e,t,n,r,i){return i||console.warn("No filterCache provided to evaluateFilter()"),e in i||(i[e]=Hr(t).filter),eo.zoom=r,i[e](eo,n)}let ao=!1;function so(e,t){if(e){if(!ao&&(0===e.a||0===t))return;const n=e.a;return t=void 0===t?1:t,0===n?"transparent":"rgba("+Math.round(255*e.r/n)+","+Math.round(255*e.g/n)+","+Math.round(255*e.b/n)+","+n*t+")"}return e}const lo=/\{[^{}}]*\}/g;function co(e,t){return e.replace(lo,(function(e){return t[e.slice(1,-1)]||""}))}let uo=!1;const ho={};function po(e,t,n,r=_i,i=void 0,o=void 0,a=void 0,s=void 0){if("string"==typeof t&&(t=JSON.parse(t)),8!=t.version)throw new Error("glStyle version 8 required.");let l,c,u;if(ho[Ai(t,e)]=Array.from(arguments),o)if("undefined"!=typeof Image){const t=new Image;let n;(0,W.hq)((()=>o)).then((e=>{e instanceof Request?fetch(e).then((e=>e.blob())).then((e=>{n=URL.createObjectURL(e),t.src=n})).catch((()=>{})):(t.crossOrigin="anonymous",t.src=e,n&&URL.revokeObjectURL(n))})),t.onload=function(){l=t,c=[t.width,t.height],e.changed(),t.onload=null}}else if("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope){const e=self;e.postMessage({action:"loadImage",src:o}),e.addEventListener("message",(function(e){"imageLoaded"===e.data.action&&e.data.src===o&&(l=e.data.image,c=[l.width,l.height])}))}const d=si(t.layers),h={},p=[],f={},g={},m=Si(t),y=Ci(t);let v;for(let e=0,r=d.length;e=T.maxzoom)continue;const M=T.filter;if(!M||oo(O,M,C,A,y)){let r,d,y,v,O,M;_=T;const L=h.index;if(3==S&&("fill"==T.type||"fill-extrusion"==T.type))if(d=ro(T,"paint",T.type+"-opacity",A,C,m,E),T.type+"-pattern"in I){const e=ro(T,"paint",T.type+"-pattern",A,C,m,E);if(e){const t="string"==typeof e?co(e,p):e.toString();if(l&&i&&i[t]){++k,M=w[k],M&&M.getFill()&&!M.getStroke()&&!M.getText()||(M=new G.Ay({fill:new z.A}),w[k]=M),y=M.getFill(),M.setZIndex(L);const e=t+"."+d;let n=g[e];if(!n){const r=i[t],o=ki(r.width,r.height),a=o.getContext("2d");a.globalAlpha=d,a.drawImage(l,r.x,r.y,r.width,r.height,0,0,r.width,r.height),n=a.createPattern(o,"repeat"),g[e]=n}y.setColor(n)}}}else r=so(ro(T,"paint",T.type+"-color",A,C,m,E),d),T.type+"-outline-color"in I&&(O=so(ro(T,"paint",T.type+"-outline-color",A,C,m,E),d)),O||(O=r),(r||O)&&(++k,M=w[k],(!M||r&&!M.getFill()||!r&&M.getFill()||O&&!M.getStroke()||!O&&M.getStroke()||M.getText())&&(M=new G.Ay({fill:r?new z.A:void 0,stroke:O?new $.A:void 0}),w[k]=M),r&&(y=M.getFill(),y.setColor(r)),O&&(v=M.getStroke(),v.setColor(O),v.setWidth(.5)),M.setZIndex(L));if(1!=S&&"line"==T.type){r="line-pattern"in I?void 0:so(ro(T,"paint","line-color",A,C,m,E),ro(T,"paint","line-opacity",A,C,m,E));const e=ro(T,"paint","line-width",A,C,m,E);r&&e>0&&(++k,M=w[k],M&&M.getStroke()&&!M.getFill()&&!M.getText()||(M=new G.Ay({stroke:new $.A}),w[k]=M),v=M.getStroke(),v.setLineCap(ro(T,"layout","line-cap",A,C,m,E)),v.setLineJoin(ro(T,"layout","line-join",A,C,m,E)),v.setMiterLimit(ro(T,"layout","line-miter-limit",A,C,m,E)),v.setColor(r),v.setWidth(e),v.setLineDash(I["line-dasharray"]?ro(T,"paint","line-dasharray",A,C,m,E).map((function(t){return t*e})):null),M.setZIndex(L))}let R,j,F,D,W,q,H,Y,K,X=!1,Z=null,J=0;if((1==S||2==S)&&"icon-image"in P){const t=ro(T,"layout","icon-image",A,C,m,E);if(t){let r;R="string"==typeof t?co(t,p):t.toString();const a=s?s(e,R):void 0;if(l&&i&&i[R]||a){const e=ro(T,"layout","icon-rotation-alignment",A,C,m,E);if(2==S){const t=n.getGeometry();if(t.getFlatMidpoint||t.getFlatMidpoints){const n=t.getExtent();if(Math.sqrt(Math.max(Math.pow((n[2]-n[0])/o,2),Math.pow((n[3]-n[1])/o,2)))>150){const n="MultiLineString"===t.getType()?t.getFlatMidpoints():t.getFlatMidpoint();no||(to=[NaN,NaN],no=new B.Ay("Point",to,[],2,{},void 0)),r=no,to[0]=n[0],to[1]=n[1];if("line"===ro(T,"layout","symbol-placement",A,C,m,E)&&"map"===e){const e=t.getStride(),r=t.getFlatCoordinates();for(let t=0,i=r.length-e;t=l&&n[0]<=u&&n[1]>=c&&n[1]<=d){J=Math.atan2(o-s,a-i);break}}}}}}if(2!==S||r){const t=ro(T,"layout","icon-size",A,C,m,E),n=void 0!==I["icon-color"]?ro(T,"paint","icon-color",A,C,m,E):null;if(!n||0!==n.a){const r=ro(T,"paint","icon-halo-color",A,C,m,E),o=ro(T,"paint","icon-halo-width",A,C,m,E);let s=`${R}.${t}.${o}.${r}`;if(null!==n&&(s+=`.${n}`),j=f[s],!j){const d=io(T,A,C,"icon",m);let h;"icon-offset"in P&&(h=ro(T,"layout","icon-offset",A,C,m,E).slice(0),h[0]*=t,h[1]*=-t);let p=n?[255*n.r,255*n.g,255*n.b,n.a]:void 0;if(a){const n={color:p,rotateWithView:"map"===e,displacement:h,declutterMode:d,scale:t};"string"==typeof a?n.src=a:(n.img=a,n.imgSize=[a.width,a.height]),j=new V.A(n)}else{const a=i[R];let s,f,g;o?a.sdf?(s=ji(Di(l,a,n||[0,0,0,1]),{x:0,y:0,width:a.width,height:a.height,pixelRatio:a.pixelRatio},o,r),p=void 0):s=ji(l,a,o,r):(a.sdf?(u||(u=Di(l,{x:0,y:0,width:c[0],height:c[1]},{r:1,g:1,b:1,a:1})),s=u):s=l,f=[a.width,a.height],g=[a.x,a.y]),j=new V.A({color:p,img:s,imgSize:c,size:f,offset:g,rotateWithView:"map"===e,scale:t/a.pixelRatio,displacement:h,declutterMode:d})}f[s]=j}}j&&(++k,M=w[k],M&&M.getImage()&&!M.getFill()&&!M.getStroke()||(M=new G.Ay,w[k]=M),M.setGeometry(r),j.setRotation(J+Ei(ro(T,"layout","icon-rotate",A,C,m,E))),j.setOpacity(ro(T,"paint","icon-opacity",A,C,m,E)),j.setAnchor(Zi[ro(T,"layout","icon-anchor",A,C,m,E)]),M.setImage(j),Z=M.getText(),M.setText(void 0),M.setZIndex(L),X=!0,F=!1)}else F=!0}}}if(1==S&&"circle"===T.type){++k,M=w[k],M&&M.getImage()&&!M.getFill()&&!M.getStroke()||(M=new G.Ay,w[k]=M);const e="circle-radius"in I?ro(T,"paint","circle-radius",A,C,m,E):5,t=so(ro(T,"paint","circle-stroke-color",A,C,m,E),ro(T,"paint","circle-stroke-opacity",A,C,m,E)),n=ro(T,"paint","circle-translate",A,C,m,E),r=so(ro(T,"paint","circle-color",A,C,m,E),ro(T,"paint","circle-opacity",A,C,m,E)),i=ro(T,"paint","circle-stroke-width",A,C,m,E),o=e+"."+t+"."+r+"."+i+"."+n[0]+"."+n[1];j=f[o],j||(j=new N.A({radius:e,displacement:[n[0],-n[1]],stroke:t&&i>0?new $.A({width:i,color:t}):void 0,fill:r?new z.A({color:r}):void 0,declutterMode:"none"}),f[o]=j),M.setImage(j),Z=M.getText(),M.setText(void 0),M.setGeometry(void 0),M.setZIndex(L),X=!0}if("text-field"in P){H=Math.round(ro(T,"layout","text-size",A,C,m,E));const e=ro(T,"layout","text-font",A,C,m,E);q=ro(T,"layout","text-line-height",A,C,m,E),W=pi(a?a(e,t.metadata?t.metadata["ol:webfonts"]:void 0):e,H,q),W.includes("sans-serif")||(W+=",sans-serif"),Y=ro(T,"layout","text-letter-spacing",A,C,m,E),K=ro(T,"layout","text-max-width",A,C,m,E);const n=ro(T,"layout","text-field",A,C,m,E);D="object"==typeof n&&n.sections?1===n.sections.length?n.toString():n.sections.reduce(((t,n,r)=>{const i=n.fontStack?n.fontStack.split(","):e,o=pi(a?a(i):i,H*(n.scale||1),q);let s=n.text;if("\n"===s)return t.push("\n",""),t;if(2!=S){s=Ui(s,o,K,Y).split("\n");for(let e=0,n=s.length;e0&&t.push("\n",""),t.push(s[e],o);return t}t.push(zi(s,Y),o)}),[]):co(n,p).trim(),d=ro(T,"paint","text-opacity",A,C,m,E)}if(D&&d&&!F){X||(++k,M=w[k],M&&M.getText()&&!M.getFill()&&!M.getStroke()||(M=new G.Ay,w[k]=M),M.setImage(void 0),M.setGeometry(void 0));const e=io(T,A,C,"text",m);M.getText()||M.setText(Z),Z=M.getText(),(!Z||"getDeclutterMode"in Z&&Z.getDeclutterMode()!==e)&&(Z=new U.A({padding:[2,2,2,2],declutterMode:e}),M.setText(Z));const t=ro(T,"layout","text-transform",A,C,m,E);"uppercase"==t?D=Array.isArray(D)?D.map(((e,t)=>t%2?e:e.toUpperCase())):D.toUpperCase():"lowercase"==t&&(D=Array.isArray(D)?D.map(((e,t)=>t%2?e:e.toLowerCase())):D.toLowerCase());const n=Array.isArray(D)?D:2==S?zi(D,Y):Ui(D,W,K,Y);Z.setText(n),Z.setFont(W),Z.setRotation(Ei(ro(T,"layout","text-rotate",A,C,m,E)));const r=ro(T,"layout","text-anchor",A,C,m,E),i=X||1==S?"point":ro(T,"layout","symbol-placement",A,C,m,E);let o;if("line-center"===i?(Z.setPlacement("line"),o="center"):Z.setPlacement(i),"line"===i&&"function"==typeof Z.setRepeat){const e=ro(T,"layout","symbol-spacing",A,C,m,E);Z.setRepeat(2*e)}Z.setOverflow("point"===i);let a=ro(T,"paint","text-halo-width",A,C,m,E);const s=ro(T,"layout","text-offset",A,C,m,E),l=ro(T,"paint","text-translate",A,C,m,E);let c=0,u=0;if("point"==i){o="center",-1!==r.indexOf("left")?(o="left",u=a):-1!==r.indexOf("right")&&(o="right",u=-a);const e=ro(T,"layout","text-rotation-alignment",A,C,m,E);Z.setRotateWithView("map"==e)}else Z.setMaxAngle(Ei(ro(T,"layout","text-max-angle",A,C,m,E))*D.length/n.length),Z.setRotateWithView(!1);Z.setTextAlign(o);let h="middle";0==r.indexOf("bottom")?(h="bottom",c=-a-.5*(q-1)*H):0==r.indexOf("top")&&(h="top",c=a+.5*(q-1)*H),Z.setTextBaseline(h);const p=ro(T,"layout","text-justify",A,C,m,E);Z.setJustify("auto"===p?void 0:p),Z.setOffsetX(s[0]*H+u+l[0]),Z.setOffsetY(s[1]*H+c+l[1]),x.setColor(so(ro(T,"paint","text-color",A,C,m,E),d)),Z.setFill(x);const f=so(ro(T,"paint","text-halo-color",A,C,m,E),d);if(f&&a>0){b.setColor(f),a*=2;const e=.5*H;b.setWidth(a<=e?a:e),Z.setStroke(b)}else Z.setStroke(void 0);const g=ro(T,"layout","text-padding",A,C,m,E),y=Z.getPadding();g!==y[0]&&(y[0]=g,y[1]=g,y[2]=g,y[3]=g),M.setZIndex(L)}}}return k>-1?(w.length=k+1,uo&&("set"in n?n.set("mapbox-layer",_):n.getProperties()["mapbox-layer"]=_),w):void 0};return e.setStyle(A),e.set("mapbox-source",v),e.set("mapbox-layers",p),e.set("mapbox-featurestate",e.get("mapbox-featurestate")||{}),A}function fo(e,t){const n=e[0],r=n.width,i=n.height,o=n.data,a=new Uint8ClampedArray(o.length),s=2*t.resolution,l=r-1,c=i-1,u=[0,0,0,0],d=2*Math.PI,h=Math.PI/2,p=Math.PI*t.sunEl/180,f=Math.PI*t.sunAz/180,g=Math.cos(p),m=Math.sin(p),y=t.highlightColor,v=t.shadowColor,b=t.accentColor,x=t.encoding;let w,A,S,C,E,_,k,T,O,P,I,M,L,R,j,F,D,N,z,V,B,$;function G(e,t="mapbox"){return"mapbox"===t?.1*(256*e[0]*256+256*e[1]+e[2])-1e4:"terrarium"===t?256*e[0]+e[1]+e[2]/256-32768:void 0}for(A=0;A<=c;++A)for(E=0===A?0:A-1,_=A===c?c:A+1,w=0;w<=l;++w)S=0===w?0:w-1,C=w===l?l:w+1,k=4*(A*r+S),u[0]=o[k],u[1]=o[k+1],u[2]=o[k+2],u[3]=o[k+3],T=t.vert*G(u,x),k=4*(A*r+C),u[0]=o[k],u[1]=o[k+1],u[2]=o[k+2],u[3]=o[k+3],O=t.vert*G(u,x),P=(O-T)/s,k=4*(E*r+w),u[0]=o[k],u[1]=o[k+1],u[2]=o[k+2],u[3]=o[k+3],T=t.vert*G(u,x),k=4*(_*r+w),u[0]=o[k],u[1]=o[k+1],u[2]=o[k+2],u[3]=o[k+3],O=t.vert*G(u,x),I=(O-T)/s,L=Math.atan2(I,-P),L=L<0?h-L:L>h?d-L+h:h-L,M=Math.atan(Math.sqrt(P*P+I*I)),$=m*Math.cos(M)+g*Math.sin(M)*Math.cos(f-L),R=Math.cos(M),j=255*$,z=Math.min(Math.max(2*t.sunEl,0),1),V=1.875-1.75*t.opacity,B=.5!==t.opacity?h*((Math.pow(V,M)-1)/(Math.pow(V,h)-1)):M,D={r:(1-R)*b.r*z*255,g:(1-R)*b.g*z*255,b:(1-R)*b.b*z*255,a:(1-R)*b.a*z*255},F=Math.abs(((L+f)/Math.PI+.5)%2-1),N={r:(y.r*(1-F)+v.r*F)*j,g:(y.g*(1-F)+v.g*F)*j,b:(y.b*(1-F)+v.b*F)*j,a:(y.a*(1-F)+v.a*F)*j},k=4*(A*r+w),a[k]=D.r*(1-F)+N.r,a[k+1]=D.g*(1-F)+N.g,a[k+2]=D.b*(1-F)+N.b,a[k+3]=o[k+3]*t.opacity*z*Math.sin(B);return new ImageData(a,r,i)}function go(e,t=512){return e.getExtent()?(0,P.EN)({extent:e.getExtent(),tileSize:t,maxZoom:22}).getResolutions():_i}function mo(e,t){if(!t.accessToken){t=Object.assign({},t);new URL(e).searchParams.forEach(((e,n)=>{t.accessToken=e,t.accessTokenParam=n}))}return t}function yo(e,t,n="",r={},i=void 0){let o,a,s,l,c=!0;return"string"==typeof n||Array.isArray(n)?l=n:(s=n,l=s.source||s.layers,r=s),"string"==typeof r?(o=r,s={}):(o=r.styleUrl,s=r),!1===s.updateSource&&(c=!1),i||(i=s.resolutions),o||"string"!=typeof t||t.trim().startsWith("{")||(o=t),o&&(o=o.startsWith("data:")?location.href:mi(o,s.accessToken),s=mo(o,s)),new Promise((function(n,r){Mi(t,s).then((function(t){if(8!=t.version)return r(new Error("glStyle version 8 required."));if(!(e instanceof Ve.A||e instanceof f.A))return r(new Error("Can only apply to VectorLayer or VectorTileLayer"));const u=e instanceof f.A?"vector":"geojson";if(l?a=Array.isArray(l)?t.layers.find((function(e){return e.id===l[0]})).source:l:(a=Object.keys(t.sources).find((function(e){return t.sources[e].type===u})),l=a),!a)return r(new Error(`No ${u} source found in the glStyle.`));function d(){if(!c)return Promise.resolve();if(e instanceof f.A)return So(t.sources[a],o,s).then((function(t){const n=e.getSource();n?t!==n&&(n.setTileUrlFunction(t.getTileUrlFunction()),"function"==typeof n.setUrls&&"function"==typeof t.getUrls&&n.setUrls(t.getUrls()),n.format_||(n.format_=t.format_),n.getAttributions()||n.setAttributions(t.getAttributions()),n.getTileLoadFunction()===D&&n.setTileLoadFunction(t.getTileLoadFunction()),(0,ae.tI)(n.getProjection(),t.getProjection())&&(n.tileGrid=t.getTileGrid())):e.setSource(t);const r=e.getSource().getTileGrid();!isFinite(e.getMaxResolution())&&!isFinite(e.getMinZoom())&&r.getMinZoom()>0&&e.setMaxResolution(Oi(Math.max(0,r.getMinZoom()-1e-12),r.getResolutions()))}));const n=t.sources[a];let r=e.getSource();r&&r.get("mapbox-source")===n||(r=ko(n,o,s));const i=e.getSource();return i?r!==i&&(i.getAttributions()||i.setAttributions(r.getAttributions()),i.format_||(i.format_=r.getFormat()),i.url_=r.getUrl()):e.setSource(r),Promise.resolve()}let h,p,g,m;function y(){if(m||t.sprite&&!p)m?(e.setStyle(m),d().then(n).catch(r)):r(new Error("Something went wrong trying to apply style."));else{if(s.projection&&!i){const e=(0,ae.Jt)(s.projection).getUnits();"m"!==e&&(i=_i.map((t=>t/$e.I[e])))}m=po(e,t,l,i,p,g,((e,t=s.webfonts)=>function(e,t="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){const n=e.toString();if(n in Ki)return Ki[n];const r=[];for(let t=0,n=e.length;t=1.5?.5:1;const n=.5==h?"@2x":"";let i=e.origin+e.pathname+n+".json"+e.search;new Promise((function(t,n){Ii("Sprite",i,s).then(t).catch((function(r){i=e.origin+e.pathname+".json"+e.search,Ii("Sprite",i,s).then(t).catch(n)}))})).then((function(t){if(void 0===t&&r(new Error("No sprites found.")),p=t,g=e.origin+e.pathname+n+".png"+e.search,s.transformRequest){const e=s.transformRequest(g,"SpriteImage")||g;(e instanceof Request||e instanceof Promise)&&(g=e)}y()})).catch((function(e){r(new Error(`Sprites cannot be loaded: ${i}: ${e.message}`))}))}else y()})).catch(r)}))}const vo={};function bo(e,t){let n;return e.some((function(e){if(e.id==t)return n=e.source,!0})),n}function xo(e,t,n){const r=new ze({tileJSON:t,tileSize:e.tileSize||t.tileSize||512}),i=r.getTileJSON(),o=r.getTileGrid(),a=(0,ae.Jt)(n.projection||"EPSG:3857"),s=function(e,t){const n=e.bounds;if(n){const e=(0,ae.Rb)([n[0],n[1]],t),r=(0,ae.Rb)([n[2],n[3]],t);return[e[0],e[1],r[0],r[1]]}return(0,ae.Jt)(t).getExtent()}(i,a),l=a.getExtent(),c=i.minzoom||0,u=i.maxzoom||22,d={attributions:r.getAttributions(),projection:a,tileGrid:new w.A({origin:l?(0,O.getTopLeft)(l):o.getOrigin(0),extent:s||o.getExtent(),minZoom:c,resolutions:go(a,t.tileSize).slice(0,u+1),tileSize:o.getTileSize(0)})};return Array.isArray(i.tiles)?d.urls=i.tiles:d.url=i.tiles,d}function wo(e,t,n,r){const i={id:e.id,type:e.type},o=e.layout||{},a=e.paint||{};i.paint=a;const s=Ti(t,n.resolutions||_i);let l;const c=ro(i,"paint","background-color",s,vo,r);return void 0!==a["background-opacity"]&&(l=ro(i,"paint","background-opacity",s,vo,r)),"none"==o.visibility?void 0:so(c,l)}function Ao(e,t,n){const r=document.createElement("div");return r.className="ol-mapbox-style-background",r.style.position="absolute",r.style.width="100%",r.style.height="100%",new X.A({source:new be.A({}),render(i){const o=wo(e,i.viewState.resolution,t,n);return r.style.backgroundColor=o,r}})}function So(e,t,n){return new Promise((function(r,i){Ri(e,t,n).then((function({tileJson:t,tileLoadFunction:i}){const o=xo(e,t,n);o.tileLoadFunction=i,o.format=new pe,r(new F(o))})).catch(i)}))}function Co(e){return`{bbox-${(e?e.getCode():"EPSG:3857").toLowerCase().replace(/[^a-z0-9]/g,"-")}}`}function Eo(e,t,n){return new Promise((function(r,i){Ri(e,t,n).then((function({tileJson:t,tileLoadFunction:i}){const o=new ze({interpolate:void 0===n.interpolate||n.interpolate,transition:0,crossOrigin:"anonymous",tileJSON:t});o.tileGrid=xo(e,t,n).tileGrid,n.projection&&(o.projection=(0,ae.Jt)(n.projection));const a=o.getTileUrlFunction();i&&o.setTileLoadFunction(i),o.setTileUrlFunction((function(e,t,n){const r=Co(n);let i=a(e,t,n);if(-1!=i.indexOf(r)){const t=o.getTileGrid().getTileCoordExtent(e);i=i.replace(r,t.toString())}return i})),o.set("mapbox-source",e),r(o)})).catch((function(e){i(e)}))}))}function _o(e,t,n){const r=new xe.A;return Eo(e,t,n).then((function(e){r.setSource(e)})).catch((function(){r.setSource(void 0)})),r}function ko(e,t,n){const r=n.projection?new Y.A({dataProjection:n.projection}):new Y.A,i=e.data,o={};if("string"==typeof i){const o=yi(i,n.accessToken,n.accessTokenParam||"access_token",t||location.href);if(/\{bbox-[0-9a-z-]+\}/.test(o)){const t=(e,t,n)=>{const r=Co(n);return o.replace(r,`${e.join(",")}`)},i=new Be.A({attributions:e.attribution,format:r,loader:(e,r,o,a,s)=>{Ii("GeoJSON","function"==typeof t?t(e,r,o):t,n).then((e=>{const t=i.getFormat().readFeatures(e,{featureProjection:o});i.addFeatures(t),a(t)})).catch((t=>{i.removeLoadedExtent(e),s()}))},strategy:Ge.Qk});return i.set("mapbox-source",e),i}const a=new Be.A({attributions:e.attribution,format:r,url:o,loader:(e,t,r,i,s)=>{Ii("GeoJSON",o,n).then((e=>{const t=a.getFormat().readFeatures(e,{featureProjection:r});a.addFeatures(t),i(t)})).catch((t=>{a.removeLoadedExtent(e),s()}))}});return a}o.features=r.readFeatures(i,{featureProjection:(0,ae.Tf)()||"EPSG:3857"});const a=new Be.A(Object.assign({attributions:e.attribution,format:r},o));return a.set("mapbox-source",e),a}function To(e,t,n){let r=null;return function(i){e.paint&&"raster-opacity"in e.paint&&i.frameState.viewState.zoom!==r&&(r=i.frameState.viewState.zoom,delete n[e.id],function(e,t,n,r){const i=ro(e,"paint","raster-opacity",n,vo,r);t.setOpacity(i)}(e,t,r,n))}}function Oo(e,t,n,r){const i=Si(e),o=e.layers,a=n.type,s=n.source||bo(o,n.ref),l=e.sources[s];let c;if("background"==a)c=Ao(n,r,i);else if("vector"==l.type)c=function(e,t,n){const r=new f.A({declutter:!0,visible:!1});return So(e,t,n).then((function(t){t.set("mapbox-source",e),r.setSource(t)})).catch((function(e){r.setSource(void 0)})),r}(l,t,r);else if("raster"==l.type)c=_o(l,t,r),c.setVisible(!n.layout||"none"!==n.layout.visibility),c.on("prerender",To(n,c,i));else if("geojson"==l.type)c=function(e,t,n){return new Ve.A({declutter:!0,source:ko(e,t,n),visible:!1})}(l,t,r);else if("raster-dem"==l.type&&"hillshade"==n.type){const e=function(e,t,n){const r=_o(e,t,n);return new K.A({source:new Fe({operationType:"image",operation:fo,sources:[r]})})}(l,t,r);c=e,e.getSource().on("beforeoperations",(function(e){const t=e.data;t.resolution=(0,ae.hO)(r.projection||"EPSG:3857",e.resolution,(0,O.getCenter)(e.extent),"m");const o=Ti(e.resolution,r.resolutions||_i);t.encoding=l.encoding,t.vert=5*ro(n,"paint","hillshade-exaggeration",o,vo,i),t.sunAz=ro(n,"paint","hillshade-illumination-direction",o,vo,i),t.sunEl=35,t.opacity=.3,t.highlightColor=ro(n,"paint","hillshade-highlight-color",o,vo,i),t.shadowColor=ro(n,"paint","hillshade-shadow-color",o,vo,i),t.accentColor=ro(n,"paint","hillshade-accent-color",o,vo,i)})),c.setVisible(!n.layout||"none"!==n.layout.visibility)}const u=s;return c&&c.set("mapbox-source",u),c}function Po(e,t,n,r){const i=[];let o=null;if(t instanceof fe.A){if(o=t.getView(),!o.isDef()&&!o.getRotation()&&!o.getResolutions()){const e=r.projection?(0,ae.Jt)(r.projection):o.getProjection();o=new p.Ay(Object.assign(o.getProperties(),{maxResolution:_i[0]/$e.I[e.getUnits()],projection:r.projection||o.getProjection()})),t.setView(o)}"center"in e&&!o.getCenter()&&o.setCenter((0,ae.Rb)(e.center,o.getProjection())),"zoom"in e&&void 0===o.getZoom()&&o.setResolution(_i[0]/$e.I[o.getProjection().getUnits()]/Math.pow(2,e.zoom)),o.getCenter()&&void 0!==o.getZoom()||o.fit(o.getProjection().getExtent(),{nearest:!0,size:t.getSize()})}t.set("mapbox-style",e),t.set("mapbox-metadata",{styleUrl:n,options:r});const a=e.layers;let s,l,c,u=[];for(let o=0,d=a.length;o