PageSourceSearch

https://www.h2-digital.com/assets/index-DJRk6bk3.js

js h2-digital.com collected 2026-10-08 23:06:49 UTC 3,706,398 bytes, 1,097 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pipelineMap.page-Ducif4mz.js","assets/Close-D0F9r4u9.js","assets/FormatListBulleted-BbUMFzzd.js","assets/analyticsDashboard.shared-BCffl0wT.js","assets/InfoOutlined-Becmet6n.js","assets/charts.shared-BS7m2nUC.js","assets/reselect-BCAbsVYk.js","assets/charts-CpEGpq2M.css","assets/analyticsDashboard-DJv7oW3V.css","assets/tag.component-C64brrmo.js","assets/Edit-Ca09f5n2.js","assets/tag-pDNhJttt.css","assets/location.service-DZDJvETC.js","assets/ChevronRight-XCFZ6DCs.js","assets/TrendingUp-CD9Pswur.js","assets/H2DigitalTileMap.component-BFYYeQ0F.js","assets/loaderStore-DS7y3CCC.js","assets/address.service-BNBHyn5-.js","assets/ToggleButtonGroup-CKWyhnr1.js","assets/ToggleButton-CWqONGMy.js","assets/getValidReactChildren-1CzKouTr.js","assets/Autocomplete-VyJ9QMct.js","assets/H2DigitalTileMap-kDCOFVbJ.css","assets/useDebounce-DGMKimB-.js","assets/ExpandMore-CeDbd8G4.js","assets/MapTagFilter.component-CrKlkiGm.js","assets/MapTagFilter-CavWFsxa.css","assets/H2DigitalCard.component-DVk30E4O.js","assets/H2DigitalCard-BYCsPwoa.css","assets/multiselect.esm-BEVxdaPo.js","assets/useGetStringifiedFiltersForURL-DqnQHBl-.js","assets/LocationOn-ZF_pwbxw.js","assets/Drawer-CwQSsvSC.js","assets/Slide-BndTF5kI.js","assets/report.service-BI7Z-v_o.js","assets/composedChart.component-DRJKCFDE.js","assets/frFR-DGPUx5UE.js","assets/toPropertyKey-BOJbrgpd.js","assets/Switch-fVqi7M2p.js","assets/TablePagination-BkXNXgJo.js","assets/KeyboardArrowRight-n3JhcRl2.js","assets/Tabs-mDRuUgBE.js","assets/tags.service-CPg9N9G_.js","assets/BottomNavigationAction-kOZs_71n.js","assets/pipelineMap-ByUTI6P1.css","assets/editProjectForm.page-P9GLx7TC.js","assets/Dialog.component-BO4EQW-h.js","assets/Dialog-6XpIqRzF.css","assets/ChildLink.component-4HUizTKR.js","assets/DeleteOutlineOutlined-i32uv2c2.js","assets/userManagement.constants-q8JH4ikm.js","assets/ImageAndLogoInput.component-BvXjs0Bd.js","assets/defineProperty-CS7QrzMt.js","assets/tslib.es6-CdDRGqYe.js","assets/ImageAndLogoInput-Dmbe-Ff_.css","assets/ButtonGroup-BFV84GDZ.js","assets/Stepper-CvWl2T3e.js","assets/ChildLink-BToBrNZ7.css","assets/useGetUserExistsLabelId-XpjiwnUR.js","assets/editProjectForm-C2j2Psaq.css","assets/ContentManagement.component-C3bVejts.js","assets/Delete-DPxgNL0Z.js","assets/MoreHoriz-DL4qP45X.js","assets/WarningAmber-BQWzevYu.js","assets/ContentManagement-DYo1R4R_.css","assets/PrivateReport.component-DIF4HYM2.js","assets/PrivateReport-giexePqi.css","assets/SizingAndCosting.page-Dzhn7ikx.js","assets/sizingAndCosting.service-C9wLyBj1.js","assets/SizingAndCosting-BMAewPBi.js","assets/SizingAndCosting-d39dA98Z.css","assets/SizingAndCostingList.page-BVuLbXTB.js","assets/OutputSummary.component-Ce7lwaF0.js","assets/OutputSummary-DByzmBr9.css","assets/SizingAndCostingList-DxOmAb4N.css","assets/SizingAndCostingReport.Page-DD_KAFcU.js","assets/SizingAndCostingReport-Bhajh6rF.css","assets/TermsAndConditions.page-BSBC2X8E.js","assets/useScrollTop-B8XhmhyV.js","assets/TermsAndConditions-DPp_-dkw.css","assets/DataPrivacy.component-C1XthK8z.js","assets/DataPrivacy-DxHzQxBv.css","assets/H2DigitalHome-KpkVyD2q.css","assets/LegalImprint.component-D1ZP4ky1.js","assets/LegalImprint-Da3nRV6y.css","assets/FaqSubpages.component-B53JSNE0.js","assets/FaqSubpages-CrquYUN3.css","assets/Faq-CxgBiUHi.css","assets/H2DigitalEmbeddMap-BsbiqW4V.js","assets/ConfirmSubscribe.component-BJCSfjXw.js","assets/MarkEmailRead-BOHhqkli.js","assets/ConfirmSubscribe-Cvx0CSFG.css","assets/EditFormPublic.component-519FYHwJ.js","assets/EditFormPublic-B4aKEpMG.css","assets/Maintenance.component-DV1_sQ1t.js","assets/Maintenance-B-OKo-ok.css","assets/user-management.component-7JoAn1Xp.js","assets/user-management-7DXM0Gvm.css","assets/NavMenu.component-bOIwqr-m.js","assets/NavMenu-D6PlyhHT.css","assets/Faq.component-CZXw4gEk.js","assets/AIChatPage.component-tMSeNovN.js","assets/Slider-ckA9qFUV.js","assets/AIAvatarVideo.component-DmcB2lda.js","assets/AIAvatarVideo-pF_tpuAC.css","assets/web-speech-cognitive-services-DOmu3m5L.js","assets/___vite-browser-external_commonjs-proxy-CHA42qr2.js","assets/AccordionSummary-GuSnQtbM.js","assets/AIChatPage-BVEIjs_S.css","assets/AICustomChat.component-D84V2I5j.js","assets/FiberManualRecord-Bz3CbTbC.js","assets/AICustomChat-CAyntDTo.css","assets/ForEnergyProviders.component-oT2VMzsI.js","assets/CardContent-iZAlpKwf.js","assets/ForEnergyProviders-yGun0Pp0.css","assets/H2DigitalHome.page-ael-ekkR.js","assets/H2DigitalHome-CxfPBg9T.css","assets/EmbeddedMap-3awPz830.js","assets/DataPrivacyH2med.component-C_oY_MT2.js","assets/TermsAndConditionsH2med.page-DA8nUIao.js","assets/Accordian.component-BUBYxw07.js","assets/Accordian-DhPurJXO.css","assets/SmallScreenMenu.component-Yvdw68Wx.js","assets/SmallScreenMenu-B-vNWI4z.css","assets/Footer.component-CFX9xay3.js","assets/Footer-B7gbhVBz.css"])))=>i.map(i=>d[i]);
2var LSe=Object.defineProperty;var XJ=r=>{throw TypeError(r)};var HSe=(r,e,t)=>e in r?LSe(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var eo=(r,e,t)=>HSe(r,typeof e!="symbol"?e+"":e,t),s$=(r,e,t)=>e.has(r)||XJ("Cannot "+t);var yt=(r,e,t)=>(s$(r,e,"read from private field"),t?t.call(r):e.get(r)),Un=(r,e,t)=>e.has(r)?XJ("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),en=(r,e,t,n)=>(s$(r,e,"write to private field"),n?n.call(r,t):e.set(r,t),t),Bi=(r,e,t)=>(s$(r,e,"access private method"),t);var o4=(r,e,t,n)=>({set _(i){en(r,e,i,t)},get _(){return yt(r,e,n)}});function FSe(r,e){for(var t=0;t<e.length;t++){const n=e[t];
vendor: 6,354 bytes, lines 2-10
2if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in r)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(r,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function t(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=t(i);fetch(i.href,o)}})();function ao(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Ab(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t}var l$={exports:{}},Kk={},c$={exports:{}},to={},QJ;function USe(){if(QJ)return to;QJ=1;/**
3 * @license React
4 * react.production.min.js
5 *
6 * Copyright (c) Facebook, Inc. and its affiliates.
7 *
8 * This source code is licensed under the MIT license found in the
9 * LICENSE file in the root directory of this source tree.
10 */var r=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.iterator;function _(ve){return ve===null||typeof ve!="object"?null:(ve=m&&ve[m]||ve["@@iterator"],typeof ve=="function"?ve:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,S={};function R(ve,pe,He){this.props=ve,this.context=pe,this.refs=S,this.updater=He||C}R.prototype.isReactComponent={},R.prototype.setState=function(ve,pe){if(typeof ve!="object"&&typeof ve!="function"&&ve!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,ve,pe,"setState")},R.prototype.forceUpdate=function(ve){this.updater.enqueueForceUpdate(this,ve,"forceUpdate")};function O(){}O.prototype=R.prototype;function N(ve,pe,He){this.props=ve,this.context=pe,this.refs=S,this.updater=He||C}var H=N.prototype=new O;H.constructor=N,T(H,R.prototype),H.isPureReactComponent=!0;var F=Array.isArray,j=Object.prototype.hasOwnProperty,L={current:null},B={key:!0,ref:!0,__self:!0,__source:!0};function Q(ve,pe,He){var Re,$e={},tt=null,ot=null;if(pe!=null)for(Re in pe.ref!==void 0&&(ot=pe.ref),pe.key!==void 0&&(tt=""+pe.key),pe)j.call(pe,Re)&&!B.hasOwnProperty(Re)&&($e[Re]=pe[Re]);var qe=arguments.length-2;if(qe===1)$e.children=He;else if(1<qe){for(var lt=Array(qe),Et=0;Et<qe;Et++)lt[Et]=arguments[Et+2];$e.children=lt}if(ve&&ve.defaultProps)for(Re in qe=ve.defaultProps,qe)$e[Re]===void 0&&($e[Re]=qe[Re]);return{$$typeof:r,type:ve,key:tt,ref:ot,props:$e,_owner:L.current}}function Z(ve,pe){return{$$typeof:r,type:ve.type,key:pe,ref:ve.ref,props:ve.props,_owner:ve._owner}}function ie(ve){return typeof ve=="object"&&ve!==null&&ve.$$typeof===r}function J(ve){var pe={"=":"=0",":":"=2"};return"$"+ve.replace(/[=:]/g,function(He){return pe[He]})}var ne=/\/+/g;function ue(ve,pe){return typeof ve=="object"&&ve!==null&&ve.key!=null?J(""+ve.key):pe.toString(36)}function K(ve,pe,He,Re,$e){var tt=typeof ve;(tt==="undefined"||tt==="boolean")&&(ve=null);var ot=!1;if(ve===null)ot=!0;else switch(tt){case"string":case"number":ot=!0;break;case"object":switch(ve.$$typeof){case r:case e:ot=!0}}if(ot)return ot=ve,$e=$e(ot),ve=Re===""?"."+ue(ot,0):Re,F($e)?(He="",ve!=null&&(He=ve.replace(ne,"$&/")+"/"),K($e,pe,He,"",function(Et){return Et})):$e!=null&&(ie($e)&&($e=Z($e,He+(!$e.key||ot&&ot.key===$e.key?"":(""+$e.key).replace(ne,"$&/")+"/")+ve)),pe.push($e)),1;if(ot=0,Re=Re===""?".":Re+":",F(ve))for(var qe=0;qe<ve.length;qe++){tt=ve[qe];var lt=Re+ue(tt,qe);ot+=K(tt,pe,He,lt,$e)}else if(lt=_(ve),typeof lt=="function")for(ve=lt.call(ve),qe=0;!(tt=ve.next()).done;)tt=tt.value,lt=Re+ue(tt,qe++),ot+=K(tt,pe,He,lt,$e);else if(tt==="object")throw pe=String(ve),Error("Objects are not valid as a React child (found: "+(pe==="[object Object]"?"object with keys {"+Object.keys(ve).join(", ")+"}":pe)+"). If you meant to render a collection of children, use an array instead.");return ot}function se(ve,pe,He){if(ve==null)return ve;var Re=[],$e=0;return K(ve,Re,"","",function(tt){return pe.call(He,tt,$e++)}),Re}function be(ve){if(ve._status===-1){var pe=ve._result;pe=pe(),pe.then(function(He){(ve._status===0||ve._status===-1)&&(ve._status=1,ve._result=He)},function(He){(ve._status===0||ve._status===-1)&&(ve._status=2,ve._result=He)}),ve._status===-1&&(ve._status=0,ve._result=pe)}if(ve._status===1)return ve._result.default;throw ve._result}var de={current:null},ge={transition:null},Ue={ReactCurrentDispatcher:de,ReactCurrentBatchConfig:ge,ReactCurrentOwner:L};function Qe(){throw Error("act(...) is not supported in production builds of React.")}return to.Children={map:se,forEach:function(ve,pe,He){se(ve,function(){pe.apply(this,arguments)},He)},count:function(ve){var pe=0;return se(ve,function(){pe++}),pe},toArray:function(ve){return se(ve,function(pe){return pe})||[]},only:function(ve){if(!ie(ve))throw Error("React.Children.only expected to receive a single React element child.");return ve}},to.Component=R,to.Fragment=t,to.Profiler=i,to.PureComponent=N,to.StrictMode=n,to.Suspense=u,to.__SECRET_INT
vendor: 4,136 bytes, lines 10-18
10ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ue,to.act=Qe,to.cloneElement=function(ve,pe,He){if(ve==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+ve+".");var Re=T({},ve.props),$e=ve.key,tt=ve.ref,ot=ve._owner;if(pe!=null){if(pe.ref!==void 0&&(tt=pe.ref,ot=L.current),pe.key!==void 0&&($e=""+pe.key),ve.type&&ve.type.defaultProps)var qe=ve.type.defaultProps;for(lt in pe)j.call(pe,lt)&&!B.hasOwnProperty(lt)&&(Re[lt]=pe[lt]===void 0&&qe!==void 0?qe[lt]:pe[lt])}var lt=arguments.length-2;if(lt===1)Re.children=He;else if(1<lt){qe=Array(lt);for(var Et=0;Et<lt;Et++)qe[Et]=arguments[Et+2];Re.children=qe}return{$$typeof:r,type:ve.type,key:$e,ref:tt,props:Re,_owner:ot}},to.createContext=function(ve){return ve={$$typeof:a,_currentValue:ve,_currentValue2:ve,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},ve.Provider={$$typeof:o,_context:ve},ve.Consumer=ve},to.createElement=Q,to.createFactory=function(ve){var pe=Q.bind(null,ve);return pe.type=ve,pe},to.createRef=function(){return{current:null}},to.forwardRef=function(ve){return{$$typeof:l,render:ve}},to.isValidElement=ie,to.lazy=function(ve){return{$$typeof:p,_payload:{_status:-1,_result:ve},_init:be}},to.memo=function(ve,pe){return{$$typeof:h,type:ve,compare:pe===void 0?null:pe}},to.startTransition=function(ve){var pe=ge.transition;ge.transition={};try{ve()}finally{ge.transition=pe}},to.unstable_act=Qe,to.useCallback=function(ve,pe){return de.current.useCallback(ve,pe)},to.useContext=function(ve){return de.current.useContext(ve)},to.useDebugValue=function(){},to.useDeferredValue=function(ve){return de.current.useDeferredValue(ve)},to.useEffect=function(ve,pe){return de.current.useEffect(ve,pe)},to.useId=function(){return de.current.useId()},to.useImperativeHandle=function(ve,pe,He){return de.current.useImperativeHandle(ve,pe,He)},to.useInsertionEffect=function(ve,pe){return de.current.useInsertionEffect(ve,pe)},to.useLayoutEffect=function(ve,pe){return de.current.useLayoutEffect(ve,pe)},to.useMemo=function(ve,pe){return de.current.useMemo(ve,pe)},to.useReducer=function(ve,pe,He){return de.current.useReducer(ve,pe,He)},to.useRef=function(ve){return de.current.useRef(ve)},to.useState=function(ve){return de.current.useState(ve)},to.useSyncExternalStore=function(ve,pe,He){return de.current.useSyncExternalStore(ve,pe,He)},to.useTransition=function(){return de.current.useTransition()},to.version="18.3.1",to}var JJ;function b_(){return JJ||(JJ=1,c$.exports=USe()),c$.exports}/**
11 * @license React
12 * react-jsx-runtime.production.min.js
13 *
14 * Copyright (c) Facebook, Inc. and its affiliates.
15 *
16 * This source code is licensed under the MIT license found in the
17 * LICENSE file in the root directory of this source tree.
18 */var eee;function BSe(){if(eee)return Kk;eee=1;var r=b_(),e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(l,u,h){var p,m={},_=null,C=null;h!==void 0&&(_=""+h),u.key!==void 0&&(_=""+u.key),u.ref!==void 0&&(C=u.ref);for(p in u)n.call(u,p)&&!o.hasOwnProperty(p)&&(m[p]=u[p]);if(l&&l.defaultProps)for(p in u=l.defaultProps,u)m[p]===void 0&&(m[p]=u[p]);return{$$typeof:e,type:l,key:_,ref:C,props:m,_owner:i.current}}return Kk.Fragment=t,Kk.jsx=a,Kk.jsxs=a,Kk}var tee;function ls(){return tee||(tee=1,l$.exports=BSe()),l$.exports}var $=ls(),u$={},Zk={},ree;function $Se(){if(ree)return Zk;ree=1,Zk.byteLength=l,Zk.toByteArray=h,Zk.fromByteArray=_;for(var r=[],e=[],t=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i<o;++i)r[i]=n[i],e[n.charCodeAt(i)]=i;e[45]=62,e[95]=63;function a(C){var T=C.length;if(T%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=C.indexOf("=");S===-1&&(S=T);var R=S===T?0:4-S%4;return[S,R]}function l(C){var T=a(C),S=T[0],R=T[1];return(S+R)*3/4-R}function u(C,T,S){return(T+S)*3/4-S}function h(C){var T,S=a(C),R=S[0],O=S[1],N=new t(u(C,R,O)),H=0,F=O>0?R-4:R,j;for(j=0;j<F;
vendor: 24,445 bytes, lines 18-23
18j+=4)T=e[C.charCodeAt(j)]<<18|e[C.charCodeAt(j+1)]<<12|e[C.charCodeAt(j+2)]<<6|e[C.charCodeAt(j+3)],N[H++]=T>>16&255,N[H++]=T>>8&255,N[H++]=T&255;return O===2&&(T=e[C.charCodeAt(j)]<<2|e[C.charCodeAt(j+1)]>>4,N[H++]=T&255),O===1&&(T=e[C.charCodeAt(j)]<<10|e[C.charCodeAt(j+1)]<<4|e[C.charCodeAt(j+2)]>>2,N[H++]=T>>8&255,N[H++]=T&255),N}function p(C){return r[C>>18&63]+r[C>>12&63]+r[C>>6&63]+r[C&63]}function m(C,T,S){for(var R,O=[],N=T;N<S;N+=3)R=(C[N]<<16&16711680)+(C[N+1]<<8&65280)+(C[N+2]&255),O.push(p(R));return O.join("")}function _(C){for(var T,S=C.length,R=S%3,O=[],N=16383,H=0,F=S-R;H<F;H+=N)O.push(m(C,H,H+N>F?F:H+N));return R===1?(T=C[S-1],O.push(r[T>>2]+r[T<<4&63]+"==")):R===2&&(T=(C[S-2]<<8)+C[S-1],O.push(r[T>>10]+r[T>>4&63]+r[T<<2&63]+"=")),O.join("")}return Zk}var a4={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var nee;function zSe(){return nee||(nee=1,a4.read=function(r,e,t,n,i){var o,a,l=i*8-n-1,u=(1<<l)-1,h=u>>1,p=-7,m=t?i-1:0,_=t?-1:1,C=r[e+m];for(m+=_,o=C&(1<<-p)-1,C>>=-p,p+=l;p>0;o=o*256+r[e+m],m+=_,p-=8);for(a=o&(1<<-p)-1,o>>=-p,p+=n;p>0;a=a*256+r[e+m],m+=_,p-=8);if(o===0)o=1-h;else{if(o===u)return a?NaN:(C?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-h}return(C?-1:1)*a*Math.pow(2,o-n)},a4.write=function(r,e,t,n,i,o){var a,l,u,h=o*8-i-1,p=(1<<h)-1,m=p>>1,_=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=n?0:o-1,T=n?1:-1,S=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,a=p):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+m>=1?e+=_/u:e+=_*Math.pow(2,1-m),e*u>=2&&(a++,u/=2),a+m>=p?(l=0,a=p):a+m>=1?(l=(e*u-1)*Math.pow(2,i),a=a+m):(l=e*Math.pow(2,m-1)*Math.pow(2,i),a=0));i>=8;r[t+C]=l&255,C+=T,l/=256,i-=8);for(a=a<<i|l,h+=i;h>0;r[t+C]=a&255,C+=T,a/=256,h-=8);r[t+C-T]|=S*128}),a4}/*!
19 * The buffer module from node.js, for the browser.
20 *
21 * @author   Feross Aboukhadijeh <https://feross.org>
22 * @license  MIT
23 */var iee;function jSe(){return iee||(iee=1,(function(r){const e=$Se(),t=zSe(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=l,r.SlowBuffer=N,r.INSPECT_MAX_BYTES=50;const i=2147483647;r.kMaxLength=i,l.TYPED_ARRAY_SUPPORT=o(),!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const X=new Uint8Array(1),z={foo:function(){return 42}};return Object.setPrototypeOf(z,Uint8Array.prototype),Object.setPrototypeOf(X,z),X.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function a(X){if(X>i)throw new RangeError('The value "'+X+'" is invalid for option "size"');const z=new Uint8Array(X);return Object.setPrototypeOf(z,l.prototype),z}function l(X,z,W){if(typeof X=="number"){if(typeof z=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(X)}return u(X,z,W)}l.poolSize=8192;function u(X,z,W){if(typeof X=="string")return _(X,z);if(ArrayBuffer.isView(X))return T(X);if(X==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof X);if(rt(X,ArrayBuffer)||X&&rt(X.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(rt(X,SharedArrayBuffer)||X&&rt(X.buffer,SharedArrayBuffer)))return S(X,z,W);if(typeof X=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Se=X.valueOf&&X.valueOf();if(Se!=null&&Se!==X)return l.from(Se,z,W);const Ke=R(X);if(Ke)return Ke;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof X[Symbol.toPrimitive]=="function")return l.from(X[Symbol.toPrimitive]("string"),z,W);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof X)}l.from=function(X,z,W){return u(X,z,W)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function h(X){if(typeof X!="number")throw new TypeError('"size" argument must be of type number');if(X<0)throw new RangeError('The value "'+X+'" is invalid for option "size"')}function p(X,z,W){return h(X),X<=0?a(X):z!==void 0?typeof W=="string"?a(X).fill(z,W):a(X).fill(z):a(X)}l.alloc=function(X,z,W){return p(X,z,W)};function m(X){return h(X),a(X<0?0:O(X)|0)}l.allocUnsafe=function(X){return m(X)},l.allocUnsafeSlow=function(X){return m(X)};function _(X,z){if((typeof z!="string"||z==="")&&(z="utf8"),!l.isEncoding(z))throw new TypeError("Unknown encoding: "+z);const W=H(X,z)|0;let Se=a(W);const Ke=Se.write(X,z);return Ke!==W&&(Se=Se.slice(0,Ke)),Se}function C(X){const z=X.length<0?0:O(X.length)|0,W=a(z);for(let Se=0;Se<z;Se+=1)W[Se]=X[Se]&255;return W}function T(X){if(rt(X,Uint8Array)){const z=new Uint8Array(X);return S(z.buffer,z.byteOffset,z.byteLength)}return C(X)}function S(X,z,W){if(z<0||X.byteLength<z)throw new RangeError('"offset" is outside of buffer bounds');if(X.byteLength<z+(W||0))throw new RangeError('"length" is outside of buffer bounds');let Se;return z===void 0&&W===void 0?Se=new Uint8Array(X):W===void 0?Se=new Uint8Array(X,z):Se=new Uint8Array(X,z,W),Object.setPrototypeOf(Se,l.prototype),Se}function R(X){if(l.isBuffer(X)){const z=O(X.length)|0,W=a(z);return W.length===0||X.copy(W,0,0,z),W}if(X.length!==void 0)return typeof X.length!="number"||bt(X.length)?a(0):C(X);if(X.type==="Buffer"&&Array.isArray(X.data))return C(X.data)}function O(X){if(X>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return X|0}function N(X){return+X!=X&&(X=0),l.alloc(+X)}l.isBuffer=function(z){return z!=null&&z._isBuffer===!0&&z!==l.prototype},l.compare=function(z,W){if(rt(z,Uint8Array)&&(z=l.from(z,z.offset,z.byteLength)),rt(W,Uint8Array)&&(W=l.from(W,W.offset,W.byteLength)),!l.isBuffer(z)||!l.isBuffer(W))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(z===W)return 0;let Se=z.length,Ke=W.length;for(let je=0,We=Math.min(Se,Ke);je<We;++je)if(z[je]!==W[je]){Se=z[je],Ke=W[je];break}return Se<Ke?-1:Ke<Se?1:0},l.isEncoding=function(z){switch(String(z).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(z,W){if(!Array.isArray(z))throw new TypeError('"list" argument must be an Array of Buffers');if(z.length===0)return l.alloc(0);let Se;if(W===void 0)for(W=0,Se=0;Se<z.length;++Se)W+=z[Se].length;const Ke=l.allocUnsafe(W);let je=0;for(Se=0;Se<z.length;++Se){let We=z[Se];if(rt(We,Uint8Array))je+We.length>Ke.length?(l.isBuffer(We)||(We=l.from(We)),We.copy(Ke,je)):Uint8Array.prototype.set.call(Ke,We,je);else if(l.isBuffer(We))We.copy(Ke,je);else throw new TypeError('"list" argument must be an Array of Buffers');je+=We.length}return Ke};function H(X,z){if(l.isBuffer(X))return X.length;if(ArrayBuffer.isView(X)||rt(X,ArrayBuffer))return X.byteLength;if(typeof X!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof X);const W=X.length,Se=arguments.length>2&&arguments[2]===!0;if(!Se&&W===0)return 0;let Ke=!1;for(;;)switch(z){case"ascii":case"latin1":case"binary":return W;case"utf8":case"utf-8":return _e(X).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W*2;case"hex":return W>>>1;case"base64":return vt(X).length;default:if(Ke)return Se?-1:_e(X).length;z=(""+z).toLowerCase(),Ke=!0}}l.byteLength=H;function F(X,z,W){let Se=!1;if((z===void 0||z<0)&&(z=0),z>this.length||((W===void 0||W>this.length)&&(W=this.length),W<=0)||(W>>>=0,z>>>=0,W<=z))return"";for(X||(X="utf8");;)switch(X){case"hex":return Ue(this,z,W);case"utf8":case"utf-8":return K(this,z,W);case"ascii":return de(this,z,W);case"latin1":case"binary":return ge(this,z,W);case"base64":return ue(this,z,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,z,W);default:if(Se)throw new TypeError("Unknown encoding: "+X);X=(X+"").toLowerCase(),Se=!0}}l.prototype._isBuffer=!0;function j(X,z,W){const Se=X[z];X[z]=X[W],X[W]=Se}l.prototype.swap16=function(){const z=this.length;if(z%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let W=0;W<z;W+=2)j(this,W,W+1);return this},l.prototype.swap32=function(){const z=this.length;if(z%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let W=0;W<z;W+=4)j(this,W,W+3),j(this,W+1,W+2);return this},l.prototype.swap64=function(){const z=this.length;if(z%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let W=0;W<z;W+=8)j(this,W,W+7),j(this,W+1,W+6),j(this,W+2,W+5),j(this,W+3,W+4);return this},l.prototype.toString=function(){const z=this.length;return z===0?"":arguments.length===0?K(this,0,z):F.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(z){if(!l.isBuffer(z))throw new TypeError("Argument must be a Buffer");return this===z?!0:l.compare(this,z)===0},l.prototype.inspect=function(){let z="";const W=r.INSPECT_MAX_BYTES;return z=this.toString("hex",0,W).replace(/(.{2})/g,"$1 ").trim(),this.length>W&&(z+=" ... "),"<Buffer "+z+">"},n&&(l.prototype[n]=l.prototype.inspect),l.prototype.compare=function(z,W,Se,Ke,je){if(rt(z,Uint8Array)&&(z=l.from(z,z.offset,z.byteLength)),!l.isBuffer(z))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof z);if(W===void 0&&(W=0),Se===void 0&&(Se=z?z.length:0),Ke===void 0&&(Ke=0),je===void 0&&(je=this.length),W<0||Se>z.length||Ke<0||je>this.length)throw new RangeError("out of range index");if(Ke>=je&&W>=Se)return 0;if(Ke>=je)return-1;if(W>=Se)return 1;if(W>>>=0,Se>>>=0,Ke>>>=0,je>>>=0,this===z)return 0;let We=je-Ke,Pt=Se-W;const Jt=Math.min(We,Pt),wr=this.slice(Ke,je),rr=z.slice(W,Se);for(let Nr=0;Nr<Jt;++Nr)if(wr[Nr]!==rr[Nr]){We=wr[Nr],Pt=rr[Nr];break}return We<Pt?-1:Pt<We?1:0};function L(X,z,W,Se,Ke){if(X.length===0)return-1;if(typeof W=="string"?(Se=W,W=0):W>2147483647?W=2147483647:W<-2147483648&&(W=-2147483648),W=+W,bt(W)&&(W=Ke?0:X.length-1),W<0&&(W=X.length+W),W>=X.length){if(Ke)return-1;W=X.length-1}else if(W<0)if(Ke)W=0;else return-1;if(typeof z=="string"&&(z=l.from(z,Se)),l.isBuffer(z))return z.length===0?-1:B(X,z,W,Se,Ke);if(typeof z=="number")return z=z&255,typeof Uint8Array.prototype.indexOf=="function"?Ke?Uint8Array.prototype.indexOf.call(X,z,W):Uint8Array.prototype.lastIndexOf.call(X,z,W):B(X,[z],W,Se,Ke);throw new TypeError("val must be string, number or Buffer")}function B(X,z,W,Se,Ke){let je=1,We=X.length,Pt=z.length;if(Se!==void 0&&(Se=String(Se).toLowerCase(),Se==="ucs2"||Se==="ucs-2"||Se==="utf16le"||Se==="utf-16le")){if(X.length<2||z.length<2)return-1;je=2,We/=2,Pt/=2,W/=2}function Jt(rr,Nr){return je===1?rr[Nr]:rr.readUInt16BE(Nr*je)}let wr;if(Ke){let rr=-1;for(wr=W;wr<We;wr++)if(Jt(X,wr)===Jt(z,rr===-1?0:wr-rr)){if(rr===-1&&(rr=wr),wr-rr+1===Pt)return rr*je}else rr!==-1&&(wr-=wr-rr),rr=-1}else for(W+Pt>We&&(W=We-Pt),wr=W;wr>=0;wr--){let rr=!0;for(let Nr=0;Nr<Pt;Nr++)if(Jt(X,wr+Nr)!==Jt(z,Nr)){rr=!1;break}if(rr)return wr}return-1}l.prototype.includes=function(z,W,Se){return this.indexOf(z,W,Se)!==-1},l.prototype.indexOf=function(z,W,Se){return L(this,z,W,Se,!0)},l.prototype.lastIndexOf=function(z,W,Se){return L(this,z,W,Se,!1)};function Q(X,z,W,Se){W=Number(W)||0;const Ke=X.length-W;Se?(Se=Number(Se),Se>Ke&&(Se=Ke)):Se=Ke;const je=z.length;Se>je/2&&(Se=je/2);let We;for(We=0;We<Se;++We){const Pt=parseInt(z.substr(We*2,2),16);if(bt(Pt))return We;X[W+We]=Pt}return We}function Z(X,z,W,Se){return kt(_e(z,X.length-W),X,W,Se)}function ie(X,z,W,Se){return kt(Ve(z),X,W,Se)}function J(X,z,W,Se){return kt(vt(z),X,W,Se)}function ne(X,z,W,Se){return kt(it(z,X.length-W),X,W,Se)}l.prototype.write=function(z,W,Se,Ke){if(W===void 0)Ke="utf8",Se=this.length,W=0;else if(Se===void 0&&typeof W=="string")Ke=W,Se=this.length,W=0;else if(isFinite(W))W=W>>>0,isFinite(Se)?(Se=Se>>>0,Ke===void 0&&(Ke="utf8")):(Ke=Se,Se=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const je=this.length-W;if((Se===void 0||Se>je)&&(Se=je),z.length>0&&(Se<0||W<0)||W>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ke||(Ke="utf8");let We=!1;for(;;)switch(Ke){case"hex":return Q(this,z,W,Se);case"utf8":case"utf-8":return Z(this,z,W,Se);case"ascii":case"latin1":case"binary":return ie(this,z,W,Se);case"base64":return J(this,z,W,Se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ne(this,z,W,Se);default:if(We)throw new TypeError("Unknown encoding: "+Ke);Ke=(""+Ke).toLowerCase(),We=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(X,z,W){return z===0&&W===X.length?e.fromByteArray(X):e.fromByteArray(X.slice(z,W))}function K(X,z,W){W=Math.min(X.length,W);const Se=[];let Ke=z;for(;Ke<W;){const je=X[Ke];let We=null,Pt=je>239?4:je>223?3:je>191?2:1;if(Ke+Pt<=W){let Jt,wr,rr,Nr;switch(Pt){case 1:je<128&&(We=je);break;case 2:Jt=X[Ke+1],(Jt&192)===128&&(Nr=(je&31)<<6|Jt&63,Nr>127&&(We=Nr));break;case 3:Jt=X[Ke+1],wr=X[Ke+2],(Jt&192)===128&&(wr&192)===128&&(Nr=(je&15)<<12|(Jt&63)<<6|wr&63,Nr>2047&&(Nr<55296||Nr>57343)&&(We=Nr));break;case 4:Jt=X[Ke+1],wr=X[Ke+2],rr=X[Ke+3],(Jt&192)===128&&(wr&192)===128&&(rr&192)===128&&(Nr=(je&15)<<18|(Jt&63)<<12|(wr&63)<<6|rr&63,Nr>65535&&Nr<1114112&&(We=Nr))}}We===null?(We=65533,Pt=1):We>65535&&(We-=65536,Se.push(We>>>10&1023|55296),We=56320|We&1023),Se.push(We),Ke+=Pt}return be(Se)}const se=4096;function be(X){const z=X.length;if(z<=se)return String.fromCharCode.apply(String,X);let W="",Se=0;for(;Se<z;)W+=String.fromCharCode.apply(String,X.slice(Se,Se+=se));return W}function de(X,z,W){let Se="";W=Math.min(X.length,W);for(let Ke=z;Ke<W;++Ke)Se+=String.fromCharCode(X[Ke]&127);return Se}function ge(X,z,W){let Se="";W=Math.min(X.length,W);for(let Ke=z;Ke<W;++Ke)Se+=String.fromCharCode(X[Ke]);return Se}function Ue(X,z,W){const Se=X.length;(!z||z<0)&&(z=0),(!W||W<0||W>Se)&&(W=Se);let Ke="";for(let je=z;je<W;++je)Ke+=Xe[X[je]];return Ke}function Qe(X,z,W){const Se=X.slice(z,W);let Ke="";for(let je=0;je<Se.length-1;je+=2)Ke+=String.fromCharCode(Se[je]+Se[je+1]*256);return Ke}l.prototype.slice=function(z,W){const Se=this.length;z=~~z,W=W===void 0?Se:~~W,z<0?(z+=Se,z<0&&(z=0)):z>Se&&(z=Se),W<0?(W+=Se,W<0&&(W=0)):W>Se&&(W=Se),W<z&&(W=z);const Ke=this.subarray(z,W);return Object.setPrototypeOf(Ke,l.prototype),Ke};function ve(X,z,W){if(X%1!==0||X<0)throw new RangeError("offset is not uint");if(X+z>W)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(z,W,Se){z=z>>>0,W=W>>>0,Se||ve(z,W,this.length);let Ke=this[z],je=1,We=0;for(;++We<W&&(je*=256);)Ke+=this[z+We]*je;return Ke},l.prototype.readUintBE=l.prototype.readUIntBE=function(z,W,Se){z=z>>>0,W=W>>>0,Se||ve(z,W,this.length);let Ke=this[z+--W],je=1;for(;W>0&&(je*=256);)Ke+=this[z+--W]*je;return Ke},l.prototype.readUint8=l.prototype.readUInt8=function(z,W){return z=z>>>0,W||ve(z,1,this.length),this[z]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(z,W){return z=z>>>0,W||ve(z,2,this.length),this[z]|this[z+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(z,W){return z=z>>>0,W||ve(z,2,this.length),this[z]<<8|this[z+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(z,W){return z=z>>>0,W||ve(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+this[z+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(z,W){return z=z>>>0,W||ve(z,4,this.length),this[z]*16777216+(this[z+1]<<16|this[z+2]<<8|this[z+3])},l.prototype.readBigUInt64LE=ct(function(z){z=z>>>0,re(z,"offset");const W=this[z],Se=this[z+7];(W===void 0||Se===void 0)&&te(z,this.length-8);const Ke=W+this[++z]*2**8+this[++z]*2**16+this[++z]*2**24,je=this[++z]+this[++z]*2**8+this[++z]*2**16+Se*2**24;return BigInt(Ke)+(BigInt(je)<<BigInt(32))}),l.prototype.readBigUInt64BE=ct(function(z){z=z>>>0,re(z,"offset");const W=this[z],Se=this[z+7];(W===void 0||Se===void 0)&&te(z,this.length-8);const Ke=W*2**24+this[++z]*2**16+this[++z]*2**8+this[++z],je=this[++z]*2**24+this[++z]*2**16+this[++z]*2**8+Se;return(BigInt(Ke)<<BigInt(32))+BigInt(je)}),l.prototype.readIntLE=function(z,W,Se){z=z>>>0,W=W>>>0,Se||ve(z,W,this.length);let Ke=this[z],je=1,We=0;for(;++We<W&&(je*=256);)Ke+=this[z+We]*je;return je*=128,Ke>=je&&(Ke-=Math.pow(2,8*W)),Ke},l.prototype.readIntBE=function(z,W,Se){z=z>>>0,W=W>>>0,Se||ve(z,W,this.length);let Ke=W,je=1,We=this[z+--Ke];for(;Ke>0&&(je*=256);)We+=this[z+--Ke]*je;return je*=128,We>=je&&(We-=Math.pow(2,8*W)),We},l.prototype.readInt8=function(z,W){return z=z>>>0,W||ve(z,1,this.length),this[z]&128?(255-this[z]+1)*-1:this[z]},l.prototype.readInt16LE=function(z,W){z=z>>>0,W||ve(z,2,this.length);const Se=this[z]|this[z+1]<<8;return Se&32768?Se|4294901760:Se},l.prototype.readInt16BE=function(z,W){z=z>>>0,W||ve(z,2,this.length);const Se=this[z+1]|this[z]<<8;return Se&32768?Se|4294901760:Se},l.prototype.readInt32LE=function(z,W){return z=z>>>0,W||ve(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},l.prototype.readInt32BE=function(z,W){return z=z>>>0,W||ve(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},l.prototype.readBigInt64LE=ct(function(z){z=z>>>0,re(z,"offset");const W=this[z],Se=this[z+7];(W===void 0||Se===void 0)&&te(z,this.length-8);const Ke=this[z+4]+this[z+5]*2**8+this[z+6]*2**16+(Se<<24);return(BigInt(Ke)<<BigInt(32))+BigInt(W+this[++z]*2**8+this[++z]*2**16+this[++z]*2**24)}),l.prototype.readBigInt64BE=ct(function(z){z=z>>>0,re(z,"offset");const W=this[z],Se=this[z+7];(W===void 0||Se===void 0)&&te(z,this.length-8);const Ke=(W<<24)+this[++z]*2**16+this[++z]*2**8+this[++z];return(BigInt(Ke)<<BigInt(32))+BigInt(this[++z]*2**24+this[++z]*2**16+this[++z]*2**8+Se)}),l.prototype.readFloatLE=function(z,W){return z=z>>>0,W||ve(z,4,this.length),t.read(this,z,!0,23,4)},l.prototype.readFloatBE=function(z,W){return z=z>>>0,W||ve(z,4,this.length),t.read(this,z,!1,23,4)},l.prototype.readDoubleLE=function(z,W){return z=z>>>0,W||ve(z,8,this.length),t.read(this,z,!0,52,8)},l.prototype.readDoubleBE=function(z,W){return z=z>>>0,W||ve(z,8,this.length),t.read(this,z,!1,52,8)};function pe(X,z,W,Se,Ke,je){if(!l.isBuffer(X))throw new TypeError('"buffer" argument must be a Buffer instance');if(z>Ke||z<je)throw new RangeError('"value" argument is out of bounds');if(W+Se>X.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(z,W,Se,Ke){if(z=+z,W=W>>>0,Se=Se>>>0,!Ke){const Pt=Math.pow(2,8*Se)-1;pe(this,z,W,Se,Pt,0)}let je=1,We=0;for(this[W]=z&255;++We<Se&&(je*=256);)this[W+We]=z/je&255;return W+Se},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(z,W,Se,Ke){if(z=+z,W=W>>>0,Se=Se>>>0,!Ke){const Pt=Math.pow(2,8*Se)-1;pe(this,z,W,Se,Pt,0)}let je=Se-1,We=1;for(this[W+je]=z&255;--je>=0&&(We*=256);)this[W+je]=z/We&255;return W+Se},l.prototype.writeUint8=l.prototype.writeUInt8=function(z,W,Se){return z=+z,W=W>>>0,Se||pe(this,z,W,1,255,0),this[W]=z&255,W+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(z,W,Se){return z=+z,W=W>>>0,Se||pe(this,z,W,2,65535,0),this[W]=z&255,this[W+1]=z>>>8,W+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(z,W,Se){return z=+z,W=W>>>0,Se||pe(this,z,W,2,65535,0),this[W]=z>>>8,this[W+1]=z&255,W+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(z,W,Se){return z=+z,W=W>>>0,Se||pe(this,z,W,4,4294967295,0),this[W+3]=z>>>24,this[W+2]=z>>>16,this[W+1]=z>>>8,this[W]=z&255,W+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(z,W,Se){return z=+z,W=W>>>0,Se||pe(this,z,W,4,4294967295,0),this[W]=z>>>24,this[W+1]=z>>>16,this[W+2]=z>>>8,this[W+3]=z&255,W+4};function He(X,z,W,Se,Ke){le(z,Se,Ke,X,W,7);let je=Number(z&BigInt(4294967295));X[W++]=je,je=je>>8,X[W++]=je,je=je>>8,X[W++]=je,je=je>>8,X[W++]=je;let We=Number(z>>BigInt(32)&BigInt(4294967295));return X[W++]=We,We=We>>8,X[W++]=We,We=We>>8,X[W++]=We,We=We>>8,X[W++]=We,W}function Re(X,z,W,Se,Ke){le(z,Se,Ke,X,W,7);let je=Number(z&BigInt(4294967295));X[W+7]=je,je=je>>8,X[W+6]=je,je=je>>8,X[W+5]=je,je=je>>8,X[W+4]=je;let We=Number(z>>BigInt(32)&BigInt(4294967295));return X[W+3]=We,We=We>>8,X[W+2]=We,We=We>>8,X[W+1]=We,We=We>>8,X[W]=We,W+8}l.prototype.writeBigUInt64LE=ct(function(z,W=0){return He(this,z,W,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=ct(function(z,W=0){return Re(this,z,W,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(z,W,Se,Ke){if(z=+z,W=W>>>0,!Ke){const Jt=Math.pow(2,8*Se-1);pe(this,z,W,Se,Jt-1,-Jt)}let je=0,We=1,Pt=0;for(this[W]=z&255;++je<Se&&(We*=256);)z<0&&Pt===0&&this[W+je-1]!==0&&(Pt=1),this[W+je]=(z/We>>0)-Pt&255;return W+Se},l.prototype.writeIntBE=function(z,W,Se,Ke){if(z=+z,W=W>>>0,!Ke){const Jt=Math.pow(2,8*Se-1);pe(this,z,W,Se,Jt-1,-Jt)}let je=Se-1,We=1,Pt=0;for(this[W+je]=z&255;--je>=0&&(We*=256);)z<0&&Pt===0&&this[W+je+1]!==0&&(Pt=1),this[W+je]=(z/We>>0)-Pt&255;return W+Se},l.prototype.writeInt8=function(z,W,Se){return z=+z,W=W>>>0,Se||pe(this,z,W,1,127,-128),z<0&&(z=255+z+1),this[W]=z&255,W+1},l.prototype.writeInt16LE=function(z,W,Se){return z=+z,W=W>>>0,Se||pe(this,z,W,2,32767,-32768),this[W]=z&255,this[W+1]=z>>>8,W+2},l.prototype.writeInt16BE=function(z,W,Se){return z=+z,W=W>>>0,Se||pe(this,z,W,2,32767,-32768),this[W]=z>>>8,this[W+1]=z&255,W+2},l.prototype.writeInt32LE=function(z,W,Se){return z=+z,W=W>>>0,Se||pe(this,z,W,4,2147483647,-2147483648),this[W]=z&255,this[W+1]=z>>>8,this[W+2]=z>>>16,this[W+3]=z>>>24,W+4},l.prototype.writeInt32BE=function(z,W,Se){return z=+z,W=W>>>0,Se||pe(this,z,W,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),this[W]=z>>>24,this[W+1]=z>>>16,this[W+2]=z>>>8,this[W+3]=z&255,W+4},l.prototype.writeBigInt64LE=ct(function(z,W=0){return He(this,z,W,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=ct(function(z,W=0){return Re(this,z,W,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function $e(X,z,W,Se,Ke,je){if(W+Se>X.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("Index out of range")}function tt(X,z,W,Se,Ke){return z=+z,W=W>>>0,Ke||$e(X,z,W,4),t.write(X,z,W,Se,23,4),W+4}l.prototype.writeFloatLE=function(z,W,Se){return tt(this,z,W,!0,Se)},l.prototype.writeFloatBE=function(z,W,Se){return tt(this,z,W,!1,Se)};function ot(X,z,W,Se,Ke){return z=+z,W=W>>>0,Ke||$e(X,z,W,8),t.write(X,z,W,Se,52,8),W+8}l.prototype.writeDoubleLE=function(z,W,Se){return ot(this,z,W,!0,Se)},l.prototype.writeDoubleBE=function(z,W,Se){return ot(this,z,W,!1,Se)},l.prototype.copy=function(z,W,Se,Ke){if(!l.isBuffer(z))throw new TypeError("argument should be a Buffer");if(Se||(Se=0),!Ke&&Ke!==0&&(Ke=this.length),W>=z.length&&(W=z.length),W||(W=0),Ke>0&&Ke<Se&&(Ke=Se),Ke===Se||z.length===0||this.length===0)return 0;if(W<0)throw new RangeError("targetStart out of bounds");if(Se<0||Se>=this.length)throw new RangeError("Index out of range");if(Ke<0)throw new RangeError("sourceEnd out of bounds");Ke>this.length&&(Ke=this.length),z.length-W<Ke-Se&&(Ke=z.length-W+Se);const je=Ke-Se;return this===z&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(W,Se,Ke):Uint8Array.prototype.set.call(z,this.subarray(Se,Ke),W),je},l.prototype.fill=function(z,W,Se,Ke){if(typeof z=="string"){if(typeof W=="string"?(Ke=W,W=0,Se=this.length):typeof Se=="string"&&(Ke=Se,Se=this.length),Ke!==void 0&&typeof Ke!="string")throw new TypeError("encoding must be a string");if(typeof Ke=="string"&&!l.isEncoding(Ke))throw new TypeError("Unknown encoding: "+Ke);if(z.length===1){const We=z.charCodeAt(0);(Ke==="utf8"&&We<128||Ke==="latin1")&&(z=We)}}else typeof z=="number"?z=z&255:typeof z=="boolean"&&(z=Number(z));if(W<0||this.length<W||this.length<Se)throw new RangeError("Out of range index");if(Se<=W)return this;W=W>>>0,Se=Se===void 0?this.length:Se>>>0,z||(z=0);let je;if(typeof z=="number")for(je=W;je<Se;++je)this[je]=z;else{const We=l.isBuffer(z)?z:l.from(z,Ke),Pt=We.length;
23if(Pt===0)throw new TypeError('The value "'+z+'" is invalid for argument "value"');for(je=0;je<Se-W;++je)this[je+W]=We[je%Pt]}return this};const qe={};function lt(X,z,W){qe[X]=class extends W{constructor(){super(),Object.defineProperty(this,"message",{value:z.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${X}]`,this.stack,delete this.name}get code(){return X}set code(Ke){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Ke,writable:!0})}toString(){return`${this.name} [${X}]: ${this.message}`}}}lt("ERR_BUFFER_OUT_OF_BOUNDS",function(X){return X?`${X} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),lt("ERR_INVALID_ARG_TYPE",function(X,z){return`The "${X}" argument must be of type number. Received type ${typeof z}`},TypeError),lt("ERR_OUT_OF_RANGE",function(X,z,W){let Se=`The value of "${X}" is out of range.`,Ke=W;return Number.isInteger(W)&&Math.abs(W)>2**32?Ke=Et(String(W)):typeof W=="bigint"&&(Ke=String(W),(W>BigInt(2)**BigInt(32)||W<-(BigInt(2)**BigInt(32)))&&(Ke=Et(Ke)),Ke+="n"),Se+=` It must be ${z}. Received ${Ke}`,Se},RangeError);function Et(X){let z="",W=X.length;const Se=X[0]==="-"?1:0;for(;W>=Se+4;W-=3)z=`_${X.slice(W-3,W)}${z}`;return`${X.slice(0,W)}${z}`}function Oe(X,z,W){re(z,"offset"),(X[z]===void 0||X[z+W]===void 0)&&te(z,X.length-(W+1))}function le(X,z,W,Se,Ke,je){if(X>W||X<z){const We=typeof z=="bigint"?"n":"";let Pt;throw z===0||z===BigInt(0)?Pt=`>= 0${We} and < 2${We} ** ${(je+1)*8}${We}`:Pt=`>= -(2${We} ** ${(je+1)*8-1}${We}) and < 2 ** ${(je+1)*8-1}${We}`,new qe.ERR_OUT_OF_RANGE("value",Pt,X)}Oe(Se,Ke,je)}function re(X,z){if(typeof X!="number")throw new qe.ERR_INVALID_ARG_TYPE(z,"number",X)}function te(X,z,W){throw Math.floor(X)!==X?(re(X,W),new qe.ERR_OUT_OF_RANGE("offset","an integer",X)):z<0?new qe.ERR_BUFFER_OUT_OF_BOUNDS:new qe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${z}`,X)}const me=/[^+/0-9A-Za-z-_]/g;function Ae(X){if(X=X.split("=")[0],X=X.trim().replace(me,""),X.length<2)return"";for(;X.length%4!==0;)X=X+"=";return X}function _e(X,z){z=z||1/0;let W;const Se=X.length;let Ke=null;const je=[];for(let We=0;We<Se;++We){if(W=X.charCodeAt(We),W>55295&&W<57344){if(!Ke){if(W>56319){(z-=3)>-1&&je.push(239,191,189);continue}else if(We+1===Se){(z-=3)>-1&&je.push(239,191,189);continue}Ke=W;continue}if(W<56320){(z-=3)>-1&&je.push(239,191,189),Ke=W;continue}W=(Ke-55296<<10|W-56320)+65536}else Ke&&(z-=3)>-1&&je.push(239,191,189);if(Ke=null,W<128){if((z-=1)<0)break;je.push(W)}else if(W<2048){if((z-=2)<0)break;je.push(W>>6|192,W&63|128)}else if(W<65536){if((z-=3)<0)break;je.push(W>>12|224,W>>6&63|128,W&63|128)}else if(W<1114112){if((z-=4)<0)break;je.push(W>>18|240,W>>12&63|128,W>>6&63|128,W&63|128)}else throw new Error("Invalid code point")}return je}function Ve(X){const z=[];for(let W=0;W<X.length;++W)z.push(X.charCodeAt(W)&255);return z}function it(X,z){let W,Se,Ke;const je=[];for(let We=0;We<X.length&&!((z-=2)<0);++We)W=X.charCodeAt(We),Se=W>>8,Ke=W%256,je.push(Ke),je.push(Se);return je}function vt(X){return e.toByteArray(Ae(X))}function kt(X,z,W,Se){let Ke;for(Ke=0;Ke<Se&&!(Ke+W>=z.length||Ke>=X.length);++Ke)z[Ke+W]=X[Ke];return Ke}function rt(X,z){return X instanceof z||X!=null&&X.constructor!=null&&X.constructor.name!=null&&X.constructor.name===z.name}function bt(X){return X!==X}const Xe=(function(){const X="0123456789abcdef",z=new Array(256);for(let W=0;W<16;++W){const Se=W*16;for(let Ke=0;Ke<16;++Ke)z[Se+Ke]=X[W]+X[Ke]}return z})();function ct(X){return typeof BigInt>"u"?Me:X}function Me(){throw new Error("BigInt not supported")}})(u$)),u$}var VSe=jSe();typeof globalThis.Buffer>"u"&&(globalThis.Buffer=VSe.Buffer);var V=b_();const as=ao(V),W3=FSe({__proto__:null,default:as},[V]);var lk=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(r){return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},gT,iE,lP,Bde,qSe=(Bde=class extends lk{constructor(){super();Un(this,gT);Un(this,iE);Un(this,lP);en(this,lP,e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){yt(this,iE)||this.setEventListener(yt(this,lP))}onUnsubscribe(){var e;this.hasListeners()||((e=yt(this,iE))==null||e.call(this),en(this,iE,void 0))}setEventListener(e){var t;en(this,lP,e),(t=yt(this,iE))==null||t.call(this),en(this,iE,e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(e){yt(this,gT)!==e&&(en(this,gT,e),this.onFocus())}onFocus(){const e=this.isFocused();
23this.listeners.forEach(t=>{t(e)})}isFocused(){var e;return typeof yt(this,gT)=="boolean"?yt(this,gT):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},gT=new WeakMap,iE=new WeakMap,lP=new WeakMap,Bde),TW=new qSe,GSe={setTimeout:(r,e)=>setTimeout(r,e),clearTimeout:r=>clearTimeout(r),setInterval:(r,e)=>setInterval(r,e),clearInterval:r=>clearInterval(r)},oE,xW,$de,YSe=($de=class{constructor(){Un(this,oE,GSe);Un(this,xW,!1)}setTimeoutProvider(r){en(this,oE,r)}setTimeout(r,e){return yt(this,oE).setTimeout(r,e)}clearTimeout(r){yt(this,oE).clearTimeout(r)}setInterval(r,e){return yt(this,oE).setInterval(r,e)}clearInterval(r){yt(this,oE).clearInterval(r)}},oE=new WeakMap,xW=new WeakMap,$de),Kx=new YSe;function WSe(r){setTimeout(r,0)}var KSe=typeof window>"u"||"Deno"in globalThis;function Ph(){}function ZSe(r,e){return typeof r=="function"?r(e):r}function K3(r){return typeof r=="number"&&r>=0&&r!==1/0}function Xde(r,e){return Math.max(r+(e||0)-Date.now(),0)}function bE(r,e){return typeof r=="function"?r(e):r}function Wp(r,e){return typeof r=="function"?r(e):r}function oee(r,e){const{type:t="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:l}=r;if(a){if(n){if(e.queryHash!==SW(a,e.options))return!1}else if(!TN(e.queryKey,a))return!1}if(t!=="all"){const u=e.isActive();if(t==="active"&&!u||t==="inactive"&&u)return!1}return!(typeof l=="boolean"&&e.isStale()!==l||i&&i!==e.state.fetchStatus||o&&!o(e))}function aee(r,e){const{exact:t,status:n,predicate:i,mutationKey:o}=r;if(o){if(!e.options.mutationKey)return!1;if(t){if(ZT(e.options.mutationKey)!==ZT(o))return!1}else if(!TN(e.options.mutationKey,o))return!1}return!(n&&e.state.status!==n||i&&!i(e))}function SW(r,e){return((e==null?void 0:e.queryKeyHashFn)||ZT)(r)}function ZT(r){return JSON.stringify(r,(e,t)=>Z3(t)?Object.keys(t).sort().reduce((n,i)=>(n[i]=t[i],n),{}):t)}function TN(r,e){return r===e?!0:typeof r!=typeof e?!1:r&&e&&typeof r=="object"&&typeof e=="object"?Object.keys(e).every(t=>TN(r[t],e[t])):!1}var XSe=Object.prototype.hasOwnProperty;function Qde(r,e,t=0){if(r===e)return r;if(t>500)return e;const n=see(r)&&see(e);if(!n&&!(Z3(r)&&Z3(e)))return e;const o=(n?r:Object.keys(r)).length,a=n?e:Object.keys(e),l=a.length,u=n?new Array(l):{};let h=0;for(let p=0;p<l;p++){const m=n?p:a[p],_=r[m],C=e[m];if(_===C){u[m]=_,(n?p<o:XSe.call(r,m))&&h++;continue}if(_===null||C===null||typeof _!="object"||typeof C!="object"){u[m]=C;continue}const T=Qde(_,C,t+1);u[m]=T,T===_&&h++}return o===l&&h===o?r:u}function kF(r,e){if(!e||Object.keys(r).length!==Object.keys(e).length)return!1;for(const t in r)if(r[t]!==e[t])return!1;return!0}function see(r){return Array.isArray(r)&&r.length===Object.keys(r).length}function Z3(r){if(!lee(r))return!1;const e=r.constructor;if(e===void 0)return!0;const t=e.prototype;return!(!lee(t)||!t.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(r)!==Object.prototype)}function lee(r){return Object.prototype.toString.call(r)==="[object Object]"}function QSe(r){return new Promise(e=>{Kx.setTimeout(e,r)})}function X3(r,e,t){return typeof t.structuralSharing=="function"?t.structuralSharing(r,e):t.structuralSharing!==!1?Qde(r,e):e}function JSe(r,e,t=0){const n=[...r,e];return t&&n.length>t?n.slice(1):n}function eIe(r,e,t=0){const n=[e,...r];return t&&n.length>t?n.slice(0,-1):n}var IW=Symbol();function Jde(r,e){return!r.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!r.queryFn||r.queryFn===IW?()=>Promise.reject(new Error(`Missing queryFn: '${r.queryHash}'`)):r.queryFn}function AW(r,e){return typeof r=="function"?r(...e):!!r}function tIe(r,e,t){let n=!1,i;return Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(i??(i=e()),n||(n=!0,i.aborted?t():i.addEventListener("abort",t,{once:!0})),i)}),r}var SN=(()=>{let r=()=>KSe;return{isServer(){return r()},setIsServer(e){r=e}}})();function Q3(){let r,e;const t=new Promise((i,o)=>{r=i,e=o});t.status="pending",t.catch(()=>{});function n(i){Object.assign(t,i),delete t.resolve,delete t.reject}return t.resolve=i=>{n({status:"fulfilled",value:i}),r(i)},t.reject=i=>{n({status:"rejected",reason:i}),e(i)},t}var rIe=WSe;function nIe(){let r=[],e=0,t=l=>{l()},n=l=>{l()},i=rIe;const o=l=>{e?r.push(l):i(()=>{t(l)})},a=()=>{const l=r;r=[],l.length&&i(()=>{n(()=>{l.forEach(u=>{t(u)})})})};return{batch:l=>{let u;e++;try{u=l()}finally{e--,e||a()}return u},batchCalls:l=>(...u)=>{o(()=>
23{l(...u)})},schedule:o,setNotifyFunction:l=>{t=l},setBatchNotifyFunction:l=>{n=l},setScheduler:l=>{i=l}}}var Wc=nIe(),cP,aE,uP,zde,iIe=(zde=class extends lk{constructor(){super();Un(this,cP,!0);Un(this,aE);Un(this,uP);en(this,uP,e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){yt(this,aE)||this.setEventListener(yt(this,uP))}onUnsubscribe(){var e;this.hasListeners()||((e=yt(this,aE))==null||e.call(this),en(this,aE,void 0))}setEventListener(e){var t;en(this,uP,e),(t=yt(this,aE))==null||t.call(this),en(this,aE,e(this.setOnline.bind(this)))}setOnline(e){yt(this,cP)!==e&&(en(this,cP,e),this.listeners.forEach(n=>{n(e)}))}isOnline(){return yt(this,cP)}},cP=new WeakMap,aE=new WeakMap,uP=new WeakMap,zde),OF=new iIe;function oIe(r){return Math.min(1e3*2**r,3e4)}function ehe(r){return(r??"online")==="online"?OF.isOnline():!0}var J3=class extends Error{constructor(r){super("CancelledError"),this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}};function the(r){let e=!1,t=0,n;const i=Q3(),o=()=>i.status!=="pending",a=S=>{var R;if(!o()){const O=new J3(S);_(O),(R=r.onCancel)==null||R.call(r,O)}},l=()=>{e=!0},u=()=>{e=!1},h=()=>TW.isFocused()&&(r.networkMode==="always"||OF.isOnline())&&r.canRun(),p=()=>ehe(r.networkMode)&&r.canRun(),m=S=>{o()||(n==null||n(),i.resolve(S))},_=S=>{o()||(n==null||n(),i.reject(S))},C=()=>new Promise(S=>{var R;n=O=>{(o()||h())&&S(O)},(R=r.onPause)==null||R.call(r)}).then(()=>{var S;n=void 0,o()||(S=r.onContinue)==null||S.call(r)}),T=()=>{if(o())return;let S;const R=t===0?r.initialPromise:void 0;try{S=R??r.fn()}catch(O){S=Promise.reject(O)}Promise.resolve(S).then(m).catch(O=>{var L;if(o())return;const N=r.retry??(SN.isServer()?0:3),H=r.retryDelay??oIe,F=typeof H=="function"?H(t,O):H,j=N===!0||typeof N=="number"&&t<N||typeof N=="function"&&N(t,O);if(e||!j){_(O);return}t++,(L=r.onFail)==null||L.call(r,t,O),QSe(F).then(()=>h()?void 0:C()).then(()=>{e?_(O):T()})})};return{promise:i,status:()=>i.status,cancel:a,continue:()=>(n==null||n(),i),cancelRetry:l,continueRetry:u,canStart:p,start:()=>(p()?T():C().then(T),i)}}var mT,jde,rhe=(jde=class{constructor(){Un(this,mT)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),K3(this.gcTime)&&en(this,mT,Kx.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(r){this.gcTime=Math.max(this.gcTime||0,r??(SN.isServer()?1/0:300*1e3))}clearGcTimeout(){yt(this,mT)!==void 0&&(Kx.clearTimeout(yt(this,mT)),en(this,mT,void 0))}},mT=new WeakMap,jde);function aIe(r){return{onFetch:(e,t)=>{var p,m,_,C,T;const n=e.options,i=(_=(m=(p=e.fetchOptions)==null?void 0:p.meta)==null?void 0:m.fetchMore)==null?void 0:_.direction,o=((C=e.state.data)==null?void 0:C.pages)||[],a=((T=e.state.data)==null?void 0:T.pageParams)||[];let l={pages:[],pageParams:[]},u=0;const h=async()=>{let S=!1;const R=H=>{tIe(H,()=>e.signal,()=>S=!0)},O=Jde(e.options,e.fetchOptions),N=async(H,F,j)=>{if(S)return Promise.reject(e.signal.reason);if(F==null&&H.pages.length)return Promise.resolve(H);const B=(()=>{const J={client:e.client,queryKey:e.queryKey,pageParam:F,direction:j?"backward":"forward",meta:e.options.meta};return R(J),J})(),Q=await O(B),{maxPages:Z}=e.options,ie=j?eIe:JSe;return{pages:ie(H.pages,Q,Z),pageParams:ie(H.pageParams,F,Z)}};if(i&&o.length){const H=i==="backward",F=H?sIe:cee,j={pages:o,pageParams:a},L=F(n,j);l=await N(j,L,H)}else{const H=r??o.length;do{const F=u===0?a[0]??n.initialPageParam:cee(n,l);if(u>0&&F==null)break;l=await N(l,F),u++}while(u<H)}return l};e.options.persister?e.fetchFn=()=>{var S,R;return(R=(S=e.options).persister)==null?void 0:R.call(S,h,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t)}:e.fetchFn=h}}}function cee(r,{pages:e,pageParams:t}){const n=e.length-1;return e.length>0?r.getNextPageParam(e[n],e,t[n],t):void 0}function sIe(r,{pages:e,pageParams:t}){var n;return e.length>0?(n=r.getPreviousPageParam)==null?void 0:n.call(r,e[0],e,t[0],t):void 0}var dP,yT,hP,gm,vT,mu,FD,_T,Yp,nhe,_1,Vde,lIe=(Vde=class extends rhe{constructor(e){super();Un(this,Yp);Un(this,dP);Un(this,yT);Un(this,hP);Un(this,gm);Un(this,vT);Un(this,mu);Un(this,FD);Un(this,_T);en(this,_T,!1),en(this,FD,e.defaultOptions),this.setOptions(e.options),this.observers=[],en(this,vT,e.client),en(this,gm,yt(this,vT).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,en(this,yT,dee(this.options)),this.state=e.state??yt(this,yT),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return yt(this,dP)}get promise(){var e;return(e=yt(this,mu))==null?void 0:e.promise}setOptions(e){if(this.options={...yt(this,FD),...e},e!=null&&e._type&&en(this,dP,e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=dee(this.options);t.data!==void 0&&(this.setState(uee(t.data,t.dataUpdatedAt)),en(this,yT,t))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&yt(this,gm).remove(this)}setData(e,t){const n=X3(this.state.data,e,this.options);return Bi(this,Yp,_1).call(this,{data:n,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),n}setState(e){Bi(this,Yp,_1).call(this,{type:"setState",state:e})}cancel(e){var n,i;const t=(n=yt(this,mu))==null?void 0:n.promise;return(i=yt(this,mu))==null||i.cancel(e),t?t.then(Ph).catch(Ph):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return yt(this,yT)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Wp(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===IW||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
23Count>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>bE(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Xde(this.state.dataUpdatedAt,e)}onFocus(){var t;const e=this.observers.find(n=>n.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(t=yt(this,mu))==null||t.continue()}onOnline(){var t;const e=this.observers.find(n=>n.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(t=yt(this,mu))==null||t.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),yt(this,gm).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(yt(this,mu)&&(yt(this,_T)||Bi(this,Yp,nhe).call(this)?yt(this,mu).cancel({revert:!0}):yt(this,mu).cancelRetry()),this.scheduleGc()),yt(this,gm).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Bi(this,Yp,_1).call(this,{type:"invalidate"})}async fetch(e,t){var h,p,m,_,C,T,S,R,O,N,H;if(this.state.fetchStatus!=="idle"&&((h=yt(this,mu))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(t!=null&&t.cancelRefetch))this.cancel({silent:!0});else if(yt(this,mu))return yt(this,mu).continueRetry(),yt(this,mu).promise}if(e&&this.setOptions(e),!this.options.queryFn){const F=this.observers.find(j=>j.options.queryFn);F&&this.setOptions(F.options)}const n=new AbortController,i=F=>{Object.defineProperty(F,"signal",{enumerable:!0,get:()=>(en(this,_T,!0),n.signal)})},o=()=>{const F=Jde(this.options,t),L=(()=>{const B={client:yt(this,vT),queryKey:this.queryKey,meta:this.meta};return i(B),B})();return en(this,_T,!1),this.options.persister?this.options.persister(F,L,this):F(L)},l=(()=>{const F={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:yt(this,vT),state:this.state,fetchFn:o};return i(F),F})(),u=yt(this,dP)==="infinite"?aIe(this.options.pages):this.options.behavior;u==null||u.onFetch(l,this),en(this,hP,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=l.fetchOptions)==null?void 0:p.meta))&&Bi(this,Yp,_1).call(this,{type:"fetch",meta:(m=l.fetchOptions)==null?void 0:m.meta}),en(this,mu,the({initialPromise:t==null?void 0:t.initialPromise,fn:l.fetchFn,onCancel:F=>{F instanceof J3&&F.revert&&this.setState({...yt(this,hP),fetchStatus:"idle"}),n.abort()},onFail:(F,j)=>{Bi(this,Yp,_1).call(this,{type:"failed",failureCount:F,error:j})},onPause:()=>{Bi(this,Yp,_1).call(this,{type:"pause"})},onContinue:()=>{Bi(this,Yp,_1).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const F=await yt(this,mu).start();if(F===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(F),(C=(_=yt(this,gm).config).onSuccess)==null||C.call(_,F,this),(S=(T=yt(this,gm).config).onSettled)==null||S.call(T,F,this.state.error,this),F}catch(F){if(F instanceof J3){if(F.silent)return yt(this,mu).promise;if(F.revert){if(this.state.data===void 0)throw F;return this.state.data}}throw Bi(this,Yp,_1).call(this,{type:"error",error:F}),(O=(R=yt(this,gm).config).onError)==null||O.call(R,F,this),(H=(N=yt(this,gm).config).onSettled)==null||H.call(N,this.state.data,F,this),F}finally{this.scheduleGc()}}},dP=new WeakMap,yT=new WeakMap,hP=new WeakMap,gm=new WeakMap,vT=new WeakMap,mu=new WeakMap,FD=new WeakMap,_T=new WeakMap,Yp=new WeakSet,nhe=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},_1=function(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...ihe(n.data,this.options),fetchMeta:e.meta??null};case"success":const i={...n,...uee(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return en(this,hP,e.manual?i:void 0),i;case"error":const o=e.error;
vendor: 10,816 bytes, line 23
23return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Wc.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),yt(this,gm).notify({query:this,type:"updated",action:e})})},Vde);function ihe(r,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ehe(e.networkMode)?"fetching":"paused",...r===void 0&&{error:null,status:"pending"}}}function uee(r,e){return{data:r,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function dee(r){const e=typeof r.initialData=="function"?r.initialData():r.initialData,t=e!==void 0,n=t?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"pending",fetchStatus:"idle"}}var Mf,Po,UD,Ih,bT,fP,P1,sE,BD,pP,gP,wT,ET,lE,mP,pa,nM,eV,tV,rV,nV,iV,oV,aV,ohe,qde,cIe=(qde=class extends lk{constructor(e,t){super();Un(this,pa);Un(this,Mf);Un(this,Po);Un(this,UD);Un(this,Ih);Un(this,bT);Un(this,fP);Un(this,P1);Un(this,sE);Un(this,BD);Un(this,pP);Un(this,gP);Un(this,wT);Un(this,ET);Un(this,lE);Un(this,mP,new Set);this.options=t,en(this,Mf,e),en(this,sE,null),en(this,P1,Q3()),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(yt(this,Po).addObserver(this),hee(yt(this,Po),this.options)?Bi(this,pa,nM).call(this):this.updateResult(),Bi(this,pa,nV).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return sV(yt(this,Po),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return sV(yt(this,Po),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Bi(this,pa,iV).call(this),Bi(this,pa,oV).call(this),yt(this,Po).removeObserver(this)}setOptions(e){const t=this.options,n=yt(this,Po);if(this.options=yt(this,Mf).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Wp(this.options.enabled,yt(this,Po))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Bi(this,pa,aV).call(this),yt(this,Po).setOptions(this.options),t._defaulted&&!kF(this.options,t)&&yt(this,Mf).getQueryCache().notify({type:"observerOptionsUpdated",query:yt(this,Po),observer:this});const i=this.hasListeners();i&&fee(yt(this,Po),n,this.options,t)&&Bi(this,pa,nM).call(this),this.updateResult(),i&&(yt(this,Po)!==n||Wp(this.options.enabled,yt(this,Po))!==Wp(t.enabled,yt(this,Po))||bE(this.options.staleTime,yt(this,Po))!==bE(t.staleTime,yt(this,Po)))&&Bi(this,pa,eV).call(this);const o=Bi(this,pa,tV).call(this);i&&(yt(this,Po)!==n||Wp(this.options.enabled,yt(this,Po))!==Wp(t.enabled,yt(this,Po))||o!==yt(this,lE))&&Bi(this,pa,rV).call(this,o)}getOptimisticResult(e){const t=yt(this,Mf).getQueryCache().build(yt(this,Mf),e),n=this.createResult(t,e);return dIe(this,n)&&(en(this,Ih,n),en(this,fP,this.options),en(this,bT,yt(this,Po).state)),n}getCurrentResult(){return yt(this,Ih)}trackResult(e,t){return new Proxy(e,{get:(n,i)=>(this.trackProp(i),t==null||t(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&yt(this,P1).status==="pending"&&yt(this,P1).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,i))})}trackProp(e){yt(this,mP).add(e)}getCurrentQuery(){return yt(this,Po)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=yt(this,Mf).defaultQueryOptions(e),n=yt(this,Mf).getQueryCache().build(yt(this,Mf),t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return Bi(this,pa,nM).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),yt(this,Ih)))}createResult(e,t){var Z;const n=yt(this,Po),i=this.options,o=yt(this,Ih),a=yt(this,bT),l=yt(this,fP),h=e!==n?e.state:yt(this,UD),{state:p}=e;let m={...p},_=!1,C;if(t._optimisticResults){const ie=this.hasListeners(),J=!ie&&hee(e,t),ne=ie&&fee(e,n,t,i);(J||ne)&&(m={...m,...ihe(p.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:T,errorUpdatedAt:S,status:R}=m;C=m.data;let O=!1;if(t.placeholderData!==void 0&&C===void 0&&R==="pending"){let ie;o!=null&&o.isPlaceholderData&&t.placeholderData===(l==null?void 0:l.placeholderData)?(ie=o.data,O=!0):ie=typeof t.placeholderData=="function"?t.placeholderData((Z=yt(this,gP))==null?void 0:Z.state.data,yt(this,gP)):t.placeholderData,ie!==void 0&&(R="success",C=X3(o==null?void 0:o.data,ie,t),_=!0)}if(t.select&&C!==void 0&&!O)if(o&&C===(a==null?void 0:a.data)&&t.select===yt(this,BD))C=yt(this,pP);else try{en(this,BD,t.select),C=t.select(C),C=X3(o==null?void 0:o.data,C,t),en(this,pP,C),en(this,sE,null)}catch(ie){en(this,sE,ie)}yt(this,sE)&&(T=yt(this,sE),C=yt(this,pP),S=Date.now(),R="error");const N=m.fetchStatus==="fetching",H=R==="pending",F=R==="error",j=H&&N,L=C!==void 0,Q={status:R,fetchStatus:m.fetchStatus,isPending:H,isSuccess:R==="success",isError:F,isInitialLoading:j,isLoading:j,data:C,dataUpdatedAt:m.dataUpdatedAt,error:T,errorUpdatedAt:S,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:m.dataUpdateCount>h.dataUpdateCount||m.errorUpdateCount>h.errorUpdateCount,isFetching:N,isRefetching:N&&!H,isLoadingError:F&&!L,isPaused:m.fetchStatus==="paused",isPlaceholderData:_,isRefetchError:F&&L,isStale:RW(e,t),refetch:this.refetch,promise:yt(this,P1),isEnabled:Wp(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const ie=Q.data!==void 0,J=Q.status==="error"&&!ie,ne=se=>{J?se.reject(Q.error):ie&&se.resolve(Q.data)},ue=()=>{const se=en(this,P1,Q.promise=Q3());ne(se)},K=yt(this,P1);switch(K.status){case"pending":e.queryHash===n.queryHash&&ne(K);break;case"fulfilled":(J||Q.data!==K.value)&&ue();break;case"rejected":(!J||Q.error!==K.reason)&&ue();break}}return Q}updateResult(){const e=yt(this,Ih),t=this.createResult(yt(this,Po),this.options);if(en(this,bT,yt(this,Po).state),en(this,fP,this.options),yt(this,bT).data!==void 0&&en(this,gP,yt(this,Po)),kF(t,e))return;en(this,Ih,t);const n=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,o=typeof i=="function"?i():i;if(o==="all"||!o&&!yt(this,mP).size)return!0;const a=new Set(o??yt(this,mP));return this.options.throwOnError&&a.add("error"),Object.keys(yt(this,Ih)).some(l=>{const u=l;return yt(this,Ih)[u]!==e[u]&&a.has(u)})};Bi(this,pa,ohe).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Bi(this,pa,nV).call(this)}},Mf=new WeakMap,Po=new WeakMap,UD=new WeakMap,Ih=new WeakMap,bT=new WeakMap,fP=new WeakMap,P1=new WeakMap,sE=new WeakMap,BD=new WeakMap,pP=new WeakMap,gP=new WeakMap,wT=new WeakMap,ET=new WeakMap,lE=new WeakMap,mP=new WeakMap,pa=new WeakSet,nM=function(e){Bi(this,pa,aV).call(this);let t=yt(this,Po).fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(Ph)),t},eV=function(){Bi(this,pa,iV).call(this);const e=bE(this.options.staleTime,yt(this,Po));if(SN.isServer()||yt(this,Ih).isStale||!K3(e))return;const n=Xde(yt(this,Ih).dataUpdatedAt,e)+1;en(this,wT,Kx.setTimeout(()=>{yt(this,Ih).isStale||this.updateResult()},n))},tV=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(yt(this,Po)):this.options.refetchInterval)??!1},rV=function(e){Bi(this,pa,oV).call(this),en(this,lE,e),!(SN.isServer()||Wp(this.options.enabled,yt(this,Po))===!1||!K3(yt(this,lE))||yt(this,lE)===0)&&en(this,ET,Kx.setInterval(()=>{(this.options.refetchIntervalInBackground||TW.isFocused())&&Bi(this,pa,nM).call(this)},yt(this,lE)))},nV=function(){Bi(this,pa,eV).call(this),Bi(this,pa,rV).call(this,Bi(this,pa,tV).call(this))},iV=function(){yt(this,wT)!==void 0&&(Kx.clearTimeout(yt(this,wT)),en(this,wT,void 0))},oV=function(){yt(this,ET)!==void 0&&(Kx.clearInterval(yt(this,ET)),en(this,ET,void 0))},aV=function(){const e=yt(this,Mf).getQueryCache().build(yt(this,Mf),this.options);if(e===yt(this,Po))return;const t=yt(this,Po);en(this,Po,e),en(this,UD,e.state),this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))},ohe=function(e){Wc.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(yt(this,Ih))}),yt(this,Mf).getQueryCache().notify({query:yt(this,Po),type:"observerResultsUpdated"})})},qde);function uIe(r,e){return Wp(e.enabled,r)!==!1&&r.state.data===void 0&&!(r.state.status==="error"&&Wp(e.retryOnMount,r)===!1)}function hee(r,e){return uIe(r,e)||r.state.data!==void 0&&sV(r,e,e.refetchOnMount)}function sV(r,e,t){if(Wp(e.enabled,r)!==!1&&bE(e.staleTime,r)!=="static"){const n=typeof t=="function"?t(r):t;return n==="always"||n!==!1&&RW(r,e)}return!1}function fee(r,e,t,n){return(r!==e||Wp(n.enabled,r)===!1)&&(!t.suspense||r.state.status!=="error")&&RW(r,t)}function RW(r,e){return Wp(e.enabled,r)!==!1&&r.isStaleByTime(bE(e.staleTime,r))}function dIe(r,e){return!kF(r.getCurrentResult(),e)}var $D,N0,kd,CT,D0,kw,Gde,hIe=(Gde=class extends rhe{constructor(e){super();Un(this,D0);Un(this,$D);Un(this,N0);Un(this,kd);Un(this,CT);en(this,$D,e.client),this.mutationId=e.mutationId,en(this,kd,e.mutationCache),en(this,N0,[]),this.state=e.state||ahe(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){yt(this,N0).includes(e)||(yt(this,N0).push(e),this.clearGcTimeout(),yt(this,kd).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){en(this,N0,yt(this,N0).filter(t=>t!==e)),this.scheduleGc(),yt(this,kd).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){yt(this,N0).length||(this.state.status==="pending"?this.scheduleGc():yt(this,kd).remove(this))}continue(){var e;return((e=yt(this,CT))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var a,l,u,h,p,m,_,C,T,S,R,O,N,H,F,j,L,B;const t=()=>{Bi(this,D0,kw).call(this,{type:"continue"})},n={client:yt(this,$D),meta:this.options.meta,mutationKey:this.options.mutationKey};en(this,CT,the({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(Q,Z)=>{Bi(this,D0,kw).call(this,{type:"failed",failureCount:Q,error:Z})},onPause:()=>{Bi(this,D0,kw).call(this,{type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>
23yt(this,kd).canRun(this)}));const i=this.state.status==="pending",o=!yt(this,CT).canStart();try{if(i)t();else{Bi(this,D0,kw).call(this,{type:"pending",variables:e,isPaused:o}),yt(this,kd).config.onMutate&&await yt(this,kd).config.onMutate(e,this,n);const Z=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,e,n));Z!==this.state.context&&Bi(this,D0,kw).call(this,{type:"pending",context:Z,variables:e,isPaused:o})}const Q=await yt(this,CT).start();return await((h=(u=yt(this,kd).config).onSuccess)==null?void 0:h.call(u,Q,e,this.state.context,this,n)),await((m=(p=this.options).onSuccess)==null?void 0:m.call(p,Q,e,this.state.context,n)),await((C=(_=yt(this,kd).config).onSettled)==null?void 0:C.call(_,Q,null,this.state.variables,this.state.context,this,n)),await((S=(T=this.options).onSettled)==null?void 0:S.call(T,Q,null,e,this.state.context,n)),Bi(this,D0,kw).call(this,{type:"success",data:Q}),Q}catch(Q){try{await((O=(R=yt(this,kd).config).onError)==null?void 0:O.call(R,Q,e,this.state.context,this,n))}catch(Z){Promise.reject(Z)}try{await((H=(N=this.options).onError)==null?void 0:H.call(N,Q,e,this.state.context,n))}catch(Z){Promise.reject(Z)}try{await((j=(F=yt(this,kd).config).onSettled)==null?void 0:j.call(F,void 0,Q,this.state.variables,this.state.context,this,n))}catch(Z){Promise.reject(Z)}try{await((B=(L=this.options).onSettled)==null?void 0:B.call(L,void 0,Q,e,this.state.context,n))}catch(Z){Promise.reject(Z)}throw Bi(this,D0,kw).call(this,{type:"error",error:Q}),Q}finally{yt(this,kd).runNext(this)}}},$D=new WeakMap,N0=new WeakMap,kd=new WeakMap,CT=new WeakMap,D0=new WeakSet,kw=function(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Wc.batch(()=>{yt(this,N0).forEach(n=>{n.onMutationUpdate(e)}),yt(this,kd).notify({mutation:this,type:"updated",action:e})})},Gde);function ahe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var k1,Yy,zD,Yde,fIe=(Yde=class extends lk{constructor(e={}){super();Un(this,k1);Un(this,Yy);Un(this,zD);this.config=e,en(this,k1,new Set),en(this,Yy,new Map),en(this,zD,0)}build(e,t,n){const i=new hIe({client:e,mutationCache:this,mutationId:++o4(this,zD)._,options:e.defaultMutationOptions(t),state:n});return this.add(i),i}add(e){yt(this,k1).add(e);const t=s4(e);
23if(typeof t=="string"){const n=yt(this,Yy).get(t);n?n.push(e):yt(this,Yy).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(yt(this,k1).delete(e)){const t=s4(e);if(typeof t=="string"){const n=yt(this,Yy).get(t);if(n)if(n.length>1){const i=n.indexOf(e);i!==-1&&n.splice(i,1)}else n[0]===e&&yt(this,Yy).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=s4(e);if(typeof t=="string"){const n=yt(this,Yy).get(t),i=n==null?void 0:n.find(o=>o.state.status==="pending");return!i||i===e}else return!0}runNext(e){var n;const t=s4(e);if(typeof t=="string"){const i=(n=yt(this,Yy).get(t))==null?void 0:n.find(o=>o!==e&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Wc.batch(()=>{yt(this,k1).forEach(e=>{this.notify({type:"removed",mutation:e})}),yt(this,k1).clear(),yt(this,Yy).clear()})}getAll(){return Array.from(yt(this,k1))}find(e){const t={exact:!0,...e};return this.getAll().find(n=>aee(t,n))}findAll(e={}){return this.getAll().filter(t=>aee(e,t))}notify(e){Wc.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>
vendor: 8,993 bytes, line 23
23t.state.isPaused);return Wc.batch(()=>Promise.all(e.map(t=>t.continue().catch(Ph))))}},k1=new WeakMap,Yy=new WeakMap,zD=new WeakMap,Yde);function s4(r){var e;return(e=r.options.scope)==null?void 0:e.id}var O1,cE,Nf,M1,ab,fH,lV,Wde,pIe=(Wde=class extends lk{constructor(t,n){super();Un(this,ab);Un(this,O1);Un(this,cE);Un(this,Nf);Un(this,M1);en(this,O1,t),this.setOptions(n),this.bindMethods(),Bi(this,ab,fH).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const n=this.options;this.options=yt(this,O1).defaultMutationOptions(t),kF(this.options,n)||yt(this,O1).getMutationCache().notify({type:"observerOptionsUpdated",mutation:yt(this,Nf),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&ZT(n.mutationKey)!==ZT(this.options.mutationKey)?this.reset():((i=yt(this,Nf))==null?void 0:i.state.status)==="pending"&&yt(this,Nf).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=yt(this,Nf))==null||t.removeObserver(this)}onMutationUpdate(t){Bi(this,ab,fH).call(this),Bi(this,ab,lV).call(this,t)}getCurrentResult(){return yt(this,cE)}reset(){var t;(t=yt(this,Nf))==null||t.removeObserver(this),en(this,Nf,void 0),Bi(this,ab,fH).call(this),Bi(this,ab,lV).call(this)}mutate(t,n){var i;return en(this,M1,n),(i=yt(this,Nf))==null||i.removeObserver(this),en(this,Nf,yt(this,O1).getMutationCache().build(yt(this,O1),this.options)),yt(this,Nf).addObserver(this),yt(this,Nf).execute(t)}},O1=new WeakMap,cE=new WeakMap,Nf=new WeakMap,M1=new WeakMap,ab=new WeakSet,fH=function(){var n;const t=((n=yt(this,Nf))==null?void 0:n.state)??ahe();en(this,cE,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},lV=function(t){Wc.batch(()=>{var n,i,o,a,l,u,h,p;if(yt(this,M1)&&this.hasListeners()){const m=yt(this,cE).variables,_=yt(this,cE).context,C={client:yt(this,O1),meta:this.options.meta,mutationKey:this.options.mutationKey};if((t==null?void 0:t.type)==="success"){try{(i=(n=yt(this,M1)).onSuccess)==null||i.call(n,t.data,m,_,C)}catch(T){Promise.reject(T)}try{(a=(o=yt(this,M1)).onSettled)==null||a.call(o,t.data,null,m,_,C)}catch(T){Promise.reject(T)}}else if((t==null?void 0:t.type)==="error"){try{(u=(l=yt(this,M1)).onError)==null||u.call(l,t.error,m,_,C)}catch(T){Promise.reject(T)}try{(p=(h=yt(this,M1)).onSettled)==null||p.call(h,void 0,t.error,m,_,C)}catch(T){Promise.reject(T)}}}this.listeners.forEach(m=>{m(yt(this,cE))})})},Wde),L0,Kde,gIe=(Kde=class extends lk{constructor(e={}){super();Un(this,L0);this.config=e,en(this,L0,new Map)}build(e,t,n){const i=t.queryKey,o=t.queryHash??SW(i,t);let a=this.get(o);return a||(a=new lIe({client:e,queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){yt(this,L0).has(e.queryHash)||(yt(this,L0).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=yt(this,L0).get(e.queryHash);t&&(e.destroy(),t===e&&yt(this,L0).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Wc.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return yt(this,L0).get(e)}getAll(){return[...yt(this,L0).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>oee(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>oee(e,n)):t}notify(e){Wc.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Wc.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Wc.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},L0=new WeakMap,Kde),bl,uE,dE,yP,vP,hE,_P,bP,Zde,mIe=(Zde=class{constructor(r={}){Un(this,bl);Un(this,uE);Un(this,dE);Un(this,yP);Un(this,vP);Un(this,hE);Un(this,_P);Un(this,bP);en(this,bl,r.queryCache||new gIe),en(this,uE,r.mutationCache||new fIe),en(this,dE,r.defaultOptions||{}),en(this,yP,new Map),en(this,vP,new Map),en(this,hE,0)}mount(){o4(this,hE)._++,yt(this,hE)===1&&(en(this,_P,TW.subscribe(async r=>{r&&(await this.resumePausedMutations(),yt(this,bl).onFocus())})),en(this,bP,OF.subscribe(async r=>{r&&(await this.resumePausedMutations(),yt(this,bl).onOnline())})))}unmount(){var r,e;o4(this,hE)._--,yt(this,hE)===0&&((r=yt(this,_P))==null||r.call(this),en(this,_P,void 0),(e=yt(this,bP))==null||e.call(this),en(this,bP,void 0))}isFetching(r){return yt(this,bl).findAll({...r,fetchStatus:"fetching"}).length}isMutating(r){return yt(this,uE).findAll({...r,status:"pending"}).length}getQueryData(r){var t;const e=this.defaultQueryOptions({queryKey:r});return(t=yt(this,bl).get(e.queryHash))==null?void 0:t.state.data}ensureQueryData(r){const e=this.defaultQueryOptions(r),t=yt(this,bl).build(this,e),n=t.state.data;return n===void 0?this.fetchQuery(r):(r.revalidateIfStale&&t.isStaleByTime(bE(e.staleTime,t))&&this.prefetchQuery(e),Promise.resolve(n))}getQueriesData(r){return yt(this,bl).findAll(r).map(({queryKey:e,state:t})=>{const n=t.data;return[e,n]})}setQueryData(r,e,t){const n=this.defaultQueryOptions({queryKey:r}),i=yt(this,bl).get(n.queryHash),o=i==null?void 0:i.state.data,a=ZSe(e,o);if(a!==void 0)return yt(this,bl).build(this,n).setData(a,{...t,manual:!0})}setQueriesData(r,e,t){return Wc.batch(()=>yt(this,bl).findAll(r).map(({queryKey:n})=>[n,this.setQueryData(n,e,t)]))}getQueryState(r){var t;const e=this.defaultQueryOptions({queryKey:r});return(t=yt(this,bl).get(e.queryHash))==null?void 0:t.state}removeQueries(r){const e=yt(this,bl);Wc.batch(()=>{e.findAll(r).forEach(t=>{e.remove(t)})})}resetQueries(r,e){const t=yt(this,bl);return Wc.batch(()=>(t.findAll(r).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...r},e)))}cancelQueries(r,e={}){const t={revert:!0,...e},n=Wc.batch(()=>yt(this,bl).findAll(r).map(i=>i.cancel(t)));return Promise.all(n).then(Ph).catch(Ph)}invalidateQueries(r,e={}){return Wc.batch(()=>(yt(this,bl).findAll(r).forEach(t=>{t.invalidate()}),(r==null?void 0:r.refetchType)==="none"?Promise.resolve():this.refetchQueries({...r,type:(r==null?void 0:r.refetchType)??(r==null?void 0:r.type)??"active"},e)))}refetchQueries(r,e={}){const t={...e,cancelRefetch:e.cancelRefetch??!0},n=Wc.batch(()=>yt(this,bl).findAll(r).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,t);return t.throwOnError||(o=o.catch(Ph)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Ph)}fetchQuery(r){const e=this.defaultQueryOptions(r);e.retry===void 0&&(e.retry=!1);const t=yt(this,bl).build(this,e);return t.isStaleByTime(bE(e.staleTime,t))?t.fetch(e):Promise.resolve(t.state.data)}prefetchQuery(r){return this.fetchQuery(r).then(Ph).catch(Ph)}fetchInfiniteQuery(r){return r._type="infinite",this.fetchQuery(r)}prefetchInfiniteQuery(r){return this.fetchInfiniteQuery(r).then(Ph).catch(Ph)}ensureInfiniteQueryData(r){return r._type="infinite",this.ensureQueryData(r)}resumePausedMutations(){return OF.isOnline()?yt(this,uE).resumePausedMutations():Promise.resolve()}getQueryCache(){return yt(this,bl)}getMutationCache(){return yt(this,uE)}getDefaultOptions(){return yt(this,dE)}setDefaultOptions(r){en(this,dE,r)}setQueryDefaults(r,e){yt(this,yP).set(ZT(r),{queryKey:r,defaultOptions:e})}getQueryDefaults(r){const e=[...yt(this,yP).values()],t={};return e.forEach(n=>{TN(r,n.queryKey)&&Object.assign(t,n.defaultOptions)}),t}setMutationDefaults(r,e){yt(this,vP).set(ZT(r),{mutationKey:r,defaultOptions:e})}getMutationDefaults(r){const e=[...yt(this,vP).values()],t={};return e.forEach(n=>{TN(r,n.mutationKey)&&Object.assign(t,n.defaultOptions)}),t}defaultQueryOptions(r){if(r._defaulted)return r;const e={...yt(this,dE).queries,...this.getQueryDefaults(r.queryKey),...r,_defaulted:!0};return e.queryHash||(e.queryHash=SW(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===IW&&(e.enabled=!1),e}defaultMutationOptions(r){return r!=null&&r._defaulted?r:{...yt(this,dE).mutations,...(r==null?void 0:r.mutationKey)&&this.getMutationDefaults(r.mutationKey),...r,_defaulted:!0}}clear(){yt(this,bl).clear(),yt(this,uE).clear()}},bl=new WeakMap,uE=new WeakMap,dE=new WeakMap,yP=new WeakMap,vP=new WeakMap,hE=new WeakMap,_P=new WeakMap,bP=new WeakMap,Zde),she=V.createContext(void 0),Wy=r=>{const e=V.useContext(she);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},yIe=({client:r,children:e})=>(V.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),$.jsx(she.Provider,{value:r,children:e})),lhe=V.createContext(!1),vIe=()=>V.useContext(lhe);lhe.Provider;function _Ie(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}var bIe=V.createContext(_Ie()),wIe=()=>V.useContext(bIe),EIe=(r,e,t)=>{const n=t!=null&&t.state.error&&typeof r.throwOnError=="function"?AW(r.throwOnError,[t.state.error,t]):r.throwOnError;(r.suspense||r.experimental_prefetchInRender||n)&&(e.isReset()||(r.retryOn
23Mount=!1))},CIe=r=>{V.useEffect(()=>{r.clearReset()},[r])},xIe=({result:r,errorResetBoundary:e,throwOnError:t,query:n,suspense:i})=>r.isError&&!e.isReset()&&!r.isFetching&&n&&(i&&r.data===void 0||AW(t,[r.error,n])),TIe=r=>{if(r.suspense){const t=i=>i==="static"?i:Math.max(i??1e3,1e3),n=r.staleTime;r.staleTime=typeof n=="function"?(...i)=>t(n(...i)):t(n),typeof r.gcTime=="number"&&(r.gcTime=Math.max(r.gcTime,1e3))}},SIe=(r,e)=>r.isLoading&&r.isFetching&&!e,IIe=(r,e)=>(r==null?void 0:r.suspense)&&e.isPending,pee=(r,e,t)=>e.fetchOptimistic(r).catch(()=>{t.clearReset()});function AIe(r,e,t){var C,T,S,R;const n=vIe(),i=wIe(),o=Wy(),a=o.defaultQueryOptions(r);(T=(C=o.getDefaultOptions().queries)==null?void 0:C._experimental_beforeQuery)==null||T.call(C,a);const l=o.getQueryCache().get(a.queryHash),u=r.subscribed!==!1;a._optimisticResults=n?"isRestoring":u?"optimistic":void 0,TIe(a),EIe(a,i,l),CIe(i);const h=!o.getQueryCache().get(a.queryHash),[p]=V.useState(()=>new e(o,a)),m=p.getOptimisticResult(a),_=!n&&u;if(V.useSyncExternalStore(V.useCallback(O=>{const N=_?p.subscribe(Wc.batchCalls(O)):Ph;return p.updateResult(),N},[p,_]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),V.useEffect(()=>{p.setOptions(a)},[a,p]),IIe(a,m))throw pee(a,p,i);if(xIe({result:m,errorResetBoundary:i,throwOnError:a.throwOnError,query:l,suspense:a.suspense}))throw m.error;if((R=(S=o.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||R.call(S,a,m),a.experimental_prefetchInRender&&!SN.isServer()&&SIe(m,n)){const O=h?pee(a,p,i):l==null?void 0:l.promise;O==null||O.catch(Ph).finally(()=>{p.updateResult()})}return a.notifyOnChangeProps?m:p.trackResult(m)}function Ld(r,e){return AIe(r,cIe)}function Ky(r,e){const t=Wy(),[n]=V.useState(()=>new pIe(t,r));V.useEffect(()=>{n.setOptions(r)},[n,r]);const i=V.useSyncExternalStore(V.useCallback(a=>n.subscribe(Wc.batchCalls(a)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=V.useCallback((a,l)=>{n.mutate(a,l).catch(Ph)},[n]);if(i.error&&AW(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}var l4={},d$={exports:{}},Rf={},h$={exports:{}},f$={};/**
24 * @license React
25 * scheduler.production.min.js
26 *
27 * Copyright (c) Facebook, Inc. and its affiliates.
28 *
29 * This source code is licensed under the MIT license found in the
30 * LICENSE file in the root directory of this source tree.
31 */var gee;function RIe(){return gee||(gee=1,(function(r){function e(ge,Ue){var Qe=ge.length;ge.push(Ue);e:for(;0<Qe;){var ve=Qe-1>>>1,pe=ge[ve];if(0<i(pe,Ue))ge[ve]=Ue,ge[Qe]=pe,Qe=ve;else break e}}function t(ge){return ge.length===0?null:ge[0]}function n(ge){if(ge.length===0)return null;var Ue=ge[0],Qe=ge.pop();if(Qe!==Ue){ge[0]=Qe;e:for(var ve=0,pe=ge.length,He=pe>>>1;ve<He;){var Re=2*(ve+1)-1,$e=ge[Re],tt=Re+1,ot=ge[tt];if(0>i($e,Qe))tt<pe&&0>i(ot,$e)?(ge[ve]=ot,ge[tt]=Qe,ve=tt):(ge[ve]=$e,ge[Re]=Qe,ve=Re);else if(tt<pe&&0>i(ot,Qe))ge[ve]=ot,ge[tt]=Qe,ve=tt;else break e}}return Ue}function i(ge,Ue){var Qe=ge.sortIndex-Ue.sortIndex;return Qe!==0?Qe:ge.id-Ue.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;r.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();r.unstable_now=function(){return a.now()-l}}var u=[],h=[],p=1,m=null,_=3,C=!1,T=!1,S=!1,R=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function H(ge){for(var Ue=t(h);Ue!==null;){if(Ue.callback===null)n(h);else if(Ue.startTime<=ge)n(h),Ue.sortIndex=Ue.expirationTime,e(u,Ue);else break;Ue=t(h)}}function F(ge){if(S=!1,H(ge),!T)if(t(u)!==null)T=!0,be(j);else{var Ue=t(h);Ue!==null&&de(F,Ue.startTime-ge)}}function j(ge,Ue){T=!1,S&&(S=!1,O(Q),Q=-1),C=!0;var Qe=_;try{for(H(Ue),m=t(u);m!==null&&(!(m.expirationTime>Ue)||ge&&!J());){var ve=m.callback;if(typeof ve=="function"){m.callback=null,_=m.priorityLevel;var pe=ve(m.expirationTime<=Ue);
vendor: 49,927 bytes, lines 31-44
31Ue=r.unstable_now(),typeof pe=="function"?m.callback=pe:m===t(u)&&n(u),H(Ue)}else n(u);m=t(u)}if(m!==null)var He=!0;else{var Re=t(h);Re!==null&&de(F,Re.startTime-Ue),He=!1}return He}finally{m=null,_=Qe,C=!1}}var L=!1,B=null,Q=-1,Z=5,ie=-1;function J(){return!(r.unstable_now()-ie<Z)}function ne(){if(B!==null){var ge=r.unstable_now();ie=ge;var Ue=!0;try{Ue=B(!0,ge)}finally{Ue?ue():(L=!1,B=null)}}else L=!1}var ue;if(typeof N=="function")ue=function(){N(ne)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,se=K.port2;K.port1.onmessage=ne,ue=function(){se.postMessage(null)}}else ue=function(){R(ne,0)};function be(ge){B=ge,L||(L=!0,ue())}function de(ge,Ue){Q=R(function(){ge(r.unstable_now())},Ue)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(ge){ge.callback=null},r.unstable_continueExecution=function(){T||C||(T=!0,be(j))},r.unstable_forceFrameRate=function(ge){0>ge||125<ge?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<ge?Math.floor(1e3/ge):5},r.unstable_getCurrentPriorityLevel=function(){return _},r.unstable_getFirstCallbackNode=function(){return t(u)},r.unstable_next=function(ge){switch(_){case 1:case 2:case 3:var Ue=3;break;default:Ue=_}var Qe=_;_=Ue;try{return ge()}finally{_=Qe}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(ge,Ue){switch(ge){case 1:case 2:case 3:case 4:case 5:break;default:ge=3}var Qe=_;_=ge;try{return Ue()}finally{_=Qe}},r.unstable_scheduleCallback=function(ge,Ue,Qe){var ve=r.unstable_now();switch(typeof Qe=="object"&&Qe!==null?(Qe=Qe.delay,Qe=typeof Qe=="number"&&0<Qe?ve+Qe:ve):Qe=ve,ge){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=Qe+pe,ge={id:p++,callback:Ue,priorityLevel:ge,startTime:Qe,expirationTime:pe,sortIndex:-1},Qe>ve?(ge.sortIndex=Qe,e(h,ge),t(u)===null&&ge===t(h)&&(S?(O(Q),Q=-1):S=!0,de(F,Qe-ve))):(ge.sortIndex=pe,e(u,ge),T||C||(T=!0,be(j))),ge},r.unstable_shouldYield=J,r.unstable_wrapCallback=function(ge){var Ue=_;return function(){var Qe=_;_=Ue;try{return ge.apply(this,arguments)}finally{_=Qe}}}})(f$)),f$}var mee;function PIe(){return mee||(mee=1,h$.exports=RIe()),h$.exports}/**
32 * @license React
33 * react-dom.production.min.js
34 *
35 * Copyright (c) Facebook, Inc. and its affiliates.
36 *
37 * This source code is licensed under the MIT license found in the
38 * LICENSE file in the root directory of this source tree.
39 */var yee;function kIe(){if(yee)return Rf;yee=1;var r=b_(),e=PIe();function t(s){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+s,f=1;f<arguments.length;f++)c+="&args[]="+encodeURIComponent(arguments[f]);return"Minified React error #"+s+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,i={};function o(s,c){a(s,c),a(s+"Capture",c)}function a(s,c){for(i[s]=c,s=0;s<c.length;s++)n.add(c[s])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},m={};function _(s){return u.call(m,s)?!0:u.call(p,s)?!1:h.test(s)?m[s]=!0:(p[s]=!0,!1)}function C(s,c,f,y){if(f!==null&&f.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return y?!1:f!==null?!f.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function T(s,c,f,y){if(c===null||typeof c>"u"||C(s,c,f,y))return!0;if(y)return!1;if(f!==null)switch(f.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function S(s,c,f,y,w,x,k){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=y,this.attributeNamespace=w,this.mustUseProperty=f,this.propertyName=s,this.type=c,this.sanitizeURL=x,this.removeEmptyString=k}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){R[s]=new S(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0];R[c]=new S(c,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){R[s]=new S(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){R[s]=new S(s,2,!1,s,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(s){R[s]=new S(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){R[s]=new S(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){R[s]=new S(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){R[s]=new S(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){R[s]=new S(s,5,!1,s.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function N(s){return s[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(s){var c=s.replace(O,N);R[c]=new S(c,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var c=s.replace(O,N);R[c]=new S(c,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var c=s.replace(O,N);R[c]=new S(c,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){R[s]=new S(s,1,!1,s.toLowerCase(),null,!1,!1)}),R.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){R[s]=new S(s,1,!1,s.toLowerCase(),null,!0,!0)});function H(s,c,f,y){var w=R.hasOwnProperty(c)?R[c]:null;(w!==null?w.type!==0:y||!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(T(c,f,w,y)&&(f=null),y||w===null?_(c)&&(f===null?s.removeAttribute(c):s.setAttribute(c,""+f)):w.mustUseProperty?s[w.propertyName]=f===null?w.type===3?!1:"":f:(c=w.attributeName,y=w.attributeNamespace,f===null?s.removeAttribute(c):(w=w.type,f=w===3||w===4&&f===!0?"":""+f,y?s.setAttributeNS(y,c,f):s.setAttribute(c,f))))}var F=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,j=Symbol.for("react.element"),L=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),ie=Symbol.for("react.provider"),J=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),se=Symbol.for("react.memo"),be=Symbol.for("react.lazy"),de=Symbol.for("react.offscreen"),ge=Symbol.iterator;function Ue(s){return s===null||typeof s!="object"?null:(s=ge&&s[ge]||s["@@iterator"],typeof s=="function"?s:null)}var Qe=Object.assign,ve;function pe(s){if(ve===void 0)try{throw Error()}catch(f){var c=f.stack.trim().match(/\n( *(at )?)/);ve=c&&c[1]||""}return`
40`+ve+s}var He=!1;function Re(s,c){if(!s||He)return"";He=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(c)if(c=function(){throw Error()},Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(Y){var y=Y}Reflect.construct(s,[],c)}else{try{c.call()}catch(Y){y=Y}s.call(c.prototype)}else{try{throw Error()}catch(Y){y=Y}s()}}catch(Y){if(Y&&y&&typeof Y.stack=="string"){for(var w=Y.stack.split(`
41`),x=y.stack.split(`
42`),k=w.length-1,D=x.length-1;1<=k&&0<=D&&w[k]!==x[D];)D--;for(;1<=k&&0<=D;k--,D--)if(w[k]!==x[D]){if(k!==1||D!==1)do if(k--,D--,0>D||w[k]!==x[D]){var q=`
43`+w[k].replace(" at new "," at ");return s.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",s.displayName)),q}while(1<=k&&0<=D);break}}}finally{He=!1,Error.prepareStackTrace=f}return(s=s?s.displayName||s.name:"")?pe(s):""}function $e(s){switch(s.tag){case 5:return pe(s.type);case 16:return pe("Lazy");case 13:return pe("Suspense");case 19:return pe("SuspenseList");case 0:case 2:case 15:return s=Re(s.type,!1),s;case 11:return s=Re(s.type.render,!1),s;case 1:return s=Re(s.type,!0),s;default:return""}}function tt(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case B:return"Fragment";case L:return"Portal";case Z:return"Profiler";case Q:return"StrictMode";case ue:return"Suspense";case K:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case J:return(s.displayName||"Context")+".Consumer";case ie:return(s._context.displayName||"Context")+".Provider";case ne:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case se:return c=s.displayName||null,c!==null?c:tt(s.type)||"Memo";case be:c=s._payload,s=s._init;try{return tt(s(c))}catch{}}return null}function ot(s){var c=s.type;switch(s.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=c.render,s=s.displayName||s.name||"",c.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return tt(c);case 8:return c===Q?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function qe(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function lt(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Et(s){var c=lt(s)?"checked":"value",f=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),y=""+s[c];if(!s.hasOwnProperty(c)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var w=f.get,x=f.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return w.call(this)},set:function(k){y=""+k,x.call(this,k)}}),Object.defineProperty(s,c,{enumerable:f.enumerable}),{getValue:function(){return y},setValue:function(k){y=""+k},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function Oe(s){s._valueTracker||(s._valueTracker=Et(s))}function le(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var f=c.getValue(),y="";return s&&(y=lt(s)?s.checked?"true":"false":s.value),s=y,s!==f?(c.setValue(s),!0):!1}function re(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function te(s,c){var f=c.checked;return Qe({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??s._wrapperState.initialChecked})}function me(s,c){var f=c.defaultValue==null?"":c.defaultValue,y=c.checked!=null?c.checked:c.defaultChecked;f=qe(c.value!=null?c.value:f),s._wrapperState={initialChecked:y,initialValue:f,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function Ae(s,c){c=c.checked,c!=null&&H(s,"checked",c,!1)}function _e(s,c){Ae(s,c);var f=qe(c.value),y=c.type;if(f!=null)y==="number"?(f===0&&s.value===""||s.value!=f)&&(s.value=""+f):s.value!==""+f&&(s.value=""+f);else if(y==="submit"||y==="reset"){s.removeAttribute("value");return}c.hasOwnProperty("value")?it(s,c.type,f):c.hasOwnProperty("defaultValue")&&it(s,c.type,qe(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(s.defaultChecked=!!c.defaultChecked)}function Ve(s,c,f){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var y=c.type;if(!(y!=="submit"&&y!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+s._wrapperState.initialValue,f||c===s.value||(s.value=c),s.defaultValue=c}f=s.name,f!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,f!==""&&(s.name=f)}function it(s,c,f){(c!=="number"||re(s.ownerDocument)!==s)&&(f==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+f&&(s.defaultValue=""+f))}var vt=Array.isArray;function kt(s,c,f,y){if(s=s.options,c){c={};for(var w=0;w<f.length;w++)c["$"+f[w]]=!0;for(f=0;f<s.length;f++)w=c.hasOwnProperty("$"+s[f].value),s[f].selected!==w&&(s[f].selected=w),w&&y&&(s[f].defaultSelected=!0)}else{for(f=""+qe(f),c=null,w=0;w<s.length;w++){if(s[w].value===f){s[w].selected=!0,y&&(s[w].defaultSelected=!0);return}c!==null||s[w].disabled||(c=s[w])}c!==null&&(c.selected=!0)}}function rt(s,c){if(c.dangerouslySetInnerHTML!=null)throw Error(t(91));return Qe({},c,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function bt(s,c){var f=c.value;if(f==null){if(f=c.children,c=c.defaultValue,f!=null){if(c!=null)throw Error(t(92));if(vt(f)){if(1<f.length)throw Error(t(93));f=f[0]}c=f}c==null&&(c=""),f=c}s._wrapperState={initialValue:qe(f)}}function Xe(s,c){var f=qe(c.value),y=qe(c.defaultValue);f!=null&&(f=""+f,f!==s.value&&(s.value=f),c.defaultValue==null&&s.defaultValue!==f&&(s.defaultValue=f)),y!=null&&(s.defaultValue=""+y)}function ct(s){var c=s.textContent;c===s._wrapperState.initialValue&&c!==""&&c!==null&&(s.value=c)}function Me(s){switch(s){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function X(s,c){return s==null||s==="http://www.w3.org/1999/xhtml"?Me(c):s==="http://www.w3.org/2000/svg"&&c==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var z,W=(function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(c,f,y,w){MSApp.execUnsafeLocalFunction(function(){return s(c,f,y,w)})}:s})(function(s,c){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=c;else{for(z=z||document.createElement("div"),z.innerHTML="<svg>"+c.valueOf().toString()+"</svg>",c=z.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;c.firstChild;)s.appendChild(c.firstChild)}});function Se(s,c){if(c){var f=s.firstChild;if(f&&f===s.lastChild&&f.nodeType===3){f.nodeValue=c;return}}s.textContent=c}var Ke={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},je=["Webkit","ms","Moz","O"];Object.keys(Ke).forEach(function(s){je.forEach(function(c){c=c+s.charAt(0).toUpperCase()+s.substring(1),Ke[c]=Ke[s]})});function We(s,c,f){return c==null||typeof c=="boolean"||c===""?"":f||typeof c!="number"||c===0||Ke.hasOwnProperty(s)&&Ke[s]?(""+c).trim():c+"px"}function Pt(s,c){s=s.style;for(var f in c)if(c.hasOwnProperty(f)){var y=f.indexOf("--")===0,w=We(f,c[f],y);f==="float"&&(f="cssFloat"),y?s.setProperty(f,w):s[f]=w}}var Jt=Qe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wr(s,c){if(c){if(Jt[s]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(t(137,s));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(t(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(t(61))}if(c.style!=null&&typeof c.style!="object")throw Error(t(62))}}function rr(s,c){if(s.indexOf("-")===-1)return typeof c.is=="string";switch(s){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Nr=null;function mt(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Mt=null,Te=null,fe=null;function Ee(s){if(s=sh(s)){if(typeof Mt!="function")throw Error(t(280));var c=s.stateNode;c&&(c=pi(c),Mt(s.stateNode,s.type,c))}}function xe(s){Te?fe?fe.push(s):fe=[s]:Te=s}function et(){if(Te){var s=Te,c=fe;if(fe=Te=null,Ee(s),c)for(s=0;s<c.length;s++)Ee(c[s])}}function gt(s,c){return s(c)}function Rt(){}var dt=!1;function pt(s,c,f){if(dt)return s(c,f);dt=!0;try{return gt(s,c,f)}finally{dt=!1,(Te!==null||fe!==null)&&(Rt(),et())}}function wt(s,c){var f=s.stateNode;if(f===null)return null;var y=pi(f);if(y===null)return null;f=y[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(y=!y.disabled)||(s=s.type,y=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!y;break e;default:s=!1}if(s)return null;if(f&&typeof f!="function")throw Error(t(231,c,typeof f));return f}var Yt=!1;if(l)try{var Vt={};Object.defineProperty(Vt,"passive",{get:function(){Yt=!0}}),window.addEventListener("test",Vt,Vt),window.removeEventListener("test",Vt,Vt)}catch{Yt=!1}function ar(s,c,f,y,w,x,k,D,q){var Y=Array.prototype.slice.call(arguments,3);try{c.apply(f,Y)}catch(oe){this.onError(oe)}}var kr=!1,qr=null,Kr=!1,zn=null,Wn={onError:function(s){kr=!0,qr=s}};function On(s,c,f,y,w,x,k,D,q){kr=!1,qr=null,ar.apply(Wn,arguments)}function Mn(s,c,f,y,w,x,k,D,q){if(On.apply(this,arguments),kr){if(kr){var Y=qr;kr=!1,qr=null}else throw Error(t(198));Kr||(Kr=!0,zn=Y)}}function Yr(s){var c=s,f=s;if(s.alternate)for(;c.return;)c=c.return;else{s=c;do c=s,(c.flags&4098)!==0&&(f=c.return),s=c.return;while(s)}return c.tag===3?f:null}function rn(s){if(s.tag===13){var c=s.memoizedState;if(c===null&&(s=s.alternate,s!==null&&(c=s.memoizedState)),c!==null)return c.dehydrated}return null}function qn(s){if(Yr(s)!==s)throw Error(t(188))}function ii(s){var c=s.alternate;if(!c){if(c=Yr(s),c===null)throw Error(t(188));return c!==s?null:s}for(var f=s,y=c;;){var w=f.return;if(w===null)break;var x=w.alternate;if(x===null){if(y=w.return,y!==null){f=y;continue}break}if(w.child===x.child){for(x=w.child;x;){if(x===f)return qn(w),s;if(x===y)return qn(w),c;x=x.sibling}throw Error(t(188))}if(f.return!==y.return)f=w,y=x;else{for(var k=!1,D=w.child;D;){if(D===f){k=!0,f=w,y=x;break}if(D===y){k=!0,y=w,f=x;break}D=D.sibling}if(!k){for(D=x.child;D;){if(D===f){k=!0,f=x,y=w;break}if(D===y){k=!0,y=x,f=w;break}D=D.sibling}if(!k)throw Error(t(189))}}if(f.alternate!==y)throw Error(t(190))}if(f.tag!==3)throw Error(t(188));return f.stateNode.current===f?s:c}function mo(s){return s=ii(s),s!==null?Nn(s):null}function Nn(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var c=Nn(s);if(c!==null)return c;s=s.sibling}return null}var Yi=e.unstable_scheduleCallback,Rl=e.unstable_cancelCallback,kv=e.unstable_shouldYield,Yd=e.unstable_requestPaint,Ca=e.unstable_now,Ov=e.unstable_getCurrentPriorityLevel,Wi=e.unstable_ImmediatePriority,Xh=e.unstable_UserBlockingPriority,yg=e.unstable_NormalPriority,Kl=e.unstable_LowPriority,us=e.unstable_IdlePriority,ny=null,La=null;function Qc(s){if(La&&typeof La.onCommitFiberRoot=="function")try{La.onCommitFiberRoot(ny,s,void 0,(s.current.flags&128)===128)}catch{}}var Ic=Math.clz32?Math.clz32:Qh,up=Math.log,Ha=Math.LN2;function Qh(s){return s>>>=0,s===0?32:31-(up(s)/Ha|0)|0}var Ac=64,_i=4194304;function Jc(s){switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function ri(s,c){var f=s.pendingLanes;if(f===0)return 0;var y=0,w=s.suspendedLanes,x=s.pingedLanes,k=f&268435455;if(k!==0){var D=k&~w;D!==0?y=Jc(D):(x&=k,x!==0&&(y=Jc(x)))}else k=f&~w,k!==0?y=Jc(k):x!==0&&(y=Jc(x));if(y===0)return 0;if(c!==0&&c!==y&&(c&w)===0&&(w=y&-y,x=c&-c,w>=x||w===16&&(x&4194240)!==0))return c;if((y&4)!==0&&(y|=f&16),c=s.entangledLanes,c!==0)for(s=s.entanglements,c&=y;0<c;)f=31-Ic(c),w=1<<f,y|=s[f],c&=~w;return y}function iy(s,c){switch(s){case 1:case 2:case 4:return c+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Wd(s,c){for(var f=s.suspendedLanes,y=s.pingedLanes,w=s.expirationTimes,x=s.pendingLanes;0<x;){var k=31-Ic(x),D=1<<k,q=w[k];q===-1?((D&f)===0||(D&y)!==0)&&(w[k]=iy(D,c)):q<=c&&(s.expiredLanes|=D),x&=~D}}function oy(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function Mv(){var s=Ac;return Ac<<=1,(Ac&4194240)===0&&(Ac=64),s}function Jh(s){for(var c=[],f=0;31>f;f++)c.push(s);return c}function Pu(s,c,f){s.pendingLanes|=c,c!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,c=31-Ic(c),s[c]=f}function ef(s,c){var f=s.pendingLanes&~c;s.pendingLanes=c,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=c,s.mutableReadLanes&=c,s.entangledLanes&=c,c=s.entanglements;var y=s.eventTimes;for(s=s.expirationTimes;0<f;){var w=31-Ic(f),x=1<<w;c[w]=0,y[w]=-1,s[w]=-1,f&=~x}}function dp(s,c){var f=s.entangledLanes|=c;for(s=s.entanglements;f;){var y=31-Ic(f),w=1<<y;w&c|s[y]&c&&(s[y]|=c),f&=~w}}var Ni=0;function Nv(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var Kd,ay,R_,Dv,vg,sy=!1,_g=[],fd=null,ku=null,Zd=null,bg=new Map,eu=new Map,tu=[],Rc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Hb(s,c){switch(s){case"focusin":case"focusout":fd=null;break;case"dragenter":case"dragleave":ku=null;break;case"mouseover":case"mouseout":Zd=null;break;case"pointerover":case"pointerout":bg.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":eu.delete(c.pointerId)}}function tf(s,c,f,y,w,x){return s===null||s.nativeEvent!==x?(s={blockedOn:c,domEventName:f,eventSystemFlags:y,nativeEvent:x,targetContainers:[w]},c!==null&&(c=sh(c),c!==null&&ay(c)),s):(s.eventSystemFlags|=y,c=s.targetContainers,w!==null&&c.indexOf(w)===-1&&c.push(w),s)}function wg(s,c,f,y,w){switch(c){case"focusin":return fd=tf(fd,s,c,f,y,w),!0;case"dragenter":return ku=tf(ku,s,c,f,y,w),!0;case"mouseover":return Zd=tf(Zd,s,c,f,y,w),!0;case"pointerover":var x=w.pointerId;return bg.set(x,tf(bg.get(x)||null,s,c,f,y,w)),!0;case"gotpointercapture":return x=w.pointerId,eu.set(x,tf(eu.get(x)||null,s,c,f,y,w)),!0}return!1}function Eg(s){var c=tc(s.target);if(c!==null){var f=Yr(c);if(f!==null){if(c=f.tag,c===13){if(c=rn(f),c!==null){s.blockedOn=c,vg(s.priority,function(){R_(f)});return}}else if(c===3&&f.stateNode.current.memoizedState.isDehydrated){s.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}s.blockedOn=null}function hp(s){if(s.blockedOn!==null)return!1;for(var c=s.targetContainers;0<c.length;){var f=pp(s.domEventName,s.eventSystemFlags,c[0],s.nativeEvent);if(f===null){f=s.nativeEvent;var y=new f.constructor(f.type,f);Nr=y,f.target.dispatchEvent(y),Nr=null}else return c=sh(f),c!==null&&ay(c),s.blockedOn=f,!1;c.shift()}return!0}function ly(s,c,f){hp(s)&&f.delete(c)}function fp(){sy=!1,fd!==null&&hp(fd)&&(fd=null),ku!==null&&hp(ku)&&(ku=null),Zd!==null&&hp(Zd)&&(Zd=null),bg.forEach(ly),eu.forEach(ly)}function rf(s,c){s.blockedOn===c&&(s.blockedOn=null,sy||(sy=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,fp)))}function hn(s){function c(w){return rf(w,s)}if(0<_g.length){rf(_g[0],s);for(var f=1;f<_g.length;f++){var y=_g[f];y.blockedOn===s&&(y.blockedOn=null)}}for(fd!==null&&rf(fd,s),ku!==null&&rf(ku,s),Zd!==null&&rf(Zd,s),bg.forEach(c),eu.forEach(c),f=0;f<tu.length;f++)y=tu[f],y.blockedOn===s&&(y.blockedOn=null);for(;0<tu.length&&(f=tu[0],f.blockedOn===null);)Eg(f),f.blockedOn===null&&tu.shift()}var so=F.ReactCurrentBatchConfig,pd=!0;function Lv(s,c,f,y){var w=Ni,x=so.transition;so.transition=null;try{Ni=1,Pl(s,c,f,y)}finally{Ni=w,so.transition=x}}function Pc(s,c,f,y){var w=Ni,x=so.transition;so.transition=null;try{Ni=4,Pl(s,c,f,y)}finally{Ni=w,so.transition=x}}function Pl(s,c,f,y){if(pd){var w=pp(s,c,f,y);if(w===null)ta(s,c,y,Cg,f),Hb(s,y);else if(wg(w,s,c,f,y))y.stopPropagation();else if(Hb(s,y),c&4&&-1<Rc.indexOf(s)){for(;w!==null;){var x=sh(w);if(x!==null&&Kd(x),x=pp(s,c,f,y),x===null&&ta(s,c,y,Cg,f),x===w)break;w=x}w!==null&&y.stopPropagation()}else ta(s,c,y,null,f)}}var Cg=null;function pp(s,c,f,y){if(Cg=null,s=mt(y),s=tc(s),s!==null)if(c=Yr(s),c===null)s=null;else if(f=c.tag,f===13){if(s=rn(c),s!==null)return s;s=null}else if(f===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;s=null}else c!==s&&(s=null);return Cg=s,null}function xg(s){switch(s){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ov()){case Wi:return 1;case Xh:return 4;case yg:case Kl:return 16;case us:return 536870912;default:return 16}default:return 16}}var Xd=null,Ka=null,Ou=null;function ru(){if(Ou)return Ou;var s,c=Ka,f=c.length,y,w="value"in Xd?Xd.value:Xd.textContent,x=w.length;for(s=0;s<f&&c[s]===w[s];s++);var k=f-s;for(y=1;y<=k&&c[f-y]===w[x-y];y++);return Ou=w.slice(s,1<y?1-y:void 0)}function Qd(s){var c=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&c===13&&(s=13)):s=c,s===10&&(s=13),32<=s||s===13?s:0}function Zl(){return!0}function al(){return!1}function ds(s){function c(f,y,w,x,k){this._reactName=f,this._targetInst=w,this.type=y,this.nativeEvent=x,this.target=k,this.currentTarget=null;for(var D in s)s.hasOwnProperty(D)&&(f=s[D],this[D]=f?f(x):x[D]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?Zl:al,this.isPropagationStopped=al,this}return Qe(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=Zl)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=Zl)},persist:function(){},isPersistent:Zl}),c}var nf={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tg=ds(nf),nu=Qe({},nf,{view:0,detail:0}),Hv=ds(nu),Jd,Za,Sg,Ss=Qe({},nu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qi,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==Sg&&(Sg&&s.type==="mousemove"?(Jd=s.screenX-Sg.screenX,Za=s.screenY-Sg.screenY):Za=Jd=0,Sg=s),Jd)},movementY:function(s){return"movementY"in s?s.movementY:Za}}),Di=ds(Ss),cy=Qe({},Ss,{dataTransfer:0}),of=ds(cy),uy=Qe({},nu,{relatedTarget:0}),eh=ds(uy),la=Qe({},nf,{animationName:0,elapsedTime:0,pseudoElement:0}),af=ds(la),Ig=Qe({},nf,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),_C=ds(Ig),dy=Qe({},nf,{data:0}),hy=ds(dy),Fv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ca={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fi(s){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(s):(s=fy[s])?!!c[s]:!1}function Qi(){return fi}var Mo=Qe({},nu,{key:function(s){if(s.key){var c=Fv[s.key]||s.key;if(c!=="Unidentified")return c}return s.type==="keypress"?(s=Qd(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?ca[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qi,charCode:function(s){return s.type==="keypress"?Qd(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Qd(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),py=ds(Mo),P_=Qe({},Ss,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ag=ds(P_),k_=Qe({},nu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qi}),gy=ds(k_),Fb=Qe({},nf,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rg=ds(Fb),my=Qe({},Ss,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),Ub=ds(my),Uv=[9,13,27,32],Is=l&&"CompositionEvent"in window,sf=null;l&&"documentMode"in document&&(sf=document.documentMode);var Pg=l&&"TextEvent"in window&&!sf,Ko=l&&(!Is||sf&&8<sf&&11>=sf),th=" ",kc=!1;function Bv(s,c){switch(s){case"keyup":return Uv.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $v(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var gp=!1;function kg(s,c){switch(s){case"compositionend":return $v(c);case"keypress":return c.which!==32?null:(kc=!0,th);case"textInput":return s=c.data,s===th&&kc?null:s;default:return null}}function gd(s,c){if(gp)return s==="compositionend"||!Is&&Bv(s,c)?(s=ru(),Ou=Ka=Xd=null,gp=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return Ko&&c.locale!=="ko"?null:c.data;default:return null}}var O_={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function M_(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c==="input"?!!O_[s.type]:c==="textarea"}function Og(s,c,f,y){xe(y),c=vd(c,"onChange"),0<c.length&&(f=new Tg("onChange","change",null,f,y),s.push({event:f,listeners:c}))}var lf=null,sl=null;function md(s){hs(s,0)}function yy(s){var c=As(s);if(le(c))return s}function Bb(s,c){if(s==="change")return c}var N_=!1;if(l){var rh;if(l){var kl="oninput"in document;if(!kl){var zv=document.createElement("div");zv.setAttribute("oninput","return;"),kl=typeof zv.oninput=="function"}rh=kl}else rh=!1;N_=rh&&(!document.documentMode||9<document.documentMode)}function vy(){lf&&(lf.detachEvent("onpropertychange",yd),sl=lf=null)}function yd(s){if(s.propertyName==="value"&&yy(sl)){var c=[];Og(c,sl,s,mt(s)),pt(md,c)}}function _y(s,c,f){s==="focusin"?(vy(),lf=c,sl=f,lf.attachEvent("onpropertychange",yd)):s==="focusout"&&vy()}function Xl(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return yy(sl)}function iu(s,c){if(s==="click")return yy(c)}function cf(s,c){if(s==="input"||s==="change")return yy(c)}function Tt(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var zt=typeof Object.is=="function"?Object.is:Tt;function Ut(s,c){if(zt(s,c))return!0;if(typeof s!="object"||s===null||typeof c!="object"||c===null)return!1;var f=Object.keys(s),y=Object.keys(c);if(f.length!==y.length)return!1;for(y=0;y<f.length;y++){var w=f[y];if(!u.call(c,w)||!zt(s[w],c[w]))return!1}return!0}function Qr(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function jn(s,c){var f=Qr(s);s=0;for(var y;f;){if(f.nodeType===3){if(y=s+f.textContent.length,s<=c&&y>=c)return{node:f,offset:c-s};s=y}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=Qr(f)}}function Si(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?Si(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function yo(){for(var s=window,c=re();c instanceof s.HTMLIFrameElement;){try{var f=typeof c.contentWindow.location.href=="string"}catch{f=!1}if(f)s=c.contentWindow;else break;c=re(s.document)}return c}function lr(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}function ll(s){var c=yo(),f=s.focusedElem,y=s.selectionRange;if(c!==f&&f&&f.ownerDocument&&Si(f.ownerDocument.documentElement,f)){if(y!==null&&lr(f)){if(c=y.start,s=y.end,s===void 0&&(s=c),"selectionStart"in f)f.selectionStart=c,f.selectionEnd=Math.min(s,f.value.length);else if(s=(c=f.ownerDocument||document)&&c.defaultView||window,s.getSelection){s=s.getSelection();var w=f.textContent.length,x=Math.min(y.start,w);y=y.end===void 0?x:Math.min(y.end,w),!s.extend&&x>y&&(w=y,y=x,x=w),w=jn(f,x);var k=jn(f,y);w&&k&&(s.rangeCount!==1||s.anchorNode!==w.node||s.anchorOffset!==w.offset||s.focusNode!==k.node||s.focusOffset!==k.offset)&&(c=c.createRange(),c.setStart(w.node,w.offset),s.removeAllRanges(),x>y?(s.addRange(c),s.extend(k.node,k.offset)):(c.setEnd(k.node,k.offset),s.addRange(c)))}}for(c=[],s=f;s=s.parentNode;)s.nodeType===1&&c.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<c.length;f++)s=c[f],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var nh=l&&"documentMode"in document&&11>=document.documentMode,xa=null,mp=null,Pr=null,Ql=!1;function Mg(s,c,f){var y=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;Ql||xa==null||xa!==re(y)||(y=xa,"selectionStart"in y&&lr(y)?y={start:y.selectionStart,end:y.selectionEnd}:(y=(y.ownerDocument&&y.ownerDocument.defaultView||window).getSelection(),y={anchorNode:y.anchorNode,anchorOffset:y.anchorOffset,focusNode:y.focusNode,focusOffset:y.focusOffset}),Pr&&Ut(Pr,y)||(Pr=y,y=vd(mp,"onSelect"),0<y.length&&(c=new Tg("onSelect","select",null,c,f),s.push({event:c,listeners:y}),c.target=xa)))}function Mu(s,c){var f={};return f[s.toLowerCase()]=c.toLowerCase(),f["Webkit"+s]="webkit"+c,f["Moz"+s]="moz"+c,f}var Ii={animationend:Mu("Animation","AnimationEnd"),animationiteration:Mu("Animation","AnimationIteration"),animationstart:Mu("Animation","AnimationStart"),transitionend:Mu("Transition","TransitionEnd")},jv={},by={};l&&(by=document.createElement("div").style,"AnimationEvent"in window||(delete Ii.animationend.animation,delete Ii.animationiteration.animation,delete Ii.animationstart.animation),"TransitionEvent"in window||delete Ii.transitionend.transition);function Oc(s){if(jv[s])return jv[s];if(!Ii[s])return s;var c=Ii[s],f;for(f in c)if(c.hasOwnProperty(f)&&f in by)return jv[s]=c[f];return s}var vo=Oc("animationend"),wy=Oc("animationiteration"),Vv=Oc("animationstart"),uf=Oc("transitionend"),Nu=new Map,df="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ih(s,c){Nu.set(s,c),o(c,[s])}for(var Ys=0;Ys<df.length;Ys++){var hf=df[Ys],on=hf.toLowerCase(),dn=hf[0].toUpperCase()+hf.slice(1);ih(on,"on"+dn)}ih(vo,"onAnimationEnd"),ih(wy,"onAnimationIteration"),ih(Vv,"onAnimationStart"),ih("dblclick","onDoubleClick"),ih("focusin","onFocus"),ih("focusout","onBlur"),ih(uf,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ou="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ff=new Set("cancel close invalid load scroll toggle".split(" ").concat(ou));function Du(s,c,f){var y=s.type||"unknown-event";s.currentTarget=f,Mn(y,c,void 0,s),s.currentTarget=null}function hs(s,c){c=(c&4)!==0;for(var f=0;f<s.length;f++){var y=s[f],w=y.event;y=y.listeners;e:{var x=void 0;if(c)for(var k=y.length-1;0<=k;k--){var D=y[k],q=D.instance,Y=D.currentTarget;if(D=D.listener,q!==x&&w.isPropagationStopped())break e;Du(w,D,Y),x=q}else for(k=0;k<y.length;k++){if(D=y[k],q=D.instance,Y=D.currentTarget,D=D.listener,q!==x&&w.isPropagationStopped())break e;Du(w,D,Y),x=q}}}if(Kr)throw s=zn,Kr=!1,zn=null,s}function Eo(s,c){var f=c[vf];f===void 0&&(f=c[vf]=new Set);var y=s+"__bubble";f.has(y)||(No(c,s,2,!1),f.add(y))}function Jl(s,c,f){var y=0;c&&(y|=4),No(f,s,y,c)}var Ey="_reactListening"+Math.random().toString(36).slice(2);function au(s){if(!s[Ey]){s[Ey]=!0,n.forEach(function(f){f!=="selectionchange"&&(ff.has(f)||Jl(f,!1,s),Jl(f,!0,s))});var c=s.nodeType===9?s:s.ownerDocument;c===null||c[Ey]||(c[Ey]=!0,Jl("selectionchange",!1,c))}}function No(s,c,f,y){switch(xg(c)){case 1:var w=Lv;break;case 4:w=Pc;break;default:w=Pl}f=w.bind(null,c,f,s),w=void 0,!Yt||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(w=!0),y?w!==void 0?s.addEventListener(c,f,{capture:!0,passive:w}):s.addEventListener(c,f,!0):w!==void 0?s.addEventListener(c,f,{passive:w}):s.addEventListener(c,f,!1)}function ta(s,c,f,y,w){var x=y;if((c&1)===0&&(c&2)===0&&y!==null)e:for(;;){if(y===null)return;var k=y.tag;if(k===3||k===4){var D=y.stateNode.containerInfo;if(D===w||D.nodeType===8&&D.parentNode===w)break;if(k===4)for(k=y.return;k!==null;){var q=k.tag;if((q===3||q===4)&&(q=k.stateNode.containerInfo,q===w||q.nodeType===8&&q.parentNode===w))return;k=k.return}for(;D!==null;){if(k=tc(D),k===null)return;if(q=k.tag,q===5||q===6){y=x=k;continue e}D=D.parentNode}}y=y.return}pt(function(){var Y=x,oe=mt(f),ye=[];e:{var Ce=Nu.get(s);if(Ce!==void 0){var Pe=Tg,Be=s;switch(s){case"keypress":if(Qd(f)===0)break e;case"keydown":case"keyup":Pe=py;break;case"focusin":Be="focus",Pe=eh;break;case"focusout":Be="blur",Pe=eh;break;case"beforeblur":case"afterblur":Pe=eh;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Pe=Di;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Pe=of;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Pe=gy;break;case vo:case wy:case Vv:Pe=af;break;case uf:Pe=Rg;break;case"scroll":Pe=Hv;break;case"wheel":Pe=Ub;break;case"copy":case"cut":case"paste":Pe=_C;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Pe=Ag}var Ze=(c&4)!==0,Ge=!Ze&&s==="scroll",Fe=Ze?Ce!==null?Ce+"Capture":null:Ce;Ze=[];for(var Le=Y,Je;Le!==null;){Je=Le;var ht=Je.stateNode;if(Je.tag===5&&ht!==null&&(Je=ht,Fe!==null&&(ht=wt(Le,Fe),ht!=null&&Ze.push(yp(Le,ht,Je)))),Ge)break;Le=Le.return}0<Ze.length&&(Ce=new Pe(Ce,Be,null,f,oe),ye.push({event:Ce,listeners:Ze}))}}if((c&7)===0){e:{if(Ce=s==="mouseover"||s==="pointerover",Pe=s==="mouseout"||s==="pointerout",Ce&&f!==Nr&&(Be=f.relatedTarget||f.fromElement)&&(tc(Be)||Be[ec]))break e;if((Pe||Ce)&&(Ce=oe.window===oe?oe:(Ce=oe.ownerDocument)?Ce.defaultView||Ce.parentWindow:window,Pe?(Be=f.relatedTarget||f.toElement,Pe=Y,Be=Be?tc(Be):null,Be!==null&&(Ge=Yr(Be),Be!==Ge||Be.tag!==5&&Be.tag!==6)&&(Be=null)):(Pe=null,Be=Y),Pe!==Be)){if(Ze=Di,ht="onMouseLeave",Fe="onMouseEnter",Le="mouse",(s==="pointerout"||s==="pointerover")&&(Ze=Ag,ht="onPointerLeave",Fe="onPointerEnter",Le="pointer"),Ge=Pe==null?Ce:As(Pe),Je=Be==null?Ce:As(Be),Ce=new Ze(ht,Le+"leave",Pe,f,oe),Ce.target=Ge,Ce.relatedTarget=Je,ht=null,tc(oe)===Y&&(Ze=new Ze(Fe,Le+"enter",Be,f,oe),Ze.target=Je,Ze.relatedTarget=Ge,ht=Ze),Ge=ht,Pe&&Be)t:{for(Ze=Pe,Fe=Be,Le=0,Je=Ze;Je;Je=_d(Je))Le++;for(Je=0,ht=Fe;ht;ht=_d(ht))Je++;for(;0<Le-Je;)Ze=_d(Ze),Le--;for(;0<Je-Le;)Fe=_d(Fe),Je--;for(;Le--;){if(Ze===Fe||Fe!==null&&Ze===Fe.alternate)break t;Ze=_d(Ze),Fe=_d(Fe)}Ze=null}else Ze=null;Pe!==null&&qv(ye,Ce,Pe,Ze,!1),Be!==null&&Ge!==null&&qv(ye,Ge,Be,Ze,!0)}}e:{if(Ce=Y?As(Y):window,Pe=Ce.nodeName&&Ce.nodeName.toLowerCase(),Pe==="select"||Pe==="input"&&Ce.type==="file")var St=Bb;else if(M_(Ce))if(N_)St=cf;else{St=Xl;var Lt=_y}else(Pe=Ce.nodeName)&&Pe.toLowerCase()==="input"&&(Ce.type==="checkbox"||Ce.type==="radio")&&(St=iu);if(St&&(St=St(s,Y))){Og(ye,St,f,oe);break e}Lt&&Lt(s,Ce,Y),s==="focusout"&&(Lt=Ce._wrapperState)&&Lt.controlled&&Ce.type==="number"&&it(Ce,"number",Ce.value)}switch(Lt=Y?As(Y):window,s){case"focusin":(M_(Lt)||Lt.contentEditable==="true")&&(xa=Lt,mp=Y,Pr=null);break;case"focusout":Pr=mp=xa=null;break;case"mousedown":Ql=!0;break;case"contextmenu":case"mouseup":case"dragend":Ql=!1,Mg(ye,f,oe);break;case"selectionchange":if(nh)break;case"keydown":case"keyup":Mg(ye,f,oe)}var qt;if(Is)e:{switch(s){case"compositionstart":var jt="onCompositionStart";break e;case"compositionend":jt="onCompositionEnd";break e;case"compositionupdate":jt="onCompositionUpdate";break e}jt=void 0}else gp?Bv(s,f)&&(jt="onCompositionEnd"):s==="keydown"&&f.keyCode===229&&(jt="onCompositionStart");jt&&(Ko&&f.locale!=="ko"&&(gp||jt!=="onCompositionStart"?jt==="onCompositionEnd"&&gp&&(qt=ru()):(Xd=oe,Ka="value"in Xd?Xd.value:Xd.textContent,gp=!0)),Lt=vd(Y,jt),0<Lt.length&&(jt=new hy(jt,s,null,f,oe),ye.push({event:jt,listeners:Lt}),qt?jt.data=qt:(qt=$v(f),qt!==null&&(jt.data=qt)))),(qt=Pg?kg(s,f):gd(s,f))&&(Y=vd(Y,"onBeforeInput"),0<Y.length&&(oe=new hy("onBeforeInput","beforeinput",null,f,oe),ye.push({event:oe,listeners:Y}),oe.data=qt))}hs(ye,c)})}function yp(s,c,f){return{instance:s,listener:c,currentTarget:f}}function vd(s,c){for(var f=c+"Capture",y=[];s!==null;){var w=s,x=w.stateNode;w.tag===5&&x!==null&&(w=x,x=wt(s,f),x!=null&&y.unshift(yp(s,x,w)),x=wt(s,c),x!=null&&y.push(yp(s,x,w))),s=s.return}return y}function _d(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function qv(s,c,f,y,w){for(var x=c._reactName,k=[];f!==null&&f!==y;){var D=f,q=D.alternate,Y=D.stateNode;if(q!==null&&q===y)break;D.tag===5&&Y!==null&&(D=Y,w?(q=wt(f,x),q!=null&&k.unshift(yp(f,q,D))):w||(q=wt(f,x),q!=null&&k.push(yp(f,q,D)))),f=f.return}k.length!==0&&s.push({event:c,listeners:k})}var Fa=/\r\n?/g,fs=/\u0000|\uFFFD/g;function vp(s){return(typeof s=="string"?s:""+s).replace(Fa,`
44`).replace(fs,"")}function _p(s,c,f){if(c=vp(c),vp(s)!==c&&f)throw Error(t(425))}function pf(){}var gf=null,bp=null;function Lu(s,c){return s==="textarea"||s==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var wp=typeof setTimeout=="function"?setTimeout:void 0,mf=typeof clearTimeout=="function"?clearTimeout:void 0,oh=typeof Promise=="function"?Promise:void 0,ah=typeof queueMicrotask=="function"?queueMicrotask:typeof oh<"u"?function(s){return oh.resolve(null).then(s).catch(Ep)}:wp;function Ep(s){setTimeout(function(){throw s})}function bd(s,c){var f=c,y=0;do{var w=f.nextSibling;if(s.removeChild(f),w&&w.nodeType===8)if(f=w.data,f==="/$"){if(y===0){s.removeChild(w),hn(c);return}y--}else f!=="$"&&f!=="$?"&&f!=="$!"||y++;f=w}while(f);hn(c)}function Hu(s){for(;s!=null;s=s.nextSibling){var c=s.nodeType;if(c===1||c===3)break;if(c===8){if(c=s.data,c==="$"||c==="$!"||c==="$?")break;if(c==="/$")return null}}return s}function Gv(s){s=s.previousSibling;for(var c=0;s;){if(s.nodeType===8){var f=s.data;if(f==="$"||f==="$!"||f==="$?"){if(c===0)return s;c--}else f==="/$"&&c++}s=s.previousSibling}return null}var yf=Math.random().toString(36).slice(2),su="__reactFiber$"+yf,lu="__reactProps$"+yf,ec="__reactContainer$"+yf,vf="__reactEvents$"+yf,D_="__reactListeners$"+yf,ze="__reactHandles$"+yf;function tc(s){var c=s[su];if(c)return c;for(var f=s.parentNode;f;){if(c=f[ec]||f[su]){if(f=c.alternate,c.child!==null||f!==null&&f.child!==null)for(s=Gv(s);s!==null;){if(f=s[su])return f;s=Gv(s)}return c}s=f,f=s.parentNode}return null}function sh(s){return s=s[su]||s[ec],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function As(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(t(33))}function pi(s){return s[lu]||null}var Yv=[],Fu=-1;function lh(s){return{current:s}}function Ki(s){0>Fu||(s.current=Yv[Fu],Yv[Fu]=null,Fu--)}function Co(s,c){Fu++,Yv[Fu]=s.current,s.current=c}var wd={},Rs=lh(wd),rc=lh(!1),Ed=wd;function Ws(s,c){var f=s.type.contextTypes;if(!f)return wd;var y=s.stateNode;if(y&&y.__reactInternalMemoizedUnmaskedChildContext===c)return y.__reactInternalMemoizedMaskedChildContext;var w={},x;for(x in f)w[x]=c[x];return y&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=c,s.__reactInternalMemoizedMaskedChildContext=w),w}function nc(s){return s=s.childContextTypes,s!=null}function ch(){Ki(rc),Ki(Rs)}function L_(s,c,f){if(Rs.current!==wd)throw Error(t(168));Co(Rs,c),Co(rc,f)}function Ng(s,c,f){var y=s.stateNode;if(c=c.childContextTypes,typeof y.getChildContext!="function")return f;y=y.getChildContext();
vendor: 8,369 bytes, line 44
44for(var w in y)if(!(w in c))throw Error(t(108,ot(s)||"Unknown",w));return Qe({},f,y)}function Wv(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||wd,Ed=Rs.current,Co(Rs,s),Co(rc,rc.current),!0}function Uu(s,c,f){var y=s.stateNode;if(!y)throw Error(t(169));f?(s=Ng(s,c,Ed),y.__reactInternalMemoizedMergedChildContext=s,Ki(rc),Ki(Rs),Co(Rs,s)):Ki(rc),Co(rc,f)}var uh=null,dh=!1,Dg=!1;function $b(s){uh===null?uh=[s]:uh.push(s)}function P(s){dh=!0,$b(s)}function d(){if(!Dg&&uh!==null){Dg=!0;var s=0,c=Ni;try{var f=uh;for(Ni=1;s<f.length;s++){var y=f[s];do y=y(!0);while(y!==null)}uh=null,dh=!1}catch(w){throw uh!==null&&(uh=uh.slice(s+1)),Yi(Wi,d),w}finally{Ni=c,Dg=!1}}return null}var v=[],E=0,A=null,M=0,G=[],ee=0,he=null,Ie=1,Ne="";function we(s,c){v[E++]=M,v[E++]=A,A=s,M=c}function De(s,c,f){G[ee++]=Ie,G[ee++]=Ne,G[ee++]=he,he=s;var y=Ie;s=Ne;var w=32-Ic(y)-1;y&=~(1<<w),f+=1;var x=32-Ic(c)+w;if(30<x){var k=w-w%5;x=(y&(1<<k)-1).toString(32),y>>=k,w-=k,Ie=1<<32-Ic(c)+w|f<<w|y,Ne=x+s}else Ie=1<<x|f<<w|y,Ne=s}function nt(s){s.return!==null&&(we(s,1),De(s,1,0))}function at(s){for(;s===A;)A=v[--E],v[E]=null,M=v[--E],v[E]=null;for(;s===he;)he=G[--ee],G[ee]=null,Ne=G[--ee],G[ee]=null,Ie=G[--ee],G[ee]=null}var ut=null,st=null,_t=!1,xt=null;function At(s,c){var f=qu(5,null,null,0);f.elementType="DELETED",f.stateNode=c,f.return=s,c=s.deletions,c===null?(s.deletions=[f],s.flags|=16):c.push(f)}function Ft(s,c){switch(s.tag){case 5:var f=s.type;return c=c.nodeType!==1||f.toLowerCase()!==c.nodeName.toLowerCase()?null:c,c!==null?(s.stateNode=c,ut=s,st=Hu(c.firstChild),!0):!1;case 6:return c=s.pendingProps===""||c.nodeType!==3?null:c,c!==null?(s.stateNode=c,ut=s,st=null,!0):!1;case 13:return c=c.nodeType!==8?null:c,c!==null?(f=he!==null?{id:Ie,overflow:Ne}:null,s.memoizedState={dehydrated:c,treeContext:f,retryLane:1073741824},f=qu(18,null,null,0),f.stateNode=c,f.return=s,s.child=f,ut=s,st=null,!0):!1;default:return!1}}function $t(s){return(s.mode&1)!==0&&(s.flags&128)===0}function Bt(s){if(_t){var c=st;if(c){var f=c;if(!Ft(s,c)){if($t(s))throw Error(t(418));c=Hu(f.nextSibling);var y=ut;c&&Ft(s,c)?At(y,f):(s.flags=s.flags&-4097|2,_t=!1,ut=s)}}else{if($t(s))throw Error(t(418));s.flags=s.flags&-4097|2,_t=!1,ut=s}}}function Zt(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;ut=s}function Xt(s){if(s!==ut)return!1;if(!_t)return Zt(s),_t=!0,!1;var c;if((c=s.tag!==3)&&!(c=s.tag!==5)&&(c=s.type,c=c!=="head"&&c!=="body"&&!Lu(s.type,s.memoizedProps)),c&&(c=st)){if($t(s))throw yr(),Error(t(418));for(;c;)At(s,c),c=Hu(c.nextSibling)}if(Zt(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(t(317));e:{for(s=s.nextSibling,c=0;s;){if(s.nodeType===8){var f=s.data;if(f==="/$"){if(c===0){st=Hu(s.nextSibling);break e}c--}else f!=="$"&&f!=="$!"&&f!=="$?"||c++}s=s.nextSibling}st=null}}else st=ut?Hu(s.stateNode.nextSibling):null;return!0}function yr(){for(var s=st;s;)s=Hu(s.nextSibling)}function xr(){st=ut=null,_t=!1}function Dr(s){xt===null?xt=[s]:xt.push(s)}var Jr=F.ReactCurrentBatchConfig;function an(s,c,f){if(s=f.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(f._owner){if(f=f._owner,f){if(f.tag!==1)throw Error(t(309));var y=f.stateNode}if(!y)throw Error(t(147,s));var w=y,x=""+s;return c!==null&&c.ref!==null&&typeof c.ref=="function"&&c.ref._stringRef===x?c.ref:(c=function(k){var D=w.refs;k===null?delete D[x]:D[x]=k},c._stringRef=x,c)}if(typeof s!="string")throw Error(t(284));if(!f._owner)throw Error(t(290,s))}return s}function jr(s,c){throw s=Object.prototype.toString.call(c),Error(t(31,s==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":s))}function vr(s){var c=s._init;return c(s._payload)}function sn(s){function c(Fe,Le){if(s){var Je=Fe.deletions;Je===null?(Fe.deletions=[Le],Fe.flags|=16):Je.push(Le)}}function f(Fe,Le){if(!s)return null;for(;Le!==null;)c(Fe,Le),Le=Le.sibling;return null}function y(Fe,Le){for(Fe=new Map;Le!==null;)Le.key!==null?Fe.set(Le.key,Le):Fe.set(Le.index,Le),Le=Le.sibling;return Fe}function w(Fe,Le){return Fe=Pp(Fe,Le),Fe.index=0,Fe.sibling=null,Fe}function x(Fe,Le,Je){return Fe.index=Je,s?(Je=Fe.alternate,Je!==null?(Je=Je.index,Je<Le?(Fe.flags|=2,Le):Je):(Fe.flags|=2,Le)):(Fe.flags|=1048576,Le)}function k(Fe){return s&&Fe.alternate===null&&(Fe.flags|=2),Fe}function D(Fe,Le,Je,ht){return Le===null||Le.tag!==6?(Le=p0(Je,Fe.mode,ht),Le.return=Fe,Le):(Le=w(Le,Je),Le.return=Fe,Le)}function q(Fe,Le,Je,ht){var St=Je.type;return St===B?oe(Fe,Le,Je.props.children,ht,Je.key):Le!==null&&(Le.elementType===St||typeof St=="object"&&St!==null&&St.$$typeof===be&&vr(St)===Le.type)?(ht=w(Le,Je.props),ht.ref=an(Fe,Le,Je),ht.return=Fe,ht):(ht=xf(Je.type,Je.key,Je.props,null,Fe.mode,ht),ht.ref=an(Fe,Le,Je),ht.return=Fe,ht)}function Y(Fe,Le,Je,ht){return Le===null||Le.tag!==4||Le.stateNode.containerInfo!==Je.containerInfo||Le.stateNode.implementation!==Je.implementation?(Le=$C(Je,Fe.mode,ht),Le.return=Fe,Le):(Le=w(Le,Je.children||[]),Le.return=Fe,Le)}function oe(Fe,Le,Je,ht,St){return Le===null||Le.tag!==7?(Le=Kg(Je,Fe.mode,ht,St),Le.return=Fe,Le):(Le=w(Le,Je),Le.return=Fe,Le)}function ye(Fe,Le,Je){if(typeof Le=="string"&&Le!==""||typeof Le=="number")return Le=p0(""+Le,Fe.mode,Je),Le.return=Fe,Le;if(typeof Le=="object"&&Le!==null){switch(Le.$$typeof){case j:return Je=xf(Le.type,Le.key,Le.props,null,Fe.mode,Je),Je.ref=an(Fe,null,Le),Je.return=Fe,Je;case L:return Le=$C(Le,Fe.mode,Je),Le.return=Fe,Le;case be:var ht=Le._init;return ye(Fe,ht(Le._payload),Je)}if(vt(Le)||Ue(Le))return Le=Kg(Le,Fe.mode,Je,null),Le.return=Fe,Le;jr(Fe,Le)}return null}function Ce(Fe,Le,Je,ht){var St=Le!==null?Le.key:null;if(typeof Je=="string"&&Je!==""||typeof Je=="number")return St!==null?null:D(Fe,Le,""+Je,ht);if(typeof Je=="object"&&Je!==null){switch(Je.$$typeof){case j:return Je.key===St?q(Fe,Le,Je,ht):null;case L:return Je.key===St?Y(Fe,Le,Je,ht):null;case be:return St=Je._init,Ce(Fe,Le,St(Je._payload),ht)}if(vt(Je)||Ue(Je))return St!==null?null:oe(Fe,Le,Je,ht,null);jr(Fe,Je)}return null}function Pe(Fe,Le,Je,ht,St){if(typeof ht=="string"&&ht!==""||typeof ht=="number")return Fe=Fe.get(Je)||null,D(Le,Fe,""+ht,St);if(typeof ht=="object"&&ht!==null){switch(ht.$$typeof){case j:return Fe=Fe.get(ht.key===null?Je:ht.key)||null,q(Le,Fe,ht,St);case L:return Fe=Fe.get(ht.key===null?Je:ht.key)||null,Y(Le,Fe,ht,St);case be:var Lt=ht._init;return Pe(Fe,Le,Je,Lt(ht._payload),St)}if(vt(ht)||Ue(ht))return Fe=Fe.get(Je)||null,oe(Le,Fe,ht,St,null);jr(Le,ht)}return null}function Be(Fe,Le,Je,ht){for(var St=null,Lt=null,qt=Le,jt=Le=0,Wt=null;qt!==null&&jt<Je.length;jt++){qt.index>jt?(Wt=qt,qt=null):Wt=qt.sibling;var tr=Ce(Fe,qt,Je[jt],ht);if(tr===null){qt===null&&(qt=Wt);break}s&&qt&&tr.alternate===null&&c(Fe,qt),Le=x(tr,Le,jt),Lt===null?St=tr:Lt.sibling=tr,Lt=tr,qt=Wt}if(jt===Je.length)return f(Fe,qt),_t&&we(Fe,jt),St;if(qt===null){for(;jt<Je.length;jt++)qt=ye(Fe,Je[jt],ht),qt!==null&&(Le=x(qt,Le,jt),Lt===null?St=qt:Lt.sibling=qt,Lt=qt);return _t&&we(Fe,jt),St}for(qt=y(Fe,qt);jt<Je.length;jt++)Wt=Pe(qt,Fe,jt,Je[jt],ht),Wt!==null&&(s&&Wt.alternate!==null&&qt.delete(Wt.key===null?jt:Wt.key),Le=x(Wt,Le,jt),Lt===null?St=Wt:Lt.sibling=Wt,Lt=Wt);return s&&qt.forEach(function(dr){return c(Fe,dr)}),_t&&we(Fe,jt),St}function Ze(Fe,Le,Je,ht){var St=Ue(Je);if(typeof St!="function")throw Error(t(150));if(Je=St.call(Je),Je==null)throw Error(t(151));for(var Lt=St=null,qt=Le,jt=Le=0,Wt=null,tr=Je.next();qt!==null&&!tr.done;jt++,tr=Je.next()){qt.index>jt?(Wt=qt,qt=null):Wt=qt.sibling;var dr=Ce(Fe,qt,tr.value,ht);if(dr===null){qt===null&&(qt=Wt);break}s&&qt&&dr.alternate===null&&c(Fe,qt),Le=x(dr,Le,jt),Lt===null?St=dr:Lt.sibling=dr,Lt=dr,qt=Wt}if(tr.done)return f(Fe,qt),_t&&we(Fe,jt),St;if(qt===null){for(;!tr.done;jt++,tr=Je.next())tr=ye(Fe,tr.value,ht),tr!==null&&(Le=x(tr,Le,jt),Lt===null?St=tr:Lt.sibling=tr,Lt=tr);return _t&&we(Fe,jt),St}for(qt=y(Fe,qt);!tr.done;jt++,tr=Je.next())tr=Pe(qt,Fe,jt,tr.value,ht),tr!==null&&(s&&tr.alternate!==null&&qt.delete(tr.key===null?jt:tr.key),Le=x(tr,Le,jt),Lt===null?St=tr:Lt.sibling=tr,Lt=tr);return s&&qt.forEach(function(cr){return c(Fe,cr)}),_t&&we(Fe,jt),St}function Ge(Fe,Le,Je,ht){if(typeof Je=="object"&&Je!==null&&Je.type===B&&Je.key===null&&(Je=Je.props.children),typeof Je=="object"&&Je!==null){switch(Je.$$typeof){case j:e:{for(var St=Je.key,Lt=Le;Lt!==null;
vendor: 6,738 bytes, line 44
44){if(Lt.key===St){if(St=Je.type,St===B){if(Lt.tag===7){f(Fe,Lt.sibling),Le=w(Lt,Je.props.children),Le.return=Fe,Fe=Le;break e}}else if(Lt.elementType===St||typeof St=="object"&&St!==null&&St.$$typeof===be&&vr(St)===Lt.type){f(Fe,Lt.sibling),Le=w(Lt,Je.props),Le.ref=an(Fe,Lt,Je),Le.return=Fe,Fe=Le;break e}f(Fe,Lt);break}else c(Fe,Lt);Lt=Lt.sibling}Je.type===B?(Le=Kg(Je.props.children,Fe.mode,ht,Je.key),Le.return=Fe,Fe=Le):(ht=xf(Je.type,Je.key,Je.props,null,Fe.mode,ht),ht.ref=an(Fe,Le,Je),ht.return=Fe,Fe=ht)}return k(Fe);case L:e:{for(Lt=Je.key;Le!==null;){if(Le.key===Lt)if(Le.tag===4&&Le.stateNode.containerInfo===Je.containerInfo&&Le.stateNode.implementation===Je.implementation){f(Fe,Le.sibling),Le=w(Le,Je.children||[]),Le.return=Fe,Fe=Le;break e}else{f(Fe,Le);break}else c(Fe,Le);Le=Le.sibling}Le=$C(Je,Fe.mode,ht),Le.return=Fe,Fe=Le}return k(Fe);case be:return Lt=Je._init,Ge(Fe,Le,Lt(Je._payload),ht)}if(vt(Je))return Be(Fe,Le,Je,ht);if(Ue(Je))return Ze(Fe,Le,Je,ht);jr(Fe,Je)}return typeof Je=="string"&&Je!==""||typeof Je=="number"?(Je=""+Je,Le!==null&&Le.tag===6?(f(Fe,Le.sibling),Le=w(Le,Je),Le.return=Fe,Fe=Le):(f(Fe,Le),Le=p0(Je,Fe.mode,ht),Le.return=Fe,Fe=Le),k(Fe)):f(Fe,Le)}return Ge}var yn=sn(!0),Tr=sn(!1),Jn=lh(null),Li=null,Tn=null,oi=null;function Dn(){oi=Tn=Li=null}function bi(s){var c=Jn.current;Ki(Jn),s._currentValue=c}function li(s,c,f){for(;s!==null;){var y=s.alternate;if((s.childLanes&c)!==c?(s.childLanes|=c,y!==null&&(y.childLanes|=c)):y!==null&&(y.childLanes&c)!==c&&(y.childLanes|=c),s===f)break;s=s.return}}function Ln(s,c){Li=s,oi=Tn=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&c)!==0&&(Dl=!0),s.firstContext=null)}function _o(s){var c=s._currentValue;if(oi!==s)if(s={context:s,memoizedValue:c,next:null},Tn===null){if(Li===null)throw Error(t(308));Tn=s,Li.dependencies={lanes:0,firstContext:s}}else Tn=Tn.next=s;return c}var ra=null;function Mc(s){ra===null?ra=[s]:ra.push(s)}function Ps(s,c,f,y){var w=c.interleaved;return w===null?(f.next=f,Mc(c)):(f.next=w.next,w.next=f),c.interleaved=f,Hi(s,y)}function Hi(s,c){s.lanes|=c;var f=s.alternate;for(f!==null&&(f.lanes|=c),f=s,s=s.return;s!==null;)s.childLanes|=c,f=s.alternate,f!==null&&(f.childLanes|=c),f=s,s=s.return;return f.tag===3?f.stateNode:null}var lo=!1;function cl(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function co(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function na(s,c){return{eventTime:s,lane:c,tag:0,payload:null,callback:null,next:null}}function Ai(s,c,f){var y=s.updateQueue;if(y===null)return null;if(y=y.shared,(Ji&2)!==0){var w=y.pending;return w===null?c.next=c:(c.next=w.next,w.next=c),y.pending=c,Hi(s,f)}return w=y.interleaved,w===null?(c.next=c,Mc(y)):(c.next=w.next,w.next=c),y.interleaved=c,Hi(s,f)}function Fi(s,c,f){if(c=c.updateQueue,c!==null&&(c=c.shared,(f&4194240)!==0)){var y=c.lanes;y&=s.pendingLanes,f|=y,c.lanes=f,dp(s,f)}}function Ks(s,c){var f=s.updateQueue,y=s.alternate;if(y!==null&&(y=y.updateQueue,f===y)){var w=null,x=null;if(f=f.firstBaseUpdate,f!==null){do{var k={eventTime:f.eventTime,lane:f.lane,tag:f.tag,payload:f.payload,callback:f.callback,next:null};x===null?w=x=k:x=x.next=k,f=f.next}while(f!==null);x===null?w=x=c:x=x.next=c}else w=x=c;f={baseState:y.baseState,firstBaseUpdate:w,lastBaseUpdate:x,shared:y.shared,effects:y.effects},s.updateQueue=f;return}s=f.lastBaseUpdate,s===null?f.firstBaseUpdate=c:s.next=c,f.lastBaseUpdate=c}function Do(s,c,f,y){var w=s.updateQueue;lo=!1;var x=w.firstBaseUpdate,k=w.lastBaseUpdate,D=w.shared.pending;if(D!==null){w.shared.pending=null;var q=D,Y=q.next;q.next=null,k===null?x=Y:k.next=Y,k=q;var oe=s.alternate;oe!==null&&(oe=oe.updateQueue,D=oe.lastBaseUpdate,D!==k&&(D===null?oe.firstBaseUpdate=Y:D.next=Y,oe.lastBaseUpdate=q))}if(x!==null){var ye=w.baseState;k=0,oe=Y=q=null,D=x;do{var Ce=D.lane,Pe=D.eventTime;if((y&Ce)===Ce){oe!==null&&(oe=oe.next={eventTime:Pe,lane:0,tag:D.tag,payload:D.payload,callback:D.callback,next:null});e:{var Be=s,Ze=D;switch(Ce=c,Pe=f,Ze.tag){case 1:if(Be=Ze.payload,typeof Be=="function"){ye=Be.call(Pe,ye,Ce);break e}ye=Be;break e;case 3:Be.flags=Be.flags&-65537|128;case 0:if(Be=Ze.payload,Ce=typeof Be=="function"?Be.call(Pe,ye,Ce):Be,Ce==null)break e;ye=Qe({},ye,Ce);break e;case 2:lo=!0}}D.callback!==null&&D.lane!==0&&(s.flags|=64,Ce=w.effects,Ce===null?w.effects=[D]:Ce.push(D))}else Pe={eventTime:Pe,lane:Ce,tag:D.tag,payload:D.payload,callback:D.callback,next:null},oe===null?(Y=oe=Pe,q=ye):oe=oe.next=Pe,k|=Ce;if(D=D.next,D===null){if(D=w.shared.pending,D===null)break;Ce=D,D=Ce.next,Ce.next=null,w.lastBaseUpdate=Ce,w.shared.pending=null}}while(!0);if(oe===null&&(q=ye),w.baseState=q,w.firstBaseUpdate=Y,w.lastBaseUpdate=oe,c=w.shared.interleaved,c!==null){w=c;do k|=w.lane,w=w.next;while(w!==c)}else x===null&&(w.shared.lanes=0);Oy|=k,s.lanes=k,s.memoizedState=ye}}function Ta(s,c,f){if(s=c.effects,c.effects=null,s!==null)for(c=0;c<s.length;c++){var y=s[c],w=y.callback;if(w!==null){if(y.callback=null,y=f,typeof w!="function")throw Error(t(191,w));w.call(y)}}}var Nc={},ps=lh(Nc),ia=lh(Nc),ic=lh(Nc);function Ol(s){if(s===Nc)throw Error(t(174));return s}function uo(s,c){switch(Co(ic,c),Co(ia,s),Co(ps,Nc),s=c.nodeType,s){case 9:case 11:c=(c=c.documentElement)?c.namespaceURI:X(null,"");break;default:s=s===8?c.parentNode:c,c=s.namespaceURI||null,s=s.tagName,c=X(c,s)}Ki(ps),Co(ps,c)}function jo(){Ki(ps),Ki(ia),Ki(ic)}function Dc(s){Ol(ic.current);var c=Ol(ps.current),f=X(c,s.type);c!==f&&(Co(ia,s),Co(ps,f))}function Lc(s){ia.current===s&&(Ki(ps),Ki(ia))}var xo=lh(0);function cu(s){for(var c=s;c!==null;){if(c.tag===13){var f=c.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||f.data==="$?"||f.data==="$!"))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var _f=[];function Kv(){for(var s=0;s<_f.length;s++)_f[s]._workInProgressVersionPrimary=null;_f.length=0}var Ml=F.ReactCurrentDispatcher,hh=F.ReactCurrentBatchConfig,Nl=0,Zo=null,To=null,gs=null,H_=!1,Lg=!1,F_=0,bC=0;function Hn(){throw Error(t(321))}function U_(s,c){if(c===null)return!1;for(var f=0;f<c.length&&f<s.length;f++)if(!zt(s[f],c[f]))return!1;return!0}function zb(s,c,f,y,w,x){if(Nl=x,Zo=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,Ml.current=s===null||s.memoizedState===null?ho:XS,s=f(y,w),Lg){x=0;
vendor: 4,641 bytes, line 44
44do{if(Lg=!1,F_=0,25<=x)throw Error(t(301));x+=1,gs=To=null,c.updateQueue=null,Ml.current=jb,s=f(y,w)}while(Lg)}if(Ml.current=$u,c=To!==null&&To.next!==null,Nl=0,gs=To=Zo=null,H_=!1,c)throw Error(t(300));return s}function Bu(){var s=F_!==0;return F_=0,s}function Hc(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gs===null?Zo.memoizedState=gs=s:gs=gs.next=s,gs}function Cd(){if(To===null){var s=Zo.alternate;s=s!==null?s.memoizedState:null}else s=To.next;var c=gs===null?Zo.memoizedState:gs.next;if(c!==null)gs=c,To=s;else{if(s===null)throw Error(t(310));To=s,s={memoizedState:To.memoizedState,baseState:To.baseState,baseQueue:To.baseQueue,queue:To.queue,next:null},gs===null?Zo.memoizedState=gs=s:gs=gs.next=s}return gs}function Cy(s,c){return typeof c=="function"?c(s):c}function Zs(s){var c=Cd(),f=c.queue;if(f===null)throw Error(t(311));f.lastRenderedReducer=s;var y=To,w=y.baseQueue,x=f.pending;if(x!==null){if(w!==null){var k=w.next;w.next=x.next,x.next=k}y.baseQueue=w=x,f.pending=null}if(w!==null){x=w.next,y=y.baseState;var D=k=null,q=null,Y=x;do{var oe=Y.lane;if((Nl&oe)===oe)q!==null&&(q=q.next={lane:0,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),y=Y.hasEagerState?Y.eagerState:s(y,Y.action);else{var ye={lane:oe,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null};q===null?(D=q=ye,k=y):q=q.next=ye,Zo.lanes|=oe,Oy|=oe}Y=Y.next}while(Y!==null&&Y!==x);q===null?k=y:q.next=D,zt(y,c.memoizedState)||(Dl=!0),c.memoizedState=y,c.baseState=k,c.baseQueue=q,f.lastRenderedState=y}if(s=f.interleaved,s!==null){w=s;do x=w.lane,Zo.lanes|=x,Oy|=x,w=w.next;while(w!==s)}else w===null&&(f.lanes=0);return[c.memoizedState,f.dispatch]}function ga(s){var c=Cd(),f=c.queue;if(f===null)throw Error(t(311));f.lastRenderedReducer=s;var y=f.dispatch,w=f.pending,x=c.memoizedState;if(w!==null){f.pending=null;var k=w=w.next;do x=s(x,k.action),k=k.next;while(k!==w);zt(x,c.memoizedState)||(Dl=!0),c.memoizedState=x,c.baseQueue===null&&(c.baseState=x),f.lastRenderedState=x}return[x,y]}function Hg(){}function B_(s,c){var f=Zo,y=Cd(),w=c(),x=!zt(y.memoizedState,w);if(x&&(y.memoizedState=w,Dl=!0),y=y.queue,V_(ul.bind(null,f,y,s),[s]),y.getSnapshot!==c||x||gs!==null&&gs.memoizedState.tag&1){if(f.flags|=2048,wf(9,Xv.bind(null,f,y,w,c),void 0,null),Xs===null)throw Error(t(349));(Nl&30)!==0||Zv(f,c,w)}return w}function Zv(s,c,f){s.flags|=16384,s={getSnapshot:c,value:f},c=Zo.updateQueue,c===null?(c={lastEffect:null,stores:null},Zo.updateQueue=c,c.stores=[s]):(f=c.stores,f===null?c.stores=[s]:f.push(s))}function Xv(s,c,f,y){c.value=f,c.getSnapshot=y,bf(c)&&$_(s)}function ul(s,c,f){return f(function(){bf(c)&&$_(s)})}function bf(s){var c=s.getSnapshot;s=s.value;try{var f=c();return!zt(s,f)}catch{return!0}}function $_(s){var c=Hi(s,1);c!==null&&_h(c,s,1,-1)}function xy(s){var c=Hc();return typeof s=="function"&&(s=s()),c.memoizedState=c.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Cy,lastRenderedState:s},c.queue=s,s=s.dispatch=Ug.bind(null,Zo,s),[c.memoizedState,s]}function wf(s,c,f,y){return s={tag:s,create:c,destroy:f,deps:y,next:null},c=Zo.updateQueue,c===null?(c={lastEffect:null,stores:null},Zo.updateQueue=c,c.lastEffect=s.next=s):(f=c.lastEffect,f===null?c.lastEffect=s.next=s:(y=f.next,f.next=s,s.next=y,c.lastEffect=s)),s}function z_(){return Cd().memoizedState}function Ty(s,c,f,y){var w=Hc();Zo.flags|=s,w.memoizedState=wf(1|c,f,void 0,y===void 0?null:y)}function j_(s,c,f,y){var w=Cd();y=y===void 0?null:y;var x=void 0;if(To!==null){var k=To.memoizedState;if(x=k.destroy,y!==null&&U_(y,k.deps)){w.memoizedState=wf(c,f,x,y);return}}Zo.flags|=s,w.memoizedState=wf(1|c,f,x,y)}function Fg(s,c){return Ty(8390656,8,s,c)}function V_(s,c){return j_(2048,8,s,c)}function fh(s,c){return j_(4,2,s,c)}function WS(s,c){return j_(4,4,s,c)}function ph(s,c){if(typeof c=="function")return s=s(),c(s),function(){c(null)};if(c!=null)return s=s(),c.current=s,function(){c.current=null}}function q_(s,c,f){return f=f!=null?f.concat([s]):null,j_(4,4,ph.bind(null,c,s),f)}function Qv(){}function G_(s,c){var f=Cd();c=c===void 0?null:c;var y=f.memoizedState;return y!==null&&c!==null&&U_(c,y[1])?y[0]:(f.memoizedState=[s,c],s)}function wC(s,c){var f=Cd();c=c===void 0?null:c;var y=f.memoizedState;return y!==null&&c!==null&&U_(c,y[1])?y[0]:(s=s(),f.memoizedState=[s,c],s)}function KS(s,c,f){return(Nl&21)===0?(s.baseState&&(s.baseState=!1,Dl=!0),s.memoizedState=f):(zt(f,c)||(f=Mv(),Zo.lanes|=f,Oy|=f,s.baseState=!0),c)}function Fk(s,c){var f=Ni;Ni=f!==0&&4>f?f:4,s(!0);var y=hh.transition;hh.transition={};
vendor: 6,692 bytes, lines 44-46
44try{s(!1),c()}finally{Ni=f,hh.transition=y}}function EC(){return Cd().memoizedState}function ZS(s,c,f){var y=Gg(s);if(f={lane:y,action:f,hasEagerState:!1,eagerState:null,next:null},CC(s))Bg(c,f);else if(f=Ps(s,c,f,y),f!==null){var w=dc();_h(f,s,y,w),Fc(f,c,y)}}function Ug(s,c,f){var y=Gg(s),w={lane:y,action:f,hasEagerState:!1,eagerState:null,next:null};if(CC(s))Bg(c,w);else{var x=s.alternate;if(s.lanes===0&&(x===null||x.lanes===0)&&(x=c.lastRenderedReducer,x!==null))try{var k=c.lastRenderedState,D=x(k,f);if(w.hasEagerState=!0,w.eagerState=D,zt(D,k)){var q=c.interleaved;q===null?(w.next=w,Mc(c)):(w.next=q.next,q.next=w),c.interleaved=w;return}}catch{}finally{}f=Ps(s,c,w,y),f!==null&&(w=dc(),_h(f,s,y,w),Fc(f,c,y))}}function CC(s){var c=s.alternate;return s===Zo||c!==null&&c===Zo}function Bg(s,c){Lg=H_=!0;var f=s.pending;f===null?c.next=c:(c.next=f.next,f.next=c),s.pending=c}function Fc(s,c,f){if((f&4194240)!==0){var y=c.lanes;y&=s.pendingLanes,f|=y,c.lanes=f,dp(s,f)}}var $u={readContext:_o,useCallback:Hn,useContext:Hn,useEffect:Hn,useImperativeHandle:Hn,useInsertionEffect:Hn,useLayoutEffect:Hn,useMemo:Hn,useReducer:Hn,useRef:Hn,useState:Hn,useDebugValue:Hn,useDeferredValue:Hn,useTransition:Hn,useMutableSource:Hn,useSyncExternalStore:Hn,useId:Hn,unstable_isNewReconciler:!1},ho={readContext:_o,useCallback:function(s,c){return Hc().memoizedState=[s,c===void 0?null:c],s},useContext:_o,useEffect:Fg,useImperativeHandle:function(s,c,f){return f=f!=null?f.concat([s]):null,Ty(4194308,4,ph.bind(null,c,s),f)},useLayoutEffect:function(s,c){return Ty(4194308,4,s,c)},useInsertionEffect:function(s,c){return Ty(4,2,s,c)},useMemo:function(s,c){var f=Hc();return c=c===void 0?null:c,s=s(),f.memoizedState=[s,c],s},useReducer:function(s,c,f){var y=Hc();return c=f!==void 0?f(c):c,y.memoizedState=y.baseState=c,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:c},y.queue=s,s=s.dispatch=ZS.bind(null,Zo,s),[y.memoizedState,s]},useRef:function(s){var c=Hc();return s={current:s},c.memoizedState=s},useState:xy,useDebugValue:Qv,useDeferredValue:function(s){return Hc().memoizedState=s},useTransition:function(){var s=xy(!1),c=s[0];return s=Fk.bind(null,s[1]),Hc().memoizedState=s,[c,s]},useMutableSource:function(){},useSyncExternalStore:function(s,c,f){var y=Zo,w=Hc();if(_t){if(f===void 0)throw Error(t(407));f=f()}else{if(f=c(),Xs===null)throw Error(t(349));(Nl&30)!==0||Zv(y,c,f)}w.memoizedState=f;var x={value:f,getSnapshot:c};return w.queue=x,Fg(ul.bind(null,y,x,s),[s]),y.flags|=2048,wf(9,Xv.bind(null,y,x,f,c),void 0,null),f},useId:function(){var s=Hc(),c=Xs.identifierPrefix;if(_t){var f=Ne,y=Ie;f=(y&~(1<<32-Ic(y)-1)).toString(32)+f,c=":"+c+"R"+f,f=F_++,0<f&&(c+="H"+f.toString(32)),c+=":"}else f=bC++,c=":"+c+"r"+f.toString(32)+":";return s.memoizedState=c},unstable_isNewReconciler:!1},XS={readContext:_o,useCallback:G_,useContext:_o,useEffect:V_,useImperativeHandle:q_,useInsertionEffect:fh,useLayoutEffect:WS,useMemo:wC,useReducer:Zs,useRef:z_,useState:function(){return Zs(Cy)},useDebugValue:Qv,useDeferredValue:function(s){var c=Cd();return KS(c,To.memoizedState,s)},useTransition:function(){var s=Zs(Cy)[0],c=Cd().memoizedState;return[s,c]},useMutableSource:Hg,useSyncExternalStore:B_,useId:EC,unstable_isNewReconciler:!1},jb={readContext:_o,useCallback:G_,useContext:_o,useEffect:V_,useImperativeHandle:q_,useInsertionEffect:fh,useLayoutEffect:WS,useMemo:wC,useReducer:ga,useRef:z_,useState:function(){return ga(Cy)},useDebugValue:Qv,useDeferredValue:function(s){var c=Cd();return To===null?c.memoizedState=s:KS(c,To.memoizedState,s)},useTransition:function(){var s=ga(Cy)[0],c=Cd().memoizedState;return[s,c]},useMutableSource:Hg,useSyncExternalStore:B_,useId:EC,unstable_isNewReconciler:!1};function oc(s,c){if(s&&s.defaultProps){c=Qe({},c),s=s.defaultProps;for(var f in s)c[f]===void 0&&(c[f]=s[f]);return c}return c}function Vb(s,c,f,y){c=s.memoizedState,f=f(y,c),f=f==null?c:Qe({},c,f),s.memoizedState=f,s.lanes===0&&(s.updateQueue.baseState=f)}var Y_={isMounted:function(s){return(s=s._reactInternals)?Yr(s)===s:!1},enqueueSetState:function(s,c,f){s=s._reactInternals;var y=dc(),w=Gg(s),x=na(y,w);x.payload=c,f!=null&&(x.callback=f),c=Ai(s,x,w),c!==null&&(_h(c,s,w,y),Fi(c,s,w))},enqueueReplaceState:function(s,c,f){s=s._reactInternals;var y=dc(),w=Gg(s),x=na(y,w);x.tag=1,x.payload=c,f!=null&&(x.callback=f),c=Ai(s,x,w),c!==null&&(_h(c,s,w,y),Fi(c,s,w))},enqueueForceUpdate:function(s,c){s=s._reactInternals;var f=dc(),y=Gg(s),w=na(f,y);w.tag=2,c!=null&&(w.callback=c),c=Ai(s,w,y),c!==null&&(_h(c,s,y,f),Fi(c,s,y))}};function qb(s,c,f,y,w,x,k){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(y,x,k):c.prototype&&c.prototype.isPureReactComponent?!Ut(f,y)||!Ut(w,x):!0}function Sy(s,c,f){var y=!1,w=wd,x=c.contextType;return typeof x=="object"&&x!==null?x=_o(x):(w=nc(c)?Ed:Rs.current,y=c.contextTypes,x=(y=y!=null)?Ws(s,w):wd),c=new c(f,x),s.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Y_,s.stateNode=c,c._reactInternals=s,y&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=w,s.__reactInternalMemoizedMaskedChildContext=x),c}function Cp(s,c,f,y){s=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(f,y),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(f,y),c.state!==s&&Y_.enqueueReplaceState(c,c.state,null)}function Iy(s,c,f,y){var w=s.stateNode;w.props=f,w.state=s.memoizedState,w.refs={},cl(s);var x=c.contextType;typeof x=="object"&&x!==null?w.context=_o(x):(x=nc(c)?Ed:Rs.current,w.context=Ws(s,x)),w.state=s.memoizedState,x=c.getDerivedStateFromProps,typeof x=="function"&&(Vb(s,c,x,f),w.state=s.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(c=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),c!==w.state&&Y_.enqueueReplaceState(w,w.state,null),Do(s,f,w,y),w.state=s.memoizedState),typeof w.componentDidMount=="function"&&(s.flags|=4194308)}function Jv(s,c){try{var f="",y=c;do f+=$e(y),y=y.return;while(y);var w=f}catch(x){w=`
45Error generating stack: `+x.message+`
46`+x.stack}return{value:s,source:c,stack:w,digest:null}}function W_(s,c,f){return{value:s,source:null,stack:f??null,digest:c??null}}function Gb(s,c){try{console.error(c.value)}catch(f){setTimeout(function(){throw f})}}var Yb=typeof WeakMap=="function"?WeakMap:Map;function Ay(s,c,f){f=na(-1,f),f.tag=3,f.payload={element:null};var y=c.value;
vendor: 40,182 bytes, line 46
46return f.callback=function(){i1||(i1=!0,rw=y),Gb(s,c)},f}function e0(s,c,f){f=na(-1,f),f.tag=3;var y=s.type.getDerivedStateFromError;if(typeof y=="function"){var w=c.value;f.payload=function(){return y(w)},f.callback=function(){Gb(s,c)}}var x=s.stateNode;return x!==null&&typeof x.componentDidCatch=="function"&&(f.callback=function(){Gb(s,c),typeof y!="function"&&(Cf===null?Cf=new Set([this]):Cf.add(this));var k=c.stack;this.componentDidCatch(c.value,{componentStack:k!==null?k:""})}),f}function Wb(s,c,f){var y=s.pingCache;if(y===null){y=s.pingCache=new Yb;var w=new Set;y.set(c,w)}else w=y.get(c),w===void 0&&(w=new Set,y.set(c,w));w.has(f)||(w.add(f),s=HC.bind(null,s,c,f),c.then(s,s))}function K_(s){do{var c;if((c=s.tag===13)&&(c=s.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return s;s=s.return}while(s!==null);return null}function QS(s,c,f,y,w){return(s.mode&1)===0?(s===c?s.flags|=65536:(s.flags|=128,f.flags|=131072,f.flags&=-52805,f.tag===1&&(f.alternate===null?f.tag=17:(c=na(-1,1),c.tag=2,Ai(f,c,1))),f.lanes|=1),s):(s.flags|=65536,s.lanes=w,s)}var JS=F.ReactCurrentOwner,Dl=!1;function ac(s,c,f,y){c.child=s===null?Tr(c,null,f,y):yn(c,s.child,f,y)}function Kb(s,c,f,y,w){f=f.render;var x=c.ref;return Ln(c,w),y=zb(s,c,f,y,x,w),f=Bu(),s!==null&&!Dl?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~w,Xa(s,c,w)):(_t&&f&&nt(c),c.flags|=1,ac(s,c,y,w),c.child)}function xC(s,c,f,y,w){if(s===null){var x=f.type;return typeof x=="function"&&!BC(x)&&x.defaultProps===void 0&&f.compare===null&&f.defaultProps===void 0?(c.tag=15,c.type=x,Z_(s,c,x,y,w)):(s=xf(f.type,null,y,c,c.mode,w),s.ref=c.ref,s.return=c,c.child=s)}if(x=s.child,(s.lanes&w)===0){var k=x.memoizedProps;if(f=f.compare,f=f!==null?f:Ut,f(k,y)&&s.ref===c.ref)return Xa(s,c,w)}return c.flags|=1,s=Pp(x,y),s.ref=c.ref,s.return=c,c.child=s}function Z_(s,c,f,y,w){if(s!==null){var x=s.memoizedProps;if(Ut(x,y)&&s.ref===c.ref)if(Dl=!1,c.pendingProps=y=x,(s.lanes&w)!==0)(s.flags&131072)!==0&&(Dl=!0);else return c.lanes=s.lanes,Xa(s,c,w)}return X_(s,c,f,y,w)}function gh(s,c,f){var y=c.pendingProps,w=y.children,x=s!==null?s.memoizedState:null;if(y.mode==="hidden")if((c.mode&1)===0)c.memoizedState={baseLanes:0,cachePool:null,transitions:null},Co(ky,Os),Os|=f;else{if((f&1073741824)===0)return s=x!==null?x.baseLanes|f:f,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:s,cachePool:null,transitions:null},c.updateQueue=null,Co(ky,Os),Os|=s,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},y=x!==null?x.baseLanes:f,Co(ky,Os),Os|=y}else x!==null?(y=x.baseLanes|f,c.memoizedState=null):y=f,Co(ky,Os),Os|=y;return ac(s,c,w,f),c.child}function Zb(s,c){var f=c.ref;(s===null&&f!==null||s!==null&&s.ref!==f)&&(c.flags|=512,c.flags|=2097152)}function X_(s,c,f,y,w){var x=nc(f)?Ed:Rs.current;return x=Ws(c,x),Ln(c,w),f=zb(s,c,f,y,x,w),y=Bu(),s!==null&&!Dl?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~w,Xa(s,c,w)):(_t&&y&&nt(c),c.flags|=1,ac(s,c,f,w),c.child)}function eI(s,c,f,y,w){if(nc(f)){var x=!0;Wv(c)}else x=!1;if(Ln(c,w),c.stateNode===null)Lo(s,c),Sy(c,f,y),Iy(c,f,y,w),y=!0;else if(s===null){var k=c.stateNode,D=c.memoizedProps;k.props=D;var q=k.context,Y=f.contextType;typeof Y=="object"&&Y!==null?Y=_o(Y):(Y=nc(f)?Ed:Rs.current,Y=Ws(c,Y));var oe=f.getDerivedStateFromProps,ye=typeof oe=="function"||typeof k.getSnapshotBeforeUpdate=="function";ye||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(D!==y||q!==Y)&&Cp(c,k,y,Y),lo=!1;var Ce=c.memoizedState;k.state=Ce,Do(c,y,k,w),q=c.memoizedState,D!==y||Ce!==q||rc.current||lo?(typeof oe=="function"&&(Vb(c,f,oe,y),q=c.memoizedState),(D=lo||qb(c,f,D,y,Ce,q,Y))?(ye||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(c.flags|=4194308)):(typeof k.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=y,c.memoizedState=q),k.props=y,k.state=q,k.context=Y,y=D):(typeof k.componentDidMount=="function"&&(c.flags|=4194308),y=!1)}else{k=c.stateNode,co(s,c),D=c.memoizedProps,Y=c.type===c.elementType?D:oc(c.type,D),k.props=Y,ye=c.pendingProps,Ce=k.context,q=f.contextType,typeof q=="object"&&q!==null?q=_o(q):(q=nc(f)?Ed:Rs.current,q=Ws(c,q));var Pe=f.getDerivedStateFromProps;(oe=typeof Pe=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(D!==ye||Ce!==q)&&Cp(c,k,y,q),lo=!1,Ce=c.memoizedState,k.state=Ce,Do(c,y,k,w);var Be=c.memoizedState;D!==ye||Ce!==Be||rc.current||lo?(typeof Pe=="function"&&(Vb(c,f,Pe,y),Be=c.memoizedState),(Y=lo||qb(c,f,Y,y,Ce,Be,q)||!1)?(oe||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(y,Be,q),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(y,Be,q)),typeof k.componentDidUpdate=="function"&&(c.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof k.componentDidUpdate!="function"||D===s.memoizedProps&&Ce===s.memoizedState||(c.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||D===s.memoizedProps&&Ce===s.memoizedState||(c.flags|=1024),c.memoizedProps=y,c.memoizedState=Be),k.props=y,k.state=Be,k.context=q,y=Y):(typeof k.componentDidUpdate!="function"||D===s.memoizedProps&&Ce===s.memoizedState||(c.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||D===s.memoizedProps&&Ce===s.memoizedState||(c.flags|=1024),y=!1)}return t0(s,c,f,y,x,w)}function t0(s,c,f,y,w,x){Zb(s,c);var k=(c.flags&128)!==0;if(!y&&!k)return w&&Uu(c,f,!1),Xa(s,c,x);y=c.stateNode,JS.current=c;var D=k&&typeof f.getDerivedStateFromError!="function"?null:y.render();return c.flags|=1,s!==null&&k?(c.child=yn(c,s.child,null,x),c.child=yn(c,null,D,x)):ac(s,c,D,x),c.memoizedState=y.state,w&&Uu(c,f,!0),c.child}function tI(s){var c=s.stateNode;c.pendingContext?L_(s,c.pendingContext,c.pendingContext!==c.context):c.context&&L_(s,c.context,!1),uo(s,c.containerInfo)}function TC(s,c,f,y,w){return xr(),Dr(w),c.flags|=256,ac(s,c,f,y),c.child}var mh={dehydrated:null,treeContext:null,retryLane:0};function Q_(s){return{baseLanes:s,cachePool:null,transitions:null}}function Xb(s,c,f){var y=c.pendingProps,w=xo.current,x=!1,k=(c.flags&128)!==0,D;if((D=k)||(D=s!==null&&s.memoizedState===null?!1:(w&2)!==0),D?(x=!0,c.flags&=-129):(s===null||s.memoizedState!==null)&&(w|=1),Co(xo,w&1),s===null)return Bt(c),s=c.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((c.mode&1)===0?c.lanes=1:s.data==="$!"?c.lanes=8:c.lanes=1073741824,null):(k=y.children,s=y.fallback,x?(y=c.mode,x=c.child,k={mode:"hidden",children:k},(y&1)===0&&x!==null?(x.childLanes=0,x.pendingProps=k):x=aw(k,y,0,null),s=Kg(s,y,f,null),x.return=c,s.return=c,x.sibling=s,c.child=x,c.child.memoizedState=Q_(f),c.memoizedState=mh,s):r0(c,k));if(w=s.memoizedState,w!==null&&(D=w.dehydrated,D!==null))return n0(s,c,k,y,D,w,f);if(x){x=y.fallback,k=c.mode,w=s.child,D=w.sibling;var q={mode:"hidden",children:y.children};return(k&1)===0&&c.child!==w?(y=c.child,y.childLanes=0,y.pendingProps=q,c.deletions=null):(y=Pp(w,q),y.subtreeFlags=w.subtreeFlags&14680064),D!==null?x=Pp(D,x):(x=Kg(x,k,f,null),x.flags|=2),x.return=c,y.return=c,y.sibling=x,c.child=y,y=x,x=c.child,k=s.child.memoizedState,k=k===null?Q_(f):{baseLanes:k.baseLanes|f,cachePool:null,transitions:k.transitions},x.memoizedState=k,x.childLanes=s.childLanes&~f,c.memoizedState=mh,y}return x=s.child,s=x.sibling,y=Pp(x,{mode:"visible",children:y.children}),(c.mode&1)===0&&(y.lanes=f),y.return=c,y.sibling=null,s!==null&&(f=c.deletions,f===null?(c.deletions=[s],c.flags|=16):f.push(s)),c.child=y,c.memoizedState=null,y}function r0(s,c){return c=aw({mode:"visible",children:c},s.mode,0,null),c.return=s,s.child=c}function Ry(s,c,f,y){return y!==null&&Dr(y),yn(c,s.child,null,f),s=r0(c,c.pendingProps.children),s.flags|=2,c.memoizedState=null,s}function n0(s,c,f,y,w,x,k){if(f)return c.flags&256?(c.flags&=-257,y=W_(Error(t(422))),Ry(s,c,k,y)):c.memoizedState!==null?(c.child=s.child,c.flags|=128,null):(x=y.fallback,w=c.mode,y=aw({mode:"visible",children:y.children},w,0,null),x=Kg(x,w,k,null),x.flags|=2,y.return=c,x.return=c,y.sibling=x,c.child=y,(c.mode&1)!==0&&yn(c,s.child,null,k),c.child.memoizedState=Q_(k),c.memoizedState=mh,x);if((c.mode&1)===0)return Ry(s,c,k,null);if(w.data==="$!"){if(y=w.nextSibling&&w.nextSibling.dataset,y)var D=y.dgst;return y=D,x=Error(t(419)),y=W_(x,y,void 0),Ry(s,c,k,y)}if(D=(k&s.childLanes)!==0,Dl||D){if(y=Xs,y!==null){switch(k&-k){case 4:w=2;break;case 16:w=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:w=32;break;case 536870912:w=268435456;break;default:w=0}w=(w&(y.suspendedLanes|k))!==0?0:w,w!==0&&w!==x.retryLane&&(x.retryLane=w,Hi(s,w),_h(y,s,w,-1))}return ow(),y=W_(Error(t(421))),Ry(s,c,k,y)}return w.data==="$?"?(c.flags|=128,c.child=s.child,c=cI.bind(null,s),w._reactRetry=c,null):(s=x.treeContext,st=Hu(w.nextSibling),ut=c,_t=!0,xt=null,s!==null&&(G[ee++]=Ie,G[ee++]=Ne,G[ee++]=he,Ie=s.id,Ne=s.overflow,he=c),c=r0(c,y.children),c.flags|=4096,c)}function Sn(s,c,f){s.lanes|=c;var y=s.alternate;y!==null&&(y.lanes|=c),li(s.return,c,f)}function i0(s,c,f,y,w){var x=s.memoizedState;x===null?s.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:y,tail:f,tailMode:w}:(x.isBackwards=c,x.rendering=null,x.renderingStartTime=0,x.last=y,x.tail=f,x.tailMode=w)}function Sa(s,c,f){var y=c.pendingProps,w=y.revealOrder,x=y.tail;if(ac(s,c,y.children,f),y=xo.current,(y&2)!==0)y=y&1|2,c.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=c.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&Sn(s,f,c);else if(s.tag===19)Sn(s,f,c);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===c)break e;for(;s.sibling===null;){if(s.return===null||s.return===c)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}y&=1}if(Co(xo,y),(c.mode&1)===0)c.memoizedState=null;else switch(w){case"forwards":for(f=c.child,w=null;f!==null;)s=f.alternate,s!==null&&cu(s)===null&&(w=f),f=f.sibling;f=w,f===null?(w=c.child,c.child=null):(w=f.sibling,f.sibling=null),i0(c,!1,w,f,x);break;case"backwards":for(f=null,w=c.child,c.child=null;w!==null;){if(s=w.alternate,s!==null&&cu(s)===null){c.child=w;break}s=w.sibling,w.sibling=f,f=w,w=s}i0(c,!0,f,null,x);break;case"together":i0(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function Lo(s,c){(c.mode&1)===0&&s!==null&&(s.alternate=null,c.alternate=null,c.flags|=2)}function Xa(s,c,f){if(s!==null&&(c.dependencies=s.dependencies),Oy|=c.lanes,(f&c.childLanes)===0)return null;if(s!==null&&c.child!==s.child)throw Error(t(153));if(c.child!==null){for(s=c.child,f=Pp(s,s.pendingProps),c.child=f,f.return=c;s.sibling!==null;)s=s.sibling,f=f.sibling=Pp(s,s.pendingProps),f.return=c;f.sibling=null}return c.child}function o0(s,c,f){switch(c.tag){case 3:tI(c),xr();break;case 5:Dc(c);break;case 1:nc(c.type)&&Wv(c);break;case 4:uo(c,c.stateNode.containerInfo);break;case 10:var y=c.type._context,w=c.memoizedProps.value;Co(Jn,y._currentValue),y._currentValue=w;break;case 13:if(y=c.memoizedState,y!==null)return y.dehydrated!==null?(Co(xo,xo.current&1),c.flags|=128,null):(f&c.child.childLanes)!==0?Xb(s,c,f):(Co(xo,xo.current&1),s=Xa(s,c,f),s!==null?s.sibling:null);Co(xo,xo.current&1);break;case 19:if(y=(f&c.childLanes)!==0,(s.flags&128)!==0){if(y)return Sa(s,c,f);c.flags|=128}if(w=c.memoizedState,w!==null&&(w.rendering=null,w.tail=null,w.lastEffect=null),Co(xo,xo.current),y)break;return null;case 22:case 23:return c.lanes=0,gh(s,c,f)}return Xa(s,c,f)}var fo,ks,SC,IC;fo=function(s,c){for(var f=c.child;f!==null;){if(f.tag===5||f.tag===6)s.appendChild(f.stateNode);else if(f.tag!==4&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===c)break;for(;f.sibling===null;){if(f.return===null||f.return===c)return;f=f.return}f.sibling.return=f.return,f=f.sibling}},ks=function(){},SC=function(s,c,f,y){var w=s.memoizedProps;if(w!==y){s=c.stateNode,Ol(ps.current);var x=null;switch(f){case"input":w=te(s,w),y=te(s,y),x=[];break;case"select":w=Qe({},w,{value:void 0}),y=Qe({},y,{value:void 0}),x=[];break;case"textarea":w=rt(s,w),y=rt(s,y),x=[];break;default:typeof w.onClick!="function"&&typeof y.onClick=="function"&&(s.onclick=pf)}wr(f,y);var k;f=null;for(Y in w)if(!y.hasOwnProperty(Y)&&w.hasOwnProperty(Y)&&w[Y]!=null)if(Y==="style"){var D=w[Y];for(k in D)D.hasOwnProperty(k)&&(f||(f={}),f[k]="")}else Y!=="dangerouslySetInnerHTML"&&Y!=="children"&&Y!=="suppressContentEditableWarning"&&Y!=="suppressHydrationWarning"&&Y!=="autoFocus"&&(i.hasOwnProperty(Y)?x||(x=[]):(x=x||[]).push(Y,null));for(Y in y){var q=y[Y];if(D=w!=null?w[Y]:void 0,y.hasOwnProperty(Y)&&q!==D&&(q!=null||D!=null))if(Y==="style")if(D){for(k in D)!D.hasOwnProperty(k)||q&&q.hasOwnProperty(k)||(f||(f={}),f[k]="");for(k in q)q.hasOwnProperty(k)&&D[k]!==q[k]&&(f||(f={}),f[k]=q[k])}else f||(x||(x=[]),x.push(Y,f)),f=q;else Y==="dangerouslySetInnerHTML"?(q=q?q.__html:void 0,D=D?D.__html:void 0,q!=null&&D!==q&&(x=x||[]).push(Y,q)):Y==="children"?typeof q!="string"&&typeof q!="number"||(x=x||[]).push(Y,""+q):Y!=="suppressContentEditableWarning"&&Y!=="suppressHydrationWarning"&&(i.hasOwnProperty(Y)?(q!=null&&Y==="onScroll"&&Eo("scroll",s),x||D===q||(x=[])):(x=x||[]).push(Y,q))}f&&(x=x||[]).push("style",f);var Y=x;(c.updateQueue=Y)&&(c.flags|=4)}},IC=function(s,c,f,y){f!==y&&(c.flags|=4)};function uu(s,c){if(!_t)switch(s.tailMode){case"hidden":c=s.tail;for(var f=null;c!==null;)c.alternate!==null&&(f=c),c=c.sibling;f===null?s.tail=null:f.sibling=null;break;case"collapsed":f=s.tail;for(var y=null;f!==null;)f.alternate!==null&&(y=f),f=f.sibling;y===null?c||s.tail===null?s.tail=null:s.tail.sibling=null:y.sibling=null}}function ms(s){var c=s.alternate!==null&&s.alternate.child===s.child,f=0,y=0;if(c)for(var w=s.child;w!==null;)f|=w.lanes|w.childLanes,y|=w.subtreeFlags&14680064,y|=w.flags&14680064,w.return=s,w=w.sibling;else for(w=s.child;w!==null;)f|=w.lanes|w.childLanes,y|=w.subtreeFlags,y|=w.flags,w.return=s,w=w.sibling;return s.subtreeFlags|=y,s.childLanes=f,c}function AC(s,c,f){var y=c.pendingProps;switch(at(c),c.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ms(c),null;case 1:return nc(c.type)&&ch(),ms(c),null;case 3:return y=c.stateNode,jo(),Ki(rc),Ki(Rs),Kv(),y.pendingContext&&(y.context=y.pendingContext,y.pendingContext=null),(s===null||s.child===null)&&(Xt(c)?c.flags|=4:s===null||s.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,xt!==null&&(iw(xt),xt=null))),ks(s,c),ms(c),null;case 5:Lc(c);var w=Ol(ic.current);if(f=c.type,s!==null&&c.stateNode!=null)SC(s,c,f,y,w),s.ref!==c.ref&&(c.flags|=512,c.flags|=2097152);else{if(!y){if(c.stateNode===null)throw Error(t(166));return ms(c),null}if(s=Ol(ps.current),Xt(c)){y=c.stateNode,f=c.type;var x=c.memoizedProps;switch(y[su]=c,y[lu]=x,s=(c.mode&1)!==0,f){case"dialog":Eo("cancel",y),Eo("close",y);break;case"iframe":case"object":case"embed":Eo("load",y);break;case"video":case"audio":for(w=0;w<ou.length;w++)Eo(ou[w],y);break;case"source":Eo("error",y);break;case"img":case"image":case"link":Eo("error",y),Eo("load",y);break;case"details":Eo("toggle",y);break;case"input":me(y,x),Eo("invalid",y);break;case"select":y._wrapperState={wasMultiple:!!x.multiple},Eo("invalid",y);break;case"textarea":bt(y,x),Eo("invalid",y)}wr(f,x),w=null;for(var k in x)if(x.hasOwnProperty(k)){var D=x[k];k==="children"?typeof D=="string"?y.textContent!==D&&(x.suppressHydrationWarning!==!0&&_p(y.textContent,D,s),w=["children",D]):typeof D=="number"&&y.textContent!==""+D&&(x.suppressHydrationWarning!==!0&&_p(y.textContent,D,s),w=["children",""+D]):i.hasOwnProperty(k)&&D!=null&&k==="onScroll"&&Eo("scroll",y)}switch(f){case"input":Oe(y),Ve(y,x,!0);break;case"textarea":Oe(y),ct(y);break;case"select":case"option":break;default:typeof x.onClick=="function"&&(y.onclick=pf)}y=w,c.updateQueue=y,y!==null&&(c.flags|=4)}else{k=w.nodeType===9?w:w.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=Me(f)),s==="http://www.w3.org/1999/xhtml"?f==="script"?(s=k.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof y.is=="string"?s=k.createElement(f,{is:y.is}):(s=k.createElement(f),f==="select"&&(k=s,y.multiple?k.multiple=!0:y.size&&(k.size=y.size))):s=k.createElementNS(s,f),s[su]=c,s[lu]=y,fo(s,c,!1,!1),c.stateNode=s;e:{switch(k=rr(f,y),f){case"dialog":Eo("cancel",s),Eo("close",s),w=y;break;case"iframe":case"object":case"embed":Eo("load",s),w=y;break;case"video":case"audio":for(w=0;w<ou.length;w++)Eo(ou[w],s);w=y;break;case"source":Eo("error",s),w=y;break;case"img":case"image":case"link":Eo("error",s),Eo("load",s),w=y;break;case"details":Eo("toggle",s),w=y;break;case"input":me(s,y),w=te(s,y),Eo("invalid",s);break;case"option":w=y;break;case"select":s._wrapperState={wasMultiple:!!y.multiple},w=Qe({},y,{value:void 0}),Eo("invalid",s);break;case"textarea":bt(s,y),w=rt(s,y),Eo("invalid",s);break;default:w=y}wr(f,w),D=w;for(x in D)if(D.hasOwnProperty(x)){var q=D[x];x==="style"?Pt(s,q):x==="dangerouslySetInnerHTML"?(q=q?q.__html:void 0,q!=null&&W(s,q)):x==="children"?typeof q=="string"?(f!=="textarea"||q!=="")&&Se(s,q):typeof q=="number"&&Se(s,""+q):x!=="suppressContentEditableWarning"&&x!=="suppressHydrationWarning"&&x!=="autoFocus"&&(i.hasOwnProperty(x)?q!=null&&x==="onScroll"&&Eo("scroll",s):q!=null&&H(s,x,q,k))}switch(f){case"input":Oe(s),Ve(s,y,!1);break;case"textarea":Oe(s),ct(s);break;case"option":y.value!=null&&s.setAttribute("value",""+qe(y.value));break;case"select":s.multiple=!!y.multiple,x=y.value,x!=null?kt(s,!!y.multiple,x,!1):y.defaultValue!=null&&kt(s,!!y.multiple,y.defaultValue,!0);break;default:typeof w.onClick=="function"&&(s.onclick=pf)}switch(f){case"button":case"input":case"select":case"textarea":y=!!y.autoFocus;break e;case"img":y=!0;break e;default:y=!1}}y&&(c.flags|=4)}c.ref!==null&&(c.flags|=512,c.flags|=2097152)}return ms(c),null;case 6:if(s&&c.stateNode!=null)IC(s,c,s.memoizedProps,y);else{if(typeof y!="string"&&c.stateNode===null)throw Error(t(166));if(f=Ol(ic.current),Ol(ps.current),Xt(c)){if(y=c.stateNode,f=c.memoizedProps,y[su]=c,(x=y.nodeValue!==f)&&(s=ut,s!==null))switch(s.tag){case 3:_p(y.nodeValue,f,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&_p(y.nodeValue,f,(s.mode&1)!==0)}x&&(c.flags|=4)}else y=(f.nodeType===9?f:f.ownerDocument).createTextNode(y),y[su]=c,c.stateNode=y}return ms(c),null;case 13:if(Ki(xo),y=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(_t&&st!==null&&(c.mode&1)!==0&&(c.flags&128)===0)yr(),xr(),c.flags|=98560,x=!1;else if(x=Xt(c),y!==null&&y.dehydrated!==null){if(s===null){if(!x)throw Error(t(318));if(x=c.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(t(317));x[su]=c}else xr(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;ms(c),x=!1}else xt!==null&&(iw(xt),xt=null),x=!0;if(!x)return c.flags&65536?c:null}return(c.flags&128)!==0?(c.lanes=f,c):(y=y!==null,y!==(s!==null&&s.memoizedState!==null)&&y&&(c.child.flags|=8192,(c.mode&1)!==0&&(s===null||(xo.current&1)!==0?ys===0&&(ys=3):ow())),c.updateQueue!==null&&(c.flags|=4),ms(c),null);case 4:return jo(),ks(s,c),s===null&&au(c.stateNode.containerInfo),ms(c),null;case 10:return bi(c.type._context),ms(c),null;case 17:return nc(c.type)&&ch(),ms(c),null;case 19:if(Ki(xo),x=c.memoizedState,x===null)return ms(c),null;if(y=(c.flags&128)!==0,k=x.rendering,k===null)if(y)uu(x,!1);else{if(ys!==0||s!==null&&(s.flags&128)!==0)for(s=c.child;s!==null;){if(k=cu(s),k!==null){for(c.flags|=128,uu(x,!1),y=k.updateQueue,y!==null&&(c.updateQueue=y,c.flags|=4),c.subtreeFlags=0,y=f,f=c.child;f!==null;)x=f,s=y,x.flags&=14680066,k=x.alternate,k===null?(x.childLanes=0,x.lanes=s,x.child=null,x.subtreeFlags=0,x.memoizedProps=null,x.memoizedState=null,x.updateQueue=null,x.dependencies=null,x.stateNode=null):(x.childLanes=k.childLanes,x.lanes=k.lanes,x.child=k.child,x.subtreeFlags=0,x.deletions=null,x.memoizedProps=k.memoizedProps,x.memoizedState=k.memoizedState,x.updateQueue=k.updateQueue,x.type=k.type,s=k.dependencies,x.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),f=f.sibling;return Co(xo,xo.current&1|2),c.child}s=s.sibling}x.tail!==null&&Ca()>yh&&(c.flags|=128,y=!0,uu(x,!1),c.lanes=4194304)}else{if(!y)if(s=cu(k),s!==null){if(c.flags|=128,y=!0,f=s.updateQueue,f!==null&&(c.updateQueue=f,c.flags|=4),uu(x,!0),x.tail===null&&x.tailMode==="hidden"&&!k.alternate&&!_t)return ms(c),null}else 2*Ca()-x.renderingStartTime>yh&&f!==1073741824&&(c.flags|=128,y=!0,uu(x,!1),c.lanes=4194304);x.isBackwards?(k.sibling=c.child,c.child=k):(f=x.last,f!==null?f.sibling=k:c.child=k,x.last=k)}return x.tail!==null?(c=x.tail,x.rendering=c,x.tail=c.sibling,x.renderingStartTime=Ca(),c.sibling=null,f=xo.current,Co(xo,y?f&1|2:f&1),c):(ms(c),null);case 22:case 23:return DC(),y=c.memoizedState!==null,s!==null&&s.memoizedState!==null!==y&&(c.flags|=8192),y&&(c.mode&1)!==0?(Os&1073741824)!==0&&(ms(c),c.subtreeFlags&6&&(c.flags|=8192)):ms(c),null;case 24:return null;case 25:return null}throw Error(t(156,c.tag))}function Uk(s,c){switch(at(c),c.tag){case 1:return nc(c.type)&&ch(),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return jo(),Ki(rc),Ki(Rs),Kv(),s=c.flags,(s&65536)!==0&&(s&128)===0?(c.flags=s&-65537|128,c):null;case 5:return Lc(c),null;case 13:if(Ki(xo),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(t(340));xr()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return Ki(xo),null;case 4:return jo(),null;case 10:return bi(c.type._context),null;case 22:case 23:return DC(),null;case 24:return null;default:return null}}var Qb=!1,sc=!1,xp=typeof WeakSet=="function"?WeakSet:Set,Lr=null;function $g(s,c){var f=s.ref;if(f!==null)if(typeof f=="function")try{f(null)}catch(y){ma(s,c,y)}else f.current=null}function RC(s,c,f){try{f()}catch(y){ma(s,c,y)}}var Jb=!1;function Bk(s,c){if(gf=pd,s=yo(),lr(s)){if("selectionStart"in s)var f={start:s.selectionStart,end:s.selectionEnd};else e:{f=(f=s.ownerDocument)&&f.defaultView||window;var y=f.getSelection&&f.getSelection();if(y&&y.rangeCount!==0){f=y.anchorNode;var w=y.anchorOffset,x=y.focusNode;y=y.focusOffset;try{f.nodeType,x.nodeType}catch{f=null;break e}var k=0,D=-1,q=-1,Y=0,oe=0,ye=s,Ce=null;t:for(;;){for(var Pe;ye!==f||w!==0&&ye.nodeType!==3||(D=k+w),ye!==x||y!==0&&ye.nodeType!==3||(q=k+y),ye.nodeType===3&&(k+=ye.nodeValue.length),(Pe=ye.firstChild)!==null;)Ce=ye,ye=Pe;for(;;){if(ye===s)break t;if(Ce===f&&++Y===w&&(D=k),Ce===x&&++oe===y&&(q=k),(Pe=ye.nextSibling)!==null)break;ye=Ce,Ce=ye.parentNode}ye=Pe}f=D===-1||q===-1?null:{start:D,end:q}}else f=null}f=f||{start:0,end:0}}else f=null;for(bp={focusedElem:s,selectionRange:f},pd=!1,Lr=c;Lr!==null;)if(c=Lr,s=c.child,(c.subtreeFlags&1028)!==0&&s!==null)s.return=c,Lr=s;else for(;Lr!==null;){c=Lr;try{var Be=c.alternate;if((c.flags&1024)!==0)switch(c.tag){case 0:case 11:case 15:break;case 1:if(Be!==null){var Ze=Be.memoizedProps,Ge=Be.memoizedState,Fe=c.stateNode,Le=Fe.getSnapshotBeforeUpdate(c.elementType===c.type?Ze:oc(c.type,Ze),Ge);Fe.__reactInternalSnapshotBeforeUpdate=Le}break;case 3:var Je=c.stateNode.containerInfo;Je.nodeType===1?Je.textContent="":Je.nodeType===9&&Je.documentElement&&Je.removeChild(Je.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(ht){ma(c,c.return,ht)}if(s=c.sibling,s!==null){s.return=c.return,Lr=s;break}Lr=c.return}return Be=Jb,Jb=!1,Be}function zg(s,c,f){var y=c.updateQueue;if(y=y!==null?y.lastEffect:null,y!==null){var w=y=y.next;do{if((w.tag&s)===s){var x=w.destroy;w.destroy=void 0,x!==void 0&&RC(c,f,x)}w=w.next}while(w!==y)}}function zu(s,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var f=c=c.next;do{if((f.tag&s)===s){var y=f.create;f.destroy=y()}f=f.next}while(f!==c)}}function J_(s){var c=s.ref;if(c!==null){var f=s.stateNode;switch(s.tag){case 5:s=f;break;default:s=f}typeof c=="function"?c(s):c.current=s}}function a0(s){var c=s.alternate;c!==null&&(s.alternate=null,a0(c)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(c=s.stateNode,c!==null&&(delete c[su],delete c[lu],delete c[vf],delete c[D_],delete c[ze])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function ew(s){return s.tag===5||s.tag===3||s.tag===4}function tw(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||ew(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function PC(s,c,f){var y=s.tag;if(y===5||y===6)s=s.stateNode,c?f.nodeType===8?f.parentNode.insertBefore(s,c):f.insertBefore(s,c):(f.nodeType===8?(c=f.parentNode,c.insertBefore(s,f)):(c=f,c.appendChild(s)),f=f._reactRootContainer,f!=null||c.onclick!==null||(c.onclick=pf));else if(y!==4&&(s=s.child,s!==null))for(PC(s,c,f),s=s.sibling;s!==null;)PC(s,c,f),s=s.sibling}function kC(s,c,f){var y=s.tag;if(y===5||y===6)s=s.stateNode,c?f.insertBefore(s,c):f.appendChild(s);else if(y!==4&&(s=s.child,s!==null))for(kC(s,c,f),s=s.sibling;s!==null;)kC(s,c,f),s=s.sibling}var dl=null,ju=!1;function Tp(s,c,f){for(f=f.child;f!==null;)hl(s,c,f),f=f.sibling}function hl(s,c,f){if(La&&typeof La.onCommitFiberUnmount=="function")try{La.onCommitFiberUnmount(ny,f)}catch{}switch(f.tag){case 5:sc||$g(f,c);case 6:var y=dl,w=ju;dl=null,Tp(s,c,f),dl=y,ju=w,dl!==null&&(ju?(s=dl,f=f.stateNode,s.nodeType===8?s.parentNode.removeChild(f):s.removeChild(f)):dl.removeChild(f.stateNode));break;case 18:dl!==null&&(ju?(s=dl,f=f.stateNode,s.nodeType===8?bd(s.parentNode,f):s.nodeType===1&&bd(s,f),hn(s)):bd(dl,f.stateNode));break;case 4:y=dl,w=ju,dl=f.stateNode.containerInfo,ju=!0,Tp(s,c,f),dl=y,ju=w;break;case 0:case 11:case 14:case 15:if(!sc&&(y=f.updateQueue,y!==null&&(y=y.lastEffect,y!==null))){w=y=y.next;do{var x=w,k=x.destroy;x=x.tag,k!==void 0&&((x&2)!==0||(x&4)!==0)&&RC(f,c,k),w=w.next}while(w!==y)}Tp(s,c,f);break;case 1:if(!sc&&($g(f,c),y=f.stateNode,typeof y.componentWillUnmount=="function"))try{y.props=f.memoizedProps,y.state=f.memoizedState,y.componentWillUnmount()}catch(D){ma(f,c,D)}Tp(s,c,f);break;case 21:Tp(s,c,f);break;case 22:f.mode&1?(sc=(y=sc)||f.memoizedState!==null,Tp(s,c,f),sc=y):Tp(s,c,f);break;default:Tp(s,c,f)}}function e1(s){var c=s.updateQueue;if(c!==null){s.updateQueue=null;var f=s.stateNode;f===null&&(f=s.stateNode=new xp),c.forEach(function(y){var w=Wg.bind(null,s,y);f.has(y)||(f.add(y),y.then(w,w))})}}function lc(s,c){var f=c.deletions;if(f!==null)for(var y=0;y<f.length;y++){var w=f[y];try{var x=s,k=c,D=k;e:for(;D!==null;){switch(D.tag){case 5:dl=D.stateNode,ju=!1;break e;case 3:dl=D.stateNode.containerInfo,ju=!0;break e;case 4:dl=D.stateNode.containerInfo,ju=!0;break e}D=D.return}if(dl===null)throw Error(t(160));hl(x,k,w),dl=null,ju=!1;var q=w.alternate;q!==null&&(q.return=null),w.return=null}catch(Y){ma(w,c,Y)}}if(c.subtreeFlags&12854)for(c=c.child;c!==null;)jg(c,s),c=c.sibling}function jg(s,c){var f=s.alternate,y=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(lc(c,s),Uc(s),y&4){try{zg(3,s,s.return),zu(3,s)}catch(Ze){ma(s,s.return,Ze)}try{zg(5,s,s.return)}catch(Ze){ma(s,s.return,Ze)}}break;case 1:lc(c,s),Uc(s),y&512&&f!==null&&$g(f,f.return);break;case 5:if(lc(c,s),Uc(s),y&512&&f!==null&&$g(f,f.return),s.flags&32){var w=s.stateNode;try{Se(w,"")}catch(Ze){ma(s,s.return,Ze)}}if(y&4&&(w=s.stateNode,w!=null)){var x=s.memoizedProps,k=f!==null?f.memoizedProps:x,D=s.type,q=s.updateQueue;if(s.updateQueue=null,q!==null)try{D==="input"&&x.type==="radio"&&x.name!=null&&Ae(w,x),rr(D,k);var Y=rr(D,x);for(k=0;k<q.length;k+=2){var oe=q[k],ye=q[k+1];oe==="style"?Pt(w,ye):oe==="dangerouslySetInnerHTML"?W(w,ye):oe==="children"?Se(w,ye):H(w,oe,ye,Y)}switch(D){case"input":_e(w,x);break;case"textarea":Xe(w,x);break;case"select":var Ce=w._wrapperState.wasMultiple;w._wrapperState.wasMultiple=!!x.multiple;var Pe=x.value;Pe!=null?kt(w,!!x.multiple,Pe,!1):Ce!==!!x.multiple&&(x.defaultValue!=null?kt(w,!!x.multiple,x.defaultValue,!0):kt(w,!!x.multiple,x.multiple?[]:"",!1))}w[lu]=x}catch(Ze){ma(s,s.return,Ze)}}break;case 6:if(lc(c,s),Uc(s),y&4){if(s.stateNode===null)throw Error(t(162));w=s.stateNode,x=s.memoizedProps;try{w.nodeValue=x}catch(Ze){ma(s,s.return,Ze)}}break;case 3:if(lc(c,s),Uc(s),y&4&&f!==null&&f.memoizedState.isDehydrated)try{hn(c.containerInfo)}catch(Ze){ma(s,s.return,Ze)}break;case 4:lc(c,s),Uc(s);break;case 13:lc(c,s),Uc(s),w=s.child,w.flags&8192&&(x=w.memoizedState!==null,w.stateNode.isHidden=x,!x||w.alternate!==null&&w.alternate.memoizedState!==null||(n1=Ca())),y&4&&e1(s);break;case 22:if(oe=f!==null&&f.memoizedState!==null,s.mode&1?(sc=(Y=sc)||oe,lc(c,s),sc=Y):lc(c,s),Uc(s),y&8192){if(Y=s.memoizedState!==null,(s.stateNode.isHidden=Y)&&!oe&&(s.mode&1)!==0)for(Lr=s,oe=s.child;oe!==null;){for(ye=Lr=oe;Lr!==null;){switch(Ce=Lr,Pe=Ce.child,Ce.tag){case 0:case 11:case 14:case 15:zg(4,Ce,Ce.return);break;case 1:$g(Ce,Ce.return);var Be=Ce.stateNode;if(typeof Be.componentWillUnmount=="function"){y=Ce,f=Ce.return;try{c=y,Be.props=c.memoizedProps,Be.state=c.memoizedState,Be.componentWillUnmount()}catch(Ze){ma(y,f,Ze)}}break;case 5:$g(Ce,Ce.return);break;case 22:if(Ce.memoizedState!==null){xd(ye);continue}}Pe!==null?(Pe.return=Ce,Lr=Pe):xd(ye)}oe=oe.sibling}e:for(oe=null,ye=s;;){if(ye.tag===5){if(oe===null){oe=ye;try{w=ye.stateNode,Y?(x=w.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none"):(D=ye.stateNode,q=ye.memoizedProps.style,k=q!=null&&q.hasOwnProperty("display")?q.display:null,D.style.display=We("display",k))}catch(Ze){ma(s,s.return,Ze)}}}else if(ye.tag===6){if(oe===null)try{ye.stateNode.nodeValue=Y?"":ye.memoizedProps}catch(Ze){ma(s,s.return,Ze)}}else if((ye.tag!==22&&ye.tag!==23||ye.memoizedState===null||ye===s)&&ye.child!==null){ye.child.return=ye,ye=ye.child;continue}if(ye===s)break e;for(;ye.sibling===null;){if(ye.return===null||ye.return===s)break e;oe===ye&&(oe=null),ye=ye.return}oe===ye&&(oe=null),ye.sibling.return=ye.return,ye=ye.sibling}}break;case 19:lc(c,s),Uc(s),y&4&&e1(s);break;case 21:break;default:lc(c,s),Uc(s)}}function Uc(s){var c=s.flags;if(c&2){try{e:{for(var f=s.return;f!==null;){if(ew(f)){var y=f;break e}f=f.return}throw Error(t(160))}switch(y.tag){case 5:var w=y.stateNode;y.flags&32&&(Se(w,""),y.flags&=-33);var x=tw(s);kC(s,x,w);break;case 3:case 4:var k=y.stateNode.containerInfo,D=tw(s);PC(s,D,k);break;default:throw Error(t(161))}}catch(q){ma(s,s.return,q)}s.flags&=-3}c&4096&&(s.flags&=-4097)}function Py(s,c,f){Lr=s,Vg(s)}function Vg(s,c,f){for(var y=(s.mode&1)!==0;Lr!==null;){var w=Lr,x=w.child;if(w.tag===22&&y){var k=w.memoizedState!==null||Qb;if(!k){var D=w.alternate,q=D!==null&&D.memoizedState!==null||sc;D=Qb;var Y=sc;if(Qb=k,(sc=q)&&!Y)for(Lr=w;Lr!==null;)k=Lr,q=k.child,k.tag===22&&k.memoizedState!==null?Sp(w):q!==null?(q.return=k,Lr=q):Sp(w);for(;x!==null;)Lr=x,Vg(x),x=x.sibling;Lr=w,Qb=D,sc=Y}s0(s)}else(w.subtreeFlags&8772)!==0&&x!==null?(x.return=w,Lr=x):s0(s)}}function s0(s){for(;Lr!==null;){var c=Lr;if((c.flags&8772)!==0){var f=c.alternate;try{if((c.flags&8772)!==0)switch(c.tag){case 0:case 11:case 15:sc||zu(5,c);break;case 1:var y=c.stateNode;if(c.flags&4&&!sc)if(f===null)y.componentDidMount();else{var w=c.elementType===c.type?f.memoizedProps:oc(c.type,f.memoizedProps);y.componentDidUpdate(w,f.memoizedState,y.__reactInternalSnapshotBeforeUpdate)}var x=c.updateQueue;x!==null&&Ta(c,x,y);break;case 3:var k=c.updateQueue;if(k!==null){if(f=null,c.child!==null)switch(c.child.tag){case 5:f=c.child.stateNode;break;case 1:f=c.child.stateNode}Ta(c,k,f)}break;case 5:var D=c.stateNode;if(f===null&&c.flags&4){f=D;var q=c.memoizedProps;switch(c.type){case"button":case"input":case"select":case"textarea":q.autoFocus&&f.focus();break;case"img":q.src&&(f.src=q.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(c.memoizedState===null){var Y=c.alternate;if(Y!==null){var oe=Y.memoizedState;if(oe!==null){var ye=oe.dehydrated;ye!==null&&hn(ye)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(t(163))}sc||c.flags&512&&J_(c)}catch(Ce){ma(c,c.return,Ce)}}if(c===s){Lr=null;break}if(f=c.sibling,f!==null){f.return=c.return,Lr=f;break}Lr=c.return}}function xd(s){for(;Lr!==null;){var c=Lr;if(c===s){Lr=null;break}var f=c.sibling;if(f!==null){f.return=c.return,Lr=f;break}Lr=c.return}}function Sp(s){for(;Lr!==null;){var c=Lr;try{switch(c.tag){case 0:case 11:case 15:var f=c.return;try{zu(4,c)}catch(q){ma(c,f,q)}break;case 1:var y=c.stateNode;if(typeof y.componentDidMount=="function"){var w=c.return;try{y.componentDidMount()}catch(q){ma(c,w,q)}}var x=c.return;try{J_(c)}catch(q){ma(c,x,q)}break;case 5:var k=c.return;try{J_(c)}catch(q){ma(c,k,q)}}}catch(q){ma(c,c.return,q)}if(c===s){Lr=null;break}var D=c.sibling;if(D!==null){D.return=c.return,Lr=D;break}Lr=c.return}}var rI=Math.ceil,l0=F.ReactCurrentDispatcher,t1=F.ReactCurrentOwner,du=F.ReactCurrentBatchConfig,Ji=0,Xs=null,Ia=null,ua=0,Os=0,ky=lh(0),ys=0,r1=null,Oy=0,qg=0,c0=0,u0=null,cc=null,n1=0,yh=1/0,Ef=null,i1=!1,rw=null,Cf=null,o1=!1,vh=null,a1=0,uc=0,OC=null,s1=-1,nw=0;function dc(){return(Ji&6)!==0?Ca():s1!==-1?s1:s1=Ca()}function Gg(s){return(s.mode&1)===0?1:(Ji&2)!==0&&ua!==0?ua&-ua:Jr.transition!==null?(nw===0&&(nw=Mv()),nw):(s=Ni,s!==0||(s=window.event,s=s===void 0?16:xg(s.type)),s)}function _h(s,c,f,y){if(50<uc)throw uc=0,OC=null,Error(t(185));Pu(s,f,y),((Ji&2)===0||s!==Xs)&&(s===Xs&&((Ji&2)===0&&(qg|=f),ys===4&&Ap(s,ua)),hc(s,y),f===1&&Ji===0&&(c.mode&1)===0&&(yh=Ca()+500,dh&&d()))}function hc(s,c){var f=s.callbackNode;Wd(s,c);var y=ri(s,s===Xs?ua:0);if(y===0)f!==null&&Rl(f),s.callbackNode=null,s.callbackPriority=0;else if(c=y&-y,s.callbackPriority!==c){if(f!=null&&Rl(f),c===1)s.tag===0?P(MC.bind(null,s)):$b(MC.bind(null,s)),ah(function(){(Ji&6)===0&&d()}),f=null;else{switch(Nv(y)){case 1:f=Wi;break;case 4:f=Xh;break;case 16:f=yg;break;case 536870912:f=us;break;default:f=yg}f=UC(f,Ip.bind(null,s))}s.callbackPriority=c,s.callbackNode=f}}function Ip(s,c){if(s1=-1,nw=0,(Ji&6)!==0)throw Error(t(327));var f=s.callbackNode;if(Ny()&&s.callbackNode!==f)return null;var y=ri(s,s===Xs?ua:0);if(y===0)return null;if((y&30)!==0||(y&s.expiredLanes)!==0||c)c=h0(s,y);else{c=y;var w=Ji;Ji|=2;var x=iI();(Xs!==s||ua!==c)&&(Ef=null,yh=Ca()+500,My(s,c));do try{Vu();break}catch(D){l1(s,D)}while(!0);Dn(),l0.current=x,Ji=w,Ia!==null?c=0:(Xs=null,ua=0,c=ys)}if(c!==0){if(c===2&&(w=oy(s),w!==0&&(y=w,c=d0(s,w))),c===1)throw f=r1,My(s,0),Ap(s,y),hc(s,Ca()),f;if(c===6)Ap(s,y);else{if(w=s.current.alternate,(y&30)===0&&!nI(w)&&(c=h0(s,y),c===2&&(x=oy(s),x!==0&&(y=x,c=d0(s,x))),c===1))throw f=r1,My(s,0),Ap(s,y),hc(s,Ca()),f;switch(s.finishedWork=w,s.finishedLanes=y,c){case 0:case 1:throw Error(t(345));case 2:Yg(s,cc,Ef);break;case 3:if(Ap(s,y),(y&130023424)===y&&(c=n1+500-Ca(),10<c)){if(ri(s,0)!==0)break;if(w=s.suspendedLanes,(w&y)!==y){dc(),s.pingedLanes|=s.suspendedLanes&w;break}s.timeoutHandle=wp(Yg.bind(null,s,cc,Ef),c);break}Yg(s,cc,Ef);break;case 4:if(Ap(s,y),(y&4194240)===y)break;for(c=s.eventTimes,w=-1;0<y;){var k=31-Ic(y);x=1<<k,k=c[k],k>w&&(w=k),y&=~x}if(y=w,y=Ca()-y,y=(120>y?120:480>y?480:1080>y?1080:1920>y?1920:3e3>y?3e3:4320>y?4320:1960*rI(y/1960))-y,10<y){s.timeoutHandle=wp(Yg.bind(null,s,cc,Ef),y);break}Yg(s,cc,Ef);break;case 5:Yg(s,cc,Ef);break;default:throw Error(t(329))}}}return hc(s,Ca()),s.callbackNode===f?Ip.bind(null,s):null}function d0(s,c){var f=u0;return s.current.memoizedState.isDehydrated&&(My(s,c).flags|=256),s=h0(s,c),s!==2&&(c=cc,cc=f,c!==null&&iw(c)),s}function iw(s){cc===null?cc=s:cc.push.apply(cc,s)}function nI(s){for(var c=s;;){if(c.flags&16384){var f=c.updateQueue;if(f!==null&&(f=f.stores,f!==null))for(var y=0;y<f.length;y++){var w=f[y],x=w.getSnapshot;w=w.value;try{if(!zt(x(),w))return!1}catch{return!1}}}if(f=c.child,c.subtreeFlags&16384&&f!==null)f.return=c,c=f;else{if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function Ap(s,c){for(c&=~c0,c&=~qg,s.suspendedLanes|=c,s.pingedLanes&=~c,s=s.expirationTimes;0<c;){var f=31-Ic(c),y=1<<f;s[f]=-1,c&=~y}}function MC(s){if((Ji&6)!==0)throw Error(t(327));Ny();var c=ri(s,0);if((c&1)===0)return hc(s,Ca()),null;var f=h0(s,c);if(s.tag!==0&&f===2){var y=oy(s);y!==0&&(c=y,f=d0(s,y))}if(f===1)throw f=r1,My(s,0),Ap(s,c),hc(s,Ca()),f;if(f===6)throw Error(t(345));return s.finishedWork=s.current.alternate,s.finishedLanes=c,Yg(s,cc,Ef),hc(s,Ca()),null}function NC(s,c){var f=Ji;Ji|=1;try{return s(c)}finally{Ji=f,Ji===0&&(yh=Ca()+500,dh&&d())}}function Rp(s){vh!==null&&vh.tag===0&&(Ji&6)===0&&Ny();var c=Ji;Ji|=1;var f=du.transition,y=Ni;try{if(du.transition=null,Ni=1,s)return s()}finally{Ni=y,du.transition=f,Ji=c,(Ji&6)===0&&d()}}function DC(){Os=ky.current,Ki(ky)}function My(s,c){s.finishedWork=null,s.finishedLanes=0;var f=s.timeoutHandle;if(f!==-1&&(s.timeoutHandle=-1,mf(f)),Ia!==null)for(f=Ia.return;f!==null;){var y=f;switch(at(y),y.tag){case 1:y=y.type.childContextTypes,y!=null&&ch();break;case 3:jo(),Ki(rc),Ki(Rs),Kv();break;case 5:Lc(y);break;case 4:jo();break;case 13:Ki(xo);break;case 19:Ki(xo);break;case 10:bi(y.type._context);break;case 22:case 23:DC()}f=f.return}if(Xs=s,Ia=s=Pp(s.current,null),ua=Os=c,ys=0,r1=null,c0=qg=Oy=0,cc=u0=null,ra!==null){for(c=0;c<ra.length;c++)if(f=ra[c],y=f.interleaved,y!==null){f.interleaved=null;var w=y.next,x=f.pending;if(x!==null){var k=x.next;x.next=w,y.next=k}f.pending=y}ra=null}return s}function l1(s,c){do{var f=Ia;try{if(Dn(),Ml.current=$u,H_){for(var y=Zo.memoizedState;y!==null;){var w=y.queue;w!==null&&(w.pending=null),y=y.next}H_=!1}if(Nl=0,gs=To=Zo=null,Lg=!1,F_=0,t1.current=null,f===null||f.return===null){ys=1,r1=c,Ia=null;break}e:{var x=s,k=f.return,D=f,q=c;if(c=ua,D.flags|=32768,q!==null&&typeof q=="object"&&typeof q.then=="function"){var Y=q,oe=D,ye=oe.tag;if((oe.mode&1)===0&&(ye===0||ye===11||ye===15)){var Ce=oe.alternate;Ce?(oe.updateQueue=Ce.updateQueue,oe.memoizedState=Ce.memoizedState,oe.lanes=Ce.lanes):(oe.updateQueue=null,oe.memoizedState=null)}var Pe=K_(k);if(Pe!==null){Pe.flags&=-257,QS(Pe,k,D,x,c),Pe.mode&1&&Wb(x,Y,c),c=Pe,q=Y;var Be=c.updateQueue;if(Be===null){var Ze=new Set;Ze.add(q),c.updateQueue=Ze}else Be.add(q);break e}else{if((c&1)===0){Wb(x,Y,c),ow();break e}q=Error(t(426))}}else if(_t&&D.mode&1){var Ge=K_(k);if(Ge!==null){(Ge.flags&65536)===0&&(Ge.flags|=256),QS(Ge,k,D,x,c),Dr(Jv(q,D));break e}}x=q=Jv(q,D),ys!==4&&(ys=2),u0===null?u0=[x]:u0.push(x),x=k;do{switch(x.tag){case 3:x.flags|=65536,c&=-c,x.lanes|=c;var Fe=Ay(x,q,c);Ks(x,Fe);break e;case 1:D=q;var Le=x.type,Je=x.stateNode;if((x.flags&128)===0&&(typeof Le.getDerivedStateFromError=="function"||Je!==null&&typeof Je.componentDidCatch=="function"&&(Cf===null||!Cf.has(Je)))){x.flags|=65536,c&=-c,x.lanes|=c;var ht=e0(x,D,c);Ks(x,ht);break e}}x=x.return}while(x!==null)}aI(f)}catch(St){c=St,Ia===f&&f!==null&&(Ia=f=f.return);continue}break}while(!0)}function iI(){var s=l0.current;return l0.current=$u,s===null?$u:s}function ow(){(ys===0||ys===3||ys===2)&&(ys=4),Xs===null||(Oy&268435455)===0&&(qg&268435455)===0||Ap(Xs,ua)}function h0(s,c){var f=Ji;Ji|=2;var y=iI();(Xs!==s||ua!==c)&&(Ef=null,My(s,c));do try{oI();break}catch(w){l1(s,w)}while(!0);if(Dn(),Ji=f,l0.current=y,Ia!==null)throw Error(t(261));return Xs=null,ua=0,ys}function oI(){for(;Ia!==null;)f0(Ia)}function Vu(){for(;Ia!==null&&!kv();)f0(Ia)}function f0(s){var c=FC(s.alternate,s,Os);s.memoizedProps=s.pendingProps,c===null?aI(s):Ia=c,t1.current=null}function aI(s){var c=s;do{var f=c.alternate;if(s=c.return,(c.flags&32768)===0){if(f=AC(f,c,Os),f!==null){Ia=f;return}}else{if(f=Uk(f,c),f!==null){f.flags&=32767,Ia=f;return}
vendor: 6,745 bytes, line 46
46if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{ys=6,Ia=null;return}}if(c=c.sibling,c!==null){Ia=c;return}Ia=c=s}while(c!==null);ys===0&&(ys=5)}function Yg(s,c,f){var y=Ni,w=du.transition;try{du.transition=null,Ni=1,sI(s,c,f,y)}finally{du.transition=w,Ni=y}return null}function sI(s,c,f,y){do Ny();while(vh!==null);if((Ji&6)!==0)throw Error(t(327));f=s.finishedWork;var w=s.finishedLanes;if(f===null)return null;if(s.finishedWork=null,s.finishedLanes=0,f===s.current)throw Error(t(177));s.callbackNode=null,s.callbackPriority=0;var x=f.lanes|f.childLanes;if(ef(s,x),s===Xs&&(Ia=Xs=null,ua=0),(f.subtreeFlags&2064)===0&&(f.flags&2064)===0||o1||(o1=!0,UC(yg,function(){return Ny(),null})),x=(f.flags&15990)!==0,(f.subtreeFlags&15990)!==0||x){x=du.transition,du.transition=null;var k=Ni;Ni=1;var D=Ji;Ji|=4,t1.current=null,Bk(s,f),jg(f,s),ll(bp),pd=!!gf,bp=gf=null,s.current=f,Py(f),Yd(),Ji=D,Ni=k,du.transition=x}else s.current=f;if(o1&&(o1=!1,vh=s,a1=w),x=s.pendingLanes,x===0&&(Cf=null),Qc(f.stateNode),hc(s,Ca()),c!==null)for(y=s.onRecoverableError,f=0;f<c.length;f++)w=c[f],y(w.value,{componentStack:w.stack,digest:w.digest});if(i1)throw i1=!1,s=rw,rw=null,s;return(a1&1)!==0&&s.tag!==0&&Ny(),x=s.pendingLanes,(x&1)!==0?s===OC?uc++:(uc=0,OC=s):uc=0,d(),null}function Ny(){if(vh!==null){var s=Nv(a1),c=du.transition,f=Ni;try{if(du.transition=null,Ni=16>s?16:s,vh===null)var y=!1;else{if(s=vh,vh=null,a1=0,(Ji&6)!==0)throw Error(t(331));var w=Ji;for(Ji|=4,Lr=s.current;Lr!==null;){var x=Lr,k=x.child;if((Lr.flags&16)!==0){var D=x.deletions;if(D!==null){for(var q=0;q<D.length;q++){var Y=D[q];for(Lr=Y;Lr!==null;){var oe=Lr;switch(oe.tag){case 0:case 11:case 15:zg(8,oe,x)}var ye=oe.child;if(ye!==null)ye.return=oe,Lr=ye;else for(;Lr!==null;){oe=Lr;var Ce=oe.sibling,Pe=oe.return;if(a0(oe),oe===Y){Lr=null;break}if(Ce!==null){Ce.return=Pe,Lr=Ce;break}Lr=Pe}}}var Be=x.alternate;if(Be!==null){var Ze=Be.child;if(Ze!==null){Be.child=null;do{var Ge=Ze.sibling;Ze.sibling=null,Ze=Ge}while(Ze!==null)}}Lr=x}}if((x.subtreeFlags&2064)!==0&&k!==null)k.return=x,Lr=k;else e:for(;Lr!==null;){if(x=Lr,(x.flags&2048)!==0)switch(x.tag){case 0:case 11:case 15:zg(9,x,x.return)}var Fe=x.sibling;if(Fe!==null){Fe.return=x.return,Lr=Fe;break e}Lr=x.return}}var Le=s.current;for(Lr=Le;Lr!==null;){k=Lr;var Je=k.child;if((k.subtreeFlags&2064)!==0&&Je!==null)Je.return=k,Lr=Je;else e:for(k=Le;Lr!==null;){if(D=Lr,(D.flags&2048)!==0)try{switch(D.tag){case 0:case 11:case 15:zu(9,D)}}catch(St){ma(D,D.return,St)}if(D===k){Lr=null;break e}var ht=D.sibling;if(ht!==null){ht.return=D.return,Lr=ht;break e}Lr=D.return}}if(Ji=w,d(),La&&typeof La.onPostCommitFiberRoot=="function")try{La.onPostCommitFiberRoot(ny,s)}catch{}y=!0}return y}finally{Ni=f,du.transition=c}}return!1}function LC(s,c,f){c=Jv(f,c),c=Ay(s,c,1),s=Ai(s,c,1),c=dc(),s!==null&&(Pu(s,1,c),hc(s,c))}function ma(s,c,f){if(s.tag===3)LC(s,s,f);else for(;c!==null;){if(c.tag===3){LC(c,s,f);break}else if(c.tag===1){var y=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&(Cf===null||!Cf.has(y))){s=Jv(f,s),s=e0(c,s,1),c=Ai(c,s,1),s=dc(),c!==null&&(Pu(c,1,s),hc(c,s));break}}c=c.return}}function HC(s,c,f){var y=s.pingCache;y!==null&&y.delete(c),c=dc(),s.pingedLanes|=s.suspendedLanes&f,Xs===s&&(ua&f)===f&&(ys===4||ys===3&&(ua&130023424)===ua&&500>Ca()-n1?My(s,0):c0|=f),hc(s,c)}function lI(s,c){c===0&&((s.mode&1)===0?c=1:(c=_i,_i<<=1,(_i&130023424)===0&&(_i=4194304)));var f=dc();s=Hi(s,c),s!==null&&(Pu(s,c,f),hc(s,f))}function cI(s){var c=s.memoizedState,f=0;c!==null&&(f=c.retryLane),lI(s,f)}function Wg(s,c){var f=0;switch(s.tag){case 13:var y=s.stateNode,w=s.memoizedState;w!==null&&(f=w.retryLane);break;case 19:y=s.stateNode;break;default:throw Error(t(314))}y!==null&&y.delete(c),lI(s,f)}var FC;FC=function(s,c,f){if(s!==null)if(s.memoizedProps!==c.pendingProps||rc.current)Dl=!0;else{if((s.lanes&f)===0&&(c.flags&128)===0)return Dl=!1,o0(s,c,f);Dl=(s.flags&131072)!==0}else Dl=!1,_t&&(c.flags&1048576)!==0&&De(c,M,c.index);switch(c.lanes=0,c.tag){case 2:var y=c.type;Lo(s,c),s=c.pendingProps;var w=Ws(c,Rs.current);Ln(c,f),w=zb(null,c,y,s,w,f);var x=Bu();return c.flags|=1,typeof w=="object"&&w!==null&&typeof w.render=="function"&&w.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,nc(y)?(x=!0,Wv(c)):x=!1,c.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,cl(c),w.updater=Y_,c.stateNode=w,w._reactInternals=c,Iy(c,y,s,f),c=t0(null,c,y,!0,x,f)):(c.tag=0,_t&&x&&nt(c),ac(null,c,w,f),c=c.child),c;case 16:y=c.elementType;e:{switch(Lo(s,c),s=c.pendingProps,w=y._init,y=w(y._payload),c.type=y,w=c.tag=Dy(y),s=oc(y,s),w){case 0:c=X_(null,c,y,s,f);break e;case 1:c=eI(null,c,y,s,f);break e;case 11:c=Kb(null,c,y,s,f);break e;case 14:c=xC(null,c,y,oc(y.type,s),f);break e}throw Error(t(306,y,""))}return c;case 0:return y=c.type,w=c.pendingProps,w=c.elementType===y?w:oc(y,w),X_(s,c,y,w,f);case 1:return y=c.type,w=c.pendingProps,w=c.elementType===y?w:oc(y,w),eI(s,c,y,w,f);case 3:e:{if(tI(c),s===null)throw Error(t(387));y=c.pendingProps,x=c.memoizedState,w=x.element,co(s,c),Do(c,y,null,f);var k=c.memoizedState;if(y=k.element,x.isDehydrated)if(x={element:y,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},c.updateQueue.baseState=x,c.memoizedState=x,c.flags&256){w=Jv(Error(t(423)),c),c=TC(s,c,y,f,w);break e}else if(y!==w){w=Jv(Error(t(424)),c),c=TC(s,c,y,f,w);break e}else for(st=Hu(c.stateNode.containerInfo.firstChild),ut=c,_t=!0,xt=null,f=Tr(c,null,y,f),c.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(xr(),y===w){c=Xa(s,c,f);break e}ac(s,c,y,f)}c=c.child}return c;case 5:return Dc(c),s===null&&Bt(c),y=c.type,w=c.pendingProps,x=s!==null?s.memoizedProps:null,k=w.children,Lu(y,w)?k=null:x!==null&&Lu(y,x)&&(c.flags|=32),Zb(s,c),ac(s,c,k,f),c.child;case 6:return s===null&&Bt(c),null;case 13:return Xb(s,c,f);case 4:return uo(c,c.stateNode.containerInfo),y=c.pendingProps,s===null?c.child=yn(c,null,y,f):ac(s,c,y,f),c.child;case 11:return y=c.type,w=c.pendingProps,w=c.elementType===y?w:oc(y,w),Kb(s,c,y,w,f);case 7:return ac(s,c,c.pendingProps,f),c.child;case 8:return ac(s,c,c.pendingProps.children,f),c.child;case 12:return ac(s,c,c.pendingProps.children,f),c.child;case 10:e:{if(y=c.type._context,w=c.pendingProps,x=c.memoizedProps,k=w.value,Co(Jn,y._currentValue),y._currentValue=k,x!==null)if(zt(x.value,k)){if(x.children===w.children&&!rc.current){c=Xa(s,c,f);break e}}else for(x=c.child,x!==null&&(x.return=c);x!==null;){var D=x.dependencies;if(D!==null){k=x.child;for(var q=D.firstContext;q!==null;){if(q.context===y){if(x.tag===1){q=na(-1,f&-f),q.tag=2;var Y=x.updateQueue;if(Y!==null){Y=Y.shared;var oe=Y.pending;
vendor: 8,682 bytes, line 46
46oe===null?q.next=q:(q.next=oe.next,oe.next=q),Y.pending=q}}x.lanes|=f,q=x.alternate,q!==null&&(q.lanes|=f),li(x.return,f,c),D.lanes|=f;break}q=q.next}}else if(x.tag===10)k=x.type===c.type?null:x.child;else if(x.tag===18){if(k=x.return,k===null)throw Error(t(341));k.lanes|=f,D=k.alternate,D!==null&&(D.lanes|=f),li(k,f,c),k=x.sibling}else k=x.child;if(k!==null)k.return=x;else for(k=x;k!==null;){if(k===c){k=null;break}if(x=k.sibling,x!==null){x.return=k.return,k=x;break}k=k.return}x=k}ac(s,c,w.children,f),c=c.child}return c;case 9:return w=c.type,y=c.pendingProps.children,Ln(c,f),w=_o(w),y=y(w),c.flags|=1,ac(s,c,y,f),c.child;case 14:return y=c.type,w=oc(y,c.pendingProps),w=oc(y.type,w),xC(s,c,y,w,f);case 15:return Z_(s,c,c.type,c.pendingProps,f);case 17:return y=c.type,w=c.pendingProps,w=c.elementType===y?w:oc(y,w),Lo(s,c),c.tag=1,nc(y)?(s=!0,Wv(c)):s=!1,Ln(c,f),Sy(c,y,w),Iy(c,y,w,f),t0(null,c,y,!0,s,f);case 19:return Sa(s,c,f);case 22:return gh(s,c,f)}throw Error(t(156,c.tag))};function UC(s,c){return Yi(s,c)}function uI(s,c,f,y){this.tag=s,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qu(s,c,f,y){return new uI(s,c,f,y)}function BC(s){return s=s.prototype,!(!s||!s.isReactComponent)}function Dy(s){if(typeof s=="function")return BC(s)?1:0;if(s!=null){if(s=s.$$typeof,s===ne)return 11;if(s===se)return 14}return 2}function Pp(s,c){var f=s.alternate;return f===null?(f=qu(s.tag,c,s.key,s.mode),f.elementType=s.elementType,f.type=s.type,f.stateNode=s.stateNode,f.alternate=s,s.alternate=f):(f.pendingProps=c,f.type=s.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=s.flags&14680064,f.childLanes=s.childLanes,f.lanes=s.lanes,f.child=s.child,f.memoizedProps=s.memoizedProps,f.memoizedState=s.memoizedState,f.updateQueue=s.updateQueue,c=s.dependencies,f.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},f.sibling=s.sibling,f.index=s.index,f.ref=s.ref,f}function xf(s,c,f,y,w,x){var k=2;if(y=s,typeof s=="function")BC(s)&&(k=1);else if(typeof s=="string")k=5;else e:switch(s){case B:return Kg(f.children,w,x,c);case Q:k=8,w|=8;break;case Z:return s=qu(12,f,c,w|2),s.elementType=Z,s.lanes=x,s;case ue:return s=qu(13,f,c,w),s.elementType=ue,s.lanes=x,s;case K:return s=qu(19,f,c,w),s.elementType=K,s.lanes=x,s;case de:return aw(f,w,x,c);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case ie:k=10;break e;case J:k=9;break e;case ne:k=11;break e;case se:k=14;break e;case be:k=16,y=null;break e}throw Error(t(130,s==null?s:typeof s,""))}return c=qu(k,f,c,w),c.elementType=s,c.type=y,c.lanes=x,c}function Kg(s,c,f,y){return s=qu(7,s,y,c),s.lanes=f,s}function aw(s,c,f,y){return s=qu(22,s,y,c),s.elementType=de,s.lanes=f,s.stateNode={isHidden:!1},s}function p0(s,c,f){return s=qu(6,s,null,c),s.lanes=f,s}function $C(s,c,f){return c=qu(4,s.children!==null?s.children:[],s.key,c),c.lanes=f,c.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},c}function $k(s,c,f,y,w){this.tag=c,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Jh(0),this.expirationTimes=Jh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jh(0),this.identifierPrefix=y,this.onRecoverableError=w,this.mutableSourceEagerHydrationData=null}function zC(s,c,f,y,w,x,k,D,q){return s=new $k(s,c,f,D,q),c===1?(c=1,x===!0&&(c|=8)):c=0,x=qu(3,null,null,c),s.current=x,x.stateNode=s,x.memoizedState={element:y,isDehydrated:f,cache:null,transitions:null,pendingSuspenseBoundaries:null},cl(x),s}function zk(s,c,f){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:y==null?null:""+y,children:s,containerInfo:c,implementation:f}}function Ly(s){if(!s)return wd;s=s._reactInternals;e:{if(Yr(s)!==s||s.tag!==1)throw Error(t(170));var c=s;do{switch(c.tag){case 3:c=c.stateNode.context;break e;case 1:if(nc(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break e}}c=c.return}while(c!==null);throw Error(t(171))}if(s.tag===1){var f=s.type;if(nc(f))return Ng(s,f,c)}return c}function kp(s,c,f,y,w,x,k,D,q){return s=zC(f,y,!0,s,w,x,k,D,q),s.context=Ly(null),f=s.current,y=dc(),w=Gg(f),x=na(y,w),x.callback=c??null,Ai(f,x,w),s.current.lanes=w,Pu(s,w,y),hc(s,y),s}function g0(s,c,f,y){var w=c.current,x=dc(),k=Gg(w);return f=Ly(f),c.context===null?c.context=f:c.pendingContext=f,c=na(x,k),c.payload={element:s},y=y===void 0?null:y,y!==null&&(c.callback=y),s=Ai(w,c,k),s!==null&&(_h(s,w,k,x),Fi(s,w,k)),k}function c1(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function jC(s,c){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var f=s.retryLane;s.retryLane=f!==0&&f<c?f:c}}function u1(s,c){jC(s,c),(s=s.alternate)&&jC(s,c)}function dI(){return null}var VC=typeof reportError=="function"?reportError:function(s){console.error(s)};function sw(s){this._internalRoot=s}Hy.prototype.render=sw.prototype.render=function(s){var c=this._internalRoot;if(c===null)throw Error(t(409));g0(s,c,null,null)},Hy.prototype.unmount=sw.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var c=s.containerInfo;Rp(function(){g0(null,s,null,null)}),c[ec]=null}};function Hy(s){this._internalRoot=s}Hy.prototype.unstable_scheduleHydration=function(s){if(s){var c=Dv();s={blockedOn:null,target:s,priority:c};for(var f=0;f<tu.length&&c!==0&&c<tu[f].priority;f++);tu.splice(f,0,s),f===0&&Eg(s)}};function Zg(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function m0(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function qC(){}function lw(s,c,f,y,w){if(w){if(typeof y=="function"){var x=y;y=function(){var Y=c1(k);x.call(Y)}}var k=kp(c,y,s,0,null,!1,!1,"",qC);return s._reactRootContainer=k,s[ec]=k.current,au(s.nodeType===8?s.parentNode:s),Rp(),k}for(;w=s.lastChild;)s.removeChild(w);if(typeof y=="function"){var D=y;y=function(){var Y=c1(q);D.call(Y)}}var q=zC(s,0,!1,null,null,!1,!1,"",qC);return s._reactRootContainer=q,s[ec]=q.current,au(s.nodeType===8?s.parentNode:s),Rp(function(){g0(c,q,f,y)}),q}function Xg(s,c,f,y,w){var x=f._reactRootContainer;if(x){var k=x;if(typeof w=="function"){var D=w;w=function(){var q=c1(k);D.call(q)}}g0(c,k,s,w)}else k=lw(f,c,s,w,y);return c1(k)}Kd=function(s){switch(s.tag){case 3:var c=s.stateNode;if(c.current.memoizedState.isDehydrated){var f=Jc(c.pendingLanes);f!==0&&(dp(c,f|1),hc(c,Ca()),(Ji&6)===0&&(yh=Ca()+500,d()))}break;case 13:Rp(function(){var y=Hi(s,1);if(y!==null){var w=dc();_h(y,s,1,w)}}),u1(s,1)}},ay=function(s){if(s.tag===13){var c=Hi(s,134217728);if(c!==null){var f=dc();_h(c,s,134217728,f)}u1(s,134217728)}},R_=function(s){if(s.tag===13){var c=Gg(s),f=Hi(s,c);if(f!==null){var y=dc();_h(f,s,c,y)}u1(s,c)}},Dv=function(){return Ni},vg=function(s,c){var f=Ni;try{return Ni=s,c()}finally{Ni=f}},Mt=function(s,c,f){switch(c){case"input":if(_e(s,f),c=f.name,f.type==="radio"&&c!=null){for(f=s;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll("input[name="+JSON.stringify(""+c)+'][type="radio"]'),c=0;c<f.length;c++){var y=f[c];if(y!==s&&y.form===s.form){var w=pi(y);if(!w)throw Error(t(90));le(y),_e(y,w)}}}break;case"textarea":Xe(s,f);break;case"select":c=f.value,c!=null&&kt(s,!!f.multiple,c,!1)}},gt=NC,Rt=Rp;var y0={usingClientEntryPoint:!1,Events:[sh,As,pi,xe,et,NC]},Fy={findFiberByHostInstance:tc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},GC={bundleType:Fy.bundleType,version:Fy.version,rendererPackageName:Fy.rendererPackageName,rendererConfig:Fy.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:F.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=mo(s),s===null?null:s.stateNode},findFiberByHostInstance:Fy.findFiberByHostInstance||dI,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
46if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var g=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!g.isDisabled&&g.supportsFiber)try{ny=g.inject(GC),La=g}catch{}}return Rf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=y0,Rf.createPortal=function(s,c){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Zg(c))throw Error(t(200));return zk(s,c,null,f)},Rf.createRoot=function(s,c){if(!Zg(s))throw Error(t(299));var f=!1,y="",w=VC;return c!=null&&(c.unstable_strictMode===!0&&(f=!0),c.identifierPrefix!==void 0&&(y=c.identifierPrefix),c.onRecoverableError!==void 0&&(w=c.onRecoverableError)),c=zC(s,1,!1,null,null,f,!1,y,w),s[ec]=c.current,au(s.nodeType===8?s.parentNode:s),new sw(c)},Rf.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var c=s._reactInternals;if(c===void 0)throw typeof s.render=="function"?Error(t(188)):(s=Object.keys(s).join(","),Error(t(268,s)));return s=mo(c),s=s===null?null:s.stateNode,s},Rf.flushSync=function(s){return Rp(s)},Rf.hydrate=function(s,c,f){if(!m0(c))throw Error(t(200));return Xg(null,s,c,!0,f)},Rf.hydrateRoot=function(s,c,f){if(!Zg(s))throw Error(t(405));var y=f!=null&&f.hydratedSources||null,w=!1,x="",k=VC;if(f!=null&&(f.unstable_strictMode===!0&&(w=!0),f.identifierPrefix!==void 0&&(x=f.identifierPrefix),f.onRecoverableError!==void 0&&(k=f.onRecoverableError)),c=kp(c,null,s,1,f??null,w,!1,x,k),s[ec]=c.current,au(s),y)for(s=0;s<y.length;s++)f=y[s],w=f._getVersion,w=w(f._source),c.mutableSourceEagerHydrationData==null?c.mutableSourceEagerHydrationData=[f,w]:c.mutableSourceEagerHydrationData.push(f,w);return new Hy(c)},Rf.render=function(s,c,f){if(!m0(c))throw Error(t(200));return Xg(null,s,c,!1,f)},Rf.unmountComponentAtNode=function(s){if(!m0(s))throw Error(t(40));return s._reactRootContainer?(Rp(function(){Xg(null,null,s,!1,function(){s._reactRootContainer=null,s[ec]=null})}),!0):!1},Rf.unstable_batchedUpdates=NC,Rf.unstable_renderSubtreeIntoContainer=function(s,c,f,y){if(!m0(f))throw Error(t(200));if(s==null||s._reactInternals===void 0)throw Error(t(38));return Xg(s,c,f,!1,y)},Rf.version="18.3.1-next-f1338f8080-20240426",Rf}var vee;function UB(){if(vee)return d$.exports;vee=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}return r(),d$.exports=kIe(),d$.exports}var _ee;function OIe(){if(_ee)return l4;_ee=1;var r=UB();return l4.createRoot=r.createRoot,l4.hydrateRoot=r.hydrateRoot,l4}var MIe=OIe();const NIe=ao(MIe);var p$,bee;function DIe(){if(bee)return p$;bee=1;var r=typeof Element<"u",e=typeof Map=="function",t=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(o,a){if(o===a)return!0;if(o&&a&&typeof o=="object"&&typeof a=="object"){if(o.constructor!==a.constructor)return!1;var l,u,h;if(Array.isArray(o)){if(l=o.length,l!=a.length)return!1;for(u=l;u--!==0;)if(!i(o[u],a[u]))return!1;return!0}var p;if(e&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(p=o.entries();!(u=p.next()).done;)if(!a.has(u.value[0]))return!1;for(p=o.entries();!(u=p.next()).done;)if(!i(u.value[1],a.get(u.value[0])))return!1;return!0}if(t&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(p=o.entries();!(u=p.next()).done;)if(!a.has(u.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if(l=o.length,l!=a.length)return!1;for(u=l;u--!==0;)if(o[u]!==a[u])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf=="function"&&typeof a.valueOf=="function")return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString=="function"&&typeof a.toString=="function")return o.toString()===a.toString();if(h=Object.keys(o),l=h.length,l!==Object.keys(a).length)return!1;for(u=l;u--!==0;)if(!Object.prototype.hasOwnProperty.call(a,h[u]))return!1;if(r&&o instanceof Element)return!1;for(u=l;u--!==0;)if(!((h[u]==="_owner"||h[u]==="__v"||h[u]==="__o")&&o.$$typeof)&&!i(o[h[u]],a[h[u]]))return!1;return!0}return o!==o&&a!==a}return p$=function(a,l){try{return i(a,l)}catch(u){if((u.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw u}},p$}var LIe=DIe();const HIe=ao(LIe);var g$,wee;
46function FIe(){if(wee)return g$;wee=1;var r=function(e,t,n,i,o,a,l,u){if(!e){var h;if(t===void 0)h=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[n,i,o,a,l,u],m=0;h=new Error(t.replace(/%s/g,function(){return p[m++]})),h.name="Invariant Violation"}throw h.framesToPop=1,h}};return g$=r,g$}var UIe=FIe();const Eee=ao(UIe);var m$,Cee;function BIe(){return Cee||(Cee=1,m$=function(e,t,n,i){var o=n?n.call(i,e,t):void 0;if(o!==void 0)return!!o;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(t),h=0;h<a.length;h++){var p=a[h];if(!u(p))return!1;var m=e[p],_=t[p];if(o=n?n.call(i,m,_,p):void 0,o===!1||o===void 0&&m!==_)return!1}return!0}),m$}var $Ie=BIe();const zIe=ao($Ie);var che=(r=>(r.BASE="base",r.BODY="body",r.HEAD="head",r.HTML="html",r.LINK="link",r.META="meta",r.NOSCRIPT="noscript",r.SCRIPT="script",r.STYLE="style",r.TITLE="title",r.FRAGMENT="Symbol(react.fragment)",r))(che||{}),y$={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},xee=Object.values(che),PW={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},jIe=Object.entries(PW).reduce((r,[e,t])=>(r[t]=e,r),{}),nv="data-rh",vR={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},_R=(r,e)=>{for(let t=r.length-1;t>=0;t-=1){const n=r[t];if(Object.prototype.hasOwnProperty.call(n,e))return n[e]}return null},VIe=r=>{let e=_R(r,"title");const t=_R(r,vR.TITLE_TEMPLATE);if(Array.isArray(e)&&(e=e.join("")),t&&e)return t.replace(/%s/g,()=>e);const n=_R(r,vR.DEFAULT_TITLE);return e||n||void 0},qIe=r=>_R(r,vR.ON_CHANGE_CLIENT_STATE)||(()=>{}),v$=(r,e)=>e.filter(t=>typeof t[r]<"u").map(t=>t[r]).reduce((t,n)=>({...t,...n}),{}),GIe=(r,e)=>e.filter(t=>typeof t.base<"u").map(t=>t.base).reverse().reduce((t,n)=>{if(!t.length){const i=Object.keys(n);for(let o=0;o<i.length;o+=1){const l=i[o].toLowerCase();if(r.indexOf(l)!==-1&&n[l])return t.concat(n)}}return t},[]),YIe=r=>console&&typeof console.warn=="function"&&console.warn(r),Xk=(r,e,t)=>{const n={};return t.filter(i=>Array.isArray(i[r])?!0:(typeof i[r]<"u"&&YIe(`Helmet: ${r} should be of type "Array". Instead found type "${typeof i[r]}"`),!1)).map(i=>i[r]).reverse().reduce((i,o)=>{const a={};o.filter(u=>{let h;const p=Object.keys(u);for(let _=0;_<p.length;_+=1){const C=p[_],T=C.toLowerCase();e.indexOf(T)!==-1&&!(h==="rel"&&u[h].toLowerCase()==="canonical")&&!(T==="rel"&&u[T].toLowerCase()==="stylesheet")&&(h=T),e.indexOf(C)!==-1&&(C==="innerHTML"||C==="cssText"||C==="itemprop")&&(h=C)}if(!h||!u[h])return!1;const m=u[h].toLowerCase();return n[h]||(n[h]={}),a[h]||(a[h]={}),n[h][m]?!1:(a[h][m]=!0,!0)}).reverse().forEach(u=>i.push(u));const l=Object.keys(a);for(let u=0;u<l.length;u+=1){const h=l[u],p={...n[h],...a[h]};n[h]=p}return i},[]).reverse()},WIe=(r,e)=>{if(Array.isArray(r)&&r.length){for(let t=0;t<r.length;t+=1)if(r[t][e])return!0}return!1},KIe=r=>({baseTag:GIe(["href"],r),bodyAttributes:v$("bodyAttributes",r),defer:_R(r,vR.DEFER),encode:_R(r,vR.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:v$("htmlAttributes",r),linkTags:Xk("link",["rel","href"],r),metaTags:Xk("meta",["name","charset","http-equiv","property","itemprop"],r),noscriptTags:Xk("noscript",["innerHTML"],r),onChangeClientState:qIe(r),scriptTags:Xk("script",["src","innerHTML"],r),styleTags:Xk("style",["cssText"],r),title:VIe(r),titleAttributes:v$("titleAttributes",r),prioritizeSeoTags:WIe(r,vR.PRIORITIZE_SEO_TAGS)}),uhe=r=>Array.isArray(r)?r.join(""):r,ZIe=(r,e)=>{const t=Object.keys(r);for(let n=0;n<t.length;n+=1)if(e[t[n]]&&e[t[n]].includes(r[t[n]]))return!0;return!1},_$=(r,e)=>Array.isArray(r)?r.reduce((t,n)=>(ZIe(n,e)?t.priority.push(n):t.default.push(n),t),{priority:[],default:[]}):{default:r,priority:[]},Tee=(r,e)=>({...r,[e]:void 0}),XIe=["noscript","script","style"],cV=(r,e=!0)=>e===!1?String(r):String(r).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),dhe=r=>Object.keys(r).reduce((e,t)=>
46{const n=typeof r[t]<"u"?`${t}="${r[t]}"`:`${t}`;return e?`${e} ${n}`:n},""),QIe=(r,e,t,n)=>{const i=dhe(t),o=uhe(e);return i?`<${r} ${nv}="true" ${i}>${cV(o,n)}</${r}>`:`<${r} ${nv}="true">${cV(o,n)}</${r}>`},JIe=(r,e,t=!0)=>e.reduce((n,i)=>{const o=i,a=Object.keys(o).filter(h=>!(h==="innerHTML"||h==="cssText")).reduce((h,p)=>{const m=typeof o[p]>"u"?p:`${p}="${cV(o[p],t)}"`;return h?`${h} ${m}`:m},""),l=o.innerHTML||o.cssText||"",u=XIe.indexOf(r)===-1;return`${n}<${r} ${nv}="true" ${a}${u?"/>":`>${l}</${r}>`}`},""),hhe=(r,e={})=>Object.keys(r).reduce((t,n)=>{const i=PW[n];return t[i||n]=r[n],t},e),eAe=(r,e,t)=>{const n={key:e,[nv]:!0},i=hhe(t,n);return[as.createElement("title",i,e)]},pH=(r,e)=>e.map((t,n)=>{const i={key:n,[nv]:!0};return Object.keys(t).forEach(o=>{const l=PW[o]||o;if(l==="innerHTML"||l==="cssText"){const u=t.innerHTML||t.cssText;i.dangerouslySetInnerHTML={__html:u}}else i[l]=t[o]}),as.createElement(r,i)}),fm=(r,e,t=!0)=>{switch(r){case"title":return{toComponent:()=>eAe(r,e.title,e.titleAttributes),toString:()=>QIe(r,e.title,e.titleAttributes,t)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>hhe(e),toString:()=>dhe(e)};default:return{toComponent:()=>pH(r,e),toString:()=>JIe(r,e,t)}}},tAe=({metaTags:r,linkTags:e,scriptTags:t,encode:n})=>{const i=_$(r,y$.meta),o=_$(e,y$.link),a=_$(t,y$.script);return{priorityMethods:{toComponent:()=>[...pH("meta",i.priority),...pH("link",o.priority),...pH("script",a.priority)],toString:()=>`${fm("meta",i.priority,n)} ${fm("link",o.priority,n)} ${fm("script",a.priority,n)}`},metaTags:i.default,linkTags:o.default,scriptTags:a.default}},rAe=r=>{const{baseTag:e,bodyAttributes:t,encode:n=!0,htmlAttributes:i,noscriptTags:o,styleTags:a,title:l="",titleAttributes:u,prioritizeSeoTags:h}=r;let{linkTags:p,metaTags:m,scriptTags:_}=r,C={toComponent:()=>{},toString:()=>""};return h&&({priorityMethods:C,linkTags:p,metaTags:m,scriptTags:_}=tAe(r)),{priority:C,base:fm("base",e,n),bodyAttributes:fm("bodyAttributes",t,n),htmlAttributes:fm("htmlAttributes",i,n),link:fm("link",p,n),meta:fm("meta",m,n),noscript:fm("noscript",o,n),script:fm("script",_,n),style:fm("style",a,n),title:fm("title",{title:l,titleAttributes:u},n)}},uV=rAe,c4=[],fhe=!!(typeof window<"u"&&window.document&&window.document.createElement),dV=class{constructor(r,e){eo(this,"instances",[]);eo(this,"canUseDOM",fhe);eo(this,"context");eo(this,"value",{setHelmet:r=>{this.context.helmet=r},helmetInstances:{get:()=>this.canUseDOM?c4:this.instances,add:r=>{(this.canUseDOM?c4:this.instances).push(r)},remove:r=>{const e=(this.canUseDOM?c4:this.instances).indexOf(r);(this.canUseDOM?c4:this.instances).splice(e,1)}}});this.context=r,this.canUseDOM=e||!1,e||(r.helmet=uV({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},nAe={},phe=as.createContext(nAe),xT,ghe=(xT=class extends V.Component{constructor(t){super(t);eo(this,"helmetData");this.helmetData=new dV(this.props.context||{},xT.canUseDOM)}render(){return as.createElement(phe.Provider,{value:this.helmetData.value},this.props.children)}},eo(xT,"canUseDOM",fhe),xT),yI=(r,e)=>{const t=document.head||document.querySelector("head"),n=t.querySelectorAll(`${r}[${nv}]`),i=[].slice.call(n),o=[];let a;return e&&e.length&&e.forEach(l=>{const u=document.createElement(r);for(const h in l)if(Object.prototype.hasOwnProperty.call(l,h))if(h==="innerHTML")u.innerHTML=l.innerHTML;else if(h==="cssText")u.styleSheet?u.styleSheet.cssText=l.cssText:u.appendChild(document.createTextNode(l.cssText));else{const p=h,m=typeof l[p]>"u"?"":l[p];u.setAttribute(h,m)}u.setAttribute(nv,"true"),i.some((h,p)=>(a=p,u.isEqualNode(h)))?i.splice(a,1):o.push(u)}),i.forEach(l=>{var u;return(u=l.parentNode)==null?void 0:u.removeChild(l)}),o.forEach(l=>t.appendChild(l)),{oldTags:i,newTags:o}},hV=(r,e)=>{const t=document.getElementsByTagName(r)[0];if(!t)return;const n=t.getAttribute(nv),i=n?n.split(","):[],o=[...i],a=Object.keys(e);for(const l of a){const u=e[l]||"";t.getAttribute(l)!==u&&t.setAttribute(l,u),i.indexOf(l)===-1&&i.push(l);const h=o.indexOf(l);h!==-1&&o.splice(h,1)}for(let l=o.length-1;l>=0;l-=1)t.removeAttribute(o[l]);i.length===o.length?t.removeAttribute(nv):t.getAttribute(nv)!==a.join(",")&&t.setAttribute(nv,a.join(","))},iAe=(r,e)=>{typeof r<"u"&&document.title!==r&&(document.title=uhe(r)),hV("title",e)},See=(r,e)=>{const{baseTag:t,bodyAttributes:n,htmlAttributes:i,linkTags:o,metaTags:a,noscriptTags:l,onChangeClientState:u,scriptTags:h,styleTags:p,title:m,titleAttributes:_}=r;hV("body",n),hV("html",i),iAe(m,_);const C={baseTag:yI("base",t),linkTags:yI("link",o),metaTags:yI("meta",a),noscriptTags:yI("noscript",l),scriptTags:yI("script",h),styleTags:yI("style",p)},T={},S={};
46Object.keys(C).forEach(R=>{const{newTags:O,oldTags:N}=C[R];O.length&&(T[R]=O),N.length&&(S[R]=C[R].oldTags)}),e&&e(),u(r,T,S)},Qk=null,oAe=r=>{Qk&&cancelAnimationFrame(Qk),r.defer?Qk=requestAnimationFrame(()=>{See(r,()=>{Qk=null})}):(See(r),Qk=null)},aAe=oAe,Iee=class extends V.Component{constructor(){super(...arguments);eo(this,"rendered",!1)}shouldComponentUpdate(e){return!zIe(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const i=KIe(e.get().map(o=>{const a={...o.props};return delete a.context,a}));ghe.canUseDOM?aAe(i):uV&&(n=uV(i)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},Y3,sAe=(Y3=class extends V.Component{shouldComponentUpdate(r){return!HIe(Tee(this.props,"helmetData"),Tee(r,"helmetData"))}mapNestedChildrenToProps(r,e){if(!e)return null;switch(r.type){case"script":case"noscript":return{innerHTML:e};case"style":return{cssText:e};default:throw new Error(`<${r.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(r,e,t,n){return{...e,[r.type]:[...e[r.type]||[],{...t,...this.mapNestedChildrenToProps(r,n)}]}}mapObjectTypeChildren(r,e,t,n){switch(r.type){case"title":return{...e,[r.type]:n,titleAttributes:{...t}};case"body":return{...e,bodyAttributes:{...t}};case"html":return{...e,htmlAttributes:{...t}};default:return{...e,[r.type]:{...t}}}}mapArrayTypeChildrenToProps(r,e){let t={...e};return Object.keys(r).forEach(n=>{t={...t,[n]:r[n]}}),t}warnOnInvalidChildren(r,e){return Eee(xee.some(t=>r.type===t),typeof r.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${xee.join(", ")} are allowed. Helmet does not support rendering <${r.type}> elements. Refer to our API for more information.`),Eee(!e||typeof e=="string"||Array.isArray(e)&&!e.some(t=>typeof t!="string"),`Helmet expects a string as a child of <${r.type}>. Did you forget to wrap your children in braces? ( <${r.type}>{\`\`}</${r.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(r,e){let t={};return as.Children.forEach(r,n=>{if(!n||!n.props)return;const{children:i,...o}=n.props,a=Object.keys(o).reduce((u,h)=>(u[jIe[h]||h]=o[h],u),{});let{type:l}=n;
46switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(n,i),l){case"Symbol(react.fragment)":e=this.mapChildrenToProps(i,e);break;case"link":case"meta":case"noscript":case"script":case"style":t=this.flattenArrayTypeChildren(n,t,a,i);break;default:e=this.mapObjectTypeChildren(n,e,a,i);break}}),this.mapArrayTypeChildrenToProps(t,e)}render(){const{children:r,...e}=this.props;let t={...e},{helmetData:n}=e;if(r&&(t=this.mapChildrenToProps(r,t)),n&&!(n instanceof dV)){const i=n;n=new dV(i.context,!0),delete t.helmetData}return n?as.createElement(Iee,{...t,context:n.value}):as.createElement(phe.Consumer,null,i=>as.createElement(Iee,{...t,context:i}))}},eo(Y3,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Y3);/**
47 * react-router v7.16.0
48 *
49 * Copyright (c) Remix Software Inc.
50 *
51 * This source code is licensed under the MIT license found in the
52 * LICENSE.md file in the root directory of this source tree.
53 *
54 * @license MIT
55 */var Aee="popstate";function Ree(r){return typeof r=="object"&&r!=null&&"pathname"in r&&"search"in r&&"hash"in r&&"state"in r&&"key"in r}function lAe(r={}){function e(n,i){var h;let o=(h=i.state)==null?void 0:h.masked,{pathname:a,search:l,hash:u}=o||n.location;return fV("",{pathname:a,search:l,hash:u},i.state&&i.state.usr||null,i.state&&i.state.key||"default",o?{pathname:n.location.pathname,search:n.location.search,hash:n.location.hash}:void 0)}function t(n,i){return typeof i=="string"?i:IN(i)}return uAe(e,t,null,r)}function xs(r,e){if(r===!1||r===null||typeof r>"u")throw new Error(e)}function Hm(r,e){if(!r){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function cAe(){return Math.random().toString(36).substring(2,10)}function Pee(r,e){return{usr:r.state,key:r.key,idx:e,masked:r.mask?{pathname:r.pathname,search:r.search,hash:r.hash}:void 0}}function fV(r,e,t=null,n,i){return{pathname:typeof r=="string"?r:r.pathname,search:"",hash:"",...typeof e=="string"?ck(e):e,state:t,key:e&&e.key||n||cAe(),mask:i}}function IN({pathname:r="/",search:e="",hash:t=""}){return e&&e!=="?"&&(r+=e.charAt(0)==="?"?e:"?"+e),t&&t!=="#"&&(r+=t.charAt(0)==="#"?t:"#"+t),r}function ck(r){let e={};if(r){let t=r.indexOf("#");t>=0&&(e.hash=r.substring(t),r=r.substring(0,t));let n=r.indexOf("?");n>=0&&(e.search=r.substring(n),r=r.substring(0,n)),r&&(e.pathname=r)}return e}function uAe(r,e,t,n={}){let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,l="POP",u=null,h=p();h==null&&(h=0,a.replaceState({...a.state,idx:h},""));function p(){return(a.state||{idx:null}).idx}function m(){l="POP";let R=p(),O=R==null?null:R-h;h=R,u&&u({action:l,location:S.location,delta:O})}function _(R,O){l="PUSH";let N=Ree(R)?R:fV(S.location,R,O);h=p()+1;let H=Pee(N,h),F=S.createHref(N.mask||N);try{a.pushState(H,"",F)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;i.location.assign(F)}o&&u&&u({action:l,location:S.location,delta:1})}function C(R,O){l="REPLACE";let N=Ree(R)?R:fV(S.location,R,O);h=p();let H=Pee(N,h),F=S.createHref(N.mask||N);a.replaceState(H,"",F),o&&u&&u({action:l,location:S.location,delta:0})}function T(R){return dAe(i,R)}let S={get action(){return l},get location(){return r(i,a)},listen(R){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(Aee,m),u=R,()=>{i.removeEventListener(Aee,m),u=null}},createHref(R){return e(i,R)},createURL:T,encodeLocation(R){let O=T(R);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:_,replace:C,go(R){return a.go(R)}};return S}function dAe(r,e,t=!1){let n="http://localhost";r&&(n=r.location.origin!=="null"?r.location.origin:r.location.href),xs(n,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:IN(e);return i=i.replace(/ $/,"%20"),!t&&i.startsWith("//")&&(i=n+i),new URL(i,n)}function mhe(r,e,t="/"){return hAe(r,e,t,!1)}function hAe(r,e,t,n,i){let o=typeof e=="string"?ck(e):e,a=sb(o.pathname||"/",t);if(a==null)return null;let l=fAe(r),u=null,h=_he(a);for(let p=0;u==null&&p<l.length;++p)u=CAe(l[p],h,n);return u}function fAe(r){let e=yhe(r);return pAe(e),e}function yhe(r,e=[],t=[],n="",i=!1){let o=(a,l,u=i,h)=>{let p={relativePath:h===void 0?a.path||"":h,caseSensitive:a.caseSensitive===!0,childrenIndex:l,route:a};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(n)&&u)return;xs(p.relativePath.startsWith(n),`Absolute route path "${p.relativePath}" nested under path "${n}
55" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(n.length)}let m=sv([n,p.relativePath]),_=t.concat(p);a.children&&a.children.length>0&&(xs(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),yhe(a.children,e,_,m,u)),!(a.path==null&&!a.index)&&e.push({path:m,score:wAe(m,a.index),routesMeta:_})};return r.forEach((a,l)=>{var u;if(a.path===""||!((u=a.path)!=null&&u.includes("?")))o(a,l);else for(let h of vhe(a.path))o(a,l,!0,h)}),e}function vhe(r){let e=r.split("/");if(e.length===0)return[];let[t,...n]=e,i=t.endsWith("?"),o=t.replace(/\?$/,"");if(n.length===0)return i?[o,""]:[o];let a=vhe(n.join("/")),l=[];return l.push(...a.map(u=>u===""?o:[o,u].join("/"))),i&&l.push(...a),l.map(u=>r.startsWith("/")&&u===""?"/":u)}function pAe(r){r.sort((e,t)=>e.score!==t.score?t.score-e.score:EAe(e.routesMeta.map(n=>n.childrenIndex),t.routesMeta.map(n=>n.childrenIndex)))}var gAe=/^:[\w-]+$/,mAe=3,yAe=2,vAe=1,_Ae=10,bAe=-2,kee=r=>r==="*";function wAe(r,e){let t=r.split("/"),n=t.length;return t.some(kee)&&(n+=bAe),e&&(n+=yAe),t.filter(i=>!kee(i)).reduce((i,o)=>i+(gAe.test(o)?mAe:o===""?vAe:_Ae),n)}function EAe(r,e){return r.length===e.length&&r.slice(0,-1).every((n,i)=>n===e[i])?r[r.length-1]-e[e.length-1]:0}function CAe(r,e,t=!1){let{routesMeta:n}=r,i={},o="/",a=[];for(let l=0;l<n.length;++l){let u=n[l],h=l===n.length-1,p=o==="/"?e:e.slice(o.length)||"/",m=wP({path:u.relativePath,caseSensitive:u.caseSensitive,end:h},p),_=u.route;if(!m&&h&&t&&!n[n.length-1].route.index&&(m=wP({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},p)),!m)return null;
55Object.assign(i,m.params),a.push({params:i,pathname:sv([o,m.pathname]),pathnameBase:AAe(sv([o,m.pathnameBase])),route:_}),m.pathnameBase!=="/"&&(o=sv([o,m.pathnameBase]))}return a}function wP(r,e){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[t,n]=xAe(r.path,r.caseSensitive,r.end),i=e.match(t);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:n.reduce((h,{paramName:p,isOptional:m},_)=>{if(p==="*"){let T=l[_]||"";a=o.slice(0,o.length-T.length).replace(/(.)\/+$/,"$1")}const C=l[_];return m&&!C?h[p]=void 0:h[p]=(C||"").replace(/%2F/g,"/"),h},{}),pathname:o,pathnameBase:a,pattern:r}}function xAe(r,e=!1,t=!0){Hm(r==="*"||!r.endsWith("*")||r.endsWith("/*"),`Route path "${r}" will be treated as if it were "${r.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/,"/*")}".`);let n=[],i="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,u,h,p)=>{if(n.push({paramName:l,isOptional:u!=null}),u){let m=p.charAt(h+a.length);return m&&m!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return r.endsWith("*")?(n.push({paramName:"*"}),i+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?i+="\\/*$":r!==""&&r!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}function _he(r){try{return r.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Hm(!1,`The URL path "${r}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),r}}function sb(r,e){if(e==="/")return r;if(!r.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,n=r.charAt(t);return n&&n!=="/"?null:r.slice(t)||"/"}var TAe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function SAe(r,e="/"){let{pathname:t,search:n="",hash:i=""}=typeof r=="string"?ck(r):r,o;return t?(t=bhe(t),t.startsWith("/")?o=Oee(t.substring(1),"/"):o=Oee(t,e)):o=e,{pathname:o,search:RAe(n),hash:PAe(i)}}function Oee(r,e){let t=MF(e).split("/");return r.split("/").forEach(i=>{i===".."?t.length>1&&t.pop():i!=="."&&t.push(i)}),t.length>1?t.join("/"):"/"}function b$(r,e,t,n){return`Cannot include a '${r}' character in a manually specified \`to.${e}\` field [${JSON.stringify(n)}].  Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function IAe(r){return r.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function kW(r){let e=IAe(r);return e.map((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)}function BB(r,e,t,n=!1){let i;typeof r=="string"?i=ck(r):(i={...r},xs(!i.pathname||!i.pathname.includes("?"),b$("?","pathname","search",i)),xs(!i.pathname||!i.pathname.includes("#"),b$("#","pathname","hash",i)),xs(!i.search||!i.search.includes("#"),b$("#","search","hash",i)));let o=r===""||i.pathname==="",a=o?"/":i.pathname,l;if(a==null)l=t;else{let m=e.length-1;if(!n&&a.startsWith("..")){let _=a.split("/");for(;_[0]==="..";)_.shift(),m-=1;i.pathname=_.join("/")}l=m>=0?e[m]:"/"}let u=SAe(i,l),h=a&&a!=="/"&&a.endsWith("/"),p=(o||a===".")&&t.endsWith("/");return!u.pathname.endsWith("/")&&(h||p)&&(u.pathname+="/"),u}var bhe=r=>r.replace(/\/\/+/g,"/"),sv=r=>bhe(r.join("/")),MF=r=>r.replace(/\/+$/,""),AAe=r=>MF(r).replace(/^\/*/,"/"),RAe=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,PAe=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r,kAe=class{constructor(r,e,t,n=!1){this.status=r,this.statusText=e||"",this.internal=n,t instanceof Error?(this.data=t.toString(),this.error=t):this.data=t}};function OAe(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}function MAe(r){let e=r.map(t=>t.route.path).filter(Boolean);return sv(e)||"/"}var whe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ehe(r,e){let t=r;if(typeof t!="string"||!TAe.test(t))return{absoluteURL:void 0,isExternal:!1,to:t};let n=t,i=!1;if(whe)try{let o=new URL(window.location.href),a=t.startsWith("//")?new URL(o.protocol+t):new URL(t),l=sb(a.pathname,e);a.origin===o.origin&&l!=null?t=l+a.search+a.hash:i=!0}catch{Hm(!1,`<Link to="${t}">
55 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:i,to:t}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Che=["POST","PUT","PATCH","DELETE"];new Set(Che);var NAe=["GET",...Che];new Set(NAe);var uk=V.createContext(null);uk.displayName="DataRouter";var $B=V.createContext(null);$B.displayName="DataRouterState";var xhe=V.createContext(!1);function DAe(){return V.useContext(xhe)}var The=V.createContext({isTransitioning:!1});The.displayName="ViewTransition";var LAe=V.createContext(new Map);LAe.displayName="Fetchers";var HAe=V.createContext(null);HAe.displayName="Await";var pg=V.createContext(null);pg.displayName="Navigation";var jD=V.createContext(null);jD.displayName="Location";var Zm=V.createContext({outlet:null,matches:[],isDataRoute:!1});Zm.displayName="Route";var OW=V.createContext(null);OW.displayName="RouteError";var She="REACT_ROUTER_ERROR",FAe="REDIRECT",UAe="ROUTE_ERROR_RESPONSE";function BAe(r){if(r.startsWith(`${She}:${FAe}:{`))try{let e=JSON.parse(r.slice(28));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.location=="string"&&typeof e.reloadDocument=="boolean"&&typeof e.replace=="boolean")return e}catch{}}function $Ae(r){if(r.startsWith(`${She}:${UAe}:{`))try{let e=JSON.parse(r.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new kAe(e.status,e.statusText,e.data)}catch{}}function zAe(r,{relative:e}={}){xs(SS(),"useHref() may be used only in the context of a <Router> component.");let{basename:t,navigator:n}=V.useContext(pg),{hash:i,pathname:o,search:a}=VD(r,{relative:e}),l=o;return t!=="/"&&(l=o==="/"?t:sv([t,o])),n.createHref({pathname:l,search:a,hash:i})}function SS(){return V.useContext(jD)!=null}function ld(){return xs(SS(),"useLocation() may be used only in the context of a <Router> component."),V.useContext(jD).location}function skt(r){xs(SS(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:e}=ld();return V.useMemo(()=>wP(r,_he(e)),[e,r])}var Ihe="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ahe(r){V.useContext(pg).static||V.useLayoutEffect(r)}function dk(){let{isDataRoute:r}=V.useContext(Zm);return r?nRe():jAe()}function jAe(){xs(SS(),"useNavigate() may be used only in the context of a <Router> component.");let r=V.useContext(uk),{basename:e,navigator:t}=V.useContext(pg),{matches:n}=V.useContext(Zm),{pathname:i}=ld(),o=JSON.stringify(kW(n)),a=V.useRef(!1);return Ahe(()=>{a.current=!0}),V.useCallback((u,h={})=>{if(Hm(a.current,Ihe),!a.current)return;if(typeof u=="number"){t.go(u);return}let p=BB(u,JSON.parse(o),i,h.relative==="path");r==null&&e!=="/"&&(p.pathname=p.pathname==="/"?e:sv([e,p.pathname])),(h.replace?t.replace:t.push)(p,h.state,h)},[e,t,o,i,r])}var Rhe=V.createContext(null);function lkt(){return V.useContext(Rhe)}function VAe(r){let e=V.useContext(Zm).outlet;return V.useMemo(()=>e&&V.createElement(Rhe.Provider,{value:r},e),[e,r])}function qAe(){let{matches:r}=V.useContext(Zm),e=r[r.length-1];return(e==null?void 0:e.params)??{}}function VD(r,{relative:e}={}){let{matches:t}=V.useContext(Zm),{pathname:n}=ld(),i=JSON.stringify(kW(t));return V.useMemo(()=>BB(r,JSON.parse(i),n,e==="path"),[r,i,n,e])}function GAe(r,e){return Phe(r,e)}function Phe(r,e,t){var R;xs(SS(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=V.useContext(pg),{matches:i}=V.useContext(Zm),o=i[i.length-1],a=o?o.params:{},l=o?o.pathname:"/",u=o?o.pathnameBase:"/",h=o&&o.route;{let O=h&&h.path||"";Ohe(l,!h||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${O}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
56
57Please change the parent <Route path="${O}"> to <Route path="${O==="/"?"*":`${O}
57/*`}">.`)}let p=ld(),m;if(e){let O=typeof e=="string"?ck(e):e;xs(u==="/"||((R=O.pathname)==null?void 0:R.startsWith(u)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${O.pathname}" was given in the \`location\` prop.`),m=O}else m=p;let _=m.pathname||"/",C=_;if(u!=="/"){let O=u.replace(/^\//,"").split("/");C="/"+_.replace(/^\//,"").split("/").slice(O.length).join("/")}let T=t&&t.state.matches.length?t.state.matches.map(O=>Object.assign(O,{route:t.manifest[O.route.id]||O.route})):mhe(r,{pathname:C});Hm(h||T!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),Hm(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let S=XAe(T&&T.map(O=>Object.assign({},O,{params:Object.assign({},a,O.params),pathname:sv([u,n.encodeLocation?n.encodeLocation(O.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?u:sv([u,n.encodeLocation?n.encodeLocation(O.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathnameBase])})),i,t);return e&&S?V.createElement(jD.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...m},navigationType:"POP"}},S):S}function YAe(){let r=rRe(),e=OAe(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),t=r instanceof Error?r.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n},a=null;return console.error("Error handled by React Router default ErrorBoundary:",r),a=V.createElement(V.Fragment,null,V.createElement("p",null,"💿 Hey developer 👋"),V.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",V.createElement("code",{style:o},"ErrorBoundary")," or"," ",V.createElement("code",{style:o},"errorElement")," prop on your route.")),V.createElement(V.Fragment,null,V.createElement("h2",null,"Unexpected Application Error!"),V.createElement("h3",{style:{fontStyle:"italic"}},e),t?V.createElement("pre",{style:i},t):null,a)}var WAe=V.createElement(YAe,null),khe=class extends V.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,e){return e.location!==r.location||e.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:e.error,location:e.location,revalidation:r.revalidation||e.revalidation}}componentDidCatch(r,e){this.props.onError?this.props.onError(r,e):console.error("React Router caught the following error during render",r)}render(){let r=this.state.error;if(this.context&&typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){const t=$Ae(r.digest);t&&(r=t)}let e=r!==void 0?V.createElement(Zm.Provider,{value:this.props.routeContext},V.createElement(OW.Provider,{value:r,children:this.props.component})):this.props.children;return this.context?V.createElement(KAe,{error:r},e):e}};khe.contextType=xhe;var w$=new WeakMap;function KAe({children:r,error:e}){let{basename:t}=V.useContext(pg);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let n=BAe(e.digest);if(n){let i=w$.get(e);if(i)throw i;let o=Ehe(n.location,t);if(whe&&!w$.get(e))if(o.isExternal||n.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const a=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:n.replace}));throw w$.set(e,a),a}return V.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return r}function ZAe({routeContext:r,match:e,children:t}){let n=V.useContext(uk);return n&&n.static&&n.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=e.route.id),V.createElement(Zm.Provider,{value:r},t)}function XAe(r,e=[],t){let n=t==null?void 0:t.state;if(r==null){if(!n)return null;if(n.errors)r=n.matches;else if(e.length===0&&!n.initialized&&n.matches.length>0)r=n.matches;else return null}let i=r,o=n==null?void 0:n.errors;if(o!=null){let p=i.findIndex(m=>m.route.id&&(o==null?void 0:o[m.route.id])!==void 0);xs(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,p+1))}let a=!1,l=-1;if(t&&n){a=n.renderFallback;for(let p=0;p<i.length;p++){let m=i[p];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(l=p),m.route.id){let{loaderData:_,errors:C}
57=n,T=m.route.loader&&!_.hasOwnProperty(m.route.id)&&(!C||C[m.route.id]===void 0);if(m.route.lazy||T){t.isStatic&&(a=!0),l>=0?i=i.slice(0,l+1):i=[i[0]];break}}}}let u=t==null?void 0:t.onError,h=n&&u?(p,m)=>{var _,C;u(p,{location:n.location,params:((C=(_=n.matches)==null?void 0:_[0])==null?void 0:C.params)??{},pattern:MAe(n.matches),errorInfo:m})}:void 0;return i.reduceRight((p,m,_)=>{let C,T=!1,S=null,R=null;n&&(C=o&&m.route.id?o[m.route.id]:void 0,S=m.route.errorElement||WAe,a&&(l<0&&_===0?(Ohe("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,R=null):l===_&&(T=!0,R=m.route.hydrateFallbackElement||null)));let O=e.concat(i.slice(0,_+1)),N=()=>{let H;return C?H=S:T?H=R:m.route.Component?H=V.createElement(m.route.Component,null):m.route.element?H=m.route.element:H=p,V.createElement(ZAe,{match:m,routeContext:{outlet:p,matches:O,isDataRoute:n!=null},children:H})};return n&&(m.route.ErrorBoundary||m.route.errorElement||_===0)?V.createElement(khe,{location:n.location,revalidation:n.revalidation,component:S,error:C,children:N(),routeC
57ontext:{outlet:null,matches:O,isDataRoute:!0},onError:h}):N()},null)}function MW(r){return`${r} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function QAe(r){let e=V.useContext(uk);return xs(e,MW(r)),e}function JAe(r){let e=V.useContext($B);return xs(e,MW(r)),e}function eRe(r){let e=V.useContext(Zm);return xs(e,MW(r)),e}function NW(r){let e=eRe(r),t=e.matches[e.matches.length-1];return xs(t.route.id,`${r} can only be used on routes that contain a unique "id"`),t.route.id}function tRe(){return NW("useRouteId")}function rRe(){var n;let r=V.useContext(OW),e=JAe("useRouteError"),t=NW("useRouteError");return r!==void 0?r:(n=e.errors)==null?void 0:n[t]}function nRe(){let{router:r}=QAe("useNavigate"),e=NW("useNavigate"),t=V.useRef(!1);return Ahe(()=>{t.current=!0}),V.useCallback(async(i,o={})=>{Hm(t.current,Ihe),t.current&&(typeof i=="number"?await r.navigate(i):await r.navigate(i,{fromRouteId:e,...o}))},[r,e])}var Mee={};function Ohe(r,e,t){!e&&!Mee[r]&&(Mee[r]=!0,Hm(!1,t))}V.memo(iRe);function iRe({routes:r,manifest:e,future:t,state:n,isStatic:i,onError:o}){return Phe(r,void 0,{manifest:e,state:n,isStatic:i,onError:o})}function Jk({to:r,replace:e,state:t,relative:n}){xs(SS(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=V.useContext(pg);Hm(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=V.useContext(Zm),{pathname:a}=ld(),l=dk(),u=BB(r,kW(o),a,n==="path"),h=JSON.stringify(u);return V.useEffect(()=>{l(JSON.parse(h),{replace:e,state:t,relative:n})},[l,h,n,e,t]),null}function ckt(r){return VAe(r.context)}function ro(r){xs(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function oRe({basename:r="/",children:e=null,location:t,navigationType:n="POP",navigator:i,static:o=!1,useTransitions:a}){xs(!SS(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=r.replace(/^\/*/,"/"),u=V.useMemo(()=>({basename:l,navigator:i,static:o,useTransitions:a,future:{}}),[l,i,o,a]);typeof t=="string"&&(t=ck(t));let{pathname:h="/",search:p="",hash:m="",state:_=null,key:C="default",mask:T}=t,S=V.useMemo(()=>{let R=sb(h,l);return R==null?null:{location:{pathname:R,search:p,hash:m,state:_,key:C,mask:T},navigationType:n}},[l,h,p,m,_,C,n,T]);return Hm(S!=null,`<Router basename="${l}"> is not able to match the URL "${h}${p}${m}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:V.createElement(pg.Provider,{value:u},V.createElement(jD.Provider,{children:e,value:S}))}function aRe({children:r,location:e}){return GAe(pV(r),e)}function pV(r,e=[]){let t=[];return V.Children.forEach(r,(n,i)=>{if(!V.isValidElement(n))return;let o=[...e,i];if(n.type===V.Fragment){t.push.apply(t,pV(n.props.children,o));return}xs(n.type===ro,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),xs(!n.props.index||!n.props.children,"An index route cannot have child routes.");let a={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=pV(n.props.children,o)),t.push(a)}),t}var gH="get",mH="application/x-www-form-urlencoded";function zB(r){return typeof HTMLElement<"u"&&r instanceof HTMLElement}function sRe(r){return zB(r)&&r.tagName.toLowerCase()==="button"}function lRe(r){return zB(r)&&r.tagName.toLowerCase()==="form"}function cRe(r){return zB(r)&&r.tagName.toLowerCase()==="input"}function uRe(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}function dRe(r,e){return r.button===0&&(!e||e==="_self")&&!uRe(r)}function gV(r=""){return new URLSearchParams(typeof r=="string"||Array.isArray(r)||r instanceof URLSearchParams?r:Object.keys(r).reduce((e,t)=>
57{let n=r[t];return e.concat(Array.isArray(n)?n.map(i=>[t,i]):[[t,n]])},[]))}function hRe(r,e){let t=gV(r);return e&&e.forEach((n,i)=>{t.has(i)||e.getAll(i).forEach(o=>{t.append(i,o)})}),t}var u4=null;function fRe(){if(u4===null)try{new FormData(document.createElement("form"),0),u4=!1}catch{u4=!0}return u4}var pRe=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function E$(r){return r!=null&&!pRe.has(r)?(Hm(!1,`"${r}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${mH}"`),null):r}function gRe(r,e){let t,n,i,o,a;if(lRe(r)){let l=r.getAttribute("action");n=l?sb(l,e):null,t=r.getAttribute("method")||gH,i=E$(r.getAttribute("enctype"))||mH,o=new FormData(r)}else if(sRe(r)||cRe(r)&&(r.type==="submit"||r.type==="image")){let l=r.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=r.getAttribute("formaction")||l.getAttribute("action");if(n=u?sb(u,e):null,t=r.getAttribute("formmethod")||l.getAttribute("method")||gH,i=E$(r.getAttribute("formenctype"))||E$(l.getAttribute("enctype"))||mH,o=new FormData(l,r),!fRe()){let{name:h,type:p,value:m}=r;if(p==="image"){let _=h?`${h}.`:"";o.append(`${_}x`,"0"),o.append(`${_}y`,"0")}else h&&o.append(h,m)}}else{if(zB(r))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=gH,n=null,i=mH,a=r}return o&&i==="text/plain"&&(a=o,o=void 0),{action:n,method:t.toLowerCase(),encType:i,formData:o,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function DW(r,e){if(r===!1||r===null||typeof r>"u")throw new Error(e)}function Mhe(r,e,t,n){let i=typeof r=="string"?new URL(r,typeof window>"u"?"server://singlefetch/":window.location.origin):r;return t?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${n}`:i.pathname=`${i.pathname}.${n}`:i.pathname==="/"?i.pathname=`_root.${n}`:e&&sb(i.pathname,e)==="/"?i.pathname=`${MF(e)}/_root.${n}`:i.pathname=`${MF(i.pathname)}.${n}`,i}async function mRe(r,e){if(r.id in e)return e[r.id];try{let t=await import(r.module);return e[r.id]=t,t}catch(t){return console.error(`Error loading route module \`${r.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function yRe(r){return r==null?!1:r.href==null?r.rel==="preload"&&typeof r.imageSrcSet=="string"&&typeof r.imageSizes=="string":typeof r.rel=="string"&&typeof r.href=="string"}async function vRe(r,e,t){let n=await Promise.all(r.map(async i=>{let o=e.routes[i.route.id];if(o){let a=await mRe(o,t);return a.links?a.links():[]}return[]}));return ERe(n.flat(1).filter(yRe).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Nee(r,e,t,n,i,o){let a=(u,h)=>t[h]?u.route.id!==t[h].route.id:!0,l=(u,h)=>{var p;return t[h].pathname!==u.pathname||((p=t[h].route.path)==null?void 0:p.endsWith("*"))&&t[h].params["*"]!==u.params["*"]};return o==="assets"?e.filter((u,h)=>a(u,h)||l(u,h)):o==="data"?e.filter((u,h)=>{var m;let p=n.routes[u.route.id];if(!p||!p.hasLoader)return!1;if(a(u,h)||l(u,h))return!0;if(u.route.shouldRevalidate){let _=u.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((m=t[0])==null?void 0:m.params)||{},nextUrl:new URL(r,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof _=="boolean")return _}return!0}):[]}function _Re(r,e,{includeHydrateFallback:t}={}){return bRe(r.map(n=>{let i=e.routes[n.route.id];if(!i)return[];let o=[i.module];return i.clientActionModule&&(o=o.concat(i.clientActionModule)),i.clientLoaderModule&&(o=o.concat(i.clientLoaderModule)),t&&i.hydrateFallbackModule&&(o=o.concat(i.hydrateFallbackModule)),i.imports&&(o=o.concat(i.imports)),o}).flat(1))}function bRe(r){return[...new Set(r)]}function wRe(r){let e={},t=Object.keys(r).sort();for(let n of t)e[n]=r[n];return e}function ERe(r,e){let t=new Set;return new Set(e),r.reduce((n,i)=>{let o=JSON.stringify(wRe(i));
57return t.has(o)||(t.add(o),n.push({key:o,link:i})),n},[])}function LW(){let r=V.useContext(uk);return DW(r,"You must render this element inside a <DataRouterContext.Provider> element"),r}function CRe(){let r=V.useContext($B);return DW(r,"You must render this element inside a <DataRouterStateContext.Provider> element"),r}var HW=V.createContext(void 0);HW.displayName="FrameworkContext";function FW(){let r=V.useContext(HW);return DW(r,"You must render this element inside a <HydratedRouter> element"),r}function xRe(r,e){let t=V.useContext(HW),[n,i]=V.useState(!1),[o,a]=V.useState(!1),{onFocus:l,onBlur:u,onMouseEnter:h,onMouseLeave:p,onTouchStart:m}=e,_=V.useRef(null);V.useEffect(()=>{if(r==="render"&&a(!0),r==="viewport"){let S=O=>{O.forEach(N=>{a(N.isIntersecting)})},R=new IntersectionObserver(S,{threshold:.5});return _.current&&R.observe(_.current),()=>{R.disconnect()}}},[r]),V.useEffect(()=>{if(n){let S=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(S)}}},[n]);let C=()=>{i(!0)},T=()=>{i(!1),a(!1)};return t?r!=="intent"?[o,_,{}]:[o,_,{onFocus:e2(l,C),onBlur:e2(u,T),onMouseEnter:e2(h,C),onMouseLeave:e2(p,T),onTouchStart:e2(m,C)}]:[!1,_,{}]}function e2(r,e){return t=>{r&&r(t),t.defaultPrevented||e(t)}}function TRe({page:r,...e}){let t=DAe(),{router:n}=LW(),i=V.useMemo(()=>mhe(n.routes,r,n.basename),[n.routes,r,n.basename]);return i?t?V.createElement(IRe,{page:r,matches:i,...e}):V.createElement(ARe,{page:r,matches:i,...e}):null}function SRe(r){let{manifest:e,routeModules:t}=FW(),[n,i]=V.useState([]);return V.useEffect(()=>{let o=!1;return vRe(r,e,t).then(a=>{o||i(a)}),()=>{o=!0}},[r,e,t]),n}function IRe({page:r,matches:e,...t}){let n=ld(),{future:i}=FW(),{basename:o}=LW(),a=V.useMemo(()=>{if(r===n.pathname+n.search+n.hash)return[];let l=Mhe(r,o,i.v8_trailingSlashAwareDataRequests,"rsc"),u=!1,h=[];for(let p of e)typeof p.route.shouldRevalidate=="function"?u=!0:h.push(p.route.id);return u&&h.length>0&&l.searchParams.set("_routes",h.join(",")),[l.pathname+l.search]},[o,i.v8_trailingSlashAwareDataRequests,r,n,e]);return V.createElement(V.Fragment,null,a.map(l=>V.createElement("link",{key:l,rel:"prefetch",as:"fetch",href:l,...t})))}function ARe({page:r,matches:e,...t}){let n=ld(),{future:i,manifest:o,routeModules:a}=FW(),{basename:l}=LW(),{loaderData:u,matches:h}=CRe(),p=V.useMemo(()=>Nee(r,e,h,o,n,"data"),[r,e,h,o,n]),m=V.useMemo(()=>Nee(r,e,h,o,n,"assets"),[r,e,h,o,n]),_=V.useMemo(()=>{if(r===n.pathname+n.search+n.hash)return[];let S=new Set,R=!1;if(e.forEach(N=>{var F;let H=o.routes[N.route.id];!H||!H.hasLoader||(!p.some(j=>j.route.id===N.route.id)&&N.route.id in u&&((F=a[N.route.id])!=null&&F.shouldRevalidate)||H.hasClientLoader?R=!0:S.add(N.route.id))}),S.size===0)return[];let O=Mhe(r,l,i.v8_trailingSlashAwareDataRequests,"data");return R&&S.size>0&&O.searchParams.set("_routes",e.filter(N=>S.has(N.route.id)).map(N=>N.route.id).join(",")),[O.pathname+O.search]},[l,i.v8_trailingSlashAwareDataRequests,u,n,o,p,e,r,a]),C=V.useMemo(()=>_Re(m,o),[m,o]),T=SRe(m);return V.createElement(V.Fragment,null,_.map(S=>V.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...t})),C.map(S=>V.createElement("link",{key:S,rel:"modulepreload",href:S,...t})),T.map(({key:S,link:R})=>V.createElement("link",{key:S,nonce:t.nonce,...R,crossOrigin:R.crossOrigin??t.crossOrigin})))}function RRe(...r){return e=>{r.forEach(t=>{typeof t=="function"?t(e):t!=null&&(t.current=e)})}}var PRe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{PRe&&(window.__reactRouterVersion="7.16.0")}catch{}function kRe({basename:r,children:e,useTransitions:t,window:n}){let i=V.useRef();i.current==null&&(i.current=lAe({window:n,v5Compat:!0}));let o=i.current,[a,l]=V.useState({action:o.action,location:o.location}),u=V.useCallback(h=>{t===!1?l(h):V.startTransition(()=>l(h))},[t]);return V.useLayoutEffect(()=>o.listen(u),[o,u]),V.createElement(oRe,{basename:r,children:e,location:a.location,navigationType:a.action,navigator:o,useTransitions:t})}var Nhe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dhe=V.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:i,reloadDocument:o,replace:a,mask:l,state:u,target:h,to:p,preventScrollReset:m,viewTransition:_,defaultShouldRevalidate:C,...T},S){let{basename:R,navigator:O,useTransitions:N}=V.useContext(pg),H=typeof p=="string"&&Nhe.test(p),F=Ehe(p,R);p=F.to;let j=zAe(p,{relative:i}),L=ld(),B=null;if(l){let se=BB(l,[],L.mask?L.mask.pathname:"/",!0);R!=="/"&&(se.pathname=se.pathname==="/"?R:sv([R,se.pathname])),B=O.createHref(se)}let[Q,Z,ie]=xRe(n,T),J=NRe(p,{replace:a,mask:l,state:u,target:h,preventScrollReset:m,relative:i,viewTransition:_,defaultShouldRevalidate:C,useTransitions:N});function ne(se){e&&e(se),se.defaultPrevented||J(se)}let ue=!(F.isExternal||o),K=V.createElement("a",{...T,...ie,href:(ue?B:void 0)||F.absoluteURL||j,onClick:ue?ne:e,ref:RRe(S,Z),target:h,"data-discover":!H&&t==="render"?"true":void 0});return Q&&!H?V.createElement(V.Fragment,null,K,V.createElement(TRe,{page:j})):K});Dhe.displayName="Link";var Lhe=V.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:i=!1,style:o,to:a,viewTransition:l,children:u,...h},p){let m=VD(a,{relative:h.relative}),_=ld(),C=V.useContext($B),{navigator:T,basename:S}=V.useContext(pg),R=C!=null&&URe(m)&&l===!0,O=T.encodeLocation?T.encodeLocation(m).pathname:m.pathname,N=_.pathname,H=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;t||(N=N.toLowerCase(),H=H?H.toLowerCase():null,O=O.toLowerCase()),H&&S&&(H=sb(H,S)||H);const F=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let j=N===O||!i&&N.startsWith(O)&&N.charAt(F)==="/",L=H!=null&&(H===O||!i&&H.startsWith(O)&&H.charAt(O.length)==="/"),B={isActive:j,isPending:L,isTransitioning:R},Q=j?e:void 0,Z;typeof n=="function"?Z=n(B):Z=[n,j?"active":null,L?"pending":null,R?"transitioning":null].filter(
57Boolean).join(" ");let ie=typeof o=="function"?o(B):o;return V.createElement(Dhe,{...h,"aria-current":Q,className:Z,ref:p,style:ie,to:a,viewTransition:l},typeof u=="function"?u(B):u)});Lhe.displayName="NavLink";var ORe=V.forwardRef(({discover:r="render",fetcherKey:e,navigate:t,reloadDocument:n,replace:i,state:o,method:a=gH,action:l,onSubmit:u,relative:h,preventScrollReset:p,viewTransition:m,defaultShouldRevalidate:_,...C},T)=>{let{useTransitions:S}=V.useContext(pg),R=HRe(),O=FRe(l,{relative:h}),N=a.toLowerCase()==="get"?"get":"post",H=typeof l=="string"&&Nhe.test(l),F=j=>{if(u&&u(j),j.defaultPrevented)return;j.preventDefault();let L=j.nativeEvent.submitter,B=(L==null?void 0:L.getAttribute("formmethod"))||a,Q=()=>R(L||j.currentTarget,{fetcherKey:e,method:B,navigate:t,replace:i,state:o,relative:h,preventScrollReset:p,viewTransition:m,defaultShouldRevalidate:_});S&&t!==!1?V.startTransition(()=>Q()):Q()};return V.createElement("form",{ref:T,method:N,action:O,onSubmit:n?u:F,...C,"data-discover":!H&&r==="render"?"true":void 0})});ORe.displayName="Form";function MRe(r){return`${r} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Hhe(r){let e=V.useContext(uk);return xs(e,MRe(r)),e}function NRe(r,{target:e,replace:t,mask:n,state:i,preventScrollReset:o,relative:a,viewTransition:l,defaultShouldRevalidate:u,useTransitions:h}={}){let p=dk(),m=ld(),_=VD(r,{relative:a});return V.useCallback(C=>{if(dRe(C,e)){C.preventDefault();let T=t!==void 0?t:IN(m)===IN(_),S=()=>p(r,{replace:T,mask:n,state:i,preventScrollReset:o,relative:a,viewTransition:l,defaultShouldRevalidate:u});h?V.startTransition(()=>S()):S()}},[m,p,_,t,n,i,e,r,o,a,l,u,h])}function UW(r){Hm(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let e=V.useRef(gV(r)),t=V.useRef(!1),n=ld(),i=V.useMemo(()=>hRe(n.search,t.current?null:e.current),[n.search]),o=dk(),a=V.useCallback((l,u)=>{const h=gV(typeof l=="function"?l(new URLSearchParams(i)):l);t.current=!0,o("?"+h,u)},[o,i]);return[i,a]}var DRe=0,LRe=()=>`__${String(++DRe)}__`;function HRe(){let{router:r}=Hhe("useSubmit"),{basename:e}=V.useContext(pg),t=tRe(),n=r.fetch,i=r.navigate;return V.useCallback(async(o,a={})=>{let{action:l,method:u,encType:h,formData:p,body:m}=gRe(o,e);if(a.navigate===!1){let _=a.fetcherKey||LRe();await n(_,t,a.action||l,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:p,body:m,formMethod:a.method||u,formEncType:a.encType||h,flushSync:a.flushSync})}else await i(a.action||l,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:p,body:m,formMethod:a.method||u,formEncType:a.encType||h,replace:a.replace,state:a.state,fromRouteId:t,flushSync:a.flushSync,viewTransition:a.viewTransition})},[n,i,e,t])}function FRe(r,{relative:e}={}){let{basename:t}=V.useContext(pg),n=V.useContext(Zm);xs(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),o={...VD(r||".",{relative:e})},a=ld();if(r==null){o.search=a.search;let l=new URLSearchParams(o.search),u=l.getAll("index");if(u.some(p=>p==="")){l.delete("index"),u.filter(m=>m).forEach(m=>l.append("index",m));let p=l.toString();o.search=p?`?${p}`:""}}return(!r||r===".")&&i.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),t!=="/"&&(o.pathname=o.pathname==="/"?t:sv([t,o.pathname])),IN(o)}function URe(r,{relative:e}={}){let t=V.useContext(The);xs(t!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Hhe("useViewTransitionState"),i=VD(r,{relative:e});if(!t.isTransitioning)return!1;let o=sb(t.currentLocation.pathname,n)||t.currentLocation.pathname,a=sb(t.nextLocation.pathname,n)||t.nextLocation.pathname;return wP(i.pathname,a)!=null||wP(i.pathname,o)!=null}/*! @azure/msal-common v14.16.1 2025-08-05 */const er={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",NOT_AVAILABLE:"Not Available",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},d4={CLIENT_ERROR_RANGE_START:400,CLIENT_ERROR_RANGE_END:499,SERVER_ERROR_RANGE_START:500,SERVER_ERROR_RANGE_END:599},hk=[er.OPENID_SCOPE,er.PROFILE_SCOPE,er.OFFLINE_ACCESS_SCOPE],Dee=[...hk,er.EMAIL_SCOPE],Rh={CONTENT_TYPE:"Content-Type",CONTENT_LENGTH:"Content-Length",RETRY_AFTER:"Retry-After",CCS_HEADER:"X-AnchorMailbox",WWWAuthenticate:"WWW-Authenticate",AuthenticationInfo:"Authentication-Info",X_MS_REQUEST_ID:"x-ms-request-id",X_MS_HTTP_VERSION:"x-ms-httpver"},pu={ID_TOKEN:"idtoken",CLIENT_INFO:"client.info",ADAL_ID_TOKEN:"adal.idtoken",ERROR:"error",ERROR_DESC:"error.description",ACTIVE_ACCOUNT:"active-account",ACTIVE_ACCOUNT_FILTERS:"active-account-filters"},wE={COMMON:"common",ORGANIZATIONS:"organizations",CONSUMERS:"consumers"},h4={ACCESS_TOKEN:"access_token",XMS_CC:"xms_cc"},bu={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},Lee={PLAIN:"plain",S256:"S256"},qD={QUERY:"query",FRAGMENT:"fragment"},BRe={...qD},Fhe={AUTHORIZATION_CODE_GRANT:"authorization_code",REFRESH_TOKEN_GRANT:"refresh_token"},f4={MSSTS_ACCOUNT_TYPE:"MSSTS",ADFS_ACCOUNT_TYPE:"ADFS",GENERIC_ACCOUNT_TYPE:"Generic"},Hd={CACHE_KEY_SEPARATOR:"-",CLIENT_INFO_SEPARATOR:"."},wi={ID_TOKEN:"IdToken",ACCESS_TOKEN:"AccessToken",ACCESS_TOKEN_WITH_AUTH_SCHEME:"AccessToken_With_AuthScheme",REFRESH_TOKEN:"RefreshToken"},BW="appmetadata",$Re="client_info",OM="1",NF={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24}
57,$p={CONFIG:"config",CACHE:"cache",NETWORK:"network",HARDCODED_VALUES:"hardcoded_values"},Zu={SCHEMA_VERSION:5,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},Na={BEARER:"Bearer",POP:"pop",SSH:"ssh-cert"},MM={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},Hee={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},Fee={username:"username",password:"password"},p4={httpSuccess:200,httpBadRequest:400},vI={FAILED_AUTO_DETECTION:"1",INTERNAL_CACHE:"2",ENVIRONMENT_VARIABLE:"3",IMDS:"4"},C$={CONFIGURED_NO_AUTO_DETECTION:"2",AUTO_DETECTION_REQUESTED_SUCCESSFUL:"4",AUTO_DETECTION_REQUESTED_FAILED:"5"},Ow={NOT_APPLICABLE:"0",FORCE_REFRESH_OR_CLAIMS:"1",NO_CACHED_ACCESS_TOKEN:"2",CACHED_ACCESS_TOKEN_EXPIRED:"3",PROACTIVELY_REFRESHED:"4"},zRe={Pop:"pop"},jRe=300;/*! @azure/msal-common v14.16.1 2025-08-05 */const $W="unexpected_error",VRe="post_request_failed";/*! @azure/msal-common v14.16.1 2025-08-05 */const Uee={[$W]:"Unexpected error in authentication.",[VRe]:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."};let Js=class Uhe extends Error{constructor(e,t,n){const i=t?`${e}: ${t}`:e;super(i),Object.setPrototypeOf(this,Uhe.prototype),this.errorCode=e||er.EMPTY_STRING,this.errorMessage=t||er.EMPTY_STRING,this.subError=n||er.EMPTY_STRING,this.name="AuthError"}setCorrelationId(e){this.correlationId=e}};function Bhe(r,e){return new Js(r,e?`${Uee[r]} ${e}`:Uee[r])}/*! @azure/msal-common v14.16.1 2025-08-05 */const zW="client_info_decoding_error",$he="client_info_empty_error",jW="token_parsing_error",zhe="null_or_empty_token",C1="endpoints_resolution_error",jhe="network_error",Vhe="openid_config_error",qhe="hash_not_deserialized",EP="invalid_state",Ghe="state_mismatch",DF="state_not_found",Yhe="nonce_mismatch",VW="auth_time_not_found",Whe="max_age_transpired",qRe="multiple_matching_tokens",GRe="multiple_matching_accounts",Khe="multiple_matching_appMetadata",Zhe="request_cannot_be_made",Xhe="cannot_remove_empty_scope",Qhe="cannot_append_scopeset",mV="empty_input_scopeset",YRe="device_code_polling_cancelled",WRe="device_code_expired",KRe="device_code_unknown_error",qW="no_account_in_silent_request",Jhe="invalid_cache_record",GW="invalid_cache_environment",yV="no_account_found",vV="no_crypto_object",_V="unexpected_credential_type",ZRe="invalid_assertion",XRe="invalid_client_credential",L1="token_refresh_required",QRe="user_timeout_reached",efe="token_claims_cnf_required_for_signedjwt",tfe="authorization_code_missing_from_server_response",JRe="binding_key_not_removed",rfe="end_session_endpoint_not_supported",YW="key_id_missing",ePe="no_network_connectivity",tPe="user_canceled",rPe="missing_tenant_id_error",Xi="method_not_implemented",nPe="nested_app_auth_bridge_disabled";/*! @azure/msal-common v14.16.1 2025-08-05 */const Bee={[zW]:"The client info could not be parsed/decoded correctly",[$he]:"The client info was empty",[jW]:"Token cannot be parsed",[zhe]:"The token is null or empty",[C1]:"Endpoints cannot be resolved",[jhe]:"Network request failed",[Vhe]:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",[qhe]:"The hash parameters could not be deserialized",[EP]:"State was not the expected format",[Ghe]:"State mismatch error",[DF]:"State not found",[Yhe]:"Nonce mismatch error",[VW]:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information.",[Whe]:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",[qRe]:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",[GRe]:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",[Khe]:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",[Zhe]:"Token request cannot be made without authorization code or refresh token.",[Xhe]:"Cannot remove null or empty scope from ScopeSet",[Qhe]:"Cannot append ScopeSet",[mV]:"Empty input ScopeSet cannot be processed",[YRe]:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",[WRe]:"Device code is expired.",[KRe]:"Device code stopped polling for unknown reasons.",[qW]:"Please pass an account object, silent flow is not supported without account information",[Jhe]:"Cache record object was null or undefined.",[GW]:"Invalid environment when attempting to create cache entry",[yV]:"No account found in cache for given key.",[vV]:"No crypto object detected.",[_V]:"Unexpected credential type.",[ZRe]:"Client assertion must meet requirements described 
57in https://tools.ietf.org/html/rfc7515",[XRe]:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",[L1]:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.",[QRe]:"User defined timeout for device code polling reached",[efe]:"Cannot generate a POP jwt if the token_claims are not populated",[tfe]:"Server response does not contain an authorization code to proceed",[JRe]:"Could not remove the credential's binding key from storage.",[rfe]:"The provided authority does not support logout",[YW]:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key.",[ePe]:"No network connectivity. Check your internet connection.",[tPe]:"User cancelled the flow.",[rPe]:"A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",[Xi]:"This method has not been implemented",[nPe]:"The nested app auth bridge is disabled"};let nfe=class ife extends Js{constructor(e,t){super(e,t?`${Bee[e]}: ${t}`:Bee[e]),this.name="ClientAuthError",Object.setPrototypeOf(this,ife.prototype)}};function Sr(r,e){return new nfe(r,e)}/*! @azure/msal-common v14.16.1 2025-08-05 */const LF={createNewGuid:()=>{throw Sr(Xi)},base64Decode:()=>{throw Sr(Xi)},base64Encode:()=>{throw Sr(Xi)},base64UrlEncode:()=>{throw Sr(Xi)},encodeKid:()=>{throw Sr(Xi)},async getPublicKeyThumbprint(){throw Sr(Xi)},async removeTokenBindingKey(){throw Sr(Xi)},async clearKeystore(){throw Sr(Xi)},async signJwt(){throw Sr(Xi)},async hashString(){throw Sr(Xi)}};/*! @azure/msal-common v14.16.1 2025-08-05 */var Bs;(function(r){r[r.Error=0]="Error",r[r.Warning=1]="Warning",r[r.Info=2]="Info",r[r.Verbose=3]="Verbose",r[r.Trace=4]="Trace"})(Bs||(Bs={}));let fk=class bV{constructor(e,t,n){this.level=Bs.Info;const i=()=>{},o=e||bV.createDefaultLoggerOptions();this.localCallback=o.loggerCallback||i,this.piiLoggingEnabled=o.piiLoggingEnabled||!1,this.level=typeof o.logLevel=="number"?o.logLevel:Bs.Info,this.correlationId=o.correlationId||er.EMPTY_STRING,this.packageName=t||er.EMPTY_STRING,this.packageVersion=n||er.EMPTY_STRING}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:Bs.Info}}clone(e,t,n){return new bV({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:n||this.correlationId},e,t)}logMessage(e,t){if(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii)return;const o=`${`[${new Date().toUTCString()}] : [${t.correlationId||this.correlationId||""}]`} : ${this.packageName}@${this.packageVersion} : ${Bs[t.logLevel]} - ${e}`;this.executeCallback(t.logLevel,o,t.containsPii||!1)}executeCallback(e,t,n){this.localCallback&&this.localCallback(e,t,n)}error(e,t){this.logMessage(e,{logLevel:Bs.Error,containsPii:!1,correlationId:t||er.EMPTY_STRING})}errorPii(e,t){this.logMessage(e,{logLevel:Bs.Error,containsPii:!0,correlationId:t||er.EMPTY_STRING})}warning(e,t){this.logMessage(e,{logLevel:Bs.Warning,containsPii:!1,correlationId:t||er.EMPTY_STRING})}warningPii(e,t){this.logMessage(e,{logLevel:Bs.Warning,containsPii:!0,correlationId:t||er.EMPTY_STRING})}info(e,t){this.logMessage(e,{logLevel:Bs.Info,containsPii:!1,correlationId:t||er.EMPTY_STRING})}infoPii(e,t){this.logMessage(e,{logLevel:Bs.Info,containsPii:!0,correlationId:t||er.EMPTY_STRING})}verbose(e,t){this.logMessage(e,{logLevel:Bs.Verbose,containsPii:!1,correlationId:t||er.EMPTY_STRING})}verbosePii(e,t){this.logMessage(e,{logLevel:Bs.Verbose,containsPii:!0,correlationId:t||er.EMPTY_STRING})}trace(e,t){this.logMessage(e,{logLevel:Bs.Trace,containsPii:!1,correlationId:t||er.EMPTY_STRING})}tracePii(e,t){this.logMessage(e,{logLevel:Bs.Trace,containsPii:!0,correlationId:t||er.EMPTY_STRING})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}};/*! @azure/msal-common v14.16.1 2025-08-05 */const ofe="@azure/msal-common",WW="14.16.1";/*! @azure/msal-common v14.16.1 2025-08-05 */const KW={None:"none"};/*! @azure/msal-common v14.16.1 2025-08-05 */function IS(r,e){const t=iPe(r);try{const n=e(t);return JSON.parse(n)}catch{throw Sr(jW)}}function iPe(r){if(!r)throw Sr(zhe);const t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(r);if(!t||t.length<4)throw Sr(jW);return t[2]}function afe(r,e){if(e===0||Date.now()-3e5>r+e)throw Sr(Whe)}/*! @azure/msal-common v14.16.1 2025-08-05 */function c_(){return Math.round(new Date().getTime()/1e3)}function wV(r,e){const t=Number(r)||0;return c_()+e>t}function oPe(r){return Number(r)>c_()}/*! @azure/msal-common v14.16.1 2025-08-05 */function $A(r){return[aPe(r),sPe(r),lPe(r),cPe(r),uPe(r)].join(Hd.CACHE_KEY_SEPARATOR).toLowerCase()}function jB(r,e,t,n,i){return{credentialType:wi.ID_TOKEN,homeAccountId:r,environment:e,clientId:n,secret:t,realm:i}}function VB(r,e,t,n,i,o,a,l,u,h,p,m,_,C,T){var R,O;const S={homeAccountId:r,credentialType:wi.ACCESS_TOKEN,secret:t,cachedAt:c_().toString(),expiresOn:a.toString(),extendedExpiresOn:l.toString(),environment:e,clientId:n,realm:i,target:o,tokenType:p||Na.BEARER};if(m&&(S.userAssertionHash=m),h&&(S.refreshOn=h.toString()),C&&(S.requestedClaims=C,S.requestedClaimsHash=T),((R=S.tokenType)==null?void 0:R.toLowerCase())!==Na.BEARER.toLowerCase())switch(S.credentialType=wi.ACCESS_TOKEN_WITH_AUTH_SCHEME,S.tokenType){case Na.POP:const N=IS(t,u);if(!((O=N==null?void 0:N.cnf)!=null&&O.kid))throw Sr(efe);S.keyId=N.cnf.kid;break;case Na.SSH:S.keyId=_}return S}function sfe(r,e,t,n,i,o,a){const l={credentialType:wi.REFRESH_TOKEN,homeAccountId:r,environment:e,clientId:n,secret:t};return o&&(l.userAssertionHash=o),i&&(l.familyId=i),a&&(l.expiresOn=a.toString()),l}function ZW(r){return r.hasOwnProperty("homeAccountId")&&r.hasOwnProperty("environment")&&r.hasOwnProperty("credentialType")&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("secret")}function $ee(r){return r?ZW(r)&&r.hasOwnProperty("realm")&&r.hasOwnProperty("target")&&(r.credentialType===wi.ACCESS_TOKEN||r.credentialType===wi.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1}function zee(r){return r?ZW(r)&&r.hasOwnProperty("realm")&&r.credentialType===wi.ID_TOKEN:!1}
57function jee(r){return r?ZW(r)&&r.credentialType===wi.REFRESH_TOKEN:!1}function aPe(r){return[r.homeAccountId,r.environment].join(Hd.CACHE_KEY_SEPARATOR).toLowerCase()}function sPe(r){const e=r.credentialType===wi.REFRESH_TOKEN&&r.familyId||r.clientId;return[r.credentialType,e,r.realm||""].join(Hd.CACHE_KEY_SEPARATOR).toLowerCase()}function lPe(r){return(r.target||"").toLowerCase()}function cPe(r){return(r.requestedClaimsHash||"").toLowerCase()}function uPe(r){return r.tokenType&&r.tokenType.toLowerCase()!==Na.BEARER.toLowerCase()?r.tokenType.toLowerCase():""}function dPe(r,e){const t=r.indexOf(Zu.CACHE_KEY)===0;let n=!0;return e&&(n=e.hasOwnProperty("failedRequests")&&e.hasOwnProperty("errors")&&e.hasOwnProperty("cacheHits")),t&&n}function hPe(r,e){let t=!1;r&&(t=r.indexOf(MM.THROTTLING_PREFIX)===0);let n=!0;return e&&(n=e.hasOwnProperty("throttleTime")),t&&n}function fPe({environment:r,clientId:e}){return[BW,r,e].join(Hd.CACHE_KEY_SEPARATOR).toLowerCase()}function pPe(r,e){return e?r.indexOf(BW)===0&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("environment"):!1}function gPe(r,e){return e?r.indexOf(NF.CACHE_KEY)===0&&e.hasOwnProperty("aliases")&&e.hasOwnProperty("preferred_cache")&&e.hasOwnProperty("preferred_network")&&e.hasOwnProperty("canonical_authority")&&e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("aliasesFromNetwork")&&e.hasOwnProperty("endpointsFromNetwork")&&e.hasOwnProperty("expiresAt")&&e.hasOwnProperty("jwks_uri"):!1}function Vee(){return c_()+NF.REFRESH_TIME_SECONDS}function g4(r,e,t){r.authorization_endpoint=e.authorization_endpoint,r.token_endpoint=e.token_endpoint,r.end_session_endpoint=e.end_session_endpoint,r.issuer=e.issuer,r.endpointsFromNetwork=t,r.jwks_uri=e.jwks_uri}function x$(r,e,t){r.aliases=e.aliases,r.preferred_cache=e.preferred_cache,r.preferred_network=e.preferred_network,r.aliasesFromNetwork=t}function qee(r){return r.expiresAt<=c_()}/*! @azure/msal-common v14.16.1 2025-08-05 */const lfe="redirect_uri_empty",mPe="claims_request_parsing_error",cfe="authority_uri_insecure",iM="url_parse_error",ufe="empty_url_error",dfe="empty_input_scopes_error",hfe="invalid_prompt_value",XW="invalid_claims",ffe="token_request_empty",pfe="logout_request_empty",gfe="invalid_code_challenge_method",QW="pkce_params_missing",JW="invalid_cloud_discovery_metadata",mfe="invalid_authority_metadata",yfe="untrusted_authority",qB="missing_ssh_jwk",vfe="missing_ssh_kid",yPe="missing_nonce_authentication_header",vPe="invalid_authentication_header",_fe="cannot_set_OIDCOptions",bfe="cannot_allow_native_broker",wfe="authority_mismatch";/*! @azure/msal-common v14.16.1 2025-08-05 */const _Pe={[lfe]:"A redirect URI is required for all calls, and none has been set.",[mPe]:"Could not parse the given claims request object.",[cfe]:"Authority URIs must use https.  Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options",[iM]:"URL could not be parsed into appropriate segments.",[ufe]:"URL was empty or null.",[dfe]:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",[hfe]:"Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest",[XW]:"Given claims parameter must be a stringified JSON object.",[ffe]:"Token request was empty and not found in cache.",[pfe]:"The logout request was null or undefined.",[gfe]:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".',[QW]:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",[JW]:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",[mfe]:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",[yfe]:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",[qB]:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",[vfe]:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",[yPe]:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.",[vPe]:"Invalid authentication header provided",[_fe]:"Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.",[bfe]:"Cannot set allowNativeBroker parameter to true when not in AAD protocol mode.",[wfe]:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."};let bPe=class Efe extends Js{constructor(e){super(e,_Pe[e]),this.name="ClientConfigurationError",Object.setPrototypeOf(this,Efe.prototype)}};function qa(r){return new bPe(r)}/*! @azure/msal-common v14.16.1 2025-08-05 */let lv=class{static isEmptyObj(e){if(e)try{const t=JSON.parse(e);return Object.keys(t).length===0}catch{}return!0}static startsWith(e,t){return e.indexOf(t)===0}static endsWith(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length}static queryStringToObject(e){const t={},n=e.split("&"),i=o=>decodeURIComponent(o.replace(/\+/g," "));
57return n.forEach(o=>{if(o.trim()){const[a,l]=o.split(/=(.+)/g,2);a&&l&&(t[i(a)]=i(l))}}),t}static trimArrayEntries(e){return e.map(t=>t.trim())}static removeEmptyStringsFromArray(e){return e.filter(t=>!!t)}static jsonParseHelper(e){try{return JSON.parse(e)}catch{return null}}static matchPattern(e,t){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(t)}};/*! @azure/msal-common v14.16.1 2025-08-05 */let ed=class yH{constructor(e){const t=e?lv.trimArrayEntries([...e]):[],n=t?lv.removeEmptyStringsFromArray(t):[];this.validateInputScopes(n),this.scopes=new Set,n.forEach(i=>this.scopes.add(i))}static fromString(e){const n=(e||er.EMPTY_STRING).split(" ");return new yH(n)}static createSearchScopes(e){const t=new yH(e);return t.containsOnlyOIDCScopes()?t.removeScope(er.OFFLINE_ACCESS_SCOPE):t.removeOIDCScopes(),t}validateInputScopes(e){if(!e||e.length<1)throw qa(dfe)}containsScope(e){const t=this.printScopesLowerCase().split(" "),n=new yH(t);return e?n.scopes.has(e.toLowerCase()):!1}containsScopeSet(e){return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(t=>this.containsScope(t))}containsOnlyOIDCScopes(){let e=0;return Dee.forEach(t=>{this.containsScope(t)&&(e+=1)}),this.scopes.size===e}appendScope(e){e&&this.scopes.add(e.trim())}appendScopes(e){try{e.forEach(t=>this.appendScope(t))}catch{throw Sr(Qhe)}}removeScope(e){if(!e)throw Sr(Xhe);this.scopes.delete(e.trim())}removeOIDCScopes(){Dee.forEach(e=>{this.scopes.delete(e)})}unionScopeSets(e){if(!e)throw Sr(mV);const t=new Set;return e.scopes.forEach(n=>t.add(n.toLowerCase())),this.scopes.forEach(n=>t.add(n.toLowerCase())),t}intersectingScopeSets(e){if(!e)throw Sr(mV);e.containsOnlyOIDCScopes()||e.removeOIDCScopes();const t=this.unionScopeSets(e),n=e.getScopeCount(),i=this.getScopeCount();return t.size<i+n}getScopeCount(){return this.scopes.size}asArray(){const e=[];return this.scopes.forEach(t=>e.push(t)),e}printScopes(){return this.scopes?this.asArray().join(" "):er.EMPTY_STRING}printScopesLowerCase(){return this.printScopes().toLowerCase()}};/*! @azure/msal-common v14.16.1 2025-08-05 */function HF(r,e){if(!r)throw Sr($he);try{const t=e(r);return JSON.parse(t)}catch{throw Sr(zW)}}function zA(r){if(!r)throw Sr(zW);const e=r.split(Hd.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?er.EMPTY_STRING:e[1]}}/*! @azure/msal-common v14.16.1 2025-08-05 */function FF(r,e){return!!r&&!!e&&r===e.split(".")[1]}function eK(r,e,t,n){if(n){const{oid:i,sub:o,tid:a,name:l,tfp:u,acr:h}=n,p=a||u||h||"";return{tenantId:p,localAccountId:i||o||"",name:l,isHomeTenant:FF(p,r)}}else return{tenantId:t,localAccountId:e,isHomeTenant:FF(t,r)}}function tK(r,e,t,n){let i=r;if(e){const{isHomeTenant:o,...a}=e;i={...r,...a}}if(t){const{isHomeTenant:o,...a}=eK(r.homeAccountId,r.localAccountId,r.tenantId,t);return i={...i,...a,idTokenClaims:t,idToken:n},i}return i}/*! @azure/msal-common v14.16.1 2025-08-05 */const Zy={Default:0,Adfs:1,Dsts:2,Ciam:3};/*! @azure/msal-common v14.16.1 2025-08-05 */function Cfe(r){return r&&(r.tid||r.tfp||r.acr)||null}/*! @azure/msal-common v14.16.1 2025-08-05 */const j1={AAD:"AAD",OIDC:"OIDC"};/*! @azure/msal-common v14.16.1 2025-08-05 */let zh=class vH{generateAccountId(){return[this.homeAccountId,this.environment].join(Hd.CACHE_KEY_SEPARATOR).toLowerCase()}generateAccountKey(){return vH.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})}getAccountInfo(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,nativeAccountId:this.nativeAccountId,authorityType:this.authorityType,tenantProfiles:new Map((this.tenantProfiles||[]).map(e=>[e.tenantId,e]))}}isSingleTenant(){return!this.tenantProfiles}static generateAccountCacheKey(e){const t=e.homeAccountId.split(".")[1];return[e.homeAccountId,e.environment||"",t||e.tenantId||""].join(Hd.CACHE_KEY_SEPARATOR).toLowerCase()}static createAccount(e,t,n){var h,p,m,_,C,T;const i=new vH;t.authorityType===Zy.Adfs?i.authorityType=f4.ADFS_ACCOUNT_TYPE:t.protocolMode===j1.AAD?i.authorityType=f4.MSSTS_ACCOUNT_TYPE:i.authorityType=f4.GENERIC_ACCOUNT_TYPE;let o;e.clientInfo&&n&&(o=HF(e.clientInfo,n)),i.clientInfo=e.clientInfo,i.homeAccountId=e.homeAccountId,i.nativeAccountId=e.nativeAccountId;const a=e.environment||t&&t.getPreferredCache();if(!a)throw Sr(GW);i.environment=a,i.realm=(o==null?void 0:o.utid)||Cfe(e.idTokenClaims)||"",i.localAccountId=(o==null?void 0:o.uid)||((h=e.idTokenClaims)==null?void 0:h.oid)||((p=e.idTokenClaims)==null?void 0:p.sub)||"";const l=((m=e.idTokenClaims)==null?void 0:m.preferred_username)||((_
57=e.idTokenClaims)==null?void 0:_.upn),u=(C=e.idTokenClaims)!=null&&C.emails?e.idTokenClaims.emails[0]:null;if(i.username=l||u||"",i.name=((T=e.idTokenClaims)==null?void 0:T.name)||"",i.cloudGraphHostName=e.cloudGraphHostName,i.msGraphHost=e.msGraphHost,e.tenantProfiles)i.tenantProfiles=e.tenantProfiles;else{const S=eK(e.homeAccountId,i.localAccountId,i.realm,e.idTokenClaims);i.tenantProfiles=[S]}return i}static createFromAccountInfo(e,t,n){var o;const i=new vH;return i.authorityType=e.authorityType||f4.GENERIC_ACCOUNT_TYPE,i.homeAccountId=e.homeAccountId,i.localAccountId=e.localAccountId,i.nativeAccountId=e.nativeAccountId,i.realm=e.tenantId,i.environment=e.environment,i.username=e.username,i.name=e.name,i.cloudGraphHostName=t,i.msGraphHost=n,i.tenantProfiles=Array.from(((o=e.tenantProfiles)==null?void 0:o.values())||[]),i}static generateHomeAccountId(e,t,n,i,o){if(!(t===Zy.Adfs||t===Zy.Dsts)){if(e)try{const a=HF(e,i.base64Decode);if(a.uid&&a.utid)return`${a.uid}.${a.utid}`}catch{}n.warning("No client info in response")}return(o==null?void 0:o.sub)||""}static isAccountEntity(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1}static accountInfoIsEqual(e,t,n){if(!e||!t)return!1;let i=!0;if(n){const o=e.idTokenClaims||{},a=t.idTokenClaims||{};i=o.iat===a.iat&&o.nonce===a.nonce}return e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username&&e.tenantId===t.tenantId&&e.environment===t.environment&&e.nativeAccountId===t.nativeAccountId&&i}};/*! @azure/msal-common v14.16.1 2025-08-05 */function xfe(r){return r.startsWith("#/")?r.substring(2):r.startsWith("#")||r.startsWith("?")?r.substring(1):r}function UF(r){if(!r||r.indexOf("=")<0)return null;try{const e=xfe(r),t=Object.fromEntries(new URLSearchParams(e));if(t.code||t.error||t.error_description||t.state)return t}catch{throw Sr(qhe)}return null}/*! @azure/msal-common v14.16.1 2025-08-05 */let Ma=class cA{get urlString(){return this._urlString}constructor(e){if(this._urlString=e,!this._urlString)throw qa(ufe);e.includes("#")||(this._urlString=cA.canonicalizeUri(e))}static canonicalizeUri(e){if(e){let t=e.toLowerCase();return lv.endsWith(t,"?")?t=t.slice(0,-1):lv.endsWith(t,"?/")&&(t=t.
57slice(0,-2)),lv.endsWith(t,"/")||(t+="/"),t}return e}validateAsUri(){let e;try{e=this.getUrlComponents()}catch{throw qa(iM)}if(!e.HostNameAndPort||!e.PathSegments)throw qa(iM);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw qa(cfe)}static appendQueryString(e,t){return t?e.indexOf("?")<0?`${e}?${t}`:`${e}&${t}`:e}static removeHashFromUrl(e){return cA.canonicalizeUri(e.split("#")[0])}replaceTenantPath(e){const t=this.getUrlComponents(),n=t.PathSegments;return e&&n.length!==0&&(n[0]===wE.COMMON||n[0]===wE.ORGANIZATIONS)&&(n[0]=e),cA.constructAuthorityUriFromObject(t)}getUrlComponents(){const e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw qa(iM);const n={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]};let i=n.AbsolutePath.split("/");return i=i.filter(o=>o&&o.length>0),n.PathSegments=i,n.QueryString&&n.QueryString.endsWith("/")&&(n.QueryString=n.QueryString.substring(0,n.QueryString.length-1)),n}static getDomainFromUrl(e){const t=RegExp("^([^:/?#]+://)?([^/?#]*)"),n=e.match(t);if(!n)throw qa(iM);return n[2]}static getAbsoluteUrl(e,t){if(e[0]===er.FORWARD_SLASH){const i=new cA(t).getUrlComponents();return i.Protocol+"//"+i.HostNameAndPort+e}return e}static constructAuthorityUriFromObject(e){return new cA(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))}static hashContainsKnownProperties(e){return!!UF(e)}};/*! @azure/msal-common v14.16.1 2025-08-05 */const Tfe={endpointMetadata:{"login.microsoftonline.com":{token_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.com/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/logout"},"login.chinacloudapi.cn":{token_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.chinacloudapi.cn/{tenantid}/discovery/v2.0/keys",issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",authorization_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/logout"},"login.microsoftonline.us":{token_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.us/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/logout"}},instanceDiscoveryMetadata:{metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}},Gee=Tfe.endpointMetadata,rK=Tfe.instanceDiscoveryMetadata,Sfe=new Set;rK.metadata.forEach(r=>{r.aliases.forEach(e=>{Sfe.add(e)})});function wPe(r,e){var i;let t;const n=r.canonicalAuthority;if(n){const o=new Ma(n).getUrlComponents().HostNameAndPort;t=Yee(o,(i=r.cloudDiscoveryMetadata)==null?void 0:i.metadata,$p.CONFIG,e)||Yee(o,rK.metadata,$p.HARDCODED_VALUES,e)||r.knownAuthorities}return t||[]}function Yee(r,e,t,n){if(n==null||n.trace(`getAliasesFromMetadata called with source: ${t}`),r&&e){const i=BF(e,r);
57if(i)return n==null||n.trace(`getAliasesFromMetadata: found cloud discovery metadata in ${t}, returning aliases`),i.aliases;n==null||n.trace(`getAliasesFromMetadata: did not find cloud discovery metadata in ${t}`)}return null}function EPe(r){return BF(rK.metadata,r)}function BF(r,e){for(let t=0;t<r.length;t++){const n=r[t];if(n.aliases.includes(e))return n}return null}/*! @azure/msal-common v14.16.1 2025-08-05 */const nK="cache_quota_exceeded",iK="cache_error_unknown";/*! @azure/msal-common v14.16.1 2025-08-05 */const T$={[nK]:"Exceeded cache storage capacity.",[iK]:"Unexpected error occurred when using cache storage."};class bR extends Error{constructor(e,t){const n=t||(T$[e]?T$[e]:T$[iK]);super(`${e}: ${n}`),Object.setPrototypeOf(this,bR.prototype),this.name="CacheError",this.errorCode=e,this.errorMessage=n}}function Ife(r){return r instanceof Error?r.name==="QuotaExceededError"||r.name==="NS_ERROR_DOM_QUOTA_REACHED"||r.message.includes("exceeded the quota")?new bR(nK):new bR(r.name,r.message):new bR(iK)}/*! @azure/msal-common v14.16.1 2025-08-05 */let $F=class Afe{constructor(e,t,n,i){this.clientId=e,this.cryptoImpl=t,this.commonLogger=n.clone(ofe,WW),this.staticAuthorityOptions=i}getAllAccounts(e,t){return this.buildTenantProfiles(this.getAccountsFilteredBy(t||{},e),e,t)}getAccountInfoFilteredBy(e,t){const n=this.getAllAccounts(t,e);return n.length>1?n.sort(o=>o.idTokenClaims?-1:1)[0]:n.length===1?n[0]:null}getBaseAccountInfo(e,t){const n=this.getAccountsFilteredBy(e,t);return n.length>0?n[0].getAccountInfo():null}buildTenantProfiles(e,t,n){return e.flatMap(i=>this.getTenantProfilesFromAccountEntity(i,t,n==null?void 0:n.tenantId,n))}getTenantedAccountInfoByFilter(e,t,n,i,o){let a=null,l;if(o&&!this.tenantProfileMatchesFilter(n,o))return null;const u=this.getIdToken(e,i,t,n.tenantId);return u&&(l=IS(u.secret,this.cryptoImpl.base64Decode),!this.idTokenClaimsMatchTenantProfileFilter(l,o))?null:(a=tK(e,n,l,u==null?void 0:u.secret),a)}getTenantProfilesFromAccountEntity(e,t,n,i){const o=e.getAccountInfo();let a=o.tenantProfiles||new Map;const l=this.getTokenKeys();if(n){const h=a.get(n);if(h)a=new Map([[n,h]]);else return[]}const u=[];return a.forEach(h=>{const p=this.getTenantedAccountInfoByFilter(o,l,h,t,i);p&&u.push(p)}),u}tenantProfileMatchesFilter(e,t){return!(t.localAccountId&&!this.matchLocalAccountIdFromTenantProfile(e,t.localAccountId)||t.name&&e.name!==t.name||t.isHomeTenant!==void 0&&e.isHomeTenant!==t.isHomeTenant)}idTokenClaimsMatchTenantProfileFilter(e,t){return!(t&&(t.localAccountId&&!this.matchLocalAccountIdFromTokenClaims(e,t.localAccountId)||t.loginHint&&!this.matchLoginHintFromTokenClaims(e,t.loginHint)||t.username&&!this.matchUsername(e.preferred_username,t.username)||t.name&&!this.matchName(e,t.name)||t.sid&&!this.matchSid(e,t.sid)))}async saveCacheRecord(e,t,n){var i;if(!e)throw Sr(Jhe);try{e.account&&this.setAccount(e.account,t),e.idToken&&(n==null?void 0:n.idToken)!==!1&&this.setIdTokenCredential(e.idToken,t),e.accessToken&&(n==null?void 0:n.accessToken)!==!1&&await this.saveAccessToken(e.accessToken,t),e.refreshToken&&(n==null?void 0:n.refreshToken)!==!1&&this.setRefreshTokenCredential(e.refreshToken,t),e.appMetadata&&this.setAppMetadata(e.appMetadata,t)}catch(o){throw(i=this.commonLogger)==null||i.error("CacheManager.saveCacheRecord: failed"),o instanceof Js?o:Ife(o)}}async saveAccessToken(e,t){const n={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},i=this.getTokenKeys(),o=ed.fromString(e.target);i.accessToken.forEach(a=>{if(!this.accessTokenKeyMatchesFilter(a,n,!1))return;const l=this.getAccessTokenCredential(a,t);l&&this.credentialMatchesFilter(l,n)&&ed.fromString(l.target).intersectingScopeSets(o)&&this.removeAccessToken(a,t)}),this.setAccessTokenCredential(e,t)}getAccountsFilteredBy(e,t){const n=this.getAccountKeys(),i=[];return n.forEach(o=>{var h;if(!this.isAccountKey(o,e.homeAccountId))return;const a=this.getAccount(o,t,this.commonLogger);if(!a||e.homeAccountId&&!this.matchHomeAccountId(a,e.homeAccountId)||e.username&&!this.matchUsername(a.username,e.username)||e.environment&&!this.matchEnvironment(a,e.environment)||e.realm&&!this.matchRealm(a,e.realm)||e.nativeAccountId&&!this.matchNativeAccountId(a,e.nativeAccountId)||e.authorityType&&!this.matchAuthorityType(a,e.authorityType))return;const l={localAccountId:e==null?void 0:e.localAccountId,name:e==null?void 0:e.name},u=(h=a.tenantProfiles)==null?void 0:h.filter(p=>this.tenantProfileMatchesFilter(p,l));u&&u.length===0||i.push(a)}),i}isAccountKey(e,t,n){return!(e.split(Hd.CACHE_KEY_SEPARATOR).length<3||t&&!e.toLowerCase().includes(t.toLowerCase())||n&&!e.toLowerCase().includes(n.toLowerCase()))}isCredentialKey(e){if(e.split(Hd.CACHE_KEY_SEPARATOR).length<6)return!1;const t=e.toLowerCase();if(t.indexOf(wi.ID_TOKEN.toLowerCase())===-1&&t.indexOf(wi.ACCESS_TOKEN.toLowerCase())===-1&&t.indexOf(wi.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&t.indexOf(wi.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(t.indexOf(wi.REFRESH_TOKEN.toLowerCase())>-1){const n=`${wi.REFRESH_TOKEN}${Hd.CACHE_KEY_SEPARATOR}${this.clientId}${Hd.CACHE_KEY_SEPARATOR}`,i=`${wi.REFRESH_TOKEN}${Hd.CACHE_KEY_SEPARATOR}${OM}${Hd.CACHE_KEY_SEPARATOR}`;if(t.indexOf(n.toLowerCase())===-1&&t.indexOf(i.toLowerCase())===-1)return!1}else if(t.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0}credentialMatchesFilter(e,t){return!(t.clientId&&!this.matchClientId(e,t.clientId)||t.userAssertionHash&&!this.matchUserAssertionHash(e,t.userAssertionHash)||typeof t.homeAccountId=="string"&&!this.matchHomeAccountId(e,t.homeAccountId)||t.environment&&!this.matchEnvironment(e,t.environment)||t.realm&&!this.matchRealm(e,t.realm)||t.credentialType&&!this.matchCredentialType(e,t.credentialType)||t.familyId&&!this.matchFamilyId(e,t.familyId)||t.target&&!this.matchTarget(e,t.target)||(t.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==t.requestedClaimsHash||e.credentialType===wi.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(t.tokenType&&!this.matchTokenType(e,t.tokenType)||t.tokenType===Na.SSH&&t.keyId&&!this.matchKeyId(e,t.keyId)))}getAppMetadataFilteredBy(e){const t=this.getKeys(),n={};return t.forEach(i=>
57{if(!this.isAppMetadata(i))return;const o=this.getAppMetadata(i);o&&(e.environment&&!this.matchEnvironment(o,e.environment)||e.clientId&&!this.matchClientId(o,e.clientId)||(n[i]=o))}),n}getAuthorityMetadataByAlias(e){const t=this.getAuthorityMetadataKeys();let n=null;return t.forEach(i=>{if(!this.isAuthorityMetadata(i)||i.indexOf(this.clientId)===-1)return;const o=this.getAuthorityMetadata(i);o&&o.aliases.indexOf(e)!==-1&&(n=o)}),n}async removeAllAccounts(e){const t=this.getAccountKeys(),n=[];t.forEach(i=>{n.push(this.removeAccount(i,e))}),await Promise.all(n)}async removeAccount(e,t){const n=this.getAccount(e,t,this.commonLogger);n&&(await this.removeAccountContext(n,t),this.removeItem(e,t))}async removeAccountContext(e,t){const n=this.getTokenKeys(),i=e.generateAccountId();n.idToken.forEach(o=>{o.indexOf(i)===0&&this.removeIdToken(o,t)}),n.accessToken.forEach(o=>{o.indexOf(i)===0&&this.removeAccessToken(o,t)}),n.refreshToken.forEach(o=>{o.indexOf(i)===0&&this.removeRefreshToken(o,t)}),this.getKeys().forEach(o=>{o.includes(i)&&this.removeItem(o,t)})}updateOutdatedCachedAccount(e,t,n,i){var o;if(t&&t.isSingleTenant()){(o=this.commonLogger)==null||o.verbose("updateOutdatedCachedAccount: Found a single-tenant (outdated) account entity in the cache, migrating to multi-tenant account entity");const a=this.getAccountKeys().filter(m=>m.startsWith(t.homeAccountId)),l=[];a.forEach(m=>{const _=this.getCachedAccountEntity(m,n);_&&l.push(_)});const u=l.find(m=>FF(m.realm,m.homeAccountId))||l[0];u.tenantProfiles=l.map(m=>({tenantId:m.realm,localAccountId:m.localAccountId,name:m.name,isHomeTenant:FF(m.realm,m.homeAccountId)}));const h=Afe.toObject(new zh,{...u}),p=h.generateAccountKey();return a.forEach(m=>{m!==p&&this.removeOutdatedAccount(e,n)}),this.setAccount(h,n),i==null||i.verbose("Updated an outdated account entity in the cache"),h}return t}removeAccessToken(e,t){const n=this.getAccessTokenCredential(e,t);if(this.removeItem(e,t),!n||n.credentialType.toLowerCase()!==wi.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()||n.tokenType!==Na.POP)return;const i=n.keyId;i&&this.cryptoImpl.removeTokenBindingKey(i).catch(()=>{this.commonLogger.error("Binding key could not be removed")})}removeAppMetadata(e){return this.getKeys().forEach(n=>{this.isAppMetadata(n)&&this.removeItem(n,e)}),!0}readAccountFromCache(e,t){const n=zh.generateAccountCacheKey(e);return this.getAccount(n,t,this.commonLogger)}getIdToken(e,t,n,i,o){this.commonLogger.trace("CacheManager - getIdToken called");const a={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:wi.ID_TOKEN,clientId:this.clientId,realm:i},l=this.getIdTokensByFilter(a,t,n),u=l.size;if(u<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(u>1){let h=l;if(!i){const p=new Map;l.forEach((_,C)=>{_.realm===e.tenantId&&p.set(C,_)});const m=p.size;if(m<1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account but none match account entity tenant id, returning first result"),l.values().next().value;if(m===1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account, defaulting to home tenant profile"),p.values().next().value;h=p}return this.commonLogger.info("CacheManager:getIdToken - Multiple matching ID tokens found, clearing them"),h.forEach((p,m)=>{this.removeIdToken(m,t)}),o&&t&&o.addFields({multiMatchedID:l.size},t),null}return this.commonLogger.info("CacheManager:getIdToken - Returning ID token"),l.values().next().value}getIdTokensByFilter(e,t,n){const i=n&&n.idToken||this.getTokenKeys().idToken,o=new Map;return i.forEach(a=>{if(!this.idTokenKeyMatchesFilter(a,{clientId:this.clientId,...e}))return;const l=this.getIdTokenCredential(a,t);l&&this.credentialMatchesFilter(l,e)&&o.set(a,l)}),o}idTokenKeyMatchesFilter(e,t){const n=e.toLowerCase();return!(t.clientId&&n.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&n.indexOf(t.homeAccountId.toLowerCase())===-1)}removeIdToken(e,t){this.removeItem(e,t)}removeRefreshToken(e,t){this.removeItem(e,t)}getAccessToken(e,t,n,i,o){this.commonLogger.trace("CacheManager - getAccessToken called");const a=ed.createSearchScopes(t.scopes),l=t.authenticationScheme||Na.BEARER,u=l.toLowerCase()!==Na.BEARER.toLowerCase()?wi.ACCESS_TOKEN_WITH_AUTH_SCHEME:wi.ACCESS_TOKEN,h={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:u,clientId:this.clientId,realm:i||e.tenantId,target:a,tokenType:l,ke
57yId:t.sshKid,requestedClaimsHash:t.requestedClaimsHash},p=n&&n.accessToken||this.getTokenKeys().accessToken,m=[];p.forEach(C=>{if(this.accessTokenKeyMatchesFilter(C,h,!0)){const T=this.getAccessTokenCredential(C,t.correlationId);T&&this.credentialMatchesFilter(T,h)&&m.push(T)}});const _=m.length;return _<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):_>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),m.forEach(C=>{this.removeAccessToken($A(C),t.correlationId)}),o&&t.correlationId&&o.addFields({multiMatchedAT:m.length},t.correlationId),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),m[0])}accessTokenKeyMatchesFilter(e,t,n){const i=e.toLowerCase();if(t.clientId&&i.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&i.indexOf(t.homeAccountId.toLowerCase())===-1||t.realm&&i.indexOf(t.realm.toLowerCase())===-1||t.requestedClaimsHash&&i.indexOf(t.requestedClaimsHash.toLowerCase())===-1)return!1;if(t.target){const o=t.target.asArray();for(let a=0;a<o.length;a++){if(n&&!i.includes(o[a].toLowerCase()))return!1;if(!n&&i.includes(o[a].toLowerCase()))return!0}}return!0}getAccessTokensByFilter(e,t){const n=this.getTokenKeys(),i=[];return n.accessToken.forEach(o=>{if(!this.accessTokenKeyMatchesFilter(o,e,!0))return;const a=this.getAccessTokenCredential(o,t);a&&this.credentialMatchesFilter(a,e)&&i.push(a)}),i}getRefreshToken(e,t,n,i,o){this.commonLogger.trace("CacheManager - getRefreshToken called");const a=t?OM:void 0,l={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:wi.REFRESH_TOKEN,clientId:this.clientId,familyId:a},u=i&&i.refreshToken||this.getTokenKeys().refreshToken,h=[];u.forEach(m=>{if(this.refreshTokenKeyMatchesFilter(m,l)){const _=this.getRefreshTokenCredential(m,n);_&&this.credentialMatchesFilter(_,l)&&h.push(_)}});const p=h.length;return p<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(p>1&&o&&n&&o.addFields({multiMatchedRT:p},n),this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),h[0])}refreshTokenKeyMatchesFilter(e,t){const n=e.toLowerCase();return!(t.familyId&&n.indexOf(t.familyId.toLowerCase())===-1||!t.familyId&&t.clientId&&n.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&n.indexOf(t.homeAccountId.toLowerCase())===-1)}readAppMetadataFromCache(e){const t={environment:e,clientId:this.clientId},n=this.getAppMetadataFilteredBy(t),i=Object.keys(n).map(a=>n[a]),o=i.length;if(o<1)return null;if(o>1)throw Sr(Khe);return i[0]}isAppMetadataFOCI(e){const t=this.readAppMetadataFromCache(e);return!!(t&&t.familyId===OM)}matchHomeAccountId(e,t){return typeof e.homeAccountId=="string"&&t===e.homeAccountId}matchLocalAccountIdFromTokenClaims(e,t){const n=e.oid||e.sub;return t===n}matchLocalAccountIdFromTenantProfile(e,t){return e.localAccountId===t}matchName(e,t){var n;return t.toLowerCase()===((n=e.name)==null?void 0:n.toLowerCase())}matchUsername(e,t){return!!(e&&typeof e=="string"&&(t==null?void 0:t.toLowerCase())===e.toLowerCase())}matchUserAssertionHash(e,t){return!!(e.userAssertionHash&&t===e.userAssertionHash)}matchEnvironment(e,t){if(this.staticAuthorityOptions){const i=wPe(this.staticAuthorityOptions,this.commonLogger);if(i.includes(t)&&i.includes(e.environment))return!0}const n=this.getAuthorityMetadataByAlias(t);return!!(n&&n.aliases.indexOf(e.environment)>-1)}matchCredentialType(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()}matchClientId(e,t){return!!(e.clientId&&t===e.clientId)}matchFamilyId(e,t){return!!(e.familyId&&t===e.familyId)}matchRealm(e,t){var n;return((n=e.realm)==null?void 0:n.toLowerCase())===t.toLowerCase()}matchNativeAccountId(e,t){return!!(e.nativeAccountId&&t===e.nativeAccountId)}matchLoginHintFromTokenClaims(e,t){return e.login_hint===t||e.preferred_username===t||e.upn===t}matchSid(e,t){return e.sid===t}matchAuthorityType(e,t){return!!(e.authorityType&&t.toLowerCase()===e.authorityType.toLowerCase())}matchTarget(e,t){return e.credentialType!==wi.ACCESS_TOKEN&&e.credentialType!==wi.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target?!1:ed.fromString(e.target).containsScopeSet(t)}matchTokenType(e,t){return!!(e.tokenType&&e.tokenType===t)}matchKeyId(e,t){return!!(e.keyId&&e.keyId===t)}isAppMetadata(e){return e.indexOf(BW)!==-1}isAuthorityMetadata(e){return e.indexOf(NF.CACHE_KEY)!==-1}generateAuthorityMetadataCacheKey(e){return`${NF.CACHE_KEY}-${this.clientId}-${e}`}static toObject(e,t){for(const n in t)e[n]=t[n];return e}},CPe=class extends $F{setAccount(){throw Sr(Xi)}getAccount(){throw Sr(Xi)}getCachedAccountEntity(){throw Sr(Xi)}setIdTokenCredential(){throw Sr(Xi)}getIdTokenCredential(){throw Sr(Xi)}setAccessTokenCredential(){throw Sr(Xi)}getAccessTokenCredential(){throw Sr(Xi)}setRefreshTokenCredential(){throw Sr(Xi)}getRefreshTokenCredential(){throw Sr(Xi)}setAppMetadata(){throw Sr(Xi)}getAppMetadata(){throw Sr(Xi)}setServerTelemetry(){throw Sr(Xi)}getServerTelemetry(){throw Sr(Xi)}setAuthorityMetadata(){throw Sr(Xi)}getAuthorityMetadata(){throw Sr(Xi)}getAuthorityMetadataKeys(){throw Sr(Xi)}setThrottlingCache(){throw Sr(Xi)}getThrottlingCache(){throw Sr(Xi)}removeItem(){throw Sr(Xi)}getKeys(){throw Sr(Xi)}getAccountKeys(){throw Sr(Xi)}getTokenKeys(){throw Sr(Xi)}updateCredentialCacheKey(){throw Sr(Xi)}removeOutdatedAccount(){throw Sr(Xi)}};/*! @azure/msal-common v14.16.1 2025-08-05 */const Rfe={tokenRenewalOffsetSeconds:jRe,preventCorsPreflight:!1},xPe={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:Bs.Info,correlationId:er.EMPTY_STRING},TPe={claimsBasedCachingEnabled:!1},SPe={async sendGetRequestAsync(){throw Sr(Xi)},async sendPostRequestAsync(){throw Sr(Xi)}},IPe={sku:er.SKU,version:WW,cpu:er.EMPTY_STRING,os:er.EMPTY_STRING},APe={clientSecret:er.EMPTY_STRING,clientAssertion:void 0},RPe={azureCloudInstance:KW.None,tenant:`${er.DEFAULT_COMMON_TENANT}`},PPe={application:{appName:"",appVersion:""}};function kPe({authOptions:r,systemOptions:e,loggerOptions:t,cacheOptions:n,storageInterface:i,networkInterface:o,cryptoInterface:a,clientCredentials:l,libraryInfo:u,telemetry:h,serverTelemetryManager:p,persistencePlugin:m,serializableCache:_}){const C={...xPe,...t};return{authOptions:OPe(r),systemOptions:{...Rfe,...e},loggerOptions:C,cacheOptions:{...TPe,...n},storageInterface:i||new CPe(r.clientId,LF,new fk(C)),networkInterface:o||SPe,cryptoInterface:a||LF,clientCredentials:l||APe,libraryInfo:{...IPe,...u},telemetry:{...PPe,...h},serverTelemetryManager:p||null,persistencePlugin:m||null,serializableCache:_||null}}function OPe(r){return{clientCapabilities:[],azureCloudOptions:RPe,skipAuthorityMetadataCache:!1,instanceAware:!1,...r}}function EV(r){return r.authOptions.authority.options.protocolMode===j1.OIDC}/*! @azure/msal-common v14.16.1 2025-08-05 */const tg={HOME_ACCOUNT_ID:"home_account_id",UPN:"UPN"};/*! @azure/msal-common v14.16.1 2025-08-05 */const XT="client_id",Pfe="redirect_uri",Wee="response_type",MPe="response_mode",NPe="grant_type",DPe="claims",LPe="scope",HPe="refresh_token",FPe="state",UPe="nonce",BPe="prompt",$Pe="code",zPe="code_challenge",jPe="code_challenge_method",VPe="code_verifier",qPe="client-request-id",GPe="x-cl
57ient-SKU",YPe="x-client-VER",WPe="x-client-OS",KPe="x-client-CPU",ZPe="x-client-current-telemetry",XPe="x-client-last-telemetry",QPe="x-ms-lib-capability",JPe="x-app-name",eke="x-app-ver",tke="post_logout_redirect_uri",rke="id_token_hint",nke="device_code",ike="client_secret",oke="client_assertion",ake="client_assertion_type",Kee="token_type",Zee="req_cnf",ske="assertion",lke="requested_token_use",Xee="return_spa_code",cke="nativebroker",uke="logout_hint",dke="sid",hke="login_hint",fke="domain_hint",pke="x-client-xtra-sku",oK="brk_client_id",CV="brk_redirect_uri";/*! @azure/msal-common v14.16.1 2025-08-05 */let uA=class{static validateRedirectUri(e){if(!e)throw qa(lfe)}static validatePrompt(e){const t=[];for(const n in bu)t.push(bu[n]);if(t.indexOf(e)<0)throw qa(hfe)}static validateClaims(e){try{JSON.parse(e)}catch{throw qa(XW)}}static validateCodeChallengeParams(e,t){if(!e||!t)throw qa(QW);this.validateCodeChallengeMethod(t)}static validateCodeChallengeMethod(e){if([Lee.PLAIN,Lee.S256].indexOf(e)<0)throw qa(gfe)}};/*! @azure/msal-common v14.16.1 2025-08-05 */function gke(r,e,t){if(!e)return;const n=r.get(XT);n&&r.has(oK)&&(t==null||t.addFields({embeddedClientId:n,embeddedRedirectUri:r.get(Pfe)},e))}let NM=class{constructor(e,t){this.parameters=new Map,this.performanceClient=t,this.correlationId=e}addResponseTypeCode(){this.parameters.set(Wee,encodeURIComponent(er.CODE_RESPONSE_TYPE))}addResponseTypeForTokenAndIdToken(){this.parameters.set(Wee,encodeURIComponent(`${er.TOKEN_RESPONSE_TYPE} ${er.ID_TOKEN_RESPONSE_TYPE}`))}addResponseMode(e){this.parameters.set(MPe,encodeURIComponent(e||BRe.QUERY))}addNativeBroker(){this.parameters.set(cke,encodeURIComponent("1"))}addScopes(e,t=!0,n=hk){t&&!n.includes("openid")&&!e.includes("openid")&&n.push("openid");const i=t?[...e||[],...n]:e||[],o=new ed(i);this.parameters.set(LPe,encodeURIComponent(o.printScopes()))}addClientId(e){this.parameters.set(XT,encodeURIComponent(e))}addRedirectUri(e){uA.validateRedirectUri(e),this.parameters.set(Pfe,encodeURIComponent(e))}addPostLogoutRedirectUri(e){uA.validateRedirectUri(e),this.parameters.set(tke,encodeURIComponent(e))}addIdTokenHint(e){this.parameters.set(rke,encodeURIComponent(e))}addDomainHint(e){this.parameters.set(fke,encodeURIComponent(e))}addLoginHint(e){this.parameters.set(hke,encodeURIComponent(e))}addCcsUpn(e){this.parameters.set(Rh.CCS_HEADER,encodeURIComponent(`UPN:${e}`))}addCcsOid(e){this.parameters.set(Rh.CCS_HEADER,encodeURIComponent(`Oid:${e.uid}@${e.utid}`))}addSid(e){this.parameters.set(dke,encodeURIComponent(e))}addClaims(e,t){const n=this.addClientCapabilitiesToClaims(e,t);uA.validateClaims(n),this.parameters.set(DPe,encodeURIComponent(n))}addCorrelationId(e){this.parameters.set(qPe,encodeURIComponent(e))}addLibraryInfo(e){this.parameters.set(GPe,e.sku),this.parameters.set(YPe,e.version),e.os&&this.parameters.set(WPe,e.os),e.cpu&&this.parameters.set(KPe,e.cpu)}addApplicationTelemetry(e){e!=null&&e.appName&&this.parameters.set(JPe,e.appName),e!=null&&e.appVersion&&this.parameters.set(eke,e.appVersion)}addPrompt(e){uA.validatePrompt(e),this.parameters.set(`${BPe}`,encodeURIComponent(e))}addState(e){e&&this.parameters.set(FPe,encodeURIComponent(e))}addNonce(e){this.parameters.set(UPe,encodeURIComponent(e))}addCodeChallengeParams(e,t){if(uA.validateCodeChallengeParams(e,t),e&&t)this.parameters.set(zPe,encodeURIComponent(e)),this.parameters.set(jPe,encodeURIComponent(t));else throw qa(QW)}addAuthorizationCode(e){this.parameters.set($Pe,encodeURIComponent(e))}addDeviceCode(e){this.parameters.set(nke,encodeURIComponent(e))}addRefreshToken(e){this.parameters.set(HPe,encodeURIComponent(e))}addCodeVerifier(e){this.parameters.set(VPe,encodeURIComponent(e))}addClientSecret(e){this.parameters.set(ike,encodeURIComponent(e))}addClientAssertion(e){e&&this.parameters.set(oke,encodeURIComponent(e))}addClientAssertionType(e){e&&this.parameters.set(ake,encodeURIComponent(e))}addOboAssertion(e){this.parameters.set(ske,encodeURIComponent(e))}addRequestTokenUse(e){this.parameters.set(lke,encodeURIComponent(e))}addGrantType(e){this.parameters.set(NPe,encodeURIComponent(e))}addClientInfo(){this.parameters.set($Re,"1")}addExtraQueryParameters(e){Object.entries(e).forEach(([t,n])=>{!this.parameters.has(t)&&n&&this.parameters.set(t,n)})}addClientCapabilitiesToClaims(e,t){let n;if(!e)n={};else try{n=JSON.parse(e)}catch{throw qa(XW)}return t&&t.length>0&&(n.hasOwnProperty(h4.ACCESS_TOKEN)||(n[h4.ACCESS_TOKEN]={}),n[h4.ACCESS_TOKEN][h4.XMS_CC]={values:t}),JSON.stringify(n)}addUsername(e){this.parameters.set(Fee.username,encodeURIComponent(e))}addPassword(e){this.parameters.set(Fee.password,encodeURIComponent(e))}addPopToken(e){e&&(this.parameters.set(Kee,Na.POP),this.parameters.set(Zee,encodeURIComponent(e)))}addSshJwk(e){e&&(this.parameters.set(Kee,Na.SSH),this.parameters.set(Zee,encodeURIComponent(e)))}addServerTelemetry(e){this.parameters.set(ZPe,e.generateCurrentRequestHeaderValue()),this.parameters.set(XPe,e.generateLastRequestHeaderValue())}addThrottling(){this.parameters.set(QPe,MM.X_MS_LIB_CAPABILITY_VALUE)}addLogoutHint(e){this.parameters.set(uke,encodeURIComponent(e))}addBrokerParameters(e){const t={};t[oK]=e.brokerClientId,t[CV]=e.brokerRedirectUri,this.addExtraQueryParameters(t)}createQueryString(){const e=new Array;
57return this.parameters.forEach((t,n)=>{e.push(`${n}=${t}`)}),gke(this.parameters,this.correlationId,this.performanceClient),e.join("&")}};/*! @azure/msal-common v14.16.1 2025-08-05 */function mke(r){return r.hasOwnProperty("authorization_endpoint")&&r.hasOwnProperty("token_endpoint")&&r.hasOwnProperty("issuer")&&r.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v14.16.1 2025-08-05 */function yke(r){return r.hasOwnProperty("tenant_discovery_endpoint")&&r.hasOwnProperty("metadata")}/*! @azure/msal-common v14.16.1 2025-08-05 */function vke(r){return r.hasOwnProperty("error")&&r.hasOwnProperty("error_description")}/*! @azure/msal-common v14.16.1 2025-08-05 */const Ht={AcquireTokenByCode:"acquireTokenByCode",AcquireTokenByRefreshToken:"acquireTokenByRefreshToken",AcquireTokenSilent:"acquireTokenSilent",AcquireTokenSilentAsync:"acquireTokenSilentAsync",AcquireTokenPopup:"acquireTokenPopup",AcquireTokenPreRedirect:"acquireTokenPreRedirect",AcquireTokenRedirect:"acquireTokenRedirect",CryptoOptsGetPublicKeyThumbprint:"cryptoOptsGetPublicKeyThumbprint",CryptoOptsSignJwt:"cryptoOptsSignJwt",SilentCacheClientAcquireToken:"silentCacheClientAcquireToken",SilentIframeClientAcquireToken:"silentIframeClientAcquireToken",AwaitConcurrentIframe:"awaitConcurrentIframe",SilentRefreshClientAcquireToken:"silentRefreshClientAcquireToken",SsoSilent:"ssoSilent",StandardInteractionClientGetDiscoveredAuthority:"standardInteractionClientGetDiscoveredAuthority",FetchAccountIdWithNativeBroker:"fetchAccountIdWithNativeBroker",NativeInteractionClientAcquireToken:"nativeInteractionClientAcquireToken",BaseClientCreateTokenRequestHeaders:"baseClientCreateTokenRequestHeaders",NetworkClientSendPostRequestAsync:"networkClientSendPostRequestAsync",RefreshTokenClientExecutePostToTokenEndpoint:"refreshTokenClientExecutePostToTokenEndpoint",AuthorizationCodeClientExecutePostToTokenEndpoint:"authorizationCodeClientExecutePostToTokenEndpoint",BrokerHandhshake:"brokerHandshake",AcquireTokenByRefreshTokenInBroker:"acquireTokenByRefreshTokenInBroker",AcquireTokenByBroker:"acquireTokenByBroker",RefreshTokenClientExecuteTokenRequest:"refreshTokenClientExecuteTokenRequest",RefreshTokenClientAcquireToken:"refreshTokenClientAcquireToken",RefreshTokenClientAcquireTokenWithCachedRefreshToken:"refreshTokenClientAcquireTokenWithCachedRefreshToken",RefreshTokenClientAcquireTokenByRefreshToken:"refreshTokenClientAcquireTokenByRefreshToken",RefreshTokenClientCreateTokenRequestBody:"refreshTokenClientCreateTokenRequestBody",AcquireTokenFromCache:"acquireTokenFromCache",SilentFlowClientAcquireCachedToken:"silentFlowClientAcquireCachedToken",SilentFlowClientGenerateResultFromCacheRecord:"silentFlowClientGenerateResultFromCacheRecord",AcquireTokenBySilentIframe:"acquireTokenBySilentIframe",InitializeBaseRequest:"initializeBaseRequest",InitializeSilentRequest:"initializeSilentRequest",InitializeClientApplication:"initializeClientApplication",SilentIframeClientTokenHelper:"silentIframeClientTokenHelper",SilentHandlerInitiateAuthRequest:"silentHandlerInitiateAuthRequest",SilentHandlerMonitorIframeForHash:"silentHandlerMonitorIframeForHash",SilentHandlerLoadFrame:"silentHandlerLoadFrame",SilentHandlerLoadFrameSync:"silentHandlerLoadFrameSync",StandardInteractionClientCreateAuthCodeClient:"standardInteractionClientCreateAuthCodeClient",StandardInteractionClientGetClientConfiguration:"standardInteractionClientGetClientConfiguration",StandardInteractionClientInitializeAuthorizationRequest:"standardInteractionClientInitializeAuthorizationRequest",StandardInteractionClientInitializeAuthorizationCodeRequest:"standardInteractionClientInitializeAuthorizationCodeRequest",GetAuthCodeUrl:"getAuthCodeUrl",HandleCodeResponseFromServer:"handleCodeResponseFromServer",HandleCodeResponse:"handleCodeResponse",UpdateTokenEndpointAuthority:"updateTokenEndpointAuthority",AuthClientAcquireToken:"authClientAcquireToken",AuthClientExecuteTokenRequest:"authClientExecuteTokenRequest",AuthClientCreateTokenRequestBody:"authClientCreateTokenRequestBody",AuthClientCreateQueryString:"authClientCreateQueryString",PopTokenGenerateCnf:"popTokenGenerateCnf",PopTokenGenerateKid:"popTokenGenerateKid",HandleServerTokenResponse:"handleServerTokenResponse",DeserializeResponse:"deserializeResponse",AuthorityFactoryCreateDiscoveredInstance:"authorityFactoryCreateDiscoveredInstance",AuthorityResolveEndpointsAsync:"authorityResolveEndpointsAsync",AuthorityResolveEndpointsFromLocalSources:"authorityResolveEndpointsFromLocalSources",AuthorityGetCloudDiscoveryMetadataFromNetwork:"authorityGetCloudDiscoveryMetadataFromNetwork",AuthorityUpdateCloudDiscoveryMetadata:"authorityUpdateCloudDiscoveryMetadata",AuthorityGetEndpointMetadataFromNetwork:"authorityGetEndpointMetadataFromNetwork",AuthorityUpdateEndpointMetadata:"authorityUpdateEndpointMetadata",AuthorityUpdateMetadataWithRegionalInformation:"authorityUpdateMetadataWithRegionalInformation",RegionDiscoveryDetectRegion:"regionDiscoveryDetectRegion",RegionDiscoveryGetRegionFromIMDS:"regionDiscoveryGetRegionFromIMDS",RegionDiscoveryGetCurrentVersion:"regionDiscoveryGetCurrentVersion",AcquireTokenByCodeAsync:"acquireTokenByCodeAsync",GetEndpointMetadataFromNetwork:"getEndpointMetadataFromNetwork",GetCloudDiscoveryMetadataFromNetworkMeasurement:"getCloudDiscoveryMetadataFromNetworkMeasurement",HandleRedirectPromiseMeasurement:"handleRedirectPromise",HandleNativeRedirectPromiseMeasurement:"handleNativeRedirectPromise",UpdateCloudDiscoveryMetadataMeasurement:"updateCloudDiscoveryMetadataMeasurement",UsernamePasswordCl
57ientAcquireToken:"usernamePasswordClientAcquireToken",NativeMessageHandlerHandshake:"nativeMessageHandlerHandshake",NativeGenerateAuthResult:"nativeGenerateAuthResult",RemoveHiddenIframe:"removeHiddenIframe",ClearTokensAndKeysWithClaims:"clearTokensAndKeysWithClaims",CacheManagerGetRefreshToken:"cacheManagerGetRefreshToken",GeneratePkceCodes:"generatePkceCodes",GenerateCodeVerifier:"generateCodeVerifier",GenerateCodeChallengeFromVerifier:"generateCodeChallengeFromVerifier",Sha256Digest:"sha256Digest",GetRandomValues:"getRandomValues"},_ke={InProgress:1};/*! @azure/msal-common v14.16.1 2025-08-05 */const AS=(r,e,t,n,i)=>(...o)=>{t.trace(`Executing function ${e}`);const a=n==null?void 0:n.startMeasurement(e,i);if(i){const l=e+"CallCount";n==null||n.incrementFields({[l]:1},i)}try{const l=r(...o);return a==null||a.end({success:!0}),t.trace(`Returning result from ${e}`),l}catch(l){t.trace(`Error occurred in ${e}`);try{t.trace(JSON.stringify(l))}catch{t.trace("Unable to print error message.")}throw a==null||a.end({success:!1},l),l}},Fr=(r,e,t,n,i)=>(...o)=>{t.trace(`Executing function ${e}`);const a=n==null?void 0:n.startMeasurement(e,i);if(i){const l=e+"CallCount";n==null||n.incrementFields({[l]:1},i)}return n==null||n.setPreQueueTime(e,i),r(...o).then(l=>(t.trace(`Returning result from ${e}`),a==null||a.end({success:!0}),l)).catch(l=>{t.trace(`Error occurred in ${e}`);try{t.trace(JSON.stringify(l))}catch{t.trace("Unable to print error message.")}throw a==null||a.end({success:!1},l),l})};/*! @azure/msal-common v14.16.1 2025-08-05 */let kfe=class Ofe{constructor(e,t,n,i){this.networkInterface=e,this.logger=t,this.performanceClient=n,this.correlationId=i}async detectRegion(e,t){var i;(i=this.performanceClient)==null||i.addQueueMeasurement(Ht.RegionDiscoveryDetectRegion,this.correlationId);let n=e;if(n)t.region_source=vI.ENVIRONMENT_VARIABLE;else{const o=Ofe.IMDS_OPTIONS;try{const a=await Fr(this.getRegionFromIMDS.bind(this),Ht.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(er.IMDS_VERSION,o);if(a.status===p4.httpSuccess&&(n=a.body,t.region_source=vI.IMDS),a.status===p4.httpBadRequest){const l=await Fr(this.getCurrentVersion.bind(this),Ht.RegionDiscoveryGetCurrentVersion,this.logger,this.performanceClient,this.correlationId)(o);if(!l)return t.region_source=vI.FAILED_AUTO_DETECTION,null;const u=await Fr(this.getRegionFromIMDS.bind(this),Ht.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(l,o);u.status===p4.httpSuccess&&(n=u.body,t.region_source=vI.IMDS)}}catch{return t.region_source=vI.FAILED_AUTO_DETECTION,null}}return n||(t.region_source=vI.FAILED_AUTO_DETECTION),n||null}async getRegionFromIMDS(e,t){var n;return(n=this.performanceClient)==null||n.addQueueMeasurement(Ht.RegionDiscoveryGetRegionFromIMDS,this.correlationId),this.networkInterface.sendGetRequestAsync(`${er.IMDS_ENDPOINT}?api-version=${e}&format=text`,t,er.IMDS_TIMEOUT)}async getCurrentVersion(e){var t;(t=this.performanceClient)==null||t.addQueueMeasurement(Ht.RegionDiscoveryGetCurrentVersion,this.correlationId);try{const n=await this.networkInterface.sendGetRequestAsync(`${er.IMDS_ENDPOINT}?format=json`,e);return n.status===p4.httpBadRequest&&n.body&&n.body["newest-versions"]&&n.body["newest-versions"].length>0?n.body["newest-versions"][0]:null}catch{return null}}};kfe.IMDS_OPTIONS={headers:{Metadata:"true"}};let CP=class S0{constructor(e,t,n,i,o,a,l,u){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=n,this.authorityOptions=i,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=o,this.performanceClient=l,this.correlationId=a,this.managedIdentity=u||!1,this.regionDiscovery=new kfe(t,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(e){if(e.HostNameAndPort.endsWith(er.CIAM_AUTH_URL))return Zy.Ciam;const t=e.PathSegments;if(t.length)switch(t[0].toLowerCase()){case er.ADFS:return Zy.Adfs;case er.DSTS:return Zy.Dsts}return Zy.Default}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(e){this._canonicalAuthority=new Ma(e),this._canonicalAuthority.val
57idateAsUri(),this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw Sr(C1)}get tokenEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw Sr(C1)}get deviceCodeEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw Sr(C1)}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw Sr(rfe);return this.replacePath(this.metadata.end_session_endpoint)}else throw Sr(C1)}get selfSignedJwtAudience(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw Sr(C1)}get jwksUri(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw Sr(C1)}canReplaceTenant(e){return e.PathSegments.length===1&&!S0.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===Zy.Default&&this.protocolMode===j1.AAD}replaceTenant(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(e){let t=e;const i=new Ma(this.metadata.canonical_authority).getUrlComponents(),o=i.PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach((l,u)=>{let h=o[u];if(u===0&&this.canReplaceTenant(i)){const p=new Ma(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];h!==p&&(this.logger.verbose(`Replacing tenant domain name ${h} with id ${p}`),h=p)}l!==h&&(t=t.replace(`/${h}/`,`/${l}/`))}),this.replaceTenant(t)}get defaultOpenIdConfigurationEndpoint(){const e=this.hostnameAndPort;return this.canonicalAuthority.endsWith("v2.0/")||this.authorityType===Zy.Adfs||this.protocolMode!==j1.AAD&&!this.isAliasOfKnownMicrosoftAuthority(e)?`${this.canonicalAuthority}.well-known/openid-configuration`:`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}async resolveEndpointsAsync(){var i,o;(i=this.performanceClient)==null||i.addQueueMeasurement(Ht.AuthorityResolveEndpointsAsync,this.correlationId);const e=this.getCurrentMetadataEntity(),t=await Fr(this.updateCloudDiscoveryMetadata.bind(this),Ht.AuthorityUpdateCloudDiscoveryMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network);const n=await Fr(this.updateEndpointMetadata.bind(this),Ht.AuthorityUpdateEndpointMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.updateCachedMetadata(e,t,{source:n}),(o=this.performanceClient)==null||o.addFields({cloudDiscoverySource:t,authorityEndpointSource:n},this.correlationId)}getCurrentMetadataEntity(){let e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort);return e||(e={aliases:[],preferred_cache:this.hostnameAndPort,preferred_network:this.hostnameAndPort,canonical_authority:this.canonicalAuthority,authorization_endpoint:"",token_endpoint:"",end_session_endpoint:"",issuer:"",aliasesFromNetwork:!1,endpointsFromNetwork:!1,expiresAt:Vee(),jwks_uri:""}),e}updateCachedMetadata(e,t,n){t!==$p.CACHE&&(n==null?void 0:n.source)!==$p.CACHE&&(e.expiresAt=Vee(),e.canonical_authority=this.canonicalAuthority);const i=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache);this.cacheManager.setAuthorityMetadata(i,e),this.metadata=e}async updateEndpointMetadata(e){var i,o,a;(i=this.performanceClient)==null||i.addQueueMeasurement(Ht.AuthorityUpdateEndpointMetadata,this.correlationId);const t=this.updateEndpointMetadataFromLocalSources(e);if(t){if(t.source===$p.HARDCODED_VALUES&&(o=this.authorityOptions.azureRegionConfiguration)!=null&&o.azureRegion&&t.metadata){const l=await Fr(this.updateMetadataWithRegionalInformation.bind(this),Ht.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(t.metadata);g4(e,l,!1),e.canonical_authority=this.canonicalAuthority}return t.source}let n=await Fr(this.getEndpointMetadataFromNetwork.bind(this),Ht.AuthorityGetEndpointMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(n)return(a=this.authorityOptions.azureRegionConfiguration)!=null&&a.azureRegion&&(n=await Fr(this.updateMetadataWithRegionalInformation.bind(this),Ht.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(n)),g4(e,n,!0),$p.NETWORK;throw Sr(Vhe,this.defaultOpenIdConfigurationEndpoint)}updateEndpointMetadataFromLocalSources(e){this.logger.verbose("Attempting to get endpoint metadata from authority configuration");const t=this.getEndpointMetadataFromConfig();if(t)return this.logger.verbose("Found endpoint metadata in authority configuration"),g4(e,t,!1),{source:$p.CONFIG};if(this.logger.verbose("Did not find endpoint metadata in the config... Attempting to get endpoint metadata from the hardcoded values."),this.authorityOptions.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get endpoint metadata from the network metadata cache.");else{const i=this.getEndpointMetadataFromHardcodedValues();if(i)return g4(e,i,!1),{source:$p.HARDCODED_VALUES,metadata:i};this.logger.verbose("Did not find endpoint metadata in hardcoded values... Attempting to get endpoint metadata from the network metadata cache.")}const n=qee(e);return this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!n?(this.logger.verbose("Found endpoint metadata in the cache."),{source:$p.CACHE}):(n&&this.logger.verbose("The metadata entity is expired."),null)}isAuthoritySameType(e){return new Ma(e.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw qa(mfe)}return null}async getEndpointMetadataFromNetwork(){var n;(n=this.performanceClient)==null||n.addQueueMeasurement(Ht.AuthorityGetEndpointMetadataFromNetwork,this.correlationId);const e={},t=this.defaultOpenIdConfigurationEndpoint;this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: attempting to retrieve OAuth endpoints from ${t}`);try{const i=await this.networkInterface.sendGetRequestAsync(t,e);return mke(i.body)?i.body:(this.logger.verbose("Authority.getEndpointMetadataFromNetwork: could not parse response as OpenID configuration"),null)}catch(i){return this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: ${i}`),null}}getEndpointMetadataFromHardcodedValues(){return this.hostnameAndPort in Gee?Gee[this.hostnameAndPort]:null}async updateMetadataWithRegionalInformation(e){var n,i,o;(n=this.performanceClient)==null||n.addQueueMeasurement(Ht.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId);const t=(i=this.authorityOptions.azureRegionConfiguration)==null?void 0:i.azureRegion;if(t){if(t!==er.AZURE_REGION_AUTO_DISCOVER_FLAG)return this.regionDiscoveryMetadata.region_outcome=C$.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=t,S0.replaceWithRegionalInformation(e,t);const a=await Fr(this.regionDiscovery.detectRegion.bind(this.regionDiscovery),Ht.RegionDiscoveryDetectRegion,this.logger,this.performanceClient,this.correlationId)((o=this.authorityOptions.azureRegionConfiguration)==null?void 0:o.environmentRegion,this.regionDiscoveryMetadata);if(a)return this.regionDiscoveryMetadata.region_outcome=C$.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=a,S0.replaceWithRegionalInformation(e,a);this.regionDiscoveryMetadata.region_outcome=C$.AUTO_DETECTION_REQUESTED_FAILED}return e}async updateCloudDiscoveryMetadata(e){var i;(i=this.performanceClient)==null||i.addQueueMeasurement(Ht.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId);const t=this.updateCloudDiscoveryMetadataFromLocalSources(e);if(t)return t;const n=await Fr(this.getCloudDiscoveryMetadataFromNetwork.bind(this),Ht.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(n)return x$(e,n,!0),$p.NETWORK;throw qa(yfe)}updateCloudDiscoveryMetadataFromLocalSources(e){this.logger.verbose("Attempting to get cloud discovery metadata  from authority configuration"),this.logger.verbosePii(`Known Authorities: ${this.authorityOptions.knownAuthorities||er.NOT_APPLICABLE}`),this.logger.verbosePii(`Authority Metadata: ${this.authorityOptions.authorityMetadata||er.NOT_APPLICABLE}`),this.logger.verbosePii(`Canonical Authority: ${e.canonical_authority||er.NOT_APPLICABLE}`);const t=this.getCloudDiscoveryMetadataFromConfig();if(t)return this.logger.verbose("Found cloud discovery metadata in authority configuration"),x$(e,t,!1),$p.CONFIG;if(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the hardcoded values."),this.options.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded cloud discovery metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get cloud discovery metadata from the network metadata cache.");else{const i=EPe(this.hostnameAndPort);if(i)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),x$(e,i,!1),$p.HARDCODED_VALUES;this.logger.verbose("Did not find cloud discovery metadata in hardcoded values... Attempting to get cloud discovery metadata from the network metadata cache.")}const n=qee(e);return this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!n?(this.logger.verbose("Found cloud discovery metadata in the cache."),$p.CACHE):(n&&this.logger.verbose("The metadata entity is expired."),null)}getCloudDiscoveryMetadataFromConfig(){if(this.authorityType===Zy.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),S0.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");const e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),t=BF(e.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),t)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),t;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),qa(JW)}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),S0.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null}async getCloudDiscoveryMetadataFromNetwork(){var i;(i=this.performanceClient)==null||i.addQueueMeasurement(Ht.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId);const e=`${er.AAD_INSTANCE_DISCOVERY_ENDPT}${this.canonicalAuthority}oauth2/v2.0/authorize`,t={};let n=null;try{const o=await this.networkInterface.sendGetRequestAsync(e,t);let a,l;if(yke(o.body))a=o.body,l=a.metadata,this.logger.verbosePii(`tenant_discovery_endpoint is: ${a.tenant_discovery_endpoint}`);
57else if(vke(o.body)){if(this.logger.warning(`A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: ${o.status}`),a=o.body,a.error===er.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),null;this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error is ${a.error}`),this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error description is ${a.error_description}`),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),l=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),null;this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),n=BF(l,this.hostnameAndPort)}catch(o){if(o instanceof Js)this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
58Error: ${o.errorCode}
59Error Description: ${o.errorMessage}`);else{const a=o;this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
60Error: ${a.name}
61Error Description: ${a.message}`)}return null}return n||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),n=S0.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),n}isInKnownAuthorities(){return this.authorityOptions.knownAuthorities.filter(t=>t&&Ma.getDomainFromUrl(t).toLowerCase()===this.hostnameAndPort).length>0}static generateAuthority(e,t){let n;if(t&&t.azureCloudInstance!==KW.None){const i=t.tenant?t.tenant:er.DEFAULT_COMMON_TENANT;n=`${t.azureCloudInstance}/${i}/`}return n||e}static createCloudDiscoveryMetadataFromHost(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}}getPreferredCache(){if(this.managedIdentity)return er.DEFAULT_AUTHORITY_HOST;if(this.discoveryComplete())return this.metadata.preferred_cache;throw Sr(C1)}isAlias(e){return this.metadata.aliases.indexOf(e)>-1}isAliasOfKnownMicrosoftAuthority(e){return Sfe.has(e)}static isPublicCloudAuthority(e){return er.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0}static buildRegionalAuthorityString(e,t,n){const i=new Ma(e);i.validateAsUri();const o=i.getUrlComponents();let a=`${t}.${o.HostNameAndPort}`;this.isPublicCloudAuthority(o.HostNameAndPort)&&(a=`${t}.${er.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX}`);const l=Ma.constructAuthorityUriFromObject({...i.getUrlComponents(),HostNameAndPort:a}).urlString;return n?`${l}?${n}`:l}static replaceWithRegionalInformation(e,t){const n={...e};return n.authorization_endpoint=S0.buildRegionalAuthorityString(n.authorization_endpoint,t),n.token_endpoint=S0.buildRegionalAuthorityString(n.token_endpoint,t),n.end_session_endpoint&&(n.end_session_endpoint=S0.buildRegionalAuthorityString(n.end_session_endpoint,t)),n}static transformCIAMAuthority(e){let t=e;const i=new Ma(e).getUrlComponents();if(i.PathSegments.length===0&&i.HostNameAndPort.endsWith(er.CIAM_AUTH_URL)){const o=i.HostNameAndPort.split(".")[0];t=`${t}${o}${er.AAD_TENANT_DOMAIN_SUFFIX}`}return t}};CP.reservedTenantDomains=new Set(["{tenant}","{tenantid}",wE.COMMON,wE.CONSUMERS,wE.ORGANIZATIONS]);function bke(r){var i;const n=(i=new Ma(r).getUrlComponents().PathSegments.slice(-1)[0])==null?void 0:i.toLowerCase();switch(n){case wE.COMMON:case wE.ORGANIZATIONS:case wE.CONSUMERS:return;default:return n}}function Mfe(r){return r.endsWith(er.FORWARD_SLASH)?r:`${r}${er.FORWARD_SLASH}`}function wke(r){const e=r.cloudDiscoveryMetadata;let t;if(e)try{t=JSON.parse(e)}catch{throw qa(JW)}return{canonicalAuthority:r.authority?Mfe(r.authority):void 0,knownAuthorities:r.knownAuthorities,cloudDiscoveryMetadata:t}}/*! @azure/msal-common v14.16.1 2025-08-05 */async function Nfe(r,e,t,n,i,o,a){a==null||a.addQueueMeasurement(Ht.AuthorityFactoryCreateDiscoveredInstance,o);const l=CP.transformCIAMAuthority(Mfe(r)),u=new CP(l,e,t,n,i,o,a);try{return await Fr(u.resolveEndpointsAsync.bind(u),Ht.AuthorityResolveEndpointsAsync,i,a,o)(),u}catch{throw Sr(C1)}}/*! @azure/msal-common v14.16.1 2025-08-05 */let xP=class Dfe extends Js{constructor(e,t,n,i,o){super(e,t,n),this.name="ServerError",this.errorNo=i,this.status=o,Object.setPrototypeOf(this,Dfe.prototype)}};/*! @azure/msal-common v14.16.1 2025-08-05 */let zF=class dA{static generateThrottlingStorageKey(e){return`${MM.THROTTL
61ING_PREFIX}.${JSON.stringify(e)}`}static preProcess(e,t,n){var a;const i=dA.generateThrottlingStorageKey(t),o=e.getThrottlingCache(i);if(o){if(o.throttleTime<Date.now()){e.removeItem(i,n);return}throw new xP(((a=o.errorCodes)==null?void 0:a.join(" "))||er.EMPTY_STRING,o.errorMessage,o.subError)}}static postProcess(e,t,n,i){if(dA.checkResponseStatus(n)||dA.checkResponseForRetryAfter(n)){const o={throttleTime:dA.calculateThrottleTime(parseInt(n.headers[Rh.RETRY_AFTER])),error:n.body.error,errorCodes:n.body.error_codes,errorMessage:n.body.error_description,subError:n.body.suberror};e.setThrottlingCache(dA.generateThrottlingStorageKey(t),o,i)}}static checkResponseStatus(e){return e.status===429||e.status>=500&&e.status<600}static checkResponseForRetryAfter(e){return e.headers?e.headers.hasOwnProperty(Rh.RETRY_AFTER)&&(e.status<200||e.status>=300):!1}static calculateThrottleTime(e){const t=e<=0?0:e,n=Date.now()/1e3;return Math.floor(Math.min(n+(t||MM.DEFAULT_THROTTLE_TIME_SECONDS),n+MM.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)}static removeThrottle(e,t,n,i){const o={clientId:t,authority:n.authority,scopes:n.scopes,homeAccountIdentifier:i,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},a=this.generateThrottlingStorageKey(o);e.removeItem(a,n.correlationId)}};/*! @azure/msal-common v14.16.1 2025-08-05 */class GB extends Js{constructor(e,t,n){super(e.errorCode,e.errorMessage,e.subError),Object.setPrototypeOf(this,GB.prototype),this.name="NetworkError",this.error=e,this.httpStatus=t,this.responseHeaders=n}}function Qee(r,e,t){return new GB(r,e,t)}/*! @azure/msal-common v14.16.1 2025-08-05 */let aK=class{constructor(e,t){this.config=kPe(e),this.logger=new fk(this.config.loggerOptions,ofe,WW),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}createTokenRequestHeaders(e){const t={};
61if(t[Rh.CONTENT_TYPE]=er.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case tg.HOME_ACCOUNT_ID:try{const n=zA(e.credential);t[Rh.CCS_HEADER]=`Oid:${n.uid}@${n.utid}`}catch(n){this.logger.verbose("Could not parse home account ID for CCS Header: "+n)}break;case tg.UPN:t[Rh.CCS_HEADER]=`UPN: ${e.credential}`;break}return t}async executePostToTokenEndpoint(e,t,n,i,o,a){var u;a&&((u=this.performanceClient)==null||u.addQueueMeasurement(a,o));const l=await this.sendPostRequest(i,e,{body:t,headers:n},o);return this.config.serverTelemetryManager&&l.status<500&&l.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),l}async sendPostRequest(e,t,n,i){var a,l,u;zF.preProcess(this.cacheManager,e,i);let o;try{o=await Fr(this.networkClient.sendPostRequestAsync.bind(this.networkClient),Ht.NetworkClientSendPostRequestAsync,this.logger,this.performanceClient,i)(t,n);const h=o.headers||{};(l=this.performanceClient)==null||l.addFields({refreshTokenSize:((a=o.body.refresh_token)==null?void 0:a.length)||0,httpVerToken:h[Rh.X_MS_HTTP_VERSION]||"",requestId:h[Rh.X_MS_REQUEST_ID]||""},i)}catch(h){if(h instanceof GB){const p=h.responseHeaders;throw p&&((u=this.performanceClient)==null||u.addFields({httpVerToken:p[Rh.X_MS_HTTP_VERSION]||"",requestId:p[Rh.X_MS_REQUEST_ID]||"",contentTypeHeader:p[Rh.CONTENT_TYPE]||void 0,contentLengthHeader:p[Rh.CONTENT_LENGTH]||void 0,httpStatus:h.httpStatus},i)),h.error}throw h instanceof Js?h:Sr(jhe)}return zF.postProcess(this.cacheManager,e,o,i),o}async updateAuthority(e,t){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(Ht.UpdateTokenEndpointAuthority,t);const n=`https://${e}/${this.authority.tenant}/`,i=await Nfe(n,this.networkClient,this.cacheManager,this.authority.options,this.logger,t,this.performanceClient);this.authority=i}createTokenQueryParameters(e){const t=new NM(e.correlationId,this.performanceClient);return e.embeddedClientId&&t.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.addCorrelationId(e.correlationId),t.createQueryString()}};/*! @azure/msal-common v14.16.1 2025-08-05 */const jF="no_tokens_found",Lfe="native_account_unavailable",sK="refresh_token_expired",Eke="interaction_required",Cke="consent_required",xke="login_required",YB="bad_token";/*! @azure/msal-common v14.16.1 2025-08-05 */const Jee=[Eke,Cke,xke,YB],Tke=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token"],Ske={[jF]:"No refresh token found in the cache. Please sign-in.",[Lfe]:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",[sK]:"Refresh token has expired.",[YB]:"Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve."};let lb=class Hfe extends Js{constructor(e,t,n,i,o,a,l,u){super(e,t,n),Object.setPrototypeOf(this,Hfe.prototype),this.timestamp=i||er.EMPTY_STRING,this.traceId=o||er.EMPTY_STRING,this.correlationId=a||er.EMPTY_STRING,this.claims=l||er.EMPTY_STRING,this.name="InteractionRequiredAuthError",this.errorNo=u}};function ete(r,e,t){const n=!!r&&Jee.indexOf(r)>-1,i=!!t&&Tke.indexOf(t)>-1,o=!!e&&Jee.some(a=>e.indexOf(a)>-1);return n||o||i}function xV(r){return new lb(r,Ske[r])}/*! @azure/msal-common v14.16.1 2025-08-05 */let V1=class Ffe{static setRequestState(e,t,n){const i=Ffe.generateLibraryState(e,n);return t?`${i}${er.RESOURCE_DELIM}${t}`:i}static generateLibraryState(e,t){if(!e)throw Sr(vV);const n={id:e.createNewGuid()};t&&(n.meta=t);const i=JSON.stringify(n);return e.base64Encode(i)}static parseRequestState(e,t){if(!e)throw Sr(vV);if(!t)throw Sr(EP);try{const n=t.split(er.RESOURCE_DELIM),i=n[0],o=n.length>1?n.slice(1).join(er.RESOURCE_DELIM):er.EMPTY_STRING,a=e.base64Decode(i),l=JSON.parse(a);return{userRequestState:o||er.EMPTY_STRING,libraryState:l}}catch{throw Sr(EP)}}};/*! @azure/msal-common v14.16.1 2025-08-05 */const Ike={SW:"sw"};let TP=class{constructor(e,t){this.cryptoUtils=e,this.performanceClient=t}async generateCnf(e,t){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(Ht.PopTokenGenerateCnf,e.correlationId);const n=await Fr(this.generateKid.bind(this),Ht.PopTokenGenerateCnf,t,this.performanceClient,e.correlationId)(e),i=this.cryptoUtils.base64UrlEncode(JSON.stringify(n));return{kid:n.kid,reqCnfString:i}}async generateKid(e){var n;return(n=this.performanceClient)==null||n.addQueueMeasurement(Ht.PopTokenGenerateKid,e.correlationId),{kid:await this.cryptoUtils.getPublicKeyThumbprint(e),xms_ksl:Ike.SW}}async signPopToken(e,t,n){return this.signPayload(e,t,n)}async signPayload(e,t,n,i){const{resourceRequestMethod:o,resourceRequestUri:a,shrClaims:l,shrNonce:u,shrOptions:h}=n,p=a?new Ma(a):void 0,m=p==null?void 0:p.getUrlComponents();return this.cryptoUtils.signJwt({at:e,ts:c_(),m:o==null?void 0:o.toUpperCase(),u:m==null?void 0:m.HostNameAndPort,nonce:u||this.cryptoUtils.createNewGuid(),p:m==null?void 0:m.AbsolutePath,q:m!=null&&m.QueryString?[[],m.QueryString]:void 0,client_claims:l||void 0,...i},t,h,n.correlationId)}};/*! @azure/msal-common v14.16.1 2025-08-05 */let Ake=class{constructor(e,t){this.cache=e,this.hasChanged=t}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}};/*! @azure/msal-common v14.16.1 2025-08-05 */function Rke(r){var n,i;
61const e="code=",t=(n=r.error_uri)==null?void 0:n.lastIndexOf(e);return t&&t>=0?(i=r.error_uri)==null?void 0:i.substring(t+e.length):void 0}let VF=class TV{constructor(e,t,n,i,o,a,l){this.clientId=e,this.cacheStorage=t,this.cryptoObj=n,this.logger=i,this.serializableCache=o,this.persistencePlugin=a,this.performanceClient=l}validateServerAuthorizationCodeResponse(e,t){if(!e.state||!t)throw e.state?Sr(DF,"Cached State"):Sr(DF,"Server State");let n,i;try{n=decodeURIComponent(e.state)}catch{throw Sr(EP,e.state)}try{i=decodeURIComponent(t)}catch{throw Sr(EP,e.state)}if(n!==i)throw Sr(Ghe);if(e.error||e.error_description||e.suberror){const o=Rke(e);throw ete(e.error,e.error_description,e.suberror)?new lb(e.error||"",e.error_description,e.suberror,e.timestamp||"",e.trace_id||"",e.correlation_id||"",e.claims||"",o):new xP(e.error||"",e.error_description,e.suberror,o)}}validateTokenResponse(e,t){var n;if(e.error||e.error_description||e.suberror){const i=`Error(s): ${e.error_codes||er.NOT_AVAILABLE} - Timestamp: ${e.timestamp||er.NOT_AVAILABLE} - Description: ${e.error_description||er.NOT_AVAILABLE} - Correlation ID: ${e.correlation_id||er.NOT_AVAILABLE} - Trace ID: ${e.trace_id||er.NOT_AVAILABLE}`,o=(n=e.error_codes)!=null&&n.length?e.error_codes[0]:void 0,a=new xP(e.error,i,e.suberror,o,e.status);if(t&&e.status&&e.status>=d4.SERVER_ERROR_RANGE_START&&e.status<=d4.SERVER_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently unavailable and the access token is unable to be refreshed.
62${a}`);return}else if(t&&e.status&&e.status>=d4.CLIENT_ERROR_RANGE_START&&e.status<=d4.CLIENT_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently available but is unable to refresh the access token.
63${a}`);return}throw ete(e.error,e.error_description,e.suberror)?new lb(e.error,e.error_description,e.suberror,e.timestamp||er.EMPTY_STRING,e.trace_id||er.EMPTY_STRING,e.correlation_id||er.EMPTY_STRING,e.claims||er.EMPTY_STRING,o):a}}async handleServerTokenResponse(e,t,n,i,o,a,l,u,h){var T;(T=this.performanceClient)==null||T.addQueueMeasurement(Ht.HandleServerTokenResponse,e.correlation_id);let p;if(e.id_token){if(p=IS(e.id_token||er.EMPTY_STRING,this.cryptoObj.base64Decode),o&&o.nonce&&p.nonce!==o.nonce)throw Sr(Yhe);if(i.maxAge||i.maxAge===0){const S=p.auth_time;if(!S)throw Sr(VW);afe(S,i.maxAge)}}this.homeAccountIdentifier=zh.generateHomeAccountId(e.client_info||er.EMPTY_STRING,t.authorityType,this.logger,this.cryptoObj,p);let m;o&&o.state&&(m=V1.parseRequestState(this.cryptoObj,o.state)),e.key_id=e.key_id||i.sshKid||void 0;const _=this.generateCacheRecord(e,t,n,i,p,a,o);let C;try{if(this.persistencePlugin&&this.serializableCache&&(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),C=new Ake(this.serializableCache,!0),await this.persistencePlugin.beforeCacheAccess(C)),l&&!u&&_.account){const S=_.account.generateAccountKey();if(!this.cacheStorage.getAccount(S,i.correlationId,this.logger))return this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),await TV.generateAuthenticationResult(this.cryptoObj,t,_,!1,i,p,m,void 0,h)}await this.cacheStorage.saveCacheRecord(_,i.correlationId,i.storeInCache)}finally{this.persistencePlugin&&this.serializableCache&&C&&(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),await this.persistencePlugin.afterCacheAccess(C))}return TV.generateAuthenticationResult(this.cryptoObj,t,_,!1,i,p,m,e,h)}generateCacheRecord(e,t,n,i,o,a,l){const u=t.getPreferredCache();if(!u)throw Sr(GW);const h=Cfe(o);let p,m;e.id_token&&o&&(p=jB(this.homeAccountIdentifier,u,e.id_token,this.clientId,h||""),m=lK(this.cacheStorage,t,this.homeAccountIdentifier,this.cryptoObj.base64Decode,i.correlationId,o,e.client_info,u,h,l,void 0,this.logger));let _=null;if(e.access_token){const S=e.scope?ed.fromString(e.scope):new ed(i.scopes||[]),R=(typeof e.expires_in=="str
63ing"?parseInt(e.expires_in,10):e.expires_in)||0,O=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,N=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,H=n+R,F=H+O,j=N&&N>0?n+N:void 0;_=VB(this.homeAccountIdentifier,u,e.access_token,this.clientId,h||t.tenant||"",S.printScopes(),H,F,this.cryptoObj.base64Decode,j,e.token_type,a,e.key_id,i.claims,i.requestedClaimsHash)}let C=null;if(e.refresh_token){let S;if(e.refresh_token_expires_in){const R=typeof e.refresh_token_expires_in=="string"?parseInt(e.refresh_token_expires_in,10):e.refresh_token_expires_in;S=n+R}C=sfe(this.homeAccountIdentifier,u,e.refresh_token,this.clientId,e.foci,a,S)}let T=null;return e.foci&&(T={clientId:this.clientId,environment:u,familyId:e.foci}),{account:m,idToken:p,accessToken:_,refreshToken:C,appMetadata:T}}static async generateAuthenticationResult(e,t,n,i,o,a,l,u,h){var H,F,j,L,B;let p=er.EMPTY_STRING,m=[],_=null,C,T,S=er.EMPTY_STRING;if(n.accessToken){if(n.accessToken.tokenType===Na.POP&&!o.popKid){const Q=new TP(e),{secret:Z,keyId:ie}=n.accessToken;if(!ie)throw Sr(YW);p=await Q.signPopToken(Z,ie,o)}else p=n.accessToken.secret;m=ed.fromString(n.accessToken.target).asArray(),_=new Date(Number(n.accessToken.expiresOn)*1e3),C=new Date(Number(n.accessToken.extendedExpiresOn)*1e3),n.accessToken.refreshOn&&(T=new Date(Number(n.accessToken.refreshOn)*1e3))}n.appMetadata&&(S=n.appMetadata.familyId===OM?OM:"");const R=(a==null?void 0:a.oid)||(a==null?void 0:a.sub)||"",O=(a==null?void 0:a.tid)||"";u!=null&&u.spa_accountid&&n.account&&(n.account.nativeAccountId=u==null?void 0:u.spa_accountid);const N=n.account?tK(n.account.getAccountInfo(),void 0,a,(H=n.idToken)==null?void 0:H.secret):null;return{authority:t.canonicalAuthority,uniqueId:R,tenantId:O,scopes:m,account:N,idToken:((F=n==null?void 0:n.idToken)==null?void 0:F.secret)||"",idTokenClaims:a||{},accessToken:p,fromCache:i,expiresOn:_,extExpiresOn:C,refreshOn:T,correlationId:o.correlationId,requestId:h||er.EMPTY_STRING,familyId:S,tokenType:((j=n.accessToken)==null?void 0:j.tokenType)||er.EMPTY_STRING,state:l?l.userRequestState:er.EMPTY_STRING,cloudGraphHostName:((L=n.account)==null?void 0:L.cloudGraphHostName)||er.EMPTY_STRING,msGraphHost:((B=n.account)==null?void 0:B.msGraphHost)||er.EMPTY_STRING,code:u==null?void 0:u.spa_code,fromNativeBroker:!1}}};function lK(r,e,t,n,i,o,a,l,u,h,p,m){m==null||m.verbose("setCachedAccount called");const C=r.getAccountKeys().find(N=>N.startsWith(t));let T=null;C&&(T=r.getAccount(C,i,m));const S=T||zh.createAccount({homeAccountId:t,idTokenClaims:o,clientInfo:a,environment:l,cloudGraphHostName:h==null?void 0:h.cloud_graph_host_name,msGraphHost:h==null?void 0:h.msgraph_host,nativeAccountId:p},e,n),R=S.tenantProfiles||[],O=u||S.realm;if(O&&!R.find(N=>N.tenantId===O)){const N=eK(t,S.localAccountId,O,o);R.push(N)}return S.tenantProfiles=R,S}/*! @azure/msal-common v14.16.1 2025-08-05 */async function Ufe(r,e,t){return typeof r=="string"?r:r({clientId:e,tokenEndpoint:t})}/*! @azure/msal-common v14.16.1 2025-08-05 */let Bfe=class extends aK{constructor(e,t){var n;super(e,t),this.includeRedirectUri=!0,this.oidcDefaultScopes=(n=this.config.authOptions.authority.options.OIDCOptions)==null?void 0:n.defaultScopes}async getAuthCodeUrl(e){var n;(n=this.performanceClient)==null||n.addQueueMeasurement(Ht.GetAuthCodeUrl,e.correlationId);const t=await Fr(this.createAuthCodeUrlQueryString.bind(this),Ht.AuthClientCreateQueryString,this.logger,this.performanceClient,e.correlationId)(e);return Ma.appendQueryString(this.authority.authorizationEndpoint,t)}async acquireToken(e,t){var l,u;if((l=this.performanceClient)==null||l.addQueueMeasurement(Ht.AuthClientAcquireToken,e.correlationId),!e.code)throw Sr(Zhe);const n=c_(),i=await Fr(this.executeTokenRequest.bind(this),Ht.AuthClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(this.authority,e),o=(u=i.headers)==null?void 0:u[Rh.X_MS_REQUEST_ID],a=new VF(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient);return a.validateTokenResponse(i.body),Fr(a.handleServerTokenResponse.bind(a),Ht.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(i.body,this.authority,n,e,t,void 0,void 0,void 0,o)}handleFragmentResponse(e,t){if(new VF(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null).validateServerAuthorizationCodeResponse(e,t),!e.code)throw Sr(tfe);return e}getLogoutUri(e){if(!e)throw qa(pfe);const t=this.createLogoutUrlQueryString(e);return Ma.appendQueryString(this.authority.endSessionEndpoint,t)}async executeTokenRequest(e,t){var h,p;(h=this.performanceClient)==null||h.addQueueMeasurement(Ht.AuthClientExecuteTokenRequest,t.correlationId);const n=this.createTokenQueryParameters(t),i=Ma.appendQueryString(e.tokenEndpoint,n),o=await Fr(this.createTokenRequestBody.bind(this),Ht.AuthClientCreateTokenRequestBody,this.logger,this.performanceClient,t.correlationId)(t);let a;if(t.clientInfo)try{const m=HF(t.clientInfo,this.cryptoUtils.base64Decode);a={credential:`${m.uid}${Hd.CLIENT_INFO_SEPARATOR}${m.utid}`,type:tg.HOME_ACCOUNT_ID}}catch(m){this.logger.verbose("Could not parse client info for CCS Header: "+m)}const l=this.createTokenRequestHeaders(a||t.ccsCredential),u={clientId:((p=t.tokenBodyParameters)==null?void 0:p.clientId)||this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid};return Fr(this.executePostToTokenEndpoint.bind(this),Ht.AuthorizationCodeClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,t.correlationId)(i,o,l,u,t.correlationId,Ht.AuthorizationCodeClientExecutePostToTokenEndpoint)}async createTokenRequestBody(e){var i,o;(i=this.performanceClient)==null||i.addQueueMeasurement(Ht.AuthClientCreateTokenRequestBody,e.correlationId);const t=new NM(e.correlationId,this.performanceClient);if(t.addClientId(e.embeddedClientId||((o=e.tokenBodyParameters)==null?void 0:o[XT])||this.config.authOptions.clientId),this.includeRedirectUri?t.addRedirectUri(e.redirectUri):uA.validateRedirectUri(e.redirectUri),t.addScopes(e.scopes,!0,this.oidcDefaultScopes),t.addAuthorizationCode(e.code),t.addLibraryInfo(this.config.libraryInfo),t.addApplicationTelemetry(this.config.telemetry.application),t.addThrottling(),this.serverTelemetryManager&&!EV(this.config)&&t.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&t.addCodeVerifier(e.codeVerifier),this.config.clientCredentials.clientSecret&&t.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const a=this.config.clientCredentials.clientAssertion;t.addClientAssertion(await Ufe(a.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),t.addClientAssertionType(a.assertionType)}if(t.addGrantType(Fhe.AUTHORIZATION_CODE_GRANT),t.addClientInfo(),e.authenticationScheme===Na.POP){const a=new TP(this.cryptoUtils,this.performanceClient);let l;e.popKid?l=this.cryptoUtils.encodeKid(e.popKid):l=(await Fr(a.generateCnf.bind(a),Ht.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString,t.addPopToken(l)}else if(e.authenticationScheme===Na.SSH)if(e.sshJwk)t.addSshJwk(e.sshJwk);else throw qa(qB);(!lv.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&t.addClaims(e.claims,this.config.authOptions.clientCapabilities);let n;if(e.clientInfo)try{const a=HF(e.clientInfo,this.cryptoUtils.base64Decode);n={credential:`${a.uid}${Hd.CLIENT_INFO_SEPARATOR}${a.utid}`,type:tg.HOME_ACCOUNT_ID}}catch(a){this.logger.verbose("Could not parse client info for CCS Header: "+a)}else n=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&n)switch(n.type){case tg.HOME_ACCOUNT_ID:try{const a=zA(n.credential);t.addCcsOid(a)}catch(a){this.logger.verbose("Could not parse home account ID for CCS Header: "+a)}break;case tg.UPN:t.addCcsUpn(n.credential);break}return e.embeddedClientId&&t.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),e.tokenBodyParameters&&t.addExtraQueryParameters(e.tokenBodyParameters),e.enableSpaAuthorizationCode&&(!e.tokenBodyParameters||!e.tokenBodyParameters[Xee])&&t.addExtraQueryParameters({[Xee]:"1"}),t.createQueryString()}async createAuthCodeUrlQueryString(e){var o,a;const t=e.correlationId||this.config.cryptoInterface.createNewGuid();(o=this.performanceClient)==null||o.addQueueMeasurement(Ht.AuthClientCreateQueryString,t);const n=new NM(t,this.performanceClient);n.addClientId(e.embeddedClientId||((a=e.extraQueryParameters)==null?void 0:a[XT])||this.config.authOptions.clientId);const i=[...e.scopes||[],...e.extraScopesToConsent||[]];
63if(n.addScopes(i,!0,this.oidcDefaultScopes),n.addRedirectUri(e.redirectUri),n.addCorrelationId(t),n.addResponseMode(e.responseMode),n.addResponseTypeCode(),n.addLibraryInfo(this.config.libraryInfo),EV(this.config)||n.addApplicationTelemetry(this.config.telemetry.application),n.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&n.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&n.addPrompt(e.prompt),e.domainHint&&n.addDomainHint(e.domainHint),e.prompt!==bu.SELECT_ACCOUNT)if(e.sid&&e.prompt===bu.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),n.addSid(e.sid);else if(e.account){const l=this.extractAccountSid(e.account);let u=this.extractLoginHint(e.account);if(u&&e.domainHint&&(this.logger.warning('AuthorizationCodeClient.createAuthCodeUrlQueryString: "domainHint" param is set, skipping opaque "login_hint" claim. Please consider not passing domainHint'),u=null),u){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),n.addLoginHint(u);try{const h=zA(e.account.homeAccountId);n.addCcsOid(h)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(l&&e.prompt===bu.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),n.addSid(l);try{const h=zA(e.account.homeAccountId);n.addCcsOid(h)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),n.addLoginHint(e.loginHint),n.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),n.addLoginHint(e.account.username);try{const h=zA(e.account.homeAccountId);n.addCcsOid(h)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),n.addLoginHint(e.loginHint),n.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");if(e.nonce&&n.addNonce(e.nonce),e.state&&n.addState(e.state),(e.claims||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&n.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.embeddedClientId&&n.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),this.addExtraQueryParams(e,n),e.nativeBroker&&(n.addNativeBroker(),e.authenticationScheme===Na.POP)){const l=new TP(this.cryptoUtils);let u;e.popKid?u=this.cryptoUtils.encodeKid(e.popKid):u=(await Fr(l.generateCnf.bind(l),Ht.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString,n.addPopToken(u)}return n.createQueryString()}createLogoutUrlQueryString(e){const t=new NM(e.correlationId,this.performanceClient);return e.postLogoutRedirectUri&&t.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&t.addCorrelationId(e.correlationId),e.idTokenHint&&t.addIdTokenHint(e.idTokenHint),e.state&&t.addState(e.state),e.logoutHint&&t.addLogoutHint(e.logoutHint),this.addExtraQueryParams(e,t),t.createQueryString()}addExtraQueryParams(e,t){!(e.extraQueryParameters&&e.extraQueryParameters.hasOwnProperty("instance_aware"))&&this.config.authOptions.instanceAware&&(e.extraQueryParameters=e.extraQueryParameters||{},e.extraQueryParameters.instance_aware="true"),e.extraQueryParameters&&t.addExtraQueryParameters(e.extraQueryParameters)}extractAccountSid(e){var t;return((t=e.idTokenClaims)==null?void 0:t.sid)||null}extractLoginHint(e){var t;return((t=e.idTokenClaims)==null?void 0:t.login_hint)||null}};/*! @azure/msal-common v14.16.1 2025-08-05 */const Pke=300;let SV=class extends aK{constructor(e,t){super(e,t)}async acquireToken(e){var a,l;(a=this.performanceClient)==null||a.addQueueMeasurement(Ht.RefreshTokenClientAcquireToken,e.correlationId);const t=c_(),n=await Fr(this.executeTokenRequest.bind(this),Ht.RefreshTokenClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(e,this.authority),i=(l=n.headers)==null?void 0:l[Rh.X_MS_REQUEST_ID],o=new VF(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin);return o.validateTokenResponse(n.body),Fr(o.handleServerTokenResponse.bind(o),Ht.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(n.body,this.authority,t,e,void 0,void 0,!0,e.forceCache,i)}async acquireTokenByRefreshToken(e){var n;if(!e)throw qa(ffe);if((n=this.performanceClient)==null||n.addQueueMeasurement(Ht.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),!e.account)throw Sr(qW);if(this.cacheManager.isAppMetadataFOCI(e.account.environment))try{return await Fr(this.acquireTokenWithCachedRefreshToken.bind(this),Ht.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!0)}catch(i){const o=i instanceof lb&&i.errorCode===jF,a=i instanceof xP&&i.errorCode===Hee.INVALID_GRANT_ERROR&&i.subError===Hee.CLIENT_MISMATCH_ERROR;if(o||a)return Fr(this.acquireTokenWithCachedRefreshToken.bind(this),Ht.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!1);throw i}return Fr(this.acquireTokenWithCachedRefreshToken.bind(this),Ht.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!1)}async acquireTokenWithCachedRefreshToken(e,t){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(Ht.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId);const n=AS(this.cacheManager.getRefreshToken.bind(this.cacheManager),Ht.CacheManagerGetRefreshToken,this.logger,this.performanceClient,e.correlationId)(e.account,t,e.correlationId,void 0,this.performanceClient);if(!n)throw xV(jF);if(n.expiresOn&&wV(n.expiresOn,e.refreshTokenExpirationOffsetSeconds||Pke))throw xV(sK);const i={...e,refreshToken:n.secret,authenticationScheme:e.authenticationScheme||Na.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:tg.HOME_ACCOUNT_ID}};try{return await Fr(this.acquireToken.bind(this),Ht.RefreshTokenClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(i)}
63catch(a){if(a instanceof lb&&a.subError===YB){this.logger.verbose("acquireTokenWithRefreshToken: bad refresh token, removing from cache");const l=$A(n);this.cacheManager.removeRefreshToken(l,e.correlationId)}throw a}}async executeTokenRequest(e,t){var u,h;(u=this.performanceClient)==null||u.addQueueMeasurement(Ht.RefreshTokenClientExecuteTokenRequest,e.correlationId);const n=this.createTokenQueryParameters(e),i=Ma.appendQueryString(t.tokenEndpoint,n),o=await Fr(this.createTokenRequestBody.bind(this),Ht.RefreshTokenClientCreateTokenRequestBody,this.logger,this.performanceClient,e.correlationId)(e),a=this.createTokenRequestHeaders(e.ccsCredential),l={clientId:((h=e.tokenBodyParameters)==null?void 0:h.clientId)||this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid};return Fr(this.executePostToTokenEndpoint.bind(this),Ht.RefreshTokenClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,e.correlationId)(i,o,a,l,e.correlationId,Ht.RefreshTokenClientExecutePostToTokenEndpoint)}async createTokenRequestBody(e){var i,o,a;(i=this.performanceClient)==null||i.addQueueMeasurement(Ht.RefreshTokenClientCreateTokenRequestBody,e.correlationId);const t=e.correlationId,n=new NM(t,this.performanceClient);if(n.addClientId(e.embeddedClientId||((o=e.tokenBodyParameters)==null?void 0:o[XT])||this.config.authOptions.clientId),e.redirectUri&&n.addRedirectUri(e.redirectUri),n.addScopes(e.scopes,!0,(a=this.config.authOptions.authority.options.OIDCOptions)==null?void 0:a.defaultScopes),n.addGrantType(Fhe.REFRESH_TOKEN_GRANT),n.addClientInfo(),n.addLibraryInfo(this.config.libraryInfo),n.addApplicationTelemetry(this.config.telemetry.application),n.addThrottling(),this.serverTelemetryManager&&!EV(this.config)&&n.addServerTelemetry(this.serverTelemetryManager),n.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&n.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const l=this.config.clientCredentials.clientAssertion;n.addClientAssertion(await Ufe(l.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),n.addClientAssertionType(l.assertionType)}if(e.authenticationScheme===Na.POP){const l=new TP(this.cryptoUtils,this.performanceClient);let u;e.popKid?u=this.cryptoUtils.encodeKid(e.popKid):u=(await Fr(l.generateCnf.bind(l),Ht.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString,n.addPopToken(u)}else if(e.authenticationScheme===Na.SSH)if(e.sshJwk)n.addSshJwk(e.sshJwk);else throw qa(qB);if((!lv.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&n.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case tg.HOME_ACCOUNT_ID:try{const l=zA(e.ccsCredential.credential);n.addCcsOid(l)}catch(l){this.logger.verbose("Could not parse home account ID for CCS Header: "+l)}break;case tg.UPN:n.addCcsUpn(e.ccsCredential.credential);break}return e.embeddedClientId&&n.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),e.tokenBodyParameters&&n.addExtraQueryParameters(e.tokenBodyParameters),n.createQueryString()}};/*! @azure/msal-common v14.16.1 2025-08-05 */let kke=class extends aK{constructor(e,t){super(e,t)}async acquireToken(e){var t;try{const[n,i]=await this.acquireCachedToken({...e,scopes:(t=e.scopes)!=null&&t.length?e.scopes:[...hk]});return i===Ow.PROACTIVELY_REFRESHED&&(this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed."),new SV(this.config,this.performanceClient).acquireTokenByRefreshToken(e).catch(()=>{})),n}catch(n){if(n instanceof nfe&&n.errorCode===L1)return new SV(this.config,this.performanceClient).acquireTokenByRefreshToken(e);throw n}}async acquireCachedToken(e){var u;(u=this.performanceClient)==null||u.addQueueMeasurement(Ht.SilentFlowClientAcquireCachedToken,e.correlationId);let t=Ow.NOT_APPLICABLE;if(e.forceRefresh||!this.config.cacheOptions.claimsBasedCachingEnabled&&!lv.isEmptyObj(e.claims))throw this.setCacheOutcome(Ow.FORCE_REFRESH_OR_CLAIMS,e.correlationId),Sr(L1);if(!e.account)throw Sr(qW);const n=e.account.tenantId||bke(e.authority),i=this.cacheManager.getTokenKeys(),o=this.cacheManager.getAccessToken(e.account,e,i,n,this.performanceClient);if(o){if(oPe(o.cachedAt)||wV(o.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw this.setCacheOutcome(Ow.CACHED_ACCESS_TOKEN_EXPIRED,e.correlationId),Sr(L1);o.refreshOn&&wV(o.refreshOn,0)&&(t=Ow.PROACTIVELY_REFRESHED)}else throw this.setCacheOutcome(Ow.NO_CACHED_ACCESS_TOKEN,e.correlationId),Sr(L1);const a=e.authority||this.authority.getPreferredCache(),l={account:this.cacheManager.readAccountFromCache(e.account,e.correlationId),accessToken:o,idToken:this.cacheManager.getIdToken(e.account,e.correlationId,i,n,this.performanceClient),refreshToken:null,appMetadata:this.cacheManager.readAppMetadataFromCac
63he(a)};return this.setCacheOutcome(t,e.correlationId),this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[await Fr(this.generateResultFromCacheRecord.bind(this),Ht.SilentFlowClientGenerateResultFromCacheRecord,this.logger,this.performanceClient,e.correlationId)(l,e),t]}setCacheOutcome(e,t){var n,i;(n=this.serverTelemetryManager)==null||n.setCacheOutcome(e),(i=this.performanceClient)==null||i.addFields({cacheOutcome:e},t),e!==Ow.NOT_APPLICABLE&&this.logger.info(`Token refresh is required due to cache outcome: ${e}`)}async generateResultFromCacheRecord(e,t){var i;(i=this.performanceClient)==null||i.addQueueMeasurement(Ht.SilentFlowClientGenerateResultFromCacheRecord,t.correlationId);let n;if(e.idToken&&(n=IS(e.idToken.secret,this.config.cryptoInterface.base64Decode)),t.maxAge||t.maxAge===0){const o=n==null?void 0:n.auth_time;if(!o)throw Sr(VW);afe(o,t.maxAge)}return VF.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,t,n)}};/*! @azure/msal-common v14.16.1 2025-08-05 */const Oke={sendGetRequestAsync:()=>Promise.reject(Sr(Xi)),sendPostRequestAsync:()=>Promise.reject(Sr(Xi))};/*! @azure/msal-common v14.16.1 2025-08-05 */const tte=",",$fe="|";function Mke(r){const{skus:e,libraryName:t,libraryVersion:n,extensionName:i,extensionVersion:o}=r,a=new Map([[0,[t,n]],[2,[i,o]]]);let l=[];if(e!=null&&e.length){if(l=e.split(tte),l.length<4)return e}else l=Array.from({length:4},()=>$fe);return a.forEach((u,h)=>{var p,m;u.length===2&&((p=u[0])!=null&&p.length)&&((m=u[1])!=null&&m.length)&&Nke({skuArr:l,index:h,skuName:u[0],skuVersion:u[1]})}),l.join(tte)}function Nke(r){const{skuArr:e,index:t,skuName:n,skuVersion:i}=r;t>=e.length||(e[t]=[n,i].join($fe))}let zfe=class IV{constructor(e,t){this.cacheOutcome=Ow.NOT_APPLICABLE,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||er.EMPTY_STRING,this.wrapperVer=e.wrapperVer||er.EMPTY_STRING,this.telemetryCacheKey=Zu.CACHE_KEY+Hd.CACHE_KEY_SEPARATOR+e.clientId}generateCurrentRequestHeaderValue(){const e=`${this.apiId}${Zu.VALUE_SEPARATOR}${this.cacheOutcome}`,t=[this.wrapperSKU,this.wrapperVer],n=this.getNativeBrokerErrorCode();n!=null&&n.length&&t.push(`broker_error=${n}`);const i=t.join(Zu.VALUE_SEPARATOR),o=this.getRegionDiscoveryFields(),a=[e,o].join(Zu.VALUE_SEPARATOR);return[Zu.SCHEMA_VERSION,a,i].join(Zu.CATEGORY_SEPARATOR)}generateLastRequestHeaderValue(){const e=this.getLastRequests(),t=IV.maxErrorsToSend(e),n=e.failedRequests.slice(0,2*t).join(Zu.VALUE_SEPARATOR),i=e.errors.slice(0,t).join(Zu.VALUE_SEPARATOR),o=e.errors.length,a=t<o?Zu.OVERFLOW_TRUE:Zu.OVERFLOW_FALSE,l=[o,a].join(Zu.VALUE_SEPARATOR);return[Zu.SCHEMA_VERSION,e.cacheHits,n,i,l].join(Zu.CATEGORY_SEPARATOR)}cacheFailedRequest(e){const t=this.getLastRequests();t.errors.length>=Zu.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),e instanceof Error&&e&&e.toString()?e instanceof Js?e.subError?t.errors.push(e.subError):e.errorCode?t.errors.push(e.errorCode):t.errors.push(e.toString()):t.errors.push(e.toString()):t.errors.push(Zu.UNKNOWN_ERROR),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t,this.correlationId)}incrementCacheHits(){const e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e,this.correlationId),e.cacheHits}getLastRequests(){const e={failedRequests:[],errors:[],cacheHits:0};return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||e}clearTelemetryCache(){const e=this.getLastRequests(),t=IV.maxErrorsToSend(e),n=e.errors.length;if(t===n)this.cacheManager.removeItem(this.telemetryCacheKey,this.correlationId);else{const i={failedRequests:e.failedRequests.slice(t*2),errors:e.errors.slice(t),cacheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,i,this.correlationId)}}static maxErrorsToSend(e){let t,n=0,i=0;const o=e.errors.length;for(t=0;t<o;t++){const a=e.failedRequests[2*t]||er.EMPTY_STRING,l=e.failedRequests[2*t+1]||er.EMPTY_STRING,u=e.errors[t]||er.EMPTY_STRING;if(i+=a.toString().length+l.toString().length+u.length+3,i<Zu.MAX_LAST_HEADER_BYTES)n+=1;else break}return n}getRegionDiscoveryFields(){const e=[];return e.push(this.regionUsed||er.EMPTY_STRING),e.push(this.regionSource||er.EMPTY_STRING),e.push(this.regionOutcome||er.EMPTY_STRING),e.join(",")}updateRegionDiscoveryMetadata(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome}setCacheOutcome(e){this.cacheOutcome=e}setNativeBrokerErrorCode(e){const t=this.getLastRequests();t.nativeBrokerErrorCode=e,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t,this.correlationId)}getNativeBrokerErrorCode(){return this.getLastRequests().nativeBrokerErrorCode}clearNativeBrokerErrorCode(){const e=this.getLastRequests();delete e.nativeBrokerErrorCode,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e,this.correlationId)}static makeExtraSkuString(e){return Mke(e)}};/*! @azure/msal-common v14.16.1 2025-08-05 */const jfe="missing_kid_error",Vfe="missing_alg_error";/*! @azure/msal-common v14.16.1 2025-08-05 */const Dke={[jfe]:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided.",[Vfe]:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."};let Lke=class qfe extends Js{constructor(e,t){super(e,t),this.name="JoseHeaderError",Object.setPrototypeOf(this,qfe.prototype)}};function rte(r){return new Lke(r,Dke[r])}/*! @azure/msal-common v14.16.1 2025-08-05 */let Hke=class Gfe{constructor(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}static getShrHeaderString(e){if(!e.kid)throw rte(jfe);
63if(!e.alg)throw rte(Vfe);const t=new Gfe({typ:e.typ||zRe.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(t)}};/*! @azure/msal-common v14.16.1 2025-08-05 */let nte=class{startMeasurement(){}endMeasurement(){}flushMeasurement(){return null}},Fke=class{generateId(){return"callback-id"}startMeasurement(e,t){return{end:()=>null,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:_ke.InProgress,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:e,startTimeMs:Date.now(),correlationId:t||""},measurement:new nte}}startPerformanceMeasurement(){return new nte}calculateQueuedTime(){return 0}addQueueMeasurement(){}setPreQueueTime(){}endMeasurement(){return null}discardMeasurements(){}removePerformanceCallback(){return!0}addPerformanceCallback(){return""}emitEvents(){}addFields(){}incrementFields(){}cacheEventByCorrelationId(){}};/*! @azure/msal-browser v3.30.0 2025-08-05 */const cK="pkce_not_created",AV="crypto_nonexistent",WB="empty_navigate_uri",Yfe="hash_empty_error",uK="no_state_in_hash",Wfe="hash_does_not_contain_known_properties",Kfe="unable_to_parse_state",Zfe="state_interaction_type_mismatch",Xfe="interaction_in_progress",Qfe="popup_window_error",Jfe="empty_window_error",QT="user_cancelled",Uke="monitor_popup_timeout",epe="monitor_window_timeout",tpe="redirect_in_iframe",rpe="block_iframe_reload",npe="block_nested_popups",Bke="iframe_closed_prematurely",KB="silent_logout_unsupported",ipe="no_account_error",$ke="silent_prompt_value_error",ope="no_token_request_cache_error",ape="unable_to_parse_token_request_cache_error",dK="no_cached_authority_error",zke="auth_request_not_set_error",jke="invalid_cache_type",ZB="non_browser_environment",hA="database_not_open",qF="no_network_connectivity",spe="post_request_failed",lpe="get_request_failed",RV="failed_to_parse_response",cpe="unable_to_load_token",hK="crypto_key_not_found",upe="auth_code_required",dpe="auth_code_or_nativeAccountId_required",hpe="spa_code_and_nativeAccountId_present",fK="database_unavailable",fpe="unable_to_acquire_token_from_native_platform",ppe="native_handshake_timeout",gpe="native_extension_not_installed",GD="native_connection_not_established",mpe="uninitialized_public_client_application",ype="native_prompt_not_supported",vpe="invalid_base64_string",_pe="invalid_pop_token_request",bpe="failed_to_build_headers",wpe="failed_to_parse_headers";/*! @azure/msal-browser v3.30.0 2025-08-05 */const f1="For more visit: aka.ms/msaljs/browser-errors",Vke={[cK]:"The PKCE code challenge and verifier could not be generated.",[AV]:"The crypto object or function is not available.",[WB]:"Navigation URI is empty. Please check stack trace for more info.",[Yfe]:`Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. ${f1}`,[uK]:"Hash does not contain state. Please verify that the request originated from msal.",[Wfe]:`Hash does not contain known properites. Please verify that your redirectUri is not changing the hash.  ${f1}`,[Kfe]:"Unable to parse state. Please verify that the request originated from msal.",[Zfe]:"Hash contains state but the interaction type does not match the caller.",[Xfe]:`Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API.   ${f1}`,[Qfe]:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",[Jfe]:"window.open returned null or undefined window object.",[QT]:"User cancelled the flow.",[Uke]:`Token acquisition in popup failed due to timeout.  ${f1}`,[epe]:`Token acquisition in iframe failed due to timeout.  ${f1}`,[tpe]:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs.",[rpe]:`Request was blocked inside an iframe because MSAL detected an authentication response.  ${f1}`,[npe]:"Request was blocked inside a popup because MSAL detected it was running in a popup.",[Bke]:"The iframe being monitored was closed prematurely.",[KB]:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",[ipe]:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",[$ke]:"The value given for the prompt value is not val
63id for silent requests - must be set to 'none' or 'no_session'.",[ope]:"No token request found in cache.",[ape]:"The cached token request could not be parsed.",[dK]:"No cached authority found.",[zke]:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",[jke]:"Invalid cache type",[ZB]:"Login and token requests are not supported in non-browser environments.",[hA]:"Database is not open!",[qF]:"No network connectivity. Check your internet connection.",[spe]:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",[lpe]:"Network request failed. Please check the network trace to determine root cause.",[RV]:"Failed to parse network response. Check network trace.",[cpe]:"Error loading token to cache.",[hK]:"Cryptographic Key or Keypair not found in browser storage.",[upe]:"An authorization code must be provided (as the `code` property on the request) to this flow.",[dpe]:"An authorization code or nativeAccountId must be provided to this flow.",[hpe]:"Request cannot contain both spa code and native account id.",[fK]:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts.",[fpe]:`Unable to acquire token from native platform.  ${f1}`,[ppe]:"Timed out while attempting to establish connection to browser extension",[gpe]:"Native extension is not installed. If you think this is a mistake call the initialize function.",[GD]:`Connection to native platform has not been established. Please install a compatible browser extension and run initialize().  ${f1}`,[mpe]:`You must call and await the initialize function before attempting to call any other MSAL API.  ${f1}`,[ype]:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",[vpe]:"Invalid base64 encoded string.",[_pe]:"Invalid PoP token request. The request should not have both a popKid value and signPopToken set to true.",[bpe]:"Failed to build request headers object.",[wpe]:"Failed to parse response headers"};let pK=class Epe extends Js{constructor(e,t){super(e,Vke[e],t),Object.setPrototypeOf(this,Epe.prototype),this.name="BrowserAuthError"}};function mn(r,e){return new pK(r,e)}/*! @azure/msal-browser v3.30.0 2025-08-05 */const Kp={INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},jA={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},Zx={HandshakeRequest:"Handshake",HandshakeResponse:"HandshakeResponse",GetToken:"GetToken",Response:"Response"},jf={LocalStorage:"localStorage",SessionStorage:"sessionStorage",MemoryStorage:"memoryStorage"},ite={GET:"GET",POST:"POST"},ya={AUTHORITY:"authority",ACQUIRE_TOKEN_ACCOUNT:"acquireToken.account",SESSION_STATE:"session.state",REQUEST_STATE:"request.state",NONCE_IDTOKEN:"nonce.id_token",ORIGIN_URI:"request.origin",RENEW_STATUS:"token.renew.status",URL_HASH:"urlHash",REQUEST_PARAMS:"request.params",SCOPES:"scopes",INTERACTION_STATUS_KEY:"interaction.status",CCS_CREDENTIAL:"ccs.credential",CORRELATION_ID:"request.correlationId",NATIVE_REQUEST:"request.native",REDIRECT_CONTEXT:"request.redirect.context"},im={ACCOUNT_KEYS:"msal.account.keys",TOKEN_KEYS:"msal.token.keys",VERSION:"msal.version"},m4={WRAPPER_SKU:"wrapper.sku",WRAPPER_VER:"wrapper.version"},ws={acquireTokenRedirect:861,acquireTokenPopup:862,ssoSilent:863,acquireTokenSilent_authCode:864,handleRedirectPromise:865,acquireTokenByCode:866,acquireTokenSilent_silentFlow:61,logout:961,logoutPopup:962};var Fn;(function(r){r.Redirect="redirect",r.Popup="popup",r.Silent="silent",r.None="none"})(Fn||(Fn={}));const mc={Startup:"startup",Login:"login",Logout:"logout",AcquireToken:"acquireToken",SsoSilent:"ssoSilent",HandleRedirect:"handleRedirect",None:"none"},ote={scopes:hk},Cpe="jwk",qke={React:"@azure/msal-react"},PV="msal.db",Gke=1,Yke=`${PV}.keys`,zp={Default:0,AccessToken:1,AccessTokenAndRefreshToken:2,RefreshToken:3,RefreshTokenAndNetwork:4,Skip:5},Wke=[zp.Default,zp.Skip,zp.RefreshTokenAndNetwork],Kke="msal.browser.log.level",Zke="msal.browser.log.pii";/*! @azure/msal-browser v3.30.0 2025-08-05 */function y4(r){return encodeURIComponent(gK(r).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function XB(r){return xpe(r).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function gK(r){return xpe(new TextEncoder().encode(r))}function xpe(r){const e=Array.from(r,t=>String.fromCodePoint(t)).join("");return btoa(e)}/*! @azure/msal-browser v3.30.0 2025-08-05 */const Xke="RSASSA-PKCS1-v1_5",Tpe="SHA-256",Qke=2048,Jke=new Uint8Array([1,0,1]),ate="0123456789abcdef",ste=new Uint32Array(1),e2e="
63crypto_subtle_undefined",mK={name:Xke,hash:Tpe,modulusLength:Qke,publicExponent:Jke};function t2e(r){if(!window)throw mn(ZB);if(!window.crypto)throw mn(AV);if(!r&&!window.crypto.subtle)throw mn(AV,e2e)}async function Spe(r,e,t){e==null||e.addQueueMeasurement(Ht.Sha256Digest,t);const i=new TextEncoder().encode(r);return window.crypto.subtle.digest(Tpe,i)}function r2e(r){return window.crypto.getRandomValues(r)}function S$(){return window.crypto.getRandomValues(ste),ste[0]}function u_(){const r=Date.now(),e=S$()*1024+(S$()&1023),t=new Uint8Array(16),n=Math.trunc(e/2**30),i=e&2**30-1,o=S$();t[0]=r/2**40,t[1]=r/2**32,t[2]=r/2**24,t[3]=r/2**16,t[4]=r/2**8,t[5]=r,t[6]=112|n>>>8,t[7]=n,t[8]=128|i>>>24,t[9]=i>>>16,t[10]=i>>>8,t[11]=i,t[12]=o>>>24,t[13]=o>>>16,t[14]=o>>>8,t[15]=o;let a="";for(let l=0;l<t.length;l++)a+=ate.charAt(t[l]>>>4),a+=ate.charAt(t[l]&15),(l===3||l===5||l===7||l===9)&&(a+="-");return a}async function n2e(r,e){return window.crypto.subtle.generateKey(mK,r,e)}async function I$(r){return window.crypto.subtle.exportKey(Cpe,r)}async function i2e(r,e,t){return window.crypto.subtle.importKey(Cpe,r,mK,e,t)}async function o2e(r,e){return window.crypto.subtle.sign(mK,r,e)}async function Ipe(r){const e=await Spe(r),t=new Uint8Array(e);return XB(t)}/*! @azure/msal-browser v3.30.0 2025-08-05 */const QB="storage_not_supported",Vc="stubbed_public_client_application_called",yK="in_mem_redirect_unavailable";/*! @azure/msal-browser v3.30.0 2025-08-05 */const _H={[QB]:"Given storage configuration option was not supported.",[Vc]:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors",[yK]:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."};_H[QB],_H[Vc],_H[yK];let a2e=class Ape extends Js{constructor(e,t){super(e,t),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,Ape.prototype)}};function gc(r){return new a2e(r,_H[r])}/*! @azure/msal-browser v3.30.0 2025-08-05 */function s2e(r){r.location.hash="",typeof r.history.replaceState=="function"&&r.history.replaceState(null,"",`${r.location.origin}${r.location.pathname}${r.location.search}`)}function l2e(r){const e=r.split("#");e.shift(),window.location.hash=e.length>0?e.join("#"):""}function vK(){return window.parent!==window}function c2e(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(`${Kp.POPUP_NAME_PREFIX}.`)===0}function H1(){return typeof window<"u"&&window.location?window.location.href.split("?")[0].split("#")[0]:""}function u2e(){const e=new Ma(window.location.href).getUrlComponents();return`${e.Protocol}//${e.HostNameAndPort}/`}function d2e(){if(Ma.hashContainsKnownProperties(window.location.hash)&&vK())throw mn(rpe)}function h2e(r){if(vK()&&!r)throw mn(tpe)}function f2e(){if(c2e())throw mn(npe)}function Rpe(){if(typeof window>"u")throw mn(ZB)}function Ppe(r){if(!r)throw mn(mpe)}function _K(r){Rpe(),d2e(),f2e(),Ppe(r)}function lte(r,e){if(_K(r),h2e(e.system.allowRedirectInIframe),e.cache.cacheLocation===jf.MemoryStorage&&!e.cache.storeAuthStateInCookie)throw gc(yK)}function kpe(r){const e=document.createElement("link");e.rel="preconnect",e.href=new URL(r).origin,e.crossOrigin="anonymous",document.head.appendChild(e),window.setTimeout(()=>{try{document.head.removeChild(e)}catch{}},1e4)}function p2e(){return u_()}/*! @azure/msal-browser v3.30.0 2025-08-05 */let g2e=class kV{navigateInternal(e,t){return kV.defaultNavigateWindow(e,t)}navigateExternal(e,t){return kV.defaultNavigateWindow(e,t)}static defaultNavigateWindow(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise(n=>{setTimeout(()=>{n(!0)},t.timeout)})}};/*! @azure/msal-browser v3.30.0 2025-08-05 */let m2e=class{async sendGetRequestAsync(e,t){let n,i={},o=0;const a=cte(t);try{n=await fetch(e,{method:ite.GET,headers:a})}catch{throw mn(window.navigator.onLine?lpe:qF)}i=ute(n.headers);try{return o=n.status,{headers:i,body:await n.json(),status:o}}catch{throw Qee(mn(RV),o,i)}}async sendPostRequestAsync(e,t){const n=t&&t.body||"",i=cte(t);let o,a=0,l={};try{o=await fetch(e,{method:ite.POST,headers:i,body:n})}catch{throw mn(window.navigator.onLine?spe:qF)}l=ute(o.headers);try{return a=o.status,{headers:l,body:await o.json(),status:a}}catch{throw Qee(mn(RV),a,l)}}};function cte(r){try{const e=new Headers;if(!(r&&r.headers))return e;const t=r.headers;return Object.entries(t).forEach(([n,i])=>{e.append(n,i)}),e}catch{throw mn(bpe)}}function ute(r){try{const e={};return r.forEach((t,n)=>{e[n]=t}),e}catch{throw mn(wpe)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */const y2e=6e4,OV=1e4,v2e=3e4,_2e=2e3;function b2e({auth:r,cache:e,system:t,telemetry:n},i){const o={clientId:er.EMPTY_STRING,authority:`${er.DEFAULT_AUTHORITY}`,knownAuthorities:[],cloudDiscoveryMetadata:er.EMPTY_STRING,authorityMetadata:er.EMPTY_STRING,redirectUri:typeof window<"u"?H1():"",postLogoutRedirectUri:er.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:j1.AAD,OIDCOptions:{serverResponseType:qD.FRAGMENT,defaultScopes:[er.OPENID_SCOPE,er.PROFILE_SCOPE,er.OFFLINE_ACCESS_SCOPE]},azureCloudOptions:{azureCloudInstance:KW.None,tenant:er.EMPTY_STRING},skipAuthorityMetadataCache:!1,supportsNestedAppAuth:!1,instanceAware:!1},a={cacheLocation:jf.SessionStorage,temporaryCacheLocation:jf.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(e&&e.cacheLocation===jf.LocalStorage),claimsBasedCachingEnabled:!1},l={loggerCallback:()=>{},logLevel:Bs.Info,piiLoggingEnabled:!1},h={...{...Rfe,loggerOptions:l,networkClient:i?new m2e:Oke,navigationClient:new g2e,loadFrameTimeout:0,windowHashTimeout:(t==null?void 0:t.loadFrameTimeout)||y2e,iframeHashTimeout:(t==null?void 0:t.loadFrameTimeout)||OV,navigateFrameWait:0,redirectNavigationTimeout:v2e,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(t==null?void 0:t.nativeBrokerHandshakeTimeout)||_2e,pollIntervalMilliseconds:Kp.DEFAULT_POLL_INTERVAL_MS},...t,loggerOptions:(t==null?void 0:t.loggerOptions)||l},p={application:{appName:er.EMPTY_STRING,appVersion:er.EMPTY_STRING},client:new Fke};if((r==null?void 0:r.protocolMode)!==j1.OIDC&&(r!=null&&r.OIDCOptions)&&new fk(h.loggerOptions).warning(JSON.stringify(qa(_fe))),r!=null&&r.protocolMode&&r.protocolMode!==j1.AAD&&(h!=null&&h.allowNativeBroker))throw qa(bfe);return{auth:{...o,...r,OIDCOptions:{...o.OIDCOptions,...r==null?void 0:r.OIDCOptions}},cache:{...a,...e},system:h,telemetry:{...p,...n}}}/*! @azure/msal-browser v3.30.0 2025-08-05 */const w2e="@azure/msal-browser",SP="3.30.0";/*! @azure/msal-browser v3.30.0 2025-08-05 */class bK{static loggerCallback(e,t){switch(e){case Bs.Error:console.error(t);return;case Bs.Info:console.info(t);return;case Bs.Verbose:console.debug(t);return;case Bs.Warning:console.warn(t);return;default:console.log(t);return}}constructor(e){var u;this.browserEnvironment=typeof window<"u",this.config=b2e(e,this.browserEnvironment);let t;try{t=window[jf.SessionStorage]}catch{}const n=t==null?void 0:t.getItem(Kke),i=(u=t==null?void 0:t.getItem(Zke))==null?void 0:u.toLowerCase(),o=i==="true"?!0:i==="false"?!1:void 0,a={...this.config.system.loggerOptions},l=n&&Object.keys(Bs).includes(n)?Bs[n]:void 0;l&&(a.loggerCallback=bK.loggerCallback,a.logLevel=l),o!==void 0&&(a.piiLoggingEnabled=o),this.logger=new fk(a,w2e,SP),this.available=!1}getConfig(){return this.config}getLogger(){return this.logger}isAvailable(){return this.available}isBrowserEnvironment(){return this.browserEnvironment}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class JT extends bK{getModuleName(){return JT.MODULE_NAME}getId(){return JT.ID}async initialize(){return this.available=typeof window<"u",this.available}}JT.MODULE_NAME="";JT.ID="StandardOperatingContext";/*! @azure/msal-browser v3.30.0 2025-08-05 */function J0(r){return new TextDecoder().decode(E2e(r))}function E2e(r){let e=r.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw mn(vpe)}const t=atob(e);return Uint8Array.from(t,n=>n.codePointAt(0)||0)}/*! @azure/msal-browser v3.30.0 2025-08-05 */let C2e=class{constructor(){this.dbName=PV,this.version=Gke,this.tableName=Yke,this.dbOpen=!1}async open(){return new Promise((e,t)=>
63{const n=window.indexedDB.open(this.dbName,this.version);n.addEventListener("upgradeneeded",i=>{i.target.result.createObjectStore(this.tableName)}),n.addEventListener("success",i=>{const o=i;this.db=o.target.result,this.dbOpen=!0,e()}),n.addEventListener("error",()=>t(mn(fK)))})}closeConnection(){const e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)}async validateDbIsOpen(){if(!this.dbOpen)return this.open()}async getItem(e){return await this.validateDbIsOpen(),new Promise((t,n)=>{if(!this.db)return n(mn(hA));const a=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).get(e);a.addEventListener("success",l=>{const u=l;this.closeConnection(),t(u.target.result)}),a.addEventListener("error",l=>{this.closeConnection(),n(l)})})}async setItem(e,t){return await this.validateDbIsOpen(),new Promise((n,i)=>{if(!this.db)return i(mn(hA));const l=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).put(t,e);l.addEventListener("success",()=>{this.closeConnection(),n()}),l.addEventListener("error",u=>{this.closeConnection(),i(u)})})}async removeItem(e){return await this.validateDbIsOpen(),new Promise((t,n)=>{if(!this.db)return n(mn(hA));const a=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).delete(e);a.addEventListener("success",()=>{this.closeConnection(),t()}),a.addEventListener("error",l=>{this.closeConnection(),n(l)})})}async getKeys(){return await this.validateDbIsOpen(),new Promise((e,t)=>{if(!this.db)return t(mn(hA));const o=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).getAllKeys();o.addEventListener("success",a=>{const l=a;this.closeConnection(),e(l.target.result)}),o.addEventListener("error",a=>{this.closeConnection(),t(a)})})}async containsKey(e){return await this.validateDbIsOpen(),new Promise((t,n)=>{if(!this.db)return n(mn(hA));const a=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).count(e);a.addEventListener("success",l=>{const u=l;this.closeConnection(),t(u.target.result===1)}),a.addEventListener("error",l=>{this.closeConnection(),n(l)})})}async deleteDatabase(){return this.db&&this.dbOpen&&this.closeConnection(),new Promise((e,t)=>{const n=window.indexedDB.deleteDatabase(PV),i=setTimeout(()=>t(!1),200);n.addEventListener("success",()=>(clearTimeout(i),e(!0))),n.addEventListener("blocked",()=>(clearTimeout(i),e(!0))),n.addEventListener("error",()=>(clearTimeout(i),t(!1)))})}};/*! @azure/msal-browser v3.30.0 2025-08-05 */let MV=class{constructor(){this.cache=new Map}getItem(e){return this.cache.get(e)||null}setItem(e,t){this.cache.set(e,t)}removeItem(e){this.cache.delete(e)}getKeys(){const e=[];return this.cache.forEach((t,n)=>{e.push(n)}),e}containsKey(e){return this.cache.has(e)}clear(){this.cache.clear()}};/*! @azure/msal-browser v3.30.0 2025-08-05 */let x2e=class{constructor(e){this.inMemoryCache=new MV,this.indexedDBCache=new C2e,this.logger=e}handleDatabaseAccessError(e){if(e instanceof pK&&e.errorCode===fK)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw e}async getItem(e){const t=this.inMemoryCache.getItem(e);if(!t)try{return this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.getItem(e)}catch(n){this.handleDatabaseAccessError(n)}return t}async setItem(e,t){this.inMemoryCache.setItem(e,t);try{await this.indexedDBCache.setItem(e,t)}catch(n){this.handleDatabaseAccessError(n)}}async removeItem(e){this.inMemoryCache.removeItem(e);try{await this.indexedDBCache.removeItem(e)}catch(t){this.handleDatabaseAccessError(t)}}async getKeys(){const e=this.inMemoryCache.getKeys();if(e.length===0)try{return this.logger.verbose("In-memory cache is empty, now querying persistent storage."),await this.indexedDBCache.getKeys()}catch(t){this.handleDatabaseAccessError(t)}return e}async containsKey(e){const t=this.inMemoryCache.containsKey(e);if(!t)try{return this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.containsKey(e)}catch(n){this.handleDatabaseAccessError(n)}return t}clearInMemory(){this.logger.verbose("Deleting in-memory keystore"),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore deleted")}
63async clearPersistent(){try{this.logger.verbose("Deleting persistent keystore");const e=await this.indexedDBCache.deleteDatabase();return e&&this.logger.verbose("Persistent keystore deleted"),e}catch(e){return this.handleDatabaseAccessError(e),!1}}};/*! @azure/msal-browser v3.30.0 2025-08-05 */let wK=class NV{constructor(e,t,n){this.logger=e,t2e(n??!1),this.cache=new x2e(this.logger),this.performanceClient=t}createNewGuid(){return u_()}base64Encode(e){return gK(e)}base64Decode(e){return J0(e)}base64UrlEncode(e){return y4(e)}encodeKid(e){return this.base64UrlEncode(JSON.stringify({kid:e}))}async getPublicKeyThumbprint(e){var p;const t=(p=this.performanceClient)==null?void 0:p.startMeasurement(Ht.CryptoOptsGetPublicKeyThumbprint,e.correlationId),n=await n2e(NV.EXTRACTABLE,NV.POP_KEY_USAGES),i=await I$(n.publicKey),o={e:i.e,kty:i.kty,n:i.n},a=dte(o),l=await this.hashString(a),u=await I$(n.privateKey),h=await i2e(u,!1,["sign"]);return await this.cache.setItem(l,{privateKey:h,publicKey:n.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri}),t&&t.end({success:!0}),l}async removeTokenBindingKey(e){return await this.cache.removeItem(e),!await this.cache.containsKey(e)}async clearKeystore(){this.cache.clearInMemory();try{return await this.cache.clearPersistent(),!0}catch(e){return e instanceof Error?this.logger.error(`Clearing keystore failed with error: ${e.message}`):this.logger.error("Clearing keystore failed with unknown error"),!1}}async signJwt(e,t,n,i){var H;const o=(H=this.performanceClient)==null?void 0:H.startMeasurement(Ht.CryptoOptsSignJwt,i),a=await this.cache.getItem(t);if(!a)throw mn(hK);const l=await I$(a.publicKey),u=dte(l),h=y4(JSON.stringify({kid:t})),p=Hke.getShrHeaderString({...n==null?void 0:n.header,alg:l.alg,kid:h}),m=y4(p);e.cnf={jwk:JSON.parse(u)};const _=y4(JSON.stringify(e)),C=`${m}.${_}`,S=new TextEncoder().encode(C),R=await o2e(a.privateKey,S),O=XB(new Uint8Array(R)),N=`${C}.${O}`;return o&&o.end({success:!0}),N}async hashString(e){return Ipe(e)}};wK.POP_KEY_USAGES=["sign","verify"];wK.EXTRACTABLE=!0;function dte(r){return JSON.stringify(r,Object.keys(r).sort())}/*! @azure/msal-browser v3.30.0 2025-08-05 */class T2e{constructor(){if(!window.localStorage)throw gc(QB)}getItem(e){return window.localStorage.getItem(e)}setItem(e,t){window.localStorage.setItem(e,t)}removeItem(e){window.localStorage.removeItem(e)}getKeys(){return Object.keys(window.localStorage)}containsKey(e){return window.localStorage.hasOwnProperty(e)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class S2e{constructor(){if(!window.sessionStorage)throw gc(QB)}getItem(e){return window.sessionStorage.getItem(e)}setItem(e,t){window.sessionStorage.setItem(e,t)}removeItem(e){window.sessionStorage.removeItem(e)}getKeys(){return Object.keys(window.sessionStorage)}containsKey(e){return window.sessionStorage.hasOwnProperty(e)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */function Ope(r,e){if(!e)return null;try{return V1.parseRequestState(r,e).libraryState.meta}catch{throw Sr(EP)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */const I2e=1440*60*1e3;class A2e{getItem(e){const t=`${encodeURIComponent(e)}`,n=document.cookie.split(";");for(let i=0;i<n.length;i++){const o=n[i],[a,...l]=decodeURIComponent(o).trim().split("="),u=l.join("=");if(a===t)return u}return""}setItem(e,t,n,i=!0){let o=`${encodeURIComponent(e)}=${encodeURIComponent(t)};path=/;SameSite=Lax;`;if(n){const a=R2e(n);o+=`expires=${a};`}i&&(o+="Secure;"),document.cookie=o}removeItem(e){this.setItem(e,"",-1)}getKeys(){const e=document.cookie.split(";"),t=[];return e.forEach(n=>{const i=decodeURIComponent(n).trim().split("=");t.push(i[0])}),t}containsKey(e){return this.getKeys().includes(e)}}function R2e(r){const e=new Date;return new Date(e.getTime()+r*I2e).toUTCString()}/*! @azure/msal-browser v3.30.0 2025-08-05 */let DV=class extends $F{constructor(e,t,n,i,o,a){super(e,n,i,o),this.cacheConfig=t,this.logger=i,this.internalStorage=new MV,this.browserStorage=this.setupBrowserStorage(this.cacheConfig.cacheLocation),this.temporaryCacheStorage=this.setupBrowserStorage(this.cacheConfig.temporaryCacheLocation),this.cookieStorage=new A2e,t.cacheMigrationEnabled&&(this.migrateCacheEntries(),this.createKeyMaps()),this.performanceClient=a}setupBrowserStorage(e){try{switch(e){case jf.LocalStorage:return new T2e;case jf.SessionStorage:return new S2e;case jf.MemoryStorage:default:break}}catch(t){this.logger.error(t)}return this.cacheConfig.cacheLocation=jf.MemoryStorage,new MV}migrateCacheEntries(){const e=this.browserStorage.getItem(im.VERSION);e&&this.logger.info(`MSAL.js was last initialized with version ${e}`),e!==SP&&this.browserStorage.setItem(im.VERSION,SP);const t=`${er.CACHE_PREFIX}.${pu.ID_TOKEN}`,n=`${er.CACHE_PREFIX}.${pu.CLIENT_INFO}`,i=`${er.CACHE_PREFIX}.${pu.ERROR}`,o=`${er.CACHE_PREFIX}.${pu.ERROR_DESC}`,a=this.browserStorage.getItem(t),l=this.browserStorage.getItem(n),u=this.browserStorage.getItem(i),h=this.browserStorage.getItem(o),p=[a,l,u,h];
63[pu.ID_TOKEN,pu.CLIENT_INFO,pu.ERROR,pu.ERROR_DESC].forEach((_,C)=>{const T=p[C];T&&this.setTemporaryCache(_,T,!0)})}createKeyMaps(){this.logger.trace("BrowserCacheManager - createKeyMaps called.");const e=this.cryptoImpl.createNewGuid(),t=this.getItem(im.ACCOUNT_KEYS),n=this.getItem(`${im.TOKEN_KEYS}.${this.clientId}`);if(t&&n){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}this.browserStorage.getKeys().forEach(o=>{if(this.isCredentialKey(o)){const a=this.getItem(o);if(a){const l=this.validateAndParseJson(a);if(l&&l.hasOwnProperty("credentialType"))switch(l.credentialType){case wi.ID_TOKEN:if(zee(l)){this.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - idToken with key: ${o} found, saving key to token key map`);const u=l,h=this.updateCredentialCacheKey(o,u,e);this.addTokenKey(h,wi.ID_TOKEN,e);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed idToken validation on key: ${o}`);break;case wi.ACCESS_TOKEN:case wi.ACCESS_TOKEN_WITH_AUTH_SCHEME:if($ee(l)){this.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - accessToken with key: ${o} found, saving key to token key map`);const u=l,h=this.updateCredentialCacheKey(o,u,e);this.addTokenKey(h,wi.ACCESS_TOKEN,e);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed accessToken validation on key: ${o}`);break;case wi.REFRESH_TOKEN:if(jee(l)){this.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - refreshToken with key: ${o} found, saving key to token key map`);const u=l,h=this.updateCredentialCacheKey(o,u,e);this.addTokenKey(h,wi.REFRESH_TOKEN,e);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: ${o}`);break}}}if(this.isAccountKey(o)){const a=this.getItem(o);if(a){const l=this.validateAndParseJson(a);l&&zh.isAccountEntity(l)&&(this.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - account with key: ${o} found, saving key to account key map`),this.addAccountKeyToMap(o,e))}}})}validateAndParseJson(e){try{const t=JSON.parse(e);return t&&typeof t=="object"?t:null}catch{return null}}getItem(e){return this.browserStorage.getItem(e)}setItem(e,t,n){let i=[];for(let a=0;a<=20;a++)try{this.browserStorage.setItem(e,t),a>0&&this.removeAccessTokenKeys(i.slice(0,a),n);break}catch(l){const u=Ife(l);if(u.errorCode===nK&&a<20){if(i.length||(e===`${im.TOKEN_KEYS}.${this.clientId}`?i=JSON.parse(t).accessToken:i=this.getTokenKeys().accessToken),i.length<=a)throw u;this.removeAccessToken(i[a],n,!1)}else throw u}}getAccount(e,t,n){this.logger.trace("BrowserCacheManager.getAccount called");const i=this.getCachedAccountEntity(e,t);return this.updateOutdatedCachedAccount(e,i,t,n)}getCachedAccountEntity(e,t){const n=this.getItem(e);if(!n)return this.removeAccountKeyFromMap(e,t),null;const i=this.validateAndParseJson(n);return!i||!zh.isAccountEntity(i)?null:$F.toObject(new zh,i)}setAccount(e,t){this.logger.trace("BrowserCacheManager.setAccount called");const n=e.generateAccountKey();e.lastUpdatedAt=Date.now().toString(),this.setItem(n,JSON.stringify(e),t),this.addAccountKeyToMap(n,t)}getAccountKeys(){this.logger.trace("BrowserCacheManager.getAccountKeys called");const e=this.getItem(im.ACCOUNT_KEYS);return e?JSON.parse(e):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])}
63addAccountKeyToMap(e,t){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii(`BrowserCacheManager.addAccountKeyToMap called with key: ${e}`);const n=this.getAccountKeys();n.indexOf(e)===-1?(n.push(e),this.setItem(im.ACCOUNT_KEYS,JSON.stringify(n),t),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")}removeAccountKeyFromMap(e,t){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii(`BrowserCacheManager.removeAccountKeyFromMap called with key: ${e}`);const n=this.getAccountKeys(),i=n.indexOf(e);if(i>-1){if(n.splice(i,1),n.length===0){this.removeItem(im.ACCOUNT_KEYS);return}else this.setItem(im.ACCOUNT_KEYS,JSON.stringify(n),t);this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")}else this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")}async removeAccount(e,t){super.removeAccount(e,t),this.removeAccountKeyFromMap(e,t)}removeOutdatedAccount(e,t){this.removeItem(e),this.removeAccountKeyFromMap(e,t)}removeIdToken(e,t){super.removeIdToken(e,t),this.removeTokenKey(e,wi.ID_TOKEN,t)}removeAccessToken(e,t,n=!0){var i;super.removeAccessToken(e,t),(i=this.performanceClient)==null||i.incrementFields({accessTokensRemoved:1},t),n&&this.removeTokenKey(e,wi.ACCESS_TOKEN,t)}removeAccessTokenKeys(e,t){this.logger.trace("removeAccessTokenKey called");const n=this.getTokenKeys();let i=0;if(e.forEach(o=>{const a=n.accessToken.indexOf(o);a>-1&&(n.accessToken.splice(a,1),i++)}),i>0){this.logger.info(`removed ${i} accessToken keys from tokenKeys map`),this.setTokenKeys(n,t);return}}removeRefreshToken(e,t){super.removeRefreshToken(e,t),this.removeTokenKey(e,wi.REFRESH_TOKEN,t)}getTokenKeys(){this.logger.trace("BrowserCacheManager.getTokenKeys called");const e=this.getItem(`${im.TOKEN_KEYS}.${this.clientId}`);if(e){const t=this.validateAndParseJson(e);if(t&&t.hasOwnProperty("idToken")&&t.hasOwnProperty("accessToken")&&t.hasOwnProperty("refreshToken"))return t;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}}setTokenKeys(e,t){if(e.idToken.length===0&&e.accessToken.length===0&&e.refreshToken.length===0){this.removeItem(`${im.TOKEN_KEYS}.${this.clientId}`);return}else this.setItem(`${im.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(e),t)}addTokenKey(e,t,n){this.logger.trace("BrowserCacheManager addTokenKey called");const i=this.getTokenKeys();switch(t){case wi.ID_TOKEN:i.idToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),i.idToken.push(e));break;case wi.ACCESS_TOKEN:const o=i.accessToken.indexOf(e);o!==-1&&i.accessToken.splice(o,1),this.logger.trace(`access token ${o===-1?"added to":"updated in"} map`),i.accessToken.push(e);break;case wi.REFRESH_TOKEN:i.refreshToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),i.refreshToken.push(e));break;default:throw this.logger.error(`BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: ${t}`),Sr(_V)}this.setTokenKeys(i,n)}removeTokenKey(e,t,n,i=this.getTokenKeys()){switch(this.logger.trace("BrowserCacheManager removeTokenKey called"),t){case wi.ID_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: ${e} from map`);const o=i.idToken.indexOf(e);o>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),i.idToken.splice(o,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case wi.ACCESS_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: ${e} from map`);const a=i.accessToken.indexOf(e);a>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),i.accessToken.splice(a,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case wi.REFRESH_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: ${e} from map`);const l=i.refreshToken.indexOf(e);l>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),i.refreshToken.splice(l,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:throw this.logger.error(`BrowserCacheManager:removeTokenKey - CredentialType provided invali
63d. CredentialType: ${t}`),Sr(_V)}this.setTokenKeys(i,n)}getIdTokenCredential(e,t){const n=this.getItem(e);if(!n)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeIdToken(e,t),null;const i=this.validateAndParseJson(n);return!i||!zee(i)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),i)}setIdTokenCredential(e,t){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");const n=$A(e);e.lastUpdatedAt=Date.now().toString(),this.setItem(n,JSON.stringify(e),t),this.addTokenKey(n,wi.ID_TOKEN,t)}getAccessTokenCredential(e,t){const n=this.getItem(e);if(!n)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,wi.ACCESS_TOKEN,t),null;const i=this.validateAndParseJson(n);return!i||!$ee(i)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),i)}setAccessTokenCredential(e,t){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");const n=$A(e);e.lastUpdatedAt=Date.now().toString(),this.setItem(n,JSON.stringify(e),t),this.addTokenKey(n,wi.ACCESS_TOKEN,t)}getRefreshTokenCredential(e,t){const n=this.getItem(e);if(!n)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,wi.REFRESH_TOKEN,t),null;const i=this.validateAndParseJson(n);return!i||!jee(i)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),i)}setRefreshTokenCredential(e,t){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");const n=$A(e);e.lastUpdatedAt=Date.now().toString(),this.setItem(n,JSON.stringify(e),t),this.addTokenKey(n,wi.REFRESH_TOKEN,t)}getAppMetadata(e){const t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;const n=this.validateAndParseJson(t);return!n||!pPe(e,n)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),n)}setAppMetadata(e,t){this.logger.trace("BrowserCacheManager.setAppMetadata called");const n=fPe(e);this.setItem(n,JSON.stringify(e),t)}getServerTelemetry(e){const t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;const n=this.validateAndParseJson(t);return!n||!dPe(e,n)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),n)}setServerTelemetry(e,t,n){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(t),n)}getAuthorityMetadata(e){const t=this.internalStorage.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;const n=this.validateAndParseJson(t);return n&&gPe(e,n)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),n):null}getAuthorityMetadataKeys(){return this.internalStorage.getKeys().filter(t=>this.isAuthorityMetadata(t))}setWrapperMetadata(e,t){this.internalStorage.setItem(m4.WRAPPER_SKU,e),this.internalStorage.setItem(m4.WRAPPER_VER,t)}getWrapperMetadata(){const e=this.internalStorage.getItem(m4.WRAPPER_SKU)||er.EMPTY_STRING,t=this.internalStorage.getItem(m4.WRAPPER_VER)||er.EMPTY_STRING;return[e,t]}setAuthorityMetadata(e,t){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(t))}getActiveAccount(e){const t=this.generateCacheKey(pu.ACTIVE_ACCOUNT_FILTERS),n=this.getItem(t);if(!n){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");const o=this.generateCacheKey(pu.ACTIVE_ACCOUNT),a=this.getItem(o);if(!a)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;const l=this.getAccountInfoFilteredBy({localAccountId:a},e);return l?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(l,e),l):null}const i=this.validateAndParseJson(n);return i?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoFilteredBy({homeAccountId:i.homeAccountId,localAccountId:i.localAccountId,tenantId:i.tenantId},e)):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)}setActiveAccount(e,t){const n=this.generateCacheKey(pu.ACTIVE_ACCOUNT_FILTERS),i=this.generateCacheKey(pu.ACTIVE_ACCOUNT);if(e){this.logger.verbose("setActiveAccount: Active account set");const o={homeAccountId:e.homeAccountId,localAccountId:e.localAccountId,tenantId:e.tenantId,lastUpdatedAt:Date.now().toString()};this.setItem(n,JSON.stringify(o),t),this.setItem(i,e.localAccountId,t)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(n),this.browserStorage.removeItem(i)}getThrottlingCache(e){const t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;const n=this.validateAndParseJson(t);return!n||!hPe(e,n)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),n)}setThrottlingCache(e,t,n){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(t),n)}getTemporaryCache(e,t){const n=t?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){const o=this.cookieStorage.getItem(n);if(o)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),o}const i=this.temporaryCacheStorage.getItem(n);if(!i){if(this.cacheConfig.cacheLocation===jf.LocalStorage){const o=this.browserStorage.getItem(n);if(o)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),o}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),i}setTemporaryCache(e,t,n){const i=n?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(i,t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.cookieStorage.setItem(i,t,void 0,this.cacheConfig.secureCookies))}removeItem(e){this.browserStorage.removeItem(e)}removeTemporaryItem(e){this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.cookieStorage.removeItem(e))}getKeys(){return this.browserStorage.getKeys()}async clear(e){await this.removeAllAccounts(e),this.removeAppMetadata(e),this.temporaryCacheStorage.getKeys().forEac
63h(t=>{(t.indexOf(er.CACHE_PREFIX)!==-1||t.indexOf(this.clientId)!==-1)&&this.removeTemporaryItem(t)}),this.browserStorage.getKeys().forEach(t=>{(t.indexOf(er.CACHE_PREFIX)!==-1||t.indexOf(this.clientId)!==-1)&&this.browserStorage.removeItem(t)}),this.internalStorage.clear()}async clearTokensAndKeysWithClaims(e,t){e.addQueueMeasurement(Ht.ClearTokensAndKeysWithClaims,t);const n=this.getTokenKeys();let i=0;n.accessToken.forEach(o=>{const a=this.getAccessTokenCredential(o,t);a!=null&&a.requestedClaimsHash&&o.includes(a.requestedClaimsHash.toLowerCase())&&(this.removeAccessToken(o,t),i++)}),i>0&&this.logger.warning(`${i} access tokens with claims in the cache keys have been removed from the cache.`)}generateCacheKey(e){return this.validateAndParseJson(e)?JSON.stringify(e):lv.startsWith(e,er.CACHE_PREFIX)||lv.startsWith(e,pu.ADAL_ID_TOKEN)?e:`${er.CACHE_PREFIX}.${this.clientId}.${e}`}generateAuthorityKey(e){const{libraryState:{id:t}}=V1.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${ya.AUTHORITY}.${t}`)}generateNonceKey(e){const{libraryState:{id:t}}=V1.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${ya.NONCE_IDTOKEN}.${t}`)}generateStateKey(e){const{libraryState:{id:t}}=V1.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${ya.REQUEST_STATE}.${t}`)}getCachedAuthority(e){const t=this.generateStateKey(e),n=this.getTemporaryCache(t);if(!n)return null;const i=this.generateAuthorityKey(n);return this.getTemporaryCache(i)}updateCacheEntries(e,t,n,i,o){this.logger.trace("BrowserCacheManager.updateCacheEntries called");const a=this.generateStateKey(e);this.setTemporaryCache(a,e,!1);const l=this.generateNonceKey(e);this.setTemporaryCache(l,t,!1);const u=this.generateAuthorityKey(e);if(this.setTemporaryCache(u,n,!1),o){const h={credential:o.homeAccountId,type:tg.HOME_ACCOUNT_ID};this.setTemporaryCache(ya.CCS_CREDENTIAL,JSON.stringify(h),!0)}else if(i){const h={credential:i,type:tg.UPN};this.setTemporaryCache(ya.CCS_CREDENTIAL,JSON.stringify(h),!0)}}resetRequestCache(e){this.logger.trace("BrowserCacheManager.resetRequestCache called"),e&&(this.temporaryCacheStorage.getKeys().forEach(t=>{t.indexOf(e)!==-1&&this.removeTemporaryItem(t)}),this.removeTemporaryItem(this.generateStateKey(e)),this.removeTemporaryItem(this.generateNonceKey(e)),this.removeTemporaryItem(this.generateAuthorityKey(e))),this.removeTemporaryItem(this.generateCacheKey(ya.REQUEST_PARAMS)),this.removeTemporaryItem(this.generateCacheKey(ya.ORIGIN_URI)),this.removeTemporaryItem(this.generateCacheKey(ya.URL_HASH)),this.removeTemporaryItem(this.generateCacheKey(ya.CORRELATION_ID)),this.removeTemporaryItem(this.generateCacheKey(ya.CCS_CREDENTIAL)),this.removeTemporaryItem(this.generateCacheKey(ya.NATIVE_REQUEST)),this.setInteractionInProgress(!1)}cleanRequestByState(e){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),e){const t=this.generateStateKey(e),n=this.temporaryCacheStorage.getItem(t);this.logger.infoPii(`BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: ${n}`),this.resetRequestCache(n||er.EMPTY_STRING)}}cleanRequestByInteractionType(e){this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.temporaryCacheStorage.getKeys().forEach(t=>{if(t.indexOf(ya.REQUEST_STATE)===-1)return;const n=this.temporaryCacheStorage.getItem(t);if(!n)return;const i=Ope(this.cryptoImpl,n);i&&i.interactionType===e&&(this.logger.infoPii(`BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: ${n}`),this.resetRequestCache(n))}),this.setInteractionInProgress(!1)}cacheCodeRequest(e){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");const t=gK(JSON.stringify(e));this.setTemporaryCache(ya.REQUEST_PARAMS,t,!0)}getCachedRequest(e){this.logger.trace("BrowserCacheManager.getCachedRequest called");const t=this.getTemporaryCache(ya.REQUEST_PARAMS,!0);if(!t)throw mn(ope);let n;try{n=JSON.parse(J0(t))}catch(i){throw this.logger.errorPii(`Attempted to parse: ${t}`),this.logger.error(`Parsing cached token request threw with error: ${i}`),mn(ape)}if(this.removeTemporaryItem(this.generateCacheKey(ya.REQUEST_PARAMS)),!n.authority){const i=this.generateAuthorityKey(e),o=this.getTemporaryCache(i);if(!o)throw mn(dK);n.authority=o}return n}getCachedNativeRequest(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");const e=this.getTemporaryCache(ya.NATIVE_REQUEST,!0);if(!e)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;const t=this.validateAndParseJson(e);return t||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)}isInteractionInProgress(e){const t=this.getInteractionInProgress();return e?t===this.clientId:!!t}getInteractionInProgress(){const e=`${er.CACHE_PREFIX}.${ya.INTERACTION_STATUS_KEY}`;return this.getTemporaryCache(e,!1)}setInteractionInProgress(e){const t=`${er.CACHE_PREFIX}.${ya.INTERACTION_STATUS_KEY}`;if(e){if(this.getInteractionInProgress())throw mn(Xfe);this.setTemporaryCache(t,this.clientId,!1)}else!e&&this.getInteractionInProgress()===this.clientId&&this.removeTemporaryItem(t)}getLegacyLoginHint(){const e=this.getTemporaryCache(pu.ADAL_ID_TOKEN);e&&(this.browserStorage.removeItem(pu.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));const t=this.getTemporaryCache(pu.ID_TOKEN,!0);t&&(this.browserStorage.removeItem(this.generateCacheKey(pu.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));const n=t||e;if(n){const i=IS(n,J0);if(i.preferred_username)return this.logger.verbose("No SSO params used and ADAL
63/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),i.preferred_username;if(i.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),i.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null}updateCredentialCacheKey(e,t,n){const i=$A(t);if(e!==i){const o=this.getItem(e);if(o)return this.browserStorage.removeItem(e),this.setItem(i,o,n),this.logger.verbose(`Updated an outdated ${t.credentialType} cache key`),i;this.logger.error(`Attempted to update an outdated ${t.credentialType} cache key but no item matching the outdated key was found in storage`)}return e}async hydrateCache(e,t){var l,u,h;const n=jB((l=e.account)==null?void 0:l.homeAccountId,(u=e.account)==null?void 0:u.environment,e.idToken,this.clientId,e.tenantId);let i;t.claims&&(i=await this.cryptoImpl.hashString(t.claims));const o=VB((h=e.account)==null?void 0:h.homeAccountId,e.account.environment,e.accessToken,this.clientId,e.tenantId,e.scopes.join(" "),e.expiresOn?e.expiresOn.getTime()/1e3:0,e.extExpiresOn?e.extExpiresOn.getTime()/1e3:0,J0,void 0,e.tokenType,void 0,t.sshKid,t.claims,i),a={idToken:n,accessToken:o};return this.saveCacheRecord(a,e.correlationId)}async saveCacheRecord(e,t,n){try{await super.saveCacheRecord(e,t,n)}catch(i){if(i instanceof bR&&this.performanceClient&&t)try{const o=this.getTokenKeys();this.performanceClient.addFields({cacheRtCount:o.refreshToken.length,cacheIdCount:o.idToken.length,cacheAtCount:o.accessToken.length},t)}catch{}throw i}}};const P2e=(r,e)=>{const t={cacheLocation:jf.MemoryStorage,temporaryCacheLocation:jf.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};return new DV(r,t,LF,e)};/*! @azure/msal-browser v3.30.0 2025-08-05 */function k2e(r,e,t,n,i){return r.verbose("getAllAccounts called"),t?e.getAllAccounts(n,i):[]}function O2e(r,e,t,n){if(e.trace("getAccount called"),Object.keys(r).length===0)return e.warning("getAccount: No accountFilter provided"),null;const i=t.getAccountInfoFilteredBy(r,n);return i?(e.verbose("getAccount: Account matching provided filter found, returning"),i):(e.verbose("getAccount: No matching account found, returning null"),null)}function M2e(r,e,t,n){if(e.trace("getAccountByUsername called"),!r)return e.warning("getAccountByUsername: No username provided"),null;const i=t.getAccountInfoFilteredBy({username:r},n);return i?(e.verbose("getAccountByUsername: Account matching username found, returning"),e.verbosePii(`getAccountByUsername: Returning signed-in accounts matching username: ${r}`),i):(e.verbose("getAccountByUsername: No matching account found, returning null"),null)}function N2e(r,e,t,n){if(e.trace("getAccountByHomeId called"),!r)return e.warning("getAccountByHomeId: No homeAccountId provided"),null;const i=t.getAccountInfoFilteredBy({homeAccountId:r},n);return i?(e.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),e.verbosePii(`getAccountByHomeId: Returning signed-in accounts matching homeAccountId: ${r}`),i):(e.verbose("getAccountByHomeId: No matching account found, returning null"),null)}function D2e(r,e,t,n){if(e.trace("getAccountByLocalId called"),!r)return e.warning("getAccountByLocalId: No localAccountId provided"),null;const i=t.getAccountInfoFilteredBy({localAccountId:r},n);return i?(e.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),e.verbosePii(`getAccountByLocalId: Returning signed-in accounts matching localAccountId: ${r}`),i):(e.verbose("getAccountByLocalId: No matching account found, returning null"),null)}function L2e(r,e,t){e.setActiveAccount(r,t)}function H2e(r,e){return r.getActiveAccount(e)}/*! @azure/msal-browser v3.30.0 2025-08-05 */const vn={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACCOUNT_ADDED:"msal:accountAdded",ACCOUNT_REMOVED:"msal:accountRemoved",ACTIVE_ACCOUNT_CHANGED:"msal:activeAccountChanged",LOGIN_START:"msal:loginStart",LOGIN_SUCCESS:"msal:loginSuccess",
63LOGIN_FAILURE:"msal:loginFailure",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",SSO_SILENT_START:"msal:ssoSilentStart",SSO_SILENT_SUCCESS:"msal:ssoSilentSuccess",SSO_SILENT_FAILURE:"msal:ssoSilentFailure",ACQUIRE_TOKEN_BY_CODE_START:"msal:acquireTokenByCodeStart",ACQUIRE_TOKEN_BY_CODE_SUCCESS:"msal:acquireTokenByCodeSuccess",ACQUIRE_TOKEN_BY_CODE_FAILURE:"msal:acquireTokenByCodeFailure",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache"};/*! @azure/msal-browser v3.30.0 2025-08-05 */let F2e=class{constructor(e){this.eventCallbacks=new Map,this.logger=e||new fk({})}addEventCallback(e,t,n){if(typeof window<"u"){const i=n||p2e();return this.eventCallbacks.has(i)?(this.logger.error(`Event callback with id: ${i} is already registered. Please provide a unique id or remove the existing callback and try again.`),null):(this.eventCallbacks.set(i,[e,t||[]]),this.logger.verbose(`Event callback registered with id: ${i}`),i)}return null}removeEventCallback(e){this.eventCallbacks.delete(e),this.logger.verbose(`Event callback ${e} removed.`)}emitEvent(e,t,n,i){if(typeof window<"u"){const o={eventType:e,interactionType:t||null,payload:n||null,error:i||null,timestamp:Date.now()};this.eventCallbacks.forEach(([a,l],u)=>{(l.length===0||l.includes(e))&&(this.logger.verbose(`Emitting event to callback ${u}: ${e}`),a.apply(null,[o]))})}}};/*! @azure/msal-browser v3.30.0 2025-08-05 */let Mpe=class{constructor(e,t,n,i,o,a,l,u,h){this.config=e,this.browserStorage=t,this.browserCrypto=n,this.networkClient=this.config.system.networkClient,this.eventHandler=o,this.navigationClient=a,this.nativeMessageHandler=u,this.correlationId=h||u_(),this.logger=i.clone(Kp.MSAL_SKU,SP,this.correlationId),this.performanceClient=l}async clearCacheOnLogout(e){if(e){zh.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(this.correlationId),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null,this.correlationId));try{await this.browserStorage.removeAccount(zh.generateAccountCacheKey(e),this.correlationId),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request.")}catch{this.logger.error("Account provided in logout request was not found. Local cache unchanged.")}}else try{this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),await this.browserStorage.clear(this.correlationId),await this.browserCrypto.clearKeystore()}catch{this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged.")}}getRedirectUri(e){this.logger.verbose("getRedirectUri called");const t=e||this.config.auth.redirectUri;return Ma.getAbsoluteUrl(t,H1())}initializeServerTelemetryManager(e,t){this.logger.verbose("initializeServerTelemetryManager called");const n={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:t||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new zfe(n,this.browserStorage)}async getDiscoveredAuthority(e){const{account:t}=e,n=e.requestExtraQueryParameters&&e.requestExtraQueryParameters.hasOwnProperty("instance_aware")?e.requestExtraQueryParameters.instance_aware:void 0;this.performanceClient.addQueueMeasurement(Ht.StandardInteractionClientGetDiscoveredAuthority,this.correlationId);const i={protocolMode:this.config.auth.protocolMode,OIDCOptions:this.config.auth.OIDCOptions,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},o=e.requestAuthority||this.config.auth.authority,a=n!=null&&n.length?n==="true":this.config.auth.instanceAware,l=t&&a?this.config.auth.authority.replace(Ma.getDomainFromUrl(o),t.environment):o,u=CP.generateAuthority(l,e.requestAzureCloudOptions||this.config.auth.azureCloudOptions),h=await Fr(Nfe,Ht.AuthorityFactoryCreateDiscoveredInstance,this.logger,this.performanceClient,this.correlationId)(u,this.config.system.networkClient,this.browserStorage,i,this.logger,this.correlationId,this.performanceClient);if(t&&!h.isAlias(t.environment))throw qa(wfe);return h}};/*! @azure/msal-browser v3.30.0 2025-08-05 */const U2e=32;async function B2e(r,e,t){r.addQueueMeasurement(Ht.GeneratePkceCodes,t);const n=AS($2e,Ht.GenerateCodeVerifier,e,r,t)(r,e,t),i=await Fr(z2e,Ht.GenerateCodeChallengeFromVerifier,e,r,t)(n,r,e,t);return{verifier:n,challenge:i}}function $2e(r,e,t){try{const n=new Uint8Array(U2e);return AS(r2e,Ht.GetRandomValues,e,r,t)(n),XB(n)}catch{throw mn(cK)}}async function z2e(r,e,t,n){e.addQueueMeasurement(Ht.GenerateCodeChallengeFromVerifier,n);try{const i=await Fr(Spe,Ht.Sha256Digest,t,e,n)(r,e,n);return XB(new Uint8Array(i))}catch{throw mn(cK)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */async function EK(r,e,t,n){t.addQueueMeasurement(Ht.InitializeBaseRequest,r.correlationId);const i=r.authority||e.auth.authority,o=[...r&&r.scopes||[]],a={...r,correlationId:r.correlationId,authority:i,scopes:o};if(!a.authenticationScheme)a.authenticationScheme=Na.BEARER,n.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(a.authenticationScheme===Na.SSH){if(!r.sshJwk)throw qa(qB);if(!r.sshKid)throw qa(vfe)}n.verbose(`Authentication Scheme set to "${a.authenticationScheme}" as configured in Auth request`)}return e.cache.claimsBasedCachingEnabled&&r.claims&&!lv.isEmptyObj(r.claims)&&(a.requestedClaimsHash=await Ipe(r.claims)),a}async function j2e(r,e,t,n,i){n.addQueueMeasurement(Ht.InitializeSilentRequest,r.correlationId);const o=await Fr(EK,Ht.InitializeBaseRequest,i,n,r.correlationId)(r,t,n,i);return{...r,...o,account:e,forceRefresh:r.forceRefresh||!1}}/*! @azure/msal-browser v3.30.0 2025-08-05 */let pk=class extends Mpe{async initializeAuthorizationCodeRequest
63(e){this.performanceClient.addQueueMeasurement(Ht.StandardInteractionClientInitializeAuthorizationCodeRequest,this.correlationId);const t=await Fr(B2e,Ht.GeneratePkceCodes,this.logger,this.performanceClient,this.correlationId)(this.performanceClient,this.logger,this.correlationId),n={...e,redirectUri:e.redirectUri,code:er.EMPTY_STRING,codeVerifier:t.verifier};return e.codeChallenge=t.challenge,e.codeChallengeMethod=er.S256_CODE_CHALLENGE_METHOD,n}initializeLogoutRequest(e){this.logger.verbose("initializeLogoutRequest called",e==null?void 0:e.correlationId);const t={correlationId:this.correlationId||u_(),...e};if(e)if(e.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(e.account){const n=this.getLogoutHintFromIdTokenClaims(e.account);n&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),t.logoutHint=n)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!e||e.postLogoutRedirectUri!==null?e&&e.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",t.correlationId),t.postLogoutRedirectUri=Ma.getAbsoluteUrl(e.postLogoutRedirectUri,H1())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",t.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",t.correlationId),t.postLogoutRedirectUri=Ma.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,H1())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",t.correlationId),t.postLogoutRedirectUri=Ma.getAbsoluteUrl(H1(),H1())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",t.correlationId),t}getLogoutHintFromIdTokenClaims(e){const t=e.idTokenClaims;if(t){if(t.login_hint)return t.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null}async createAuthCodeClient(e){this.performanceClient.addQueueMeasurement(Ht.StandardInteractionClientCreateAuthCodeClient,this.correlationId);const t=await Fr(this.getClientConfiguration.bind(this),Ht.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)(e);return new Bfe(t,this.performanceClient)}async getClientConfiguration(e){const{serverTelemetryManager:t,requestAuthority:n,requestAzureCloudOptions:i,requestExtraQueryParameters:o,account:a}=e;this.performanceClient.addQueueMeasurement(Ht.StandardInteractionClientGetClientConfiguration,this.correlationId);const l=await Fr(this.getDiscoveredAuthority.bind(this),Ht.StandardInteractionClientGetDiscoveredAuthority,this.logger,this.performanceClient,this.correlationId)({requestAuthority:n,requestAzureCloudOptions:i,requestExtraQueryParameters:o,account:a}),u=this.config.system.loggerOptions;return{authOptions:{clientId:this.config.auth.clientId,authority:l,clientCapabilities:this.config.auth.clientCapabilities,redirectUri:this.config.auth.redirectUri},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:u.loggerCallback,piiLoggingEnabled:u.piiLoggingEnabled,logLevel:u.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:t,libraryInfo:{sku:Kp.MSAL_SKU,version:SP,cpu:er.EMPTY_STRING,os:er.EMPTY_STRING},telemetry:this.config.telemetry}}async initializeAuthorizationRequest(e,t){this.performanceClient.addQueueMeasurement(Ht.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId);const n=this.getRedirectUri(e.redirectUri),i={interactionType:t},o=V1.setRequestState(this.browserCrypto,e&&e.state||er.EMPTY_STRING,i),l={...await Fr(EK,Ht.InitializeBaseRequest,this.logger,this.performanceClient,this.correlationId)({...e,correlationId:this.correlationId},this.config,this.performanceClient,this.logger),redirectUri:n,state:o,nonce:e.nonce||u_(),responseMode:this.config.auth.OIDCOptions.serverResponseType};if(e.loginHint||e.sid)return l;const u=e.account||this.browserStorage.getActiveAccount(this.correlationId);if(u&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii(`Setting validated request account: ${u.homeAccountId}`,this.correlationId),l.account=u),!l.loginHint&&!u){const h=this.browserStorage.getLegacyLoginHint();h&&(l.loginHint=h)}return l}};/*! @azure/msal-browser v3.30.0 2025-08-05 */const V2e="ContentError",Npe="user_switch";/*! @azure/msal-browser v3.30.0 2025-08-05 */const q2e="USER_INTERACTION_REQUIRED",G2e="USER_CANCEL",Y2e="NO_NETWORK",W2e="PERSISTENT_ERROR",K2e="DISABLED",Z2e="ACCOUNT_UNAVAILABLE";/*! @azure/msal-browser v3.30.0 2025-08-05 */const X2e=-2147186943,Q2e={[Npe]:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."};let Gw=class Dpe extends Js{constructor(e,t,n){super(e,t),Object.setPrototypeOf(this,Dpe.prototype),this.name="NativeAuthError",this.ext=n}};function fA(r){if(r.ext&&r.ext.status&&(r.ext.status===W2e||r.ext.status===K2e)||r.ext&&r.ext.error&&r.ext.error===X2e)return!0;switch(r.errorCode){case V2e:return!0;default:return!1}}function LV(r,e,t){if(t&&t.status)switch(t.status){case Z2e:return xV(Lfe);case q2e:return new lb(r,e);case G2e:return mn(QT);case Y2e:return mn(qF)}return new Gw(r,Q2e[r]||e,t)}/*! @azure/msal-browser v3.30.0 2025-08-05 */let Lpe=class extends pk{async acquireToken(e){this.performanceClient.addQueueMeasurement(Ht.SilentCacheClientAcquireToken,e.correlationId);const t=this.initializeServerTelemetryManager(ws.acquireTokenSilent_silentFlow),n=await Fr(this.getClientConfiguration.bind(this),Ht.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:t,requestAuthority:e.authority,requestAzureCloudOptions:e.azureCloudOptions,account:e.account}),i=new kke(n,this.performanceClient);this.logger.verbose("Silent auth client created");try{const a=(await Fr(i.acquireCachedToken.bind(i),Ht.SilentFlowClientAcquireCachedToken,this.logger,this.performanceClient,e.correlationId)(e))[0];return this.performanceClient.addFields({fromCache:!0},e.correlationId),a}catch(o){throw o instanceof pK&&o.errorCode===hK&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),o}}logout(e){this.logger.verbose("logoutRedirect called");
63const t=this.initializeLogoutRequest(e);return this.clearCacheOnLogout(t==null?void 0:t.account)}};/*! @azure/msal-browser v3.30.0 2025-08-05 */let wR=class extends Mpe{constructor(e,t,n,i,o,a,l,u,h,p,m,_){var T;super(e,t,n,i,o,a,u,h,_),this.apiId=l,this.accountId=p,this.nativeMessageHandler=h,this.nativeStorageManager=m,this.silentCacheClient=new Lpe(e,this.nativeStorageManager,n,i,o,a,u,h,_),this.serverTelemetryManager=this.initializeServerTelemetryManager(this.apiId);const C=this.nativeMessageHandler.getExtensionId()===jA.PREFERRED_EXTENSION_ID?"chrome":(T=this.nativeMessageHandler.getExtensionId())!=null&&T.length?"unknown":void 0;this.skus=zfe.makeExtraSkuString({libraryName:Kp.MSAL_SKU,libraryVersion:SP,extensionName:C,extensionVersion:this.nativeMessageHandler.getExtensionVersion()})}addRequestSKUs(e){e.extraParameters={...e.extraParameters,[pke]:this.skus}}async acquireToken(e){this.performanceClient.addQueueMeasurement(Ht.NativeInteractionClientAcquireToken,e.correlationId),this.logger.trace("NativeInteractionClient - acquireToken called.");const t=this.performanceClient.startMeasurement(Ht.NativeInteractionClientAcquireToken,e.correlationId),n=c_();try{const i=await this.initializeNativeRequest(e);try{const h=await this.acquireTokensFromCache(this.accountId,i);return t.end({success:!0,isNativeBroker:!1,fromCache:!0}),h}catch{this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call")}const{...o}=i,a={method:Zx.GetToken,request:o},l=await this.nativeMessageHandler.sendMessage(a),u=this.validateNativeResponse(l);return await this.handleNativeResponse(u,i,n).then(h=>(t.end({success:!0,isNativeBroker:!0,requestId:h.requestId}),this.serverTelemetryManager.clearNativeBrokerErrorCode(),h)).catch(h=>{throw t.end({success:!1,errorCode:h.errorCode,subErrorCode:h.subError,isNativeBroker:!0}),h})}catch(i){throw i instanceof Gw&&this.serverTelemetryManager.setNativeBrokerErrorCode(i.errorCode),i}}createSilentCacheRequest(e,t){return{authority:e.authority,correlationId:this.correlationId,scopes:ed.fromString(e.scope).asArray(),account:t,forceRefresh:!1}}async acquireTokensFromCache(e,t){if(!e)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),Sr(yV);const n=this.browserStorage.getBaseAccountInfo({nativeAccountId:e},t.correlationId);if(!n)throw Sr(yV);try{const i=this.createSilentCacheRequest(t,n),o=await this.silentCacheClient.acquireToken(i),a={...n,idTokenClaims:o==null?void 0:o.idTokenClaims,idToken:o==null?void 0:o.idToken};return{...o,account:a}}catch(i){throw i}}async acquireTokenRedirect(e,t){this.logger.trace("NativeInteractionClient - acquireTokenRedirect called.");const{...n}=e;delete n.onRedirectNavigate;const i=await this.initializeNativeRequest(n),o={method:Zx.GetToken,request:i};try{const u=await this.nativeMessageHandler.sendMessage(o);this.validateNativeResponse(u)}catch(u){if(u instanceof Gw&&(this.serverTelemetryManager.setNativeBrokerErrorCode(u.errorCode),fA(u)))throw u}this.browserStorage.setTemporaryCache(ya.NATIVE_REQUEST,JSON.stringify(i),!0);const a={apiId:ws.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},l=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri);t.end({success:!0}),await this.navigationClient.navigateExternal(l,a)}async handleRedirectPromise(e,t){if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const n=this.browserStorage.getCachedNativeRequest();if(!n)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),e&&t&&(e==null||e.addFields({errorCode:"no_cached_request"},t)),null;const{prompt:i,...o}=n;i&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ya.NATIVE_REQUEST));const a={method:Zx.GetToken,request:o},l=c_();try{this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker.");const u=await this.nativeMessageHandler.sendMessage(a);this.validateNativeResponse(u);const h=this.handleNativeResponse(u,o,l);this.browserStorage.setInteractionInProgress(!1);const p=await h;return this.serverTelemetryManager.clearNativeBrokerErrorCode(),p}catch(u){throw this.browserStorage.setInteractionInProgress(!1),u}}logout(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")}async handleNativeResponse(e,t,n){var p;this.logger.trace("NativeInteractionClient - handleNativeResponse called.");const i=IS(e.id_token,J0),o=this.createHomeAccountIdentifier(e,i),a=(p=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:t.accountId},this.correlationId))==null?void 0:p.homeAccountId;if(o!==a&&e.account.id!==t.accountId)throw LV(Npe);const l=await this.getDiscoveredAuthority({requestAuthority:t.authority}),u=lK(this.browserStorage,l,o,J0,this.correlationId,i,e.client_info,void 0,i.tid,void 0,e.account.id,this.logger),h=await this.generateAuthenticationResult(e,t,i,u,l.canonicalAuthority,n);return this.cacheAccount(u),this.cacheNativeTokens(e,t,o,i,e.access_token,h.tenantId,n),h}createHomeAccountIdentifier(e,t){return zh.generateHomeAccountId(e.client_info||er.EMPTY_STRING,Zy.Default,this.logger,this.browserCrypto,t)}generateScopes(e,t){return e.scope?ed.fromString(e.scope):ed.fromString(t.scope)}async generatePopAccessToken(e,t){if(t.tokenType===Na.POP&&t.signPopToken){if(e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),e.shr;const n=new TP(this.browserCrypto),i={resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,shrNonce:t.shrNonce};if(!t.keyId)throw Sr(YW);return n.signPopToken(e.access_token,t.keyId,i)}else return e.access_token}async generateAuthenticationResult(e,t,n,i,o,a){const l=this.addTelemetryFromNativeResponse(e),u=e.scope?ed.fromString(e.scope):ed.fromString(t.scope),h=e.account.properties||{},p=h.UID||n.oid||n.sub||er.EMPTY_STRING,m=h.TenantId||n.tid||er.EMPTY_STRING,_=tK(i.getAccountInfo(),void 0,n,e.id_token);_.nativeAccountId!==e.account.id&&(_.nativeAccountId=e.account.id);const C=await this.generatePopAccessToken(e,t),T=t.tokenType===Na.POP?Na.POP:Na.BEARER;return{authority:o,uniqueId:p,tenantId:m,scopes:u.asArray(),account:_,idToken:e.id_token,idTokenClaims:n,accessToken:C,fromCache:l?this.isResponseFromCache(l):!1,expiresOn:new Date(Number(a+e.expires_in)*1e3),tokenType:T,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0}}cacheAccount(e){this.browserStorage.setAccount(e,this.correlationId),this.browserStorage.removeAccountContext(e,this.correlationId).catch(t=>{this.logger.error(`Error occurred while removing account context from browser storage. ${t}`)})}cacheNativeTokens(e,t,n,i,o,a,l){const u=jB(n,t.authority,e.id_token||"",t.clientId,i.tid||""),h=t.tokenType===Na.POP?er.SHR_NONCE_VALIDITY:(typeof e.expires_in=="str
63ing"?parseInt(e.expires_in,10):e.expires_in)||0,p=l+h,m=this.generateScopes(e,t),_=VB(n,t.authority,o,t.clientId,i.tid||a,m.printScopes(),p,0,J0,void 0,t.tokenType,void 0,t.keyId),C={idToken:u,accessToken:_};this.nativeStorageManager.saveCacheRecord(C,t.correlationId,t.storeInCache)}addTelemetryFromNativeResponse(e){const t=this.getMATSFromResponse(e);return t?(this.performanceClient.addFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:t.broker_version,matsAccountJoinOnStart:t.account_join_on_start,matsAccountJoinOnEnd:t.account_join_on_end,matsDeviceJoin:t.device_join,matsPromptBehavior:t.prompt_behavior,matsApiErrorCode:t.api_error_code,matsUiVisible:t.ui_visible,matsSilentCode:t.silent_code,matsSilentBiSubCode:t.silent_bi_sub_code,matsSilentMessage:t.silent_message,matsSilentStatus:t.silent_status,matsHttpStatus:t.http_status,matsHttpEventCount:t.http_event_count},this.correlationId),t):null}validateNativeResponse(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw Bhe($W,"Response missing expected properties.")}getMATSFromResponse(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null}isResponseFromCache(e){return typeof e.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached}async initializeNativeRequest(e){this.logger.trace("NativeInteractionClient - initializeNativeRequest called");const t=e.authority||this.config.auth.authority;e.account&&await this.getDiscoveredAuthority({requestAuthority:t,requestAzureCloudOptions:e.azureCloudOptions,account:e.account});const n=new Ma(t);n.validateAsUri();const{scopes:i,...o}=e,a=new ed(i||[]);a.appendScopes(hk);const l=()=>{switch(this.apiId){case ws.ssoSilent:case ws.acquireTokenSilent_silentFlow:return this.logger.trace("initializeNativeRequest: silent request sets prompt to none"),bu.NONE}if(!e.prompt){this.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(e.prompt){case bu.NONE:case bu.CONSENT:case bu.LOGIN:return this.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),e.prompt;default:throw this.logger.trace(`initializeNativeRequest: prompt = ${e.prompt} is not compatible with native flow`),mn(ype)}},u={...o,accountId:this.accountId,clientId:this.config.auth.clientId,authority:n.urlString,scope:a.printScopes(),redirectUri:this.getRedirectUri(e.redirectUri),prompt:l(),correlationId:this.correlationId,tokenType:e.authenticationScheme,windowTitleSubstring:document.title,extraParameters:{...e.extraQueryParameters,...e.tokenQueryParameters},extendedExpiryToken:!1,keyId:e.popKid};if(u.signPopToken&&e.popKid)throw mn(_pe);if(this.handleExtraBrokerParams(u),u.extraParameters=u.extraParameters||{},u.extraParameters.telemetry=jA.MATS_TELEMETRY,e.authenticationScheme===Na.POP){const h={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce},p=new TP(this.browserCrypto);let m;if(u.keyId)m=this.browserCrypto.base64UrlEncode(JSON.stringify({kid:u.keyId})),u.signPopToken=!1;else{const _=await Fr(p.generateCnf.bind(p),Ht.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(h,this.logger);m=_.reqCnfString,u.keyId=_.kid,u.signPopToken=!0}u.reqCnf=m}return this.addRequestSKUs(u),u}handleExtraBrokerParams(e){var o;const t=e.extraParameters&&e.extraParameters.hasOwnProperty(oK)&&e.extraParameters.hasOwnProperty(CV)&&e.extraParameters.hasOwnProperty(XT);if(!e.embeddedClientId&&!t)return;let n="";const i=e.redirectUri;e.embeddedClientId?(e.redirectUri=this.config.auth.redirectUri,n=e.embeddedClientId):e.extraParameters&&(e.redirectUri=e.extraParameters[CV],n=e.extraParameters[XT]),e.extraParameters={child_client_id:n,child_redirect_uri:i},(o=this.performanceClient)==null||o.addFields({embeddedClientId:n,embeddedRedirectUri:i},e.correlationId)}};/*! @azure/msal-browser v3.30.0 2025-08-05 */let Xx=class HV{constructor(e,t,n,i){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=i,this.resolvers=new Map,this.handshakeResolvers=new Map,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=n,this.handshakeEvent=n.startMeasurement(Ht.NativeMessageHandlerHandshake)}async sendMessage(e){this.logger.trace("NativeMessageHandler - sendMessage called.");const t={channel:jA.CHANNEL_ID,extensionId:this.extensionId,responseId:u_(),body:e};return this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii(`NativeMessageHandler - Sending request to browser extension: ${JSON.stringify(t)}`),this.messageChannel.port1.postMessage(t),new Promise((n,i)=>{this.resolvers.set(t.responseId,{resolve:n,reject:i})})}static async createProvider(e,t,n){e.trace("NativeMessageHandler - createProvider called.");try{const i=new HV(e,t,n,jA.PREFERRED_EXTENSION_ID);
63return await i.sendHandshakeRequest(),i}catch{const o=new HV(e,t,n);return await o.sendHandshakeRequest(),o}}async sendHandshakeRequest(){this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1);const e={channel:jA.CHANNEL_ID,extensionId:this.extensionId,responseId:u_(),body:{method:Zx.HandshakeRequest}};return this.handshakeEvent.add({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=t=>{this.onChannelMessage(t)},window.postMessage(e,window.origin,[this.messageChannel.port2]),new Promise((t,n)=>{this.handshakeResolvers.set(e.responseId,{resolve:t,reject:n}),this.timeoutId=window.setTimeout(()=>{window.removeEventListener("message",this.windowListener,!1),this.messageChannel.port1.close(),this.messageChannel.port2.close(),this.handshakeEvent.end({extensionHandshakeTimedOut:!0,success:!1}),n(mn(ppe)),this.handshakeResolvers.delete(e.responseId)},this.handshakeTimeoutMs)})}onWindowMessage(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source!==window)return;const t=e.data;if(!(!t.channel||t.channel!==jA.CHANNEL_ID)&&!(t.extensionId&&t.extensionId!==this.extensionId)&&t.body.method===Zx.HandshakeRequest){const n=this.handshakeResolvers.get(t.responseId);if(!n){this.logger.trace(`NativeMessageHandler.onWindowMessage - resolver can't be found for request ${t.responseId}`);return}this.logger.verbose(t.extensionId?`Extension with id: ${t.extensionId} not installed`:"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1),this.handshakeEvent.end({success:!1,extensionInstalled:!1}),n.reject(mn(gpe))}}onChannelMessage(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");const t=e.data,n=this.resolvers.get(t.responseId),i=this.handshakeResolvers.get(t.responseId);try{const o=t.body.method;if(o===Zx.Response){if(!n)return;const a=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii(`NativeMessageHandler - Received response from browser extension: ${JSON.stringify(a)}`),a.status!=="Success")n.reject(LV(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?n.reject(LV(a.result.code,a.result.description,a.result.ext)):n.resolve(a.result);else throw Bhe($W,"Event does not contain result.");this.resolvers.delete(t.responseId)}else if(o===Zx.HandshakeResponse){if(!i){this.logger.trace(`NativeMessageHandler.onChannelMessage - resolver can't be found for request ${t.responseId}`);return}clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=t.extensionId,this.extensionVersion=t.body.version,this.logger.verbose(`NativeMessageHandler - Received HandshakeResponse from extension: ${this.extensionId}`),this.handshakeEvent.end({extensionInstalled:!0,success:!0}),i.resolve(),this.handshakeResolvers.delete(t.responseId)}}catch(o){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii(`Error parsing response from WAM Extension: ${o}`),this.logger.errorPii(`Unable to parse ${e}`),n?n.reject(o):i&&i.reject(o)}}getExtensionId(){return this.extensionId}getExtensionVersion(){return this.extensionVersion}static isNativeAvailable(e,t,n,i){if(t.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return t.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!n)return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(i)switch(i){case Na.BEARER:case Na.POP:return t.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return t.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0}};/*! @azure/msal-browser v3.30.0 2025-08-05 */let CK=class{constructor(e,t,n,i,o){this.authModule=e,this.browserStorage=t,this.authCodeRequest=n,this.logger=i,this.performanceClient=o}async handleCodeResponse(e,t){this.performanceClient.addQueueMeasurement(Ht.HandleCodeResponse,t.correlationId);let n;try{n=this.authModule.handleFragmentResponse(e,t.state)}catch(i){throw i instanceof xP&&i.subError===QT?mn(QT):i}return Fr(this.handleCodeResponseFromServer.bind(this),Ht.HandleCodeResponseFromServer,this.logger,this.performanceClient,t.correlationId)(n,t)}async handleCodeResponseFromServer(e,t,n=!0){if(this.performanceClient.addQueueMeasurement(Ht.HandleCodeResponseFromServer,t.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),this.authCodeRequest.code=e.code,e.cloud_instance_host_name&&await Fr(this.authModule.updateAuthority.bind(this.authModule),Ht.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,t.correlationId)(e.cloud_instance_host_name,t.correlationId),n&&(e.nonce=t.nonce||void 0),e.state=t.state,e.client_info)this.authCodeRequest.clientInfo=e.client_info;else{const o=this.createCcsCredentials(t);o&&(this.authCodeRequest.ccsCredential=o)}return await Fr(this.authModule.acquireToken.bind(this.authModule),Ht.AuthClientAcquireToken,this.logger,this.performanceClient,t.correlationId)(this.authCodeRequest,e)}createCcsCredentials(e){return e.account?{credential:e.account.homeAccountId,type:tg.HOME_ACCOUNT_ID}:e.loginHint?{credential:e.loginHint,type:tg.UPN}:null}};/*! @azure/msal-browser v3.30.0 2025-08-05 */function Hpe(r,e,t){const n=UF(r);if(!n)throw xfe(r)?(t.error(`A ${e} is present in the iframe but it does not contain known properties. It's likely that the ${e} has been replaced by code running on the redirectUri page.`),t.errorPii(`The ${e} detected is: ${r}`),mn(Wfe)):(t.error(`The request has returned to the redirectUri but a ${e} is not present. It's likely that the ${e} has been removed or the page has been redirected by code running on the redirectUri page.`),mn(Yfe));return n}function J2e(r,e,t){if(!r.state)throw mn(uK);const n=Ope(e,r.state);if(!n)throw mn(Kfe);if(n.interactionType!==t)throw mn(Zfe)}/*! @azure/msal-browser v3.30.0 2025-08-05 */let eOe=class extends pk{constructor(e,t,n,i,o,a,l,u,h,p){super(e,t,n,i,o,a,l,h,p),this.unloadWindow=this.unloadWindow.bind(this),this.nativeStorage=u}acquireToken(e){try{const n={popupName:this.generatePopupName(e.scopes||hk,e.authority||this.config.auth.authority),popupWindowAttributes:e.popupWindowAttributes||{},popupWindowParent:e.popupWindowParent??window};return this.config.system.asyncPopups?(this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(e,n)):(this.logger.verbose("asyncPopup set to false, opening popup before acquiring token"),n.popup=this.openSizedPopup("about:blank",n),this.acquireTokenPopupAsync(e,n))}catch(t){return Promise.reject(t)}}logout(e){try{this.logger.verbose("logoutPopup called");
63const t=this.initializeLogoutRequest(e),n={popupName:this.generateLogoutPopupName(t),popupWindowAttributes:(e==null?void 0:e.popupWindowAttributes)||{},popupWindowParent:(e==null?void 0:e.popupWindowParent)??window},i=e&&e.authority,o=e&&e.mainWindowRedirectUri;return this.config.system.asyncPopups?(this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(t,n,i,o)):(this.logger.verbose("asyncPopup set to false, opening popup"),n.popup=this.openSizedPopup("about:blank",n),this.logoutPopupAsync(t,n,i,o))}catch(t){return Promise.reject(t)}}async acquireTokenPopupAsync(e,t){var o;this.logger.verbose("acquireTokenPopupAsync called");const n=this.initializeServerTelemetryManager(ws.acquireTokenPopup),i=await Fr(this.initializeAuthorizationRequest.bind(this),Ht.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(e,Fn.Popup);kpe(i.authority);try{const a=await Fr(this.initializeAuthorizationCodeRequest.bind(this),Ht.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,this.correlationId)(i),l=await Fr(this.createAuthCodeClient.bind(this),Ht.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:n,requestAuthority:i.authority,requestAzureCloudOptions:i.azureCloudOptions,requestExtraQueryParameters:i.extraQueryParameters,account:i.account}),u=Xx.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme);let h;u&&(h=this.performanceClient.startMeasurement(Ht.FetchAccountIdWithNativeBroker,e.correlationId));const p=await l.getAuthCodeUrl({...i,nativeBroker:u}),m=new CK(l,this.browserStorage,a,this.logger,this.performanceClient),_=this.initiateAuthRequest(p,t);this.eventHandler.emitEvent(vn.POPUP_OPENED,Fn.Popup,{popupWindow:_},null);const C=await this.monitorPopupForHash(_,t.popupWindowParent),T=AS(Hpe,Ht.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(C,this.config.auth.OIDCOptions.serverResponseType,this.logger);if(zF.removeThrottle(this.browserStorage,this.config.auth.clientId,a),T.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),h&&h.end({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw mn(GD);const R=new wR(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ws.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,T.accountId,this.nativeStorage,i.correlationId),{userRequestState:O}=V1.parseRequestState(this.browserCrypto,i.state);return await R.acquireToken({...i,state:O,prompt:void 0})}return await m.handleCodeResponse(T,i)}catch(a){throw(o=t.popup)==null||o.close(),a instanceof Js&&(a.setCorrelationId(this.correlationId),n.cacheFailedRequest(a)),a}}async logoutPopupAsync(e,t,n,i){var a,l,u,h;this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(vn.LOGOUT_START,Fn.Popup,e);const o=this.initializeServerTelemetryManager(ws.logoutPopup);try{await this.clearCacheOnLogout(e.account);const p=await Fr(this.createAuthCodeClient.bind(this),Ht.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:o,requestAuthority:n,account:e.account||void 0});try{p.authority.endSessionEndpoint}catch{if((a=e.account)!=null&&a.homeAccountId&&e.postLogoutRedirectUri&&p.authority.protocolMode===j1.OIDC){if(this.browserStorage.removeAccount((l=e.account)==null?void 0:l.homeAccountId,this.correlationId),this.eventHandler.emitEvent(vn.LOGOUT_SUCCESS,Fn.Popup,e),i){const C={apiId:ws.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},T=Ma.getAbsoluteUrl(i,H1());await this.navigationClient.navigateInternal(T,C)}(u=t.popup)==null||u.close();return}}const m=p.getLogoutUri(e);this.eventHandler.emitEvent(vn.LOGOUT_SUCCESS,Fn.Popup,e);const _=this.openPopup(m,t);if(this.eventHandler.emitEvent(vn.POPUP_OPENED,Fn.Popup,{popupWindow:_},null),await this.monitorPopupForHash(_,t.popupWindowParent).catch(()=>{}),i){const C={apiId:ws.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},T=Ma.getAbsoluteUrl(i,H1());this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii(`Redirecting main window to: ${T}`),await this.navigationClient.navigateInternal(T,C)}else this.logger.verbose("No main window navigation requested")}catch(p){throw(h=t.popup)==null||h.close(),p instanceof Js&&(p.setCorrelationId(this.correlationId),o.cacheFailedRequest(p)),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(vn.LOGOUT_FAILURE,Fn.Popup,null,p),this.eventHandler.emitEvent(vn.LOGOUT_END,Fn.Popup),p}this.eventHandler.emitEvent(vn.LOGOUT_END,Fn.Popup)}initiateAuthRequest(e,t){if(e)return this.logger.infoPii(`Navigate to: ${e}`),this.openPopup(e,t);throw this.logger.error("Navigate url is empty"),mn(WB)}monitorPopupForHash(e,t){return new Promise((n,i)=>{this.logger.verbose("PopupHandler.monitorPopupForHash - polling started");const o=setInterval(()=>{if(e.closed){this.logger.error("PopupHandler.monitorPopupForHash - window closed"),clearInterval(o),i(mn(QT));return}let a="";try{a=e.location.href}catch{}if(!a||a==="about:blank")return;clearInterval(o);let l="";const u=this.config.auth.OIDCOptions.serverResponseType;e&&(u===qD.QUERY?l=e.location.search:l=e.location.hash),this.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),n(l)},this.config.system.pollIntervalMilliseconds)}).finally(()=>{this.cleanPopup(e,t)})}openPopup(e,t){try{let n;if(t.popup?(n=t.popup,this.logger.verbosePii(`Navigating popup window to: ${e}`),n.location.assign(e)):typeof t.popup>"u"&&(this.logger.verbosePii(`Opening popup window to: ${e}`),n=this.openSizedPopup(e,t)),!n)throw mn(Jfe);return n.focus&&n.focus(),this.currentWindow=n,t.popupWindowParent.addEventListener("beforeunload",this.unloadWindow),n}catch(n){throw this.logger.error("error opening popup "+n.message),this.browserStorage.setInteractionInProgress(!1),mn(Qfe)}}openSizedPopup(e,{popupName:t,popupWindowAttributes:n,popupWindowParent:i}){var C,T,S,R;const o=i.screenLeft?i.screenLeft:i.screenX,a=i.screenTop?i.screenTop:i.screenY,l=i.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,u=i.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;let h=(C=n.popupSize)==null?void 0:C.width,p=(T=n.popupSize)==null?void 0:T.height,m=(S=n.popupPosition)==null?void 0:S.top,_=(R=n.popupPosition)==null?void 0:R.left;return(!h||h<0||h>l)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),h=Kp.POPUP_WIDTH),(!p||p<0||p>u)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),p=Kp.POPUP_HEIGHT),(!m||m<0||m>u)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),m=Math.max(0,u/2-Kp.POPUP_HEIGHT/2+a)),(!_||_<0||_>l)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),_=Math.max(0,l/2-Kp.POPUP_WIDTH/2+o)),i.open(e,t,`width=${h}, height=${p}, top=${m}, left=${_}, scrollbars=yes`)}unloadWindow(e){this.browserStorage.cleanRequestByInteractionType(Fn.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()}cleanPopup(e,t){e.close(),t.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)}generatePopupName(e,t){return`${Kp.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${e.join("-")}.${t}.${this.correlationId}`}generateLogoutPopupName(e){const t=e.account&&e.account.homeAccountId;return`${Kp.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${t}.${this.correlationId}`}};/*! @azure/msal-browser v3.30.0 2025-08-05 */let hte=class{constructor(e,t,n,i,o){this.authModule=e,this.browserStorage=t,this.authCodeRequest=n,this.logger=i,this.performanceClient=o}async initiateAuthRequest(e,t){if(this.logger.verbose("RedirectHandler.initiateAuthRequest called"),e){t.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(ya.ORIGIN_URI,t.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(ya.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest
63(this.authCodeRequest),this.logger.infoPii(`RedirectHandler.initiateAuthRequest: Navigate to: ${e}`);const n={apiId:ws.acquireTokenRedirect,timeout:t.redirectTimeout,noHistory:!1};if(typeof t.onRedirectNavigate=="function")if(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),t.onRedirectNavigate(e)!==!1){this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),await t.navigationClient.navigateExternal(e,n);return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation");return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),await t.navigationClient.navigateExternal(e,n);return}}else throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),mn(WB)}async handleCodeResponse(e,t){this.logger.verbose("RedirectHandler.handleCodeResponse called"),this.browserStorage.setInteractionInProgress(!1);const n=this.browserStorage.generateStateKey(t),i=this.browserStorage.getTemporaryCache(n);if(!i)throw Sr(DF,"Cached State");let o;try{o=this.authModule.handleFragmentResponse(e,i)}catch(h){throw h instanceof xP&&h.subError===QT?mn(QT):h}const a=this.browserStorage.generateNonceKey(i),l=this.browserStorage.getTemporaryCache(a);if(this.authCodeRequest.code=o.code,o.cloud_instance_host_name&&await Fr(this.authModule.updateAuthority.bind(this.authModule),Ht.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,this.authCodeRequest.correlationId)(o.cloud_instance_host_name,this.authCodeRequest.correlationId),o.nonce=l||void 0,o.state=i,o.client_info)this.authCodeRequest.clientInfo=o.client_info;else{const h=this.checkCcsCredentials();h&&(this.authCodeRequest.ccsCredential=h)}const u=await this.authModule.acquireToken(this.authCodeRequest,o);return this.browserStorage.cleanRequestByState(t),u}checkCcsCredentials(){const e=this.browserStorage.getTemporaryCache(ya.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii(`Cache 
63credential could not be parsed: ${e}`)}return null}};/*! @azure/msal-browser v3.30.0 2025-08-05 */function tOe(){if(typeof window>"u"||typeof window.performance>"u"||typeof window.performance.getEntriesByType!="function")return;const r=window.performance.getEntriesByType("navigation"),e=r.length?r[0]:void 0;return e==null?void 0:e.type}let rOe=class extends pk{constructor(e,t,n,i,o,a,l,u,h,p){super(e,t,n,i,o,a,l,h,p),this.nativeStorage=u}async acquireToken(e){const t=await Fr(this.initializeAuthorizationRequest.bind(this),Ht.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(e,Fn.Redirect);this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||"",t.account||null);const n=this.initializeServerTelemetryManager(ws.acquireTokenRedirect),i=o=>{o.persisted&&(this.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),this.browserStorage.cleanRequestByState(t.state),this.eventHandler.emitEvent(vn.RESTORE_FROM_BFCACHE,Fn.Redirect))};try{const o=await Fr(this.initializeAuthorizationCodeRequest.bind(this),Ht.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,this.correlationId)(t),a=await Fr(this.createAuthCodeClient.bind(this),Ht.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:n,requestAuthority:t.authority,requestAzureCloudOptions:t.azureCloudOptions,requestExtraQueryParameters:t.extraQueryParameters,account:t.account}),l=new hte(a,this.browserStorage,o,this.logger,this.performanceClient),u=await a.getAuthCodeUrl({...t,nativeBroker:Xx.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}),h=this.getRedirectStartPage(e.redirectStartPage);return this.logger.verbosePii(`Redirect start page: ${h}`),window.addEventListener("pageshow",i),await l.initiateAuthRequest(u,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:h,onRedirectNavigate:e.onRedirectNavigate||this.config.auth.onRedirectNavigate})}catch(o){throw o instanceof Js&&(o.setCorrelationId(this.correlationId),n.cacheFailedRequest(o)),window.removeEventListener("pageshow",i),this.browserStorage.cleanRequestByState(t.state),o}}async handleRedirectPromise(e="",t){const n=this.initializeServerTelemetryManager(ws.handleRedirectPromise);try{if(!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const[i,o]=this.getRedirectResponse(e||"");if(!i)return this.logger.info("handleRedirectPromise did not detect a response as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(Fn.Redirect),tOe()!=="back_forward"?t.event.errorCode="no_server_response":this.logger.verbose("Back navigation event detected. Muting no_server_response error"),null;const a=this.browserStorage.getTemporaryCache(ya.ORIGIN_URI,!0)||er.EMPTY_STRING,l=Ma.removeHashFromUrl(a),u=Ma.removeHashFromUrl(window.location.href);if(l===u&&this.config.auth.navigateToLoginRequestUrl)return this.logger.verbose("Current page is loginRequestUrl, handling response"),a.indexOf("#")>-1&&l2e(a),await this.handleResponse(i,n);if(this.config.auth.navigateToLoginRequestUrl){if(!vK()||this.config.system.allowRedirectInIframe){this.browserStorage.setTemporaryCache(ya.URL_HASH,o,!0);const h={apiId:ws.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0};let p=!0;if(!a||a==="null"){const m=u2e();this.browserStorage.setTemporaryCache(ya.ORIGIN_URI,m,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),p=await this.navigationClient.navigateInternal(m,h)}else this.logger.verbose(`Navigating to loginRequestUrl: ${a}`),p=await this.navigationClient.navigateInternal(a,h);if(!p)return await this.handleResponse(i,n)}}else return this.logger.verbose("NavigateToLoginRequestUrl set to false, handling response"),await this.handleResponse(i,n);return null}catch(i){throw i instanceof Js&&(i.setCorrelationId(this.correlationId),n.cacheFailedRequest(i)),this.browserStorage.cleanRequestByInteractionType(Fn.Redirect),i}}getRedirectResponse(e){this.logger.verbose("getRedirectResponseHash called");let t=e;t||(this.config.auth.OIDCOptions.serverResponseType===qD.QUERY?t=window.location.search:t=window.location.hash);let n=UF(t);if(n){try{J2e(n,this.browserCrypto,Fn.Redirect)}catch(o){return o instanceof Js&&this.logger.error(`Interaction type validation failed due to ${o.errorCode}: ${o.errorMessage}`),[null,""]}return s2e(window),this.logger.verbose("Hash contains known properties, returning response hash"),[n,t]}const i=this.browserStorage.getTemporaryCache(ya.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ya.URL_HASH)),i&&(n=UF(i),n)?(this.logger.verbose("Hash does not contain known properties, returning c
63ached hash"),[n,i]):[null,""]}async handleResponse(e,t){const n=e.state;if(!n)throw mn(uK);const i=this.browserStorage.getCachedRequest(n);if(this.logger.verbose("handleResponse called, retrieved cached request"),e.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw mn(GD);const u=new wR(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ws.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,e.accountId,this.nativeStorage,i.correlationId),{userRequestState:h}=V1.parseRequestState(this.browserCrypto,n);return u.acquireToken({...i,state:h,prompt:void 0}).finally(()=>{this.browserStorage.cleanRequestByState(n)})}const o=this.browserStorage.getCachedAuthority(n);if(!o)throw mn(dK);const a=await Fr(this.createAuthCodeClient.bind(this),Ht.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:t,requestAuthority:o});return zF.removeThrottle(this.browserStorage,this.config.auth.clientId,i),new hte(a,this.browserStorage,i,this.logger,this.performanceClient).handleCodeResponse(e,n)}async logout(e){var i,o;this.logger.verbose("logoutRedirect called");const t=this.initializeLogoutRequest(e),n=this.initializeServerTelemetryManager(ws.logout);try{this.eventHandler.emitEvent(vn.LOGOUT_START,Fn.Redirect,e),await this.clearCacheOnLogout(t.account);const a={apiId:ws.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},l=await Fr(this.createAuthCodeClient.bind(this),Ht.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:n,requestAuthority:e&&e.authority,requestExtraQueryParameters:e==null?void 0:e.extraQueryParameters,account:e&&e.account||void 0});if(l.authority.protocolMode===j1.OIDC)try{l.authority.endSessionEndpoint}catch{if((i=t.account)!=null&&i.homeAccountId){this.browserStorage.removeAccount((o=t.account)==null?void 0:o.homeAccountId,this.correlationId),this.eventHandler.emitEvent(vn.LOGOUT_SUCCESS,Fn.Redirect,t);return}}const u=l.getLogoutUri(t);if(this.eventHandler.emitEvent(vn.LOGOUT_SUCCESS,Fn.Redirect,t),e&&typeof e.onRedirectNavigate=="function")if(e.onRedirectNavigate(u)!==!1){this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),await this.navigationClient.navigateExternal(u,a);return}else this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation");else{this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),await this.navigationClient.navigateExternal(u,a);return}}catch(a){throw a instanceof Js&&(a.setCorrelationId(this.correlationId),n.cacheFailedRequest(a)),this.eventHandler.emitEvent(vn.LOGOUT_FAILURE,Fn.Redirect,null,a),this.eventHandler.emitEvent(vn.LOGOUT_END,Fn.Redirect),a}this.eventHandler.emitEvent(vn.LOGOUT_END,Fn.Redirect)}getRedirectStartPage(e){const t=e||window.location.href;return Ma.getAbsoluteUrl(t,H1())}};/*! @azure/msal-browser v3.30.0 2025-08-05 */async function nOe(r,e,t,n,i){if(e.addQueueMeasurement(Ht.SilentHandlerInitiateAuthRequest,n),!r)throw t.info("Navigate url is empty"),mn(WB);return i?Fr(oOe,Ht.SilentHandlerLoadFrame,t,e,n)(r,i,e,n):AS(aOe,Ht.SilentHandlerLoadFrameSync,t,e,n)(r)}async function iOe(r,e,t,n,i,o,a){return n.addQueueMeasurement(Ht.SilentHandlerMonitorIframeForHash,o),new Promise((l,u)=>{e<OV&&i.warning(`system.loadFrameTimeout or system.iframeHashTimeout set to lower (${e}ms) than the default (${OV}ms). This may result in timeouts.`);const h=window.setTimeout(()=>{window.clearInterval(p),u(mn(epe))},e),p=window.setInterval(()=>{let m="";const _=r.contentWindow;try{m=_?_.location.href:""}catch{}if(!m||m==="about:blank")return;let C="";_&&(a===qD.QUERY?C=_.location.search:C=_.location.hash),window.clearTimeout(h),window.clearInterval(p),l(C)},t)}).finally(()=>{AS(sOe,Ht.RemoveHiddenIframe,i,n,o)(r)})}function oOe(r,e,t,n){return t.addQueueMeasurement(Ht.SilentHandlerLoadFrame,n),new Promise((i,o)=>{const a=Fpe();window.setTimeout(()=>{if(!a){o("Unable to load iframe");return}a.src=r,i(a)},e)})}function aOe(r){const e=Fpe();return e.src=r,e}function Fpe(){const r=document.createElement("iframe");return r.className="msalSilentIframe",r.style.visibility="hidden",r.style.position="absolute",r.style.width=r.style.height="0",r.style.border="0",r.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.body.appendChild(r),r}function sOe(r){document.body===r.parentNode&&document.body.removeChild(r)}
63/*! @azure/msal-browser v3.30.0 2025-08-05 */let lOe=class extends pk{constructor(e,t,n,i,o,a,l,u,h,p,m){super(e,t,n,i,o,a,u,p,m),this.apiId=l,this.nativeStorage=h}async acquireToken(e){this.performanceClient.addQueueMeasurement(Ht.SilentIframeClientAcquireToken,e.correlationId),!e.loginHint&&!e.sid&&(!e.account||!e.account.username)&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request.");const t={...e};t.prompt?t.prompt!==bu.NONE&&t.prompt!==bu.NO_SESSION&&(this.logger.warning(`SilentIframeClient. Replacing invalid prompt ${t.prompt} with ${bu.NONE}`),t.prompt=bu.NONE):t.prompt=bu.NONE;const n=await Fr(this.initializeAuthorizationRequest.bind(this),Ht.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(t,Fn.Silent);kpe(n.authority);const i=this.initializeServerTelemetryManager(this.apiId);let o;try{return o=await Fr(this.createAuthCodeClient.bind(this),Ht.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,e.correlationId)({serverTelemetryManager:i,requestAuthority:n.authority,requestAzureCloudOptions:n.azureCloudOptions,requestExtraQueryParameters:n.extraQueryParameters,account:n.account}),await Fr(this.silentTokenHelper.bind(this),Ht.SilentIframeClientTokenHelper,this.logger,this.performanceClient,e.correlationId)(o,n)}catch(a){if(a instanceof Js&&(a.setCorrelationId(this.correlationId),i.cacheFailedRequest(a)),!o||!(a instanceof Js)||a.errorCode!==Kp.INVALID_GRANT_ERROR)throw a;this.performanceClient.addFields({retryError:a.errorCode},this.correlationId);const l=await Fr(this.initializeAuthorizationRequest.bind(this),Ht.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(t,Fn.Silent);return await Fr(this.silentTokenHelper.bind(this),Ht.SilentIframeClientTokenHelper,this.logger,this.performanceClient,this.correlationId)(o,l)}}logout(){return Promise.reject(mn(KB))}async silentTokenHelper(e,t){const n=t.correlationId;this.performanceClient.addQueueMeasurement(Ht.SilentIframeClientTokenHelper,n);const i=await Fr(this.initializeAuthorizationCodeRequest.bind(this),Ht.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,n)(t),o=await Fr(e.getAuthCodeUrl.bind(e),Ht.GetAuthCodeUrl,this.logger,this.performanceClient,n)({...t,nativeBroker:Xx.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}),a=new CK(e,this.browserStorage,i,this.logger,this.performanceClient),l=await Fr(nOe,Ht.SilentHandlerInitiateAuthRequest,this.logger,this.performanceClient,n)(o,this.performanceClient,this.logger,n,this.config.system.navigateFrameWait),u=this.config.auth.OIDCOptions.serverResponseType,h=await Fr(iOe,Ht.SilentHandlerMonitorIframeForHash,this.logger,this.performanceClient,n)(l,this.config.system.iframeHashTimeout,this.config.system.pollIntervalMilliseconds,this.performanceClient,this.logger,n,u),p=AS(Hpe,Ht.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(h,u,this.logger);if(p.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw mn(GD);const m=new wR(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,p.accountId,this.browserStorage,n),{userRequestState:_}=V1.parseRequestState(this.browserCrypto,t.state);return Fr(m.acquireToken.bind(m),Ht.NativeInteractionClientAcquireToken,this.logger,this.performanceClient,n)({...t,state:_,prompt:t.prompt||bu.NONE})}return Fr(a.handleCodeResponse.bind(a),Ht.HandleCodeResponse,this.logger,this.performanceClient,n)(p,t)}};/*! @azure/msal-browser v3.30.0 2025-08-05 */let cOe=class extends pk{async acquireToken(e){this.performanceClient.addQueueMeasurement(Ht.SilentRefreshClientAcquireToken,e.correlationId);const t=await Fr(EK,Ht.InitializeBaseRequest,this.logger,this.performanceClient,e.correlationId)(e,this.config,this.performanceClient,this.logger),n={...e,...t};e.redirectUri&&(n.redirectUri=this.getRedirectUri(e.redirectUri));const i=this.initializeServerTelemetryManager(ws.acquireTokenSilent_silentFlow),o=await this.createRefreshTokenClient({serverTelemetryManager:i,authorityUrl:n.authority,azureCloudOptions:n.azureCloudOptions,account:n.account});return Fr(o.acquireTokenByRefreshToken.bind(o),Ht.RefreshTokenClientAcquireTokenByRefreshToken,this.logger,this.performanceClient,e.correlationId)(n).catch(a=>{throw a.setCorrelationId(this.correlationId),i.cacheFailedRequest(a),a})}logout(){return Promise.reject(mn(KB))}async createRefreshTokenClient(e){const t=await Fr(this.getClientConfiguration.bind(this),Ht.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:e.serverTelemetryManager,requestAuthority:e.authorityUrl,requestAzureCloudOptions:e.azureCloudOptions,requestExtraQueryParameters:e.extraQueryParameters,account:e.account});return new SV(t,this.performanceClient)}};/*! @azure/msal-browser v3.30.0 2025-08-05 */let uOe=class{constructor(e,t,n,i){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=t,this.logger=n,this.cryptoObj=i}loadExternalTokens(e,t,n){if(!this.isBrowserEnvironment)throw mn(ZB);const i=e.correlationId||u_(),o=t.id_token?IS(t.id_token,J0):void 0,a={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},l=e.authority?new CP(CP.generateAuthority(e.authority,e.azureCloudOptions),this.config.system.networkClient,this.storage,a,this.logger,e.correlationId||u_()):void 0,u=this.loadAccount(e,n.clientInfo||t.client_info||"",i,o,l),h=this.loadIdToken(t,u.homeAccountId,u.environment,u.realm,i),p=this.loadAccessToken(e,t,u.homeAccountId,u.environment,u.realm,n,i),m=this.loadRefreshToken(t,u.homeAccountId,u.environment,i);return this.generateAuthenticationResult(e,{account:u,idToken:h,accessToken:p,refreshToken:m},o,l)}loadAccount(e,t,n,i,o){if(this.logger.verbose("TokenCache - loading account"),e.account){const h=zh.createFromAccountInfo(e.account);return this.storage.setAccount(h,n),h}else if(!o||!t&&!i)throw this.logger.error("TokenCache - if an account is not provided on the request, authority and either clientInfo or idToken must be provided instead."),mn(cpe);const a=zh.generateHomeAccountId(t,o.authorityType,this.logger,this.cryptoObj,i),l=i==null?void 0:i.tid,u=lK(this.storage,o,a,J0,n,i,t,o.hostnameAndPort,l,void 0,void 0,this.logger);return this.storage.setAccount(u,n),u}loadIdToken(e,t,n,i,o){if(!e.id_token)return this.logger.verbose("TokenCache - no id token found in response"),null;this.logger.verbose("TokenCache - loading id token");const a=jB(t,n,e.id_token,this.config.auth.clientId,i);return this.storage.setIdTokenCredential(a,o),a}loadAccessToken(e,t,n,i,o,a,l){if(t.access_token)if(t.expires_in){if(!t.scope&&(!e.scopes||!e.scopes.length))return this.logger.error("TokenCache - scopes not specified in the request or response. Cannot add token to the cache."),null}else return this.logger.error("TokenCache - no expiration set on the access token. Cannot add it to the cache."),null;else return this.logger.verbose("TokenCache - no access token found in response"),null;this.logger.verbose("TokenCache - loading access token");const u=t.scope?ed.fromString(t.scope):new ed(e.scopes),h=a.expiresOn||t.expires_in+new Date().getTime()/1e3,p=a.extendedExpiresOn||(t.ext_expires_in||t.expires_in)+new Date().getTime()/1e3,m=VB(n,i,t.access_token,this.config.auth.clientId,o,u.printScopes(),h,p,J0);return this.storage.setAccessTokenCredential(m,l),m}loadRefreshToken(e,t,n,i){if(!e.refresh_token)return this.logger.verbose("TokenCache - no refresh token found in response"),null;this.logger.verbose("TokenCache - loading refresh token");const o=sfe(t,n,e.refresh_token,this.config.auth.clientId,e.foci,void 0,e.refresh_token_expires_in);return this.storage.setRefreshTokenCredential(o,i),o}generateAuthenticationResult(e,t,n,i){var p,m,_;let o="",a=[],l=null,u;t!=null&&t.accessToken&&(o=t.accessToken.secret,a=ed.fromString(t.accessToken.target).asArray(),l=new Date(Number(t.accessToken.expiresOn)*1e3),u=new Date(Number(t.accessToken.extendedExpiresOn)*1e3));const h=t.account;return{authority:i?i.canonicalAuthority:"",uniqueId:t.account.localAccountId,tenantId:t.account.realm,scopes:a,account:h.getAccountInfo(),idToken:((p=t.idToken)==null?void 0:p.secret)||"",idTokenClaims:n||{},accessToken:o,fromCache:!0,expiresOn:l,correlationId:e.correlationId||"",requestId:"",extExpiresOn:u,familyId:((m=t.refreshToken)==null?void 0:m.familyId)||"",tokenType:((_=t==null?void 0:t.accessToken)==null?void 0:_.tokenType)||"",state:e.state||"",cloudGraphHostName:h.cloudGraphHostName||"",msGraphHost:h.msGraphHost||"",fromNativeBroker:!1}}};/*! @azure/msal-browser v3.30.0 2025-08-05 */let dOe=class extends Bfe{constructor(e){super(e),this.includeRedirectUri=!1}};/*! @azure/msal-browser v3.30.0 2025-08-05 */let hOe=class extends pk{constructor(e,t,n,i,o,a,l,u,h,p){super(e,t,n,i,o,a,u,h,p),this.apiId=l}async acquireToken(e){if(!e.code)throw mn(upe);const t=await Fr(this.initializeAuthorizationRequest.bind(this),Ht.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(e,Fn.Silent),n=this.initializeServerTelemetryManager(this.apiId);try{const i={...t,code:e.code},o=await Fr(this.getClientConfiguration.bind(this),Ht.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,e.correlationId)({serverTelemetryManager:n,requestAuthority:t.authority,requestAzureCloudOptions:t.azureCloudOptions,requestExtraQueryParameters:t.extraQueryParameters,account:t.account}),a=new dOe(o);this.logger.verbose("Auth code client created");const l=new CK(a,this.browserStorage,i,this.logger,this.performanceClient);return await Fr(l.handleCodeResponseFromServer.bind(l),Ht.HandleCodeResponseFromServer,this.logger,this.performanceClient,e.correlationId)({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},t,!1)}catch(i){throw i instanceof Js&&(i.setCorrelationId(this.correlationId),n.cacheFailedRequest(i)),i}}logout(){return Promise.reject(mn(KB))}};/*! @azure/msal-browser v3.30.0 2025-08-05 */function w0(r){const e=r==null?void 0:r.idTokenClaims;if(e!=null&&e.tfp||e!=null&&e.acr)return"B2C";
63if(e!=null&&e.tid){if((e==null?void 0:e.tid)==="9188040d-6c67-4c5b-b112-36a304b66dad")return"MSA"}else return;return"AAD"}function v4(r,e){try{_K(r)}catch(t){throw e.end({success:!1},t),t}}class JB{constructor(e){this.operatingContext=e,this.isBrowserEnvironment=this.operatingContext.isBrowserEnvironment(),this.config=e.getConfig(),this.initialized=!1,this.logger=this.operatingContext.getLogger(),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.config.telemetry.client,this.browserCrypto=this.isBrowserEnvironment?new wK(this.logger,this.performanceClient):LF,this.eventHandler=new F2e(this.logger),this.browserStorage=this.isBrowserEnvironment?new DV(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,wke(this.config.auth),this.performanceClient):P2e(this.config.auth.clientId,this.logger);const t={cacheLocation:jf.MemoryStorage,temporaryCacheLocation:jf.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};this.nativeInternalStorage=new DV(this.config.auth.clientId,t,this.browserCrypto,this.logger,void 0,this.performanceClient),this.tokenCache=new uOe(this.config,this.browserStorage,this.logger,this.browserCrypto),this.activeSilentTokenRequests=new Map,this.trackPageVisibility=this.trackPageVisibility.bind(this),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this),this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}static async createController(e,t){const n=new JB(e);return await n.initialize(t),n}trackPageVisibility(e){e&&(this.logger.info("Perf: Visibility change detected"),this.performanceClient.incrementFields({visibilityChangeCount:1},e))}async initialize(e){if(this.logger.trace("initialize called"),this.initialized){this.logger.info("initialize has already been called, exiting early.");return}if(!this.isBrowserEnvironment){this.logger.info("in non-browser environment, exiting early."),this.initialized=!0,this.eventHandler.emitEvent(vn.INITIALIZE_END);return}const t=(e==null?void 0:e.correlationId)||this.getRequestCorrelationId(),n=this.config.system.allowNativeBroker,i=this.performanceClient.startMeasurement(Ht.InitializeClientApplication,t);if(this.eventHandler.emitEvent(vn.INITIALIZE_START),n)try{this.nativeExtensionProvider=await Xx.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)}catch(o){this.logger.verbose(o)}this.config.cache.claimsBasedCachingEnabled||(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),await Fr(this.browserStorage.clearTokensAndKeysWithClaims.bind(this.browserStorage),Ht.ClearTokensAndKeysWithClaims,this.logger,this.performanceClient,t)(this.performanceClient,t)),this.initialized=!0,this.eventHandler.emitEvent(vn.INITIALIZE_END),i.end({allowNativeBroker:n,success:!0})}async handleRedirectPromise(e){if(this.logger.verbose("handleRedirectPromise called"),Ppe(this.initialized),this.isBrowserEnvironment){const t=e||"";let n=this.redirectResponse.get(t);return typeof n>"u"?(n=this.handleRedirectPromiseInternal(e),this.redirectResponse.set(t,n),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise")):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),n}return this.logger.verbose("handleRedirectPromise returns null, not browser environment"),null}async handleRedirectPromiseInternal(e){const t=this.getAllAccounts(),n=this.browserStorage.getCachedNativeRequest(),i=n&&Xx.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e,o=i?n==null?void 0:n.correlationId:this.browserStorage.getTemporaryCache(ya.CORRELATION_ID,!0)||"",a=this.performanceClient.startMeasurement(Ht.AcquireTokenRedirect,o);this.eventHandler.emitEvent(vn.HANDLE_REDIRECT_START,Fn.Redirect);let l;if(i&&this.nativeExtensionProvider){this.logger.trace("handleRedirectPromise - acquiring token from native platform");const u=new wR(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ws.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,n.accountId,this.nativeInternalStorage,n.correlationId);l=Fr(u.handleRedirectPromise.bind(u),Ht.HandleNativeRedirectPromiseMeasurement,this.logger,this.performanceClient,a.event.correlationId)(this.performanceClient,a.event.correlationId)}else{this.logger.trace("handleRedirectPromise - acquiring token from web flow");const u=this.createRedirectClient(o);l=Fr(u.handleRedirectPromise.bind(u),Ht.HandleRedirectPromiseMeasurement,this.logger,this.performanceClient,a.event.correlationId)(e,a)}return l.then(u=>(u?(t.length<this.getAllAccounts().length?(this.eventHandler.emitEvent(vn.LOGIN_SUCCESS,Fn.Redirect,u),this.logger.verbose("handleRedirectResponse returned result, login success")):(this.eventHandler.emitEvent(vn.ACQUIRE_TOKEN_SUCCESS,Fn.Redirect,u),this.logger.verbose("handleRedirectResponse returned result, acquire token success")),a.end({success:!0,accountType:w0(u.account)})):a.event.errorCode?a.end({success:!1}):a.discard(),this.eventHandler.emitEvent(vn.HANDLE_REDIRECT_END,Fn.Redirect),u)).catch(u=>{const h=u;throw t.length>0?this.eventHandler.emitEvent(vn.ACQUIRE_TOKEN_FAILURE,Fn.Redirect,null,h):this.eventHandler.emitEvent(vn.LOGIN_FAILURE,Fn.Redirect,null,h),this.eventHandler.emitEvent(vn.HANDLE_REDIRECT_END,Fn.Redirect),a.end({success:!1},h),u})}async acquireTokenRedirect(e){const t=this.getRequestCorrelationId(e);this.logger.verbose("acquireTokenRedirect called",t);const n=this.performanceClient.startMeasurement(Ht.AcquireTokenPreRedirect,t);n.add({accountType:w0(e.account),scenarioId:e.scenarioId});const i=e.onRedirectNavigate;if(i)e.onRedirectNavigate=a=>{const l=typeof i=="function"?i(a):void 0;return l!==!1?n.end({success:!0}):n.discard(),l};else{const a=this.config.auth.onRedirectNavigate;this.config.auth.onRedirectNavigate=l=>{const u=typeof a=="function"?a(l):void 0;return u!==!1?n.end({success:!0}):n.discard(),u}}const o=this.getAllAccounts().length>0;try{lte(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0),o?this.eventHandler.emitEvent(vn.ACQUIRE_TOKEN_START,Fn.Redirect,e):this.eventHandler.emitEvent(vn.LOGIN_START,Fn.Redirect,e);let a;return this.nativeExtensionProvider&&this.canUseNative(e)?a=new wR(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ws.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,t).acquireTokenRedirect(e,n).catch(u=>{if(u instanceof Gw&&fA(u))return this.nativeExtensionProvider=void 0,this.createRedirectClient(t).acquireToken(e);if(u instanceof lb)return this.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createRedirectClient(t).acquireToken(e);throw this.browserStorage.setInteractionInProgress(!1),u}):a=this.createRedirectClient(t).acquireToken(e),await a}catch(a){throw n.end({success:!1},a),o?this.eventHandler.emitEvent(vn.ACQUIRE_TOKEN_FAILURE,Fn.Redirect,null,a):this.eventHandler.emitEvent(vn.LOGIN_FAILURE,Fn.Redirect,null,a),a}}acquireTokenPopup(e){const t=this.getRequestCorrelationId(e),n=this.performanceClient.startMeasurement(Ht.AcquireTokenPopup,t);n.add({scenarioId:e.scenarioId,accountType:w0(e.account)});try{this.logger.verbose("acquireTokenPopup called",t),v4(this.initialized,n),this.browserStorage.setInteractionInProgress(!0)}catch(a){return Promise.reject(a)}const i=this.getAllAccounts();i.length>0?this.eventHandler.emitEvent(vn.ACQUIRE_TOKEN_START,Fn.Popup,e):this.eventHandler.emitEvent(vn.LOGIN_START,Fn.Popup,e);let o;return this.canUseNative(e)?o=this.acquireTokenNative({...e,correlationId:t},ws.acquireTokenPopup).then(a=>(this.browserStorage.setInteractionInProgress(!1),n.end({success:!0,isNativeBroker:!0,accountType:w0(a.account)}),a)).catch(a=>{if(a instanceof Gw&&fA(a))return this.nativeExtensionProvider=void 0,this.createPopupClient(t).acquireToken(e);if(a instanceof lb)return this.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createPopupClient(t).acquireToken(e);throw this.browserStorage.setInteractionInProgress(!1),a}):o=this.createPopupClient(t).acquireToken(e),o.then(a=>(i.length<this.getAllAccounts().length?this.eventHandler.emitEvent(vn.LOGIN_SUCCESS,Fn.Popup,a):this.eventHandler.emitEvent(vn.ACQUIRE_TOKEN_SUCCESS,Fn.Popup,a),n.end({success:!0,accessTokenSize:a.accessToken.length,idTokenSize:a.idToken.length,accountType:w0(a.account)}),a)).catch(a=>(i.length>0?this.eventHandler.emitEvent(vn.ACQUIRE_TOKEN_FAILURE,Fn.Popup,null,a):this.eventHandler.emitEvent(vn.LOGIN_FAILURE,Fn.Popup,null,a),n.end({success:!1},a),Promise.reject(a)))}trackPageVisibilityWithMeasurement(){const e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))}async ssoSilent(e){var o,a;const t=this.getRequestCorrelationId(e),n={...e,prompt:e.prompt,correlationId:t};this.ssoSilentMeasurement=this.performanceClient.startMeasurement(Ht.SsoSilent,t),(o=this.ssoSilentMeasurement)==null||o.add({scenarioId:e.scenarioId,accountType:w0(e.account)}),v4(this.initialized,this.ssoSilentMeasurement),(a=this.ssoSilentMeasurement)==null||a.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",t),this.eventHandler.emitEvent(vn.SSO_SILENT_START,Fn.Silent,n);let i;return this.canUseNative(n)?i=this.acquireTokenNative(n,ws.ssoSilent).catch(l=>{if(l instanceof Gw&&fA(l))return this.nativeExtensionProvider=void 0,this.createSilentIframeClient(n.correlationId).acquireToken(n);throw l}):i=this.createSilentIframeClient(n.correlationId).acquireToken(n),i.then(l=>{var u;return this.eventHandler.emitEvent(vn.SSO_SILENT_SUCCESS,Fn.Silent,l),(u=this.ssoSilentMeasurement)==null||u.end({success:!0,isNativeBroker:l.fromNativeBroker,accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length,accountType:w0(l.account)}),l}).catch(l=>{var u;throw this.eventHandler.emitEvent(vn.SSO_SILENT_FAILURE,Fn.Silent,null,l),(u=this.ssoSilentMeasurement)==null||u.end({success:!1},l),l}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenByCode(e){const t=this.getRequestCorrelationId(e);this.logger.trace("acquireTokenByCode called",t);const n=this.performanceClient.startMeasurement(Ht.AcquireTokenByCode,t);v4(this.initialized,n),this.eventHandler.emitEvent(vn.ACQUIRE_TOKEN_BY_CODE_START,Fn.Silent,e),n.add({scenarioId:e.scenarioId});try{if(e.code&&e.nativeAccountId)throw mn(hpe);if(e.code){const i=e.code;let o=this.hybridAuthCodeResponses.get(i);return o?(this.logger.verbose("Existing acquireTokenByCode request found",t),n.discard()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),o=this.acquireTokenByCodeAsync({...e,correlationId:t}).then(a=>(this.eventHandler.emitEvent(vn.ACQUIRE_TOKEN_BY_CODE_SUCCESS,Fn.Silent,a),this.hybridAuthCodeResponses.delete(i),n.end({success:!0,isNativeBroker:a.fromNativeBroker,accessTokenSize:a.accessToken.length,idTokenSize:a.idToken.length,accountType:w0(a.account)}),a)).catch(a=>{throw this.hybridAuthCodeResponses.delete(i),this.eventHandler.emitEvent(vn.ACQUIRE_TOKEN_BY_CODE_FAILURE,Fn.Silent,null,a),n.end({success:!1},a),a}),this.hybridAuthCodeResponses.set(i,o)),await o}else if(e.nativeAccountId)if(this.canUseNative(e,e.nativeAccountId)){const i=await this.acquireTokenNative({...e,correlationId:t},ws.acquireTokenByCode,e.nativeAccountId).catch(o=>{throw o instanceof Gw&&fA(o)&&(this.nativeExtensionProvider=void 0),o});return n.end({accountType:w0(i.account),success:!0}),i}else throw mn(fpe);else throw mn(dpe)}catch(i){throw this.eventHandler.emitEvent(vn.ACQUIRE_TOKEN_BY_CODE_FAILURE,Fn.Silent,null,i),n.end({success:!1},i),i}}async acquireTokenByCodeAsync(e){var i;return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(Ht.AcquireTokenByCodeAsync,e.correlationId),(i=this.acquireTokenByCodeAsyncMeasurement)==null||i.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),await this.createSilentAuthCodeClient(e.correlationId).acquireToken(e).then(o=>{var a;return(a=this.acquireTokenByCodeAsyncMeasurement)==null||a.end({success:!0,fromCache:o.fromCache,isNativeBroker:o.fromNativeBroker}),o}).catch(o=>{var a;throw(a=this.acquireTokenByCodeAsyncMeasurement)==null||a.end({success:!1},o),o}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenFromCache(e,t){switch(this.performanceClient.addQueueMeasurement(Ht.AcquireTokenFromCache,e.correlationId),t){case zp.Default:case zp.AccessToken:case zp.AccessTokenAndRefreshToken:const n=this.createSilentCacheClient(e.correlationId);return Fr(n.acquireToken.bind(n),Ht.SilentCacheClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e);default:throw Sr(L1)}}async acquireTokenByRefreshToken(e,t){switch(this.performanceClient.addQueueMeasurement(Ht.AcquireTokenByRefreshToken,e.correlationId),t){case zp.Default:case zp.AccessTokenAndRefreshToken:case zp.RefreshToken:case zp.RefreshTokenAndNetwork:const n=this.createSilentRefreshClient(e.correlationId);return Fr(n.acquireToken.bind(n),Ht.SilentRefreshClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e);default:throw Sr(L1)}}async acquireTokenBySilentIframe(e){this.performanceClient.addQueueMeasurement(Ht.AcquireTokenBySilentIframe,e.correlationId);const t=this.createSilentIframeClient(e.correlationId);return Fr(t.acquireToken.bind(t),Ht.SilentIframeClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e)}async logout(e){const t=this.getRequestCorrelationId(e);return this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",t),this.logoutRedirect({correlationId:t,...e})}async logoutRedirect(e){const t=this.getRequestCorrelationId(e);return lte(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0),this.createRedirectClient(t).logout(e)}logoutPopup(e){try{const t=this.getRequestCorrelationId(e);return _K(this.initialized),this.browserStorage.setInteractionInProgress(!0),this.createPopupClient(t).logout(e)}catch(t){return Promise.reject(t)}}async clearCache(e){if(!this.isBrowserEnvironment){this.logger.info("in non-browser environment, returning early.");return}const t=this.getRequestCorrelationId(e);return this.createSilentCacheClient(t).logout(e)}getAllAccounts(e){const t=this.getRequestCorrelationId();return k2e(this.logger,this.browserStorage,this.isBrowserEnvironment,t,e)}getAccount(e){const t=this.getRequestCorrelationId();return O2e(e,this.logger,this.browserStorage,t)}getAccountByUsername(e){const t=this.getRequestCorrelationId();return M2e(e,this.logger,this.browserStorage,t)}getAccountByHomeId(e){const t=this.getRequestCorrelationId();return N2e(e,this.logger,this.browserStorage,t)}getAccountByLocalId(e){const t=this.getRequestCorrelationId();return D2e(e,this.logger,this.browserStorage,t)}setActiveAccount(e){const t=this.getRequestCorrelationId();L2e(e,this.browserStorage,t)}getActiveAccount(){const e=this.getRequestCorrelationId();return H2e(this.browserStorage,e)}async hydrateCache(e,t){this.logger.verbose("hydrateCache called");const n=zh.createFromAccountInfo(e.account,e.cloudGraphHostName,e.msGraphHost);return this.browserStorage.setAccount(n,e.correlationId),e.fromNativeBroker?(this.logger.verbose("Response was from native broker, storing in-memory"),this.nativeInternalStorage.hydrateCache(e,t)):this.browserStorage.hydrateCache(e,t)}async acquireTokenNative(e,t,n){if(this.logger.t
63race("acquireTokenNative called"),!this.nativeExtensionProvider)throw mn(GD);return new wR(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,n||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId).acquireToken(e)}canUseNative(e,t){if(this.logger.trace("canUseNative called"),!Xx.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case bu.NONE:case bu.CONSENT:case bu.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace(`canUseNative: prompt = ${e.prompt} is not compatible with native flow, returning false`),!1}return!t&&!this.getNativeAccountId(e)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0}getNativeAccountId(e){const t=e.account||this.getAccount({loginHint:e.loginHint,sid:e.sid})||this.getActiveAccount();return t&&t.nativeAccountId||""}createPopupClient(e){return new eOe(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createRedirectClient(e){return new rOe(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentIframeClient(e){return new lOe(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ws.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentCacheClient(e){return new Lpe(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentRefreshClient(e){return new cOe(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentAuthCodeClient(e){return new hOe(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ws.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)}addEventCallback(e,t){return this.eventHandler.addEventCallback(e,t)}removeEventCallback(e){this.eventHandler.removeEventCallback(e)}addPerformanceCallback(e){return Rpe(),this.performanceClient.addPerformanceCallback(e)}removePerformanceCallback(e){return this.performanceClient.removePerformanceCallback(e)}enableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))}disableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))}handleAccountCacheChange(e){var t;try{(t=e.key)!=null&&t.includes(pu.ACTIVE_ACCOUNT_FILTERS)&&this.eventHandler.emitEvent(vn.ACTIVE_ACCOUNT_CHANGED);const n=e.newValue||e.oldValue;if(!n)return;const i=JSON.parse(n);if(typeof i!="object"||!zh.isAccountEntity(i))return;const a=$F.toObject(new zh,i).getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.eventHandler.emitEvent(vn.ACCOUNT_ADDED,void 0,a)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.eventHandler.emitEvent(vn.ACCOUNT_REMOVED,void 0,a))}catch{return}}getTokenCache(){return this.tokenCache}getLogger(){return this.logger}setLogger(e){this.logger=e}initializeWrapperLibrary(e,t){this.browserStorage.setWrapperMetadata(e,t)}setNavigationClient(e){this.navigationClient=e}getConfiguration(){return this.config}getPerformanceClient(){return this.performanceClient}isBrowserEnv(){return this.isBrowserEnvironment}getRequestCorrelationId(e){return e!=null&&e.correlationId?e.correlationId:this.isBrowserEnvironment?u_():er.EMPTY_STRING}async loginRedirect(e){const t=this.getRequestCorrelationId(e);return this.logger.verbose("loginRedirect called",t),this.acquireTokenRedirect({correlationId:t,...e||ote})}loginPopup(e){const t=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",t),this.acquireTokenPopup({correlationId:t,...e||ote})}async acquireTokenSilent(e){const t=this.getRequestCorrelationId(e),n=this.performanceClient.startMeasurement(Ht.AcquireTokenSilent,t);n.add({cacheLookupPolicy:e.cacheLookupPolicy,scenarioId:e.scenarioId}),v4(this.initialized,n),this.logger.verbose("acquireTokenSilent called",t);const i=e.account||this.getActiveAccount();if(!i)throw mn(ipe);n.add({accountType:w0(i)});const o={clientId:this.config.auth.clientId,authority:e.authority||er.EMPTY_STRING,scopes:e.scopes,homeAccountIdentifier:i.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid,shrOptions:e.shrOptions},a=JSON.stringify(o),l=this.activeSilentTokenRequests.get(a);if(typeof l>"u"){this.logger.verbose("acquireTokenSilent called for the first time, storing active request",t);const u=Fr(this.acquireTokenSilentAsync.bind(this),Ht.AcquireTokenSilentAsync,this.logger,this.performanceClient,t)({...e,correlationId:t},i).then(h=>(this.activeSilentTokenRequests.delete(a),n.end({success:!0,fromCache:h.fromCache,isNativeBroker:h.fromNativeBroker,cacheLookupPolicy:e.cacheLookupPolicy,accessTokenSize:h.accessToken.length,idTokenSize:h.idToken.length}),h)).catch(h=>{throw this.activeSilentTokenRequests.delete(a),n.end({success:!1},h),h});return this.activeSilentTokenRequests.set(a,u),{...await u,state:e.state}}else return this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",t),n.discard(),{...await l,state:e.state}}async acquireTokenSilentAsync(e,t){const n=()=>this.trackPageVisibility(e.correlationId);this.performanceClient.addQueueMeasurement(Ht.AcquireTokenSilentAsync,e.correlationId),this.eventHandler.emitEvent(vn.ACQUIRE_TOKEN_START,Fn.Silent,e),e.correlationId&&this.performanceClient.incrementFields({visibilityChangeCount:0},e.correlationId),document.addEventListener("visibilitychange",n);const i=await Fr(j2e,Ht.InitializeSilentRequest,this.logger,this.performanceClient,e.correlationId)(e,t,this.config,this.performanceClient,this.logger),o=e.cacheLookupPolicy||zp.Default;return this.acquireTokenSilentNoIframe(i,o).catch(async l=>{if(fOe(l,o))if(this.activeIframeRequest)if(o!==zp.Skip){const[h,p]=this.activeIframeRequest;this.logger.verbose(`Iframe request is already in progress, awaiting resolution for request with correlationId: ${p}`,i.correlationId);const m=this.performanceClient.startMeasurement(Ht.AwaitConcurrentIframe,i.correlationId);m.add({awaitIframeCorrelationId:p});const _=await h;if(m.end({success:_}),_)return this.logger.verbose(`Parallel iframe request with correlationId: ${p}
63 succeeded. Retrying cache and/or RT redemption`,i.correlationId),this.acquireTokenSilentNoIframe(i,o);throw this.logger.info(`Iframe request with correlationId: ${p} failed. Interaction is required.`),l}else return this.logger.warning("Another iframe request is currently in progress and CacheLookupPolicy is set to Skip. This may result in degraded performance and/or reliability for both calls. Please consider changing the CacheLookupPolicy to take advantage of request queuing and token cache.",i.correlationId),Fr(this.acquireTokenBySilentIframe.bind(this),Ht.AcquireTokenBySilentIframe,this.logger,this.performanceClient,i.correlationId)(i);else{let h;return this.activeIframeRequest=[new Promise(p=>{h=p}),i.correlationId],this.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",i.correlationId),Fr(this.acquireTokenBySilentIframe.bind(this),Ht.AcquireTokenBySilentIframe,this.logger,this.performanceClient,i.correlationId)(i).then(p=>(h(!0),p)).catch(p=>{throw h(!1),p}).finally(()=>{this.activeIframeRequest=void 0})}else throw l}).then(l=>(this.eventHandler.emitEvent(vn.ACQUIRE_TOKEN_SUCCESS,Fn.Silent,l),e.correlationId&&this.performanceClient.addFields({fromCache:l.fromCache,isNativeBroker:l.fromNativeBroker},e.correlationId),l)).catch(l=>{throw this.eventHandler.emitEvent(vn.ACQUIRE_TOKEN_FAILURE,Fn.Silent,null,l),l}).finally(()=>{document.removeEventListener("visibilitychange",n)})}async acquireTokenSilentNoIframe(e,t){return Xx.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&e.account.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),this.acquireTokenNative(e,ws.acquireTokenSilent_silentFlow).catch(async n=>{throw n instanceof Gw&&fA(n)?(this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,Sr(L1)):n})):(this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),Fr(this.acquireTokenFromCache.bind(this),Ht.AcquireTokenFromCache,this.logger,this.performanceClient,e.correlationId)(e,t).catch(n=>{if(t===zp.AccessToken)throw n;return this.eventHandler.emitEvent(vn.ACQUIRE_TOKEN_NETWORK_START,Fn.Silent,e),Fr(this.acquireTokenByRefreshToken.bind(this),Ht.AcquireTokenByRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,t)}))}}function fOe(r,e){const t=!(r instanceof lb&&r.subError!==YB),n=r.errorCode===Kp.INVALID_GRANT_ERROR||r.errorCode===L1,i=t&&n||r.errorCode===jF||r.errorCode===sK,o=Wke.includes(e);return i&&o}/*! @azure/msal-browser v3.30.0 2025-08-05 */async function pOe(r,e){const t=new JT(r);return await t.initialize(),JB.createController(t,e)}/*! @azure/msal-browser v3.30.0 2025-08-05 */let gOe=class Upe{static async createPublicClientApplication(e){const t=await pOe(e);return new Upe(e,t)}constructor(e,t){this.controller=t||new JB(new JT(e))}async initialize(e){return this.controller.initialize(e)}async acquireTokenPopup(e){return this.controller.acquireTokenPopup(e)}acquireTokenRedirect(e){return this.controller.acquireTokenRedirect(e)}acquireTokenSilent(e){return this.controller.acquireTokenSilent(e)}acquireTokenByCode(e){return this.controller.acquireTokenByCode(e)}addEventCallback(e,t){return this.controller.addEventCallback(e,t)}removeEventCallback(e){return this.controller.removeEventCallback(e)}addPerformanceCallback(e){return this.controller.addPerformanceCallback(e)}removePerformanceCallback(e){return this.controller.removePerformanceCallback(e)}enableAccountStorageEvents(){this.controller.enableAccountStorageEvents()}disableAccountStorageEvents(){this.controller.disableAccountStorageEvents()}getAccount(e){return this.controller.getAccount(e)}getAccountByHomeId(e){return this.controller.getAccountByHomeId(e)}getAccountByLocalId(e){return this.controller.getAccountByLocalId(e)}getAccountByUsername(e){return this.controller.getAccountByUsername(e)}getAllAccounts(e){return this.controller.getAllAccounts(e)}handleRedirectPromise(e){return this.controller.handleRedirectPromise(e)}loginPopup(e){return this.controller.loginPopup(e)}loginRedirect(e){return this.controller.loginRedirect(e)}logout(e){return this.controller.logout(e)}logoutRedirect(e){return this.controller.logoutRedirect(e)}logoutPopup(e){return this.controller.logoutPopup(e)}ssoSilent(e){return this.controller.ssoSilent(e)}getTokenCache(){return this.controller.getTokenCache()}getLogger(){return this.controller.getLogger()}setLogger(e){this.controller.setLogger(e)}setActiveAccount(e){this.controller.setActiveAccount(e)}getActiveAccount(){return this.controller.getActiveAccount()}initializeWrapperLibrary(e,t){return this.controller.initializeWrapperLibrary(e,t)}setNavigationClient(e){this.controller.setNavigationClient(e)}getConfiguration(){return this.controller.getConfiguration()}async hydrateCache(e,t){return this.controller.hydrateCache(e,t)}clearCache(e){return this.controller.clearCache(e)}};/*! @azure/msal-browser v3.30.0 2025-08-05 */const mOe={initialize:()=>Promise.reject(gc(Vc)),acquireTokenPopup:()=>Promise.reject(gc(Vc)),acquireTokenRedirect:()=>Promise.reject(gc(Vc)),acquireTokenSilent:()=>Promise.reject(gc(Vc)),acquireTokenByCode:()=>Promise.reject(gc(Vc)),getAllAccounts:()=>[],getAccount:()=>null,getAccountByHomeId:()=>null,getAccountByUsername:()=>null,getAccountByLocalId:()=>null,handleRedirectPromise:()=>Promise.reject(gc(Vc)),loginPopup:()=>Promise.reject(gc(Vc)),loginRedirect:()=>Promise.reject(gc(Vc)),logout:()=>Promise.reject(gc(Vc)),logoutRedirect:()=>Promise.reject(gc(Vc)),logoutPopup:()=>Promise.reject(gc(Vc)),ssoSilent:()=>Promise.reject(gc(Vc)),addEventCallback:()=>null,removeEventCallback:()=>{},addPerformanceCallback:()=>"",removePerformanceCallback:()=>!1,enableAccountStorageEvents:()=>{},disableAccountStorageEvents:()=>{},getTokenCache:()=>{throw gc(Vc)},getLogger:()=>{throw gc(Vc)},setLogger:()=>{},setActiveAccount:()=>{},getActiveAccount:()=>null,initializeWrapperLibrary:()=>{},setNavigationClient:()=>{},getConfiguration:()=>{throw gc(Vc)},hydrateCache:()=>Promise.reject(gc(Vc)),clearCache:()=>Promise.reject(gc(Vc))};/*! @azure/msal-browser v3.30.0 2025-08-05 */class yOe{static getInteractionStatusFromEvent(e,t){switch(e.eventType){case vn.LOGIN_START:return mc.Login;case vn.SSO_SILENT_START:return mc.SsoSilent;case vn.ACQUIRE_TOKEN_START:if(e.interactionType===Fn.Redirect||e.
63interactionType===Fn.Popup)return mc.AcquireToken;break;case vn.HANDLE_REDIRECT_START:return mc.HandleRedirect;case vn.LOGOUT_START:return mc.Logout;case vn.SSO_SILENT_SUCCESS:case vn.SSO_SILENT_FAILURE:if(t&&t!==mc.SsoSilent)break;return mc.None;case vn.LOGOUT_END:if(t&&t!==mc.Logout)break;return mc.None;case vn.HANDLE_REDIRECT_END:if(t&&t!==mc.HandleRedirect)break;return mc.None;case vn.LOGIN_SUCCESS:case vn.LOGIN_FAILURE:case vn.ACQUIRE_TOKEN_SUCCESS:case vn.ACQUIRE_TOKEN_FAILURE:case vn.RESTORE_FROM_BFCACHE:if(e.interactionType===Fn.Redirect||e.interactionType===Fn.Popup){if(t&&t!==mc.Login&&t!==mc.AcquireToken)break;return mc.None}break}return null}}const vOe="modulepreload",_Oe=function(r){return"/"+r},fte={},Ea=function(e,t,n){let i=Promise.resolve();if(t&&t.length>0){let a=function(h){return Promise.all(h.map(p=>Promise.resolve(p).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),u=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=a(t.map(h=>{if(h=_Oe(h),h in fte)return;fte[h]=!0;const p=h.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${m}`))return;const _=document.createElement("link");if(_.rel=p?"stylesheet":vOe,p||(_.as="script"),_.crossOrigin="",_.href=h,u&&_.setAttribute("nonce",u),document.head.appendChild(_),p)return new Promise((C,T)=>{_.addEventListener("load",C),_.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${h}`)))})}))}function o(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return i.then(a=>{for(const l of a||[])l.status==="rejected"&&o(l.reason);return e().catch(o)})};/*! @azure/msal-react v2.2.0 2024-11-05 */const bOe={instance:mOe,inProgress:mc.None,accounts:[],logger:new fk({})},xK=V.createContext(bOe);xK.Consumer;/*! @azure/msal-react v2.2.0 2024-11-05 */function pte(r,e){if(r.length!==e.length)return!1;const t=[...e];return r.every(n=>{const i=t.shift();return!n||!i?!1:n.homeAccountId===i.homeAccountId&&n.localAccountId===i.localAccountId&&n.username===i.username})}/*! @azure/msal-react v2.2.0 2024-11-05 */const wOe="@azure/msal-react",gte="2.2.0";/*! @azure/msal-react v2.2.0 2024-11-05 */const GF={UNBLOCK_INPROGRESS:"UNBLOCK_INPROGRESS",EVENT:"EVENT"},EOe=(r,e)=>{const{type:t,payload:n}=e;let i=r.inProgress;switch(t){case GF.UNBLOCK_INPROGRESS:r.inProgress===mc.Startup&&(i=mc.None,n.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));break;case GF.EVENT:const a=n.message,l=yOe.getInteractionStatusFromEvent(a,r.inProgress);l&&(n.logger.info(`MsalProvider - ${a.eventType} results in setting inProgress from ${r.inProgress} to ${l}`),i=l);break;default:throw new Error(`Unknown action type: ${t}`)}const o=n.instance.getAllAccounts();return i!==r.inProgress&&!pte(o,r.accounts)?{...r,inProgress:i,accounts:o}:i!==r.inProgress?{...r,inProgress:i}:pte(o,r.accounts)?r:{...r,accounts:o}};function FV({instance:r,children:e}){V.useEffect(()=>{r.initializeWrapperLibrary(qke.React,gte)},[r]);const t=V.useMemo(()=>r.getLogger().clone(wOe,gte),[r]),[n,i]=V.useReducer(EOe,void 0,()=>({inProgress:mc.Startup,accounts:r.getAllAccounts()}));V.useEffect(()=>{const a=r.addEventCallback(l=>{i({payload:{instance:r,logger:t,message:l},type:GF.EVENT})});return t.verbose(`MsalProvider - Registered event callback with id: ${a}`),r.initialize().then(()=>{r.handleRedirectPromise().catch(()=>{}).finally(()=>{i({payload:{instance:r,logger:t},type:GF.UNBLOCK_INPROGRESS})})}).catch(()=>{}),()=>{a&&(t.verbose(`MsalProvider - Removing event callback ${a}`),r.removeEventCallback(a))}},[r,t]);const o={instance:r,inProgress:n.inProgress,accounts:n.accounts,logger:t};return as.createElement(xK.Provider,{value:o},e)}/*! @azure/msal-react v2.2.0 2024-11-05 */const YD=()=>V.useContext(xK);/*! @azure/msal-react v2.2.0 2024-11-05 */function COe(r,e){return r.length>0}function TK(r){const{accounts:e,inProgress:t}=YD();return V.useMemo(()=>t===mc.Startup?!1:COe(e),[e,t,r])}var _4={},mte;function xOe(){if(mte)return _4;mte=1,_4.match=o,_4.parse=a;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,e=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,t=/^(?:(min|max)-)?(.+)/,n=/(em|rem|px|cm|mm|in|pt|pc)?$/,i=/(dpi|dpcm|dppx)?$/;
vendor: 5,220 bytes, line 63
63function o(p,m){return a(p).some(function(_){var C=_.inverse,T=_.type==="all"||m.type===_.type;if(T&&C||!(T||C))return!1;var S=_.expressions.every(function(R){var O=R.feature,N=R.modifier,H=R.value,F=m[O];if(!F)return!1;switch(O){case"orientation":case"scan":return F.toLowerCase()===H.toLowerCase();case"width":case"height":case"device-width":case"device-height":H=h(H),F=h(F);break;case"resolution":H=u(H),F=u(F);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":H=l(H),F=l(F);break;case"grid":case"color":case"color-index":case"monochrome":H=parseInt(H,10)||1,F=parseInt(F,10)||0;break}switch(N){case"min":return F>=H;case"max":return F<=H;default:return F===H}});return S&&!C||!S&&C})}function a(p){return p.split(",").map(function(m){m=m.trim();var _=m.match(r),C=_[1],T=_[2],S=_[3]||"",R={};return R.inverse=!!C&&C.toLowerCase()==="not",R.type=T?T.toLowerCase():"all",S=S.match(/\([^\)]+\)/g)||[],R.expressions=S.map(function(O){var N=O.match(e),H=N[1].toLowerCase().match(t);return{modifier:H[1],feature:H[2],value:N[2]}}),R})}function l(p){var m=Number(p),_;return m||(_=p.match(/^(\d+)\s*\/\s*(\d+)$/),m=_[1]/_[2]),m}function u(p){var m=parseFloat(p),_=String(p).match(i)[1];switch(_){case"dpcm":return m/2.54;case"dppx":return m*96;default:return m}}function h(p){var m=parseFloat(p),_=String(p).match(n)[1];switch(_){case"em":return m*16;case"rem":return m*16;case"cm":return m*96/2.54;case"mm":return m*96/2.54/10;case"in":return m*96;case"pt":return m*72;case"pc":return m*72/12;default:return m}}return _4}var A$,yte;function TOe(){if(yte)return A$;yte=1;var r=xOe().match,e=typeof window<"u"?window.matchMedia:null;function t(i,o,a){var l=this,u;e&&!a&&(u=e.call(window,i)),u?(this.matches=u.matches,this.media=u.media,u.addListener(m)):(this.matches=r(i,o),this.media=i),this.addListener=h,this.removeListener=p,this.dispose=_;function h(C){u&&u.addListener(C)}function p(C){u&&u.removeListener(C)}function m(C){l.matches=C.matches,l.media=C.media}function _(){u&&u.removeListener(m)}}function n(i,o,a){return new t(i,o,a)}return A$=n,A$}var SOe=TOe();const IOe=ao(SOe);var AOe=/[A-Z]/g,ROe=/^ms-/,R$={};function POe(r){return"-"+r.toLowerCase()}function Bpe(r){if(R$.hasOwnProperty(r))return R$[r];var e=r.replace(AOe,POe);return R$[r]=ROe.test(e)?"-"+e:e}function kOe(r,e){if(r===e)return!0;if(!r||!e)return!1;const t=Object.keys(r),n=Object.keys(e),i=t.length;if(n.length!==i)return!1;for(let o=0;o<i;o++){const a=t[o];if(r[a]!==e[a]||!Object.prototype.hasOwnProperty.call(e,a))return!1}return!0}var P$={exports:{}},k$,vte;function OOe(){if(vte)return k$;vte=1;var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return k$=r,k$}var O$,_te;function MOe(){if(_te)return O$;_te=1;var r=OOe();function e(){}function t(){}return t.resetWarningCache=e,O$=function(){function n(a,l,u,h,p,m){if(m!==r){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}}n.isRequired=n;function i(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:t,resetWarningCache:e};return o.PropTypes=o,o},O$}var bte;function WD(){return bte||(bte=1,P$.exports=MOe()()),P$.exports}var NOe=WD();const br=ao(NOe),Ah=br.oneOfType([br.string,br.number]),$pe={all:br.bool,grid:br.bool,aural:br.bool,braille:br.bool,handheld:br.bool,print:br.bool,projection:br.bool,screen:br.bool,tty:br.bool,tv:br.bool,embossed:br.bool},DOe={orientation:br.oneOf(["portrait","landscape"]),scan:br.oneOf(["progressive","interlace"]),aspectRatio:br.string,deviceAspectRatio:br.string,height:Ah,deviceHeight:Ah,width:Ah,deviceWidth:Ah,color:br.bool,colorIndex:br.bool,monochrome:br.bool,resolution:Ah,type:Object.keys($pe)},{type:$kt,...LOe}=DOe,HOe={minAspectRatio:br.string,maxAspectRatio:br.string,minDeviceAspectRatio:br.string,maxDeviceAspectRatio:br.string,minHeight:Ah,maxHeight:Ah,minDeviceHeight:Ah,maxDeviceHeight:Ah,minWidth:Ah,maxWidth:Ah,minDeviceWidth:Ah,maxDeviceWidth:Ah,minColor:br.number,maxColor:br.number,minColorIndex:br.number,maxColorIndex:br.number,minMonochrome:br.number,maxMonochrome:br.number,minResolution:Ah,maxResolution:Ah,...LOe},FOe={...$pe,...HOe};var UOe={all:FOe};const BOe=r=>`not ${r}`,$Oe=(r,e)=>{const t=Bpe(r);return typeof e=="number"&&(e=`${e}px`),e===!0?t:e===!1?BOe(t):`(${t}: ${e})`},zOe=r=>r.join(" and "),jOe=r=>{const e=[];return Object.keys(UOe.all).forEach(t=>{const n=r[t];n!=null&&e.push($Oe(t,n))}),zOe(e)},VOe=V.createContext(void 0),qOe=r=>r.query||jOe(r),wte=r=>r?Object.keys(r).reduce((t,n)=>(t[Bpe(n)]=r[n],t),{}):void 0,zpe=()=>{const r=V.useRef(!1);return V.useEffect(()=>{r.current=!0},[]),r.current},GOe=r=>{const e=V.useContext(VOe),t=()=>wte(r)||wte(e),[n,i]=V.useState(t);return V.useEffect(()=>{const o=t();kOe(n,o)||i(o)},[r,e]),n},YOe=r=>{const e=()=>qOe(r),[t,n]=V.useState(e);return V.useEffect(()=>{const i=e();t!==i&&n(i)},[r]),t},WOe=(r,e)=>{const t=()=>IOe(r,e||{},!!e),[n,i]=V.useState(t),o=zpe();return V.useEffect(()=>
63{if(o){const a=t();return i(a),()=>{a&&a.dispose()}}},[r,e]),n},KOe=r=>{const[e,t]=V.useState(r.matches);return V.useEffect(()=>{const n=i=>{t(i.matches)};return r.addListener(n),t(r.matches),()=>{r.removeListener(n)}},[r]),e},M$=(r,e,t)=>{const n=GOe(e),i=YOe(r);if(!i)throw new Error("Invalid or missing MediaQuery!");const o=WOe(i,n),a=KOe(o);return zpe(),V.useEffect(()=>{},[a]),V.useEffect(()=>()=>{o&&o.dispose()},[]),a};var jpe="function",Vpe="object",SK="undefined",q1="prototype",IK=Object,qpe=IK[q1];/*! https://github.com/nevware21/ts-utils v0.15.0 */function il(r,e){return r||e}function Wo(r,e){return r!=null?r[e]:void 0}var yu=void 0,el=null,AK="",e7="function",KD="object",sd="prototype",AN="__proto__",Qx="undefined",RN="constructor",RK="Symbol",TT="length",YF="name",tl="call",ZD="toString",PK="getOwnPropertyDescriptor",Gpe="getOwnPropertySymbols",Xc=il(Object),XD=Wo(Xc,sd),Ype=il(String),Xm=Wo(Ype,sd),gk=il(Math),Wpe=il(Array),mk=Wo(Wpe,sd),Fm=Wo(mk,"slice"),ZOe=il(Number),XOe=Wo(ZOe,sd),QOe=il(Function),JOe=Wo(QOe,sd),eMe=il(Date),tMe=Wo(eMe,sd),rMe=il(RegExp),nMe=Wo(rMe,sd),iMe=il(Boolean),oMe=Wo(iMe,sd),aMe=il(Error),sMe=Wo(aMe,sd),Ete="_polyfill",Cte="__nw21$polytype__";function Vn(r,e){try{return{v:r.apply(this,e)}}catch(t){return{e:t}}}function lMe(r,e,t){var n=Vn(r,t);return n.e?e:n.v}var N$;function t7(r){return function(e){return typeof e===r}}function Kpe(r){var e="[object "+r+"]";return function(t){return!!(t&&cMe(t)===e)}}function cMe(r){return XD[ZD].call(r)}function ba(r){return typeof r===Qx||r===Qx}function kK(r){return r===yu}function hr(r){return r===el||ba(r)}function Um(r){return r===el||r===yu}function uMe(r){return!!r||r!==yu}function dMe(r){return!N$&&(N$=["string","number","boolean",Qx,"symbol","bigint"]),r!==KD&&N$.indexOf(r)!==-1}var gn=t7("string"),Ar=t7(e7);function cd(r){return!r&&hr(r)?!1:!!r&&typeof r===KD}var ni=Wo(Wpe,"isArray"),OK=Kpe("Date"),ep=t7("number"),Zpe=t7("boolean"),MK=Kpe("Error");function mv(r){return!!(r&&r.then&&Ar(r.then))}function WF(r){return!(!r||lMe(function(){return!(r&&0+r)},!r))}function r7(){}function Xpe(){return[]}function hMe(){return!1}var Gi=il(Ype),fMe="[object Error]";function tn(r,e){var t=AK,n=XD[ZD][tl](r);n===fMe&&(r={stack:Gi(r.stack),message:Gi(r.message),name:Gi(r.name)});try{t=JSON.stringify(r,el,e?typeof e=="number"?e:4:yu),t=(t?t.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):el)||Gi(r)}catch(i){t=" - "+tn(i,e)}return n+": "+t}function Vp(r){throw new Error(r)}function gg(r){throw new TypeError(r)}function pMe(r){throw new RangeError(r)}function n7(r){Um(r)&&gg("Cannot convert undefined or null to object")}function Qpe(r){gn(r)||gg("'"+tn(r)+"' is not a string")}function tp(r,e){return!!r&&XD.hasOwnProperty[tl](r,e)}var gMe=il(Wo(Xc,PK),r7),G1=il(Wo(Xc,"hasOwn"),mMe);function mMe(r,e){return n7(r),tp(r,e)||!!gMe(r,e)}function UV(r){return r===AN||r===RN||r===sd}function zi(r,e,t){if(r&&(cd(r)||Ar(r))){for(var n in r)if(G1(r,n)&&e[tl](Um(t)?r:t,n,r[n])===-1)break}}function Or(r,e,t){if(r)for(var n=r[TT]>>>0,i=0;i<n&&!(i in r&&e[tl](Um(t)?r:t,r[i],i,r)===-1);i++);}var w_=yk;function yk(r,e,t){var n=e?e[r]:el;return function(i){var o=(i?i[r]:el)||n;if(o||t){var a=arguments;return(o||t).apply(i,o?Fm[tl](a,1):a)}gg('"'+Gi(r)+'" not defined for '+tn(i))}}function yMe(r,e,t){var n=e?e[r]:el;return function(i){var o=n;if(o||t){var a=arguments;return(o||t).apply(i,o?Fm[tl](a,1):a)}gg('"'+Gi(r)+'" not defined for '+tn(i))}}function vMe(r){return function(e){return e[r]}}function _Me(r,e){var t,n=Xc.getOwnPropertyDescriptor;return!Um(r)&&n&&(t=Vn(n,[r,e]).v||el),!t&&!Um(r)&&(t=Vn(function(){for(var i in r)if(i==e)return{enumerable:tp(r,i)}}).v),t&&t.enumerable||!1}var Jpe=yMe("propertyIsEnumerable",XD,_Me),bMe=il(Wo(Xc,PK),r7),wMe=il(Wo(Xc,Gpe),Xpe),b4={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};function KF(r){var e={};if(e[b4.c]=!0,e[b4.e]=!0,r.l){e.get=function(){return r.l.v};var t=bMe(r.l,"v");t&&t.set&&(e.set=function(n){r.l.v=n})}return zi(r,function(n,i){e[b4[n]]=kK(i)?e[b4[n]]:i}),e}var Bm=Wo(Xc,"defineProperty"),ege=Wo(Xc,"defineProperties");function EMe(r,e,t,n,i,o){var a={e:o,c:i};
63return t&&(a.g=t),Bm(r,e,KF(a))}function hi(r,e,t){return Bm(r,e,KF(t))}function Rb(r,e){var t={};return zi(e,function(n,i){t[n]=KF(i)}),Or(wMe(e),function(n){Jpe(e,n)&&(t[n]=KF(e[n]))}),ege(r,t)}function tge(r,e,t,n,i){var o={};return zi(r,function(a,l){ZF(o,a,e?l:a),ZF(o,l,a)}),n?n(o):o}function ZF(r,e,t,n){Bm(r,e,{value:t,enumerable:!0,writable:!1})}function CMe(r,e){return r!==r?e!==e:r===0&&e===0?1/r===1/e:r===e}var xMe=il(Wo(Xc,"isFrozen"),hMe),rge=Wo(Xc,"freeze");function TMe(r){return r}function SMe(r){return n7(r),r[AN]||el}var XF=Wo(Xc,"assign"),Pm=Wo(Xc,"keys");function nge(r,e){if((ni(r)||cd(r)||Ar(r))&&!xMe(r)){for(var t=0;t<e.length;t++)if(e[t]===r)return r;e.push(r),zi(r,function(n,i){nge(i,e)}),cg(r)}return r}function RS(r){return rge?nge(r,[]):r}var cg=il(rge,TMe),QF=il(Wo(Xc,"getPrototypeOf"),SMe),ige=il(Wo(Xc,"is"),CMe);function IMe(r){return tge(r,1,0,cg)}function AMe(r){return tge(r,0,0,cg)}function RMe(r){var e={};return zi(r,function(t,n){ZF(e,t,n[1]),ZF(e,n[0],n[1])}),cg(e)}function PMe(r){return RMe(r)}var oge=AMe({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),xte="__tsUtils$gblCfg",D$;function age(){var r;return typeof globalThis!==Qx&&(r=globalThis),!r&&typeof self!==Qx&&(r=self),!r&&typeof window!==Qx&&(r=window),!r&&typeof globalThis!==Qx&&(r=globalThis),r}function i7(){if(!D$){var r=Vn(age).v||{};D$=r[xte]=r[xte]||{}}return D$}var sge=Wo(gk,"min"),DM=Wo(gk,"max"),Tte=w_("slice",Xm),Fh=w_("substring",Xm),Yw=yk("substr",Xm,kMe);function kMe(r,e,t){return n7(r),t<0?AK:(e=e||0,e<0&&(e=DM(e+r[TT],0)),ba(t)?Tte(r,e):Tte(r,e,e+t))}function JF(r,e){return Fh(r,0,e)}function OMe(r,e){return r&&(Vn(function(){r[Ete]=!0,r[Cte]=e}),Vn(hi,[r,Ete,{v:!0,w:!1,e:!1}]),Vn(hi,[r,Cte,{v:e,w:!1,e:!1}])),r}var qd=il(Wo(Xc,"create"),MMe);function MMe(r,e){var t=null;function n(){}if(Um(r))t={};else{var i=typeof r;i!==KD&&i!==e7&&gg("Prototype must be an Object or function: "+tn(r)),n[sd]=r,Vn(function(){n[AN]=r}),t=new n}return e&&Vn(ege,[t,e]),t}function $m(){return(Date.now||NMe)()}function NMe(){return new Date().getTime()}function Tm(r,e,t){return r.apply(e,t)}function Ste(r,e){return r.apply(e,Fm[tl](arguments,2))}function Ite(r,e){return r.bind.apply(r,Fm[tl](arguments,1))}var xl;function Pb(){xl=i7()}function QD(r,e){var t={};return!xl&&Pb(),t.b=xl.lzy,Bm(t,"v",{configurable:!0,get:function(){var n=Tm(r,null,e);return xl.lzy||Bm(t,"v",{value:n}),t.b=xl.lzy,n}}),t}var NK=Wo(gk,"random"),DMe=QD(function(){for(var r=$m().toString(36).slice(2);r.length<16;)r+=NK().toString(36).slice(2);return r=r.substring(0,16),r}),Ate="_urid",LMe="$nw21sym",L$,HMe=0;function FMe(){if(!L$){var r=i7();L$=r.gblSym=r.gblSym||{k:{},s:{}}}return L$}var w4;function DK(r){var e="_"+HMe+++"_"+DMe.v,t=RK+"("+r+")";function n(o,a){hi(i,o,{v:a,e:!1,w:!1})}var i=qd(null);return n("description",Gi(r)),n(ZD,function(){return t+LMe+e}),n("valueOf",function(){return i}),n("v",t),n("_uid",e),OMe(i,"symbol")}function UMe(r){var e=FMe();if(!G1(e.k,r)){var t=DK(r),n=Pm(e.s).length;t[Ate]=function(){return n+"_"+t[ZD]()},e.k[r]=t,e.s[t[Ate]()]=Gi(r)}return e.k[r]}function BMe(r){!w4&&(w4={});var e,t=oge[r];return t&&(e=w4[t]=w4[t]||DK(RK+"."+t)),e}function Ga(r){return Bm({toJSON:function(){return r}},"v",{value:r})}function Sm(r,e){var t={toJSON:function(){return t.v}};return Bm(t,"v",{get:function(){var n=Tm(r,null,e);return r=el,Bm(t,"v",{value:n}),n},configurable:!0})}var lge="window",LM;function PS(r,e){var t;return function(){return!xl&&Pb(),(!t||xl.lzy)&&(t=Ga(Vn(r,e).v)),t.v}}function km(r){return!xl&&Pb(),(!LM||r===!1||xl.lzy)&&(LM=Ga(Vn(age).v||el)),LM.v}function di(r,e){var t;if(!LM||e===!1?t=km(e):t=LM.v,t&&t[r])return t[r];if(r===lge)try{return window}catch{}return el}function cge(){return!!Eu()}var Eu=PS(di,["document"]);function o7(){return!!ig()}var ig=PS(di,[lge]);function $Me(){return!!XE()}var XE=PS(di,["navigator"]);function zMe(){return!!uge()}var uge=PS(di,["history"]),jMe=PS(function(){return!!Vn(function(){var r=di("process");return r&&(r.versions||{}).node}).v}),dge=PS(function(){return!!Vn(function(){return self&&self instanceof WorkerGlobalScope}).v}),VMe=PS(di,["queueMicrotask"]),IP,H$;function a7(){return IP=Ga(Vn(di,[RK]).v),IP}function qMe(r){var e=(xl.lzy?0:IP)||a7();return e.v?e.v[r]:yu}function GMe(){return!!YMe()}function YMe(){return!xl&&Pb(),((xl.lzy?0:IP)||a7()).v}function s7(r,e){var t=oge[r];!xl&&Pb();var n=(xl.lzy?0:IP)||a7();return n.v?n.v[t||r]:BMe(r)}function pA(r,e){!xl&&Pb();var t=(xl.lzy?0:IP)||a7();return t.v?t.v(r):DK(r)}
63function l7(r){return!xl&&Pb(),H$=(xl.lzy?0:H$)||Ga(Vn(qMe,["for"]).v),(H$.v||UMe)(r)}function BV(r){return!!r&&Ar(r.next)}function hge(r){return!Um(r)&&Ar(r[s7(3)])}var E4;function kb(r,e,t){if(r&&(BV(r)||(!E4&&(E4=Ga(s7(3))),r=r[E4.v]?r[E4.v]():el),BV(r))){var n=yu,i=yu;try{for(var o=0;!(i=r.next()).done&&e[tl](Um(t)?r:t,i.value,o,r)!==-1;)o++}catch(a){n={e:a},r.throw&&(i=el,r.throw(n))}finally{try{i&&!i.done&&r.return&&r.return(i)}finally{if(n)throw n.e}}}}function VA(r,e){return!ba(e)&&r&&(ni(e)?Tm(r.push,r,e):BV(e)||hge(e)?kb(e,function(t){r.push(t)}):r.push(e)),r}var Da=w_("indexOf",mk),PN=w_("map",mk);function JD(r,e,t){return((r?r.slice:el)||Fm).apply(r,Fm[tl](arguments,1))}function WMe(r,e,t){return Da(r,e,t)!==-1}var KMe=yk("includes",mk,WMe),d_=vMe(TT),$d=Wo(gk,"floor");function ZMe(r){var e=!1;function t(){return r.v}function n(){e||(e=r.n?r.n(arguments):!0);var l={done:e};return e||hi(l,"value",{g:t}),l}function i(l){return e=!0,{done:!0,value:r.r&&r.r(l)}}function o(l){return e=!0,{done:!0,value:r.t&&r.t(l)}}var a={next:n};return r.r&&(a.return=i),r.t&&(a.throw=o),a}var XMe=w_("reduce",mk),F$,LK=il(Wo(Xc,"setPrototypeOf"),QMe);function QMe(r,e){var t;return!F$&&(F$=Ga((t={},t[AN]=[],t instanceof Array))),F$.v?r[AN]=e:zi(e,function(n,i){return r[n]=i}),r}function JMe(r,e,t){Vn(hi,[e,YF,{v:r,c:!0,e:!1}]),e=LK(e,t);function n(){this[RN]=e,Vn(hi,[this,YF,{v:r,c:!0,e:!1}])}return e[sd]=t===el?qd(t):(n[sd]=t[sd],new n),e}function Rte(r,e){e&&(r[YF]=e)}function HK(r,e,t,n){var i=Error,o=i[sd][YF],a=Error.captureStackTrace;return JMe(r,function(){var l=this,u=arguments;try{Vn(Rte,[i,r]);var h=Tm(i,l,n?n(u):Fm[tl](u))||l;if(h!==l){var p=QF(l);p!==QF(h)&&LK(h,p)}return a&&a(h,l[RN]),e&&e(h,u),h}finally{Vn(Rte,[i,o])}},i)}var U$;function eNe(r){throw U$||(U$=HK("UnsupportedError")),new U$(r)}var fge=w_("replace",Xm);function tNe(r){return function(t){return n7(t),t=Gi(t),t&&(t=fge(t,r,AK)),t}}var rNe=tNe(/^\s+|(?=\s)\s+$/g),wa=yk("trim",Xm,rNe),nNe=w_("toUpperCase",Xm),iNe=w_("toLowerCase",Xm);function Pte(r){return fge(Gi(r),/(_|\b)\w/g,nNe)}function oNe(r,e,t){return Sm(function(){var n=Vn(r,t);return n.e?e:n.v})}var aNe=il(Wo(Xc,PK),r7),sNe=il(Wo(Xc,Gpe),Xpe);function lNe(r,e,t){if(r!==el&&r!==yu){for(var n in r)if(G1(r,n)&&e[tl](Um(t)?r:t,n,r[n])===-1)return;Or(sNe(r),function(i){if(Jpe(r,i)&&e[tl](Um(t)?r:t,i,r[i])===-1)return-1})}}function cNe(r,e,t){lNe(r,function(n,i){if(!UV(n))return e[tl](Um(t)?r:t,n,i)},t)}var B$,$$,z$;function Uh(r){if(!r||typeof r!==KD)return!1;z$||(z$=o7()?ig():!0);var e=!1;if(r!==z$){$$||(B$=Function[sd][ZD],$$=B$[tl](Xc));try{var t=QF(r);e=!t,e||(tp(t,RN)&&(t=t[RN]),e=!!(t&&typeof t===e7&&B$[tl](t)===$$))}catch{}}return e}var j$;function uNe(r,e){e&&r.push(e)}function pl(r,e){e&&e[sd]}function dNe(){var r=[XD,Xm,mk,XOe,JOe,tMe,nMe,oMe,sMe];return Vn(di,["Map"]).v,Vn(di,["Set"]).v,Vn(di,["WeakMap"]).v,Vn(di,["WeakSet"]).v,Vn(di,["Promise"]).v,Vn(di,["Symbol"]).v,Vn(di,["ArrayBuffer"]).v,Vn(di,["SharedArrayBuffer"]).v,Vn(di,["DataView"]).v,Vn(di,["Int8Array"]).v,Vn(di,["Uint8Array"]).v,Vn(di,["Uint8ClampedArray"]).v,Vn(di,["Int16Array"]).v,Vn(di,["Uint16Array"]).v,Vn(di,["Int32Array"]).v,Vn(di,["Uint32Array"]).v,Vn(di,["Float32Array"]).v,Vn(di,["Float64Array"]).v,Vn(di,["BigInt64Array"]).v,Vn(di,["BigUint64Array"]).v,Vn(di,["WeakRef"]).v,Vn(di,["FinalizationRegistry"]).v,r}function $V(r){return j$||(j$=Ga(dNe())),Da(j$.v,r)>=0}function hNe(r){return r.value&&gge(r),!0}var kte=[mNe,gge,vNe,yNe];function fNe(r,e,t,n){var i;return Or(r,function(o){if(o.k===e)return i=o,-1}),i||(i={k:e,v:e},r.push(i),n(i)),i.v}function FK(r,e,t,n){var i=t.handler,o=t.path?n?t.path.concat(n):t.path:[],a={handler:t.handler,src:t.src,path:o},l=typeof e,u=!1,h=e===el;h||(e&&l===KD?u=Uh(e):h=dMe(l));var p={type:l,isPrim:h,isPlain:u,value:e,result:e,path:o,origin:t.src,copy:function(m,_){return FK(r,m,_?a:t,_)},copyTo:function(m,_){return pge(r,m,_,a)}};return p.isPrim?i&&i[tl](t,p)?p.result:e:fNe(r,e,o,function(m){hi(p,"result",{g:function(){return m.v},s:function(T){m.v=T}});for(var _=0,C=i;!(C||(_<kte.length?kte[_++]:hNe))[tl](t,p);)C=el})}function pge(r,e,t,n){return $V(t)||cNe(t,function(i,o){e[i]=FK(r,o,n,i)}),e}function pNe(r,e,t){var n={handler:t,src:e,path:[]};return pge([],r,e,n)}function gNe(r,e){var t={handler:e,src:r};return FK([],r,t)}function mNe(r){var e=r.value;if(ni(e)){var t=r.result=[];return t.length=e.length,r.copyTo(t,e),!0}return!1}function yNe(r){var e=r.value;return OK(e)?(r.result=new Date(e.getTime()),!0):!1}function vNe(r){return r.type===e7}function gge(r){var e=r.value;if(e&&r.isPlain){var t=r.result={};return r.copyTo(t,e),!0}return!1}function mge(r,e){return Or(e,function(t){pNe(r,t)}),r}function Ote(r,e,t,n,i,o,a){return mge(gNe(r)||{},Fm[tl](arguments))}function _Ne(r,e,t,n,i,o,a){return mge(r||{},Fm[tl](arguments))}var c7=w_("split",Xm);function yge(r,e,t){if(r&&e){var n=c7(e,"."),i=n.pop(),o=!0,a,l;if(Or(n,function(u){if($V(r)||UV(u))return o=!1,-1;hr(r[u])&&(r[u]={},a||(a=r,l=u)),r=r[u]}),o&&!Um(i)&&!$V(r)&&!UV(i))r[i]=t;else if(a)try{delete a[l]}catch{}}}var V$;function ug(){return!xl&&Pb(),(!V$||xl.lzy)&&(V$=Ga(Vn(di,["performance"]).v)),V$.v}function zV(){var r=ug();return r&&r.now?r.now():$m()}var bNe=Wo(gk,"abs"),UK=Wo(gk,"round"),Cs=w_("indexOf",Xm),vge=yk("endsWith",Xm,wNe);function wNe(r,e,t){Qpe(r);var n=gn(e)?e:Gi(e),i=!ba(t)&&t<r[TT]?t:r[TT];return Fh(r,i-n[TT],i)===n}var ENe=yk("startsWith",Xm,CNe);function CNe(r,e,t){Qpe(r);var n=gn(e)?e:Gi(e),i=t>0?t:0;return Fh(r,i,i+n[TT])===n}var q$="ref",G$="unref",Y$="hasRef",xNe="enabled";function _ge(r,e,t){var n=!0,i=r?e(el):el,o;function a(){return n=!1,i&&i[G$]&&i[G$](),o}function l(){i&&t(i),i=el}function u(){return i=e(i),n||a(),o}function h(p){!p&&i&&l(),p&&!i&&u()}return o={cancel:l,refresh:u},o[Y$]=function(){return i&&i[Y$]?i[Y$]():n},o[q$]=function(){return n=!0,i&&i[q$]&&i[q$](),o},o[G$]=a,o=Bm(o,xNe,{get:function(){return!!i}
63,set:h}),{h:o,dn:function(){i=el}}}var TNe,SNe,e8;function INe(r){var e=Ar(r)?r:TNe;if(!e){var t=i7().tmOut||[];ni(t)&&t.length>0&&Ar(t[0])&&(e=t[0])}return e||setTimeout}function ANe(r){var e=Ar(r)?r:SNe;if(!e){var t=i7().tmOut||[];ni(t)&&t.length>1&&Ar(t[1])&&(e=t[1])}return e||clearTimeout}function bge(r,e,t){var n=ni(e),i=n?e.length:0,o=INe(i>0?e[0]:n?yu:e),a=ANe(i>1?e[1]:yu),l=t[0];t[0]=function(){var h=e8;h&&(e8=yu,h()),u.dn(),Tm(l,yu,Fm[tl](arguments))};var u=_ge(r,function(h){if(h){if(h.refresh)return h.refresh(),h;Tm(a,yu,[h])}return Tm(o,yu,t)},function(h){Tm(a,yu,[h])});return u.h}function RNe(r){!e8&&Ar(r)&&(e8=r)}function Gh(r,e){return bge(!0,yu,Fm[tl](arguments))}function PNe(r,e){return bge(!1,yu,Fm[tl](arguments))}function kNe(r,e,t){var n,i=0;function o(){var l=++i,u=e(function(){l===i&&(n.dn(),r())},t);return u===!1&&n.dn(),l}function a(l){l===i&&i++}return n=_ge(!1,o,a),n.h.refresh(),n.h}function ONe(r){try{r&&r()}catch(e){Gh(function(){throw e},0)}}var iv;function jV(){iv&&(iv[1]&&VV(1),iv[0]&&VV(0))}function VV(r){if(iv){for(var e=iv[r],t=0;e&&e.length>t;)ONe(e[t++]),r===0&&iv[1]&&VV(1);iv[r]=yu}}function wge(r,e,t){var n=!1;iv||(iv={});var i=iv[r];return i||(i=[],iv[r]=i),kK(t)||t===0||i.length<t?(i.push(e),n=!0):pMe("scheduleMicrotask() queue depth exceeded ["+t+"]"),n}var _I,Ex=!1,oM,bI;function MNe(r){if(Ex&&oM!==r&&(Ex=!1),!Ex){Ex=!0,oM=r;try{r.resolve().then(function(){Ex=!1,oM=void 0,jV()})}catch{Ex=!1,oM=void 0,jV()}}}function NNe(r,e){return function(t,n){var i=wge(e,t,n);return i&&MNe(r),i}}function DNe(r){if(!xl&&Pb(),!_I||xl.lzy){var e=di("Promise");e&&Ar(e.resolve)?(_I=Ga(e),bI=void 0):(_I=void 0,bI=void 0,Ex=!1,oM=void 0)}var t;return _I&&_I.v&&(!bI&&(bI={}),t=bI[r],t||(t=NNe(_I.v,r),bI[r]=t)),t}function LNe(r,e,t){var n=r&&r.scheduleFn||e&&e.scheduleFn;if(!n){var i=!(r&&!kK(r.useTimeout)?r.useTimeout:e);i&&(n=DNe(t))}return n}var Mte,qV=!1;function HNe(){try{qV=!0,jV()}finally{qV=!1}}function FNe(){if(!qV){RNe(HNe);var r=Mte;r?r.enabled||r.refresh():Mte=Gh(r7,0)}}function UNe(r,e){return BNe(0,r,e)}function BNe(r,e,t){var n=wge(r,e,t);return n&&FNe(),n}var $Ne;function zNe(r,e,t){var n;n=e;var i=r,o=VMe();return o||(o=LNe(n,$Ne,0)),kNe(i,o||UNe)}(km()||{}).Symbol;(km()||{}).Reflect;var Ege="hasOwnProperty",jNe=function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)qpe[Ege].call(e,i)&&(r[i]=e[i])}return r},og=XF||jNe,GV=function(r,e){return GV=IK.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)n[Ege](i)&&(t[i]=n[i])},GV(r,e)};function E_(r,e){typeof e!==jpe&&e!==null&&gg("Class extends value "+String(e)+" is not a constructor or null"),GV(r,e);function t(){this.constructor=r}r[q1]=e===null?qd(e):(t[q1]=e[q1],new t)}function Nte(r,e){for(var t=0,n=e.length,i=r.length;t<n;t++,i++)r[i]=e[t];return r}var C4,t8="constructor",cb="prototype",r8="function",HM="_dynInstFuncs",YV="_isDynProxy",ER="_dynClass",W$="_dynBaseFuncs",VNe="_dynCls$",WV="_dynInstChk",kN=WV,Dte="_dyn_r$",Cge="_dfOpts",Lte="_unknown_",BK="__proto__",x4="_dyn"+BK,Hte="__dynProto$Gbl",K$="_dynInstProto",bH="useBaseInst",KV="setInstFuncs",$K=Object,ON=$K.getPrototypeOf,Fte=$K.getOwnPropertyNames,Ute=km(),ZV=Ute[Hte]||(Ute[Hte]={o:(C4={},C4[KV]=!0,C4[bH]=!0,C4),n:1e3});function wH(r){return r&&(r===$K[cb]||r===Array[cb])}function zK(r){return wH(r)||r===Function[cb]}function eS(r){var e;if(r){if(ON)return ON(r);var t=r[BK]||r[cb]||(r[t8]?r[t8][cb]:null);e=r[x4]||t,tp(r,x4)||(delete r[K$],e=r[x4]=r[K$]||r[x4],r[K$]=t)}return e}function u7(r,e){var t=[];if(Fte)t=Fte(r);else for(var n in r)typeof n=="string"&&tp(r,n)&&t.push(n);if(t&&t.length>0)for(var i=0;i<t.length;i++)e(t[i])}function jK(r,e,t){return e!==t8&&typeof r[e]===r8&&(t||tp(r,e))&&e!==BK&&e!==cb}function n8(r){gg("DynamicProto: "+r)}function qNe(r){var e=qd(null);return u7(r,function(t){!e[t]&&jK(r,t,!1)&&(e[t]=r[t])}),e}function VK(r,e){for(var t=r.length-1;t>=0;t--)if(r[t]===e)return!0;return!1}function GNe(r){if(tp(r,W$))return r[W$];for(var e=qd(null),t=eS(r),n=[];t&&!zK(t)&&!VK(n,t);)u7(t,function(i){!e[i]&&jK(t,i,!ON)&&(e[i]=t)}),n.push(t),t=eS(t);return r[W$]=e,e}function YNe(r,e,t,n){function i(u,h,p){var m=h[p];if(m[YV]&&n){var _=u[HM]||{};_[kN]!==!1&&(m=(_[h[ER]]||{})[p]||m)}return function(){return m.apply(u,arguments)}}var o=qd(null);u7(t,function(u){o[u]=i(e,t,u)});var a=GNe(r);for(var l in a)o[l]||(o[l]=i(e,a[l],l));return o}function WNe(r,e,t,n){var i=null;if(r&&tp(t,ER)){var o=r[HM]||qd(null);if(i=(o[t[ER]]||qd(null))[e],i||n8("Missing ["+e+"] "+r8),!i[WV]&&o[kN]!==!1){var a=!tp(r,e);if(a)for(var l=eS(r),u=[];l&&!zK(l)&&!VK(u,l);){var h=l[e];
63if(h){a=h===n;break}u.push(l),l=eS(l)}try{a&&(r[e]=i),i[WV]=1}catch{o[kN]=!1}}}return i}function KNe(r,e,t){var n=e[r];return n===t&&(n=eS(e)[r]),typeof n!==r8&&n8("["+r+"] is not a "+r8),n}function ZNe(r,e,t,n,i){function o(u,h){var p=Dte+e+"."+h,m=function(){var _=this[HM],C=_?_[p]:void 0;return C||(C=WNe(this,h,u,m)||KNe(h,u,m),_&&(_[p]=C)),C.apply(this,arguments)};return m[YV]=1,m}if(!wH(r)){var a=t[HM]=t[HM]||qd(null);if(!wH(a)){var l=a[e]=a[e]||qd(null);a[kN]!==!1&&(a[kN]=!!i),wH(l)||u7(t,function(u){jK(t,u,!1)&&t[u]!==n[u]&&(l[u]=t[u],delete t[u],delete a[Dte+e+"."+u],(!tp(r,u)||r[u]&&!r[u][YV])&&(r[u]=o(r,u)))})}}}function XNe(r,e){if(ON){for(var t=[],n=eS(e);n&&!zK(n)&&!VK(t,n);){if(n===r)return!0;t.push(n),n=eS(n)}return!1}return!0}function Z$(r,e){return tp(r,cb)?r.name||e||Lte:((r||{})[t8]||{}).name||e||Lte}function ol(r,e,t,n){tp(r,cb)||n8("theClass is an invalid class definition.");var i=r[cb];XNe(i,e)||n8("["+Z$(r)+"] not in hierarchy of ["+Z$(e)+"]");var o=null;tp(i,ER)?o=i[ER]:(o=VNe+Z$(r,"_")+"$"+ZV.n,ZV.n++,i[ER]=o);var a=ol[Cge],l=!!a[bH];l&&n&&n[bH]!==void 0&&(l=!!n[bH]);var u=qNe(e),h=YNe(i,e,u,l);t(e,h);var p=!!ON&&!!a[KV];p&&n&&(p=!!n[KV]),ZNe(i,o,e,u,p!==!1)}ol[Cge]=ZV.o;var xge=IMe,QNe=PMe,Bw=xge({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2}),ag="toLowerCase",ir="length",MN="warnToConsole",F1="throwInternal",ST="watch",tS="apply",En="push",Tv="splice",jl="logger",Dx="cancel",eL="initialize",Ww="identifier",i8="removeNotificationListener",o8="addNotificationListener",AP="stringify",Dd="traceId",wu="spanId",Oh="traceFlags",V0="isInitialized",X$="traceHdrMode",T4="getNotifyMgr",NN="getPlugin",Bte="track",rp="name",S4="iKey",CR="time",Mh="processNext",Tge="getProcessTelContext",$te="pollInternalLogs",ov="value",qA="enabled",zte="stopPollingInternalLogs",rS="unload",I4="onComplete",xR="reason",FM="flush",EH="getTraceCtx",Q$="setTraceCtx",Sge="getActiveSpan",a8="setActiveSpan",XV="spanContext",QV="parentSpanContext",jte="parentSpanId",Ige="loggingLevelConsole",UE="join",nS="createNew",I1="teardown",s8="messageId",Cu="message",Age="attributeCountLimit",Rge="suppressTracing",JNe="notImplemented",Y1="diagLog",l8="_doTeardown",DN="update",e_="getNext",LN="setNextPlugin",Yh="split",JV="isChildEvt",jp="data",TR="getCtx",I0="setCtx",BE="config",Pge="call",Vte="itemsReceived",A4="headers",t2="urlString",wI="timeout",b1="status",EE="replace",qte="host",Gte="exception",CE="type",HN="match",eq="setTraceFlags",tq="pathname",Cx="traceState",gA="count",J$="preTriggerDate",ez="getUTCDate",U1="properties",eDe="userAgent",rq="attributes",nq="startTime",iq="duration",RP="toString",kge="handler",Oge="errorHandlers",tDe="evtName",FN="concat",tz="warn",ZC="ingestionendpoint",c8="createEvent",oq="substring",Yte="getAllResponseHeaders",qK="removeItem",rz="getAttribute",Wte="correlationHeaderExcludePatterns",UN="entries",rDe="traceCfg",xE="measurements",CH="sizeInBytes",xH="typeName",r2="exceptions",aM="severityLevel",nz="problemGroup",SR="parsedStack",u8="hasFullStack",d8="assembly",W1="fileName",PP="line",d7="aiDataContract",iz;function nDe(r,e){iz||(iz=HK("AggregationError",function(n,i){i[ir]>1&&(n.errors=i[1])}));var t=r;throw Or(e,function(n,i){t+=`
64`.concat(i," > ").concat(tn(n))}),new iz(t,e||[])}/*!
65 * NevWare21 Solutions LLC - ts-async, 0.6.1
66 * https://github.com/nevware21/ts-async
67 * Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved.
68 * Licensed under the MIT license.
69 */var h8="Promise",GK="rejected";function qf(r,e){return $E(r,function(t){return e?e({status:"fulfilled",rejected:!1,value:t}):t},function(t){return e?e({status:GK,rejected:!0,reason:t}):t})}function $E(r,e,t,n){var i=r;try{if(mv(r))(e||t)&&(i=r.then(e,t));else try{e&&(i=e(r))}catch(o){if(t)i=t(o);else throw o}}finally{n&&Mge(i,n)}return i}function Mge(r,e){var t=r;return e&&(mv(r)?r.finally?t=r.finally(e):t=r.then(function(n){return $E(e(),function(){return n})},function(n){return $E(e(),function(){throw n})}):e()),t}var Nge=["pending","resolving","resolved",GK],Kte="dispatchEvent",R4;function iDe(r){var e;return r&&r.createEvent&&(e=r.createEvent("Event")),!!e&&e.initEvent}function oDe(r,e,t,n){var i=Eu();!R4&&(R4=Ga(!!Vn(iDe,[i]).v));var o=R4.v?i.createEvent("Event"):n?new Event(e):{};if(t&&t(o),R4.v&&o.initEvent(e,!1,!0),o&&r[Kte])r[Kte](o);else{var a=r["on"+e];if(a)a(o);else{var l=di("console");l&&(l.error||l.log)(e,tn(o))}}}var Dge="unhandledRejection",aDe=Dge.toLowerCase(),Zte=[],sDe=0,lDe=10,oz;function Xte(r){return Ar(r)?r.toString():tn(r)}function Lge(r,e,t){var n=JD(arguments,3),i=0,o=!1,a,l=[],u=sDe++,h=!1,p=null,m;function _(F,j){try{Zte.push(u),h=!0,p&&p.cancel(),p=null;var L=r(function(B,Q){l.push(function(){try{var Z=i===2?F:j,ie=Ar(Z)?Z(a):a;mv(ie)?ie.then(B,Q):Ar(Z)?B(ie):i===3?Q(ie):B(ie)}catch(J){Q(J)}}),o&&R()},n);return L}finally{Zte.pop()}}function C(F){return _(void 0,F)}function T(F){var j=F,L=F;return Ar(F)&&(j=function(B){return $E(F&&F(),function(){return B})},L=function(B){return $E(F&&F(),function(){throw B})}),_(j,L)}function S(){return Nge[i]}function R(){if(l.length>0){var F=l.slice();l=[],h=!0,p&&p.cancel(),p=null,e(F)}}
69function O(F,j){return function(L){if(i===j){if(F===2&&mv(L)){i=1,L.then(O(2,1),O(3,1));return}i=F,o=!0,a=L,R(),!h&&F===3&&!p&&(p=Gh(N,lDe))}}}function N(){if(!h)if(h=!0,jMe())process.emit(Dge,a,m);else{var F=ig()||km();!oz&&(oz=Ga(Vn(di,[h8+"RejectionEvent"]).v)),oDe(F,aDe,function(j){return hi(j,"promise",{g:function(){return m}}),j.reason=a,j},!!oz.v)}}m={then:_,catch:C,finally:T},Bm(m,"state",{get:S}),GMe()&&(m[s7(11)]="IPromise");function H(){return"IPromise "+S()+(o?" - "+Xte(a):"")}return m.toString=H,(function(){Ar(t)||gg(h8+": executor is not a function - "+Xte(t));var j=O(3,0);try{t.call(m,O(2,0),j)}catch(L){j(L)}})(),m}function cDe(r){return function(e){var t=JD(arguments,1);return r(function(n,i){try{var o=[],a=1;kb(e,function(l,u){l&&(a++,$E(l,function(h){o[u]=h,--a===0&&n(o)},i))}),a--,a===0&&n(o)}catch(l){i(l)}},t)}}function uDe(r){return Ga(function(e){var t=JD(arguments,1);return r(function(n,i){var o=[],a=1;function l(u,h){a++,qf(u,function(p){p.rejected?o[h]={status:GK,reason:p.reason}:o[h]={status:"fulfilled",value:p.value},--a===0&&n(o)})}try{ni(e)?Or(e,l):hge(e)?kb(e,l):gg("Input is not an iterable"),a--,a===0&&n(o)}catch(u){i(u)}},t)})}function dDe(r,e){var t=e;if(!ba(r)){if(ep(r))t=r;else for(;!ba(r)&&ni(r)&&r.length>0;)if(r=r[0],ep(r)){t=r;break}}return t}function hDe(){var r=setTimeout;return!!(r&&r.clock)}function Hge(r){Or(r,function(e){try{e()}catch{}})}function fDe(r){var e=dDe(r),t=ep(e),n=t?e:0;return function(i){function o(){Hge(i)}t&&n>0?Gh(o,n):hDe()?Gh(o,0):zNe(o)}}function Fge(r,e){return Lge(Fge,fDe(e),r,e)}var az;function pDe(r,e){!az&&(az=Ga(Vn(di,[h8]).v||null));var t=az.v;if(!t)return Fge(r);Ar(r)||gg(h8+": executor is not a function - "+tn(r));var n=0;function i(){return Nge[n]}var o=new t(function(a,l){function u(p){n=2,a(p)}function h(p){n=3,l(p)}r(u,h)});return Bm(o,"state",{get:i}),o}var sz;function BN(r){return Lge(BN,Hge,r)}function gDe(r,e){return!sz&&(sz=uDe(BN)),sz.v(r,e)}var lz;function h_(r,e){return!lz&&(lz=Ga(pDe)),lz.v.call(this,r,e)}var mDe=cDe(h_),$s=void 0,Er="",mA="channels",vu="core",aq="createPerfMgr",IR="disabled",YK="extensionConfig",yA="extensions",cv="processTelemetry",f8="priority",TH="eventsSent",UM="eventsDiscarded",SH="eventsSendRequest",Jx="perfEvent",cz="offlineEventsStored",uz="offlineBatchSent",dz="offlineBatchDrop",p8="getPerfMgr",sq="domain",hz="path",yDe="Not dynamic - ",vDe="REDACTED",Qte=["sig","Signature","AWSAccessKeyId","X-Goog-Signature"],lq="version";function _De(r,e,t){return!r&&hr(r)?e:Zpe(r)?r:Gi(r)[ag]()==="true"}function Uf(r){return{mrg:!0,v:r}}function Jte(r,e){return{set:r,v:e}}function g8(r,e,t){return{fb:t,isVal:r,v:e}}function vc(r,e){return{fb:e,set:_De,v:!!r}}function bDe(r){return{isVal:gn,v:Gi(Er)}}var wDe="getPrototypeOf",EDe=/-([a-z])/g,CDe=/([^\w\d_$])/g,xDe=/^(\d+[\w\d_$])/,AR,Uge=Object[wDe];function m8(r){return!hr(r)}function y8(r){var e=r;return e&&gn(e)&&(e=e[EE](EDe,function(t,n){return n.toUpperCase()}),e=e[EE](CDe,"_"),e=e[EE](xDe,function(t,n){return"_"+n})),e}function Od(r,e){return r&&e?Cs(r,e)!==-1:!1}function kP(r){return r&&r.toISOString()||Er}function Jo(r){return MK(r)?r[rp]:Er}function Ba(r,e,t,n,i){var o=t;return r&&(o=r[e],o!==t&&(!i||i(o))&&(!n||n(t))&&(o=t,r[e]=o)),o}function Th(r,e,t){var n;return r?(n=r[e],!n&&hr(n)&&(n=ba(t)?{}:t,r[e]=n)):n=ba(t)?{}:t,n}function Bge(r,e){var t=null,n=null;return Ar(r)?t=r:n=r,function(){var i=arguments;if(t&&(n=t()),n)return n[e][tS](n,i)}}function TDe(r,e,t){if(r&&e&&cd(r)&&cd(e)){var n=function(o){if(gn(o)){var a=e[o];Ar(a)?(!t||t(o,!0,e,r))&&(r[o]=Bge(e,o)):(!t||t(o,!1,e,r))&&(G1(r,o)&&delete r[o],hi(r,o,{g:function(){return e[o]},s:function(l){e[o]=l}}))}};for(var i in e)n(i)}return r}function v8(r,e,t,n,i){r&&e&&t&&(r[e]=Bge(t,n))}function GA(r,e,t,n){return r&&e&&cd(r)&&ni(t)&&Or(t,function(i){gn(i)&&v8(r,i,e,i)}),r}function SDe(r){return(function(){function e(){var t=this;r&&zi(r,function(n,i){t[n]=i})}return e})()}function $N(r,e){return Vn(hi,[r,s7(11),Ar(e)?{g:e,e:!1}:{v:e,w:!1,e:!1}]),r}function tL(r,e){if(r){var t=Uge(r),n=!1;t&&Vn(function(){var i=$N(qd(t),e);AR||(AR=Ga(pA("ai$ProtoName"))),hi(i,AR.v,{v:!0,w:!1,e:!1}),LK(r,i),n=!0}),n||Vn($N,[r,e])}return r}function IDe(r,e){if(AR){for(;r&&r!==qpe&&!r[AR.v];){var t=QF(r);if(r===t)break;r=t}r[AR.v]&&Vn($N,[r,e])}return r}
69function $ge(r){return r&&XF&&(r=IK(XF({},r))),r}function zge(r,e,t,n,i,o){var a=arguments,l=a[0]||{},u=a[ir],h=!1,p=1;for(u>0&&Zpe(l)&&(h=l,l=a[p]||{},p++),cd(l)||(l={});p<u;p++){var m=a[p],_=ni(m),C=cd(m);for(var T in m){var S=_&&T in m||C&&G1(m,T);if(S){var R=m[T],O=void 0;if(h&&R&&((O=ni(R))||Uh(R))){var N=l[T];O?ni(N)||(N=[]):Uh(N)||(N={}),R=zge(h,N,R)}R!==void 0&&(l[T]=R)}}}return l}function IH(r,e,t){var n=e&&e.featureOptIn&&e.featureOptIn[r];if(r&&n){var i=n.mode;if(i===3)return!0;if(i===2)return!1}return t}function _8(r){try{return r.responseText}catch{}return null}function jge(r,e){return r?"XDomainRequest,Response:"+_8(r)||Er:e}function b8(r,e){return r?"XMLHttpRequest,Status:"+r[b1]+",Response:"+_8(r)||r.response||Er:e}function ere(r,e){return e&&(ep(e)?r=[e][FN](r):ni(e)&&(r=e[FN](r))),r}var ADe="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",tre="withCredentials",RDe="timeout";function PDe(r,e,t,n,i,o){i===void 0&&(i=!1);function a(u,h,p){try{u[h]=p}catch{}}var l=new XMLHttpRequest;return a(l,ADe,n),t&&a(l,tre,t),l.open(r,e,!i),t&&a(l,tre,t),!i&&o&&a(l,RDe,o),l}function kDe(r){var e={};if(gn(r)){var t=wa(r)[Yh](/[\r\n]+/);Or(t,function(n){if(n){var i=Cs(n,": ");if(i!==-1){var o=wa(n.substring(0,i))[ag](),a=wa(n[oq](i+1));e[o]=a}else e[wa(n)]=1}})}return e}function fz(r,e,t){if(!r[t]&&e&&e.getResponseHeader){var n=e.getResponseHeader(t);n&&(r[t]=wa(n))}return r}var ODe="kill-duration",MDe="kill-duration-seconds",NDe="time-delta-millis";function pz(r,e){var t={};return r[Yte]?t=kDe(r[Yte]()):e&&(t=fz(t,r,NDe),t=fz(t,r,ODe),t=fz(t,r,MDe)),t}function N1(r){(isNaN(r)||r<0)&&(r=0),r=UK(r);var e=Er+r%1e3,t=Er+$d(r/1e3)%60,n=Er+$d(r/(1e3*60))%60,i=Er+$d(r/(1e3*60*60))%24,o=$d(r/(1e3*60*60*24));return e=e[ir]===1?"00"+e:e[ir]===2?"0"+e:e,t=t[ir]<2?"0"+t:t,n=n[ir]<2?"0"+n:n,i=i[ir]<2?"0"+i:i,(o>0?o+".":Er)+i+":"+n+":"+t+"."+e}function DDe(r,e,t,n,i){return!i&&gn(r)&&(r==="Script error."||r==="Script error")}var LDe="documentMode",HDe="location",FDe="console",Vge="JSON",UDe="crypto",BDe="msCrypto",$De="ReactNative",cq="msie",uq="trident/",gz,mz,yz,vz,_z;function zDe(r,e){var t=!1;if(r){try{if(t=e in r,!t){var n=r[q1];n&&(t=e in n)}}catch{}if(!t)try{var i=new r;t=!ba(i[e])}catch{}}return t}function WK(){return _z||(_z=QD(function(){var r=XE()||{};return r[eDe]||Er})),_z.v}function q0(r){return typeof location===Vpe&&location?location:di(HDe)}function jDe(){return typeof console!==SK?console:di(FDe)}function rL(){return!!(typeof JSON===Vpe&&JSON||di(Vge)!==null)}function yv(){return rL()?JSON||di(Vge):null}function VDe(){return di(UDe)}function qDe(){return di(BDe)}function GDe(){var r=XE();return r&&r.product?r.product===$De:!1}function dq(){var r=WK();if(!gz||r!==mz){mz=r;var e=mz[ag]();gz=Ga(Od(e,cq)||Od(e,uq))}return gz.v}function qge(r){r===void 0&&(r=null),r||(r=WK());var e=(r||Er)[ag]();if(Od(e,cq)){var t=Eu()||{};return DM(parseInt(e[Yh](cq)[1]),t[LDe]||0)}else if(Od(e,uq)){var n=parseInt(e[Yh](uq)[1]);if(n)return n+4}return null}function sM(r){return(!vz||r===!1)&&(vz=Ga($Me()&&!!XE().sendBeacon)),vz.v}function KK(r){var e=!1;try{e=!!di("fetch");var t=di("Request");e&&r&&t&&(e=zDe(t,"keepalive"))}catch{}return e}function YDe(){return yz||(yz=Sm(function(){var r=typeof XDomainRequest!==SK;return!!r})),yz.v}function Gge(r,e){var t=[];return r&&Or(r,function(n){n[rp]&&n[rp]===e&&t[En](n)}),t}function WDe(r){var e=Yge(r);return e[ir]>0?e[0]:null}function Yge(r){var e=[],t=Eu();return t&&r&&Or(Gge(t.querySelectorAll("meta"),r),function(n){e[En](n.content)}),e}function KDe(r){var e,t=Wge(r);return t[ir]>0&&(e=t[0]),e}function Wge(r){var e=[],t=ug();return t&&t.getEntriesByType&&Or(t.getEntriesByType("navigation")||[],function(n){Or(Gge(n.serverTiming,r),function(i){var o=i.description;hr(o)||e[En](o)})}),e}function ZDe(r,e){return r&&r.dispatchEvent&&e?(r.dispatchEvent(e),!0):!1}function XDe(r,e){var t=null,n={detail:e||null};if(Ar(CustomEvent))t=new CustomEvent(r,n);else{var i=Eu();i&&i[c8]&&(t=i[c8]("CustomEvent"),t.initCustomEvent(r,!0,!0,n))}return t}function QDe(r,e,t){var n=km();if(n&&n.CustomEvent)try{var i={cfg:e||null,customDetails:t||null};return ZDe(n,XDe(r,i))}catch{}return!1}function JDe(r){return r.replace(/^([a-zA-Z][a-zA-Z0-9+.-]*:\/\/)([^:@]{1,200}):([^@]{1,200})@(.*)$/,"$1REDACTED:REDACTED@$4")}function eLe(r,e){var t,n=Cs(r,"?");
69if(n===-1)return r;var i=e?e.redactUrls:void 0;i===3?t=Qte[FN](e.redactQueryParams):i===4?t=e.redactQueryParams:t=Qte;var o=Fh(r,0,n+1),a=Fh(r,n+1),l=Er,u=Cs(a,"#");u!==-1&&(l=Fh(a,u),a=Fh(a,0,u));for(var h=!1,p=0;p<t[ir];p++){var m=t[p]+"=";if(Cs(a,m)!==-1){h=!0;break}}if(!h)return r;var _=[],C=!1;if(a&&a[ir])for(var T=a[Yh]("&"),p=0;p<T[ir];p++){var S=T[p];if(S){var R=Cs(S,"=");if(R===-1)_[En](S);else{var O=S[oq](0,R),N=S[oq](R+1);if(N===Er)_[En](S);else{for(var H=!1,F=0;F<t[ir];F++)if(O===t[F]){H=!0,C=!0;break}H?_[En](O+"="+vDe):_[En](S)}}}}return C?o+_[UE]("&")+l:r}function Qp(r,e){if(!r||!gn(r)||Cs(r," ")!==-1)return r;var t=e?e.redactUrls:void 0,n=t===!1||t===2;if(n)return r;var i=Cs(r,"@")!==-1,o=Cs(r,"?")!==-1;if(!i&&!o)return r;t===5&&(o=!1),t===6&&(i=!1);try{var a=r;return i&&(a=JDe(r)),o&&(a=eLe(a,e)),a}catch{return r}}var Kge=4294967296,TE=4294967295,Zge=123456789,Xge=987654321,Qge=!1,lM=Zge,cM=Xge;function tLe(r){r<0&&(r>>>=0),lM=Zge+r&TE,cM=Xge-r&TE,Qge=!0}function rLe(){try{var r=$m()&2147483647;tLe((NK()*Kge^r)+r)}catch{}}function nLe(r){return $d(zN()/TE*(r+1))>>>0}function zN(r){var e=0,t=VDe()||qDe();return t&&t.getRandomValues&&(e=t.getRandomValues(new Uint32Array(1))[0]&TE),e===0&&dq()&&(Qge||rLe(),e=iLe()&TE),e===0&&(e=$d(Kge*NK()|0)),e>>>=0,e}function iLe(r){cM=36969*(cM&65535)+(cM>>16)&TE,lM=18e3*(lM&65535)+(lM>>16)&TE;var e=(cM<<16)+(lM&65535)>>>0&TE|0;return e>>>=0,e}function ZK(r){r===void 0&&(r=22);for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=zN()>>>0,n=0,i=Er;i[ir]<r;)n++,i+=e.charAt(t&63),t>>>=6,n===5&&(t=(zN()<<2&4294967295|t&3)>>>0,n=0);return i}var Jge="3.4.1",oLe="."+ZK(6),aLe=0;function eme(r){return r.nodeType===1||r.nodeType===9||!+r.nodeType}function sLe(r,e){var t=e[r.id];if(!t){t={};try{eme(e)&&hi(e,r.id,{e:!1,v:t})}catch{}}return t}function vv(r,e){return e===void 0&&(e=!1),y8(r+aLe+++(e?"."+Jge:Er)+oLe)}function tme(r){var e={id:vv("_aiData-"+(r||Er)+"."+Jge),accept:function(t){return eme(t)},get:function(t,n,i,o){var a=t[e.id];return a?a[y8(n)]:(o&&(a=sLe(e,t),a[y8(n)]=i),i)},kill:function(t,n){if(t&&t[n])try{delete t[n]}catch{}}};return e}function AH(r){return r&&cd(r)&&!ni(r)&&(r.isVal||r.fb||G1(r,"v")||G1(r,"mrg")||G1(r,"ref")||r.set)}function rme(r,e,t){var n,i=t.dfVal||uMe;if(e&&t.fb){var o=t.fb;ni(o)||(o=[o]);for(var a=0;a<o[ir];a++){var l=o[a],u=e[l];if(i(u)?n=u:r&&(u=r.cfg[l],i(u)&&(n=u),r.set(r.cfg,Gi(l),u)),i(n))break}}return!i(n)&&i(t.v)&&(n=t.v),n}function hq(r,e,t){var n=t;if(t&&AH(t)&&(n=rme(r,e,t)),n){AH(n)&&(n=hq(r,e,n));var i;ni(n)?(i=[],i[ir]=n[ir]):Uh(n)&&(i={}),i&&(zi(n,function(o,a){a&&AH(a)&&(a=hq(r,e,a)),i[o]=a}),n=i)}return n}function XK(r,e,t,n){var i,o,a,l=n,u,h,p,m;AH(l)?(i=l.isVal,o=l.set,p=l.rdOnly,m=l.blkVal,u=l.mrg,h=l.ref,!h&&ba(h)&&(h=!!u),a=rme(r,e,l)):a=n,m&&r.blkVal(e,t);var _,C=!0,T=e[t];(T||!hr(T))&&(_=T,C=!1,i&&_!==a&&!i(_)&&(_=a,C=!0),o&&(_=o(_,a,e),C=_===a)),C?a?_=hq(r,e,a):_=a:(Uh(_)||ni(a))&&u&&a&&(Uh(a)||ni(a))&&zi(a,function(S,R){XK(r,_,S,R)}),r.set(e,t,_),h&&r.ref(e,t),p&&r.rdOnly(e,t)}var zE=l7("[[ai_dynCfg_1]]"),nme=l7("[[ai_blkDynCfg_1]]"),lLe=l7("[[ai_frcDynCfg_1]]");function ime(r){if(r){var e;if(ni(r)?(e=[],e[ir]=r[ir]):Uh(r)&&(e={}),e)return zi(r,function(t,n){e[t]=ime(n)}),e}return r}function cLe(r){if(r){var e=r[zE]||r;if(e.cfg&&(e.cfg===r||e.cfg[zE]===e))return e}return null}function uLe(r){if(r&&(Uh(r)||ni(r)))try{r[nme]=!0}catch{}return r}function bz(r,e,t){var n=!1;return t&&!r[e.blkVal]&&(n=t[lLe],!n&&!t[nme]&&(n=Uh(t)||ni(t))),n}function ome(r){gg("InvalidAccess:"+r)}var dLe=["push","pop","shift","unshift","splice"],jN=function(r,e,t,n){r&&r[F1](3,108,"".concat(t," [").concat(e,"] failed - ")+tn(n))};function hLe(r,e,t){ni(e)&&Or(dLe,function(n){var i=e[n];e[n]=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var l=i[tS](this,o);return E8(r,e,t,"Patching"),l}})}function w8(r,e){var t=aNe(r,e);return t&&t.get}function fLe(r,e,t,n){var i={n:t,h:[],trk:function(h){h&&h.fn&&(Da(i.h,h)===-1&&i.h[En](h),r.trk(h,i))},clr:function(h){var p=Da(i.h,h);p!==-1&&i.h[Tv](p,1)}},o=!0,a=!1;function l(){o&&(a=a||bz(l,r,n),n&&!n[zE]&&a&&(n=E8(r,n,t,"Convert
69ing")),o=!1);var h=r.act;return h&&i.trk(h),n}l[r.prop]={chng:function(){r.add(i)}};function u(h){if(n!==h){l[r.ro]&&!r.upd&&ome("["+t+"] is read-only:"+tn(e)),o&&(a=a||bz(l,r,n),o=!1);var p=a&&l[r.rf];if(a)if(p){zi(n,function(_){n[_]=h?h[_]:$s});try{zi(h,function(_,C){h7(r,n,_,C)}),h=n}catch(_){jN((r.hdlr||{})[jl],t,"Assigning",_),a=!1}}else n&&n[zE]&&zi(n,function(_){var C=w8(n,_);if(C){var T=C[r.prop];T&&T.chng()}});if(h!==n){var m=h&&bz(l,r,h);!p&&m&&(h=E8(r,h,t,"Converting")),n=h,a=m}r.add(i)}}hi(e,i.n,{g:l,s:u})}function h7(r,e,t,n){if(e){var i=w8(e,t),o=i&&!!i[r.prop];o?e[t]=n:fLe(r,e,t,n)}return e}function wz(r,e,t,n){if(e){var i=w8(e,t),o=i&&!!i[r.prop],a=n&&n[0],l=n&&n[1],u=n&&n[2];if(!o){if(u)try{uLe(e)}catch(h){jN((r.hdlr||{})[jl],t,"Blocking",h)}try{h7(r,e,t,e[t]),i=w8(e,t)}catch(h){jN((r.hdlr||{})[jl],t,"State",h)}}a&&(i[r.rf]=a),l&&(i[r.ro]=l),u&&(i[r.blkVal]=!0)}return e}function E8(r,e,t,n){try{zi(e,function(i,o){h7(r,e,i,o)}),e[zE]||(Bm(e,zE,{get:function(){return r.hdlr}}),hLe(r,e,t))}catch(i){jN((r.hdlr||{})[jl],t,n,i)}return e}var n2="[[ai_",i2="]]";function pLe(r){var e=pA(n2+"get"+r.uid+i2),t=pA(n2+"ro"+r.uid+i2),n=pA(n2+"rf"+r.uid+i2),i=pA(n2+"blkVal"+r.uid+i2),o=pA(n2+"dtl"+r.uid+i2),a=null,l=null,u;function h(C,T){var S=u.act;try{u.act=C,C&&C[o]&&(Or(C[o],function(O){O.clr(C)}),C[o]=[]),T({cfg:r.cfg,set:r.set.bind(r),setDf:r.setDf.bind(r),ref:r.ref.bind(r),rdOnly:r.rdOnly.bind(r)})}catch(O){var R=r[jl];throw R&&R[F1](1,107,tn(O)),O}finally{u.act=S||null}}function p(){if(a){var C=a;a=null,l&&l[Dx](),l=null;var T=[];
69if(Or(C,function(S){if(S&&(S[o]&&(Or(S[o],function(R){R.clr(S)}),S[o]=null),S.fn))try{h(S,S.fn)}catch(R){T[En](R)}}),a)try{p()}catch(S){T[En](S)}T[ir]>0&&nDe("Watcher error(s): ",T)}}function m(C){if(C&&C.h[ir]>0){a||(a=[]),l||(l=Gh(function(){l=null,p()},0));for(var T=0;T<C.h[ir];T++){var S=C.h[T];S&&Da(a,S)===-1&&a[En](S)}}}function _(C,T){if(C){var S=C[o]=C[o]||[];Da(S,T)===-1&&S[En](T)}}return u={prop:e,ro:t,rf:n,blkVal:i,hdlr:r,add:m,notify:p,use:h,trk:_},u}function gLe(r,e){var t={fn:e,rm:function(){t.fn=null,r=null,e=null}};return hi(t,"toJSON",{v:function(){return"WatcherHandler"+(t.fn?Er:"[X]")}}),r.use(t,e),t}function mLe(r,e,t){var n=cLe(e);if(n)return n;var i=vv("dyncfg",!0),o=e&&t!==!1?e:ime(e),a;function l(){a.notify()}function u(R,O,N){try{R=h7(a,R,O,N)}catch(H){jN(r,O,"Setting value",H)}return R[O]}function h(R){return gLe(a,R)}function p(R,O){a.use(null,function(N){var H=a.upd;try{ba(O)||(a.upd=O),R(N)}finally{a.upd=H}})}function m(R,O){var N;return wz(a,R,O,(N={},N[0]=!0,N))[O]}function _(R,O){var N;return wz(a,R,O,(N={},N[1]=!0,N))[O]}function C(R,O){var N;return wz(a,R,O,(N={},N[2]=!0,N))[O]}function T(R,O){return O&&zi(O,function(N,H){XK(S,R,N,H)}),R}var S={uid:null,cfg:o,logger:r,notify:l,set:u,setDf:T,watch:h,ref:m,rdOnly:_,blkVal:C,_block:p};return hi(S,"uid",{c:!1,e:!1,w:!1,v:i}),a=pLe(S),E8(a,o,"config","Creating"),S}function yLe(r,e){r?(r[MN](e),r[F1](2,108,e)):ome(e)}function zm(r,e,t,n){var i=mLe(t,r||{},n);return e&&i.setDf(i.cfg,e),i}function Tl(r,e,t){var n=r[zE]||r;return n.cfg&&(n.cfg===r||n.cfg[zE]===n)?n[ST](e):(yLe(t,yDe+tn(r)),zm(r,null,t)[ST](e))}var fE="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",vLe=500,ame="sampleRate",Ez="ProcessLegacy",rre="http.method",QK="https://dc.services.visualstudio.com",RR="/v2/track",f_="not_specified",Cz="iKey",xz=[TH,UM,SH,Jx],C8=null,P4;function _Le(r,e){return function(){var t=arguments,n=sme(e);if(n){var i=n.listener;i&&i[r]&&i[r][tS](i,t)}}}function bLe(){var r=di("Microsoft");return r&&(C8=r.ApplicationInsights),C8}function sme(r){var e=C8;return!e&&r.disableDbgExt!==!0&&(e=C8||bLe()),e?e.ChromeDbgExt:null}function wLe(r){if(!P4){P4={};for(var e=0;e<xz[ir];e++)P4[xz[e]]=_Le(xz[e],r)}return P4}var EI,lme="warnToConsole",ELe="AI (Internal): ",CLe="AI: ",xLe="AITR_",TLe={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},SLe=(EI={},EI[0]=null,EI[1]="errorToConsole",EI[2]=lme,EI[3]="debugToConsole",EI);function nre(r){return r?'"'+r[EE](/\"/g,Er)+'"':Er}function Tz(r,e){var t=jDe();if(t){var n="log";t[r]&&(n=r),Ar(t[n])&&t[n](e)}}var VN=(function(){function r(e,t,n,i){n===void 0&&(n=!1);var o=this;o[s8]=e,o[Cu]=(n?CLe:ELe)+e;var a=Er;rL()&&(a=yv()[AP](i));var l=(t?" message:"+nre(t):Er)+(i?" props:"+nre(a):Er);o[Cu]+=l}return r.dataType="MessageData",r})();function vk(r,e){return(r||{})[jl]||new x8(e||(r||{})[BE])}var x8=(function(){function r(e){this.identifier="DiagnosticLogger",this.queue=[];var t=0,n={},i,o,a,l,u;ol(r,this,function(h){u=m(e||{}),h.consoleLoggingLevel=function(){return i},h[F1]=function(T,S,R,O,N){N===void 0&&(N=!1);var H=new VN(S,R,N,O);if(l)throw tn(H);var F=SLe[T]||lme;if(ba(H[Cu]))C("throw"+(T===1?"Critical":"Warning"),H);else{if(N){var j=+H[s8];!n[j]&&i>=T&&(h[F](H[Cu]),n[j]=!0)}else i>=T&&h[F](H[Cu]);p(T,H)}},h.debugToConsole=function(T){Tz("debug",T),C("warning",T)},h[MN]=function(T){Tz("warn",T),C("warning",T)},h.errorToConsole=function(T){Tz("error",T),C("error",T)},h.resetInternalMessageCount=function(){t=0,n={}},h.logInternalMessage=p,h[rS]=function(T){u&&u.rm(),u=null},hi(h,"dbgMode",{g:function(){return l}});function p(T,S){if(!_()){var R=!0,O=xLe+S[s8];if(n[O]?R=!1:n[O]=!0,R&&(T<=o&&(h.queue[En](S),t++,C(T===1?"error":"warn",S)),t===a)){var N="Internal events throttle limit per PageView reached for this app.",H=new VN(23,N,!1);h.queue[En](H),T===1?h.errorToConsole(N):h[MN](N)}}}function m(T){return Tl(zm(T,TLe,h).cfg,function(S){var R=S.cfg;i=R[Ige],o=R.loggingLevelTelemetry,a=R.maxMessageLimit,l=R.enableDebug})}function _(){return t>=a}function C(T,S){var R=sme(e||{});R&&R[Y1]&&R[Y1](T,S)}})}return r.__ieDyn=1,r})();function JK(r){return r||new x8}function Hr(r,e,t,n,i,o){o===void 0&&(o=!1),JK(r)[F1](e,t,n,i,o)}function IT(r,e){JK(r)[MN](e)}function ILe(r,e,t){JK(r).logInternalMessage(e,t)}function qN(){}
69var cme=32,ALe=512,ume="[a-z]",RLe="[a-z\\d]",eZ="[a-z\\d_\\-*\\/]",PLe="("+ume+eZ+"{0,255})",kLe="("+RLe+eZ+"{0,240})",OLe="("+ume+eZ+"{0,13})",MLe="("+kLe+"@"+OLe+")",ire="!-+\\--<>-~",NLe="[ "+ire+"]{0,255}["+ire+"]",ore=new RegExp("^\\s*((?:"+PLe+"|"+MLe+")=("+NLe+"))\\s*$");function dme(r){if(r){ore.lastIndex=0;var e=ore.exec(r);if(e&&e[ir]>=7&&e[1]&&e[6]){var t=e[3]?1:0,n=null;t===1&&(n={tenantId:e[4],systemId:e[5]});var i={type:t,key:e[2],multiTenant:n,value:e[6]};return i}}return null}function DLe(r){var e=[];if(r){var t=[];Or(c7(r,","),function(n){var i=dme(n);if(i&&Da(t,i.key)===-1&&(e[En](i),t[En](i.key),e[ir]>=cme))return-1})}return e}function are(r,e){for(var t=0;t<r[ir];t++)if(r[t].key===e)return t;return-1}function sre(r,e){var t=[],n=[];return Or(r,function(i){i[ov]!=null?t[En](i.key):n[En](i.key)}),e&&Or(e.keys,function(i){Da(t,i)===-1&&Da(n,i)===-1&&t[En](i)}),t}function LLe(r,e){var t,n=!0;return r&&r[ir]>0&&Or(r,function(i){i[ov]!=null?n=!1:(t||(t=[]),t[En](i.key))}),n&&e&&(n=e.isEmpty,!n&&t&&t[ir]>0&&(n=!0,Or(e.keys,function(i){if(Da(t,i)===-1)return n=!1,-1}))),n}function HLe(r){return!!(r&&ni(r.keys)&&Ar(r.get)&&Ar(r.set)&&Ar(r.del)&&Ar(r.hdrs))}function uv(r,e){var t=oNe(DLe,[],[r||Er]);function n(p){var m,_=t.v,C=are(_,p);if(C!==-1){var T=_[C][ov];T!=null&&(m=T)}else e&&(m=e.get(p));return m}function i(p){if(p){var m=t.v,_=are(m,p.key);return _!==-1&&m[Tv](_,1),m.unshift(p),t=Ga(m),0}return-1}function o(p,m){var _;return p&&gn(p)&&!hr(m)&&gn(m)&&(_=dme(p+"="+m)),i(_)}function a(p){i({type:2,key:p})}function l(p,m,_){var C=[],T=Er,S=0,R=0;m=m||cme,_=_||ALe;var O=t.v;return Or(sre(O,e),function(N){var H=n(N);if(!hr(H)&&gn(H)){S++;var F=N+"="+H,j=F[ir];if(R+1+j>=_){if(C[En](T),p&&C[ir]<=p)return-1;T=Er,R=0}if(T[ir]>0&&(T+=",",R++),T+=F,R+=j,S>=m)return-1}}),T&&C[En](T),C}var u={keys:[],isEmpty:!1,get:n,set:o,del:a,hdrs:l,child:function(){return uv(null,u)}};function h(){var p=u.hdrs(1);return p[ir]>0?p[0]:Er}return Rb(u,{keys:{g:function(){return sre(t.v,e)}},isEmpty:{g:function(){return LLe(t.v,e)}},toString:{v:h,e:!1},_p:{v:e,e:!1}}),$N(u,h),u}function FLe(){var r="tracestate",e=null,t=Yge(r);if(t[ir]>0&&(e=uv(t[UE](","))),!e){var n=Wge(r);n[ir]>0&&(e=uv(n[UE](",")))}return e}function iS(){for(var r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],e=Er,t,n=0;n<4;n++)t=zN(),e+=r[t&15]+r[t>>4&15]+r[t>>8&15]+r[t>>12&15]+r[t>>16&15]+r[t>>20&15]+r[t>>24&15]+r[t>>28&15];var i=r[8+(zN()&3)|0];return Yw(e,0,8)+Yw(e,9,4)+"4"+Yw(e,13,3)+i+Yw(e,16,3)+Yw(e,19,12)}var lre=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]{1,64})?$/i,fq="00",hme="ff",GN="00000000000000000000000000000000",YN="0000000000000000";function nL(r,e,t){return r&&r[ir]===e&&r!==t?!!r.match(/^[\da-f]*$/i):!1}function cre(r,e,t){return nL(r,e)?r:t}function ULe(r){(isNaN(r)||r<0||r>255)&&(r=1);for(var e=r[RP](16);e[ir]<2;)e="0"+e;return e}function ure(r,e,t,n){return{version:nL(n,2,hme)?n:fq,traceId:OP(r)?r:iS(),spanId:MP(e)?e:JF(iS(),16),traceFlags:!hr(t)&&t>=0&&t<=255?t:1}}function dre(r,e){if(!r||(ni(r)&&(r=r[0]||Er),!r||!gn(r)||r[ir]>8192))return null;if(Cs(r,",")!==-1){var t=r[Yh](",");r=t[0]}lre.lastIndex=0;var n=lre.exec(wa(r));return!n||n[1]===hme||n[2]===GN||n[3]===YN?null:{version:(n[1]||Er)[ag](),traceId:(n[2]||Er)[ag](),spanId:(n[3]||Er)[ag](),traceFlags:parseInt(n[4],16)}}function OP(r){return nL(r,32,GN)}function MP(r){return nL(r,16,YN)}function hre(r){if(r){var e=ULe(r[Oh]);nL(e,2)||(e="01");var t=r[lq]||fq;return t!=="00"&&t!=="ff"&&(t=fq),"".concat(t.toLowerCase(),"-").concat(cre(r.traceId,32,GN).toLowerCase(),"-").concat(cre(r.spanId,16,YN).toLowerCase(),"-").concat(e.toLowerCase())}return Er}function BLe(r){var e="traceparent",t=dre(WDe(e));return t||(t=dre(KDe(e))),t}function $Le(r){var e=r.getElementsByTagName("script"),t=[];return Or(e,function(n){var i=n[rz]("src");if(i){var o=n[rz]("crossorigin"),a=n.hasAttribute("async")===!0,l=n.hasAttribute("defer")===!0,u=n[rz]("referrerpolicy"),h={url:i};o&&(h.crossOrigin=o),a&&(h.async=a),l&&(h.defer=l),u&&(h.referrerPolicy=u),t[En](h)}}),t}function YA(r,e){if(r&&r[rS])return r[rS](e)}function fme(r,e,t){var n;return t||(n=h_(function(i){t=i})),r&&d_(r)>0?qf(YA(r[0],e),function(){fme(JD(r,1),e,t)}):t(),n}var Sz,hw,fre="toGMTString",pre="toUTCString",tZ="cookie",Iz="expires",gre="isCookieUseDisabled",WN="disableCookiesUsage",WA="_ckMgr",k4=null,Az=null,mre=null,t_,yre={},T8={},zLe=(Sz={cookieCfg:Uf((hw={},hw[sq]={fb:"cookieDomain",dfVal:m8},hw.path={fb:"cookiePath",dfVal:m8},hw.enabled=$s,hw.ignoreCookies=$s,hw.blockedCookies=$s,hw.disableCookieDefer=!1,hw)),cookieDomain:$s,cookiePath:$s},Sz[WN]=$s,Sz);function rZ(){!t_&&(t_=QD(function(){return Eu()}))}function jLe(r,e){var t=RH[WA]||T8[WA];return t||(t=RH[WA]=RH(r,e),T8[WA]=t),t}function O4(r){return r?r.isEnabled():!0}function pme(r,e){return e&&r&&ni(r.ignoreCookies)?Da(r.ignoreCookies,e)!==-1:!1}function vre(r,e){return e&&r&&ni(r.blockedCookies)&&Da(r.blockedCookies,e)!==-1?!0:pme(r,e)}function _re(r,e){var t=e[qA];if(hr(t)){var n=void 0;ba(r[gre])||(n=!r[gre]),ba(r[WN])||(n=!r[WN]),t=n}return t}function f7(r,e){var t;return r&&(t=r.getCookieMgr()),t||(t=jLe(e,(r||{})[jl])),t}function RH(r,e){var t,n,i,o,a,l,u,h,p=[];function m(R){var O,N=(O={},O[hz]=R||"/",O[Iz]="Thu, 01 Jan 1970 00:00:01 GMT",O);return dq()||(N["max-age"]="0"),wre(Er,N)}function _(R,O,N,H){var F={},j=wa(R||Er),L=Cs(j,";");if(L!==-1&&(j=wa(JF(R,L)),F=gme(Fh(R,L+1))),Ba(F,sq,N||i,WF,ba),!hr(O)){var B=dq();if(ba(F[Iz])){var Q=$m(),Z=Q+O*1e3;if(Z>0){var ie=new Date;ie.setTime(Z),Ba(F,Iz,bre(ie,B?fre:pre)||bre(ie,B?fre:pre)||Er,WF)}}B||Ba(F,"max-age",Er+O,null,ba)}var J=q0();return J&&J.protocol==="https:"&&(Ba(F,"secure",null,null,ba),Az===null&&(Az=!qLe(WK())
69),Az&&Ba(F,"SameSite","None",null,ba)),Ba(F,hz,H||n,null,ba),wre(j,F)}function C(R){if(p)for(var O=p[ir]-1;O>=0;O--)p[O].n===R&&p[Tv](O,1)}function T(){Rz(e)&&p&&(Or(p,function(R){vre(t,R.n)||(R.o===0?u(R.n,R.v):R.o===1&&h(R.n,R.v))}),p=[])}r=zm(r||T8,null,e).cfg,o=Tl(r,function(R){R.setDf(R.cfg,zLe),t=R.ref(R.cfg,"cookieCfg"),n=t[hz]||"/",i=t[sq],t.disableCookieDefer?p=null:p===null&&(p=[]);var O=a;a=_re(r,t)!==!1,l=t.getCookie||VLe,u=t.setCookie||Ere,h=t.delCookie||Ere,!O&&a&&p&&T()},e);var S={isEnabled:function(){var R=_re(r,t)!==!1&&a&&Rz(e),O=T8[WA];return R&&O&&S!==O&&(R=O4(O)),R},setEnabled:function(R){t[qA]=R,ba(r[WN])||(r[WN]=!R)},set:function(R,O,N,H,F){var j=!1,L=vre(t,R);if(!L){var B=_(O,N,H,F);O4(S)?(u(R,B),j=!0):p&&(C(R),p[En]({n:R,o:0,v:B}),j=!0)}return j},get:function(R){var O=Er,N=pme(t,R);if(!N){if(O4(S))O=l(R);else if(p)for(var H=p[ir]-1;H>=0;H--){var F=p[H];if(F.n===R){if(F.o===0){var j=F.v,L=Cs(j,";");O=wa(L!==-1?JF(j,L):j)}break}}}return O},del:function(R,O){var N=!1;return O4(S)?N=S.purge(R,O):p&&(C(R),p[En]({n:R,o:1,v:m(O)}),N=!0),N},purge:function(R,O){var N=!1;return Rz(e)&&(h(R,m(O)),N=!0),N},unload:function(R){o&&o.rm(),o=null,p=null}};return S[WA]=S,S}function Rz(r){if(k4===null){k4=!1,!t_&&rZ();try{var e=t_.v||{};k4=e[tZ]!==void 0}catch(t){Hr(r,2,68,"Cannot access document.cookie - "+Jo(t),{exception:tn(t)})}}return k4}function gme(r){var e={};if(r&&r[ir]){var t=wa(r)[Yh](";");Or(t,function(n){if(n=wa(n||Er),n){var i=Cs(n,"=");i===-1?e[n]=null:e[wa(JF(n,i))]=wa(Fh(n,i+1))}})}return e}function bre(r,e){return Ar(r[e])?r[e]():null}function wre(r,e){var t=r||Er;return zi(e,function(n,i){t+="; "+n+(hr(i)?Er:"="+i)}),t}function VLe(r){var e=Er;if(!t_&&rZ(),t_.v){var t=t_.v[tZ]||Er;mre!==t&&(yre=gme(t),mre=t),e=wa(yre[r]||Er)}return e}function Ere(r,e){!t_&&rZ(),t_.v&&(t_.v[tZ]=r+"="+e)}function qLe(r){return gn(r)?!!(Od(r,"CPU iPhone OS 12")||Od(r,"iPad; CPU OS 12")||Od(r,"Macintosh; Intel Mac OS X 10_14")&&Od(r,"Version/")&&Od(r,"Safari")||Od(r,"Macintosh; Intel Mac OS X 10_14")&&vge(r,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||Od(r,"Chrome/5")||Od(r,"Chrome/6")||Od(r,"UnrealEngine")&&!Od(r,"Chrome")||Od(r,"UCBrowser/12")||Od(r,"UCBrowser/11")):!1}var GLe={perfEvtsSendAll:!1};function YLe(r){r.h=null;var e=r.cb;r.cb=[],Or(e,function(t){Vn(t.fn,[t.arg])})}function fw(r,e,t,n){Or(r,function(i){i&&i[e]&&(t?(t.cb[En]({fn:n,arg:i}),t.h=t.h||Gh(YLe,0,t)):Vn(n,[i]))})}var WLe=(function(){function r(e){this.listeners=[];var t,n,i=[],o={h:null,cb:[]},a=zm(e,GLe);n=a[ST](function(l){t=!!l.cfg.perfEvtsSendAll}),ol(r,this,function(l){hi(l,"listeners",{g:function(){return i}}),l[o8]=function(u){i[En](u)},l[i8]=function(u){for(var h=Da(i,u);h>-1;)i[Tv](h,1),h=Da(i,u)},l[TH]=function(u){fw(i,TH,o,function(h){h[TH](u)})},l[UM]=function(u,h,p){fw(i,UM,o,function(m){m[UM](u,h,p)})},l[SH]=function(u,h){fw(i,SH,h?o:null,function(p){p[SH](u,h)})},l[Jx]=function(u){u&&(t||!u[JV]())&&fw(i,Jx,null,function(h){u.isAsync?Gh(function(){return h[Jx](u)},0):h[Jx](u)})},l[cz]=function(u){u&&u[ir]&&fw(i,cz,o,function(h){h[cz](u)})},l[uz]=function(u){u&&u[jp]&&fw(i,uz,o,function(h){h[uz](u)})},l[dz]=function(u,h){if(u>0){var p=h||0;fw(i,dz,o,function(m){m[dz](u,p)})}},l[rS]=function(u){var h=function(){n&&n.rm(),n=null,i=[],o.h&&o.h[Dx](),o.h=null,o.cb=[]},p;if(fw(i,"unload",null,function(m){var _=m[rS](u);_&&(p||(p=[]),p[En](_))}),p)return h_(function(m){return qf(mDe(p),function(){h(),m()})});h()}})}return r.__ieDyn=1,r})(),PR="ctx",pq="ParentContextKey",BM="ChildrenContextKey",KLe=null,PH=(function(){function r(e,t,n){var i=this;if(i.start=$m(),i[rp]=e,i.isAsync=n,i[JV]=function(){return!1},Ar(t)){var o;hi(i,"payload",{g:function(){return!o&&Ar(t)&&(o=t(),t=null),o}})}i[TR]=function(a){return a?a===r[pq]||a===r[BM]?i[a]:(i[PR]||{})[a]:null},i[I0]=function(a,l){if(a)if(a===r[pq])i[a]||(i[JV]=function(){return!0}),i[a]=l;else if(a===r[BM])i[a]=l;else{var u=i[PR]=i[PR]||{};u[a]=l}},i.complete=function(){var a=0,l=i[TR](r[BM]);if(ni(l))for(var u=0;u<l[ir];u++){var h=l[u];h&&(a+=h[CR])}i[CR]=$m()-i.start,i.exTime=i[CR]-a,i.complete=qN}}return r.ParentContextKey="parent",r.ChildrenContextKey="childEvts",r})(),ZLe=(function(){function r(e){this.ctx={},ol(r,this,function(t){t.create=function(n,i,o){return new PH(n,i,o)},t.fire=function(n){n&&(n.complete(),e&&Ar(e[Jx])&&e[Jx](n))}
69,t[I0]=function(n,i){if(n){var o=t[PR]=t[PR]||{};o[n]=i}},t[TR]=function(n){return(t[PR]||{})[n]}})}return r.__ieDyn=1,r})(),Pz="CoreUtils.doPerf";function S8(r,e,t,n,i){if(r){var o=r;if(o[p8]&&(o=o[p8]()),o){var a=void 0,l=o[TR](Pz);try{if(a=o.create(e(),n,i),a){if(l&&a[I0]&&(a[I0](PH[pq],l),l[TR]&&l[I0])){var u=l[TR](PH[BM]);u||(u=[],l[I0](PH[BM],u)),u[En](a)}return o[I0](Pz,a),t(a)}}catch(h){a&&a[I0]&&a[I0]("exception",h)}finally{a&&o.fire(a),o[I0](Pz,l)}}}return t()}function XLe(){return KLe}var dv;function mme(){return dv||(dv=Ga(l7("otTraceState"))),dv}function gq(r){dv||(dv=mme());var e={set:function(t,n){var i=uv(Er,r);return i.set(t,n),gq(i)},unset:function(t){var n=uv(Er,r);return n.del(t),gq(n)},get:function(t){return r.get(t)},serialize:function(){var t=r.hdrs(1);return t[ir]>0?t[0]:Er}};return hi(e,dv.v,{g:function(){return r}}),e}function yme(r){return dv||(dv=mme()),r&&r[dv.v]?!0:r&&Ar(r.serialize)&&Ar(r.unset)&&Ar(r.get)&&Ar(r.set)}function QLe(r){var e=null;if(yme(r)){var t=void 0;dv&&(t=r[dv.v]),t?e=uv(Er,t):e=uv(r.serialize())}else HLe(r)?e=r:e=uv(gn(r)?r:Er);return gq(e)}function JLe(r){var e=OP(r[Dd])?r[Dd]:GN,t=MP(r[wu])?r[wu]:YN,n=r.isRemote,i=hr(r[Oh])?1:r[Oh],o=null,a={traceId:e,spanId:t,traceFlags:i};return Rb(a,{traceId:{g:function(){return e},s:function(l){return e=OP(l)?l:GN}},spanId:{g:function(){return t},s:function(l){return t=MP(l)?l:YN}},isRemote:{g:function(){return n}},traceFlags:{g:function(){return i},s:function(l){return i=l}},traceState:{g:function(){return o||(o=QLe(r[Cx])),o},s:function(l){o=l}}})}var e4e=tme("plugin");function AT(r){return e4e.get(r,"state",{},!0)}function Cre(r,e){for(var t=[],n=null,i=r[e_](),o;i;){var a=i[NN]();if(a){n&&n[LN]&&a[cv]&&n[LN](a),o=AT(a);var l=!!o[V0];a[V0]&&(l=a[V0]()),l||t[En](a),n=a,i=i[e_]()}}Or(t,function(u){var h=r[vu]();u[eL](r.getCfg(),h,e,r[e_]()),o=AT(u),!u[vu]&&!o[vu]&&(o[vu]=h),o[V0]=!0,delete o[I1]})}function kz(r){return r.sort(function(e,t){var n=0;if(t){var i=t[cv];e[cv]?n=i?e[f8]-t[f8]:1:i&&(n=-1)}else n=e?1:-1;return n})}function p7(r){return r&&Ar(r.getName)&&Ar(r.getTraceId)&&Ar(r.getSpanId)&&Ar(r.getTraceFlags)&&Ar(r.setName)&&Ar(r.setTraceId)&&Ar(r.setSpanId)&&Ar(r[eq])}function Om(r){var e,t=null,n=null,i=r&&OP(r[Dd])?r[Dd]:iS(),o=r&&MP(r[wu])?r[wu]:Er,a=r?r[Oh]:$s,l=r?r.isRemote:!1,u=Er,h=null;if(r&&(p7(r)?(t=r,u=t.getName()):n=r),!u){u="_unknown_";var p=q0();p&&p[tq]&&(u=p[tq]+(p.hash||""))}function m(){return u}function _(L){return function(B){L&&t&&t.setName(B),u=B}}function C(){return i}function T(L){return function(B){L&&t&&t.setTraceId(B),OP(B)&&(i=B)}}function S(){return o}function R(L){return function(B){L&&t&&t.setSpanId(B),MP(B)&&(o=B)}}function O(){return a}function N(L){return function(B){L&&t&&t[eq](B),a=B}}function H(){return h||(t||n&&(yme(n[Cx])?h=uv(n[Cx].serialize()||Er,t?t[Cx]:void 0):h=uv(Er,n[Cx]||(t?t[Cx]:void 0))),h||(h=uv(Er,t?t[Cx]:void 0))),h}var F=null,j=tL((e={getName:m,setName:_(!0),getTraceId:C,setTraceId:T(!0),getSpanId:S,setSpanId:R(!0),getTraceFlags:O},e[eq]=N(!0),e.traceId=i,e.spanId=o,e.traceFlags=a,e.traceState=h,e.isRemote=l,e.pageName=u,e.getOTelSpanContext=function(){return F||(F=JLe(j)),F},e),"DistributedTraceContext");return Rb(j,{pageName:{g:m,s:_(!1)},traceId:{g:C,s:T(!1)},spanId:{g:S,s:R(!1)},traceFlags:{g:O,s:N(!1)},isRemote:{v:l,w:!1},traceState:{g:H},parentCtx:{g:function(){return t}},_parent:{g:function(){var L;return t?L={t:"traceCtx",v:t}:n&&(L={t:"initCtx",v:n}),L}}})}var t4e="TelemetryPluginChain",xre="_hasRun",Tre="_getTelCtx",Sre=0;function r4e(r,e,t){for(;r;){if(r[NN]()===t)return r;r=r[e_]()}return oS([t],e[BE]||{},e)}function nZ(r,e,t,n){var i=null,o=[];e||(e=zm({},null,t[jl])),n!==null&&(i=n?r4e(r,t,n):r);var a={_next:u,ctx:{core:function(){return t},diagLog:function(){return vk(t,e.cfg)},getCfg:function(){return e.cfg},getExtCfg:m,getConfig:_,hasNext:function(){return!!i},getNext:function(){return i},setNext:function(T){i=T},iterate:C,onComplete:l}};function l(T,S){for(var R=[],O=2;O<arguments.length;O++)R[O-2]=arguments[O];T&&o[En]({func:T,self:ba(S)?a.ctx:S,args:R})}function u(){var T=i;if(i=T?T[e_]():null,!T){var S=o;S&&S[ir]>0&&(Or(S,function(R){try{R.func[Pge](R.self,R.args)}catch(O){Hr(t[jl],2,73,"Unexpected Exception during onComplete - "+tn(O))}}),o=[])}return T}function h(T,S){var R=null,O=p(e.cfg,"extensionConfig",S);return O&&(R=p(O,T,S)),R}function p(T,S,R){var O=null;return T&&S&&(O=T[S],!O&&R&&(O={}),T[S]=O,O=e.ref(T,S)),O}function m(T,S,R){var O=R?p(e.cfg,T,!0):h(T,!0);return S&&zi(S,function(N,H){if(hr(O[N])){var F=e.cfg[N];(F||!hr(F))&&(O[N]=F)}XK(e,O,N,H)}),e.setDf(O,S)}function _(T,S,R){R===void 0&&(R=!1);var O,N=h(T,!1),H=e.cfg;
69return N&&(N[S]||!hr(N[S]))?O=N[S]:(H[S]||!hr(H[S]))&&(O=H[S]),O||!hr(O)?O:R}function C(T){for(var S;S=a._next();){var R=S[NN]();R&&T(R)}}return a}function _v(r,e,t,n){var i=zm(e),o=nZ(r,i,t,n),a=o.ctx;function l(h){var p=o._next();return p&&p[cv](h,a),!p}function u(h,p){return h===void 0&&(h=null),ni(h)&&(h=oS(h,i.cfg,t,p)),_v(h||a[e_](),i.cfg,t,p)}return a[Mh]=l,a[nS]=u,a}function I8(r,e,t){var n=zm(e[BE]),i=nZ(r,n,e,t),o=i.ctx;function a(u){var h=i._next();return h&&h[rS](o,u),!h}function l(u,h){return u===void 0&&(u=null),ni(u)&&(u=oS(u,n.cfg,e,h)),I8(u||o[e_](),e,h)}return o[Mh]=a,o[nS]=l,o}function iZ(r,e,t){var n=zm(e[BE]),i=nZ(r,n,e,t),o=i.ctx;function a(u){return o.iterate(function(h){Ar(h[DN])&&h[DN](o,u)})}function l(u,h){return u===void 0&&(u=null),ni(u)&&(u=oS(u,n.cfg,e,h)),iZ(u||o[e_](),e,h)}return o[Mh]=a,o[nS]=l,o}function oS(r,e,t,n){var i=null,o=!n;if(ni(r)&&r[ir]>0){var a=null;Or(r,function(l){if(!o&&n===l&&(o=!0),o&&l&&Ar(l[cv])){var u=n4e(l,e,t);i||(i=u),a&&a._setNext(u),a=u}})}return n&&!i?oS([n],e,t):i}function n4e(r,e,t){var n,i=null,o=Ar(r[cv]),a=Ar(r[LN]),l;r?l=r[Ww]+"-"+r[f8]+"-"+Sre++:l="Unknown-0-"+Sre++;var u=(n={getPlugin:function(){return r},getNext:function(){return i}},n[cv]=m,n.unload=_,n.update=C,n._id=l,n._setNext=function(T){i=T},n);function h(){var T;return r&&Ar(r[Tre])&&(T=r[Tre]()),T||(T=_v(u,e,t)),T}function p(T,S,R,O,N){var H=!1,F=r?r[Ww]:t4e,j=T[xre];return j||(j=T[xre]={}),T.setNext(i),r&&S8(T[vu](),function(){return F+":"+R},function(){j[l]=!0;try{var L=i?i._id:Er;L&&(j[L]=!1),H=S(T)}catch(Q){var B=i?j[i._id]:!0;B&&(H=!0),(!i||!B)&&Hr(T[Y1](),1,73,"Plugin ["+F+"] failed during "+R+" - "+tn(Q)+", run flags: "+tn(j))}},O,N),H}function m(T,S){S=S||h();function R(O){if(!r||!o)return!1;var N=AT(r);return N[I1]||N[IR]?!1:(a&&r[LN](i),r[cv](T,O),!0)}p(S,R,"processTelemetry",function(){return{item:T}},!T.sync)||S[Mh](T)}function _(T,S){function R(){var O=!1;if(r){var N=AT(r),H=r[vu]||N[vu];r&&(!H||H===T.core())&&!N[I1]&&(N[vu]=null,N[I1]=!0,N[V0]=!1,r[I1]&&r[I1](T,S)===!0&&(O=!0))}return O}p(T,R,"unload",qN,S.isAsync)||T[Mh](S)}function C(T,S){function R(){var O=!1;if(r){var N=AT(r),H=r[vu]||N[vu];r&&(!H||H===T.core())&&!N[I1]&&r[DN]&&r[DN](T,S)===!0&&(O=!0)}return O}p(T,R,"update",qN,!1)||T[Mh](S)}return cg(u)}function vme(){var r=[];function e(n){n&&r[En](n)}function t(n,i){Or(r,function(o){try{o(n,i)}catch(a){Hr(n[Y1](),2,73,"Unexpected error calling unload handler - "+tn(a))}}),r=[]}return{add:e,run:t}}function _me(){var r=[];function e(n){var i=r;r=[],Or(i,function(o){try{(o.rm||o.remove)[Pge](o)}catch(a){Hr(n,2,73,"Unloading:"+tn(a))}})}function t(n){n&&VA(r,n)}return{run:e,add:t}}var Oz,pw="getPlugin",i4e=(Oz={},Oz[YK]={isVal:m8,v:{}},Oz),kS=(function(){function r(){var e=this,t,n,i,o,a;h(),ol(r,e,function(p){p[eL]=function(m,_,C,T){u(m,_,T),t=!0},p[I1]=function(m,_){var C=p[vu];if(!C||m&&C!==m[vu]())return;var T,S=!1,R=m||I8(null,C,i&&i[pw]?i[pw]():i),O=_||{reason:0,isAsync:!1};function N(){S||(S=!0,o.run(R,_),a.run(R[Y1]()),T===!0&&R[Mh](O),h())}return!p[l8]||p[l8](R,O,N)!==!0?N():T=!0,T},p[DN]=function(m,_){var C=p[vu];if(!C||m&&C!==m[vu]())return;var T,S=!1,R=m||iZ(null,C,i&&i[pw]?i[pw]():i),O=_||{reason:0};function N(){S||(S=!0,u(R.getCfg(),R.core(),R[e_]()))}return!p._doUpdate||p._doUpdate(R,O,N)!==!0?N():T=!0,T},v8(p,"_addUnloadCb",function(){return o},"add"),v8(p,"_addHook",function(){return a},"add"),hi(p,"_unloadHooks",{g:function(){return a}})}),e[Y1]=function(p){return l(p)[Y1]()},e[V0]=function(){return t},e.setInitialized=function(p){t=p},e[LN]=function(p){i=p},e[Mh]=function(p,m){m?m[Mh](p):i&&Ar(i[cv])&&i[cv](p,null)},e._getTelCtx=l;function l(p){p===void 0&&(p=null);var m=p;if(!m){var _=n||_v(null,{},e[vu]);i&&i[pw]?m=_[nS](null,i[pw]):m=_[nS](null,i)}return m}function u(p,m,_){zm(p,i4e,vk(m)),!_&&m&&(_=m[Tge]()[e_]());var C=i;i&&i[pw]&&(C=i[pw]()),e[vu]=m,n=_v(_,p,m,C)}function h(){t=!1,e[vu]=null,n=null,i=null,a=_me(),o=vme()}}return r.__ieDyn=1,r})();function o4e(r,e,t){var n={id:e,fn:t};VA(r,n);var i={remove:function(){Or(r,function(o,a){if(o.id===n.id)return r[Tv](a,1),-1})}};return i}function a4e(r,e,t){for(var n=!1,i=r[ir],o=0;o<i;++o){var a=r[o];
69if(a)try{if(a.fn[tS](null,[e])===!1){n=!0;break}}catch(l){Hr(t,2,64,"Telemetry initializer failed: "+Jo(l),{exception:tn(l)},!0)}}return!n}var s4e=(function(r){E_(e,r);function e(){var t=r.call(this)||this;t.identifier="TelemetryInitializerPlugin",t.priority=199;var n,i;o(),ol(e,t,function(a,l){a.addTelemetryInitializer=function(u){return o4e(i,n++,u)},a[cv]=function(u,h){a4e(i,u,h?h[Y1]():a[Y1]())&&a[Mh](u,h)},a[l8]=function(){o()}});function o(){n=0,i=[]}return t}return e.__ieDyn=1,e})(kS),E0,Mz,Nz,bme="Plugins must provide initialize method",l4e="_notificationManager",Ire="SDK is still unloading...",c4e="SDK is not initialized",u4e=100,d4e=5e4,h4e=128,mq=RS((E0={cookieCfg:{}},E0[yA]={rdOnly:!0,ref:!0,v:[]},E0[mA]={rdOnly:!0,ref:!0,v:[]},E0[YK]={ref:!0,v:{}},E0[aq]=$s,E0.loggingLevelConsole=0,E0.diagnosticLogInterval=$s,E0.traceHdrMode=3,E0.traceCfg=Uf((Mz={generalLimits:Uf((Nz={attributeValueLengthLimit:void 0},Nz[Age]=h4e,Nz)),serviceName:null},Mz[Rge]=!1,Mz)),E0));function f4e(r){var e,t={errorHandlers:Uf((e={attribError:function(n,i,o){r.logger[F1](2,115,n,{attribName:i,value:o})},spanError:function(n,i){r.logger[F1](2,116,n,{spanName:i})},debug:function(n){r[jl].debugToConsole(n)},warn:function(n){r.logger[MN](n)},error:function(n){r.logger[F1](1,117,n)}},e[JNe]=function(n){r.logger[F1](1,118,n)},e))};return RS(XF({},mq,t))}function p4e(r,e){return new ZLe(e)}function g4e(r,e,t){var n=[],i=[],o={};return Or(t,function(a){(hr(a)||hr(a[eL]))&&Vp(bme);var l=a[f8],u=a[Ww];a&&l&&(hr(o[l])?o[l]=u:IT(r,"Two extensions have same priority #"+l+" - "+o[l]+", "+u)),!l||l<e?n[En](a):i[En](a)}),{core:n,channels:i}}function yq(r,e,t,n){t&&zi(t,function(i,o){n&&Uh(o)&&Uh(e[i])&&yq(r,e[i],o,n),n&&Uh(o)&&Uh(e[i])?yq(r,e[i],o,n):r.set(e,i,o)})}function Are(r,e){var t=null,n=-1;return Or(r,function(i,o){if(i.w===e)return t=i,n=o,-1}),{i:n,l:t}}function m4e(r,e){var t=Are(r,e).l;return t||(t={w:e,rm:function(){var n=Are(r,e);n.i!==-1&&r[Tv](n.i,1)}},r[En](t)),t}function y4e(r,e,t){Or(e,function(n){var i=Tl(r,n.w,t);delete n.w,n.rm=function(){i.rm()}})}function v4e(r,e,t,n){return e.add(r[ST](function(i){var o=i.cfg.disableDbgExt;o===!0&&n&&(t[i8](n),n=null),t&&!n&&o!==!0&&(n=wLe(i.cfg),t[o8](n))})),n}function _4e(r){return hi({rm:function(){r.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON[AP](r)+">"}})}function b4e(r){var e=null,t=r&1?BLe():null,n=r&2?FLe():null;return(t||n)&&(e=Om({traceId:t?t[Dd]:null,spanId:t?t[wu]:null,traceFlags:t?t[Oh]:$s,isRemote:!0,traceState:n})),e}var w4e=(function(){function r(){var e,t,n,i,o,a,l,u,h,p,m,_,C,T,S,R,O,N,H,F,j,L,B,Q,Z,ie,J,ne,ue,K,se,be,de,ge,Ue,Qe,ve;ol(r,this,function(pe){lt(),pe._getDbgPlgTargets=function(){return[J,i]},pe[V0]=function(){return t},pe.activeStatus=function(){return K},pe._setPendingStatus=function(){K=3},pe[eL]=function(rt,bt,Xe,ct){C&&Vp(Ire),pe[V0]()&&Vp("Core cannot be initialized more than once"),e=zm(rt,f4e(pe),Xe||pe[jl],!1),rt=e.cfg,kt
69(e[ST](function(z){var W=z.cfg;be=W.initInMemoMaxSize||u4e,He(W);var Se=z.ref(z.cfg,YK);zi(Se,function(Ke){z.ref(Se,Ke)}),W[X$]!==R&&(S=b4e(W[X$]),R=W[X$])})),o=ct,j=v4e(e,F,o&&pe[T4](),j),_e(),pe[jl]=Xe;var Me=rt[yA];if(p=[],p[En].apply(p,Nte(Nte([],bt,!1),Me)),m=rt[mA],Oe(null),(!_||_[ir]===0)&&Vp("No "+mA+" available"),m&&m[ir]>1){var X=pe[NN]("TeeChannelController");(!X||!X.plugin)&&Hr(n,1,28,"TeeChannel required")}y4e(rt,ie,n),ie=null,t=!0,K===Bw.ACTIVE&&tt()},pe.getChannels=function(){var rt=[];return _&&Or(_,function(bt){rt[En](bt)}),cg(rt)},pe[Bte]=function(rt){S8(pe[p8](),function(){return"AppInsightsCore:track"},function(){rt===null&&(vt(rt),Vp("Invalid telemetry item")),!rt[rp]&&hr(rt[rp])&&(vt(rt),Vp("telemetry name required")),rt[S4]=rt[S4]||Z,rt[CR]=rt[CR]||kP(new Date),rt.ver=rt.ver||"4.0",!C&&pe[V0]()&&K===Bw.ACTIVE?Et()[Mh](rt):K!==Bw.INACTIVE&&i[ir]<=be&&i[En](rt)},function(){return{item:rt}},!rt.sync)},pe[Tge]=Et,pe[T4]=function(){return o||(o=new WLe(e.cfg),pe[l4e]=o),o},pe[o8]=function(rt){pe.getNotifyMgr()[o8](rt)},pe[i8]=function(rt){o&&o[i8](rt)},pe.getCookieMgr=function(){return u||(u=RH(e.cfg,pe[jl])),u},pe.setCookieMgr=function(rt){u!==rt&&(YA(u,!1),u=rt)},pe[p8]=function(){return a||l||XLe()},pe.setPerfMgr=function(rt){a=rt},pe.eventCnt=function(){return i[ir]},pe.releaseQueue=function(){if(t&&i[ir]>0){var rt=i;i=[],K===2?Or(rt,function(bt){bt[S4]=bt[S4]||Z,Et()[Mh](bt)}):Hr(n,2,20,"core init status is not active")}},pe[$te]=function(rt){return O=rt||null,ve=!1,Ue&&Ue[Dx](),ot(!0)};function He(rt){var bt=rt.instrumentationKey,Xe=rt.endpointUrl;if(K!==3){if(hr(bt)){Z=null,K=Bw.INACTIVE;var ct="Please provide instrumentation key";t?(Hr(n,1,100,ct),tt()):Vp(ct);return}var Me=[];mv(bt)?(Me[En](bt),Z=null):Z=bt,mv(Xe)?(Me[En](Xe),se=null):se=Xe,Me[ir]?Re(rt,Me):$e()}}function Re(rt,bt){de=!1,K=3;var Xe=m8(rt.initTimeOut)?rt.initTimeOut:d4e,ct=gDe(bt);ge&&ge[Dx](),ge=Gh(function(){ge=null,de||$e()},Xe),qf(ct,function(Me){try{if(de)return;if(!Me.rejected){var X=Me[ov];if(X&&X[ir]){var z=X[0];if(Z=z&&z[ov],X[ir]>1){var W=X[1];se=W&&W[ov]}}Z&&(rt.instrumentationKey=Z,rt.endpointUrl=se)}$e()}catch{de||$e()}})}function $e(){de=!0,hr(Z)?(K=Bw.INACTIVE,Hr(n,1,112,"ikey can't be resolved from promises")):K=Bw.ACTIVE,tt()}function tt(){t&&(pe.releaseQueue(),pe[$te]())}function ot(rt){if((!Ue||!Ue[qA])&&!ve){var bt=rt||n&&n.queue[ir]>0;bt&&(Qe||(Qe=!0,kt(e[ST](function(Xe){var ct=Xe.cfg.diagnosticLogInterval;(!ct||!(ct>0))&&(ct=1e4);var Me=!1;Ue&&(Me=Ue[qA],Ue[Dx]()),Ue=PNe(me,ct),Ue.unref(),Ue[qA]=Me}))),Ue[qA]=!0)}return Ue}pe[zte]=function(){ve=!0,Ue&&Ue[Dx](),me()},GA(pe,function(){return T},["addTelemetryInitializer"]),pe[rS]=function(rt,bt,Xe){rt===void 0&&(rt=!0),t||Vp(c4e),C&&Vp(Ire);var ct={reason:50,isAsync:rt,flushComplete:!1},Me;rt&&!bt&&(Me=h_(function(W){bt=W}));var X=I8(re(),pe);X[I4](function(){F.run(pe[jl]),fme([u,o,n],rt,function(){lt(),bt&&bt(ct)})},pe);function z(W){ct.flushComplete=W,C=!0,H.run(X,ct),pe[zte](),X[Mh](ct)}return me(),Ae(rt,z,6,Xe),Me},pe[NN]=le,pe.addPlugin=function(rt,bt,Xe,ct){if(!rt){ct&&ct(!1),it(bme);return}var Me=le(rt[Ww]);if(Me&&!bt){ct&&ct(!1),it("Plugin ["+rt[Ww]+"] is already loaded!");return}var X={reason:16};function z(Ke){p[En](rt),X.added=[rt],Oe(X),ct&&ct(!0)}if(Me){var W=[Me.plugin],Se={reason:2,isAsync:!!Xe};te(W,Se,function(Ke){Ke?(X.removed=W,X[xR]|=32,z()):ct&&ct(!1)})}else z()},pe.updateCfg=function(rt,bt){bt===void 0&&(bt=!0);var Xe;if(pe[V0]()){Xe={reason:1,cfg:e.cfg,oldCfg:Ote({},e.cfg),newConfig:Ote({},rt),merge:bt},rt=Xe.newConfig;var ct=e.cfg;rt[yA]=ct[yA],rt[mA]=ct[mA]}e._block(function(Me){var X=Me.cfg;yq(Me,X,rt,bt),bt||zi(X,function(z){G1(rt,z)||Me.set(X,z,$s)}),Me.setDf(X,mq)},!0),e.notify(),Xe&&Ve(Xe)},pe.evtNamespace=function(){return N},pe[FM]=Ae,pe[EH]=function(rt){return(!L&&rt!==!1||rt===!0)&&(L=Om(S)),L},pe[Q$]=function(rt){L=rt||null},pe.startSpan=function(rt,bt,Xe){return!B||!B.v||!B.v.isAvailable()?null:B.v.createSpan(rt,bt,Xe||pe[EH]())},pe[Sge]=function(rt){return rt!==!1&&B&&!Q&&B.v&&(Q=B.v.createSpan(B.v.getProviderId(),{recording:!1,root:!0})),Q},pe[a8]=function(rt){var bt=null,Xe=pe[EH](),ct=Q,Me;if(rt){var X=null;if(rt[XV]?X=rt[XV]():rt.context&&(X=rt.context()),X)if(p7(X))bt=X;else{bt=Om(Xe);var z=rt[QV];z||rt[jte]&&(z={traceId:X[Dd],spanId:rt[jte]}),z&&z[Dd]!==bt[Dd]&&z[wu]!==bt[wu]&&z[Oh]!==bt[Oh]&&(bt[Dd]=z[Dd],bt[wu]=z[wu],bt[Oh]=z[Oh],bt=Om(bt)),bt[Dd]=X[Dd],bt[wu]=X[wu],bt[Oh]=X[Oh]}}return Me={host:pe,span:rt,prvSpan:ct,restore:function(){ct?pe[a8](ct):(Q=null,pe[Q$](Xe)),Me.restore=qN}},Q=rt,bt&&pe[Q$](bt),Me},pe.setTraceProvider=function(rt){B=rt},pe.getTraceProvider=function(){return B?B.v:null},pe.addUnloadHook=kt,v8(pe,"addUnloadCb",function(){return H},"add"),pe.onCfgChange=function(rt){var bt;return t?bt=Tl(e.cfg,rt,pe[jl]):bt=m4e(ie,rt),_4e(bt)},pe.getWParam=function(){return cge()||e.cfg.enableWParam?0:-1};function qe(){var rt={};ne=[];var bt=function(Xe){Xe&&Or(Xe,function(ct){if(ct[Ww]&&ct[lq]&&!rt[ct.identifier]){var Me=ct[Ww]+"="+ct[lq];ne[En](Me),rt[ct.identifier]=ct}})};bt(_),m&&Or(m,function(Xe){bt(Xe)}),bt(p)}function lt(){t=!1,e=zm({},mq,pe[jl]),e.cfg[Ige]=1,hi(pe,"config",{g:function(){return e.cfg},s:function(bt){pe.updateCfg(bt,!1)}}),hi(pe,"pluginVersionStringArr",{g:function(){return ne||qe(),ne}}),hi(pe,"pluginVersionString",{g:function(){return ue||(ne||qe(),ue=ne[UE](";")),ue||Er}}
69),hi(pe,"logger",{g:function(){return n||(n=new x8(e.cfg),e[jl]=n),n},s:function(bt){e[jl]=bt,n!==bt&&(YA(n,!1),n=bt)}}),pe[jl]=new x8(e.cfg),J=[];var rt=pe[BE][yA]||[];rt.splice(0,rt[ir]),VA(rt,J),T=new s4e,S=null,R=0,i=[],YA(o,!1),o=null,a=null,l=null,YA(u,!1),u=null,h=null,p=[],m=null,_=null,C=!1,O=null,N=vv("AIBaseCore",!0),H=vme(),L=null,B=null,Z=null,F=_me(),ie=[],ue=null,ne=null,ve=!1,Ue=null,Qe=!1,K=0,se=null,be=null,de=!1,ge=null}function Et(){var rt=_v(re(),e.cfg,pe);return rt[I4](ot),rt}function Oe(rt){var bt=g4e(pe[jl],vLe,p);h=null,ue=null,ne=null,_=(m||[])[0]||[],_=kz(VA(_,bt[mA]));var Xe=VA(kz(bt[vu]),_);J=cg(Xe);var ct=pe[BE][yA]||[];ct.splice(0,ct[ir]),VA(ct,J);var Me=Et();_&&_[ir]>0&&Cre(Me[nS](_),Xe),Cre(Me,Xe),rt&&Ve(rt)}function le(rt){var bt=null,Xe=null,ct=[];return Or(J,function(Me){if(Me[Ww]===rt&&Me!==T)return Xe=Me,-1;Me.getChannel&&ct[En](Me)}),!Xe&&ct[ir]>0&&Or(ct,function(Me){if(Xe=Me.getChannel(rt),!Xe)return-1}),Xe&&(bt={plugin:Xe,setEnabled:function(Me){AT(Xe)[IR]=!Me},isEnabled:function(){var Me=AT(Xe);return!Me[I1]&&!Me[IR]},remove:function(Me,X){Me===void 0&&(Me=!0);var z=[Xe],W={reason:1,isAsync:Me};te(z,W,function(Se){Se&&Oe({reason:32,removed:z}),X&&X(Se)})}}),bt}function re(){if(!h){var rt=(J||[]).slice();Da(rt,T)===-1&&rt[En](T),h=oS(kz(rt),e.cfg,pe)}return h}function te(rt,bt,Xe){if(rt&&rt[ir]>0){var ct=oS(rt,e.cfg,pe),Me=I8(ct,pe);Me[I4](function(){var X=!1,z=[];Or(p,function(Se,Ke){z[En](Se)}),p=z,ue=null,ne=null;var W=[];m&&(Or(m,function(Se,Ke){var je=[];Or(Se,function(We){je[En](We)}),W[En](je)}),m=W),Xe&&Xe(X),ot()}),Me[Mh](bt)}else Xe(!1)}function me(){if(n&&n.queue){var rt=n.queue.slice(0);n.queue[ir]=0,Or(rt,function(bt){var Xe={name:O||"InternalMessageId: "+bt[s8],iKey:Z,time:kP(new Date),baseType:VN.dataType,baseData:{message:bt[Cu]}};pe[Bte](Xe)})}}function Ae(rt,bt,Xe,ct){var Me=1,X=!1,z=null;ct=ct||5e3;function W(){Me--,X&&Me===0&&(z&&z[Dx](),z=null,bt&&bt(X),bt=null)}if(_&&_[ir]>0){var Se=Et()[nS](_);Se.iterate(function(Ke){if(Ke[FM]){Me++;var je=!1;Ke[FM](rt,function(){je=!0,W()},Xe)||je||(rt&&z==null?z=Gh(function(){z=null,W()},ct):W())}})}return X=!0,W(),!0}function _e(){var rt;kt(e[ST](function(bt){var Xe=bt.cfg.enablePerfMgr;if(Xe){var ct=bt.cfg[aq];(rt!==ct||!rt)&&(ct||(ct=p4e),Th(bt.cfg,aq,ct),rt=ct,l=null),!a&&!l&&Ar(ct)&&(l=ct(pe,pe[T4]()))}else l=null,rt=null}))}function Ve(rt){var bt=iZ(re(),pe);bt[I4](ot),(!pe._updateHook||pe._updateHook(bt,rt)!==!0)&&bt[Mh](rt)}function it(rt){var bt=pe[jl];bt?(Hr(bt,2,73,rt),ot()):Vp(rt)}function vt(rt){var bt=pe[T4]();bt&&bt[UM]([rt],2)}function kt(rt){F.add(rt)}})}return r.__ieDyn=1,r})();function Dz(r,e){try{if(r&&r!==Er){var t=yv().parse(r);if(t&&t[Vte]&&t[Vte]>=t.itemsAccepted&&t.itemsReceived-t.itemsAccepted===t.errors[ir])return t}}catch(n){Hr(e,1,43,"Cannot parse the response. "+(n[rp]||tn(n)),{response:r})}return null}var E4e="NoResponseBody",Rre="&"+E4e+"=true",Lz="POST",C4e=(function(){function r(){var e=0,t,n,i,o,a,l,u,h,p,m,_,C,T,S;ol(r,this,function(R,O){var N=!0;ue(),R[eL]=function(K,se){i=se,n&&Hr(i,1,28,"Sender is already initialized"),R.SetConfig(K),n=!0},R._getDbgPlgTargets=function(){return[n,o,l,t]},R.SetConfig=function(K){try{if(a=K.senderOnCompleteCallBack||{},l=!!K.disableCredentials,u=K.fetchCredentials,o=!!K.isOneDs,t=!!K.enableSendPromise,p=!!K.disableXhr,m=!!K.disableBeacon,_=!!K.disableBeaconSync,S=K.timeWrapper,T=!!K.addNoResponse,C=!!K.disableFetchKeepAlive,h={sendPOST:ie},o||(N=!1),l){var se=q0();se&&se.protocol&&se.protocol[ag]()==="file:"&&(N=!1)}return!0}catch{}return!1},R.getSyncFetchPayload=function(){return e},R.getSenderInst=function(K,se){return K&&K[ir]?L(K,se):null},R.getFallbackInst=function(){return h},R[l8]=function(K,se){ue()},R.preparePayload=function(K,se,be,de){if(!se||de||!be[jp]){K(be);return}try{var ge=di("CompressionStream");if(!Ar(ge)){K(be);return}var Ue=new ReadableStream({start:function($e){$e.enqueue(gn(be[jp])?new TextEncoder().encode(be[jp]):be[jp]),$e.close()}}),Qe=Ue.pipeThrough(new ge("gzip")),ve=Qe.getReader(),pe=[],He=0,Re=!1;return qf(ve.read(),function $e(tt){if(!Re&&!tt.rejected){var ot=tt[ov];if(!ot.done)return pe[En](ot[ov]),He+=ot.value[ir],qf(ve.read(),$e);for(var qe=new Uint8Array(He),lt=0,Et=0,Oe=pe;Et<Oe.length;Et++){var le=Oe[Et];qe.set(le,lt),lt+=le[ir]}be[jp]=qe,be[A4]["Content-Encoding"]="gzip",be._chunkCount=pe[ir]}Re||(Re=!0,K(be))}),ve}catch{K(be);return}};function H(K,se){B(se,200,{},K)}function F(K,se){Hr(i,2,26,"Failed to send telemetry.",{message:K}),B(se,400,{})}function j(K){F("No endpoint url is provided for the batch",K)}function L(K,se){for(var be=0,de=null,ge=0;de==null&&ge<K[ir];)be=K[ge],!p&&be===1?YDe()&&(de=ne):be===2&&KK(se)&&(!se||!C)?de=J:be===3&&sM()&&(se?!_:!m)&&(de=Z),ge++;return de?{_transport:be,_isSync:se,sendPOST:de}:null}function B(K,se,be,de){try{K&&K(se,be,de)}catch{}}function Q(K,se){var be=XE(),de=K[t2];if(!de)return j(se),!0;de=K[t2]+(T?Rre:Er);var ge=K[jp],Ue=o?ge:new Blob([ge],{type:"text/plain;charset=UTF-8"}),Qe=be.sendBeacon(de,Ue);return Qe}function Z(K,se,be){var de=K[jp];try{if(de)if(Q(K,se))H(Er,se);else{var ge=a&&a.beaconOnRetry;ge&&Ar(ge)?ge(K,se,Q):(h&&h.sendPOST(K,se,!0),Hr(i,2,40,". Failed to send telemetry with Beacon API, retried with 
69normal sender."))}}catch(Ue){o&&IT(i,"Failed to send telemetry using sendBeacon API. Ex:"+tn(Ue)),B(se,o?0:400,{},Er)}}function ie(K,se,be){var de,ge,Ue,Qe=K[A4]||{};!be&&t&&(de=h_(function(Re,$e){ge=Re,Ue=$e})),o&&be&&K.disableXhrSync&&(be=!1);var ve=K[t2];if(!ve){j(se),ge&&ge(!1);return}var pe=PDe(Lz,ve,N,!0,be,K[wI]);o||pe.setRequestHeader("Content-type","application/json"),Or(Pm(Qe),function(Re){pe.setRequestHeader(Re,Qe[Re])}),pe.onreadystatechange=function(){o||(He(pe),pe.readyState===4&&ge&&ge(!0))},pe.onload=function(){o&&He(pe)};function He(Re){var $e=a&&a.xhrOnComplete,tt=$e&&Ar($e);if(tt)$e(Re,se,K);else{var ot=_8(Re);B(se,Re[b1],pz(Re,o),ot)}}return pe.onerror=function(Re){B(se,o?pe[b1]:400,pz(pe,o),o?Er:b8(pe)),Ue&&Ue(Re)},pe.ontimeout=function(){B(se,o?pe[b1]:500,pz(pe,o),o?Er:b8(pe)),ge&&ge(!1)},pe.send(K[jp]),de}function J(K,se,be){var de,ge=K[t2],Ue=K[jp],Qe=o?Ue:new Blob([Ue],{type:"application/json"}),ve,pe,He,Re=new Headers,$e=Ue[ir],tt=!1,ot=!1,qe=K[A4]||{},lt=(de={method:Lz,body:Qe},de[fE]=!0,de);K.headers&&Pm(K.headers)[ir]>0&&(Or(Pm(qe),function(re){Re.append(re,qe[re])}),lt[A4]=Re),u?lt.credentials=u:N&&o&&(lt.credentials="include"),be&&(lt.keepalive=!0,e+=$e,o?K._sendReason===2&&(tt=!0,T&&(ge+=Rre)):tt=!0);var Et=new Request(ge,lt);try{Et[fE]=!0}catch{}if(!be&&t&&(ve=h_(function(re,te){pe=re,He=te})),!ge){j(se),pe&&pe(!1);return}function Oe(re,te){te?B(se,o?0:te,{},o?Er:re):B(se,o?0:400,{},o?Er:re)}function le(re,te,me){var Ae=re[b1],_e=a.fetchOnComplete;_e&&Ar(_e)?_e(re,se,me||Er,te):B(se,Ae,{},me||Er)}try{qf(fetch(o?ge:Et,o?lt:null),function(re){if(be&&(e-=$e,$e=0),!ot)if(ot=!0,re.rejected)Oe(re[xR]&&re[xR][Cu],499),He&&He(re[xR]);else{var te=re[ov];try{!o&&!te.ok?(te[b1]?Oe(te.statusText,te[b1]):Oe(te.statusText,499),pe&&pe(!1)):o&&!te.body?(le(te,null,Er),pe&&pe(!0)):qf(te.text(),function(me){le(te,K,me[ov]),pe&&pe(!0)})}catch(me){te&&te[b1]?Oe(tn(me),te[b1]):Oe(tn(me),499),He&&He(me)}}})}catch(re){ot||(Oe(tn(re),499),He&&He(re))}return tt&&!ot&&(ot=!0,B(se,200,{}),pe&&pe(!0)),o&&!ot&&K[wI]>0&&S&&S.set(function(){ot||(ot=!0,B(se,500,{}),pe&&pe(!0))},K[wI]),ve}function ne(K,se,be){var de=ig(),ge=new XDomainRequest,Ue=K[jp];ge.onload=function(){var Re=_8(ge),$e=a&&a.xdrOnComplete;$e&&Ar($e)?$e(ge,se,K):B(se,200,{},Re)},ge.onerror=function(){B(se,400,{},o?Er:jge(ge))},ge.ontimeout=function(){B(se,500,{})},ge.onprogress=qN;var Qe=de&&de.location&&de.location.protocol||Er,ve=K[t2];if(!ve){j(se);return}if(!o&&ve.lastIndexOf(Qe,0)!==0){var pe="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";Hr(i,2,40,". "+pe),F(pe,se);return}
69var He=o?ve:ve[EE](/^(https?:)/,Er);ge.open(Lz,He),K[wI]&&(ge[wI]=K[wI]),ge.send(Ue),o&&be?S&&S.set(function(){ge.send(Ue)},0):ge.send(Ue)}function ue(){e=0,n=!1,t=!1,i=null,o=null,a=null,l=null,u=null,h=null,p=!1,m=!1,_=!1,C=!1,T=!1,S=null}})}return r.__ieDyn=1,r})(),wme="on",Pre="attachEvent",kre="addEventListener",Ore="detachEvent",Mre="removeEventListener",vq="events",_q="visibilitychange",g7="pagehide",Eme="unload",Cme="beforeunload",Hz;function xme(){return!Hz&&(Hz=Ga(vv("aiEvtPageHide"))),Hz.v}var x4e=/\.[\.]+/g,T4e=/[\.]+$/,S4e=1,Fz;function A8(){return!Fz&&(Fz=Ga(tme("events"))),Fz.v}var I4e=/^([^.]*)(?:\.(.+)|)/;function Nre(r){return r&&r[EE]?r[EE](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,Er):r}function oZ(r,e){if(e){var t=Er;ni(e)?(t=Er,Or(e,function(i){i=Nre(i),i&&(i[0]!=="."&&(i="."+i),t+=i)})):t=Nre(e),t&&(t[0]!=="."&&(t="."+t),r=(r||Er)+t)}var n=I4e.exec(r||Er)||[];return{type:n[1],ns:(n[2]||Er).replace(x4e,".").replace(T4e,Er).split(".").sort()[UE](".")}}function Tme(r,e,t){t===void 0&&(t=!0);var n=A8().get(r,vq,{},t),i=n[e];return i||(i=n[e]=[]),i}function Sme(r,e,t,n){r&&e&&e[CE]&&(r[Mre]?r[Mre](e[CE],t,n):r[Ore]&&r[Ore](wme+e[CE],t))}function A4e(r,e,t,n){var i=!1;return r&&e&&e[CE]&&t&&(r[kre]?(r[kre](e[CE],t,n),i=!0):r[Pre]&&(r[Pre](wme+e[CE],t),i=!0)),i}function Dre(r,e,t,n){for(var i=e[ir];i--;){var o=e[i];o&&(!t.ns||t.ns===o[tDe].ns)&&(!n||n(o))&&(Sme(r,o.evtName,o[kge],o.capture),e[Tv](i,1))}}function R4e(r,e,t){if(e[CE])Dre(r,Tme(r,e[CE]),e,t);else{var n=A8().get(r,vq,{});zi(n,function(i,o){Dre(r,o,e,t)}),Pm(n)[ir]===0&&A8().kill(r,vq)}}function QE(r,e){var t;return e?(ni(e)?t=[r][FN](e):t=[r,e],t=oZ("xx",t).ns[Yh](".")):t=r,t}function K1(r,e,t,n,i){i===void 0&&(i=!1);var o=!1;if(r)try{var a=oZ(e,n);if(o=A4e(r,a,t,i),o&&A8().accept(r)){var l={guid:S4e++,evtName:a,handler:t,capture:i};Tme(r,a.type)[En](l)}}catch{}return o}function kR(r,e,t,n,i){if(i===void 0&&(i=!1),r)try{var o=oZ(e,n),a=!1;R4e(r,o,function(l){return o.ns&&!t||l[kge]===t?(a=!0,!0):!1}),a||Sme(r,o,t,i)}catch{}}function P4e(r,e,t){var n=!1,i=ig();i&&(n=K1(i,r,e,t),n=K1(i.body,r,e,t)||n);var o=Eu();return o&&(n=K1(o,r,e,t)||n),n}function k4e(r,e,t){var n=ig();n&&(kR(n,r,e,t),kR(n.body,r,e,t));var i=Eu();i&&kR(i,r,e,t)}function R8(r,e,t,n){var i=!1;return e&&r&&r[ir]>0&&Or(r,function(o){o&&(!t||Da(t,o)===-1)&&(i=P4e(o,e,n)||i)}),i}function O4e(r,e,t,n){var i=!1;return e&&r&&ni(r)&&(i=R8(r,e,t,n),!i&&t&&t[ir]>0&&(i=R8(r,e,null,n))),i}function bq(r,e,t){r&&ni(r)&&Or(r,function(n){n&&k4e(n,e,t)})}function M4e(r,e,t){return O4e([Cme,Eme,g7],r,e,t)}function N4e(r,e){bq([Cme,Eme,g7],r,e)}function wq(r,e,t){function n(a){var l=Eu();r&&l&&l.visibilityState==="hidden"&&r(a)}var i=QE(xme(),t),o=R8([g7],r,e,i);return(!e||Da(e,_q)===-1)&&(o=R8([_q],n,e,i)||o),!o&&e&&(o=wq(r,null,t)),o}function D4e(r,e){var t=QE(xme(),e);bq([g7],r,t),bq([_q],null,t)}var Lre="_aiHooks",Hre=["req","rsp","hkErr","fnErr"];function aZ(r,e){if(r)for(var t=0;t<r[ir]&&!e(r[t],t);t++);}function Uz(r,e,t,n,i){i>=0&&i<=2&&aZ(r,function(o,a){var l=o.cbks,u=l[Hre[i]];if(u){e.ctx=function(){var m=n[a]=n[a]||{};return m};try{u[tS](e.inst,t)}catch(m){var h=e.err;try{var p=l[Hre[2]];p&&(e.err=m,p[tS](e.inst,t))}catch{}finally{e.err=h}}}})}function L4e(r){return function(){var e=this,t=arguments,n=r.h,i={name:r.n,inst:e,ctx:null,set:u},o=[],a=l([i],t);i.evt=di("event");function l(p,m){return aZ(m,function(_){p[En](_)}),p}function u(p,m){t=l([],t),t[p]=m,a=l([i],t)}Uz(n,i,a,o,0);var h=r.f;if(h)try{i.rslt=h[tS](e,t)}catch(p){throw i.err=p,Uz(n,i,a,o,3),p}return Uz(n,i,a,o,1),i.rslt}}function sZ(r,e,t,n){var i=null;return r&&(tp(r,e)?i=r:t&&(i=sZ(Uge(r),e,n,!1))),i}function H4e(r,e,t){return r?Eq(r[q1],e,t,!1):null}function Ime(r,e,t,n){var i=t&&t[Lre];if(!i){i={i:0,n:e,f:t,h:[]};var o=L4e(i);o[Lre]=i,r[e]=o}var a={id:i.i,cbks:n,rm:function(){var l=this.id;aZ(i.h,function(u,h){if(u.id===l)return i.h[Tv](h,1),1})}};return i.i++,i.h[En](a),a}function Eq(r,e,t,n,i){if(n===void 0&&(n=!0),r&&e&&t){var o=sZ(r,e,n,i);if(o){var a=o[e];if(typeof a===jpe)return Ime(o,e,a,t)}}return null}function M4(r,e,t,n,i){if(r&&e&&t){var o=sZ(r,e,n,i)||r;if(o)return Ime(o,e,o[e],t)}return null}function Fre(r,e,t,n){r.attribError&&r.attribError(e,t,n)}function F4e(r,e,t){r.spanError&&r.spanError(e,t)}function U4e(r,e){if(r[tz])r[tz](e);else if(console){var t=console[tz]||console.log;Tm(t,console,[e])}}var B4e="~[[inherited]]",$4e="~[[deleted]]",z4e=0;function Ame(){}function j4e(r,e,t,n,i,o){var a=o[Oge]||{};if(t&&d_(t)>0)for(var l=t[Yh]("."),u=[],h=0,p=d_(l);h<p;){var m=l[h];if(u[En](m),h===p-1){if(e[m]&&e[m].n)return""+u[UE]("."),{r:2};if(!e[m]||e[m].d)return r.size>=i&&!r.has(t)?{r:1}:(e[m]={v:n},{r:0,a:!0});var _=e[m].v;return e[m].v=n,e[m].d=!1,{r:0,a:!1,p:_}}if(e[m]||(e[m]={n:{}}),!e[m].n)return""+u[UE]("."),{r:3};e=e[m].n,h++}return{r:4}}function V4e(r,e){if(e&&d_(e)>0){for(var t=0,n=d_(e);t<n-1;){var i=e[t++];if(r[i]||(r[i]={n:{}}),!r[i].n)return{d:!1}
69;r=r[i].n}var o=e[n-1];if(r[o]&&!r[o].d&&!r[o].n){var a=r[o].v;return r[o].d=!0,r[o].v=$s,{d:!0,p:a}}else if(!r[o]||!r[o].d)return r[o]={d:!0},{d:!0}}return{d:!1}}function N4(r,e,t,n,i,o,a,l){var u;if(e&&d_(e)>0){var h=void 0,p=i,m=c7(e,"."),_=d_(m),C=0;if(t==0||t===2||ba(t)){for(;p&&C<_;){var T=m[C++],S=p[T];if(S&&C>=_){h=S;break}if(!S||!S.n)break;p=S.n}h&&(u={c:r,k:e,n:h,v:h.d?$s:h.v,s:0,e:!h.d})}if(!u&&(t===1||ba(t))){var R=Rme(e,o,a);R&&(u={c:r,k:e,n:null,v:R.v,s:1,e:!0})}}return n(u)}function q4e(r,e,t){var n=0,i=[],o=KA(r,function(a,l,u){return a+l},void 0,t||e);return kb(o,function(a){Da(i,a)===-1&&(i[En](a),n++)}),n}function Ure(r,e){var t;if(r){var n=Pm(r);d_(n)>0&&(t={p:e,n:r,k:n,i:-1})}return t}function KA(r,e,t,n,i){var o=[],a=n?[]:$s,l,u,h=Ure(r,Er),p,m,_={v:void 0,n:C};n&&(m7(n)?p=n:cd(n)&&(m=n));function C(){for(var T=Er,S,R,O=0;h;)if(h.i++,h.i<d_(h.k)){var N=h.k[h.i],H=h.n[N];if(H)if(H.n)o[En](h),h=Ure(H.n,h.p+N+"."),h||(h=o.pop());else{var F=h.p+N;if(a&&Da(a,F)===-1&&a[En](F),!H.d||i){T=h.p,S=N,R=H,O=H.d?2:0;break}}}else h=o.pop();if(!R&&m)for(l||(l={p:Er,n:$s,k:Pm(m),i:-1});l.i<d_(l.k)-1;){l.i++;var N=l.k[l.i];if(Da(a,N)===-1){a[En](N),S=N,R={v:m[N]},O=1;break}}return!R&&p&&(u||(u=p[UN]()),kb(u,function(j){var L=j[0];if(Da(a,L)===-1)return a[En](L),S=L,R={v:j[1]},O=1,-1})),R&&(_.v=e(T,S,R,O)),!R}return ZMe(_)}function Bre(r,e,t,n,i){var o=qd(null),a;i&&hi(o,"#id",{v:r.id,w:!1});var l=KA(e,function(h,p,m,_){var C=h+p;return{n:C,v:m.v,d:m.d,s:_}},t,i?null:n,i?2:$s);if(kb(l,function(h){var p=o,m=h.n;h.d&&(a||(a=qd(null),hi(o,$4e,{v:a,w:!1})),p=a),p&&!(m in p)&&(p[m]=h.v)}),n&&i){var u;m7(n)?u=n._attributes:(u=qd(null),zi(n,function(h,p){u[h]=p})),hi(o,B4e,{v:u,w:!1})}return o}function o2(r,e){r&&Or(r,function(t){Vn(t.cb,[e])})}function Rme(r,e,t){if(e&&e.has(r))return{v:e.get(r)};if(t&&r in t)return{v:t[r]}}function G4e(r,e){var t={cb:e};r[En](t);var n={rm:function(){if(r&&t){var i=Da(r,t);i>=0&&r[Tv](i,1),t.cb=null,t=null,n.rm=Ame}}};return n}function ub(r,e,t,n){var i=r[rDe]||{},o=null,a=null,l=null,u=i.generalLimits||{},h=u[Age]||128,p,m,_=0,C=null,T=null,S=null,R=null,O=e||Er;m7(t)?C=t:cd(t)&&(T=t),t=null;var N=T||C,H={id:(O||Er)+"."+z4e++,size:0,droppedAttributes:0,attributes:$s,clear:function(){R&&(R.rm(),R=null),(o||C||T)&&o2(S,{frm:H.id,op:0}),o=null,a=null,l=null,p=null,m=null,_=0,N=null,C=null,T=null},get:function(j,L){return N4(H,j,L,function(B){return B?B.v:$s},o,C,T)},has:function(j,L){return N4(H,j,L,function(B){return B?B.e||L===2:!1},o,C,T)},set:function(j,L){o||(o=qd(null));var B=j4e(H,o,j,L,h,r);if(B.r===0){a=null,p=null,m=null;var Q=B.a?2:1,Z=B.p;if(Q===2){var ie=Rme(j,C,T);ie&&(Q=1,Z=ie.v)}ige(L,Z)||o2(S,{frm:H.id,op:Q,k:j,prev:Z,val:L})}else B.r===1&&(l=null,_++,o2(S,{frm:H.id,op:4,k:j,val:L}));return B.r===0},del:function(j){return N4(H,j,$s,function(L){if(L){o||(o=qd(null));var B=V4e(o,j[Yh]("."));return B.d&&(a=null,p=null,m=null),o2(S,{frm:H.id,op:3,k:j,prev:L.v}),B.d}return!1},o,C,T)},keys:function(){return KA(o,function(j,L,B,Q){return j+L},r,N)},entries:function(){return KA(o,function(j,L,B,Q){return[j+L,B.v,Q]},r,N)},values:function(){return KA(o,function(j,L,B,Q){return B.v},r,N)},forEach:function(j){var L=KA(o,function(B,Q,Z,ie){return j(B+Q,Z.v,ie),!0},r,N);kb(L,Ame)},child:function(j,L){var B=(j||"child")+(L?"<-@[":"<=[")+H.id+"]";return L?W4e(r,B,H):ub(r,B,H)},listen:function(j){return S||(S=[]),G4e(S,j)}};function F(j){var L=!0;j.op===2||j.op===1||j.op===3?(a=null,p=null,m=null,N4(H,j.k,2,function(B){L=!B||!B.n},o)):j.op===0?(a=null,p=null,m=null,L=!0):j.op===4&&(L=!0,l=null),L&&o2(S,j)}return C&&Ar(C.listen)&&(R=C.listen(F)),Rb(H,{size:{g:function(){return a||(a=Ga(q4e(o,T,C))),a.v}},droppedAttributes:{g:function(){return l||(l=Ga((C?C.droppedAttributes:0)+_)),l.v}},attributes:{g:function(){return p||(p=Ga(Bre(H,o,r,N))),p.v}},_attributes:{g:function(){return m||(m=Ga(Bre(H,o,r,N,!0))),m.v}}})}function Y4e(r,e){m7(e)?e.forEach(function(t,n,i){r.set(t,n)}):e&&(Ar(e[UN])?kb(e[UN](),function(t){r.set(t[0],t[1])}):zi(e,function(t,n){r.set(t,n)}))}function W4e(r,e,t,n){var i=ub(r,e,t);
69return t.listen(function(o){if(o.op===0)kb(t[UN](),function(l){var u=l[0];!i.has(u,2)&&t.has(u)&&i.set(u,l[1])});else if(o.op===2){var a=o.k;i.has(a,0)||i.del(a)}else if(o.op===1||o.op===3){var a=o.k;i.has(a,2)||i.set(a,o.prev)}}),i}function m7(r){return r&&Ar(r.clear)&&Ar(r.get)&&Ar(r.has)&&Ar(r.set)&&Ar(r.del)&&Ar(r.keys)&&Ar(r[UN])&&Ar(r.forEach)&&Ar(r.values)&&Ar(r.child)&&Ar(r.listen)&&(cd(r)||Ar(r))&&"id"in r&&"size"in r&&"droppedAttributes"in r&&"attributes"in r}function Pme(r){return r==="number"||r==="boolean"||r==="string"}function K4e(r){var e,t=!0;return Or(r,function(n){if(n!==null){var i=typeof n;e?t=e===i:(t=Pme(i),e=i)}if(!t)return-1}),t}function Z4e(r){var e=r===null||Pme(typeof r);return r&&ni(r)&&(e=K4e(r)),e}var Cq=1e6,KN=1e9,xq=1e3,$M,zM;function X4e(){gg("HrTime is not mutable")}function kme(){return $M||($M=Ga(KN)),$M}function Ome(){if(!zM){var r=0,e=ug();e&&(r=e.timeOrigin,ep(r)||(r=e.timing&&e.timing.fetchStart),!ep(r)&&e.now&&(r=e.now())),zM=Ga({to:r,hr:ZN(r)})}return zM}function Mme(r){function e(){return"["+r[0]+", "+r[1]+"]"}return $N(r,e),cg(r)}function Q4e(r){var e=[0,0],t={v:X4e,w:!1,e:!1};return Rb(e,{0:{l:Sm(function(){return $d(r/KN)})},1:{l:Sm(function(){return r%KN})},push:t,pop:t,shift:t,unshift:t,splice:t,sort:t,reverse:t,fill:t,copyWithin:t}),Mme(e)}function NP(r,e){var t=[r,e];return Mme(t)}function Tq(){return Q4e(0)}function ZN(r){var e;if(r>0){var t=$d(r),n=r-t,i=$d(t/xq),o=t%xq,a=o*Cq,l=UK(n*Cq),u=a+l,h=i;u>=KN&&(h++,u-=KN),e=NP(h,u)}return e||Tq()}function Sq(r){var e=ZN(ep(r)?r:zV()),t=ug();if(t){var n=zM||Ome();e=t6e(n.v.hr,e)}return e}function $re(r){var e;if(e6e(r))e=NP(r[0],r[1]);else if(ep(r)){var t=zM||Ome();e=r<t.v.to?Sq(r):ZN(r)}else OK(r)?e=ZN(r.getTime()):gg("Invalid input type");return e}function J4e(r,e){var t=e[0]-r[0],n=e[1]-r[1];if(n<0){var i=t-1,o=$M||kme();return n+=o.v,NP(i,n)}return NP(t,n)}function iL(r){var e=r[0]*xq,t=Math.round(r[1]/Cq);return e+t}function e6e(r){return ni(r)&&r[ir]===2&&ep(r[0])&&ep(r[1])}function t6e(r,e){var t=r[0]+e[0],n=r[1]+e[1],i=$M||kme();return n>=i.v?(n-=i.v,NP(t+1,n)):NP(t,n)}function Nme(r,e,t){var n=r.api.cfg,i=zV(),o=r[XV],a,l=!1,u=n[Oge]||{},h=Sm(function(){return hr(r[nq])?Sq(i):$re(r[nq])}),p,m,_,C=0,T=null,S=r.isRecording!==!1;n.traceCfg&&n.traceCfg[Rge]&&(S=!1);var R=e||Er;S&&(a=Sm(function(){return ub(n,R,r[rq])}));function O(F,j){return l&&""+o[Dd]+o[wu]+F+(j?" - "+j:Er),l}function N(){return'ReadableSpan ("'+R+'")'}var H=tL({spanContext:function(){return o},setAttribute:function(F,j){var L;return j!==null&&!O("setAttribute")&&S?(!F||F[ir]===0?L="Invalid attribute key: "+tn(F):Z4e(j)||(L="Invalid attribute value: "+tn(j)),L?C++:a?a.v.set(F,j):C++):C++,H},setAttributes:function(F){return!O("setAttributes")&&S&&a?Y4e(a.v,F):C+=Pm(F)[ir]||0,H},setStatus:function(F){return O("setStatus")||(_=F,!hr(_)&&!hr(_[Cu])&&!gn(_[Cu])&&(_[Cu]=tn(_[Cu]))),H},updateName:function(F){return!O("updateName")&&!ige(R,F)&&(R=F,IDe(H,N())),H},end:function(F){var j;if(!O("end","You can only call end once"))try{if(!hr(F))p=$re(F),m=J4e(h.v,p),j=iL(m);else{var L=zV();j=L-i,m=ZN(j),p=Sq(L)}j<0&&(m=Tq(),p=h.v),r.onEnd&&r.onEnd(H)}finally{l=!0}},isRecording:function(){return S&&!l},recordException:function(F,j){O("recordException")||r.onException&&r.onException(H,F,j)}},N());return Rb(H,{name:{g:function(){return R}},kind:{v:t||0},startTime:{g:function(){return h.v}},endTime:{g:function(){return p}},status:{g:function(){return _||{code:0}}},attributes:{g:function(){return a?a.v[rq]:cg({})}}
69,attribContainer:{g:function(){return!a&&!T&&(T=ub(n,R)),a?a.v:T}},links:{g:function(){return[]}},events:{g:function(){return[]}},duration:{g:function(){return m||Tq()}},ended:{g:function(){return l}},droppedAttributesCount:{g:function(){return a?a.v.droppedAttributes:C}},parentSpanContext:{l:Sm(function(){return r?r[QV]:$s})},parentSpanId:{l:Sm(function(){var F=$s;if(r){var j=r[QV];F=j?j[wu]:$s}return F})}}),H}function r6e(r,e,t,n,i){var o={api:null,createSpan:function(a,l,u){var h,p;l&&l.root?h=Om():(h=Om(u||r[EH]()),h.parentCtx&&(p=h.parentCtx)),h[wu]=Yw(iS(),0,16);var m={api:t,spanContext:h,attributes:l?l[rq]:void 0,startTime:l?l[nq]:void 0,isRecording:l?l.recording!==!1:!0,onEnd:n,onException:i};return p&&hi(m,"parentSpanContext",{v:p,w:!1}),Nme(m,a,(l==null?void 0:l.kind)||0)},getProviderId:function(){return e},isAvailable:function(){return!!n}};return hi(o,"api",{v:t,w:!1}),o}function n6e(r,e,t,n){var i=!1;try{var o=Tm(e,t||r,n);return mv(o)?(i=!0,Mge(o,function(){r&&r.restore()})):o}finally{r&&!i&&r.restore()}}function Iq(r,e,t,n){var i=r[a8](e);return n6e(i,t,n,[i][FN](JD(arguments,4)))}function i6e(r,e,t,n,i){var o=null,a,l=i;Ar(t)?a=t:(o=t,a=n,l=n);var u=r.startSpan(e,o),h=!1;try{var p=Iq(r,u,function(m){return Tm(a,l,[m])});return mv(p)?(h=!0,$E(p,function(m){return m},function(m){u&&u.setStatus({code:m?2:1,message:m?m[Cu]||m:void 0})},function(){u&&u.end()})):p}catch(m){throw u&&u.setStatus({code:m?2:1,message:m?m[Cu]:void 0}),m}finally{!h&&u&&u.end()}}function o6e(r){return r?OP(r[Dd])&&MP(r[wu]):!1}function a6e(r,e){return p7(e)||(e=Om(e)),s6e(r,'wrapped("'+e[wu]+'")',e)}function s6e(r,e,t){var n={api:r,spanContext:p7(t)?t:Om(t),isRecording:!1};return Nme(n,e,0)}var l6e="microsoft.",lZ="client.",mg="http.",OS="net.",_k="peer.",bk="exception.",oL="enduser.",y7="url.",v7="db.",MS="network.",c6e=l6e+lZ+"ip",u6e=oL+"id",d6e=oL+"pseudo_id",h6e=mg+"route",f6e=OS+_k+"ip",Dme=OS+_k+"name",p6e=OS+"host.ip",g6e=_k+"service",m6e=mg+"user_agent",y6e=mg+"method",v6e=mg+"url",_6e=mg+"status_code",b6e=mg+"route",w6e=mg+"host",Lme=v7+"system",Hme=v7+"statement",Fme=v7+"operation",Ume=v7+"name",Bme="rpc.system",cZ="rpc.grpc.status_code",E6e=bk+"type",C6e=bk+"message",x6e=bk+"stacktrace",T6e=mg+"scheme",S6e=mg+"target",I6e=mg+"flavor",A6e=OS+"transport",R6e=OS+"host.name",P6e=OS+"host.port",k6e=OS+_k+"port",O6e=mg+"client_ip",M6e=oL+"id",N6e=lZ+"address",D6e=lZ+"port",L6e="server.address",H6e="server.port",F6e=y7+"full",U6e=y7+"path",B6e=y7+"query",$6e=y7+"scheme",z6e="error.type",j6e=MS+"local.address",V6e=MS+"local.port",q6e=MS+"protocol.name",G6e=MS+_k+"address",Y6e=MS+_k+"port",W6e=MS+"protocol.version",K6e=MS+"transport",Z6e="user_agent.original",X6e=mg+"request.method",Q6e=mg+"response.status_code",J6e=bk+"type",eHe=bk+"message",tHe=bk+"stacktrace",rHe=oL+"id",nHe=oL+"pseudo_id",iHe="synthetic.type",oHe="mongodb",aHe="mysql",sHe="postgresql",lHe="redis",cHe="db2",uHe="derby",dHe="mariadb",hHe="mssql",fHe="oracle",pHe="sqlite",gHe="other_sql",mHe="hsqldb",yHe="h2",Bz;function vHe(){return Bz||(Bz=HK("OpenTelemetryError",function(r,e){})),Bz}function _He(r){throw new(vHe())(r)}function bHe(r){var e=r;return e||_He("Must provide an otelApi instance"),Sm(function(){return tL({getTracer:Ite(e.getTracer,e),wrapSpanContext:Ite(a6e,$s,[r]),isSpanContextValid:o6e,getActiveSpan:function(){return r.host?r.host[Sge]():null},setActiveSpan:function(t){return r.host?r.host[a8](t):null}},"TraceApi")})}function wHe(r,e){var t=tL({startSpan:function(n,i){return r?r.startSpan(n,i):null},startActiveSpan:function(n,i,o){var a=null,l=null;if(Ar(i)?a=i:(l=i,a=o),a)return i6e(r,n,l,function(u){return Tm(a,u,[u.span,u])})}},"OTelTracer"+Er);return t}function EHe(r){var e={};return{getTracer:function(t,n){var i=(t||"ai-web")+"@"+(n||"unknown");return e[i]||(e[i]=wHe(r)),e[i]},forceFlush:function(){},shutdown:function(){e={},r=null}}}function CHe(r){var e,t=tL(Rb(EHe(r[qte]),{cfg:{g:function(){return r.host[BE]}},trace:{g:function(){return e.v}},host:{g:function(){return r[qte]}}}),"OTelApi");return e=bHe(t),t}var xHe="user_agent.synthetic.type",$me="client.",C_="http.",uZ="net.",_7="peer.",THe="network.peer.address",SHe=uZ+_7+"ip",zme=$me+"address",IHe=C_+"client_ip",AHe="user_agent.original",RHe=C_+"user_agent",PHe="url.full",kHe=C_+"url",OHe=C_+"request.method",MHe=C_+"method",NHe=C_+"response.status_code",DHe=C_+"status_code",LHe="url.scheme",HHe=C_+"scheme",FHe="url.path",UHe="url.query",BHe=C_+"target",$He="server.address",zHe=C_+"host",jHe=uZ+_7+"name",VHe=$me+"port",qHe="server.port",GHe=uZ+_7+"port",YHe=_7+"service";function jme(r){var e="";if(r){var t=w7(r);if(t){var n=b7(r);if(n)e=Gi(n);else{var i=JHe(r),o=eFe(r);if(i&&o){var a=Vme(r);if(a)e=i+"://"+a+o;else{var l=tFe(r);if(l){var u=qme(r);if(u)e=i+"://"+u+":"+l+o;else{var h=dZ(r);h&&(e=i+"://"+h+":"+l+o)}}}}}}}return e}function WHe(r){return r.get(xHe)}function KHe(r){return!!WHe(r)}function dZ(r){if(r)return r.get(THe)||r.get(SHe)}function ZHe(r){var e;if(r){var t=XHe(r);if(t&&(e=Gi(t)),!e){var n=dZ(r);n&&(e=Gi(n))}}return e}function XHe(r){if(r)return r.get(zme)||r.get(IHe)}function QHe(r){if(r)return r.get(AHe)||r.get(RHe)}function b7(r){if(r)return r.get(PHe)||r.get(kHe)}function w7(r){if(r)return r.get(OHe)||r.get(MHe)}function Aq(r){if(r)return r.get(NHe)||r.get(DHe)}function JHe(r){if(r)return r.get(LHe)||r.get(HHe)}function eFe(r){if(r)return r.get(FHe)||r.get(UHe)||r.get(BHe)}function Vme(r){if(r)return r.get($He)||r.get(zHe)}function qme(r){if(r)return r.get(zme)||r.get(jHe)}function tFe(r){if(r)return r.get(VHe)||r.get(qHe)||r.get(GHe)}function hZ(r){var e;if(r){var t=r.get(YHe);if(t&&(e=Gi(t)),!e){var n=Vme(r);n&&(e=Gi(n))}if(!e){var i=b7(r);i&&(e=Gi(i))}if(!e){var o=qme(r);o&&(e=Gi(o))}if(!e){var a=dZ(r);a&&(e=Gi(a))}}return e||Er}function rFe(r){return r===cHe||r===uHe||r===dHe||r===hHe||r===fHe||r===pHe||r===gHe||r===mHe||r===yHe}var qo=QNe({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]});function Gme(r,e,t){var n=e[ir],i=nFe(r,e);if(i[ir]!==n){for(var o=0,a=i;t[a]!==void 0;)o++,a=Fh(i,0,147)+aFe(o);i=a}return i}function nFe(r,e){var t;return e&&(e=wa(Gi(e)),e[ir]>150&&(t=Fh(e,0,150),Hr(r,2,57,"name is too long.  It has been truncated to 150 characters.",{name:e},!0))),t||e}function Sl(r,e,t){t===void 0&&(t=1024);var n;return e&&(t=t||1024,e=wa(Gi(e)),e[ir]>t&&(n=Fh(e,0,t),Hr(r,2,61,"string value is too long. It has been truncated to "+t+" characters.",{value:e},!0))),n||e}function aL(r,e,t){return gn(e)&&(e=Qp(e,t)),Wme(r,e,2048,66)}function Yme(r,e){var t;return e&&e[ir]>32768&&(t=Fh(e,0,32768),Hr(r,2,56,"message is too long, it has been truncated to 32768 characters.",{message:e},!0)),t||e}function iFe(r,e){var t;if(e){var n=""+e;n[ir]>32768&&(t=Fh(n,0,32768),Hr(r,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:e},!0))}return t||e}function JE(r,e){if(e){var t={};
69zi(e,function(n,i){if(cd(i)&&rL())try{i=yv()[AP](i)}catch(o){Hr(r,2,49,"custom property is not valid",{exception:o},!0)}i=Sl(r,i,8192),n=Gme(r,n,t),t[n]=i}),e=t}return e}function eC(r,e){if(e){var t={};zi(e,function(n,i){n=Gme(r,n,t),t[n]=i}),e=t}return e}function oFe(r,e){return e&&Wme(r,e,128,69)[RP]()}function Wme(r,e,t,n){var i;return e&&(e=wa(Gi(e)),e[ir]>t&&(i=Fh(e,0,t),Hr(r,2,n,"input is too long, it has been truncated to "+t+" characters.",{data:e},!0))),i||e}function aFe(r){var e="00"+r;return Yw(e,e[ir]-3)}var zre=Eu()||{},jre=0,sFe=[null,null,null,null,null];function E7(r){var e=jre,t=sFe,n=t[e];return zre.createElement?t[e]||(n=t[e]=zre.createElement("a")):n={host:uFe(r)},n.href=r,e++,e>=t[ir]&&(e=0),jre=e,n}function lFe(r){var e,t=E7(r);return t&&(e=t.href),e}function Kme(r){var e,t=E7(r);return t&&(e=t[tq]),e}function cFe(r,e){return r?r.toUpperCase()+" "+e:e}function uFe(r,e){var t=Zme(r)||Er;if(t){var n=t[HN](/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(n!=null&&n[ir]>3&&gn(n[2])&&n[2][ir]>0)return n[2]+(n[3]||Er)}return t}function Zme(r,e){var t=null;if(r){var n=r[HN](/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(n!=null&&n[ir]>2&&gn(n[2])&&n[2][ir]>0&&(t=n[2]||Er,n[ir]>2)){var i=(n[1]||Er)[ag](),o=n[3]||Er;(i==="http"&&o===":80"||i==="https"&&o===":443")&&(o=Er),t+=o}}return t}var dFe=[QK+RR,"https://breeze.aimon.applicationinsights.io"+RR,"https://dc-int.services.visualstudio.com"+RR],hFe="cid-v1:";function Rq(r){return Da(dFe,r[ag]())!==-1}function Vre(r,e,t){if(!e||r&&r.disableCorrelationHeaders)return!1;if(r&&r[Wte]){for(var n=0;n<r.correlationHeaderExcludePatterns[ir];n++)if(r[Wte][n].test(e))return!1}var i=E7(e).host[ag]();if(i&&(Cs(i,":443")!==-1||Cs(i,":80")!==-1)&&(i=(Zme(e)||"")[ag]()),(!r||!r.enableCorsCorrelation)&&i&&i!==t)return!1;var o=r&&r.correlationHeaderDomains;if(o){var a;if(Or(o,function(h){var p=new RegExp(h.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));a=a||p.test(i)}),!a)return!1}var l=r&&r.correlationHeaderExcludedDomains;if(!l||l[ir]===0)return!0;for(var n=0;n<l[ir];n++){var u=new RegExp(l[n].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));if(u.test(i))return!1}return i&&i[ir]>0}function qre(r){if(r){var e=fFe(r,qo[1]);if(e&&e!==hFe)return e}}function fFe(r,e){if(r)for(var t=r[Yh](","),n=0;n<t[ir];++n){var i=t[n][Yh]("=");if(i[ir]===2&&i[0]===e)return i[1]}}function D4(){var r=ug();if(r&&r.now&&r.timing){var e=r.now()+r.timing.navigationStart;if(e>0)return e}return $m()}function Df(r,e){var t=null;return r!==0&&e!==0&&!hr(r)&&!hr(e)&&(t=e-r),t}function pFe(r,e){var t=Om(e);return r&&(t.pageName=r[rp]||t.pageName||Er,t[Dd]=r.traceID||t[Dd]||Er,t[wu]=r.parentID||t[wu]||Er,t[Oh]=(hr(r[Oh])?t[Oh]:r[Oh])||0),t}var sL=xge({LocalStorage:0,SessionStorage:1}),SE=void 0,IE=void 0,Xme=Er;function fZ(){return x7()?C7(sL.LocalStorage):null}function C7(r){try{if(hr(km()))return null;var e=new Date()[RP](),t=di(r===sL.LocalStorage?"localStorage":"sessionStorage"),n=Xme+e;t.setItem(n,e);var i=t.getItem(n)!==e;if(t[qK](n),!i)return t}catch{}return null}function pZ(){return XN()?C7(sL.SessionStorage):null}function gFe(){SE=!1,IE=!1}function gZ(r){Xme=r||Er}function mFe(){SE=x7(!0),IE=XN(!0)}function x7(r){return(r||SE===void 0)&&(SE=!!C7(sL.LocalStorage)),SE}function Qme(r,e){var t=fZ();if(t!==null)try{return t.getItem(e)}catch(n){SE=!1,Hr(r,2,1,"Browser failed read of local storage. "+Jo(n),{exception:tn(n)})}return null}function Jme(r,e,t){var n=fZ();if(n!==null)try{return n.setItem(e,t),!0}catch(i){SE=!1,Hr(r,2,3,"Browser failed write to local storage. "+Jo(i),{exception:tn(i)})}return!1}function yFe(r,e){var t=fZ();if(t!==null)try{return t[qK](e),!0}catch(n){SE=!1,Hr(r,2,5,"Browser failed removal of local storage item. "+Jo(n),{exception:tn(n)})}return!1}function XN(r){return(r||IE===void 0)&&(IE=!!C7(sL.SessionStorage)),IE}function Pq(r,e){var t=pZ();if(t!==null)try{return t.getItem(e)}catch(n){IE=!1,Hr(r,2,2,"Browser failed read of session storage. "+Jo(n),{exception:tn(n)})}return null}function eye(r,e,t){var n=pZ();if(n!==null)try{return n.setItem(e,t),!0}catch(i){IE=!1,Hr(r,2,4,"Browser failed write to session storage. "+Jo(i),{exception:tn(i)})}return!1}function tye(r,e){var t=pZ();if(t!==null)try{return t[qK](e),!0}catch(n){IE=!1,Hr(r,2,6,"Browser failed removal of session storage item. "+Jo(n),{exception:tn(n)})}return!1}var vFe="appInsightsThrottle",_Fe=(function(){function r(e,t){var n=this,i,o,a,l,u,h,p,m=!1,_=!1;T(),n._getDbgPlgTargets=function(){return[p]},n.getConfig=function(){return a},n.canThrottle=function(K){var se=J(K),be=S(K);return N(be,i,se)},n.isTriggered=function(K){return ne(K)},n.isReady=function(){return m},n[FM]=function(K){try{var se=ue(K);if(se&&se[ir]>0){var be=se.slice(0);return p[K]=[],Or(be,function(de){C(de.msgID,de[Cu],de.severity,!1)}),!0}}catch{}return!1},n.flushAll=function(){try{if(p){var K=!0;return zi(p,function(se){var be=n[FM](parseInt(se));K=K&&be}),K}}catch{}return!1},n.onReadyState=function(K,se){return se===void 0&&(se=!0),m=hr(K)?!0:K,m&&se?n.flushAll():null},n.sendMessage=function(K,se,be){return C(K,se,be,!0)};function C(K,se,be,de){if(m){var ge=ie(K);if(!ge)return;var Ue=S(K),Qe=J(K),ve=N(Ue,i,Qe),pe=!1,He=0,Re=ne(K);try{ve&&!Re?(He=sge(Ue.limit.maxSendNumber,Qe[gA]+1),Qe[gA]=0,pe=!0,u[K]=!0,Qe[J$]=new Date):(u[K]=ve,Qe[gA]+=1);var $e=H(K);B(o,$e,Qe);for(var tt=0;tt<He;tt++)Z(K,o,se,be)}catch{}return{isThrottled:pe,throttleNum:He}}else if(de){var ot=ue(K);ot[En]({msgID:K,message:se,severity:be})}return null}function T(){o=vk(e),u={},l={},p={},a={},R(109),h=hr(t)?"":t,e.addUnloadHook(Tl(e[BE],function(K){var se=K.cfg;i=x7();var be=se.throttleMgrCfg||{};zi(be,function(de,ge){R(parseInt(de),ge)})}))}function S(K){return a[K]||a[109]}function R(K,se){var be,de;try{var ge=se||{},Ue={};Ue[IR]=!!ge[IR];var Qe=ge.interval||{};_=(Qe==null?void 0:Qe.daysOfMonth)&&(Qe==null?void 0:Qe.daysOfMonth[ir])>0,Ue.interval=O(Qe);var ve={samplingRate:((be=ge.limit)===null||be===void 0?void 0:be.samplingRate)||100,maxSendNumber:((de=ge.limit)===null||de===void 0?void 0:de.maxSen
69dNumber)||1};Ue.limit=ve,a[K]=Ue}catch{}}function O(K){K=K||{};var se=K==null?void 0:K.monthInterval,be=K==null?void 0:K.dayInterval;return hr(se)&&hr(be)&&(K.monthInterval=3,_||(K.daysOfMonth=[28],_=!0)),K={monthInterval:K==null?void 0:K.monthInterval,dayInterval:K==null?void 0:K.dayInterval,daysOfMonth:K==null?void 0:K.daysOfMonth},K}function N(K,se,be){if(K&&!K[IR]&&se&&!hr(be)){var de=L(),ge=be.date,Ue=K.interval,Qe=1;if(Ue!=null&&Ue.monthInterval){var ve=(de.getUTCFullYear()-ge.getUTCFullYear())*12+de.getUTCMonth()-ge.getUTCMonth();Qe=Q(Ue.monthInterval,0,ve)}var pe=1;if(_)pe=Da(Ue.daysOfMonth,de[ez]());else if(Ue!=null&&Ue.dayInterval){var He=$d((de.getTime()-ge.getTime())/864e5);pe=Q(Ue.dayInterval,0,He)}return Qe>=0&&pe>=0}return!1}function H(K,se){var be=hr(se)?"":se;return K?vFe+be+"-"+K:null}function F(K){try{if(K){var se=new Date;return K.getUTCFullYear()===se.getUTCFullYear()&&K.getUTCMonth()===se.getUTCMonth()&&K[ez]()===se[ez]()}}catch{}return!1}function j(K,se,be){try{var de={date:L(),count:0};if(K){var ge=JSON.parse(K),Ue={date:L(ge.date)||de.date,count:ge[gA]||de[gA],preTriggerDate:ge.preTriggerDate?L(ge[J$]):void 0};return Ue}else return B(se,be,de),de}catch{}return null}function L(K){try{if(K){var se=new Date(K);if(!isNaN(se.getDate()))return se}else return new Date}catch{}return null}function B(K,se,be){try{return Jme(K,se,wa(JSON[AP](be)))}catch{}return!1}function Q(K,se,be){return K<=0?1:be>=se&&(be-se)%K==0?$d((be-se)/K)+1:-1}function Z(K,se,be,de){Hr(se,de||1,K,be)}function ie(K){try{var se=S(K);return nLe(1e6)<=se.limit.samplingRate}catch{}return!1}function J(K){try{var se=l[K];if(!se){var be=H(K,h);se=j(Qme(o,be),o,be),l[K]=se}return l[K]}catch{}return null}function ne(K){var se=u[K];if(hr(se)){se=!1;var be=J(K);be&&(se=F(be[J$])),u[K]=se}return u[K]}function ue(K){return p=p||{},hr(p[K])&&(p[K]=[]),p[K]}}return r})(),bFe=";",wFe="=";function rye(r){if(!r)return{};var e=r[Yh](bFe),t=XMe(e,function(i,o){var a=o[Yh](wFe);if(a[ir]===2){var l=a[0][ag](),u=a[1];i[l]=u}return i},{});if(Pm(t)[ir]>0){if(t.endpointsuffix){var n=t.location?t.location+".":"";t[ZC]=t[ZC]||"https://"+n+"dc."+t.endpointsuffix}t[ZC]=t[ZC]||QK,vge(t[ZC],"/")&&(t[ZC]=t[ZC].slice(0,-1))}return t}var EFe=(function(){function r(e,t,n){var i=this,o=this;o.ver=1,o.sampleRate=100,o.tags={},o[rp]=Sl(e,n)||f_,o[jp]=t,o[CR]=kP(new Date),o[d7]={time:1,iKey:1,name:1,sampleRate:function(){return i.sampleRate===100?4:1},tags:1,data:1}}return r})(),OR="EventData",QN="ExceptionData",lL="MetricData",cL="PageviewData",T7="PageviewPerformanceData",uL="RemoteDependencyData",P8="RequestData",S7="MessageData";function tC(r){return"Microsoft.ApplicationInsights.{0}."+r}var mZ=tC("Event"),k8=tC("Exception"),yZ=tC("Metric"),I7=tC("Pageview"),vZ=tC("PageviewPerformance"),nye=tC("RemoteDependency"),CFe=tC("Request"),_Z=tC("Message"),xFe=(function(){function r(e,t,n,i){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var o=this;o.ver=2,o[rp]=Sl(e,t)||f_,o[U1]=JE(e,n),o[xE]=eC(e,i)}return r.envelopeType=mZ,r.dataType=OR,r})(),TFe=58,SFe=/^\s{0,50}(from\s|at\s|Line\s{1,5}\d{1,10}\s{1,5}of|\w{1,50}@\w{1,80}|[^\(\s\n]+:[0-9\?]+(?::[0-9\?]+)?)/,IFe=/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\]]+):([0-9\?]+):([0-9\?]+)\)?$/,AFe=/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\]]+):([0-9\?]+)\)?$/,RFe=/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\)\]]+)\)?$/,PFe=/(?:^|\(|\s{0,10}[\w\)]+\@)?([^\(\n\s\]\)]+)(?:\:([0-9]+)(?:\:([0-9]+))?)?\)?(?:,|$)/,kFe=/([^\(\s\n]+):([0-9]+):([0-9]+)$/,OFe=/([^\(\s\n]+):([0-9]+)$/,Gre="<no_method>",MR="error",mm="stack",kq="stackDetails",Yre="errorSrc",Oq="message",iye="description",Wre=[{re:IFe,len:5,m:1,fn:2,ln:3,col:4},{chk:NFe,pre:MFe,re:AFe,len:4,m:1,fn:2,ln:3},{re:RFe,len:3,m:1,fn:2,hdl:Zre},{re:PFe,len:2,fn:1,hdl:Zre}];function MFe(r){return r[EE](/(\(anonymous\))/,"<anonymous>")}function NFe(r){return Cs(r,"[native")<0}function Mq(r,e){var t=r;return t&&!gn(t)&&(JSON&&JSON[AP]?(t=JSON[AP](r),e&&(!t||t==="{}")&&(Ar(r[RP])?t=r[RP]():t=""+r)):t=""+r+" - (Missing JSON.stringify)"),t||""}function oye(r,e){var t=r;return r&&(t&&!gn(t)&&(t=r[Oq]||r[iye]||t),t&&!gn(t)&&(t=Mq(t,!0)),r.filename&&(t=t+" @"+(r.filename||"")+":"+(r.lineno||"?")+":"+(r.colno||"?"))),e&&e!=="String"&&e!=="Ob
69ject"&&e!=="Error"&&Cs(t||"",e)===-1&&(t=e+": "+t),t||""}function DFe(r){try{if(cd(r))return"hasFullStack"in r&&"typeName"in r}catch{}return!1}function LFe(r){try{if(cd(r))return"ver"in r&&"exceptions"in r&&"properties"in r}catch{}return!1}function Kre(r){return r&&r.src&&gn(r.src)&&r.obj&&ni(r.obj)}function XC(r){var e=r||"";gn(e)||(gn(e[mm])?e=e[mm]:e=""+e);var t=e[Yh](`
70`);return{src:e,obj:t}}function HFe(r){for(var e=[],t=r[Yh](`
71`),n=0;n<t[ir];n++){var i=t[n];t[n+1]&&(i+="@"+t[n+1],n++),e[En](i)}return{src:r,obj:e}}function aye(r){var e=null;if(r)try{if(r[mm])e=XC(r[mm]);else if(r[MR]&&r[MR][mm])e=XC(r[MR][mm]);else if(r.exception&&r[Gte][mm])e=XC(r[Gte][mm]);else if(Kre(r))e=r;else if(Kre(r[kq]))e=r[kq];else if(ig()&&ig().opera&&r[Oq])e=HFe(r[Cu]);else if(r.reason&&r[xR][mm])e=XC(r[xR][mm]);else if(gn(r))e=XC(r);else{var t=r[Oq]||r[iye]||"";gn(r[Yre])&&(t&&(t+=`
72`),t+=" from "+r[Yre]),t&&(e=XC(t))}}catch(n){e=XC(n)}return e||{src:"",obj:null}}function FFe(r){var e="";return r&&(r.obj?e=r.obj[UE](`
73`):e=r.src||""),e}function UFe(r){var e,t=r.obj;if(t&&t[ir]>0){e=[];var n=0,i=!1,o=0;Or(t,function(S){if(i||jFe(S)){var R=Gi(S);i=!0;var O=VFe(R,n);O&&(o+=O[CH],e[En](O),n++)}});var a=32*1024;if(o>a)for(var l=0,u=e[ir]-1,h=0,p=l,m=u;l<u;){var _=e[l][CH],C=e[u][CH];if(h+=_+C,h>a){var T=m-p+1;e[Tv](p,T);break}p=l,m=u,l++,u--}}return e}function O8(r){var e="";if(r&&(e=r.typeName||r[rp]||"",!e))try{var t=/function (.{1,200})\(/,n=t.exec(r.constructor[RP]());e=n&&n[ir]>1?n[1]:""}catch{}return e}function $z(r){if(r)try{if(!gn(r)){var e=O8(r),t=Mq(r,!1);return(!t||t==="{}")&&(r[MR]&&(r=r[MR],e=O8(r)),t=Mq(r,!0)),Cs(t,e)!==0&&e!=="String"?e+":"+t:t}}catch{}return""+(r||"")}var uM=(function(){function r(e,t,n,i,o,a){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var l=this;l.ver=2,LFe(t)?(l[r2]=t[r2]||[],l[U1]=t[U1],l[xE]=t[xE],t[aM]&&(l[aM]=t[aM]),t.id&&(l.id=t.id,t[U1].id=t.id),t[nz]&&(l[nz]=t[nz]),hr(t.isManual)||(l.isManual=t.isManual)):(n||(n={}),a&&(n.id=a),l[r2]=[sye(e,t,n)],l[U1]=JE(e,n),l[xE]=eC(e,i),o&&(l[aM]=o),a&&(l.id=a))}return r.CreateAutoException=function(e,t,n,i,o,a,l,u){var h=O8(o||a||e);return{message:oye(e,h),url:t,lineNumber:n,columnNumber:i,error:$z(o||a||e),evt:$z(a||e),typeName:h,stackDetails:aye(l||o||a),errorSrc:u}},r.CreateFromInterface=function(e,t,n,i){var o=t[r2]&&PN(t[r2],function(l){return zFe(e,l)}),a=new r(e,og(og({},t),{exceptions:o}),n,i);return a},r.prototype.toInterface=function(){var e=this,t=e.exceptions,n=e.properties,i=e.measurements,o=e.severityLevel,a=e.problemGroup,l=e.id,u=e.isManual,h=t instanceof Array&&PN(t,function(p){return p.toInterface()})||void 0;return{ver:"4.0",exceptions:h,severityLevel:o,properties:n,measurements:i,problemGroup:a,id:l,isManual:u}},r.CreateSimpleException=function(e,t,n,i,o,a){var l;return{exceptions:[(l={},l[u8]=!0,l.message=e,l.stack=o,l.typeName=t,l)]}},r.envelopeType=k8,r.dataType=QN,r.formatError=$z,r})(),BFe=cg({id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2});function $Fe(){var r=this,e=ni(r[SR])&&PN(r[SR],function(n){return GFe(n)}),t={id:r.id,outerId:r.outerId,typeName:r[xH],message:r[Cu],hasFullStack:r[u8],stack:r[mm],parsedStack:e||void 0};return t}function sye(r,e,t){var n,i,o,a,l,u,h,p;
73if(DFe(e))a=e[xH],l=e[Cu],h=e[mm],p=e[SR]||[],u=e[u8];else{var m=e,_=m&&m.evt;MK(m)||(m=m[MR]||_||m),a=Sl(r,O8(m))||f_,l=Yme(r,oye(e||m,a))||f_;var C=e[kq]||aye(e);p=UFe(C),ni(p)&&PN(p,function(T){T[d8]=Sl(r,T[d8]),T[W1]=Sl(r,T[W1])}),h=iFe(r,FFe(C)),u=ni(p)&&p[ir]>0,t&&(t[xH]=t[xH]||a)}return n={},n[d7]=BFe,n.id=i,n.outerId=o,n.typeName=a,n.message=l,n[u8]=u,n.stack=h,n.parsedStack=p,n.toInterface=$Fe,n}function zFe(r,e){var t=ni(e[SR])&&PN(e[SR],function(i){return qFe(i)})||e[SR],n=sye(r,og(og({},e),{parsedStack:t}));return n}function lye(r,e){var t=e[HN](kFe);if(t&&t[ir]>=4)r[W1]=t[1],r[PP]=parseInt(t[2]);else{var n=e[HN](OFe);n&&n[ir]>=3?(r[W1]=n[1],r[PP]=parseInt(n[2])):r[W1]=e}}function Zre(r,e,t){var n=r[W1];e.fn&&t&&t[ir]>e.fn&&(e.ln&&t[ir]>e.ln?(n=wa(t[e.fn]||""),r[PP]=parseInt(wa(t[e.ln]||""))||0):n=wa(t[e.fn]||"")),n&&lye(r,n)}function jFe(r){var e=!1;if(r&&gn(r)){var t=wa(r);t&&(e=SFe.test(t))}return e}var cye=cg({level:1,method:1,assembly:0,fileName:0,line:0});function VFe(r,e){var t,n;if(r&&gn(r)&&wa(r)){n=(t={},t[d7]=cye,t.level=e,t.assembly=wa(r),t.method=Gre,t.fileName="",t.line=0,t.sizeInBytes=0,t);for(var i=0;i<Wre[ir];){var o=Wre[i];if(o.chk&&!o.chk(r))break;o.pre&&(r=o.pre(r));var a=r[HN](o.re);if(a&&a[ir]>=o.len){o.m&&(n.method=wa(a[o.m]||Gre)),o.hdl?o.hdl(n,o,a):o.fn&&(o.ln?(n[W1]=wa(a[o.fn]||""),n[PP]=parseInt(wa(a[o.ln]||""))||0):lye(n,a[o.fn]||""));break}i++}}return uye(n)}function qFe(r){var e,t=(e={},e[d7]=cye,e.level=r.level,e.method=r.method,e.assembly=r[d8],e.fileName=r[W1],e.line=r[PP],e.sizeInBytes=0,e);return uye(t)}function uye(r){var e=TFe;return r&&(e+=r.method[ir],e+=r.assembly[ir],e+=r.fileName[ir],e+=r.level.toString()[ir],e+=r.line.toString()[ir],r[CH]=e),r}function GFe(r){return{level:r.level,method:r.method,assembly:r[d8],fileName:r[W1],line:r[PP]}}var YFe=(function(){function r(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0}return r})(),WFe=(function(){function r(e,t,n,i,o,a,l,u,h){this.aiDataContract={ver:1,metrics:1,properties:0};var p=this;p.ver=2;var m=new YFe;m[gA]=i>0?i:void 0,m.max=isNaN(a)||a===null?void 0:a,m.min=isNaN(o)||o===null?void 0:o,m[rp]=Sl(e,t)||f_,m[ov]=n,m.stdDev=isNaN(l)||l===null?void 0:l,p.metrics=[m],p[U1]=JE(e,u),p[xE]=eC(e,h)}return r.envelopeType=yZ,r.dataType=lL,r})(),KFe=(function(){function r(e,t,n,i,o,a,l){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var u=this;u.ver=2,u.id=oFe(e,l),u.url=aL(e,n),u[rp]=Sl(e,t)||f_,isNaN(i)||(u[iq]=N1(i)),u[U1]=JE(e,o),u[xE]=eC(e,a)}return r.envelopeType=I7,r.dataType=cL,r})(),ZFe=(function(){function r(e,t,n,i,o){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var a=this;
73a.ver=2,t=t||f_,a[Cu]=Yme(e,t),a[U1]=JE(e,i),a[xE]=eC(e,o),n&&(a[aM]=n)}return r.envelopeType=_Z,r.dataType=S7,r})(),XFe=(function(){function r(e,t,n,i,o,a,l){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var u=this;u.ver=2,u.url=aL(e,n),u[rp]=Sl(e,t)||f_,u[U1]=JE(e,o),u[xE]=eC(e,a),l&&(u.domProcessing=l.domProcessing,u[iq]=l[iq],u.networkConnect=l.networkConnect,u.perfTotal=l.perfTotal,u.receivedResponse=l.receivedResponse,u.sentRequest=l.sentRequest)}return r.envelopeType=vZ,r.dataType=T7,r})();function rC(r){var e="ai."+r+".";return function(t){return e+t}}var a2=rC("application"),zc=rC("device"),L4=rC("location"),CI=rC("operation"),zz=rC("session"),gw=rC("user"),QC=rC("cloud"),s2=rC("internal"),dye=(function(r){E_(e,r);function e(){return r.call(this)||this}return e})(SDe({applicationVersion:a2("ver"),applicationBuild:a2("build"),applicationTypeId:a2("typeId"),applicationId:a2("applicationId"),applicationLayer:a2("layer"),deviceId:zc("id"),deviceIp:zc("ip"),deviceLanguage:zc("language"),deviceLocale:zc("locale"),deviceModel:zc("model"),deviceFriendlyName:zc("friendlyName"),deviceNetwork:zc("network"),deviceNetworkName:zc("networkName"),deviceOEMName:zc("oemName"),deviceOS:zc("os"),deviceOSVersion:zc("osVersion"),deviceRoleInstance:zc("roleInstance"),deviceRoleName:zc("roleName"),deviceScreenResolution:zc("screenResolution"),deviceType:zc("type"),deviceMachineName:zc("machineName"),deviceVMName:zc("vmName"),deviceBrowser:zc("browser"),deviceBrowserVersion:zc("browserVersion"),locationIp:L4("ip"),locationCountry:L4("country"),locationProvince:L4("province"),locationCity:L4("city"),operationId:CI("id"),operationName:CI("name"),operationParentId:CI("parentId"),operationRootId:CI("rootId"),operationSyntheticSource:CI("syntheticSource"),operationCorrelationVector:CI("correlationVector"),sessionId:zz("id"),sessionIsFirst:zz("isFirst"),sessionIsNew:zz("isNew"),userAccountAcquisitionDate:gw("accountAcquisitionDate"),userAccountId:gw("accountId"),userAgent:gw("userAgent"),userId:gw("id"),userStoreRegion:gw("storeRegion"),userAuthUserId:gw("authUserId"),userAnonymousUserAcquisitionDate:gw("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:gw("authUserAcquisitionDate"),cloudName:QC("name"),cloudRole:QC("role"),cloudRoleVer:QC("roleVer"),cloudRoleInstance:QC("roleInstance"),cloudEnvironment:QC("environment"),cloudLocation:QC("location"),cloudDeploymentUnit:QC("deploymentUnit"),internalNodeName:s2("nodeName"),internalSdkVersion:s2("sdkVersion"),internalAgentVersion:s2("agentVersion"),internalSnippet:s2("snippet"),internalSdkSrc:s2("sdkSrc")})),Up={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os"},za=new dye;function P0(r,e,t,n,i,o){t=Sl(n,t)||f_,(hr(r)||hr(e)||hr(t))&&Vp("Input doesn't contain all required fields");var a="";r[Cz]&&(a=r[Cz],delete r[Cz]);var l={name:t,time:kP(new Date),iKey:a,ext:o||{},tags:[],data:{},baseType:e,baseData:r};return hr(i)||zi(i,function(u,h){l[jp][u]=h}),l}function l2(r){var e=null;if(Ar(Event))e=new Event(r);else{var t=Eu();t&&t[c8]&&(e=t[c8]("Event"),e.initEvent(r,!0,!0))}return e}function Xre(r,e){kR(r,null,null,e)}function QFe(r){var e=Eu(),t=XE(),n=!1,i=[],o=1;t&&!hr(t.onLine)&&!t.onLine&&(o=2);var a=0,l=_(),u=QE(vv("OfflineListener"),r);try{if(p(ig())&&(n=!0),e){var h=e.body||e;h.ononline&&p(h)&&(n=!0)}}catch{n=!1}function p(H){var F=!1;return H&&(F=K1(H,"online",S,u),F&&K1(H,"offline",R,u)),F}function m(){return l}function _(){return!(a===2||o===2)}function C(){var H=_();l!==H&&(l=H,Or(i,function(F){var j={isOnline:l,rState:o,uState:a};try{F(j)}catch{}}))}function T(H){a=H,C()}function S(){o=1,C()}function R(){o=2,C()}function O(){var H=ig();if(H&&n){if(Xre(H,u),e){var F=e.body||e;ba(F.ononline)||Xre(F,u)}n=!1}}function N(H){return i[En](H),{rm:function(){var F=Da(i,H);if(F>-1)return i[Tv](F,1)}}}return{isOnline:m,isListening:function(){return n},unload:O,addListener:N,setOnlineState:T}}var bZ="AppInsightsPropertiesPlugin",hye="AppInsightsChannelPlugin",wZ="ApplicationInsightsAnalytics",JFe=RS({history:{blkVal:!0,v:void 0}}),e8e=(function(r){E_(e,r);function e(){var t=r.call(this)||this;t.priority=185,t.identifier="ReactPlugin";var n,i,o,a,l;return ol(e,t,function(u,h){p(),u.initialize=function(C,T,S,R){r.prototype.initialize.call(t,C,T,S,R),u._addHook(Tl(C,function(O){var N,H=u._getTelCtx();if(i=H.getExtCfg(t.identifier,JFe),n=(N=T.getPlugin(wZ))===null||N===void 0?void 0:N.plugin,Ar(o)&&(o(),o=null),i.history&&(_(i.history),!l)){var F={uri:i.history.location.pathname};u.trackPageView(F),l=!0}}))},u.getCookieMgr=function(){return f7(u.core)},u.getAppInsights=m,u.processTelemetry=function(C,T){u.processNext(C,T)},u._doTeardown=function(C,T,S){Ar(o)&&o(),a&&clearTimeout(a),p()},GA(u,m,["trackMetric","trackPageView","trackEvent","trackException","trackTrace"]);function p(){n=null,i=null,o=null,a=null,l=!1}function m(){return n||Hr(u.diagLog(),1,64,"Analytics plugin is not available, React plugin telemetry will not be sent: "),n}function _(C){var T=function(S){var R=null;"location"in S?R=S.location:R=S,a=setTimeout(function(){a=null;var O={uri:R.pathname};u.trackPageView(O)},500)};o=C.listen(T)}EMe(u,"_extensionConfig",function(){return i})}),t}return e.__ieDyn=1,e})(kS),M8="toString",Nq="isStorageUseDisabled",xI="_addHook",Ro="core",Lp="diagLog",JC="track",kH="trackPageView",dm="config",Dq="trackPreviousPageVisit",Lx="sendPageViewInternal",jz="refUri",DP="startTime",dM="properties",k0="duration",Lq
73="sendPageViewPerformanceInternal",EZ="populatePageViewPerformanceEvent",vA="href",Qre="sendExceptionInternal",c2="error",Vz="lineNumber",qz="columnNumber",Gz="CreateAutoException",H4="addTelemetryInitializer",t8e="overridePageViewDuration",Yz="autoExceptionInstrumented",fye="autoTrackPageVisitTime",pye="isBrowserLinkTrackingEnabled",JN="length",gye="enableAutoRouteTracking",Wz="getTraceCtx",mye="enableUnhandledPromiseRejectionTracking",Hq="autoUnhandledPromiseInstrumented",Fq="getEntriesByType",yye="isPerformanceTimingSupported",vye="getPerformanceTiming",N8="navigationStart",_ye="shouldCollectDuration",bye="isPerformanceTimingDataReady",hM="responseStart",r8e="requestStart",OH="loadEventEnd",Uq="responseEnd",MH="connectEnd",Bq="pageVisitTime";function n8e(r,e,t,n){var i,o=null,a=[],l=!1,u=!1,h;t&&(h=t.logger);function p(C){t&&t.flush(C,function(){})}function m(){o||(o=Gh((function(){o=null;var C=a.slice(0),T=!1;a=[],Or(C,function(S){S()?T=!0:a.push(S)}),a[JN]>0&&m(),T&&p(!0)}),100))}function _(C){a.push(C),m()}return i={},i[kH]=function(C,T){var S=C.name;if(hr(S)||typeof S!="string"){var R=Eu();S=C.name=R&&R.title||""}var O=C.uri;if(hr(O)||typeof O!="string"){var N=q0();O=C.uri=N&&N[vA]||""}if(t&&t[dm]&&(O=C.uri=Qp(C.uri,t[dm])),!u){var H=ug(),F=H&&H[Fq]&&H[Fq]("navigation");if(F&&F[0]&&!ba(H.timeOrigin)){var j=F[0].loadEventStart;C[DP]=new Date(H.timeOrigin+j)}else{var L=(T||C[dM]||{})[k0]||0;C[DP]=new Date(new Date().getTime()-L)}u=!0}if(!n[yye]()){r[Lx](C,T),p(!0),dge()||Hr(h,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");return}var B=!1,Q,Z=n[vye]()[N8];Z>0&&(Q=Df(Z,+new Date),n[_ye](Q)||(Q=void 0));var ie;!hr(T)&&!hr(T[k0])&&(ie=T[k0]),(e||!isNaN(ie))&&(isNaN(ie)&&(T||(T={}),T[k0]=Q),r[Lx](C,T),p(!0),B=!0);var J=6e4;T||(T={}),_(function(){var ne=!1;try{if(n[bye]()){ne=!0;var ue={name:S,uri:O};n[EZ](ue),!ue.isValid&&!B?(T[k0]=Q,r[Lx](C,T)):(B||(T[k0]=ue.durationMs,r[Lx](C,T)),l||(r[Lq](ue,T),l=!0))}else Z>0&&Df(Z,+new Date)>J&&(ne=!0,B||(T[k0]=J,r[Lx](C,T)))}catch(K){Hr(h,1,38,"trackPageView failed on page load calculation: "+Jo(K),{exception:tn(K)})}return ne})},i.teardown=function(C,T){if(o){o.cancel(),o=null;var S=a.slice(0);a=[],Or(S,function(R){R()})}},i}var i8e=36e5,Jre=["googlebot","adsbot-google","apis-google","mediapartners-google"];function wye(){var r=ug();return r&&!!r.timing}function o8e(){var r=ug();return r&&r.getEntriesByType&&r.getEntriesByType("navigation")[JN]>0}function a8e(){var r=ug(),e=r?r.timing:0;return e&&e.domainLookupStart>0&&e[N8]>0&&e[hM]>0&&e[r8e]>0&&e[OH]>0&&e[Uq]>0&&e[MH]>0&&e.domLoading>0}function ene(){return wye()?ug().timing:null}function s8e(){return o8e()?ug()[Fq]("navigation")[0]:null}function tne(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=XE()||{},n=t.userAgent,i=!1;if(n)for(var o=0;o<Jre[JN];o++)i=i||Cs(n.toLowerCase(),Jre[o])!==-1;if(i)return!1;for(var o=0;o<r[JN];o++)if(r[o]<0||r[o]>=i8e)return!1;return!0}function l8e(r){var e,t=vk(r);return e={},e[EZ]=function(n){n.isValid=!1;var i=s8e(),o=ene(),a=0,l=0,u=0,h=0,p=0;(i||o)&&(i?(a=i[k0],l=i[DP]===0?i[MH]:Df(i[DP],i[MH]),u=Df(i.requestStart,i[hM]),h=Df(i[hM],i[Uq]),p=Df(i.responseEnd,i[OH])):(a=Df(o[N8],o[OH]),l=Df(o[N8],o[MH]),u=Df(o.requestStart,o[hM]),h=Df(o[hM],o[Uq]),p=Df(o.responseEnd,o[OH])),a===0?Hr(t,2,10,"error calculating page view performance.",{total:a,network:l,request:u,response:h,dom:p}):tne(a,l,u,h,p)?a<$d(l)+$d(u)+$d(h)+$d(p)?Hr(t,2,8,"client performance math error.",{total:a,network:l,request:u,response:h,dom:p}):(n.durationMs=a,n.perfTotal=n[k0]=N1(a),n.networkConnect=N1(l),n.sentRequest=N1(u),n.receivedResponse=N1(h),n.domProcessing=N1(p),n.isValid=!0):Hr(t,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:a,network:l,request:u,response:h,dom:p}))},e[vye]=ene,e[yye]=wye,e[bye]=a8e,e[_ye]=tne,e}function c8e(r,e){var t;return t={pageVisitStartTime:$m(),pageName:r,pageUrl:e},t[Bq]=0,t}function u8e(r,e){var t,n="prevPageVisitData";function i(a,l){var u=null;try{if(u=o(),XN()){Pq(r,n)!=null&&Vp("Cannot call startPageVisit consecutively without first calling stopPageVisit");var h=yv().stringify(c8e(a,l));eye(r,n,h)}}catch(p){IT(r,"Call to restart failed: "+tn(p)),u=null}return u}function o(){var a=null;try{if(XN()){var l=$m(),u=Pq(r,n);u&&rL()&&(a=yv().parse(u),a[Bq]=l-a.pageVisitStartTime,tye(r,n))}}catch(h){IT(r,"Stop page visit timer failed: "+tn(h)),a=null}return a}return t={},t[Dq]=function(a,l){try{var u=i(a,l);u&&e(u.pageName,u.pageUrl,u[Bq])}catch(h){IT(r,"Auto track page visit time failed, metric will not be collected: "+tn(h))}},t._logger=r,t.pageVisitTimeTrackingHandler=e,t}function rne(r,e){var t={},n={action:null,start:function(i){typeof t[i]<"u"&&Hr(r,2,62,"start was called more than once for this event without calling stop.",{name:i,key:i},!0),t[i]=+new Date},stop:function(i,o,a,l){var u=t[i];if(isNaN(u))Hr(r,2,63,"stop was called without a corresponding start.",{name:i,key:i},!0);else{var h=+new Date,p=Df(u,h);n.action(i,o,p,a,l)}delete t[i],t[i]=void 0}};return n}var Sd,d8e="event";function u2(r,e){r&&r.dispatchEvent&&e&&r.dispatchEvent(e)}
73function h8e(r){if(r&&r.reason){var e=r.reason;return!gn(e)&&Ar(e[M8])?e[M8]():tn(e)}return r||""}var nne=6e4,f8e=RS((Sd={sessionRenewalMs:Jte(ine,1800*1e3),sessionExpirationMs:Jte(ine,1440*60*1e3),disableExceptionTracking:vc()},Sd[fye]=vc(),Sd[t8e]=vc(),Sd[mye]=vc(),Sd[Hq]=!1,Sd.samplingPercentage=g8(p8e,100),Sd[Nq]=vc(),Sd[pye]=vc(),Sd[gye]=vc(),Sd.namePrefix=bDe(),Sd.enableDebug=vc(),Sd.disableFlushOnBeforeUnload=vc(),Sd.disableFlushOnUnload=vc(!1,"disableFlushOnBeforeUnload"),Sd.expCfg=Uf({inclScripts:!1,expLog:void 0,maxLogs:50}),Sd.routeTraceStrategy=0,Sd));function ine(r,e){return r=r||e,r<nne&&(r=nne),+r}function p8e(r){return!isNaN(r)&&r>0&&r<=100}function g8e(r){ba(r[Nq])||(r[Nq]?gFe():mFe())}var m8e=(function(r){E_(e,r);function e(){var t=r.call(this)||this;t.identifier=wZ,t.priority=180,t.autoRoutePVDelay=500;var n,i,o,a,l,u,h,p,m,_,C,T,S,R,O,N,H,F,j,L,B,Q;return ol(e,t,function(Z,ie){var J=ie[xI];pe(),Z.getCookieMgr=function(){return f7(Z[Ro])},Z.processTelemetry=function(He,Re){Z.processNext(He,Re)},Z.trackEvent=function(He,Re){try{var $e=P0(He,OR,mZ,Z[Lp](),Re);Z[Ro][JC]($e)}catch(tt){ve(2,39,"trackTrace failed, trace will not be collected: "+Jo(tt),{exception:tn(tt)})}},Z.startTrackEvent=function(He){try{n.start(He)}catch(Re){ve(1,29,"startTrackEvent failed, event will not be collected: "+Jo(Re),{exception:tn(Re)})}},Z.stopTrackEvent=function(He,Re,$e){try{n.stop(He,void 0,Re,$e)}catch(tt){ve(1,30,"stopTrackEvent failed, event will not be collected: "+Jo(tt),{exception:tn(tt)})}},Z.trackTrace=function(He,Re){try{var $e=P0(He,S7,_Z,Z[Lp](),Re);Z[Ro][JC]($e)}catch(tt){ve(2,39,"trackTrace failed, trace will not be collected: "+Jo(tt),{exception:tn(tt)})}},Z.trackMetric=function(He,Re){try{var $e=P0(He,lL,yZ,Z[Lp](),Re);Z[Ro][JC]($e)}catch(tt){ve(1,36,"trackMetric failed, metric will not be collected: "+Jo(tt),{exception:tn(tt)})}},Z[kH]=function(He,Re){try{var $e=He||{};Z[Ro]&&Z[Ro][dm]&&($e.uri=Qp($e.uri,Z[Ro][dm])),o[kH]($e,og(og(og({},$e.properties),$e.measurements),Re)),N&&l[Dq]($e.name,$e.uri)}catch(tt){ve(1,37,"trackPageView failed, page view will not be collected: "+Jo(tt),{exception:tn(tt)})}},Z[Lx]=function(He,Re,$e){var tt=Eu();if(tt&&(He[jz]=He[jz]===void 0?tt.referrer:He[jz]),Z[Ro]&&Z[Ro][dm]&&(He.refUri=Qp(He.refUri,Z[Ro][dm])),hr(He[DP])){var ot=(Re||He[dM]||{})[k0]||0;He[DP]=new Date(new Date().getTime()-ot)}var qe=P0(He,cL,I7,Z[Lp](),Re,$e);Z[Ro][JC](qe),ne()},Z[Lq]=function(He,Re,$e){var tt=P0(He,T7,vZ,Z[Lp](),Re,$e);Z[Ro][JC](tt)},Z.trackPageViewPerformance=function(He,Re){var $e=He||{};try{a[EZ]($e),Z[Lq]($e,Re)}catch(tt){ve(1,37,"trackPageViewPerformance failed, page view will not be collected: "+Jo(tt),{exception:tn(tt)})}},Z.startTrackPage=function(He){try{if(typeof He!="string"){var Re=Eu();He=Re&&Re.title||""}i.start(He)}catch($e){ve(1,31,"startTrackPage failed, page view may not be collected: "+Jo($e),{exception:tn($e)})}},Z.stopTrackPage=function(He,Re,$e,tt){try{if(typeof He!="string"){var ot=Eu();He=ot&&ot.title||""}if(typeof Re!="string"){var qe=q0();Re=qe&&qe[vA]||""}Z[Ro]&&Z[Ro][dm]&&(Re=Qp(Re,Z[Ro][dm])),i.stop(He,Re,$e,tt),N&&l[Dq](He,Re)}catch(lt){ve(1,32,"stopTrackPage failed, page view will not be collected: "+Jo(lt),{exception:tn(lt)})}},Z[Qre]=function(He,Re,$e){var tt=He&&(He.exception||He[c2])||MK(He)&&He||{name:He&&typeof He,message:He||f_};He=He||{};var ot=new uM(Z[Lp](),tt,He[dM]||Re,He.measurements,He.severityLevel,He.id).toInterface(),qe=Eu();if(qe&&(H!=null&&H.inclScripts)){var lt=$Le(qe);ot[dM].exceptionScripts=JSON.stringify(lt)}if(H!=null&&H.expLog){var Et=H.expLog();Et&&Et.logs&&ni(Et.logs)&&(ot[dM].exceptionLog=Et.logs.slice(0,H.maxLogs).join(`
74`))}var Oe=P0(ot,QN,k8,Z[Lp](),Re,$e);Z[Ro][JC](Oe)},Z.trackException=function(He,Re){He&&!He.exception&&He[c2]&&(He.exception=He[c2]);try{Z[Qre](He,Re)}catch($e){ve(1,35,"trackException failed, exception will not be collected: "+Jo($e),{exception:tn($e)})}},Z._onerror=function(He){var Re=He&&He[c2],$e=He&&He.evt;try{if(!$e){var tt=ig();tt&&($e=tt[d8e])}var ot=He&&He.url||(Eu()||{}).URL,qe=He.errorSrc||"window.onerror@"+ot+":"+(He[Vz]||0)+":"+(He[qz]||0),lt={errorSrc:qe,url:ot,lineNumber:He[Vz]||0,columnNumber:He[qz]||0,message:He.message};DDe(He.message,He.url,He.lineNumber,He.columnNumber,He[c2])?be(uM[Gz]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",ot,He[Vz]||0,He[qz]||0,Re,$e,null,qe),lt):(He.errorSrc||(He.errorSrc=qe),Z.trackException({exception:He,severityLevel:3},lt))}catch(Oe){var Et=Re?Re.name+", "+Re.message:"null";ve(1,11,"_onError threw exception while logging error, error will not be collected: "+Jo(Oe),{exception:tn(Oe),errorString:Et})}},Z[H4]=function(He){if(Z[Ro])return Z[Ro][H4](He);u||(u=[]),u.push(He)},Z.initialize=function(He,Re,$e,tt){if(!Z.isInitialized()){hr(Re)&&Vp("Error initializing"),ie.initialize(He,Re,$e,tt);try{B=QE(vv(Z.identifier),Re.evtNamespace&&Re.evtNamespace()),u&&(Or(u,function(ot){Re[H4](ot)}),u=null),ue(He),a=l8e(Z[Ro]),o=n8e(Z,O.overridePageViewDuration,Z[Ro],a),l=u8e(Z[Lp](),function(ot,qe,lt){return K(ot,qe,lt)}),n=rne(Z[Lp](),"trackEvent"),n.action=function(ot,qe,lt,Et,Oe){Et||(Et={}),Oe||(Oe={}),Et.duration=lt[M8](),Z.trackEvent({name:ot,properties:Et,measurements:Oe})},i=rne(Z[Lp](),"trackPageView"),i.action=function(ot,qe,lt,Et,Oe){hr(Et)&&(Et={}),Et.duration=lt[M8]();var le={name:ot,uri:qe,properties:Et,measurements:Oe};Z[Lx](le,Et)},o7()&&(de(),ge())}catch(ot){throw Z.setInitialized(!1),ot}}},Z._doTeardown=function(He,Re){o&&o.teardown(He,Re),kR(window,null,
74null,B),pe()},Z._getDbgPlgTargets=function(){return[Q,T]};function ne(){if(Z[Ro]){var He=Z[Ro].getPlugin("AjaxDependencyPlugin");He&&He.plugin&&He.plugin.resetAjaxAttempts&&He.plugin.resetAjaxAttempts()}}function ue(He){var Re=Z.identifier,$e=Z[Ro];Z[xI](Tl(He,function(){var tt=_v(null,He,$e);O=tt.getExtCfg(Re,f8e),T=T||He[Yz]||O[Yz],H=O.expCfg,N=O[fye],F=O.routeTraceStrategy||0,He.storagePrefix&&gZ(He.storagePrefix),g8e(O),h=O[pye],se()}))}function K(He,Re,$e){var tt={PageName:He,PageUrl:Re};Z.trackMetric({name:"PageVisitTime",average:$e,max:$e,min:$e,sampleCount:1},tt)}function se(){if(!p&&h){var He=["/browserLinkSignalR/","/__browserLink/"],Re=function($e){if(h&&$e.baseType===uL){var tt=$e.baseData;if(tt){for(var ot=0;ot<He[JN];ot++)if(tt.target&&Cs(tt.target,He[ot])>=0)return!1}}return!0};Z[xI](Z[H4](Re)),p=!0}}function be(He,Re){var $e=P0(He,QN,k8,Z[Lp](),Re);Z[Ro][JC]($e)}function de(){var He=ig(),Re=q0();Z[xI](Tl(O,function(){C=O.disableExceptionTracking,!C&&!T&&!O[Yz]&&(J(M4(He,"onerror",{ns:B,rsp:function($e,tt,ot,qe,lt,Et){!C&&$e.rslt!==!0&&Z._onerror(uM[Gz](tt,ot,qe,lt,Et,$e.evt))}},!1)),Q++,T=!0)})),Qe(He,Re)}function ge(){var He=ig(),Re=q0();Z[xI](Tl(O,function(){if(m=O[gye]===!0,He&&m&&!_&&zMe()){var $e=uge();Ar($e.pushState)&&Ar($e.replaceState)&&typeof Event!==SK&&Ue(He,$e,Re)}}))}function Ue(He,Re,$e){if(_)return;var tt=O.namePrefix||"";function ot(){m&&u2(He,l2(tt+"locationchange"))}function qe(){if(L&&(j=L),L=$e&&$e[vA]||"",Z[Ro]&&Z[Ro][dm]&&(L=Qp(L,Z[Ro][dm])),m){var lt=void 0;if(Z[Ro]&&Z[Ro][Wz]){var Et=Z[Ro][Wz](!1);Et&&F===1?lt=Om(Et):lt=Z[Ro][Wz](!0),lt.traceId=iS(),lt.pageName=Sl(Z[Lp](),lt.pageName||"_unknown_"),Z[Ro].setTraceCtx(lt)}Gh((function(Oe){Z[kH]({refUri:Oe,properties:{duration:0}})}).bind(Z,j),Z.autoRoutePVDelay)}}J(M4(Re,"pushState",{ns:B,rsp:function(){m&&(u2(He,l2(tt+"pushState")),u2(He,l2(tt+"locationchange")))}},!0)),J(M4(Re,"replaceState",{ns:B,rsp:function(){m&&(u2(He,l2(tt+"replaceState")),u2(He,l2(tt+"locationchange")))}},!0)),K1(He,tt+"popstate",ot,B),K1(He,tt+"locationchange",qe,B),_=!0}function Qe(He,Re){Z[xI](Tl(O,function(){S=O[mye]===!0,T=T||O[Hq],S&&!R&&(J(M4(He,"onunhandledrejection",{ns:B,rsp:function($e,tt){S&&$e.rslt!==!0&&Z._onerror(uM[Gz](h8e(tt),Re?Re[vA]:"",0,0,tt,$e.evt))}},!1)),Q++,O[Hq]=R=!0)}))}function ve(He,Re,$e,tt,ot){Z[Lp]().throwInternal(He,Re,$e,tt,ot)}function pe(){n=null,i=null,o=null,a=null,l=null,u=null,h=!1,p=!1,m=!1,_=!1,C=!1,T=!1,S=!1,R=!1,N=!1,ne();var He=q0();j=He&&He[vA]||"",Z[Ro]&&Z[Ro][dm]&&(j=Qp(j,Z[Ro][dm])),L=null,B=null,O=null,Q=0,hi(Z,"config",{g:function(){return O}})}hi(Z,"_pageViewManager",{g:function(){return o}}),hi(Z,"_pageViewPerformanceManager",{g:function(){return a}}),hi(Z,"_pageVisitTimeManager",{g:function(){return l}}),hi(Z,"_evtNamespace",{g:function(){return"."+B}})}),t}return e.Version="3.4.1",e})(kS),NH="featureOptIn",Eye="scheduleFetchTimeout";function Cye(r,e,t,n){try{var i=t>n;i&&(r=null);var o=t==0?_Ne({},r):r;return o&&e&&!i&&zi(o,function(a){var l=e[a];l&&(cd(o[a])&&cd(l)?o[a]=Cye(o[a],l,++t,n):delete o[a])}),o}catch{}return r}var NR="featureOptIn.",xye=".mode",Tye=".onCfg",Sye=".offCfg";function y8e(r,e,t){var n;if(!e||!e.enabled)return null;var i=(e[NH]||{})[r]||{mode:1},o=i.mode,a=i.onCfg,l=i.offCfg,u=(t||{})[r]||{mode:2},h=u.mode,p=u.onCfg,m=u.offCfg,_=!!u.blockCdnCfg,C=NR+r+xye,T=NR+r+Tye,S=NR+r+Sye,R=h,O=p,N=m;return _||(o===4||o===5?(R=o==4?3:2,O=a||p,N=l||m):o===2||h===2?(R=2,O=p||a,N=m||l):o===3?(R=3,O=p||a,N=m||l):o===1&&h===1&&(R=1)),n={},n[C]=R,n[T]=O,n[S]=N,n}function v8e(r,e){try{if(!r||!r.enabled)return null;if(!r[NH])return r.config;var t=r[NH],n=r.config||{};return zi(t,function(i){var o=y8e(i,r,e.config[NH]);hr(o)||(zi(o,function(a,l){yge(n,a,l)}),_8e(i,o,n))}),n}catch{}return null}function _8e(r,e,t){var n=e[NR+r+xye],i=e[NR+r+Tye],o=e[NR+r+Sye],a=null;n===3&&(a=i),n===2&&(a=o),a&&zi(a,function(l,u){yge(t,l,u)})}var d2,b8e="ai_cfgsync",w8e="GET",E8e=18e5,TI=void 0,C8e={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},x8e=RS((d2={syncMode:1,blkCdnCfg:TI,customEvtName:TI,cfgUrl:TI,overrideSyncFn:TI,overrideFetchFn:TI,onCfgChangeReceive:TI},d2[Eye]=E8e,d2.nonOverrideConfigs=C8e,d2.enableAjax=!1,d2)),T8e=(function(r){E_(e,r);function e(){var t=r.call(this)||this;t.priority=198,t.identifier="AppInsightsCfgSyncPlugin";var n,i,o,a,l,u,h,p,m,_,C,T,S,R,O,N,H=!1,F;return ol(e,t,function(j,L){B(),j.initialize=function(ve,pe,He,Re){L.initialize(ve,pe,He,Re),a=QE(vv(j.identifier),pe.evtNamespace&&pe.evtNamespace()),Q(ve)},j.getCfg=function(){return i},j.pause=function(){H=!0,Qe()},j.resume=function(){H=!1,Ue()},j.setCfg=function(ve){return Z(ve)},j.sync=function(ve){return J(ve)},j.updateEventListenerName=function(ve){return ne(ve)},j._doTeardown=function(ve,pe){ie(),Qe(),B()},j._getDbgPlgTargets=function(){return[p,h,o,m,S]};function B(){i=null,o=null,a=null,l=null,h=null,p=null,S=null,u=null,_=null,C=null,m=null,F=!1,O=null,N=null,T=null}function Q(ve){var pe=j.identifier,He=j.core;j._addHook(Tl(ve,function(){var Re=_v(null,ve,He);n=Re.getExtCfg(pe,x8e);var $e=m;m=!!n.blkCdnCfg,F=!!n.enableAjax,!hr($e)&&$e!==m&&(!m&&l?R&&R(l,se,p):Qe()),hr(h)&&(h=n.syncMode===2),hr(p)&&(p=n.syncMode===1);var tt=n.customEvtName||b8e;o!==tt&&(h?ne(tt):(ie(),o=tt)),hr(l)&&(l=n.cfgUrl),l||(i=ve,p&&J())})),N=n.overrideSyncFn,O=n.overrideFetchFn,T=n.onCfgChangeReceive,S=n.nonOverrideConfigs,_=n[Eye],R=ue(),C=0,l&&!m&&R&&R(l,se,p)}function Z(ve,pe){if(ve){if(i=ve,pe&&!H)return J();if(h&&!H)return j.core.updateCfg(ve),!0}return!1}function ie(){try{var ve=km();ve&&kR(ve,null,null,a)}catch{}}function J(ve){try{return N&&Ar(N)?N(i,ve):QDe(o,i,ve)}catch{}return!1}function ne(ve){try{return ie(),ve&&(o=ve,de()),!0}catch{}return!1}function ue(){var ve=O;return hr(ve)&&KK()&&(ve=K),ve}function K(ve,pe,He){var Re=km(),$e=Re&&Re.fetch||null;if(ve&&$e&&Ar($e))try{var tt={method:w8e};F||(tt[fE]=!0);
74var ot=new Request(ve,tt);if(!F)try{ot[fE]=!0}catch{}qf(fetch(ot),function(qe){var lt=qe.value;qe.rejected?be(pe,400):lt.ok?qf(lt.text(),function(Et){be(pe,lt.status,Et.value,He)}):be(pe,lt.status,null,He)})}catch{}}function se(ve,pe,He){try{if(ve>=200&&ve<400&&pe){C=0;var Re=yv();if(Re){var $e=Re.parse(pe),tt=v8e($e,j.core),ot=tt&&Uh(tt)&&ge(tt);ot&&Z(ot,He)}}else C++;C<3&&Ue()}catch{}}function be(ve,pe,He,Re){try{ve(pe,He,Re)}catch{}}function de(){if(h){var ve=km();if(ve)try{K1(ve,o,function(pe){var He=pe&&pe.detail;if(T&&He)T(He);else{var Re=He&&He.cfg,$e=Re&&Uh(Re)&&ge(Re);$e&&Z($e)}},a,!0)}catch{}}}function ge(ve,pe){var He=null;try{ve&&(He=Cye(ve,S,0,5))}catch{}return He}function Ue(){!u&&_&&(u=Gh(function(){u=null,R(l,se,p)},_),u.unref())}function Qe(){u&&u.cancel(),u=null,C=0}j.processTelemetry=function(ve,pe){j.processNext(ve,pe)}}),t}return e.__ieDyn=1,e})(kS),$w="duration";function nC(r,e){return{baseType:r,baseData:e,aiDataContract:{baseType:1,baseData:1}}}var td="tags",Kz="deviceType",Nh="data",bv="name",eD="traceID",Vi="length",tD="stringify",iC="measurements",CZ="responseCode",aS="toString",RT="enqueue",PT="count",Z1="push",$q="emitLineDelimitedJson",DR="clear",D8="markAsSent",jM="clearSent",xZ="bufferOverride",h2="BUFFER_KEY",mw="SENT_BUFFER_KEY",_A="concat",f2="MAX_BUFFER_SIZE",p2="triggerSend",Id="diagLog",Zz="initialize",g2="_sender",m2="endpointUrl",fM="instrumentationKey",zq="customHeaders",Iye="maxBatchSizeInBytes",jq="onunloadDisableBeacon",Vq="isBeaconApiDisabled",Aye="alwaysUseXhrOverride",Rye="enableSessionStorageBuffer",C0="_buffer",Pye="onunloadDisableFetch",kye="disableSendBeaconSplit",F4="getSenderInst",ex="_onError",Xz="_onPartialSuccess",U4="_onSuccess",Qz="itemsReceived",Jz="itemsAccepted",DH="baseType",LH="sampleRate",S8e="Microsoft.ApplicationInsights.{0}.RemoteDependency";function I8e(r,e,t,n){var i,o=n,a=n;if(e&&e[Vi]>0){var l=E7(e);if(i=l.host,!o)if(l.pathname!=null){var u=l.pathname[Vi]===0?"/":l.pathname;u.charAt(0)!=="/"&&(u="/"+u),a=l.pathname,o=Sl(r,t?t+" "+u:u)}else o=Sl(r,e)}else i=n,o=n;return{target:i,name:o,data:a}}function A8e(r,e,t,n,i,o,a,l,u,h,p,m){u===void 0&&(u="Ajax");var _=I8e(r,t,l,n),C={ver:2,id:e,duration:N1(i),success:o,resultCode:""+a,type:Sl(r,u),data:aL(r,n)||_[Nh],target:Sl(r,_.target),name:Sl(r,_[bv]),properties:JE(r,p),measurements:eC(r,m),aiDataContract:{id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0}};return h&&(C.target=""+C.target+" | "+h),C}function R8e(r,e,t,n,i,o,a,l,u,h){var p;return p={ver:2,id:e,name:Sl(r,t),duration:N1(n),success:i},p[CZ]=Gi(o||"0"),p.source=Sl(r,a),p.url=aL(r,l),p.properties=JE(r,u),p.measurements=eC(r,h),p.aiDataContract={id:1,ver:1,name:0,responseCode:1,duration:1,success:1,source:0,url:0,properties:0,measurements:0},p}var e5="baseType",os="baseData",Gc="properties",one="true";function $l(r,e,t){return Ba(r,e,t,WF)}function P8e(r,e,t){var n=t[td]=t[td]||{},i=e.ext=e.ext||{},o=e[td]=e[td]||{},a=i.user;a&&($l(n,za.userAuthUserId,a.authId),$l(n,za.userId,a.id||a.localId));var l=i.app;l&&$l(n,za.sessionId,l.sesId);var u=i.device;u&&($l(n,za.deviceId,u.id||u.localId),$l(n,za[Kz],u.deviceClass),$l(n,za.deviceIp,u.ip),$l(n,za.deviceModel,u.model),$l(n,za[Kz],u[Kz]));var h=e.ext.web;if(h){$l(n,za.deviceLanguage,h.browserLang),$l(n,za.deviceBrowserVersion,h.browserVer),$l(n,za.deviceBrowser,h.browser);var p=t[Nh]=t[Nh]||{},m=p[os]=p[os]||{},_=m[Gc]=m[Gc]||{};$l(_,"domain",h.domain),$l(_,"isManual",h.isManual?one:null),$l(_,"screenRes",h.screenRes),$l(_,"userConsent",h.userConsent?one:null)}var C=i.os;C&&($l(n,za.deviceOS,C[bv]),$l(n,za.deviceOSVersion,C.osVer));var T=i.trace;T&&($l(n,za.operationParentId,T.parentID),$l(n,za.operationName,Sl(r,T[bv])),$l(n,za.operationId,T[eD]));for(var S={},R=o[Vi]-1;R>=0;R--){var O=o[R];zi(O,function(H,F){S[H]=F}),o.splice(R,1)}zi(o,function(H,F){S[H]=F});var N=og(og({},n),S);N[za.internalSdkVersion]||(N[za.internalSdkVersion]=Sl(r,"javascript:".concat(k8e.Version),64)),t[td]=$ge(N)}function db(r,e,t){hr(r)||zi(r,function(n,i){ep(i)?t[n]=i:gn(i)?e[n]=i:rL()&&(e[n]=yv()[tD](i))})}function oC(r,e){hr(r)||zi(r,function(t,n){r[t]=n||e})}function aC(r,e,t,n){var i=new EFe(r,n,e);$l(i,"sampleRate",t[ame]);var o=(t[os]||{}).startTime;OK(o)&&(i.time=kP(o)),i.iKey=t.iKey;var a=t.iKey.replace(/-/g,"");return i[bv]=i[bv].replace("{0}",a),P8e(r,t,i),t[td]=t[td]||[],$ge(i)}function sC(r,e){hr(e[os])&&Hr(r,1,46,"telemetryItem.baseData cannot be null.")}var k8e={Version:"3.4.1"};function O8e(r,e,t){sC(r,e);var n=e[os][iC]||{},i=e[os][Gc]||{};db(e[Nh],i,n),hr(t)||oC(i,t);var o=e[os];if(hr(o))return IT(r,"Invalid input for dependency data"),null;var a=o[Gc]&&o[Gc][rre]?o[Gc][rre]:"GET",l=A8e(r,o.id,o.target,o[bv],o[$w],o.success,o[CZ],a,o.type,o.correlationContext,i,n),u=nC(uL,l);return aC(r,S8e,e,u)}function M8e(r,e,t){sC(r,e);var n=e[os][iC]||{},i=e[os][Gc]||{};db(e[Nh],i,n),hr(t)||oC(i,t);var o=e[os],a=R8e(r,o.id,o[bv],o[$w],o.success,o[CZ],o.source,o.url,i,n),l=nC(P8,a);return aC(r,P8,e,l)}function Oye(r,e,t){sC(r,e);var n={},i={};e[e5]!==OR&&(n.baseTypeSource=e[e5]),e[e5]===OR?(n=e[os][Gc]||{},i=e[os][iC]||{}):e[os]&&db(e[os],n,i),db(e[Nh],n,i),hr(t)||oC(n,t);var o=e[os][bv],a=new xFe(r,o,n,i),l=nC(OR,a);return aC(r,mZ,e,l)}function N8e(r,e,t){sC(r,e);var n=e[os][iC]||{},i=e[os][Gc]||{};db(e[Nh],i,n),hr(t)||oC(i,t);var o=e[os],a=uM.CreateFromInterface(r,o,i,n),l=nC(QN,a);return aC(r,k8,e,l)}function D8e(r,e,t){sC(r,e);var n=e[os],i=n[Gc]||{},o=n[iC]||{};db(e[Nh],i,o),hr(t)||oC(i,t);var a=new WFe(r,n[bv],n.average,n.sampleCount,n.min,n.max,n.stdDev,i,o),l=nC(lL,a);return aC(r,yZ,e,l)}function L8e(r,e,t){sC(r,e);var n,i=e[os];!hr(i)&&!hr(i[Gc])&&!hr(i[Gc][$w])?(n=i[Gc][$w],delete i[Gc][$w]):!hr(e[Nh])&&!hr(e[Nh][$w])&&(n=e[Nh][$w],delete e[Nh][$w]);var o=e[os],a;((e.ext||{}).trace||{})[eD]&&(a=e.ext.trace[eD]);var l=o.id||a,u=o[bv],h=o.uri,p=o[Gc]||{},m=o[iC]||{};if(hr(o.refUri)||(p.refUri=o.refUri),hr(o.pageType)||(p.pageType=o.pageType),hr(o.isLoggedIn)||(p.isLoggedIn=o.isLoggedIn[aS]()),!hr(
74o[Gc])){var _=o[Gc];zi(_,function(S,R){p[S]=R})}db(e[Nh],p,m),hr(t)||oC(p,t);var C=new KFe(r,u,h,n,p,m,l),T=nC(cL,C);return aC(r,I7,e,T)}function H8e(r,e,t){sC(r,e);var n=e[os],i=n[bv],o=n.uri||n.url,a=n[Gc]||{},l=n[iC]||{};db(e[Nh],a,l),hr(t)||oC(a,t);var u=new XFe(r,i,o,void 0,a,l,n),h=nC(T7,u);return aC(r,vZ,e,h)}function F8e(r,e,t){sC(r,e);var n=e[os].message,i=e[os].severityLevel,o=e[os][Gc]||{},a=e[os][iC]||{};db(e[Nh],o,a),hr(t)||oC(o,t);var l=new ZFe(r,n,i,o,a),u=nC(S7,l);return aC(r,_Z,e,u)}var Mye=(function(){function r(e,t){var n=[],i=!1,o=t.maxRetryCnt;this._get=function(){return n},this._set=function(a){return n=a,n},ol(r,this,function(a){a[RT]=function(l){if(a[PT]()>=t.eventsLimitInMem){i||(Hr(e,2,105,"Maximum in-memory buffer size reached: "+a[PT](),!0),i=!0);return}l.cnt=l.cnt||0,!(!hr(o)&&l.cnt>o)&&n[Z1](l)},a[PT]=function(){return n[Vi]},a.size=function(){for(var l=n[Vi],u=0;u<n[Vi];u++)l+=n[u].item[Vi];return t[$q]||(l+=2),l},a[DR]=function(){n=[],i=!1},a.getItems=function(){return n.slice(0)},a.batchPayloads=function(l){if(l&&l[Vi]>0){var u=[];Or(l,function(p){u[Z1](p.item)});var h=t[$q]?u.join(`
75`):"["+u.join(",")+"]";return h}return null},a.createNew=function(l,u,h){var p=n.slice(0);l=l||e,u=u||{};
75var m=h?new Nye(l,u):new TZ(l,u);return Or(p,function(_){m[RT](_)}),m}})}return r.__ieDyn=1,r})(),TZ=(function(r){E_(e,r);function e(t,n){var i=r.call(this,t,n)||this;return ol(e,i,function(o,a){o[D8]=function(l){a[DR]()},o[jM]=function(l){}}),i}return e.__ieDyn=1,e})(Mye),U8e=["AI_buffer","AI_sentBuffer"],Nye=(function(r){E_(e,r);function e(n,i){var o=r.call(this,n,i)||this,a=!1,l=i==null?void 0:i.namePrefix,u=i[xZ]||{getItem:Pq,setItem:eye},h=u.getItem,p=u.setItem,m=i.maxRetryCnt;return ol(e,o,function(_,C){var T=F(e[h2]),S=F(e[mw]),R=B(),O=S[_A](R),N=_._set(T[_A](O));N[Vi]>e[f2]&&(N[Vi]=e[f2]),L(e[mw],[]),L(e[h2],N),_[RT]=function(Z){if(_[PT]()>=e[f2]){a||(Hr(n,2,67,"Maximum buffer size reached: "+_[PT](),!0),a=!0);return}Z.cnt=Z.cnt||0,!(!hr(m)&&Z.cnt>m)&&(C[RT](Z),L(e[h2],_._get()))},_[DR]=function(){C[DR](),L(e[h2],_._get()),L(e[mw],[]),a=!1},_[D8]=function(Z){L(e[h2],_._set(H(Z,_._get())));var ie=F(e[mw]);ie instanceof Array&&Z instanceof Array&&(ie=ie[_A](Z),ie[Vi]>e[f2]&&(Hr(n,1,67,"Sent buffer reached its maximum size: "+ie[Vi],!0),ie[Vi]=e[f2]),L(e[mw],ie))},_[jM]=function(Z){var ie=F(e[mw]);ie=H(Z,ie),L(e[mw],ie)},_.createNew=function(Z,ie,J){J=!!J;var ne=_._get().slice(0),ue=F(e[mw]).slice(0);Z=Z||n,ie=ie||{},_[DR]();var K=J?new e(Z,ie):new TZ(Z,ie);return Or(ne,function(se){K[RT](se)}),J&&K[D8](ue),K};function H(Z,ie){var J=[],ne=[];return Or(Z,function(ue){ne[Z1](ue.item)}),Or(ie,function(ue){!Ar(ue)&&Da(ne,ue.item)===-1&&J[Z1](ue)}),J}function F(Z){var ie=Z;return ie=l?l+"_"+ie:ie,j(ie)}function j(Z){try{var ie=h(n,Z);if(ie){var J=yv().parse(ie);if(gn(J)&&(J=yv().parse(J)),J&&ni(J))return J}}catch(ne){Hr(n,1,42," storage key: "+Z+", "+Jo(ne),{exception:tn(ne)})}return[]}function L(Z,ie){var J=Z;try{J=l?l+"_"+J:J;var ne=JSON[tD](ie);p(n,J,ne)}catch(ue){p(n,J,JSON[tD]([])),Hr(n,2,41," storage key: "+J+", "+Jo(ue)+". Buffer cleared",{exception:tn(ue)})}}function B(){var Z=[];try{return Or(U8e,function(ie){var J=Q(ie);if(Z=Z[_A](J),l){var ne=l+"_"+ie,ue=Q(ne);Z=Z[_A](ue)}}),Z}catch(ie){Hr(n,2,41,"Transfer events from previous buffers: "+Jo(ie)+". previous Buffer items can not be removed",{exception:tn(ie)})}return[]}function Q(Z){try{var ie=j(Z),J=[];return Or(ie,function(ne){var ue={item:ne,cnt:0};J[Z1](ue)}),tye(n,Z),J}catch{}return[]}}),o}var t;return t=e,e.VERSION="_1",e.BUFFER_KEY="AI_buffer"+t.VERSION,e.SENT_BUFFER_KEY="AI_sentBuffer"+t.VERSION,e.MAX_BUFFER_SIZE=2e3,e})(Mye),t5="__aiCircularRefCheck";function SZ(r,e,t){var n={};if(!e)return Hr(r,1,48,"cannot serialize object because it is null or undefined",{name:t},!0),n;if(e[t5])return Hr(r,2,50,"Circular reference detected while serializing object",{name:t},!0),n;if(!e.aiDataContract){if(t==="measurements")n=r5(r,e,2);else if(t==="properties")n=r5(r,e,1);else if(t==="tags")n=r5(r,e,1);else if(ni(e))n=ane(r,e,t);else{Hr(r,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:t},!0);try{yv()[tD](e),n=e}catch(i){Hr(r,1,48,i&&Ar(i[aS])?i[aS]():"Error serializing object",null,!0)}}return n}return e[t5]=!0,zi(e.aiDataContract,function(i,o){var a=Ar(o)?o():o,l=a&1,u=a&4,h=a&2,p=e[i]!==void 0,m=cd(e[i])&&e[i]!==null;if(l&&!p&&!h)Hr(r,1,24,"Missing required field specification. The field is required but not present on source",{field:i,name:t});else if(!u){var _=void 0;m?h?_=ane(r,e[i],i):_=SZ(r,e[i],i):_=e[i],_!==void 0&&(n[i]=_)}}),delete e[t5],n}function ane(r,e,t){var n;if(e)if(!ni(e))Hr(r,1,54,`This field was specified as an array in the contract but the item is not an array.\r
76`,{name:t},!0);else{n=[];for(var i=0;i<e[Vi];i++){var o=e[i],a=SZ(r,o,t+"["+i+"]");n[Z1](a)}}return n}function r5(r,e,t,n){var i;return e&&(i={},zi(e,function(o,a){var l;a===void 0?l="undefined":a===null&&(l="null"),t===1&&!l?a[aS]?l=a[aS]():l="invalid field: toString() is not defined.":t===2&&!l&&(l=parseFloat(a)),(l||!hr(a))&&(i[o]=l)})),i}var B8e=(function(){function r(e){ol(r,this,function(t){t.serialize=function(n){var i=SZ(e,n,"root");try{return yv()[tD](i)}catch(o){Hr(e,1,48,o&&Ar(o[aS])?o[aS]():"Error serializing object",null,!0)}}})}return r.__ieDyn=1,r})(),$8e=8,z8e=2147483647;function B4(r){var e=0,t=r;if(t){for(;t[Vi]<$8e;)t=t[_A](t);for(var n=5381,i=0;i<t[Vi];++i)n=(n<<5)+n+t.charCodeAt(i),n=n&n;e=bNe(n)/z8e}return e*100}function j8e(){var r=new dye;return{getScore:function(e){var t=0;return e[td]&&e[td][r.userId]?t=B4(e[td][r.userId]):e.ext&&e.ext.user&&e.ext.user.id?t=B4(e.ext.user.id):e[td]&&e[td][r.operationId]?t=B4(e[td][r.operationId]):e.ext&&e.ext.telemetryTrace&&e.ext.telemetryTrace[eD]?t=B4(e.ext.telemetryTrace[eD]):t=Math.random()*100,t}}}function V8e(r,e,t){var n=!1;return(e==null||e>
76=100||r[DH]===lL)&&(n=!0),n||(n=t.getScore(r)<e),n}function q8e(r,e){var t=j8e();(r>100||r<0)&&(Hr(e,2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:r},!0),r=100);var n={sampleRate:r,generator:t,isSampledIn:function(i){return V8e(i,n[LH],n.generator)}};return n}var Qa,x0,Gy=void 0,sne="",G8e=65e3;function lne(r){try{return r.responseText}catch{}return null}function Y8e(r){return r&&r.sendPOST}var cne=RS((Qa={endpointUrl:g8(WF,QK+RR)},Qa[$q]=vc(),Qa.maxBatchInterval=15e3,Qa[Iye]=102400,Qa.disableTelemetry=vc(),Qa[Rye]=vc(!0),Qa.isRetryDisabled=vc(),Qa[Vq]=vc(!0),Qa[kye]=vc(!0),Qa.disableXhr=vc(),Qa[Pye]=vc(),Qa[jq]=vc(),Qa[fM]=Gy,Qa.namePrefix=Gy,Qa.samplingPercentage=g8(W8e,100),Qa[zq]=Gy,Qa.convertUndefined=Gy,Qa.eventsLimitInMem=1e4,Qa[xZ]=!1,Qa.httpXHROverride={isVal:Y8e,v:Gy},Qa[Aye]=vc(),Qa.transports=Gy,Qa.retryCodes=Gy,Qa.corsPolicy=Gy,Qa.maxRetryCnt={isVal:ep,v:10},Qa)),une="X-Set-Cross-Origin-Resource-Policy";function W8e(r){return!isNaN(r)&&r>0&&r<=100}var K8e=(x0={},x0[OR]=Oye,x0[S7]=F8e,x0[cL]=L8e,x0[T7]=H8e,x0[QN]=N8e,x0[lL]=D8e,x0[uL]=O8e,x0[P8]=M8e,x0),Z8e=(function(r){E_(e,r);function e(){var t=r.call(this)||this;t.priority=1001,t.identifier=hye;var n,i,o,a,l,u,h,p,m=0,_,C,T,S,R,O,N,H,F,j,L,B,Q,Z,ie,J,ne,ue,K,se,be,de,ge,Ue,Qe,ve,pe,He;return ol(e,t,function(Re,$e){Nr(),Re.pause=function(){We(),a=!0},Re.resume=function(){a&&(a=!1,i=null,bt(),je())},Re.flush=function(mt,Mt,Te){if(mt===void 0&&(mt=!0),!a){We();try{var fe=Re[p2](mt,null,Te||1);return qf(fe,function(Ee){return Mt?(Mt(!Ee.rejected),!0):mt?h_(function(xe){xe(!Ee.rejected)}):fe})}catch(Ee){Hr(Re[Id](),1,22,"flush failed, telemetry will not be collected: "+Jo(Ee),{exception:tn(Ee)})}}},Re.onunloadFlush=function(){if(!a)if(N||se)try{return Re[p2](!0,Me,2)}catch(mt){Hr(Re[Id](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+Jo(mt),{exception:tn(mt)})}else Re.flush(!1)},Re.addHeader=function(mt,Mt){p[mt]=Mt},Re[Zz]=function(mt,Mt,Te,fe){Re.isInitialized()&&Hr(Re[Id](),1,28,"Sender is already initialized"),$e[Zz](mt,Mt,Te,fe);var Ee=Re.identifier;u=new B8e(Mt.logger),n=0,i=null,o=0,Re[g2]=null,h=0;var xe=Re[Id]();T=QE(vv("Sender"),Mt.evtNamespace&&Mt.evtNamespace()),C=QFe(T),Re._addHook(Tl(mt,function(et){var gt=et.cfg;gt.storagePrefix&&gZ(gt.storagePrefix);var Rt=_v(null,gt,Mt),dt=Rt.getExtCfg(Ee,cne),pt=dt[m2];if(S&&pt===S){var wt=gt[m2];wt&&wt!==pt&&(dt[m2]=wt)}var Yt=di("CompressionStream");He=IH("zipPayload",gt,!1),Ar(Yt)||(He=!1);var Vt=dt.corsPolicy;Vt?(Vt==="same-origin"||Vt==="same-site"||Vt==="cross-origin")&&t.addHeader(une,Vt):delete p[une],mv(dt[fM])&&(dt[fM]=gt[fM]),hi(Re,"_senderConfig",{g:function(){return dt}}),R!==dt[m2]&&(S=R=dt[m2]),Mt.activeStatus()===Bw.PENDING?Re.pause():Mt.activeStatus()===Bw.ACTIVE&&Re.resume(),j&&j!==dt[zq]&&Or(j,function(ii){delete p[ii.header]}),O=dt[Iye],N=(dt[jq]===!1||dt[Vq]===!1)&&sM(),H=dt[jq]===!1&&sM(),F=dt[Vq]===!1&&sM(),se=dt[Aye],be=!!dt.disableXhr,pe=dt.retryCodes;var ar=dt[xZ],kr=!!dt[Rye]&&(!!ar||XN()),qr=dt.namePrefix,Kr=kr!==J||kr&&ue!==qr||kr&&ne!==ar;if(Re[C0]){if(Kr)try{Re[C0]=Re[C0].createNew(xe,dt,kr)}catch(ii){Hr(Re[Id](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+Jo(ii),{exception:tn(ii)})}bt()}else Re[C0]=kr?new Nye(xe,dt):new TZ(xe,dt);ue=qr,J=kr,ne=ar,de=!dt[Pye]&&KK(!0),Qe=!!dt[kye],Re._sample=q8e(dt.samplingPercentage,xe),B=dt[fM],!mv(B)&&!rr(B,gt)&&Hr(xe,1,100,"Invalid Instrumentation key "+B),j=dt[zq],gn(S)&&!Rq(S)&&j&&j[Vi]>0?Or(j,function(ii){t.addHeader(ii.header,ii.value)}):j=null,K=dt.enableSendPromise;var zn=ot();ve?ve.SetConfig(zn):(ve=new C4e,ve[Zz](zn,xe));var Wn=dt.httpXHROverride,On=null,Mn=null,Yr=ere([3,1,2],dt.transports);On=ve&&ve[F4](Yr,!1);var rn=ve&&ve.getFallbackInst();ge=function(ii,mo){return vt(rn,ii,mo)},Ue=function(ii,mo){return vt(rn,ii,mo,!1)},On=se?Wn:On||Wn||rn,Re[g2]=function(ii,mo){return vt(On,ii,mo)},de&&(_=W);var qn=ere([3,1],dt.unloadTransports);de||(qn=qn.filter(function(ii){return ii!==2})),Mn=ve&&ve[F4](qn,!0),Mn=se?Wn:Mn||Wn,(se||dt.unloadTransports||!_)&&Mn&&(_=function(ii,mo){return vt(Mn,ii,mo)}),_||(_=ge),L=dt.disableTelemetry,Q=dt.convertUndefined||Gy,Z=dt.isRetryDisabled,ie=dt.maxBatchInterval}))},Re.processTelemetry=function(mt,Mt){Mt=Re._getTelCtx(Mt);var Te=Mt[Id]();try{var fe=re(mt,Te);if(!fe)return;var Ee=te(mt,Te);if(!Ee)return;var xe=u.serialize(Ee),et=Re[C0];bt(xe);var gt={item:xe,cnt:0};et[RT](gt),je()}catch(Rt){Hr(Te,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+Jo(Rt),{exception:tn(Rt)})}Re.processNext(mt,Mt)},Re.isCompletelyIdle=function(){return!a&&m===0&&Re._buffer[PT]()===0},Re.getOfflineListener=function(){return C},Re._xhrReadyStateChange=function(mt,Mt,Te){if(!z(Mt))return qe(mt,Mt,Te)},Re[p2]=function(mt,Mt,Te){mt===void 0&&(mt=!0);var fe;if(!a)try{var Ee=Re[C0];if(L)Ee[DR]();else{if(Ee[PT]()>0){var xe=Ee.getItems();wr(Te||0,mt),Mt?fe=Mt.call(Re,xe,mt):fe=Re[g2](xe,mt)}o=+new Date}We()}catch(gt){var et=qge();(!et||et>9)&&Hr(Re[Id](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+Jo(gt),{exception:tn(gt)})}return fe},Re.getOfflineSupport=function(){return{getUrl:function(){return S},createPayload:_e,serialize:me,batch:Ae,shouldProcess:function(mt){return!!re(mt)}}},Re._doTeardown=function(mt,Mt){Re.onunloadFlush(),YA(C,!1),Nr()},Re[ex]=function(mt,Mt,Te){if(!z(mt))return lt(mt,Mt)},Re[Xz]=function(mt,Mt){if(!z(mt))return Et(mt,Mt)},Re[U4]=function(mt,Mt){if(!z(mt))return Oe(mt)},Re._xdrOnLoad=function(mt,Mt){if(!z(Mt))return tt(mt,Mt)};function tt(mt,Mt){var Te=lne(mt);if(mt&&(Te+""=="200"||Te===""))n=0,Re[U4](Mt,0);else{var fe=Dz(Te);fe&&fe[Qz]&&fe[Qz]>fe[Jz]&&!Z?Re[Xz](Mt,fe):Re[ex](Mt,jge(mt))}}function ot(){try{var mt={xdrOnComplete:function(Te,fe,Ee){var xe=le(Ee);if(xe)return tt(Te,xe)},fetchOnComplete:function(Te,fe,Ee,xe){var et=le(xe);if(et)return Xe(Te.status,et,Te.url,et[Vi],Te.statusText,Ee||"")},xhrOnComplete:function(Te,fe,Ee){var xe=le(Ee);if(xe)return qe(Te,xe,xe[Vi])},beaconOnRetry:function(Te,fe,Ee){return X(Te,fe,Ee)}},Mt={enableSendPromise:K,isOneDs:!1,disableCredentials:!1,disableXhr:be,disableBeacon:!F,disableBeaconSync:!H,senderOnCompleteCallBack:mt};return Mt}catch{}return null}function qe(mt,Mt,Te){mt.readyState===4&&Xe(mt.status,Mt,mt.responseURL,Te,b8(mt),lne(mt)||mt.response)}function lt(mt,Mt,Te){Hr(Re[Id](),2,26,"Failed to send telemetry.",{message:Mt}),Re._buffer&&Re._buffer[jM](mt)}function Et(mt,Mt){for(var Te=[],fe=[],Ee=Mt.errors.reverse(),xe=0,et=Ee;xe<et.length;xe++){var gt=et[xe],Rt=mt.splice(gt.index,1)[0];Pt(gt.statusCode)?fe[Z1](Rt):Te[Z1](Rt)}mt[Vi]>0&&Re[U4](mt,Mt[Jz]),Te[Vi]>0&&Re[ex](Te,b8(null,["partial success",Mt[Jz],"of",Mt.itemsReceived].join(" "))),fe[Vi]>0&&(Se(fe),Hr(Re[Id](),2,40,"Partial success. Delivered: "+mt[Vi]+", Failed: "+Te[Vi]+". Will retry to send "+fe[Vi]+" our of "+Mt[Qz]+" items"))}function Oe(mt,Mt){Re._buffer&&Re._buffer[jM](mt)}
76function le(mt){try{if(mt){var Mt=mt,Te=Mt.oriPayload;return Te&&Te[Vi]?Te:null}}catch{}return null}function re(mt,Mt){if(L)return!1;if(!mt)return Mt&&Hr(Mt,1,7,"Cannot send empty telemetry"),!1;if(mt.baseData&&!mt[DH])return Mt&&Hr(Mt,1,70,"Cannot send telemetry without baseData and baseType"),!1;if(mt[DH]||(mt[DH]="EventData"),!Re[g2])return Mt&&Hr(Mt,1,28,"Sender was not initialized"),!1;var Te=mt[LH];if(hr(Te)||!ep(Te)||Te<0||Te>100)if(Ve(mt))mt[ame]=Re._sample[LH];else return Mt&&Hr(Mt,2,33,"Telemetry item was sampled out and not sent",{SampleRate:Re._sample[LH]}),!1;return!0}function te(mt,Mt){var Te=mt.iKey||B,fe=e.constructEnvelope(mt,Te,Mt,Q);if(!fe){Hr(Mt,1,47,"Unable to create an AppInsights envelope");return}var Ee=!1;if(mt[td]&&mt[td][Ez]&&(Or(mt[td][Ez],function(xe){try{xe&&xe(fe)===!1&&(Ee=!0,IT(Mt,"Telemetry processor check returns false"))}catch(et){Hr(Mt,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+Jo(et),{exception:tn(et)},!0)}}),delete mt[td][Ez]),!Ee)return fe}function me(mt){var Mt=sne,Te=Re[Id]();try{var fe=re(mt,Te),Ee=null;fe&&(Ee=te(mt,Te)),Ee&&(Mt=u.serialize(Ee))}catch{}return Mt}function Ae(mt){var Mt=sne;return mt&&mt[Vi]&&(Mt="["+mt.join(",")+"]"),Mt}function _e(mt){var Mt=rt();return{urlString:S,data:mt,headers:Mt}}function Ve(mt){return Re._sample.isSampledIn(mt)}function it(mt,Mt,Te,fe){Mt===200&&mt?Re._onSuccess(mt,mt[Vi]):fe&&Re[ex](mt,fe)}function vt(mt,Mt,Te,fe){fe===void 0&&(fe=!0);var Ee=function(wt,Yt,Vt){return it(Mt,wt,Yt,Vt)},xe=kt(Mt),et=mt&&mt.sendPOST;if(et&&xe){fe&&Re._buffer[D8](Mt);var gt,Rt=!1,dt,pt;return ve.preparePayload(function(wt){gt=et(wt,Ee,!Te),Rt=!0,dt&&$E(gt,dt,pt)},He,xe,!Te),Rt?gt:h_(function(wt,Yt){dt=wt,pt=Yt})}return null}function kt(mt){if(ni(mt)&&mt[Vi]>0){var Mt=Re[C0].batchPayloads(mt),Te=rt(),fe={data:Mt,urlString:S,headers:Te,disableXhrSync:be,disableFetchKeepAlive:!de,oriPayload:mt};return fe}return null}function rt(){try{var mt=p||{};return Rq(S)&&(mt[qo[6]]=qo[7]),mt}catch{}return null}function bt(mt){var Mt=mt?mt[Vi]:0;return Re[C0].size()+Mt>O?((!C||C.isOnline())&&Re[p2](!0,null,10),!0):!1}function Xe(mt,Mt,Te,fe,Ee,xe){var et=null;if(Re._appId||(et=Dz(xe),et&&et.appId&&(Re._appId=et.appId)),(mt<200||mt>=300)&&mt!==0){if((mt===301||mt===307||mt===308)&&!ct(Te)){Re[ex](Mt,Ee);return}if(C&&!C.isOnline()){if(!Z){var gt=10;Se(Mt,gt),Hr(Re[Id](),2,40,". Offline - Response Code: ".concat(mt,". Offline status: ").concat(!C.isOnline(),". Will retry to send ").concat(Mt.length," items."))}return}!Z&&Pt(mt)?(Se(Mt),Hr(Re[Id](),2,40,". Response code "+mt+". Will retry to send "+Mt[Vi]+" items.")):Re[ex](Mt,Ee)}else ct(Te),mt===206?(et||(et=Dz(xe)),et&&!Z?Re[Xz](Mt,et):Re[ex](Mt,Ee)):(n=0,Re[U4](Mt,fe))}function ct(mt){return h>=10?!1:!hr(mt)&&mt!==""&&mt!==S?(S=mt,++h,!0):!1}function Me(mt,Mt){if(_)_(mt,!1);else{var Te=ve&&ve[F4]([3],!0);return vt(Te,mt,Mt)}}function X(mt,Mt,Te){var fe=mt,Ee=fe&&fe.oriPayload;if(Qe)Ue&&Ue(Ee,!0),Hr(Re[Id](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var xe=[],et=0;et<Ee[Vi];et++){var gt=Ee[et],Rt=[gt],dt=kt(Rt);Te(dt,Mt)?Re._onSuccess(Rt,Rt[Vi]):xe[Z1](gt)}xe[Vi]>0&&(Ue&&Ue(xe,!0),Hr(Re[Id](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function z(mt){try{if(mt&&mt[Vi])return gn(mt[0])}catch{}return null}function W(mt,Mt){var Te=null;if(ni(mt)){for(var fe=mt[Vi],Ee=0;Ee<mt[Vi];Ee++)fe+=mt[Ee].item[Vi];var xe=ve.getSyncFetchPayload();xe+fe<=G8e?Te=2:sM()?Te=3:(Te=1,Hr(Re[Id](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender."));var et=ve&&ve[F4]([Te],!0);return vt(et,mt,Mt)}return null}function Se(mt,Mt){if(Mt===void 0&&(Mt=1),!(!mt||mt[Vi]===0)){var Te=Re[C0];Te[jM](mt),n++;for(var fe=0,Ee=mt;fe<Ee.length;fe++){var xe=Ee[fe];xe.cnt=xe.cnt||0,xe.cnt++,Te[RT](xe)}Ke(Mt),je()}}function Ke(mt){var Mt=10,Te;if(n<=1)Te=Mt;else{var fe=(Math.pow(2,n)-1)/2,Ee=$d(Math.random()*fe*Mt)+1;Ee=mt*Ee,Te=DM(sge(Ee,3600),Mt)}var xe=$m()+Te*1e3;i=xe}function je(){if(!l&&!a){var mt=i?DM(0,i-$m()):0,Mt=DM(ie,mt);l=Gh(function(){l=null,Re[p2](!0,null,1)},Mt)}}function We(){l&&l.cancel(),l=null,i=null}function Pt(mt){return hr(pe)?mt===401||mt===408||mt===429||mt===500||mt===502||mt===503||mt===504:pe[Vi]&&pe.indexOf(mt)>-1}function Jt(){var mt="getNotifyMgr",Mt,Te=Re.core;return Te&&(Te[mt]?Mt=Te[mt]():Mt=Te._notificationManager),Mt}function wr(mt,Mt){var Te=Jt();if(Te&&Te.eventsSendRequest)try{Te.eventsSendRequest(mt,Mt)}catch(fe){Hr(Re[Id](),1,74,"send request notification failed: "+Jo(fe),{exception:tn(fe)})}}function rr(mt,Mt){var Te=Mt.disableInstrumentationKeyValidation,fe=hr(Te)?!1:Te;if(fe)return!0;var Ee="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",xe=new RegExp(Ee);return xe.test(mt)}function Nr(){Re[g2]=null,Re[C0]=null,Re._appId=null,Re._sample=null,p={},C=null,n=0,i=null,o=null,a=!1,l=null,u=null,h=0,m=0,_=null,T=null,S=null,R=null,O=0,N=!1,j=null,L=!1,B=null,Q=Gy,Z=!1,J=null,ue=Gy,be=!1,de=!1,Qe=!1,ge=null,Ue=null,ve=null,hi(Re,"_senderConfig",{g:function(){return zge({},cne)}})}}),t}return e.constructEnvelope=function(t,n,i,o){var a;n!==t.iKey&&!hr(n)?a=og(og({},t),{iKey:n}):a=t;var l=K8e[a.baseType]||Oye;return l(i,a,o)},e})(kS),dne="duration",rD="properties",G0="requestUrl",A1="length",nD="aborted",Jy="traceId",z0="spanId",kT="traceFlags",xx="traceState",L8="context",$4="_addHook",om="core",n5="includeCorrelationHeaders",H8="getAbsoluteUrl",tx="headers",Of="requestHeaders",z4="setRequestHeader",hne="trackDependencyDataInternal",ZA="startTime",SI="toLowerCase",qq="enableRequestHeaderTracking",Dye="enableAjaxErrorStatusText",Lye="enableAjaxPerfTracking",Hye="maxAjaxCallsPerVie
76w",Fye="excludeRequestFromAutoTrackingPatterns",Gq="disableAjaxTracking",Uye="ajaxPerfLookupDelay",Bye="disableFetchTracking",$ye="enableResponseHeaderTracking",j0="status",Hx="statusText",F8="headerMap",eT="requestSentTime",Fx="method",Yq="errorStatusText",zye="stateChangeAttached",Wq="responseText",pM="responseFinishedTime",Kq="CreateTrackItem",fne="getAllResponseHeaders",Zq="perfTiming",Xq="ajaxDiagnosticsMessage",Qq="correlationContext",i5="ajaxTotalDuration";function jye(r,e,t){var n=0,i=r[e],o=r[t];return i&&o&&(n=Df(i,o)),n}function rx(r,e,t,n,i){var o=0,a=jye(t,n,i);return a&&(o=Mw(r,e,N1(a))),o}function Mw(r,e,t){var n="ajaxPerf",i=0;if(r&&e&&t){var o=r[n]=r[n]||{};o[e]=t,i=1}return i}function X8e(r,e){var t=r[Zq],n=e[rD]||{},i=0,o="name",a="Start",l="End",u="domainLookup",h="connect",p="redirect",m="request",_="response",C="startTime",T=u+a,S=u+l,R=h+a,O=h+l,N=m+a,H=m+l,F=_+a,j=_+l,L=p+a,B=p=l,Q="transferSize",Z="encodedBodySize",ie="decodedBodySize",J="serverTiming";if(t){i|=rx(n,p,t,L,B),i|=rx(n,u,t,T,S),i|=rx(n,h,t,R,O),i|=rx(n,m,t,N,H),i|=rx(n,_,t,F,j),i|=rx(n,"networkConnect",t,C,O),i|=rx(n,"sentRequest",t,N,j);var ne=t[dne];ne||(ne=jye(t,C,j)||0),i|=Mw(n,dne,ne),i|=Mw(n,"perfTotal",ne);var ue=t[J];if(ue){var K={};Or(ue,function(se,be){var de=y8(se[o]||""+be),ge=K[de]||{};zi(se,function(Ue,Qe){(Ue!==o&&gn(Qe)||ep(Qe))&&(ge[Ue]&&(Qe=ge[Ue]+";"+Qe),(Qe||!gn(Qe))&&(ge[Ue]=Qe))}),K[de]=ge}),i|=Mw(n,J,K)}i|=Mw(n,Q,t[Q]),i|=Mw(n,Z,t[Z]),i|=Mw(n,ie,t[ie])}else r.perfMark&&(i|=Mw(n,"missing",r.perfAttempts));i&&(e[rD]=n)}function Q8e(){var r;return r={openDone:!1,setRequestHeaderDone:!1,sendDone:!1,abortDone:!1},r[zye]=!1,r}function J8e(r,e){var t,n=e,i=(t={perfMark:null,completed:!1,requestHeadersSize:null},t[Of]=null,t.responseReceivingDuration=null,t.callbackDuration=null,t[i5]=null,t.aborted=0,t.pageUrl=null,t.requestUrl=null,t.requestSize=0,t.method=null,t.status=null,t[eT]=null,t.responseStartedTime=null,t[pM]=null,t.callbackFinishedTime=null,t.endTime=null,t.xhrMonitoringState=Q8e(),t.clientFailure=0,t.traceCtx=r,t.perfTiming=null,t[H8]=function(){return i[G0]?lFe(i[G0]):null},t.getPathName=function(){return i[G0]?aL(n,cFe(i[Fx],i[G0])):null},t[Kq]=function(o,a,l){var u;if(i.ajaxTotalDuration=UK(Df(i.requestSentTime,i.responseFinishedTime)*1e3)/1e3,i[i5]<0)return null;var h=(u={id:"|"+r[Jy]+"."+r[z0],target:i[H8](),name:i.getPathName(),type:o,startTime:null,duration:i[i5],success:+i[j0]>=200&&+i[j0]<400,responseCode:+i[j0]},u[rD]={HttpMethod:i[Fx]},u),p=h[rD];if(i[nD]&&(p[nD]=!0),i[eT]&&(h[ZA]=new Date,h[ZA].setTime(i[eT])),X8e(this,h),a&&Pm(i.requestHeaders)[A1]>0&&(p[Of]=i[Of]),l){var m=l();if(m){var _=m[Qq];if(_&&(h.correlationContext=_),m[F8]&&Pm(m.headerMap)[A1]>0&&(p.responseHeaders=m[F8]),i[Yq])if(+i[j0]>=400){var C=m.type;(C===""||C==="text")&&(p.responseText=m.responseText?m[Hx]+" - "+m[Wq]:m[Hx]),C==="json"&&(p.responseText=m.response?m[Hx]+" - "+JSON.stringify(m.response):m[Hx])}else i[j0]===0&&(p.responseText=m[Hx]||"")}}return h},t.getPartAProps=function(){var o=null,a=i.traceCtx.parentCtx;if(a&&(a[Jy]||a[z0])){o={};var l=o[Up.TraceExt]={traceID:a[Jy],parentID:a[z0]};hr(a[kT])||(l[kT]=a[kT])}return o},t);return i}var gl,U8="diagLog",AE="_ajaxData",Ux="fetch",y2="Failed to monitor XMLHttpRequest",Vye=", monitoring data for this ajax call ",II=Vye+"may be incorrect.",pne=Vye+"won't be sent.",gne="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",mne="Failed to add custom defined request context as configured call back may missing a null check.",yne="Failed to calculate the duration of the ",vne=0;function eUe(){var r=km();return!r||hr(r.Request)||hr(r.Request[q1])||hr(r[Ux])?null:r[Ux]}function tUe(r,e){var t,n=!1,i=qge();if(i&&i<9&&(n=!1),n)try{var o=new XMLHttpRequest,a={xh:[],i:(t={},t[e]={},t)};o[AE]=a;var l=XMLHttpRequest[q1].open;XMLHttpRequest[q1].open=l}catch(u){n=!1,VM(r,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:tn(u)})}return n}var bA=function(r,e){return r&&e&&r[AE]?(r[AE].i||{})[e]:null},rUe=function(r,e,t){if(r){var n=(r[AE]||{}).xh;n&&n.push({n:e,v:t})}},o5=function(r,e){var t=!1;if(r){var n=(r[AE]||{}).xh;n&&Or(n,function(i){if(i.n===e)return t=!0,-1})}return t};function HH(r,e){var t="";try{var n=bA(r,e);n&&n[G0]&&(t+="(url: '"+n[G0]+"')")}catch{}return t}
76function VM(r,e,t,n,i){Hr(r[U8](),1,e,t,n,i)}function p1(r,e,t,n,i){Hr(r[U8](),2,e,t,n,i)}function v2(r,e,t){return function(n){var i;VM(r,e,t,(i={},i[Xq]=HH(n.inst,r._ajaxDataId),i.exception=tn(n.err),i))}}function AI(r,e){return r&&e?Cs(r,e):-1}function _ne(r,e,t){var n={id:e,fn:t};return r.push(n),{remove:function(){Or(r,function(i,o){if(i.id===n.id)return r.splice(o,1),-1})}}}function qye(r,e,t,n){var i=!0;return Or(e,function(o,a){try{o.fn.call(null,t)===!1&&(i=!1)}catch(l){Hr(r&&r.logger,1,64,"Dependency "+n+" [#"+a+"] failed: "+Jo(l),{exception:tn(l)},!0)}}),i}function nUe(r,e,t,n,i,o){var a=r[A1],l=!0;if(a>0){var u=t.traceCtx,h={core:e,xhr:n,input:i,init:o,aborted:!!t[nD]};Rb(h,{traceId:{g:function(){return u[Jy]},s:function(p){u[Jy]=p}},spanId:{g:function(){return u[z0]},s:function(p){u[z0]=p}},traceFlags:{g:function(){return u[kT]},s:function(p){u[kT]=p}},traceState:{g:function(){return u[xx]}},context:{g:function(){return t[L8]||{}},s:function(p){t[L8]=p}}}),l=qye(e,r,h,"listener")}return l}var j4="*.blob.core.",iUe=cg([j4+"windows.net",j4+"chinacloudapi.cn",j4+"cloudapi.de",j4+"usgovcloudapi.net"]),oUe=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i],aUe=cg((gl={},gl[Hye]=500,gl[Gq]=!1,gl[Bye]=!1,gl[Fye]=void 0,gl.disableCorrelationHeaders=!1,gl.distributedTracingMode=1,gl.correlationHeaderExcludedDomains=iUe,gl.correlationHeaderDomains=void 0,gl.correlationHeaderExcludePatterns=void 0,gl.appId=void 0,gl.enableCorsCorrelation=!1,gl[qq]=!1,gl[$ye]=!1,gl[Dye]=!1,gl[Lye]=!1,gl.maxAjaxPerfLookupAttempts=3,gl[Uye]=25,gl.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],gl.addRequestContext=void 0,gl.addIntEndpoints=!0,gl)),sUe=(function(r){E_(e,r);function e(){var t=r.call(this)||this;t.identifier=e.identifier,t.priority=120;var n,i,o,a,l,u,h,p,m,_,C,T,S,R,O,N,H,F,j,L,B,Q,Z,ie,J,ne,ue,K,se,be,de;return ol(e,t,function(ge,Ue){var Qe=Ue[$4];ve(),ge.initialize=function(Xe,ct,Me,X){ge.isInitialized()||(Ue.initialize(Xe,ct,Me,X),B=QE(vv("ajax"),ct&&ct.evtNamespace&&ct.evtNamespace()),pe(Xe),ot(),$e(),He())},ge._doTeardown=function(){ve()},ge.trackDependencyData=function(Xe,ct){bt(J,ge[om],null,Xe,ct)},ge.resetAjaxAttempts=function(){h=0},ge[n5]=function(Xe,ct,Me,X){var z=ge._currentWindowHost||o;if(nUe(ie,ge[om],Xe,X,ct,Me)){if(ct||ct===""){if(Vre(a,Xe[H8](),z)){Me||(Me={});var W=Xe.traceCtx,Se=new Headers(Me[tx]||(ct instanceof Request?ct[tx]||{}:{}));if(_){var Ke="|"+W[Jy]+"."+W[z0];Se.set(qo[3],Ke),l&&(Xe[Of][qo[3]]=Ke)}var je=be||p&&p.appId();if(je&&(Se.set(qo[0],qo[2]+je),l&&(Xe[Of][qo[0]]=qo[2]+je)),m){var We=W[kT];hr(We)&&(We=1);var Pt=hre(ure(W[Jy],W[z0],We));Se.set(qo[4],Pt),l&&(Xe[Of][qo[4]]=Pt)}if(C&&W[xx]&&!W[xx].isEmpty){var Jt=W[xx].hdrs();if(Jt&&Jt[A1]>0){var wr=!1;Or(Jt,function(rr){rr&&(wr?Se.append(qo[5],rr):(wr=!0,Se.set(qo[5],rr)))})}l&&(Xe[Of][qo[5]]=Jt.join(","))}Me[tx]=Se}}else if(X&&Vre(a,Xe[H8](),z)){var W=Xe.traceCtx;if(_)if(o5(X,qo[3]))p1(ge,71,"Unable to set ["+qo[3]+"] as it has already been set by another instance");else{var Ke="|"+W[Jy]+"."+W[z0];X[z4](qo[3],Ke),l&&(Xe[Of][qo[3]]=Ke)}var je=be||p&&p.appId();if(je&&(o5(X,qo[0])?p1(ge,71,"Unable to set ["+qo[0]+"] as it has already been set by another instance"):(X[z4](qo[0],qo[2]+je),l&&(Xe[Of][qo[0]]=qo[2]+je))),m){var We=W[kT];if(hr(We)&&(We=1),o5(X,qo[4]))p1(ge,71,"Unable to set ["+qo[4]+"] as it has already been set by another instance");else{var Pt=hre(ure(W[Jy],W[z0],We));X[z4](qo[4],Pt),l&&(Xe[Of][qo[4]]=Pt)}}if(C&&W[xx]&&!W[xx].isEmpty){var Jt=W[xx].hdrs();Jt&&Jt[A1]>0&&Or(Jt,function(Mt){Mt&&X[z4](qo[5],Mt)}),l&&(Xe[Of][qo[5]]=Jt.join(","))}}}return X||Me},ge[hne]=function(Xe,ct,Me){if(R===-1||h<R){(se===2||se===1)&&typeof Xe.id=="string"&&Xe.id[Xe.id[A1]-1]!=="."&&(Xe.id+="."),hr(Xe[ZA])&&(Xe[ZA]=new Date);var X=P0(Xe,uL,nye,ge[U8](),ct,Me);ge[om].track(X)}else h===R&&VM(ge,55,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++h},ge.addDependencyListener=function(Xe){return _ne(ie,Z++,Xe)},ge.addDependencyInitializer=function(Xe){return _ne(J,Z++,Xe)};function ve(){var Xe=q0();n=!1,i=!1,de=!1,o=Xe&&Xe.host&&Xe.host[SI](),a=null,l=!1,u=!1,h=0,p=null,m=!1,C=!1,_=!1,T=null,S=!1,R=0,O=!1,N={},H=!1,F=!1,j=null,L=null,B=null,Z=0,ie=[],J=[],Q=vv("ajaxData"),ge._ajaxDataId=Q,ne=null,ue=1,K=1,se=1,be=null}function pe(Xe){ge[$4](Tl(Xe,function(ct){var Me=ct.cfg,X=_v(null,Me,ge[om]);a=X.getExtCfg(e.identifier,aUe),se=a.distributedTracingMode,l=a[qq],u=a[Dye],S=a[Lye],R=a[Hye],j=[].concat(a[Fye]||[],a.addIntEndpoints!==!1?oUe:[]),L=a.addRequestContext;var z=se&15;_=z===0||z===1,m=z===1||z===2,C=!!(se&16),S&&(T=Q),H=!!a[Gq],ue=a.maxAjaxPerfLookupAttempts,K=a[Uye],ne=a.ignoreHeaders,be=a.appId}))}function He(){var Xe=ge[om].getPlugin(bZ);Xe&&(p=Xe.plugin[L8])}function Re(Xe){var ct=!0;return(Xe||ne)&&Or(ne,(function(Me){if(Me[SI]()===Xe[SI]())return ct=!1,-1})),ct}function $e(){var Xe=eUe();if(Xe){var ct=km(),Me=Xe.polyfill;ge[$4](Tl(a,function(){F=!!a[Bye],O=a[$ye],!F&&!n?(Qe(Eq(ct,Ux,{ns:B,req:function(X,z,W){var Se;if(!F&&n&&!qe(null,z,W)&&!(Me&&i)){var Ke=X.ctx();Se=it(z,W);var je=ge[n5](Se,z,W);je!==W&&X.set(1,je),Ke.data=Se}},rsp:function(X,z){if(!F){var W=X.ctx().data;W&&(X.rslt=X.rslt.then(function(Se){return kt(X,(Se||{})[j0],z,Se,W,function(){var Ke,je=(Ke={statusText:(Se||{})[Hx],headerMap:null},Ke[Qq]=rt(Se),Ke);if(O&&Se){var We={};
76Se.headers.forEach(function(Pt,Jt){Re(Jt)&&(We[Jt]=Pt)}),je[F8]=We}return je}),Se}).catch(function(Se){throw kt(X,0,z,null,W,null,{error:Se.message||tn(Se)}),Se}))}},hkErr:v2(ge,15,"Failed to monitor Window.fetch"+II)},!0,dge())),n=!0):Me&&!de&&(Qe(Eq(ct,Ux,{ns:B,req:function(X,z,W){qe(null,z,W)}})),de=!0)})),Me&&(ct[Ux].polyfill=Me)}}function tt(Xe,ct,Me){Qe(H4e(Xe,ct,Me))}function ot(){tUe(ge,Q)&&ge[$4](Tl(a,function(){H=!!a[Gq],l=a[qq],!H&&!i&&(tt(XMLHttpRequest,"open",{ns:B,req:function(Xe,ct,Me,X){if(!H){var z=Xe.inst,W=bA(z,Q);!qe(z,Me)&&lt(z,W,!0)&&((!W||!W.xhrMonitoringState.openDone)&&(W=le(z,ct,Me,X)),re(z,W))}},hkErr:v2(ge,15,y2+".open"+II)}),tt(XMLHttpRequest,"send",{ns:B,req:function(Xe,ct){if(!H){var Me=Xe.inst,X=bA(Me,Q);lt(Me,X)&&!X.xhrMonitoringState.sendDone&&(_e("xhr",X),X[eT]=D4(),ge[n5](X,void 0,void 0,Me),X.xhrMonitoringState.sendDone=!0)}},hkErr:v2(ge,17,y2+II)}),tt(XMLHttpRequest,"abort",{ns:B,req:function(Xe){if(!H){var ct=Xe.inst,Me=bA(ct,Q);lt(ct,Me)&&!Me.xhrMonitoringState.abortDone&&(Me[nD]=1,Me.xhrMonitoringState.abortDone=!0)}},hkErr:v2(ge,13,y2+".abort"+II)}),tt(XMLHttpRequest,"setRequestHeader",{ns:B,req:function(Xe,ct,Me){if(!H){var X=Xe.inst,z=bA(X,Q);z&&lt(X,z)&&(rUe(X,ct,Me),l&&Re(ct)&&(z[Of][ct]=Me))}},hkErr:v2(ge,71,y2+".setRequestHeader"+II)}),i=!0)}))}function qe(Xe,ct,Me){var X=!1,z=((gn(ct)?ct:(ct||{}).url||"")||"")[SI]();if(Or(j,function(Ke){var je=Ke;gn(Ke)&&(je=new RegExp(Ke)),X||(X=je.test(z))}),X)return X;var W=AI(z,"?"),Se=AI(z,"#");return(W===-1||Se!==-1&&Se<W)&&(W=Se),W!==-1&&(z=z.substring(0,W)),hr(Xe)?hr(ct)||(X=(typeof ct=="object"?ct[fE]===!0:!1)||(Me?Me[fE]===!0:!1)):X=Xe[fE]===!0||z[fE]===!0,!X&&z&&Rq(z)&&(X=!0),X?N[z]||(N[z]=1):N[z]&&(X=!0),X}function lt(Xe,ct,Me){var X=!0,z=i;return hr(Xe)||(X=Me===!0||!hr(ct)),z&&X}function Et(){var Xe=null;ge[om]&&ge[om].getTraceCtx&&(Xe=Om(ge[om].getTraceCtx())),!Xe&&p&&p.telemetryTrace&&(Xe=pFe(p.telemetryTrace));var ct=Om(Xe);return ct[Jy]=ct[Jy]||iS(),ct[z0]=Yw(iS(),0,16),J8e(ct,ge[U8]())}function Oe(Xe,ct,Me){if(ct){Me!==void 0&&(ct[rD]=og(og({},ct.properties),Me));var X=Xe.getPartAProps();bt(J,ge[om],Xe,ct,Me,X)}}function le(Xe,ct,Me,X){var z=Xe[AE]=Xe[AE]||{xh:[],i:{}},W=z.i=z.i||{},Se=W[Q]=W[Q]||Et();return Se[Fx]=ct,Se[G0]=Me,Se.xhrMonitoringState.openDone=!0,Se[Of]={},Se.async=X,Se[Yq]=u,Se}function re(Xe,ct){ct.xhrMonitoringState[zye]=K1(Xe,"readystatechange",function(){var Me;try{Xe&&Xe.readyState===4&&lt(Xe,ct)&&me(Xe)}catch(z){var X=tn(z);(!X||AI(X[SI](),"c00c023f")===-1)&&VM(ge,16,y2+" 'readystatechange' event handler"+II,(Me={},Me[Xq]=HH(Xe,Q),Me.exception=X,Me))}},B)}function te(Xe){try{var ct=Xe.responseType;if(ct===""||ct==="text")return Xe[Wq]}catch{}return null}function me(Xe){var ct=bA(Xe,Q);ct[pM]=D4(),ct[j0]=Xe[j0];function Me(X,z){var W=z||{};W.ajaxDiagnosticsMessage=HH(Xe,Q),X&&(W.exception=tn(X)),p1(ge,14,yne+"ajax call"+pne,W)}Ve("xmlhttprequest",ct,function(){try{var X=ct[Kq]("Ajax",l,function(){var Ke,je=(Ke={statusText:Xe[Hx],headerMap:null},Ke[Qq]=Ae(Xe),Ke.type=Xe.responseType,Ke[Wq]=te(Xe),Ke.response=Xe.response,Ke);if(O){var We=Xe[fne]();if(We){var Pt=wa(We).split(/[\r\n]+/),Jt={};Or(Pt,function(wr){var rr=wr.split(": "),Nr=rr.shift(),mt=rr.join(": ");Re(Nr)&&(Jt[Nr]=mt)}),je[F8]=Jt}}return je}),z=void 0;try{L&&(z=L({status:Xe[j0],xhr:Xe}))}catch{p1(ge,104,mne)}X||Me(null,{requestSentTime:ct[eT],responseFinishedTime:ct[pM]}),Oe(ct,X,z)}finally{try{var W=Xe[AE]||{i:{}},Se=W.i||{};Se[Q]&&(Se[Q]=null)}catch{}}},function(X){Me(X,null)})}function Ae(Xe){var ct;try{var Me=Xe[fne]();if(Me!==null){var X=AI(Me[SI](),qo[8]);if(X!==-1){var z=Xe.getResponseHeader(qo[0]);return qre(z)}}}catch(W){p1(ge,18,gne,(ct={},ct[Xq]=HH(Xe,Q),ct.exception=tn(W),ct))}}function _e(Xe,ct){if(ct[G0]&&T&&S){var Me=ug();if(Me&&Ar(Me.mark)){vne++;var X=T+Xe+"#"+vne;Me.mark(X);var z=Me.getEntriesByName(X);z&&z[A1]===1&&(ct.perfMark=z[0])}}}function Ve(Xe,ct,Me,X){var z=ct.perfMark,W=ug(),Se=ue,Ke=K,je=ct[G0],We=0;(function Pt(){try{if(W&&z){We++;for(var Jt=null,wr=W.getEntries(),rr=wr[A1]-1;rr>=0;rr--){var Nr=wr[rr];if(Nr){if(Nr.entryType==="resource")Nr.initiatorType===Xe&&(AI(Nr.name,je)!==-1||AI(je,Nr.name)!==-1)&&(Jt=Nr);else if(Nr.entryType==="mark"&&Nr.name===z.name){ct[Zq]=Jt;break}if(Nr[ZA]<z[ZA]-1e3)break}}}!z||ct[Zq]||We>=Se||ct.async===!1?(z&&Ar(W.clearMarks)&&W.clearMarks(z.name),ct.perfAttempts=We,Me()):Gh(Pt,Ke)}catch(mt){X(mt)}})()}function it(Xe,ct){var Me=Et();Me[eT]=D4(),Me[Yq]=u;var X;if(Xe instanceof Request?X=(Xe||{}).url||"":X=Xe,X===""){var z=q0();z&&z.href&&(X=c7(z.href,"#")[0])}ge[om]&&ge[om].config&&(X=Qp(X,ge[om].config)),Me[G0]=X;var W="GET";ct&&ct[Fx]?W=ct[Fx]:Xe&&Xe instanceof Request&&(W=Xe[Fx]),Me[Fx]=W;var Se={};if(l){var Ke=new Headers((ct?ct[tx]:0)||(Xe instanceof Request?Xe[tx]||{}:{}));Ke.forEach(function(je,We){Re(We)&&(Se[We]=je)})}return Me[Of]=Se,_e(Ux,Me),Me}function vt(Xe){var ct="";try{hr(Xe)||(typeof Xe=="string"?ct+="(url: '".concat(Xe,"')"):ct+="(url: '".concat(Xe.url,"')"))}catch(Me){VM(ge,15,"Failed to grab failed fetch diagnostics message",{exception:tn(Me)})}return ct}function kt(Xe,ct,Me,X,z,W,Se){if(!z)return;function Ke(je,We,Pt){var Jt=Pt||{};Jt.fetchDiagnosticsMessage=vt(Me),We&&(Jt.exception=tn(We)),p1(ge,je,yne+"fetch call"+pne,Jt)}z[pM]=D4(),z[j0]=ct,Ve(Ux,z,function(){var je=z[Kq]("Fetch",l,W),We;try{L&&(We=L({status:ct,request:Me,response:X}))}catch{p1(ge,104,mne)}je||Ke(14,null,{requestSentTime:z[eT],responseFinishedTime:z[pM]}),Oe(z,je,We)},function(je){Ke(18,je,null)})}function rt(Xe){if(Xe&&Xe[tx])try{var ct=Xe[tx].get(qo[0]);return qre(ct)}catch(Me){p1(ge,18,gne,{fetchDiagnosticsMessage:vt(Xe),exception:tn(Me)})}}function bt(Xe,ct,Me,X,z,W){var Se=!0,Ke=Xe[A1];if(Ke>0){var je={item:X,properties:z,sysProperties:W,context:Me?Me[L8]:null,aborted:Me?!!Me[nD]:!1};
76Se=qye(ct,Xe,je,"initializer")}Se&&ge[hne](X,z,W)}}),t}return e.prototype.processTelemetry=function(t,n){this.processNext(t,n)},e.prototype.addDependencyInitializer=function(t){return null},e.identifier="AjaxDependencyPlugin",e})(kS),lUe=(function(){function r(){}return r})(),cUe=(function(){function r(){this.id="browser",this.deviceClass="Browser"}return r})(),uUe="3.4.1",dUe=(function(){function r(e,t){var n=this,i=Tl(e,function(){var o=e.sdkExtension;n.sdkVersion=(o?o+"_":"")+"javascript:"+uUe});t&&t.add(i)}return r})(),hUe=(function(){function r(){}return r})(),B8="session",$8="sessionManager",FH="isUserCookieSet",z8="isNewUser",Gye="applySessionContext",Yye="applyApplicationContext",Wye="applyOperationContext",Kye="applyOperatingSystemContxt",Zye="applyLocationContext",Xye="applyInternalContext",UH="getSessionId",Qye="sessionCookiePostfix",Tx="automaticSession",wA="accountId",EA="authenticatedId",_2="acquisitionDate",V4="renewalDate",b2="cookieSeparator",a5="authUserCookieName",fUe="ai_session",pUe=864e5,gUe=18e5,mUe=6e4,Jye=(function(){function r(){}return r})(),yUe=(function(){function r(e,t,n){var i=this,o,a,l=vk(t),u=f7(t),h,p;ol(r,i,function(m){e||(e={});var _=Tl(e,function(N){h=e.sessionExpirationMs||pUe,p=e.sessionRenewalMs||gUe;var H=e[Qye]||e.namePrefix||"";o=fUe+H});n&&n.add(_),m[Tx]=new Jye,m.update=function(){var N=$m(),H=!1,F=m[Tx];if(F.id||(H=!C(F)),!H&&h>0){var j=N-F[_2],L=N-F[V4];H=j<0||L<0,H=H||j>h,H=H||L>p}H?S(N):(!a||N-a>mUe)&&R(F,N)},m.backup=function(){var N=m[Tx];O(N.id,N[_2],N[V4])};function C(N,H){var F=!1,j=u.get(o);if(j&&Ar(j.split))F=T(N,j);else{var L=Qme(l,o);L&&(F=T(N,L))}return F||!!N.id}function T(N,H){var F=!1,j=", session will be reset",L=H.split("|");if(L.length>=2)try{var B=+L[1]||0,Q=+L[2]||0;isNaN(B)||B<=0?Hr(l,2,27,"AI session acquisition date is 0"+j):isNaN(Q)||Q<=0?Hr(l,2,27,"AI session renewal date is 0"+j):L[0]&&(N.id=L[0],N[_2]=B,N[V4]=Q,F=!0)}catch(Z){Hr(l,1,9,"Error parsing ai_session value ["+(H||"")+"]"+j+" - "+Jo(Z),{exception:tn(Z)})}return F}function S(N){var H=e.getNewId||ZK;m[Tx].id=H(e.idLength||22),m[Tx][_2]=N,R(m[Tx],N),x7()||Hr(l,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}function R(N,H){var F=N[_2];N[V4]=H;var j=p,L=F+h-H,B=[N.id,F,H],Q=0;L<j?Q=L/1e3:Q=j/1e3;var Z=e.cookieDomain||null;u.set(o,B.join("|"),h>0?Q:null,Z),a=H}function O(N,H,F){Jme(l,o,[N,H,F].join("|"))}})}return r.__ieDyn=1,r})();function bne(r){return!(typeof r!="string"||!r||r.match(/,|;|=| |\|/))}var vUe=(function(){function r(e,t,n){this.isNewUser=!1,this.isUserCookieSet=!1;var i=vk(t),o=f7(t),a;ol(r,this,function(l){hi(l,"config",{g:function(){return e}});var u=Tl(e,function(){var _=e.userCookiePostfix||"";a=r.userCookieName+_;var C=o.get(a);if(C){l[z8]=!1;var T=C.split(r[b2]);T.length>0&&(l.id=T[0],l[FH]=!!l.id)}if(!l.id){l.id=h();var S=p(l.id);m(S.join(r[b2]));var R=(e.namePrefix||"")+"ai_session";yFe(i,R)}l[wA]=e[wA]||void 0;var O=o.get(r[a5]);if(O){O=decodeURI(O);var N=O.split(r[b2]);N[0]&&(l[EA]=N[0]),N.length>1&&N[1]&&(l[wA]=N[1])}});n&&n.add(u);function h(){var _=e||{},C=_.getNewId||ZK,T=C(_.idLength?e.idLength:22);return T}function p(_){var C=kP(new Date);l.accountAcquisitionDate=C,l[z8]=!0;var T=[_,C];return T}function m(_){var C=31536e3;l[FH]=o.set(a,_,C)}l.setAuthenticatedUserContext=function(_,C,T){T===void 0&&(T=!1);var S=!bne(_)||C&&!bne(C);if(S){Hr(i,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);return}l[EA]=_;var R=l[EA];C&&(l[wA]=C,R=[l[EA],l.accountId].join(r[b2])),T&&o.set(r[a5],encodeURI(R))},l.clearAuthenticatedUserContext=function(){l[EA]=null,l[wA]=null,o.del(r[a5])},l.update=function(_){if(l.id!==_||!l[FH]){var C=_||h(),T=p(C);m(T.join(r[b2]))}}})}return r.cookieSeparator="|",r.userCookieName="ai_user",r.authUserCookieName="ai_authUser",r})(),q4="ext",G4="tags",_Ue;function RI(r,e){r&&r[e]&&Pm(r[e]).length===0&&delete r[e]}function wne(){return null}function bUe(r){var e=r?r.getTraceCtx():null,t={};function n(){var m=r?r.getTraceCtx():null;return e&&m!==e&&(t={}),m}function i(m){var _,C=n();if(!ba(t[m]))_=t[m];else if(C){if(m in C)_=C[m];else{var T="get"+Pte(m);Ar(C[T])&&(_=C[T])}Ar(_)&&(_=Ste(_,C))}return _}function o(m,_,C){var T=n();if(T){if(m in T)Ar(T[m])?Ste(T[m],T,[_]):T[m]=_;else{var S="set"+Pte(m);Ar(T[S])&&T[S](_)}t[m]=_Ue,_&&gn(_)&&C&&C()!==_&&(e=T,t[m]=_)}}function a(){return i("traceId")}function l(){var m=n(),_=t.spanId;if(m&&ba(_)){var C=m.parentCtx;C&&(_=C.spanId)}return _||i("spanId")}function u(){return i("traceFlags")}function h(){return Sl(r?r.logger:null,i("getName")||i("pageName"))}function p(m,_){return function(C){o(m,C,_)}}return Rb({},{traceID:{g:a,s:p("traceId",a)},parentID:{g:l,s:p("spanId",l)},traceFlags:{g:u,s:p("traceFlags",u)},name:{g:h,s:p("pageName",h)}})}var wUe=(function(){function r(e,t,n){var i=this,o=e.logger;ol(r,this,function(a){a.appId=wne,a[UH]=wne,a.application=new lUe,a.internal=new dUe(t,n),o7()&&(a[$8]=new yUe(t,e,n),a.device=new cUe,a.location=new hUe,a.user=new vUe(t,e,n),a[B8]=new Jye,hi(a,"telemetryTrace",{l:Sm(function(){return bUe(e)})})),a[UH]=function(){var l=a[B8],u=null;if(l&&gn(l.id))u=l.id;else{var h=(a[$8]||{})[Tx];u=h&&gn(h.id)?h.id:null}return u},a[Gye]=function(l,u){Ba(Th(l.ext,Up.AppExt),"sesId",a[UH](),gn)},a[Kye]=function(l,u){Ba(l.ext,Up.OSExt,a.os)},a[Yye]=function(l,u){var h=a.application;if(h){var p=Th(l,G4);Ba(p,za.applicationVersion,h.ver,gn),Ba(p,za.applicationBuild,h.build,gn)}},a.applyDeviceContext=function(l,u){var h=a.device;if(h){var p=Th(Th(l,q4),Up.DeviceExt);Ba(p,"localId",h.id,gn),Ba(p,"ip",h.ip,gn),Ba(p,"model",h.model,gn),Ba(p,"deviceClass",h.deviceClass,gn)}},a[Xye]=function(l,u){var h=a.internal;if(h){var p=Th(l,G4);Ba(p,za.internalAgentVersion,h.agentVersion,gn),Ba(p,za.internalSdkVersion,Sl(o,h.sdkVersion,64),gn
76),(l.baseType===VN.dataType||l.baseType===cL)&&(Ba(p,za.internalSnippet,h.snippetVer,gn),Ba(p,za.internalSdkSrc,h.sdkSrc,gn))}},a[Zye]=function(l,u){var h=i.location;h&&Ba(Th(l,G4,[]),za.locationIp,h.ip,gn)},a[Wye]=function(l,u){var h=a.telemetryTrace;if(h){var p=Th(Th(l,q4),Up.TraceExt,{traceID:void 0,parentID:void 0});Ba(p,"traceID",h.traceID,gn,hr),Ba(p,"name",h.name,gn,hr),Ba(p,"parentID",h.parentID,gn,hr)}},a.applyWebContext=function(l,u){var h=i.web;h&&Ba(Th(l,q4),Up.WebExt,h)},a.applyUserContext=function(l,u){var h=a.user;if(h){var p=Th(l,G4,[]);Ba(p,za.userAccountId,h[wA],gn);var m=Th(Th(l,q4),Up.UserExt);Ba(m,"id",h.id,gn),Ba(m,"authId",h[EA],gn)}},a.cleanUp=function(l,u){var h=l.ext;h&&(RI(h,Up.DeviceExt),RI(h,Up.UserExt),RI(h,Up.WebExt),RI(h,Up.OSExt),RI(h,Up.AppExt),RI(h,Up.TraceExt))}})}return r.__ieDyn=1,r})(),yw,s5,PI=null,EUe=RS((yw={accountId:PI,sessionRenewalMs:1800*1e3,samplingPercentage:100,sessionExpirationMs:1440*60*1e3,cookieDomain:PI,sdkExtension:PI,isBrowserLinkTrackingEnabled:!1,appId:PI},yw[UH]=PI,yw.namePrefix=s5,yw[Qye]=s5,yw.userCookiePostfix=s5,yw.idLength=22,yw.getNewId=PI,yw)),CUe=(function(r){E_(e,r);function e(){var t=r.call(this)||this;t.priority=110,t.identifier=bZ;var n,i,o;return ol(e,t,function(a,l){u(),hi(a,"context",{g:function(){return i}}),a.initialize=function(m,_,C,T){l.initialize(m,_,C,T),h(m)},a.processTelemetry=function(m,_){if(!hr(m)){_=a._getTelCtx(_),m.name===I7&&_.diagLog().resetInternalMessageCount();var C=i||{};C[B8]&&!gn(i[B8].id)&&C[$8]&&C[$8].update();var T=C.user;if(T&&!T[FH]&&T.update(C.user.id),p(m,_),T&&T[z8]&&(T[z8]=!1,!o)){var S=new VN(72,(XE()||{}).userAgent||"");ILe(_.diagLog(),1,S)}a.processNext(m,_)}},a._doTeardown=function(m,_){u()};function u(){n=null,i=null,o=!0}function h(m){var _=a.identifier,C=a.core;a._addHook(Tl(m,function(){var T=_v(null,m,C);m.storagePrefix&&gZ(m.storagePrefix),o=m.disableUserInitMessage!==!1,n=T.getExtCfg(_,EUe),a._extConfig=n})),i=new wUe(C,n,a._unloadHooks),a.context.appId=function(){var T=C.getPlugin(hye);return T?T.plugin._appId:null}}function p(m,_){Th(m,"tags",[]),Th(m,"ext",{});var C=a.context;C[Gye](m,_),C[Yye](m,_),C.applyDeviceContext(m,_),C[Wye](m,_),C.applyUserContext(m,_),C[Kye](m,_),C.applyWebContext(m,_),C[Zye](m,_),C[Xye](m,_),C.cleanUp(m,_)}}),t}return e.__ieDyn=1,e})(kS),eve="AuthenticatedUserContext",wk="track",XA=void 0,Ene="",j8="snippet",xUe="getCookieMgr",TUe="startTrackPage",SUe="stopTrackPage",l5="flush",IUe="startTrackEvent",AUe="stopTrackEvent",RUe="addTelemetryInitializer",Cne="pollInternalLogs",c5="getPlugin",u5="evtNamespace",PUe=wk+"Event",kUe=wk+"Trace",OUe=wk+"Metric",MUe=wk+"PageView",xne=wk+"Exception",NUe=wk+"DependencyData",DUe="set"+eve,LUe="clear"+eve,HUe="https://js.monitor.azure.com/scripts/b/ai.config.1.cfg.json",Jq="connectionString",d5="version",nx="queue",Y4="instrumentationKey",w2="userOverrideEndpointUrl",h5="endpointUrl",E2="onunloadFlush",am="context",Tne="addHousekeepingBeforeUnload",f5="sendMessage",FUe="updateSnippetDefinitions",qM="logger",dL="attribC
76ontainer",hL="attributes",LR="spanContext",tve="traceId",sS="spanId",LP="kind",HP="baseData",_m="type",V8="responseCode",lS="target",p5="traceFlags",rve="az.namespace",nve="azure.resource_provider.namespace",UUe="Microsoft.EventHub",BUe="message_bus.destination",Sne="timeSinceEnqueued",$Ue=QD(function(){return new RegExp(/(https?)(:\/\/.*)(:\d+)(\S*)/)}),zUe="http.",jUe="_MS.ProcessedByMetricExtractors",VUe=QD(qUe);function qUe(){return[jUe,f6e,Dme,p6e,g6e,m6e,y6e,v6e,_6e,b6e,w6e,Lme,Hme,Fme,Ume,Bme,cZ,E6e,C6e,x6e,T6e,S6e,I6e,A6e,R6e,P6e,k6e,O6e,M6e,zUe+"status_text",N6e,D6e,L6e,H6e,F6e,U6e,B6e,$6e,z6e,j6e,V6e,q6e,G6e,Y6e,W6e,K6e,Z6e,X6e,Q6e,J6e,eHe,tHe,rHe,nHe,iHe]}function GUe(r,e,t,n){var i=r.tags=r.tags||[],o=e[dL]||ub(e[hL]);i[t.operationId]=e[LR]()[tve],(e.parentSpanContext||{})[sS]&&(i[t.operationParentId]=e.parentSpanContext[sS]);var a=o.get(u6e);a&&(i[t.userAuthUserId]=Gi(a));var l=o.get(d6e);l&&(i[t.userId]=Gi(l));var u=QHe(o);u&&(i["ai.user.userAgent"]=String(u)),KHe(o)&&(i[t.operationSyntheticSource]="True");var h=o.get(c6e);if(h&&(i[t.locationIp]=Gi(h)),e[LP]===1){var p=w7(o);if(h||(i[t.locationIp]=ZHe(o)),p){var m=o.get(h6e),_=b7(o);if(i[t.operationName]=e.name,m)i[t.operationName]=p+" "+Qp(Gi(m),n);else if(_)try{var C=Qp(Kme(Gi(_)),n);i[t.operationName]=p+" "+C}catch{}}else i[t.operationName]=e.name}else{var T=o.get(t.operationName);T&&(i[t.operationName]=T)}}function YUe(r,e){var t=!1;return(KMe(VUe.v,r)||ENe(r,"microsoft.")||r===e.operationName)&&(t=!0),t}function WUe(r,e,t){if(t){var n=r[HP]=r[HP]||{},i=n.properties=n.properties||{};t.forEach(function(o,a){YUe(o,e)||(i[o]=a)})}}function KUe(r,e,t,n){if(t){var i=b7(e);if(i)try{var o=Kme(Gi(i));o&&(r.name=t+" "+Qp(o,n))}catch{}r[_m]="Http",r.data=Qp(jme(e),n);var a=Aq(e);a&&(r[V8]=+a);var l=hZ(e);if(l){try{var u=$Ue.v.exec(l);if(u!==null){var h=u[1],p=u[3];(h==="https"&&p===":443"||h==="http"&&p===":80")&&(l=u[1]+u[2]+u[4])}}catch{}r[lS]=l}}return!!t}function ZUe(r,e,t){if(t){String(t)===aHe?r[_m]="mysql":String(t)===sHe?r[_m]="postgresql":String(t)===oHe?r[_m]="mongodb":String(t)===lHe?r[_m]="redis":rFe(String(t))?r[_m]="SQL":r[_m]=String(t);var n=e.get(Hme),i=e.get(Fme);n?r.data=String(n):i&&(r.data=String(i));var o=hZ(e),a=e.get(Ume);o?r[lS]=a?o+"|"+Gi(a):o:r[lS]=Gi(a||t)}return!!t}function XUe(r,e,t){if(t){iNe(t)==="wcf"?r[_m]="WCF Service":r[_m]="GRPC";var n=e.get(cZ);hr(n)||(r[V8]=+n);var i=hZ(e);i?r[lS]=Gi(i):r[lS]=String(t)}return!!t}function QUe(r,e,t){var n=e[dL]||ub(e[hL]),i="Dependency";e[LP]===3?i="Queue Message":e[LP]===0&&e.parentSpanContext&&(i="InProc");var o=e[LR](),a={name:e.name,id:o[sS]||r.getTraceCtx()[sS],success:(e.status||{}).code!==2,responseCode:0,type:i,duration:iL(e.duration),data:Ene,target:Ene,properties:XA,measurements:XA};return KUe(a,n,w7(n),r.config)||ZUe(a,n,n.get(Lme))||XUe(a,n,n.get(Bme)),P0(a,uL,nye.replace("{0}.",""),r[qM])}function JUe(r,e,t){var n=e[dL]||ub(e[hL]),i=e[LR](),o={name:e.name,id:i[sS]||r.getTraceCtx()[sS],success:e.status.code!==0?e.status.code===1:(Number(Aq(n))||0)<400,responseCode:0,duration:iL(e.duration),source:void 0},a=w7(n),l=n.get(cZ);if(a){o.url=Qp(jme(n),r.config);var u=Aq(n);u&&(o[V8]=+u)}else l&&(o[V8]=+l);return P0(o,P8,CFe.replace("{0}.",""),r[qM])}function eBe(r,e){var t=null,n=e[dL]||ub(e[hL]),i=za,o=e[LP];if(o==1||o==4?t=JUe(r,e):(o==2||o==3||o==0)&&(t=QUe(r,e)),t){var a=t[HP]=t[HP]||{};a.startTime=new Date(iL(e.startTime));var l=t.ext=t.ext||{},u=l.dt=l.dt||{};u.spanId=u.spanId||e[LR]()[sS],u.traceId=u.traceId||e[LR]()[tve];var h=e[LR]()[p5];hr(h)||(u[p5]=u[p5]||h),GUe(t,e,i,r.config),WUe(t,i,n);var p=n.get("microsoft.sample_rate");hr(p)||(t.sampleRate=Number(p));var m=n.get(nve)||n.get(rve);m&&(e[LP]===0&&(a[_m]="InProc | "+m),m===UUe&&tBe(t,e))}return t}function tBe(r,e){var t=r[HP]=r[HP]||{},n=e[dL]||ub(e[hL]),i=n.get(nve)||n.get(rve),o=Gi(n.get(Dme)||n.get("peer.address")||"unknown").replace(/\/$/g,""),a=n.get(BUe)||"unknown",l=t[_m]||"",u=e[LP];if(u===2)l=i,t[lS]=o+"/"+a;else if(u===3)l="Queue Message | "+i,t[lS]=o+"/"+a;else if(u===4){l="Queue Message | "+i,t.source=o+"/"+a;var h=t.measurements=t.measurements||{},p=n.get("timeSinceEnqueued");if(p)h[Sne]=Number(p);else{var m=parseFloat(Gi(n.get("enqueuedTime")));isNaN(m)&&(m=0),h[Sne]=iL(e.startTime)-m}}t[_m]=l}var kI,OI,g5,C2,ive="dependencies",ove="properties",ave="_snippetVersion",sve="appInsightsNew",lve="get
76SKUDefaults",rBe=[j8,ive,ove,ave,sve,lve,"trace","otelApi"],nBe=[j8,ive,ove,ave,sve,lve],cve="iKeyUsage",uve="CdnUsage",dve="SdkLoaderVer",iBe="zipPayload",oBe={samplingRate:100,maxSendNumber:1},aBe={monthInterval:3,daysOfMonth:[28]},W4={disabled:!0,limit:Uf(oBe),interval:Uf(aBe)},sBe={connectionString:XA,endpointUrl:XA,instrumentationKey:XA,userOverrideEndpointUrl:XA,diagnosticLogInterval:g8(lBe,1e4),featureOptIn:(kI={},kI[cve]={mode:3},kI[uve]={mode:2},kI[dve]={mode:2},kI[iBe]={mode:1},kI),throttleMgrCfg:Uf((OI={},OI[109]=Uf(W4),OI[106]=Uf(W4),OI[111]=Uf(W4),OI[110]=Uf(W4),OI)),extensionConfig:Uf((g5={},g5.AppInsightsCfgSyncPlugin=Uf({cfgUrl:HUe,syncMode:2}),g5))};function lBe(r){return r&&r>0}function Ine(r,e){return BN(function(t,n){qf(e,function(i){var o=i&&i.value,a=null;!i.rejected&&o&&(r[Jq]=o,a=rye(o)),t(a)})})}function cBe(r,e,t,n){var i=Sm(CHe,[{host:r}]);return r.core.setTraceProvider(Sm(function(){return r6e(r,e,i.v,t,n)})),i}var uBe=(function(){function r(e){var t=this,n,i,o,a,l,u,h,p,m,_,C,T,S,R,O;ol(r,this,function(N){B(),hi(N,"config",{g:function(){return p}}),Or(["pluginVersionStringArr","pluginVersionString"],function(ie){hi(N,ie,{g:function(){return h?h[ie]:null}})}),a=""+(e.sv||e[d5]||""),e[nx]=e[nx]||[],e[d5]=e[d5]||2;var H=zm(e.config||{},sBe);p=H.cfg,m=new m8e,hi(N,"appInsights",{g:function(){return m}}),i=new CUe,n=new sUe,o=new Z8e,h=new w4e,hi(N,"core",{g:function(){return h}}),hi(N,"otelApi",{g:function(){return O?O.v:null}}),hi(N,"trace",{g:function(){return O?O.v.trace:null}}),Z(Tl(H,function(){var ie=p[Jq];if(mv(ie)){var J=BN(function(se,be){qf(Ine(p,ie),function(de){if(de.rejected)se(null);else{var ge=p[Y4],Ue=de.value;ge=Ue&&Ue.instrumentationkey||ge,se(ge)}})}),ne=p[w2];hr(ne)&&(ne=BN(function(se,be){qf(Ine(p,ie),function(de){if(de.rejected)se(null);else{var ge=p[h5],Ue=de.value,Qe=Ue&&Ue.ingestionendpoint;ge=Qe?Qe+RR:ge,se(ge)}})})),p[Y4]=J,p[h5]=ne}if(gn(ie)&&ie){var ue=rye(ie),K=ue.ingestionendpoint;p.endpointUrl=p[w2]?p[w2]:K+RR,p[Y4]=ue.instrumentationkey||p[Y4]}p.endpointUrl=p[w2]?p[w2]:p[h5]})),N[j8]=e,N[l5]=function(ie,J){ie===void 0&&(ie=!0);var ne;return S8(h,function(){return"AISKU.flush"},function(){ie&&!J&&(ne=h_(function(se){J=se}));var ue=1,K=function(){ue--,ue===0&&J()};Or(h.getChannels(),function(se){se&&(ue++,se[l5](ie,K))}),K()},null,ie),ne},N[E2]=function(ie){ie===void 0&&(ie=!0),Or(h.getChannels(),function(J){J[E2]?J[E2]():J[l5](ie)})},N.loadAppInsights=function(ie,J,ne){ie===void 0&&(ie=!1),ie&&eNe("Legacy Mode is no longer supported");function ue(K){if(K){var se="";hr(a)||(se+=a),N[am]&&N[am].internal&&(N[am].internal.snippetVer=se||"-"),zi(N,function(be,de){gn(be)&&!Ar(de)&&be&&be[0]!=="_"&&Da(rBe,be)===-1&&K[be]!==de&&(K[be]=de)})}}return S8(N.core,function(){return"AISKU.loadAppInsights"},function(){h.initialize(p,[o,i,n,m,_],J,ne),O=cBe(N,"aisku",F,j),hi(N,"context",{g:function(){return i[am]}}),C||(C=new _Fe(h));var K=dBe();K&&N[am]&&(N[am].internal.sdkSrc=K),ue(N[j8]),N.emptyQueue(),N[Cne](),N[Tne](N),Z(Tl(H,function(){var se=!1;p.throttleMgrCfg[109]&&(se=!p.throttleMgrCfg[109].disabled),!C.isReady()&&p.extensionConfig&&p.extensionConfig[_.identifier]&&se&&C.onReadyState(!0),!T&&!p[Jq]&&IH(cve,p,!0)&&(C[f5](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),T=!0),!S&&N[am].internal.sdkSrc&&N[am].internal.sdkSrc.indexOf("az416426")!=-1&&IH(uve,p,!0)&&(C[f5](110,"See Cdn support notice at aka.ms/JsActiveCdn"),S=!0),!R&&parseInt(a)<6&&IH(dve,p,!0)&&(C[f5](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),R=!0)}))}),N},N[FUe]=function(ie){TDe(ie,N,function(J){return J&&Da(nBe,J)===-1})},N.emptyQueue=function(){try{if(ni(N.snippet[nx])){for(var ie=N.snippet[nx].length,J=0;J<ie;J++){var ne=N.snippet[nx][J];ne()}N.snippet[nx]=void 0,delete N.snippet[nx]}}catch(K){var ue={};K&&Ar(K.toString)&&(ue.exception=K.toString())}},N[Tne]=function(ie){if(o7()||cge()){var J=function(){if(ie[E2](!1),Ar(N.core[c5])){var ue=t.core[c5](bZ);if(ue){var K=ue.plugin;K&&K[am]&&K[am]._sessionManager&&K[am]._sessionManager.backup()}}},ne=!1;u||(u=QE(l,h[u5]&&h[u5]())),Z(Tl(p,function(ue){var K=ue.cfg,se=ie.appInsights,be=_v(null,K,se.core),de=be.getExtCfg(se.identifier||wZ);Q();var ge=K.disablePageUnloadEvents;de.disableFlushOnBeforeUnload||(M4e(J,ge,u)&&(ne=!0),wq(J,ge,u)&&(ne=!0),!ne&&!GDe()&&Hr(h[qM],1,19,"Could not add handler for beforeunload and pagehide")),!ne&&!de.disableFlushOnUnload&&wq(J,ge,u)}))}},N.getSender=function(){return o},N.unload=function(ie,J,ne){var ue=!1,K;ie!==!1&&!J&&(K=h_(function(be){J=be}));function se(be){ue||(ue=!0,h&&(h.setTraceProvider(null),O&&O.v.shutdown(),O=null),B(),J&&J(be))}return N[E2](ie),Q(),h.unload&&h.unload(ie,se,ne),K},GA(N,m,[xUe,PUe,MUe,"trackPageViewPerformance",xne,"_onerror",kUe,OUe,TUe,SUe,IUe,AUe]),GA(N,L,[NUe,"addDependencyListener","addDependencyInitializer"]),GA(N,h,[RUe,Cne,"stopPollingInternalLogs",c5,"addPlugin",u5,"addUnloadCb","updateCfg","onCfgChange","getTraceCtx","setTraceCtx","startSpan","getActiveSpan","setActiveSpan","setTraceProvider","getTraceProvider"]),GA(N,function(){var ie=i[am];return ie?ie.user:null},[DUe,LUe]);function F(ie){O&&ie&&ie.isRecording()&&!O.v.cfg.traceCfg.suppressTracing&&Iq(h,ie,function(){try{var J=eBe(h,ie);J&&N.core.track(J)}catch(ne){Hr(h[qM],2,64,"Error processing span - "+tn(ne))}})}function j(ie,J,ne){O&&Iq(h,ie,function(){try{N[xne]({exception:J,properties:{time:ne}})}catch(ue){Hr(h[qM],2,64,"Error processing exception - "+tn(ue))}})}function L(){return n}function B(){l=vv("AISKU"),u=null,n=null,i=null,o=null,a=null,C=null,T=!1,S=!1,R=!1,_=new T8e}function Q(){u&&(N4e(null,u),D4e(null,u))}function Z(ie){h.addUnloadHook(ie)}})}return r.prototype.addDependencyInitializer=function(e){return null},r})();
76function dBe(){if(C2)return C2;var r=null,e=!1,t=["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"];try{var n=(document||{}).currentScript;n&&(r=n.src)}catch{}if(r){try{var i=r.toLowerCase();if(i){var o="";Or(t,function(a,l){if(Cs(i,a)!==-1)return o="cdn"+(l+1),Cs(i,"/scripts/")===-1&&(Cs(i,"/next/")!==-1?o+="-next":Cs(i,"/beta/")!==-1&&(o+="-beta")),C2=o+(e?".mod":""),-1})}}catch{}C2=r}return C2}const Zn={apiBaseUrl:"https://api.h2-digital.com",appUrl:void 0,publicKey:"-----BEGIN PUBLIC KEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDHJM7CtoiP2QbRtesU5nGuhowkITgJ1wW0aijeftsbtyjz3QBYs+HYAH3lU+GiGpGSbSAh7DlZz9Q9jfueB991j/cIIfKyQ3rz/sm6OLQCKP1p3HdzrJosznC47IJnK+VlCMD9ue/1lk+dRFwZXqQnS8Cit2RHPxvtxZwHJg0BjQIDAQAB-----END PUBLIC KEY-----",recaptchaKey:void 0,blobStorageUrl:"https://h2digitalstorageprod.blob.core.windows.net/",mapSubscriptionKey:"6Y3578dLVFqxBEqFYRTCJwoQCoPY2gRnS2f59cB5RCEImMgL46fvJQQJ99ALAC5RqLJXwCKhAAAgAZMP44cy",maintenanceMode:"",appInsightsConnectionString:"InstrumentationKey=add6fa15-e3a3-4d3a-8a25-ed958c1c0c92;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/",supportEMail:"[email protected]",environment:"production",testingProtectionPassword:void 0,disableCFI:"1",enableVectorTileMap:"1",copilot:{speechAPIKey:"GAUM5nxFKlvYCDitg72b3UJkQ1lVE5SPTJ9dfGJc6Nj3Iswo5AcLJQQJ99BCAC5RqLJXJ3w3AAAYACOGzNCz",webSocketUrl:"wss://chatbot.h2-digital.com",speechResourceRegion:"westeurope"}},Ane=r=>{let e;const t=new Set,n=(h,p)=>{const m=typeof h=="function"?h(e):h;if(!Object.is(m,e)){const _=e;e=p??(typeof m!="object"||m===null)?m:Object.assign({},e,m),t.forEach(C=>C(e,_))}},i=()=>e,l={setState:n,getState:i,getInitialState:()=>u,subscribe:h=>(t.add(h),()=>t.delete(h))},u=e=r(n,i,l);return l},hve=(r=>r?Ane(r):Ane),hBe=r=>r;function fve(r,e=hBe){const t=as.useSyncExternalStore(r.subscribe,as.useCallback(()=>e(r.getState()),[r,e]),as.useCallback(()=>e(r.getInitialState()),[r,e]));return as.useDebugValue(t),t}const Rne=r=>{const e=hve(r),t=n=>fve(e,n);return Object.assign(t,e),t},fL=(r=>r?Rne(r):Rne);var fBe=(r=>(r.USER="user",r.BOT="bot",r))(fBe||{});const pve=fL(r=>({isMapResetEnabled:!1,setMapResetEnabled:e=>{r(()=>({isMapResetEnabled:e}))},showMap:!1,setShowMap:e=>{r(()=>({showMap:e}))},isLoading:!1,setIsLoading:e=>{r(()=>({isLoading:e}))},actionItem:[],setActionItem:e=>{r(()=>({actionItem:e}))},faqMessage:null,setFAQMessage:e=>{r(()=>({faqMessage:e}))},messages:[],setMessages:e=>{r(()=>({messages:e}))},addMessage:e=>{r(t=>({messages:[...t.messages,e]}))},clearMessages:()=>{r(()=>({messages:[]}))},allProjectsForAI:null,setAllProjectsForAI:e=>{r(()=>({allProjectsForAI:e}))},allProjectIdsForAI:null,setAllProjectIdsForAI:e=>{r(()=>({allProjectIdsForAI:e}))}}));var Oi=(r=>(r.PROVIDER="provider",r.SOURCE="source",r.PIPELINE="pipeline",r.CRM_ID="crm id",r.HYDROGEN_CORRIDOR="hydrogen corridor",r.TYPE="type",r.ZAHLUNGSBEREITSCHAFT="zahlungsbereitschaft",r.ELEKTRIFIZIERUNGSPOTENZIAL="elektrifizierungspotenzial",r.RELEVANZ_H2="relevanz h2",r.REGULATORISCHER_DRUCK="regulatorischer druck",r.FOERDERBEDINGUNGEN="förderbedingungen",r.KREIS="kreis",r.ORIGIN="origin",r.UPLOAD="upload",r.HYPOTENTIAL_GRUPPE="hypotential-gruppe",r.PARTNERUNTERNEHMEN="partnerunternehmen",r))(Oi||{}),Bo=(r=>(r.H2MED="h2med",r.OGE="oge",r.HYPORTAL="hyportal",r.NEP="nep",r.HYPOTENTIALS="hypotentials",r.CIBUSCELL="cibuscell",r.H2_DIGITAL_SIZING="energyplanner",r.H2_DIGITAL_PROVIDER="h2 digital",r.INNOVATION_AGENTUR_RLP_PROVIDER="innovationsagentur rlp",r))(Bo||{}),p_=(r=>(r.H2_DIGITAL_SOURCE="h2 digital",r.INNOVATION_AGENTUR_RLP_SOURCE="rlp-plattform",r))(p_||{}),GM=(r=>(r.HYPOTENTIALS="HyPotentials",r.HOTMAPS="Hotmaps",r.H2_TANKSTELLEN="H2 Tankstellen",r.ERDGAS_KRAFTWERKE="Erdgas Kraftwerke",r.GROSSABNEHMER_NEUWIRTH_2022="Großabnehmer (Neuwirth 2022)",r))(GM||{});const pBe="Großabnehmer Neuwirth";var gve=(r=>(r.OWN_PROJECTS="Eigene Projekte",r))(gve||{}),A7=(r=>(r[r.OWN_PROJECTS=-1]="OWN_PROJECTS",r))(A7||{});const mve=new Set(["h2med","hyportal","cibuscell","rlp-plattform"]),gBe=new Set(["cibuscell"]),mBe="https://graph.microsoft.com/v1.0",yBe="c7e22c72-04da-484f-8672-0ca9929210f2/default",Xy={GRAPH_MICROSOFT:mBe,AZURE_AD_SCOPE:yBe};var si=(r=>(r[r.H2DIGITAL=5]="H2DIGITAL",r[r.PROVIDER=10]="PROVIDER",r[r.SUPERVISOR=13]="SUPERVISOR",r[r.PROJECT=20]="PROJECT",r))(si||{}),IZ=(r=>(r[r.PROJECT=20]="PROJECT",r[r.KREIS=30]="KREIS",r))(IZ||{}),yve=(r=>(r.LOCAL="local",r.DEVELOPMENT="development",r.STAGING="staging",r.PRODUCTION="production",r))(yve||{});const vve=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,vBe=/^(https?:\/\/)?[^\s/$.?#]+\.[^\s]+$/i,_Be=/^(https:\/\/)?(www.)?linkedin.com\/.+$/i,bBe=/^https?:\/\/.*$/i,wBe=/^(?=(?:\d\s*){3,23}$)[\d\s]+$/,zkt=/^\d*\.?\d+$/;var Kf=(r=>(r.EN="en-US",r.DE="de-DE",r.FR="fr-FR",r))(Kf||{});const EBe=new RegExp("^(?!.*[._]{2})(?![._])[a-zA-Z0-9._-]+(?<![._])$"),jkt="https://oge-crm-prod.crm4.dynamics.com/main.aspx?appid=9b7aa427-1d6b-4216-a8be-9e15cffd8fc8&pagetype=entityrecord&etn=oge_guprojects&id=";var nd=(r=>(r.OGE="OGE",r.GRTgaz="GRTgaz",r.Terega="Terega",r.Enagas="Enagas",r.REN="REN",r))(nd||{});const CBe={Hesse:"Hessen","Lower Saxony":"Niedersachsen","Saxony-Anhalt":"Sachsen-Anhalt",Saxony:"Sachsen",Bavaria:"Bayern","Rhineland-Palatinate":"Rheinland-Pfalz","North Rhine-Westphalia":"Nordrhein-Westfalen","Mecklenburg-Vorpommern":"Mecklenburg-Vorpommern",Thuringia:"Thüringen"},Vkt=r=>CBe[r]||r;var tT=(r=>(r.Germany="Germany",r.France="France",r.Spain="Spain",r.Portugal="Portugal",r))(tT||{}),ka=(r=>(r.Consumer="Consumer",r.Producer="Producer",r.Trader="Trader",r.Storage="Storage",r.H2Tankstelle="H2 Filling Station",r.CCUS="CCUS",r.GasPowerPlant="Gas Power Plant",r.Other="Other",r))(ka||{});const _ve=["Gironde","Lot-et-Garonne","Lot","Cantal","Aveyron","Tarn","Aude","Pyrénées-Orientales","Tarn-et-Garonne","Landes","Gers","Pyrénées-Atlantiques","Hautes-Pyrénées","Haute-Garonne","Ariège","Lozère"],Pne="h2-digital.com",xBe="hivemind-energy.ai",TBe=["hivemind-energy.com","hivemind-energy.ai"],SBe=()=>{if(typeof window>"u")return`@${Pne}`;const r=window.location.hostname.toLowerCase();return TBe.some(t=>r===t||r.endsWith(`.${t}`))?`@${xBe}`:`@${Pne}`},bve=SBe();var IBe=(r=>(r.Provider="provider",r.Project="project",r.Supervisor="supervisor",r.SupportUser="supportUser",r))(IBe||{});const qkt={scopes:["User.Read"],prompt:"select_account"};var QA=(r=>(r[r.ADD_PROJECT_CMS=1]="ADD_PROJECT_CMS",r[r.JOIN_US_FORM=2]="JOIN_US_FORM",r[r.SIZING_AND_COSTING_REQUEST=3]="SIZING_AND_COSTING_REQUEST",r[r.ADD_PROJECT_PROJECT_USER=4]="ADD_PROJECT_PROJECT_USER",r))(QA||{}),ABe=(r=>(r.AI="AI",r.H2SIZING="H2SIZING",r))(ABe||{}),wve=(r=>(r.ERR_NETWORK="ERR_NETWORK",r))(wve||{}),AZ=(r=>(r.USER_NOT_FOUND="USER_NOT_FOUND",r.INTERNAL_USER_INVITATION_FORBIDDEN="INTERNAL_USER_INVITATION_FORBIDDEN",r.USER_ALREADY_INVITED="USER_ALREADY_INVITED",r.AAD_USER_NOT_FOUND="AAD_USER_NOT_FOUND",r))(AZ||{});
76const Eve=["/","/platform","/services","/our-network","/about-us"],Cve=[...Eve,"/for-energy-providers"],RBe=["/","/ai-assist","/ai-assist/chat","/ai-custom-chat","/map","/list","/analytics","/platform","/services","/our-network","/about-us","/for-energy-providers","/impressum","/data-privacy","/terms","/faq","/faq/sizing","/faq/h2-supply-plan","/faq/market-survey","/embed-map","/h2med/terms","/h2med/data-privacy","/join","/h2med/join","/hyportal/join","rlp-plattform/join","/confirm-subscribe","/sizing-and-costing","/sizing-and-costing/new","/sizing-and-costing/report"],PBe=["/join","/embed-map","/confirm-subscribe","/h2med/join","/h2med/cfi","/hyportal/join","/rlp-plattform/join"],kBe=["/platform","/services","/our-network","/about-us","/for-energy-providers","/impressum","/data-privacy","/terms","/faq","/faq/sizing","/faq/h2-supply-plan","/faq/market-survey"],xve=[{url:"/ai-assist"},{url:"/map",accessProp:"map"},{url:"/list",accessProp:"list"},{url:"/analytics",accessProp:"analytics"},{url:"/content-management",accessProp:"contentManagement"},{url:"/user-management",accessProp:"userManagement"},{url:"/sizing-and-costing",accessProp:"sizingAndCostingSelfService"},{url:"/test-embeddings"},{url:"/vector-tile"}],Gkt=["map","list","analytics","vector-tile"],Ykt="https://www.h2-digital.com/map",Wkt=[{path:"/",activeLink:"home",textId:"h2-dig.home.navLinks.home"},{path:"/platform",activeLink:"platform",textId:"h2-dig.home.navLinks.platform"},{path:"/services",activeLink:"services",textId:"h2-dig.home.navLinks.services"},{path:"/our-network",activeLink:"ourNetwork",textId:"h2-dig.home.navLinks.ourNetwork"},{path:"/about-us",activeLink:"aboutus",textId:"h2-dig.home.navLinks.aboutUs"}];var Nd=(r=>(r.CANDIDATE="CANDIDATE",r.CONCEPT="CONCEPT",r.PLANNING="PLANNING",r.CONSTRUCTION="CONSTRUCTION",r.OPERATIONAL="OPERATIONAL",r.
76UNKNOWN="UNKNOWN",r))(Nd||{}),Tve=(r=>(r.Badenova="Badenova",r.EinsEnergieInSachsen="EinsEnergieInSachsen",r.EnergieMittelsachsen="EnergieMittelsachsen",r.SchwabenNetz="SchwabenNetz",r.EsweVersorgungsAG="EsweVersorgungsAG",r))(Tve||{});const RZ={Badenova:"Badenova",EinsEnergieInSachsen:"Eins Energie in Sachsen",EnergieMittelsachsen:"Energie Mittelsachsen",SchwabenNetz:"Schwaben-Netz",EsweVersorgungsAG:"ESWE Versorgungs AG"},OBe=[Bo.H2MED,Bo.CIBUSCELL],MBe=[Bo.HYPORTAL,p_.INNOVATION_AGENTUR_RLP_SOURCE],NBe=[Bo.H2MED,Bo.HYPORTAL,p_.INNOVATION_AGENTUR_RLP_SOURCE];var kne={};
vendor: 13,287 bytes, lines 76-128
76/*!
77MICROSOFT SOFTWARE LICENSE TERMS
78MICROSOFT AZURE MAPS WEB SDK
79These license terms are an agreement between you and Microsoft Corporation (or one of its affiliates). They apply to the software named above and any Microsoft services or software updates (except to the extent such services or updates are accompanied by new or additional terms, in which case those different terms apply prospectively and do not alter your or Microsoft’s rights relating to pre-updated software or services). IF YOU COMPLY WITH THESE LICENSE TERMS, YOU HAVE THE RIGHTS BELOW.  BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS.
801. INSTALLATION AND USE RIGHTS.
81  a) General. You may install and use any number of copies of the software to develop and test your applications.
82  b) User Region Parameters. The software will allow you to select from a View list to set the map view within your application for a given customer. By default the View parameter (also referred to as “user region parameter” is set to “Unified”.  Countries/Regions that are not on the View list will default to the “Unified” View. It is your responsibility to determine the location of your users, and then set the View parameter correctly for that location. The View parameter must be used in compliance with applicable laws, including those regarding mapping, of the country where maps, images and other data and third party content that You are authorized to access via the software is made available. 
83  c) Third Party Software. The software may include third party applications that Microsoft, not the third party, licenses to you under this agreement. Any included notices for third party applications are for your information only.
84  d) Microsoft Online Subscription Agreement. Some features of the software provide access to, or rely on, Microsoft Azure Services. The use of those services (but not the software) is governed by the separate terms and privacy policies associated with your Microsoft Azure subscription. The services may not be available in all regions. For more information see https://go.microsoft.com/fwLink/?LinkID=522330&amp;clcid=0x9.
852. DISTRIBUTABLE CODE. The software is comprised of “Distributable Code”. “Distributable Code” is code that you are permitted to distribute in applications you develop if you comply with the terms below and otherwise set forth in these license terms. 
86  a) Distribution Rights. 
87    i. You may copy and distribute the object code form of the software.
88    i. Third Party Distribution. You may permit distributors of your applications to copy and distribute any of this distributable code you elect to distribute with your applications.
89  b) Distribution Requirements. For any code you distribute, you must:
90    i. add significant primary functionality to it in your applications;
91    ii. require distributors and external end users to agree to terms that protect it and Microsoft at least as much as this agreement; and
92    iii. indemnify, defend, and hold harmless Microsoft from any claims, including attorneys’ fees, related to the distribution or use of your applications, except to the extent that any claim is based solely on the unmodified distributable code.
93  c) Distribution Restrictions. You may not:
94    i. use Microsoft’s trademarks or trade dress in your application in any way that suggests your application comes from or is endorsed by Microsoft; or
95    ii. modify or distribute the source code of any distributable code so that any part of it becomes subject to any license that requires that the distributable code, any other part of the software, or any of Microsoft’s other intellectual property be disclosed or distributed in source code form, or that others have the right to modify it.
963. DATA COLLECTION. The software may collect information about you and your use of the software and send that to Microsoft. Microsoft may use this information to provide services and improve Microsoft’s products and services. Your opt-out rights, if any, are described in the product documentation. Some features in the software may enable collection of data from users of your applications that access or use the software. If you use these features to enable data collection in your applications, you must comply with applicable law, including getting any required user consent, and maintain a prominent privacy policy that accurately informs users about how you use, collect, and share their data. You can learn more about Microsoft’s data collection and use in the product documentation and the Microsoft Privacy Statement at https://go.microsoft.com/fwlink/?LinkId=512132. You agree to comply with all applicable provisions of the Microsoft Privacy Statement.
974. SCOPE OF LICENSE. The software is licensed, not sold. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you will not (and have no right to):
98  a) work around any technical limitations in the software that only allow you to use it in certain ways;
99  b) reverse engineer, decompile, or disassemble the software, or attempt to do so, except and only to the extent permitted by licensing terms governing the use of open-source components that may be included with the software;
100  c) remove, minimize, block, or modify any notices of Microsoft or its suppliers in the software;
101  d) use the software in any way that is against the law or to create or propagate malware; or
102  e) share, publish, distribute, or lend the software (except for any distributable code, subject to the terms above), provide the software as a stand-alone hosted solution for others to use, or transfer the software or this agreement to any third party.
1035. EXPORT RESTRICTIONS. You must comply with all domestic and international export laws and regulations that apply to the software, which include restrictions on destinations, end users, and end use. For further information on export restrictions, visit http://aka.ms/exporting.
1046. SUPPORT SERVICES. Microsoft is not obligated under this agreement to provide any support services for the software. Any support provided is “as is”, “with all faults”, and without warranty of any kind.
1057. UPDATES. The software may periodically check for updates, and download and install them for you. You may obtain updates only from Microsoft or authorized sources. Microsoft may need to update your system to provide you with updates. You agree to receive these automatic updates without any additional notice. Updates may not include or support all existing software features, services, or peripheral devices.
1068. ENTIRE AGREEMENT. This agreement, and any other terms Microsoft may provide for supplements, updates, or third-party applications, is the entire agreement for the software.
1079. APPLICABLE LAW AND PLACE TO RESOLVE DISPUTES. If you acquired the software in the United States or Canada, the laws of the state or province where you live (or, if a business, where your principal place of business is located) govern the interpretation of this agreement, claims for its breach, and all other claims (including consumer protection, unfair competition, and tort claims), regardless of conflict of laws principles. If you acquired the software in any other country, its laws apply. If U.S. federal jurisdiction exists, you and Microsoft consent to exclusive jurisdiction and venue in the federal court in King County, Washington for all disputes heard in court. If not, you and Microsoft consent to exclusive jurisdiction and venue in the Superior Court of King County, Washington for all disputes heard in court.
10810. CONSUMER RIGHTS; REGIONAL VARIATIONS. This agreement describes certain legal rights. You may have other rights, including consumer rights, under the laws of your state or country. Separate and apart from your relationship with Microsoft, you may also have rights with respect to the party from which you acquired the software. This agreement does not change those other rights if the laws of your state or country do not permit it to do so. For example, if you acquired the software in one of the below regions, or mandatory country law applies, then the following provisions apply to you:
109  a) Australia. You have statutory guarantees under the Australian Consumer Law and nothing in this agreement is intended to affect those rights.
110  b) Canada. If you acquired this software in Canada, you may stop receiving updates by turning off the automatic update feature, disconnecting your device from the Internet (if and when you re-connect to the Internet, however, the software will resume checking for and installing updates), or uninstalling the software. The product documentation, if any, may also specify how to turn off updates for your specific device or software.
111  c) Germany and Austria.
112    i. Warranty. The properly licensed software will perform substantially as described in any Microsoft materials that accompany the software. However, Microsoft gives no contractual guarantee in relation to the licensed software.
113    ii. Limitation of Liability. In case of intentional conduct, gross negligence, claims based on the Product Liability Act, as well as, in case of death or personal or physical injury, Microsoft is liable according to the statutory law.
114  Subject to the foregoing clause ii., Microsoft will only be liable for slight negligence if Microsoft is in breach of such material contractual obligations, the fulfillment of which facilitate the due performance of this agreement, the breach of which would endanger the purpose of this agreement and the compliance with which a party may constantly trust in (so-called "cardinal obligations"). In other cases of slight negligence, Microsoft will not be liable for slight negligence.
11511. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED “AS IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES, OR CONDITIONS. TO THE EXTENT PERMITTED UNDER APPLICABLE LAWS, MICROSOFT EXCLUDES ALL IMPLIED WARRANTIES, INCLUDING MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
11612. LIMITATION ON AND EXCLUSION OF DAMAGES. IF YOU HAVE ANY BASIS FOR RECOVERING DAMAGES DESPITE THE PRECEDING DISCLAIMER OF WARRANTY, YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT, OR INCIDENTAL DAMAGES.
117This limitation applies to (a) anything related to the software, services, content (including code) on third party Internet sites, or third party applications; and (b) claims for breach of contract, warranty, guarantee, or condition; strict liability, negligence, or other tort; or any other claim; in each case to the extent permitted by applicable law.
118It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your state, province, or country may not allow the exclusion or limitation of incidental, consequential, or other damages.
119Please note: As this software is distributed in Canada, some of the clauses in this agreement are provided below in French.
120Remarque: Ce logiciel étant distribué au Canada, certaines des clauses dans ce contrat sont fournies ci-dessous en français.
121EXONÉRATION DE GARANTIE. Le logiciel visé par une licence est offert « tel quel ». Toute utilisation de ce logiciel est à votre seule risque et péril. Microsoft n’accorde aucune autre garantie expresse. Vous pouvez bénéficier de droits additionnels en vertu du droit local sur la protection des consommateurs, que ce contrat ne peut modifier. La ou elles sont permises par le droit locale, les garanties implicites de qualité marchande, d’adéquation à un usage particulier et d’absence de contrefaçon sont exclues.
122LIMITATION DES DOMMAGES-INTÉRÊTS ET EXCLUSION DE RESPONSABILITÉ POUR LES DOMMAGES. Vous pouvez obtenir de Microsoft et de ses fournisseurs une indemnisation en cas de dommages directs uniquement à hauteur de 5,00 $ US. Vous ne pouvez prétendre à aucune indemnisation pour les autres dommages, y compris les dommages spéciaux, indirects ou accessoires et pertes de bénéfices.
123Cette limitation concerne:
124• tout ce qui est relié au logiciel, aux services ou au contenu (y compris le code) figurant sur des sites Internet tiers ou dans des programmes tiers; et
125• les réclamations au titre de violation de contrat ou de garantie, ou au titre de responsabilité stricte, de négligence ou d’une autre faute dans la limite autorisée par la loi en vigueur.
126Elle s’applique également, même si Microsoft connaissait ou devrait connaître l’éventualité d’un tel dommage. Si votre pays n’autorise pas l’exclusion ou la limitation de responsabilité pour les dommages indirects, accessoires ou de quelque nature que ce soit, il se peut que la limitation ou l’exclusion ci-dessus ne s’appliquera pas à votre égard.
127EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous pourriez avoir d’autres droits prévus par les lois de votre pays. Le présent contrat ne modifie pas les droits que vous confèrent les lois de votre pays si celles-ci ne le permettent pas.
128*/
128var K4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function lC(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function DBe(r){var e,t;return r.__esModule?r:(typeof(e=r.default)=="function"?(t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)}).prototype=e.prototype:t={}
vendor: 6,775 bytes, line 128
128,Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t)}var One={exports:{}},LBe=((function(){var r;r=function(){var e={},t={};function n(i,o,a){t[i]=a,i==="index"&&(a="var sharedModule = {}; ("+t.shared+")(sharedModule); ("+t.worker+")(sharedModule);",t.shared(i={}),t.index(e,i),typeof window<"u")&&e.setWorkerUrl(window.URL.createObjectURL(new Blob([a],{type:"text/javascript"})))}return n("shared",0,function(i){function o(g,s,c,f){return new(c=c||Promise)(function(y,w){function x(q){try{D(f.next(q))}catch(Y){w(Y)}}function k(q){try{D(f.throw(q))}catch(Y){w(Y)}}function D(q){var Y;q.done?y(q.value):((Y=q.value)instanceof c?Y:new c(function(oe){oe(Y)})).then(x,k)}D((f=f.apply(g,s||[])).next())})}function a(g){return g&&g.__esModule&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g}var l=u;function u(g,s){this.x=g,this.y=s}u.prototype={clone:function(){return new u(this.x,this.y)},add:function(g){return this.clone()._add(g)},sub:function(g){return this.clone()._sub(g)},multByPoint:function(g){return this.clone()._multByPoint(g)},divByPoint:function(g){return this.clone()._divByPoint(g)},mult:function(g){return this.clone()._mult(g)},div:function(g){return this.clone()._div(g)},rotate:function(g){return this.clone()._rotate(g)},rotateAround:function(g,s){return this.clone()._rotateAround(g,s)},matMult:function(g){return this.clone()._matMult(g)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(g){return this.x===g.x&&this.y===g.y},dist:function(g){return Math.sqrt(this.distSqr(g))},distSqr:function(c){var s=c.x-this.x,c=c.y-this.y;return s*s+c*c},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(g){return Math.atan2(this.y-g.y,this.x-g.x)},angleWith:function(g){return this.angleWithSep(g.x,g.y)},angleWithSep:function(g,s){return Math.atan2(this.x*s-this.y*g,this.x*g+this.y*s)},_matMult:function(c){var s=c[0]*this.x+c[1]*this.y,c=c[2]*this.x+c[3]*this.y;return this.x=s,this.y=c,this},_add:function(g){return this.x+=g.x,this.y+=g.y,this},_sub:function(g){return this.x-=g.x,this.y-=g.y,this},_mult:function(g){return this.x*=g,this.y*=g,this},_div:function(g){return this.x/=g,this.y/=g,this},_multByPoint:function(g){return this.x*=g.x,this.y*=g.y,this},_divByPoint:function(g){return this.x/=g.x,this.y/=g.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var g=this.y;return this.y=this.x,this.x=-g,this},_rotate:function(f){var s=Math.cos(f),f=Math.sin(f),c=s*this.x-f*this.y,f=f*this.x+s*this.y;return this.x=c,this.y=f,this},_rotateAround:function(y,s){var c=Math.cos(y),y=Math.sin(y),f=s.x+c*(this.x-s.x)-y*(this.y-s.y),y=s.y+y*(this.x-s.x)+c*(this.y-s.y);return this.x=f,this.y=y,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},u.convert=function(g){return!(g instanceof u)&&Array.isArray(g)?new u(g[0],g[1]):g};var h=a(l),p=m;function m(g,s,c,f){this.cx=3*g,this.bx=3*(c-g)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*s,this.by=3*(f-s)-this.cy,this.ay=1-this.cy-this.by,this.p1x=g,this.p1y=s,this.p2x=c,this.p2y=f}m.prototype={sampleCurveX:function(g){return((this.ax*g+this.bx)*g+this.cx)*g},sampleCurveY:function(g){return((this.ay*g+this.by)*g+this.cy)*g},sampleCurveDerivativeX:function(g){return(3*this.ax*g+2*this.bx)*g+this.cx},solveCurveX:function(g,s){if(s===void 0&&(s=1e-6),g<0)return 0;if(1<g)return 1;for(var c=g,f=0;f<8;f++){var y=this.sampleCurveX(c)-g;if(Math.abs(y)<s)return c;var w=this.sampleCurveDerivativeX(c);if(Math.abs(w)<1e-6)break;c-=y/w}for(var x=0,k=1,c=g,f=0;f<20&&(y=this.sampleCurveX(c),!(Math.abs(y-g)<s));f++)y<g?x=c:k=c,c=.5*(k-x)+x;return c},solve:function(g,s){return this.sampleCurveY(this.solveCurveX(g,s))}};var _=a(p);let C;function T(){return C=C??(typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function")}let S;function R(){if(S==null&&(S=!1,T())){var g=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(g){for(let f=0;f<25;f++){var s=4*f;g.fillStyle=`rgb(${s},${1+s},${2+s})`,g.fillRect(f%5,Math.floor(f/5),1,1)}var c=g.getImageData(0,0,5,5).data;for(let f=0;f<100;f++)if(f%4!=3&&c[f]!==f){S=!0;break}}}return S||!1}function O(g){var s,c;return g<=0?0:1<=g?1:(c=(s=g*g)*g,4*(g<.5?c:3*(g-s)+c-.75))}function N(g,s,c,f){const y=new _(g,s,c,f);return function(w){return y.solve(w)}}p=N(.25,.1,.25,1);function H(g,s,c){return Math.min(c,Math.max(s,g))}function F(y,s,c){var f=c-s,y=((y-s)%f+f)%f+s;return y===s?c:y}function j(g,...s){for(const c of s)for(const f in c)g[f]=c[f];return g}let L=1;function B(g,s,c){var f={};for(const y in g)f[y]=s.call(c||this,g[y],y,g);return f}function Q(g,s,c){var f={};for(const y in g)s.call(c||this,g[y],y,g)&&(f[y]=g[y]);return f}function Z(g){return Array.isArray(g)?g.map(Z):typeof g=="object"&&g?B(g,Z):g}function ie(g,s){for(let c=0;c<g.length;c++)if(0<=s.indexOf(g[c]))return 1}const J={};function ne(g){J[g]||(typeof console<"u"&&console.warn(g),J[g]=!0)}function ue(g,s,c){return(c.y-g.y)*(s.x-g.x)>(s.y-g.y)*(c.x-g.x)}function K(g){return typeof WorkerGlobalScope<"u"&&g!==void 0&&g instanceof WorkerGlobalScope}let se=null;function be(g){return typeof ImageBitmap<"u"&&g instanceof ImageBitmap}const de="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function ge(g,s,c,f,y){return o(this,void 0,void 0,function*(){if(typeof VideoFrame>"u")throw new Error("VideoFrame not supported");var w,x,k,D,q,Y,oe,ye,Ce,Pe=new VideoFrame(g,{timestamp:0});try{var Be=Pe==null?void 0:Pe.format;if(!Be||!Be.startsWith("BGR")&&!Be.startsWith("RGB"))throw new Error("Unrecognized format "+Be);var Ze=Be.startsWith("BGR"),Ge=new Uint8ClampedArray(f*y*4);if(yield Pe.copyTo(Ge,(w=g,x=s,k=c,D=f,q=y,Y=4*Math.max(-x,0),Y=(Math.max(0,k)-k)*D*4+Y,oe=4*D,ye=Math.max(0,x),Ce=Math.max(0,k),{rect:{x:ye,y:Ce,width:Math.min(w.width,x+D)-ye,height:Math.min(w.height,k+q)-Ce},layout:[{offset:Y,stride:oe}]})),Ze)for(let Le=0;Le<Ge.length;Le+=4){var Fe=Ge[Le];Ge[Le]=Ge[Le+2],Ge[Le+2]=Fe}return Ge}finally{Pe.close()}})}let Ue,Qe;function ve(g,s,c,f){return g.addEventListener(s,c,f),{unsubscribe:()=>{g.removeEventListener(s,c,f)}}}const pe="AbortError";function He(){return new Error(pe)}const Re={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};function $e(g){return Re.REGISTERED_PROTOCOLS[g.substring(0,g.indexOf("://"))]}
128const tt="global-dispatcher";class ot extends Error{constructor(s,c,f,y){super(`AJAXError: ${c} (${s}): `+f),this.status=s,this.statusText=c,this.url=f,this.body=y}}const qe=()=>K(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,lt=g=>/^file:/.test(g)||/^file:/.test(qe())&&!/^\w+:/.test(g);function Et(g,s){if(/:\/\//.test(g.url)&&!/^https?:|^file:/.test(g.url)){var c=$e(g.url);if(c)return c(g,s);if(K(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:g,targetMapId:tt},s)}if(!lt(g.url)){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return(function(w,x){return o(this,void 0,void 0,function*(){var k=new Request(w.url,{method:w.method||"GET",body:w.body,credentials:w.credentials,headers:w.headers,cache:w.cache,referrer:qe(),signal:x.signal}),k=(w.type==="json"&&k.headers.set("Accept","application/json"),yield fetch(k));if(!k.ok)throw D=yield k.blob(),new ot(k.status,k.statusText,w.url,D);var D=yield w.type==="arrayBuffer"||w.type==="image"?k.arrayBuffer():w.type==="json"?k.json():k.text();if(x.signal.aborted)throw He();return{data:D,cacheControl:k.headers.get("Cache-Control"),expires:k.headers.get("Expires")}})})(g,s);if(K(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:g,mustQueue:!0,targetMapId:tt},s)}return f=g,y=s,new Promise((w,x)=>{const k=new XMLHttpRequest;k.open(f.method||"GET",f.url,!0),f.type!=="arrayBuffer"&&f.type!=="image"||(k.responseType="arraybuffer");for(const D in f.headers)k.setRequestHeader(D,f.headers[D]);f.type==="json"&&(k.responseType="text",k.setRequestHeader("Accept","application/json")),k.withCredentials=f.credentials==="include",k.onerror=()=>{x(new Error(k.statusText))},k.onload=()=>{if(!y.signal.aborted)if((200<=k.status&&k.status<300||k.status===0)&&k.response!==null){let q=k.response;if(f.type==="json")try{q=JSON.parse(k.response)}catch(Y){return void x(Y)}w({data:q,cacheControl:k.getResponseHeader("Cache-Control"),expires:k.getResponseHeader("Expires")})}else{var D=new Blob([k.response],{type:k.getResponseHeader("Content-Type")});x(new ot(k.status,k.statusText,f.url,D))}},y.signal.addEventListener("abort",()=>{k.abort(),x(He())}),k.send(f.body)});var f,y}function Oe(g){var s;return!g||g.indexOf("://")<=0||g.indexOf("data:image/")===0||g.indexOf("blob:")===0||(g=new URL(g),s=window.location,g.protocol===s.protocol&&g.host===s.host)}function le(g,s,c){c[g]&&c[g].indexOf(s)!==-1||(c[g]=c[g]||[],c[g].push(s))}function re(g,s,c){c&&c[g]&&(s=c[g].indexOf(s))!==-1&&c[g].splice(s,1)}class te{constructor(s,c={}){j(this,c),this.type=s}}class me extends te{constructor(s,c={}){super("error",j({error:s},c))}}class Ae{on(s,c){return this._listeners=this._listeners||{},le(s,c,this._listeners),this}off(s,c){return re(s,c,this._listeners),re(s,c,this._oneTimeListeners),this}once(s,c){return c?(this._oneTimeListeners=this._oneTimeListeners||{},le(s,c,this._oneTimeListeners),this):new Promise(f=>this.once(s,f))}fire(s,c){var f=(s=typeof s=="string"?new te(s,c||{}):s).type;if(this.listens(f)){for(const y of(s.target=this)._listeners&&this._listeners[f]?this._listeners[f].slice():[])y.call(this,s);for(const y of this._oneTimeListeners&&this._oneTimeListeners[f]?this._oneTimeListeners[f].slice():[])re(f,y,this._oneTimeListeners),y.call(this,s);c=this._eventedParent,c&&(j(s,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),c.fire(s))}else s instanceof me&&console.error(s.error);return this}listens(s){return this._listeners&&this._listeners[s]&&0<this._listeners[s].length||this._oneTimeListeners&&this._oneTimeListeners[s]&&0<this._oneTimeListeners[s].length||this._eventedParent&&this._eventedParent.listens(s)}setEventedParent(s,c){return this._eventedParent=s,this._eventedParentData=c,this}}var _e={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"}
vendor: 3,543 bytes, line 128
128,bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},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:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,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:{}},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
vendor: 8,509 bytes, line 128
128","layout_background"],layout_background:{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"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"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",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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:{},"viewport-glyph":{},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"],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"]},"property-type":"data-constant"},"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-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}
vendor: 18,154 bytes, line 128
128,"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",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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_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},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}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],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:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-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:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-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"}},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:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},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:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-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"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};const 
128Ve=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function it(g,s){if(Array.isArray(g)){if(!Array.isArray(s)||g.length!==s.length)return;for(let c=0;c<g.length;c++)if(!it(g[c],s[c]))return;return 1}if(typeof g!="object"||g===null||s===null)return g===s;if(typeof s=="object"&&Object.keys(g).length===Object.keys(s).length){for(const c in g)if(!it(g[c],s[c]))return;return 1}}function vt(g,s){g.push(s)}function kt(g,s,c){vt(c,{command:"addSource",args:[g,s[g]]})}function rt(g,s,c){vt(s,{command:"removeSource",args:[g]}),c[g]=!0}function bt(g,s,c,f){s=s||{};let y;for(y in g=g||{})!Object.prototype.hasOwnProperty.call(g,y)||Object.prototype.hasOwnProperty.call(s,y)||rt(y,c,f);for(y in s)Object.prototype.hasOwnProperty.call(s,y)&&(Object.prototype.hasOwnProperty.call(g,y)?it(g[y],s[y])||(g[y].type==="geojson"&&s[y].type==="geojson"&&(function(D,q,Y){let oe;for(oe in D[Y])if(Object.prototype.hasOwnProperty.call(D[Y],oe)&&oe!=="data"&&!it(D[Y][oe],q[Y][oe]))return;for(oe in q[Y])if(Object.prototype.hasOwnProperty.call(q[Y],oe)&&oe!=="data"&&!it(D[Y][oe],q[Y][oe]))return;return 1})(g,s,y)?vt(c,{command:"setGeoJSONSourceData",args:[y,s[y].data]}):(w=y,x=s,rt(w,k=c,f),kt(w,x,k))):kt(y,s,c));var w,x,k}function Xe(g,s,c,f,y,w){s=s||{};for(const x in g=g||{})!Object.prototype.hasOwnProperty.call(g,x)||it(g[x],s[x])||c.push({command:w,args:[f,x,s[x],y]});for(const x in s)!Object.prototype.hasOwnProperty.call(s,x)||Object.prototype.hasOwnProperty.call(g,x)||it(g[x],s[x])||c.push({command:w,args:[f,x,s[x],y]})}function ct(g){return g.id}function Me(g,s){return g[s.id]=s,g}class X{constructor(s,c,f,y){this.message=(s?s+": ":"")+f,y&&(this.identifier=y),c!=null&&c.__line__&&(this.line=c.__line__)}}function z(g,...s){for(const c of s)for(const f in c)g[f]=c[f];return g}
128class W extends Error{constructor(s,c){super(c),this.message=c,this.key=s}}class Se{constructor(s,c=[]){this.parent=s,this.bindings={};for(var[f,y]of c)this.bindings[f]=y}concat(s){return new Se(this,s)}get(s){if(this.bindings[s])return this.bindings[s];if(this.parent)return this.parent.get(s);throw new Error(s+" not found in scope.")}has(s){return!!this.bindings[s]||!!this.parent&&this.parent.has(s)}}const Ke={kind:"null"},je={kind:"number"},We={kind:"string"},Pt={kind:"boolean"},Jt={kind:"color"},wr={kind:"object"},rr={kind:"value"},Nr={kind:"collator"},mt={kind:"formatted"},Mt={kind:"padding"},Te={kind:"resolvedImage"},fe={kind:"variableAnchorOffsetCollection"};function Ee(g,s){return{kind:"array",itemType:g,N:s}}function xe(g){var s;return g.kind==="array"?(s=xe(g.itemType),typeof g.N=="number"?`array<${s}, ${g.N}>`:g.itemType.kind==="value"?"array":`array<${s}>`):g.kind}const et=[Ke,je,We,Pt,Jt,mt,wr,Ee(rr),Mt,Te,fe];function gt(g,s){if(s.kind==="error")return null;if(g.kind==="array"){if(s.kind==="array"&&(s.N===0&&s.itemType.kind==="value"||!gt(g.itemType,s.itemType))&&(typeof g.N!="number"||g.N===s.N))return null}else{if(g.kind===s.kind)return null;if(g.kind==="value"){for(const c of et)if(!gt(c,s))return null}}return`Expected ${xe(g)} but found ${xe(s)} instead.`}function Rt(g,s){return s.some(c=>c.kind===g.kind)}function dt(g,s){return s.some(c=>c==="null"?g===null:c==="array"?Array.isArray(g):c==="object"?g&&!Array.isArray(g)&&typeof g=="object":c===typeof g)}function pt(g,s){return g.kind==="array"&&s.kind==="array"?g.itemType.kind===s.itemType.kind&&typeof g.N=="number":g.kind===s.kind}const wt=.96422,Yt=1,Vt=.82521,ar=4/29,kr=6/29,qr=3*kr*kr,Kr=kr*kr*kr,zn=Math.PI/180,Wn=180/Math.PI;function On(g){return(g%=360)<0&&(g+=360),g}function Mn([k,s,c,f]){let y,w;var x=rn((.2225045*(k=Yr(k))+.7168786*(s=Yr(s))+.0606169*(c=Yr(c)))/Yt),k=(k===s&&s===c?y=w=x:(y=rn((.4360747*k+.3850649*s+.1430804*c)/wt),w=rn((.0139322*k+.0971045*s+.7141733*c)/Vt)),116*x-16);return[k<0?0:k,500*(y-x),200*(x-w),f]}function Yr(g){return g<=.04045?g/12.92:Math.pow((g+.055)/1.055,2.4)}function rn(g){return g>Kr?Math.pow(g,1/3):g/qr+ar}function qn([g,s,c,f]){return g=(g+16)/116,s=isNaN(s)?g:g+s/500,c=isNaN(c)?g:g-c/200,g=Yt*mo(g),[ii(3.1338561*(s=wt*mo(s))-1.6168667*g-.4906146*(c=Vt*mo(c))),ii(-.9787684*s+1.9161415*g+.033454*c),ii(.0719453*s-.2289914*g+1.4052427*c),f]}function ii(g){return(g=g<=.00304?12.92*g:1.055*Math.pow(g,1/2.4)-.055)<0?0:1<g?1:g}function mo(g){return g>kr?g*g*g:qr*(g-ar)}function Nn(s){var[s,c,f,y]=Mn(s),w=Math.sqrt(c*c+f*f);return[Math.round(1e4*w)?On(Math.atan2(f,c)*Wn):NaN,w,s,y]}function Yi(g){if((g=g.toLowerCase().trim())==="transparent")return[0,0,0,0];var Pe=Ov[g];if(Pe)return[Pe,c,s]=Pe,[Pe/255,c/255,s/255,1];if(g.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(g))return Pe=g.length<6?1:2,[Rl(g.slice(c=1,c+=Pe)),Rl(g.slice(c,c+=Pe)),Rl(g.slice(c,c+=Pe)),Rl(g.slice(c,c+Pe)||"ff")];if(g.startsWith("rgb")){var s=g.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(s){var[,c,Pe,s,f,y,w,x,k,D,q,Y]=s,s=[s||" ",w||" ",D].join("");return(s==="  "||s==="  /"||s===",,"||s===",,,")&&(w=[Pe,y,k].join(""),D=w==="%%%"?100:w===""?255:0,D&&(s=[Yd(+c/D,0,1),Yd(+f/D,0,1),Yd(+x/D,0,1),q?kv(+q,Y):1],Ca(s)))?s:void 0}}var oe,ye,Ce,Pe=g.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(Pe){var[,y,k,w,c,f,x,D,q]=Pe,Y=[k||" ",c||" ",x].join("");if((Y==="  "||Y==="  /"||Y===",,"||Y===",,,")&&(s=[+y,Yd(+w,0,100),Yd(+f,0,100),D?kv(+D,q):1],Ca(s)))return[oe,ye,Ce,g]=[s][0],oe=On(oe),ye/=100,Ce/=100,[Be(0),Be(8),Be(4),g]}function Be(Ge){var Ge=(Ge+oe/30)%12,Fe=ye*Math.min(Ce,1-Ce);return Ce-Fe*Math.max(-1,Math.min(Ge-3,9-Ge,1))}}function Rl(g){return parseInt(g.padEnd(2,g),16)/255}function kv(g,s){return Yd(s?g/100:g,0,1)}function Yd(g,s,c){return Math.min(Math.max(s,g),c)}function Ca(g){return!g.some(Number.isNaN)}const Ov={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
128ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class Wi{constructor(s,c,f,y=1,w=!0){this.r=s,this.g=c,this.b=f,this.a=y,w||(this.r*=y,this.g*=y,this.b*=y,y)||this.overwriteGetter("rgb",[s,c,f,y])}static parse(s){return s instanceof Wi?s:typeof s=="string"&&(s=Yi(s))?new Wi(...s,!1):void 0}get rgb(){var{r:s,g:c,b:f,a:y}=this,w=y||1/0;return this.overwriteGetter("rgb",[s/w,c/w,f/w,y])}get hcl(){return this.overwriteGetter("hcl",Nn(this.rgb))}get lab(){return this.overwriteGetter("lab",Mn(this.rgb))}overwriteGetter(s,c){return Object.defineProperty(this,s,{value:c}),c}toString(){var[s,c,f,y]=this.rgb;return`rgba(${[s,c,f].map(w=>Math.round(255*w)).join(",")},${y})`}}Wi.black=new Wi(0,0,0,1),Wi.white=new Wi(1,1,1,1),Wi.transparent=new Wi(0,0,0,0),Wi.red=new Wi(1,0,0,1);class Xh{constructor(s,c,f){this.sensitivity=s?c?"variant":"case":c?"accent":"base",this.locale=f,this.collator=new Intl.Collator(this.locale||[],{sensitivity:this.sensitivity,usage:"search"})}compare(s,c){return this.collator.compare(s,c)}resolvedLocale(){return new Intl.Collator(this.locale||[]).resolvedOptions().locale}}class yg{constructor(s,c,f,y,w){this.text=s,this.image=c,this.scale=f,this.fontStack=y,this.textColor=w}}class Kl{constructor(s){this.sections=s}static fromString(s){return new Kl([new yg(s,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(s=>s.text.length!==0||s.image&&s.image.name.length!==0)}static factory(s){return s instanceof Kl?s:Kl.fromString(s)}toString(){return this.sections.length===0?"":this.sections.map(s=>s.text).join("")}}class us{constructor(s){this.values=s.slice()}static parse(s){if(s instanceof us)return s;if(typeof s=="number")return new us([s,s,s,s]);if(Array.isArray(s)&&!(s.length<1||4<s.length)){for(const c of s)if(typeof c!="number")return;switch(s.length){case 1:s=[s[0],s[0],s[0],s[0]];break;case 2:s=[s[0],s[1],s[0],s[1]];break;case 3:s=[s[0],s[1],s[2],s[1]]}return new us(s)}}toString(){return JSON.stringify(this.values)}}const ny=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class La{constructor(s){this.values=s.slice()}static parse(s){if(s instanceof La)return s;if(Array.isArray(s)&&!(s.length<1)&&s.length%2==0){for(let y=0;y<s.length;y+=2){var c=s[y],f=s[y+1];if(typeof c!="string"||!ny.has(c)||!Array.isArray(f)||f.length!==2||typeof f[0]!="number"||typeof f[1]!="number")return}return new La(s)}}toString(){return JSON.stringify(this.values)}}class Qc{constructor(s){this.name=s.name,this.available=s.available}toString(){return this.name}static fromString(s){return s?new Qc({name:s,available:!1}):null}}function Ic(g,s,c,f){return typeof g=="number"&&0<=g&&g<=255&&typeof s=="number"&&0<=s&&s<=255&&typeof c=="number"&&0<=c&&c<=255?f===void 0||typeof f=="number"&&0<=f&&f<=1?null:`Invalid rgba value [${[g,s,c,f].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof f=="number"?[g,s,c,f]:[g,s,c]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function up(g){if(g===null||typeof g=="string"||typeof g=="boolean"||typeof g=="number"||g instanceof Wi||g instanceof Xh||g instanceof Kl||g instanceof us||g instanceof La||g instanceof Qc)return 1;if(Array.isArray(g)){for(const s of g)if(!up(s))return;return 1}if(typeof g=="object"){for(const s in g)if(!up(g[s]))return;return 1}}function Ha(g){if(g===null)return Ke;if(typeof g=="string")return We;if(typeof g=="boolean")return Pt;if(typeof g=="number")return je;if(g instanceof Wi)return Jt;if(g instanceof Xh)return Nr;if(g instanceof Kl)return mt;if(g instanceof us)return Mt;if(g instanceof La)return fe;if(g instanceof Qc)return Te;if(Array.isArray(g)){var s=g.length;let f;for(const y of g){var c=Ha(y);if(f){if(f!==c){f=rr;break}}else f=c}return Ee(f||rr,s)}return wr}function Qh(g){var s=typeof g;
128return g===null?"":s=="string"||s=="number"||s=="boolean"?String(g):g instanceof Wi||g instanceof Kl||g instanceof us||g instanceof La||g instanceof Qc?g.toString():JSON.stringify(g)}class Ac{constructor(s,c){this.type=s,this.value=c}static parse(s,c){if(s.length!==2)return c.error(`'literal' expression requires exactly one argument, but found ${s.length-1} instead.`);if(!up(s[1]))return c.error("invalid value");s=s[1];let f=Ha(s);return c=c.expectedType,f.kind!=="array"||f.N!==0||!c||c.kind!=="array"||typeof c.N=="number"&&c.N!==0||(f=c),new Ac(f,s)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class _i{constructor(s){this.name="ExpressionEvaluationError",this.message=s}toJSON(){return this.message}}const Jc={string:We,number:je,boolean:Pt,object:wr};class ri{constructor(s,c){this.type=s,this.args=c}static parse(s,c){if(s.length<2)return c.error("Expected at least one argument.");let f=1,y;var w=s[0];if(w==="array"){let D;if(2<s.length){const Y=s[1];if(typeof Y!="string"||!(Y in Jc)||Y==="object")return c.error('The item type argument of "array" must be one of string, number, boolean',1);D=Jc[Y],f++}else D=rr;let q;if(3<s.length){if(s[2]!==null&&(typeof s[2]!="number"||s[2]<0||s[2]!==Math.floor(s[2])))return c.error('The length argument to "array" must be a positive integer literal',2);q=s[2],f++}y=Ee(D,q)}else{if(!Jc[w])throw new Error("Types doesn't contain name = "+w);y=Jc[w]}for(var x=[];f<s.length;f++){var k=c.parse(s[f],f,rr);if(!k)return null;x.push(k)}return new ri(y,x)}evaluate(s){for(let f=0;f<this.args.length;f++){var c=this.args[f].evaluate(s);if(!gt(this.type,Ha(c)))return c;if(f===this.args.length-1)throw new _i(`Expected value to be of type ${xe(this.type)}, but found ${xe(Ha(c))} instead.`)}throw new Error}eachChild(s){this.args.forEach(s)}outputDefined(){return this.args.every(s=>s.outputDefined())}}const iy={"to-boolean":Pt,"to-color":Jt,"to-number":je,"to-string":We};class Wd{constructor(s,c){this.type=s,this.args=c}static parse(s,c){if(s.length<2)return c.error("Expected at least one argument.");var f=s[0];if(!iy[f])throw new Error(`Can't parse ${f} as it is not part of the known types`);if((f==="to-boolean"||f==="to-string")&&s.length!==2)return c.error("Expected one argument.");var f=iy[f],y=[];for(let x=1;x<s.length;x++){var w=c.parse(s[x],x,rr);if(!w)return null;y.push(w)}return new Wd(f,y)}evaluate(s){switch(this.type.kind){case"boolean":return!!this.args[0].evaluate(s);case"color":{let x,k;for(const D of this.args){if(x=D.evaluate(s),k=null,x instanceof Wi)return x;if(typeof x=="string"){var c=s.parseColor(x);if(c)return c}else if(Array.isArray(x)&&!(k=x.length<3||4<x.length?`Invalid rbga value ${JSON.stringify(x)}: expected an array containing either three or four numeric values.`:Ic(x[0],x[1],x[2],x[3])))return new Wi(x[0]/255,x[1]/255,x[2]/255,x[3])}throw new _i(k||`Could not parse color from value '${typeof x=="string"?x:JSON.stringify(x)}'`)}case"padding":{let x;for(const k of this.args){x=k.evaluate(s);var f=us.parse(x);if(f)return f}throw new _i(`Could not parse padding from value '${typeof x=="string"?x:JSON.stringify(x)}'`)}case"variableAnchorOffsetCollection":{let x;for(const k of this.args){x=k.evaluate(s);var y=La.parse(x);if(y)return y}throw new _i(`Could not parse variableAnchorOffsetCollection from value '${typeof x=="string"?x:JSON.stringify(x)}'`)}case"number":{let x=null;for(const k of this.args){if((x=k.evaluate(s))===null)return 0;var w=Number(x);if(!isNaN(w))return w}throw new _i(`Could not convert ${JSON.stringify(x)} to number.`)}case"formatted":return Kl.fromString(Qh(this.args[0].evaluate(s)));case"resolvedImage":return Qc.fromString(Qh(this.args[0].evaluate(s)));default:return Qh(this.args[0].evaluate(s))}}eachChild(s){this.args.forEach(s)}outputDefined(){return this.args.every(s=>s.outputDefined())}}const oy=["Unknown","Point","LineString","Polygon"];class Mv{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?oy[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||{}}parseColor(s){let c=this._parseColorCache[s];return c=c||(this._parseColorCache[s]=Wi.parse(s))}}class Jh{constructor(s,c,f=[],y,w=new Se,x=[]){this.registry=s,this.path=f,this.key=f.map(k=>`[${k}]`).join(""),this.scope=w,this.errors=x,this.expectedType=y,this._isConstant=c}parse(s,c,f,y,w={}){return(c?this.concat(c,f,y):this)._parse(s,w)}_parse(s,c){function f(k,D,q){return q==="assert"?new ri(D,[k]):q==="coerce"?new Wd(D,[k]):k}
128if(s!==null&&typeof s!="string"&&typeof s!="boolean"&&typeof s!="number"||(s=["literal",s]),Array.isArray(s)){if(s.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var y=s[0];if(typeof y!="string")return this.error(`Expression name must be a string, but found ${typeof y} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;var w=this.registry[y];if(w){let k=w.parse(s,this);if(!k)return null;if(this.expectedType){var w=this.expectedType,x=k.type;if(w.kind!=="string"&&w.kind!=="number"&&w.kind!=="boolean"&&w.kind!=="object"&&w.kind!=="array"||x.kind!=="value")if(w.kind!=="color"&&w.kind!=="formatted"&&w.kind!=="resolvedImage"||x.kind!=="value"&&x.kind!=="string")if(w.kind!=="padding"||x.kind!=="value"&&x.kind!=="number"&&x.kind!=="array")if(w.kind!=="variableAnchorOffsetCollection"||x.kind!=="value"&&x.kind!=="array"){if(this.checkSubtype(w,x))return null}else k=f(k,w,c.typeAnnotation||"coerce");else k=f(k,w,c.typeAnnotation||"coerce");else k=f(k,w,c.typeAnnotation||"coerce");else k=f(k,w,c.typeAnnotation||"assert")}if(!(k instanceof Ac)&&k.type.kind!=="resolvedImage"&&this._isConstant(k)){x=new Mv;try{k=new Ac(k.type,k.evaluate(x))}catch(D){return this.error(D.message),null}}return k}return this.error(`Unknown expression "${y}". If you wanted a literal array, use ["literal", [...]].`,0)}return s===void 0?this.error("'undefined' value invalid. Use null instead."):typeof s=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof s} instead.`)}concat(s,c,f){return s=typeof s=="number"?this.path.concat(s):this.path,f=f?this.scope.concat(f):this.scope,new Jh(this.registry,this._isConstant,s,c||null,f,this.errors)}error(s,...c){c=""+this.key+c.map(f=>`[${f}]`).join(""),this.errors.push(new W(c,s))}checkSubtype(s,c){return s=gt(s,c),s&&this.error(s),s}}class Pu{constructor(s,c,f){this.type=Nr,this.locale=f,this.caseSensitive=s,this.diacriticSensitive=c}static parse(s,c){if(s.length!==2)return c.error("Expected one argument.");if(s=s[1],typeof s!="object"||Array.isArray(s))return c.error("Collator options argument must be an object.");var f=c.parse(s["case-sensitive"]!==void 0&&s["case-sensitive"],1,Pt);if(!f)return null;var y=c.parse(s["diacritic-sensitive"]!==void 0&&s["diacritic-sensitive"],1,Pt);if(!y)return null;let w=null;return s.locale&&!(w=c.parse(s.locale,1,We))?null:new Pu(f,y,w)}evaluate(s){return new Xh(this.caseSensitive.evaluate(s),this.diacriticSensitive.evaluate(s),this.locale?this.locale.evaluate(s):null)}eachChild(s){s(this.caseSensitive),s(this.diacriticSensitive),this.locale&&s(this.locale)}outputDefined(){return!1}}const ef=8192;function dp(g,s){g[0]=Math.min(g[0],s[0]),g[1]=Math.min(g[1],s[1]),g[2]=Math.max(g[2],s[0]),g[3]=Math.max(g[3],s[1])}function Ni(g,s){return!(g[0]<=s[0]||g[2]>=s[2]||g[1]<=s[1]||g[3]>=s[3])}function Nv(f,y){var c=(180+f[0])/360,f=(f=f[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+f*Math.PI/360)))/360),y=Math.pow(2,y.z);return[Math.round(c*y*ef),Math.round(f*y*ef)]}function Kd(g,s){let c=!1;for(let q=0,Y=s.length;q<Y;q++){var f=s[q];for(let oe=0,ye=f.length;oe<ye-1;oe++){if(y=g,w=f[oe],x=f[oe+1],D=k=void 0,k=y[0]-w[0],w=y[1]-w[1],D=y[0]-x[0],y=y[1]-x[1],k*y-D*w==0&&k*D<=0&&w*y<=0)return;x=g,k=f[oe],D=f[oe+1],k[1]>x[1]!=D[1]>x[1]&&x[0]<(D[0]-k[0])*(x[1]-k[1])/(D[1]-k[1])+k[0]&&(c=!c)}}var y,w,x,k,D;return c}function ay(y,x,q,D){var Y=y[0]-q[0],y=y[1]-q[1],w=x[0]-q[0],x=x[1]-q[1],k=D[0]-q[0],D=D[1]-q[1],q=Y*D-k*y,Y=w*D-k*x;return 0<q&&Y<0||q<0&&0<Y}function R_(g,s,c){for(const q of c)for(let Y=0;Y<q.length-1;++Y)if(f=g,y=s,w=q[Y],x=q[Y+1],D=k=void 0,k=[y[0]-f[0],y[1]-f[1]],(D=[x[0]-w[0],x[1]-w[1]])[0]*k[1]-D[1]*k[0]!=0&&!(!ay(f,y,w,x)||!ay(w,x,f,y)))return 1;var f,y,w,x,k,D}function Dv(g,s){for(let c=0;c<g.length;++c)if(!Kd(g[c],s))return;for(let c=0;c<g.length-1;++c)if(R_(g[c],g[c+1],s))return;return 1}function vg(g,s,c){var f=[];for(let x=0;x<g.length;x++){var y=[];for(let k=0;k<g[x].length;k++){var w=Nv(g[x][k],c);dp(s,w),y.push(w)}f.push(y)}return f}function sy(g,s,c){var f=[];for(let w=0;w<g.length;w++){var y=vg(g[w],s,c);f.push(y)}return f}function _g(g,s,c,f){if(g[0]<c[0]||g[0]>c[2]){var y=.5*f;let w=g[0]-c[0]>y?-f:c[0]-g[0]>y?f:0;w===0&&(w=g[0]-c[2]>y?-f:c[2]-g[0]>y?f:0),g[0]+=w}dp(s,g)}function fd(g,s,c,f){var y=Math.pow(2,f.z)*ef,w=[f.x*ef,f.y*ef],x=[];for(const D of g)for(const q of D){var k=[q.x+w[0],q.y+w[1]];_g(k,s,c,y),x.push(k)}return x}function ku(g,s,c,f){var y=Math.pow(2,f.z)*ef,w=[f.x*ef,f.y*ef],x=[];for(const q of g){var k=[];for(const Y of q){var D=[Y.x+w[0],Y.y+w[1]];dp(s,D),k.push(D)}x.push(k)}if(s[2]-s[0]<=y/2){(f=s)[0]=f[1]=1/0,f[2]=f[3]=-1/0;for(const q of x)for(const Y of q)_g(Y,s,c,y)}return x}
128function Zd(g,s){var c=[1/0,1/0,-1/0,-1/0],f=[1/0,1/0,-1/0,-1/0],y=g.canonicalID();if(s.type==="Polygon"){var w=vg(s.coordinates,f,y),x=fd(g.geometry(),c,f,y);if(!Ni(c,f))return!1;for(const D of x)if(!Kd(D,w))return!1}if(s.type==="MultiPolygon"){var k=sy(s.coordinates,f,y),x=fd(g.geometry(),c,f,y);if(!Ni(c,f))return!1;for(const q of x)if(!(function(Y,oe){for(let ye=0;ye<oe.length;ye++)if(Kd(Y,oe[ye]))return 1})(q,k))return!1}return!0}function bg(g,s){var c=[1/0,1/0,-1/0,-1/0],f=[1/0,1/0,-1/0,-1/0],y=g.canonicalID();if(s.type==="Polygon"){var w=vg(s.coordinates,f,y),x=ku(g.geometry(),c,f,y);if(!Ni(c,f))return!1;for(const D of x)if(!Dv(D,w))return!1}if(s.type==="MultiPolygon"){var k=sy(s.coordinates,f,y),x=ku(g.geometry(),c,f,y);if(!Ni(c,f))return!1;for(const q of x)if(!(function(Y,oe){for(let ye=0;ye<oe.length;ye++)if(Dv(Y,oe[ye]))return 1})(q,k))return!1}return!0}class eu{constructor(s,c){this.type=Pt,this.geojson=s,this.geometries=c}static parse(s,c){if(s.length!==2)return c.error(`'within' expression requires exactly one argument, but found ${s.length-1} instead.`);if(up(s[1])){if(s=s[1],s.type==="FeatureCollection"){var f=[];for(const k of s.features){var{type:y,coordinates:w}=k.geometry;y==="Polygon"&&f.push(w),y==="MultiPolygon"&&f.push(...w)}if(f.length)return x={type:"MultiPolygon",coordinates:f},new eu(s,x)}else if(s.type==="Feature"){var x=s.geometry.type;if(x==="Polygon"||x==="MultiPolygon")return new eu(s,s.geometry)}else if(s.type==="Polygon"||s.type==="MultiPolygon")return new eu(s,s)}return c.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(s){if(s.geometry()!=null&&s.canonicalID()!=null){if(s.geometryType()==="Point")return Zd(s,this.geometries);if(s.geometryType()==="LineString")return bg(s,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}class tu{constructor(s,c){this.type=c.type,this.name=s,this.boundExpression=c}static parse(s,c){return s.length!==2||typeof s[1]!="string"?c.error("'var' expression requires exactly one string literal argument."):(s=s[1],c.scope.has(s)?new tu(s,c.scope.get(s)):c.error(`Unknown variable "${s}". Make sure "${s}" has been bound in an enclosing "let" expression before using it.`,1))}evaluate(s){return this.boundExpression.evaluate(s)}eachChild(){}outputDefined(){return!1}}class Rc{constructor(s,c,f,y){this.name=s,this.type=c,this._evaluate=f,this.args=y}evaluate(s){return this._evaluate(s,this.args)}eachChild(s){this.args.forEach(s)}outputDefined(){return!1}static parse(s,c){var f=s[0],k=Rc.definitions[f];if(!k)return c.error(`Unknown expression "${f}". If you wanted a literal array, use ["literal", [...]].`,0);var y,w,x=Array.isArray(k)?k[0]:k.type,k=Array.isArray(k)?[[k[1],k[2]]]:k.overloads,D=k.filter(([Ge])=>!Array.isArray(Ge)||Ge.length===s.length-1);let q=null;for([y,w]of D){q=new Jh(c.registry,tf,c.path,null,c.scope);var Y=[];let Ge=!1;for(let Fe=1;Fe<s.length;Fe++){var ye=s[Fe],oe=Array.isArray(y)?y[Fe-1]:y.type,ye=q.parse(ye,1+Y.length,oe);if(!ye){Ge=!0;break}Y.push(ye)}if(!Ge)if(Array.isArray(y)&&y.length!==Y.length)q.error(`Expected ${y.length} arguments, but found ${Y.length} instead.`);else{for(let Fe=0;Fe<Y.length;Fe++){var Ce=Array.isArray(y)?y[Fe]:y.type,Pe=Y[Fe];q.concat(Fe+1).checkSubtype(Ce,Pe.type)}if(q.errors.length===0)return new Rc(f,x,w,Y)}}if(D.length===1)c.errors.push(...q.errors);else{var D=(D.length?D:k).map(([Fe])=>Hb(Fe)).join(" | "),Be=[];for(let Fe=1;Fe<s.length;Fe++){var Ze=c.parse(s[Fe],1+Be.length);if(!Ze)return null;Be.push(xe(Ze.type))}c.error(`Expected arguments of type ${D}, but found (${Be.join(", ")}) instead.`)}return null}static register(s,c){for(const f in Rc.definitions=c)s[f]=Rc}}function Hb(g){return Array.isArray(g)?`(${g.map(xe).join(", ")})`:`(${xe(g.type)}...)`}function tf(g){if(g instanceof tu)return tf(g.boundExpression);if(g instanceof Rc&&g.name==="error"||g instanceof Pu||g instanceof eu)return!1;const s=g instanceof Wd||g instanceof ri;let c=!0;return g.eachChild(f=>{c=s?c&&tf(f):c&&f instanceof Ac}),!!c&&wg(g)&&hp(g,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function wg(g){if(g instanceof Rc&&(g.name==="get"&&g.args.length===1||g.name==="feature-state"||g.name==="has"&&g.args.length===1||g.name==="properties"||g.name==="geometry-type"||g.name==="id"||/^filter-/.test(g.name))||g instanceof eu)return!1;let s=!0;return g.eachChild(c=>
vendor: 5,472 bytes, line 128
128{s&&!wg(c)&&(s=!1)}),s}function Eg(g){if(!(g instanceof Rc&&g.name==="feature-state")){let s=!0;return g.eachChild(c=>{s&&!Eg(c)&&(s=!1)}),s}}function hp(g,s){if(g instanceof Rc&&0<=s.indexOf(g.name))return!1;let c=!0;return g.eachChild(f=>{c&&!hp(f,s)&&(c=!1)}),c}function ly(g,s){var c=g.length-1;let f=0,y=c;for(var w,x,k;f<=y;)if(x=g[w=Math.floor((f+y)/2)],k=g[w+1],x<=s){if(w===c||s<k)return w;f=w+1}else{if(!(s<x))throw new _i("Input is not a number.");y=w-1}return 0}class fp{constructor(s,c,f){this.type=s,this.input=c,this.labels=[],this.outputs=[];for(var[y,w]of f)this.labels.push(y),this.outputs.push(w)}static parse(s,c){if(s.length-1<4)return c.error(`Expected at least 4 arguments, but found only ${s.length-1}.`);if((s.length-1)%2!=0)return c.error("Expected an even number of arguments.");var f=c.parse(s[1],1,je);if(!f)return null;var y=[];let w=null;c.expectedType&&c.expectedType.kind!=="value"&&(w=c.expectedType);for(let Y=1;Y<s.length;Y+=2){var x=Y===1?-1/0:s[Y],k=s[Y+1],D=Y,q=Y+1;if(typeof x!="number")return c.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',D);if(y.length&&y[y.length-1][0]>=x)return c.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',D);if(D=c.parse(k,q,w),!D)return null;w=w||D.type,y.push([x,D])}return new fp(w,f,y)}evaluate(s){var c,f,y=this.labels,w=this.outputs;return(y.length===1||(c=this.input.evaluate(s))<=y[0]?w[0]:c>=y[(f=y.length)-1]?w[f-1]:w[ly(y,c)]).evaluate(s)}eachChild(s){s(this.input);for(const c of this.outputs)s(c)}outputDefined(){return this.outputs.every(s=>s.outputDefined())}}function rf(g){return g&&g.__esModule&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g}var ru=hn;function hn(g,s,c,f){this.cx=3*g,this.bx=3*(c-g)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*s,this.by=3*(f-s)-this.cy,this.ay=1-this.cy-this.by,this.p1x=g,this.p1y=s,this.p2x=c,this.p2y=f}hn.prototype={sampleCurveX:function(g){return((this.ax*g+this.bx)*g+this.cx)*g},sampleCurveY:function(g){return((this.ay*g+this.by)*g+this.cy)*g},sampleCurveDerivativeX:function(g){return(3*this.ax*g+2*this.bx)*g+this.cx},solveCurveX:function(g,s){if(s===void 0&&(s=1e-6),g<0)return 0;if(1<g)return 1;for(var c=g,f=0;f<8;f++){var y=this.sampleCurveX(c)-g;if(Math.abs(y)<s)return c;var w=this.sampleCurveDerivativeX(c);if(Math.abs(w)<1e-6)break;c-=y/w}for(var x=0,k=1,c=g,f=0;f<20&&(y=this.sampleCurveX(c),!(Math.abs(y-g)<s));f++)y<g?x=c:k=c,c=.5*(k-x)+x;return c},solve:function(g,s){return this.sampleCurveY(this.solveCurveX(g,s))}};var so=rf(ru);function pd(g,s,c){return g+c*(s-g)}function Lv(g,s,c){return g.map((f,y)=>pd(f,s[y],c))}const Pc={number:pd,color:function(g,s,c,f="rgb"){switch(f){case"rgb":var[y,w,Y,x]=Lv(g.rgb,s.rgb,c);return new Wi(y,w,Y,x,!1);case"hcl":{var[y,w,Y,x]=g.hcl,[D,q,oe,k]=s.hcl;let Ze,Ge;if(isNaN(y)||isNaN(D))isNaN(y)?isNaN(D)?Ze=NaN:(Ze=D,Y!==1&&Y!==0||(Ge=q)):(Ze=y,oe!==1&&oe!==0||(Ge=w));else{let ht=D-y;y<D&&180<ht?ht-=360:D<y&&180<y-D&&(ht+=360),Ze=y+c*ht}[D,y,w,q]=[[Ze,Ge??pd(w,q,c),pd(Y,oe,c),pd(x,k,c)]][0],D=isNaN(D)?0:D*zn;var[Y,oe,x,k]=qn([w,Math.cos(D)*y,Math.sin(D)*y,q]);return new Wi(Y,oe,x,k,!1)}case"lab":var[D,q,Y,oe]=qn(Lv(g.lab,s.lab,c));return new Wi(D,q,Y,oe,!1)}},array:Lv,padding:function(g,s,c){return new us(Lv(g.values,s.values,c))},variableAnchorOffsetCollection:function(g,s,c){var f=g.values,y=s.values;if(f.length!==y.length)throw new _i(`Cannot interpolate values of different length. from: ${g.toString()}, to: `+s.toString());var w=[];for(let Y=0;Y<f.length;Y+=2){if(f[Y]!==y[Y])throw new _i(`Cannot interpolate values containing mismatched anchors. from[${Y}]: ${f[Y]}, to[${Y}]: `+y[Y]);w.push(f[Y]);var[x,k]=f[Y+1],[D,q]=y[Y+1];w.push([pd(x,D,c),pd(k,q,c)])}return new La(w)}};class Pl{constructor(s,c,f,y,w){this.type=s,this.operator=c,this.interpolation=f,this.input=y,this.labels=[],this.outputs=[];for(var[x,k]of w)this.labels.push(x),this.outputs.push(k)}static interpolationFactor(s,c,f,y){let w=0;return s.name==="exponential"?w=Cg(c,s.base,f,y):s.name==="linear"?w=Cg(c,1,f,y):s.name==="cubic-bezier"&&(s=s.controlPoints,s=new so(s[0],s[1],s[2],s[3]),w=s.solve(Cg(c,1,f,y))),w}static parse(s,c){let[f,y,w,...x]=s;if(!Array.isArray(y)||y.length===0)return c.error("Expected an interpolation type expression.",1);if(y[0]==="linear")y={name:"linear"};else if(y[0]==="exponential"){var k=y[1];if(typeof k!="number")return c.error("Exponential interpolation requires a numeric base.",1,1);y={name:"exponential",base:k}}else{if(y[0]!=="cubic-bezier")return c.error("Unknown interpolation type "+String(y[0]),1,0);if(k=y.slice(1),k.length!==4||k.some(Pe=>typeof Pe!="number"||Pe<0||1<Pe))return c.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);y={name:"cubic-bezier",controlPoints:k}}if(s.length-1<4)return c.error(`Expected at least 4 arguments, but found only ${s.length-1}.`);if((s.length-1)%2!=0)return c.error("Expected an even number of arguments.");if(!(w=c.parse(w,2,je)))return null;var D=[];let q=null;f==="interpolate-hcl"||f==="interpolate-lab"?q=Jt:c.expectedType&&c.expectedType.kind!=="value"&&(q=c.expectedType);for(let Pe=0;Pe<x.length;Pe+=2){var Y=x[Pe],oe=x[Pe+1],ye=Pe+3,Ce=Pe+4;if(typeof Y!="number")return c.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not c
128omputed expressions) for the input values.',ye);if(D.length&&D[D.length-1][0]>=Y)return c.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',ye);if(ye=c.parse(oe,Ce,q),!ye)return null;q=q||ye.type,D.push([Y,ye])}return pt(q,je)||pt(q,Jt)||pt(q,Mt)||pt(q,fe)||pt(q,Ee(je))?new Pl(q,f,y,w,D):c.error(`Type ${xe(q)} is not interpolatable.`)}evaluate(s){var x=this.labels,c=this.outputs;if(x.length===1)return c[0].evaluate(s);var f=this.input.evaluate(s);if(f<=x[0])return c[0].evaluate(s);var y=x.length;if(f>=x[y-1])return c[y-1].evaluate(s);var y=ly(x,f),w=x[y],x=x[y+1],k=Pl.interpolationFactor(this.interpolation,f,w,x),D=c[y].evaluate(s),q=c[y+1].evaluate(s);switch(this.operator){case"interpolate":return Pc[this.type.kind](D,q,k);case"interpolate-hcl":return Pc.color(D,q,k,"hcl");case"interpolate-lab":return Pc.color(D,q,k,"lab")}}eachChild(s){s(this.input);for(const c of this.outputs)s(c)}outputDefined(){return this.outputs.every(s=>s.outputDefined())}}function Cg(g,s,c,f){return f-=c,g-=c,f==0?0:s===1?g/f:(Math.pow(s,g)-1)/(Math.pow(s,f)-1)}class pp{constructor(s,c){this.type=s,this.args=c}static parse(s,c){if(s.length<2)return c.error("Expectected at least one argument.");let f=null;const y=c.expectedType;y&&y.kind!=="value"&&(f=y);var w=[];for(const k of s.slice(1)){var x=c.parse(k,1+w.length,f,void 0,{typeAnnotation:"omit"});if(!x)return null;f=f||x.type,w.push(x)}if(f)return y&&w.some(k=>gt(y,k.type))?new pp(rr,w):new pp(f,w);throw new Error("No output type")}evaluate(s){let c=null,f=0,y;for(const w of this.args)if(f++,(c=(c=w.evaluate(s))&&c instanceof Qc&&!c.available&&(y=y||c.name,c=null,f===this.args.length)?y:c)!==null)break;return c}eachChild(s){this.args.forEach(s)}outputDefined(){return this.args.every(s=>s.outputDefined())}}class xg{constructor(s,c){this.type=c.type,this.bindings=[].concat(s),this.result=c}evaluate(s){return this.result.evaluate(s)}eachChild(s){for(const c of this.bindings)s(c[1]);s(this.result)}static parse(s,c){if(s.length<4)return c.error(`Expected at least 3 arguments, but found ${s.length-1} instead.`);var f=[];for(let k=1;k<s.length-1;k+=2){var y=s[k];if(typeof y!="string")return c.error(`Expected string, but found ${typeof y} instead.`,k);if(/[^a-zA-Z0-9_]/.test(y))return c.error("Variable names must contain only alphanumeric characters or '_'.",k);var w=c.parse(s[k+1],k+1);if(!w)return null;f.push([y,w])}var x=c.parse(s[s.length-1],s.length-1,c.expectedType,f);return x?new xg(f,x):null}outputDefined(){return this.result.outputDefined()}}function Xd(g,s){return g==="=="||g==="!="?s.kind==="boolean"||s.kind==="string"||s.kind==="number"||s.kind==="null"||s.kind==="value":s.kind==="string"||s.kind==="number"||s.kind==="value"}function Ka(g,s,c,f){return f.compare(s,c)===0}function Ou(g,s,c){const f=g!=="=="&&g!=="!=";return class Sve{constructor(w,x,k){this.type=Pt,this.lhs=w,this.rhs=x,this.collator=k,this.hasUntypedArgument=w.type.kind==="value"||x.type.kind==="value"}static parse(w,x){if(w.length!==3&&w.length!==4)return x.error("Expected two or three arguments.");var k=w[0];let D=x.parse(w[1],1,rr);if(!D)return null;if(!Xd(k,D.type))return x.concat(1).error(`"${k}" comparisons are not supported for type '${xe(D.type)}'.`);let q=x.parse(w[2],2,rr);if(!q)return null;if(!Xd(k,q.type))return x.concat(2).error(`"${k}" comparisons are not supported for type '${xe(q.type)}'.`);if(D.type.kind!==q.type.kind&&D.type.kind!=="value"&&q.type.kind!=="value")return x.error(`Cannot compare types '${xe(D.type)}' and '${xe(q.type)}'.`);f&&(D.type.kind==="value"&&q.type.kind!=="value"?D=new ri(q.type,[D]):D.type.kind!=="value"&&q.type.kind==="value"&&(q=new ri(D.type,[q])));let Y=null;if(w.length===4){if(D.type.kind!=="string"&&q.type.kind!=="string"&&D.type.kind!=="value"&&q.type.kind!=="value")return x.error("Cannot use collator to compare non-string types.");if(!(Y=x.parse(w[3],3,Nr)))return null}return new Sve(D,q,Y)}evaluate(w){var x=this.lhs.evaluate(w),k=this.rhs.evaluate(w);if(f&&this.hasUntypedArgument){var D=Ha(x),q=Ha(k);
vendor: 4,339 bytes, line 128
128if(D.kind!==q.kind||D.kind!=="string"&&D.kind!=="number")throw new _i(`Expected arguments for "${g}" to be (string, string) or (number, number), but found (${D.kind}, ${q.kind}) instead.`)}return this.collator&&!f&&this.hasUntypedArgument&&(D=Ha(x),q=Ha(k),D.kind!=="string"||q.kind!=="string")?s(w,x,k):this.collator?c(w,x,k,this.collator.evaluate(w)):s(w,x,k)}eachChild(w){w(this.lhs),w(this.rhs),this.collator&&w(this.collator)}outputDefined(){return!0}}}var ru=Ou("==",function(g,s,c){return s===c},Ka),Lo=Ou("!=",function(g,s,c){return s!==c},function(g,s,c,f){return!Ka(0,s,c,f)}),Xa=Ou("<",function(g,s,c){return s<c},function(g,s,c,f){return f.compare(s,c)<0}),Qd=Ou(">",function(g,s,c){return c<s},function(g,s,c,f){return 0<f.compare(s,c)}),Zl=Ou("<=",function(g,s,c){return s<=c},function(g,s,c,f){return f.compare(s,c)<=0}),ho=Ou(">=",function(g,s,c){return c<=s},function(g,s,c,f){return 0<=f.compare(s,c)});class al{constructor(s){this.type=mt,this.sections=s}static parse(s,c){if(s.length<2)return c.error("Expected at least one argument.");var f=s[1];if(!Array.isArray(f)&&typeof f=="object")return c.error("First argument must be an image or text section.");var y=[];let w=!1;for(let D=1;D<=s.length-1;++D){var x=s[D];if(w&&typeof x=="object"&&!Array.isArray(x)){w=!1;let q=null;if(x["font-scale"]&&!(q=c.parse(x["font-scale"],1,je)))return null;let Y=null;if(x["text-font"]&&!(Y=c.parse(x["text-font"],1,Ee(We))))return null;let oe=null;if(x["text-color"]&&!(oe=c.parse(x["text-color"],1,Jt)))return null;x=y[y.length-1],x.scale=q,x.font=Y,x.textColor=oe}else{if(x=c.parse(s[D],1,rr),!x)return null;var k=x.type.kind;if(k!=="string"&&k!=="value"&&k!=="null"&&k!=="resolvedImage")return c.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");w=!0,y.push({content:x,scale:null,font:null,textColor:null})}}return new al(y)}evaluate(s){return new Kl(this.sections.map(c=>{var f=c.content.evaluate(s);return Ha(f)===Te?new yg("",f,null,null,null):new yg(Qh(f),null,c.scale?c.scale.evaluate(s):null,c.font?c.font.evaluate(s).join(","):null,c.textColor?c.textColor.evaluate(s):null)}))}eachChild(s){for(const c of this.sections)s(c.content),c.scale&&s(c.scale),c.font&&s(c.font),c.textColor&&s(c.textColor)}outputDefined(){return!1}}const ds={"==":ru,"!=":Lo,">":Qd,"<":Xa,">=":ho,"<=":Zl,array:ri,at:class Ive{constructor(s,c,f){this.type=s,this.index=c,this.input=f}static parse(s,c){var f;return s.length!==3?c.error(`Expected 2 arguments, but found ${s.length-1} instead.`):(f=c.parse(s[1],1,je),s=c.parse(s[2],2,Ee(c.expectedType||rr)),f&&s?(c=s.type,new Ive(c.itemType,f,s)):null)}evaluate(f){var c=this.index.evaluate(f),f=this.input.evaluate(f);if(c<0)throw new _i(`Array index out of bounds: ${c} < 0.`);if(c>=f.length)throw new _i(`Array index out of bounds: ${c} > ${f.length-1}.`);if(c!==Math.floor(c))throw new _i(`Array index must be an integer, but found ${c} instead.`);return f[c]}eachChild(s){s(this.index),s(this.input)}outputDefined(){return!1}},boolean:ri,case:class Ave{constructor(s,c,f){this.type=s,this.branches=c,this.otherwise=f}static parse(s,c){if(s.length<4)return c.error(`Expected at least 3 arguments, but found only ${s.length-1}.`);if(s.length%2!=0)return c.error("Expected an odd number of arguments.");let f;c.expectedType&&c.expectedType.kind!=="value"&&(f=c.expectedType);var y=[];for(let D=1;D<s.length-1;D+=2){var w=c.parse(s[D],D,Pt);if(!w)return null;var x=c.parse(s[D+1],D+1,f);if(!x)return null;y.push([w,x]),f=f||x.type}var k=c.parse(s[s.length-1],s.length-1,f);if(!k)return null;if(f)return new Ave(f,y,k);throw new Error("Can't infer output type")}evaluate(s){for(var[c,f]of this.branches)if(c.evaluate(s))return f.evaluate(s);return this.otherwise.evaluate(s)}eachChild(s){for(var[c,f]of this.branches)s(c),s(f);s(this.otherwise)}outputDefined(){return this.branches.every(([,s])=>s.outputDefined())&&this.otherwise.outputDefined()}},coalesce:pp,collator:Pu,format:al,image:class Rve{constructor(s){this.type=Te,this.input=s}static parse(s,c){return s.length!==2?c.error("Expected two arguments."):(s=c.parse(s[1],1,We))?new Rve(s):c.error("No image name provided.")}evaluate(s){var c=this.input.evaluate(s),f=Qc.fromString(c);return f&&s.availableImages&&(f.available=-1<s.availableImages.indexOf(c)),f}eachChild(s){s(this.input)}outputDefined(){return!1}}
128,in:class Pve{constructor(s,c){this.type=Pt,this.needle=s,this.haystack=c}static parse(s,c){var f;return s.length!==3?c.error(`Expected 2 arguments, but found ${s.length-1} instead.`):(f=c.parse(s[1],1,rr),s=c.parse(s[2],2,rr),f&&s?Rt(f.type,[Pt,We,je,Ke,rr])?new Pve(f,s):c.error(`Expected first argument to be of type boolean, string, number or null, but found ${xe(f.type)} instead`):null)}evaluate(s){var c=this.needle.evaluate(s);if(!(s=this.haystack.evaluate(s)))return!1;if(!dt(c,["boolean","string","number","null"]))throw new _i(`Expected first argument to be of type boolean, string, number or null, but found ${xe(Ha(c))} instead.`);if(dt(s,["string","array"]))return 0<=s.indexOf(c);throw new _i(`Expected second argument to be of type array or string, but found ${xe(Ha(s))} instead.`)}eachChild(s){s(this.needle),s(this.haystack)}outputDefined(){return!0}},"index-of":class eG{constructor(s,c,f){this.type=je,this.needle=s,this.haystack=c,this.fromIndex=f}static parse(s,c){var f,y;return s.length<=2||5<=s.length?c.error(`Expected 3 or 4 arguments, but found ${s.length-1} instead.`):(f=c.parse(s[1],1,rr),y=c.parse(s[2],2,rr),f&&y?Rt(f.type,[Pt,We,je,Ke,rr])?s.length===4?(s=c.parse(s[3],3,je))?new eG(f,y,s):null:new eG(f,y):c.error(`Expected first argument to be of type boolean, string, number or null, but found ${xe(f.type)} instead`):null)}evaluate(s){var c=this.needle.evaluate(s),f=this.haystack.evaluate(s);if(!dt(c,["boolean","string","number","null"]))throw new _i(`Expected first argument to be of type boolean, string, number or null, but found ${xe(Ha(c))} instead.`);if(dt(f,["string","array"]))return this.fromIndex?(s=this.fromIndex.evaluate(s),f.indexOf(c,s)):f.indexOf(c);throw new _i(`Expected second argument to be of type array or string, but found ${xe(Ha(f))} instead.`)}eachChild(s){s(this.needle),s(this.haystack),this.fromIndex&&s(this.fromIndex)}outputDefined(){return!1}},interpolate:Pl,"interpolate-hcl":Pl,"interpolate-lab":Pl,length:class kve{constructor(s){this.type=je,this.input=s}static parse(s,c){return s.length!==2?c.error(`Expected 1 argument, but found ${s.length-1} instead.`):(s=c.parse(s[1],1))?s.type.kind!=="array"&&s.type.kind!=="string"&&s.type.kind!=="value"?c.error(`Expected argument of type string or array, but found ${xe(s.type)} instead.`):new kve(s):null}evaluate(s){if(typeof(s=this.input.evaluate(s))=="string"||Array.isArray(s))return s.length;throw new _i(`Expected value to be of type string or array, but found ${xe(Ha(s))} instead.`)}eachChild(s){s(this.input)}outputDefined(){return!1}},let:xg,literal:Ac,match:class Ove{constructor(s,c,f,y,w,x){this.inputType=s,this.type=c,this.input=f,this.cases=y,this.outputs=w,this.otherwise=x}static parse(s,c){if(s.length<5)return c.error(`Expected at least 4 arguments, but found only ${s.length-1}.`);if(s.length%2!=1)return c.error("Expected an even number of arguments.");let f,y;c.expectedType&&c.expectedType.kind!=="value"&&(y=c.expectedType);var w={},x=[];for(let oe=2;oe<s.length-1;oe+=2){let ye=s[oe];var k=s[oe+1],D=(Array.isArray(ye)||(ye=[ye]),c.concat(oe));if(ye.length===0)return D.error("Expected at least one branch label.");for(const Ce of ye){if(typeof Ce!="number"&&typeof Ce!="string")return D.error("Branch labels must be numbers or strings.");if(typeof Ce=="number"&&Math.abs(Ce)>Number.MAX_SAFE_INTEGER)return D.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof Ce=="number"&&Math.floor(Ce)!==Ce)return D.error("Numeric branch labels must be integer values.");if(f){if(D.checkSubtype(f,Ha(Ce)))return null}else f=Ha(Ce);if(w[String(Ce)]!==void 0)return D.error("Branch labels must be unique.");w[String(Ce)]=x.length}if(!(k=c.parse(k,oe,y)))return null;y=y||k.type,x.push(k)}var q,Y=c.parse(s[1],1,rr);return!Y||!(q=c.parse(s[s.length-1],s.length-1,y))||Y.type.kind!=="value"&&c.concat(1).checkSubtype(f,Y.type)?null:new Ove(f,y,Y,w,x,q)}evaluate(s){var c=this.input.evaluate(s);return(Ha(c)===this.inputType&&this.outputs[this.cases[c]]||this.otherwise).evaluate(s)}
128eachChild(s){s(this.input),this.outputs.forEach(s),s(this.otherwise)}outputDefined(){return this.outputs.every(s=>s.outputDefined())&&this.otherwise.outputDefined()}},number:ri,"number-format":class Mve{constructor(s,c,f,y,w){this.type=We,this.number=s,this.locale=c,this.currency=f,this.minFractionDigits=y,this.maxFractionDigits=w}static parse(s,c){if(s.length!==3)return c.error("Expected two arguments.");var f=c.parse(s[1],1,je);if(!f)return null;if(typeof(s=s[2])!="object"||Array.isArray(s))return c.error("NumberFormat options argument must be an object.");let y=null;if(s.locale&&!(y=c.parse(s.locale,1,We)))return null;let w=null;if(s.currency&&!(w=c.parse(s.currency,1,We)))return null;let x=null;if(s["min-fraction-digits"]&&!(x=c.parse(s["min-fraction-digits"],1,je)))return null;let k=null;return s["max-fraction-digits"]&&!(k=c.parse(s["max-fraction-digits"],1,je))?null:new Mve(f,y,w,x,k)}evaluate(s){return new Intl.NumberFormat(this.locale?this.locale.evaluate(s):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(s):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(s):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(s):void 0}).format(this.number.evaluate(s))}eachChild(s){s(this.number),this.locale&&s(this.locale),this.currency&&s(this.currency),this.minFractionDigits&&s(this.minFractionDigits),this.maxFractionDigits&&s(this.maxFractionDigits)}outputDefined(){return!1}},object:ri,slice:class tG{constructor(s,c,f,y){this.type=s,this.input=c,this.beginIndex=f,this.endIndex=y}static parse(s,c){var f,y;return s.length<=2||5<=s.length?c.error(`Expected 3 or 4 arguments, but found ${s.length-1} instead.`):(f=c.parse(s[1],1,rr),y=c.parse(s[2],2,je),f&&y?Rt(f.type,[Ee(rr),We,rr])?s.length===4?(s=c.parse(s[3],3,je))?new tG(f.type,f,y,s):null:new tG(f.type,f,y):c.error(`Expected first argument to be of type array or string, but found ${xe(f.type)} instead`):null)}evaluate(s){var c=this.input.evaluate(s),f=this.beginIndex.evaluate(s);if(dt(c,["string","array"]))return this.endIndex?(s=this.endIndex.evaluate(s),c.slice(f,s)):c.slice(f);throw new _i(`Expected first argument to be of type array or string, but found ${xe(Ha(c))} instead.`)}eachChild(s){s(this.input),s(this.beginIndex),this.endIndex&&s(this.endIndex)}outputDefined(){return!1}},step:fp,string:ri,"to-boolean":Wd,"to-color":Wd,"to-number":Wd,"to-string":Wd,var:tu,within:eu};function nf(g,[s,c,f,y]){if(s=s.evaluate(g),c=c.evaluate(g),f=f.evaluate(g),y=y?y.evaluate(g):1,g=Ic(s,c,f,y),g)throw new _i(g);return new Wi(s/255,c/255,f/255,y,!1)}function Tg(g,s){return s=s[g],s===void 0?null:s}function nu(g){return{type:g}}function Hv(g){return{result:"success",value:g}}function Jd(g){return{result:"error",value:g}}function Za(g){return g["property-type"]==="data-driven"||g["property-type"]==="cross-faded-data-driven"}function Sg(g){return g.expression&&-1<g.expression.parameters.indexOf("zoom")}function Ss(g){return g.expression&&g.expression.interpolated}function Di(g){return g instanceof Number?"number":g instanceof String?"string":g instanceof Boolean?"boolean":Array.isArray(g)?"array":g===null?"null":typeof g}function cy(g){return typeof g=="object"&&g!==null&&!Array.isArray(g)}function of(g){return g}function uy(g,s){var c=s.type==="color",f=g.stops&&typeof g.stops[0][0]=="object",y=f||g.property!==void 0,y=f||!y,w=g.type||(Ss(s)?"exponential":"interval");if(c||s.type==="padding"){const Ce=(c?Wi:us).parse;(g=z({},g)).stops&&(g.stops=g.stops.map(Pe=>[Pe[0],Ce(Pe[1])])),g.default?g.default=Ce(g.default):g.default=Ce(s.default)}if(g.colorSpace&&(c=g.colorSpace)!=="rgb"&&c!=="hcl"&&c!=="lab")throw new Error(`Unknown color space: "${g.colorSpace}"`);let x,k,D;if(w==="exponential")x=Ig;else if(w==="interval")x=af;else if(w==="categorical"){x=la,k=Object.create(null);for(const Ce of g.stops)k[Ce[0]]=Ce[1];D=typeof g.stops[0][0]}else{if(w!=="identity")throw new Error(`Unknown function type "${w}"`);x=_C}if(f){var q={},Y=[];for(let Pe=0;Pe<g.stops.length;Pe++){var oe=g.stops[Pe],ye=oe[0].zoom;q[ye]===void 0&&(q[ye]={zoom:ye,type:g.type,property:g.property,default:g.default,stops:[]},Y.push(ye)),q[ye].stops.push([oe[0].value,oe[1]])}const Ce=[];for(const Pe of Y)Ce.push([q[Pe].zoom,uy(q[Pe],s)]);return c={name:"linear"},{kind:"composite",interpolationType:c,interpolationFactor:Pl.interpolationFactor.bind(void 0,c),zoomStops:Ce.map(Pe=>Pe[0]),evaluate({zoom:Pe},Be){return Ig({stops:Ce,base:g.base},s,Pe).evaluate(Pe,Be)}}}return y?{kind:"camera",interpolationType:f=w==="exponential"?{name:"exponential",base:g.base!==void 0?g.base:1}:null,interpolationFactor:Pl.interpolationFactor.bind(void 0,f),zoomStops:g.stops.map(Ce=>Ce[0]),evaluate:({zoom:Ce})=>x(g,s,Ce,k,D)}:{kind:"source",evaluate(Ce,Pe){return Pe=Pe&&Pe.properties?Pe.properties[g.property]:void 0,Pe===void 0?eh(g.default,s.default):x(g,s,Pe,k,D)}}}function eh(g,s,c){return g!==void 0?g:s!==void 0?s:c!==void 0?c:void 0}function la(g,s,c,f,y){return eh(typeof c===y?f[c]:void 0,g.default,s.default)}function af(g,s,c){return Di(c)!=="number"?eh(g.default,s.default):((s=g.stops.length)===1||c<=g.stops[0][0]?g.stops[0]:c>=g.stops[s-1][0]?g.stops[s-1]:(s=ly(g.stops.map(f=>f[0]),c),g.stops[s]))[1]}function Ig(g,s,c){var f=g.base!==void 0?g.base:1;if(Di(c)!=="number")return eh(g.default,s.default);var y=g.stops.length;if(y===1||c<=g.stops[0][0])return g.stops[0][1];if(c>=g.stops[y-1][0])return g.stops[y-1][1];y=ly(g.stops.map(q=>q[0]),c);const w=(function(q,Y,oe,ye){return ye-=oe,q-=oe,ye==0?0:Y===1?q/ye:(Math.pow(Y,q)-1)/(Math.pow(Y,ye)-1)})(c,f,g.stops[y][0],g.stops[y+1][0]),x=g.stops[y][1],k=g.stops[y+1][1],D=Pc[s.type]||of;return typeof x.evaluate=="function"?{evaluate(...oe){var Y=x.evaluate.apply(void 0,oe),oe=k.evaluate.apply(void 0,oe);if(Y!==void 0&&oe!==void 0)return D(Y,oe,w,g.colorSpace)}}:D(x,k,w,g.colorSpace)}function _C(g,s,c){switch(s.type){case"color":c=Wi.parse(c);break;case"formatted":c=Kl.fromString(c.toString());break;case"resolvedImage":c=Qc.fromString(c.toString());break;case"padding":c=us.parse(c);break;default:Di(c)===s.type||s.type==="enum"&&s.values[c]||(c=void 0)}return eh(c,g.default,s.default)}Rc.register(ds,{error:[{kind:"error"},[We],(g,[s])=>{throw new _i(s.evaluate(g))}],typeof:[We,[rr],(g,[s])=>xe(Ha(s.evaluate(g)))],"to-rgba":[Ee(je,4),[Jt],(f,[c])=>{var[c,f,y,w]=c.evaluate(f).rgb;return[255*c,255*f,255*y,w]}],rgb:[Jt,[je,je,je],nf],rgba:[Jt,[je,je,je,je],nf],has:{type:Pt,overloads:[[[We],(g,[s])=>s.evaluate(g)in g.properties()],[[We,wr],(g,[s,c])=>s.evaluate(g)in c.evaluate(g)]]},get:{type:rr,overloads:[[[We],(g,[s])=>Tg(s.evaluate(g),g.properties())],[[We,wr],(g,[s,c])=>Tg(s.evaluate(g),c.evaluate(g))]]},"feature-state":[rr,[We],(g,[s])=>Tg(s.evaluate(g),g.featureState||{})],properties:[wr,[],g=>g.properties()],"geometry-type":[We,[],g=>g.geometryType()],id:[rr,[],g=>g.id()],zoom:[je,[],g=>g.globals.zoom],"heatmap-density":[je,[],g=>g.globals.heatmapDensity||0],"line-progress":[je,[],g=>g.globals.lineProgress||0],accumulated:[rr,[],g=>g.globals.accumulated===void 0?null:g.globals.accumulated],"+":[je,nu(je),(g,s)=>{let c=0;for(const f of s)c+=f.evaluate(g);return c}],"*":[je,nu(je),(g,s)=>{let c=1;for(const f of s)c*=f.evaluate(g);return c}],"-":{type:je,overloads:[[[je,je],(g,[s,c])=>s.evaluate(g)-c.evaluate(g)],[[je],(g,[s])=>-s.evaluate(g)]]},"/":[je,[je,je],(g,[s,c])=>s.evaluate(g)/c.evaluate(g)],"%":[je,[je,je],(g,[s,c])=>s.evaluate(g)%c.evaluate(g)],ln2:[je,[],()=>Math.LN2],pi:[je,[],()=>Math.PI],e:[je,[],()=>Math.E],"^":[je,[je,je],(g,[s,c])=>Math.pow(s.evaluate(g),c.evaluate(g))],sqrt:[je,[je],(g,[s])=>Math.sqrt(s.evaluate(g))],log10:[je,[je],(g,[s])=>Math.log(s.evaluate(g))/Math.LN10],ln:[je,[je],(g,[s])=>Math.log(s.evaluate(g))],log2:[je,[je],(g,[s])=>Math.log(s.evaluate(g))/Math.LN2],sin:[je,[je],(g,[s])=>Math.sin(s.evaluate(g))],cos:[je,[je],(g,[s])=>Math.cos(s.evaluate(g))],tan:[je,[je],(g,[s])=>Math.tan(s.evaluate(g))],asin:[je,[je],(g,[s])=>Math.asin(s.evaluate(g))],acos:[je,[je],(g,[s])=>Math.acos(s.evaluate(g))],atan:[je,[je],(g,[s])=>Math.atan(s.evaluate(g))],min:[je,nu(je),(g,s)=>Math.min(...s.map(c=>c.evaluate(g)))],max:[je,nu(je),(g,s)=>Math.max(...s.map(c=>c.evaluate(g)))],abs:[je,[je],(g,[s])=>Math.abs(s.evaluate(g))],round:[je,[je],(g,[s])=>(s=s.evaluate(g),s<0?-Math.round(-s):Math.round(s))],floor:[je,[je],(g,[s])=>Math.floor(s.evaluate(g))],ceil:[je,[je],(g,[s])=>Math.ceil(s.evaluate(g))],"filter-==":[Pt,[We,rr],(g,[s,c])=>g.properties()[s.value]===c.value],"filter-id-==":[Pt,[rr],(g,[s])=>g.id()===s.value],"filter-type-==":[Pt,[We],(g,[s])=>g.geometryType()===s.value],"filter-<":[Pt,[We,rr],(g,[s,c])=>(g=g.properties()[s.value],s=c.value,typeof g==typeof s&&g<s)],"filter-id-<":[Pt,[rr],(g,[s])=>(g=g.id(),s=s.value,typeof g==typeof s&&g<s)],"filter->":[Pt,[We,rr],(g,[s,c])=>(g=g.properties()[s.value],s=c.value,typeof g==typeof s&&s<g)],"filter-id->":[Pt,[rr],(g,[s])=>(g=g.id(),s=s.value,typeof g==typeof s&&s<g)],"filter-<=":[Pt,[We,rr],(g,[s,c])=>(g=g.properties()[s.value],s=c.value,typeof g==typeof s&&g<=s)],"filter-id-<=":[Pt,[rr],(g,[s])=>(g=g.id(),s=s.value,typeof g==typeof s&&g<=s)],"filter->=":[Pt,[We,rr],(g,[s,c])=>(g=g.properties()[s.value],s=c.value,typeof g==typeof s&&s<=g)],"filter-id->=":[Pt,[rr],(g,[s])=>(g=g.id(),s=s.value,typeof g==typeof s&&s<=g)],"filter-has":[Pt,[rr],(g,[s])=>s.value in g.properties()],"filter-has-id":[Pt,[],g=>g.id()!==null&&g.id()!==void 0],"filter-type-in":[Pt,[Ee(We)],(g,[s])=>0<=s.value.indexOf(g.geometryType())],"filter-id-in":[Pt,[Ee(rr)],(g,[s])=>0<=s.value.indexOf(g.id())],"filter-in-small":[Pt,[We,Ee(rr)],(g,[s,c])=>0<=c.value.indexOf(g.properties()[s.value])],"filter-in-large":[Pt,[We,Ee(rr)],(g,[s,c])=>{for(var f=g.properties()[s.value],y=c.value,w=0,x=c.value.length-1;w<=x;){var k=w+x>>1;
128if(y[k]===f)return!0;y[k]>f?x=k-1:w=1+k}return!1}],all:{type:Pt,overloads:[[[Pt,Pt],(g,[s,c])=>s.evaluate(g)&&c.evaluate(g)],[nu(Pt),(g,s)=>{for(const c of s)if(!c.evaluate(g))return!1;return!0}]]},any:{type:Pt,overloads:[[[Pt,Pt],(g,[s,c])=>s.evaluate(g)||c.evaluate(g)],[nu(Pt),(g,s)=>{for(const c of s)if(c.evaluate(g))return!0;return!1}]]},"!":[Pt,[Pt],(g,[s])=>!s.evaluate(g)],"is-supported-script":[Pt,[We],(g,[s])=>{var c=g.globals&&g.globals.isSupportedScript;return!c||c(s.evaluate(g))}],upcase:[We,[We],(g,[s])=>s.evaluate(g).toUpperCase()],downcase:[We,[We],(g,[s])=>s.evaluate(g).toLowerCase()],concat:[We,nu(rr),(g,s)=>s.map(c=>Qh(c.evaluate(g))).join("")],"resolved-locale":[We,[Nr],(g,[s])=>s.evaluate(g).resolvedLocale()]});class dy{constructor(s,c){this.expression=s,this._warningHistory={},this._evaluator=new Mv,this._defaultValue=c?P_(c):null,this._enumValues=c&&c.type==="enum"?c.values:null}evaluateWithoutErrorHandling(s,c,f,y,w,x){return this._evaluator.globals=s,this._evaluator.feature=c,this._evaluator.featureState=f,this._evaluator.canonical=y,this._evaluator.availableImages=w||null,this._evaluator.formattedSection=x,this.expression.evaluate(this._evaluator)}evaluate(s,c,f,y,w,x){this._evaluator.globals=s,this._evaluator.feature=c||null,this._evaluator.featureState=f||null,this._evaluator.canonical=y,this._evaluator.availableImages=w||null,this._evaluator.formattedSection=x||null;try{var k=this.expression.evaluate(this._evaluator);if(k==null||typeof k=="number"&&k!=k)return this._defaultValue;if(!this._enumValues||k in this._enumValues)return k;throw new _i(`Expected value to be one of ${Object.keys(this._enumValues).map(D=>JSON.stringify(D)).join(", ")}, but found ${JSON.stringify(k)} instead.`)}catch(D){return this._warningHistory[D.message]||(this._warningHistory[D.message]=!0,typeof console<"u"&&console.warn(D.message)),this._defaultValue}}}function hy(g){return Array.isArray(g)&&0<g.length&&typeof g[0]=="string"&&g[0]in ds}function Fv(g,s){var c=new Jh(ds,tf,[],s?(f=s,c={color:Jt,string:We,number:je,enum:We,boolean:Pt,formatted:mt,padding:Mt,resolvedImage:Te,variableAnchorOffsetCollection:fe},f.type!=="array"?c[f.type]:Ee(c[f.value]||rr,f.length)):void 0),f=c.parse(g,void 0,void 0,void 0,s&&s.type==="string"?{typeAnnotation:"coerce"}:void 0);return f?Hv(new dy(f,s)):Jd(c.errors)}class ca{constructor(s,c){this.kind=s,this._styleExpression=c,this.isStateDependent=s!=="constant"&&!Eg(c.expression)}evaluateWithoutErrorHandling(s,c,f,y,w,x){return this._styleExpression.evaluateWithoutErrorHandling(s,c,f,y,w,x)}evaluate(s,c,f,y,w,x){return this._styleExpression.evaluate(s,c,f,y,w,x)}}class fy{constructor(s,c,f,y){this.kind=s,this.zoomStops=f,this._styleExpression=c,this.isStateDependent=s!=="camera"&&!Eg(c.expression),this.interpolationType=y}evaluateWithoutErrorHandling(s,c,f,y,w,x){return this._styleExpression.evaluateWithoutErrorHandling(s,c,f,y,w,x)}evaluate(s,c,f,y,w,x){return this._styleExpression.evaluate(s,c,f,y,w,x)}interpolationFactor(s,c,f){return this.interpolationType?Pl.interpolationFactor(this.interpolationType,s,c,f):0}}function fi(g){return g._styleExpression!==void 0}function Qi(w,s){var c,f,y,w=Fv(w,s);return w.result==="error"?w:(c=wg(f=w.value.expression))||Za(s)?(y=hp(f,["zoom"]))||Sg(s)?(f=(function x(k){let D=null;if(k instanceof xg)D=x(k.result);else if(k instanceof pp){for(const q of k.args)if(D=x(q))break}else(k instanceof fp||k instanceof Pl)&&k.input instanceof Rc&&k.input.name==="zoom"&&(D=k);return D instanceof W||k.eachChild(q=>{const Y=x(q);Y instanceof W?D=Y:!D&&Y?D=new W("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):D&&Y&&D!==Y&&(D=new W("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),D})(f))||y?f instanceof W?Jd([f]):f instanceof Pl&&!Ss(s)?Jd([new W("",'"interpolate" expressions cannot be used with this property')]):f?(y=f instanceof Pl?f.interpolation:void 0,Hv(c?new fy("camera",w.value,f.labels,y):new fy("composite",w.value,f.labels,y))):Hv(c?new ca("constant",w.value):new ca("source",w.value)):Jd([new W("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]):Jd([new W("","zoom expressions not supported")]):Jd([new W("","data expressions not supported")])}class Mo{constructor(s,c){this._parameters=s,this._specification=c,z(this,uy(this._parameters,this._specification))}static deserialize(s){return new Mo(s._parameters,s._specification)}static serialize(s){return{_parameters:s._parameters,_specification:s._specification}}}function py(g,s){if(cy(g))return new Mo(g,s);if(hy(g)){var c=Qi(g,s);if(c.result==="error")throw new Error(c.value.map(f=>f.key+": "+f.message).join(", "));return c.value}{let f=g;return s.type==="color"&&typeof g=="string"?f=Wi.parse(g):s.type!=="padding"||typeof g!="number"&&!Array.isArray(g)?s.type==="variableAnchorOffsetCollection"&&Array.isArray(g)&&(f=La.parse(g)):f=us.parse(g),{kind:"constant",evaluate:()=>f}}}function P_(g){return g.type==="color"&&cy(g.default)?new Wi(0,0,0,0):g.type==="color"?Wi.parse(g.default)||null:g.type==="padding"?us.parse(g.default)||null:g.type==="variableAnchorOffsetCollection"?La.parse(g.default)||null:g.default===void 0?null:g.default}function Ag(g){if(g===!0||g===!1)return 1;if(Array.isArray(g)&&g.length!==0)switch(g[0]){case"has":return 2<=g.length&&g[1]!=="$id"&&g[1]!=="$type";
128case"in":return 3<=g.length&&(typeof g[1]!="string"||Array.isArray(g[2]));case"!in":case"!has":case"none":return;case"==":case"!=":case">":case">=":case"<":case"<=":return g.length!==3||Array.isArray(g[1])||Array.isArray(g[2]);case"any":case"all":for(const s of g.slice(1))if(!Ag(s)&&typeof s!="boolean")return;return 1;default:return 1}}const k_={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function gy(g){if(g==null)return{filter:()=>!0,needGeometry:!1};const s=Fv(g=Ag(g)?g:Rg(g),k_);if(s.result==="error")throw new Error(s.value.map(c=>c.key+": "+c.message).join(", "));return{filter:(c,f,y)=>s.value.evaluate(c,f,{},y),needGeometry:(function c(f){if(!Array.isArray(f))return!1;if(f[0]==="within")return!0;for(let y=1;y<f.length;y++)if(c(f[y]))return!0;return!1})(g)}}function Fb(g,s){return g<s?-1:s<g?1:0}function Rg(g){var s,c;return!g||(s=g[0],g.length<=1?s!=="any":s==="=="?my(g[1],g[2],"=="):s==="!="?Is(my(g[1],g[2],"==")):s==="<"||s===">"||s==="<="||s===">="?my(g[1],g[2],s):s==="any"?(c=g.slice(1),["any"].concat(c.map(Rg))):s==="all"?["all"].concat(g.slice(1).map(Rg)):s==="none"?["all"].concat(g.slice(1).map(Rg).map(Is)):s==="in"?Ub(g[1],g.slice(2)):s==="!in"?Is(Ub(g[1],g.slice(2))):s==="has"?Uv(g[1]):s==="!has"?Is(Uv(g[1])):s!=="within"||g)}function my(g,s,c){switch(g){case"$type":return["filter-type-"+c,s];case"$id":return["filter-id-"+c,s];default:return["filter-"+c,g,s]}}function Ub(g,s){if(s.length===0)return!1;switch(g){case"$type":return["filter-type-in",["literal",s]];case"$id":return["filter-id-in",["literal",s]];default:return 200<s.length&&!s.some(c=>typeof c!=typeof s[0])?["filter-in-large",g,["literal",s.sort(Fb)]]:["filter-in-small",g,["literal",s]]}}function Uv(g){switch(g){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",g]}}function Is(g){return["!",g]}function sf(g){let s="";for(const c of Ve)s+="/"+(function f(y){var w=typeof y;if(w=="number"||w=="boolean"||w=="string"||y==null)return JSON.stringify(y);if(Array.isArray(y)){let D="[";for(const q of y)D+=f(q)+",";return D+"]"}var x=Object.keys(y).sort();let k="{";for(let D=0;D<x.length;D++)k+=`${JSON.stringify(x[D])}:${f(y[x[D]])},`;return k+"}"})(g[c]);return s}function Pg(c){var s=c.key,c=c.value;return c?[new X(s,c,"constants have been deprecated as of v8")]:[]}function Ko(g){return g instanceof Number||g instanceof String||g instanceof Boolean?g.valueOf():g}function th(g){if(Array.isArray(g))return g.map(th);if(g instanceof Object&&!(g instanceof Number||g instanceof String||g instanceof Boolean)){var s={};for(const c in g)s[c]=th(g[c]);return s}return Ko(g)}function kc(g){var s=g.key,c=g.value,f=g.valueSpec||{},y=g.objectElementValidators||{},w=g.style,x=g.styleSpec,k=g.validateSpec;let D=[];if(g=Di(c),g!=="object")return[new X(s,c,`object expected, ${g} found`)];for(const oe in c){var q=oe.split(".")[0],Y=f[q]||f["*"];let ye;if(y[q])ye=y[q];else if(f[q])ye=k;else if(y["*"])ye=y["*"];else{if(!f["*"]){D.push(new X(s,c[oe],`unknown property "${oe}"`));continue}ye=k}D=D.concat(ye({key:(s&&s+".")+oe,value:c[oe],valueSpec:Y,style:w,styleSpec:x,object:c,objectKey:oe,validateSpec:k},c))}for(const oe in f)y[oe]||f[oe].required&&f[oe].default===void 0&&c[oe]===void 0&&D.push(new X(s,c,`missing required property "${oe}"`));return D}function Bv(g){var s=g.value,c=g.valueSpec,f=g.validateSpec,y=g.style,w=g.styleSpec,x=g.key,k=g.arrayElementValidator||f;if(Di(s)!=="array")return[new X(x,s,`array expected, ${Di(s)} found`)];if(c.length&&s.length!==c.length)return[new X(x,s,`array length ${c.length} expected, length ${s.length} found`)];if(c["min-length"]&&s.length<c["min-length"])return[new X(x,s,`array length at least ${c["min-length"]} expected, length ${s.length} found`)];let D={type:c.value,values:c.values},q=(w.$version<7&&(D.function=c.function),Di(c.value)==="object"&&(D=c.value),[]);for(let Y=0;Y<s.length;Y++)q=q.concat(k({array:s,arrayIndex:Y,value:s[Y],valueSpec:D,validateSpec:g.validateSpec,style:y,styleSpec:w,key:`${x}[${Y}]`}));return q}function $v(f){var s=f.key,c=f.value,f=f.valueSpec;let y=Di(c);return(y=y==="number"&&c!=c?"NaN":y)!=="number"?[new X(s,c,`number expected, ${y} found`)]:"minimum"in f&&c<f.minimum?[new X(s,c,c+" is less than the minimum value "+f.minimum)]:"maximum"in f&&c>f.maximum?[new X(s,c,c+" is greater than the maximum value "+f.maximum)]:[]}function gp(g){const s=g.valueSpec,c=Ko(g.value.type);let f,y={},w,x;var k=c!=="categorical"&&g.value.property===void 0,D=!k;const q=Di(g.value.stops)==="array"&&Di(g.value.stops[0])==="array"&&Di(g.value.stops[0][0])==="object";var Y=kc({key:g.key,value:g.value,valueSpec:g.styleSpec.function,validateSpec:g.validateSpec,style:g.style,styleSpec:g.styleSpec,objectElementValidators:{stops:function(Ce){if(c==="identity")return[new X(Ce.key,Ce.value,'identity function may not have a "stops" property')];let Pe=[];var Be=Ce.value;return Pe=Pe.concat(Bv({key:Ce.key,value:Be,valueSpec:Ce.valueSpec,validateSpec:Ce.validateSpec,style:Ce.style,styleSpec:Ce.styleSpec,arrayElementValidator:oe})),Di(Be)==="array"&&Be.length===0&&Pe.push(new X(Ce.key,Be,"array must have at least one stop")),Pe},default:function(Ce){return Ce.validateSpec({key:Ce.key,value:Ce.value,valueSpec:s,validateSpec:Ce.validateSpec,style:Ce.style,styleSpec:Ce.styleSpec})}}});return c==="identity"&&k&&Y.push(new X(g.key,g.value,'missing required property "property"')),c==="identity"||g.value.stops||Y.push(new X(g.key,g.value,'missing required property "stops"')),c==="exponential"&&g.valueSpec.expression&&!Ss(g.valueSpec)&&Y.push(new X(g.key,g.value,"exponential functions not supported")),8<=g.styleSpec.$version&&(D&&!Za(g.valueSpec)?Y.push(new X(g.key,g.value,"property functions not supported")):k&&!Sg(g.valueSpec)&&Y.push(new X(g.key,g.value,"zoom functions not supported"))),c!=="categorical"&&!q||g.value.property!==void 0||Y.push(new X(g.key,g.value,'"property" property is required')),Y;function oe(Ce){let Pe=[];var Be=Ce.value,Ze=Ce.key;if(Di(Be)!=="array")return[new X(Ze,Be,`array expected, ${Di(Be)} found`)];if(Be.length!==2)return[new X(Ze,Be,`array length 2 expected, length ${Be.length} found`)];if(q){if(Di(Be[0])!=="object")return[new X(Ze,Be,`object expected, ${Di(Be[0])} found`)];if(Be[0].zoom===void 0)return[new X(Ze,Be,"object stop key must have zoom")];if(Be[0].value===void 0)return[new X(Ze,Be,"object stop key must have value")];if(x&&x>Ko(Be[0].zoom))return[new X(Ze,Be[0].zoom,"stop zoom values must appear in ascending order")];Ko(Be[0].zoom)!==x&&(x=Ko(Be[0].zoom),w=void 0,y={}
128),Pe=Pe.concat(kc({key:Ze+"[0]",value:Be[0],valueSpec:{zoom:{}},validateSpec:Ce.validateSpec,style:Ce.style,styleSpec:Ce.styleSpec,objectElementValidators:{zoom:$v,value:ye}}))}else Pe=Pe.concat(ye({key:Ze+"[0]",value:Be[0],validateSpec:Ce.validateSpec,style:Ce.style,styleSpec:Ce.styleSpec},Be));return hy(th(Be[1]))?Pe.concat([new X(Ze+"[1]",Be[1],"expressions are not allowed in function stops.")]):Pe.concat(Ce.validateSpec({key:Ze+"[1]",value:Be[1],valueSpec:s,validateSpec:Ce.validateSpec,style:Ce.style,styleSpec:Ce.styleSpec}))}function ye(Ce,Ge){var Be=Di(Ce.value),Ze=Ko(Ce.value),Ge=Ce.value!==null?Ce.value:Ge;if(f){if(Be!==f)return[new X(Ce.key,Ge,Be+" stop domain type must match previous stop domain type "+f)]}else f=Be;if(Be!=="number"&&Be!=="string"&&Be!=="boolean")return[new X(Ce.key,Ge,"stop domain value must be a number, string, or boolean")];if(Be==="number"||c==="categorical")return c!=="categorical"||Be!=="number"||isFinite(Ze)&&Math.floor(Ze)===Ze?c!=="categorical"&&Be==="number"&&w!==void 0&&Ze<w?[new X(Ce.key,Ge,"stop domain values must appear in ascending order")]:(w=Ze,c==="categorical"&&Ze in y?[new X(Ce.key,Ge,"stop domain values must be unique")]:(y[Ze]=!0,[])):[new X(Ce.key,Ge,"integer expected, found "+Ze)];{let Fe=`number expected, ${Be} found`;return Za(s)&&c===void 0&&(Fe+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new X(Ce.key,Ge,Fe)]}}}function kg(g){var s=(g.expressionContext==="property"?Qi:Fv)(th(g.value),g.valueSpec);if(s.result==="error")return s.value.map(c=>new X(""+g.key+c.key,g.value,c.message));if(s=s.value.expression||s.value._styleExpression.expression,g.expressionContext==="property"&&g.propertyKey==="text-font"&&!s.outputDefined())return[new X(g.key,g.value,`Invalid data expression for "${g.propertyKey}". Output values must be contained as literals within the expression.`)];if(g.expressionContext==="property"&&g.propertyType==="layout"&&!Eg(s))return[new X(g.key,g.value,'"feature-state" data expressions are not supported with layout properties.')];if(g.expressionContext==="filter"&&!Eg(s))return[new X(g.key,g.value,'"feature-state" data expressions are not supported with filters.')];if(g.expressionContext&&g.expressionContext.indexOf("cluster")===0){if(!hp(s,["zoom","feature-state"]))return[new X(g.key,g.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(g.expressionContext==="cluster-initial"&&!wg(s))return[new X(g.key,g.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function gd(f){var s=f.key,c=f.value,f=f.valueSpec,y=[];return Array.isArray(f.values)?f.values.indexOf(Ko(c))===-1&&y.push(new X(s,c,`expected one of [${f.values.join(", ")}], ${JSON.stringify(c)} found`)):Object.keys(f.values).indexOf(Ko(c))===-1&&y.push(new X(s,c,`expected one of [${Object.keys(f.values).join(", ")}], ${JSON.stringify(c)} found`)),y}function O_(g){return Ag(th(g.value))?kg(z({},g,{expressionContext:"filter",valueSpec:{value:"boolean"}})):(function s(c){const f=c.value,y=c.key;if(Di(f)!=="array")return[new X(y,f,`array expected, ${Di(f)} found`)];const w=c.styleSpec;let x,k=[];if(f.length<1)return[new X(y,f,"filter array must have at least 1 element")];switch(k=k.concat(gd({key:y+"[0]",value:f[0],valueSpec:w.filter_operator,style:c.style,styleSpec:c.styleSpec})),Ko(f[0])){case"<":case"<=":case">":case">=":2<=f.length&&Ko(f[1])==="$type"&&k.push(new X(y,f,`"$type" cannot be use with operator "${f[0]}"`));case"==":case"!=":f.length!==3&&k.push(new X(y,f,`filter array for operator "${f[0]}" must have 3 elements`));case"in":case"!in":2<=f.length&&(x=Di(f[1]))!=="string"&&k.push(new X(y+"[1]",f[1],`string expected, ${x} found`));for(let D=2;D<f.length;D++)x=Di(f[D]),Ko(f[1])==="$type"?k=k.concat(gd({key:`${y}[${D}]`,value:f[D],valueSpec:w.geometry_type,style:c.style,styleSpec:c.styleSpec})):x!=="string"&&x!=="number"&&x!=="boolean"&&k.push(new X(`${y}[${D}]`,f[D],`string, number, or boolean expected, ${x} found`));break;case"any":case"all":case"none":for(let D=1;D<f.length;D++)k=k.concat(s({key:`${y}[${D}]`,value:f[D],style:c.style,styleSpec:c.styleSpec}));break;case"has":case"!has":x=Di(f[1]),f.length!==2?k.push(new X(y,f,`filter array for "${f[0]}" operator must have 2 elements`)):x!=="string"&&k.push(new X(y+"[1]",f[1],`string expected, ${x} found`));break;case"within":x=Di(f[1]),f.length!==2?k.push(new X(y,f,`filter array for "${f[0]}" operator must have 2 elements`)):x!=="object"&&k.push(new X(y+"[1]",f[1],`object expected, ${x} found`))}return k})(g)}function M_(g,s){var c=g.key,f=g.validateSpec,y=g.style,w=g.styleSpec,x=g.value,k=g.objectKey,D=w[s+"_"+g.layerType];if(!D)return[];var q=k.match(/^(.*)-transition$/);if(s==="paint"&&q&&D[q[1]]&&D[q[1]].transition)return f({key:c,value:x,valueSpec:w.transition,style:y,styleSpec:w});if(q=g.valueSpec||D[k],!q)return[new X(c,x,`unknown property "${k}"`)];let Y;
128return Di(x)==="string"&&Za(q)&&!q.tokens&&(Y=/^{([^}]+)}$/.exec(x))?[new X(c,x,`"${k}" does not support interpolation syntax
129Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(Y[1])} }\`.`)]:(D=[],g.layerType==="symbol"&&(k==="text-field"&&y&&!y.glyphs&&D.push(new X(c,x,'use of "text-field" requires a style "glyphs" property')),k==="text-font")&&cy(th(x))&&Ko(x.type)==="identity"&&D.push(new X(c,x,'"text-font" does not support identity functions')),D.concat(f({key:g.key,value:x,valueSpec:q,style:y,styleSpec:w,expressionContext:"property",propertyType:s,propertyKey:k})))}function Og(g){return M_(g,"paint")}function lf(g){return M_(g,"layout")}function sl(g){let s=[];const c=g.value,f=g.key;var y,w,x=g.style;const k=g.styleSpec;c.type||c.ref||s.push(new X(f,c,'either "type" or "ref" is required'));let D=Ko(c.type);const q=Ko(c.ref);if(c.id){var Y=Ko(c.id);for(let ye=0;ye<g.arrayIndex;ye++){var oe=x.layers[ye];Ko(oe.id)===Y&&s.push(new X(f,c.id,`duplicate layer id "${c.id}", previously used at line `+oe.id.__line__))}}if("ref"in c){["type","source","source-layer","filter","layout"].forEach(Ce=>{Ce in c&&s.push(new X(f,c[Ce],`"${Ce}" is prohibited for ref layers`))});let ye;x.layers.forEach(Ce=>{Ko(Ce.id)===q&&(ye=Ce)}),ye?ye.ref?s.push(new X(f,c.ref,"ref cannot reference another ref layer")):D=Ko(ye.type):s.push(new X(f,c.ref,`ref layer "${q}" not found`))}else D!=="background"&&(c.source?(w=(y=x.sources&&x.sources[c.source])&&Ko(y.type),y?w==="vector"&&D==="raster"?s.push(new X(f,c.source,`layer "${c.id}" requires a raster source`)):w!=="raster-dem"&&D==="hillshade"?s.push(new X(f,c.source,`layer "${c.id}" requires a raster-dem source`)):w==="raster"&&D!=="raster"?s.push(new X(f,c.source,`layer "${c.id}" requires a vector source`)):w!=="vector"||c["source-layer"]?w==="raster-dem"&&D!=="hillshade"?s.push(new X(f,c.source,"raster-dem source can only be used with layer type 'hillshade'.")):D!=="line"||!c.paint||!c.paint["line-gradient"]||w==="geojson"&&y.lineMetrics||s.push(new X(f,c,`layer "${c.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):s.push(new X(f,c,`layer "${c.id}" must specify a "source-layer"`)):s.push(new X(f,c.source,`source "${c.source}" not found`))):s.push(new X(f,c,'missing required property "source"')));return s=s.concat(kc({key:f,value:c,valueSpec:k.layer,style:g.style,styleSpec:g.styleSpec,validateSpec:g.validateSpec,objectElementValidators:{"*"(){return[]},type(){return g.validateSpec({key:f+".type",value:c.type,valueSpec:k.layer.type,style:g.style,styleSpec:g.styleSpec,validateSpec:g.validateSpec,object:c,objectKey:"type"})},filter:O_,layout(ye){return kc({layer:c,key:ye.key,value:ye.value,style:ye.style,styleSpec:ye.styleSpec,validateSpec:ye.validateSpec,objectElementValidators:{"*"(Ce){return lf(z({layerType:D},Ce))}}})},paint(ye){return kc({layer:c,key:ye.key,value:ye.value,style:ye.style,styleSpec:ye.styleSpec,validateSpec:ye.validateSpec,objectElementValidators:{"*"(Ce){return Og(z({layerType:D},Ce))}}})}}}))}function md(c){var s=c.value,c=c.key,f=Di(s);return f!=="string"?[new X(c,s,`string expected, ${f} found`)]:[]}const yy={promoteId:function({key:g,value:s}){{if(Di(s)==="string")return md({key:g,value:s});var c=[];for(const f in s)c.push(...md({key:g+"."+f,value:s[f]}));return c}}};function Bb(g){var s=g.value,c=g.key,f=g.styleSpec,y=g.style,w=g.validateSpec;if(!s.type)return[new X(c,s,'"type" is required')];var x=Ko(s.type);let k;switch(x){case"vector":case"raster":return k=kc({key:c,value:s,valueSpec:f["source_"+x.replace("-","_")],style:g.style,styleSpec:f,objectElementValidators:yy,validateSpec:w});case"raster-dem":return k=(function(Y){var oe=(Ge=Y.sourceName)!=null?Ge:"",ye=Y.value,Ce=Y.styleSpec,Pe=Ce.source_raster_dem,Be=Y.style;let Ze=[];var Ge=Di(ye);if(ye!==void 0)if(Ge!=="object")Ze.push(new X("source_raster_dem",ye,`object expected, ${Ge} found`));else{var Fe=Ko(ye.encoding)==="custom",Le=["redFactor","greenFactor","blueFactor","baseShift"],Je=Y.value.encoding?`"${Y.value.encoding}"`:"Default";for(const ht in ye)!Fe&&Le.includes(ht)?Ze.push(new X(ht,ye[ht],`In "${oe}": "${ht}" is only valid when "encoding" is set to "custom". ${Je} encoding found`)):Pe[ht]?Ze=Ze.concat(Y.validateSpec({key:ht,value:ye[ht],valueSpec:Pe[ht],validateSpec:Y.validateSpec,style:Be,styleSpec:Ce})):Ze.push(new X(ht,ye[ht],`unknown property "${ht}"`))}return Ze})({sourceName:c,value:s,style:g.style,styleSpec:f,validateSpec:w});case"geojson":if(k=kc({key:c,value:s,valueSpec:f.source_geojson,style:y,styleSpec:f,validateSpec:w,objectElementValidators:yy}
129),s.cluster)for(const Y in s.clusterProperties){var[q,D]=s.clusterProperties[Y],q=typeof q=="string"?[q,["accumulated"],["get",Y]]:q;k.push(...kg({key:`${c}.${Y}.map`,value:D,expressionContext:"cluster-map"})),k.push(...kg({key:`${c}.${Y}.reduce`,value:q,expressionContext:"cluster-reduce"}))}return k;case"video":return kc({key:c,value:s,valueSpec:f.source_video,style:y,validateSpec:w,styleSpec:f});case"image":return kc({key:c,value:s,valueSpec:f.source_image,style:y,validateSpec:w,styleSpec:f});case"canvas":return[new X(c,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return gd({key:c+".type",value:s.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]}})}}function N_(g){var s=g.value,c=g.styleSpec,f=c.light,y=g.style;let w=[];var x=Di(s);if(s!==void 0){if(x!=="object")return w=w.concat([new X("light",s,`object expected, ${x} found`)]);for(const D in s){var k=D.match(/^(.*)-transition$/);w=k&&f[k[1]]&&f[k[1]].transition?w.concat(g.validateSpec({key:D,value:s[D],valueSpec:c.transition,validateSpec:g.validateSpec,style:y,styleSpec:c})):f[D]?w.concat(g.validateSpec({key:D,value:s[D],valueSpec:f[D],validateSpec:g.validateSpec,style:y,styleSpec:c})):w.concat([new X(D,s[D],`unknown property "${D}"`)])}}return w}function rh(w){var s=w.value,c=w.styleSpec,f=c.sky,y=w.style,w=Di(s);if(s===void 0)return[];if(w!=="object")return[new X("sky",s,`object expected, ${w} found`)];let x=[];for(const k in s)x=f[k]?x.concat(yd({key:k,value:s[k],valueSpec:f[k],style:y,styleSpec:c})):x.concat([new X(k,s[k],`unknown property "${k}"`)]);return x}function kl(g){var s=g.value,c=g.styleSpec,f=c.terrain,y=g.style;let w=[];var x=Di(s);if(s!==void 0){if(x!=="object")return w=w.concat([new X("terrain",s,`object expected, ${x} found`)]);for(const k in s)w=f[k]?w.concat(g.validateSpec({key:k,value:s[k],valueSpec:f[k],validateSpec:g.validateSpec,style:y,styleSpec:c})):w.concat([new X(k,s[k],`unknown property "${k}"`)])}return w}function zv(g){let s=[];var c=g.value,f=g.key;if(Array.isArray(c)){var y=[],w=[];for(const x in c)c[x].id&&y.includes(c[x].id)&&s.push(new X(f,c,`all the sprites' ids must be unique, but ${c[x].id} is duplicated`)),y.push(c[x].id),c[x].url&&w.includes(c[x].url)&&s.push(new X(f,c,`all the sprites' URLs must be unique, but ${c[x].url} is duplicated`)),w.push(c[x].url),s=s.concat(kc({key:`${f}[${x}]`,value:c[x],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:g.validateSpec}));return s}return md({key:f,value:c})}const vy={"*"(){return[]},array:Bv,boolean:function(c){var s=c.value,c=c.key,f=Di(s);return f!=="boolean"?[new X(c,s,`boolean expected, ${f} found`)]:[]},number:$v,color:function(g){var s=g.key,c=Di(g=g.value);return c!=="string"?[new X(s,g,`color expected, ${c} found`)]:Wi.parse(String(g))?[]:[new X(s,g,`color expected, "${g}" found`)]},constants:Pg,enum:gd,filter:O_,function:gp,layer:sl,object:kc,source:Bb,light:N_,sky:rh,terrain:kl,string:md,formatted:function(g){return md(g).length===0?[]:kg(g)},resolvedImage:function(g){return md(g).length===0?[]:kg(g)},padding:function(g){var s=g.key,c=g.value;if(Di(c)!=="array")return $v({key:s,value:c,valueSpec:{}});{if(c.length<1||4<c.length)return[new X(s,c,`padding requires 1 to 4 values; ${c.length} values found`)];var f={type:"number"};let y=[];for(let w=0;w<c.length;w++)y=y.concat(g.validateSpec({key:`${s}[${w}]`,value:c[w],validateSpec:g.validateSpec,valueSpec:f}));return y}},variableAnchorOffsetCollection:function(g){var s=g.key,c=g.value,f=Di(c),y=g.styleSpec;if(f!=="array"||c.length<1||c.length%2!=0)return[new X(s,c,"variableAnchorOffsetCollection requires a non-empty array of even length")];let w=[];for(let x=0;x<c.length;x+=2)w=(w=w.concat(gd({key:`${s}[${x}]`,value:c[x],valueSpec:y.layout_symbol["text-anchor"]}))).concat(Bv({key:`${s}[${x+1}]`,value:c[x+1],valueSpec:{length:2,value:"number"},validateSpec:g.validateSpec,style:g.style,styleSpec:y}));return w},sprite:zv};function yd(g){var s=g.value,c=g.valueSpec,f=g.styleSpec;return g.validateSpec=yd,c.expression&&cy(Ko(s))?gp(g):c.expression&&hy(th(s))?kg(g):c.type&&vy[c.type]?vy[c.type](g):kc(z({},g,{valueSpec:c.type?f[c.type]:c}))}function _y(f){var s=f.value,c=f.key,f=md(f);return f.length||(s.indexOf("{fontstack}")===-1&&f.push(new X(c,s,'"glyphs" url must include a "{fontstack}" token')),s.indexOf("{range}")===-1&&f.push(new X(c,s,'"glyphs" url must include a "{range}" token'))),f}function Xl(g,s=_e){let c=[];return c=c.concat(yd({key:"",value:g,valueSpec:s.$root,styleSpec:s,style:g,validateSpec:yd,objectElementValidators:{glyphs:_y,"*"(){return[]}}})),cf(c=g.constants?c.concat(Pg({key:"constants",value:g.constants,style:g,styleSpec:s,validateSpec:yd})):c)}function iu(g){return function(s){return g({...s,validateSpec:yd})}}function cf(g){return[].concat(g).sort((s,c)=>s.line-c.line)}function Tt(g){return function(...s){return cf(g.apply(this,s))}}Xl.source=Tt(iu(Bb)),Xl.sprite=Tt(iu(zv)),Xl.glyphs=Tt(iu(_y)),Xl.light=Tt(iu(N_)),Xl.sky=Tt(iu(rh)),Xl.terrain=Tt(iu(kl)),Xl.layer=Tt(iu(sl)),Xl.filter=Tt(iu(O_)),Xl.paintProperty=Tt(iu(Og)),Xl.layoutProperty=Tt(iu(lf));
vendor: 7,020 bytes, line 129
129const zt=Xl;ru=zt.light;const Ut=zt.paintProperty,Qr=zt.layoutProperty;function jn(g,s){let c=!1;if(s&&s.length)for(const f of s)g.fire(new me(new Error(f.message))),c=!0;return c}class Si{constructor(s,c,f){var y=this.cells=[];if(s instanceof ArrayBuffer){this.arrayBuffer=s;var w=new Int32Array(this.arrayBuffer);s=w[0],c=w[1],f=w[2],this.d=c+2*f;for(let Y=0;Y<this.d*this.d;Y++){var x=w[3+Y],k=w[3+Y+1];y.push(x===k?null:w.subarray(x,k))}var D=w[3+y.length],q=w[3+y.length+1];this.keys=w.subarray(D,q),this.bboxes=w.subarray(q),this.insert=this._insertReadonly}else{this.d=c+2*f;for(let Y=0;Y<this.d*this.d;Y++)y.push([]);this.keys=[],this.bboxes=[]}this.n=c,this.extent=s,this.padding=f,this.scale=c/s,this.uid=0,D=f/c*s,this.min=-D,this.max=s+D}insert(s,c,f,y,w){this._forEachCell(c,f,y,w,this._insertCell,this.uid++,void 0,void 0),this.keys.push(s),this.bboxes.push(c),this.bboxes.push(f),this.bboxes.push(y),this.bboxes.push(w)}_insertReadonly(){throw new Error("Cannot insert into a GridIndex created from an ArrayBuffer.")}_insertCell(s,c,f,y,w,x){this.cells[w].push(x)}query(s,c,f,y,w){var x=this.min,k=this.max;return s<=x&&c<=x&&k<=f&&k<=y&&!w?Array.prototype.slice.call(this.keys):(this._forEachCell(s,c,f,y,this._queryCell,x=[],{},w),x)}_queryCell(s,c,f,y,w,x,k,D){var q=this.cells[w];if(q!==null){var Y=this.keys,oe=this.bboxes;for(let Pe=0;Pe<q.length;Pe++){var ye,Ce=q[Pe];k[Ce]===void 0&&(ye=4*Ce,(D?D(oe[0+ye],oe[1+ye],oe[2+ye],oe[3+ye]):s<=oe[2+ye]&&c<=oe[3+ye]&&f>=oe[0+ye]&&y>=oe[1+ye])?(k[Ce]=!0,x.push(Y[Ce])):k[Ce]=!1)}}}_forEachCell(s,c,f,y,w,x,k,D){var q=this._convertToCellCoord(s),Y=this._convertToCellCoord(c),oe=this._convertToCellCoord(f),ye=this._convertToCellCoord(y);for(let Pe=q;Pe<=oe;Pe++)for(let Be=Y;Be<=ye;Be++){var Ce=this.d*Be+Pe;if((!D||D(this._convertFromCellCoord(Pe),this._convertFromCellCoord(Be),this._convertFromCellCoord(Pe+1),this._convertFromCellCoord(Be+1)))&&w.call(this,s,c,f,y,Ce,x,k,D))return}}_convertFromCellCoord(s){return(s-this.padding)/this.scale}_convertToCellCoord(s){return Math.max(0,Math.min(this.d-1,Math.floor(s*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;var s=this.cells,c=3+this.cells.length+1+1;let f=0;for(let k=0;k<this.cells.length;k++)f+=this.cells[k].length;var y=new Int32Array(c+f+this.keys.length+this.bboxes.length);y[0]=this.extent,y[1]=this.n,y[2]=this.padding;let w=c;for(let k=0;k<s.length;k++){var x=s[k];y[3+k]=w,y.set(x,w),w+=x.length}return y[3+s.length]=w,y.set(this.keys,w),w+=this.keys.length,y[3+s.length+1]=w,y.set(this.bboxes,w),w+=this.bboxes.length,y.buffer}static serialize(s,c){return s=s.toArrayBuffer(),c&&c.push(s),{buffer:s}}static deserialize(s){return new Si(s.buffer)}}const yo={};function lr(g,s,c={}){if(yo[g])throw new Error(g+" is already registered.");Object.defineProperty(s,"_classRegistryKey",{value:g,writeable:!1}),yo[g]={klass:s,omit:c.omit||[],shallow:c.shallow||[]}}lr("Object",Object),lr("TransferableGridIndex",Si),lr("Color",Wi),lr("Error",Error),lr("AJAXError",ot),lr("ResolvedImage",Qc),lr("StylePropertyFunction",Mo),lr("StyleExpression",dy,{omit:["_evaluator"]}),lr("ZoomDependentExpression",fy),lr("ZoomConstantExpression",ca),lr("CompoundExpression",Rc,{omit:["_evaluate"]});for(const g in ds)ds[g]._classRegistryKey||lr("Expression_"+g,ds[g]);function ll(g){return g&&typeof ArrayBuffer<"u"&&(g instanceof ArrayBuffer||g.constructor&&g.constructor.name==="ArrayBuffer")}function nh(g,s){if(g==null||typeof g=="boolean"||typeof g=="number"||typeof g=="string"||g instanceof Boolean||g instanceof Number||g instanceof String||g instanceof Date||g instanceof RegExp||g instanceof Blob||g instanceof Error)return g;if(ll(g)||be(g))return s&&s.push(g),g;if(ArrayBuffer.isView(g))return f=g,s&&s.push(f.buffer),f;if(g instanceof ImageData)return s&&s.push(g.data.buffer),g;if(Array.isArray(g)){var c=[];for(const k of g)c.push(nh(k,s));return c}if(typeof g!="object")throw new Error("can't serialize object of type "+typeof g);var f=g.constructor,y=f._classRegistryKey;if(!y)throw new Error("can't serialize object of unregistered class "+f.name);if(!yo[y])throw new Error(y+" is not registered.");var w,x=f.serialize?f.serialize(g,s):{};if(f.serialize){if(s&&x===s[s.length-1])throw new Error("statically serialized object won't survive transfer of $name property")}else{for(const k in g)!g.hasOwnProperty(k)||0<=yo[y].omit.indexOf(k)||(w=g[k],x[k]=0<=yo[y].shallow.indexOf(k)?w:nh(w,s));g instanceof Error&&(x.message=g.message)}if(x.$name)throw new Error("$name property is reserved for worker serialization logic.");return y!=="Object"&&(x.$name=y),x}function xa(g){if(g==null||typeof g=="boolean"||typeof g=="number"||typeof g=="string"||g instanceof Boolean||g instanceof Number||g instanceof String||g instanceof Date||g instanceof RegExp||g instanceof Blob||g instanceof Error||ll(g)||be(g)||ArrayBuffer.isView(g)||g instanceof ImageData)return g;if(Array.isArray(g))return g.map(xa);if(typeof g!="object")throw new Error("can't deserialize object of type "+typeof g);var s=g.$name||"Object";if(!yo[s])throw new Error("can't deserialize unregistered class "+s);var c=yo[s].klass;if(!c)throw new Error("can't deserialize unregistered class "+s);if(c.deserialize)return c.deserialize(g);var f,y=Object.create(c.prototype);for(const w of Object.keys(g))w!=="$name"&&(f=g[w],y[w]=0<=yo[s].shallow.indexOf(w)?f:xa(f));return y}class mp{constructor(){this.first=!0}update(s,c){var f=Math.floor(s);return this.first?(this.first=!1,this.lastIntegerZoom=f,this.lastIntegerZoomTime=0,this.lastZoom=s,this.lastFloorZoom=f,!0):(this.lastFloorZoom>f?(this.lastIntegerZoom=f+1,this.lastIntegerZoomTime=c):this.lastFloorZoom<f&&(this.lastIntegerZoom=f,this.lastIntegerZoomTime=c),s!==this.lastZoom&&(this.lastZoom=s,this.lastFloorZoom=f,!0))}}const Pr={"Latin-1 Supplement":g=>128<=g&&g<=255,Arabic:g=>1536<=g&&g<=1791,"Arabic Supplement":g=>1872<=g&&g<=1919,"Arabic Extended-A":g=>2208<=g&&g<=2303,"Hangul Jamo":g=>4352<=g&&g<=4607,"Unified Canadian Aboriginal Syllabics":g=>5120<=g&&g<=5759,Khmer:g=>6016<=g&&g<=6143,"Unified Canadian Aboriginal Syllabics Extended":g=>6320<=g&&g<=6399,"General Punctuation":g=>8192<=g&&g<=8303,"Letterlike Symbols":g=>8448<=g&&g<=8527,"Number Forms":g=>8528<=g&&g<=8591,"Miscellaneous Technical":g=>8960<=g&&g<=9215,"Control Pictures":g=>9216<=g&&g<=9279,"Optical Character Recognition":g=>9280<=g&&g<=9311,"Enclosed Alphanumerics":g=>9312<=g&&g<=9471,"Geometric Shapes":g=>9632<=g&&g<=9727,"Miscellaneous Symbols":g=>9728<=g&&g<=9983,"Miscellaneous Symbols and Arrows":g=>11008<=g&&g<=11263,"CJK Radicals Supplement":g=>11904<=g&&g<=12031,"Kangxi Radicals":g=>12032<=g&&g<=12255,"Ideographic Description Characters":g=>12272<=g&&g<=12287,"CJK Symbols and Punctuation":g=>12288<=g&&g<=12351,Hiragana:g=>12352<=g&&g<=12447,Katakana:g=>12448<=g&&g<=12543,Bopomofo:g=>12544<=g&&g<=12591,"Hangul Compatibility Jamo":g=>12592<=g&&g<=12687,Kanbun:g=>12688<=g&&g<=12703,"Bopomofo Extended":g=>12704<=g&&g<=12735,"CJK Strokes":g=>
12912736<=g&&g<=12783,"Katakana Phonetic Extensions":g=>12784<=g&&g<=12799,"Enclosed CJK Letters and Months":g=>12800<=g&&g<=13055,"CJK Compatibility":g=>13056<=g&&g<=13311,"CJK Unified Ideographs Extension A":g=>13312<=g&&g<=19903,"Yijing Hexagram Symbols":g=>19904<=g&&g<=19967,"CJK Unified Ideographs":g=>19968<=g&&g<=40959,"Yi Syllables":g=>40960<=g&&g<=42127,"Yi Radicals":g=>42128<=g&&g<=42191,"Hangul Jamo Extended-A":g=>43360<=g&&g<=43391,"Hangul Syllables":g=>44032<=g&&g<=55215,"Hangul Jamo Extended-B":g=>55216<=g&&g<=55295,"Private Use Area":g=>57344<=g&&g<=63743,"CJK Compatibility Ideographs":g=>63744<=g&&g<=64255,"Arabic Presentation Forms-A":g=>64336<=g&&g<=65023,"Vertical Forms":g=>65040<=g&&g<=65055,"CJK Compatibility Forms":g=>65072<=g&&g<=65103,"Small Form Variants":g=>65104<=g&&g<=65135,"Arabic Presentation Forms-B":g=>65136<=g&&g<=65279,"Halfwidth and Fullwidth Forms":g=>65280<=g&&g<=65519};function Ql(g){for(const s of g)if(Mu(s.charCodeAt(0)))return!0;return!1}function Mg(g){for(const c of g)if(s=c.charCodeAt(0),Pr.Arabic(s)||Pr["Arabic Supplement"](s)||Pr["Arabic Extended-A"](s)||Pr["Arabic Presentation Forms-A"](s)||Pr["Arabic Presentation Forms-B"](s))return;var s;return 1}function Mu(g){return g===746||g===747||!(g<4352)&&(Pr["Bopomofo Extended"](g)||Pr.Bopomofo(g)||Pr["CJK Compatibility Forms"](g)&&!(65097<=g&&g<=65103)||Pr["CJK Compatibility Ideographs"](g)||Pr["CJK Compatibility"](g)||Pr["CJK Radicals Supplement"](g)||Pr["CJK Strokes"](g)||!(!Pr["CJK Symbols and Punctuation"](g)||12296<=g&&g<=12305||12308<=g&&g<=12319||g===12336)||Pr["CJK Unified Ideographs Extension A"](g)||Pr["CJK Unified Ideographs"](g)||Pr["Enclosed CJK Letters and Months"](g)||Pr["Hangul Compatibility Jamo"](g)||Pr["Hangul Jamo Extended-A"](g)||Pr["Hangul Jamo Extended-B"](g)||Pr["Hangul Jamo"](g)||Pr["Hangul Syllables"](g)||Pr.Hiragana(g)||Pr["Ideographic Description Characters"](g)||Pr.Kanbun(g)||Pr["Kangxi Radicals"](g)||Pr["Katakana Phonetic Extensions"](g)||Pr.Katakana(g)&&g!==12540||!(!Pr["Halfwidth and Fullwidth Forms"](g)||g===65288||g===65289||g===65293||65306<=g&&g<=65310||g===65339||g===65341||g===65343||65371<=g&&g<=65503||g===65507||65512<=g&&g<=65519)||!(!Pr["Small Form Variants"](g)||65112<=g&&g<=65118||65123<=g&&g<=65126)||Pr["Unified Canadian Aboriginal Syllabics"](g)||Pr["Unified Canadian Aboriginal Syllabics Extended"](g)||Pr["Vertical Forms"](g)||Pr["Yijing Hexagram Symbols"](g)||Pr["Yi Syllables"](g)||!!Pr["Yi Radicals"](g))}function Ii(g){return!(Mu(g)||(g=g,Pr["Latin-1 Supplement"](g)&&(g===167||g===169||g===174||g===177||g===188||g===189||g===190||g===215||g===247))||Pr["General Punctuation"](g)&&(g===8214||g===8224||g===8225||g===8240||g===8241||g===8251||g===8252||g===8258||g===8263||g===8264||g===8265||g===8273)||Pr["Letterlike Symbols"](g)||Pr["Number Forms"](g)||Pr["Miscellaneous Technical"](g)&&(8960<=g&&g<=8967||8972<=g&&g<=8991||8996<=g&&g<=9e3||g===9003||9085<=g&&g<=9114||9150<=g&&g<=9165||g===9167||9
129169<=g&&g<=9179||9186<=g&&g<=9215)||Pr["Control Pictures"](g)&&g!==9251||Pr["Optical Character Recognition"](g)||Pr["Enclosed Alphanumerics"](g)||Pr["Geometric Shapes"](g)||Pr["Miscellaneous Symbols"](g)&&!(9754<=g&&g<=9759)||Pr["Miscellaneous Symbols and Arrows"](g)&&(11026<=g&&g<=11055||11088<=g&&g<=11097||11192<=g&&g<=11243)||Pr["CJK Symbols and Punctuation"](g)||Pr.Katakana(g)||Pr["Private Use Area"](g)||Pr["CJK Compatibility Forms"](g)||Pr["Small Form Variants"](g)||Pr["Halfwidth and Fullwidth Forms"](g)||g===8734||g===8756||g===8757||9984<=g&&g<=10087||10102<=g&&g<=10131||g===65532||g===65533)}function jv(g){return 1424<=g&&g<=2303||Pr["Arabic Presentation Forms-A"](g)||Pr["Arabic Presentation Forms-B"](g)}function by(g,s){for(const f of g)if(c=f.charCodeAt(0),!s&&jv(c)||2304<=c&&c<=3583||3840<=c&&c<=4255||Pr.Khmer(c))return!1;var c;return!0}const Oc=new class{constructor(){this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null}setState(g){this.pluginStatus=g.pluginStatus,this.pluginURL=g.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(g){this.applyArabicShaping=g.applyArabicShaping,this.processBidirectionalText=g.processBidirectionalText,this.processStyledBidirectionalText=g.processStyledBidirectionalText}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getPluginURL(){return this.pluginURL}getRTLTextPluginStatus(){return this.pluginStatus}};class vo{constructor(s,c){this.zoom=s,c?(this.now=c.now,this.fadeDuration=c.fadeDuration,this.zoomHistory=c.zoomHistory,this.transition=c.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new mp,this.transition={})}isSupportedScript(s){return by(s,Oc.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){var s=this.zoom,c=s-Math.floor(s),f=this.crossFadingFactor();return s>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:c+(1-c)*f}:{fromScale:.5,toScale:1,t:1-(1-f)*c}}}class wy{constructor(s,c){this.property=s,this.value=c,this.expression=py(c===void 0?s.specification.default:c,s.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(s,c,f){return this.property.possiblyEvaluate(this,s,c,f)}}class Vv{constructor(s){this.property=s,this.value=new wy(s,void 0)}transitioned(s,c){return new Nu(this.property,this.value,c,j({},s.transition,this.transition),s.now)}untransitioned(){return new Nu(this.property,this.value,null,{},0)}}class uf{constructor(s){this._properties=s,this._values=Object.create(s.defaultTransitionablePropertyValues)}getValue(s){return Z(this._values[s].value.value)}setValue(s,c){Object.prototype.hasOwnProperty.call(this._values,s)||(this._values[s]=new Vv(this._values[s].property)),this._values[s].value=new wy(this._values[s].property,c===null?void 0:Z(c))}getTransition(s){return Z(this._values[s].transition)}setTransition(s,c){Object.prototype.hasOwnProperty.call(this._values,s)||(this._values[s]=new Vv(this._values[s].property)),this._values[s].transition=Z(c)||void 0}serialize(){var s={};for(const f of Object.keys(this._values)){var c=this.getValue(f),c=(c!==void 0&&(s[f]=c),this.getTransition(f));c!==void 0&&(s[f+"-transition"]=c)}return s}transitioned(s,c){var f=new df(this._properties);for(const y of Object.keys(this._values))f._values[y]=this._values[y].transitioned(s,c._values[y]);return f}untransitioned(){var s=new df(this._properties);for(const c of Object.keys(this._values))s._values[c]=this._values[c].untransitioned();return s}}class Nu{constructor(s,c,f,y,w){this.property=s,this.value=c,this.begin=w+y.delay||0,this.end=this.begin+y.duration||0,s.specification.transition&&(y.delay||y.duration)&&(this.prior=f)}possiblyEvaluate(s,c,f){var y=s.now||0,w=this.value.possiblyEvaluate(s,c,f),x=this.prior;return x?y>this.end||this.value.isDataDriven()?(this.prior=null,w):y<this.begin?x.possiblyEvaluate(s,c,f):(y=(y-this.begin)/(this.end-this.begin),this.property.interpolate(x.possiblyEvaluate(s,c,f),w,O(y))):w}}class df{constructor(s){this._properties=s,this._values=Object.create(s.defaultTransitioningPropertyValues)}possiblyEvaluate(s,c,f){var y=new hf(this._properties);for(const w of Object.keys(this._values))y._values[w]=this._values[w].possiblyEvaluate(s,c,f);return y}hasTransition(){for(const s of Object.keys(this._values))if(this._values[s].prior)return!0;return!1}}class ih{constructor(s){this._properties=s,this._values=Object.create(s.defaultPropertyValues)}hasValue(s){return this._values[s].value!==void 0}getValue(s){return Z(this._values[s].value)}setValue(s,c){this._values[s]=new wy(this._values[s].property,c===null?void 0:Z(c))}serialize(){var s={};for(const f of Object.keys(this._values)){var c=this.getValue(f);c!==void 0&&(s[f]=c)}return s}possiblyEvaluate(s,c,f){var y=new hf(this._properties);for(const w of Object.keys(this._values))y._values[w]=this._values[w].possiblyEvaluate(s,c,f);return y}}class Ys{constructor(s,c,f){this.property=s,this.value=c,this.parameters=f}isConstant(){return this.value.kind==="constant"}constantOr(s){return this.value.kind==="constant"?this.value.value:s}evaluate(s,c,f,y){return this.property.evaluate(this.value,this.parameters,s,c,f,y)}}class hf{constructor(s){this._properties=s,this._values=Object.create(s.defaultPossiblyEvaluatedValues)}get(s){return this._values[s]}}class on{constructor(s){this.specification=s}possiblyEvaluate(s,c){if(s.isDataDriven())throw new Error("Value should not be data driven");return s.expression.evaluate(c)}interpolate(s,c,f){var y=this.specification.type,y=Pc[y];return y?y(s,c,f):s}}class dn{constructor(s,c){this.specification=s,this.overrides=c}possiblyEvaluate(s,c,f,y){return s.expression.kind==="constant"||s.expression.kind==="camera"?new Ys(this,{kind:"constant",value:s.expression.evaluate(c,null,{},f,y)},c):new Ys(this,s.expression,c)}interpolate(s,c,f){var y;return s.value.kind!=="constant"||c.value.kind!=="constant"?s:s.value.value===void 0||c.value.value===void 0?new Ys(this,{kind:"constant",value:void 0},s.parameters):(y=this.specification.type,(y=Pc[y])?(y=y(s.value.value,c.value.value,f),new Ys(this,{kind:"constant",value:y},s.parameters)):s)}evaluate(s,c,f,y,w,x){return s.kind==="constant"?s.value:s.evaluate(c,f,y,w,x)}}class ou extends dn{possiblyEvaluate(s,c,f,y){return s.value===void 0?new Ys(this,{kind:"constant",value:void 0},c):s.expression.kind==="constant"?(f=s.expression.evaluate(c,null,{},f,y),y=s.property.specification.type==="resolvedImage"&&typeof f!="string"?f.name:f,f=this._calculate(y,y,y,c),new Ys(this,{kind:"constant",value:f},c)):s.expression.kind==="camera"?(y=this._calculate(s.expression.evaluate({zoom:c.zoom-1}),s.expression.evaluate({zoom:c.zoom}),s.expression.evaluate({zoom:c.zoom+1}),c),new Ys(this,{kind:"constant",value:y},c)):new Ys(this,s.expression,c)}evaluate(s,c,f,y,w,x){return s.kind==="source"?(w=s.evaluate(c,f,y,w,x),this._calculate(w,w,w,c)):s.kind==="composite"?this._calculate(s.evaluate({zoom:Math.floor(c.zoom)-1},f,y),s.evaluate({zoom:Math.floor(c.zoom)},f,y),s.evaluate({zoom:Math.floor(c.zoom)+1},f,y),c):s.value}_calculate(s,c,f,y){return y.zoom>y.zoomHistory.lastIntegerZoom?{from:s,to:c}:{from:f,to:c}}interpolate(s){return s}}class ff{constructor(s){this.specification=s}possiblyEvaluate(s,c,f,y){if(s.value!==void 0)return s.expression.kind==="constant"?(f=s.expression.evaluate(c,null,{},f,y),this._calculate(f,f,f,c)):this._calculate(s.expression.evaluate(new vo(Math.floor(c.zoom-1),c)),s.expression.evaluate(new vo(Math.floor(c.zoom),c)),s.expression.evaluate(new vo(Math.floor(c.zoom+1),c)),c)}_calculate(s,c,f,y){return y.zoom>y.zoomHistory.lastIntegerZoom?{from:s,to:c}:{from:f,to:c}}interpolate(s){return s}}class Du{constructor(s){this.specification=s}possiblyEvaluate(s,c,f,y){return!!s.expression.evaluate(c,null,{},f,y)}interpolate(){return!1}}class hs{constructor(s){this.properties=s,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(const y in s){var f=s[y],c=(f.specification.overridable&&this.overridableProperties.push(y),this.defaultPropertyValues[y]=new wy(f,void 0)),f=this.defaultTransitionablePropertyValues[y]=new Vv(f);this.defaultTransitioningPropertyValues[y]=f.untransitioned(),this.defaultPossiblyEvaluatedValues[y]=c.possiblyEvaluate({})}}}lr("DataDrivenProperty",dn),lr("DataConstantProperty",on),lr("CrossFadedDataDrivenProperty",ou),lr("CrossFadedProperty",ff),lr("ColorRampProperty",Du);const Eo="-transition";class Jl extends Ae{constructor(s,c){if(super(),this.id=s.id,this.type=s.type,this._featureFilter={filter:()=>!0,needGeometry:!1},s.type!=="custom"&&(this.metadata=s.metadata,this.minzoom=s.minzoom,this.maxzoom=s.maxzoom,s.type!=="background"&&(this.source=s.source,this.sourceLayer=s["source-layer"],this.filter=s.filter),c.layout&&(this._unevaluatedLayout=new ih(c.layout)),c.paint)){this._transitionablePaint=new uf(c.paint);for(const f in s.paint)this.setPaintProperty(f,s.paint[f],{validate:!1});for(const f in s.layout)this.setLayoutProperty(f,s.layout[f],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new hf(c.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(s){return s==="visibility"?this.visibility:this._unevaluatedLayout.getValue(s)}setLayoutProperty(s,c,f={}){if(c!=null){var y=`layers.${this.id}.layout.`+s;
129if(this._validate(Qr,y,s,c,f))return}s==="visibility"?this.visibility=c:this._unevaluatedLayout.setValue(s,c)}getPaintProperty(s){return s.endsWith(Eo)?this._transitionablePaint.getTransition(s.slice(0,-Eo.length)):this._transitionablePaint.getValue(s)}setPaintProperty(s,c,f={}){if(c!=null){var y=`layers.${this.id}.paint.`+s;if(this._validate(Ut,y,s,c,f))return!1}var w;return s.endsWith(Eo)?(this._transitionablePaint.setTransition(s.slice(0,-Eo.length),c||void 0),!1):(f=(y=this._transitionablePaint._values[s]).property.specification["property-type"]==="cross-faded-data-driven",w=y.value.isDataDriven(),y=y.value,this._transitionablePaint.setValue(s,c),this._handleSpecialPaintPropertyUpdate(s),(c=this._transitionablePaint._values[s].value).isDataDriven()||w||f||this._handleOverridablePaintPropertyUpdate(s,y,c))}_handleSpecialPaintPropertyUpdate(s){}_handleOverridablePaintPropertyUpdate(s,c,f){return!1}isHidden(s){return!!(this.minzoom&&s<this.minzoom)||!!(this.maxzoom&&s>=this.maxzoom)||this.visibility==="none"}updateTransitions(s){this._transitioningPaint=this._transitionablePaint.transitioned(s,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(s,c){s.getCrossfadeParameters&&(this._crossfadeParameters=s.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(s,void 0,c)),this.paint=this._transitioningPaint.possiblyEvaluate(s,void 0,c)}
vendor: 13,943 bytes, line 129
129serialize(){var s={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(s.layout=s.layout||{},s.layout.visibility=this.visibility),Q(s,(c,f)=>!(c===void 0||f==="layout"&&!Object.keys(c).length||f==="paint"&&!Object.keys(c).length))}_validate(s,c,f,y,w={}){return(!w||w.validate!==!1)&&jn(this,s.call(zt,{key:c,layerType:this.type,objectKey:f,value:y,styleSpec:_e,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const c in this.paint._values){var s=this.paint.get(c);if(s instanceof Ys&&Za(s.property.specification)&&(s.value.kind==="source"||s.value.kind==="composite")&&s.value.isStateDependent)return!0}return!1}}const Ey={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class au{constructor(s,c){this._structArray=s,this._pos1=c*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class No{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(s,c){return s._trim(),c&&(s.isTransferred=!0,c.push(s.arrayBuffer)),{length:s.length,arrayBuffer:s.arrayBuffer}}static deserialize(s){var c=Object.create(this.prototype);return c.arrayBuffer=s.arrayBuffer,c.length=s.length,c.capacity=s.arrayBuffer.byteLength/c.bytesPerElement,c._refreshViews(),c}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(s){this.reserve(s),this.length=s}reserve(s){s>this.capacity&&(this.capacity=Math.max(s,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement),s=this.uint8,this._refreshViews(),s)&&this.uint8.set(s)}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function ta(g,s=1){let c=0,f=0;return{members:g.map(y=>{w=y.type;var w=Ey[w].BYTES_PER_ELEMENT,x=c=yp(c,Math.max(s,w)),k=y.components||1;return f=Math.max(f,w),c+=w*k,{name:y.name,type:y.type,components:k,offset:x}}),size:yp(c,Math.max(f,s)),alignment:s}}function yp(g,s){return Math.ceil(g/s)*s}class vd extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(s,c){var f=this.length;return this.resize(f+1),this.emplace(f,s,c)}emplace(s,c,f){var y=2*s;return this.int16[0+y]=c,this.int16[1+y]=f,s}}vd.prototype.bytesPerElement=4,lr("StructArrayLayout2i4",vd);class _d extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(s,c,f){var y=this.length;return this.resize(y+1),this.emplace(y,s,c,f)}emplace(s,c,f,y){var w=3*s;return this.int16[0+w]=c,this.int16[1+w]=f,this.int16[2+w]=y,s}}_d.prototype.bytesPerElement=6,lr("StructArrayLayout3i6",_d);class qv extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(s,c,f,y){var w=this.length;return this.resize(w+1),this.emplace(w,s,c,f,y)}emplace(s,c,f,y,w){var x=4*s;return this.int16[0+x]=c,this.int16[1+x]=f,this.int16[2+x]=y,this.int16[3+x]=w,s}}qv.prototype.bytesPerElement=8,lr("StructArrayLayout4i8",qv);class Fa extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(s,c,f,y,w,x){var k=this.length;return this.resize(k+1),this.emplace(k,s,c,f,y,w,x)}emplace(s,c,f,y,w,x,k){var D=6*s;return this.int16[0+D]=c,this.int16[1+D]=f,this.int16[2+D]=y,this.int16[3+D]=w,this.int16[4+D]=x,this.int16[5+D]=k,s}}Fa.prototype.bytesPerElement=12,lr("StructArrayLayout2i4i12",Fa);class fs extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(s,c,f,y,w,x){var k=this.length;return this.resize(k+1),this.emplace(k,s,c,f,y,w,x)}emplace(s,c,f,y,w,x,k){var D=4*s,q=8*s;return this.int16[0+D]=c,this.int16[1+D]=f,this.uint8[4+q]=y,this.uint8[5+q]=w,this.uint8[6+q]=x,this.uint8[7+q]=k,s}}fs.prototype.bytesPerElement=8,lr("StructArrayLayout2i4ub8",fs);class vp extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(s,c){var f=this.length;return this.resize(f+1),this.emplace(f,s,c)}emplace(s,c,f){var y=2*s;return this.float32[0+y]=c,this.float32[1+y]=f,s}}vp.prototype.bytesPerElement=8,lr("StructArrayLayout2f8",vp);class _p extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(s,c,f,y,w,x,k,D,q,Y){var oe=this.length;return this.resize(oe+1),this.emplace(oe,s,c,f,y,w,x,k,D,q,Y)}emplace(s,c,f,y,w,x,k,D,q,Y,oe){var ye=10*s;return this.uint16[0+ye]=c,this.uint16[1+ye]=f,this.uint16[2+ye]=y,this.uint16[3+ye]=w,this.uint16[4+ye]=x,this.uint16[5+ye]=k,this.uint16[6+ye]=D,this.uint16[7+ye]=q,this.uint16[8+ye]=Y,this.uint16[9+ye]=oe,s}}_p.prototype.bytesPerElement=20,lr("StructArrayLayout10ui20",_p);class pf extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(s,c,f,y,w,x,k,D,q,Y,oe,ye){var Ce=this.length;return this.resize(Ce+1),this.emplace(Ce,s,c,f,y,w,x,k,D,q,Y,oe,ye)}emplace(s,c,f,y,w,x,k,D,q,Y,oe,ye,Ce){var Pe=12*s;return this.int16[0+Pe]=c,this.int16[1+Pe]=f,this.int16[2+Pe]=y,this.int16[3+Pe]=w,this.uint16[4+Pe]=x,this.uint16[5+Pe]=k,this.uint16[6+Pe]=D,this.uint16[7+Pe]=q,this.int16[8+Pe]=Y,this.int16[9+Pe]=oe,this.int16[10+Pe]=ye,this.int16[11+Pe]=Ce,s}}pf.prototype.bytesPerElement=24,lr("StructArrayLayout4i4ui4i24",pf);class gf extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(s,c,f){var y=this.length;return this.resize(y+1),this.emplace(y,s,c,f)}emplace(s,c,f,y){var w=3*s;return this.float32[0+w]=c,this.float32[1+w]=f,this.float32[2+w]=y,s}}gf.prototype.bytesPerElement=12,lr("StructArrayLayout3f12",gf);class bp extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(s){var c=this.length;return this.resize(c+1),this.emplace(c,s)}emplace(s,c){return this.uint32[0+ +s]=c,s}}bp.prototype.bytesPerElement=4,lr("StructArrayLayout1ul4",bp);class Lu extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(s,c,f,y,w,x,k,D,q){var Y=this.length;return this.resize(Y+1),this.emplace(Y,s,c,f,y,w,x,k,D,q)}emplace(s,c,f,y,w,x,k,D,q,Y){var oe=10*s,ye=5*s;return this.int16[0+oe]=c,this.int16[1+oe]=f,this.int16[2+oe]=y,this.int16[3+oe]=w,this.int16[4+oe]=x,this.int16[5+oe]=k,this.uint32[3+ye]=D,this.uint16[8+oe]=q,this.uint16[9+oe]=Y,s}}Lu.prototype.bytesPerElement=20,lr("StructArrayLayout6i1ul2ui20",Lu);class wp extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(s,c,f,y,w,x){var k=this.length;return this.resize(k+1),this.emplace(k,s,c,f,y,w,x)}emplace(s,c,f,y,w,x,k){var D=6*s;return this.int16[0+D]=c,this.int16[1+D]=f,this.int16[2+D]=y,this.int16[3+D]=w,this.int16[4+D]=x,this.int16[5+D]=k,s}}wp.prototype.bytesPerElement=12,lr("StructArrayLayout2i2i2i12",wp);class mf extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(s,c,f,y,w){var x=this.length;return this.resize(x+1),this.emplace(x,s,c,f,y,w)}emplace(s,c,f,y,w,x){var k=4*s,D=8*s;return this.float32[0+k]=c,this.float32[1+k]=f,this.float32[2+k]=y,this.int16[6+D]=w,this.int16[7+D]=x,s}}mf.prototype.bytesPerElement=16,lr("StructArrayLayout2f1f2i16",mf);class oh extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(s,c,f,y){var w=this.length;return this.resize(w+1),this.emplace(w,s,c,f,y)}emplace(s,c,f,y,w){var x=12*s,k=3*s;return this.uint8[0+x]=c,this.uint8[1+x]=f,this.float32[1+k]=y,this.float32[2+k]=w,s}}oh.prototype.bytesPerElement=12,lr("StructArrayLayout2ub2f12",oh);class ah extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(s,c,f){var y=this.length;return this.resize(y+1),this.emplace(y,s,c,f)}emplace(s,c,f,y){var w=3*s;return this.uint16[0+w]=c,this.uint16[1+w]=f,this.uint16[2+w]=y,s}}ah.prototype.bytesPerElement=6,lr("StructArrayLayout3ui6",ah);class Ep extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(s,c,f,y,w,x,k,D,q,Y,oe,ye,Ce,Pe,Be,Ze,Ge){var Fe=this.length;return this.resize(Fe+1),this.emplace(Fe,s,c,f,y,w,x,k,D,q,Y,oe,ye,Ce,Pe,Be,Ze,Ge)}emplace(s,c,f,y,w,x,k,D,q,Y,oe,ye,Ce,Pe,Be,Ze,Ge,Fe){var Le=24*s,Je=12*s,ht=48*s;return this.int16[0+Le]=c,this.int16[1+Le]=f,this.uint16[2+Le]=y,this.uint16[3+Le]=w,this.uint32[2+Je]=x,this.uint32[3+Je]=k,this.uint32[4+Je]=D,this.uint16[10+Le]=q,this.uint16[11+Le]=Y,this.uint16[12+Le]=oe,this.float32[7+Je]=ye,this.float32[8+Je]=Ce,this.uint8[36+ht]=Pe,this.uint8[37+ht]=Be,this.uint8[38+ht]=Ze,this.uint32[10+Je]=Ge,this.int16[22+Le]=Fe,s}}Ep.prototype.bytesPerElement=48,lr("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Ep);class bd extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(s,c,f,y,w,x,k,D,q,Y,oe,ye,Ce,Pe,Be,Ze,Ge,Fe,Le,Je,ht,St,Lt,qt,jt,Wt,tr,dr){var cr=this.length;return this.resize(cr+1),this.emplace(cr,s,c,f,y,w,x,k,D,q,Y,oe,ye,Ce,Pe,Be,Ze,Ge,Fe,Le,Je,ht,St,Lt,qt,jt,Wt,tr,dr)}emplace(s,c,f,y,w,x,k,D,q,Y,oe,ye,Ce,Pe,Be,Ze,Ge,Fe,Le,Je,ht,St,Lt,qt,jt,Wt,tr,dr,cr){var Kt=32*s,Gr=16*s;return this.int16[0+Kt]=c,this.int16[1+Kt]=f,this.int16[2+Kt]=y,this.int16[3+Kt]=w,this.int16[4+Kt]=x,this.int16[5+Kt]=k,this.int16[6+Kt]=D,this.int16[7+Kt]=q,this.uint16[8+Kt]=Y,this.uint16[9+Kt]=oe,this.uint16[10+Kt]=ye,this.uint16[11+Kt]=Ce,this.uint16[12+Kt]=Pe,this.uint16[13+Kt]=Be,this.uint16[14+Kt]=Ze,this.uint16[15+Kt]=Ge,this.uint16[16+Kt]=Fe,this.uint16[17+Kt]=Le,this.uint16[18+Kt]=Je,this.uint16[19+Kt]=ht,this.uint16[20+Kt]=St,this.uint16[21+Kt]=Lt,this.uint16[22+Kt]=qt,this.uint32[12+Gr]=jt,this.float32[13+Gr]=Wt,this.float32[14+Gr]=tr,this.uint16[30+Kt]=dr,this.uint16[31+Kt]=cr,s}}bd.prototype.bytesPerElement=64,lr("StructArrayLayout8i15ui1ul2f2ui64",bd);class Hu extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(s){var c=this.length;return this.resize(c+1),this.emplace(c,s)}emplace(s,c){return this.float32[0+ +s]=c,s}}Hu.prototype.bytesPerElement=4,lr("StructArrayLayout1f4",Hu);class Gv extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(s,c,f){var y=this.length;return this.resize(y+1),this.emplace(y,s,c,f)}emplace(s,c,f,y){var w=3*s;return this.uint16[0+6*s]=c,this.float32[1+w]=f,this.float32[2+w]=y,s}}Gv.prototype.bytesPerElement=12,lr("StructArrayLayout1ui2f12",Gv);class yf extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(s,c,f){var y=this.length;return this.resize(y+1),this.emplace(y,s,c,f)}emplace(s,c,f,y){var w=4*s;return this.uint32[0+2*s]=c,this.uint16[2+w]=f,this.uint16[3+w]=y,s}}yf.prototype.bytesPerElement=8,lr("StructArrayLayout1ul2ui8",yf);class su extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(s,c){var f=this.length;return this.resize(f+1),this.emplace(f,s,c)}emplace(s,c,f){var y=2*s;return this.uint16[0+y]=c,this.uint16[1+y]=f,s}}su.prototype.bytesPerElement=4,lr("StructArrayLayout2ui4",su);class lu extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(s){var c=this.length;return this.resize(c+1),this.emplace(c,s)}emplace(s,c){return this.uint16[0+ +s]=c,s}}lu.prototype.bytesPerElement=2,lr("StructArrayLayout1ui2",lu);class ec extends No{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(s,c,f,y){var w=this.length;return this.resize(w+1),this.emplace(w,s,c,f,y)}emplace(s,c,f,y,w){var x=4*s;return this.float32[0+x]=c,this.float32[1+x]=f,this.float32[2+x]=y,this.float32[3+x]=w,s}}ec.prototype.bytesPerElement=16,lr("StructArrayLayout4f16",ec);class vf extends au{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}
vendor: 22,422 bytes, line 129
129get anchorPoint(){return new h(this.anchorPointX,this.anchorPointY)}}vf.prototype.size=20;class D_ extends Lu{get(s){return new vf(this,s)}}lr("CollisionBoxArray",D_);class ze extends au{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(s){this._structArray.uint8[this._pos1+37]=s}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(s){this._structArray.uint8[this._pos1+38]=s}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(s){this._structArray.uint32[this._pos4+10]=s}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}ze.prototype.size=48;class tc extends Ep{get(s){return new ze(this,s)}}lr("PlacedSymbolArray",tc);class sh extends au{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(s){this._structArray.uint32[this._pos4+12]=s}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}sh.prototype.size=64;class As extends bd{get(s){return new sh(this,s)}}lr("SymbolInstanceArray",As);class pi extends Hu{getoffsetX(s){return this.float32[+s+0]}}lr("GlyphOffsetArray",pi);class Yv extends _d{getx(s){return this.int16[3*s+0]}gety(s){return this.int16[3*s+1]}gettileUnitDistanceFromAnchor(s){return this.int16[3*s+2]}}lr("SymbolLineVertexArray",Yv);class Fu extends au{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}Fu.prototype.size=12;class lh extends Gv{get(s){return new Fu(this,s)}}lr("TextAnchorOffsetArray",lh);class Ki extends au{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}Ki.prototype.size=8;class Co extends yf{get(s){return new Ki(this,s)}}lr("FeatureIndexArray",Co);class wd extends vd{}class Rs extends vd{}class rc extends vd{}class Ed extends Fa{}class Ws extends fs{}class nc extends vp{}class ch extends _p{}class L_ extends pf{}class Ng extends gf{}class Wv extends bp{}class Uu extends wp{}class uh extends oh{}class dh extends ah{}class Dg extends su{}const $b=ta([{name:"a_pos",components:2,type:"Int16"}],4).members;class P{constructor(s=[]){this.segments=s}prepareSegment(s,c,f,y){let w=this.segments[this.segments.length-1];return s>P.MAX_VERTEX_ARRAY_LENGTH&&ne(`Max vertices per segment is ${P.MAX_VERTEX_ARRAY_LENGTH}: bucket requested `+s),(!w||w.vertexLength+s>P.MAX_VERTEX_ARRAY_LENGTH||w.sortKey!==y)&&(w={vertexOffset:c.length,primitiveOffset:f.length,vertexLength:0,primitiveLength:0},y!==void 0&&(w.sortKey=y),this.segments.push(w)),w}get(){return this.segments}destroy(){for(const s of this.segments)for(const c in s.vaos)s.vaos[c].destroy()}static simpleSegment(s,c,f,y){return new P([{vertexOffset:s,primitiveOffset:c,vertexLength:f,primitiveLength:y,vaos:{},sortKey:0}])}}function d(g,s){return 256*(g=H(Math.floor(g),0,255))+(s=H(Math.floor(s),0,255))}P.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,lr("SegmentVector",P);const v=ta([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);Lo={exports:{}},Qd={exports:{},exports:function(g,s){for(var c,f,y=3&g.length,w=g.length-y,x=s,k=3432918353,D=461845907,q=0;q<w;)f=255&g.charCodeAt(q)|(255&g.charCodeAt(++q))<<8|(255&g.charCodeAt(++q))<<16|(255&g.charCodeAt(++q))<<24,++q,x=27492+(65535&(c=5*(65535&(x=(x^=f=(65535&(f=(f=(65535&f)*k+(((f>>>16)*k&65535)<<16)&4294967295)<<15|f>>>17))*D+(((f>>>16)*D&65535)<<16)&4294967295)<<13|x>>>19))+((5*(x>>>16)&65535)<<16)&4294967295))+((58964+(c>>>16)&65535)<<16);switch(f=0,y){case 3:f^=(255&g.charCodeAt(q+2))<<16;case 2:f^=(255&g.charCodeAt(q+1))<<8;case 1:x^=f=(65535&(f=(f=(65535&(f^=255&g.charCodeAt(q)))*k+(((f>>>16)*k&65535)<<16)&4294967295)<<15|f>>>17))*D+(((f>>>16)*D&65535)<<16)&4294967295}return x=2246822507*(65535&(x=(x^=g.length)^x>>>16))+((2246822507*(x>>>16)&65535)<<16)&4294967295,x=3266489909*(65535&(x^=x>>>13))+((3266489909*(x>>>16)&65535)<<16)&4294967295,(x^=x>>>16)>>>0}},Xa={exports:{},exports:function(g,s){for(var c,f=g.length,y=s^f,w=0;4<=f;)c=1540483477*(65535&(c=255&g.charCodeAt(w)|(255&g.charCodeAt(++w))<<8|(255&g.charCodeAt(++w))<<16|(255&g.charCodeAt(++w))<<24))+((1540483477*(c>>>16)&65535)<<16),y=1540483477*(65535&y)+((1540483477*(y>>>16)&65535)<<16)^1540483477*(65535&(c^=c>>>24))+((1540483477*(c>>>16)&65535)<<16),f-=4,++w;switch(f){case 3:y^=(255&g.charCodeAt(w+2))<<16;case 2:y^=(255&g.charCodeAt(w+1))<<8;case 1:y=1540483477*(65535&(y^=255&g.charCodeAt(w)))+((1540483477*(y>>>16)&65535)<<16)}return y=1540483477*(65535&(y^=y>>>13))+((1540483477*(y>>>16)&65535)<<16),(y^=y>>>15)>>>0}},ho=Qd.exports,Zl=Xa.exports,Lo.exports=ho,Lo.exports.murmur3=ho,Lo.exports.murmur2=Zl;var E=a(Lo.exports);class A{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(s,c,f,y){this.ids.push(M(s)),this.positions.push(c,f,y)}getPositions(s){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");var c=M(s);let f=0,y=this.ids.length-1;for(;f<y;){var w=f+y>>1;this.ids[w]>=c?y=w:f=1+w}for(var x=[];this.ids[f]===c;){var k=this.positions[3*f],D=this.positions[3*f+1],q=this.positions[3*f+2];x.push({index:k,start:D,end:q}),f++}return x}static serialize(y,c){var f=new Float64Array(y.ids),y=new Uint32Array(y.positions);return G(f,y,0,f.length-1),c&&c.push(f.buffer,y.buffer),{ids:f,positions:y}}static deserialize(s){var c=new A;return c.ids=s.ids,c.positions=s.positions,c.indexed=!0,c}}function M(g){var s=+g;return!isNaN(s)&&s<=Number.MAX_SAFE_INTEGER?s:E(String(g))}function G(g,s,c,f){for(;c<f;){var y=g[c+f>>1];let w=c-1,x=f+1;for(;;){for(;g[++w]<y;);for(;g[--x]>y;);if(w>=x)break;ee(g,w,x),ee(s,3*w,3*x),ee(s,3*w+1,3*x+1),ee(s,3*w+2,3*x+2)}x-c<f-x?(G(g,s,c,x),c=x+1):(G(g,s,x+1,f),f=x)}}function ee(g,s,c){var f=g[s];g[s]=g[c],g[c]=f}lr("FeaturePositionMap",A);class he{constructor(s,c){this.gl=s.gl,this.location=c}}class Ie extends he{constructor(s,c){super(s,c),this.current=0}set(s){this.current!==s&&(this.current=s,this.gl.uniform1f(this.location,s))}}class Ne extends he{constructor(s,c){super(s,c),this.current=[0,0,0,0]}set(s){s[0]===this.current[0]&&s[1]===this.current[1]&&s[2]===this.current[2]&&s[3]===this.current[3]||(this.current=s,this.gl.uniform4f(this.location,s[0],s[1],s[2],s[3]))}}class we extends he{constructor(s,c){super(s,c),this.current=Wi.transparent}set(s){s.r===this.current.r&&s.g===this.current.g&&s.b===this.current.b&&s.a===this.current.a||(this.current=s,this.gl.uniform4f(this.location,s.r,s.g,s.b,s.a))}}const De=new Float32Array(16);function nt(g){return[d(255*g.r,255*g.g),d(255*g.b,255*g.a)]}class at{constructor(s,c,f){this.value=s,this.uniformNames=c.map(y=>"u_"+y),this.type=f}setUniform(s,c,f){s.set(f.constantOr(this.value))}getBinding(s,c,f){return new(this.type==="color"?we:Ie)(s,c)}}class ut{constructor(s,c){this.uniformNames=c.map(f=>"u_"+f),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(s,c){this.pixelRatioFrom=c.pixelRatio,this.pixelRatioTo=s.pixelRatio,this.patternFrom=c.tlbr,this.patternTo=s.tlbr}setUniform(s,c,f,y){y=y==="u_pattern_to"?this.patternTo:y==="u_pattern_from"?this.patternFrom:y==="u_pixel_ratio_to"?this.pixelRatioTo:y==="u_pixel_ratio_from"?this.pixelRatioFrom:null,y&&s.set(y)}getBinding(s,c,f){return new(f.substr(0,9)==="u_pattern"?Ne:Ie)(s,c)}}class st{constructor(s,c,f,y){this.expression=s,this.type=f,this.maxValue=0,this.paintVertexAttributes=c.map(w=>({name:"a_"+w,type:"Float32",components:f==="color"?2:1,offset:0})),this.paintVertexArray=new y}populatePaintArray(s,k,f,y,w){var x=this.paintVertexArray.length,k=this.expression.evaluate(new vo(0),k,{},y,[],w);this.paintVertexArray.resize(s),this._setPaintValue(x,s,k)}updatePaintArray(s,c,f,y){f=this.expression.evaluate({zoom:0},f,y),this._setPaintValue(s,c,f)}_setPaintValue(s,c,f){if(this.type==="color"){var y=nt(f);for(let w=s;w<c;w++)this.paintVertexArray.emplace(w,y[0],y[1])}else{for(let w=s;w<c;w++)this.paintVertexArray.emplace(w,f);this.maxValue=Math.max(this.maxValue,Math.abs(f))}}upload(s){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=s.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class _t{constructor(s,c,f,y,w,x){this.expression=s,this.uniformNames=c.map(k=>`u_${k}_t`),this.type=f,this.useIntegerZoom=y,this.zoom=w,this.maxValue=0,this.paintVertexAttributes=c.map(k=>({name:"a_"+k,type:"Float32",components:f==="color"?4:2,offset:0})),this.paintVertexArray=new x}populatePaintArray(s,k,f,D,w){var x=this.expression.evaluate(new vo(this.zoom),k,{},D,[],w),k=this.expression.evaluate(new vo(this.zoom+1),k,{},D,[],w),D=this.paintVertexArray.length;this.paintVertexArray.resize(s),this._setPaintValue(D,s,x,k)}updatePaintArray(s,c,x,y){var w=this.expression.evaluate({zoom:this.zoom},x,y),x=this.expression.evaluate({zoom:this.zoom+1},x,y);this._setPaintValue(s,c,w,x)}_setPaintValue(s,c,f,y){if(this.type==="color"){var w=nt(f),x=nt(y);for(let k=s;k<c;k++)this.paintVertexArray.emplace(k,w[0],w[1],x[0],x[1])}else{for(let k=s;k<c;k++)this.paintVertexArray.emplace(k,f,y);this.maxValue=Math.max(this.maxValue,Math.abs(f),Math.abs(y))}}upload(s){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=s.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(s,c){c=this.useIntegerZoom?Math.floor(c.zoom):c.zoom,c=H(this.expression.interpolationFactor(c,this.zoom,this.zoom+1),0,1),s.set(c)}getBinding(s,c,f){return new Ie(s,c)}}class xt{constructor(s,c,f,y,w,x){this.expression=s,this.type=c,this.useIntegerZoom=f,this.zoom=y,this.layerId=x,this.zoomInPaintVertexArray=new w,this.zoomOutPaintVertexArray=new w}populatePaintArray(s,c,f){var y=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(s),this.zoomOutPaintVertexArray.resize(s),this._setPaintValues(y,s,c.patterns&&c.patterns[this.layerId],f)}updatePaintArray(s,c,f,y,w){this._setPaintValues(s,c,f.patterns&&f.patterns[this.layerId],w)}_setPaintValues(s,c,f,y){if(y&&f){var{min:f,mid:w,max:x}=f,k=y[f],D=y[w],q=y[x];if(k&&D&&q)for(let oe=s;oe<c;oe++)this.zoomInPaintVertexArray.emplace(oe,D.tl[0],D.tl[1],D.br[0],D.br[1],k.tl[0],k.tl[1],k.br[0],k.br[1],D.pixelRatio,k.pixelRatio),this.zoomOutPaintVertexArray.emplace(oe,D.tl[0],D.tl[1],D.br[0],D.br[1],q.tl[0],q.tl[1],q.br[0],q.br[1],D.pixelRatio,q.pixelRatio)}}upload(s){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=s.createVertexBuffer(this.zoomInPaintVertexArray,v.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=s.createVertexBuffer(this.zoomOutPaintVertexArray,v.members,this.expression.isStateDependent))}destroy(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()}}class At{constructor(s,c,f){this.binders={},this._buffers=[];var y,w,x,k,D,q,Y=[];for(const oe in s.paint._values)f(oe)&&(q=s.paint.get(oe))instanceof Ys&&Za(q.property.specification)&&(y=$t(oe,s.type),w=q.value,x=q.property.specification.type,k=q.property.useIntegerZoom,q=(q=q.property.specification["property-type"])==="cross-faded"||q==="cross-faded-data-driven",w.kind==="constant"?(this.binders[oe]=q?new ut(w.value,y):new at(w.value,y,x),Y.push("/u_"+oe)):w.kind==="source"||q?(D=Bt(oe,x,"source"),this.binders[oe]=q?new xt(w,x,k,c,D,s.id):new st(w,y,x,D),Y.push("/a_"+oe)):(q=Bt(oe,x,"composite"),this.binders[oe]=new _t(w,y,x,k,c,q),Y.push("/z_"+oe)));this.cacheKey=Y.sort().join("")}getMaxValue(s){return s=this.binders[s],s instanceof st||s instanceof _t?s.maxValue:0}populatePaintArrays(s,c,f,y,w){for(const k in this.binders){var x=this.binders[k];(x instanceof st||x instanceof _t||x instanceof xt)&&x.populatePaintArray(s,c,f,y,w)}}setConstantPatternPositions(s,c){for(const y in this.binders){var f=this.binders[y];f instanceof ut&&f.setConstantPatternPositions(s,c)}}updatePaintArrays(s,c,f,y,w){let x=!1;for(const Y in s)for(const oe of c.getPositions(Y)){var k=f.feature(oe.index);for(const ye in this.binders){var D,q=this.binders[ye];(q instanceof st||q instanceof _t||q instanceof xt)&&q.expression.isStateDependent===!0&&(D=y.paint.get(ye),q.expression=D.value,q.updatePaintArray(oe.start,oe.end,k,s[Y],w),x=!0)}}return x}defines(){var s=[];for(const f in this.binders){var c=this.binders[f];(c instanceof at||c instanceof ut)&&s.push(...c.uniformNames.map(y=>"#define HAS_UNIFORM_"+y))}return s}getBinderAttributes(){var s=[];for(const f in this.binders){var c=this.binders[f];if(c instanceof st||c instanceof _t)for(let y=0;y<c.paintVertexAttributes.length;y++)s.push(c.paintVertexAttributes[y].name);else if(c instanceof xt)for(let y=0;y<v.members.length;y++)s.push(v.members[y].name)}return s}getBinderUniforms(){var s=[];for(const f in this.binders){var c=this.binders[f];if(c instanceof at||c instanceof ut||c instanceof _t)for(const y of c.uniformNames)s.push(y)}return s}getPaintVertexBuffers(){return this._buffers}getUniforms(s,c){var f=[];for(const x in this.binders){var y,w=this.binders[x];if(w instanceof at||w instanceof ut||w instanceof _t)for(const k of w.uniformNames)c[k]&&(y=w.getBinding(s,c[k],k),f.push({name:k,property:x,binding:y}))}return f}setUniforms(s,c,f,y){for(var{name:w,property:x,binding:k}of c)this.binders[x].setUniform(k,y,f.get(x),w)}updatePaintBuffers(s){this._buffers=[];for(const y in this.binders){var c,f=this.binders[y];s&&f instanceof xt?(c=s.fromScale===2?f.zoomInPaintVertexBuffer:f.zoomOutPaintVertexBuffer)&&this._buffers.push(c):(f instanceof st||f instanceof _t)&&f.paintVertexBuffer&&this._buffers.push(f.paintVertexBuffer)}}upload(s){for(const f in this.binders){var c=this.binders[f];(c instanceof st||c instanceof _t||c instanceof xt)&&c.upload(s)}this.updatePaintBuffers()}destroy(){for(const c in this.binders){var s=this.binders[c];(s instanceof st||s instanceof _t||s instanceof xt)&&s.destroy()}}}class Ft{constructor(s,c,f=()=>!0){this.programConfigurations={};for(const y of s)this.programConfigurations[y.id]=new At(y,c,f);this.needsUpload=!1,this._featureMap=new A,this._bufferOffset=0}populatePaintArrays(s,c,f,y,w,x){for(const k in this.programConfigurations)this.programConfigurations[k].populatePaintArrays(s,c,y,w,x);c.id!==void 0&&this._featureMap.add(c.id,f,this._bufferOffset,s),this._bufferOffset=s,this.needsUpload=!0}updatePaintArrays(s,c,f,y){for(const w of f)this.needsUpload=this.programConfigurations[w.id].updatePaintArrays(s,this._featureMap,c,w,y)||this.needsUpload}get(s){return this.programConfigurations[s]}upload(s){if(this.needsUpload){for(const c in this.programConfigurations)this.programConfigurations[c].upload(s);this.needsUpload=!1}}destroy(){for(const s in this.programConfigurations)this.programConfigurations[s].destroy()}}function $t(g,s){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[g]||[g.replace(s+"-","").replace(/-/g,"_")]}function Bt(y,s,c){var f={color:{source:vp,composite:ec},number:{source:Hu,composite:vp}},y=(y=y,{"line-pattern":{source:ch,composite:ch},"fill-pattern":{source:ch,composite:ch},"fill-extrusion-pattern":{source:ch,composite:ch}}[y]);return y&&y[c]||f[s][c]}lr("ConstantBinder",at),lr("CrossFadedConstantBinder",ut),lr("SourceExpressionBinder",st),lr("CrossFadedCompositeBinder",xt),lr("CompositeExpressionBinder",_t),lr("ProgramConfiguration",At,{omit:["_buffers"]}),lr("ProgramConfigurationSet",Ft);const Zt=8192,Xt=Math.pow(2,14)-1,yr=-Xt-1;function xr(g){var s=Zt/g.extent,c=g.loadGeometry();for(let k=0;k<c.length;k++){var f=c[k];for(let D=0;D<f.length;D++){var y=f[D],w=Math.round(y.x*s),x=Math.round(y.y*s);y.x=H(w,yr,Xt),y.y=H(x,yr,Xt),(w<y.x||w>y.x+1||x<y.y||x>y.y+1)&&ne("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return c}function Dr(g,s){return{type:g.type,id:g.id,properties:g.properties,geometry:s?xr(g):[]}}function Jr(g,s,c,f,y){g.emplaceBack(2*s+(f+1)/2,2*c+(y+1)/2)}class an{constructor(s){this.zoom=s.zoom,this.overscaling=s.overscaling,this.layers=s.layers,this.layerIds=this.layers.map(c=>c.id),this.index=s.index,this.hasPattern=!1,this.layoutVertexArray=new Rs,this.indexArray=new dh,this.segments=new P,this.programConfigurations=new Ft(s.layers,s.zoom),this.stateDependentLayerIds=this.layers.filter(c=>c.isStateDependent()).map(c=>c.id)}populate(s,c,f){var y,w,x,k,D=this.layers[0],q=[];let Y=null,oe=!1;D.type==="circle"&&(Y=D.layout.get("circle-sort-key"),oe=!Y.isConstant());for({feature:y,id:w,index:x,sourceLayerIndex:k}of s){var ye,Ce=this.layers[0]._featureFilter.needGeometry,Pe=Dr(y,Ce);this.layers[0]._featureFilter.filter(new vo(this.zoom),Pe,f)&&(ye=oe?Y.evaluate(Pe,{},f):void 0,Ce={id:w,properties:y.properties,type:y.type,sourceLayerIndex:k,index:x,geometry:Ce?Pe.geometry:xr(y),patterns:{},sortKey:ye},q.push(Ce))}oe&&q.sort((Le,Je)=>Le.sortKey-Je.sortKey);for(const Le of q){var{geometry:Be,index:Ze,sourceLayerIndex:Ge}=Le,Fe=s[Ze].feature;this.addFeature(Le,Be,Ze,f),c.featureIndex.insert(Fe,Be,Ze,Ge,this.index)}}update(s,c,f){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(s,c,this.stateDependentLayers,f)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(s){this.uploaded||(this.layoutVertexBuffer=s.createVertexBuffer(this.layoutVertexArray,$b),this.indexBuffer=s.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(s),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(s,c,f,y){for(const D of c)for(const q of D){var w=q.x,x=q.y;if(!(w<0||w>=Zt||x<0||x>=Zt)){var k=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,s.sortKey);const Y=k.vertexLength;Jr(this.layoutVertexArray,w,x,-1,-1),Jr(this.layoutVertexArray,w,x,1,-1),Jr(this.layoutVertexArray,w,x,1,1),Jr(this.layoutVertexArray,w,x,-1,1),this.indexArray.emplaceBack(Y,Y+1,Y+2),this.indexArray.emplaceBack(Y,Y+3,Y+2),k.vertexLength+=4,k.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,s,f,{},y)}}function jr(g,s){for(let c=0;c<g.length;c++)if(oi(s,g[c]))return!0;for(let c=0;c<s.length;c++)if(oi(g,s[c]))return!0;return!!Tr(g,s)}function vr(g,s,c){return oi(g,s)||!!Jn(s,g,c)}
129function sn(g,s){if(g.length===1)return Tn(s,g[0]);for(let f=0;f<s.length;f++){var c=s[f];for(let y=0;y<c.length;y++)if(oi(g,c[y]))return!0}for(let f=0;f<g.length;f++)if(Tn(s,g[f]))return!0;for(let f=0;f<s.length;f++)if(Tr(g,s[f]))return!0;return!1}function yn(g,s,c){for(let y=0;y<s.length;y++){var f=s[y];if(3<=g.length){for(let w=0;w<f.length;w++)if(oi(g,f[w]))return!0}if((function(w,x,k){if(1<w.length){if(Tr(w,x))return 1;for(let D=0;D<x.length;D++)if(Jn(x[D],w,k))return 1}for(let D=0;D<w.length;D++)if(Jn(w[D],x,k))return 1})(g,f,c))return!0}return!1}function Tr(g,s){var c,f;if(g.length!==0&&s.length!==0)for(let D=0;D<g.length-1;D++){var y=g[D],w=g[D+1];for(let q=0;q<s.length-1;q++){var x=s[q],k=s[q+1];if(f=w,ue(c=y,x=x,k=k)!==ue(f,x,k)&&ue(c,f,x)!==ue(c,f,k))return 1}}}function Jn(g,s,c){var f=c*c;if(s.length===1)return g.distSqr(s[0])<f;for(let y=1;y<s.length;y++)if(Li(g,s[y-1],s[y])<f)return 1}function Li(g,s,c){var f=s.distSqr(c);return f===0||(f=((g.x-s.x)*(c.x-s.x)+(g.y-s.y)*(c.y-s.y))/f)<0?g.distSqr(s):1<f?g.distSqr(c):g.distSqr(c.sub(s)._mult(f)._add(s))}function Tn(g,s){let c=!1,f,y,w;for(let x=0;x<g.length;x++)for(let k=0,D=(f=g[x]).length-1;k<f.length;D=k++)y=f[k],w=f[D],y.y>s.y!=w.y>s.y&&s.x<(w.x-y.x)*(s.y-y.y)/(w.y-y.y)+y.x&&(c=!c);return c}function oi(g,s){let c=!1;for(let w=0,x=g.length-1;w<g.length;x=w++){var f=g[w],y=g[x];f.y>s.y!=y.y>s.y&&s.x<(y.x-f.x)*(s.y-f.y)/(y.y-f.y)+f.x&&(c=!c)}return c}function Dn(g,s,c,f,y){for(const x of g)if(s<=x.x&&c<=x.y&&f>=x.x&&y>=x.y)return!0;var w=[new h(s,c),new h(s,y),new h(f,y),new h(f,c)];if(2<g.length){for(const x of w)if(oi(g,x))return!0}for(let x=0;x<g.length-1;x++)if((function(k,D,q){var Y=q[0],oe=q[2];if(!(k.x<Y.x&&D.x<Y.x||k.x>oe.x&&D.x>oe.x||k.y<Y.y&&D.y<Y.y||k.y>oe.y&&D.y>oe.y))return Y=ue(k,D,q[0]),Y!==ue(k,D,q[1])||Y!==ue(k,D,q[2])||Y!==ue(k,D,q[3])})(g[x],g[x+1],w))return!0;return!1}function bi(g,s,c){var f=s.paint.get(g).value;return f.kind==="constant"?f.value:c.programConfigurations.get(s.id).getMaxValue(g)}function li(g){return Math.sqrt(g[0]*g[0]+g[1]*g[1])}function Ln(g,s,c,f,y){if(!s[0]&&!s[1])return g;var w=h.convert(s)._mult(y),x=(c==="viewport"&&w._rotate(-f),[]);for(let D=0;D<g.length;D++){var k=g[D];x.push(k.sub(w))}return x}function _o(g,s){var c=[];for(let D=0;D<g.length;D++){var f=g[D],y=[];for(let q=0;q<f.length;q++){var x=f[q-1],w=f[q],k=f[q+1],x=q===0?new h(0,0):w.sub(x)._unit()._perp(),k=q===f.length-1?new h(0,0):k.sub(w)._unit()._perp(),x=x._add(k)._unit(),k=x.x*k.x+x.y*k.y;k!=0&&x._mult(1/k),y.push(x._mult(s)._add(w))}c.push(y)}return c}lr("CircleBucket",an,{omit:["layers"]});let ra,Mc;var Ps={get paint(){return Mc=Mc||new hs({"circle-radius":new dn(_e.paint_circle["circle-radius"]),"circle-color":new dn(_e.paint_circle["circle-color"]),"circle-blur":new dn(_e.paint_circle["circle-blur"]),"circle-opacity":new dn(_e.paint_circle["circle-opacity"]),"circle-translate":new on(_e.paint_circle["circle-translate"]),"circle-translate-anchor":new on(_e.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new on(_e.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new on(_e.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new dn(_e.paint_circle["circle-stroke-width"]),"circle-stroke-color":new dn(_e.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new dn(_e.paint_circle["circle-stroke-opacity"])})},get layout(){return ra=ra||new hs({"circle-sort-key":new dn(_e.layout_circle["circle-sort-key"])})}},Hi=1e-6,lo=typeof Float32Array<"u"?Float32Array:Array;function cl(){var g=new lo(9);return lo!=Float32Array&&(g[1]=0,g[2]=0,g[3]=0,g[5]=0,g[6]=0,g[7]=0),g[0]=1,g[4]=1,g[8]=1,g}function co(g){return g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1,g}function na(g,Fe,c){var f=Fe[0],y=Fe[1],w=Fe[2],x=Fe[3],k=Fe[4],D=Fe[5],q=Fe[6],Y=Fe[7],oe=Fe[8],ye=Fe[9],Ce=Fe[10],Pe=Fe[11],Be=Fe[12],Ze=Fe[13],Ge=Fe[14],Fe=Fe[15],Le=c[0],Je=c[1],ht=c[2],St=c[3];return g[0]=Le*f+Je*k+ht*oe+St*Be,g[1]=Le*y+Je*D+ht*ye+St*Ze,g[2]=Le*w+Je*q+ht*Ce+St*Ge,g[3]=Le*x+Je*Y+ht*Pe+St*Fe,Le=c[4],Je=c[5],ht=c[6],St=c[7],g[4]=Le*f+Je*k+ht*oe+St*Be,g[5]=Le*y+Je*D+ht*ye+St*Ze,g[6]=Le*w+Je*q+ht*Ce+St*Ge,g[7]=Le*x+Je*Y+ht*Pe+St*Fe,Le=c[8],Je=c[9],ht=c[10],St=c[11],g[8]=Le*f+Je*k+ht*oe+St*Be,g[9]=Le*y+Je*D+ht*ye+St*Ze,g[10]=Le*w+Je*q+ht*Ce+St*Ge,g[11]=Le*x+Je*Y+ht*Pe+St*Fe,Le=c[12],Je=c[13],ht=c[14],St=c[15],g[12]=Le*f+Je*k+ht*oe+St*Be,g[13]=Le*y+Je*D+ht*ye+St*Ze,g[14]=Le*w+Je*q+ht*Ce+St*Ge,g[15]=Le*x+Je*Y+ht*Pe+St*Fe,g}Math.hypot||(Math.hypot=function(){for(var g=0,s=arguments.length;s--;)g+=arguments[s]*arguments[s];return Math.sqrt(g)});function Ai(g,s,c,f,y){return s=1/Math.tan(s/2),g[0]=s/c,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=s,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[11]=-1,g[12]=0,g[13]=0,g[15]=0,y!=null&&y!==1/0?(g[10]=(y+f)*(c=1/(f-y)),g[14]=2*y*f*c):(g[10]=-1,g[14]=-2*f),g}function Fi(g,s,c,f,y,w,x){var k=1/(s-c),D=1/(f-y),q=1/(w-x);return g[0]=-2*k,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=-2*D,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=2*q,g[11]=0,g[12]=(s+c)*k,g[13]=(y+f)*D,g[14]=(x+w)*q,g[15]=1,g}Qd=na;function Ks(){var g=new lo(3);return lo!=Float32Array&&(g[0]=0,g[1]=0,g[2]=0),g}function Do(g,s,c){var f=new lo(3);return f[0]=g,f[1]=s,f[2]=c,f}
vendor: 4,130 bytes, line 129
129function Ta(g,s){var y=s[0],c=s[1],f=s[2],y=y*y+c*c+f*f;return 0<y&&(y=1/Math.sqrt(y)),g[0]=s[0]*y,g[1]=s[1]*y,g[2]=s[2]*y,g}function Nc(g,s){return g[0]*s[0]+g[1]*s[1]+g[2]*s[2]}function ps(g,w,D){var f=w[0],y=w[1],w=w[2],x=D[0],k=D[1],D=D[2];return g[0]=y*D-w*k,g[1]=w*x-f*D,g[2]=f*k-y*x,g}function ia(g,s,c){return g[0]=s[0]-c[0],g[1]=s[1]-c[1],g[2]=s[2]-c[2],g}function ic(g,x,c){var f=x[0],y=x[1],w=x[2],x=x[3];return g[0]=c[0]*f+c[4]*y+c[8]*w+c[12]*x,g[1]=c[1]*f+c[5]*y+c[9]*w+c[13]*x,g[2]=c[2]*f+c[6]*y+c[10]*w+c[14]*x,g[3]=c[3]*f+c[7]*y+c[11]*w+c[15]*x,g}Ks();function Ol(g,s,c){return g[0]=s[0]*c[0],g[1]=s[1]*c[1],g[2]=s[2]*c[2],g[3]=s[3]*c[3],g}function uo(){var g=new lo(4);return lo!=Float32Array&&(g[0]=0,g[1]=0,g[2]=0),g[3]=1,g}Xa=new lo(4),lo!=Float32Array&&(Xa[0]=0,Xa[1]=0,Xa[2]=0,Xa[3]=0),Ks(),Do(1,0,0),Do(0,1,0),uo(),uo(),cl();function jo(c){var s=c[0],c=c[1];return s*s+c*c}ho=new lo(2),lo!=Float32Array&&(ho[0]=0,ho[1]=0);class Dc extends Jl{constructor(s){super(s,Ps)}createBucket(s){return new an(s)}queryRadius(s){return bi("circle-radius",this,s)+bi("circle-stroke-width",this,s)+li(this.paint.get("circle-translate"))}queryIntersectsFeature(q,Y,f,y,w,x,k,D){var q=Ln(q,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),x.angle,k),Y=this.paint.get("circle-radius").evaluate(Y,f)+this.paint.get("circle-stroke-width").evaluate(Y,f),oe=this.paint.get("circle-pitch-alignment")==="map",ye=oe?q:xo(q,D),Ce=oe?Y*k:Y;for(const Ze of y)for(const Ge of Ze){var Pe=oe?Ge:Lc(Ge,D);let Fe=Ce;var Be=ic([],[Ge.x,Ge.y,0,1],D);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?Fe*=Be[3]/x.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(Fe*=x.cameraToCenterDistance/Be[3]),vr(ye,Pe,Fe))return!0}return!1}}function Lc(g,s){return g=ic([],[g.x,g.y,0,1],s),new h(g[0]/g[3],g[1]/g[3])}function xo(g,s){return g.map(c=>Lc(c,s))}class cu extends an{}lr("HeatmapBucket",cu,{omit:["layers"]});let _f;var Kv={get paint(){return _f=_f||new hs({"heatmap-radius":new dn(_e.paint_heatmap["heatmap-radius"]),"heatmap-weight":new dn(_e.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new on(_e.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Du(_e.paint_heatmap["heatmap-color"]),"heatmap-opacity":new on(_e.paint_heatmap["heatmap-opacity"])})}};function Ml(g,{width:s,height:c},f,y){if(y){if(y instanceof Uint8ClampedArray)y=new Uint8Array(y.buffer);else if(y.length!==s*c*f)throw new RangeError(`mismatched image size. expected: ${y.length} but got: `+s*c*f)}else y=new Uint8Array(s*c*f);return g.width=s,g.height=c,g.data=y,g}function hh(g,{width:s,height:c},f){var y;s===g.width&&c===g.height||(Nl(g,y=Ml({},{width:s,height:c},f),{x:0,y:0},{x:0,y:0},{width:Math.min(g.width,s),height:Math.min(g.height,c)},f),g.width=s,g.height=c,g.data=y.data)}function Nl(g,s,c,f,y,w){if(y.width!==0&&y.height!==0){if(y.width>g.width||y.height>g.height||c.x>g.width-y.width||c.y>g.height-y.height)throw new RangeError("out of range source coordinates for image copy");if(y.width>s.width||y.height>s.height||f.x>s.width-y.width||f.y>s.height-y.height)throw new RangeError("out of range destination coordinates for image copy");var x=g.data,k=s.data;if(x===k)throw new Error("srcData equals dstData, so image is already copied");for(let Y=0;Y<y.height;Y++){var D=((c.y+Y)*g.width+c.x)*w,q=((f.y+Y)*s.width+f.x)*w;for(let oe=0;oe<y.width*w;oe++)k[q+oe]=x[D+oe]}}}class Zo{constructor(s,c){Ml(this,s,1,c)}resize(s){hh(this,s,1)}clone(){return new Zo({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(s,c,f,y,w){Nl(s,c,f,y,w,1)}}class To{constructor(s,c){Ml(this,s,4,c)}resize(s){hh(this,s,4)}replace(s,c){c?this.data.set(s):s instanceof Uint8ClampedArray?this.data=new Uint8Array(s.buffer):this.data=s}clone(){return new To({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(s,c,f,y,w){Nl(s,c,f,y,w,4)}}function gs(g){const s={};var c=g.resolution||256,f=g.clips?g.clips.length:1;const y=g.image||new To({width:c,height:f});
129if(Math.log(c)/Math.LN2%1!=0)throw new Error("width is not a power of 2 - "+c);var w=(Y,oe,ye)=>{s[g.evaluationKey]=ye,ye=g.expression.evaluate(s),y.data[Y+oe+0]=Math.floor(255*ye.r/ye.a),y.data[Y+oe+1]=Math.floor(255*ye.g/ye.a),y.data[Y+oe+2]=Math.floor(255*ye.b/ye.a),y.data[Y+oe+3]=Math.floor(255*ye.a)};if(g.clips)for(let Y=0,oe=0;Y<f;++Y,oe+=4*c)for(let ye=0,Ce=0;ye<c;ye++,Ce+=4){var x=ye/(c-1),{start:k,end:D}=g.clips[Y];w(oe,Ce,k*(1-x)+D*x)}else for(let Y=0,oe=0;Y<c;Y++,oe+=4){var q=Y/(c-1);w(0,oe,q)}return y}lr("AlphaImage",Zo),lr("RGBAImage",To);class H_ extends Jl{createBucket(s){return new cu(s)}constructor(s){super(s,Kv),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(s){s==="heatmap-color"&&this._updateColorRamp()}_updateColorRamp(){var s=this._transitionablePaint._values["heatmap-color"].value.expression;this.colorRamp=gs({expression:s,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}queryRadius(){return 0}queryIntersectsFeature(){return!1}hasOffscreenPass(){return this.paint.get("heatmap-opacity")!==0&&this.visibility!=="none"}}let Lg;var F_={get paint(){return Lg=Lg||new hs({"hillshade-illumination-direction":new on(_e.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new on(_e.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new on(_e.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new on(_e.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new on(_e.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new on(_e.paint_hillshade["hillshade-accent-color"])})}};class bC extends Jl{constructor(s){super(s,F_)}hasOffscreenPass(){return this.paint.get("hillshade-exaggeration")!==0&&this.visibility!=="none"}}const Hn=ta([{name:"a_pos",components:2,type:"Int16"}],4).members;Zl={exports:{}};function U_(g,s,c){c=c||2;var f,y,w,x,k,D=s&&s.length,q=D?s[0]*c:g.length,Y=zb(g,0,q,c,!0),oe=[];if(Y&&Y.next!==Y.prev){if(D&&(Y=(function(Be,Ze,Ge,Fe){var Le,Je,ht,St,Lt=[];for(Le=0,Je=Ze.length;Le<Je;Le++)St=Ze[Le]*Fe,ht=Le<Je-1?Ze[Le+1]*Fe:Be.length,(St=zb(Be,St,ht,Fe,!1))===St.next&&(St.steiner=!0),Lt.push((function(qt){for(var jt=qt,Wt=qt;(jt.x<Wt.x||jt.x===Wt.x&&jt.y<Wt.y)&&(Wt=jt),jt=jt.next,jt!==qt;);return Wt})(St));for(Lt.sort(Cd),Le=0;Le<Lt.length;Le++)Ge=(function(qt,jt){var Wt=(function(tr,dr){var cr,Kt=dr,Gr=tr.x,$r=tr.y,Wr=-1/0;do if($r<=Kt.y&&$r>=Kt.next.y&&Kt.next.y!==Kt.y){var kn=Kt.x+($r-Kt.y)*(Kt.next.x-Kt.x)/(Kt.next.y-Kt.y);if(kn<=Gr&&Wr<kn&&(Wr=kn,cr=Kt.x<Kt.next.x?Kt:Kt.next,kn===Gr))return cr}while(Kt=Kt.next,Kt!==dr);if(!cr)return null;var ci,$n=cr,Zi=cr.x,fn=cr.y,wn=1/0;for(Kt=cr;Gr>=Kt.x&&Kt.x>=Zi&&Gr!==Kt.x&&Zs($r<fn?Gr:Wr,$r,Zi,fn,$r<fn?Wr:Gr,$r,Kt.x,Kt.y)&&(ci=Math.abs($r-Kt.y)/(Gr-Kt.x),ul(Kt,tr))&&(ci<wn||ci===wn&&(Kt.x>cr.x||Kt.x===cr.x&&(function(Ri,So){return ga(Ri.prev,Ri,So.prev)<0&&ga(So.next,Ri,Ri.next)<0})(cr,Kt)))&&(cr=Kt,wn=ci),Kt=Kt.next,Kt!==$n;);return cr})(qt,jt);return Wt?(Bu(qt=bf(Wt,qt),qt.next),Bu(Wt,Wt.next)):jt})(Lt[Le],Ge);return Ge})(g,s,Y,c)),g.length>80*c){for(var ye=f=g[0],Ce=y=g[1],Pe=c;Pe<q;Pe+=c)(w=g[Pe])<ye&&(ye=w),(x=g[Pe+1])<Ce&&(Ce=x),f<w&&(f=w),y<x&&(y=x);k=(k=Math.max(f-ye,y-Ce))!==0?32767/k:0}Hc(Y,oe,c,ye,Ce,k,0)}return oe}function zb(g,s,c,f,y){var w,x;if(y===0<z_(g,s,c,f))for(w=s;w<c;w+=f)x=$_(w,g[w],g[w+1],x);else for(w=c-f;s<=w;w-=f)x=$_(w,g[w],g[w+1],x);return x&&Hg(x,x.next)&&(xy(x),x=x.next),x}function Bu(g,s){if(!g)return g;s=s||g;var c,f=g;do if(c=!1,f.steiner||!Hg(f,f.next)&&ga(f.prev,f,f.next)!==0)f=f.next;else{if(xy(f),(f=s=f.prev)===f.next)break;c=!0}while(c||f!==s);return s}function Hc(g,s,c,f,y,w,x){if(g){if(!x&&w){for(var k=g,D=f,q=y,Y=w,oe=k;oe.z===0&&(oe.z=Cy(oe.x,oe.y,D,q,Y)),oe.prevZ=oe.prev,oe.nextZ=oe.next,(oe=oe.next)!==k;);oe.prevZ.nextZ=null,oe.prevZ=null;var ye,Ce,Pe,Be,Ze,Ge,Fe,Le,Je=oe,ht=1;do for(Ce=Je,Ze=Je=null,Ge=0;Ce;){for(Ge++,Pe=Ce,ye=Fe=0;ye<ht&&(Fe++,Pe=Pe.nextZ);ye++);for(Le=ht;0<Fe||0<Le&&Pe;)Fe!==0&&(Le===0||!Pe||Ce.z<=Pe.z)?(Ce=(Be=Ce).nextZ,Fe--):(Pe=(Be=Pe).nextZ,Le--),Ze?Ze.nextZ=Be:Je=Be,Be.prevZ=Ze,Ze=Be;Ce=Pe}while(Ze.nextZ=null,ht*=2,1<Ge)}for(var St,Lt,qt=g;g.prev!==g.next;)if(St=g.prev,Lt=g.next,w?(function(jt,Wt,tr,dr){var cr=jt.prev,Kt=jt,Gr=jt.next;if(!(0<=ga(cr,Kt,Gr))){for(var $r=cr.x,Wr=Kt.x,kn=Gr.x,ci=cr.y,$n=Kt.y,Zi=Gr.y,fn=$r<Wr?$r<kn?$r:kn:Wr<kn?Wr:kn,wn=ci<$n?ci<Zi?ci:Zi:$n<Zi?$n:Zi,Ri=Wr<$r?kn<$r?$r:kn:kn<Wr?Wr:kn,So=$n<ci?Zi<ci?ci:Zi:Zi<$n?$n:Zi,Ll=Cy(fn,wn,Wt,tr,dr),In=Cy(Ri,So,Wt,tr,dr),Pi=jt.prevZ,Bn=jt.nextZ;Pi&&Pi.z>=Ll&&Bn&&Bn.z<=In;){if(Pi.x>=fn&&Pi.x<=Ri&&Pi.y>=wn&&Pi.y<=So&&Pi!==cr&&Pi!==Gr&&Zs($r,ci,Wr,$n,kn,Zi,Pi.x,Pi.y)&&0<=ga(Pi.prev,Pi,Pi.next)||(Pi=Pi.prevZ,Bn.x>=fn&&Bn.x<=Ri&&Bn.y>=wn&&Bn.y<=So&&Bn!==cr&&Bn!==Gr&&Zs($r,ci,Wr,$n,kn,Zi,Bn.x,Bn.y)&&0<=ga(Bn.prev,Bn,Bn.next)))return;Bn=Bn.nextZ}for(;Pi&&Pi.z>=Ll;){if(Pi.x>=fn&&Pi.x<=Ri&&Pi.y>=wn&&Pi.y<=So&&Pi!==cr&&Pi!==Gr&&Zs($r,ci,Wr,$n,kn,Zi,Pi.x,Pi.y)&&0<=ga(Pi.prev,Pi,Pi.next))return;Pi=Pi.prevZ}for(;Bn&&Bn.z<=In;){if(Bn.x>=fn&&Bn.x<=Ri&&Bn.y>=wn&&Bn.y<=So&&Bn!==cr&&Bn!==Gr&&Zs($r,ci,Wr,$n,kn,Zi,Bn.x,Bn.y)&&0<=ga(Bn.prev,Bn,Bn.next))return;Bn=Bn.nextZ}return 1}})(g,f,y,w):(function(dr){var Wt=dr.prev,tr=dr,dr=dr.next;if(!(0<=ga(Wt,tr,dr))){for(var cr=Wt.x,Kt=tr.x,Gr=dr.x,$r=Wt.y,Wr=tr.y,kn=dr.y,ci=cr<Kt?cr<Gr?cr:Gr:Kt<Gr?Kt:Gr,$n=$r<Wr?$r<kn?$r:kn:Wr<kn?Wr:kn,Zi=Kt<cr?Gr<cr?cr:Gr:Gr<Kt?Kt:Gr,fn=Wr<$r?kn<$r?$r:kn:kn<Wr?Wr:kn,wn=dr.next;wn!==Wt;){if(wn.x>=ci&&wn.x<=Zi&&wn.y>=$n&&wn.y<=fn&&Zs(cr,$r,Kt,Wr,Gr,kn,wn.x,wn.y)&&0<=ga(wn.prev,wn,wn.next))return;wn=wn.next}return 1}})(g))s.push(St.i/c|0),s.push(g.i/c|0),s.push(Lt.i/c|0),xy(g),g=Lt.next,qt=Lt.next;else if((g=Lt)===qt){x?x===1?Hc(g=(function(jt,Wt,tr){var dr=jt;do var cr=dr.prev,Kt=dr.next.next;while(!Hg(cr,Kt)&&B_(cr,dr,dr.next,Kt)&&ul(cr,Kt)&&ul(Kt,cr)&&(Wt.pu
129sh(cr.i/tr|0),Wt.push(dr.i/tr|0),Wt.push(Kt.i/tr|0),xy(dr),xy(dr.next),dr=jt=Kt),dr=dr.next,dr!==jt);return Bu(dr)})(Bu(g),s,c),s,c,f,y,w,2):x===2&&(function(jt,Wt,tr,dr,cr,Kt){var Gr=jt;do for(var $r,Wr=Gr.next.next;Wr!==Gr.prev;){if(Gr.i!==Wr.i&&(function(kn,ci){return kn.next.i!==ci.i&&kn.prev.i!==ci.i&&!(function($n,Zi){var fn=$n;do if(fn.i!==$n.i&&fn.next.i!==$n.i&&fn.i!==Zi.i&&fn.next.i!==Zi.i&&B_(fn,fn.next,$n,Zi))return 1;while(fn=fn.next,fn!==$n)})(kn,ci)&&(ul(kn,ci)&&ul(ci,kn)&&(function($n,Zi){for(var fn=$n,wn=!1,Ri=($n.x+Zi.x)/2,So=($n.y+Zi.y)/2;fn.y>So!=fn.next.y>So&&fn.next.y!==fn.y&&Ri<(fn.next.x-fn.x)*(So-fn.y)/(fn.next.y-fn.y)+fn.x&&(wn=!wn),fn=fn.next,fn!==$n;);return wn})(kn,ci)&&(ga(kn.prev,kn,ci.prev)||ga(kn,ci.prev,ci))||Hg(kn,ci)&&0<ga(kn.prev,kn,kn.next)&&0<ga(ci.prev,ci,ci.next))})(Gr,Wr))return $r=bf(Gr,Wr),Gr=Bu(Gr,Gr.next),$r=Bu($r,$r.next),Hc(Gr,Wt,tr,dr,cr,Kt,0),Hc($r,Wt,tr,dr,cr,Kt,0);Wr=Wr.next}while(Gr=Gr.next,Gr!==jt)})(g,s,c,f,y,w):Hc(Bu(g),s,c,f,y,w,1);break}}}function Cd(g,s){return g.x-s.x}function Cy(g,s,c,f,y){return(g=1431655765&((g=858993459&((g=252645135&((g=16711935&((g=(g-c)*y|0)|g<<8))|g<<4))|g<<2))|g<<1))|(s=1431655765&((s=858993459&((s=252645135&((s=16711935&((s=(s-f)*y|0)|s<<8))|s<<4))|s<<2))|s<<1))<<1}function Zs(g,s,c,f,y,w,x,k){return(g-x)*(w-k)<=(y-x)*(s-k)&&(c-x)*(s-k)<=(g-x)*(f-k)&&(y-x)*(f-k)<=(c-x)*(w-k)}function ga(g,s,c){return(s.y-g.y)*(c.x-s.x)-(s.x-g.x)*(c.y-s.y)}function Hg(g,s){return g.x===s.x&&g.y===s.y}function B_(g,s,c,f){var y=Xv(ga(g,s,c)),w=Xv(ga(g,s,f)),x=Xv(ga(c,f,g)),k=Xv(ga(c,f,s));return y!==w&&x!==k||y===0&&Zv(g,c,s)||w===0&&Zv(g,f,s)||x===0&&Zv(c,g,f)||!(k!==0||!Zv(c,s,f))}function Zv(g,s,c){return s.x<=Math.max(g.x,c.x)&&s.x>=Math.min(g.x,c.x)&&s.y<=Math.max(g.y,c.y)&&s.y>=Math.min(g.y,c.y)}function Xv(g){return 0<g?1:g<0?-1:0}function ul(g,s){return ga(g.prev,g,g.next)<0?0<=ga(g,s,g.next)&&0<=ga(g,g.prev,s):ga(g,s,g.prev)<0||ga(g,g.next,s)<0}function bf(g,s){var c=new wf(g.i,g.x,g.y),f=new wf(s.i,s.x,s.y),y=g.next,w=s.prev;return(g.next=s).prev=g,(c.next=y).prev=c,(f.next=c).prev=f,(w.next=f).prev=w,f}function $_(g,s,c,f){return g=new wf(g,s,c),f?(g.next=f.next,(g.prev=f).next.prev=g,f.next=g):(g.prev=g).next=g,g}function xy(g){g.next.prev=g.prev,g.prev.next=g.next,g.prevZ&&(g.prevZ.nextZ=g.nextZ),g.nextZ&&(g.nextZ.prevZ=g.prevZ)}function wf(g,s,c){this.i=g,this.x=s,this.y=c,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function z_(g,s,c,f){for(var y=0,w=s,x=c-f;w<c;w+=f)y+=(g[x]-g[w])*(g[w+1]+g[x+1]),x=w;return y}
vendor: 7,859 bytes, line 129
129Zl.exports=U_,(Zl.exports.default=U_).deviation=function(g,s,c,f){var y=s&&s.length,w=y?s[0]*c:g.length,x=Math.abs(z_(g,0,w,c));if(y)for(var k=0,D=s.length;k<D;k++){var q=s[k]*c,Y=k<D-1?s[k+1]*c:g.length;x-=Math.abs(z_(g,q,Y,c))}for(var oe=0,k=0;k<f.length;k+=3){var ye=f[k]*c,Ce=f[k+1]*c,Pe=f[k+2]*c;oe+=Math.abs((g[ye]-g[Pe])*(g[1+Ce]-g[1+ye])-(g[ye]-g[Ce])*(g[1+Pe]-g[1+ye]))}return x===0&&oe===0?0:Math.abs((oe-x)/x)},U_.flatten=function(g){for(var s=g[0][0].length,c={vertices:[],holes:[],dimensions:s},f=0,y=0;y<g.length;y++){for(var w=0;w<g[y].length;w++)for(var x=0;x<s;x++)c.vertices.push(g[y][w][x]);0<y&&(f+=g[y-1].length,c.holes.push(f))}return c};var Ty=a(Zl.exports);function j_(g,s,c,f,y){(function w(x,k,D,q,Y){for(;D<q;){600<q-D&&(oe=q-D+1,Be=k-D+1,Ce=Math.log(oe),ye=.5*Math.exp(2*Ce/3),Ce=.5*Math.sqrt(Ce*ye*(oe-ye)/oe)*(Be-oe/2<0?-1:1),Pe=Math.max(D,Math.floor(k-Be*ye/oe+Ce)),Be=Math.min(q,Math.floor(k+(oe-Be)*ye/oe+Ce)),w(x,k,Pe,Be,Y));var oe,ye,Ce,Pe,Be,Ze=x[k],Ge=D,Fe=q;for(Fg(x,D,k),0<Y(x[q],Ze)&&Fg(x,D,q);Ge<Fe;){for(Fg(x,Ge,Fe),Ge++,Fe--;Y(x[Ge],Ze)<0;)Ge++;for(;0<Y(x[Fe],Ze);)Fe--}Y(x[D],Ze)===0?Fg(x,D,Fe):Fg(x,++Fe,q),Fe<=k&&(D=Fe+1),k<=Fe&&(q=Fe-1)}})(g,s,c,f||g.length-1,y||V_)}function Fg(g,s,c){var f=g[s];g[s]=g[c],g[c]=f}function V_(g,s){return g<s?-1:s<g?1:0}function fh(g,s){var c=g.length;if(c<=1)return[g];var f=[];let y,w;for(let k=0;k<c;k++){var x=(function(D){let q=0;for(let Y=0,oe=D.length,ye=oe-1,Ce,Pe;Y<oe;ye=Y++)Ce=D[Y],Pe=D[ye],q+=(Pe.x-Ce.x)*(Ce.y+Pe.y);return q})(g[k]);x!==0&&(g[k].area=Math.abs(x),(w=w===void 0?x<0:w)===x<0?(y&&f.push(y),y=[g[k]]):y.push(g[k]))}if(y&&f.push(y),1<s)for(let k=0;k<f.length;k++)f[k].length<=s||(j_(f[k],s,1,f[k].length-1,WS),f[k]=f[k].slice(0,s));return f}function WS(g,s){return s.area-g.area}function ph(g,s,c){var f=c.patternDependencies;let y=!1;for(const x of s){var w=x.paint.get(g+"-pattern"),w=(w.isConstant()||(y=!0),w.constantOr(null));w&&(y=!0,f[w.to]=!0,f[w.from]=!0)}return y}function q_(g,s,c,f,y){var w=y.patternDependencies;for(const q of s){var x,k,D=q.paint.get(g+"-pattern").value;D.kind!=="constant"&&(x=D.evaluate({zoom:f-1},c,{},y.availableImages),k=D.evaluate({zoom:f},c,{},y.availableImages),D=D.evaluate({zoom:f+1},c,{},y.availableImages),x=x&&x.name?x.name:x,k=k&&k.name?k.name:k,D=D&&D.name?D.name:D,w[x]=!0,w[k]=!0,w[D]=!0,c.patterns[q.id]={min:x,mid:k,max:D})}return c}class Qv{constructor(s){this.zoom=s.zoom,this.overscaling=s.overscaling,this.layers=s.layers,this.layerIds=this.layers.map(c=>c.id),this.index=s.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new rc,this.indexArray=new dh,this.indexArray2=new Dg,this.programConfigurations=new Ft(s.layers,s.zoom),this.segments=new P,this.segments2=new P,this.stateDependentLayerIds=this.layers.filter(c=>c.isStateDependent()).map(c=>c.id)}populate(s,c,f){this.hasPattern=ph("fill",this.layers,c);var y,w,x,k,D=this.layers[0].layout.get("fill-sort-key"),q=!D.isConstant(),Y=[];for({feature:y,id:w,index:x,sourceLayerIndex:k}of s){var oe,ye=this.layers[0]._featureFilter.needGeometry,Ce=Dr(y,ye);this.layers[0]._featureFilter.filter(new vo(this.zoom),Ce,f)&&(oe=q?D.evaluate(Ce,{},f,c.availableImages):void 0,ye={id:w,properties:y.properties,type:y.type,sourceLayerIndex:k,index:x,geometry:ye?Ce.geometry:xr(y),patterns:{},sortKey:oe},Y.push(ye))}q&&Y.sort((Fe,Le)=>Fe.sortKey-Le.sortKey);for(const Fe of Y){var{geometry:Pe,index:Be,sourceLayerIndex:Ze}=Fe,Ge=(this.hasPattern?(Ge=q_("fill",this.layers,Fe,this.zoom,c),this.patternFeatures.push(Ge)):this.addFeature(Fe,Pe,Be,f,{}),s[Be].feature);c.featureIndex.insert(Ge,Pe,Be,Ze,this.index)}}update(s,c,f){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(s,c,this.stateDependentLayers,f)}addFeatures(s,c,f){for(const y of this.patternFeatures)this.addFeature(y,y.geometry,y.index,c,f)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(s){this.uploaded||(this.layoutVertexBuffer=s.createVertexBuffer(this.layoutVertexArray,Hn),this.indexBuffer=s.createIndexBuffer(this.indexArray),this.indexBuffer2=s.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(s),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(s,c,f,y,w){for(const Ce of fh(c,500)){let Pe=0;for(const Be of Ce)Pe+=Be.length;var x=this.segments.prepareSegment(Pe,this.layoutVertexArray,this.indexArray),k=x.vertexLength,D=[],q=[];for(const Be of Ce)if(Be.length!==0){Be!==Ce[0]&&q.push(D.length/2);var Y=this.segments2.prepareSegment(Be.length,this.layoutVertexArray,this.indexArray2),oe=Y.vertexLength;this.layoutVertexArray.emplaceBack(Be[0].x,Be[0].y),this.indexArray2.emplaceBack(oe+Be.length-1,oe),D.push(Be[0].x),D.push(Be[0].y);for(let Ze=1;Ze<Be.length;Ze++)this.layoutVertexArray.emplaceBack(Be[Ze].x,Be[Ze].y),this.indexArray2.emplaceBack(oe+Ze-1,oe+Ze),D.push(Be[Ze].x),D.push(Be[Ze].y);Y.vertexLength+=Be.length,Y.primitiveLength+=Be.length}var ye=Ty(D,q);for(let Be=0;Be<ye.length;Be+=3)this.indexArray.emplaceBack(k+ye[Be],k+ye[Be+1],k+ye[Be+2]);x.vertexLength+=Pe,x.primitiveLength+=ye.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,s,f,w,y)}}lr("FillBucket",Qv,{omit:["layers","patternFeatures"]});let G_,wC;var KS={get paint(){return wC=wC||new hs({"fill-antialias":new on(_e.paint_fill["fill-antialias"]),"fill-opacity":new dn(_e.paint_fill["fill-opacity"]),"fill-color":new dn(_e.paint_fill["fill-color"]),"fill-outline-color":new dn(_e.paint_fill["fill-outline-color"]),"fill-translate":new on(_e.paint_fill["fill-translate"]),"fill-translate-anchor":new on(_e.paint_fill["fill-translate-anchor"]),"fill-pattern":new ou(_e.paint_fill["fill-pattern"])})},get layout(){return G_=G_||new hs({"fill-sort-key":new dn(_e.layout_fill["fill-sort-key"])})}};class Fk extends Jl{constructor(s){super(s,KS)}recalculate(s,c){super.recalculate(s,c),s=this.paint._values["fill-outline-color"],s.value.kind==="constant"&&s.value.value===void 0&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(s){return new Qv(s)}queryRadius(){return li(this.paint.get("fill-translate"))}queryIntersectsFeature(s,c,f,y,w,x,k){return sn(Ln(s,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),x.angle,k),y)}isTileClipped(){return!0}}Lo=ta([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4);const EC=ta([{name:"a_centroid",components:2,type:"Int16"}],4),ZS=Lo.members;var Ug={},CC=l,Xa=Bg;function Bg(g,s,c,f,y){this.properties={},this.extent=c,this.type=0,this._pbf=g,this._geometry=-1,this._keys=f,this._values=y,g.readFields(Fc,this,s)}function Fc(g,s,c){if(g==1)s.id=c.readVarint();else if(g==2)for(var f=c,y=s,w=f.readVarint()+f.pos;f.pos<w;){var x=y._keys[f.readVarint()],k=y._values[f.readVarint()];y.properties[x]=k}else g==3?s.type=c.readVarint():g==4&&(s._geometry=c.pos)}Bg.types=["Unknown","Point","LineString","Polygon"],Bg.prototype.loadGeometry=function(){for(var g,s,c=this._pbf,f=(c.pos=this._geometry,c.readVarint()+c.pos),y=1,w=0,x=0,k=0,D=[];c.pos<f;)if(w<=0&&(y=7&(s=c.readVarint()),w=s>>3),w--,y===1||y===2)x+=c.readSVarint(),k+=c.readSVarint(),y===1&&(g&&D.push(g),g=[]),g.push(new CC(x,k));else{if(y!==7)throw new Error("unknown command "+y);g&&g.push(g[0].clone())}return g&&D.push(g),D},Bg.prototype.bbox=function(){for(var g,s=this._pbf,c=(s.pos=this._geometry,s.readVarint()+s.pos),f=1,y=0,w=0,x=0,k=1/0,D=-1/0,q=1/0,Y=-1/0;s.pos<c;)if(y<=0&&(f=7&(g=s.readVarint()),y=g>>3),y--,f===1||f===2)(w+=s.readSVarint())<k&&(k=w),D<w&&(D=w),(x+=s.readSVarint())<q&&(q=x),Y<x&&(Y=x
129);else if(f!==7)throw new Error("unknown command "+f);return[k,q,D,Y]},Bg.prototype.toGeoJSON=function(g,s,D){var f,y=this.extent*Math.pow(2,D),w=this.extent*g,x=this.extent*s,k=this.loadGeometry(),D=Bg.types[this.type];function q(ye){for(var Ce=0;Ce<ye.length;Ce++){var Pe=ye[Ce],Be=180-360*(Pe.y+x)/y;ye[Ce]=[360*(Pe.x+w)/y-180,360/Math.PI*Math.atan(Math.exp(Be*Math.PI/180))-90]}}switch(this.type){case 1:for(var Y=[],oe=0;oe<k.length;oe++)Y[oe]=k[oe][0];q(k=Y);break;case 2:for(oe=0;oe<k.length;oe++)q(k[oe]);break;case 3:for(k=(function(ye){var Ce=ye.length;if(Ce<=1)return[ye];for(var Pe,Be,Ze=[],Ge=0;Ge<Ce;Ge++){var Fe=(function(Le){for(var Je,ht,St=0,Lt=0,qt=Le.length,jt=qt-1;Lt<qt;jt=Lt++)Je=Le[Lt],ht=Le[jt],St+=(ht.x-Je.x)*(Je.y+ht.y);return St})(ye[Ge]);Fe!==0&&((Be=Be===void 0?Fe<0:Be)===Fe<0?(Pe&&Ze.push(Pe),Pe=[ye[Ge]]):Pe.push(ye[Ge]))}return Pe&&Ze.push(Pe),Ze})(k),oe=0;oe<k.length;oe++)for(f=0;f<k[oe].length;f++)q(k[oe][f])}return k.length===1?k=k[0]:D="Multi"+D,g={type:"Feature",geometry:{type:D,coordinates:k},properties:this.properties},"id"in this&&(g.id=this.id),g};var $u=Xa,ho=XS;function XS(g,s){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=g,this._keys=[],this._values=[],this._features=[],g.readFields(jb,this,s),this.length=this._features.length}function jb(g,s,c){g===15?s.version=c.readVarint():g===1?s.name=c.readString():g===5?s.extent=c.readVarint():g===2?s._features.push(c.pos):g===3?s._keys.push(c.readString()):g===4&&s._values.push((function(f){for(var y=null,w=f.readVarint()+f.pos;f.pos<w;){var x=f.readVarint()>>3;y=x==1?f.readString():x==2?f.readFloat():x==3?f.readDouble():x==4?f.readVarint64():x==5?f.readVarint():x==6?f.readSVarint():x==7?f.readBoolean():null}return y})(c))}XS.prototype.feature=function(g){if(g<0||g>=this._features.length)throw new Error("feature index out of bounds");return this._pbf.pos=this._features[g],g=this._pbf.readVarint()+this._pbf.pos,new $u(this._pbf,g,this.extent,this._keys,this._values)};var oc=ho;
vendor: 7,202 bytes, line 129
129function Vb(g,s,c){g===3&&(g=new oc(c,c.readVarint()+c.pos)).length&&(s[g.name]=g)}Ug.VectorTile=function(g,s){this.layers=g.readFields(Vb,{},s)},Ug.VectorTileFeature=Xa,Ug.VectorTileLayer=ho;const Y_=Ug.VectorTileFeature.types,qb=Math.pow(2,13);function Sy(g,s,c,f,y,w,x,k){g.emplaceBack(s,c,2*Math.floor(f*qb)+x,y*qb*2,w*qb*2,Math.round(k))}class Cp{constructor(s){this.zoom=s.zoom,this.overscaling=s.overscaling,this.layers=s.layers,this.layerIds=this.layers.map(c=>c.id),this.index=s.index,this.hasPattern=!1,this.layoutVertexArray=new Ed,this.centroidVertexArray=new wd,this.indexArray=new dh,this.programConfigurations=new Ft(s.layers,s.zoom),this.segments=new P,this.stateDependentLayerIds=this.layers.filter(c=>c.isStateDependent()).map(c=>c.id)}populate(s,c,f){this.features=[],this.hasPattern=ph("fill-extrusion",this.layers,c);for(var{feature:y,id:w,index:x,sourceLayerIndex:k}of s){var D=this.layers[0]._featureFilter.needGeometry,q=Dr(y,D);this.layers[0]._featureFilter.filter(new vo(this.zoom),q,f)&&(w={id:w,sourceLayerIndex:k,index:x,geometry:D?q.geometry:xr(y),properties:y.properties,type:y.type,patterns:{}},this.hasPattern?this.features.push(q_("fill-extrusion",this.layers,w,this.zoom,c)):this.addFeature(w,w.geometry,x,f,{}),c.featureIndex.insert(y,w.geometry,x,k,this.index,!0))}}addFeatures(s,c,f){for(const w of this.features){var y=w.geometry;this.addFeature(w,y,w.index,c,f)}}update(s,c,f){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(s,c,this.stateDependentLayers,f)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(s){this.uploaded||(this.layoutVertexBuffer=s.createVertexBuffer(this.layoutVertexArray,ZS),this.centroidVertexBuffer=s.createVertexBuffer(this.centroidVertexArray,EC.members,!0),this.indexBuffer=s.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(s),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(s,c,f,y,w){var x={x:0,y:0,vertexCount:0};for(const Ze of fh(c,500)){let Ge=0;for(const Le of Ze)Ge+=Le.length;let Fe=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(const Le of Ze)if(Le.length!==0&&!Jv(Le)){let Je=0;for(let ht=0;ht<Le.length;ht++){var k,D,q,Y=Le[ht];1<=ht&&(Iy(Y,k=Le[ht-1])||(Fe.vertexLength+4>P.MAX_VERTEX_ARRAY_LENGTH&&(Fe=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray)),D=Y.sub(k)._perp()._unit(),q=k.dist(Y),32768<Je+q&&(Je=0),Sy(this.layoutVertexArray,Y.x,Y.y,D.x,D.y,0,0,Je),Sy(this.layoutVertexArray,Y.x,Y.y,D.x,D.y,0,1,Je),x.x+=2*Y.x,x.y+=2*Y.y,x.vertexCount+=2,Je+=q,Sy(this.layoutVertexArray,k.x,k.y,D.x,D.y,0,0,Je),Sy(this.layoutVertexArray,k.x,k.y,D.x,D.y,0,1,Je),x.x+=2*k.x,x.y+=2*k.y,x.vertexCount+=2,Y=Fe.vertexLength,this.indexArray.emplaceBack(Y,Y+2,Y+1),this.indexArray.emplaceBack(Y+1,Y+2,Y+3),Fe.vertexLength+=4,Fe.primitiveLength+=2))}}if(Fe.vertexLength+Ge>P.MAX_VERTEX_ARRAY_LENGTH&&(Fe=this.segments.prepareSegment(Ge,this.layoutVertexArray,this.indexArray)),Y_[s.type]==="Polygon"){var oe=[],ye=[],Ce=Fe.vertexLength;for(const Le of Ze)if(Le.length!==0){Le!==Ze[0]&&ye.push(oe.length/2);for(let Je=0;Je<Le.length;Je++){var Pe=Le[Je];Sy(this.layoutVertexArray,Pe.x,Pe.y,0,0,1,1,0),x.x+=Pe.x,x.y+=Pe.y,x.vertexCount+=1,oe.push(Pe.x),oe.push(Pe.y)}}var Be=Ty(oe,ye);for(let Le=0;Le<Be.length;Le+=3)this.indexArray.emplaceBack(Ce+Be[Le],Ce+Be[Le+2],Ce+Be[Le+1]);Fe.primitiveLength+=Be.length/3,Fe.vertexLength+=Ge}}for(let Ze=0;Ze<x.vertexCount;Ze++)this.centroidVertexArray.emplaceBack(Math.floor(x.x/x.vertexCount),Math.floor(x.y/x.vertexCount));this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,s,f,w,y)}}function Iy(g,s){return g.x===s.x&&(g.x<0||g.x>Zt)||g.y===s.y&&(g.y<0||g.y>Zt)}function Jv(g){return g.every(s=>s.x<0)||g.every(s=>s.x>Zt)||g.every(s=>s.y<0)||g.every(s=>s.y>Zt)}lr("FillExtrusionBucket",Cp,{omit:["layers","features"]});let W_;var Gb={get paint(){return W_=W_||new hs({"fill-extrusion-opacity":new on(_e["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new dn(_e["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new on(_e["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new on(_e["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new ou(_e["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new dn(_e["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new dn(_e["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new on(_e["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class Yb extends Jl{constructor(s){super(s,Gb)}createBucket(s){return new Cp(s)}queryRadius(){return li(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(s,c,f,y,w,x,k,D){return s=Ln(s,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),x.angle,k),k=this.paint.get("fill-extrusion-height").evaluate(c,f),c=this.paint.get("fill-extrusion-base").evaluate(c,f),f=QS(s,D,0,0),s=K_(y,c,k,D),Wb(s[0],s[1],f)}}function Ay(g,s){return g.x*s.x+g.y*s.y}function e0(g,s){if(g.length===1){let Y=0;var c=s[Y++];let oe;for(;!oe||c.equals(oe);)if(!(oe=s[Y++]))return 1/0;for(;Y<s.length;Y++){var f=s[Y],q=g[0],w=oe.sub(c),x=f.sub(c),q=q.sub(c),D=Ay(w,w),y=Ay(w,x),k=Ay(x,x),w=Ay(q,w),q=Ay(q,x),x=D*k-y*y,k=(k*w-y*q)/x,D=(D*q-y*w)/x,q=c.z*(1-k-D)+oe.z*k+f.z*D;if(isFinite(q))return q}return 1/0}{let Y=1/0;for(const oe of s)Y=Math.min(Y,oe.z);return Y}}function Wb(g,s,c){let f=1/0;sn(c,s)&&(f=e0(c,s[0]));for(let q=0;q<s.length;q++){var y=s[q],w=g[q];for(let Y=0;Y<y.length-1;Y++){var x=y[Y],D=y[Y+1],k=w[Y],D=[x,D,w[Y+1],k,x];jr(c,D)&&(f=Math.min(f,e0(c,D)))}}return f!==1/0&&f}function K_(g,s,c,f){var y=[],w=[],x=f[8]*s,k=f[9]*s,D=f[10]*s,q=f[11]*s,Y=f[8]*c,oe=f[9]*c,ye=f[10]*c,Ce=f[11]*c;for(const qt of g){var Pe=[],Be=[];for(const jt of qt){var ht=jt.x,Ze=jt.y,St=f[0]*ht+f[4]*Ze+f[12],Lt=f[1]*ht+f[5]*Ze+f[13],Je=f[2]*ht+f[6]*Ze+f[14],ht=f[3]*ht+f[7]*Ze+f[15],Ze=Je+D,Ge=ht+q,Fe=St+Y,Le=Lt+oe,Je=Je+ye,ht=ht+Ce,St=new h((St+x)/Ge,(Lt+k)/Ge),Lt=(St.z=Ze/Ge,Pe.push(St),new h(Fe/ht,Le/ht));Lt.z=Je/ht,Be.push(Lt)}y.push(Pe),w.push(Be)}return[y,w]}function QS(g,s,c,f){var y=[];for(const x of g){var w=[x.x,x.y,f,1];ic(w,w,s),y.push(new h(w[0]/w[3],w[1]/w[3]))}return y}const JS=ta([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4).members,Dl=ta([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]).members,ac=Ug.VectorTileFeature.types,Kb=Math.cos(Math.PI/180*37.5),xC=Math.pow(2,14)/.5;class Z_{constructor(s){this.zoom=s.zoom,this.overscaling=s.overscaling,this.layers=s.layers,this.layerIds=this.layers.map(c=>c.id),this.index=s.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={}
129,this.layers.forEach(c=>{this.gradients[c.id]={}}),this.layoutVertexArray=new Ws,this.layoutVertexArray2=new nc,this.indexArray=new dh,this.programConfigurations=new Ft(s.layers,s.zoom),this.segments=new P,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(c=>c.isStateDependent()).map(c=>c.id)}populate(s,c,f){this.hasPattern=ph("line",this.layers,c);var y,w,x,k,D=this.layers[0].layout.get("line-sort-key"),q=!D.isConstant(),Y=[];for({feature:y,id:w,index:x,sourceLayerIndex:k}of s){var oe,ye=this.layers[0]._featureFilter.needGeometry,Ce=Dr(y,ye);this.layers[0]._featureFilter.filter(new vo(this.zoom),Ce,f)&&(oe=q?D.evaluate(Ce,{},f):void 0,ye={id:w,properties:y.properties,type:y.type,sourceLayerIndex:k,index:x,geometry:ye?Ce.geometry:xr(y),patterns:{},sortKey:oe},Y.push(ye))}q&&Y.sort((Fe,Le)=>Fe.sortKey-Le.sortKey);for(const Fe of Y){var{geometry:Pe,index:Be,sourceLayerIndex:Ze}=Fe,Ge=(this.hasPattern?(Ge=q_("line",this.layers,Fe,this.zoom,c),this.patternFeatures.push(Ge)):this.addFeature(Fe,Pe,Be,f,{}),s[Be].feature);c.featureIndex.insert(Ge,Pe,Be,Ze,this.index)}}update(s,c,f){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(s,c,this.stateDependentLayers,f)}addFeatures(s,c,f){for(const y of this.patternFeatures)this.addFeature(y,y.geometry,y.index,c,f)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(s){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=s.createVertexBuffer(this.layoutVertexArray2,Dl)),this.layoutVertexBuffer=s.createVertexBuffer(this.layoutVertexArray,JS),this.indexBuffer=s.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(s),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(s){if(s.properties&&Object.prototype.hasOwnProperty.call(s.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(s.properties,"mapbox_clip_end"))return{start:+s.properties.mapbox_clip_start,end:+s.properties.mapbox_clip_end}}addFeature(s,c,f,y,w){var x=this.layers[0].layout,k=x.get("line-join").evaluate(s,{}),D=x.get("line-cap"),q=x.get("line-miter-limit"),Y=x.get("line-round-limit");this.lineClips=this.lineFeatureClips(s);for(const oe of c)this.addLine(oe,s,k,D,q,Y);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,s,f,w,y)}addLine(s,c,f,y,w,x){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let Lt=0;Lt<s.length-1;Lt++)this.totalDistance+=s[Lt].dist(s[Lt+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}var k=ac[c.type]==="Polygon";let D=s.length;for(;2<=D&&s[D-1].equals(s[D-2]);)D--;let q=0;for(;q<D-1&&s[q].equals(s[q+1]);)q++;if(!(D<(k?3:2))){f==="bevel"&&(w=1.05);var Y,oe=this.overscaling<=16?15*Zt/(512*this.overscaling):0,ye=this.segments.prepareSegment(10*D,this.layoutVertexArray,this.indexArray);let Lt,qt,jt,Wt;this.e1=this.e2=-1,k&&(Lt=s[D-2],Wt=s[q].sub(Lt)._unit()._perp());for(let tr=q;tr<D;tr++)if(!(Y=tr===D-1?k?s[q+1]:void 0:s[tr+1])||!s[tr].equals(Y)){Wt&&(jt=Wt),Lt&&(qt=Lt),Lt=s[tr],Wt=Y?Y.sub(Lt)._unit()._perp():jt;let dr=(jt=jt||Wt).add(Wt);dr.x===0&&dr.y===0||dr._unit();var Ce=jt.x*Wt.x+jt.y*Wt.y,Ze=dr.x*Wt.x+dr.y*Wt.y,Pe=Ze!=0?1/Ze:1/0,Be=2*Math.sqrt(2-2*Ze),Ze=Ze<Kb&&qt&&Y,Ge=0<jt.x*Wt.y-jt.y*Wt.x,Fe=(Ze&&tr>q&&2*oe<(Fe=Lt.dist(qt))&&(Fe=Lt.sub(Lt.sub(qt)._mult(oe/Fe)._round()),this.updateDistance(qt,Fe),this.addCurrentVertex(Fe,jt,0,0,ye),qt=Fe),qt&&Y);let cr=Fe?f:k?"butt":y;if(Fe&&cr==="round"&&(Pe<x?cr="miter":Pe<=2&&(cr="fakeround")),(cr=cr==="miter"&&w<Pe?"bevel":cr)==="bevel"&&(2<Pe&&(cr="flipbevel"),Pe<w)&&(cr="miter"),qt&&this.updateDistance(qt,Lt),cr==="miter")dr._mult(Pe),this.addCurrentVertex(Lt,dr,0,0,ye);else if(cr==="flipbevel")100<Pe?dr=Wt.mult(-1):(Le=Pe*jt.add(Wt).mag()/jt.sub(Wt).mag(),dr._perp()._mult(Le*(Ge?-1:1))),this.addCurrentVertex(Lt,dr,0,0,ye),this.addCurrentVertex(Lt,dr.mult(-1),0,0,ye);else if(cr==="bevel"||cr==="fakeround"){var Le=-Math.sqrt(Pe*Pe-1),Pe=Ge?Le:0,Je=Ge?0:Le;if(qt&&this.addCurrentVertex(Lt,jt,Pe,Je,ye),cr==="fakeround"){var ht=Math.round(180*Be/Math.PI/20);for(let Gr=1;Gr<ht;Gr++){let $r=Gr/ht;$r!==.5&&(St=$r-.5,$r+=$r*St*($r-1)*((1.0904+Ce*(Ce*(3.55645-1.43519*Ce)-3.2452))*St*St+(.848013+Ce*(.215638*Ce-1.06021))));var St=Wt.sub(jt)._mult($r)._add(jt)._unit()._mult(Ge?-1:1);this.addHalfVertex(Lt,St.x,St.y,!1,Ge,0,ye)}}Y&&this.addCurrentVertex(Lt,Wt,-Pe,-Je,ye)}else cr==="butt"?this.addCurrentVertex(Lt,dr,0,0,ye):cr==="square"?(Be=qt?1:-1,this.addCurrentVertex(Lt,dr,Be,Be,ye)):cr==="round"&&(qt&&(this.addCurrentVertex(Lt,jt,0,0,ye),this.addCurrentVertex(Lt,jt,1,1,ye,!0)),Y)&&(this.addCurrentVertex(Lt,Wt,-1,-1,ye,!0),this.addCurrentVertex(Lt,Wt,0,0,ye));Ze&&tr<D-1&&2*oe<(Pe=Lt.dist(Y))&&(Je=Lt.add(Y.sub(Lt)._mult(oe/Pe)._roun
vendor: 9,992 bytes, line 129
129d()),this.updateDistance(Lt,Je),this.addCurrentVertex(Je,Wt,0,0,ye),Lt=Je)}}}addCurrentVertex(s,c,f,y,w,x=!1){var k=c.x+c.y*f,D=c.y-c.x*f,q=-c.x+c.y*y,Y=-c.y-c.x*y;this.addHalfVertex(s,k,D,x,!1,f,w),this.addHalfVertex(s,q,Y,x,!0,-y,w),this.distance>xC/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(s,c,f,y,w,x))}addHalfVertex({x:s,y:Y},f,y,w,x,k,D){var q=.5*(this.lineClips?this.scaledDistance*(xC-1):this.scaledDistance),Y=(this.layoutVertexArray.emplaceBack((s<<1)+(w?1:0),(Y<<1)+(x?1:0),Math.round(63*f)+128,Math.round(63*y)+128,1+(k===0?0:k<0?-1:1)|(63&q)<<2,q>>6),this.lineClips&&(s=this.scaledDistance-this.lineClips.start,w=this.lineClips.end-this.lineClips.start,this.layoutVertexArray2.emplaceBack(s/w,this.lineClipsArray.length)),D.vertexLength++);0<=this.e1&&0<=this.e2&&(this.indexArray.emplaceBack(this.e1,this.e2,Y),D.primitiveLength++),x?this.e2=Y:this.e1=Y}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(s,c){this.distance+=s.dist(c),this.updateScaledDistance()}}lr("LineBucket",Z_,{omit:["layers","patternFeatures"]});let gh,Zb;var X_={get paint(){return Zb=Zb||new hs({"line-opacity":new dn(_e.paint_line["line-opacity"]),"line-color":new dn(_e.paint_line["line-color"]),"line-translate":new on(_e.paint_line["line-translate"]),"line-translate-anchor":new on(_e.paint_line["line-translate-anchor"]),"line-width":new dn(_e.paint_line["line-width"]),"line-gap-width":new dn(_e.paint_line["line-gap-width"]),"line-offset":new dn(_e.paint_line["line-offset"]),"line-blur":new dn(_e.paint_line["line-blur"]),"line-dasharray":new ff(_e.paint_line["line-dasharray"]),"line-pattern":new ou(_e.paint_line["line-pattern"]),"line-gradient":new Du(_e.paint_line["line-gradient"])})},get layout(){return gh=gh||new hs({"line-cap":new on(_e.layout_line["line-cap"]),"line-join":new dn(_e.layout_line["line-join"]),"line-miter-limit":new on(_e.layout_line["line-miter-limit"]),"line-round-limit":new on(_e.layout_line["line-round-limit"]),"line-sort-key":new dn(_e.layout_line["line-sort-key"])})}};class eI extends dn{possiblyEvaluate(s,c){return c=new vo(Math.floor(c.zoom),{now:c.now,fadeDuration:c.fadeDuration,zoomHistory:c.zoomHistory,transition:c.transition}),super.possiblyEvaluate(s,c)}evaluate(s,c,f,y){return c=j({},c,{zoom:Math.floor(c.zoom)}),super.evaluate(s,c,f,y)}}let t0;class tI extends Jl{constructor(s){super(s,X_),this.gradientVersion=0,t0||((t0=new eI(X_.paint.properties["line-width"].specification)).useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(s){s==="line-gradient"&&(fi(s=this.gradientExpression())?this.stepInterpolant=s._styleExpression.expression instanceof fp:this.stepInterpolant=!1,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER)}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(s,c){super.recalculate(s,c),this.paint._values["line-floorwidth"]=t0.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,s)}createBucket(s){return new Z_(s)}queryRadius(f){var c=TC(bi("line-width",this,f),bi("line-gap-width",this,f)),f=bi("line-offset",this,f);return c/2+Math.abs(f)+li(this.paint.get("line-translate"))}queryIntersectsFeature(s,c,f,y,w,x,k){return s=Ln(s,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),x.angle,k),x=k/2*TC(this.paint.get("line-width").evaluate(c,f),this.paint.get("line-gap-width").evaluate(c,f)),c=this.paint.get("line-offset").evaluate(c,f),yn(s,y=c?_o(y,c*k):y,x)}isTileClipped(){return!0}}function TC(g,s){return 0<s?s+2*g:g}const mh=ta([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Q_=ta([{name:"a_projected_pos",components:3,type:"Float32"}],4),Xb=(ta([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),ta([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),r0=(ta([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),ta([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4));Zl=ta([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Ry(g,s,c){return g.sections.forEach(f=>{var y,w;f.text=(f=f.text,w=c,(y=(y=s).layout.get("text-transform").evaluate(w,{}))==="uppercase"?f=f.toLocaleUpperCase():y==="lowercase"&&(f=f.toLocaleLowerCase()),f=Oc.applyArabicShaping?Oc.applyArabicShaping(f):f)}),g}function n0(g){const s={},c={},f=[];let y=0;function w(Be){f.push(g[Be]),y++}function x(Be,Ze,Ge){var Fe=c[Be];return delete c[Be],c[Ze]=Fe,f[Fe].geometry[0].pop(),f[Fe].geometry[0]=f[Fe].geometry[0].concat(Ge[0]),Fe}function k(Be,Ze,Ge){var Fe=s[Ze];return delete s[Ze],s[Be]=Fe,f[Fe].geometry[0].shift(),f[Fe].geometry[0]=Ge[0].concat(f[Fe].geometry[0]),Fe}function D(Be,Ze,Ge){return Ge=Ge?Ze[0][Ze[0].length-1]:Ze[0][0],`${Be}:${Ge.x}:`+Ge.y}for(let Be=0;Be<g.length;Be++){var q,Y,oe,ye,Pe=g[Be],Ce=Pe.geometry,Pe=Pe.text?Pe.text.toString():null;Pe?(q=D(Pe,Ce),Y=D(Pe,Ce,!0),q in c&&Y in s&&c[q]!==s[Y]?(oe=k(q,Y,Ce),ye=x(q,Y,f[oe].geometry),delete s[q],delete c[Y],c[D(Pe,f[ye].geometry,!0)]=ye,f[oe].geometry=null):q in c?x(q,Y,Ce):Y in s?k(q,Y,Ce):(w(Be),s[q]=y-1,c[Y]=y-1)):w(Be)}return f.filter(Be=>Be.geometry)}ta([{name:"triangle",components:3,type:"Uint16"}]),ta([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),ta([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),ta([{type:"Float32",name:"offsetX"}]),ta([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),ta([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);const Sn={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};function i0(g){let s="";for(let y=0;y<g.length;y++){var c=g.charCodeAt(y+1)||null,f=g.charCodeAt(y-1)||null;(!c||!Ii(c)||Sn[g[y+1]])&&(!f||!Ii(f)||Sn[g[y-1]])&&Sn[g[y]]?s+=Sn[g[y]]:s+=g[y]}return s}var Sa=24,Lo={read:function(g,s,c,f,Ce){var w,x,k=8*Ce-f-1,D=(1<<k)-1,q=D>>1,Y=-7,oe=c?Ce-1:0,ye=c?-1:1,Ce=g[s+oe];for(oe+=ye,w=Ce&(1<<-Y)-1,Ce>>=-Y,Y+=k;0<Y;w=256*w+g[s+oe],oe+=ye,Y-=8);for(x=w&(1<<-Y)-1,w>>=-Y,Y+=f;0<Y;x=256*x+g[s+oe],oe+=ye,Y-=8);if(w===0)w=1-q;else{if(w===D)return x?NaN:1/0*(Ce?-1:1);x+=Math.pow(2,f),w-=q}return(Ce?-1:1)*x*Math.pow(2,w-f)},write:function(g,s,c,f,y,Pe){var x,k,D=8*Pe-y-1,q=(1<<D)-1,Y=q>>1,oe=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,ye=f?0:Pe-1,Ce=f?1:-1,Pe=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(k=isNaN(s)?1:0,x=q):(x=Math.floor(Math.log(s)/Math.LN2),s*(f=Math.pow(2,-x))<1&&(x--,f*=2),2<=(s+=1<=x+Y?oe/f:oe*Math.pow(2,1-Y))*f&&(x++,f/=2),q<=x+Y?(k=0,x=q):1<=x+Y?(k=(s*f-1)*Math.pow(2,y),x+=Y):(k=s*Math.pow(2,Y-1)*Math.pow(2,y),x=0));8<=y;g[c+ye]=255&k,ye+=Ce,k/=256,y-=8);for(x=x<<y|k,D+=y;0<D;g[c+ye]=255&x,ye+=Ce,x/=256,D-=8);g[c+ye-Ce]|=128*Pe}},Xa=fo,o0=Lo;function fo(g){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(g)?g:new 
129Uint8Array(g||0),this.pos=0,this.type=0,this.length=this.buf.length}fo.Varint=0,fo.Fixed64=1,fo.Bytes=2,fo.Fixed32=5;var ks=4294967296,SC=1/ks,IC=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function uu(g){return g.type===fo.Bytes?g.readVarint()+g.pos:g.pos+1}function ms(g,s,c){return c?4294967296*s+(g>>>0):4294967296*(s>>>0)+(g>>>0)}function AC(g,s,c){var f=s<=16383?1:s<=2097151?2:s<=268435455?3:Math.floor(Math.log(s)/(7*Math.LN2));c.realloc(f);for(var y=c.pos-1;g<=y;y--)c.buf[y+f]=c.buf[y]}function Uk(g,s){for(var c=0;c<g.length;c++)s.writeVarint(g[c])}function Qb(g,s){for(var c=0;c<g.length;c++)s.writeSVarint(g[c])}function sc(g,s){for(var c=0;c<g.length;c++)s.writeFloat(g[c])}function xp(g,s){for(var c=0;c<g.length;c++)s.writeDouble(g[c])}function Lr(g,s){for(var c=0;c<g.length;c++)s.writeBoolean(g[c])}function $g(g,s){for(var c=0;c<g.length;c++)s.writeFixed32(g[c])}function RC(g,s){for(var c=0;c<g.length;c++)s.writeSFixed32(g[c])}function Jb(g,s){for(var c=0;c<g.length;c++)s.writeFixed64(g[c])}function Bk(g,s){for(var c=0;c<g.length;c++)s.writeSFixed64(g[c])}function zg(g,s){return(g[s]|g[s+1]<<8|g[s+2]<<16)+16777216*g[s+3]}function zu(g,s,c){g[c]=s,g[c+1]=s>>>8,g[c+2]=s>>>16,g[c+3]=s>>>24}function J_(g,s){return(g[s]|g[s+1]<<8|g[s+2]<<16)+(g[s+3]<<24)}fo.prototype={destroy:function(){this.buf=null},readFields:function(g,s,c){for(c=c||this.length;this.pos<c;){var f=this.readVarint(),y=f>>3,w=this.pos;this.type=7&f,g(y,s,this),this.pos===w&&this.skip(f)}return s},readMessage:function(g,s){return this.readFields(g,s,this.readVarint()+this.pos)},readFixed32:function(){var g=zg(this.buf,this.pos);return this.pos+=4,g},readSFixed32:function(){var g=J_(this.buf,this.pos);return this.pos+=4,g},readFixed64:function(){var g=zg(this.buf,this.pos)+zg(this.buf,this.pos+4)*ks;return this.pos+=8,g},readSFixed64:function(){var g=zg(this.buf,this.pos)+J_(this.buf,this.pos+4)*ks;return this.pos+=8,g},readFloat:function(){var g=o0.read(this.buf,this.pos,!0,23,4);return this.pos+=4,g},readDouble:function(){var g=o0.read(this.buf,this.pos,!0,52,8);return this.pos+=8,g},readVarint:function(x){var y=this.buf,f=y[this.pos++],w=127&f;if(f<128||(w|=(127&(f=y[this.pos++]))<<7,f<128)||(w|=(127&(f=y[this.pos++]))<<14,f<128)||(w|=(127&(f=y[this.pos++]))<<21,f<128))return w;var s,c,f=w|=(15&y[this.pos])<<28,y=x,w=this,x=w.buf;if(c=x[w.pos++],s=(112&c)>>4,c<128||(c=x[w.pos++],s|=(127&c)<<3,c<128)||(c=x[w.pos++],s|=(127&c)<<10,c<128)||(c=x[w.pos++],s|=(127&c)<<17,c<128)||(c=x[w.pos++],s|=(127&c)<<24,c<128)||(c=x[w.pos++],s|=(1&c)<<31,c<128))return ms(f,s,y);throw new Error("Expected varint not more than 10 bytes")},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var g=this.readVarint();return g%2==1?(g+1)/-2:g/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var g=this.readVarint()+this.pos,s=this.pos;if(12<=(this.pos=g)-s&&IC)return c=this.buf,IC.decode(c.subarray(s,g));for(var c,f,y,w,x=this.buf,k=g,D="",q=s;q<k;){var Y=x[q],oe=null,ye=239<Y?4:223<Y?3:191<Y?2:1;if(k<q+ye)break;ye===1?Y<128&&(oe=Y):ye===2?(192&(f=x[q+1]))==128&&(oe=(31&Y)<<6|63&f)<=127&&(oe=null):ye===3?(f=x[q+1],y=x[q+2],(192&f)==128&&(192&y)==128&&((oe=(15&Y)<<12|(63&f)<<6|63&y)<=2047||55296<=oe&&oe<=57343)&&(oe=null)):ye===4&&(f=x[q+1],y=x[q+2],w=x[q+3],(192&f)==128)&&(192&y)==128&&(192&w)==128&&((oe=(15&Y)<<18|(63&f)<<12|(63&y)<<6|63&w)<=65535||1114112<=oe)&&(oe=null),oe===null?(oe=65533,ye=1):65535<oe&&(oe-=65536,D+=String.fromCharCode(oe>>>10&1023|55296),oe=56320|1023&oe),D+=String.fromCharCode(oe),q+=ye}return D},readBytes:function(){var g=this.readVarint()+this.pos,s=this.buf.subarray(this.pos,g);return this.pos=g,s},readPackedVarint:function(g,s){if(this.type!==fo.Bytes)return g.push(this.readVarint(s));var c=uu(this);for(g=g||[];this.pos<c;)g.push(this.readVarint(s));return g},readPackedSVarint:function(g){if(this.type!==fo.Bytes)return g.push(this.readSVarint());var s=uu(this);for(g=g||[];this.pos<s;)g.push(this.readSVarint());return g},readPackedBoolean:function(g){if(this.type!==fo.Bytes)return g.push(this.readBoolean());var s=uu(this);for(g=g||[];this.pos<s;)g.push(this.readBoolean());return g}
vendor: 5,098 bytes, line 129
129,readPackedFloat:function(g){if(this.type!==fo.Bytes)return g.push(this.readFloat());var s=uu(this);for(g=g||[];this.pos<s;)g.push(this.readFloat());return g},readPackedDouble:function(g){if(this.type!==fo.Bytes)return g.push(this.readDouble());var s=uu(this);for(g=g||[];this.pos<s;)g.push(this.readDouble());return g},readPackedFixed32:function(g){if(this.type!==fo.Bytes)return g.push(this.readFixed32());var s=uu(this);for(g=g||[];this.pos<s;)g.push(this.readFixed32());return g},readPackedSFixed32:function(g){if(this.type!==fo.Bytes)return g.push(this.readSFixed32());var s=uu(this);for(g=g||[];this.pos<s;)g.push(this.readSFixed32());return g},readPackedFixed64:function(g){if(this.type!==fo.Bytes)return g.push(this.readFixed64());var s=uu(this);for(g=g||[];this.pos<s;)g.push(this.readFixed64());return g},readPackedSFixed64:function(g){if(this.type!==fo.Bytes)return g.push(this.readSFixed64());var s=uu(this);for(g=g||[];this.pos<s;)g.push(this.readSFixed64());return g},skip:function(g){if(g&=7,g===fo.Varint)for(;127<this.buf[this.pos++];);else if(g===fo.Bytes)this.pos=this.readVarint()+this.pos;else if(g===fo.Fixed32)this.pos+=4;else{if(g!==fo.Fixed64)throw new Error("Unimplemented type: "+g);this.pos+=8}},writeTag:function(g,s){this.writeVarint(g<<3|s)},realloc:function(g){for(var s,c=this.length||16;c<this.pos+g;)c*=2;c!==this.length&&((s=new Uint8Array(c)).set(this.buf),this.buf=s,this.length=c)},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(g){this.realloc(4),zu(this.buf,g,this.pos),this.pos+=4},writeSFixed32:function(g){this.realloc(4),zu(this.buf,g,this.pos),this.pos+=4},writeFixed64:function(g){this.realloc(8),zu(this.buf,-1&g,this.pos),zu(this.buf,Math.floor(g*SC),this.pos+4),this.pos+=8},writeSFixed64:function(g){this.realloc(8),zu(this.buf,-1&g,this.pos),zu(this.buf,Math.floor(g*SC),this.pos+4),this.pos+=8},writeVarint:function(g){if(268435455<(g=+g||0)||g<0){var c=g,y=this;if(0<=c?(s=c%4294967296|0,f=c/4294967296|0):(f=~(-c/4294967296),4294967295^(s=~(-c%4294967296))?s=s+1|0:f=f+1|(s=0)),18446744073709552e3<=c||c<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");y.realloc(10);var c=s,s=y,c=(s.buf[s.pos++]=127&c|128,c>>>=7,s.buf[s.pos++]=127&c|128,c>>>=7,s.buf[s.pos++]=127&c|128,c>>>=7,s.buf[s.pos++]=127&c|128,c>>>=7,s.buf[s.pos]=127&c,f),f=y,y=(7&c)<<4;f.buf[f.pos++]|=y|((c>>>=3)?128:0),c&&(f.buf[f.pos++]=127&c|((c>>>=7)?128:0),c)&&(f.buf[f.pos++]=127&c|((c>>>=7)?128:0),c)&&(f.buf[f.pos++]=127&c|((c>>>=7)?128:0),c)&&(f.buf[f.pos++]=127&c|((c>>>=7)?128:0),c)&&(f.buf[f.pos++]=127&c)}else this.realloc(4),this.buf[this.pos++]=127&g|(127<g?128:0),g<=127||(this.buf[this.pos++]=127&(g>>>=7)|(127<g?128:0),g<=127)||(this.buf[this.pos++]=127&(g>>>=7)|(127<g?128:0),g<=127)||(this.buf[this.pos++]=g>>>7&127)},writeSVarint:function(g){this.writeVarint(g<0?2*-g-1:2*g)},writeBoolean:function(g){this.writeVarint(!!g)},writeString:function(c){c=String(c),this.realloc(4*c.length),this.pos++;var s=this.pos,c=(this.pos=(function(f,y,w){for(var x,k,D=0;D<y.length;D++){if(55295<(x=y.charCodeAt(D))&&x<57344){if(!k){56319<x||D+1===y.length?(f[w++]=239,f[w++]=191,f[w++]=189):k=x;continue}if(x<56320){f[w++]=239,f[w++]=191,f[w++]=189,k=x;continue}x=k-55296<<10|x-56320|65536,k=null}else k&&(f[w++]=239,f[w++]=191,f[w++]=189,k=null);x<128?f[w++]=x:(x<2048?f[w++]=x>>6|192:(x<65536?f[w++]=x>>12|224:(f[w++]=x>>18|240,f[w++]=x>>12&63|128),f[w++]=x>>6&63|128),f[w++]=63&x|128)}return w})(this.buf,c,this.pos),this.pos-s);128<=c&&AC(s,c,this),this.pos=s-1,this.writeVarint(c),this.pos+=c},writeFloat:function(g){this.realloc(4),o0.write(this.buf,g,this.pos,!0,23,4),this.pos+=4},writeDouble:function(g){this.realloc(8),o0.write(this.buf,g,this.pos,!0,52,8),this.pos+=8},writeBytes:function(g){var s=g.length;this.writeVarint(s),this.realloc(s);for(var c=0;c<s;c++)this.buf[this.pos++]=g[c]},writeRawMessage:function(f,s){this.pos++;var c=this.pos,f=(f(s,this),this.pos-c);128<=f&&AC(c,f,this),this.pos=c-1,this.writeVarint(f),this.pos+=f},writeMessage:function(g,s,c){this.writeTag(g,fo.Bytes),this.writeRawMessage(s,c)},writePackedVarint:function(g,s){s.length&&this.writeMessage(g,Uk,s)},writePackedSVarint:function(g,s){s.length&&this.writeMessage(g,Qb,s)},writePackedBoolean:function(g,s){s.length&&this.writeMessage(g,Lr,s)},writePackedFloat:function(g,s){s.length&&this.writeMessage(g,sc,s)},writePackedDouble:function(g,s){s.length&&this.writeMessage(g,xp,s)},writePackedFixed32:function(g,s){s.length&&this.writeMessage(g,$g,s)},writePackedSFixed32:function(g,s){s.length&&this.writeMessage(g,RC,s)},writePackedFixed64:function(g,s){s.length&&this.writeMessage(g,Jb,s)},writePackedSFixed64:function(g,s){s.length&&this.writeMessage(g,Bk,s)},writeBytesField:function(g,s){this.writeTag(g,fo.Bytes),this.writeBytes(s)},writeFixed32Field:function(g,s){this.writeTag(g,fo.Fixed32),this.writeFixed32(s)},writeSFixed32Field:function(g,s){this.writeTag(g,fo.Fixed32),this.writeSFixed32(s)},writeFixed64Field:function(g,s){this.writeTag(g,fo.Fixed64),this.writeFixed64
vendor: 7,307 bytes, line 129
129(s)},writeSFixed64Field:function(g,s){this.writeTag(g,fo.Fixed64),this.writeSFixed64(s)},writeVarintField:function(g,s){this.writeTag(g,fo.Varint),this.writeVarint(s)},writeSVarintField:function(g,s){this.writeTag(g,fo.Varint),this.writeSVarint(s)},writeStringField:function(g,s){this.writeTag(g,fo.Bytes),this.writeString(s)},writeFloatField:function(g,s){this.writeTag(g,fo.Fixed32),this.writeFloat(s)},writeDoubleField:function(g,s){this.writeTag(g,fo.Fixed64),this.writeDouble(s)},writeBooleanField:function(g,s){this.writeVarintField(g,!!s)}};var a0,ew=a(Xa);const tw=3;function PC(g,s,c){g===1&&c.readMessage(kC,s)}function kC(g,s,c){var f,y,w,x,k;g===3&&({id:g,bitmap:c,width:f,height:y,left:w,top:x,advance:k}=c.readMessage(dl,{}),s.push({id:g,bitmap:new Zo({width:f+2*tw,height:y+2*tw},c),metrics:{width:f,height:y,left:w,top:x,advance:k}}))}function dl(g,s,c){g===1?s.id=c.readVarint():g===2?s.bitmap=c.readBytes():g===3?s.width=c.readVarint():g===4?s.height=c.readVarint():g===5?s.left=c.readSVarint():g===6?s.top=c.readSVarint():g===7&&(s.advance=c.readVarint())}const ju=tw;function Tp(g){let s=0,c=0;for(const D of g)s+=D.w*D.h,c=Math.max(c,D.w);g.sort((D,q)=>q.h-D.h);var f=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(s/.95)),c),h:1/0}];let y=0,w=0;for(const D of g)for(let q=f.length-1;0<=q;q--){var x,k=f[q];if(!(D.w>k.w||D.h>k.h)){D.x=k.x,D.y=k.y,w=Math.max(w,D.y+D.h),y=Math.max(y,D.x+D.w),D.w===k.w&&D.h===k.h?(x=f.pop(),q<f.length&&(f[q]=x)):D.h===k.h?(k.x+=D.w,k.w-=D.w):(D.w!==k.w&&f.push({x:k.x+D.w,y:k.y,w:k.w-D.w,h:D.h}),k.y+=D.h,k.h-=D.h);break}}return{w:y,h:w,fill:s/(y*w)||0}}(ho=a0=a0||{}).none="none",ho.height="height",ho.width="width";const hl=1;class e1{constructor(s,{pixelRatio:c,version:f,stretchX:y,stretchY:w,content:x,contentMatch:k}){this.paddedRect=s,this.pixelRatio=c,this.stretchX=y,this.stretchY=w,this.content=x,this.version=f,this.contentMatch=k}get tl(){return[this.paddedRect.x+hl,this.paddedRect.y+hl]}get br(){return[this.paddedRect.x+this.paddedRect.w-hl,this.paddedRect.y+this.paddedRect.h-hl]}get tlbr(){return this.tl.concat(this.br)}get displaySize(){return[(this.paddedRect.w-2*hl)/this.pixelRatio,(this.paddedRect.h-2*hl)/this.pixelRatio]}}class lc{constructor(s,c){var f={},y={},w=(this.haveRenderCallbacks=[],[]);this.addImages(s,f,w),this.addImages(c,y,w);const{w:x,h:k}=Tp(w);var D=new To({width:x||1,height:k||1});for(const Ce in s){var q=s[Ce],Y=f[Ce].paddedRect;To.copy(q.data,D,{x:0,y:0},{x:Y.x+hl,y:Y.y+hl},q.data)}for(const Ce in c){var oe=c[Ce],ye=y[Ce].paddedRect;const Pe=ye.x+hl,Be=ye.y+hl,Ze=oe.data.width,Ge=oe.data.height;To.copy(oe.data,D,{x:0,y:0},{x:Pe,y:Be},oe.data),To.copy(oe.data,D,{x:0,y:Ge-1},{x:Pe,y:Be-1},{width:Ze,height:1}),To.copy(oe.data,D,{x:0,y:0},{x:Pe,y:Be+Ge},{width:Ze,height:1}),To.copy(oe.data,D,{x:Ze-1,y:0},{x:Pe-1,y:Be},{width:1,height:Ge}),To.copy(oe.data,D,{x:0,y:0},{x:Pe+Ze,y:Be},{width:1,height:Ge})}this.image=D,this.iconPositions=f,this.patternPositions=y}addImages(s,c,f){for(const x in s){var y=s[x],w={x:0,y:0,w:y.data.width+2*hl,h:y.data.height+2*hl};f.push(w),c[x]=new e1(w,y),y.hasRenderCallback&&this.haveRenderCallbacks.push(x)}}patchUpdatedImages(s,c){s.dispatchRenderCallbacks(this.haveRenderCallbacks);for(const f in s.updatedImages)this.patchUpdatedImage(this.iconPositions[f],s.getImage(f),c),this.patchUpdatedImage(this.patternPositions[f],s.getImage(f),c)}patchUpdatedImage(s,c,f){var y;s&&c&&s.version!==c.version&&(s.version=c.version,[s,y]=s.tl,f.update(c.data,void 0,{x:s,y}))}}lr("ImagePosition",e1),lr("ImageAtlas",lc),i.WritingMode=void 0,(Lo=i.WritingMode||(i.WritingMode={}))[Lo.none=0]="none",Lo[Lo.horizontal=1]="horizontal",Lo[Lo.vertical=2]="vertical",Lo[Lo.horizontalOnly=3]="horizontalOnly";const jg=-17;class Uc{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(s,c){var f=new Uc;return f.scale=s||1,f.fontStack=c,f}static forImage(s){var c=new Uc;return c.imageName=s,c}}class Py{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(s,c){var f=new Py;for(let w=0;w<s.sections.length;w++){var y=s.sections[w];y.image?f.addImageSection(y):f.addTextSection(y,c)}return f}length(){return this.text.length}getSection(s){return this.sections[this.sectionIndex[s]]}getSectionIndex(s){return this.sectionIndex[s]}getCharCode(s){return this.text.charCodeAt(s)}verticalizePunctuation(){this.text=i0(this.text)}trim(){let s=0;for(let f=0;f<this.text.length&&s0[this.text.charCodeAt(f)];f++)s++;let c=this.text.length;for(let f=this.text.length-1;0<=f&&f>=s&&s0[this.text.charCodeAt(f)];f--)c--;this.text=this.text.substring(s,c),this.sectionIndex=this.sectionIndex.slice(s,c)}substring(s,c){var f=new Py;return f.text=this.text.substring(s,c),f.sectionIndex=this.sectionIndex.slice(s,c),f.sections=this.sections,f}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((s,c)=>Math.max(s,this.sections[c].scale),0)}addTextSection(s,c){this.text+=s.text,this.sections.push(Uc.forText(s.scale,s.fontStack||c));var f=this.sections.length-1;for(let y=0;y<s.text.length;++y)this.sectionIndex.push(f)}addImageSection(f){var c,f=f.image?f.image.name:"";f.length===0?ne("Can't add FormattedSection with an empty image."):(c=this.getNextImageSectionCharCode())?(this.text+=String.fromCharCode(c),this.sections.push(Uc.forImage(f)),this.sectionIndex.push(this.sections.length-1)):ne("Reached maximum number of images 6401")}getNextImageSectionCharCode(){return this.imageSectionID?63743<=this.imageSectionID?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Vg(Fe,s,c,f,Le,w,x,k,D,q,Y,oe,ye,Ce,Pe,Be){var Ze=Py.fromFeature(Fe,Le);oe===i.WritingMode.vertical&&Ze.verticalizePunctuation();let Ge;var{processBidirectionalText:Fe,processStyledBidirectionalText:Le}=Oc;if(Fe&&Ze.sections.length===1){Ge=[];for(const vs of Fe(Ze.toString(),t1(Ze,q,w,s,f,Ce,Pe))){var Je=new Py;Je.text=vs,Je.sections=Ze.sections;for(let fc=0;fc<vs.length;fc++)Je.sectionIndex.push(0);Ge.push(Je)}}else if(Le){Ge=[];for(const vs of Le(Ze.text,Ze.sectionIndex,t1(Ze,q,w,s,f,Ce,Pe))){var ht=new Py;ht.text=vs[0],ht.sectionIndex=vs[1],ht.sections=Ze.sections,Ge.push(ht)}}else Ge=(function(vs,fc){var fl=[],Jg=vs.text;let Ui=0;for(const Cn of fc)fl.push(vs.substring(Ui,Cn)),Ui=Cn;return Ui<Jg.length&&fl.push(vs.substring(Ui,Jg.length)),fl})(Ze,t1(Ze,q,w,s,f,Ce,Pe));Fe=[],Le={positionedLines:Fe,text:Ze.toString(),top:Y[1],bottom:Y[1],left:Y[0],right:Y[0],writingMode:oe,iconsInText:!1,verticalizable:!1};{var St=Le,Lt=s,qt=c,jt=f,Wt=(w=Ge,x),tr=(Ce=k,Pe=D,oe),dr=q,cr=ye,Kt=Be;let vs=0,fc=jg,fl=0,Jg=0;var Gr=Pe==="right"?1:Pe==="left"?0:.5;let Ui=0;for(const Ms of w){Ms.trim();var $r=Ms.getMaxScale(),Wr=($r-1)*Sa,kn={positionedGlyphs:[],lineOffset:0},ci=(St.positionedLines[Ui]=kn).positionedGlyphs;let Gu=0;if(Ms.length()){for(let Xo=0;Xo<Ms.length();Xo++){var $n=Ms.getSection(Xo),Zi=Ms.getSectionIndex(Xo),fn=Ms.getCharCode(Xo);let Ns=0,pc=null,$c=null,Yu=null,Ds=Sa;var wn=!(tr===i.WritingMode.horizontal||!cr&&!Mu(fn)||cr&&(s0[fn]||(function(Fl){return Pr.Arabic(Fl)||Pr["Arabic Supplement"](Fl)||Pr["Arabic Extended-A"](Fl)||Pr["Arabic Presentation Forms-A"](Fl)||Pr["Arabic Presentation Forms-B"](Fl)})(fn)));if($n.imageName){var Ri=jt[$n.imageName];if(!Ri)continue;
129Yu=$n.imageName,St.iconsInText=St.iconsInText||!0,$c=Ri.paddedRect;var Ri=Ri.displaySize,So=($n.scale=$n.scale*Sa/Kt,pc={width:Ri[0],height:Ri[1],left:hl,top:-ju,advance:wn?Ri[1]:Ri[0]},Sa-Ri[1]*$n.scale),So=(Ns=Wr+So,Ds=pc.advance,wn?Ri[0]*$n.scale-Sa*$r:Ri[1]*$n.scale-Sa*$r);0<So&&So>Gu&&(Gu=So)}else{if(Ri=qt[$n.fontStack],So=Ri&&Ri[fn],So&&So.rect)$c=So.rect,pc=So.metrics;else{var Ll=Lt[$n.fontStack],Ll=Ll&&Ll[fn];if(!Ll)continue;pc=Ll.metrics}Ns=($r-$n.scale)*Sa}wn?(St.verticalizable=!0,ci.push({glyph:fn,imageName:Yu,x:vs,y:fc+Ns,vertical:wn,scale:$n.scale,fontStack:$n.fontStack,sectionIndex:Zi,metrics:pc,rect:$c}),vs+=Ds*$n.scale+dr):(ci.push({glyph:fn,imageName:Yu,x:vs,y:fc+Ns,vertical:wn,scale:$n.scale,fontStack:$n.fontStack,sectionIndex:Zi,metrics:pc,rect:$c}),vs+=pc.advance*$n.scale+dr)}ci.length!==0&&(In=vs-dr,fl=Math.max(In,fl),(function(Xo,Ns,pc,$c,Yu){if($c||Yu){var Ds=Xo[pc],Ds=Ds.metrics.advance*Ds.scale,Fl=(Xo[pc].x+Ds)*$c;for(let Sf=Ns;Sf<=pc;Sf++)Xo[Sf].x-=Fl,Xo[Sf].y+=Yu}})(ci,0,ci.length-1,Gr,Gu)),vs=0;var In=Wt*$r+Gu;kn.lineOffset=Math.max(Gu,Wr),fc+=In,Jg=Math.max(In,Jg)}else fc+=Wt;++Ui}var Pe=fc-jg,{horizontalAlign:Ce,verticalAlign:Y}=du(Ce);{var Pi=St.positionedLines,Bn=Gr,Vo=Ce,v0=Y,Hl=fl,Qg=Jg,Bc=Wt,Tf=Pe,jk=w.length,YC=(Bn-Vo)*Hl;let Ms=0;Ms=Qg!==Bc?-Tf*v0-jg:(-v0*jk+.5)*Bc;for(const Gu of Pi)for(const Xo of Gu.positionedGlyphs)Xo.x+=YC,Xo.y+=Ms}St.top+=-Y*Pe,St.bottom=St.top+Pe,St.left+=-Ce*fl,St.right=St.left+fl}return!(function(vs){for(const fc of vs)if(fc.positionedGlyphs.length!==0)return;return 1})(Fe)&&Le}const s0={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},xd={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function Sp(g,s,c,f,y,w){return s.imageName?(f=f[s.imageName])?f.displaySize[0]*s.scale*Sa/w+y:0:(w=(f=c[s.fontStack])&&f[g])?w.metrics.advance*s.scale+y:0}function rI(g,s,c,f){var y=Math.pow(g-s,2);return f?g<s?y/2:2*y:y+Math.abs(c)*c}function l0(g,s,c,f,y,w){let x=null,k=rI(s,c,y,w);for(const q of f){var D=rI(s-q.x,c,y,w)+q.badness;D<=k&&(x=q,k=D)}return{index:g,x:s,priorBreak:x,badness:k}}function t1(g,s,c,f,y,w,x){if(w!=="point")return[];if(!g)return[];var k=[],D=(function(Pe,Be,Ze,Ge,Fe,Le){let Je=0;for(let St=0;St<Pe.length();St++){var ht=Pe.getSection(St);Je+=Sp(Pe.getCharCode(St),ht,Ge,Fe,Be,Le)}return Ze=Math.max(1,Math.ceil(Je/Ze)),Je/Ze})(g,s,c,f,y,x),q=0<=g.text.indexOf("​");let Y=0;for(let Pe=0;Pe<g.length();Pe++){var oe,ye=g.getSection(Pe),Ce=g.getCharCode(Pe);s0[Ce]||(Y+=Sp(Ce,ye,f,y,s,x)),Pe<g.length()-1&&(oe=!((oe=Ce)<11904||!Pr["Bopomofo Extended"](oe)&&!(Pr.Bopomofo(oe)||Pr["CJK Compatibility Forms"](oe)||Pr["CJK Compatibility Ideographs"](oe)||Pr["CJK Compatibility"](oe)||Pr["CJK Radicals Supplement"](oe)||Pr["CJK Strokes"](oe)||Pr["CJK Symbols and Punctuation"](oe)||Pr["CJK Unified Ideographs Extension A"](oe)||Pr["CJK Unified Ideographs"](oe)||Pr["Enclosed CJK Letters and Months"](oe)||Pr["Halfwidth and Fullwidth Forms"](oe)||Pr.Hiragana(oe)||Pr["Ideographic Description Characters"](oe)||Pr["Kangxi Radicals"](oe)||Pr["Katakana Phonetic Extensions"](oe)||Pr.Katakana(oe)||Pr["Vertical Forms"](oe)||Pr["Yi Radicals"](oe)||Pr["Yi Syllables"](oe))),xd[Ce]||oe||ye.imageName)&&k.push(l0(Pe+1,Y,D,k,(function(Be,Ze,Ge){let Fe=0;return Be===10&&(Fe-=1e4),Ge&&(Fe+=150),Be!==40&&Be!==65288||(Fe+=50),Ze!==41&&Ze!==65289||(Fe+=50),Fe})(Ce,g.getCharCode(Pe+1),oe&&q),!1))}return(function Pe(Be){return Be?Pe(Be.priorBreak).concat(Be.index):[]})(l0(g.length(),Y,D,k,0,!0))}function du(g){let s=.5,c=.5;switch(g){case"right":case"top-right":case"bottom-right":s=1;break;case"left":case"top-left":case"bottom-left":s=0}switch(g){case"bottom":case"bottom-right":case"bottom-left":c=1;break;case"top":case"top-right":case"top-left":c=0}return{horizontalAlign:s,verticalAlign:c}}function Ji(g){let s=g.left,c=g.top,f=g.right-s,y=g.bottom-c;var w=g.image.content[2]-g.image.content[0],x=g.image.content[3]-g.image.content[1];return x!=0&&f!==0&&y!==0&&(w=w/x,g.image.contentMatch===a0.height?f/y<w&&(x=y*w,s*=x/f,f=x):g.image.contentMatch===a0.width&&w!=0&&f/y>w&&(x=f/w,c*=x/x,y=x)),{x1:s,y1:c,x2:s+f,y2:c+y}}function Xs(g,s,c,f,y,w){g=g.image;let x;g.content&&(k=g.content,D=g.pixelRatio||1,x=[k[0]/D,k[1]/D,g.displaySize[0]-k[2]/D,g.displaySize[1]-k[3]/D]);var k=s.left*w,D=s.right*w;let q,Y,oe,ye;return Y=c==="width"||c==="both"?(ye=y[0]+k-f[3],y[0]+D+f[1]):(ye=y[0]+(k+D-g.displaySize[0])/2)+g.displaySize[0],k=s.top*w,D=s.bottom*w,oe=c==="height"||c==="both"?(q=y[1]+k-f[0],y[1]+D+f[2]):(q=y[1]+(k+D-g.displaySize[1])/2)+g.displaySize[1],{image:g,top:q,right:Y,bottom:oe,left:ye,collisionPadding:x}}const Ia=255,ua=128,Os=Ia*ua;function ky(g,s){if(s=s.expression,s.kind==="constant")return{kind:"constant",layoutSize:s.evaluate(new vo(g+1))};if(s.kind==="source")return{kind:"source"};{var{zoomStops:c,interpolationType:f}=s;let x=0;for(;x<c.length&&c[x]<=g;)x++;let k=x=Math.max(0,x-1);for(;k<c.length&&c[k]<g+1;)k++;k=Math.min(c.length-1,k);var y=c[x],w=c[k];return s.kind==="composite"?{kind:"composite",minZoom:y,maxZoom:w,interpolationType:f}:{kind:"camera",minZoom:y,maxZoom:w,minSize:s.evaluate(new vo(y)),maxSize:s.evaluate(new vo(w)),interpolationType:f}}}function ys(g,s,c){let f="never";return s=g.get(s),s?f=s:g.get(c)&&(f="always"),f}const r1=Ug.VectorTileFeature.types,Oy=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function qg(g,s,c,f,y,w,x,Pe,D,q,Y,oe,ye){var Ce=Pe?Math.min(Os,Math.round(Pe[0])):0,Pe=Pe?Math.min(Os,Math.round(Pe[1])):0;g.emplaceBack(s,c,Math.round(32*f),Math.round(32*y),w,x,(Ce<<1)+(D?1:0),Pe,16*q,16*Y,256*oe,256*ye)}
129function c0(g,s,c){g.emplaceBack(s.x,s.y,c),g.emplaceBack(s.x,s.y,c),g.emplaceBack(s.x,s.y,c),g.emplaceBack(s.x,s.y,c)}function u0(g){for(const s of g.sections)if((function(c){for(const f of c)if(jv(f.charCodeAt(0)))return 1})(s.text))return!0;return!1}class cc{constructor(s){this.layoutVertexArray=new L_,this.indexArray=new dh,this.programConfigurations=s,this.segments=new P,this.dynamicLayoutVertexArray=new Ng,this.opacityVertexArray=new Wv,this.hasVisibleVertices=!1,this.placedSymbolArray=new tc}isEmpty(){return this.layoutVertexArray.length===0&&this.indexArray.length===0&&this.dynamicLayoutVertexArray.length===0&&this.opacityVertexArray.length===0}upload(s,c,f,y){!this.isEmpty()&&(f&&(this.layoutVertexBuffer=s.createVertexBuffer(this.layoutVertexArray,mh.members),this.indexBuffer=s.createIndexBuffer(this.indexArray,c),this.dynamicLayoutVertexBuffer=s.createVertexBuffer(this.dynamicLayoutVertexArray,Q_.members,!0),this.opacityVertexBuffer=s.createVertexBuffer(this.opacityVertexArray,Oy,!0),this.opacityVertexBuffer.itemSize=1),f||y)&&this.programConfigurations.upload(s)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())}}lr("SymbolBuffers",cc);class n1{constructor(s,c,f){this.layoutVertexArray=new s,this.layoutAttributes=c,this.indexArray=new f,this.segments=new P,this.collisionVertexArray=new uh}upload(s){this.layoutVertexBuffer=s.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=s.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=s.createVertexBuffer(this.collisionVertexArray,Xb.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())}}lr("CollisionBuffers",n1);class yh{constructor(s){this.collisionBoxArray=s.collisionBoxArray,this.zoom=s.zoom,this.overscaling=s.overscaling,this.layers=s.layers,this.layerIds=this.layers.map(w=>w.id),this.index=s.index,this.pixelRatio=s.pixelRatio,this.sourceLayerIndex=s.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=co([]),this.placementViewportMatrix=co([]);var c=this.layers[0]._unevaluatedLayout._values,c=(this.textSizeData=ky(this.zoom,c["text-size"]),this.iconSizeData=ky(this.zoom,c["icon-size"]),this.layers[0].layout),y=c.get("symbol-sort-key"),f=c.get("symbol-z-order"),y=(this.canOverlap=ys(c,"text-overlap","text-allow-overlap")!=="never"||ys(c,"icon-overlap","icon-allow-overlap")!=="never"||c.get("text-ignore-placement")||c.get("icon-ignore-placement"),this.sortFeaturesByKey=f!=="viewport-y"&&!y.isConstant(),f==="viewport-y"||f==="auto"&&!this.sortFeaturesByKey);this.sortFeaturesByY=y&&this.canOverlap,c.get("symbol-placement")==="point"&&(this.writingModes=c.get("text-writing-mode").map(w=>i.WritingMode[w])),this.stateDependentLayerIds=this.layers.filter(w=>w.isStateDependent()).map(w=>w.id),this.sourceID=s.sourceID}createArrays(){this.text=new cc(new Ft(this.layers,this.zoom,s=>/^text/.test(s))),this.icon=new cc(new Ft(this.layers,this.zoom,s=>/^icon/.test(s))),this.glyphOffsetArray=new pi,this.lineVertexArray=new Yv,this.symbolInstances=new As,this.textAnchorOffsets=new lh}calculateGlyphDependencies(s,c,f,y,w){for(let k=0;k<s.length;k++){var x;c[s.charCodeAt(k)]=!0,(f||y)&&w&&(x=Sn[s.charAt(k)])&&(c[x.charCodeAt(0)]=!0)}}populate(s,c,f){var y=this.layers[0],w=y.layout,x=w.get("text-font"),k=w.get("text-field"),D=w.get("icon-image"),q=(k.value.kind!=="constant"||k.value.value instanceof Kl&&!k.value.value.isEmpty()||0<k.value.value.toString().length)&&(x.value.kind!=="constant"||0<x.value.value.length),Y=D.value.kind!=="constant"||!!D.value.value||0<Object.keys(D.parameters).length,oe=w.get("symbol-sort-key");if(this.features=[],q||Y){var ye,Ce,Pe,Be,Ze=c.iconDependencies,Ge=c.glyphDependencies,Fe=c.availableImages,Le=new vo(this.zoom);for({feature:ye,id:Ce,index:Pe,sourceLayerIndex:Be}of s){var Je,ht=y._featureFilter.needGeometry,St=Dr(ye,ht);if(y._featureFilter.filter(Le,St,f)){ht||(St.geometry=xr(ye));let tr;q&&(ht=y.getValueAndResolveTokens("text-field",St,f,Fe),ht=Kl.factory(ht),!(Je=this.hasRTLText=this.hasRTLText||u0(ht))||Oc.getRTLTextPluginStatus()==="unavailable"||Je&&Oc.isParsed())&&(tr=Ry(ht,y,St));let dr;if(Y&&(Je=y.getValueAndResolveTokens("icon-image",St,f,Fe),dr=Je instanceof Qc?Je:Qc.fromString(Je)),(tr||dr)&&(ht=this.sortFeaturesByKey?oe.evaluate(St,{},f):void 0,ht={id:Ce,text:tr,icon:dr,index:Pe,sourceLayerIndex:Be,geometry:St.geometry,properties:ye.properties,type:r1[ye.type],sortKey:ht},this.features.push(ht),dr&&(Ze[dr.name]=!0),tr)){var Lt,qt,jt=x.evaluate(St,{},f).join(","),Wt=w.get("text-rotation-alignment")!=="viewport"&&w.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&0<=this.writingModes.indexOf(i.WritingMode.vertical);for(const cr of tr.sections)cr.image?Ze[cr.image.name]=!0:(Lt=Ql(tr.toString()),qt=Ge[qt=cr.fontStack||jt]=Ge[qt]||{},this.calculateGlyphDependencies(cr.text,qt,Wt,this.allowVerticalPlacement,Lt))}}}w.get("symbol-placement")==="line"&&(this.features=n0(this.features)),this.sortFeaturesByKey&&this.features.sort((tr,dr)=>tr.sortKey-dr.sortKey)}}update(s,c,f){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(s,c,this.layers,f),this.icon.programConfigurations.updatePaintArrays(s,c,this.layers,f))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(s){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(s),this.iconCollisionBox.upload(s)),this.text.upload(s,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(s,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(s,c){var f=this.lineVertexArray.length;if(s.segment!==void 0){let x=s.dist(c[s.segment+1]),k=s.dist(c[s.segment]);var y={};for(let D=s.segment+1;D<c.length;D++)y[D]={x:c[D].x,y:c[D].y,tileUnitDistanceFromAnchor:x},D<c.length-1&&(x+=c[D+1].dist(c[D]));for(let D=s.segment||0;0<=D;D--)y[D]={x:c[D].x,y:c[D].y,tileUnitDistanceFromAnchor:k},0<D&&(k+=c[D-1].dist(c[D]));for(let D=0;D<c.length;D++){var w=y[D];this.lineVertexArray.emplaceBack(w.x,w.y,w.tileUnitDistanceFromAnchor)}}return{lineStartIndex:f,lineLength:this.lineVertexArray.length-f}}
vendor: 4,538 bytes, line 129
129addSymbols(s,c,f,y,w,x,k,D,q,Y,oe,ye){var Ce=s.indexArray,Pe=s.layoutVertexArray,Be=s.segments.prepareSegment(4*c.length,Pe,Ce,this.canOverlap?x.sortKey:void 0),Ze=this.glyphOffsetArray.length,Ge=Be.vertexLength,Fe=this.allowVerticalPlacement&&k===i.WritingMode.vertical?Math.PI/2:0,Le=x.text&&x.text.sections;for(let kn=0;kn<c.length;kn++){var{tl:Je,tr:ht,bl:St,br:Lt,tex:qt,pixelOffsetTL:jt,pixelOffsetBR:Wt,minFontScaleX:tr,minFontScaleY:dr,glyphOffset:cr,isSDF:Kt,sectionIndex:Gr}=c[kn],$r=Be.vertexLength,Wr=cr[1];qg(Pe,D.x,D.y,Je.x,Wr+Je.y,qt.x,qt.y,f,Kt,jt.x,jt.y,tr,dr),qg(Pe,D.x,D.y,ht.x,Wr+ht.y,qt.x+qt.w,qt.y,f,Kt,Wt.x,jt.y,tr,dr),qg(Pe,D.x,D.y,St.x,Wr+St.y,qt.x,qt.y+qt.h,f,Kt,jt.x,Wt.y,tr,dr),qg(Pe,D.x,D.y,Lt.x,Wr+Lt.y,qt.x+qt.w,qt.y+qt.h,f,Kt,Wt.x,Wt.y,tr,dr),c0(s.dynamicLayoutVertexArray,D,Fe),Ce.emplaceBack($r,$r+1,$r+2),Ce.emplaceBack($r+1,$r+2,$r+3),Be.vertexLength+=4,Be.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(cr[0]),kn!==c.length-1&&Gr===c[kn+1].sectionIndex||s.programConfigurations.populatePaintArrays(Pe.length,x,x.index,{},ye,Le&&Le[Gr])}s.placedSymbolArray.emplaceBack(D.x,D.y,Ze,this.glyphOffsetArray.length-Ze,Ge,q,Y,D.segment,f?f[0]:0,f?f[1]:0,y[0],y[1],k,0,!1,0,oe)}_addCollisionDebugVertex(s,c,f,y,w,x){return c.emplaceBack(0,0),s.emplaceBack(f.x,f.y,y,w,Math.round(x.x),Math.round(x.y))}addCollisionDebugVertices(s,Pe,f,y,w,x,Ce){var D=w.segments.prepareSegment(4,w.layoutVertexArray,w.indexArray),q=D.vertexLength,Y=w.layoutVertexArray,oe=w.collisionVertexArray,ye=Ce.anchorX,Ce=Ce.anchorY,Pe=(this._addCollisionDebugVertex(Y,oe,x,ye,Ce,new h(s,Pe)),this._addCollisionDebugVertex(Y,oe,x,ye,Ce,new h(f,Pe)),this._addCollisionDebugVertex(Y,oe,x,ye,Ce,new h(f,y)),this._addCollisionDebugVertex(Y,oe,x,ye,Ce,new h(s,y)),D.vertexLength+=4,w.indexArray);Pe.emplaceBack(q,q+1),Pe.emplaceBack(q+1,q+2),Pe.emplaceBack(q+2,q+3),Pe.emplaceBack(q+3,q),D.primitiveLength+=4}addDebugCollisionBoxes(s,c,f,y){for(let Y=s;Y<c;Y++){var w=this.collisionBoxArray.get(Y),x=w.x1,k=w.y1,D=w.x2,q=w.y2;this.addCollisionDebugVertices(x,k,D,q,y?this.textCollisionBox:this.iconCollisionBox,w.anchorPoint,f)}}generateCollisionDebugBuffers(){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new n1(Uu,r0.members,Dg),this.iconCollisionBox=new n1(Uu,r0.members,Dg);for(let c=0;c<this.symbolInstances.length;c++){var s=this.symbolInstances.get(c);this.addDebugCollisionBoxes(s.textBoxStartIndex,s.textBoxEndIndex,s,!0),this.addDebugCollisionBoxes(s.verticalTextBoxStartIndex,s.verticalTextBoxEndIndex,s,!0),this.addDebugCollisionBoxes(s.iconBoxStartIndex,s.iconBoxEndIndex,s,!1),this.addDebugCollisionBoxes(s.verticalIconBoxStartIndex,s.verticalIconBoxEndIndex,s,!1)}}_deserializeCollisionBoxesForSymbol(s,c,f,y,w,x,k,D,q){var Y={};for(let Be=c;Be<f;Be++){var oe=s.get(Be);Y.textBox={x1:oe.x1,y1:oe.y1,x2:oe.x2,y2:oe.y2,anchorPointX:oe.anchorPointX,anchorPointY:oe.anchorPointY},Y.textFeatureIndex=oe.featureIndex;break}for(let Be=y;Be<w;Be++){var ye=s.get(Be);Y.verticalTextBox={x1:ye.x1,y1:ye.y1,x2:ye.x2,y2:ye.y2,anchorPointX:ye.anchorPointX,anchorPointY:ye.anchorPointY},Y.verticalTextFeatureIndex=ye.featureIndex;break}for(let Be=x;Be<k;Be++){var Ce=s.get(Be);Y.iconBox={x1:Ce.x1,y1:Ce.y1,x2:Ce.x2,y2:Ce.y2,anchorPointX:Ce.anchorPointX,anchorPointY:Ce.anchorPointY},Y.iconFeatureIndex=Ce.featureIndex;break}for(let Be=D;Be<q;Be++){var Pe=s.get(Be);Y.verticalIconBox={x1:Pe.x1,y1:Pe.y1,x2:Pe.x2,y2:Pe.y2,anchorPointX:Pe.anchorPointX,anchorPointY:Pe.anchorPointY},Y.verticalIconFeatureIndex=Pe.featureIndex;break}return Y}deserializeCollisionBoxes(s){this.collisionArrays=[];for(let f=0;f<this.symbolInstances.length;f++){var c=this.symbolInstances.get(f);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(s,c.textBoxStartIndex,c.textBoxEndIndex,c.verticalTextBoxStartIndex,c.verticalTextBoxEndIndex,c.iconBoxStartIndex,c.iconBoxEndIndex,c.verticalIconBoxStartIndex,c.verticalIconBoxEndIndex))}}hasTextData(){return 0<this.text.segments.get().length}hasIconData(){return 0<this.icon.segments.get().length}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&0<this.textCollisionBox.segments.get().length}hasIconCollisionBoxData(){return this.hasDebugData()&&0<this.iconCollisionBox.segments.get().length}addIndicesForPlacedSymbol(s,f){var f=s.placedSymbolArray.get(f),y=f.vertexStartIndex+4*f.numGlyphs;for(let w=f.vertexStartIndex;w<y;w+=4)s.indexArray.emplaceBack(w,w+1,w+2),s.indexArray.emplaceBack(w+1,w+2,w+3)}
vendor: 26,707 bytes, line 129
129getSortedSymbolIndexes(s){if(this.sortedAngle===s&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;var c=Math.sin(s),f=Math.cos(s);const y=[],w=[];var x=[];for(let D=0;D<this.symbolInstances.length;++D){x.push(D);var k=this.symbolInstances.get(D);y.push(0|Math.round(c*k.anchorX+f*k.anchorY)),w.push(k.featureIndex)}return x.sort((D,q)=>y[D]-y[q]||w[q]-w[D]),x}addToSortKeyRanges(s,c){var f=this.sortKeyRanges[this.sortKeyRanges.length-1];f&&f.sortKey===c?f.symbolInstanceEnd=s+1:this.sortKeyRanges.push({sortKey:c,symbolInstanceStart:s,symbolInstanceEnd:s+1})}sortFeatures(s){if(this.sortFeaturesByY&&this.sortedAngle!==s&&!(1<this.text.segments.get().length||1<this.icon.segments.get().length)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(s),this.sortedAngle=s,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const f of this.symbolInstanceIndexes){var c=this.symbolInstances.get(f);this.featureSortOrder.push(c.featureIndex),[c.rightJustifiedTextSymbolIndex,c.centerJustifiedTextSymbolIndex,c.leftJustifiedTextSymbolIndex].forEach((y,w,x)=>{0<=y&&x.indexOf(y)===w&&this.addIndicesForPlacedSymbol(this.text,y)}),0<=c.verticalPlacedTextSymbolIndex&&this.addIndicesForPlacedSymbol(this.text,c.verticalPlacedTextSymbolIndex),0<=c.placedIconSymbolIndex&&this.addIndicesForPlacedSymbol(this.icon,c.placedIconSymbolIndex),0<=c.verticalPlacedIconSymbolIndex&&this.addIndicesForPlacedSymbol(this.icon,c.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}function Ef(g,s){return s.replace(/{([^{}]+)}/g,(c,f)=>g&&f in g?String(g[f]):"")}lr("SymbolBucket",yh,{omit:["layers","collisionBoxArray","features","compareText"]}),yh.MAX_GLYPHS=65535,yh.addDynamicAttributes=c0;let i1,rw;var Cf={get paint(){return rw=rw||new hs({"icon-opacity":new dn(_e.paint_symbol["icon-opacity"]),"icon-color":new dn(_e.paint_symbol["icon-color"]),"icon-halo-color":new dn(_e.paint_symbol["icon-halo-color"]),"icon-halo-width":new dn(_e.paint_symbol["icon-halo-width"]),"icon-halo-blur":new dn(_e.paint_symbol["icon-halo-blur"]),"icon-translate":new on(_e.paint_symbol["icon-translate"]),"icon-translate-anchor":new on(_e.paint_symbol["icon-translate-anchor"]),"text-opacity":new dn(_e.paint_symbol["text-opacity"]),"text-color":new dn(_e.paint_symbol["text-color"],{runtimeType:Jt,getOverride:g=>g.textColor,hasOverride:g=>!!g.textColor}),"text-halo-color":new dn(_e.paint_symbol["text-halo-color"]),"text-halo-width":new dn(_e.paint_symbol["text-halo-width"]),"text-halo-blur":new dn(_e.paint_symbol["text-halo-blur"]),"text-translate":new on(_e.paint_symbol["text-translate"]),"text-translate-anchor":new on(_e.paint_symbol["text-translate-anchor"])})},get layout(){return i1=i1||new hs({"symbol-placement":new on(_e.layout_symbol["symbol-placement"]),"symbol-spacing":new on(_e.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new on(_e.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new dn(_e.layout_symbol["symbol-sort-key"]),"symbol-z-order":new on(_e.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new on(_e.layout_symbol["icon-allow-overlap"]),"icon-overlap":new on(_e.layout_symbol["icon-overlap"]),"icon-ignore-placement":new on(_e.layout_symbol["icon-ignore-placement"]),"icon-optional":new on(_e.layout_symbol["icon-optional"]),"icon-rotation-alignment":new on(_e.layout_symbol["icon-rotation-alignment"]),"icon-size":new dn(_e.layout_symbol["icon-size"]),"icon-text-fit":new on(_e.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new on(_e.layout_symbol["icon-text-fit-padding"]),"icon-image":new dn(_e.layout_symbol["icon-image"]),"icon-rotate":new dn(_e.layout_symbol["icon-rotate"]),"icon-padding":new dn(_e.layout_symbol["icon-padding"]),"icon-keep-upright":new on(_e.layout_symbol["icon-keep-upright"]),"icon-offset":new dn(_e.layout_symbol["icon-offset"]),"icon-anchor":new dn(_e.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new on(_e.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new on(_e.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new on(_e.layout_symbol["text-rotation-alignment"]),"text-field":new dn(_e.layout_symbol["text-field"]),"text-font":new dn(_e.layout_symbol["text-font"]),"text-size":new dn(_e.layout_symbol["text-size"]),"text-max-width":new dn(_e.layout_symbol["text-max-width"]),"text-line-height":new on(_e.layout_symbol["text-line-height"]),"text-letter-spacing":new dn(_e.layout_symbol["text-letter-spacing"]),"text-justify":new dn(_e.layout_symbol["text-justify"]),"text-radial-offset":new dn(_e.layout_symbol["text-radial-offset"]),"text-variable-anchor":new on(_e.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new dn(_e.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new dn(_e.layout_symbol["text-anchor"]),"text-max-angle":new on(_e.layout_symbol["text-max-angle"]),"text-writing-mode":new on(_e.layout_symbol["text-writing-mode"]),"text-rotate":new dn(_e.layout_symbol["text-rotate"]),"text-padding":new on(_e.layout_symbol["text-padding"]),"text-keep-upright":new on(_e.layout_symbol["text-keep-upright"]),"text-transform":new dn(_e.layout_symbol["text-transform"]),"text-offset":new dn(_e.layout_symbol["text-offset"]),"text-allow-overlap":new on(_e.layout_symbol["text-allow-overlap"]),"text-overlap":new on(_e.layout_symbol["text-overlap"]),"text-ignore-placement":new on(_e.layout_symbol["text-ignore-placement"]),"text-optional":new on(_e.layout_symbol["text-optional"])})}};class o1{constructor(s){if(s.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=s.property.overrides?s.property.overrides.runtimeType:Ke,this.defaultValue=s}evaluate(s){if(s.formattedSection){var c=this.defaultValue.property.overrides;if(c&&c.hasOverride(s.formattedSection))return c.getOverride(s.formattedSection)}return s.feature&&s.featureState?this.defaultValue.evaluate(s.feature,s.featureState):this.defaultValue.property.specification.default}eachChild(s){this.defaultValue.isConstant()||s(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}lr("FormatSectionOverride",o1,{omit:["defaultValue"]});class vh extends Jl{constructor(s){super(s,Cf)}recalculate(s,c){if(super.recalculate(s,c),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point")if(s=this.layout.get("text-writing-mode"),s){var f=[];for(const y of s)f.indexOf(y)<0&&f.push(y);this.layout._values["text-writing-mode"]=f}else this.layout._values["text-writing-mode"]=["horizontal"];this._setPaintOverrides()}getValueAndResolveTokens(s,c,f,y){return f=this.layout.get(s).evaluate(c,{},f,y),y=this._unevaluatedLayout._values[s],y.isDataDriven()||hy(y.value)||!f?f:Ef(c.properties,f)}createBucket(s){return new yh(s)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(const f of Cf.paint.overridableProperties)if(vh.hasPaintOverride(this.layout,f)){var s=this.paint.get(f),c=new o1(s),c=new dy(c,s.property.specification);let y=null;y=s.value.kind==="constant"||s.value.kind==="source"?new ca("source",c):new fy("composite",c,s.value.zoomStops),this.paint._values[f]=new Ys(s.property,y,s.parameters)}}_handleOverridablePaintPropertyUpdate(s,c,f){return!(!this.layout||c.isDataDriven()||f.isDataDriven())&&vh.hasPaintOverride(this.layout,s)}static hasPaintOverride(s,c){s=s.get("text-field");const f=Cf.paint.properties[c];let y=!1;const w=x=>{for(const k of x)if(f.overrides&&f.overrides.hasOverride(k))return void(y=!0)};if(s.value.kind==="constant"&&s.value.value instanceof Kl)w(s.value.value.sections);else if(s.value.kind==="source"){const x=k=>{var D;y||(k instanceof Ac&&Ha(k.value)===mt?(D=k.value,w(D.sections)):k instanceof al?w(k.sections):k.eachChild(x))};c=s.value,c._styleExpression&&x(c._styleExpression.expression)}return y}}let a1;var uc={get paint(){return a1=a1||new hs({"background-color":new on(_e.paint_background["background-color"]),"background-pattern":new ff(_e.paint_background["background-pattern"]),"background-opacity":new on(_e.paint_background["background-opacity"])})}};class OC extends Jl{constructor(s){super(s,uc)}}let s1;var nw={get paint(){return s1=s1||new hs({"raster-opacity":new on(_e.paint_raster["raster-opacity"]),"raster-hue-rotate":new on(_e.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new on(_e.paint_raster["raster-brightness-min"]),"raster-brightness-max":new on(_e.paint_raster["raster-brightness-max"]),"raster-saturation":new on(_e.paint_raster["raster-saturation"]),"raster-contrast":new on(_e.paint_raster["raster-contrast"]),"raster-resampling":new on(_e.paint_raster["raster-resampling"]),"raster-fade-duration":new on(_e.paint_raster["raster-fade-duration"])})}};class dc extends Jl{constructor(s){super(s,nw)}}class Gg extends Jl{constructor(s){super(s,{}),this.onAdd=c=>{this.implementation.onAdd&&this.implementation.onAdd(c,c.painter.context.gl)},this.onRemove=c=>{this.implementation.onRemove&&this.implementation.onRemove(c,c.painter.context.gl)},this.implementation=s}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class _h{constructor(s){this._methodToThrottle=s,this._triggered=!1,typeof MessageChannel<"u"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._methodToThrottle()},0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}const hc=63710088e-1;class Ip{constructor(s,c){if(isNaN(s)||isNaN(c))throw new Error(`Invalid LngLat object: (${s}, ${c})`);if(this.lng=+s,this.lat=+c,90<this.lat||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Ip(F(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(s){var c=Math.PI/180,y=this.lat*c,f=s.lat*c,y=Math.sin(y)*Math.sin(f)+Math.cos(y)*Math.cos(f)*Math.cos((s.lng-this.lng)*c);return hc*Math.acos(Math.min(y,1))}static convert(s){if(s instanceof Ip)return s;if(Array.isArray(s)&&(s.length===2||s.length===3))return new Ip(Number(s[0]),Number(s[1]));if(Array.isArray(s)||typeof s!="object"||s===null)throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]");return new Ip(Number("lng"in s?s.lng:s.lon),Number(s.lat))}}const d0=2*Math.PI*hc;function iw(g){return d0*Math.cos(g*Math.PI/180)}function nI(g){return(180+g)/360}function Ap(g){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+g*Math.PI/360)))/360}function MC(g,s){return g/iw(s)}function NC(g){return 360*g-180}function Rp(g){return 360/Math.PI*Math.atan(Math.exp((180-360*g)*Math.PI/180))-90}function DC(g,s){return g*iw(Rp(s))}function My(g){return 1/Math.cos(g*Math.PI/180)}class l1{constructor(s,c,f=0){this.x=+s,this.y=+c,this.z=+f}static fromLngLat(s,c=0){return s=Ip.convert(s),new l1(nI(s.lng),Ap(s.lat),MC(c,s.lat))}toLngLat(){return new Ip(NC(this.x),Rp(this.y))}toAltitude(){return DC(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/d0*My(Rp(this.y))}}function iI(y,s,c){var f=ow(256*y,256*(s=Math.pow(2,c)-s-1),c),y=ow(256*(y+1),256*(s+1),c);return f[0]+","+f[1]+","+y[0]+","+y[1]}function ow(g,s,c){return c=2*Math.PI*6378137/256/Math.pow(2,c),[g*c-2*Math.PI*6378137/2,s*c-2*Math.PI*6378137/2]}class h0{constructor(s,c,f){if(s<0||25<s||f<0||f>=Math.pow(2,s)||c<0||c>=Math.pow(2,s))throw new Error(`x=${c}, y=${f}, z=${s} outside of bounds. 0<=x<${Math.pow(2,s)}, 0<=y<${Math.pow(2,s)} 0<=z<=25 `);this.z=s,this.x=c,this.y=f,this.key=f0(0,s,s,c,f)}equals(s){return this.z===s.z&&this.x===s.x&&this.y===s.y}url(s,c,f){var y=iI(this.x,this.y,this.z),w=aI(this.z,this.x,this.y);return s[(this.x+this.y)%s.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String(f==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace(/{ratio}/g,1<c?"@2x":"").replace(/{quadkey}/g,w).replace(/{bbox-epsg-3857}/g,y)}isChildOf(s){var c=this.z-s.z;return 0<c&&s.x===this.x>>c&&s.y===this.y>>c}getTilePoint(s){var c=Math.pow(2,this.z);return new h((s.x*c-this.x)*Zt,(s.y*c-this.y)*Zt)}toString(){return`${this.z}/${this.x}/`+this.y}}class oI{constructor(s,c){this.wrap=s,this.canonical=c,this.key=f0(s,c.z,c.z,c.x,c.y)}}class Vu{constructor(s,c,f,y,w){if(s<f)throw new Error(`overscaledZ should be >= z; overscaledZ = ${s}; z = `+f);this.overscaledZ=s,this.wrap=c,this.canonical=new h0(f,+y,+w),this.key=f0(c,s,f,y,w)}clone(){return new Vu(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(s){return this.overscaledZ===s.overscaledZ&&this.wrap===s.wrap&&this.canonical.equals(s.canonical)}scaledTo(s){if(s>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${s}; overscaledZ = `+this.overscaledZ);var c=this.canonical.z-s;return s>this.canonical.z?new Vu(s,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Vu(s,this.wrap,s,this.canonical.x>>c,this.canonical.y>>c)}calculateScaledKey(s,c){if(s>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${s}; overscaledZ = `+this.overscaledZ);var f=this.canonical.z-s;return s>this.canonical.z?f0(this.wrap*+c,s,this.canonical.z,this.canonical.x,this.canonical.y):f0(this.wrap*+c,s,s,this.canonical.x>>f,this.canonical.y>>f)}isChildOf(s){var c;return s.wrap===this.wrap&&(c=this.canonical.z-s.canonical.z,s.overscaledZ===0||s.overscaledZ<this.overscaledZ&&s.canonical.x===this.canonical.x>>c&&s.canonical.y===this.canonical.y>>c)}children(s){var c,f;return this.overscaledZ>=s?[new Vu(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)]:(s=this.canonical.z+1,c=2*this.canonical.x,f=2*this.canonical.y,[new Vu(s,this.wrap,s,c,f),new Vu(s,this.wrap,s,1+c,f),new Vu(s,this.wrap,s,c,1+f),new Vu(s,this.wrap,s,1+c,1+f)])}isLessThan(s){return this.wrap<s.wrap||!(this.wrap>s.wrap)&&(this.overscaledZ<s.overscaledZ||!(this.overscaledZ>s.overscaledZ)&&(this.canonical.x<s.canonical.x||!(this.canonical.x>s.canonical.x)&&this.canonical.y<s.canonical.y))}wrapped(){return new Vu(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(s){return new Vu(this.overscaledZ,s,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new oI(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/`+this.canonical.y}getTilePoint(s){return this.canonical.getTilePoint(new l1(s.x-this.wrap,s.y))}}function f0(g,s,c,f,y){var w=1<<c;return(w*w*(g=(g*=2)<0?-1*g-1:g)+w*y+f).toString(36)+c.toString(36)+s.toString(36)}function aI(g,s,c){let f="",y;for(let w=g;0<w;w--)y=1<<w-1,f+=(s&y?1:0)+(c&y?2:0);return f}lr("CanonicalTileID",h0),lr("OverscaledTileID",Vu,{omit:["posMatrix"]});class Yg{constructor(s,c,f,y=1,w=1,x=1,k=0){if(this.uid=s,c.height!==c.width)throw new RangeError("DEM tiles must be square");if(f&&!["mapbox","terrarium","custom"].includes(f))ne(`"${f}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);else{this.stride=c.height;var D=this.dim=c.height-2;switch(this.data=new Uint32Array(c.data.buffer),f){case"terrarium":this.redFactor=256,this.greenFactor=1,this.blueFactor=1/256,this.baseShift=32768;break;case"custom":this.redFactor=y,this.greenFactor=w,this.blueFactor=x,this.baseShift=k;break;default:this.redFactor=6553.6,this.greenFactor=25.6,this.blueFactor=.1,this.baseShift=1e4}for(let Y=0;Y<D;Y++)this.data[this._idx(-1,Y)]=this.data[this._idx(0,Y)],this.data[this._idx(D,Y)]=this.data[this._idx(D-1,Y)],this.data[this._idx(Y,-1)]=this.data[this._idx(Y,0)],this.data[this._idx(Y,D)]=this.data[this._idx(Y,D-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(D,-1)]=this.data[this._idx(D-1,0)],this.data[this._idx(-1,D)]=this.data[this._idx(0,D-1)],this.data[this._idx(D,D)]=this.data[this._idx(D-1,D-1)],this.min=Number.MAX_SAFE_INTEGER,this.max=Number.MIN_SAFE_INTEGER;for(let Y=0;Y<D;Y++)for(let oe=0;oe<D;oe++){var q=this.get(Y,oe);q>this.max&&(this.max=q),q<this.min&&(this.min=q)}}}get(y,c){var f=new Uint8Array(this.data.buffer),y=4*this._idx(y,c);return this.unpack(f[y],f[1+y],f[2+y])}getUnpackVector(){return[this.redFactor,this.greenFactor,this.blueFactor,this.baseShift]}_idx(s,c){if(s<-1||s>=this.dim+1||c<-1||c>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(c+1)*this.stride+(s+1)}unpack(s,c,f){return s*this.redFactor+c*this.greenFactor+f*this.blueFactor-this.baseShift}getPixels(){return new To({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(s,c,f){if(this.dim!==s.dim)throw new Error("dem dimension mismatch");let y=c*this.dim,w=c*this.dim+this.dim,x=f*this.dim,k=f*this.dim+this.dim;switch(c){case-1:y=w-1;break;case 1:w=y+1}switch(f){case-1:x=k-1;break;case 1:k=x+1}var D=-c*this.dim,q=-f*this.dim;for(let Y=x;Y<k;Y++)for(let oe=y;oe<w;oe++)this.data[this._idx(oe,Y)]=s.data[this._idx(oe+D,Y+q)]}}lr("DEMData",Yg);class sI{constructor(s){this._stringToNumber={},this._numberToString=[];for(let f=0;f<s.length;f++){var c=s[f];this._stringToNumber[c]=f,this._numberToString[f]=c}}encode(s){return this._stringToNumber[s]}decode(s){if(s>=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${s} can't be >= this._numberToString.length `+this._numberToString.length);return this._numberToString[s]}}class Ny{constructor(s,c,f,y,w){this.type="Feature",(this._vectorTileFeature=s)._z=c,s._x=f,s._y=y,this.properties=s.properties,this.id=w}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(s){this._geometry=s}toJSON(){var s={geometry:this.geometry};for(const c in this)c!=="_geometry"&&c!=="_vectorTileFeature"&&(s[c]=this[c]);return s}}class LC{constructor(s,c){this.tileID=s,this.x=s.canonical.x,this.y=s.canonical.y,this.z=s.canonical.z,this.grid=new Si(Zt,16,0),this.grid3D=new Si(Zt,16,0),this.featureIndexArray=new Co,this.promoteId=c}insert(s,c,f,y,w,x){var k=this.featureIndexArray.length,D=(this.featureIndexArray.emplaceBack(f,y,w),x?this.grid3D:this.grid);for(let ye=0;ye<c.length;ye++){var q=c[ye],Y=[1/0,1/0,-1/0,-1/0];for(let Ce=0;Ce<q.length;Ce++){var oe=q[Ce];Y[0]=Math.min(Y[0],oe.x),Y[1]=Math.min(Y[1],oe.y),Y[2]=Math.max(Y[2],oe.x),Y[3]=Math.max(Y[3],oe.y)}Y[0]<Zt&&Y[1]<Zt&&0<=Y[2]&&0<=Y[3]&&D.insert(k,Y[0],Y[1],Y[2],Y[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new Ug.VectorTile(new ew(this.rawTileData)).layers,this.sourceLayerCoder=new sI(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(s,c,f,y){this.loadVTLayers();const w=s.params||{},x=Zt/s.tileSize/s.scale,k=gy(w.filter),D=s.queryGeometry,q=s.queryPadding*x;var oe=HC(D),Y=this.grid.query(oe.minX-q,oe.minY-q,oe.maxX+q,oe.maxY+q),oe=HC(s.cameraQueryGeometry);for(const Be of this.grid3D.query(oe.minX-q,oe.minY-q,oe.maxX+q,oe.maxY+q,(Ze,Ge,Fe,Le)=>Dn(s.cameraQueryGeometry,Ze-q,Ge-q,Fe+q,Le+q)))Y.push(Be);Y.sort(lI);var ye={};let Ce;for(let Be=0;Be<Y.length;Be++){var Pe=Y[Be];if(Pe!==Ce){Ce=Pe,Pe=this.featureIndexArray.get(Pe);let Ze=null;this.loadMatchingFeature(ye,Pe.bucketIndex,Pe.sourceLayerIndex,Pe.featureIndex,k,w.layers,w.availableImages,c,f,y,(Ge,Fe,Le)=>(Ze=Ze||xr(Ge),Fe.queryIntersectsFeature(D,Ge,Le,Ze,this.z,s.transform,x,s.pixelPosMatrix)))}}return ye}loadMatchingFeature(s,c,f,y,w,x,k,D,q,Y,oe){var ye=this.bucketLayerIDs[c];if(!x||ie(x,ye)){var c=this.sourceLayerCoder.decode(f),Ce=this.vtLayers[c].feature(y);if(w.needGeometry){if(f=Dr(Ce,!0),!w.filter(new vo(this.tileID.overscaledZ),f,this.tileID.canonical))return}else if(!w.filter(new vo(this.tileID.overscaledZ),Ce))return;var Pe=this.getId(Ce,c);for(let Je=0;Je<ye.length;Je++){var Be=ye[Je];if(!(x&&x.indexOf(Be)<0)){var Ze=D[Be];if(Ze){let ht={};Pe&&Y&&(ht=Y.getState(Ze.sourceLayer||"_geojsonTileLayer",Pe));var Ge=j({},q[Be]),Ze=(Ge.paint=ma(Ge.paint,Ze.paint,Ce,ht,k),Ge.layout=ma(Ge.layout,Ze.layout,Ce,ht,k),!oe||oe(Ce,Ze,ht));if(Ze){var Fe=new Ny(Ce,this.z,this.x,this.y,Pe);Fe.layer=Ge;let Lt=s[Be];(Lt=Lt===void 0?s[Be]=[]:Lt).push({featureIndex:y,feature:Fe,intersectionZ:Ze})}}}}}}lookupSymbolFeatures(s,c,f,y,w,x,k,D){var q={},Y=(this.loadVTLayers(),gy(w));for(const oe of s)this.loadMatchingFeature(q,f,y,oe,Y,x,k,D,c);return q}hasLayer(s){for(const c of this.bucketLayerIDs)for(const f of c)if(s===f)return!0;return!1}getId(s,c){let f=s.id;return f=this.promoteId&&(c=typeof this.promoteId=="string"?this.promoteId:this.promoteId[c],typeof(f=s.properties[c])=="boolean")?Number(f):f}}function ma(g,s,c,f,y){return B(g,(w,x)=>(x=s instanceof hf?s.get(x):null,x&&x.evaluate?x.evaluate(c,f,y):x))}function HC(g){let s=1/0,c=1/0,f=-1/0,y=-1/0;for(const w of g)s=Math.min(s,w.x),c=Math.min(c,w.y),f=Math.max(f,w.x),y=Math.max(y,w.y);return{minX:s,minY:c,maxX:f,maxY:y}}function lI(g,s){return s-g}function cI(g,s,c,f,y){var w=[];for(let k=0;k<g.length;k++){var x=g[k];let D;for(let q=0;q<x.length-1;q++){let Y=x[q],oe=x[q+1];Y.x<s&&oe.x<s||(Y.x<s?Y=new h(s,Y.y+(oe.y-Y.y)*((s-Y.x)/(oe.x-Y.x)))._round():oe.x<s&&(oe=new h(s,Y.y+(oe.y-Y.y)*((s-Y.x)/(oe.x-Y.x)))._round()),Y.y<c&&oe.y<c)||(Y.y<c?Y=new h(Y.x+(oe.x-Y.x)*((c-Y.y)/(oe.y-Y.y)),c)._round():oe.y<c&&(oe=new h(Y.x+(oe.x-Y.x)*((c-Y.y)/(oe.y-Y.y)),c)._round()),Y.x>=f&&oe.x>=f)||(Y.x>=f?Y=new h(f,Y.y+(oe.y-Y.y)*((f-Y.x)/(oe.x-Y.x)))._round():oe.x>=f&&(oe=new h(f,Y.y+(oe.y-Y.y)*((f-Y.x)/(oe.x-Y.x)))._round()),Y.y>=y&&oe.y>=y)||(Y.y>=y?Y=new h(Y.x+(oe.x-Y.x)*((y-Y.y)/(oe.y-Y.y)),y)._round():oe.y>=y&&(oe=new h(Y.x+(oe.x-Y.x)*((y-Y.y)/(oe.y-Y.y)),y)._round()),D&&Y.equals(D[D.length-1])||(D=[Y],w.push(D)),D.push(oe))}}return w}lr("FeatureIndex",LC,{omit:["rawTileData","sourceLayerCoder"]});class Wg extends h{constructor(s,c,f,y){super(s,c),this.angle=f,y!==void 0&&(this.segment=y)}clone(){return new Wg(this.x,this.y,this.angle,this.segment)}}function FC(g,s,c,f,y){if(s.segment!==void 0&&c!==0){let q=s,Y=s.segment+1,oe=0;for(;oe>-c/2;){if(--Y<0)return;oe-=g[Y].dist(q),q=g[Y]}oe+=g[Y].dist(g[Y+1]),Y++;var w=[];let ye=0;for(;oe<c/2;){var x=g[Y-1],k=g[Y],D=g[Y+1];if(!D)return;for(x=x.angleTo(k)-k.angleTo(D),x=Math.abs((x+3*Math.PI)%(2*Math.PI)-Math.PI),w.push({distance:oe,angleDelta:x}),ye+=x;oe-w[0].distance>f;)ye-=w.shift().angleDelta;if(ye>y)return;Y++,oe+=k.dist(D)}}return 1}function UC(g){let s=0;for(let c=0;c<g.length-1;c++)s+=g[c].dist(g[c+1]);return s}function uI(g,s,c){return g?.6*s*c:0}function qu(g,s){return Math.max(g?g.right-g.left:0,s?s.right-s.left:0)}function BC(g,s,c,Y,oe,Ce,x,k,D){var q=uI(Y,Ce,x),Y=qu(Y,oe),oe=Y*x,ye=g[0].x===0||g[0].x===D||g[0].y===0||g[0].y===D,Ce=(s-oe<s/4&&(s=oe+s/4),2*Ce);return(function Pe(Be,Ze,Ge,Fe,Le,Je,ht,St,Lt){const qt=Je/2,jt=UC(Be);let Wt=0,tr=Ze-Ge,dr=[];for(let cr=0;cr<Be.length-1;cr++){const Kt=Be[cr],Gr=Be[cr+1],$r=Kt.dist(Gr),Wr=Gr.angleTo(Kt);for(;tr+Ge<Wt+$r;){const kn=((tr+=Ge)-Wt)/$r,ci=Pc.number(Kt.x,Gr.x,kn),$n=Pc.number(Kt.y,Gr.y,kn);if(0<=ci&&ci<Lt&&0<=$n&&$n<Lt&&0<=tr-qt&&tr+qt<=jt){const Zi=new Wg(ci,$n,Wr,cr);Zi._round(),Fe&&!FC(Be,Zi,Je,Fe,Le)||dr.push(Zi)}}Wt+=$r}return St||dr.length||ht||(dr=Pe(Be,Wt/2,Ge,Fe,Le,Je,ht,!0,Lt)),dr})(g,ye?s/2*k%s:(Y/2+Ce)*x*k%s,s,q,c,oe,ye,!1,D)}lr("Anchor",Wg);const Dy=hl;function Pp(g,s,c,f){var y=[];const w=g.image,x=w.pixelRatio;var k=w.paddedRect.w-2*Dy,D=w.paddedRect.h-2*Dy;let q={x1:g.left,y1:g.top,x2:g.right,y2:g.bottom};var Y=w.stretchX||[[0,k]],oe=w.stretchY||[[0,D]],Ge=(fn,wn)=>fn+wn[1]-wn[0];const ye=Y.reduce(Ge,0),Ce=oe.reduce(Ge,0);var Pe,Be,Ze,Ge=k-ye,Fe=D-Ce;let Le=0,Je=ye,ht=0,St=Ce,Lt=0,qt=Ge,jt=0,Wt=Fe;w.content&&f&&(Be=(Pe=w.content)[2]-Pe[0],Ze=Pe[3]-Pe[1],w.contentMatch&&w.content&&(q=Ji(g)),Le=xf(Y,0,Pe[0]),ht=xf(oe,0,Pe[1]),Je=xf(Y,Pe[0],Pe[2]),St=xf(oe,Pe[1],Pe[3]),Lt=Pe[0]-Le,jt=Pe[1]-ht,qt=Be-Je,Wt=Ze-St);const tr=q.x1,dr=q.y1,cr=q.x2-tr,Kt=q.y2-dr;var Gr=(Tf,wn,Ri,So)=>{var Bn=(Tf.stretch-Le)/Je*cr+tr,v0=Tf.fixed-Lt-qt*Tf.stretch/ye,In=(wn.stretch-ht)/St*Kt+dr,Bc=wn.fixed-jt-Wt*wn.stretch/Ce,Pi=(Ri.stretch-Le)/Je*cr+tr,Hl=Ri.fixed-Lt-qt*Ri.stretch/ye,Vo=(So.stretch-ht)/St*Kt+dr,Qg=So.fixed-jt-Wt*So.stretch/Ce,Ll=new h(Bn,In),In=new h(Pi,In),Pi=new h(Pi,Vo),Bn=new h(Bn,Vo),Vo=new h(v0/x,Bc/x),v0=new h(Hl/x,Qg/x),Bc=s*Math.PI/180,Hl=(Bc&&(Hl=Math.sin(Bc),Qg=Math.cos(Bc),Ll._matMult(Bc=[Qg,-Hl,Hl,Qg]),In._matMult(Bc),Bn._matMult(Bc),Pi._matMult(Bc)),Tf.stretch+Tf.fixed),Qg=Ri.stretch+Ri.fixed,Bc=wn.stretch+wn.fixed,Tf=So.stretch+So.fixed;return{tl:Ll,tr:In,bl:Bn,br:Pi,tex:{x:w.paddedRect.x+Dy+Hl,y:w.paddedRect.y+Dy+Bc,w:Qg-Hl,h:Tf-Bc},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Vo,pixelOffsetBR:v0,minFontScaleX:qt/x/cr,minFontScaleY:Wt/x/Kt,isSDF:c}};if(f&&(w.stretchX||w.stretchY)){var $r=Kg(Y,Ge,ye),Wr=Kg(oe,Fe,Ce);for(let fn=0;fn<$r.length-1;fn++){var kn=$r[fn],ci=$r[fn+1];for(let wn=0;wn<Wr.length-1;wn++){var $n=Wr[wn],Zi=Wr[wn+1];y.push(Gr(kn,$n,ci,Zi))}}}else y.push(Gr({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:1+k},{fixed:0,stretch:1+D}));return y}function xf(g,s,c){let f=0;for(const y of g)f+=Math.max(s,Math.min(c,y[1]))-Math.max(s,Math.min(c,y[0]));return f}function Kg(g,s,c){var f,y,w=[{fixed:-Dy,stretch:0}];for([f,y]of g){var x=w[w.length-1];
vendor: 1,726 bytes, line 129
129w.push({fixed:f-x.stretch,stretch:x.stretch}),w.push({fixed:f-x.stretch,stretch:x.stretch+(y-f)})}return w.push({fixed:s+Dy,stretch:c}),w}function aw(g,s,c,f,y,w,x,k){var D=f.layout.get("text-rotate").evaluate(w,{})*Math.PI/180,q=[];for(const ht of s.positionedLines)for(const St of ht.positionedGlyphs)if(St.rect){var Y=St.rect||{};let Lt=ju+1,qt=!0,jt=1,Wt=0;var oe,Je=(y||k)&&St.vertical,ye=St.metrics.advance*St.scale/2,Ce=(k&&s.verticalizable&&(Ce=(St.scale-1)*Sa,oe=(Sa-St.metrics.width*St.scale)/2,Wt=ht.lineOffset/2-(St.imageName?-oe:Ce)),St.imageName&&(oe=x[St.imageName],qt=oe.sdf,jt=oe.pixelRatio,Lt=hl/jt),y?[St.x+ye,St.y]:[0,0]);let tr=y?[0,0]:[St.x+ye+c[0],St.y+c[1]-Wt],dr=[0,0];Je&&(dr=tr,tr=[0,0]);var Pe=St.metrics.isDoubleResolution?2:1,Ge=(St.metrics.left-Lt)*St.scale-ye+tr[0],Ze=(-St.metrics.top-Lt)*St.scale+tr[1],Fe=Ge+Y.w/Pe*St.scale/jt,Pe=Ze+Y.h/Pe*St.scale/jt,Be=new h(Ge,Ze),Ze=new h(Fe,Ze),Ge=new h(Ge,Pe),Fe=new h(Fe,Pe),Le=(Je&&(Pe=new h(-ye,ye-jg),Je=-Math.PI/2,ye=Sa/2-ye,Le=St.imageName?ye:0,ye=new h(5-jg-ye,-Le),Le=new h(...dr),Be._rotateAround(Je,Pe)._add(ye)._add(Le),Ze._rotateAround(Je,Pe)._add(ye)._add(Le),Ge._rotateAround(Je,Pe)._add(ye)._add(Le),Fe._rotateAround(Je,Pe)._add(ye)._add(Le)),D&&(Je=Math.sin(D),Pe=Math.cos(D),Be._matMult(ye=[Pe,-Je,Je,Pe]),Ze._matMult(ye),Ge._matMult(ye),Fe._matMult(ye)),new h(0,0)),Je=new h(0,0);q.push({tl:Be,tr:Ze,bl:Ge,br:Fe,tex:Y,writingMode:s.writingMode,glyphOffset:Ce,sectionIndex:St.sectionIndex,isSDF:qt,pixelOffsetTL:Le,pixelOffsetBR:Je,minFontScaleX:0,minFontScaleY:0})}return q}class p0{constructor(s,c,f,y,w,x,k,D,q,Y){if(this.boxStartIndex=s.length,q){let ye=x.top,Ce=x.bottom;var q=x.collisionPadding,q=(q&&(ye-=q[1],Ce+=q[3]),Ce-ye);
vendor: 12,513 bytes, line 129
1290<q&&(q=Math.max(10,q),this.circleDiameter=q)}else{var oe,q=(q=x.image)!=null&&q.contentMatch&&x.image.content?Ji(x):{x1:x.left,y1:x.top,x2:x.right,y2:x.bottom},D=(q.y1=q.y1*k-D[0],q.x2=q.x2*k+D[1],q.y2=q.y2*k+D[2],q.x1=q.x1*k-D[3],x.collisionPadding);D&&(q.x1-=D[0]*k,q.y1-=D[1]*k,q.x2+=D[2]*k,q.y2+=D[3]*k),Y&&(x=new h(q.x1,q.y1),D=new h(q.x2,q.y1),k=new h(q.x1,q.y2),oe=new h(q.x2,q.y2),Y=Y*Math.PI/180,x._rotate(Y),D._rotate(Y),k._rotate(Y),oe._rotate(Y),q.x1=Math.min(x.x,D.x,k.x,oe.x),q.x2=Math.max(x.x,D.x,k.x,oe.x),q.y1=Math.min(x.y,D.y,k.y,oe.y),q.y2=Math.max(x.y,D.y,k.y,oe.y)),s.emplaceBack(c.x,c.y,q.x1,q.y1,q.x2,q.y2,f,y,w)}this.boxEndIndex=s.length}}class $C{constructor(s=[],c=$k){if(this.data=s,this.length=this.data.length,this.compare=c,0<this.length)for(let f=(this.length>>1)-1;0<=f;f--)this._down(f)}push(s){this.data.push(s),this.length++,this._up(this.length-1)}pop(){var s,c;if(this.length!==0)return s=this.data[0],c=this.data.pop(),this.length--,0<this.length&&(this.data[0]=c,this._down(0)),s}peek(){return this.data[0]}_up(s){for(var{data:c,compare:f}=this,y=c[s];0<s;){var w=s-1>>1,x=c[w];if(0<=f(y,x))break;c[s]=x,s=w}c[s]=y}_down(s){for(var{data:c,compare:f}=this,y=this.length>>1,w=c[s];s<y;){let k=1+(s<<1),D=c[k];var x=k+1;if(x<this.length&&f(c[x],D)<0&&(k=x,D=c[x]),0<=f(D,w))break;c[s]=D,s=k}c[s]=w}}function $k(g,s){return g<s?-1:s<g?1:0}function zC(g,s=1,c=!1){let f=1/0,y=1/0,w=-1/0,x=-1/0;var k=g[0];for(let Ge=0;Ge<k.length;Ge++){var D=k[Ge];(!Ge||D.x<f)&&(f=D.x),(!Ge||D.y<y)&&(y=D.y),(!Ge||D.x>w)&&(w=D.x),(!Ge||D.y>x)&&(x=D.y)}var q=w-f,Y=x-y,oe=Math.min(q,Y);let ye=oe/2;var Ce=new $C([],zk);if(oe===0)return new h(f,y);for(let Ge=f;Ge<w;Ge+=oe)for(let Fe=y;Fe<x;Fe+=oe)Ce.push(new Ly(Ge+ye,Fe+ye,ye,g));let Pe=(function(Ge){let Fe=0,Le=0,Je=0;var ht=Ge[0];for(let jt=0,Wt=ht.length,tr=Wt-1;jt<Wt;tr=jt++){var St=ht[jt],Lt=ht[tr],qt=St.x*Lt.y-Lt.x*St.y;Le+=(St.x+Lt.x)*qt,Je+=(St.y+Lt.y)*qt,Fe+=3*qt}return new Ly(Le/Fe,Je/Fe,0,Ge)})(g),Be=Ce.length;for(;Ce.length;){var Ze=Ce.pop();(Ze.d>Pe.d||!Pe.d)&&(Pe=Ze,c)&&console.log("found best %d after %d probes",Math.round(1e4*Ze.d)/1e4,Be),Ze.max-Pe.d<=s||(ye=Ze.h/2,Ce.push(new Ly(Ze.p.x-ye,Ze.p.y-ye,ye,g)),Ce.push(new Ly(Ze.p.x+ye,Ze.p.y-ye,ye,g)),Ce.push(new Ly(Ze.p.x-ye,Ze.p.y+ye,ye,g)),Ce.push(new Ly(Ze.p.x+ye,Ze.p.y+ye,ye,g)),Be+=4)}return c&&(console.log("num probes: "+Be),console.log("best distance: "+Pe.d)),Pe.p}function zk(g,s){return s.max-g.max}function Ly(g,s,c,f){this.p=new h(g,s),this.h=c,this.d=(function(y,w){let x=!1,k=1/0;for(let oe=0;oe<w.length;oe++){var D=w[oe];for(let ye=0,Ce=D.length,Pe=Ce-1;ye<Ce;Pe=ye++){var q=D[ye],Y=D[Pe];q.y>y.y!=Y.y>y.y&&y.x<(Y.x-q.x)*(y.y-q.y)/(Y.y-q.y)+q.x&&(x=!x),k=Math.min(k,Li(y,q,Y))}}return(x?1:-1)*Math.sqrt(k)})(this.p,f),this.max=this.d+this.h*Math.SQRT2}i.TextAnchorEnum=void 0,(ho=i.TextAnchorEnum||(i.TextAnchorEnum={}))[ho.center=1]="center",ho[ho.left=2]="left",ho[ho.right=3]="right",ho[ho.top=4]="top",ho[ho.bottom=5]="bottom",ho[ho["top-left"]=6]="top-left",ho[ho["top-right"]=7]="top-right",ho[ho["bottom-left"]=8]="bottom-left",ho[ho["bottom-right"]=9]="bottom-right";const kp=7,g0=Number.POSITIVE_INFINITY;function c1(g,s){if(s[1]!==g0){var c=g,f=s[0],y=s[1];let k=0,D=0;switch(f=Math.abs(f),y=Math.abs(y),c){case"top-right":case"top-left":case"top":D=y-kp;break;case"bottom-right":case"bottom-left":case"bottom":D=-y+kp}switch(c){case"top-right":case"bottom-right":case"right":k=-f;break;case"top-left":case"bottom-left":case"left":k=f}return[k,D]}{var c=g,w=s[0];let D=0,q=0;var x=(w=w<0?0:w)/Math.SQRT2;switch(c){case"top-right":case"top-left":q=x-kp;break;case"bottom-right":case"bottom-left":q=-x+kp;break;case"bottom":q=-w+kp;break;case"top":q=w-kp}switch(c){case"top-right":case"bottom-right":D=-x;break;case"top-left":case"bottom-left":D=x;break;case"left":D=w;break;case"right":D=-w}return[D,q]}}function jC(g,s,c){var f=g.layout,y=(y=f.get("text-variable-anchor-offset"))==null?void 0:y.evaluate(s,{},c);if(y){var w=y.values,x=[];for(let Y=0;Y<w.length;Y+=2){var k=x[Y]=w[Y],D=w[Y+1].map(oe=>oe*Sa);k.startsWith("top")?D[1]-=kp:k.startsWith("bottom")&&(D[1]+=kp),x[Y+1]=D}return new La(x)}if(y=f.get("text-variable-anchor"),y){let Y;var g=g._unevaluatedLayout,q=(Y=g.getValue("text-radial-offset")!==void 0?[f.get("text-radial-offset").evaluate(s,{},c)*Sa,g0]:f.get("text-offset").evaluate(s,{},c).map(ye=>ye*Sa),[]);for(const ye of y)q.push(ye,c1(ye,Y));return new La(q)}return null}function u1(g){switch(g){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function dI(g,s,c,f,y,w,x,k,D,q,Y,oe,ye,Ce,Pe){c=aw(0,c,k,y,w,x,f,g.allowVerticalPlacement),f=g.textSizeData;let Be=null;f.kind==="source"?(Be=[ua*y.layout.get("text-size").evaluate(x,{})])[0]>Os&&ne(`${g.layerIds[0]}: Value for "text-size" is >= ${Ia}. Reduce your "text-size".`):f.kind==="composite"&&((Be=[ua*Ce.compositeTextSizes[0].evaluate(x,{},Pe),ua*Ce.compositeTextSizes[1].evaluate(x,{},Pe)])[0]>Os||Be[1]>Os)&&ne(`${g.layerIds[0]}: Value for "text-size" is >= ${Ia}. Reduce your "text-size".`),g.addSymbols(g.text,c,Be,k,w,x,q,s,D.lineStartIndex,D.lineLength,ye,Pe);for(const Ze of Y)oe[Ze]=g.text.placedSymbolArray.length-1;return 4*c.length}function VC(g){for(const s in g)return g[s];return null}const sw=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];function Hy(g,s,c,f,y,w){var x;y-f<=c||((function k(D,q,Y,oe,ye,Ce){for(;oe<ye;){if(600<ye-oe){const Ge=ye-oe+1,Fe=Y-oe+1,Le=Math.log(Ge),Je=.5*Math.exp(2*Le/3),ht=.5*Math.sqrt(Le*Je*(Ge-Je)/Ge)*(Fe-Ge/2<0?-1:1),St=Math.max(oe,Math.floor(Y-Fe*Je/Ge+ht)),Lt=Math.min(ye,Math.floor(Y+(Ge-Fe)*Je/Ge+ht));k(D,q,Y,St,Lt,Ce)}const Pe=q[2*Y+Ce];let Be=oe,Ze=ye;for(Zg(D,q,oe,Y),q[2*ye+Ce]>Pe&&Zg(D,q,oe,ye);Be<Ze;){for(Zg(D,q,Be,Ze),Be++,Ze--;q[2*Be+Ce]<Pe;)Be++;for(;q[2*Ze+Ce]>Pe;)Ze--}q[2*oe+Ce]===Pe?Zg(D,q,oe,Ze):(Ze++,Zg(D,q,Ze,ye)),Ze<=Y&&(oe=Ze+1),Y<=Ze&&(ye=Ze-1)}})(g,s,x=f+y>>1,f,y,w),Hy(g,s,c,f,x-1,1-w),Hy(g,s,c,1+x,y,1-w))}function Zg(g,s,c,f){m0(g,c,f),m0(s,2*c,2*f),m0(s,2*c+1,2*f+1)}function m0(g,s,c){var f=g[s];g[s]=g[c],g[c]=f}function qC(g,s,c,f){return g-=c,c=s-f,g*g+c*c}i.PerformanceMarkers=void 0,(Lo=i.PerformanceMarkers||(i.PerformanceMarkers={})).create="create",Lo.load="load",Lo.fullLoad="fullLoad";let lw=null,Xg=[];const y0=1e3/60,Fy="loadTime",GC="fullLoadTime";ho={mark(g){performance.mark(g)},frame(g){var s;lw!=null&&(s=g-lw,Xg.push(s)),lw=g},clearMetrics(){lw=null,Xg=[],performance.clearMeasures(Fy),performance.clearMeasures(GC);for(const g in i.PerformanceMarkers)performance.clearMarks(i.PerformanceMarkers[g])},getPerformanceMetrics(){performance.measure(Fy,i.PerformanceMarkers.create,i.PerformanceMarkers.load),performance.measure(GC,i.PerformanceMarkers.create,i.PerformanceMarkers.fullLoad);var g=performance.getEntriesByName(Fy)[0].duration,s=performance.getEntriesByName(GC)[0].duration,c=Xg.length,f=1/(Xg.reduce((w,x)=>w+x,0)/c/1e3),y=Xg.filter(w=>w>y0).reduce((w,x)=>w+(x-y0)/y0,0);return{loadTime:g,fullLoadTime:s,fps:f,percentDroppedFrames:y/(c+y)*100,totalFrames:c}}},i.AJAXError=ot,i.Actor=class{constructor(g,s){this.target=g,this.mapId=s,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new _h(()=>this.process()),this.subscription=ve(this.target,"message",c=>this.receive(c),!1),this.globalScope=K(self)?g:window}registerMessageHandler(g,s){this.messageHandlers[g]=s}sendAsync(g,s){return new Promise((c,f)=>{const y=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[y]={resolve:c,reject:f},s&&s.signal.addEventListener("abort",()=>{delete this.resolveRejects[y];var w={id:y,type:"<cancel>",origin:location.origin,targetMapId:g.targetMapId,sourceMapId:this.mapId};this.target.postMessage(w)},{once:!0}),c=[],f=Object.assign(Object.assign({},g),{id:y,sourceMapId:this.mapId,origin:location.origin,data:nh(g.data,c)}),this.target.postMessage(f,{transfer:c})})}receive(c){var s,c=c.data,f=c.id;c.origin!=="file://"&&location.origin!=="file://"&&c.origin!==location.origin||c.targetMapId&&this.mapId!==c.targetMapId||(c.type==="<cancel>"?(delete this.tasks[f],s=this.abortControllers[f],delete this.abortControllers[f],s&&s.abort()):K(self)||c.mustQueue?(this.tasks[f]=c,this.taskQueue.push(f),this.invoker.trigger()):this.processTask(f,c))}process(){var g,s;this.taskQueue.length!==0&&(g=this.taskQueue.shift(),s=this.tasks[g],delete this.tasks[g],0<this.taskQueue.length&&this.invoker.trigger(),s)&&this.processTask(g,s)}processTask(g,s){return o(this,void 0,void 0,function*(){if(s.type==="<response>")return c=this.resolveRejects[g],delete this.resolveRejects[g],c?void(s.error?c.reject(xa(s.error)):c.resolve(xa(s.data))):void 0;if(this.messageHandlers[s.type]){var c=xa(s.data),f=new AbortController;this.abortControllers[g]=f;try{var y=yield this.messageHandlers[s.type](s.sourceMapId,c,f);this.completeTask(g,null,y)}catch(w){this.completeTask(g,w)}}else this.completeTask(g,new Error(`Could not find a registered handler for ${s.type}, map ID: ${this.mapId}, available handlers: `+Object.keys(this.messageHandlers).join(", ")))})}completeTask(y,s,c){var f=[],y=(delete this.abortControllers[y],{id:y,type:"<response>",sourceMapId:this.mapId,origin:location.origin,error:s?nh(s):null,data:nh(c,f)});this.target.postMessage(y,{transfer:f})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},i.AlphaImage=Zo,i.CanonicalTileID=h0,i.CollisionBoxArray=D_,i.CollisionCircleLayoutArray=class extends mf{},i.Color=Wi,i.DEMData=Yg,i.DataConstantProperty=on,i.DictionaryCoder=sI,i.EXTENT=Zt,i.ErrorEvent=me,i.EvaluationParameters=vo,i.Event=te,i.Evented=Ae,i.FeatureIndex=LC,i.FillBucket=Qv,i.FillExtrusionBucket=Cp,i.GLOBAL_DISPATCHER_ID=tt,i.GeoJSONFeature=Ny,i.ImageAtlas=lc,i.ImagePosition=e1,i.KDBush=class Nve{static from(s){if(!(s instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");var c,[f,y]=new Uint8Array(s,0,2);if(f!==219)throw new Error("Data does not appear to be in a KDBush format.");if((f=y>>4)!=1)throw new Error(`Got v${f} data when expected v1.`);if(f=sw[15&y])return[y]=new Uint16Array(s,2,1),[c]=new Uint32Array(s,4,1),new Nve(c,y,f,s);throw new Error("Unrecognized array type.")}constructor(s,c=64,f=Float64Array,y){if(isNaN(s)||s<0)throw new Error(`Unpexpected numItems value: ${s}.`);this.numItems=+s,this.nodeSize=Math.min(Math.max(+c,2),65535),this.ArrayType=f,this.IndexArrayType=s<65536?Uint16Array:Uint32Array;var w=sw.indexOf(this.ArrayType),x=2*s*this.ArrayType.BYTES_PER_ELEMENT,k=s*this.IndexArrayType.BYTES_PER_ELEMENT,D=(8-k%8)%8;if(w<0)throw new Error(`Unexpected typed array class: ${f}.`);y&&y instanceof ArrayBuffer?(this.data=y,this.ids=new this.IndexArrayType(this.data,8,s),this.coords=new this.ArrayType(this.data,8+k+D,2*s),this._pos=2*s,this._finished=!0):(this.data=new ArrayBuffer(8+x+k+D),this.ids=new this.IndexArrayType(this.data,8,s),this.coords=new this.ArrayType(this.data,8+k+D,2*s),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+w]),new Uint16Array(this.data,2,1)[0]=c,new Uint32Array(this.data,4,1)[0]=s)}add(s,c){var f=this._pos>>1;return this.ids[f]=f,this.coords[this._pos++]=s,this.coords[this._pos++]=c,f}finish(){var s=this._pos>>1;if(s!==this.numItems)throw new Error(`Added ${s} items when expected ${this.numItems}.`);return Hy(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(s,c,f,y){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");for(var{ids:w,coords:x,nodeSize:k}=this,D=[0,w.length-1,0],q=[];D.length;){var Y=D.pop()||0,oe=D.pop()||0,ye=D.pop()||0;if(oe-ye<=k)for(let Fe=ye;Fe<=oe;Fe++){var Ce=x[2*Fe],Pe=x[2*Fe+1];s<=Ce&&Ce<=f&&c<=Pe&&Pe<=y&&q.push(w[Fe])}else{var Be=ye+oe>>1,Ze=x[2*Be],Ge=x[2*Be+1];s<=Ze&&Ze<=f&&c<=Ge&&Ge<=y&&q.push(w[Be]),(Y===0?s<=Ze:c<=Ge)&&(D.push(ye),D.push(Be-1),D.push(1-Y)),(Y===0?Ze<=f:Ge<=y)&&(D.push(1+Be),D.push(oe),D.push(1-Y))}}return q}within(s,c,f){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");for(var{ids:y,coords:w,nodeSize:x}=this,k=[0,y.length-1,0],D=[],q=f*f;k.length;){var Y=k.pop()||0,oe=k.pop()||0,ye=k.pop()||0;if(oe-ye<=x)for(let Ze=ye;Ze<=oe;Ze++)qC(w[2*Ze],w[2*Ze+1],s,c)<=q&&D.push(y[Ze]);else{var Ce=ye+oe>>1,Pe=w[2*Ce],Be=w[2*Ce+1];qC(Pe,Be,s,c)<=q&&D.push(y[Ce]),(Y===0?s-f<=Pe:c-f<=Be)&&(k.push(ye),k.push(Ce-1),
vendor: 6,583 bytes, line 129
129k.push(1-Y)),(Y===0?Pe<=s+f:Be<=c+f)&&(k.push(1+Ce),k.push(oe),k.push(1-Y))}}return D}},i.LineBucket=Z_,i.LineStripIndexArray=class extends lu{},i.LngLat=Ip,i.MercatorCoordinate=l1,i.ONE_EM=Sa,i.OverscaledTileID=Vu,i.PerformanceUtils=ho,i.Point=h,i.Pos3dArray=class extends _d{},i.PosArray=wd,i.Properties=hs,i.Protobuf=ew,i.QuadTriangleArray=class extends ah{},i.RGBAImage=To,i.RasterBoundsArray=class extends qv{},i.RequestPerformance=class{constructor(g){this._marks={start:[g.url,"start"].join("#"),end:[g.url,"end"].join("#"),measure:g.url.toString()},performance.mark(this._marks.start)}finish(){performance.mark(this._marks.end);let g=performance.getEntriesByName(this._marks.measure);return g.length===0&&(performance.measure(this._marks.measure,this._marks.start,this._marks.end),g=performance.getEntriesByName(this._marks.measure),performance.clearMarks(this._marks.start),performance.clearMarks(this._marks.end),performance.clearMeasures(this._marks.measure)),g}},i.SegmentVector=P,i.SymbolBucket=yh,i.Transitionable=uf,i.TriangleIndexArray=dh,i.Uniform1f=Ie,i.Uniform1i=class extends he{constructor(g,s){super(g,s),this.current=0}set(g){this.current!==g&&(this.current=g,this.gl.uniform1i(this.location,g))}},i.Uniform2f=class extends he{constructor(g,s){super(g,s),this.current=[0,0]}set(g){g[0]===this.current[0]&&g[1]===this.current[1]||(this.current=g,this.gl.uniform2f(this.location,g[0],g[1]))}},i.Uniform3f=class extends he{constructor(g,s){super(g,s),this.current=[0,0,0]}set(g){g[0]===this.current[0]&&g[1]===this.current[1]&&g[2]===this.current[2]||(this.current=g,this.gl.uniform3f(this.location,g[0],g[1],g[2]))}},i.Uniform4f=Ne,i.UniformColor=we,i.UniformMatrix4f=class extends he{constructor(g,s){super(g,s),this.current=De}set(g){if(g[12]!==this.current[12]||g[0]!==this.current[0])this.current=g,this.gl.uniformMatrix4fv(this.location,!1,g);else for(let s=1;s<16;s++)if(g[s]!==this.current[s]){this.current=g,this.gl.uniformMatrix4fv(this.location,!1,g);break}}},i.UnwrappedTileID=oI,i.ValidationError=X,i.ZoomHistory=mp,i.__awaiter=o,i.add=function(g,s,c){return g[0]=s[0]+c[0],g[1]=s[1]+c[1],g[2]=s[2]+c[2],g},i.addDynamicAttributes=c0,i.addProtocol=function(g,s){Re.REGISTERED_PROTOCOLS[g]=s},i.arrayBufferToImage=g=>new Promise((s,c)=>{const f=new Image;f.onload=()=>{s(f),URL.revokeObjectURL(f.src),f.onload=null,window.requestAnimationFrame(()=>{f.src=de})},f.onerror=()=>c(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));var y=new Blob([new Uint8Array(g)],{type:"image/png"});f.src=g.byteLength?URL.createObjectURL(y):de}),i.arrayBufferToImageBitmap=g=>o(void 0,void 0,void 0,function*(){if(g.byteLength===0)return createImageBitmap(new ImageData(1,1));var s=new Blob([new Uint8Array(g)],{type:"image/png"});try{return createImageBitmap(s)}catch(c){throw new Error(`Could not load image because of ${c.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),i.bezier=N,i.clamp=H,i.clipLine=cI,i.clone=function(g){var s=new lo(16);return s[0]=g[0],s[1]=g[1],s[2]=g[2],s[3]=g[3],s[4]=g[4],s[5]=g[5],s[6]=g[6],s[7]=g[7],s[8]=g[8],s[9]=g[9],s[10]=g[10],s[11]=g[11],s[12]=g[12],s[13]=g[13],s[14]=g[14],s[15]=g[15],s},i.clone$1=Z,i.clone$2=function(g){var s=new lo(3);return s[0]=g[0],s[1]=g[1],s[2]=g[2],s},i.collisionCircleLayout=Zl,i.config=Re,i.copy=function(g,s){return g[0]=s[0],g[1]=s[1],g[2]=s[2],g[3]=s[3],g[4]=s[4],g[5]=s[5],g[6]=s[6],g[7]=s[7],g[8]=s[8],g[9]=s[9],g[10]=s[10],g[11]=s[11],g[12]=s[12],g[13]=s[13],g[14]=s[14],g[15]=s[15],g},i.create=function(){var g=new lo(16);return lo!=Float32Array&&(g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[11]=0,g[12]=0,g[13]=0,g[14]=0),g[0]=1,g[5]=1,g[10]=1,g[15]=1,g},i.create$1=cl,i.create$2=function(){var g=new lo(4);return lo!=Float32Array&&(g[1]=0,g[2]=0),g[0]=1,g[3]=1,g},i.createAbortError=He,i.createExpression=Fv,i.createFilter=gy,i.createLayout=ta,i.createStyleLayer=function(g){if(g.type==="custom")return new Gg(g);switch(g.type){case"background":return new OC(g);case"circle":return new Dc(g);case"fill":return new Fk(g);case"fill-extrusion":return new Yb(g);case"heatmap":return new H_(g);case"hillshade":return new bC(g);case"line":return new tI(g);case"raster":return new dc(g);case"symbol":return new vh(g)}},i.cross=ps,i.deepEqual=function g(s,c){if(Array.isArray(s)){if(!Array.isArray(c)||s.length!==c.length)return!1;for(let f=0;f<s.length;f++)if(!g(s[f],c[f]))return!1}else{if(typeof s!="object"||s===null||c===null)return s===c;if(typeof c!="object"||Object.keys(s).length!==Object.keys(c).length)return!1;for(const f in s)if(!g(s[f],c[f]))return!1}return!0},i.defaultEasing=p,i.degreesToRadians=function(g){return g*Math.PI/180},i.derefLayers=function(g){g=g.slice();var s=Object.create(null);for(let c=0;c<g.length;c++)s[g[c].id]=g[c];for(let c=0;c<g.length;c++)"ref"in g[c]&&(g[c]=(function(f,y){const w={};for(const x in f)x!=="ref"&&(w[x]=f[x]);return Ve.forEach(x=>{x in y&&(w[x]=y[x])}),w})(g[c],s[g[c].ref]));return g},i.diffStyles=function(g,s){if(!g)return[{command:"setStyle",args:[s]}];let c=[];try{if(!it(g.version,s.version))return[{command:"setStyle",args:[s]}];it(g.center,s.center)||c.push({command:"setCenter",args:[s.center]}),it(g.zoom,s.zoom)||c.push({command:"setZoom",args:[s.zoom]}),it(g.bearing,s.bearing)||c.push({command:"setBearing",args:[s.bearing]}),it(g.pitch,s.pitch)||c.push({command:"setPitch",args:[s.pitch]}),it(g.sprite,s.sprite)||c.push({command:"setSprite",args:[s.sprite]}),it(g.glyphs,s.glyphs)||c.push({command:"setGlyphs",args:[s.glyphs]}),it(g.transition,s.transition)||c.push({command:"setTransition",args:[s.transition]}),it(g.light,s.light)||c.push({command:"setLight",args:[s.light]}),it(g.terrain,s.terrain)||c.push({command:"setTerrain",args:[s.terrain]}),it(g.sky,s.sky)||c.push({command:"setSky",args:[s.sky]});const Be={};var f=[];bt(g.sources,s.sources,f,Be);const Ze=[];g.layers&&g.layers.forEach(Ge=>{"source"in Ge&&Be[Ge.source]?c.push({command:"removeLayer",args:[Ge.id]}):Ze.push(Ge)}),c=c.concat(f);{var y=Ze,w=s.layers,x=c;w=w||[];var k,D,q=(y=y||[]).map(ct),Y=w.map(ct),oe=y.reduce(Me,{}),ye=w.reduce(Me,{}),Ce=q.slice(),Pe=Object.create(null);let Ge,Fe,Le;for(let Je=0,ht=0;Je<q.length;Je++)Ge=q[Je],Object.prototype.hasOwnProperty.call(ye,Ge)?ht++:(vt(x,{command:"removeLayer",args:[Ge]}),Ce.splice(Ce.indexOf(Ge,ht),1));for(let Je=0,ht=0;Je<Y.length;Je++)Ge=Y[Y.length-1-Je],Ce[Ce.length-1-Je]!==Ge&&(Object.prototype.hasOwnProperty.call(oe,Ge)?(vt(
129x,{command:"removeLayer",args:[Ge]}),Ce.splice(Ce.lastIndexOf(Ge,Ce.length-ht),1)):ht++,Fe=Ce[Ce.length-Je],vt(x,{command:"addLayer",args:[ye[Ge],Fe]}),Ce.splice(Ce.length-Je,0,Ge),Pe[Ge]=!0);for(let Je=0;Je<Y.length;Je++)if(k=oe[Ge=Y[Je]],D=ye[Ge],!Pe[Ge]&&!it(k,D))if(it(k.source,D.source)&&it(k["source-layer"],D["source-layer"])&&it(k.type,D.type)){for(Le in Xe(k.layout,D.layout,x,Ge,null,"setLayoutProperty"),Xe(k.paint,D.paint,x,Ge,null,"setPaintProperty"),it(k.filter,D.filter)||vt(x,{command:"setFilter",args:[Ge,D.filter]}),it(k.minzoom,D.minzoom)&&it(k.maxzoom,D.maxzoom)||vt(x,{command:"setLayerZoomRange",args:[Ge,D.minzoom,D.maxzoom]}),k)Object.prototype.hasOwnProperty.call(k,Le)&&Le!=="layout"&&Le!=="paint"&&Le!=="filter"&&Le!=="metadata"&&Le!=="minzoom"&&Le!=="maxzoom"&&(Le.indexOf("paint.")===0?Xe(k[Le],D[Le],x,Ge,Le.slice(6),"setPaintProperty"):it(k[Le],D[Le])||vt(x,{command:"setLayerProperty",args:[Ge,Le,D[Le]]}));for(Le in D)Object.prototype.hasOwnProperty.call(D,Le)&&!Object.prototype.hasOwnProperty.call(k,Le)&&Le!=="layout"&&Le!=="paint"&&Le!=="filter"&&Le!=="metadata"&&Le!=="minzoom"&&Le!=="maxzoom"&&(Le.indexOf("paint.")===0?Xe(k[Le],D[Le],x,Ge,Le.slice(6),"setPaintProperty"):it(k[Le],D[Le])||vt(x,{command:"setLayerProperty",args:[Ge,Le,D[Le]]}))}else vt(x,{command:"removeLayer",args:[Ge]}),vt(x,{command:"addLayer",args:[D,Fe=Ce[Ce.lastIndexOf(Ge)+1]]})}}catch(Be){console.warn("Unable to compute style diff:",Be),c=[{command:"setStyle",args:[s]}]}return c},i.dot=Nc,i.dot$1=function(g,s){return g[0]*s[0]+g[1]*s[1]+g[2]*s[2]+g[3]*s[3]},i.earthRadius=hc,i.emitValidationErrors=jn,i.emptyStyle=function(){var g={},s=_e.$version;for(const f in _e.$root){var c=_e.$root[f];if(c.required){let y=null;(y=f==="version"?s:c.type==="array"?[]:{})!=null&&(g[f]=y)}}return g},i.equals=function(Ge,Wr){var c=Ge[0],f=Ge[1],y=Ge[2],w=Ge[3],x=Ge[4],k=Ge[5],D=Ge[6],q=Ge[7],Y=Ge[8],oe=Ge[9],ye=Ge[10],Ce=Ge[11],Pe=Ge[12],Be=Ge[13],Ze=Ge[14],Ge=Ge[15],Fe=Wr[0],Le=Wr[1],Je=Wr[2],ht=Wr[3],St=Wr[4],Lt=Wr[5],qt=Wr[6],jt=Wr[7],Wt=Wr[8],tr=Wr[9],dr=Wr[10],cr=Wr[11],Kt=Wr[12],Gr=Wr[13],$r=Wr[14],Wr=Wr[15];return Math.abs(c-Fe)<=Hi*Math.max(1,Math.abs(c),Math.abs(Fe))&&Math.abs(f-Le)<=Hi*Math.max(1,Math.abs(f),Math.abs(Le))&&Math.abs(y-Je)<=Hi*Math.max(1,Math.abs(y),Math.abs(Je))&&Math.abs(w-ht)<=Hi*Math.max(1,Math.abs(w),Math.abs(ht))&&Math.abs(x-St)<=Hi*Math.max(1,Math.abs(x),Math.abs(St))&&Math.abs(k-Lt)<=Hi*Math.max(1,Math.abs(k),Math.abs(Lt))&&Math.abs(D-qt)<=Hi*Math.max(1,Math.abs(D),Math.abs(qt))&&Math.abs(q-jt)<=Hi*Math.max(1,Math.abs(q),Math.abs(jt))&&Math.abs(Y-Wt)<=Hi*Math.max(1,Math.abs(Y),Math.abs(Wt))&&Math.abs(oe-tr)<=Hi*Math.max(1,Math.abs(oe),Math.abs(tr))&&Math.abs(ye-dr)<=Hi*Math.max(1,Math.abs(ye),Math.abs(dr))&&Math.abs(Ce-cr)<=Hi*Math.max(1,Math.abs(Ce),Math.abs(cr))&&Math.abs(Pe-Kt)<=Hi*Math.max(1,Math.abs(Pe),Math.abs(Kt))&&Math.abs(Be-Gr)<=Hi*Math.max(1,Math.abs(Be),Math.abs(Gr))&&Math.abs(Ze-$r)<=Hi*Math.max(1,Math.abs(Ze),Math.abs($r))&&Math.abs(Ge-Wr)<=Hi*Math.max(1,Math.abs(Ge),Math.abs(Wr))},i.evaluateSizeForFeature=function(g,{uSize:s,uSizeT:c},{lowerSize:f,upperSize:y}){return g.kind==="source"?f/ua:g.kind==="composite"?Pc.number(f/ua,y/ua,c):s},i.evaluateSizeForZoom=function(g,s){let c=0,f=0;var y,w,x;return g.kind==="constant"?f=g.layoutSize:g.kind!=="source"&&({interpolationType:x,minZoom:y,maxZoom:w}=g,x=x?H(Pl.interpolationFactor(x,s,y,w),0,1):0,g.kind==="camera"?f=Pc.number(g.minSize,g.maxSize,x):c=x),{uSizeT:c,uSize:f}},i.exactEquals=function(g,s){return g[0]===s[0]&&g[1]===s[1]&&g[2]===s[2]&&g[3]===s[3]&&g[4]===s[4]&&g[5]===s[5]&&g[6]===s[6]&&g[7]===s[7]&&g[8]===s[8]&&g[9]===s[9]&&g[10]===s[10]&&g[11]===s[11]&&g[12]===s[12]&&g[13]===s[13]&&g[14]===s[14]&&g[15]===s[15]},i.extend=j,i.filterObject=Q,i.findLineIntersection=function(g,w,c,k){var y=w.y-g.y,w=w.x-g.x,x=k.y-c.y,k=k.x-c.x,D=x*w-k*y;return D==0?null:(k=(k*(g.y-c.y)-x*(g.x-c.x))/D,new h(g.x+k*w,g.y+k*y))},i.fromRotation=function(g,f){var c=Math.sin(f),f=Math.cos(f);return g[0]=f,g[1]=c,g[2]=0,g[3]=-c,g[4]=f,g[5]=0,g[6]=0,g[7]=0,g[8]=1,g},i.fromScaling=function(g,s){return g[0]=s[0],g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=s[1],g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=s[2],g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1,g},i.getAnchorAlignment=du,i.getAnchorJustification=u1,i.getArrayBuffer=(g,s)=>Et(j(g,{type:"arrayBuffer"}),s),i.getDefaultExportFromCjs=a,i.getImageData=function(g,s,c,f,y){return o(this,void 0,void 0,function*(){if(R())try{return yield ge(g,s,c,f,y)}catch{}return x=s,k=c,D=f,q=y,Y=(w=g).width,oe=w.height,Ue&&Qe||(Ue=new OffscreenCanvas(Y,oe),Qe
vendor: 4,398 bytes, line 129
129=Ue.getContext("2d",{willReadFrequently:!0})),Ue.width=Y,Ue.height=oe,Qe.drawImage(w,0,0,Y,oe),w=Qe.getImageData(x,k,D,q),Qe.clearRect(0,0,Y,oe),w.data;var w,x,k,D,q,Y,oe})},i.getJSON=(g,s)=>Et(j(g,{type:"json"}),s),i.getOverlapMode=ys,i.getProtocol=$e,i.getReferrer=qe,i.getVideo=g=>{const s=window.document.createElement("video");return s.muted=!0,new Promise(c=>{s.onloadstart=()=>{c(s)};for(const y of g){var f=window.document.createElement("source");Oe(y)||(s.crossOrigin="Anonymous"),f.src=y,s.appendChild(f)}})},i.groupByLayout=function(g,s){var c={};for(let w=0;w<g.length;w++){var f=s&&s[g[w].id]||sf(g[w]);s&&(s[g[w].id]=f);let x=c[f];(x=x||(c[f]=[])).push(g[w])}var y=[];for(const w in c)y.push(c[w]);return y},i.identity=co,i.interpolate=Pc,i.invert=function(g,Ge){var c=Ge[0],f=Ge[1],y=Ge[2],w=Ge[3],x=Ge[4],k=Ge[5],D=Ge[6],q=Ge[7],Y=Ge[8],oe=Ge[9],ye=Ge[10],Ce=Ge[11],Pe=Ge[12],Be=Ge[13],Ze=Ge[14],Ge=Ge[15],Fe=c*k-f*x,Le=c*D-y*x,Je=c*q-w*x,ht=f*D-y*k,St=f*q-w*k,Lt=y*q-w*D,qt=Y*Be-oe*Pe,jt=Y*Ze-ye*Pe,Wt=Y*Ge-Ce*Pe,tr=oe*Ze-ye*Be,dr=oe*Ge-Ce*Be,cr=ye*Ge-Ce*Ze,Kt=Fe*cr-Le*dr+Je*tr+ht*Wt-St*jt+Lt*qt;return Kt?(g[0]=(k*cr-D*dr+q*tr)*(Kt=1/Kt),g[1]=(y*dr-f*cr-w*tr)*Kt,g[2]=(Be*Lt-Ze*St+Ge*ht)*Kt,g[3]=(ye*St-oe*Lt-Ce*ht)*Kt,g[4]=(D*Wt-x*cr-q*jt)*Kt,g[5]=(c*cr-y*Wt+w*jt)*Kt,g[6]=(Ze*Je-Pe*Lt-Ge*Le)*Kt,g[7]=(Y*Lt-ye*Je+Ce*Le)*Kt,g[8]=(x*dr-k*Wt+q*qt)*Kt,g[9]=(f*Wt-c*dr-w*qt)*Kt,g[10]=(Pe*St-Be*Je+Ge*Fe)*Kt,g[11]=(oe*Je-Y*St-Ce*Fe)*Kt,g[12]=(k*jt-x*tr-D*qt)*Kt,g[13]=(c*tr-f*jt+y*qt)*Kt,g[14]=(Be*Le-Pe*ht-Ze*Fe)*Kt,g[15]=(Y*ht-oe*Le+ye*Fe)*Kt,g):null},i.isAbortError=function(g){return g.message===pe},i.isImageBitmap=be,i.isOffscreenCanvasDistorted=R,i.isSafari=function(g){var s;return se==null&&(s=g.navigator?g.navigator.userAgent:null,se=!!g.safari||!(!s||!(/\b(iPad|iPhone|iPod)\b/.test(s)||s.match("Safari")&&!s.match("Chrome")))),se},i.isWorker=K,i.keysDifference=function(g,s){var c=[];for(const f in g)f in s||c.push(f);return c},i.makeRequest=Et,i.mapObject=B,i.mercatorXfromLng=nI,i.mercatorYfromLat=Ap,i.mercatorZfromAltitude=MC,i.mul=Qd,i.mul$1=Ol,i.multiply=na,i.nextPowerOfTwo=function(g){return g<=1?1:Math.pow(2,Math.ceil(Math.log(g)/Math.LN2))},i.normalize=Ta,i.offscreenCanvasSupported=T,i.ortho=Fi,i.parseCacheControl=function(g){const s={};return g.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(c,f,y,w)=>(y=y||w,s[f]=!y||y.toLowerCase(),"")),s["max-age"]&&(g=parseInt(s["max-age"],10),isNaN(g)?delete s["max-age"]:s["max-age"]=g),s},i.parseGlyphPbf=function(g){return new ew(g).readFields(PC,[])},i.pbf=Xa,i.performSymbolLayout=function(g){g.bucket.createArrays();var s,c,f=512*g.bucket.overscaling,y=(g.bucket.tilePixelRatio=Zt/f,g.bucket.compareText={},g.bucket.iconsNeedLinear=!1,g.bucket.layers[0]),w=y.layout,x={layoutIconSize:(f=y._unevaluatedLayout._values)["icon-size"].possiblyEvaluate(new vo(g.bucket.zoom+1),g.canonical),layoutTextSize:f["text-size"].possiblyEvaluate(new vo(g.bucket.zoom+1),g.canonical),textMaxSize:f["text-size"].possiblyEvaluate(new vo(18))};g.bucket.textSizeData.kind==="composite"&&({minZoom:s,maxZoom:c}=g.bucket.textSizeData,x.compositeTextSizes=[f["text-size"].possiblyEvaluate(new vo(s),g.canonical),f["text-size"].possiblyEvaluate(new vo(c),g.canonical)]),g.bucket.iconSizeData.kind==="composite"&&({minZoom:s,maxZoom:c}=g.bucket.iconSizeData,x.compositeIconSizes=[f["icon-size"].possiblyEvaluate(new vo(s),g.canonical),f["icon-size"].possiblyEvaluate(new vo(c),g.canonical)]);const k=w.get("text-line-height")*Sa;var D=w.get("text-rotation-alignment")!=="viewport"&&w.get("symbol-placement")!=="point",q=w.get("text-keep-upright"),Y=w.get("text-size");for(const Ge of g.bucket.features){const Fe=w.get("text-font").evaluate(Ge,{},g.canonical).join(","),Le=Y.evaluate(Ge,{},g.canonical),Je=x.layoutTextSize.evaluate(Ge,{},g.canonical);var oe=x.layoutIconSize.evaluate(Ge,{},g.canonical);const ht={horizontal:{},vertical:void 0},St=Ge.text;let Lt=[0,0];if(St){const Wt=St.toString();var ye=w.get("text-letter-spacing").evaluate(Ge,{},g.canonical)*Sa;const tr=Mg(Wt)?ye:0,dr=w.get("text-anchor").evaluate(Ge,{},g.canonical);var Ce=jC(y,Ge,g.canonical);Ce||(ye=w.get("text-radial-offset").evaluate(Ge,{},g.canonical),Lt=ye?c1(dr,[ye*Sa,g0]):w.get("text-offset").evaluate(Ge,{},g.canonical).map($r=>$r*Sa));
129let cr=D?"center":w.get("text-justify").evaluate(Ge,{},g.canonical);const Kt=w.get("symbol-placement"),Gr=Kt==="point"?w.get("text-max-width").evaluate(Ge,{},g.canonical)*Sa:0;if(ye=()=>{g.bucket.allowVerticalPlacement&&Ql(Wt)&&(ht.vertical=Vg(St,g.glyphMap,g.glyphPositions,g.imagePositions,Fe,Gr,k,dr,"left",tr,Lt,i.WritingMode.vertical,!0,Kt,Je,Le))},!D&&Ce){var Pe,Be=new Set;if(cr==="auto")for(let Wr=0;Wr<Ce.values.length;Wr+=2)Be.add(u1(Ce.values[Wr]));else Be.add(cr);let $r=!1;for(const Wr of Be)ht.horizontal[Wr]||($r?ht.horizontal[Wr]=ht.horizontal[0]:(Pe=Vg(St,g.glyphMap,g.glyphPositions,g.imagePositions,Fe,Gr,k,"center",Wr,tr,Lt,i.WritingMode.horizontal,!1,Kt,Je,Le))&&(ht.horizontal[Wr]=Pe,$r=Pe.positionedLines.length===1));ye()}else{cr==="auto"&&(cr=u1(dr));var Ze=Vg(St,g.glyphMap,g.glyphPositions,g.imagePositions,Fe,Gr,k,dr,cr,tr,Lt,i.WritingMode.horizontal,!1,Kt,Je,Le);Ze&&(ht.horizontal[cr]=Ze),ye(),Ql(Wt)&&D&&q&&(ht.vertical=Vg(St,g.glyphMap,g.glyphPositions,g.imagePositions,Fe,Gr,k,dr,cr,tr,Lt,i.WritingMode.vertical,!1,Kt,Je,Le))}}let qt,jt=!1;Ge.icon&&Ge.icon.name&&(Ze=g.imageMap[Ge.icon.name])&&(qt=(function(Wt,$r,Gr){var{horizontalAlign:Gr,verticalAlign:cr}=du(Gr),Kt=$r[0],$r=$r[1],Gr=(Kt=Kt-Wt.displaySize[0]*Gr)+Wt.displaySize[0],$r=$r-Wt.displaySize[1]*cr;return{image:Wt,top:$r,bottom:$r+Wt.displaySize[1],left:Kt,right:Gr}})(g.imagePositions[Ge.icon.name],w.get("icon-offset").evaluate(Ge,{},g.canonical),w.get("icon-anchor").evaluate(Ge,{},g.canonical)),jt=!!Ze.sdf,g.bucket.sdfIcons===void 0?g.bucket.sdfIcons=jt:g.bucket.sdfIcons!==jt&&ne("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),Ze.pixelRatio!==g.bucket.pixelRatio||w.get("icon-rotate").constantOr(1)!==0)&&(g.bucket.iconsNeedLinear=!0),ye=VC(ht.horizontal)||ht.vertical,g.bucket.iconsInText=!!ye&&ye.iconsInText,(ye||qt)&&(function(Wt,tr,dr,cr,Kt,Gr,$r,Wr,kn,ci,$n){let Zi=Gr.textMaxSize.evaluate(tr,{});Zi===void 0&&(Zi=$r);const fn=Wt.layers[0].layout,wn=fn.get("icon-offset").evaluate(tr,{},$n),Ri=VC(dr.horizontal),So=$r/24,Ll=Wt.tilePixelRatio*So,In=Wt.tilePixelRatio*Zi/24,Pi=Wt.tilePixelRatio*Wr,Bn=Wt.tilePixelRatio*fn.get("symbol-spacing"),Vo=fn.get("text-padding")*Wt.tilePixelRatio,v0=(function(Ui,Cn,An,Ua=1){return Ui=Ui.get("icon-padding").evaluate(Cn,{},An),[(Cn=Ui&&Ui.values)[0]*Ua,Cn[1]*Ua,Cn[2]*Ua,Cn[3]*Ua]})(fn,tr,$n,Wt.tilePixelRatio),Hl=fn.get("text-max-angle")/180*Math.PI,Qg=fn.get("text-rotation-alignment")!=="viewport"&&fn.get("symbol-placement")!=="point",Bc=fn.get("icon-rotation-alignment")==="map"&&fn.get("symbol-placement")!=="point",Tf=fn.get("symbol-placement"),jk=Bn/2,YC=fn.get("icon-text-fit");let vs;cr&&YC!=="none"&&(Wt.allowVerticalPlacement&&dr.vertical&&(vs=Xs(cr,dr.vertical,YC,fn.get("icon-text-fit-padding"),wn,So)),Ri)&&(cr=Xs(cr,Ri,YC,fn.get("icon-text-fit-padding"),wn,So));var fc=(Ui,Cn)=>{if(!(Cn.x<0||Cn.x>=Zt||Cn.y<0||Cn.y>=Zt)){var An=Wt,Ua=Cn;Cn=Ui;var Ms=dr;Ui=cr;var Gu=Kt,Xo=vs,Ns=Wt.layers[0],pc=Wt.collisionBoxArray,$c=tr.index,Yu=tr.sourceLayerIndex,Ds=Wt.index,Fl=Ll,Sf=[Vo,Vo,Vo,Vo],Op=Qg,Uy=kn,Ls=Pi,By=v0,em=Bc,hI=wn,bh=tr,fI=Gr,d1=ci,tm=$n,WC=$r,Td=An.addToLineVertexArray(Ua,Cn);let _0,b0,uw,dw,JL=0,e4=0,t4=0,r4=0,qk=-1,Gk=-1;var Kn={};let n4=E("");if(An.allowVerticalPlacement&&Ms.vertical&&(Cn=Ns.layout.get("text-rotate").evaluate(bh,{},tm)+90,cw=Ms.vertical,uw=new p0(pc,Ua,$c,Yu,Ds,cw,Fl,Sf,Op,Cn),Xo)&&(dw=new p0(pc,Ua,$c,Yu,Ds,Xo,Ls,By,Op,Cn)),Ui){var cw=Ns.layout.get("icon-rotate").evaluate(bh,{}),Cn=Ns.layout.get("icon-text-fit")!=="none",Wu=Pp(Ui,cw,d1,Cn),Xo=Xo?Pp(Xo,cw,d1,Cn):void 0,d1=(b0=new p0(pc,Ua,$c,Yu,Ds,Ui,Ls,By,!1,cw),JL=4*Wu.length,An.iconSizeData);let Mp=null;d1.kind==="source"?(Mp=[ua*Ns.layout.get("icon-size").evaluate(bh,{})])[0]>Os&&ne(`${An.layerIds[0]}: Value for "icon-size" is >= ${Ia}. Reduce your "icon-size".`):d1.kind==="composite"&&((Mp=[ua*fI.compositeIconSizes[0].evaluate(bh,{},tm),ua*fI.compositeIconSizes[1].evaluate(bh,{},tm)])[0]>Os||Mp[1]>Os)&&ne(`${An.layerIds[0]}: Value for "icon-size" is >= ${Ia}. Reduce your "icon-size".`),An.addSymbols(An.icon,Wu,Mp,hI,em,bh,i.WritingMode.none,Ua,Td.lineStartIndex,Td.lineLength,-1,tm),qk=An.icon.placedSymbolArray.length-1,Xo&&(e4=4*Xo.length,An.addSymbols(An.icon,Xo,Mp,hI,em,bh,i.WritingMode.vertical,Ua,Td.lineStartIndex,Td.lineLength,-1,tm),Gk=An.icon.placedSymbolArray.length-1)}var Vk=Object.keys(Ms.horizontal);for(const nm of Vk){var pI=Ms.horizontal[nm],Io=(_0||(n4=E(pI.text),Io=Ns.layout.get("text-rotate").evaluate(bh,{},tm),_0=new p0(pc,Ua,$c,Yu,Ds,pI,Fl,Sf,Op,Io)),pI.positionedLines.length===1);if(t4+=dI(An,Ua,pI,Gu,Ns,Op,bh,Uy,Td,Ms.vertical?i.WritingMode.horizontal:i.WritingMode.horizontalOnly,Io?Vk:[nm],Kn,qk,fI,tm),Io)break}Ms.vertical&&(r4+=dI(An,Ua,Ms.vertical,Gu,Ns,Op,bh,Uy,Td,i.WritingMode.vertical,["vertical"],Kn,Gk,fI,tm)),Cn=_0?_0.boxStartIndex:An.collisionBoxArray.length,Ui=_0?_0.boxEndIndex:An.collisionBoxArray.length,Ls=uw?uw.boxStartIndex:An.collisionBoxArray.length,By=uw?uw.boxEndIndex:An.collisionBoxArray.length,d1=b0?b0.boxStartIndex:An.collisionBoxArray.length,Wu=b0?b0.boxEndIndex:An.collisionBoxArray.length,Xo=dw?dw.boxStartIndex:An.collisionBoxArray.length,hI=dw?dw.boxEndIndex:An.collisionBoxArray.length;let rm=-1;em=(nm,KC)=>
129nm&&nm.circleDiameter?Math.max(nm.circleDiameter,KC):KC,rm=em(_0,rm),rm=em(uw,rm),rm=em(b0,rm),em=-1<(rm=em(dw,rm))?1:0,em&&(rm*=WC/Sa),An.glyphOffsetArray.length>=yh.MAX_GLYPHS&&ne("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),bh.sortKey!==void 0&&An.addToSortKeyRanges(An.symbolInstances.length,bh.sortKey);var WC=jC(Ns,bh,tm),[WC,QL]=(function(nm,KC){var Yk=nm.length,Mp=KC==null?void 0:KC.values;if(0<(Mp==null?void 0:Mp.length))for(let gI=0;gI<Mp.length;gI+=2){var Wk=i.TextAnchorEnum[Mp[gI]],i4=Mp[gI+1];nm.emplaceBack(Wk,i4[0],i4[1])}return[Yk,nm.length]})(An.textAnchorOffsets,WC);An.symbolInstances.emplaceBack(Ua.x,Ua.y,0<=Kn.right?Kn.right:-1,0<=Kn.center?Kn.center:-1,0<=Kn.left?Kn.left:-1,Kn.vertical||-1,qk,Gk,n4,Cn,Ui,Ls,By,d1,Wu,Xo,hI,$c,t4,r4,JL,e4,em,0,Fl,rm,WC,QL)}};if(Tf==="line")for(const Ui of cI(tr.geometry,0,0,Zt,Zt))for(const Cn of BC(Ui,Bn,Hl,dr.vertical||Ri,cr,24,In,Wt.overscaling,Zt))Ri&&(function(An,Ua,Ms,Gu){if(An=An.compareText,Ua in An){var Xo=An[Ua];for(let Ns=Xo.length-1;0<=Ns;Ns--)if(Gu.dist(Xo[Ns])<Ms)return 1}else An[Ua]=[];return An[Ua].push(Gu),0})(Wt,Ri.text,jk,Cn)||fc(Ui,Cn);else if(Tf==="line-center")for(const Ui of tr.geometry){var fl;1<Ui.length&&(fl=(function(Cn,An,Ua,Ms,Gu,Xo){var Ns=uI(Ua,Gu,Xo),pc=qu(Ua,Ms)*Xo;let $c=0;var Yu=UC(Cn)/2;for(let Ls=0;Ls<Cn.length-1;Ls++){var Ds,Fl,Sf=Cn[Ls],Op=Cn[Ls+1],Uy=Sf.dist(Op);if($c+Uy>Yu)return Ds=(Yu-$c)/Uy,Fl=Pc.number(Sf.x,Op.x,Ds),Ds=Pc.number(Sf.y,Op.y,Ds),(Fl=new Wg(Fl,Ds,Op.angleTo(Sf),Ls))._round(),!Ns||FC(Cn,Fl,pc,Ns,An)?Fl:void 0;$c+=Uy}})(Ui,Hl,dr.vertical||Ri,cr,24,In))&&fc(Ui,fl)}else if(tr.type==="Polygon")for(const Ui of fh(tr.geometry,0)){var Jg=zC(Ui,16);fc(Ui[0],new Wg(Jg.x,Jg.y,0))}else if(tr.type==="LineString")for(const Ui of tr.geometry)fc(Ui,new Wg(Ui[0].x,Ui[0].y,0));else if(tr.type==="Point")for(const Ui of tr.geometry)for(const Cn of Ui)fc([Cn],new Wg(Cn.x,Cn.y,0))})(g.bucket,Ge,ht,qt,g.imageMap,x,Je,oe,Lt,jt,g.canonical)}g.showCollisionBoxes&&g.bucket.generateCollisionDebugBuffers()},i.perspective=Ai,i.pick=function(g,s){var c={};for(let y=0;y<s.length;y++){var f=s[y];f in g&&(c[f]=g[f])}return c},i.pointGeometry=l,i.polygonIntersectsPolygon=jr,i.potpack=Tp,i.readImageUsingVideoFrame=ge,i.register=lr,i.removeProtocol=function(g){delete Re.REGISTERED_PROTOCOLS[g]},i.renderColorRamp=gs,i.renderStyleImage=function(g){var s=g.userImage;return!!(s&&s.render&&s.render())&&(g.data.replace(new Uint8Array(s.data.buffer)),!0)},i.rotate=function(g,x,D){var f=x[0],y=x[1],w=x[2],x=x[3],k=Math.sin(D),D=Math.cos(D);return g[0]=f*D+w*k,g[1]=y*D+x*k,g[2]=f*-k+w*D,g[3]=y*-k+x*D,g},i.rotateX=function(g,s,y){var f=Math.sin(y),y=Math.cos(y),w=s[4],x=s[5],k=s[6],D=s[7],q=s[8],Y=s[9],oe=s[10],ye=s[11];return s!==g&&(g[0]=s[0],g[1]=s[1],g[2]=s[2],g[3]=s[3],g[12]=s[12],g[13]=s[13],g[14]=s[14],g[15]=s[15]),g[4]=w*y+q*f,g[5]=x*y+Y*f,g[6]=k*y+oe*f,g[7]=D*y+ye*f,g[8]=q*y-w*f,g[9]=Y*y-x*f,g[10]=oe*y-k*f,g[11]=ye*y-D*f,g},i.rotateZ=function(g,s,y){var f=Math.sin(y),y=Math.cos(y),w=s[0],x=s[1],k=s[2],D=s[3],q=s[4],Y=s[5],oe=s[6],ye=s[7];return s!==g&&(g[8]=s[8],g[9]=s[9],g[10]=s[10],g[11]=s[11],g[12]=s[12],g[13]=s[13],g[14]=s[14],g[15]=s[15]),g[0]=w*y+q*f,g[1]=x*y+Y*f,g[2]=k*y+oe*f,g[3]=D*y+ye*f,g[4]=q*y-w*f,g[5]=Y*y-x*f,g[6]=oe*y-k*f,g[7]=ye*y-D*f,g},i.rtlWorkerPlugin=Oc,i.sameOrigin=Oe,i.scale=function(g,s,w){var f=w[0],y=w[1],w=w[2];return g[0]=s[0]*f,g[1]=s[1]*f,g[2]=s[2]*f,g[3]=s[3]*f,g[4]=s[4]*y,g[5]=s[5]*y,g[6]=s[6]*y,g[7]=s[7]*y,g[8]=s[8]*w,g[9]=s[9]*w,g[10]=s[10]*w,g[11]=s[11]*w,g[12]=s[12],g[13]=s[13],g[14]=s[14],g[15]=s[15],g},i.scale$1=function(g,s,c){return g[0]=s[0]*c,g[1]=s[1]*c,g[2]=s[2]*c,g},i.sphericalToCartesian=function([g,s,c]){return s=(s+=90)*(Math.PI/180),c*=Math.PI/180,{x:g*Math.cos(s)*Math.sin(c),y:g*Math.sin(s)*Math.sin(c),z:g*Math.cos(c)}},i.sqrLen=jo,i.sub=ia,i.toEvaluationFeature=Dr,i.transformMat3=function(g,w,c){var f=w[0],y=w[1],w=w[2];return g[0]=f*c[0]+y*c[3]+w*c[6],g[1]=f*c[1]+y*c[4]+w*c[7],g[2]=f*c[2]+y*c[5]+w*c[8],g},i.transformMat4=ic,i.transformMat4$1=function(g,y,c){var f=y[0],y=y[1];return g[0]=c[0]*f+c[4]*y+c[12],g[1]=c[1]*f+c[5]*y+c[13],g},i.translate=function(g,s,Ge){var f,y,w,x,k,D,q,Y,oe,ye,Ce,Pe,Be=Ge[0],Ze=Ge[1],Ge=Ge[2];return s===g?(g[12]=s[0]*Be+s[4]*Ze+s[8]*Ge+s[12],g[13]=s[1]*Be+s[5]*Ze+s[9]*Ge+s[13],g[14]=s[2]*Be+s[6]*Ze+s[10]*Ge+s[14],g[15]=s[3]*Be+s[7]*Ze+s[11]*Ge+s[15]):(f=s[0],y=s[1],w=s[2],x=s[3],k=s[4],D=s[5],q=s[6],Y=s[7],oe=s[8],ye=s[9],Ce=s[10],Pe=s[11],g[0]=f,g[1]=y,g[2]=w,g[3]=x,g[4]=k,g[5]=D,g[6]=q,g[7]=Y,g[8]=oe,g[9]=ye,g[10]=Ce,g[11]=Pe,g[12]=f*Be+k*Ze+oe*Ge+s[12],g[13]=y*Be+D*Ze+ye*Ge+s[13],g[14]=w*Be+q*Ze+Ce*Ge+s[14],g[15]=x*Be+Y*Ze+Pe*Ge+s[15]),g},i.unicodeBlockLookup=Pr,i.uniqueId=function(){return L++},i.v8Spec=_e,i.validateCustomStyleLayer=function(g){var s=[],c=g.id;return c===void 0&&s.push({message:`layers.${c}: missing required property "id"`}),g.render===void 0&&s.push({message:`layers.${c}: missing required method "render"`}),g.renderingMode&&g.renderingMode!=="2d"&&g.renderingMode!=="3d"&&s.push({message:`layers.${c}: property "renderingMode" must be either "2d" or "3d"`}),s}
vendor: 21,667 bytes, line 129
129,i.validateLight=ru,i.validateStyle=zt,i.vectorTile=Ug,i.warnOnce=ne,i.wrap=F}),n("worker",0,function(i){class o{constructor(fe){this.keyCache={},fe&&this.replace(fe)}replace(fe){this._layerConfigs={},this._layers={},this.update(fe,[])}update(fe,Ee){for(const dt of fe){this._layerConfigs[dt.id]=dt;var xe=this._layers[dt.id]=i.createStyleLayer(dt);xe._featureFilter=i.createFilter(xe.filter),this.keyCache[dt.id]&&delete this.keyCache[dt.id]}for(const dt of Ee)delete this.keyCache[dt],delete this._layerConfigs[dt],delete this._layers[dt];this.familiesBySource={};for(const dt of i.groupByLayout(Object.values(this._layerConfigs),this.keyCache)){var et=dt.map(pt=>this._layers[pt.id]),gt=et[0];if(gt.visibility!=="none"){var Rt=gt.source||"";let pt=this.familiesBySource[Rt];pt=pt||(this.familiesBySource[Rt]={}),Rt=gt.sourceLayer||"_geojsonTileLayer";let wt=pt[Rt];(wt=wt||(pt[Rt]=[])).push(et)}}}}class a{constructor(fe){var Ee={},xe=[];for(const qr in fe){var et=fe[qr],gt=Ee[qr]={};for(const Kr in et){var Rt,dt=et[+Kr];dt&&dt.bitmap.width!==0&&dt.bitmap.height!==0&&(Rt={x:0,y:0,w:dt.bitmap.width+2,h:dt.bitmap.height+2},xe.push(Rt),gt[Kr]={rect:Rt,metrics:dt.metrics})}}var{w:pt,h:wt}=i.potpack(xe),Yt=new i.AlphaImage({width:pt||1,height:wt||1});for(const qr in fe){var Vt=fe[qr];for(const Kr in Vt){var ar,kr=Vt[+Kr];kr&&kr.bitmap.width!==0&&kr.bitmap.height!==0&&(ar=Ee[qr][Kr].rect,i.AlphaImage.copy(kr.bitmap,Yt,{x:0,y:0},{x:ar.x+1,y:ar.y+1},kr.bitmap))}}this.image=Yt,this.positions=Ee}}i.register("GlyphAtlas",a);class l{constructor(fe){this.tileID=new i.OverscaledTileID(fe.tileID.overscaledZ,fe.tileID.wrap,fe.tileID.canonical.z,fe.tileID.canonical.x,fe.tileID.canonical.y),this.uid=fe.uid,this.zoom=fe.zoom,this.pixelRatio=fe.pixelRatio,this.tileSize=fe.tileSize,this.source=fe.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=fe.showCollisionBoxes,this.collectResourceTiming=!!fe.collectResourceTiming,this.returnDependencies=!!fe.returnDependencies,this.promoteId=fe.promoteId,this.inFlightDependencies=[]}parse(fe,Ee,xe,et){return i.__awaiter(this,void 0,void 0,function*(){this.status="parsing",this.data=fe,this.collisionBoxArray=new i.CollisionBoxArray;var gt=new i.DictionaryCoder(Object.keys(fe.layers).sort()),Rt=new i.FeatureIndex(this.tileID,this.promoteId),dt=(Rt.bucketLayerIDs=[],{}),pt={featureIndex:Rt,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:xe},wt=Ee.familiesBySource[this.source];for(const Yi in wt){var Yt=fe.layers[Yi];if(Yt){Yt.version===1&&i.warnOnce(`Vector tile source "${this.source}" layer "${Yi}" does not use vector tile spec v2 and therefore may have some rendering errors.`);var Vt=gt.encode(Yi),ar=[];for(let Rl=0;Rl<Yt.length;Rl++){var kr=Yt.feature(Rl),qr=Rt.getId(kr,Yi);ar.push({feature:kr,id:qr,index:Rl,sourceLayerIndex:Vt})}for(const Rl of wt[Yi]){var Kr=Rl[0];Kr.source!==this.source&&i.warnOnce(`layer.source = ${Kr.source} does not equal this.source = `+this.source),Kr.minzoom&&this.zoom<Math.floor(Kr.minzoom)||Kr.maxzoom&&this.zoom>=Kr.maxzoom||Kr.visibility!=="none"&&(u(Rl,this.zoom,xe),(dt[Kr.id]=Kr.createBucket({index:Rt.bucketLayerIDs.length,layers:Rl,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Vt,sourceID:this.source})).populate(ar,pt,this.tileID.canonical),Rt.bucketLayerIDs.push(Rl.map(kv=>kv.id)))}}}var qn=i.mapObject(pt.glyphDependencies,Yi=>Object.keys(Yi).map(Number));this.inFlightDependencies.forEach(Yi=>Yi==null?void 0:Yi.abort()),this.inFlightDependencies=[];let zn=Promise.resolve({});Object.keys(qn).length&&(On=new AbortController,this.inFlightDependencies.push(On),zn=et.sendAsync({type:"GG",data:{stacks:qn,source:this.source,tileID:this.tileID,type:"glyphs"}},On)),qn=Object.keys(pt.iconDependencies);let Wn=Promise.resolve({});qn.length&&(On=new AbortController,this.inFlightDependencies.push(On),Wn=et.sendAsync({type:"GI",data:{icons:qn,source:this.source,tileID:this.tileID,type:"icons"}},On));var On,qn=Object.keys(pt.patternDependencies);let Mn=Promise.resolve({});qn.length&&(On=new AbortController,this.inFlightDependencies.push(On),Mn=et.sendAsync({type:"GI",data:{icons:qn,source:this.source,tileID:this.tileID,type:"patterns"}},On));var[Yr,rn,qn]=yield Promise.all([zn,Wn,Mn]),ii=new a(Yr),mo=new i.ImageAtlas(rn,qn);for(const Yi in dt){var Nn=dt[Yi];Nn instanceof i.SymbolBucket?(u(Nn.layers,this.zoom,xe),i.performSymbolLayout({bucket:Nn,glyphMap:Yr,glyphPositions:ii.positions,imageMap:rn,imagePositions:mo.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):Nn.hasPattern&&(Nn instanceof i.LineBucket||Nn instanceof i.FillBucket||Nn instanceof i.FillExtrusionBucket)&&(u(Nn.layers,this.zoom,xe),Nn.addFeatures(pt,this.tileID.canonical,mo.patternPositions))}return this.status="done",{buckets:Object.values(dt).filter(Yi=>!Yi.isEmpty()),featureIndex:Rt,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ii.image,imageAtlas:mo,glyphMap:this.returnDependencies?Yr:null,iconMap:this.returnDependencies?rn:null,glyphPositions:this.returnDependencies?ii.positions:null}})}}function u(Te,fe,Ee){var xe=new i.EvaluationParameters(fe);for(const et of Te)et.recalculate(xe,Ee)}class h{constructor(fe,Ee,xe){this.actor=fe,this.layerIndex=Ee,this.availableImages=xe,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(fe,Ee){return i.__awaiter(this,void 0,void 0,function*(){var xe=yield i.getArrayBuffer(fe.request,Ee);try{return{vectorTile:new i.vectorTile.VectorTile(new i.Protobuf(xe.data)),rawData:xe.data,cacheControl:xe.cacheControl,expires:xe.expires}}catch(et){xe=new Uint8Array(xe.data),xe=xe[0]===31&&xe[1]===139;let gt=`Unable to parse the tile at ${fe.request.url}, `;throw gt+=xe?"please make sure the data is not gzipped and that you have configured the relevant header in the server":"got error: "+et.messge,new Error(gt)}})}loadTile(fe){return i.__awaiter(this,void 0,void 0,function*(){var Ee=fe.uid,xe=!!(fe&&fe.request&&fe.request.collectResourceTiming)&&new i.RequestPerformance(fe.request),et=new l(fe),gt=(this.loading[Ee]=et,new AbortController);et.abort=gt;try{var Rt=yield this.loadVectorTile(fe,gt);if(delete this.loading[Ee],!Rt)return null;var dt,pt=Rt.rawData,wt={},Yt=(Rt.expires&&(wt.expires=Rt.expires),Rt.cacheControl&&(wt.cacheControl=Rt.cacheControl),{}),Vt=(xe&&(dt=xe.finish())&&(Yt.resourceTiming=JSON.parse(JSON.stringify(dt))),et.vectorTile=Rt.vectorTile,et.parse(Rt.vectorTile,this.layerIndex,this.availableImages,this.actor));this.loaded[Ee]=et,this.fetching[Ee]={rawTileData:pt,cacheControl:wt,resourceTiming:Yt};try{var ar=yield Vt;return i.extend({rawTileData:pt.slice(0)},ar,wt,Yt)}finally{delete this.fetching[Ee]}}catch(kr){throw delete this.loading[Ee],et.status="done",this.loaded[Ee]=et,kr}})}reloadTile(fe){return i.__awaiter(this,void 0,void 0,function*(){var Ee=fe.uid;if(!this.loaded||!this.loaded[Ee])throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");var xe=this.loaded[Ee];if(xe.showCollisionBoxes=fe.showCollisionBoxes,xe.status==="parsing"){var et,gt,Rt,dt=yield xe.parse(xe.vectorTile,this.layerIndex,this.availableImages,this.actor);return this.fetching[Ee]?({rawTileData:et,cacheControl:gt,resourceTiming:Rt}=this.fetching[Ee],delete this.fetching[Ee],i.extend({rawTileData:et.slice(0)},dt,gt,Rt)):dt}if(xe.status==="done"&&xe.vectorTile)return xe.parse(xe.vectorTile,this.layerIndex,this.availableImages,this.actor)})}abortTile(fe){return i.__awaiter(this,void 0,void 0,function*(){var Ee=this.loading,xe=fe.uid;Ee&&Ee[xe]&&Ee[xe].abort&&(Ee[xe].abort.abort(),delete Ee[xe])})}removeTile(fe){return i.__awaiter(this,void 0,void 0,function*(){this.loaded&&this.loaded[fe.uid]&&delete this.loaded[fe.uid]})}}class p{constructor(){this.loaded={}}loadTile(fe){return i.__awaiter(this,void 0,void 0,function*(){var{uid:Ee,encoding:xe,rawImageData:et,redFactor:gt,greenFactor:Rt,blueFactor:dt,baseShift:pt}=fe,wt=et.width+2,Yt=et.height+2,wt=i.isImageBitmap(et)?new i.RGBAImage({width:wt,height:Yt},yield i.getImageData(et,-1,-1,wt,Yt)):et,Yt=new i.DEMData(Ee,wt,xe,gt,Rt,dt,pt);return this.loaded=this.loaded||{},this.loaded[Ee]=Yt})}removeTile(xe){var Ee=this.loaded,xe=xe.uid;Ee&&Ee[xe]&&delete Ee[xe]}}function m(Te,fe){if(Te.length!==0){_(Te[0],fe);for(var Ee=1;Ee<Te.length;Ee++)_(Te[Ee],!fe)}}function _(Te,fe){for(var Ee=0,xe=0,et=0,gt=Te.length,Rt=gt-1;et<gt;Rt=et++){var dt=(Te[et][0]-Te[Rt][0])*(Te[Rt][1]+Te[et][1]),pt=Ee+dt;xe+=Math.abs(Ee)>=Math.abs(dt)?Ee-pt+dt:dt-pt+Ee,Ee=pt}0<=Ee+xe!=!!fe&&Te.reverse()}var C=i.getDefaultExportFromCjs(function Te(fe,Ee){var xe,et=fe&&fe.type;if(et==="FeatureCollection")for(xe=0;xe<fe.features.length;xe++)Te(fe.features[xe],Ee);else if(et==="GeometryCollection")for(xe=0;xe<fe.geometries.length;xe++)Te(fe.geometries[xe],Ee);else if(et==="Feature")Te(fe.geometry,Ee);else if(et==="Polygon")m(fe.coordinates,Ee);else if(et==="MultiPolygon")for(xe=0;xe<fe.coordinates.length;xe++)m(fe.coordinates[xe],Ee);return fe});const T=i.vectorTile.VectorTileFeature.prototype.toGeoJSON;let S=class{constructor(Te){this._feature=Te,this.extent=i.EXTENT,this.type=Te.type,this.properties=Te.tags,"id"in Te&&!isNaN(Te.id)&&(this.id=parseInt(Te.id,10))}loadGeometry(){if(this._feature.type===1){var Te=[];for(const xe of this._feature.geometry)Te.push([new i.Point(xe[0],xe[1])]);return Te}var fe=[];for(const xe of this._feature.geometry){var Ee=[];for(const et of xe)Ee.push(new i.Point(et[0],et[1]));fe.push(Ee)}return fe}toGeoJSON(Te,fe,Ee){return T.call(this,Te,fe,Ee)}},R=class{constructor(Te){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=i.EXTENT,this.length=Te.length,this._features=Te}feature(Te){return new S(this._features[Te])}};var O={exports:{}},N=i.pointGeometry,H=i.vectorTile.VectorTileFeature,F=j;function j(Te,fe){this.options=fe||{},this.features=Te,this.length=Te.length}function L(Te,fe){this.id=typeof Te.id=="number"?Te.id:void 0,this.type=Te.type,this.rawGeometry=Te.type===1?[Te.geometry]:Te.geometry,this.properties=Te.tags,this.extent=fe||4096}j.prototype.feature=function(Te){return new L(this.features[Te],this.options.extent)},L.prototype.loadGeometry=function(){var Te=this.rawGeometry;this.geometry=[];for(var fe=0;fe<Te.length;fe++){for(var Ee=Te[fe],xe=[],et=0;et<Ee.length;et++)xe.push(new N(Ee[et][0],Ee[et][1]));this.geometry.push(xe)}return this.geometry},L.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var Te=this.geometry,fe=1/0,Ee=-1/0,xe=1/0,et=-1/0,gt=0;gt<Te.length;gt++)for(var Rt=Te[gt],dt=0;dt<Rt.length;dt++)var pt=Rt[dt],fe=Math.min(fe,pt.x),Ee=Math.max(Ee,pt.x),xe=Math.min(xe,pt.y),et=Math.max(et,pt.y);return[fe,xe,Ee,et]},L.prototype.toGeoJSON=H.prototype.toGeoJSON;var B=i.pbf,Q=F;function Z(Te){var fe,Ee=new B,xe=Te,et=Ee;for(fe in xe.layers)et.writeMessage(3,ie,xe.layers[fe]);return Ee.finish()}function ie(Te,fe){fe.writeVarintField(15,Te.version||1),fe.writeStringField(1,Te.name||""),fe.writeVarintField(5,Te.extent||4096);for(var Ee={keys:[],values:[],keycache:{},valuecache:{}},xe=0;xe<Te.length;xe++)Ee.feature=Te.feature(xe),fe.writeMessage(2,J,Ee);var et=Ee.keys;for(xe=0;xe<et.length;xe++)fe.writeStringField(3,et[xe]);var gt=Ee.values;for(xe=0;xe<gt.length;xe++)fe.writeMessage(4,be,gt[xe])}function J(Te,fe){var Ee=Te.feature;Ee.id!==void 0&&fe.writeVarintField(1,Ee.id),fe.writeMessage(2,ne,Te),fe.writeVarintField(3,Ee.type),fe.writeMessage(4,se,Ee)}function ne(Te,fe){var Ee,xe=Te.feature,et=Te.keys,gt=Te.values,Rt=Te.keycache,dt=Te.valuecache;for(Ee in xe.properties){var pt,wt=xe.properties[Ee],Yt=Rt[Ee];wt!==null&&(Yt===void 0&&(et.push(Ee),Yt=et.length-1,Rt[Ee]=Yt),fe.writeVarint(Yt),(pt=dt[Yt=(Yt=typeof wt)+":"+(wt=Yt!="string"&&Yt!="boolean"&&Yt!="number"?JSON.stringify(wt):wt)])===void 0&&(gt.push(wt),pt=gt.length-1,dt[Yt]=pt),fe.writeVarint(pt))}}function ue(Te,fe){return(fe<<3)+(7&Te)}function K(Te){return Te<<1^Te>>31}function se(Te,fe){for(var Ee=Te.loadGeometry(),xe=Te.type,et=0,gt=0,Rt=Ee.length,dt=0;dt<Rt;dt++){for(var pt=Ee[dt],wt=1,Yt=(xe===1&&(wt=pt.length),fe.writeVarint(ue(1,wt)),xe===3?pt.length-1:pt.length),Vt=0;Vt<Yt;Vt++){Vt===1&&xe!==1&&fe.writeVarint(ue(2,Yt-1));var ar=pt[Vt].x-et,kr=pt[Vt].y-gt;fe.writeVarint(K(ar)),fe.writeVarint(K(kr)),et+=ar,gt+=kr}xe===3&&fe.writeVarint(15)}}function be(Te,fe){var Ee=typeof Te;Ee=="string"?fe.writeStringField(1,Te):Ee=="boolean"?fe.writeBooleanField(7,Te):Ee=="number"&&(Te%1!=0?fe.writeDoubleField(3,Te):Te<0?fe.writeSVarintField(6,Te):fe.writeVarintField(5,Te))}O.exports=Z,O.exports.fromVectorTileJs=Z,O.exports.fromGeojsonVt=function(Te,fe){fe=fe||{};var Ee,xe={};for(Ee in Te)xe[Ee]=new Q(Te[Ee].features,fe),xe[Ee].name=Ee,xe[Ee].version=fe.version,xe[Ee].extent=fe.extent;return Z({layers:xe})},O.exports.GeoJSONWrapper=Q;var de,ge=i.getDefaultExportFromCjs(O.exports);const Ue={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:Te=>Te},Qe=Math.fround||(de=new Float32Array(1),Te=>(de[0]=+Te,de[0])),ve=3,pe=5,He=6;class Re{constructor(fe){this.options=Object.assign(Object.create(Ue),fe),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(fe){var{log:Ee,minZoom:xe,maxZoom:et}=this.options,gt=(Ee&&console.time("total time"),`prepare ${fe.length} points`),Rt=(Ee&&console.time(gt),this.points=fe,[]);for(let Vt=0;Vt<fe.length;Vt++){var dt,pt=fe[Vt];pt.geometry&&([pt,dt]=pt.geometry.coordinates,pt=Qe(ot(pt)),dt=Qe(qe(dt)),Rt.push(pt,dt,1/0,Vt,-1,1),this.options.reduce)&&Rt.push(0)}let wt=this.trees[et+1]=this._createTree(Rt);Ee&&console.timeEnd(gt);for(let Vt=et;Vt>=xe;Vt--){var Yt=+Date.now();wt=this.trees[Vt]=this._createTree(this._cluster(wt,Vt)),Ee&&console.log("z%d: %d clusters in %dms",Vt,wt.numItems,+Date.now()-Yt)}return Ee&&console.timeEnd("total time"),this}getClusters(dt,Ee){let xe=((dt[0]+180)%360+360)%360-180;var et=Math.max(-90,Math.min(90,dt[1]));let gt=dt[2]===180?180:((dt[2]+180)%360+360)%360-180;var Rt=Math.max(-90,Math.min(90,dt[3]));if(360<=dt[2]-dt[0])xe=-180,gt=180;else if(xe>gt)return dt=this.getClusters([xe,et,180,Rt],Ee),pt=this.getClusters([-180,et,gt,Rt],Ee),dt.concat(pt);var dt=this.trees[this._limitZoom(Ee)],pt=dt.range(ot(xe),qe(Rt),ot(gt),qe(et)),wt=dt.data,Yt=[];for(const ar of pt){var Vt=this.stride*ar;Yt.push(1<wt[Vt+pe]?$e(wt,Vt,this.clusterProps):this.points[wt[Vt+ve]])}return Yt}getChildren(fe){var dt=this._getOriginId(fe),gt=this._getOriginZoom(fe),Ee="No cluster with the specified id.",xe=this.trees[gt];if(!xe)throw new Error(Ee);var et=xe.data;if(dt*this.stride>=et.length)throw new Error(Ee);var gt=this.options.radius/(this.options.extent*Math.pow(2,gt-1)),Rt=et[dt*this.stride],dt=et[dt*this.stride+1],pt=[];for(const Yt of xe.within(Rt,dt,gt)){var wt=Yt*this.stride;et[4+wt]===fe&&pt.push(1<et[wt+pe]?$e(et,wt,this.clusterProps):this.points[et[wt+ve]])}if(pt.length===0)throw new Error(Ee);return pt}getLeaves(fe,Ee,xe){var et=[];return this._appendLeaves(et,fe,Ee=Ee||10,xe=xe||0,0),et}getTile(gt,Ee,xe){var et=this.trees[this._limitZoom(gt)],gt=Math.pow(2,gt),{extent:dt,radius:Rt}=this.options,Rt=Rt/dt,dt=(xe-Rt)/gt,pt=(xe+1+Rt)/gt,wt={features:[]};return this._addTileFeatures(et.range((Ee-Rt)/gt,dt,(Ee+1+Rt)/gt,pt),et.data,Ee,xe,gt,wt),Ee===0&&this._addTileFeatures(et.range(1-Rt/gt,dt,1,pt),et.data,gt,xe,gt,wt),Ee===gt-1&&this._addTileFeatures(et.range(0,dt,Rt/gt,pt),et.data,-1,xe,gt,wt),wt.features.length?wt:null}getClusterExpansionZoom(fe){let Ee=this._getOriginZoom(fe)-1;for(;Ee<=this.options.maxZoom;){var xe=this.getChildren(fe);if(Ee++,xe.length!==1)break;fe=xe[0].properties.cluster_id}return Ee}_appendLeaves(fe,Ee,xe,et,gt){for(const dt of this.getChildren(Ee)){var Rt=dt.properties;if(Rt&&Rt.cluster?gt+Rt.point_count<=et?gt+=Rt.point_count:gt=this._appendLeaves(fe,Rt.cluster_id,xe,et,gt):gt<et?gt++:fe.push(dt),fe.length===xe)break}return gt}_createTree(fe){var Ee=new i.KDBush(fe.length/this.stride|0,this.options.nodeSize,Float32Array);for(let xe=0;xe<fe.length;xe+=this.stride)Ee.add(fe[xe],fe[xe+1]);return Ee.finish(),Ee.data=fe,Ee}_addTileFeatures(fe,Ee,xe,et,gt,Rt){for(const Vt of fe){var dt,pt=Vt*this.stride,wt=1<Ee[pt+pe];let ar,kr,qr;qr=wt?(ar=tt(Ee,pt,this.clusterProps),kr=Ee[pt],Ee[1+pt]):(Yt=this.points[Ee[pt+ve]],[Yt,dt]=(ar=Yt.properties,Yt.geometry.coordinates),kr=ot(Yt),qe(dt));var Yt={type:1,geometry:[[Math.round(this.options.extent*(kr*gt-xe)),Math.round(this.options.extent*(qr*gt-et))]],tags:ar};let Kr;(Kr=wt||this.options.generateId?Ee[pt+ve]:this.points[Ee[pt+ve]].id)!==void 0&&(Yt.id=Kr),Rt.features.push(Yt)}}_limitZoom(fe){return Math.max(this.options.minZoom,Math.min(Math.floor(+fe),this.options.maxZoom+1))}_cluster(fe,Ee){var{radius:xe,extent:et,reduce:gt,minPoints:Rt}=this.options,dt=xe/(et*Math.pow(2,Ee)),pt=fe.data,wt=[],Yt=this.stride;for(let Yr=0;Yr<pt.length;Yr+=Yt)if(!(pt[Yr+2]<=Ee)){pt[Yr+2]=Ee;var Vt=pt[Yr],ar=pt[Yr+1],kr=fe.within(pt[Yr],pt[Yr+1],dt),qr=pt[Yr+pe];let rn=qr;for(const qn of kr){var Kr=qn*Yt;pt[2+Kr]>Ee&&(rn+=pt[Kr+pe])}if(rn>qr&&rn>=Rt){let qn=Vt*qr,ii=ar*qr,mo,Nn=-1;var zn=((Yr/Yt|0)<<5)+(Ee+1)+this.points.length;for(const Yi of kr){var Wn,On=Yi*Yt;pt[2+On]<=Ee||(pt[2+On]=Ee,Wn=pt[On+pe],qn+=pt[On]*Wn,ii+=pt[1+On]*Wn,pt[4+On]=zn,gt&&(mo||(mo=this._map(pt,Yr,!0),Nn=this.clusterProps.length,this.clusterProps.push(mo)),gt(mo,this._map(pt,On))))}pt[Yr+4]=zn,wt.push(qn/rn,ii/rn,1/0,zn,-1,rn),gt&&wt.push(Nn)}else{for(let qn=0;qn<Yt;qn++)wt.push(pt[Yr+qn]);if(1<rn)for(const qn of kr){var Mn=qn*Yt;if(!(pt[2+Mn]<=Ee)){pt[2+Mn]=Ee;for(let ii=0;ii<Yt;ii++)wt.push(pt[Mn+ii])}}}}return wt}_getOriginId(fe){return fe-this.points.length>>5}_getOriginZoom(fe){return(fe-this.points.length)%32}_map(fe,Ee,xe){var et;return 1<fe[Ee+pe]?(et=this.clusterProps[fe[Ee+He]],xe?Object.assign({},et):et):(et=this.points[fe[Ee+ve]].properties,fe=this.options.map(et),xe&&fe===et?Object.assign({},fe):fe)}}function $e(Te,fe,Ee){return{type:"Feature",id:Te[fe+ve],properties:tt(Te,fe,Ee),geometry:{type:"Point",coordinates:[360*(Te[fe]-.5),(function(xe){return xe=(180-360*xe)*Math.PI/180,360*Math.atan(Math.exp(xe))/Math.PI-90})(Te[fe+1])]}}}function tt(Te,fe,Rt){var xe=Te[fe+pe],et=1e4<=xe?Math.round(xe/1e3)+"k":1e3<=xe?Math.round(xe/100)/10+"k":xe,gt=Te[fe+He],Rt=gt===-1?{}:Object.assign({},Rt[gt]);return Object.assign(Rt,{cluster:!0,cluster_id:Te[fe+ve],point_count:xe,point_count_abbreviated:et})}function ot(Te){return Te/360+.5}function qe(Te){return Te=Math.sin(Te*Math.PI/180),Te=.5-.25*Math.log((1+Te)/(1-Te))/Math.PI,Te<0?0:1<Te?1:Te}function lt(Te,fe,Ee,xe){for(var et,gt=xe,Rt=Ee-fe>>1,dt=Ee-fe,pt=Te[fe],wt=Te[fe+1],Yt=Te[Ee],Vt=Te[Ee+1],ar=fe+3;ar<Ee;ar+=3){var kr=(function(qr,Kr,zn,Wn,On,Mn){var Yr=On-zn,rn=Mn-Wn;{var qn;Yr==0&&rn==0||(1<(qn=((qr-zn)*Yr+(Kr-Wn)*rn)/(Yr*Yr+rn*rn))?(zn=On,Wn=Mn):0<qn&&(zn+=Yr*qn,Wn+=rn*qn))}return(Yr=qr-zn)*Yr+(rn=Kr-Wn)*rn})(Te[ar],Te[ar+1],pt,wt,Yt,Vt);gt<kr?(et=ar,gt=kr):kr===gt&&(kr=Math.abs(ar-Rt))<dt&&(et=ar,dt=kr)}xe<gt&&(3<et-fe&&lt(Te,fe,et,xe),Te[et+2]=gt,3<Ee-et)&&lt(Te,et,Ee,xe)}function Et(et,dt,Ee,xe){var et={id:et===void 0?null:et,type:dt,geometry:Ee,tags:xe,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0},gt=et,Rt=gt.geometry,dt=gt.type;if(dt==="Point"||dt==="MultiPoint"||dt==="LineString")Oe(gt,Rt);else if(dt==="Polygon"||dt==="MultiLineString")for(var pt=0;pt<Rt.length;pt++)Oe(gt,Rt[pt]);else if(dt==="MultiPolygon")for(pt=0;pt<Rt.length;pt++)for(var wt=0;wt<Rt[pt].length;wt++)Oe(gt,Rt[pt][wt]);return et}function Oe(Te,fe){for(var Ee=0;Ee<fe.length;Ee+=3)Te.minX=Math.min(Te.minX,fe[Ee]),Te.minY=Math.min(Te.minY,fe[Ee+1]),Te.maxX=Math.max(Te.maxX,fe[Ee]),Te.maxY=Math.max(Te.maxY,fe[Ee+1])}function le(Te,fe,Ee,xe){if(fe.geometry){var et=fe.geometry.coordinates,gt=fe.geometry.type,Rt=Math.pow(Ee.tolerance/((1<<Ee.maxZoom)*Ee.extent),2),dt=[],pt=fe.id;if(Ee.promoteId?pt=fe.properties[Ee.promoteId]:Ee.generateId&&(pt=xe||0),gt==="Point")re(et,dt);else if(gt==="MultiPoint")for(var wt=0;wt<et.length;wt++)re(et[wt],dt);else if(gt==="LineString")te(et,dt,Rt,!1);else if(gt==="MultiLineString"){if(Ee.lineMetrics){for(wt=0;wt<et.length;wt++)te(et[wt],dt=[],Rt,!1),Te.push(Et(pt,"LineString",dt,fe.properties));return}me(et,dt,Rt,!1)}else if(gt==="Polygon")me(et,dt,Rt,!0);else{if(gt!=="MultiPolygon"){if(gt!=="GeometryCollection")throw new Error("Input data is not a valid GeoJSON object.");for(wt=0;wt<fe.geometry.geometries.length;wt++)le(Te,{id:pt,geometry:fe.geometry.geometries[wt],properties:fe.properties},Ee,xe);return}for(wt=0;wt<et.length;wt++){var Yt=[];me(et[wt],Yt,Rt,!0),dt.push(Yt)}}Te.push(Et(pt,gt,dt,fe.properties))}}function re(Te,fe){fe.push(Ae(Te[0])),fe.push(_e(Te[1])),fe.push(0)}function te(Te,fe,Ee,xe){for(var et,gt,Rt=0,dt=0;dt<Te.length;dt++){var pt=Ae(Te[dt][0]),wt=_e(Te[dt][1]);fe.push(pt),fe.push(wt),fe.push(0),0<dt&&(Rt+=xe?(et*wt-pt*gt)/2:Math.sqrt(Math.pow(pt-et,2)+Math.pow(wt-gt,2))),et=pt,gt=wt}var Yt=fe.length-3;fe[2]=1,lt(fe,0,Yt,Ee),fe[2+Yt]=1,fe.size=Math.abs(Rt),fe.start=0,fe.end=fe.size}function me(Te,fe,Ee,xe){for(var et=0;et<Te.length;et++){var gt=[];te(Te[et],gt,Ee,xe),fe.push(gt)}}function Ae(Te){return Te/360+.5}function _e(Te){return Te=Math.sin(Te*Math.PI/180),Te=.5-.25*Math.log((1+Te)/(1-Te))/Math.PI,Te<0?0:1<Te?1:Te}function Ve(Te,fe,Ee,xe,et,gt,Rt,dt){if(xe/=fe,(Ee/=fe)<=gt&&Rt<xe)return Te;if(Rt<Ee||xe<=gt)return null;for(var pt=[],wt=0;wt<Te.length;wt++){var Yt=Te[wt],Vt=Yt.geometry,ar=Yt.type,kr=et===0?Yt.minX:Yt.minY,qr=et===0?Yt.maxX:Yt.maxY;if(Ee<=kr&&qr<xe)pt.push(Yt);else if(!(qr<Ee||xe<=kr)){var Kr=[];
129if(ar==="Point"||ar==="MultiPoint"){qn=rn=Yr=Mn=On=Wn=zn=void 0;for(var zn=Vt,Wn=Kr,On=Ee,Mn=xe,Yr=et,rn=0;rn<zn.length;rn+=3){var qn=zn[rn+Yr];On<=qn&&qn<=Mn&&(Wn.push(zn[rn]),Wn.push(zn[rn+1]),Wn.push(zn[rn+2]))}}else if(ar==="LineString")it(Vt,Kr,Ee,xe,et,!1,dt.lineMetrics);else if(ar==="MultiLineString")kt(Vt,Kr,Ee,xe,et,!1);else if(ar==="Polygon")kt(Vt,Kr,Ee,xe,et,!0);else if(ar==="MultiPolygon")for(var ii=0;ii<Vt.length;ii++){var mo=[];kt(Vt[ii],mo,Ee,xe,et,!0),mo.length&&Kr.push(mo)}if(Kr.length)if(dt.lineMetrics&&ar==="LineString")for(ii=0;ii<Kr.length;ii++)pt.push(Et(Yt.id,ar,Kr[ii],Yt.tags));else ar!=="LineString"&&ar!=="MultiLineString"||(Kr.length===1?(ar="LineString",Kr=Kr[0]):ar="MultiLineString"),ar!=="Point"&&ar!=="MultiPoint"||(ar=Kr.length===3?"Point":"MultiPoint"),pt.push(Et(Yt.id,ar,Kr,Yt.tags))}}return pt.length?pt:null}function it(Te,fe,Ee,xe,et,gt,Rt){for(var dt,pt,wt=vt(Te),Yt=et===0?bt:Xe,Vt=Te.start,ar=0;ar<Te.length-3;ar+=3){var Mn=Te[ar],Yr=Te[ar+1],rn=Te[ar+2],kr=Te[ar+3],qr=Te[ar+4],Kr=et===0?Mn:Yr,zn=et===0?kr:qr,Wn=!1;Rt&&(dt=Math.sqrt(Math.pow(Mn-kr,2)+Math.pow(Yr-qr,2))),Kr<Ee?Ee<zn&&(pt=Yt(wt,Mn,Yr,kr,qr,Ee),Rt)&&(wt.start=Vt+dt*pt):xe<Kr?zn<xe&&(pt=Yt(wt,Mn,Yr,kr,qr,xe),Rt)&&(wt.start=Vt+dt*pt):rt(wt,Mn,Yr,rn),zn<Ee&&Ee<=Kr&&(pt=Yt(wt,Mn,Yr,kr,qr,Ee),Wn=!0),xe<zn&&Kr<=xe&&(pt=Yt(wt,Mn,Yr,kr,qr,xe),Wn=!0),!gt&&Wn&&(Rt&&(wt.end=Vt+dt*pt),fe.push(wt),wt=vt(Te)),Rt&&(Vt+=dt)}var On=Te.length-3,Mn=Te[On],Yr=Te[1+On],rn=Te[2+On];Ee<=(Kr=et===0?Mn:Yr)&&Kr<=xe&&rt(wt,Mn,Yr,rn),On=wt.length-3,gt&&3<=On&&(wt[On]!==wt[0]||wt[1+On]!==wt[1])&&rt(wt,wt[0],wt[1],wt[2]),wt.length&&fe.push(wt)}function vt(Te){var fe=[];return fe.size=Te.size,fe.start=Te.start,fe.end=Te.end,fe}function kt(Te,fe,Ee,xe,et,gt){for(var Rt=0;Rt<Te.length;Rt++)it(Te[Rt],fe,Ee,xe,et,gt,!1)}function rt(Te,fe,Ee,xe){Te.push(fe),Te.push(Ee),Te.push(xe)}function bt(Te,fe,Ee,xe,et,gt){return xe=(gt-fe)/(xe-fe),Te.push(gt),Te.push(Ee+(et-Ee)*xe),Te.push(1),xe}function Xe(Te,fe,Ee,xe,et,gt){return et=(gt-Ee)/(et-Ee),Te.push(fe+(xe-fe)*et),Te.push(gt),Te.push(1),et}function ct(Te,fe){for(var Ee=[],xe=0;xe<Te.length;xe++){var et=Te[xe],gt=et.type;if(gt==="Point"||gt==="MultiPoint"||gt==="LineString")Rt=Me(et.geometry,fe);else if(gt==="MultiLineString"||gt==="Polygon")for(var Rt=[],dt=0;dt<et.geometry.length;dt++)Rt.push(Me(et.geometry[dt],fe));else if(gt==="MultiPolygon")for(Rt=[],dt=0;dt<et.geometry.length;dt++){for(var pt=[],wt=0;wt<et.geometry[dt].length;wt++)pt.push(Me(et.geometry[dt][wt],fe));Rt.push(pt)}Ee.push(Et(et.id,gt,Rt,et.tags))}return Ee}function Me(Te,fe){var Ee=[];Ee.size=Te.size,Te.start!==void 0&&(Ee.start=Te.start,Ee.end=Te.end);for(var xe=0;xe<Te.length;xe+=3)Ee.push(Te[xe]+fe,Te[xe+1],Te[xe+2]);return Ee}function X(Te,fe){if(!Te.transformed){for(var Ee,xe=1<<Te.z,et=Te.x,gt=Te.y,Rt=0;Rt<Te.features.length;Rt++){var dt=Te.features[Rt],pt=dt.geometry,wt=dt.type;if(dt.geometry=[],wt===1)for(Ee=0;Ee<pt.length;Ee+=2)dt.geometry.push(z(pt[Ee],pt[Ee+1],fe,xe,et,gt));else for(Ee=0;Ee<pt.length;Ee++){for(var Yt=[],Vt=0;Vt<pt[Ee].length;Vt+=2)Yt.push(z(pt[Ee][Vt],pt[Ee][Vt+1],fe,xe,et,gt));dt.geometry.push(Yt)}}Te.transformed=!0}return Te}function z(Te,fe,Ee,xe,et,gt){return[Math.round(Ee*(Te*xe-et)),Math.round(Ee*(fe*xe-gt))]}function W(Te,fe,Ee,xe,et){for(var gt=fe===et.maxZoom?0:et.tolerance/((1<<fe)*et.extent),Rt={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:Ee,y:xe,z:fe,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},dt=0;dt<Te.length;dt++){Rt.numFeatures++,On=Wn=zn=Kr=qr=kr=ar=Vt=Mn=Yt=wt=pt=void 0;var pt=Rt,wt=Te[dt],Yt=gt,Mn=et,Vt=wt.geometry,ar=wt.type,kr=[];if(ar==="Point"||ar==="MultiPoint")for(var qr=0;qr<Vt.length;qr+=3)kr.push(Vt[qr]),kr.push(Vt[qr+1]),pt.numPoints++,pt.numSimplified++;else if(ar==="LineString")Se(kr,Vt,pt,Yt,!1,!1);else if(ar==="MultiLineString"||ar==="Polygon")for(qr=0;qr<Vt.length;qr++)Se(kr,Vt[qr],pt,Yt,ar==="Polygon",qr===0);else if(ar==="MultiPolygon")for(var Kr=0;Kr<Vt.length;Kr++){var zn=Vt[Kr];for(qr=0;qr<zn.length;qr++)Se(kr,zn[qr],pt,Yt,!0,qr===0)}if(kr.length){var Wn=wt.tags||null;if(ar==="LineString"&&Mn.lineMetrics){for(var On in Wn={},wt.tags)Wn[On]=wt.tags[On];Wn.mapbox_clip_start=Vt.start/Vt.size,Wn.mapbox_clip_end=Vt.end/Vt.size}Mn={geometry:kr,type:ar==="Polygon"||ar==="MultiPolygon"?3:ar==="LineString"||ar==="MultiLineString"?2:1,tags:Wn},wt.id!==null&&(Mn.id=wt.id),pt.features.push(Mn)}var Mn=Te[dt].minX,Yr=Te[dt].minY,rn=Te[dt].maxX,qn=Te[dt].maxY;Mn<Rt.minX&&(Rt.minX=Mn),Yr<Rt.minY&&(Rt.minY=Yr),Rt.maxX<rn&&(Rt.maxX=rn),Rt.maxY<qn&&(Rt.maxY=qn)}return Rt}function Se(Te,fe,Ee,xe,et,gt){var Rt=xe*xe;if(0<xe&&fe.size<(et?Rt:xe))Ee.numPoints+=fe.length/3;else{for(var dt=[],pt=0;pt<fe.length;pt+=3)(xe===0||fe[pt+2]>Rt)&&(Ee.numSimplified++,dt.push(fe[pt]),dt.push(fe[pt+1])),Ee.numPoints++;if(et){for(var wt=dt,et=gt,Yt=0,Vt=0,ar=wt.length,kr=ar-2;Vt<ar;kr=Vt,Vt+=2)Yt+=(wt[Vt]-wt[kr])*(wt[Vt+1]+wt[kr+1]);if(0<Yt===et)for(Vt=0,ar=wt.length;Vt<ar/2;Vt+=2){var qr=wt[Vt],Kr=wt[Vt+1];wt[Vt]=wt[ar-2-Vt],wt[Vt+1]=wt[ar-1-Vt],wt[ar-2-Vt]=qr,wt[ar-1-Vt]=Kr}}Te.push(dt)}}function Ke(Te,fe){return new je(Te,fe)}function je(pt,fe){var Ee=(fe=this.options=(function(wt,Yt){for(var Vt in Yt)wt[Vt]=Yt[Vt];return wt})(Object.create(this.options),fe)).debug;if(Ee&&console.time("preprocess data"),fe.maxZoom<0||24<fe.maxZoom)throw new Error("maxZoom should be in the 0-24 range");if(fe.promoteId&&fe.generateId)throw new Error("promoteId and generateId cannot be used together.");var xe,et,gt,Rt,dt,pt=(function(wt,Yt){var Vt=[];if(wt.type==="FeatureCollection")for(var ar=0;ar<wt.features.length;ar++)le(Vt,wt.features[ar],Yt,ar);else wt.type==="Feature"?le(Vt,wt,Yt):le(Vt,{geometry:wt},Yt);return Vt})(pt,fe);this.tiles={},this.tileCoords=[],Ee&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",fe.indexMaxZoom,fe.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),xe=pt,et=(fe=fe).buffer/fe.extent,Rt=Ve(gt=xe,1,-1-et,et,0,-1,2,fe),dt=Ve(xe,1,1-et,2+et,0,-1,2,fe),(pt=gt=(Rt||dt)&&(gt=Ve(xe,1,-et,1+et,0,-1,2,fe)||[],Rt&&(gt=ct(Rt,1).concat(gt)),dt)?gt.concat(ct(dt,-1)):gt).length&&this.splitTile(pt,0,0,0),Ee&&(pt.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function We(Te,fe,Ee){return 32*((1<<Te)*Ee+fe)+Te}function Pt(Te,fe){return fe?Te.properties[fe]:Te.id}function Jt(Te,fe){if(Te==null)return 1;if(Te.type==="Feature")return Pt(Te,fe)!=null;if(Te.type==="FeatureCollection"){var Ee=new Set;for(const et of Te.features){var xe=Pt(et,fe);if(xe==null||Ee.has(xe))return;Ee.add(xe)}return 1}}function wr(Te,fe){var Ee=new Map;if(Te!=null)if(Te.type==="Feature")Ee.set(Pt(Te,fe),Te);else for(const xe of Te.features)Ee.set(Pt(xe,fe),xe);return Ee}function rr(Te,fe,Ee){if(fe.removeAll&&Te.clear(),fe.remove)for(const pt of fe.remove)Te.delete(pt);if(fe.add)for(const pt of fe.add){var xe=Pt(pt,Ee);xe!=null&&Te.set(xe,pt)}if(fe.update)for(const pt of fe.update){let wt=Te.get(pt.id);if(wt!=null){var et=pt.newGeometry||pt.removeAllProperties,gt=!pt.removeAllProperties&&(0<((gt=pt.removeProperties)==null?void 0:gt.length)||0<((gt=pt.addOrUpdateProperties)==null?void 0:gt.length));if((et||gt)&&(wt=Object.assign({},wt),Te.set(pt.id,wt),gt)&&(wt.properties=Object.assign({},wt.properties)),pt.newGeometry&&(wt.geometry=pt.newGeometry),pt.removeAllProperties)wt.properties={};else if(0<((et=pt.removeProperties)==null?void 0:et.length))for(const Yt of pt.removeProperties)Object.prototype.hasOwnProperty.call(wt.properties,Yt)&&delete wt.properties[Yt];
vendor: 10,906 bytes, line 129
129if(0<((et=pt.addOrUpdateProperties)==null?void 0:et.length))for(var{key:Rt,value:dt}of pt.addOrUpdateProperties)wt.properties[Rt]=dt}}}je.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},je.prototype.splitTile=function(Te,fe,Ee,xe,et,gt,Rt){for(var dt=[Te,fe,Ee,xe],pt=this.options,wt=pt.debug;dt.length;){xe=dt.pop(),Ee=dt.pop(),fe=dt.pop(),Te=dt.pop();var Yt,Vt,ar,kr,qr,Kr,zn,Wn,On,Mn=1<<fe,Yr=We(fe,Ee,xe),rn=this.tiles[Yr];if(rn||(1<wt&&console.time("creation"),rn=this.tiles[Yr]=W(Te,fe,Ee,xe,pt),this.tileCoords.push({z:fe,x:Ee,y:xe}),wt&&(1<wt&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",fe,Ee,xe,rn.numFeatures,rn.numPoints,rn.numSimplified),console.timeEnd("creation")),this.stats[Yr="z"+fe]=(this.stats[Yr]||0)+1,this.total++)),rn.source=Te,et){if(fe===pt.maxZoom||fe===et)continue;var Yr=1<<et-fe;if(Ee!==Math.floor(gt/Yr)||xe!==Math.floor(Rt/Yr))continue}else if(fe===pt.indexMaxZoom||rn.numPoints<=pt.indexMaxPoints)continue;rn.source=null,Te.length!==0&&(1<wt&&console.time("clipping"),Yt=.5-(Yr=.5*pt.buffer/pt.extent),ar=1+Yr,zn=kr=qr=Kr=null,Wn=Ve(Te,Mn,Ee-Yr,Ee+(Vt=.5+Yr),0,rn.minX,rn.maxX,pt),On=Ve(Te,Mn,Ee+Yt,Ee+ar,0,rn.minX,rn.maxX,pt),Te=null,Wn&&(zn=Ve(Wn,Mn,xe-Yr,xe+Vt,1,rn.minY,rn.maxY,pt),kr=Ve(Wn,Mn,xe+Yt,xe+ar,1,rn.minY,rn.maxY,pt),Wn=null),On&&(qr=Ve(On,Mn,xe-Yr,xe+Vt,1,rn.minY,rn.maxY,pt),Kr=Ve(On,Mn,xe+Yt,xe+ar,1,rn.minY,rn.maxY,pt),On=null),1<wt&&console.timeEnd("clipping"),dt.push(zn||[],fe+1,2*Ee,2*xe),dt.push(kr||[],fe+1,2*Ee,2*xe+1),dt.push(qr||[],fe+1,2*Ee+1,2*xe),dt.push(Kr||[],fe+1,2*Ee+1,2*xe+1))}},je.prototype.getTile=function(Te,fe,Ee){var et=this.options,xe=et.extent,et=et.debug;if(Te<0||24<Te)return null;var gt=1<<Te,gt=We(Te,fe=(fe%gt+gt)%gt,Ee);if(this.tiles[gt])return X(this.tiles[gt],xe);1<et&&console.log("drilling down to z%d-%d-%d",Te,fe,Ee);for(var Rt,dt=Te,pt=fe,wt=Ee;!Rt&&0<dt;)dt--,pt=Math.floor(pt/2),wt=Math.floor(wt/2),Rt=this.tiles[We(dt,pt,wt)];return Rt&&Rt.source&&(1<et&&console.log("found parent tile z%d-%d-%d",dt,pt,wt),1<et&&console.time("drilling down"),this.splitTile(Rt.source,dt,pt,wt,Te,fe,Ee),1<et&&console.timeEnd("drilling down"),this.tiles[gt])?X(this.tiles[gt],xe):null};class Nr extends h{constructor(){super(...arguments),this._dataUpdateable=new Map}loadVectorTile(fe,Ee){return i.__awaiter(this,void 0,void 0,function*(){var xe=fe.tileID.canonical;if(!this._geoJSONIndex)throw new Error("Unable to parse the data into a cluster or geojson");if(xe=this._geoJSONIndex.getTile(xe.z,xe.x,xe.y),!xe)return null;xe=new R(xe.features);let et=ge(xe);return{vectorTile:xe,rawData:(et=et.byteOffset===0&&et.byteLength===et.buffer.byteLength?et:new Uint8Array(et)).buffer}})}loadData(fe){return i.__awaiter(this,void 0,void 0,function*(){(Ee=this._pendingRequest)!=null&&Ee.abort();var Ee=!!(fe&&fe.request&&fe.request.collectResourceTiming)&&new i.RequestPerformance(fe.request);this._pendingRequest=new AbortController;try{let Rt=yield this.loadGeoJSON(fe,this._pendingRequest);if(delete this._pendingRequest,typeof Rt!="object")throw new Error(`Input data given to '${fe.source}' is not a valid GeoJSON object.`);if(C(Rt,!0),fe.filter){const dt=i.createExpression(fe.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(dt.result==="error")throw new Error(dt.value.map(pt=>pt.key+": "+pt.message).join(", "));var xe=Rt.features.filter(pt=>dt.value.evaluate({zoom:0},pt));Rt={type:"FeatureCollection",features:xe}}this._geoJSONIndex=fe.cluster?new Re(mt(fe)).load(Rt.features):Ke(Rt,fe.geojsonVtOptions),this.loaded={};var et,gt={};return Ee&&(et=Ee.finish())&&(gt.resourceTiming={},gt.resourceTiming[fe.source]=JSON.parse(JSON.stringify(et))),gt}catch(Rt){if(delete this._pendingRequest,i.isAbortError(Rt))return{abandoned:!0};throw Rt}})}reloadTile(fe){var Ee=this.loaded,xe=fe.uid;return Ee&&Ee[xe]?super.reloadTile(fe):this.loadTile(fe)}loadGeoJSON(fe,Ee){return i.__awaiter(this,void 0,void 0,function*(){var xe,et=fe.promoteId;if(fe.request)return xe=yield i.getJSON(fe.request,Ee),this._dataUpdateable=Jt(xe.data,et)?wr(xe.data,et):void 0,xe.data;if(typeof fe.data=="string")try{var gt=JSON.parse(fe.data);return this._dataUpdateable=Jt(gt,et)?wr(gt,et):void 0,gt}catch{throw new Error(`Input data given to '${fe.source}' is not a valid GeoJSON object.`)}if(!fe.dataDiff)throw new Error(`Input data given to '${fe.source}' is not a valid GeoJSON object.`);if(this._dataUpdateable)return rr(this._dataUpdateable,fe.dataDiff,et),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())};throw new Error("Cannot update existing geojson data in "+fe.source)})}removeSource(fe){return i.__awaiter(this,void 0,void 0,function*(){this._pendingRequest&&this._pendingRequest.abort()})}getClusterExpansionZoom(fe){return this._geoJSONIndex.getClusterExpansionZoom(fe.clusterId)}getClusterChildren(fe){return this._geoJSONIndex.getChildren(fe.clusterId)}getClusterLeaves(fe){return this._geoJSONIndex.getLeaves(fe.clusterId,fe.limit,fe.offset)}}function mt({superclusterOptions:Te,clusterProperties:fe}){if(fe&&Te){const et={},gt={},Rt={accumulated:null,zoom:0},dt={properties:null},pt=Object.keys(fe);for(const wt of pt){var[xe,Ee]=fe[wt],Ee=i.createExpression(Ee),xe=i.createExpression(typeof xe=="string"?[xe,["accumulated"],["get",wt]]:xe);et[wt]=Ee.value,gt[wt]=xe.value}Te.map=wt=>{dt.properties=wt;var Yt={};for(const Vt of pt)Yt[Vt]=et[Vt].evaluate(Rt,dt);return Yt},Te.reduce=(wt,Yt)=>{dt.properties=Yt;for(const Vt of pt)Rt.accumulated=wt[Vt],wt[Vt]=gt[Vt].evaluate(Rt,dt)}}return Te}class Mt{constructor(fe){this.self=fe,this.actor=new i.Actor(fe),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(Ee,xe)=>{if(this.externalWorkerSourceTypes[Ee])throw new Error(`Worker source with name "${Ee}" already registered.`);this.externalWorkerSourceTypes[Ee]=xe},this.self.addProtocol=i.addProtocol,this.self.removeProtocol=i.removeProtocol,this.self.registerRTLTextPlugin=Ee=>{if(i.rtlWorkerPlugin.isParsed())throw new Error("RTL text plugin already registered.");i.rtlWorkerPlugin.setMethods(Ee)},this.actor.registerMessageHandler("LDT",(Ee,xe)=>this._getDEMWorkerSource(Ee,xe.source).loadTile(xe)),this.actor.registerMessageHandler("RDT",(Ee,xe)=>i.__awaiter(this,void 0,void 0,function*(){this._getDEMWorkerSource(Ee,xe.source).removeTile(xe)})),this.actor.registerMessageHandler("GCEZ",(Ee,xe)=>i.__awaiter(this,void 0,void 0,function*(){return this._getWorkerSource(Ee,xe.type,xe.source).getClusterExpansionZoom(xe)})),this.actor.registerMessageHandler("GCC",(Ee,xe)=>i.__awaiter(this,void 0,void 0,function*(){return this._getWorkerSource(Ee,xe.type,xe.source).getClusterChildren(xe)})),this.actor.registerMessageHandler("GCL",(Ee,xe)=>i.__awaiter(this,void 0,void 0,function*(){return this._getWorkerSource(Ee,xe.type,xe.source).getClusterLeaves(xe)})),this.actor.registerMessageHandler("LD",(Ee,xe)=>this._getWorkerSource(Ee,xe.type,xe.source).loadData(xe)),this.actor.registerMessageHandler("LT",(Ee,xe)=>this._getWorkerSource(Ee,xe.type,xe.source).loadTile(xe)),this.actor.registerMessageHandler("RT",(Ee,xe)=>this._getWorkerSource(Ee,xe.type,xe.source).reloadTile(xe)),this.actor.registerMessageHandler("AT",(Ee,xe)=>this._getWorkerSource(Ee,xe.type,xe.source).abortTile(xe)),this.actor.registerMessageHandler("RMT",(Ee,xe)=>this._getWorkerSource(Ee,xe.type,xe.source).removeTile(xe)),this.actor.registerMessageHandler("RS",(Ee,xe)=>i.__awaiter(this,void 0,void 0,function*(){var et;this.workerSources[Ee]&&this.workerSources[Ee][xe.type]&&this.workerSources[Ee][xe.type][xe.source]&&(et=this.workerSources[Ee][xe.type][xe.source],delete this.workerSources[Ee][xe.type][xe.source],et.removeSource!==void 0)&&et.removeSource(xe)})),this.actor.registerMessageHandler("RM",Ee=>i.__awaiter(this,void 0,void 0,function*(){delete this.layerIndexes[Ee],delete this.availableImages[Ee],delete this.workerSources[Ee],delete this.demWorkerSources[Ee]})),this.actor.registerMessageHandler("SR",(Ee,xe)=>i.__awaiter(this,void 0,void 0,function*(){this.referrer=xe})),this.actor.registerMessageHandler("SRPS",(Ee,xe)=>this._syncRTLPluginState(Ee,xe)),this.actor.registerMessageHandler("IS",(Ee,xe)=>i.__awaiter(this,void 0,void 0,function*(){this.self.importScripts(xe)})),this.actor.registerMessageHandler("SI",(Ee,xe)=>this._setImages(Ee,xe)),this.actor.registerMessageHandler("UL",(Ee,xe)=>i.__awaiter(this,void 0,void 0,function*(){this._getLayerIndex(Ee).update(xe.layers,xe.removedIds)})),this.actor.registerMessageHandler("SL",(Ee,xe)=>i.__awaiter(this,void 0,void 0,function*(){this._getLayerIndex(Ee).replace(xe)}))}_setImages(fe,Ee){return i.__awaiter(this,void 0,void 0,function*(){this.availableImages[fe]=Ee;for(const et in this.workerSources[fe]){var xe=this.workerSources[fe][et];for(const gt in xe)xe[gt].availableImages=Ee}})}_syncRTLPluginState(fe,Ee){return i.__awaiter(this,void 0,void 0,function*(){if(i.rtlWorkerPlugin.isParsed())return i.rtlWorkerPlugin.getState();if(Ee.pluginStatus!=="loading")return i.rtlWorkerPlugin.setState(Ee),Ee;var xe=Ee.pluginURL,et=(this.self.importScripts(xe),i.rtlWorkerPlugin.isParsed());if(et)return i.rtlWorkerPlugin.setState(et={pluginStatus:"loaded",pluginURL:xe}),et;throw i.rtlWorkerPlugin.setState({pluginStatus:"error",pluginURL:""}),new Error("RTL Text Plugin failed to import scripts from "+xe)})}_getAvailableImages(fe){let Ee=this.availableImages[fe];return Ee=Ee||[]}_getLayerIndex(fe){let Ee=this.layerIndexes[fe];return Ee=Ee||(this.layerIndexes[fe]=new o)}_getWorkerSource(fe,Ee,xe){if(this.workerSources[fe]||(this.workerSources[fe]={}),this.workerSources[fe][Ee]||(this.workerSources[fe][Ee]={}),!this.workerSources[fe][Ee][xe]){var et={sendAsync:(gt,Rt)=>(gt.targetMapId=fe,this.actor.sendAsync(gt,Rt))};switch(Ee){case"vector":this.workerSources[fe][Ee][xe]=new h(et,this._getLayerIndex(fe),this._getAvailableImages(fe));break;case"geojson":this.workerSources[fe][Ee][xe]=new Nr(et,this._getLayerIndex(fe),this._getAvailableImages(fe));break;default:this.workerSources[fe][Ee][xe]=new this.externalWorkerSourceTypes[Ee](et,this._getLayerIndex(fe),this._getAvailableImages(fe))}}return this.workerSources[fe][Ee][xe]}_getDEMWorkerSource(fe,Ee){return this.demWorkerSources[fe]||(this.demWorkerSources[fe]={}),this.demWorkerSources[fe][Ee]||(this.demWorkerSources[fe][Ee]=new p),this.demWorkerSources[fe][Ee]}}return i.isWorker(self)&&(self.worker=new Mt(self)),Mt}),n("index",0,function(i,o){var a,l="4.1.2",_i=typeof performance<"u"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date);let u,h;const p={now:_i,frameAsync(P){return new Promise((d,v)=>{const E=requestAnimationFrame(d);P.signal.addEventListener("abort",()=>
vendor: 2,801 bytes, line 129
129{cancelAnimationFrame(E),v(o.createAbortError())})})},getImageData(P,d=0){return this.getImageCanvasContext(P).getImageData(-d,-d,P.width+2*d,P.height+2*d)},getImageCanvasContext(P){var d=window.document.createElement("canvas"),v=d.getContext("2d",{willReadFrequently:!0});if(v)return d.width=P.width,d.height=P.height,v.drawImage(P,0,0,P.width,P.height),v;throw new Error("failed to create canvas 2d context")},resolveURL(P){return(u=u||document.createElement("a")).href=P,u.href},hardwareConcurrency:typeof navigator<"u"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(h=h??matchMedia("(prefers-reduced-motion: reduce)")).matches}};class m{static testProp(d){if(m.docStyle){for(let v=0;v<d.length;v++)if(d[v]in m.docStyle)return d[v]}return d[0]}static create(d,v,E){return d=window.document.createElement(d),v!==void 0&&(d.className=v),E&&E.appendChild(d),d}static createNS(d,v){return window.document.createElementNS(d,v)}static disableDrag(){m.docStyle&&m.selectProp&&(m.userSelect=m.docStyle[m.selectProp],m.docStyle[m.selectProp]="none")}static enableDrag(){m.docStyle&&m.selectProp&&(m.docStyle[m.selectProp]=m.userSelect)}static setTransform(d,v){d.style[m.transformProp]=v}static addEventListener(d,v,E,A={}){"passive"in A?d.addEventListener(v,E,A):d.addEventListener(v,E,A.capture)}static removeEventListener(d,v,E,A={}){"passive"in A?d.removeEventListener(v,E,A):d.removeEventListener(v,E,A.capture)}static suppressClickInternal(d){d.preventDefault(),d.stopPropagation(),window.removeEventListener("click",m.suppressClickInternal,!0)}static suppressClick(){window.addEventListener("click",m.suppressClickInternal,!0),window.setTimeout(()=>{window.removeEventListener("click",m.suppressClickInternal,!0)},0)}static getScale(d){var v=d.getBoundingClientRect();return{x:v.width/d.offsetWidth||1,y:v.height/d.offsetHeight||1,boundingClientRect:v}}static getPoint(d,v,E){var A=v.boundingClientRect;return new o.Point((E.clientX-A.left)/v.x-d.clientLeft,(E.clientY-A.top)/v.y-d.clientTop)}static mousePos(d,v){var E=m.getScale(d);return m.getPoint(d,E,v)}static touchPos(d,v){var E=[],A=m.getScale(d);for(let M=0;M<v.length;M++)E.push(m.getPoint(d,A,v[M]));return E}static mouseButton(d){return d.button}static remove(d){d.parentNode&&d.parentNode.removeChild(d)}}m.docStyle=typeof window<"u"&&window.document&&window.document.documentElement.style,m.selectProp=m.testProp(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]),m.transformProp=m.testProp(["transform","WebkitTransform"]);const _={supported:!1,testSupport:function(P){!T&&S&&(R?O(P):C=P)}};let C,T=!1,S,R=!1;function O(P){var d=P.createTexture();P.bindTexture(P.TEXTURE_2D,d);try{if(P.texImage2D(P.TEXTURE_2D,0,P.RGBA,P.RGBA,P.UNSIGNED_BYTE,S),P.isContextLost())return;_.supported=!0}
vendor: 6,004 bytes, line 129
129catch{}P.deleteTexture(d),T=!0}typeof document<"u"&&((S=document.createElement("img")).onload=function(){C&&O(C),C=null,R=!0},S.onerror=function(){T=!0,C=null},S.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),(function(P){let d,v,E,A;P.resetRequestQueue=()=>{d=[],v=0,E=0,A={}},P.addThrottleControl=Ie=>{var Ne=E++;return A[Ne]=Ie,Ne},P.removeThrottleControl=Ie=>{delete A[Ie],ee()},P.getImage=(Ie,Ne,we=!0)=>new Promise((De,nt)=>{_.supported&&(Ie.headers||(Ie.headers={}),Ie.headers.accept="image/webp,*/*"),o.extend(Ie,{type:"image"});var at={abortController:Ne,requestParameters:Ie,supportImageRefresh:we,state:"queued",onError:ut=>{nt(ut)},onSuccess:ut=>{De(ut)}};d.push(at),ee()});const M=Ie=>typeof createImageBitmap=="function"?o.arrayBufferToImageBitmap(Ie):o.arrayBufferToImage(Ie),G=Ie=>o.__awaiter(this,void 0,void 0,function*(){Ie.state="running";var{requestParameters:Ne,supportImageRefresh:at,onError:we,onSuccess:De,abortController:nt}=Ie,at=at===!1&&!o.isWorker(self)&&!o.getProtocol(Ne.url)&&(!Ne.headers||Object.keys(Ne.headers).reduce((st,_t)=>st&&_t==="accept",!0)),at=(v++,at?he(Ne,nt):o.makeRequest(Ne,nt));try{var ut=yield at;delete Ie.abortController,Ie.state="completed",ut.data instanceof HTMLImageElement||o.isImageBitmap(ut.data)?De(ut):ut.data&&De({data:yield M(ut.data),cacheControl:ut.cacheControl,expires:ut.expires})}catch(st){delete Ie.abortController,we(st)}finally{v--,ee()}}),ee=()=>{var Ie=(()=>{for(const we of Object.keys(A))if(A[we]())return!0;return!1})()?o.config.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:o.config.MAX_PARALLEL_IMAGE_REQUESTS;for(let we=v;we<Ie&&0<d.length;we++){var Ne=d.shift();Ne.abortController.signal.aborted?we--:G(Ne)}},he=(Ie,Ne)=>new Promise((we,De)=>{const nt=new Image;var at=Ie.url,ut=Ie.credentials;ut&&ut==="include"?nt.crossOrigin="use-credentials":(ut&&ut==="same-origin"||!o.sameOrigin(at))&&(nt.crossOrigin="anonymous"),Ne.signal.addEventListener("abort",()=>{nt.src="",De(o.createAbortError())}),nt.fetchPriority="high",nt.onload=()=>{nt.onerror=nt.onload=null,we({data:nt})},nt.onerror=()=>{nt.onerror=nt.onload=null,Ne.signal.aborted||De(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},nt.src=at})})(a=a||{}),a.resetRequestQueue();class N{constructor(d){this._transformRequestFn=d}transformRequest(d,v){return this._transformRequestFn&&this._transformRequestFn(d,v)||{url:d}}normalizeSpriteURL(d,v,E){return d=F(d),d.path+=""+v+E,j(d)}setTransformRequest(d){this._transformRequestFn=d}}const H=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function F(P){var d=P.match(H);if(d)return{protocol:d[1],authority:d[2],path:d[3]||"/",params:d[4]?d[4].split("&"):[]};throw new Error(`Unable to parse URL "${P}"`)}function j(P){var d=P.params.length?"?"+P.params.join("&"):"";return P.protocol+"://"+P.authority+P.path+d}function L(P){var d=[];if(typeof P=="string")d.push({id:"default",url:P});else if(P&&0<P.length){var v,E,A=[];for({id:v,url:E}of P){var M=""+v+E;A.indexOf(M)===-1&&(A.push(M),d.push({id:v,url:E}))}}return d}function B(P,d,v,E){return o.__awaiter(this,void 0,void 0,function*(){var A,M,G=L(P),ee=1<v?"@2x":"",he={},Ie={};for({id:A,url:M}of G){var Ne=d.transformRequest(d.normalizeSpriteURL(M,ee,".json"),"SpriteJSON"),Ne=(he[A]=o.getJSON(Ne,E),d.transformRequest(d.normalizeSpriteURL(M,ee,".png"),"SpriteImage"));Ie[A]=a.getImage(Ne,E)}return yield Promise.all([...Object.values(he),...Object.values(Ie)]),(function(we,De){return o.__awaiter(this,void 0,void 0,function*(){var nt={};for(const xr in we){nt[xr]={};var at=p.getImageCanvasContext((yield De[xr]).data),ut=(yield we[xr]).data;for(const Dr in ut){var{width:st,height:_t,x:xt,y:At,sdf:Ft,pixelRatio:$t,stretchX:Bt,stretchY:Zt,content:Xt,contentMatch:yr}=ut[Dr];nt[xr][Dr]={data:null,pixelRatio:$t,sdf:Ft,stretchX:Bt,stretchY:Zt,content:Xt,spriteData:{width:st,height:_t,x:xt,y:At,context:at},contentMatch:yr}}}return nt})})(he,Ie)})}class Q{constructor(d,v,E,A){this.context=d,this.format=E,this.texture=d.gl.createTexture(),this.update(v,A)}update(d,v,E){var{width:A,height:M}=d,G=!(this.size&&this.size[0]===A&&this.size[1]===M||E),ee=this.context,he=ee.gl;this.useMipmap=!!(v&&v.useMipmap),he.bindTexture(he.TEXTURE_2D,this.texture),ee.pixelStoreUnpackFlipY.set(!1),ee.pixelStoreUnpack.set(1),ee.pixelStoreUnpackPremultiplyAlpha.set(this.format===he.RGBA&&(!v||v.premultiply!==!1)),G?(this.size=[A,M],d instanceof HTMLImageElement||d instanceof HTMLCanvasElement||d instanceof HTMLVideoElement||d instanceof ImageData||o.isImageBitmap(d)?he.texImage2D(he.TEXTURE_2D,0,this.format,this.format,he.UNSIGNED_BYTE,d):he.texImage2D(he.TEXTURE_2D,0,this.format,A,M,0,this.format,he.UNSIGNED_BYTE,d.data)):({x:ee,y:v}=E||{x:0,y:0},d instanceof HTMLImageElement||d instanceof HTMLCanvasElement||d instanceof HTMLVideoElement||d instanceof ImageData||o.isImageBitmap(d)?he.texSubImage2D(he.TEXTURE_2D,0,ee,v,he.RGBA,he.UNSIGNED_BYTE,d):he.texSubImage2D(he.TEXTURE_2D,0,ee,v,A,M,he.RGBA,he.UNSIGNED_BYTE,d.data)),this.useMipmap&&this.isSizePowerOfTwo()&&he.generateMipmap(he.TEXTURE_2D)}bind(d,v,E){var A=this.context,A=A.gl;A.bindTexture(A.TEXTURE_2D,this.texture),E!==A.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(E=A.LINEAR),d!==this.filter&&(A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MAG_FILTER,d),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MIN_FILTER,E||d),this.filter=d),v!==this.wrap&&(A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_S,v),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_T,v),this.wrap=v)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){var d=this.context.gl;d.deleteTexture(this.texture),this.texture=null}}class Z extends o.Evented{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new o.RGBAImage({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}
vendor: 4,552 bytes, line 129
129setLoaded(d){if(this.loaded!==d&&(this.loaded=d)){for(var{ids:v,promiseResolve:E}of this.requestors)E(this._getImagesForIds(v));this.requestors=[]}}getImage(E){var v,E=this.images[E];return E&&!E.data&&E.spriteData&&(v=E.spriteData,E.data=new o.RGBAImage({width:v.width,height:v.height},v.context.getImageData(v.x,v.y,v.width,v.height).data),E.spriteData=null),E}addImage(d,v){if(this.images[d])throw new Error(`Image id ${d} already exist, use updateImage instead`);this._validate(d,v)&&(this.images[d]=v)}_validate(d,v){let E=!0;var A=v.data||v.spriteData;return this._validateStretch(v.stretchX,A&&A.width)||(this.fire(new o.ErrorEvent(new Error(`Image "${d}" has invalid "stretchX" value`))),E=!1),this._validateStretch(v.stretchY,A&&A.height)||(this.fire(new o.ErrorEvent(new Error(`Image "${d}" has invalid "stretchY" value`))),E=!1),this._validateContent(v.content,v)||(this.fire(new o.ErrorEvent(new Error(`Image "${d}" has invalid "content" value`))),E=!1),E}_validateStretch(d,v){if(d){let E=0;for(const A of d){if(A[0]<E||A[1]<A[0]||v<A[1])return!1;E=A[1]}}return!0}_validateContent(d,v){var E,A;return!d||d.length===4&&(E=(A=v.spriteData)&&A.width||v.data.width,A=A&&A.height||v.data.height,!(d[0]<0||E<d[0]||d[1]<0||A<d[1]||d[2]<0||E<d[2]||d[3]<0||A<d[3]||d[2]<d[0]||d[3]<d[1]))}updateImage(d,v,E=!0){var A=this.getImage(d);if(E&&(A.data.width!==v.data.width||A.data.height!==v.data.height))throw new Error(`size mismatch between old image (${A.data.width}x${A.data.height}) and new image (${v.data.width}x${v.data.height}).`);v.version=A.version+1,this.images[d]=v,this.updatedImages[d]=!0}removeImage(d){var v=this.images[d];delete this.images[d],delete this.patterns[d],v.userImage&&v.userImage.onRemove&&v.userImage.onRemove()}listImages(){return Object.keys(this.images)}getImages(d){return new Promise((v,E)=>{let A=!0;if(!this.isLoaded())for(const M of d)this.images[M]||(A=!1);this.isLoaded()||A?v(this._getImagesForIds(d)):this.requestors.push({ids:d,promiseResolve:v})})}_getImagesForIds(d){var v={};for(const E of d){let A=this.getImage(E);A||(this.fire(new o.Event("styleimagemissing",{id:E})),A=this.getImage(E)),A?v[E]={data:A.data.clone(),pixelRatio:A.pixelRatio,sdf:A.sdf,version:A.version,stretchX:A.stretchX,stretchY:A.stretchY,content:A.content,contentMatch:A.contentMatch,hasRenderCallback:!!(A.userImage&&A.userImage.render)}:o.warnOnce(`Image "${E}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}return v}getPixelSize(){var{width:d,height:v}=this.atlasImage;return{width:d,height:v}}getPattern(d){var v=this.patterns[d],E=this.getImage(d);return E?(v&&v.position.version===E.version?v:(v?v.position.version=E.version:(v={w:E.data.width+2,h:E.data.height+2,x:0,y:0},E=new o.ImagePosition(v,E),this.patterns[d]={bin:v,position:E}),this._updatePatternAtlas(),this.patterns[d])).position:null}bind(d){var v=d.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new Q(d,this.atlasImage,v.RGBA),this.atlasTexture.bind(v.LINEAR,v.CLAMP_TO_EDGE)}_updatePatternAtlas(){var d=[];for(const he in this.patterns)d.push(this.patterns[he].bin);const{w:v,h:E}=o.potpack(d);var A=this.atlasImage;A.resize({width:v||1,height:E||1});for(const he in this.patterns){var G=this.patterns[he].bin,M=G.x+1,G=G.y+1,ee=this.getImage(he).data;const Ie=ee.width,Ne=ee.height;o.RGBAImage.copy(ee,A,{x:0,y:0},{x:M,y:G},{width:Ie,height:Ne}),o.RGBAImage.copy(ee,A,{x:0,y:Ne-1},{x:M,y:G-1},{width:Ie,height:1}),o.RGBAImage.copy(ee,A,{x:0,y:0},{x:M,y:G+Ne},{width:Ie,height:1}),o.RGBAImage.copy(ee,A,{x:Ie-1,y:0},{x:M-1,y:G},{width:1,height:Ne}),o.RGBAImage.copy(ee,A,{x:0,y:0},{x:M+Ie,y:G},{width:1,height:Ne})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(d){for(const E of d){var v;this.callbackDispatchedThisFrame[E]||(this.callbackDispatchedThisFrame[E]=!0,(v=this.getImage(E))||o.warnOnce(`Image with ID: "${E}" was not found`),o.renderStyleImage(v)&&this.updateImage(E,v))}}}const ie=1e20;function J(P,d,v,E,A,M,G,ee,he){for(let Ie=d;Ie<d+E;Ie++)ne(P,v*M+Ie,M,A,G,ee,he);for(let Ie=v;Ie<v+A;Ie++)ne(P,Ie*M+d,1,E,G,ee,he)}function ne(P,d,v,E,A,M,G){G[M[0]=0]=-ie,G[1]=ie,A[0]=P[d];for(let we=1,De=0,nt=0;we<E;we++){A[we]=P[d+we*v];var ee=we*we;do{var he=M[De];nt=(A[we]-A[he]+ee-he*he)/(we-he)/2}while(nt<=G[De]&&-1<--De);M[++De]=we,G[De]=nt,G[De+1]=ie}for(let we=0,De=0;we<E;we++){for(;
vendor: 4,858 bytes, line 129
129G[De+1]<we;)De++;var Ie=M[De],Ne=we-Ie;P[d+we*v]=A[Ie]+Ne*Ne}}class ue{constructor(d,v){this.requestManager=d,this.localIdeographFontFamily=v,this.entries={}}setURL(d){this.url=d}getGlyphs(d){return o.__awaiter(this,void 0,void 0,function*(){var v=[];for(const ee in d)for(const he of d[ee])v.push(this._getAndCacheGlyphsPromise(ee,he));var E,A,M,G={};for({stack:E,id:A,glyph:M}of yield Promise.all(v))G[E]||(G[E]={}),G[E][A]=M&&{id:M.id,bitmap:M.bitmap.clone(),metrics:M.metrics};return G})}_getAndCacheGlyphsPromise(d,v){return o.__awaiter(this,void 0,void 0,function*(){let E=this.entries[d];var A=(E=E||(this.entries[d]={glyphs:{},requests:{},ranges:{}})).glyphs[v];if(A!==void 0)return{stack:d,id:v,glyph:A};if(A=this._tinySDF(E,d,v))return E.glyphs[v]=A,{stack:d,id:v,glyph:A};var M=Math.floor(v/256);if(65535<256*M)throw new Error("glyphs > 65535 not supported");if(E.ranges[M])return{stack:d,id:v,glyph:A};if(!this.url)throw new Error("glyphsUrl is not set");E.requests[M]||(A=ue.loadGlyphRange(d,M,this.url,this.requestManager),E.requests[M]=A);var G=yield E.requests[M];for(const ee in G)this._doesCharSupportLocalGlyph(+ee)||(E.glyphs[+ee]=G[+ee]);return E.ranges[M]=!0,{stack:d,id:v,glyph:G[v]||null}})}_doesCharSupportLocalGlyph(d){return!!this.localIdeographFontFamily&&(o.unicodeBlockLookup["CJK Unified Ideographs"](d)||o.unicodeBlockLookup["Hangul Syllables"](d)||o.unicodeBlockLookup.Hiragana(d)||o.unicodeBlockLookup.Katakana(d))}_tinySDF(d,v,E){var A=this.localIdeographFontFamily;if(A&&this._doesCharSupportLocalGlyph(E)){let M=d.tinySDF;if(!M){let G="400";/bold/i.test(v)?G="900":/medium/i.test(v)?G="500":/light/i.test(v)&&(G="200"),M=d.tinySDF=new ue.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:A,fontWeight:G})}return v=M.draw(String.fromCharCode(E)),{id:E,bitmap:new o.AlphaImage({width:v.width||60,height:v.height||60},v.data),metrics:{width:v.glyphWidth/2||24,height:v.glyphHeight/2||24,left:v.glyphLeft/2+.5||0,top:v.glyphTop/2-27.5||-8,advance:v.glyphAdvance/2||24,isDoubleResolution:!0}}}}}ue.loadGlyphRange=function(P,d,v,E){return o.__awaiter(this,void 0,void 0,function*(){var A=256*d,M=255+A,G=E.transformRequest(v.replace("{fontstack}",P).replace("{range}",A+"-"+M),"Glyphs"),G=yield o.getArrayBuffer(G,new AbortController);if(!G||!G.data)throw new Error(`Could not load glyph range. range: ${d}, ${A}-`+M);var ee={};for(const he of o.parseGlyphPbf(G.data))ee[he.id]=he;return ee})},ue.TinySDF=class{constructor({fontSize:P=24,buffer:d=3,radius:v=8,cutoff:E=.25,fontFamily:A="sans-serif",fontWeight:M="normal",fontStyle:G="normal"}={}){this.buffer=d,this.cutoff=E,this.radius=v,E=this.size=P+4*d,v=this._createCanvas(E),d=this.ctx=v.getContext("2d",{willReadFrequently:!0}),d.font=G+` ${M} ${P}px `+A,d.textBaseline="alphabetic",d.textAlign="left",d.fillStyle="black",this.gridOuter=new Float64Array(E*E),this.gridInner=new Float64Array(E*E),this.f=new Float64Array(E),this.z=new Float64Array(E+1),this.v=new Uint16Array(E)}_createCanvas(P){var d=document.createElement("canvas");return d.width=d.height=P,d}draw(P){var{width:d,actualBoundingBoxAscent:E,actualBoundingBoxDescent:v,actualBoundingBoxLeft:Ne,actualBoundingBoxRight:ee}=this.ctx.measureText(P),E=Math.ceil(E),A=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(ee-Ne))),M=Math.min(this.size-this.buffer,E+Math.ceil(v)),G=A+2*this.buffer,ee=M+2*this.buffer,he=Math.max(G*ee,0),Ie=new Uint8ClampedArray(he),Ne={data:Ie,width:G,height:ee,glyphWidth:A,glyphHeight:M,glyphTop:E,glyphLeft:0,glyphAdvance:d};if(A!==0&&M!==0){var{ctx:v,buffer:we,gridInner:De,gridOuter:nt}=this,at=(v.clearRect(we,we,A,M),v.fillText(P,we,we+E),v.getImageData(we,we,A,M));nt.fill(ie,0,he),De.fill(0,0,he);for(let At=0;At<M;At++)for(let Ft=0;Ft<A;Ft++){var ut,st=at.data[4*(At*A+Ft)+3]/255;st!=0&&(ut=(At+we)*G+Ft+we,st==1?(nt[ut]=0,De[ut]=ie):(nt[ut]=0<(st=.5-st)?st*st:0,De[ut]=st<0?st*st:0))}J(nt,0,0,G,ee,G,this.f,this.v,this.z),J(De,we,we,A,M,G,this.f,this.v,this.z);for(let At=0;At<he;At++){var _t=Math.sqrt(nt[At])-Math.sqrt(De[At]);Ie[At]=Math.round(255-255*(_t/this.radius+this.cutoff))}}return Ne}};class K{constructor(){this.specification=o.v8Spec.light.position}possiblyEvaluate(d,v){return o.sphericalToCartesian(d.expression.evaluate(v))}interpolate(d,v,E){return{x:o.interpolate.number(d.x,v.x,E),y:o.interpolate.number(d.y,v.y,E),z:o.interpolate.number(d.z,v.z,E)}}}const se="-transition";let be;class de extends o.Evented{constructor(d){super(),be=be||new o.Properties({anchor:new o.DataConstantProperty(o.v8Spec.light.anchor),position:new K,color:new o.DataConstantProperty(o.v8Spec.light.color),intensity:new o.DataConstantProperty(o.v8Spec.light.intensity)}),this._transitionable=new o.Transitionable(be),this.setLight(d),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(d,v={}
vendor: 1,587 bytes, line 129
129){if(!this._validate(o.validateLight,d,v))for(const A in d){var E=d[A];A.endsWith(se)?this._transitionable.setTransition(A.slice(0,-se.length),E):this._transitionable.setValue(A,E)}}updateTransitions(d){this._transitioning=this._transitionable.transitioned(d,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(d){this.properties=this._transitioning.possiblyEvaluate(d)}_validate(d,v,E){return(!E||E.validate!==!1)&&o.emitValidationErrors(this,d.call(o.validateStyle,{value:v,style:{glyphs:!0,sprite:!0},styleSpec:o.v8Spec}))}}class ge{constructor(d,v){this.width=d,this.height=v,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}}getDash(d,v){var E=d.join(",")+String(v);return this.dashEntry[E]||(this.dashEntry[E]=this.addDash(d,v)),this.dashEntry[E]}getDashRanges(d,v,E){var A=[],M=d.length%2==1?-d[d.length-1]*E:0,G=d[0]*E;let ee=!0,he=(A.push({left:M,right:G,isDash:ee,zeroLength:d[0]===0}),d[0]);for(let Ne=1;Ne<d.length;Ne++){ee=!ee;var Ie=d[Ne],M=he*E,G=(he+=Ie)*E;A.push({left:M,right:G,isDash:ee,zeroLength:Ie===0})}return A}addRoundDash(d,v,E){var A=v/2;for(let Ne=-E;Ne<=E;Ne++){var M=this.nextRow+E+Ne,G=this.width*M;let we=0,De=d[we];for(let nt=0;nt<this.width;nt++){1<nt/De.right&&(De=d[++we]);var ee=Math.abs(nt-De.left),Ie=Math.abs(nt-De.right),ee=Math.min(ee,Ie);let at;var he,Ie=Ne/E*(1+A);at=De.isDash?(he=A-Math.abs(Ie),Math.sqrt(ee*ee+he*he)):A-Math.sqrt(ee*ee+Ie*Ie),this.data[G+nt]=Math.max(0,Math.min(255,at+128))}}}addRegularDash(d){for(let we=d.length-1;0<=we;--we){var v=d[we],E=d[we+1];
vendor: 10,182 bytes, line 129
129v.zeroLength?d.splice(we,1):E&&E.isDash===v.isDash&&(E.left=v.left,d.splice(we,1))}var A=d[0],M=d[d.length-1],G=(A.isDash===M.isDash&&(A.left=M.left-this.width,M.right=A.right+this.width),this.width*this.nextRow);let ee=0,he=d[ee];for(let we=0;we<this.width;we++){1<we/he.right&&(he=d[++ee]);var Ie=Math.abs(we-he.left),Ne=Math.abs(we-he.right),Ie=Math.min(Ie,Ne),Ne=he.isDash?Ie:-Ie;this.data[G+we]=Math.max(0,Math.min(255,Ne+128))}}addDash(d,v){var E,A,M=v?7:0,G=2*M+1;if(this.nextRow+G>this.height)return o.warnOnce("LineAtlas out of space"),null;let ee=0;for(let he=0;he<d.length;he++)ee+=d[he];return ee!==0&&(E=this.width/ee,A=this.getDashRanges(d,this.width,E),v?this.addRoundDash(A,E,M):this.addRegularDash(A)),v={y:(this.nextRow+M+.5)/this.height,height:2*M/this.height,width:ee},this.nextRow+=G,this.dirty=!0,v}bind(d){d=d.gl,this.texture?(d.bindTexture(d.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,d.texSubImage2D(d.TEXTURE_2D,0,0,0,this.width,this.height,d.ALPHA,d.UNSIGNED_BYTE,this.data))):(this.texture=d.createTexture(),d.bindTexture(d.TEXTURE_2D,this.texture),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S,d.REPEAT),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.REPEAT),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,d.LINEAR),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,d.LINEAR),d.texImage2D(d.TEXTURE_2D,0,d.ALPHA,this.width,this.height,0,d.ALPHA,d.UNSIGNED_BYTE,this.data))}}function Ue(){return new Worker(o.config.WORKER_URL)}const Qe="maplibre_preloaded_worker_pool";class ve{constructor(){this.active={}}acquire(d){if(!this.workers)for(this.workers=[];this.workers.length<ve.workerCount;)this.workers.push(Ue());return this.active[d]=!0,this.workers.slice()}release(d){delete this.active[d],this.numActive()===0&&(this.workers.forEach(v=>{v.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[Qe]}numActive(){return Object.keys(this.active).length}}_i=Math.floor(p.hardwareConcurrency/2),ve.workerCount=o.isSafari(globalThis)?Math.max(Math.min(_i,3),1):1;let pe;function He(){return pe=pe||new ve}class Re{constructor(d,v){this.workerPool=d,this.actors=[],this.currentActor=0,this.id=v;var E=this.workerPool.acquire(v);for(let M=0;M<E.length;M++){var A=E[M],A=new o.Actor(A,v);A.name="Worker "+M,this.actors.push(A)}if(!this.actors.length)throw new Error("No actors found")}broadcast(d,v){var E=[];for(const A of this.actors)E.push(A.sendAsync({type:d,data:v}));return Promise.all(E)}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(d=!0){this.actors.forEach(v=>{v.remove()}),this.actors=[],d&&this.workerPool.release(this.id)}registerMessageHandler(d,v){for(const E of this.actors)E.registerMessageHandler(d,v)}}let $e;function tt(){return $e||($e=new Re(He(),o.GLOBAL_DISPATCHER_ID)).registerMessageHandler("GR",(P,d,v)=>o.makeRequest(d,v)),$e}function ot(P,d,v,we,A,M){var G,ee,he,Ie=(function(at,ut,st){if(at)for(const At of at){var _t=ut[At];if(_t&&_t.source===st&&_t.type==="fill-extrusion")return!0}else for(const At in ut){var xt=ut[At];if(xt.source===st&&xt.type==="fill-extrusion")return!0}return!1})(A&&A.layers,d,P.id),Ne=M.maxPitchScaleFactor(),we=P.tilesIn(we,Ne,Ie),De=(we.sort(Et),[]);for(const at of we)De.push({wrappedTileID:at.tileID.wrapped().key,queryResults:at.tile.queryRenderedFeatures(d,v,P._state,at.queryGeometry,at.cameraQueryGeometry,at.scale,A,M,Ne,(G=P.transform,ee=at.tileID,he=void 0,he=o.create(),o.translate(he,he,[1,1,0]),o.scale(he,he,[.5*G.width,.5*G.height,1]),o.multiply(he,he,G.calculatePosMatrix(ee.toUnwrapped()))))});var nt=(function(at){var ut={},st={};for(const Zt of at){var _t=Zt.queryResults,xt=Zt.wrappedTileID,At=st[xt]=st[xt]||{};for(const Xt in _t){var Ft=_t[Xt],$t=At[Xt]=At[Xt]||{},Bt=ut[Xt]=ut[Xt]||[];for(const yr of Ft)$t[yr.featureIndex]||($t[yr.featureIndex]=!0,Bt.push(yr))}}return ut})(De);for(const at in nt)nt[at].forEach(st=>{var st=st.feature,_t=P.getFeatureState(st.layer["source-layer"],st.id);st.source=st.layer.source,st.layer["source-layer"]&&(st.sourceLayer=st.layer["source-layer"]),st.state=_t});return nt}function qe(P,d,v,E,A,M,G){var ee={},he=M.queryRenderedSymbols(E),Ie=[];for(const nt of Object.keys(he).map(Number))Ie.push(G[nt]);Ie.sort(Et);for(const nt of Ie){var Ne=nt.featureIndex.lookupSymbolFeatures(he[nt.bucketInstanceId],d,nt.bucketIndex,nt.sourceLayerIndex,A.filter,A.layers,A.availableImages,P);for(const at in Ne){var we=ee[at]=ee[at]||[],De=Ne[at];De.sort((ut,st)=>{var _t,xt=nt.featureSortOrder;return xt?(_t=xt.indexOf(ut.featureIndex),xt.indexOf(st.featureIndex)-_t):st.featureIndex-ut.featureIndex});for(const ut of De)we.push(ut)}}for(const nt in ee)ee[nt].forEach(ut=>{var ut=ut.feature,st=P[nt],st=v[st.source].getFeatureState(ut.layer["source-layer"],ut.id);ut.source=ut.layer.source,ut.layer["source-layer"]&&(ut.sourceLayer=ut.layer["source-layer"]),ut.state=st});return ee}function lt(P,d){var v=P.getRenderableIds().map(ee=>P.getTileByID(ee)),E=[],A={};for(let ee=0;ee<v.length;ee++){var M=v[ee],G=M.tileID.canonical.key;A[G]||(A[G]=!0,M.querySourceFeatures(E,d))}return E}function Et(P,d){return P=P.tileID,d=d.tileID,P.overscaledZ-d.overscaledZ||P.canonical.y-d.canonical.y||P.wrap-d.wrap||P.canonical.x-d.canonical.x}function Oe(P,d,v){return o.__awaiter(this,void 0,void 0,function*(){let E=P;var A;return P.url?(A=yield o.getJSON(d.transformRequest(P.url,"Source"),v),E=A.data):yield p.frameAsync(v),E?(A=o.pick(o.extend(E,P),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]),"vector_layers"in E&&E.vector_layers&&(A.vectorLayerIds=E.vector_layers.map(M=>M.id)),A):null})}class le{constructor(d,v){d&&(v?this.setSouthWest(d).setNorthEast(v):Array.isArray(d)&&(d.length===4?this.setSouthWest([d[0],d[1]]).setNorthEast([d[2],d[3]]):this.setSouthWest(d[0]).setNorthEast(d[1])))}setNorthEast(d){return this._ne=d instanceof o.LngLat?new o.LngLat(d.lng,d.lat):o.LngLat.convert(d),this}setSouthWest(d){return this._sw=d instanceof o.LngLat?new o.LngLat(d.lng,d.lat):o.LngLat.convert(d),this}extend(d){var v,E=this._sw,A=this._ne;let M,G;if(d instanceof o.LngLat)M=d,G=d;else{if(!(d instanceof le))return Array.isArray(d)?d.length===4||d.every(Array.isArray)?(v=d,this.extend(le.convert(v))):this.extend(o.LngLat.convert(d)):d&&("lng"in d||"lon"in d)&&"lat"in d?this.extend(o.LngLat.convert(d)):this;if(M=d._sw,G=d._ne,!M||!G)return this}return E||A?(E.lng=Math.min(M.lng,E.lng),E.lat=Math.min(M.lat,E.lat),A.lng=Math.max(G.lng,A.lng),A.lat=Math.max(G.lat,A.lat)):(this._sw=new o.LngLat(M.lng,M.lat),this._ne=new o.LngLat(G.lng,G.lat)),this}getCenter(){return new o.LngLat((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new o.LngLat(this.getWest(),this.getNorth())}getSouthEast(){return new o.LngLat(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(v){var{lng:v,lat:E}=o.LngLat.convert(v),E=this._sw.lat<=E&&E<=this._ne.lat;let A=this._sw.lng<=v&&v<=this._ne.lng;return this._sw.lng>this._ne.lng&&(A=this._sw.lng>=v&&v>=this._ne.lng),E&&A}static convert(d){return d instanceof le?d:d&&new le(d)}static fromLngLat(d,E=0){var E=360*E/40075017,A=E/Math.cos(Math.PI/180*d.lat);return new le(new o.LngLat(d.lng-A,d.lat-E),new o.LngLat(d.lng+A,d.lat+E))}}class re{constructor(d,v,E){this.bounds=le.convert(this.validateBounds(d)),this.minzoom=v||0,this.maxzoom=E||24}validateBounds(d){return Array.isArray(d)&&d.length===4?[Math.max(-180,d[0]),Math.max(-90,d[1]),Math.min(180,d[2]),Math.min(90,d[3])]:[-180,-90,180,90]}contains(d){var v=Math.pow(2,d.z);const E=Math.floor(o.mercatorXfromLng(this.bounds.getWest())*v),A=Math.floor(o.mercatorYfromLat(this.bounds.getNorth())*v),M=Math.ceil(o.mercatorXfromLng(this.bounds.getEast())*v),G=Math.ceil(o.mercatorYfromLat(this.bounds.getSouth())*v);return d.x>=E&&d.x<M&&d.y>=A&&d.y<G}}class te extends o.Evented{constructor(d,v,E,A){if(super(),this.id=d,this.dispatcher=E,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,o.extend(this,o.pick(v,["url","scheme","tileSize","promoteId"])),this._options=o.extend({type:"vector"},v),this._collectResourceTiming=v.collectResourceTiming,this.tileSize!==512)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(A)}load(){return o.__awaiter(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new o.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{var d=yield Oe(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,this.map.style.sourceCaches[this.id].clearTiles(),d&&(o.extend(this,d),d.bounds&&(this.tileBounds=new re(d.bounds,this.minzoom,this.maxzoom)),this.fire(new o.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new o.Event("data",{dataType:"source",sourceDataType:"content"})))}catch(v){this._tileJSONRequest=null,this.fire(new o.ErrorEvent(v))}})}loaded(){return this._loaded}hasTile(d){return!this.tileBounds||this.tileBounds.contains(d.canonical)}onAdd(d){this.map=d,this.load()}setSourceProperty(d){this._tileJSONRequest&&this._tileJSONRequest.abort(),d(),this.load()}setTiles(d){return this.setSourceProperty(()=>{this._options.tiles=d}),this}setUrl(d){return this.setSourceProperty(()=>{this.url=d,this._options.url=d}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return o.extend({},this._options)}loadTile(d){return o.__awaiter(this,void 0,void 0,function*(){var v=d.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),v={request:this.map._requestManager.transformRequest(v,"Tile"),uid:d.uid,tileID:d.tileID,zoom:d.tileID.overscaledZ,tileSize:this.tileSize*d.tileID.overscaleFactor(),type:this.t
vendor: 6,071 bytes, line 129
129ype,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};v.request.collectResourceTiming=this._collectResourceTiming;let E="RT";if(d.actor&&d.state!=="expired"){if(d.state==="loading")return new Promise((M,G)=>{d.reloadPromise={resolve:M,reject:G}})}else d.actor=this.dispatcher.getActor(),E="LT";d.abortController=new AbortController;try{var A=yield d.actor.sendAsync({type:E,data:v},d.abortController);delete d.abortController,d.aborted||this._afterTileLoadWorkerResponse(d,A)}catch(M){if(delete d.abortController,!d.aborted){if(M&&M.status!==404)throw M;this._afterTileLoadWorkerResponse(d,null)}}})}_afterTileLoadWorkerResponse(d,v){v&&v.resourceTiming&&(d.resourceTiming=v.resourceTiming),v&&this.map._refreshExpiredTiles&&d.setExpiryData(v),d.loadVectorData(v,this.map.painter),d.reloadPromise&&(v=d.reloadPromise,d.reloadPromise=null,this.loadTile(d).then(v.resolve).catch(v.reject))}abortTile(d){return o.__awaiter(this,void 0,void 0,function*(){d.abortController&&(d.abortController.abort(),delete d.abortController),d.actor&&(yield d.actor.sendAsync({type:"AT",data:{uid:d.uid,type:this.type,source:this.id}}))})}unloadTile(d){return o.__awaiter(this,void 0,void 0,function*(){d.unloadVectorData(),d.actor&&(yield d.actor.sendAsync({type:"RMT",data:{uid:d.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}}class me extends o.Evented{constructor(d,v,E,A){super(),this.id=d,this.dispatcher=E,this.setEventedParent(A),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=o.extend({type:"raster"},v),o.extend(this,o.pick(v,["url","scheme","tileSize"]))}load(){return o.__awaiter(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new o.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{var d=yield Oe(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,d&&(o.extend(this,d),d.bounds&&(this.tileBounds=new re(d.bounds,this.minzoom,this.maxzoom)),this.fire(new o.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new o.Event("data",{dataType:"source",sourceDataType:"content"})))}catch(v){this._tileJSONRequest=null,this.fire(new o.ErrorEvent(v))}})}loaded(){return this._loaded}onAdd(d){this.map=d,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(d){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),d(),this.load()}setTiles(d){return this.setSourceProperty(()=>{this._options.tiles=d}),this}setUrl(d){return this.setSourceProperty(()=>{this.url=d,this._options.url=d}),this}serialize(){return o.extend({},this._options)}hasTile(d){return!this.tileBounds||this.tileBounds.contains(d.canonical)}loadTile(d){return o.__awaiter(this,void 0,void 0,function*(){var v=d.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);d.abortController=new AbortController;try{var E,A,M,G=yield a.getImage(this.map._requestManager.transformRequest(v,"Tile"),d.abortController,this.map._refreshExpiredTiles);delete d.abortController,d.aborted?d.state="unloaded":G&&G.data&&(this.map._refreshExpiredTiles&&G.cacheControl&&G.expires&&d.setExpiryData({cacheControl:G.cacheControl,expires:G.expires}),A=(E=this.map.painter.context).gl,M=G.data,d.texture=this.map.painter.getTileTexture(M.width),d.texture?d.texture.update(M,{useMipmap:!0}):(d.texture=new Q(E,M,A.RGBA,{useMipmap:!0}),d.texture.bind(A.LINEAR,A.CLAMP_TO_EDGE,A.LINEAR_MIPMAP_NEAREST),E.extTextureFilterAnisotropic&&A.texParameterf(A.TEXTURE_2D,E.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,E.extTextureFilterAnisotropicMax)),d.state="loaded")}catch(ee){if(delete d.abortController,d.aborted)d.state="unloaded";else if(ee)throw d.state="errored",ee}})}abortTile(d){return o.__awaiter(this,void 0,void 0,function*(){d.abortController&&(d.abortController.abort(),delete d.abortController)})}unloadTile(d){return o.__awaiter(this,void 0,void 0,function*(){d.texture&&this.map.painter.saveTileTexture(d.texture)})}hasTransition(){return!1}}class Ae extends me{constructor(d,v,E,A){super(d,v,E,A),this.type="raster-dem",this.maxzoom=22,this._options=o.extend({type:"raster-dem"},v),this.encoding=v.encoding||"mapbox",this.redFactor=v.redFactor,this.greenFactor=v.greenFactor,this.blueFactor=v.blueFactor,this.baseShift=v.baseShift}loadTile(d){return o.__awaiter(this,void 0,void 0,function*(){var v=d.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),v=this.map._requestManager.transformRequest(v,"Tile");d.neighboringTiles=this._getNeighboringTiles(d.tileID),d.abortController=new AbortController;try{var E,A,M,G,ee=yield a.getImage(v,d.abortController,this.map._refreshExpiredTiles);delete d.abortController,d.aborted?d.state="unloaded":ee&&ee.data&&(E=ee.data,this.map._refreshExpiredTiles&&ee.cacheControl&&ee.expires&&d.setExpiryData({cacheControl:ee.cacheControl,expires:ee.expires}),A=o.isImageBitmap(E)&&o.offscreenCanvasSupported()?E:yield this.readImageNow(E),M={type:this.type,uid:d.uid,source:this.id,rawImageData:A,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift},d.actor&&d.state!=="expired"||(d.actor=this.dispatcher.getActor(),G=yield d.actor.sendAsync({type:"LDT",data:M}),d.dem=G,d.needsHillshadePrepare=!0,d.needsTerrainPrepare=!0,d.state="loaded"))}catch(he){if(delete d.abortController,d.aborted)d.state="unloaded";else if(he)throw d.state="errored",he}})}readImageNow(d){return o.__awaiter(this,void 0,void 0,function*(){if(typeof VideoFrame<"u"&&o.isOffscreenCanvasDistorted()){var v=d.width+2,E=d.height+2;try{return new o.RGBAImage({width:v,height:E},yield o.readImageUsingVideoFrame(d,-1,-1,v,E))}catch{}}return p.getImageData(d,1)})}_getNeighboringTiles(d){var v=d.canonical,E=Math.pow(2,v.z),A=(v.x-1+E)%E,M=v.x===0?d.wrap-1:d.wrap,G=(v.x+1+E)%E,ee=v.x+1===E?d.wrap+1:d.wrap,he={};
129return he[new o.OverscaledTileID(d.overscaledZ,M,v.z,A,v.y).key]={backfilled:!1},he[new o.OverscaledTileID(d.overscaledZ,ee,v.z,G,v.y).key]={backfilled:!1},0<v.y&&(he[new o.OverscaledTileID(d.overscaledZ,M,v.z,A,v.y-1).key]={backfilled:!1},he[new o.OverscaledTileID(d.overscaledZ,d.wrap,v.z,v.x,v.y-1).key]={backfilled:!1},he[new o.OverscaledTileID(d.overscaledZ,ee,v.z,G,v.y-1).key]={backfilled:!1}),v.y+1<E&&(he[new o.OverscaledTileID(d.overscaledZ,M,v.z,A,v.y+1).key]={backfilled:!1},he[new o.OverscaledTileID(d.overscaledZ,d.wrap,v.z,v.x,v.y+1).key]={backfilled:!1},he[new o.OverscaledTileID(d.overscaledZ,ee,v.z,G,v.y+1).key]={backfilled:!1}),he}unloadTile(d){return o.__awaiter(this,void 0,void 0,function*(){d.demTexture&&this.map.painter.saveTileTexture(d.demTexture),d.fbo&&(d.fbo.destroy(),delete d.fbo),d.dem&&delete d.dem,delete d.neighboringTiles,d.state="unloaded",d.actor&&(yield d.actor.sendAsync({type:"RDT",data:{type:this.type,uid:d.uid,source:this.id}}))})}}class _e extends o.Evented{constructor(d,v,E,A){super(),this.id=d,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._pendingLoads=0,this.actor=E.getActor(),this.setEventedParent(A),this._data=v.data,this._options=o.extend({},v),this._collectResourceTiming=v.collectResourceTiming,v.maxzoom!==void 0&&(this.maxzoom=v.maxzoom),v.type&&(this.type=v.type),v.attribution&&(this.attribution=v.attribution),this.promoteId=v.promoteId,d=o.EXTENT/this.tileSize,this.workerOptions=o.extend({source:this.id,cluster:v.cluster||!1,geojsonVtOptions:{buffer:(v.buffer!==void 0?v.buffer:128)*d,tolerance:(v.tolerance!==void 0?v.tolerance:.375)*d,extent:o.EXTENT,maxZoom:this.maxzoom,lineMetrics:v.lineMetrics||!1,generateId:v.generateId||!1}
129,superclusterOptions:{maxZoom:v.clusterMaxZoom!==void 0?v.clusterMaxZoom:this.maxzoom-1,minPoints:Math.max(2,v.clusterMinPoints||2),extent:o.EXTENT,radius:(v.clusterRadius||50)*d,log:!1,generateId:v.generateId||!1},clusterProperties:v.clusterProperties,filter:v.filter},v.workerOptions),typeof this.promoteId=="string"&&(this.workerOptions.promoteId=this.promoteId)}load(){return o.__awaiter(this,void 0,void 0,function*(){yield this._updateWorkerData()})}onAdd(d){this.map=d,this.load()}setData(d){return this._data=d,this._updateWorkerData(),this}updateData(d){return this._updateWorkerData(d),this}setClusterOptions(d){return this.workerOptions.cluster=d.cluster,d&&(d.clusterRadius!==void 0&&(this.workerOptions.superclusterOptions.radius=d.clusterRadius),d.clusterMaxZoom!==void 0)&&(this.workerOptions.superclusterOptions.maxZoom=d.clusterMaxZoom),this._updateWorkerData(),this}getClusterExpansionZoom(d){return this.actor.sendAsync({type:"GCEZ",data:{type:this.type,clusterId:d,source:this.id}})}getClusterChildren(d){return this.actor.sendAsync({type:"GCC",data:{type:this.type,clusterId:d,source:this.id}})}getClusterLeaves(d,v,E){return this.actor.sendAsync({type:"GCL",data:{type:this.type,source:this.id,clusterId:d,limit:v,offset:E}})}_updateWorkerData(d){return o.__awaiter(this,void 0,void 0,function*(){var v=o.extend({type:this.type},this.workerOptions);
vendor: 1,151 bytes, line 129
129d?v.dataDiff=d:typeof this._data=="string"?(v.request=this.map._requestManager.transformRequest(p.resolveURL(this._data),"Source"),v.request.collectResourceTiming=this._collectResourceTiming):v.data=JSON.stringify(this._data),this._pendingLoads++,this.fire(new o.Event("dataloading",{dataType:"source"}));try{var E=yield this.actor.sendAsync({type:"LD",data:v});if(this._pendingLoads--,this._removed||E.abandoned)this.fire(new o.Event("dataabort",{dataType:"source"}));else{let M=null;E.resourceTiming&&E.resourceTiming[this.id]&&(M=E.resourceTiming[this.id].slice(0));var A={dataType:"source"};this._collectResourceTiming&&M&&0<M.length&&o.extend(A,{resourceTiming:M}),this.fire(new o.Event("data",Object.assign(Object.assign({},A),{sourceDataType:"metadata"}))),this.fire(new o.Event("data",Object.assign(Object.assign({},A),{sourceDataType:"content"})))}}catch(M){this._pendingLoads--,this._removed?this.fire(new o.Event("dataabort",{dataType:"source"})):this.fire(new o.ErrorEvent(M))}})}loaded(){return this._pendingLoads===0}loadTile(d){return o.__awaiter(this,void 0,void 0,function*(){var v=d.actor?"RT":"LT",E=(d.actor=this.actor,{type:this.t
vendor: 4,991 bytes, line 129
129ype,uid:d.uid,tileID:d.tileID,zoom:d.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId}),E=(d.abortController=new AbortController,yield this.actor.sendAsync({type:v,data:E},d.abortController));delete d.abortController,d.unloadVectorData(),d.aborted||d.loadVectorData(E,this.map.painter,v=="RT")})}abortTile(d){return o.__awaiter(this,void 0,void 0,function*(){d.abortController&&(d.abortController.abort(),delete d.abortController),d.aborted=!0})}unloadTile(d){return o.__awaiter(this,void 0,void 0,function*(){d.unloadVectorData(),yield this.actor.sendAsync({type:"RMT",data:{uid:d.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actor.sendAsync({type:"RS",data:{type:this.type,source:this.id}})}serialize(){return o.extend({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var Ve=o.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class it extends o.Evented{constructor(d,v,E,A){super(),this.id=d,this.dispatcher=E,this.coordinates=v.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(A),this.options=v}load(d){return o.__awaiter(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new o.Event("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=new AbortController;try{var v=yield a.getImage(this.map._requestManager.transformRequest(this.url,"Image"),this._request);this._request=null,this._loaded=!0,v&&v.data&&(this.image=v.data,d&&(this.coordinates=d),this._finishLoading())}catch(E){this._request=null,this.fire(new o.ErrorEvent(E))}})}loaded(){return this._loaded}updateImage(d){return d.url&&(this._request&&(this._request.abort(),this._request=null),this.options.url=d.url,this.load(d.coordinates).finally(()=>{this.texture=null})),this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new o.Event("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(d){this.map=d,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(d){return d=(this.coordinates=d).map(o.MercatorCoordinate.fromLngLat),this.tileID=vt(d),this.minzoom=this.maxzoom=this.tileID.z,d=d.map(v=>this.tileID.getTilePoint(v)._round()),this._boundsArray=new o.RasterBoundsArray,this._boundsArray.emplaceBack(d[0].x,d[0].y,0,0),this._boundsArray.emplaceBack(d[1].x,d[1].y,o.EXTENT,0),this._boundsArray.emplaceBack(d[3].x,d[3].y,0,o.EXTENT),this._boundsArray.emplaceBack(d[2].x,d[2].y,o.EXTENT,o.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new o.Event("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length!==0&&this.image){var d=this.map.painter.context,v=d.gl;this.boundsBuffer||(this.boundsBuffer=d.createVertexBuffer(this._boundsArray,Ve.members)),this.boundsSegments||(this.boundsSegments=o.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new Q(d,this.image,v.RGBA),this.texture.bind(v.LINEAR,v.CLAMP_TO_EDGE));let A=!1;for(const M in this.tiles){var E=this.tiles[M];E.state!=="loaded"&&(E.state="loaded",E.texture=this.texture,A=!0)}A&&this.fire(new o.Event("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}}loadTile(d){return o.__awaiter(this,void 0,void 0,function*(){this.tileID&&this.tileID.equals(d.tileID.canonical)?(this.tiles[String(d.tileID.wrap)]=d).buckets={}:d.state="errored"})}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}function vt(G){let d=1/0,v=1/0,E=-1/0,A=-1/0;for(const ee of G)d=Math.min(d,ee.x),v=Math.min(v,ee.y),E=Math.max(E,ee.x),A=Math.max(A,ee.y);var G=E-d,M=A-v,G=Math.max(G,M),M=Math.max(0,Math.floor(-Math.log(G)/Math.LN2)),G=Math.pow(2,M);return new o.CanonicalTileID(M,Math.floor((d+E)/2*G),Math.floor((v+A)/2*G))}class kt extends it{constructor(d,v,E,A){super(d,v,E,A),this.roundZoom=!0,this.type="video",this.options=v}load(){return o.__awaiter(this,void 0,void 0,function*(){this._loaded=!1;var d=this.options;this.urls=[];for(const E of d.urls)this.urls.push(this.map._requestManager.transformRequest(E,"Source").url);try{var v=yield o.getVideo(this.urls);this._loaded=!0,v&&(this.video=v,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading())}catch(E){this.fire(new o.ErrorEvent(E))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(d){var v;this.video&&(d<(v=this.video.seekable).start(0)||d>v.end(0)?this.fire(new o.ErrorEvent(new o.ValidationError("sources."+this.id,null,`Playback for this video can be set only between the ${v.start(0)} and ${v.end(0)}-second mark.`))):this.video.currentTime=d)}getVideo(){return this.video}
129onAdd(d){this.map||(this.map=d,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var d=this.map.painter.context,v=d.gl;this.boundsBuffer||(this.boundsBuffer=d.createVertexBuffer(this._boundsArray,Ve.members)),this.boundsSegments||(this.boundsSegments=o.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(v.LINEAR,v.CLAMP_TO_EDGE),v.texSubImage2D(v.TEXTURE_2D,0,0,0,v.RGBA,v.UNSIGNED_BYTE,this.video)):(this.texture=new Q(d,this.video,v.RGBA),this.texture.bind(v.LINEAR,v.CLAMP_TO_EDGE));let A=!1;for(const M in this.tiles){var E=this.tiles[M];E.state!=="loaded"&&(E.state="loaded",E.texture=this.texture,A=!0)}A&&this.fire(new o.Event("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class rt extends it{constructor(d,v,E,A){super(d,v,E,A),v.coordinates?Array.isArray(v.coordinates)&&v.coordinates.length===4&&!v.coordinates.some(M=>!Array.isArray(M)||M.length!==2||M.some(G=>typeof G!="number"))||this.fire(new o.ErrorEvent(new o.ValidationError("sources."+d,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new o.ErrorEvent(new o.ValidationError("sources."+d,null,'missing required property "coordinates"'))),v.animate&&typeof v.animate!="boolean"&&this.fire(new o.ErrorEvent(new o.ValidationError("sources."+d,null,'optional "animate" property must be a boolean value'))),v.canvas?typeof v.canvas=="string"||v.canvas instanceof HTMLCanvasElement||this.fire(new o.ErrorEvent(new o.ValidationError("sources."+d,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new o.ErrorEvent(new o.ValidationError("sources."+d,null,'missing required property "canvas"'))),this.options=v,this.animate=v.animate===void 0||v.animate}load(){return o.__awaiter(this,void 0,void 0,function*(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new o.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())})}getCanvas(){return this.canvas}onAdd(d){this.map=d,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let d=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,d=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,d=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var v=this.map.painter.context,E=v.gl;this.boundsBuffer||(this.boundsBuffer=v.createVertexBuffer(this._boundsArray,Ve.members)),this.boundsSegments||(this.boundsSegments=o.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(d||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new Q(v,this.canvas,E.RGBA,{premultiply:!0});let M=!1;for(const G in this.tiles){var A=this.tiles[G];A.state!=="loaded"&&(A.state="loaded",A.texture=this.texture,M=!0)}M&&this.fire(new o.Event("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const d of[this.canvas.width,this.canvas.height])if(isNaN(d)||d<=0)return!0;return!1}}const bt={},Xe=(P,d,v,E)=>{if(d=new(ct(d.type))(P,d,v,E),d.id!==P)throw new Error(`Expected Source id to be ${P} instead of `+d.id);return d},ct=P=>{switch(P){case"geojson":return _e;case"image":return it;case"raster":return me;case"raster-dem":return Ae;case"vector":return te;case"video":return kt;case"canvas":return rt}return bt[P]};function Me(P,d){var v={};if(d)for(const E of P){const A=E.layerIds.map(M=>
vendor: 4,515 bytes, line 129
129d.getLayer(M)).filter(Boolean);if(A.length!==0){E.layers=A,E.stateDependentLayerIds&&(E.stateDependentLayers=E.stateDependentLayerIds.map(M=>A.filter(G=>G.id===M)[0]));for(const M of A)v[M.id]=E}}return v}const X="RTLPluginLoaded";class z extends o.Evented{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=tt()}_syncState(d){return this.status=d,this.dispatcher.broadcast("SRPS",{pluginStatus:d,pluginURL:this.url}).catch(v=>{throw this.status="error",v})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(d){return o.__awaiter(this,arguments,void 0,function*(v,E=!1){if(this.url)throw new Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=p.resolveURL(v),!this.url)throw new Error(`requested url ${v} is invalid`);if(this.status==="unavailable"){if(!E)return this._requestImport();this.status="deferred",this._syncState(this.status)}else if(this.status==="requested")return this._requestImport()})}_requestImport(){return o.__awaiter(this,void 0,void 0,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new o.Event(X))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let W=null;function Se(){return W=W||new z}class Ke{constructor(d,v){this.timeAdded=0,this.fadeEndTime=0,this.tileID=d,this.uid=o.uniqueId(),this.uses=0,this.tileSize=v,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(d){d+=this.timeAdded,d<this.fadeEndTime||(this.fadeEndTime=d)}wasRequested(){return this.state==="errored"||this.state==="loaded"||this.state==="reloading"}clearTextures(d){this.demTexture&&d.saveTileTexture(this.demTexture),this.demTexture=null}loadVectorData(d,v,E){if(this.hasData()&&this.unloadVectorData(),this.state="loaded",d){d.featureIndex&&(this.latestFeatureIndex=d.featureIndex,d.rawTileData?(this.latestRawTileData=d.rawTileData,this.latestFeatureIndex.rawTileData=d.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=d.collisionBoxArray,this.buckets=Me(d.buckets,v.style),this.hasSymbolBuckets=!1;for(const ee in this.buckets){var A=this.buckets[ee];if(A instanceof o.SymbolBucket){if(this.hasSymbolBuckets=!0,!E)break;A.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const ee in this.buckets){var M=this.buckets[ee];if(M instanceof o.SymbolBucket&&M.hasRTLText){this.hasRTLText=!0,Se().lazyLoad();break}}this.queryPadding=0;for(const ee in this.buckets){var G=this.buckets[ee];this.queryPadding=Math.max(this.queryPadding,v.style.getLayer(ee).queryRadius(G))}d.imageAtlas&&(this.imageAtlas=d.imageAtlas),d.glyphAtlasImage&&(this.glyphAtlasImage=d.glyphAtlasImage)}else this.collisionBoxArray=new o.CollisionBoxArray}unloadVectorData(){for(const d in this.buckets)this.buckets[d].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(d){return this.buckets[d.id]}upload(d){for(const A in this.buckets){var v=this.buckets[A];v.uploadPending()&&v.upload(d)}var E=d.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new Q(d,this.imageAtlas.image,E.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new Q(d,this.glyphAtlasImage,E.ALPHA),this.glyphAtlasImage=null)}prepare(d){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(d,this.imageAtlasTexture)}queryRenderedFeatures(d,v,E,A,M,G,ee,he,Ie,Ne){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:A,cameraQueryGeometry:M,scale:G,tileSize:this.tileSize,pixelPosMatrix:Ne,transform:he,params:ee,queryPadding:this.queryPadding*Ie},d,v,E):{}}querySourceFeatures(d,v){var E=this.latestFeatureIndex;if(E&&E.rawTileData){var A=E.loadVTLayers(),M=v&&v.sourceLayer?v.sourceLayer:"",G=A._geojsonTileLayer||A[M];if(G){var ee=o.createFilter(v&&v.filter),{z:he,x:Ie,y:Ne}=this.tileID.canonical,we={z:he,x:Ie,y:Ne};for(let at=0;at<G.length;at++){var De=G.feature(at);if(ee.needGeometry){var nt=o.toEvaluationFeature(De,!0);if(!ee.filter(new o.EvaluationParameters(this.tileID.overscaledZ
129),nt,this.tileID.canonical))continue}else if(!ee.filter(new o.EvaluationParameters(this.tileID.overscaledZ),De))continue;nt=E.getId(De,M),De=new o.GeoJSONFeature(De,he,Ie,Ne,nt),De.tile=we,d.push(De)}}}}hasData(){return this.state==="loaded"||this.state==="reloading"||this.state==="expired"}patternsLoaded(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(d){var v=this.expirationTime;if(d.cacheControl?(E=o.parseCacheControl(d.cacheControl))["max-age"]&&(this.expirationTime=Date.now()+1e3*E["max-age"]):d.expires&&(this.expirationTime=new Date(d.expires).getTime()),this.expirationTime){var E=Date.now();let A=!1;this.expirationTime>E?A=!1:v&&!(this.expirationTime<v)&&(d=this.expirationTime-v)?this.expirationTime=E+Math.max(d,3e4):A=!0,A?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}}getExpiryTimeout(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-new Date().getTime(),Math.pow(2,31)-1)}setFeatureState(d,v){if(this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData&&Object.keys(d).length!==0){var E,A,M,G=this.latestFeatureIndex.loadVTLayers();for(const ee in this.buckets)v.style.hasLayer(ee)&&(A=G[M=(E=this.buckets[ee]).layers[0].sourceLayer||"_geojsonTileLayer"],M=d[M],A)&&M&&Object.keys(M).length!==0&&(E.update(M,A,this.imageAtlas&&this.imageAtlas.patternPositions||{}),M=v&&v.style&&v.style.getLayer(ee))&&(this.queryPadding=Math.max(this.queryPadding,M.queryRadius(E)))}}holdingForFade(){return this.symbolFadeHoldUntil!==void 0}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<p.now()}clearFadeHold(){this.symbolFadeHoldUntil=void 0}setHoldDuration(d){this.symbolFadeHoldUntil=p.now()+d}setDependencies(d,v){var E={};for(const A of v)E[A]=!0;this.dependencies[d]=E}hasDependency(d,v){for(const A of d){var E=this.dependencies[A];if(E){for(const M of v)if(E[M])return!0}}return!1}}class je{constructor(d,v){this.max=d,this.onRemove=v,this.reset()}reset(){for(const d in this.data)for(const v of this.data[d])v.timeout&&clearTimeout(v.timeout),this.onRemove(v.value);return this.data={},this.order=[],this}add(d,v,E){var A=d.wrapped().key;this.data[A]===void 0&&(this.data[A]=[]);const M={value:v,timeout:void 0};return E!==void 0&&(M.timeout=setTimeout(()=>{this.remove(d,M)},E)),this.data[A].push(M),this.order.push(A),this.order.length>this.max&&(v=this._getAndRemoveByKey(this.order[0]))&&this.onRemove(v),this}has(d){return d.wrapped().key in this.data}getAndRemove(d){return this.has(d)?this._getAndRemoveByKey(d.wrapped().key):null}_getAndRemoveByKey(d){var v=this.data[d].shift();return v.timeout&&clearTimeout(v.timeout),this.data[d].length===0&&delete this.data[d],this.order.splice(this.order.indexOf(d),1),v.value}getByKey(d){return d=this.data[d],d?d[0].value:null}get(d){return this.has(d)?this.data[d.wrapped().key][0].value:null}remove(d,v){var E;return this.has(d)&&(d=d.wrapped().key,v=v===void 0?0:this.data[d].indexOf(v),E=this.data[d][v],this.data[d].splice(v,1),E.timeout&&clearTimeout(E.timeout),this.data[d].length===0&&delete this.data[d],this.onRemove(E.value),this.order.splice(this.order.indexOf(d),1)),this}setMaxSize(d){for(this.max=d;this.order.length>this.max;){var v=this._getAndRemoveByKey(this.order[0]);v&&this.onRemove(v)}return this}filter(d){var v=[];for(const E in this.data)for(const A of this.data[E])d(A.value)||v.push(A);for(const E of v)this.remove(E.value.tileID,E)}}class We{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(d,v,E){var A=String(v);if(this.stateChanges[d]=this.stateChanges[d]||{},this.stateChanges[d][A]=this.stateChanges[d][A]||{},o.extend(this.stateChanges[d][A],E),this.deletedStates[d]===null){this.deletedStates[d]={};for(const M in this.state[d])M!==A&&(this.deletedStates[d][M]=null)}else if(this.deletedStates[d]&&this.deletedStates[d][A]===null){this.deletedStates[d][A]={};for(const M in this.state[d][A])E[M]||(this.deletedStates[d][A][M]=null)}else for(const M in E)this.deletedStates[d]&&this.deletedStates[d][A]&&this.deletedStates[d][A][M]===null&&delete this.deletedStates[d][A][M]}removeFeatureState(d,v,E){var A=this.deletedStates[d]===null;if(!A){var M=String(v);if(this.deletedStates[d]=this.deletedStates[d]||{},E&&v!==void 0)this.deletedStates[d][M]!==null&&(this.deletedStates[d][M]=this.deletedStates[d][M]||{},this.deletedStates[d][M][E]=null);else if(v!==void 0)if(this.stateChanges[d]&&this.stateChanges[d][M])for(E in this.deletedStates[d][M]={},this.stateChanges[d][M])this.deletedStates[d][M][E]=null;else this.deletedStates[d][M]=null;else this.deletedStates[d]=null}}getState(d,v){var E=String(v),A=this.state[d]||{},M=this.stateChanges[d]||{},G=o.extend({},A[E],M[E]);if(this.deletedStates[d]===null)return{};if(this.deletedStates[d]){if(A=this.deletedStates[d][v],A===null)return{};for(const ee in A)delete G[ee]}return G}initializeTileState(d,v){d.setFeatureState(this.state,v)}coalesceChanges(d,v){var E={};for(const G in this.stateChanges){this.state[G]=this.state[G]||{};var A={};for(const ee in this.stateChanges[G])this.state[G][ee]||(this.state[G][ee]={}),o.extend(this.state[G][ee],this.stateChanges[G][ee]),A[ee]=this.state[G][ee];E[G]=A}for(const G in this.deletedStates){this.state[G]=this.state[G]||{};var M={};if(this.deletedStates[G]===null)for(const ee in this.state[G])M[ee]={},this.state[G][ee]={};else for(const ee in this.deletedStates[G]){if(this.deletedStates[G][ee]===null)this.state[G][ee]={};else for(const he of Object.keys(this.deletedStates[G][ee]))delete this.state[G][ee][he];M[ee]=this.state[G][ee]}E[G]=E[G]||{},o.extend(E[G],M)}if(this.stateChanges={},this.deletedStates={},Object.keys(E).length!==0)for(const G in d)d[G].setFeatureState(E,v)}}
129class Pt extends o.Evented{constructor(d,v,E){super(),this.id=d,this.dispatcher=E,this.on("data",A=>{A.dataType==="source"&&A.sourceDataType==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&A.dataType==="source"&&A.sourceDataType==="content"&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=Xe(d,v,E,this),this._tiles={},this._cache=new je(0,A=>this._unloadTile(A)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new We,this._didEmitContent=!1,this._updated=!1}onAdd(d){this.map=d,this._maxTileCacheSize=d?d._maxTileCacheSize:null,this._maxTileCacheZoomLevels=d?d._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(d)}onRemove(d){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(d)}loaded(){if(!this._sourceErrored){if(!this._sourceLoaded||!this._source.loaded())return!1;if(this.used===void 0&&this.usedForTerrain===void 0||this.used||this.usedForTerrain){if(!this._updated)return!1;for(const v in this._tiles){var d=this._tiles[v];if(d.state!=="loaded"&&d.state!=="errored")return!1}}}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){var d;this._paused&&(d=this._shouldReloadOnResume,this._paused=!1,this._shouldReloadOnResume=!1,d&&this.reload(),this.transform)&&this.update(this.transform,this.terrain)}_loadTile(d,v,E){return o.__awaiter(this,void 0,void 0,function*(){try{yield this._source.loadTile(d),this._tileLoaded(d,v,E)}catch(A){d.state="errored",A.status!==404?this._source.fire(new o.ErrorEvent(A,{tile:d})):this.update(this.transform,this.terrain)}})}_unloadTile(d){this._source.unloadTile&&this._source.unloadTile(d)}_abortTile(d){this._source.abortTile&&this._source.abortTile(d),this._source.fire(new o.Event("dataabort",{tile:d,coord:d.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(d){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const E in this._tiles){var v=this._tiles[E];v.upload(d),v.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(d=>d.tileID).sort(Jt).map(d=>d.key)}getRenderableIds(d){var v=[];for(const E in this._tiles)this._isIdRenderable(E,d)&&v.push(this._tiles[E]);return d?v.sort((M,G)=>{var M=M.tileID,G=G.tileID,ee=new o.Point(M.canonical.x,M.canonical.y)._rotate(this.transform.angle),he=new o.Point(G.canonical.x,G.canonical.y)._rotate(this.transform.angle);return M.overscaledZ-G.overscaledZ||he.y-ee.y||he.x-ee.x}).map(E=>E.tileID.key):v.map(E=>
vendor: 27,505 bytes, line 129
129E.tileID).sort(Jt).map(E=>E.key)}hasRenderableParent(d){return d=this.findLoadedParent(d,0),!!d&&this._isIdRenderable(d.tileID.key)}_isIdRenderable(d,v){return this._tiles[d]&&this._tiles[d].hasData()&&!this._coveredTiles[d]&&(v||!this._tiles[d].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const d in this._tiles)this._tiles[d].state!=="errored"&&this._reloadTile(d,"reloading")}}_reloadTile(d,v){return o.__awaiter(this,void 0,void 0,function*(){var E=this._tiles[d];E&&(E.state!=="loading"&&(E.state=v),yield this._loadTile(E,d,v))})}_tileLoaded(d,v,E){d.timeAdded=p.now(),E==="expired"&&(d.refreshedUponExpiration=!0),this._setTileReloadTimer(v,d),this.getSource().type==="raster-dem"&&d.dem&&this._backfillDEM(d),this._state.initializeTileState(d,this.map?this.map.painter:null),d.aborted||this._source.fire(new o.Event("data",{dataType:"source",tile:d,coord:d.tileID}))}_backfillDEM(d){var v=this.getRenderableIds();for(let M=0;M<v.length;M++){var E=v[M];d.neighboringTiles&&d.neighboringTiles[E]&&(A(d,E=this.getTileByID(E)),A(E,d))}function A(M,G){M.needsHillshadePrepare=!0,M.needsTerrainPrepare=!0;let ee=G.tileID.canonical.x-M.tileID.canonical.x;var he=G.tileID.canonical.y-M.tileID.canonical.y,Ie=Math.pow(2,M.tileID.canonical.z),Ne=G.tileID.key;ee===0&&he==0||1<Math.abs(he)||(1<Math.abs(ee)&&(Math.abs(ee+Ie)===1?ee+=Ie:Math.abs(ee-Ie)===1&&(ee-=Ie)),G.dem&&M.dem&&(M.dem.backfillBorder(G.dem,ee,he),M.neighboringTiles)&&M.neighboringTiles[Ne]&&(M.neighboringTiles[Ne].backfilled=!0))}}getTile(d){return this.getTileByID(d.key)}getTileByID(d){return this._tiles[d]}_retainLoadedChildren(d,v,E,A){for(const G in this._tiles){let ee=this._tiles[G];if(!(A[G]||!ee.hasData()||ee.tileID.overscaledZ<=v||ee.tileID.overscaledZ>E)){let he=ee.tileID;for(;ee&&ee.tileID.overscaledZ>v+1;){var M=ee.tileID.scaledTo(ee.tileID.overscaledZ-1);(ee=this._tiles[M.key])&&ee.hasData()&&(he=M)}let Ie=he;for(;Ie.overscaledZ>v;)if(d[(Ie=Ie.scaledTo(Ie.overscaledZ-1)).key]){A[he.key]=he;break}}}}findLoadedParent(d,v){var E;if(d.key in this._loadedParentTiles)return(E=this._loadedParentTiles[d.key])&&E.tileID.overscaledZ>=v?E:null;for(let M=d.overscaledZ-1;M>=v;M--){var A=d.scaledTo(M),A=this._getLoadedTile(A);if(A)return A}}_getLoadedTile(d){var v=this._tiles[d.key];return v&&v.hasData()?v:this._cache.getByKey(d.wrapped().key)}updateCacheSize(A){var E=Math.ceil(A.width/this._source.tileSize)+1,A=Math.ceil(A.height/this._source.tileSize)+1,v=this._maxTileCacheZoomLevels===null?o.config.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels,E=Math.floor(E*A*v),A=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,E):E;this._cache.setMaxSize(A)}handleWrapJump(d){var v=this._prevLng===void 0?d:this._prevLng,E=Math.round((d-v)/360);if(this._prevLng=d,E){var A={};for(const ee in this._tiles){var M=this._tiles[ee];M.tileID=M.tileID.unwrapTo(M.tileID.wrap+E),A[M.tileID.key]=M}this._tiles=A;for(const ee in this._timers)clearTimeout(this._timers[ee]),delete this._timers[ee];for(const ee in this._tiles){var G=this._tiles[ee];this._setTileReloadTimer(ee,G)}}}update(d,v){if(this.transform=d,this.terrain=v,this._sourceLoaded&&!this._paused){this.updateCacheSize(d),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};let At;this.used||this.usedForTerrain?this._source.tileID?At=d.getVisibleUnwrappedCoordinates(this._source.tileID).map($t=>new o.OverscaledTileID($t.canonical.z,$t.wrap,$t.canonical.z,$t.canonical.x,$t.canonical.y)):(At=d.coveringTiles({tileSize:(this.usedForTerrain?this:this._source).tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:v}),this._source.hasTile&&(At=At.filter($t=>this._source.hasTile($t)))):At=[];var d=d.coveringZoomLevel(this._source),E=Math.max(d-Pt.maxOverzooming,this._source.minzoom),A=Math.max(d+Pt.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){var M,G={};for(const $t of At)$t.canonical.z>this._source.minzoom&&(G[(M=$t.scaledTo($t.canonical.z-1)).key]=M,G[(M=$t.scaledTo(Math.max(this._source.minzoom,Math.min($t.canonical.z,5)))).key]=M);At=At.concat(Object.values(G))}var ee=At.length===0&&!this._updated&&this._didEmitContent,he=(this._updated=!0,ee&&this.fire(new o.Event("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id})),this._updateRetainedTiles(At,d));if(wr(this._source.type)){var Ie={},Ne={},ee=Object.keys(he),we=p.now();for(const Bt of ee){var De=he[Bt],nt=this._tiles[Bt];!nt||nt.fadeEndTime!==0&&nt.fadeEndTime<=we||((nt=this.findLoadedParent(De,E))&&(this._addTile(nt.tileID),Ie[nt.tileID.key]=nt.tileID),Ne[Bt]=De)}this._retainLoadedChildren(Ne,d,A,he);for(const Bt in Ie)he[Bt]||(this._coveredTiles[Bt]=!0,he[Bt]=Ie[Bt]);if(v){var at={},ut={};for(const Bt of At)this._tiles[Bt.key].hasData()?at[Bt.key]=Bt:ut[Bt.key]=Bt;for(const Bt in ut){var st=ut[Bt].children(this._source.maxzoom);this._tiles[st[0].key]&&this._tiles[st[1].key]&&this._tiles[st[2].key]&&this._tiles[st[3].key]&&(at[st[0].key]=he[st[0].key]=st[0],at[st[1].key]=he[st[1].key]=st[1],at[st[2].key]=he[st[2].key]=st[2],at[st[3].key]=he[st[3].key]=st[3],delete ut[Bt])}for(const Bt in ut){var _t=this.findLoadedParent(ut[Bt],this._source.minzoom);if(_t){at[_t.tileID.key]=he[_t.tileID.key]=_t.tileID;for(const Zt in at)at[Zt].isChildOf(_t.tileID)&&delete at[Zt]}}for(const Bt in this._tiles)at[Bt]||(this._coveredTiles[Bt]=!0)}}for(const $t in he)this._tiles[$t].clearFadeHold();for(const $t of o.keysDifference(this._tiles,he)){var xt=this._tiles[$t];xt.hasSymbolBuckets&&!xt.holdingForFade()?xt.setHoldDuration(this.map._fadeDuration):xt.hasSymbolBuckets&&!xt.symbolFadeFinished()||this._removeTile($t)}this._updateLoadedParentTileCache()}}releaseSymbolFadeTiles(){for(const d in this._tiles)this._tiles[d].holdingForFade()&&this._removeTile(d)}_updateRetainedTiles(d,v){var E={},A={},M=Math.max(v-Pt.maxOverzooming,this._source.minzoom),G=Math.max(v+Pt.maxUnderzooming,this._source.minzoom),ee={};for(const nt of d){var he=this._addTile(nt);E[nt.key]=nt,he.hasData()||v<this._source.maxzoom&&(ee[nt.key]=nt)}this._retainLoadedChildren(ee,v,G,E);for(const nt of d){let at=this._tiles[nt.key];if(!at.hasData()){if(v+1>this._source.maxzoom){var Ie=nt.children(this._source.maxzoom)[0],Ne=this.getTile(Ie);if(Ne&&Ne.hasData()){E[Ie.key]=Ie;continue}}else if(Ne=nt.children(this._source.maxzoom),E[Ne[0].key]&&E[Ne[1].key]&&E[Ne[2].key]&&E[Ne[3].key])continue;let ut=at.wasRequested();for(let st=nt.overscaledZ-1;st>=M;--st){var we=nt.scaledTo(st);if(A[we.key])break;if(A[we.key]=!0,at=!(at=this.getTile(we))&&ut?this._addTile(we):at){var De=at.hasData();if((ut||De)&&(E[we.key]=we),ut=at.wasRequested(),De)break}}}}return E}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const E in this._tiles){var d=[];let A,M=this._tiles[E].tileID;for(;0<M.overscaledZ;){if(M.key in this._loadedParentTiles){A=this._loadedParentTiles[M.key];break}d.push(M.key);var v=M.scaledTo(M.overscaledZ-1);if(A=this._getLoadedTile(v))break;M=v}for(const G of d)this._loadedParentTiles[G]=A}}_addTile(d){let v=this._tiles[d.key];var E;return v||((v=this._cache.getAndRemove(d))&&(this._setTileReloadTimer(d.key,v),v.tileID=d,this._state.initializeTileState(v,this.map?this.map.painter:null),this._cacheTimers[d.key])&&(clearTimeout(this._cacheTimers[d.key]),delete this._cacheTimers[d.key],this._setTileReloadTimer(d.key,v)),(E=v)||(v=new Ke(d,this._source.tileSize*d.overscaleFactor()),this._loadTile(v,d.key,v.state)),v.uses++,this._tiles[d.key]=v,E)||this._source.fire(new o.Event("dataloading",{tile:v,coord:v.tileID,dataType:"source"})),v}_setTileReloadTimer(d,v){d in this._timers&&(clearTimeout(this._timers[d]),delete this._timers[d]),v=v.getExpiryTimeout(),v&&(this._timers[d]=setTimeout(()=>{this._reloadTile(d,"expired"),delete this._timers[d]},v))}_removeTile(d){var v=this._tiles[d];v&&(v.uses--,delete this._tiles[d],this._timers[d]&&(clearTimeout(this._timers[d]),delete this._timers[d]),0<v.uses||(v.hasData()&&v.state!=="reloading"?this._cache.add(v.tileID,v,v.getExpiryTimeout()):(v.aborted=!0,this._abortTile(v),this._unloadTile(v))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const d in this._tiles)this._removeTile(d);this._cache.reset()}tilesIn(d,v,E){var A=[];const M=this.transform;if(M){var E=E?M.getCameraQueryGeometry(d):d,G=d.map(xt=>M.pointCoordinate(xt,this.terrain)),ee=E.map(xt=>M.pointCoordinate(xt,this.terrain)),he=this.getIds();let at=1/0,ut=1/0,st=-1/0,_t=-1/0;for(const xt of ee)at=Math.min(at,xt.x),ut=Math.min(ut,xt.y),st=Math.max(st,xt.x),_t=Math.max(_t,xt.y);for(let xt=0;xt<he.length;xt++){var Ie=this._tiles[he[xt]];if(!Ie.holdingForFade()){const At=Ie.tileID;var Ne=Math.pow(2,M.zoom-Ie.tileID.overscaledZ),we=v*Ie.queryPadding*o.EXTENT/Ie.tileSize/Ne,De=[At.getTilePoint(new o.MercatorCoordinate(at,ut)),At.getTilePoint(new o.MercatorCoordinate(st,_t))];De[0].x-we<o.EXTENT&&De[0].y-we<o.EXTENT&&0<=De[1].x+we&&0<=De[1].y+we&&(De=G.map(Ft=>At.getTilePoint(Ft)),we=ee.map(Ft=>At.getTilePoint(Ft)),A.push({tile:Ie,tileID:At,queryGeometry:De,cameraQueryGeometry:we,scale:Ne}))}}}return A}getVisibleCoordinates(d){d=this.getRenderableIds(d).map(v=>this._tiles[v].tileID);for(const v of d)v.posMatrix=this.transform.calculatePosMatrix(v.toUnwrapped());return d}hasTransition(){if(this._source.hasTransition())return!0;if(wr(this._source.type)){var d=p.now();for(const v in this._tiles)if(this._tiles[v].fadeEndTime>=d)return!0}return!1}setFeatureState(d,v,E){this._state.updateState(d=d||"_geojsonTileLayer",v,E)}removeFeatureState(d,v,E){this._state.removeFeatureState(d=d||"_geojsonTileLayer",v,E)}getFeatureState(d,v){return this._state.getState(d=d||"_geojsonTileLayer",v)}setDependencies(d,v,E){d=this._tiles[d],d&&d.setDependencies(v,E)}reloadTilesForDependencies(d,v){for(const E in this._tiles)this._tiles[E].hasDependency(d,v)&&this._reloadTile(E,"reloading");this._cache.filter(E=>!E.hasDependency(d,v))}}function Jt(P,d){var v=Math.abs(2*P.wrap)-(P.wrap<0),E=Math.abs(2*d.wrap)-(d.wrap<0);return P.overscaledZ-d.overscaledZ||E-v||d.canonical.y-P.canonical.y||d.canonical.x-P.canonical.x}function wr(P){return P==="raster"||P==="image"||P==="video"}Pt.maxOverzooming=10,Pt.maxUnderzooming=3;class rr{constructor(d,v){this.reset(d,v)}reset(d,v){this.points=d||[],this._distances=[0];for(let E=1;E<this.points.length;E++)this._distances[E]=this._distances[E-1]+this.points[E].dist(this.points[E-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(v||0,.5*this.length),this.paddedLength=this.length-2*this.padding}lerp(M){if(this.points.length===1)return this.points[0];M=o.clamp(M,0,1);let v=1,E=this._distances[v];for(var A=M*this.paddedLength+this.padding;E<A&&v<this._distances.length;)E=this._distances[++v];var M=v-1,ee=this._distances[M],G=E-ee,ee=0<G?(A-ee)/G:0;return this.points[M].mult(1-ee).add(this.points[v].mult(ee))}}function Nr(P,d){return P==="always"||P!=="never"&&d!=="never"}class mt{constructor(d,v,E){var A=this.boxCells=[],M=this.circleCells=[];this.xCellCount=Math.ceil(d/E),this.yCellCount=Math.ceil(v/E);for(let G=0;G<this.xCellCount*this.yCellCount;G++)A.push([]),M.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=d,this.height=v,this.xScale=this.xCellCount/d,this.yScale=this.yCellCount/v,this.boxUid=0,this.circleUid=0}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(d,v,E,A,M){this._forEachCell(v,E,A,M,this._insertBoxCell,this.boxUid++),this.boxKeys.push(d),this.bboxes.push(v),this.bboxes.push(E),this.bboxes.push(A),this.bboxes.push(M)}insertCircle(d,v,E,A){this._forEachCell(v-A,E-A,v+A,E+A,this._insertCircleCell,this.circleUid++),this.circleKeys.push(d),this.circles.push(v),this.circles.push(E),this.circles.push(A)}_insertBoxCell(d,v,E,A,M,G){this.boxCells[M].push(G)}_insertCircleCell(d,v,E,A,M,G){this.circleCells[M].push(G)}_query(d,v,E,A,M,G,ee){if(E<0||d>this.width||A<0||v>this.height)return[];var he=[];if(d<=0&&v<=0&&this.width<=E&&this.height<=A){if(M)return[{key:null,x1:d,y1:v,x2:E,y2:A}];for(let De=0;De<this.boxKeys.length;De++)he.push({key:this.boxKeys[De],x1:this.bboxes[4*De],y1:this.bboxes[4*De+1],x2:this.bboxes[4*De+2],y2:this.bboxes[4*De+3]});for(let De=0;De<this.circleKeys.length;De++){var Ie=this.circles[3*De],Ne=this.circles[3*De+1],we=this.circles[3*De+2];he.push({key:this.circleKeys[De],x1:Ie-we,y1:Ne-we,x2:Ie+we,y2:Ne+we})}}else this._forEachCell(d,v,E,A,this._queryCell,he,{hitTest:M,overlapMode:G,seenUids:{box:{},circle:{}}},ee);return he}query(d,v,E,A){return this._query(d,v,E,A,!1,null)}hitTest(d,v,E,A,M,G){return 0<this._query(d,v,E,A,!0,M,G).length}hitTestCircle(d,v,E,A,M){var G=d-E,ee=d+E,he=v-E,Ie=v+E;return!(ee<0||G>this.width||Ie<0||he>this.height)&&(this._forEachCell(G,he,ee,Ie,this._queryCellCircle,G=[],{hitTest:!0,overlapMode:A,circle:{x:d,y:v,radius:E},seenUids:{box:{},circle:{}}},M),0<G.length)}_queryCell(d,v,E,A,M,G,De,he){var{seenUids:Ie,hitTest:Ne,overlapMode:we}=De,De=this.boxCells[M];if(De!==null){var nt=this.bboxes;for(const $t of De)if(!Ie.box[$t]){Ie.box[$t]=!0;var at=4*$t,ut=this.boxKeys[$t];if(d<=nt[2+at]&&v<=nt[3+at]&&E>=nt[0+at]&&A>=nt[1+at]&&(!he||he(ut))&&(!Ne||!Nr(we,ut.overlapMode))&&(G.push({key:ut,x1:nt[at],y1:nt[1+at],x2:nt[2+at],y2:nt[3+at]}),Ne))return!0}}if(De=this.circleCells[M],De!==null){var st=this.circles;for(const $t of De)if(!Ie.circle[$t]){Ie.circle[$t]=!0;var _t=3*$t,xt=this.circleKeys[$t];if(this._circleAndRectCollide(st[_t],st[1+_t],st[2+_t],d,v,E,A)&&(!he||he(xt))&&(!Ne||!Nr(we,xt.overlapMode))){var At=st[_t],Ft=st[1+_t],_t=st[2+_t];if(G.push({key:xt,x1:At-_t,y1:Ft-_t,x2:At+_t,y2:Ft+_t}),Ne)return!0}}}return!1}_queryCellCircle(d,v,E,A,M,G,De,he){var{circle:Ie,seenUids:Ne,overlapMode:we}=De,De=this.boxCells[M];if(De!==null){var nt=this.bboxes;for(const At of De)if(!Ne.box[At]){Ne.box[At]=!0;var at=4*At,ut=this.boxKeys[At];if(this._circleAndRectCollide(Ie.x,Ie.y,Ie.radius,nt[0+at],nt[1+at],nt[2+at],nt[3+at])&&(!he||he(ut))&&!Nr(we,ut.overlapMode))return G.push(!0),!0}}if(De=this.circleCells[M],De!==null){var st=this.circles;for(const At of De)if(!Ne.circle[At]){Ne.circle[At]=!0;var _t=3*At,xt=this.circleKeys[At];if(this._circlesCollide(st[_t],st[1+_t],st[2+_t],Ie.x,Ie.y,Ie.radius)&&(!he||he(xt))&&!Nr(we,xt.overlapMode))return G.push(!0),!0}}}_forEachCell(d,v,E,A,M,G,ee,he){var Ie=this._convertToXCellCoord(d),Ne=this._convertToYCellCoord(v),we=this._convertToXCellCoord(E),De=this._convertToYCellCoord(A);for(let at=Ie;at<=we;at++)for(let ut=Ne;ut<=De;ut++){var nt=this.xCellCount*ut+at;if(M.call(this,d,v,E,A,nt,G,ee,he))return}}_convertToXCellCoord(d){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(d*this.xScale)))}_convertToYCellCoord(d){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(d*this.yScale)))}_circlesCollide(d,v,E,A,M,G){return A-=d,d=M-v,M=E+G,A*A+d*d<M*M}_circleAndRectCollide(d,v,E,A,M,G,ee){return G=(G-A)/2,d=Math.abs(d-(A+G)),!(G+E<d||(A=(ee-M)/2)+E<(ee=Math.abs(v-(M+A)))||!(d<=G||ee<=A||(v=d-G)*v+(M=ee-A)*M<=E*E))}}function Mt(P,d,v,E,A){var M=o.create();return d?(o.scale(M,M,[1/A,1/A,1]),v||o.rotateZ(M,M,E.angle)):o.multiply(M,E.labelPlaneMatrix,P),M}function Te(P,d,v,E,A){return d?(d=o.clone(P),o.scale(d,d,[A,A,1]),v||o.rotateZ(d,d,-E.angle),d):E.glCoordMatrix}function fe(P,d,v){let E;return v?(E=[P.x,P.y,v(P.x,P.y),1],o.transformMat4(E,E,d)):ar(E=[P.x,P.y,0,1],E,d),v=E[3],{point:new o.Point(E[0]/v,E[1]/v),signedDistanceFromCamera:v}}function Ee(P,d){return .5+P/d*.5}function xe(P,st,v,E,A,M,G,ee,he,Ie,Ne,we,De){var _t=ee.glyphStartIndex+ee.numGlyphs,nt=ee.lineStartIndex,at=ee.lineStartIndex+ee.lineLength,ut=st.getoffsetX(ee.glyphStartIndex),st=st.getoffsetX(_t-1),_t=wt(P*ut,v,E,A,M,G,ee.segment,nt,at,he,Ie,Ne,we,De);return _t&&(ut=wt(P*st,v,E,A,M,G,ee.segment,nt,at,he,Ie,Ne,we,De))?{first:_t,last:ut}:null}function et(P,d,v,E){if(P===o.WritingMode.horizontal){var A=Math.abs(v.y-d.y);if(Math.abs(v.x-d.x)*E<A)return{useVertical:!0}}return(P===o.WritingMode.vertical?d.y<v.y:d.x>v.x)?{needsFlipping:!0}:null}function gt(P,d,v,E,A,M,G,ee,he,Ie,Ne,we,De,nt,at,ut){var st=d/24,_t=P.lineOffsetX*st,xt=P.lineOffsetY*st;let At;if(1<P.numGlyphs){var Ft=P.glyphStartIndex+P.numGlyphs,$t=P.lineStartIndex,Bt=P.lineStartIndex+P.lineLength,d=xe(st,ee,_t,xt,v,Ne,we,P,he,M,De,at,ut);if(!d)return{notEnoughRoom:!0};var Zt=fe(d.first.point,G,ut).point,G=fe(d.last.point,G,ut).point;if(E&&!v&&(Zt=et(P.writingMode,Zt,G,nt),Zt))return Zt;At=[d.first];for(let xr=P.glyphStartIndex+1;xr<Ft-1;xr++)At.push(wt(st*ee.getoffsetX(xr),_t,xt,v,Ne,we,P.segment,$t,Bt,he,M,De,at,ut));At.push(d.last)}else{if(E&&!v&&(G=fe(we,A,ut).point,Zt=P.lineStartIndex+P.segment+1,d=new o.Point(he.getx(Zt),he.gety(Zt)),E=fe(d,A,ut),Zt=0<E.signedDistanceFromCamera?E.point:Rt(we,d,G,1,A,ut),E=et(P.writingMode,G,Zt,nt),E))return E;if(d=wt(st*ee.getoffsetX(P.glyphStartIndex),_t,xt,v,Ne,we,P.segment,P.lineStartIndex,P.lineStartIndex+P.lineLength,he,M,De,at,ut),!d)return{notEnoughRoom:!0};At=[d]}for(const Xt of At)o.addDynamicAttributes(Ie,Xt.point,Xt.angle);return{}}function Rt(P,d,v,E,A,M){return P=fe(P.add(P.sub(d)._unit()),A,M).point,d=v.sub(P),v.add(d._mult(E/d.mag()))}function dt(P,A){var v,E,{projectionCache:A,lineVertexArray:M,labelPlaneMatrix:G,tileAnchorPoint:ee,distanceFromAnchor:he,getElevation:Ie,previousVertex:Ne,direction:we,absOffsetX:De}=A;return A.projections[P]||(0<(E=fe(v=new o.Point(M.getx(P),M.gety(P)),G,Ie)).signedDistanceFromCamera?(A.projections[P]=E.point,E.point):(A=P-we,Rt(he===0?ee:new o.Point(M.getx(A),M.gety(A)),v,Ne,De-he+1,G,Ie)))}function pt(P,d,v){return P._unit()._perp()._mult(d*v)}function wt(P,d,v,E,A,M,G,ee,he,Ie,Ne,we,De,nt){P=E?P-d:P+d;let at=0<P?1:-1,ut=0,st=(E&&(at*=-1,ut=Math.PI),at<0&&(ut+=Math.PI),0<at?ee+G:ee+G+1),_t=A,xt=A,At,Ft,$t=0,Bt=0;var Zt=Math.abs(P),Xt=[];let yr;for(;$t+Bt<=Zt;){if((st+=at)<ee||st>=he)return null;$t+=Bt,xt=_t,Ft=At;var xr={projectionCache:we,lineVertexArray:Ie,labelPlaneMatrix:Ne,tileAnchorPoint:M,distanceFromAnchor:$t,getElevation:nt,previousVertex:xt,direction:at,absOffsetX:Zt};if(_t=dt(st,xr),v===0)Xt.push(xt),yr=_t.sub(xt);else{let Jr;var Dr=_t.sub(xt);Jr=Dr.mag()===0?pt(dt(st+at,xr).sub(_t),v,at):pt(Dr,v,at),Ft=Ft||xt.add(Jr),At=(function(an,jr,vr,sn,yn,Tr,Jn,Li){var{projectionCache:Tn,direction:oi}=Li;if(!Tn.offsets[an]){if(jr=vr.add(jr),an+oi<sn||yn<=an+oi)return Tn.offsets[an]=jr;sn=dt(an+oi,Li),yn=pt(sn.sub(vr),Jn,oi),Li=vr.add(yn),Jn=sn.add(yn),Tn.offsets[an]=o.findLineIntersection(Tr,jr,Li,Jn)||jr}return Tn.offsets[an]})(st,Jr,_t,ee,he,Ft,v,xr),Xt.push(Ft),yr=At.sub(Ft)}Bt=yr.mag()}return d=(Zt-$t)/Bt,E=yr._mult(d)._add(Ft||xt),G=ut+Math.atan2(_t.y-xt.y,_t.x-xt.x),Xt.push(E),{point:E,angle:De?G:0,path:Xt}}const Yt=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Vt(P,d){for(let E=0;E<P;E++){var v=d.length;d.resize(v+4),d.float32.set(Yt,3*v)}}function ar(P,A,v){var E=A[0],A=A[1];P[0]=v[0]*E+v[4]*A+v[12],P[1]=v[1]*E+v[5]*A+v[13],P[3]=v[3]*E+v[7]*A+v[15]}class kr{constructor(d,v=new mt(d.width+200,d.height+200,25),E=new mt(d.width+200,d.height+200,25)){this.transform=d,this.grid=v,this.ignoredGrid=E,this.pitchfactor=Math.cos(d._pitch)*d.cameraToCenterDistance,this.screenRightBoundary=d.width+100,this.screenBottomBoundary=d.height+100,this.gridRightBoundary=d.width+200,this.gridBottomBoundary=d.height+200,this.perspectiveRatioCutoff=.6}placeCollisionBox(De,v,Ie,ee,M,he){var ee=this.projectAndGetPerspectiveRatio(ee,De.anchorPointX,De.anchorPointY,he),he=Ie*ee.perspectiveRatio,Ie=De.x1*he+ee.point.x,Ne=De.y1*he+ee.point.y,we=De.x2*he+ee.point.x,De=De.y2*he+ee.point.y;return!this.isInsideGrid(Ie,Ne,we,De)||v!=="always"&&this.grid.hitTest(Ie,Ne,we,De,v,M)||ee.perspectiveRatio<this.perspectiveRatioCutoff?{box:[],offscreen:!1}:{box:[Ie,Ne,we,De],offscreen:this.isOffscreen(Ie,Ne,we,De)}}placeCollisionCircles(d,v,E,Ft,At,_t,ee,he,Ie,xt,we,De,nt,at){var ut=[],st=new o.Point(v.anchorX,v.anchorY),_t=fe(st,_t,at),_t=Ee(this.transform.cameraToCenterDistance,_t.signedDistanceFromCamera),xt=(xt?At/_t:At*_t)/o.ONE_EM,At=fe(st,ee,at).point,Ft=xe(xt,Ft,v.lineOffsetX*xt,v.lineOffsetY*xt,!1,At,st,v,E,ee,{projections:{},offsets:{}},!1,at);let $t=!1,Bt=!1,Zt=!0;if(Ft){var Xt=.5*De*_t+nt,xt=new o.Point(-100,-100),At=new o.Point(this.screenRightBoundary,this.screenBottomBoundary),yr=new rr,xr=Ft.first,Dr=Ft.last;let Dn=[];for(let li=xr.path.length-1;1<=li;li--)Dn.push(xr.path[li]);for(let li=1;li<Dr.path.length;li++)Dn.push(Dr.path[li]);var Jr=2.5*Xt;he&&(st=Dn.map(li=>fe(li,he,at)),Dn=st.some(li=>li.signedDistanceFromCamera<=0)?[]:st.map(li=>li.point));let bi=[];if(0<Dn.length){var an=Dn[0].clone(),jr=Dn[0].clone();for(let li=1;li<Dn.length;li++)an.x=Math.min(an.x,Dn[li].x),an.y=Math.min(an.y,Dn[li].y),jr.x=Math.max(jr.x,Dn[li].x),jr.y=Math.max(jr.y,Dn[li].y);bi=an.x>=xt.x&&jr.x<=At.x&&an.y>=xt.y&&jr.y<=At.y?[Dn]:jr.x<xt.x||an.x>At.x||jr.y<xt.y||an.y>At.y?[]:o.clipLine([Dn],xt.x,xt.y,At.x,At.y)}for(const li of bi){yr.reset(li,.25*Xt);let Ln=0;Ln=yr.length<=.5*Xt?1:Math.ceil(yr.paddedLength/Jr)+1;for(let _o=0;_o<Ln;_o++){var sn=_o/Math.max(Ln-1,1),sn=yr.lerp(sn),vr=sn.x+100,sn=sn.y+100,yn=(ut.push(vr,sn,Xt,0),vr-Xt),Tr=sn-Xt,Jn=vr+Xt,Li=sn+Xt;if(Zt=Zt&&this.isOffscreen(yn,Tr,Jn,Li),Bt=Bt||this.isInsideGrid(yn,Tr,Jn,Li),d!=="always"&&this.grid.hitTestCircle(vr,sn,Xt,d,we)&&($t=!0,!Ie))return{circles:[],offscreen:!1,collisionDetected:$t}}}}return{circles:!Ie&&$t||!Bt||_t<this.perspectiveRatioCutoff?[]:ut,offscreen:Zt,collisionDetected:$t}}queryRenderedSymbols(d){if(d.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};var v=[];let E=1/0,A=1/0,M=-1/0,G=-1/0;for(const De of d){var ee=new o.Point(De.x+100,De.y+100);E=Math.min(E,ee.x),A=Math.min(A,ee.y),M=Math.max(M,ee.x),G=Math.max(G,ee.y),v.push(ee)}var he={},Ie={};for(const De of this.grid.query(E,A,M,G).concat(this.ignoredGrid.query(E,A,M,G))){var Ne,we=De.key;he[we.bucketInstanceId]===void 0&&(he[we.bucketInstanceId]={}),he[we.bucketInstanceId][we.featureIndex]||(Ne=[new o.Point(De.x1,De.y1),new o.Point(De.x2,De.y1),new o.Point(De.x2,De.y2),new o.Point(De.x1,De.y2)],o.polygonIntersectsPolygon(v,Ne)&&(he[we.bucketInstanceId][we.featureIndex]=!0,Ie[we.bucketInstanceId]===void 0&&(Ie[we.bucketInstanceId]=[]),Ie[we.bucketInstanceId].push(we.featureIndex)))}return Ie}insertCollisionBox(d,v,E,A,M,G){(E?this.ignoredGrid:this.grid).insert({bucketInstanceId:A,featureIndex:M,collisionGroupID:G,overlapMode:v},d[0],d[1],d[2],d[3])}insertCollisionCircles(d,v,E,A,M,G){var ee=E?this.ignoredGrid:this.grid,he={bucketInstanceId:A,featureIndex:M,collisionGroupID:G,overlapMode:v};for(let Ie=0;Ie<d.length;Ie+=4)ee.insertCircle(he,d[Ie],d[Ie+1],d[Ie+2])}projectAndGetPerspectiveRatio(d,v,E,A){let M;return A?(M=[v,E,A(v,E),1],o.transformMat4(M,M,d)):ar(M=[v,E,0,1],M,d),{point:new o.Point((M[0]/M[3]+1)/2*this.transform.width+100,(-M[1]/M[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/M[3]*.5}}isOffscreen(d,v,E,A){return E<100||d>=this.screenRightBoundary||A<100||v>this.screenBottomBoundary}isInsideGrid(d,v,E,A){return 0<=E&&d<this.gridRightBoundary&&0<=A&&v<this.gridBottomBoundary}getViewportMatrix(){var d=o.identity([]);return o.translate(d,d,[-100,-100,0]),d}}function qr(P,d,v){return d*(o.EXTENT/(P.tileSize*Math.pow(2,v-P.tileID.overscaledZ)))}class Kr{constructor(d,v,E,A){this.opacity=d?Math.max(0,Math.min(1,d.opacity+(d.placed?v:-v))):A&&E?1:0,this.placed=E}isHidden(){return this.opacity===0&&!this.placed}}class zn{constructor(d,v,E,A,M){this.text=new Kr(d?d.text:null,v,E,M),this.icon=new Kr(d?d.icon:null,v,A,M)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class Wn{constructor(d,v,E){this.text=d,this.icon=v,this.skipFade=E}}class On{constructor(){this.invProjMatrix=o.create(),this.viewportMatrix=o.create(),this.circles=[]}}class Mn{constructor(d,v,E,A,M){this.bucketInstanceId=d,this.featureIndex=v,this.sourceLayerIndex=E,this.bucketIndex=A,this.tileID=M}}class Yr{constructor(d){this.crossSourceCollisions=d,this.maxGroupID=0,this.collisionGroups={}}get(d){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[d]){const v=++this.maxGroupID;this.collisionGroups[d]={ID:v,predicate:E=>E.collisionGroupID===v}}return this.collisionGroups[d]}}function rn(M,d,v,E,A){var{horizontalAlign:M,verticalAlign:G}=o.getAnchorAlignment(M);return new o.Point(-(M-.5)*d+E[0]*A,-(G-.5)*v+E[1]*A)}function qn(G,De,v,E,A,M){var{x1:G,x2:ee,y1:he,y2:Ie,anchorPointX:Ne,anchorPointY:we}=G,De=new o.Point(De,v);return E&&De._rotate(A?M:-M),{x1:G+De.x,y1:he+De.y,x2:ee+De.x,y2:Ie+De.y,anchorPointX:Ne,anchorPointY:we}}class ii{constructor(d,v,E,A,M){this.transform=d.clone(),this.terrain=v,this.collisionIndex=new kr(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=E,this.retainedQueryData={},this.collisionGroups=new Yr(A),this.collisionCircleArrays={},(this.prevPlacement=M)&&(M.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(d,v,E,A){var M=E.getBucket(v),G=E.latestFeatureIndex;if(M&&G&&v.id===M.layerIds[0]){var v=E.collisionBoxArray,ee=M.layers[0].layout,he=Math.pow(2,this.transform.zoom-E.tileID.overscaledZ),Ie=E.tileSize/o.EXTENT,Ne=this.transform.calculatePosMatrix(E.tileID.toUnwrapped()),we=ee.get("text-pitch-alignment")==="map",De=ee.get("text-rotation-alignment")==="map",nt=qr(E,1,this.transform.zoom),at=Mt(Ne,we,De,this.transform,nt);let Ft=null;we&&(we=Te(Ne,we,De,this.transform,nt),Ft=o.multiply([],this.transform.labelPlaneMatrix,we)),this.retainedQueryData[M.bucketInstanceId]=new Mn(M.bucketInstanceId,G,M.sourceLayerIndex,M.index,E.tileID);var ut={bucket:M,layout:ee,posMatrix:Ne,textLabelPlaneMatrix:at,labelToScreenMatrix:Ft,scale:he,textPixelRatio:Ie,holdingForFade:E.holdingForFade(),collisionBoxArray:v,partiallyEvaluatedTextSize:o.evaluateSizeForZoom(M.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(M.sourceID)};if(A)for(const $t of M.sortKeyRanges){var{sortKey:st,symbolInstanceStart:_t,symbolInstanceEnd:xt}=$t;d.push({sortKey:st,symbolInstanceStart:_t,symbolInstanceEnd:xt,parameters:ut})}else d.push({symbolInstanceStart:0,symbolInstanceEnd:M.symbolInstances.length,parameters:ut})}}attemptAnchorPlacement(xt,Ft,E,A,M,G,ee,he,Ie,Ne,we,De,nt,at,ut,st){var _t=o.TextAnchorEnum[xt.textAnchor],xt=[xt.textOffset0,xt.textOffset1],At=rn(_t,E,A,xt,M),Ft=this.collisionIndex.placeCollisionBox(qn(Ft,At.x,At.y,G,ee,this.transform.angle),we,he,Ie,Ne.predicate,st);if(!(ut&&this.collisionIndex.placeCollisionBox(qn(ut,At.x,At.y,G,ee,this.transform.angle),we,he,Ie,Ne.predicate,st).box.length===0)&&0<Ft.box.length){let $t;if(this.prevPlacement&&this.prevPlacement.variableOffsets[De.crossTileID]&&this.prevPlacement.placements[De.crossTileID]&&this.prevPlacement.placements[De.crossTileID].text&&($t=this.prevPlacement.variableOffsets[De.crossTileID].anchor),De.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[De.crossTileID]={textOffset:xt,width:E,height:A,anchor:_t,textBoxScale:M,prevAnchor:$t},this.markUsedJustification(nt,_t,De,at),nt.allowVerticalPlacement&&(this.markUsedOrientation(nt,at,De),this.placedOrientations[De.crossTileID]=at),{shift:At,placedGlyphBoxes:Ft}}}placeLayerBucketPart(d,v,E){const{bucket:A,layout:M,posMatrix:G,textLabelPlaneMatr
129ix:ee,labelToScreenMatrix:he,textPixelRatio:Ie,holdingForFade:Ne,collisionBoxArray:we,partiallyEvaluatedTextSize:De,collisionGroup:nt}=d.parameters,at=M.get("text-optional"),ut=M.get("icon-optional"),st=o.getOverlapMode(M,"text-overlap","text-allow-overlap"),_t=st==="always",xt=o.getOverlapMode(M,"icon-overlap","icon-allow-overlap");var At=xt==="always";const Ft=M.get("text-rotation-alignment")==="map",$t=M.get("text-pitch-alignment")==="map",Bt=M.get("icon-text-fit")!=="none";var Zt=M.get("symbol-z-order")==="viewport-y";const Xt=_t&&(At||!A.hasIconData()||ut),yr=At&&(_t||!A.hasTextData()||at),xr=(!A.collisionArrays&&we&&A.deserializeCollisionBoxes(we),this.retainedQueryData[A.bucketInstanceId].tileID),Dr=this.terrain?(vr,sn)=>this.terrain.getElevation(xr,vr,sn):null;var Jr=(vr,sn)=>{if(!v[vr.crossTileID])if(Ne)this.placements[vr.crossTileID]=new Wn(!1,!1,!1);else{let oi=!1,Dn=!1,bi=!0,li=null,Ln={box:null,offscreen:null},_o={box:null},ra=null,Mc=null,Ps=0,Hi=0,lo=0;sn.textFeatureIndex?Ps=sn.textFeatureIndex:vr.useRuntimeCollisionCircles&&(Ps=vr.featureIndex),sn.verticalTextFeatureIndex&&(Hi=sn.verticalTextFeatureIndex);const cl=sn.textBox;if(cl){var yn=Ai=>{let Fi=o.WritingMode.horizontal;return A.allowVerticalPlacement&&!Ai&&this.prevPlacement&&(Ai=this.prevPlacement.placedOrientations[vr.crossTileID])&&(this.placedOrientations[vr.crossTileID]=Ai,Fi=Ai,this.markUsedOrientation(A,Fi,vr)),Fi},Tr=(Ai,Fi)=>{if(A.allowVerticalPlacement&&0<vr.numVerticalGlyphVertices&&sn.verticalTextBox){for(const Ks of A.writingModes)if(Ks===o.WritingMode.vertical?(Ln=Fi(),_o=Ln):Ln=Ai(),Ln&&Ln.box&&Ln.box.length)break}else Ln=Ai()};const co=vr.textAnchorOffsetStartIndex,na=vr.textAnchorOffsetEndIndex;if(na===co){const Ai=(Fi,Ks)=>(Fi=this.collisionIndex.placeCollisionBox(Fi,st,Ie,G,nt.predicate,Dr),Fi&&Fi.box&&Fi.box.length&&(this.markUsedOrientation(A,Ks,vr),this.placedOrientations[vr.crossTileID]=Ks),Fi);Tr(()=>Ai(cl,o.WritingMode.horizontal),()=>{var Fi=sn.verticalTextBox;return A.allowVerticalPlacement&&0<vr.numVerticalGlyphVertices&&Fi?Ai(Fi,o.WritingMode.vertical):{box:null,offscreen:null}}),yn(Ln&&Ln.box&&Ln.box.length)}else{let Ai=o.TextAnchorEnum[(Jn=(Jn=this.prevPlacement)==null?void 0:Jn.variableOffsets[vr.crossTileID])==null?void 0:Jn.anchor];const Fi=(Do,Ta,Nc)=>{var ps=Do.x2-Do.x1,ia=Do.y2-Do.y1,ic=vr.textBoxScale,Ol=Bt&&xt==="never"?Ta:null;let uo={box:[],offscreen:!1},jo=st==="never"?1:2,Dc="never";Ai&&jo++;for(let xo=0;xo<jo;xo++){for(let cu=co;cu<na;cu++){var Lc=A.textAnchorOffsets.get(cu);if((!Ai||Lc.textAnchor===Ai)&&(Lc=this.attemptAnchorPlacement(Lc,Do,ps,ia,ic,Ft,$t,Ie,G,nt,Dc,vr,A,Nc,Ol,Dr),Lc&&(uo=Lc.placedGlyphBoxes)&&uo.box&&uo.box.length))return oi=!0,li=Lc.shift,uo}Ai?Ai=null:Dc=st}return uo};Tr(()=>Fi(cl,sn.iconBox,o.WritingMode.horizontal),()=>{var Do=sn.verticalTextBox,Ta=Ln&&Ln.box&&Ln.box.length;return A.allowVerticalPlacement&&!Ta&&0<vr.numVerticalGlyphVertices&&Do?Fi(Do,sn.verticalIconBox,o.WritingMode.vertical):{box:null,offscreen:null}}),Ln&&(oi=Ln.box,bi=Ln.offscreen);var Jn=yn(Ln&&Ln.box);!oi&&this.prevPlacement&&(Tr=this.prevPlacement.variableOffsets[vr.crossTileID])&&(this.variableOffsets[vr.crossTileID]=Tr,this.markUsedJustification(A,Tr.anchor,vr,Jn))}}yn=Ln,oi=yn&&yn.box&&0<yn.box.length,bi=yn&&yn.offscreen,vr.useRuntimeCollisionCircles&&(Tr=A.text.placedSymbolArray.get(vr.centerJustifiedTextSymbolIndex),Jn=o.evaluateSizeForFeature(A.textSizeData,De,Tr),Tn=M.get("text-padding"),Li=vr.collisionCircleDiameter,(ra=this.collisionIndex.placeCollisionCircles(st,Tr,A.lineVertexArray,A.glyphOffsetArray,Jn,G,ee,he,E,$t,nt.predicate,Li,Tn,Dr)).circles.length&&ra.collisionDetected&&!E&&o.warnOnce("Collisions detected, but collision boxes are not shown"),oi=_t||0<ra.circles.length&&!ra.collisionDetected,bi=bi&&ra.offscreen),sn.iconFeatureIndex&&(lo=sn.iconFeatureIndex),sn.iconBox&&(Tr=co=>(co=Bt&&li?qn(co,li.x,li.y,Ft,$t,this.transform.angle):co,this.collisionIndex.placeCollisionBox(co,xt,Ie,G,nt.predicate,Dr)),Dn=0<(Mc=_o&&_o.box&&_o.box.length&&sn.verticalIconBox?Tr(sn.verticalIconBox):Tr(sn.iconBox)).box.length,bi=bi&&Mc.offscreen);var Jn=at||vr.numHorizontalGlyphVertices===0&&vr.numVerticalGlyphVertices===0,Li=ut||vr.numIconVertices===0;if(Jn||Li?Li?Jn||(Dn=Dn&&oi):oi=Dn&&oi:Dn=oi=Dn&&oi,oi&&yn&&yn.box&&(_o&&_o.box&&Hi?this.collisionIndex.insertCollisionBox(yn.box,st,M.get("text-ignore-placement"),A.bucketInstanceId,Hi,nt.ID):this.collisionIndex.insertCollisionBox(yn.box,st,M.get("text-ignore-placement"),A.bucketInstanceId,Ps,nt.ID)),Dn&&Mc&&this.collisionIndex.insertCollisionBox(Mc.box,xt,M.get("icon-ignore-placement"),A.bucketInstanceId,lo,nt.ID),ra&&(oi&&this.collisionIndex.insertCollisionCircles(ra.circles,st,M.get("text-ignore-placement"),A.bucketInstanceId,Ps,nt.ID),E)){var Tn=A.bucketInstanceId;let co=this.collisionCircleArrays[Tn];co===void 0&&(co=this.collisionCircleArrays[Tn]=new On);for(let na=0;na<ra.circles.length;na+=4)co.circles.push(ra.circles[na+0]),co.circles.push(ra.circles[na+1]),co.circles.push(ra.circles[na+2]),co.circles.push(ra.collisionDetected?1:0)}if(vr.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");if(A.bucketInstanceId===0)throw new Error("bucket.bucketInstanceId can't be 0");this.placements[vr.crossTileID]=new Wn(oi||Xt,Dn||yr,bi||A.justReloaded),v[vr.crossTileID]=!0}};if(Zt){if(d.symbolInstanceStart!==0)throw new Error("bucket.bucketInstanceId should be 0");
vendor: 12,064 bytes, line 129
129var an=A.getSortedSymbolIndexes(this.transform.angle);for(let vr=an.length-1;0<=vr;--vr){var jr=an[vr];Jr(A.symbolInstances.get(jr),A.collisionArrays[jr])}}else for(let vr=d.symbolInstanceStart;vr<d.symbolInstanceEnd;vr++)Jr(A.symbolInstances.get(vr),A.collisionArrays[vr]);E&&A.bucketInstanceId in this.collisionCircleArrays&&(At=this.collisionCircleArrays[A.bucketInstanceId],o.invert(At.invProjMatrix,G),At.viewportMatrix=this.collisionIndex.getViewportMatrix()),A.justReloaded=!1}markUsedJustification(d,v,E,A){var M={left:E.leftJustifiedTextSymbolIndex,center:E.centerJustifiedTextSymbolIndex,right:E.rightJustifiedTextSymbolIndex};let G;G=A===o.WritingMode.vertical?E.verticalPlacedTextSymbolIndex:M[o.getAnchorJustification(v)];for(const ee of[E.leftJustifiedTextSymbolIndex,E.centerJustifiedTextSymbolIndex,E.rightJustifiedTextSymbolIndex,E.verticalPlacedTextSymbolIndex])0<=ee&&(0<=G&&ee!==G?d.text.placedSymbolArray.get(ee).crossTileID=0:d.text.placedSymbolArray.get(ee).crossTileID=E.crossTileID)}markUsedOrientation(d,M,E){var A=M===o.WritingMode.horizontal||M===o.WritingMode.horizontalOnly?M:0,M=M===o.WritingMode.vertical?M:0;for(const G of[E.leftJustifiedTextSymbolIndex,E.centerJustifiedTextSymbolIndex,E.rightJustifiedTextSymbolIndex])d.text.placedSymbolArray.get(G).placedOrientation=A;E.verticalPlacedTextSymbolIndex&&(d.text.placedSymbolArray.get(E.verticalPlacedTextSymbolIndex).placedOrientation=M)}commit(d){this.commitTime=d,this.zoomAtLastRecencyCheck=this.transform.zoom;var v=this.prevPlacement;let E=!1;this.prevZoomAdjustment=v?v.zoomAdjustment(this.transform.zoom):0;var A=v?v.symbolFadeChange(d):1,M=v?v.opacities:{},G=v?v.variableOffsets:{},ee=v?v.placedOrientations:{};for(const De in this.placements){var he=this.placements[De],Ie=M[De];E=Ie?(this.opacities[De]=new zn(Ie,A,he.text,he.icon),E||he.text!==Ie.text.placed||he.icon!==Ie.icon.placed):(this.opacities[De]=new zn(null,A,he.text,he.icon,he.skipFade),E||he.text||he.icon)}for(const De in M){var Ne,we=M[De];this.opacities[De]||(Ne=new zn(we,A,!1,!1)).isHidden()||(this.opacities[De]=Ne,E=E||we.text.placed||we.icon.placed)}for(const De in G)this.variableOffsets[De]||!this.opacities[De]||this.opacities[De].isHidden()||(this.variableOffsets[De]=G[De]);for(const De in ee)this.placedOrientations[De]||!this.opacities[De]||this.opacities[De].isHidden()||(this.placedOrientations[De]=ee[De]);if(v&&v.lastPlacementChangeTime===void 0)throw new Error("Last placement time for previous placement is not defined");E?this.lastPlacementChangeTime=d:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=v?v.lastPlacementChangeTime:d)}updateLayerOpacities(d,v){var E={};for(const M of v){var A=M.getBucket(d);A&&M.latestFeatureIndex&&d.id===A.layerIds[0]&&this.updateBucketOpacities(A,E,M.collisionBoxArray)}}updateBucketOpacities(d,v,E){d.hasTextData()&&(d.text.opacityVertexArray.clear(),d.text.hasVisibleVertices=!1),d.hasIconData()&&(d.icon.opacityVertexArray.clear(),d.icon.hasVisibleVertices=!1),d.hasIconCollisionBoxData()&&d.iconCollisionBox.collisionVertexArray.clear(),d.hasTextCollisionBoxData()&&d.textCollisionBox.collisionVertexArray.clear();var A=d.layers[0],M=A.layout,G=new zn(null,0,!1,!1,!0),ee=M.get("text-allow-overlap"),he=M.get("icon-allow-overlap"),Ie=A._unevaluatedLayout.hasValue("text-variable-anchor")||A._unevaluatedLayout.hasValue("text-variable-anchor-offset"),Ne=M.get("text-rotation-alignment")==="map",we=M.get("text-pitch-alignment")==="map",De=M.get("icon-text-fit")!=="none",nt=new zn(null,0,ee&&(he||!d.hasIconData()||M.get("icon-optional")),he&&(ee||!d.hasTextData()||M.get("text-optional")),!0),at=(!d.collisionArrays&&E&&(d.hasIconCollisionBoxData()||d.hasTextCollisionBoxData())&&d.deserializeCollisionBoxes(E),(Xt,yr,xr)=>{for(let Dr=0;Dr<yr/4;Dr++)Xt.opacityVertexArray.emplaceBack(xr);Xt.hasVisibleVertices=Xt.hasVisibleVertices||xr!==Xh});for(let Xt=0;Xt<d.symbolInstances.length;Xt++){var ut=d.symbolInstances.get(Xt),{numHorizontalGlyphVertices:st,numVerticalGlyphVertices:_t,crossTileID:xt}=ut,At=v[xt];let yr=this.opacities[xt];At?yr=G:yr||(yr=nt,this.opacities[xt]=yr),v[xt]=!0;var At=0<ut.numIconVertices,Ft=this.placedOrientations[ut.crossTileID];const xr=Ft===o.WritingMode.vertical;var $t=Ft===o.WritingMode.horizontal||Ft===o.WritingMode.horizontalOnly;if(0<st||0<_t){var Zt=Wi(yr.text),Bt=xr?Xh:Zt,st=(at(d.text,st,Bt),$t?Xh:Zt);at(d.text,_t,st);const Jr=yr.text.isHidden();[ut.rightJustifiedTextSymbolIndex,ut.centerJustifiedTextSymbolIndex,ut.leftJustifiedTextSymbolIndex].forEach(an=>{0<=an&&(d.text.placedSymbolArray.get(an).hidden=Jr||xr?1:0)}),0<=ut.verticalPlacedTextSymbolIndex&&(d.text.placedSymbolArray.get(ut.verticalPlacedTextSymbolIndex).hidden=Jr||$t?1:0);var Bt=this.variableOffsets[ut.crossTileID],Zt=(Bt&&this.markUsedJustification(d,Bt.anchor,ut,Ft),this.placedOrientations[ut.crossTileID]);Zt&&(this.markUsedJustification(d,"left",ut,Zt),this.markUsedOrientation(d,Zt,ut))}if(At&&(_t=Wi(yr.icon),st=!(De&&ut.verticalPlacedIconSymbolIndex&&xr),0<=ut.placedIconSymbolIndex&&(Bt=st?_t:Xh,at(d.icon,ut.numIconVertices,Bt),d.icon.placedSymbolArray.get(ut.placedIconSymbolIndex).hidden=yr.icon.isHidden()),0<=ut.verticalPlacedIconSymbolIndex)&&(Ft=st?Xh:_t,at(d.icon,ut.numVerticalIconVertices,Ft),d.icon.placedSymbolArray.get(ut.verticalPlacedIconSymbolIndex).hidden=yr.icon.isHidden()),(d.hasIconCollisionBoxData()||d.hasTextCollisionBoxData())&&(Zt=d.collisionArrays[Xt],Zt)){let Dr=new o.Point(0,0);if(Zt.textBox||Zt.verticalTextBox){let Jr=!0;Ie&&((At=this.variableOffsets[xt])?(Dr=rn(At.anchor,At.width,At.height,At.textOffset,At.textBoxScale),Ne&&Dr._rotate(we?this.transform.angle:-this.transform.angle)):Jr=!1),Zt.textBox&&mo(d.textCollisionBox.collisionVertexArray,yr.text.placed,!Jr||xr,Dr.x,Dr.y),Zt.verticalTextBox&&mo(d.textCollisionBox.collisionVertexArray,yr.text.placed,!Jr||$t,Dr.x,Dr.y)}st=!!(!$t&&Zt.verticalIconBox),Zt.iconBox&&mo(d.iconCollisionBox.collisionVertexArray,yr.icon.placed,st,De?Dr.x:0,De?Dr.y:0),Zt.verticalIconBox&&mo(d.iconCollisionBox.collisionVertexArray,yr.icon.placed,!st,De?Dr.x:0,De?Dr.y:0)}}if(d.sortFeatures(this.transform.angle),this.retainedQueryData[d.bucketInstanceId]&&(this.retainedQueryData[d.bucketInstanceId].featureSortOrder=d.featureSortOrder),d.hasTextData()&&d.text.opacityVertexBuffer&&d.text.opacityVertexBuffer.updateData(d.text.opacityVertexArray),d.hasIconData()&&d.icon.opacityVertexBuffer&&d.icon.opacityVertexBuffer.updateData(d.icon.opacityVertexArray),d.hasIconCollisionBoxData()&&d.iconCollisionBox.collisionVertexBuffer&&d.iconCollisionBox.collisionVertexBuffer.updateData(d.iconCollisionBox.collisionVertexArray),d.hasTextCollisionBoxData()&&d.textCollisionBox.collisionVertexBuffer&&d.textCollisionBox.collisionVertexBuffer.updateData(d.textCollisionBox.collisionVertexArray),d.text.opacityVertexArray.length!==d.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${d.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${d.text.layoutVertexArray.length}) / 4`);if(d.icon.opacityVertexArray.length!==d.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${d.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${d.icon.layoutVertexArray.length}) / 4`);d.bucketInstanceId in this.collisionCircleArrays&&(A=this.collisionCircleArrays[d.bucketInstanceId],d.placementInvProjMatrix=A.invProjMatrix,d.placementViewportMatrix=A.viewportMatrix,d.collisionCircleArray=A.circles,delete this.collisionCircleArrays[d.bucketInstanceId])}symbolFadeChange(d){return this.fadeDuration===0?1:(d-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(d){return Math.max(0,(this.transform.zoom-d)/1.5)}hasTransitions(d){return this.stale||d-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(d,v){var E=this.zoomAtLastRecencyCheck===v?1-this.zoomAdjustment(v):1;return this.zoomAtLastRecencyCheck=v,this.commitTime+this.fadeDuration*E>d}setStale(){this.stale=!0}}function mo(P,d,v,E,A){P.emplaceBack(d?1:0,v?1:0,E||0,A||0),P.emplaceBack(d?1:0,v?1:0,E||0,A||0),P.emplaceBack(d?1:0,v?1:0,E||0,A||0),P.emplaceBack(d?1:0,v?1:0,E||0,A||0)}const Nn=Math.pow(2,25),Yi=Math.pow(2,24),Rl=Math.pow(2,17),kv=Math.pow(2,16),Yd=Math.pow(2,9),Ca=Math.pow(2,8),Ov=Math.pow(2,1);function Wi(P){var d;return P.opacity!==0||P.placed?P.opacity===1&&P.placed?4294967295:(d=P.placed?1:0,(P=Math.floor(127*P.opacity))*Nn+d*Yi+P*Rl+d*kv+P*Yd+d*Ca+P*Ov+d):0}const Xh=0;class yg{constructor(d){this._sortAcrossTiles=d.layout.get("symbol-z-order")!=="viewport-y"&&!d.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(d,v,E,A,M){for(var G=this._bucketParts;this._currentTileIndex<d.length;){var ee=d[this._currentTileIndex];if(v.getBucketParts(G,A,ee,this._sortAcrossTiles),this._currentTileIndex++,M())return!0}for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,G.sort((Ie,Ne)=>Ie.sortKey-Ne.sortKey));this._currentPartIndex<G.length;){var he=G[this._currentPartIndex];if(v.placeLayerBucketPart(he,this._seenCrossTileIDs,E),this._currentPartIndex++,M())return!0}return!1}}class Kl{constructor(d,v,E,A,M,G,ee,he){this.placement=new ii(d,v,G,ee,he),this._currentPlacementIndex=E.length-1,this._forceFullPlacement=A,this._showCollisionBoxes=M,this._done=!1}isDone(){return this._done}continuePlacement(d,v,E){const A=p.now();for(var M=()=>!this._forceFullPlacement&&2<p.now()-A;0<=this._currentPlacementIndex;){var G=v[d[this._currentPlacementIndex]],ee=this.placement.collisionIndex.transform.zoom;if(G.type==="symbol"&&(!G.minzoom||G.minzoom<=ee)&&(!G.maxzoom||G.maxzoom>ee)){if(this._inProgressLayer||(this._inProgressLayer=new yg(G)),this._inProgressLayer.continuePlacement(E[G.source],this.placement,this._showCollisionBoxes,G,M))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(d){return this.placement.commit(d),this.placement}}const us=512/o.EXTENT/2;class ny{constructor(d,v,E){this.tileID=d,this.bucketInstanceId=E,this._symbolsByKey={};var A,M,G=new Map;for(let at=0;at<v.length;at++){var ee=v.get(at),he=ee.key,Ie=G.get(he);Ie?Ie.push(ee):G.set(he,[ee])}for([A,M]of G){var Ne={positions:M.map(at=>({x:Math.floor(at.anchorX*us),y:Math.floor(at.anchorY*us)})),crossTileIDs:M.map(at=>at.crossTileID)};if(128<Ne.positions.length){var we,De,nt=new o.KDBush(Ne.positions.length,16,Uint16Array);for({x:we,y:De}of Ne.positions)nt.add(we,De);nt.finish(),delete Ne.positions,Ne.index=nt}this._symbolsByKey[A]=Ne}}getScaledCoordinates(Ie,ee){var{x:E,y:A,z:M}=this.tileID.canonical,{x:ee,y:he,z:G}=ee.canonical,G=G-M,M=us/Math.pow(2,G),G=(ee*o.EXTENT+Ie.anchorX)*M,ee=(he*o.EXTENT+Ie.anchorY)*M,he=E*o.EXTENT*us,Ie=A*o.EXTENT*us;return{x:Math.floor(G-he),y:Math.floor(ee-Ie)}}findMatches(d,v,E){var A=this.tileID.canonical.z<v.canonical.z?1:Math.pow(2,this.tileID.canonical.z-v.canonical.z);for(let we=0;we<d.length;we++){var M=d.get(we);if(!M.crossTileID){var G=this._symbolsByKey[M.key];if(G){var ee=this.getScaledCoordinates(M,v);if(G.index)for(const De of G.index.range(ee.x-A,ee.y-A,ee.x+A,ee.y+A).sort()){var he=G.crossTileIDs[De];if(!E[he]){E[he]=!0,M.crossTileID=he;break}}else if(G.positions)for(let De=0;De<G.positions.length;De++){var Ie=G.positions[De],Ne=G.crossTileIDs[De];if(Math.abs(Ie.x-ee.x)<=A&&Math.abs(Ie.y-ee.y)<=A&&!E[Ne]){E[Ne]=!0,M.crossTileID=Ne;break}}}}}}getCrossTileIDsLists(){return Object.values(this._symbolsByKey).map(({crossTileIDs:d})=>d)}}class La{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Qc{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(d){var v=Math.round((d-this.lng)/360);if(v!==0)for(const G in this.indexes){var E=this.indexes[G],A={};for(const ee in E){var M=E[ee];M.tileID=M.tileID.unwrapTo(M.tileID.wrap+v),A[M.tileID.key]=M}this.indexes[G]=A}this.lng=d}addBucket(d,v,E){if(this.indexes[d.overscaledZ]&&this.indexes[d.overscaledZ][d.key]){if
129(this.indexes[d.overscaledZ][d.key].bucketInstanceId===v.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(d.overscaledZ,this.indexes[d.overscaledZ][d.key])}for(let Ie=0;Ie<v.symbolInstances.length;Ie++)v.symbolInstances.get(Ie).crossTileID=0;this.usedCrossTileIDs[d.overscaledZ]||(this.usedCrossTileIDs[d.overscaledZ]={});var A=this.usedCrossTileIDs[d.overscaledZ];for(const Ie in this.indexes){var M=this.indexes[Ie];if(Number(Ie)>d.overscaledZ)for(const Ne in M){var G=M[Ne];G.tileID.isChildOf(d)&&G.findMatches(v.symbolInstances,d,A)}else{var ee=M[d.scaledTo(Number(Ie)).key];ee&&ee.findMatches(v.symbolInstances,d,A)}}for(let Ie=0;Ie<v.symbolInstances.length;Ie++){var he=v.symbolInstances.get(Ie);he.crossTileID||(he.crossTileID=E.generate(),A[he.crossTileID]=!0)}return this.indexes[d.overscaledZ]===void 0&&(this.indexes[d.overscaledZ]={}),this.indexes[d.overscaledZ][d.key]=new ny(d,v.symbolInstances,v.bucketInstanceId),!0}removeBucketCrossTileIDs(d,v){for(const E of v.getCrossTileIDsLists())for(const A of E)delete this.usedCrossTileIDs[d][A]}removeStaleBuckets(d){let v=!1;for(const A in this.indexes){var E=this.indexes[A];for(const M in E)d[E[M].bucketInstanceId]||(this.removeBucketCrossTileIDs(A,E[M]),delete E[M],v=!0)}return v}}class Ic{constructor(){this.layerIndexes={},this.crossTileIDs=new La,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(d,v,E){let A=this.layerIndexes[d.id],M=!1;var G={};(A=A===void 0?this.layerIndexes[d.id]=new Qc:A).handleWrapJump(E);for(const he of v){var ee=he.getBucket(d);ee&&d.id===ee.layerIds[0]&&(ee.bucketInstanceId||(ee.bucketInstanceId=++this.maxBucketInstanceId),A.addBucket(he.tileID,ee,this.crossTileIDs)&&(M=!0),G[ee.bucketInstanceId]=!0)}return M=A.removeStaleBuckets(G)?!0:M}pruneUnusedLayers(d){const v={};d.forEach(E=>{v[E]=!0});for(const E in this.layerIndexes)v[E]||delete this.layerIndexes[E]}}const up=(P,d)=>o.emitValidationErrors(P,d&&d.filter(v=>v.identifier!=="source.canvas")),Ha=o.emptyStyle();class Qh extends o.Evented{constructor(d,v={}){super(),this._rtlPluginLoaded=()=>{for(const A in this.sourceCaches){var E=this.sourceCaches[A].getSource().type;E!=="vector"&&E!=="geojson"||this.sourceCaches[A].reload()}},this.map=d,this.dispatcher=new Re(He(),d._getMapId()),this.dispatcher.registerMessageHandler("GG",(E,A)=>this.getGlyphs(E,A)),this.dispatcher.registerMessageHandler("GI",(E,A)=>this.getImages(E,A)),this.imageManager=new Z,this.imageManager.setEventedParent(this),this.glyphManager=new ue(d._requestManager,v.localIdeographFontFamily),this.lineAtlas=new ge(256,512),this.crossTileSymbolIndex=new Ic,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new o.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("SR",o.getReferrer()),Se().on(X,this._rtlPluginLoaded),this.on("data",E=>{if(E.dataType==="source"&&E.sourceDataType==="metadata"&&(E=this.sourceCaches[E.sourceId],E)){var A=E.getSource();if(A&&A.vectorLayerIds)for(const G in this._layers){var M=this._layers[G];M.source===A.id&&this._validateLayer(M)}}})}loadURL(d,v={},E){this.fire(new o.Event("dataloading",{dataType:"style"})),v.validate=typeof v.validate!="boolean"||v.validate,d=this.map._requestManager.transformRequest(d,"Style"),this._loadStyleRequest=new AbortController,o.getJSON(d,this._loadStyleRequest).then(A=>{this._loadStyleRequest=null,this._load(A.data,v,E)}).catch(A=>{this._loadStyleRequest=null,A&&this.fire(new o.ErrorEvent(A))})}loadJSON(d,v={},E){this.fire(new o.Event("dataloading",{dataType:"style"})),this._frameRequest=new AbortController,p.frameAsync(this._frameRequest).then(()=>{this._frameRequest=null,v.validate=v.validate!==!1,this._load(d,v,E)}).catch(()=>{})}loadEmpty(){this.fire(new o.Event("dataloading",{dataType:"style"})),this._load(Ha,{validate:!1})}_load(d,v,E){var A=v.transformStyle?v.transformStyle(E,d):d;if(!v.validate||!up(this,o.validateStyle(A))){this._loaded=!0;for(const M in(this.stylesheet=A).sources)this.addSource(M,A.sources[M],{validate:!1});A.sprite?this._loadSprite(A.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(A.glyphs),this._createLayers(),this.light=new de(this.stylesheet.light),this.map.setTerrain((E=this.stylesheet.terrain)!=null?E:null),this.fire(new o.Event("data",{dataType:"style"})),this.fire(new o.Event("style.load"))}}
vendor: 8,993 bytes, line 129
129_createLayers(){var d=o.derefLayers(this.stylesheet.layers);this.dispatcher.broadcast("SL",d),this._order=d.map(E=>E.id),this._layers={},this._serializedLayers=null;for(const E of d){var v=o.createStyleLayer(E);v.setEventedParent(this,{layer:{id:E.id}}),this._layers[E.id]=v}}_loadSprite(d,v=!1,E=void 0){this.imageManager.setLoaded(!1),this._spriteRequest=new AbortController;let A;B(d,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then(M=>{if(this._spriteRequest=null,M)for(const ee in M){this._spritesImagesIds[ee]=[];for(const he of this._spritesImagesIds[ee]?this._spritesImagesIds[ee].filter(Ie=>!(Ie in M)):[])this.imageManager.removeImage(he),this._changedImages[he]=!0;for(const he in M[ee]){var G=ee==="default"?he:ee+":"+he;this._spritesImagesIds[ee].push(G),G in this.imageManager.images?this.imageManager.updateImage(G,M[ee][he],!1):this.imageManager.addImage(G,M[ee][he]),v&&(this._changedImages[G]=!0)}}}).catch(M=>{this._spriteRequest=null,A=M,this.fire(new o.ErrorEvent(A))}).finally(()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),v&&(this._changed=!0),this.dispatcher.broadcast("SI",this._availableImages),this.fire(new o.Event("data",{dataType:"style"})),E&&E(A)})}_unloadSprite(){for(const d of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(d),this._changedImages[d]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new o.Event("data",{dataType:"style"}))}_validateLayer(d){var v,E=this.sourceCaches[d.source];E&&(v=d.sourceLayer)&&((E=E.getSource()).type==="geojson"||E.vectorLayerIds&&E.vectorLayerIds.indexOf(v)===-1)&&this.fire(new o.ErrorEvent(new Error(`Source layer "${v}" does not exist on source "${E.id}" as specified by style layer "${d.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(const d in this.sourceCaches)if(!this.sourceCaches[d].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(d){var v=this._serializedAllLayers();if(!d||d.length===0)return Object.values(v);var E=[];for(const A of d)v[A]&&E.push(v[A]);return E}_serializedAllLayers(){var d=this._serializedLayers;if(!d){d=this._serializedLayers={};for(const E of Object.keys(this._layers)){var v=this._layers[E];v.type!=="custom"&&(d[E]=v.serialize())}}return d}hasTransitions(){if(this.light&&this.light.hasTransition())return!0;for(const d in this.sourceCaches)if(this.sourceCaches[d].hasTransition())return!0;for(const d in this._layers)if(this._layers[d].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(d){if(this._loaded){var v=this._changed;if(this._changed){var E=Object.keys(this._updatedLayers),A=Object.keys(this._removedLayers);(E.length||A.length)&&this._updateWorkerLayers(E,A);for(const Ne in this._updatedSources){var M=this._updatedSources[Ne];if(M==="reload")this._reloadSource(Ne);else{if(M!=="clear")throw new Error("Invalid action "+M);this._clearSource(Ne)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(const Ne in this._updatedPaintProps)this._layers[Ne].updateTransitions(d);this.light.updateTransitions(d),this._resetUpdates()}var G={};for(const Ne in this.sourceCaches){var ee=this.sourceCaches[Ne];G[Ne]=ee.used,ee.used=!1}for(const Ne of this._order){var he=this._layers[Ne];he.recalculate(d,this._availableImages),!he.isHidden(d.zoom)&&he.source&&(this.sourceCaches[he.source].used=!0)}for(const Ne in G){var Ie=this.sourceCaches[Ne];G[Ne]!==Ie.used&&Ie.fire(new o.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:Ne}))}this.light.recalculate(d),this.z=d.zoom,v&&this.fire(new o.Event("data",{dataType:"style"}))}}_updateTilesForChangedImages(){var d=Object.keys(this._changedImages);if(d.length){for(const v in this.sourceCaches)this.sourceCaches[v].reloadTilesForDependencies(["icons","patterns"],d);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(const d in this.sourceCaches)this.sourceCaches[d].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(d,v){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(d),removedIds:v})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(d,A={}){this._checkLoaded();var E=this.serialize(),A=(d=A.transformStyle?A.transformStyle(E,d):d,(A=A.validate)==null||A);if(A&&up(this,o.validateStyle(d)))return!1;if((d=o.clone$1(d)).layers=o.derefLayers(d.layers),A=o.diffStyles(E,d),E=this._getOperationsToPerform(A),0<E.unimplemented.length)throw new Error(`Unimplemented: ${E.unimplemented.join(", ")}.`);if(E.operations.length===0)return!1;for(const M of E.operations)M();return this.stylesheet=d,!(this._serializedLayers=null)}_getOperationsToPerform(d){var v=[],E=[];for(const A of d)switch(A.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":continue;case"addLayer":v.push(()=>this.addLayer.apply(this,A.args));break;case"removeLayer":v.push(()=>this.removeLayer.apply(this,A.args));break;case"setPaintProperty":v.push(()=>this.setPaintProperty.apply(this,A.args));break;case"setLayoutProperty":v.push(()=>this.setLayoutProperty.apply(this,A.args));break;case"setFilter":v.push(()=>this.setFilter.apply(this,A.args));break;case"addSource":v.push(()=>this.addSource.apply(this,A.args));break;case"removeSource":v.push(()=>this.removeSource.apply(this,A.args));break;case"setLayerZoomRange":v.push(()=>this.setLayerZoomRange.apply(this,A.args));break;case"setLight":v.push(()=>this.setLight.apply(this,A.args));break;case"setGeoJSONSourceData":v.push(()=>this.setGeoJSONSourceData.apply(this,A.args));break;case"setGlyphs":v.push(()=>this.setGlyphs.apply(this,A.args));break;case"setSprite":v.push(()=>this.setSprite.apply(this,A.args));break;case"setTerrain":v.push(()=>this.map.setTerrain.apply(this,A.args));break;case"setTransition":v.push(()=>{});break;default:E.push(A.command)}return{operations:v,unimplemented:E}}addImage(d,v){if(this.getImage(d))return this.fire(new o.ErrorEvent(new Error(`An image named "${d}" already exists.`)));this.imageManager.addImage(d,v),this._afterImageUpdated(d)}updateImage(d,v){this.imageManager.updateImage(d,v)}getImage(d){return this.imageManager.getImage(d)}removeImage(d){if(!this.getImage(d))return this.fire(new o.ErrorEvent(new Error(`An image named "${d}" does not exist.`)));this.imageManager.removeImage(d),this._afterImageUpdated(d)}_afterImageUpdated(d){this._availableImages=this.imageManager.listImages(),this._changedImages[d]=!0,this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new o.Event("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(d,v,E={}){if(this._checkLoaded(),this.sourceCaches[d]!==void 0)throw new Error(`Source "${d}" already exists.`);if(!v.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(v).join(", ")}.`);var A=0<=["vector","raster","geojson","video","image"].indexOf(v.type);if(!A||!this._validate(o.validateStyle.source,"sources."+d,v,null,E)){this.map&&this.map._collectResourceTiming&&(v.collectResourceTiming=!0);const M=this.sourceCaches[d]=new Pt(d,v,this.dispatcher);M.style=this,M.setEventedParent(this,()=>({isSourceLoaded:M.loaded(),source:M.serialize(),sourceId:d})),M.onAdd(this.map),this._changed=!0}}removeSource(d){if(this._checkLoaded(),this.sourceCaches[d]===void 0)throw new Error("There is no source with this ID");for(const E in this._layers)if(this._layers[E].source===d)return this.fire(new o.ErrorEvent(new Error(`Source "${d}" cannot be removed while layer "${E}" is using it.`)));var v=this.sourceCaches[d];delete this.sourceCaches[d],delete this._updatedSources[d],v.fire(new o.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:d})),v.setEventedParent(null),v.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(d,v){if(this._checkLoaded(),this.sourceCaches[d]===void 0)throw new Error("There is no source with this ID="+d);if(d=this.sourceCaches[d].getSource(),d.type!=="geojson")throw new Error(`geojsonSource.type is ${d.type}, which is !== 'geojson`);d.setData(v),this._changed=!0}getSource(d){return this.sourceCaches[d]&&this.sourceCaches[d].getSource()}addLayer(d,v,E={}){this._checkLoaded();var A=d.id;if(this.getLayer(A))this.fire(new o.ErrorEvent(new Error(`Layer "${A}" already exists on this map.`)));else{let M;if(d.type==="custom"){if(up(this,o.validateCustomStyleLayer(d)))return;M=o.createStyleLayer(d)}else{if("source"in d&&typeof d.source=="object"&&(this.addSource(A,d.source),d=o.clone$1(d),d=o.extend(d,{source:A})),this._validate(o.validateStyle.layer,"layers."+A,d,{arrayIndex:-1},E))return;
129M=o.createStyleLayer(d),this._validateLayer(M),M.setEventedParent(this,{layer:{id:A}})}E=v?this._order.indexOf(v):this._order.length,v&&E===-1?this.fire(new o.ErrorEvent(new Error(`Cannot add layer "${A}" before non-existing layer "${v}".`))):(this._order.splice(E,0,A),this._layerOrderChanged=!0,this._layers[A]=M,this._removedLayers[A]&&M.source&&M.type!=="custom"&&(d=this._removedLayers[A],delete this._removedLayers[A],d.type!==M.type?this._updatedSources[M.source]="clear":(this._updatedSources[M.source]="reload",this.sourceCaches[M.source].pause())),this._updateLayer(M),M.onAdd&&M.onAdd(this.map))}}moveLayer(d,v){var E;this._checkLoaded(),this._changed=!0,this._layers[d]?d!==v&&(E=this._order.indexOf(d),this._order.splice(E,1),E=v?this._order.indexOf(v):this._order.length,v&&E===-1?this.fire(new o.ErrorEvent(new Error(`Cannot move layer "${d}" before non-existing layer "${v}".`))):(this._order.splice(E,0,d),this._layerOrderChanged=!0)):this.fire(new o.ErrorEvent(new Error(`The layer '${d}' does not exist in the map's style and cannot be moved.`)))}removeLayer(d){this._checkLoaded();var v,E=this._layers[d];E?(E.setEventedParent(null),v=this._order.indexOf(d),this._order.splice(v,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[d]=E,delete this._layers[d],this._serializedLayers&&delete this._serializedLayers[d],delete this._updatedLayers[d],delete this._updatedPaintProps[d],E.onRemove&&E.onRemove(this.map)):this.fire(new o.ErrorEvent(new Error(`Cannot remove non-existing layer "${d}".`)))}getLayer(d){return this._layers[d]}getLayersOrder(){return[...this._order]}hasLayer(d){return d in this._layers}setLayerZoomRange(d,v,E){this._checkLoaded();var A=this.getLayer(d);A?A.minzoom===v&&A.maxzoom===E||(v!=null&&(A.minzoom=v),E!=null&&(A.maxzoom=E),this._updateLayer(A)):this.fire(new o.ErrorEvent(new Error(`Cannot set the zoom range of non-existing layer "${d}".`)))}setFilter(d,v,E={}){this._checkLoaded();var A=this.getLayer(d);A?o.deepEqual(A.filter,v)||(v==null?(A.filter=void 0,this._updateLayer(A)):this._validate(o.validateStyle.filter,`layers.${A.id}.filter`,v,null,E)||(A.filter=o.clone$1(v),this._updateLayer(A))):this.fire(new o.ErrorEvent(new Error(`Cannot filter non-existing layer "${d}".`)))}getFilter(d){return o.clone$1(this.getLayer(d).filter)}setLayoutProperty(d,v,E,A={}){this._checkLoaded();var M=this.getLayer(d);M?o.deepEqual(M.getLayoutProperty(v),E)||(M.setLayoutProperty(v,E,A),this._updateLayer(M)):this.fire(new o.ErrorEvent(new Error(`Cannot style non-existing layer "${d}".`)))}getLayoutProperty(d,v){var E=this.getLayer(d);if(E)return E.getLayoutProperty(v);this.fire(new o.ErrorEvent(new Error(`Cannot get style of non-existing layer "${d}".`)))}setPaintProperty(d,v,E,A={}){this._checkLoaded();var M=this.getLayer(d);M?o.deepEqual(M.getPaintProperty(v),E)||(M.setPaintProperty(v,E,A)&&this._updateLayer(M),this._changed=!0,this._updatedPaintProps[d]=!0):this.fire(new o.ErrorEvent(new Error(`Cannot style non-existing layer "${d}".`)))}getPaintProperty(d,v){return this.getLayer(d).getPaintProperty(v)}setFeatureState(d,v){this._checkLoaded();var E=d.source,A=d.sourceLayer,M=this.sourceCaches[E];M===void 0?this.fire(new o.ErrorEvent(new Error(`The source '${E}' does not exist in the map's style.`))):(E=M.getSource().type)==="geojson"&&A?this.fire(new o.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):E!=="vector"||A?(d.id===void 0&&this.fire(new o.ErrorEvent(new Error("The feature id parameter must be provided."))),M.setFeatureState(A,d.id,v)):this.fire(new o.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(d,v){this._checkLoaded();var E,A=d.source,M=this.sourceCaches[A];M===void 0?this.fire(new o.ErrorEvent(new Error(`The source '${A}' does not exist in the map's style.`))):(E=(A=M.getSource().type)==="vector"?d.sourceLayer:void 0,A!=="vector"||E?v&&typeof d.id!="string"&&typeof d.id!="number"?this.fire(new o.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):M.removeFeatureState(E,d.id,v):this.fire(new o.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types."))))}getFeatureState(d){this._checkLoaded();var v=d.source,E=d.sourceLayer,A=this.sourceCaches[v];if(A===void 0)this.fire(new o.ErrorEvent(new Error(`The source '${v}' does not exist in the map's style.`)));else{if(A.getSource().type!=="vector"||E)return d.id===void 0&&this.fire(new o.ErrorEvent(new Error("The feature id parameter must be provided."))),A.getFeatureState(E,d.id);this.fire(new o.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}}getTransition(){return o.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){var d,v,E,A;if(this._loaded)return d=o.mapObject(this.sourceCaches,M=>M.serialize()),v=this._serializeByIds(this._order),E=this.map.getTerrain()||void 0,A=this.stylesheet,o.filterObject({version:A.version,name:A.name,metadata:A.metadata,light:A.light,center:A.center,zoom:A.zoom,bearing:A.bearing,pitch:A.pitch,sprite:A.sprite,glyphs:A.glyphs,transition:A.transition,sources:d,layers:v,terrain:E},M=>M!==void 0)}
vendor: 5,096 bytes, line 129
129_updateLayer(d){this._updatedLayers[d.id]=!0,d.source&&!this._updatedSources[d.source]&&this.sourceCaches[d.source].getSource().type!=="raster"&&(this._updatedSources[d.source]="reload",this.sourceCaches[d.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(d){var v=we=>this._layers[we].type==="fill-extrusion",E={},A=[];for(let we=this._order.length-1;0<=we;we--){var M=this._order[we];if(v(M)){E[M]=we;for(const De of d){var G=De[M];if(G)for(const nt of G)A.push(nt)}}}A.sort((we,De)=>De.intersectionZ-we.intersectionZ);var ee=[];for(let we=this._order.length-1;0<=we;we--){var he=this._order[we];if(v(he))for(let De=A.length-1;0<=De;De--){var Ie=A[De].feature;if(E[Ie.layer.id]<we)break;ee.push(Ie),A.pop()}else for(const De of d){var Ne=De[he];if(Ne)for(const nt of Ne)ee.push(nt.feature)}}return ee}queryRenderedFeatures(d,v,E){v&&v.filter&&this._validate(o.validateStyle.filter,"queryRenderedFeatures.filter",v.filter,null,v);var A={};if(v&&v.layers){if(!Array.isArray(v.layers))return this.fire(new o.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(const he of v.layers){var M=this._layers[he];if(!M)return this.fire(new o.ErrorEvent(new Error(`The layer '${he}' does not exist in the map's style and cannot be queried for features.`))),[];A[M.source]=!0}}var G=[],ee=(v.availableImages=this._availableImages,this._serializedAllLayers());for(const he in this.sourceCaches)v.layers&&!A[he]||G.push(ot(this.sourceCaches[he],this._layers,ee,d,v,E));return this.placement&&G.push(qe(this._layers,ee,this.sourceCaches,d,v,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(G)}querySourceFeatures(d,v){return v&&v.filter&&this._validate(o.validateStyle.filter,"querySourceFeatures.filter",v.filter,null,v),d=this.sourceCaches[d],d?lt(d,v):[]}getLight(){return this.light.getLight()}setLight(d,v={}){this._checkLoaded();var E,A=this.light.getLight();let M=!1;for(const G in d)if(!o.deepEqual(d[G],A[G])){M=!0;break}M&&(E={now:p.now(),transition:o.extend({duration:300,delay:0},this.stylesheet.transition)},this.light.setLight(d,v),this.light.updateTransitions(E))}_validate(d,v,E,A,M={}){return(!M||M.validate!==!1)&&up(this,d.call(o.validateStyle,o.extend({key:v,style:this.serialize(),value:E,styleSpec:o.v8Spec},A)))}_remove(d=!0){this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._loadStyleRequest&&(this._loadStyleRequest.abort(),this._loadStyleRequest=null),this._spriteRequest&&(this._spriteRequest.abort(),this._spriteRequest=null),Se().off(X,this._rtlPluginLoaded);for(const E in this._layers)this._layers[E].setEventedParent(null);for(const E in this.sourceCaches){var v=this.sourceCaches[E];v.setEventedParent(null),v.onRemove(this.map)}this.imageManager.setEventedParent(null),this.setEventedParent(null),d&&this.dispatcher.broadcast("RM",void 0),this.dispatcher.remove(d)}_clearSource(d){this.sourceCaches[d].clearTiles()}_reloadSource(d){this.sourceCaches[d].resume(),this.sourceCaches[d].reload()}_updateSources(d){for(const v in this.sourceCaches)this.sourceCaches[v].update(d,this.map.terrain)}_generateCollisionBoxes(){for(const d in this.sourceCaches)this._reloadSource(d)}_updatePlacement(d,v,E,A,M=!1){let G=!1,ee=!1;var he={};for(const we of this._order){var Ie=this._layers[we];if(Ie.type==="symbol"){if(!he[Ie.source]){const De=this.sourceCaches[Ie.source];he[Ie.source]=De.getRenderableIds(!0).map(nt=>De.getTileByID(nt)).sort((nt,at)=>at.tileID.overscaledZ-nt.tileID.overscaledZ||(nt.tileID.isLessThan(at.tileID)?-1:1))}Ie=this.crossTileSymbolIndex.addLayer(Ie,he[Ie.source],d.center.lng),G=G||Ie}}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((M=M||this._layerOrderChanged||E===0)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(p.now(),d.zoom))&&(this.pauseablePlacement=new Kl(d,this.map.terrain,this._order,M,v,E,A,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,he),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(p.now()),ee=!0),G&&this.pauseablePlacement.placement.setStale()),ee||G)for(const we of this._order){var Ne=this._layers[we];Ne.type==="symbol"&&this.placement.updateLayerOpacities(Ne,he[Ne.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(p.now())}_releaseSymbolFadeTiles(){for(const d in this.sourceCaches)this.sourceCaches[d].releaseSymbolFadeTiles()}getImages(d,v){return o.__awaiter(this,void 0,void 0,function*(){var E=yield this.imageManager.getImages(v.icons),A=(this._updateTilesForChangedImages(),this.sourceCaches[v.source]);return A&&A.setDependencies(v.tileID.key,v.type,v.icons),E})}getGlyphs(d,v){return o.__awaiter(this,void 0,void 0,function*(){var E=yield this.glyphManager.getGlyphs(v.stacks),A=this.sourceCaches[v.source];return A&&A.setDependencies(v.tileID.key,v.type,[""]),E})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(d,v={}
vendor: 4,924 bytes, lines 129-188
129){this._checkLoaded(),d&&this._validate(o.validateStyle.glyphs,"glyphs",d,null,v)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=d,this.glyphManager.entries={},this.glyphManager.setURL(d))}addSprite(d,v,E={},A){this._checkLoaded(),d=[{id:d,url:v}],v=[...L(this.stylesheet.sprite),...d],this._validate(o.validateStyle.sprite,"sprite",v,null,E)||(this.stylesheet.sprite=v,this._loadSprite(d,!0,A))}removeSprite(d){this._checkLoaded();var v=L(this.stylesheet.sprite);if(v.find(E=>E.id===d)){if(this._spritesImagesIds[d])for(const E of this._spritesImagesIds[d])this.imageManager.removeImage(E),this._changedImages[E]=!0;v.splice(v.findIndex(E=>E.id===d),1),this.stylesheet.sprite=0<v.length?v:void 0,delete this._spritesImagesIds[d],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new o.Event("data",{dataType:"style"}))}else this.fire(new o.ErrorEvent(new Error(`Sprite "${d}" doesn't exists on this map.`)))}getSprite(){return L(this.stylesheet.sprite)}setSprite(d,v={},E){this._checkLoaded(),d&&this._validate(o.validateStyle.sprite,"sprite",d,null,v)||((this.stylesheet.sprite=d)?this._loadSprite(d,!0,E):(this._unloadSprite(),E&&E(null)))}}var Ac=o.createLayout([{name:"a_pos",type:"Int16",components:2}]),_i="attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_depth;void main() {float extent=8192.0;float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/extent;gl_Position=u_matrix*vec4(a_pos3d.xy,get_elevation(a_pos3d.xy)-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}";const Jc={prelude:ri(`#ifdef GL_ES
130precision mediump float;
131#else
132#if !defined(lowp)
133#define lowp
134#endif
135#if !defined(mediump)
136#define mediump
137#endif
138#if !defined(highp)
139#define highp
140#endif
141#endif
142`,`#ifdef GL_ES
143precision highp float;
144#else
145#if !defined(lowp)
146#define lowp
147#endif
148#if !defined(mediump)
149#define mediump
150#endif
151#if !defined(highp)
152#define highp
153#endif
154#endif
155vec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0
156);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}
157#ifdef TERRAIN3D
158uniform sampler2D u_terrain;uniform float u_terrain_dim;uniform mat4 u_terrain_matrix;uniform vec4 u_terrain_unpack;uniform float u_terrain_exaggeration;uniform highp sampler2D u_depth;
159#endif
160const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) {
161#ifdef TERRAIN3D
162highp float d=unpack(texture2D(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0));
163#else
164return 1.0;
165#endif
166}float calculate_visibility(vec4 pos) {
167#ifdef TERRAIN3D
168vec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0;
169#else
170return 1.0;
171#endif
172}float ele(vec2 pos) {
173#ifdef TERRAIN3D
174vec4 rgb=(texture2D(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a;
175#else
176return 0.0;
177#endif
178}float get_elevation(vec2 pos) {
179#ifdef TERRAIN3D
180vec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration;
181#else
182return 0.0;
183#endif
184}`),background:ri(`uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;
185#ifdef OVERDRAW_INSPECTOR
186gl_FragColor=vec4(1.0);
187#endif
188}`,"attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),backgroundPattern:ri(`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;
188uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;
189#ifdef OVERDRAW_INSPECTOR
190gl_FragColor=vec4(1.0);
191#endif
192}`,"uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:ri(`varying vec3 v_data;varying float v_visibility;
193#pragma mapbox: define highp vec4 color
194#pragma mapbox: define mediump float radius
195#pragma mapbox: define lowp float blur
196#pragma mapbox: define lowp float opacity
197#pragma mapbox: define highp vec4 stroke_color
198#pragma mapbox: define mediump float stroke_width
199#pragma mapbox: define lowp float stroke_opacity
200void main() {
201#pragma mapbox: initialize highp vec4 color
202#pragma mapbox: initialize mediump float radius
203#pragma mapbox: initialize lowp float blur
204#pragma mapbox: initialize lowp float opacity
205#pragma mapbox: initialize highp vec4 stroke_color
206#pragma mapbox: initialize mediump float stroke_width
207#pragma mapbox: initialize lowp float stroke_opacity
208vec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);
209#ifdef OVERDRAW_INSPECTOR
210gl_FragColor=vec4(1.0);
211#endif
212}`,`uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;varying float v_visibility;
213#pragma mapbox: define highp vec4 color
214#pragma mapbox: define mediump float radius
215#pragma mapbox: define lowp float blur
216#pragma mapbox: define lowp float opacity
217#pragma mapbox: define highp vec4 stroke_color
218#pragma mapbox: define mediump float stroke_width
219#pragma mapbox: define lowp float stroke_opacity
220void main(void) {
221#pragma mapbox: initialize highp vec4 color
222#pragma mapbox: initialize mediump float radius
223#pragma mapbox: initialize lowp float blur
224#pragma mapbox: initialize lowp float opacity
225#pragma mapbox: initialize highp vec4 stroke_color
226#pragma mapbox: initialize mediump float stroke_width
227#pragma mapbox: initialize lowp float stroke_opacity
228vec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);float ele=get_elevation(circle_center);v_visibility=calculate_visibility(u_matrix*vec4(circle_center,ele,1.0));if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,ele,1);} else {gl_Position=u_matrix*vec4(circle_center,ele,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:ri("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:ri(`uniform highp float u_intensity;varying vec2 v_extrude;
229#pragma mapbox: define highp float weight
230#define GAUSS_COEF 0.3989422804014327
231void main() {
232#pragma mapbox: initialize highp float weight
233float d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);
234#ifdef OVERDRAW_INSPECTOR
235gl_FragColor=vec4(1.0);
236#endif
237}`,`uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;
238#pragma mapbox: define highp float weight
239#pragma mapbox: define mediump float radius
240const highp float ZERO=1.0/255.0/16.0;
241#define GAUSS_COEF 0.3989422804014327
242void main(void) {
243#pragma mapbox: initialize highp float weight
244#pragma mapbox: initialize mediump float radius
245vec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}`),heatmapTexture:ri(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;
246#ifdef OVERDRAW_INSPECTOR
247gl_FragColor=vec4(0.0);
248#endif
249}`,"uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:ri("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,get_elevation(a_pos),1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:ri("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd  =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz  /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:ri("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,get_elevation(a_pos),1);}"),fill:ri(`#pragma mapbox: define highp vec4 color
250#pragma mapbox: define lowp float opacity
251void main() {
252#pragma mapbox: initialize highp vec4 color
253#pragma mapbox: initialize lowp float opacity
254gl_FragColor=color*opacity;
255#ifdef OVERDRAW_INSPECTOR
256gl_FragColor=vec4(1.0);
257#endif
258}`,`attribute vec2 a_pos;uniform mat4 u_matrix;
259#pragma mapbox: define highp vec4 color
260#pragma mapbox: define lowp float opacity
261void main() {
262#pragma mapbox: initialize highp vec4 color
263#pragma mapbox: initialize lowp float opacity
264gl_Position=u_matrix*vec4(a_pos,0,1);}`),fillOutline:ri(`varying vec2 v_pos;
265#pragma mapbox: define highp vec4 outline_color
266#pragma mapbox: define lowp float opacity
267void main() {
268#pragma mapbox: initialize highp vec4 outline_color
269#pragma mapbox: initialize lowp float opacity
270float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);
271#ifdef OVERDRAW_INSPECTOR
272gl_FragColor=vec4(1.0);
273#endif
274}`,`attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;
275#pragma mapbox: define highp vec4 outline_color
276#pragma mapbox: define lowp float opacity
277void main() {
278#pragma mapbox: initialize highp vec4 outline_color
279#pragma mapbox: initialize lowp float opacity
280gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),fillOutlinePattern:ri(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;
281#pragma mapbox: define lowp float opacity
282#pragma mapbox: define lowp vec4 pattern_from
283#pragma mapbox: define lowp vec4 pattern_to
284void main() {
285#pragma mapbox: initialize lowp float opacity
286#pragma mapbox: initialize mediump vec4 pattern_from
287#pragma mapbox: initialize mediump vec4 pattern_to
288vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;
289#ifdef OVERDRAW_INSPECTOR
290gl_FragColor=vec4(1.0);
291#endif
292}`,`uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;
293#pragma mapbox: define lowp float opacity
294#pragma mapbox: define lowp vec4 pattern_from
295#pragma mapbox: define lowp vec4 pattern_to
296#pragma mapbox: define lowp float pixel_ratio_from
297#pragma mapbox: define lowp float pixel_ratio_to
298void main() {
299#pragma mapbox: initialize lowp float opacity
300#pragma mapbox: initialize mediump vec4 pattern_from
301#pragma mapbox: initialize mediump vec4 pattern_to
302#pragma mapbox: initialize lowp float pixel_ratio_from
303#pragma mapbox: initialize lowp float pixel_ratio_to
304vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),fillPattern:ri(`#ifdef GL_ES
305precision highp float;
306#endif
307uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;
308#pragma mapbox: define lowp float opacity
309#pragma mapbox: define lowp vec4 pattern_from
310#pragma mapbox: define lowp vec4 pattern_to
311void main() {
312#pragma mapbox: initialize lowp float opacity
313#pragma mapbox: initialize mediump vec4 pattern_from
314#pragma mapbox: initialize mediump vec4 pattern_to
315vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;
316#ifdef OVERDRAW_INSPECTOR
317gl_FragColor=vec4(1.0);
318#endif
319}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;
320#pragma mapbox: define lowp float opacity
321#pragma mapbox: define lowp vec4 pattern_from
322#pragma mapbox: define lowp vec4 pattern_to
323#pragma mapbox: define lowp float pixel_ratio_from
324#pragma mapbox: define lowp float pixel_ratio_to
325void main() {
326#pragma mapbox: initialize lowp float opacity
327#pragma mapbox: initialize mediump vec4 pattern_from
328#pragma mapbox: initialize mediump vec4 pattern_to
329#pragma mapbox: initialize lowp float pixel_ratio_from
330#pragma mapbox: initialize lowp float pixel_ratio_to
331vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:ri(`varying vec4 v_color;void main() {gl_FragColor=v_color;
332#ifdef OVERDRAW_INSPECTOR
333gl_FragColor=vec4(1.0);
334#endif
335}`,`uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;
336#ifdef TERRAIN3D
337attribute vec2 a_centroid;
338#endif
339varying vec4 v_color;
340#pragma mapbox: define highp float base
341#pragma mapbox: define highp float height
342#pragma mapbox: define highp vec4 color
343void main() {
344#pragma mapbox: initialize highp float base
345#pragma mapbox: initialize highp float height
346#pragma mapbox: initialize highp vec4 color
347vec3 normal=a_normal_ed.xyz;
348#ifdef TERRAIN3D
349float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);
350#else
351float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;
352#endif
353base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.072
3532;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:ri(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;
354#pragma mapbox: define lowp float base
355#pragma mapbox: define lowp float height
356#pragma mapbox: define lowp vec4 pattern_from
357#pragma mapbox: define lowp vec4 pattern_to
358#pragma mapbox: define lowp float pixel_ratio_from
359#pragma mapbox: define lowp float pixel_ratio_to
360void main() {
361#pragma mapbox: initialize lowp float base
362#pragma mapbox: initialize lowp float height
363#pragma mapbox: initialize mediump vec4 pattern_from
364#pragma mapbox: initialize mediump vec4 pattern_to
365#pragma mapbox: initialize lowp float pixel_ratio_from
366#pragma mapbox: initialize lowp float pixel_ratio_to
367vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;
368#ifdef OVERDRAW_INSPECTOR
369gl_FragColor=vec4(1.0);
370#endif
371}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;
372#ifdef TERRAIN3D
373attribute vec2 a_centroid;
374#endif
375varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;
376#pragma mapbox: define lowp float base
377#pragma mapbox: define lowp float height
378#pragma mapbox: define lowp vec4 pattern_from
379#pragma mapbox: define lowp vec4 pattern_to
380#pragma mapbox: define lowp float pixel_ratio_from
381#pragma mapbox: define lowp float pixel_ratio_to
382void main() {
383#pragma mapbox: initialize lowp float base
384#pragma mapbox: initialize lowp float height
385#pragma mapbox: initialize mediump vec4 pattern_from
386#pragma mapbox: initialize mediump vec4 pattern_to
387#pragma mapbox: initialize lowp float pixel_ratio_from
388#pragma mapbox: initialize lowp float pixel_ratio_to
389vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;
390#ifdef TERRAIN3D
391float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);
392#else
393float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;
394#endif
395base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0
396? a_pos
397: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:ri(`#ifdef GL_ES
398precision highp float;
399#endif
400uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);
401#ifdef OVERDRAW_INSPECTOR
402gl_FragColor=vec4(1.0);
403#endif
404}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:ri(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;
405#define PI 3.141592653589793
406void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;
406float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;
407#ifdef OVERDRAW_INSPECTOR
408gl_FragColor=vec4(1.0);
409#endif
410}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),line:ri(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;
411#pragma mapbox: define highp vec4 color
412#pragma mapbox: define lowp float blur
413#pragma mapbox: define lowp float opacity
414void main() {
415#pragma mapbox: initialize highp vec4 color
416#pragma mapbox: initialize lowp float blur
417#pragma mapbox: initialize lowp float opacity
418float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);
419#ifdef OVERDRAW_INSPECTOR
420gl_FragColor=vec4(1.0);
421#endif
422}`,`
423#define scale 0.015873016
424attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;
425#pragma mapbox: define highp vec4 color
426#pragma mapbox: define lowp float blur
427#pragma mapbox: define lowp float opacity
428#pragma mapbox: define mediump float gapwidth
429#pragma mapbox: define lowp float offset
430#pragma mapbox: define mediump float width
431void main() {
432#pragma mapbox: initialize highp vec4 color
433#pragma mapbox: initialize lowp float blur
434#pragma mapbox: initialize lowp float opacity
435#pragma mapbox: initialize mediump float gapwidth
436#pragma mapbox: initialize lowp float offset
437#pragma mapbox: initialize mediump float width
438float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;
439#ifdef TERRAIN3D
440v_gamma_scale=1.0;
441#else
442float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
443#endif
444v_width2=vec2(outset,inset);}`),lineGradient:ri(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;
445#pragma mapbox: define lowp float blur
446#pragma mapbox: define lowp float opacity
447void main() {
448#pragma mapbox: initialize lowp float blur
449#pragma mapbox: initialize lowp float opacity
450float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity);
451#ifdef OVERDRAW_INSPECTOR
452gl_FragColor=vec4(1.0);
453#endif
454}`,`
455#define scale 0.015873016
456attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;
457#pragma mapbox: define lowp float blur
458#pragma mapbox: define lowp float opacity
459#pragma mapbox: define mediump float gapwidth
460#pragma mapbox: define lowp float offset
461#pragma mapbox: define mediump float width
462void main() {
463#pragma mapbox: initialize lowp float blur
464#pragma mapbox: initialize lowp float opacity
465#pragma mapbox: initialize mediump float gapwidth
466#pragma mapbox: initialize lowp float offset
467#pragma mapbox: initialize mediump float width
468float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;
469#ifdef TERRAIN3D
470v_gamma_scale=1.0;
471#else
472float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
473#endif
474v_width2=vec2(outset,inset);}`),linePattern:ri(`#ifdef GL_ES
475precision highp float;
476#endif
477uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;
478#pragma mapbox: define lowp vec4 pattern_from
479#pragma mapbox: define lowp vec4 pattern_to
480#pragma mapbox: define lowp float pixel_ratio_from
481#pragma mapbox: define lowp float pixel_ratio_to
482#pragma mapbox: define lowp float blur
483#pragma mapbox: define lowp float opacity
484void main() {
485#pragma mapbox: initialize mediump vec4 pattern_from
486#pragma mapbox: initialize mediump vec4 pattern_to
487#pragma mapbox: initialize lowp float pixel_ratio_from
488#pragma mapbox: initialize lowp float pixel_ratio_to
489#pragma mapbox: initialize lowp float blur
490#pragma mapbox: initialize lowp float opacity
491vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;
492#ifdef OVERDRAW_INSPECTOR
493gl_FragColor=vec4(1.0);
494#endif
495}`,`
496#define scale 0.015873016
497#define LINE_DISTANCE_SCALE 2.0
498attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;
499#pragma mapbox: define lowp float blur
500#pragma mapbox: define lowp float opacity
501#pragma mapbox: define lowp float offset
502#pragma mapbox: define mediump float gapwidth
503#pragma mapbox: define mediump float width
504#pragma mapbox: define lowp float floorwidth
505#pragma mapbox: define lowp vec4 pattern_from
506#pragma mapbox: define lowp vec4 pattern_to
507#pragma mapbox: define lowp float pixel_ratio_from
508#pragma mapbox: define lowp float pixel_ratio_to
509void main() {
510#pragma mapbox: initialize lowp float blur
511#pragma mapbox: initialize lowp float opacity
512#pragma mapbox: initialize lowp float offset
513#pragma mapbox: initialize mediump float gapwidth
514#pragma mapbox: initialize mediump float width
515#pragma mapbox: initialize lowp float floorwidth
516#pragma mapbox: initialize mediump vec4 pattern_from
517#pragma mapbox: initialize mediump vec4 pattern_to
518#pragma mapbox: initialize lowp float pixel_ratio_from
519#pragma mapbox: initialize lowp float pixel_ratio_to
520float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;
521#ifdef TERRAIN3D
522v_gamma_scale=1.0;
523#else
524float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
525#endif
526v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:ri(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;
526uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;
527#pragma mapbox: define highp vec4 color
528#pragma mapbox: define lowp float blur
529#pragma mapbox: define lowp float opacity
530#pragma mapbox: define mediump float width
531#pragma mapbox: define lowp float floorwidth
532void main() {
533#pragma mapbox: initialize highp vec4 color
534#pragma mapbox: initialize lowp float blur
535#pragma mapbox: initialize lowp float opacity
536#pragma mapbox: initialize mediump float width
537#pragma mapbox: initialize lowp float floorwidth
538float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);
539#ifdef OVERDRAW_INSPECTOR
540gl_FragColor=vec4(1.0);
541#endif
542}`,`
543#define scale 0.015873016
544#define LINE_DISTANCE_SCALE 2.0
545attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;
546#pragma mapbox: define highp vec4 color
547#pragma mapbox: define lowp float blur
548#pragma mapbox: define lowp float opacity
549#pragma mapbox: define mediump float gapwidth
550#pragma mapbox: define lowp float offset
551#pragma mapbox: define mediump float width
552#pragma mapbox: define lowp float floorwidth
553void main() {
554#pragma mapbox: initialize highp vec4 color
555#pragma mapbox: initialize lowp float blur
556#pragma mapbox: initialize lowp float opacity
557#pragma mapbox: initialize mediump float gapwidth
558#pragma mapbox: initialize lowp float offset
559#pragma mapbox: initialize mediump float width
560#pragma mapbox: initialize lowp float floorwidth
561float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;
562#ifdef TERRAIN3D
563v_gamma_scale=1.0;
564#else
565float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
566#endif
567v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),raster:ri(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);
568#ifdef OVERDRAW_INSPECTOR
569gl_FragColor=vec4(1.0);
570#endif
571}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),symbolIcon:ri(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;
572#pragma mapbox: define lowp float opacity
573void main() {
574#pragma mapbox: initialize lowp float opacity
575lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;
576#ifdef OVERDRAW_INSPECTOR
577gl_FragColor=vec4(1.0);
578#endif
579}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;
580#pragma mapbox: define lowp float opacity
581void main() {
582#pragma mapbox: initialize lowp float opacity
583vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,ele,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
584camera_to_anchor_distance/u_camera_to_center_distance :
585u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),ele,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,ele,1.0);float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),z,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}`),symbolSDF:ri(`#define SDF_PX 8.0
586uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;
587#pragma mapbox: define highp vec4 fill_color
588#pragma mapbox: define highp vec4 halo_color
589#pragma mapbox: define lowp float opacity
590#pragma mapbox: define lowp float halo_width
591#pragma mapbox: define lowp float halo_blur
592void main() {
593#pragma mapbox: initialize highp vec4 fill_color
594#pragma mapbox: initialize highp vec4 halo_color
595#pragma mapbox: initialize lowp float opacity
596#pragma mapbox: initialize lowp float halo_width
597#pragma mapbox: initialize lowp float halo_blur
598float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);inner_edge=inner_edge+gamma*gamma_scale;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);if (u_is_halo) {lowp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha=min(smoothstep(halo_edge-gamma_scaled,halo_edge+gamma_scaled,dist),1.0-alpha);}gl_FragColor=color*(alpha*opacity*fade_opacity);
599#ifdef OVERDRAW_INSPECTOR
600gl_FragColor=vec4(1.0);
601#endif
602}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;
603#pragma mapbox: define highp vec4 fill_color
604#pragma mapbox: define highp vec4 halo_color
605#pragma mapbox: define lowp float opacity
606#pragma mapbox: define lowp float halo_width
607#pragma mapbox: define lowp float halo_blur
608void main() {
609#pragma mapbox: initialize highp vec4 fill_color
610#pragma mapbox: initialize highp vec4 halo_color
611#pragma mapbox: initialize lowp float opacity
612#pragma mapbox: initialize lowp float halo_width
613#pragma mapbox: initialize lowp float halo_blur
614vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,ele,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
615camera_to_anchor_distance/u_camera_to_center_distance :
616u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),ele,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,ele,1.0);float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),z,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),symbolTextAndIcon:ri(`#define SDF_PX 8.0
617#define SDF 1.0
618#define ICON 0.0
619uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;
620#pragma mapbox: define highp vec4 fill_color
621#pragma mapbox: define highp vec4 halo_color
622#pragma mapbox: define lowp float opacity
623#pragma mapbox: define lowp float halo_width
624#pragma mapbox: define lowp float halo_blur
625void main() {
626#pragma mapbox: initialize highp vec4 fill_color
627#pragma mapbox: initialize highp vec4 halo_color
628#pragma mapbox: initialize lowp float opacity
629#pragma mapbox: initialize lowp float halo_width
630#pragma mapbox: initialize lowp float halo_blur
631float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;
631gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;
632#ifdef OVERDRAW_INSPECTOR
633gl_FragColor=vec4(1.0);
634#endif
635return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);
636#ifdef OVERDRAW_INSPECTOR
637gl_FragColor=vec4(1.0);
638#endif
639}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;
640#pragma mapbox: define highp vec4 fill_color
641#pragma mapbox: define highp vec4 halo_color
642#pragma mapbox: define lowp float opacity
643#pragma mapbox: define lowp float halo_width
644#pragma mapbox: define lowp float halo_blur
645void main() {
646#pragma mapbox: initialize highp vec4 fill_color
647#pragma mapbox: initialize highp vec4 halo_color
648#pragma mapbox: initialize lowp float opacity
649#pragma mapbox: initialize lowp float halo_width
650#pragma mapbox: initialize lowp float halo_blur
651vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,ele,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
652camera_to_anchor_distance/u_camera_to_center_distance :
653u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),ele,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,ele,1.0);float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),z,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:ri("uniform sampler2D u_texture;varying vec2 v_texture_pos;void main() {gl_FragColor=texture2D(u_texture,v_texture_pos);}",_i),terrainDepth:ri("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}",_i),terrainCoords:ri("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}",_i)};
vendor: 10,879 bytes, lines 653-704
653function ri(P,d){var v=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,E=d.match(/attribute ([\w]+) ([\w]+)/g),A=P.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),M=d.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),M=M?M.concat(A):A;const G={};return{fragmentSource:P=P.replace(v,(ee,he,Ie,Ne,we)=>(G[we]=!0,he==="define"?`
654#ifndef HAS_UNIFORM_u_${we}
655varying ${Ie} ${Ne} ${we};
656#else
657uniform ${Ie} ${Ne} u_${we};
658#endif
659`:`
660#ifdef HAS_UNIFORM_u_${we}
661    ${Ie} ${Ne} ${we} = u_${we};
662#endif
663`)),vertexSource:d=d.replace(v,(ee,he,Ie,Ne,we)=>{var De=Ne==="float"?"vec2":"vec4",nt=we.match(/color/)?"color":De;return G[we]?he==="define"?`
664#ifndef HAS_UNIFORM_u_${we}
665uniform lowp float u_${we}_t;
666attribute ${Ie} ${De} a_${we};
667varying ${Ie} ${Ne} ${we};
668#else
669uniform ${Ie} ${Ne} u_${we};
670#endif
671`:nt=="vec4"?`
672#ifndef HAS_UNIFORM_u_${we}
673    ${we} = a_${we};
674#else
675    ${Ie} ${Ne} ${we} = u_${we};
676#endif
677`:`
678#ifndef HAS_UNIFORM_u_${we}
679    ${we} = unpack_mix_${nt}(a_${we}, u_${we}_t);
680#else
681    ${Ie} ${Ne} ${we} = u_${we};
682#endif
683`:he==="define"?`
684#ifndef HAS_UNIFORM_u_${we}
685uniform lowp float u_${we}_t;
686attribute ${Ie} ${De} a_${we};
687#else
688uniform ${Ie} ${Ne} u_${we};
689#endif
690`:nt=="vec4"?`
691#ifndef HAS_UNIFORM_u_${we}
692    ${Ie} ${Ne} ${we} = a_${we};
693#else
694    ${Ie} ${Ne} ${we} = u_${we};
695#endif
696`:`
697#ifndef HAS_UNIFORM_u_${we}
698    ${Ie} ${Ne} ${we} = unpack_mix_${nt}(a_${we}, u_${we}_t);
699#else
700    ${Ie} ${Ne} ${we} = u_${we};
701#endif
702`}),staticAttributes:E,staticUniforms:M}}class iy{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(d,v,E,A,M,G,ee,he,Ie){this.context=d;let Ne=this.boundPaintVertexBuffers.length!==A.length;for(let we=0;!Ne&&we<A.length;we++)this.boundPaintVertexBuffers[we]!==A[we]&&(Ne=!0);!this.vao||this.boundProgram!==v||this.boundLayoutVertexBuffer!==E||Ne||this.boundIndexBuffer!==M||this.boundVertexOffset!==G||this.boundDynamicVertexBuffer!==ee||this.boundDynamicVertexBuffer2!==he||this.boundDynamicVertexBuffer3!==Ie?this.freshBind(v,E,A,M,G,ee,he,Ie):(d.bindVertexArray.set(this.vao),ee&&ee.bind(),M&&M.dynamicDraw&&M.bind(),he&&he.bind(),Ie&&Ie.bind())}freshBind(d,v,E,A,M,G,ee,he){var Ie=d.numAttributes,Ne=this.context,we=Ne.gl;this.vao&&this.destroy(),this.vao=Ne.createVertexArray(),Ne.bindVertexArray.set(this.vao),this.boundProgram=d,this.boundLayoutVertexBuffer=v,this.boundPaintVertexBuffers=E,this.boundIndexBuffer=A,this.boundVertexOffset=M,this.boundDynamicVertexBuffer=G,this.boundDynamicVertexBuffer2=ee,this.boundDynamicVertexBuffer3=he,v.enableAttributes(we,d);for(const De of E)De.enableAttributes(we,d);G&&G.enableAttributes(we,d),ee&&ee.enableAttributes(we,d),he&&he.enableAttributes(we,d),v.bind(),v.setVertexAttribPointers(we,d,M);for(const De of E)De.bind(),De.setVertexAttribPointers(we,d,M);G&&(G.bind(),G.setVertexAttribPointers(we,d,M)),A&&A.bind(),ee&&(ee.bind(),ee.setVertexAttribPointers(we,d,M)),he&&(he.bind(),he.setVertexAttribPointers(we,d,M)),Ne.currentNumAttributes=Ie}destroy(){this.vao&&(this.context.deleteVertexArray(this.vao),this.vao=null)}}const Wd=(P,d)=>({u_depth:new o.Uniform1i(P,d.u_depth),u_terrain:new o.Uniform1i(P,d.u_terrain),u_terrain_dim:new o.Uniform1f(P,d.u_terrain_dim),u_terrain_matrix:new o.UniformMatrix4f(P,d.u_terrain_matrix),u_terrain_unpack:new o.Uniform4f(P,d.u_terrain_unpack),u_terrain_exaggeration:new o.Uniform1f(P,d.u_terrain_exaggeration)});function oy(P){var d,v=[];for(let E=0;E<P.length;E++)P[E]!==null&&(d=P[E].split(" "),v.push(d.pop()));return v}class Mv{constructor(d,v,E,A,M,G){var ee=d.gl,Ie=(this.program=ee.createProgram(),oy(v.staticAttributes)),Ne=E?E.getBinderAttributes():[],he=Ie.concat(Ne),Ie=Jc.prelude.staticUniforms?oy(Jc.prelude.staticUniforms):[],Ne=v.staticUniforms?oy(v.staticUniforms):[],we=E?E.getBinderUniforms():[],De=[];for(const st of Ie.concat(Ne).concat(we))De.indexOf(st)<0&&De.push(st);if(Ie=E?E.defines():[],M&&Ie.push("#define OVERDRAW_INSPECTOR;"),G&&Ie.push("#define TERRAIN3D;"),Ne=Ie.concat(Jc.prelude.fragmentSource,v.fragmentSource).join(`
703`),we=Ie.concat(Jc.prelude.vertexSource,v.vertexSource).join(`
704`),M=ee.createShader(ee.FRAGMENT_SHADER),ee.isContextLost())this.failedToCreate=!0;else{if(ee.shaderSource(M,Ne),ee.compileShader(M),!ee.getShaderParameter(M,ee.COMPILE_STATUS))throw new Error("Could not compile fragment shader: "+ee.getShaderInfoLog(M));if(ee.attachShader(this.program,M),G=ee.createShader(ee.VERTEX_SHADER),ee.isContextLost())this.failedToCreate=!0;else{if(ee.shaderSource(G,we),ee.compileShader(G),!ee.getShaderParameter(G,ee.COMPILE_STATUS))throw new Error("Could not compile vertex shader: "+ee.getShaderInfoLog(G));ee.attachShader(this.program,G),this.attributes={};var nt={};this.numAttributes=he.length;for(let st=0;st<this.numAttributes;st++)he[st]&&(ee.bindAttribLocation(this.program,st,he[st]),this.attributes[he[st]]=st);if(ee.linkProgram(this.program),!ee.getProgramParameter(this.program,ee.LINK_STATUS))throw new Error("Program failed to link: "+ee.getProgramInfoLog(this.program));ee.deleteShader(G),ee.deleteShader(M);for(let st=0;st<De.length;st++){var at,ut=De[st];ut&&!nt[ut]&&(at=ee.getUniformLocation(this.program,ut))&&(nt[ut]=at)}this.fixedUniforms=A(d,nt),this.terrainUniforms=Wd(d,nt),this.binderUniforms=E?E.getUniforms(d,nt):[]}}}draw(d,v,E,A,M,G,ee,he,Ie,Ne,we,De,nt,at,ut,st,_t,xt){var At=d.gl;if(!this.failedToCreate){if(d.program.set(this.program),d.setDepthMode(E),d.setStencilMode(A),d.setColorMode(M),d.setCullFace(G),he){d.activeTexture.set(At.TEXTURE2),At.bindTexture(At.TEXTURE_2D,he.depthTexture),d.activeTexture.set(At.TEXTURE3),At.bindTexture(At.TEXTURE_2D,he.texture);for(const Bt in this.terrainUniforms)this.terrainUniforms[Bt].set(he[Bt])}for(const Bt in this.fixedUniforms)this.fixedUniforms[Bt].set(ee[Bt]);ut&&ut.setUniforms(d,this.binderUniforms,nt,{zoom:at});let $t=0;switch(v){case At.LINES:$t=2;break;case At.TRIANGLES:$t=3;break;case At.LINE_STRIP:$t=1}for(const Bt of De.get()){var Ft=Bt.vaos||(Bt.vaos={});(Ft[Ie]||(Ft[Ie]=new iy)).bind(d,this,Ne,ut?ut.getPaintVertexBuffers():[],we,Bt.vertexOffset,st,_t,xt),At.drawElements(v,Bt.primitiveLength*$t,At.UNSIGNED_SHORT,Bt.primitiveOffset*$t*2)}}}}function Jh(P,M,v){var E=1/qr(v,1,M.transform.tileZoom),A=Math.pow(2,v.tileID.overscaledZ),M=v.tileSize*Math.pow(2,M.transform.tileZoom)/A,A=M*(v.tileID.canonical.x+v.tileID.wrap*A),M=M*v.tileID.canonical.y;return{u_image:0,u_texsize:v.imageAtlasTexture.size,u_scale:[E,P.fromScale,P.toScale],u_fade:P.t,u_pixel_coord_upper:[A>>16,M>>16],u_pixel_coord_lower:[65535&A,65535&M]}}const Pu=(P,ee,v,E)=>{var A=ee.style.light,M=A.properties.get("position"),M=[M.x,M.y,M.z],G=o.create$1(),ee=(A.properties.get("anchor")==="viewport"&&o.fromRotation(G,-ee.transform.angle),o.transformMat3(M,M,G),A.properties.get("color"));return{u_matrix:P,u_lightpos:M,u_lightintensity:A.properties.get("intensity"),u_lightcolor:[ee.r,ee.g,ee.b],u_vertical_gradient:+v,u_opacity:E}},ef=(P,d,v,E,A,M,G)=>o.extend(Pu(P,d,v,E),Jh(M,d,G),{u_height_factor:-Math.pow(2,A.overscaledZ)/G.tileSize/8}),dp=P=>({u_matrix:P}),Ni=(P,d,v,E)=>o.extend(dp(P),Jh(v,d,E)),Nv=(P,d)=>({u_matrix:P,u_world:d}),Kd=(P,d,v,E,A)=>o.extend(Ni(P,d,v,E),{u_world:A}),ay=(P,d,M)=>{var E=qr(M,1,d.zoom),A=Math.pow(2,d.zoom-M.tileID.overscaledZ),M=M.tileID.overscaleFactor();return{u_matrix:P,u_camera_to_center_distance:d.cameraToCenterDistance,u_pixels_to_tile_units:E,u_extrude_scale:[d.pixelsToGLUnits[0]/(E*A),d.pixelsToGLUnits[1]/(E*A)],u_overscale_factor:M}},R_=(P,d,v)=>({u_matrix:P,u_inv_matrix:d,u_camera_to_center_distance:v.cameraToCenterDistance,u_viewport_size:[v.width,v.height]}),Dv=(P,d,v=1)=>({u_matrix:P,u_color:d,u_overlay:0,u_overlay_scale:v}),vg=P=>({u_matrix:P}),sy=(M,d,v,E)=>{var A=o.create(),M=(o.ortho(A,0,M.width,M.height,0,0,1),M.context.gl);return{u_matrix:A,u_world:[M.drawingBufferWidth,M.drawingBufferHeight],u_image:v,u_color_ramp:E,u_opacity:d.paint.get("heatmap-opacity")}},_g=(P,d,v,E)=>{var A=v.paint.get("hillshade-shadow-color"),M=v.paint.get("hillshade-highlight-color"),G=v.paint.get("hillshade-accent-color");let ee=v.paint.get("hillshade-illumination-direction")*(Math.PI/180);v.paint.get("hillshade-illumination-anchor")==="viewport"&&(ee-=P.transform.angle);var he=!P.options.moving;return{u_matrix:E?E.posMatrix:P.transform.calculatePosMatrix(d.tileID.toUnwrapped(),he),u_image:0,u_latrange:(E=d.tileID,P=Math.pow(2,E.canonical.z),E=E.canonical.y,[new o.MercatorCoordinate(0,E/P).toLngLat().lat,new o.MercatorCoordinate(0,(E+1)/P).toLngLat().lat]),u_light:[v.paint.get("hillshade-exaggeration"),ee],u_shadow:A,u_highlight:M,u_accent:G}},fd=(P,d)=>{var v=d.stride,E=o.create();return o.ortho(E,0,o.EXTENT,-o.EXTENT,0,0,1),o.translate(E,E,[0,-o.EXTENT,0]),{u_matrix:E,u_image:1,u_dimension:[v,v],u_zoom:P.overscaledZ,u_unpack:d.getUnpackVector()}},ku=(P,d,v,E)=>{var A=P.transform;return{u_matrix:bg(P,d,v,E),u_ratio:1/qr(d,1,A.zoom),u_device_pixel_ratio:P.pixelRatio,u_units_to_pixels:[1/A.pixelsToGLUnits[0],1/A.pixelsToGLUnits[1]]}};function Zd(P,d){return 1/qr(P,1,d.tileZoom)}function bg(P,d,v,E){return P.translatePosMatrix((E||d.tileID).posMatrix,d,v.paint.get("line-translate"),v.paint.get("line-translate-anchor"))}const eu=(P,d,v,E,A)=>({u_matrix:P,u_tl_parent:d,u_scale_parent:v,u_buffer_scale:1,u_fade_t:E.mix,u_opacity:E.opacity*A.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:A.paint.get("raster-brightness-min"),u_brightness_high:A.paint.get("raster-brightness-max"),u_saturation_factor:0<(P=A.paint.get("raster-saturation"))?1-1/(1.001-P):-P,u_contrast_factor:0<(d=A.paint.get("raster-contrast"))?1/(1-d):1+d,u_spin_weights:(v=A.paint.get("raster-hue-rotate"),v*=Math.PI/180,E=Math.sin(v),[(2*(v=Math.cos(v))+1)/3,(-Math.sqrt(3)*E-v+1)/3,(Math.sqrt(3)*E-v+1)/3])}),tu=(P,d,v,E,A,M,G,ee,he,Ie)=>{var Ne=A.transform;return{u_is_size_zoom_constant:+(P==="constant"||P==="source"),u_is_size_feature_constant:+(P==="constant"||P==="camera"),u_size_t:d?d.uSizeT:0,u_size:d?d.uSize:0,u_camera_to_center_distance:Ne.cameraToCenterDistance,u_pitch:Ne.pitch/360*2*Math.PI,u_rotate_symbol:+v,u_aspect_ratio:Ne.width/Ne.height,u_fade_change:A.options.fadeDuration?A.symbolFadeChange:1,u_matrix:M,u_label_plane_matrix:G,u_coord_matrix:ee,u_is_text:+he,u_pitch_with_map:+E,u_texsize:Ie,u_texture:0}},Rc=(P,d,v,E,A,M,G,ee,he,Ie,Ne)=>{var we=A.transform;return o.extend(tu(P,d,v,E,A,M,G,ee,he,Ie),{u_gamma_scale:E?Math.cos(we._pitch)*we.cameraToCenterDistance:1,u_device_pixel_ratio:A.pixelRatio,u_is_halo:1})},Hb=(P,d,v,E,A,M,G,ee,he,Ie)=>o.extend(Rc(P,d,v,E,A,M,G,ee,!0,he),{u_texsize_icon:Ie,u_texture_icon:1}),tf=(P,d,v,E,A,M)=>o.extend((function(we,ee,he,Ie){var Ne=he.imageManager.getPattern(we.from.toString()),we=he.imageManager.getPattern(we.to.toString()),{width:De,he
vendor: 18,767 bytes, line 704
704ight:nt}=he.imageManager.getPixelSize(),at=Math.pow(2,Ie.tileID.overscaledZ),at=(ut=Ie.tileSize*Math.pow(2,he.transform.tileZoom)/at)*(Ie.tileID.canonical.x+Ie.tileID.wrap*at),ut=ut*Ie.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Ne.tl,u_pattern_br_a:Ne.br,u_pattern_tl_b:we.tl,u_pattern_br_b:we.br,u_texsize:[De,nt],u_mix:ee.t,u_pattern_size_a:Ne.displaySize,u_pattern_size_b:we.displaySize,u_scale_a:ee.fromScale,u_scale_b:ee.toScale,u_tile_units_to_pixels:1/qr(Ie,1,he.transform.tileZoom),u_pixel_coord_upper:[at>>16,ut>>16],u_pixel_coord_lower:[65535&at,65535&ut]}})(E,M,v,A),{u_matrix:P,u_opacity:d}),wg={fillExtrusion:(P,d)=>({u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_lightpos:new o.Uniform3f(P,d.u_lightpos),u_lightintensity:new o.Uniform1f(P,d.u_lightintensity),u_lightcolor:new o.Uniform3f(P,d.u_lightcolor),u_vertical_gradient:new o.Uniform1f(P,d.u_vertical_gradient),u_opacity:new o.Uniform1f(P,d.u_opacity)}),fillExtrusionPattern:(P,d)=>({u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_lightpos:new o.Uniform3f(P,d.u_lightpos),u_lightintensity:new o.Uniform1f(P,d.u_lightintensity),u_lightcolor:new o.Uniform3f(P,d.u_lightcolor),u_vertical_gradient:new o.Uniform1f(P,d.u_vertical_gradient),u_height_factor:new o.Uniform1f(P,d.u_height_factor),u_image:new o.Uniform1i(P,d.u_image),u_texsize:new o.Uniform2f(P,d.u_texsize),u_pixel_coord_upper:new o.Uniform2f(P,d.u_pixel_coord_upper),u_pixel_coord_lower:new o.Uniform2f(P,d.u_pixel_coord_lower),u_scale:new o.Uniform3f(P,d.u_scale),u_fade:new o.Uniform1f(P,d.u_fade),u_opacity:new o.Uniform1f(P,d.u_opacity)}),fill:(P,d)=>({u_matrix:new o.UniformMatrix4f(P,d.u_matrix)}),fillPattern:(P,d)=>({u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_image:new o.Uniform1i(P,d.u_image),u_texsize:new o.Uniform2f(P,d.u_texsize),u_pixel_coord_upper:new o.Uniform2f(P,d.u_pixel_coord_upper),u_pixel_coord_lower:new o.Uniform2f(P,d.u_pixel_coord_lower),u_scale:new o.Uniform3f(P,d.u_scale),u_fade:new o.Uniform1f(P,d.u_fade)}),fillOutline:(P,d)=>({u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_world:new o.Uniform2f(P,d.u_world)}),fillOutlinePattern:(P,d)=>({u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_world:new o.Uniform2f(P,d.u_world),u_image:new o.Uniform1i(P,d.u_image),u_texsize:new o.Uniform2f(P,d.u_texsize),u_pixel_coord_upper:new o.Uniform2f(P,d.u_pixel_coord_upper),u_pixel_coord_lower:new o.Uniform2f(P,d.u_pixel_coord_lower),u_scale:new o.Uniform3f(P,d.u_scale),u_fade:new o.Uniform1f(P,d.u_fade)}),circle:(P,d)=>({u_camera_to_center_distance:new o.Uniform1f(P,d.u_camera_to_center_distance),u_scale_with_map:new o.Uniform1i(P,d.u_scale_with_map),u_pitch_with_map:new o.Uniform1i(P,d.u_pitch_with_map),u_extrude_scale:new o.Uniform2f(P,d.u_extrude_scale),u_device_pixel_ratio:new o.Uniform1f(P,d.u_device_pixel_ratio),u_matrix:new o.UniformMatrix4f(P,d.u_matrix)}),collisionBox:(P,d)=>({u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_camera_to_center_distance:new o.Uniform1f(P,d.u_camera_to_center_distance),u_pixels_to_tile_units:new o.Uniform1f(P,d.u_pixels_to_tile_units),u_extrude_scale:new o.Uniform2f(P,d.u_extrude_scale),u_overscale_factor:new o.Uniform1f(P,d.u_overscale_factor)}),collisionCircle:(P,d)=>({u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_inv_matrix:new o.UniformMatrix4f(P,d.u_inv_matrix),u_camera_to_center_distance:new o.Uniform1f(P,d.u_camera_to_center_distance),u_viewport_size:new o.Uniform2f(P,d.u_viewport_size)}),debug:(P,d)=>({u_color:new o.UniformColor(P,d.u_color),u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_overlay:new o.Uniform1i(P,d.u_overlay),u_overlay_scale:new o.Uniform1f(P,d.u_overlay_scale)}),clippingMask:(P,d)=>({u_matrix:new o.UniformMatrix4f(P,d.u_matrix)}),heatmap:(P,d)=>({u_extrude_scale:new o.Uniform1f(P,d.u_extrude_scale),u_intensity:new o.Uniform1f(P,d.u_intensity),u_matrix:new o.UniformMatrix4f(P,d.u_matrix)}),heatmapTexture:(P,d)=>({u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_world:new o.Uniform2f(P,d.u_world),u_image:new o.Uniform1i(P,d.u_image),u_color_ramp:new o.Uniform1i(P,d.u_color_ramp),u_opacity:new o.Uniform1f(P,d.u_opacity)}),hillshade:(P,d)=>({u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_image:new o.Uniform1i(P,d.u_image),u_latrange:new o.Uniform2f(P,d.u_latrange),u_light:new o.Uniform2f(P,d.u_light),u_shadow:new o.UniformColor(P,d.u_shadow),u_highlight:new o.UniformColor(P,d.u_highlight),u_accent:new o.UniformColor(P,d.u_accent)}),hillshadePrepare:(P,d)=>({u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_image:new o.Uniform1i(P,d.u_image),u_dimension:new o.Uniform2f(P,d.u_dimension),u_zoom:new o.Uniform1f(P,d.u_zoom),u_unpack:new o.Uniform4f(P,d.u_unpack)}),line:(P,d)=>({u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_ratio:new o.Uniform1f(P,d.u_ratio),u_device_pixel_ratio:new o.Uniform1f(P,d.u_device_pixel_ratio),u_units_to_pixels:new o.Uniform2f(P,d.u_units_to_pixels)}),lineGradient:(P,d)=>({u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_ratio:new o.Uniform1f(P,d.u_ratio),u_device_pixel_ratio:new o.Uniform1f(P,d.u_device_pixel_ratio),u_units_to_pixels:new o.Uniform2f(P,d.u_units_to_pixels),u_image:new o.Uniform1i(P,d.u_image),u_image_height:new o.Uniform1f(P,d.u_image_height)}),linePattern:(P,d)=>({u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_texsize:new o.Uniform2f(P,d.u_texsize),u_ratio:new o.Uniform1f(P,d.u_ratio),u_device_pixel_ratio:new o.Uniform1f(P,d.u_device_pixel_ratio),u_image:new o.Uniform1i(P,d.u_image),u_units_to_pixels:new o.Uniform2f(P,d.u_units_to_pixels),u_scale:new o.Uniform3f(P,d.u_scale),u_fade:new o.Uniform1f(P,d.u_fade)}),lineSDF:(P,d)=>({u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_ratio:new o.Uniform1f(P,d.u_ratio),u_device_pixel_ratio:new o.Uniform1f(P,d.u_device_pixel_ratio),u_units_to_pixels:new o.Uniform2f(P,d.u_units_to_pixels),u_patternscale_a:new o.Uniform2f(P,d.u_patternscale_a),u_patternscale_b:new o.Uniform2f(P,d.u_patternscale_b),u_sdfgamma:new o.Uniform1f(P,d.u_sdfgamma),u_image:new o.Uniform1i(P,d.u_image),u_tex_y_a:new o.Uniform1f(P,d.u_tex_y_a),u_tex_y_b:new o.Uniform1f(P,d.u_tex_y_b),u_mix:new o.Uniform1f(P,d.u_mix)}),raster:(P,d)=>({u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_tl_parent:new o.Uniform2f(P,d.u_tl_parent),u_scale_parent:new o.Uniform1f(P,d.u_scale_parent),u_buffer_scale:new o.Uniform1f(P,d.u_buffer_scale),u_fade_t:new o.Uniform1f(P,d.u_fade_t),u_opacity:new o.Uniform1f(P,d.u_opacity),u_image0:new o.Uniform1i(P,d.u_image0),u_image1:new o.Uniform1i(P,d.u_image1),u_brightness_low:new o.Uniform1f(P,d.u_brightness_low),u_brightness_high:new o.Uniform1f(P,d.u_brightness_high),u_saturation_factor:new o.Uniform1f(P,d.u_saturation_factor),u_contrast_factor:new o.Uniform1f(P,d.u_contrast_factor),u_spin_weights:new o.Uniform3f(P,d.u_spin_weights)}),symbolIcon:(P,d)=>({u_is_size_zoom_constant:new o.Uniform1i(P,d.u_is_size_zoom_constant),u_is_size_feature_constant:new o.Uniform1i(P,d.u_is_size_feature_constant),u_size_t:new o.Uniform1f(P,d.u_size_t),u_size:new o.Uniform1f(P,d.u_size),u_camera_to_center_distance:new o.Uniform1f(P,d.u_camera_to_center_distance),u_pitch:new o.Uniform1f(P,d.u_pitch),u_rotate_symbol:new o.Uniform1i(P,d.u_rotate_symbol),u_aspect_ratio:new o.Uniform1f(P,d.u_aspect_ratio),u_fade_change:new o.Uniform1f(P,d.u_fade_change),u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_label_plane_matrix:new o.UniformMatrix4f(P,d.u_label_plane_matrix),u_coord_matrix:new o.UniformMatrix4f(P,d.u_coord_matrix),u_is_text:new o.Uniform1i(P,d.u_is_text),u_pitch_with_map:new o.Uniform1i(P,d.u_pitch_with_map),u_texsize:new o.Uniform2f(P,d.u_texsize),u_texture:new o.Uniform1i(P,d.u_texture)}),symbolSDF:(P,d)=>({u_is_size_zoom_constant:new o.Uniform1i(P,d.u_is_size_zoom_constant),u_is_size_feature_constant:new o.Uniform1i(P,d.u_is_size_feature_constant),u_size_t:new o.Uniform1f(P,d.u_size_t),u_size:new o.Uniform1f(P,d.u_size),u_camera_to_center_distance:new o.Uniform1f(P,d.u_camera_to_center_distance),u_pitch:new o.Uniform1f(P,d.u_pitch),u_rotate_symbol:new o.Uniform1i(P,d.u_rotate_symbol),u_aspect_ratio:new o.Uniform1f(P,d.u_aspect_ratio),u_fade_change:new o.Uniform1f(P,d.u_fade_change),u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_label_plane_matrix:new o.UniformMatrix4f(P,d.u_label_plane_matrix),u_coord_matrix:new o.UniformMatrix4f(P,d.u_coord_matrix),u_is_text:new o.Uniform1i(P,d.u_is_text),u_pitch_with_map:new o.Uniform1i(P,d.u_pitch_with_map),u_texsize:new o.Uniform2f(P,d.u_texsize),u_texture:new o.Uniform1i(P,d.u_texture),u_gamma_scale:new o.Uniform1f(P,d.u_gamma_scale),u_device_pixel_ratio:new o.Uniform1f(P,d.u_device_pixel_ratio),u_is_halo:new o.Uniform1i(P,d.u_is_halo)}),symbolTextAndIcon:(P,d)=>({u_is_size_zoom_constant:new o.Uniform1i(P,d.u_is_size_zoom_constant),u_is_size_feature_constant:new o.Uniform1i(P,d.u_is_size_feature_constant),u_size_t:new o.Uniform1f(P,d.u_size_t),u_size:new o.Uniform1f(P,d.u_size),u_camera_to_center_distance:new o.Uniform1f(P,d.u_camera_to_center_distance),u_pitch:new o.Uniform1f(P,d.u_pitch),u_rotate_symbol:new o.Uniform1i(P,d.u_rotate_symbol),u_aspect_ratio:new o.Uniform1f(P,d.u_aspect_ratio),u_fade_change:new o.Uniform1f(P,d.u_fade_change),u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_label_plane_matrix:new o.UniformMatrix4f(P,d.u_label_plane_matrix),u_coord_matrix:new o.UniformMatrix4f(P,d.u_coord_matrix),u_is_text:new o.Uniform1i(P,d.u_is_text),u_pitch_with_map:new o.Uniform1i(P,d.u_pitch_with_map),u_texsize:new o.Uniform2f(P,d.u_texsize),u_texsize_icon:new o.Uniform2f(P,d.u_texsize_icon),u_texture:new o.Uniform1i(P,d.u_texture),u_texture_icon:new o.Uniform1i(P,d.u_texture_icon),u_gamma_scale:new o.Uniform1f(P,d.u_gamma_scale),u_device_pixel_ratio:new o.Uniform1f(P,d.u_device_pixel_ratio),u_is_halo:new o.Uniform1i(P,d.u_is_halo)}),background:(P,d)=>({u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_opacity:new o.Uniform1f(P,d.u_opacity),u_color:new o.UniformColor(P,d.u_color)}),backgroundPattern:(P,d)=>({u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_opacity:new o.Uniform1f(P,d.u_opacity),u_image:new o.Uniform1i(P,d.u_image),u_pattern_tl_a:new o.Uniform2f(P,d.u_pattern_tl_a),u_pattern_br_a:new o.Uniform2f(P,d.u_pattern_br_a),u_pattern_tl_b:new o.Uniform2f(P,d.u_pattern_tl_b),u_pattern_br_b:new o.Uniform2f(P,d.u_pattern_br_b),u_texsize:new o.Uniform2f(P,d.u_texsize),u_mix:new o.Uniform1f(P,d.u_mix),u_pattern_size_a:new o.Uniform2f(P,d.u_pattern_size_a),u_pattern_size_b:new o.Uniform2f(P,d.u_pattern_size_b),u_scale_a:new o.Uniform1f(P,d.u_scale_a),u_scale_b:new o.Uniform1f(P,d.u_scale_b),u_pixel_coord_upper:new o.Uniform2f(P,d.u_pixel_coord_upper),u_pixel_coord_lower:new o.Uniform2f(P,d.u_pixel_coord_lower),u_tile_units_to_pixels:new o.Uniform1f(P,d.u_tile_units_to_pixels)}),terrain:(P,d)=>({u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_texture:new o.Uniform1i(P,d.u_texture),u_ele_delta:new o.Uniform1f(P,d.u_ele_delta)}),terrainDepth:(P,d)=>({u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_ele_delta:new o.Uniform1f(P,d.u_ele_delta)}),terrainCoords:(P,d)=>({u_matrix:new o.UniformMatrix4f(P,d.u_matrix),u_texture:new o.Uniform1i(P,d.u_texture),u_terrain_coords_id:new o.Uniform1f(P,d.u_terrain_coords_id),u_ele_delta:new o.Uniform1f(P,d.u_ele_delta)})};class Eg{constructor(d,v,E){var A=(this.context=d).gl;this.buffer=A.createBuffer(),this.dynamicDraw=!!E,this.context.unbindVAO(),d.bindElementBuffer.set(this.buffer),A.bufferData(A.ELEMENT_ARRAY_BUFFER,v.arrayBuffer,this.dynamicDraw?A.DYNAMIC_DRAW:A.STATIC_DRAW),this.dynamicDraw||delete v.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(d){var v=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),v.bufferSubData(v.ELEMENT_ARRAY_BUFFER,0,d.arrayBuffer)}destroy(){var d=this.context.gl;this.buffer&&(d.deleteBuffer(this.buffer),delete this.buffer)}}const hp={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class ly{constructor(d,v,E,A){this.length=v.length,this.attributes=E,this.itemSize=v.bytesPerElement,this.dynamicDraw=A,E=(this.context=d).gl,this.buffer=E.createBuffer(),d.bindVertexBuffer.set(this.buffer),E.bufferData(E.ARRAY_BUFFER,v.arrayBuffer,this.dynamicDraw?E.DYNAMIC_DRAW:E.STATIC_DRAW),this.dynamicDraw||delete v.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(d){if(d.length!==this.length)throw new Error(`Length of new data is ${d.length}, which doesn't match current length of `+this.length);var v=this.context.gl;this.bind(),v.bufferSubData(v.ARRAY_BUFFER,0,d.arrayBuffer)}enableAttributes(d,v){for(let A=0;A<this.attributes.length;A++){var E=this.attributes[A],E=v.attributes[E.name];E!==void 0&&d.enableVertexAttribArray(E)}}setVertexAttribPointers(d,v,E){for(let G=0;G<this.attributes.length;G++){var A=this.attributes[G],M=v.attributes[A.name];M!==void 0&&d.vertexAttribPointer(M,A.components,d[hp[A.type]],!1,this.itemSize,A.offset+this.itemSize*(E||0))}}destroy(){var d=this.context.gl;this.buffer&&(d.deleteBuffer(this.buffer),delete this.buffer)}}const fp=new WeakMap;function rf(P){var d;return fp.has(P)?fp.get(P):(d=(d=P.getParameter(P.VERSION))==null?void 0:d.startsWith("WebGL 2.0"),fp.set(P,d),d)}class hn{constructor(d){this.gl=d.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(d){}getDefault(){return this.default}setDefault(){this.set(this.default)}}class so extends hn{getDefault(){return o.Color.transparent}set(d){var v=this.current;d.r===v.r&&d.g===v.g&&d.b===v.b&&d.a===v.a&&!this.dirty||(this.gl.clearColor(d.r,d.g,d.b,d.a),this.current=d,this.dirty=!1)}}class pd extends hn{getDefault(){return 1}set(d){d===this.current&&!this.dirty||(this.gl.clearDepth(d),this.current=d,this.dirty=!1)}}class Lv extends hn{getDefault(){return 0}set(d){d===this.current&&!this.dirty||(this.gl.clearStencil(d),this.current=d,this.dirty=!1)}}class Pc extends hn{getDefault(){return[!0,!0,!0,!0]}set(d){var v=this.current;d[0]===v[0]&&d[1]===v[1]&&d[2]===v[2]&&d[3]===v[3]&&!this.dirty||(this.gl.colorMask(d[0],d[1],d[2],d[3]),this.current=d,this.dirty=!1)}}class Pl extends hn{getDefault(){return!0}set(d){d===this.current&&!this.dirty||(this.gl.depthMask(d),this.current=d,this.dirty=!1)}}class Cg extends hn{getDefault(){return 255}set(d){d===this.current&&!this.dirty||(this.gl.stencilMask(d),this.current=d,this.dirty=!1)}}class pp extends hn{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(d){var v=this.current;d.func===v.func&&d.ref===v.ref&&d.mask===v.mask&&!this.dirty||(this.gl.stencilFunc(d.func,d.ref,d.mask),this.current=d,this.dirty=!1)}}class xg extends hn{getDefault(){var d=this.gl;return[d.KEEP,d.KEEP,d.KEEP]}set(d){var v=this.current;d[0]===v[0]&&d[1]===v[1]&&d[2]===v[2]&&!this.dirty||(this.gl.stencilOp(d[0],d[1],d[2]),this.current=d,this.dirty=!1)}}class Xd extends hn{getDefault(){return!1}set(d){var v;d===this.current&&!this.dirty||(v=this.gl,d?v.enable(v.STENCIL_TEST):v.disable(v.STENCIL_TEST),this.current=d,this.dirty=!1)}}class Ka extends hn{getDefault(){return[0,1]}set(d){var v=this.current;d[0]===v[0]&&d[1]===v[1]&&!this.dirty||(this.gl.depthRange(d[0],d[1]),this.current=d,this.dirty=!1)}}class Ou extends hn{getDefault(){return!1}set(d){var v;d===this.current&&!this.dirty||(v=this.gl,d?v.enable(v.DEPTH_TEST):v.disable(v.DEPTH_TEST),this.current=d,this.dirty=!1)}}class ru extends hn{getDefault(){return this.gl.LESS}set(d){d===this.current&&!this.dirty||(this.gl.depthFunc(d),this.current=d,this.dirty=!1)}}class Qd extends hn{getDefault(){return!1}set(d){var v;d===this.current&&!this.dirty||(v=this.gl,d?v.enable(v.BLEND):v.disable(v.BLEND),this.current=d,this.dirty=!1)}}class Zl extends hn{getDefault(){var d=this.gl;return[d.ONE,d.ZERO]}set(d){var v=this.current;d[0]===v[0]&&d[1]===v[1]&&!this.dirty||(this.gl.blendFunc(d[0],d[1]),this.current=d,this.dirty=!1)}}class al extends hn{getDefault(){return o.Color.transparent}set(d){var v=this.current;d.r===v.r&&d.g===v.g&&d.b===v.b&&d.a===v.a&&!this.dirty||(this.gl.blendColor(d.r,d.g,d.b,d.a),this.current=d,this.dirty=!1)}}class ds extends hn{getDefault(){return this.gl.FUNC_ADD}set(d){d===this.current&&!this.dirty||(this.gl.blendEquation(d),this.current=d,this.dirty=!1)}}class nf extends hn{getDefault(){return!1}set(d){var v;d===this.current&&!this.dirty||(v=this.gl,d?v.enable(v.CULL_FACE):v.disable(v.CULL_FACE),this.current=d,this.dirty=!1)}}class Tg extends hn{getDefault(){return this.gl.BACK}set(d){d===this.current&&!this.dirty||(this.gl.cullFace(d),this.current=d,this.dirty=!1)}}class nu extends hn{getDefault(){return this.gl.CCW}set(d){d===this.current&&!this.dirty||(this.gl.frontFace(d),this.current=d,this.dirty=!1)}}class Hv extends hn{getDefault(){return null}set(d){d===this.current&&!this.dirty||(this.gl.useProgram(d),this.current=d,this.dirty=!1)}}class Jd extends hn{getDefault(){return this.gl.TEXTURE0}set(d){d===this.current&&!this.dirty||(this.gl.activeTexture(d),this.current=d,this.dirty=!1)}}class Za extends hn{getDefault(){var d=this.gl;return[0,0,d.drawingBufferWidth,d.drawingBufferHeight]}set(d){var v=this.current;d[0]===v[0]&&d[1]===v[1]&&d[2]===v[2]&&d[3]===v[3]&&!this.dirty||(this.gl.viewport(d[0],d[1],d[2],d[3]),this.current=d,this.dirty=!1)}}class Sg extends hn{getDefault(){return null}set(d){var v;d===this.current&&!this.dirty||((v=this.gl).bindFramebuffer(v.FRAMEBUFFER,d),this.current=d,this.dirty=!1)}}class Ss extends hn{getDefault(){return null}set(d){var v;d===this.current&&!this.dirty||((v=this.gl).bindRenderbuffer(v.RENDERBUFFER,d),this.current=d,this.dirty=!1)}}class Di extends hn{getDefault(){return null}set(d){var v;d===this.current&&!this.dirty||((v=this.gl).bindTexture(v.TEXTURE_2D,d),this.current=d,this.dirty=!1)}}class cy extends hn{getDefault(){return null}set(d){var v;d===this.current&&!this.dirty||((v=this.gl).bindBuffer(v.ARRAY_BUFFER,d),this.current=d,this.dirty=!1)}}class of extends hn{getDefault(){return null}set(d){var v=this.gl;v.bindBuffer(v.ELEMENT_ARRAY_BUFFER,d),this.current=d,this.dirty=!1}}class uy extends hn{getDefault(){return null}set(d){var v;d===this.current&&!this.dirty||(rf(v=this.gl)?v.bindVertexArray(d):(v=v.getExtension("OES_vertex_array_object"))!=null&&v.bindVertexArrayOES(d),this.current=d,this.dirty=!1)}}class eh extends hn{getDefault(){return 4}set(d){var v;d===this.current&&!this.dirty||((v=this.gl).pixelStorei(v.UNPACK_ALIGNMENT,d),this.current=d,this.dirty=!1)}}class la extends hn{getDefault(){return!1}set(d){var v;d===this.current&&!this.dirty||((v=this.gl).pixelStorei(v.UNPACK_PREMULTIPLY_ALPHA_WEBGL,d),this.current=d,this.dirty=!1)}}class af extends hn{getDefault(){return!1}set(d){var v;d===this.current&&!this.dirty||((v=this.gl).pixelStorei(v.UNPACK_FLIP_Y_WEBGL,d),this.current=d,this.dirty=!1)}}
704class Ig extends hn{constructor(d,v){super(d),this.context=d,this.parent=v}getDefault(){return null}}class _C extends Ig{setDirty(){this.dirty=!0}set(d){var v;d===this.current&&!this.dirty||(this.context.bindFramebuffer.set(this.parent),(v=this.gl).framebufferTexture2D(v.FRAMEBUFFER,v.COLOR_ATTACHMENT0,v.TEXTURE_2D,d,0),this.current=d,this.dirty=!1)}}class dy extends Ig{set(d){var v;d===this.current&&!this.dirty||(this.context.bindFramebuffer.set(this.parent),(v=this.gl).framebufferRenderbuffer(v.FRAMEBUFFER,v.DEPTH_ATTACHMENT,v.RENDERBUFFER,d),this.current=d,this.dirty=!1)}}class hy extends Ig{set(d){var v;d===this.current&&!this.dirty||(this.context.bindFramebuffer.set(this.parent),(v=this.gl).framebufferRenderbuffer(v.FRAMEBUFFER,v.DEPTH_STENCIL_ATTACHMENT,v.RENDERBUFFER,d),this.current=d,this.dirty=!1)}}class Fv{constructor(d,v,E,A,M){if(this.context=d,this.width=v,this.height=E,v=d.gl,E=this.framebuffer=v.createFramebuffer(),this.colorAttachment=new _C(d,E),A)this.depthAttachment=new(M?hy:dy)(d,E);else if(M)throw new Error("Stencil cannot be set without depth");if(v.checkFramebufferStatus(v.FRAMEBUFFER)!==v.FRAMEBUFFER_COMPLETE)throw new Error("Framebuffer is not complete")}destroy(){var d=this.context.gl,v=this.colorAttachment.get();v&&d.deleteTexture(v),this.depthAttachment&&(v=this.depthAttachment.get())&&d.deleteRenderbuffer(v),d.deleteFramebuffer(this.framebuffer)}}class ca{constructor(d,v,E){this.blendFunction=d,this.blendColor=v,this.mask=E}}ca.Replace=[1,0],ca.disabled=new ca(ca.Replace,o.Color.transparent,[!1,!1,!1,!1]),ca.unblended=new ca(ca.Replace,o.Color.transparent,[!0,!0,!0,!0]),ca.alphaBlended=new ca([1,771],o.Color.transparent,[!0,!0,!0,!0]);class fy{constructor(d){var v,E;this.gl=d,this.clearColor=new so(this),this.clearDepth=new pd(this),this.clearStencil=new Lv(this),this.colorMask=new Pc(this),this.depthMask=new Pl(this),this.stencilMask=new Cg(this),this.stencilFunc=new pp(this),this.stencilOp=new xg(this),this.stencilTest=new Xd(this),this.depthRange=new Ka(this),this.depthTest=new Ou(this),this.depthFunc=new ru(this),this.blend=new Qd(this),this.blendFunc=new Zl(this),this.blendColor=new al(this),this.blendEquation=new ds(this),this.cullFace=new nf(this),this.cullFaceSide=new Tg(this),this.frontFace=new nu(this),this.program=new Hv(this),this.activeTexture=new Jd(this),this.viewport=new Za(this),this.bindFramebuffer=new Sg(this),this.bindRenderbuffer=new Ss(this),this.bindTexture=new Di(this),this.bindVertexBuffer=new cy(this),this.bindElementBuffer=new of(this),this.bindVertexArray=new uy(this),this.pixelStoreUnpack=new eh(this),this.pixelStoreUnpackPremultiplyAlpha=new la(this),this.pixelStoreUnpackFlipY=new af(this),this.extTextureFilterAnisotropic=d.getExtension("EXT_texture_filter_anisotropic")||d.getExtension("MOZ_EXT_texture_filter_anisotropic")||d.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=d.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.maxTextureSize=d.getParameter(d.MAX_TEXTURE_SIZE),rf(d)?(this.HALF_FLOAT=d.HALF_FLOAT,v=d.getExtension("EXT_color_buffer_half_float"),this.RGBA16F=(E=d.RGBA16F)!=null?E:v==null?void 0:v.RGBA16F_EXT,this.RGB16F=(E=d.RGB16F)!=null?E:v==null?void 0:v.RGB16F_EXT,d.getExtension("EXT_color_buffer_float")):(d.getExtension("EXT_color_buffer_half_float"),d.getExtension("OES_texture_half_float_linear"),E=d.getExtension("OES_texture_half_float"),this.HALF_FLOAT=E==null?void 0:E.HALF_FLOAT_OES)}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.bindVertexArray.dirty=!0,this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(d,v){return new Eg(this,d,v)}createVertexBuffer(d,v,E){return new ly(this,d,v,E)}createRenderbuffer(d,v,E){var A=this.gl,M=A.createRenderbuffer();return this.bindRenderbuffer.set(M),A.renderbufferStorage(A.RENDERBUFFER,d,v,E),this.bindRenderbuffer.set(null),M}createFramebuffer(d,v,E,A){return new Fv(this,d,v,E,A)}clear({color:d,depth:v,stencil:E}){var A=this.gl;let M=0;d&&(M|=A.COLOR_BUFFER_BIT,this.clearColor.set(d),this.colorMask.set([!0,!0,!0,!0])),v!==void 0&&(M|=A.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(v),this.depthMask.set(!0)),E!==void 0&&(M|=A.STENCIL_BUFFER_BIT,this.clearStencil.set(E),this.stencilMask.set(255)),A.clear(M)}setCullFace(d){d.enable===!1?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(d.mode),this.frontFace.set(d.frontFace))}
vendor: 9,347 bytes, line 704
704setDepthMode(d){d.func!==this.gl.ALWAYS||d.mask?(this.depthTest.set(!0),this.depthFunc.set(d.func),this.depthMask.set(d.mask),this.depthRange.set(d.range)):this.depthTest.set(!1)}setStencilMode(d){d.test.func!==this.gl.ALWAYS||d.mask?(this.stencilTest.set(!0),this.stencilMask.set(d.mask),this.stencilOp.set([d.fail,d.depthFail,d.pass]),this.stencilFunc.set({func:d.test.func,ref:d.ref,mask:d.test.mask})):this.stencilTest.set(!1)}setColorMode(d){o.deepEqual(d.blendFunction,ca.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(d.blendFunction),this.blendColor.set(d.blendColor)),this.colorMask.set(d.mask)}createVertexArray(){var d;return rf(this.gl)?this.gl.createVertexArray():(d=this.gl.getExtension("OES_vertex_array_object"))==null?void 0:d.createVertexArrayOES()}deleteVertexArray(d){var v;return rf(this.gl)?this.gl.deleteVertexArray(d):(v=this.gl.getExtension("OES_vertex_array_object"))==null?void 0:v.deleteVertexArrayOES(d)}unbindVAO(){this.bindVertexArray.set(null)}}class fi{constructor(d,v,E){this.func=d,this.mask=v,this.range=E}}fi.ReadOnly=!1,fi.ReadWrite=!0,fi.disabled=new fi(519,fi.ReadOnly,[0,1]);class Qi{constructor(d,v,E,A,M,G){this.test=d,this.ref=v,this.mask=E,this.fail=A,this.depthFail=M,this.pass=G}}Qi.disabled=new Qi({func:519,mask:0},0,0,7680,7680,7680);class Mo{constructor(d,v,E){this.enable=d,this.mode=v,this.frontFace=E}}Mo.disabled=new Mo(!1,1029,2305),Mo.backCCW=new Mo(!0,1029,2305);let py;function P_(P,d,v,E,A,M,G){var ee=P.context,he=ee.gl,Ie=P.useProgram("collisionBox"),Ne=[];let we=0,De=0;for(let an=0;an<E.length;an++){var nt=E[an],at=d.getTile(nt),ut=at.getBucket(v);if(ut){let jr=nt.posMatrix;A[0]===0&&A[1]===0||(jr=P.translatePosMatrix(nt.posMatrix,at,A,M));var st,_t,xt=G?ut.textCollisionBox:ut.iconCollisionBox,At=ut.collisionCircleArray;0<At.length&&(st=o.create(),_t=jr,o.mul(st,ut.placementInvProjMatrix,P.transform.glCoordMatrix),o.mul(st,st,ut.placementViewportMatrix),Ne.push({circleArray:At,circleOffset:De,transform:_t,invTransform:st,coord:nt}),we+=At.length/4,De=we),xt&&Ie.draw(ee,he.LINES,fi.disabled,Qi.disabled,P.colorModeForRenderPass(),Mo.disabled,ay(jr,P.transform,at),P.style.map.terrain&&P.style.map.terrain.getTerrainData(nt),v.id,xt.layoutVertexBuffer,xt.indexBuffer,xt.segments,null,P.transform.zoom,null,null,xt.collisionVertexBuffer)}}if(G&&Ne.length){var Ft=P.useProgram("collisionCircle"),$t=new o.CollisionCircleLayoutArray;$t.resize(4*we),$t._trim();let an=0;for(const jr of Ne)for(let vr=0;vr<jr.circleArray.length/4;vr++){var yr=4*vr,Bt=jr.circleArray[0+yr],Zt=jr.circleArray[1+yr],Xt=jr.circleArray[2+yr],yr=jr.circleArray[3+yr];$t.emplace(an++,Bt,Zt,Xt,yr,0),$t.emplace(an++,Bt,Zt,Xt,yr,1),$t.emplace(an++,Bt,Zt,Xt,yr,2),$t.emplace(an++,Bt,Zt,Xt,yr,3)}(!py||py.length<2*we)&&(py=(function(jr){var vr=2*jr,sn=new o.QuadTriangleArray;sn.resize(vr),sn._trim();for(let Tr=0;Tr<vr;Tr++){var yn=6*Tr;sn.uint16[0+yn]=4*Tr+0,sn.uint16[1+yn]=4*Tr+1,sn.uint16[2+yn]=4*Tr+2,sn.uint16[3+yn]=4*Tr+2,sn.uint16[4+yn]=4*Tr+3,sn.uint16[5+yn]=4*Tr+0}return sn})(we));var xr=ee.createIndexBuffer(py,!0),Dr=ee.createVertexBuffer($t,o.collisionCircleLayout.members,!0);for(const jr of Ne){var Jr=R_(jr.transform,jr.invTransform,P.transform);Ft.draw(ee,he.TRIANGLES,fi.disabled,Qi.disabled,P.colorModeForRenderPass(),Mo.disabled,Jr,P.style.map.terrain&&P.style.map.terrain.getTerrainData(jr.coord),v.id,Dr,xr,o.SegmentVector.simpleSegment(0,2*jr.circleOffset,jr.circleArray.length,jr.circleArray.length/2),null,P.transform.zoom,null,null,null)}Dr.destroy(),xr.destroy()}}const Ag=o.identity(new Float32Array(16));function k_(P,d,v,E,A){if(P.renderPass==="translucent"){var M=Qi.disabled,G=P.colorModeForRenderPass();if(v._unevaluatedLayout.hasValue("text-variable-anchor")||v._unevaluatedLayout.hasValue("text-variable-anchor-offset")){var ee=E,he=P,Ie=v,Ne=d,we=v.layout.get("text-rotation-alignment"),De=v.layout.get("text-pitch-alignment"),nt=A,at=he.transform,ut=we==="map",st=De==="map";for(const Zt of ee){var _t,xt,At,Ft,$t=Ne.getTile(Zt),Bt=$t.getBucket(Ie);Bt&&Bt.text&&Bt.text.segments.get().length&&(_t=Bt.textSizeData,_t=o.evaluateSizeForZoom(_t,at.zoom),xt=qr($t,1,he.transform.zoom),xt=Mt(Zt.posMatrix,st,ut,he.transform,xt),At=Ie.layout.get("icon-text-fit")!=="none"&&Bt.hasIconData(),_t)&&($t=Math.pow(2,at.zoom-$t.tileID.overscaledZ),Ft=he.style.map.terrain?(Xt,yr)=>he.style.map.terrain.getElevation(Zt,Xt,yr):null,(function(Xt,yr,xr,Dr,Jr,an,jr,vr,sn,yn,Tr){var Jn=Xt.text.placedSymbolArray,Li=Xt.text.dynamicLayoutVertexArray,Tn=Xt.icon.dynamicLayoutVertexArray,oi={};Li.clear();for(let Ai=0;Ai<Jn.length;Ai++){var Dn=Jn.get(Ai),bi=Xt.allowVerticalPlacement&&!Dn.placedOrientation,bi=Dn.hidden||!Dn.crossTileID||bi?null:Dr[Dn.crossTileID];if(bi){var li=new o.Point(Dn.anchorX,Dn.anchorY),Ln=fe(li,xr?jr:an,Tr),_o=Ee(Jr.cameraToCenterDistance,Ln.signedDistanceFromCamera);let Fi=o.evaluateSizeForFeature(Xt.textSizeData,sn,Dn)*_o/o.ONE_EM;xr&&(Fi*=Xt.tilePixelRatio/vr);var{width:_o,height:bi,anchor:Ps,textOffset:ra,textBoxScale:Mc}=bi,Ps=(function(uo,jo,Nc,ps,ia,ic){var{horizontalAlign:uo,verticalAlign:Ol}=o.getAnchorAlignment(uo),uo=-(uo-.5)*jo,jo=-(Ol-.5)*Nc;return new o.Point((uo/ia+ps[0])*ic,(jo/ia+ps[1])*ic)})(Ps,_o,bi,ra,Mc,Fi),Hi=xr?fe(li.add(Ps),an,Tr).point:Ln.point.add(yr?Ps.rotate(-Jr.angle):Ps),lo=Xt.allowVerticalPlacement&&Dn.placedOrientation===o.WritingMode.vertical?Math.PI/2:0;for(let Do=0;Do<Dn.numGlyphs;Do++)o.addDynamicAttributes(Li,Hi,lo);yn&&0<=Dn.associatedIconIndex&&(oi[Dn.associatedIconIndex]={shiftedAnchor:Hi,angle:lo})}else Vt(Dn.numGlyphs,Li)}if(yn){Tn.clear();var cl=Xt.icon.placedSymbolArray;for(let Ai=0;Ai<cl.length;Ai++){var co=cl.get(Ai);if(co.hidden)Vt(co.numGlyphs,Tn);else{var na=oi[Ai];if(na)for(let Fi=0;Fi<co.numGlyphs;Fi++)o.addDynamicAttributes(Tn,na.shiftedAnchor,na.angle);else Vt(co.numGlyphs,Tn)}}Xt.icon.dynamicLayoutVertexBuffer.updateData(Tn)}Xt.text.dynamicLayoutVertexBuffer.updateData(Li)})(Bt,ut,st,nt,at,xt,Zt.posMatrix,$t,_t,At,Ft))}}v.paint.get("icon-opacity").constantOr(1)!==0&&gy(P,d,v,E,!1,v.paint.get("icon-translate"),v.paint.get("icon-translate-anchor"),v.layout.get("icon-rotation-alignment"),v.layout.get("icon-pitch-alignment"),v.layout.get("icon-keep-upright"),M,G),v.paint.get("text-opacity").constantOr(1)!==0&&gy(P,d,v,E,!0,v.paint.get("text-translate"),v.paint.get("text-translate-anchor"),v.layout.get("text-rotation-alignment"),v.layout.get("text-pitch-alignment"),v.layout.get("text-keep-upright"),M,G),d.map.showCollisionBoxes&&(P_(P,d,v,E,v.paint.get("text-translate"),v.paint.get("text-translate-anchor"),!0),P_(P,d,v,E,v.paint.get("icon-translate"),v.paint.get("icon-translate-anchor"),!1))}}function gy(P,d,v,E,A,M,G,ee,he,Ie,Ne,we){var De=P.context,nt=De.gl,at=P.transform,ut=ee==="map",st=he==="map",_t=ee!=="viewport"&&v.layout.get("symbol-placement")!=="point",xt=ut&&!st&&!_t,At=!v.layout.get("symbol-sort-key").isConstant();let Ft=!1;var $t=P.depthModeForSublayer(0,fi.ReadOnly),Bt=v._unevaluatedLayout.hasValue("text-variable-anchor")||v._unevaluatedLayout.hasValue("text-variable-anchor-offset"),Zt=[];for(const jo of E){var Xt=d.getTile(jo),yr=Xt.getBucket(v);if(yr){var xr=A?yr.text:yr.icon;if(xr&&xr.segments.get().length&&xr.hasVisibleVertices){var yn=xr.programConfigurations.get(v.id),Dr=A||yr.sdfIcons,Jr=A?yr.textSizeData:yr.iconSizeData,sn=st||at.pitch!==0,an=P.useProgram((jr=Dr,an=A,yr.iconsInText&&an?"symbolTextAndIcon":jr?"symbolSDF":"symbolIcon"),yn),jr=o.evaluateSizeForZoom(Jr,at.zoom),vr=P.style.map.terrain&&P.style.map.terrain.getTerrainData(jo);let Dc,Lc=[0,0],xo,cu,_f=null,Kv;A?(xo=Xt.glyphAtlasTexture,cu=nt.LINEAR,Dc=Xt.glyphAtlasTexture.size,yr.iconsInText&&(Lc=Xt.imageAtlasTexture.size,_f=Xt.imageAtlasTexture,yn=Jr.kind==="composite"||Jr.kind==="camera",Kv=sn||P.options.rotating||P.options.zooming||yn?nt.LINEAR:nt.NEAREST)):(yn=v.layout.get("icon-size").constantOr(0)!==1||yr.iconsNeedLinear,xo=Xt.imageAtlasTexture,cu=Dr||P.options.rotating||P.options.zooming||yn||sn?nt.LINEAR:nt.NEAREST,Dc=Xt.imageAtlasTexture.size);var yn=qr(Xt,1,P.transform.zoom),sn=Mt(jo.posMatrix,st,ut,P.transform,yn),yn=Te(jo.posMatrix,st,ut,P.transform,yn),Tr=Bt&&yr.hasTextData(),Tr=v.layout.get("icon-text-fit")!=="none"&&Tr&&yr.hasIconData();if(_t){var Jn=P.style.map.terrain?(Ml,hh)=>P.style.map.terrain.getElevation(jo,Ml,hh):null,Li=v.layout.get("text-rotation-alignment")==="map";{Tn=void 0,oi=void 0,Dn=void 0,bi=void 0,li=void 0,Ln=void 0,_o=void 0,ra=void 0,Mc=void 0,Ps=void 0,Hi=void 0,lo=void 0,cl=void 0,co=void 0,na=void 0,Ai=void 0,Fi=void 0,ia=void 0,Do=void 0,Ta=void 0,Ks=void 0,Nc=void 0,ps=void 0;var Tn=yr,oi=jo.posMatrix,Dn=P,bi=A,li=sn,Ln=yn,_o=st,ra=Ie,Mc=Li,Ps=Jn,Hi=bi?Tn.textSizeData:Tn.iconSizeData,lo=o.evaluateSizeForZoom(Hi,Dn.transform.zoom),cl=[256/Dn.width*2+1,256/Dn.height*2+1],co=(bi?Tn.text:Tn.icon).dynamicLayoutVertexArray,na=(co.clear(),Tn.lineVertexArray),Ai=(bi?Tn.text:Tn.icon).placedSymbolArray,Fi=Dn.transform.width/Dn.transform.height;let Ml=!1;for(let hh=0;hh<Ai.length;hh++){var Ks,Do,Ta,Nc,ps,ia=Ai.get(hh);if(ia.hidden||ia.writingMode===o.WritingMode.vertical&&!Ml)Vt(ia.numGlyphs,co);else{Ml=!1;let Nl;Ps?(Nl=[ia.anchorX,ia.anchorY,Ps(ia.anchorX,ia.anchorY),1],o.transformMat4(Nl,Nl,oi)):ar(Nl=[ia.anchorX,ia.anchorY,0,1],Nl,oi),Ta=Nl,Do=cl,Ks=void 0,Ks=Ta[0]/Ta[3],Ta=Ta[1]/Ta[3],(!(Ks>
704=-Do[0]&&Ks<=Do[0]&&Ta>=-Do[1]&&Ta<=Do[1])||(Ks=Nl[3],Ta=Ee(Dn.transform.cameraToCenterDistance,Ks),Do=o.evaluateSizeForFeature(Hi,lo,ia),Ks=_o?Do/Ta:Do*Ta,Ta=fe(Do=new o.Point(ia.anchorX,ia.anchorY),li,Ps).point,ps=gt(ia,Ks,!(Nc={projections:{},offsets:{}}),ra,oi,li,Ln,Tn.glyphOffsetArray,na,co,Ta,Do,Nc,Fi,Mc,Ps),Ml=ps.useVertical,ps.notEnoughRoom)||Ml||ps.needsFlipping&&gt(ia,Ks,!0,ra,oi,li,Ln,Tn.glyphOffsetArray,na,co,Ta,Do,Nc,Fi,Mc,Ps).notEnoughRoom)&&Vt(ia.numGlyphs,co)}}(bi?Tn.text:Tn.icon).dynamicLayoutVertexBuffer.updateData(co)}}Li=P.translatePosMatrix(jo.posMatrix,Xt,M,G),Jn=_t||A&&Bt||Tr?Ag:sn,bi=P.translatePosMatrix(yn,Xt,M,G,!0),Tr=Dr&&v.paint.get(A?"text-halo-width":"icon-halo-width").constantOr(1)!==0;var ic={program:an,buffers:xr,uniformValues:Dr?yr.iconsInText?Hb(Jr.kind,jr,xt,st,P,Li,Jn,bi,Dc,Lc):Rc(Jr.kind,jr,xt,st,P,Li,Jn,bi,A,Dc):tu(Jr.kind,jr,xt,st,P,Li,Jn,bi,A,Dc),atlasTexture:xo,atlasTextureIcon:_f,atlasInterpolation:cu,atlasInterpolationIcon:Kv,isSDF:Dr,hasHalo:Tr};if(At&&yr.canOverlap){Ft=!0;for(const Ml of xr.segments.get())Zt.push({segments:new o.SegmentVector([Ml]),sortKey:Ml.sortKey,state:ic,terrainData:vr})}else Zt.push({segments:xr.segments,sortKey:0,state:ic,terrainData:vr})}}}Ft&&Zt.sort((jo,Dc)=>jo.sortKey-Dc.sortKey);for(const jo of Zt){var Ol,uo=jo.state;De.activeTexture.set(nt.TEXTURE0),uo.atlasTexture.bind(uo.atlasInterpolation,nt.CLAMP_TO_EDGE),uo.atlasTextureIcon&&(De.activeTexture.set(nt.TEXTURE1),uo.atlasTextureIcon)&&uo.atlasTextureIcon.bind(uo.atlasInterpolationIcon,nt.CLAMP_TO_EDGE),uo.isSDF&&(Ol=uo.uniformValues,uo.hasHalo&&(Ol.u_is_halo=1,Fb(uo.buffers,jo.segments,v,P,uo.program,$t,Ne,we,Ol,jo.terrainData)),Ol.u_is_halo=0),Fb(uo.buffers,jo.segments,v,P,uo.program,$t,Ne,we,uo.uniformValues,jo.terrainData)}}function Fb(P,d,v,E,A,M,G,ee,he,Ie){var Ne=E.context,we=Ne.gl;A.draw(Ne,we.TRIANGLES,M,G,ee,Mo.disabled,he,Ie,v.id,P.layoutVertexBuffer,P.indexBuffer,d,v.paint,E.transform.zoom,P.programConfigurations.get(v.id),P.dynamicLayoutVertexBuffer,P.opacityVertexBuffer)}function Rg(P,d,v,E){if(P.renderPass==="translucent"){var A=v.paint.get("circle-opacity"),M=v.paint.get("circle-stroke-width"),G=v.paint.get("circle-stroke-opacity"),ee=!v.layout.get("circle-sort-key").isConstant();if(A.constantOr(1)!==0||M.constantOr(1)!==0&&G.constantOr(1)!==0){var he=P.context,Ie=he.gl,Ne=P.depthModeForSublayer(0,fi.ReadOnly),we=Qi.disabled,De=P.colorModeForRenderPass(),nt=[];for(let jr=0;jr<E.length;jr++){var at=E[jr],ut=d.getTile(at),st=ut.getBucket(v);if(st){var _t=st.programConfigurations.get(v.id),xt=P.useProgram("circle",_t),At=st.layoutVertexBuffer,Ft=st.indexBuffer,$t=P.style.map.terrain&&P.style.map.terrain.getTerrainData(at),Bt={programConfiguration:_t,program:xt,layoutVertexBuffer:At,indexBuffer:Ft,uniformValues:((vr,sn,yn,Tr)=>{var Jn,Li=vr.transform;let Tn,oi;return oi=Tr.paint.get("circle-pitch-alignment")==="map"?(Jn=qr(yn,1,Li.zoom),Tn=!0,[Jn,Jn]):(Tn=!1,Li.pixelsToGLUnits),{u_camera_to_center_distance:Li.cameraToCenterDistance,u_scale_with_map:+(Tr.paint.get("circle-pitch-scale")==="map"),u_matrix:vr.translatePosMatrix(sn.posMatrix,yn,Tr.paint.get("circle-translate"),Tr.paint.get("circle-translate-anchor")),u_pitch_with_map:+Tn,u_device_pixel_ratio:vr.pixelRatio,u_extrude_scale:oi}})(P,at,ut,v),terrainData:$t};if(ee)for(const vr of st.segments.get())nt.push({segments:new o.SegmentVector([vr]),sortKey:vr.sortKey,state:Bt});else nt.push({segments:st.segments,sortKey:0,state:Bt})}}ee&&nt.sort((jr,vr)=>jr.sortKey-vr.sortKey);for(const jr of nt){var{programConfiguration:Zt,program:Xt,layoutVertexBuffer:yr,indexBuffer:xr,uniformValues:Dr,terrainData:Jr}=jr.state,an=jr.segments;Xt.draw(he,Ie.TRIANGLES,Ne,we,De,Mo.disabled,Dr,Jr,v.id,yr,xr,an,v.paint,P.transform.zoom,Zt)}}}}function my(P,d,v,E){if(v.paint.get("heatmap-opacity")!==0){if(P.renderPass==="offscreen"){var A=P.context,M=A.gl,G=Qi.disabled,ee=new ca([M.ONE,M.ONE],o.Color.transparent,[!0,!0,!0,!0]);{var he=A,Ie=P,Ne=v,we=he.gl;he.activeTexture.set(we.TEXTURE1),he.viewport.set([0,0,Ie.width/4,Ie.height/4]);let At=Ne.heatmapFbo;At?(we.bindTexture(we.TEXTURE_2D,At.colorAttachment.get()),he.bindFramebuffer.set(At.framebuffer)):(xt=we.createTexture(),we.bindTexture(we.TEXTURE_2D,xt),we.texParameteri(we.TEXTURE_2D,we.TEXTURE_WRAP_S,we.CLAMP_TO_EDGE),we.texParameteri(we.TEXTURE_2D,we.TEXTURE_WRAP_T,we.CLAMP_TO_EDGE),we.texParameteri(we.TEXTURE_2D,we.TEXTURE_MIN_FILTER,we.LINEAR),we.texParameteri(we.TEXTURE_2D,we.TEXTURE_MAG_FILTER,we.LINEAR),At=Ne.heatmapFbo=he.createFramebuffer(Ie.width/4,Ie.height/4,!1,!1),(function(xr,$t,Bt,Zt){var Xt=xr.gl,yr=(yr=xr.HALF_FLOAT)!=null?yr:Xt.UNSIGNED_BYTE,xr=(xr=xr.RGBA16F)!=null?xr:Xt.RGBA;
vendor: 3,633 bytes, line 704
704Xt.texImage2D(Xt.TEXTURE_2D,0,xr,$t.width/4,$t.height/4,0,Xt.RGBA,yr,null),Zt.colorAttachment.set(Bt)})(he,Ie,xt,At))}A.clear({color:o.Color.transparent});for(let At=0;At<E.length;At++){var De,nt,at,ut,st,_t=E[At];d.hasRenderableParent(_t)||(nt=(De=d.getTile(_t)).getBucket(v))&&(at=nt.programConfigurations.get(v.id),ut=P.useProgram("heatmap",at),st=P.transform.zoom,ut.draw(A,M.TRIANGLES,fi.disabled,G,ee,Mo.disabled,(ut=_t.posMatrix,_t=De,De=st,st=v.paint.get("heatmap-intensity"),{u_matrix:ut,u_extrude_scale:qr(_t,1,De),u_intensity:st}),null,v.id,nt.layoutVertexBuffer,nt.indexBuffer,nt.segments,v.paint,P.transform.zoom,at))}A.viewport.set([0,0,P.width,P.height])}else if(P.renderPass==="translucent"){P.context.setColorMode(P.colorModeForRenderPass());var we=P,Ne=v,he=we.context,Ie=he.gl,xt=Ne.heatmapFbo;if(xt){he.activeTexture.set(Ie.TEXTURE0),Ie.bindTexture(Ie.TEXTURE_2D,xt.colorAttachment.get()),he.activeTexture.set(Ie.TEXTURE1);let Zt=Ne.colorRampTexture;(Zt=Zt||(Ne.colorRampTexture=new Q(he,Ne.colorRamp,Ie.RGBA))).bind(Ie.LINEAR,Ie.CLAMP_TO_EDGE),we.useProgram("heatmapTexture").draw(he,Ie.TRIANGLES,fi.disabled,Qi.disabled,we.colorModeForRenderPass(),Mo.disabled,sy(we,Ne,0,1),null,Ne.id,we.viewportBuffer,we.quadTriangleIndexBuffer,we.viewportSegments,Ne.paint,we.transform.zoom)}}}}function Ub(P,d,v,E){if(P.renderPass==="translucent"){var A=v.paint.get("line-opacity"),M=v.paint.get("line-width");if(A.constantOr(1)!==0&&M.constantOr(1)!==0){var G,ee,he,Ie,Ne,we,De,nt,at,ut,st=P.depthModeForSublayer(0,fi.ReadOnly),_t=P.colorModeForRenderPass(),xt=v.paint.get("line-dasharray"),At=v.paint.get("line-pattern"),Ft=At.constantOr(1),$t=v.paint.get("line-gradient"),Bt=v.getCrossfadeParameters(),Zt=Ft?"linePattern":xt?"lineSDF":$t?"lineGradient":"line",Xt=P.context,yr=Xt.gl;let Li=!0;for(const Tn of E){var xr=d.getTile(Tn);if(!Ft||xr.patternsLoaded()){var Dr=xr.getBucket(v);if(Dr){var Jr,an,jr=Dr.programConfigurations.get(v.id),sn=P.context.program.get(),vr=P.useProgram(Zt,jr),sn=Li||vr.program!==sn,yn=P.style.map.terrain&&P.style.map.terrain.getTerrainData(Tn),Tr=At.constantOr(null),Tr=(Tr&&xr.imageAtlas&&(Jr=(an=xr.imageAtlas).patternPositions[Tr.to.toString()],an=an.patternPositions[Tr.from.toString()],Jr)&&an&&jr.setConstantPatternPositions(Jr,an),yn?Tn:null),Jn=Ft?(Jr=xr,an=v,De=Bt,nt=Tr,ut=at=void 0,at=(we=P).transform,ut=Zd(Jr,at),{u_matrix:bg(we,Jr,an,nt),u_texsize:Jr.imageAtlasTexture.size,u_ratio:1/qr(Jr,1,at.zoom),u_device_pixel_ratio:we.pixelRatio,u_image:0,u_scale:[ut,De.fromScale,De.toScale],u_fade:De.t,u_units_to_pixels:[1/at.pixelsToGLUnits[0],1/at.pixelsToGLUnits[1]]}):xt?(nt=xr,we=v,ut=xt,De=Bt,at=Tr,Ne=Ie=Jn=Ie=ee=he=ee=void 0,ee=(G=P).transform,he=G.lineAtlas,ee=Zd(nt,ee),Ie=we.layout.get("line-cap")==="round",Jn=he.getDash(ut.from,Ie),ut=he.getDash(ut.to,Ie),Ie=Jn.width*De.fromScale,Ne=ut.width*De.toScale,o.extend(ku(G,nt,we,at),{u_patternscale_a:[ee/Ie,-Jn.height/2],u_patternscale_b:[ee/Ne,-ut.height/2],u_sdfgamma:he.width/(256*Math.min(Ie,Ne)*G.pixelRatio)/2,u_image:0,u_tex_y_a:Jn.y,u_tex_y_b:ut.y,u_mix:De.t})):$t?(ee=P,he=xr,Ie=v,Ne=Dr.lineClipsArray.length,G=Tr,o.extend(ku(ee,he,Ie,G),{u_image:0,u_image_height:Ne})):ku(P,xr,v,Tr);if(Ft)Xt.activeTexture.set(yr.TEXTURE0),xr.imageAtlasTexture.bind(yr.LINEAR,yr.CLAMP_TO_EDGE),jr.updatePaintBuffers(Bt);else if(xt&&(sn||P.lineAtlas.dirty))Xt.activeTexture.set(yr.TEXTURE0),P.lineAtlas.bind(Xt);else if($t){Tr=Dr.gradients[v.id];let oi=Tr.texture;if(v.gradientVersion!==Tr.version){let Dn=256;v.stepInterpolant&&(xr=d.getSource().maxzoom,sn=Tn.canonical.z===xr?Math.ceil(1<<P.transform.maxZoom-Tn.canonical.z):1,xr=
vendor: 10,360 bytes, line 704
704Dr.maxLineLength/o.EXTENT,Dn=o.clamp(o.nextPowerOfTwo(1024*xr*sn),256,Xt.maxTextureSize)),Tr.gradient=o.renderColorRamp({expression:v.gradientExpression(),evaluationKey:"lineProgress",resolution:Dn,image:Tr.gradient||void 0,clips:Dr.lineClipsArray}),Tr.texture?Tr.texture.update(Tr.gradient):Tr.texture=new Q(Xt,Tr.gradient,yr.RGBA),Tr.version=v.gradientVersion,oi=Tr.texture}Xt.activeTexture.set(yr.TEXTURE0),oi.bind(v.stepInterpolant?yr.NEAREST:yr.LINEAR,yr.CLAMP_TO_EDGE)}vr.draw(Xt,yr.TRIANGLES,st,P.stencilModeForClipping(Tn),_t,Mo.disabled,Jn,yn,v.id,Dr.layoutVertexBuffer,Dr.indexBuffer,Dr.segments,v.paint,P.transform.zoom,jr,Dr.layoutVertexBuffer2),Li=!1}}}}}}function Uv(P,d,v,E,A){if(v&&E&&E.imageAtlas){E=E.imageAtlas.patternPositions;let M=E[v.to.toString()],G=E[v.from.toString()];!M&&G&&(M=G),!G&&M&&(G=M),M&&G||(v=A.getPaintProperty(d),M=E[v],G=E[v]),M&&G&&P.setConstantPatternPositions(M,G)}}function Is(P,d,v,E){var A,M,G=v.paint.get("fill-color"),ee=v.paint.get("fill-opacity");ee.constantOr(1)!==0&&(A=P.colorModeForRenderPass(),M=v.paint.get("fill-pattern"),M=P.opaquePassEnabledForLayer()&&!M.constantOr(1)&&G.constantOr(o.Color.transparent).a===1&&ee.constantOr(0)===1?"opaque":"translucent",P.renderPass===M&&(G=P.depthModeForSublayer(1,P.renderPass==="opaque"?fi.ReadWrite:fi.ReadOnly),sf(P,d,v,E,G,A,!1)),P.renderPass==="translucent")&&v.paint.get("fill-antialias")&&(ee=P.depthModeForSublayer(v.getPaintProperty("fill-outline-color")?2:0,fi.ReadOnly),sf(P,d,v,E,ee,A,!0))}function sf(P,d,v,E,A,M,G){var ee=P.context.gl,he="fill-pattern",Ie=v.paint.get(he),Ne=Ie&&Ie.constantOr(1),we=v.getCrossfadeParameters();let De,nt,at,ut,st;De=G?(nt=Ne&&!v.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",ee.LINES):(nt=Ne?"fillPattern":"fill",ee.TRIANGLES);var _t=Ie.constantOr(null);for(const yr of E){var xt,At,Ft,$t,Bt,Zt,Xt=d.getTile(yr);Ne&&!Xt.patternsLoaded()||(xt=Xt.getBucket(v))&&(At=xt.programConfigurations.get(v.id),Ft=P.useProgram(nt,At),$t=P.style.map.terrain&&P.style.map.terrain.getTerrainData(yr),Ne&&(P.context.activeTexture.set(ee.TEXTURE0),Xt.imageAtlasTexture.bind(ee.LINEAR,ee.CLAMP_TO_EDGE),At.updatePaintBuffers(we)),Uv(At,he,_t,Xt,v),Bt=(($t?yr:null)||yr).posMatrix,Bt=P.translatePosMatrix(Bt,Xt,v.paint.get("fill-translate"),v.paint.get("fill-translate-anchor")),at=G?(ut=xt.indexBuffer2,st=xt.segments2,Zt=[ee.drawingBufferWidth,ee.drawingBufferHeight],nt==="fillOutlinePattern"&&Ne?Kd(Bt,P,we,Xt,Zt):Nv(Bt,Zt)):(ut=xt.indexBuffer,st=xt.segments,Ne?Ni(Bt,P,we,Xt):dp(Bt)),Ft.draw(P.context,De,A,P.stencilModeForClipping(yr),M,Mo.disabled,at,$t,v.id,xt.layoutVertexBuffer,ut,st,v.paint,P.transform.zoom,At))}}function Pg(P,d,v,E){var A,M=v.paint.get("fill-extrusion-opacity");M!==0&&P.renderPass==="translucent"&&(A=new fi(P.context.gl.LEQUAL,fi.ReadWrite,P.depthRangeFor3D),M!==1||v.paint.get("fill-extrusion-pattern").constantOr(1)?(Ko(P,d,v,E,A,Qi.disabled,ca.disabled),Ko(P,d,v,E,A,P.stencilModeFor3D(),P.colorModeForRenderPass())):(M=P.colorModeForRenderPass(),Ko(P,d,v,E,A,Qi.disabled,M)))}function Ko(P,d,v,E,A,M,G){var ee=P.context,he=ee.gl,Ie="fill-extrusion-pattern",Ne=v.paint.get(Ie),we=Ne.constantOr(1),De=v.getCrossfadeParameters(),nt=v.paint.get("fill-extrusion-opacity"),at=Ne.constantOr(null);for(const Bt of E){var ut,st,_t,xt,At,Ft=d.getTile(Bt),$t=Ft.getBucket(v);$t&&(ut=P.style.map.terrain&&P.style.map.terrain.getTerrainData(Bt),st=$t.programConfigurations.get(v.id),_t=P.useProgram(we?"fillExtrusionPattern":"fillExtrusion",st),we&&(P.context.activeTexture.set(he.TEXTURE0),Ft.imageAtlasTexture.bind(he.LINEAR,he.CLAMP_TO_EDGE),st.updatePaintBuffers(De)),Uv(st,Ie,at,Ft,v),xt=P.translatePosMatrix(Bt.posMatrix,Ft,v.paint.get("fill-extrusion-translate"),v.paint.get("fill-extrusion-translate-anchor")),At=v.paint.get("fill-extrusion-vertical-gradient"),Ft=we?ef(xt,P,At,nt,Bt,De,Ft):Pu(xt,P,At,nt),_t.draw(ee,ee.gl.TRIANGLES,A,M,G,Mo.backCCW,Ft,ut,v.id,$t.layoutVertexBuffer,$t.indexBuffer,$t.segments,v.paint,P.transform.zoom,st,P.style.map.terrain&&$t.centroidVertexBuffer))}}function th(P,d,v,E){if(P.renderPass==="offscreen"||P.renderPass==="translucent"){var A=P.context,M=P.depthModeForSublayer(0,fi.ReadOnly),G=P.colorModeForRenderPass(),[ee,E]=P.renderPass==="translucent"?P.stencilConfigForOverlap(E):[{},E];for(const Bt of E){var he=d.getTile(Bt);if(he.needsHillshadePrepare!==void 0&&he.needsHillshadePrepare&&P.renderPass==="offscreen"){Ft=At=xt=_t=st=ut=at=nt=De=we=Ne=Ie=void 0;var Ie=P,Ne=he,we=v,De=M,nt=Qi.disabled,at=G,ut=Ie.context,st=ut.gl,_t=Ne.dem;if(_t&&_t.data){var xt=_t.dim,At=_t.stride,Ft=_t.getPixels();ut.activeTexture.set(st.TEXTURE1),ut.pixelStoreUnpackPremultiplyAlpha.set(!1),Ne.demTexture=Ne.demTexture||Ie.getTileTexture(At),(Ne.demTexture?((At=Ne.demTexture).update(Ft,{premultiply:!1}),At):(Ne.demTexture=new Q(ut,Ft,st.RGBA,{premultiply:!1}),Ne.demTexture)).bind(st.NEAREST,st.CLAMP_TO_EDGE),ut.activeTexture.set(st.TEXTURE0);let Zt=Ne.fbo;Zt||((At=new Q(ut,{width:xt,height:xt,data:null},st.RGBA)).bind(st.LINEAR,st.CLAMP_TO_EDGE),(Zt=Ne.fbo=ut.createFramebuffer(xt,xt,!0,!1)).colorAttachment.set(At.texture)),ut.bindFramebuffer.set(Zt.framebuffer),ut.viewport.set([0,0,xt,xt]),Ie.useProgram("hillshadePrepare").draw(ut,st.TRIANGLES,De,nt,at,Mo.disabled,fd(Ne.tileID,_t),null,we.id,Ie.rasterBoundsBuffer,Ie.quadTriangleIndexBuffer,Ie.rasterBoundsSegments),Ne.needsHillshadePrepare=!1}}else P.renderPass==="translucent"&&(Ft=P,At=Bt,xt=he,ut=v,st=M,De=ee[Bt.overscaledZ],nt=G,Ne=Ie=we=_t=at=void 0,at=Ft.context,_t=at.gl,we=xt.fbo)&&(Ie=Ft.useProgram("hillshade"),Ne=Ft.style.map.terrain&&Ft.style.map.terrain.getTerrainData(At),at.activeTexture.set(_t.TEXTURE0),_t.bindTexture(_t.TEXTURE_2D,we.colorAttachment.get()),we=Ne?At:null,Ie.draw(at,_t.TRIANGLES,st,De,nt,Mo.disabled,_g(Ft,xt,ut,we),Ne,ut.id,Ft.rasterBoundsBuffer,Ft.quadTriangleIndexBuffer,Ft.rasterBoundsSegments))}A.viewport.set([0,0,P.width,P.height])}}function kc(P,d,v,E){if(P.renderPass==="translucent"&&v.paint.get("raster-opacity")!==0&&E.length){var A=P.context,M=A.gl,G=d.getSource(),ee=P.useProgram("raster"),he=P.colorModeForRenderPass(),[Ie,E]=G instanceof it?[{},E]:P.stencilConfigForOverlap(E),Ne=E[E.length-1].overscaledZ,we=!P.options.moving;for(const xt of E){var De=P.depthModeForSublayer(xt.overscaledZ-Ne,v.paint.get("raster-opacity")===1?fi.ReadWrite:fi.ReadOnly,M.LESS),st=d.getTile(xt),at=(st.registerFadeDuration(v.paint.get("raster-fade-duration")),d.findLoadedParent(xt,0)),nt=(function($t,Bt,Zt,Xt,yr,xr){Xt=Xt.paint.get("raster-fade-duration");{var Dr;return!xr&&0<Xt?(xr=p.now(),Dr=(xr-$t.timeAdded)/Xt,xr=Bt?(xr-Bt.timeAdded)/Xt:-1,Xt=Zt.getSource(),Zt=yr.coveringZoomLevel({tileSize:Xt.tileSize,roundZoom:Xt.roundZoom}),yr=!Bt||Math.abs(Bt.tileID.overscaledZ-Zt)>Math.abs($t.tileID.overscaledZ-Zt),Xt=yr&&$t.refreshedUponExpiration?1:o.clamp(yr?Dr:1-xr,0,1),$t.refreshedUponExpiration&&1<=Dr&&($t.refreshedUponExpiration=!1),Bt?{opacity:1,mix:1-Xt}:{opacity:Xt,mix:0}):{opacity:1,mix:0}}})(st,at,d,v,P.transform,P.style.map.terrain);let At,Ft;var ut=v.paint.get("raster-resampling")==="nearest"?M.NEAREST:M.LINEAR,at=(A.activeTexture.set(M.TEXTURE0),st.texture.bind(ut,M.CLAMP_TO_EDGE,M.LINEAR_MIPMAP_NEAREST),A.activeTexture.set(M.TEXTURE1),at?(at.texture.bind(ut,M.CLAMP_TO_EDGE,M.LINEAR_MIPMAP_NEAREST),At=Math.pow(2,at.tileID.overscaledZ-st.tileID.overscaledZ),Ft=[st.tileID.canonical.x*At%1,st.tileID.canonical.y*At%1]):st.texture.bind(ut,M.CLAMP_TO_EDGE,M.LINEAR_MIPMAP_NEAREST),P.style.map.terrain&&P.style.map.terrain.getTerrainData(xt)),st=at?xt:null,ut=st?st.posMatrix:P.transform.calculatePosMatrix(xt.toUnwrapped(),we),st=eu(ut,Ft||[0,0],At||1,nt,v);G instanceof it?ee.draw(A,M.TRIANGLES,De,Qi.disabled,he,Mo.disabled,st,at,v.id,G.boundsBuffer,P.quadTriangleIndexBuffer,G.boundsSegments):ee.draw(A,M.TRIANGLES,De,Ie[xt.overscaledZ],he,Mo.disabled,st,at,v.id,P.rasterBoundsBuffer,P.quadTriangleIndexBuffer,P.rasterBoundsSegments)}}}function Bv(P,d,v,E){var A=v.paint.get("background-color"),M=v.paint.get("background-opacity");if(M!==0){var G=P.context,ee=G.gl,he=P.transform,Ie=he.tileSize,Ne=v.paint.get("background-pattern");if(!P.isPatternMissing(Ne)){var we=!Ne&&A.a===1&&M===1&&P.opaquePassEnabledForLayer()?"opaque":"translucent";if(P.renderPass===we){var De=Qi.disabled,nt=P.depthModeForSublayer(0,we=="opaque"?fi.ReadWrite:fi.ReadOnly),at=P.colorModeForRenderPass(),ut=P.useProgram(Ne?"backgroundPattern":"background"),we=E||he.coveringTiles({tileSize:Ie,terrain:P.style.map.terrain}),st=(Ne&&(G.activeTexture.set(ee.TEXTURE0),P.imageManager.bind(P.context)),v.getCrossfadeParameters());for(const Ft of we){var _t=E?Ft.posMatrix:P.transform.calculatePosMatrix(Ft.toUnwrapped()),_t=Ne?tf(_t,M,P,Ne,{tileID:Ft,tileSize:Ie},st):{u_matrix:_t,u_opacity:M,u_color:A},xt=P.style.map.terrain&&P.style.map.terrain.getTerrainData(Ft);ut.draw(G,ee.TRIANGLES,nt,De,at,Mo.disabled,_t,xt,v.id,P.tileExtentBuffer,P.quadTriangleIndexBuffer,P.tileExtentSegments)}}}}}const $v=new o.Color(1,0,0,1),gp=new o.Color(0,1,0,1),kg=new o.Color(0,0,1,1),gd=new o.Color(1,0,1,1),O_=new o.Color(0,1,1,1);function M_(P){var d,v,E=P.transform.padding,E=(Og(P,P.transform.height-(E.top||0),3,$v),Og(P,E.bottom||0,3,gp),lf(P,E.left||0,3,kg),lf(P,P.transform.width-(E.right||0),3,gd),P.transform.centerPoint);d=P,v=E.x,P=P.transform.height-E.y,E=O_,sl(d,v-1,P-10,2,20,E),sl(d,v-10,P-1,20,2,E)}function Og(P,d,v,E){sl(P,0,d+v/2,P.transform.width,v,E)}function lf(P,d,v,E){sl(P,d-v/2,0,v,P.transform.height,E)}function sl(P,d,v,E,A,M){var G=P.context,ee=G.gl;ee.enable(ee.SCISSOR_TEST),ee.scissor(d*P.pixelRatio,v*P.pixelRatio,E*P.pixelRatio,A*P.pixelRatio),G.clear({color:M}),ee.disable(ee.SCISSOR_TEST)}function md(P,d,v){for(let ut=0;ut<v.length;ut++){E=void 0,at=void 0,A=void 0,M=void 0,G=void 0,ee=void 0,he=void 0,Ie=void 0,Ne=void 0,we=void 0,De=void 0,nt=void 0;var E=P,at=d,A=v[ut],M=E.context,G=M.gl,ee=A.posMatrix,he=E.useProgram("debug"),Ie=fi.disabled,Ne=Qi.disabled,we=E.colorModeForRenderPass(),De=E.style.map.terrain&&E.style.map.terrain.getTerrainData(A),nt=(M.activeTexture.set(G.TEXTURE0),at.getTileByID(A.key).latestRawTileData),nt=nt&&nt.byteLength||0,nt=Math.floor(nt/1024),at=at.getTile(A).tileSize,at=512/Math.min(at,512)*(A.overscaledZ/E.transform.zoom)*.5;let st=A.canonical.toString();A.overscaledZ!==A.canonical.z&&(st+=" =>
704 "+A.overscaledZ),A=st+` ${nt}kB`,(function(_t,xt){_t.initDebugOverlayCanvas();var At=_t.debugOverlayCanvas,Ft=_t.context.gl,$t=_t.debugOverlayCanvas.getContext("2d");$t.clearRect(0,0,At.width,At.height),$t.shadowColor="white",$t.shadowBlur=2,$t.lineWidth=1.5,$t.strokeStyle="white",$t.textBaseline="top",$t.font="bold 36px Open Sans, sans-serif",$t.fillText(xt,5,5),$t.strokeText(xt,5,5),_t.debugOverlayTexture.update(At),_t.debugOverlayTexture.bind(Ft.LINEAR,Ft.CLAMP_TO_EDGE)})(E,A),he.draw(M,G.TRIANGLES,Ie,Ne,ca.alphaBlended,Mo.disabled,Dv(ee,o.Color.transparent,at),null,"$debug",E.debugBuffer,E.quadTriangleIndexBuffer,E.debugSegments),he.draw(M,G.LINE_STRIP,Ie,Ne,we,Mo.disabled,Dv(ee,o.Color.red),De,"$debug",E.debugBuffer,E.tileBorderIndexBuffer,E.debugSegments)}}function yy(P,d){let v=null;var A=Object.values(P._layers).flatMap(G=>G.source&&!G.isHidden(d)?[P.sourceCaches[G.source]]:[]),E=A.filter(G=>G.getSource().type==="vector"),A=A.filter(G=>G.getSource().type!=="vector");const M=G=>{(!v||v.getSource().maxzoom<G.getSource().maxzoom)&&(v=G)};return E.forEach(G=>M(G)),v||A.forEach(G=>M(G)),v}function Bb(P,d,M){var E,A=P.context,M=M.implementation;P.renderPass==="offscreen"?(E=M.prerender)&&(P.setCustomLayerDefaults(),A.setColorMode(P.colorModeForRenderPass()),E.call(M,A.gl,P.transform.customLayerMatrix()),A.setDirty(),P.setBaseState()):P.renderPass==="translucent"&&(P.setCustomLayerDefaults(),A.setColorMode(P.colorModeForRenderPass()),A.setStencilMode(Qi.disabled),E=M.renderingMode==="3d"?new fi(P.context.gl.LEQUAL,fi.ReadWrite,P.depthRangeFor3D):P.depthModeForSublayer(0,fi.ReadOnly),A.setDepthMode(E),M.render(A.gl,P.transform.customLayerMatrix()),A.setDirty(),P.setBaseState(),A.bindFramebuffer.set(null))}function N_(P,d){var v=P.context,E=v.gl,A=ca.unblended,M=new fi(E.LEQUAL,fi.ReadWrite,[0,1]),G=d.getTerrainMesh(),ee=d.sourceCache.getRenderableTiles(),he=P.useProgram("terrainDepth");v.bindFramebuffer.set(d.getFramebuffer("depth").framebuffer),v.viewport.set([0,0,P.width/devicePixelRatio,P.height/devicePixelRatio]),v.clear({color:o.Color.transparent,depth:1});for(const we of ee){var Ie=d.getTerrainData(we.tileID),Ne={u_matrix:P.transform.calculatePosMatrix(we.tileID.toUnwrapped()),u_ele_delta:d.getMeshFrameDelta(P.transform.zoom)};he.draw(v,E.TRIANGLES,M,Qi.disabled,A,Mo.backCCW,Ne,Ie,"terrain",G.vertexBuffer,G.indexBuffer,G.segments)}v.bindFramebuffer.set(null),v.viewport.set([0,0,P.width,P.height])}function rh(P,d){var v=P.context,E=v.gl,A=ca.unblended,M=new fi(E.LEQUAL,fi.ReadWrite,[0,1]),G=d.getTerrainMesh(),ee=d.getCoordsTexture(),he=d.sourceCache.getRenderableTiles(),Ie=P.useProgram("terrainCoords");v.bindFramebuffer.set(d.getFramebuffer("coords").framebuffer),v.viewport.set([0,0,P.width/devicePixelRatio,P.height/devicePixelRatio]),v.clear({color:o.Color.transparent,depth:1}),d.coordsIndex=[];for(const De of he){var Ne=d.getTerrainData(De.tileID),we=(v.activeTexture.set(E.TEXTURE0),E.bindTexture(E.TEXTURE_2D,ee.texture),P.transform.calculatePosMatrix(De.tileID.toUnwrapped())),we={u_matrix:we,u_terrain_coords_id:(255-d.coordsIndex.length)/255,u_texture:0,u_ele_delta:d.getMeshFrameDelta(P.transform.zoom)};Ie.draw(v,E.TRIANGLES,M,Qi.disabled,A,Mo.backCCW,we,Ne,"terrain",G.vertexBuffer,G.indexBuffer,G.segments),d.coordsIndex.push(De.tileID.key)}v.bindFramebuffer.set(null),v.viewport.set([0,0,P.width,P.height])}function kl(P,d,v){var E=P.context,A=E.gl,M=P.colorModeForRenderPass(),G=new fi(A.LEQUAL,fi.ReadWrite,P.depthRangeFor3D),ee=P.useProgram("terrain"),he=d.getTerrainMesh();E.bindFramebuffer.set(null),E.viewport.set([0,0,P.width,P.height]);for(const we of v){var Ne=P.renderToTexture.getTexture(we),Ie=d.getTerrainData(we.tileID),Ne=(E.activeTexture.set(A.TEXTURE0),A.bindTexture(A.TEXTURE_2D,Ne.texture),P.transform.calculatePosMatrix(we.tileID.toUnwrapped())),Ne={u_matrix:Ne,u_texture:0,u_ele_delta:d.getMeshFrameDelta(P.transform.zoom)};ee.draw(E,A.TRIANGLES,G,Qi.disabled,M,Mo.backCCW,Ne,Ie,"terrain",he.vertexBuffer,he.indexBuffer,he.segments)}}class zv{constructor(d,v){this.context=new fy(d),this.transform=v,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:o.identity(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=Pt.maxUnderzooming+Pt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Ic}resize(d,v,E){if(this.width=Math.floor(d*E),this.height=Math.floor(v*E),this.pixelRatio=E,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const A of this.style._order)this.style._layers[A].resize()}setup(){var v=this.context,d=new o.PosArray,d=(d.emplaceBack(0,0),d.emplaceBack(o.EXTENT,0),d.emplaceBack(0,o.EXTENT),d.emplaceBack(o.EXTENT,o.EXTENT),this.tileExtentBuffer=v.createVertexBuffer(d,Ac.members),this.tileExtentSegments=o.SegmentVector.simpleSegment(0,0,4,2),new o.PosArray),d=(d.emplaceBack(0,0),d.emplaceBack(o.EXTENT,0),d.emplaceBack(0,o.EXTENT),d.emplaceBack(o.EXTENT,o.EXTENT),this.debugBuffer=v.createVertexBuffer(d,Ac.members),this.debugSegments=o.SegmentVector.simpleSegment(0,0,4,5),new o.RasterBoundsArray),d=(d.emplaceBack(0,0,0,0),d.emplaceBack(o.EXTENT,0,o.EXTENT,0),d.emplaceBack(0,o.EXTENT,0,o.EXTENT),d.emplaceBack(o.EXTENT,o.EXTENT,o.EXTENT,o.EXTENT),this.rasterBoundsBuffer=v.createVertexBuffer(d,Ve.members),this.rasterBoundsSegments=o.SegmentVector.simpleSegment(0,0,4,2),new o.PosArray),d=(d.emplaceBack(0,0),d.emplaceBack(1,
vendor: 9,131 bytes, line 704
7040),d.emplaceBack(0,1),d.emplaceBack(1,1),this.viewportBuffer=v.createVertexBuffer(d,Ac.members),this.viewportSegments=o.SegmentVector.simpleSegment(0,0,4,2),new o.LineStripIndexArray),d=(d.emplaceBack(0),d.emplaceBack(1),d.emplaceBack(3),d.emplaceBack(2),d.emplaceBack(0),this.tileBorderIndexBuffer=v.createIndexBuffer(d),new o.TriangleIndexArray),v=(d.emplaceBack(0,1,2),d.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=v.createIndexBuffer(d),this.context.gl);this.stencilClearMode=new Qi({func:v.ALWAYS,mask:0},0,255,v.ZERO,v.ZERO,v.ZERO)}clearStencil(){var d=this.context,v=d.gl,E=(this.nextStencilID=1,this.currentStencilSource=void 0,o.create());o.ortho(E,0,this.width,this.height,0,0,1),o.scale(E,E,[v.drawingBufferWidth,v.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(d,v.TRIANGLES,fi.disabled,this.stencilClearMode,ca.disabled,Mo.disabled,vg(E),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(d,v){if(this.currentStencilSource!==d.source&&d.isTileClipped()&&v&&v.length){this.currentStencilSource=d.source;var E=this.context,A=E.gl,M=(256<this.nextStencilID+v.length&&this.clearStencil(),E.setColorMode(ca.disabled),E.setDepthMode(fi.disabled),this.useProgram("clippingMask"));this._tileClippingMaskIDs={};for(const he of v){var G=this._tileClippingMaskIDs[he.key]=this.nextStencilID++,ee=this.style.map.terrain&&this.style.map.terrain.getTerrainData(he);M.draw(E,A.TRIANGLES,fi.disabled,new Qi({func:A.ALWAYS,mask:0},G,255,A.KEEP,A.KEEP,A.REPLACE),ca.disabled,Mo.disabled,vg(he.posMatrix),ee,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}}stencilModeFor3D(){this.currentStencilSource=void 0,256<this.nextStencilID+1&&this.clearStencil();var d=this.nextStencilID++,v=this.context.gl;return new Qi({func:v.NOTEQUAL,mask:255},d,255,v.KEEP,v.KEEP,v.REPLACE)}stencilModeForClipping(d){var v=this.context.gl;return new Qi({func:v.EQUAL,mask:255},this._tileClippingMaskIDs[d.key],0,v.KEEP,v.KEEP,v.REPLACE)}stencilConfigForOverlap(E){var v=this.context.gl,E=E.sort((ee,he)=>he.overscaledZ-ee.overscaledZ),A=E[E.length-1].overscaledZ,M=E[0].overscaledZ-A+1;if(1<M){this.currentStencilSource=void 0,256<this.nextStencilID+M&&this.clearStencil();var G={};for(let ee=0;ee<M;ee++)G[ee+A]=new Qi({func:v.GEQUAL,mask:255},ee+this.nextStencilID,255,v.KEEP,v.KEEP,v.REPLACE);return this.nextStencilID+=M,[G,E]}return[{[A]:Qi.disabled},E]}colorModeForRenderPass(){var d=this.context.gl;return this._showOverdrawInspector?new ca([d.CONSTANT_COLOR,d.ONE],new o.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0]):this.renderPass==="opaque"?ca.unblended:ca.alphaBlended}depthModeForSublayer(d,v,E){return this.opaquePassEnabledForLayer()?(d=1-((1+this.currentLayer)*this.numSublayers+d)*this.depthEpsilon,new fi(E||this.context.gl.LEQUAL,v,[d,d])):fi.disabled}opaquePassEnabledForLayer(){return this.currentLayer<this.opaquePassCutoff}render(d,v){this.style=d,this.options=v,this.lineAtlas=d.lineAtlas,this.imageManager=d.imageManager,this.glyphManager=d.glyphManager,this.symbolFadeChange=d.placement.symbolFadeChange(p.now()),this.imageManager.beginFrame();var E=this.style._order,A=this.style.sourceCaches,M={},G={},ee={};for(const xt in A){var he=A[xt];he.used&&he.prepare(this.context),M[xt]=he.getVisibleCoordinates(),G[xt]=M[xt].slice().reverse(),ee[xt]=he.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(let xt=0;xt<E.length;xt++){var Ie=E[xt];if(this.style._layers[Ie].is3D()){this.opaquePassCutoff=xt;break}}this.maybeDrawDepthAndCoords(!1),this.renderToTexture&&(this.renderToTexture.prepareForRender(this.style,this.transform.zoom),this.opaquePassCutoff=0),this.renderPass="offscreen";for(const xt of E){var Ne,we=this.style._layers[xt];we.hasOffscreenPass()&&!we.isHidden(this.transform.zoom)&&(Ne=G[we.source],we.type==="custom"||Ne.length)&&this.renderLayer(this,A[we.source],we,Ne)}if(this.context.bindFramebuffer.set(null),this.context.clear({color:v.showOverdrawInspector?o.Color.black:o.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=v.showOverdrawInspector,this.depthRangeFor3D=[0,1-(d._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass="opaque",this.currentLayer=E.length-1;0<=this.currentLayer;this.currentLayer--){var De=this.style._layers[E[this.currentLayer]],nt=A[De.source],at=M[De.source];this._renderTileClippingMasks(De,at),this.renderLayer(this,nt,De,at)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<E.length;this.currentLayer++){var ut,st=this.style._layers[E[this.currentLayer]],_t=A[st.source];this.renderToTexture&&this.renderToTexture.renderLayer(st)||(ut=(st.type==="symbol"?ee:G)[st.source],this._renderTileClippingMasks(st,M[st.source]),this.renderLayer(this,_t,st,ut))}this.options.showTileBoundaries&&(v=yy(this.style,this.transform.zoom))&&md(this,v,v.getVisibleCoordinates()),this.options.showPadding&&M_(this),this.context.setDefault()}maybeDrawDepthAndCoords(d){if(this.style&&this.style.map&&this.style.map.terrain){var v=this.terrainFacilitator.matrix,E=this.transform.projMatrix;let A=this.terrainFacilitator.dirty;(A=(A=A||(d?!o.exactEquals(v,E):!o.equals(v,E)))||0<this.style.map.terrain.sourceCache.tilesAfterTime(this.terrainFacilitator.renderTime).length)&&(o.copy(v,E),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,N_(this,this.style.map.terrain),rh(this,this.style.map.terrain))}}renderLayer(d,v,E,A){if(!E.isHidden(this.transform.zoom)&&(E.type==="background"||E.type==="custom"||(A||[]).length))switch(this.id=E.id,E.type){case"symbol":k_(d,v,E,A,this.style.placement.variableOffsets);break;case"circle":Rg(d,v,E,A);break;case"heatmap":my(d,v,E,A);break;case"line":Ub(d,v,E,A);break;case"fill":Is(d,v,E,A);break;case"fill-extrusion":Pg(d,v,E,A);break;case"hillshade":th(d,v,E,A);break;case"raster":kc(d,v,E,A);break;case"background":Bv(d,0,E,A);break;case"custom":Bb(d,0,E)}}translatePosMatrix(d,v,E,A,M){var G;return E[0]||E[1]?((A=M?A==="map"?this.transform.angle:0:A==="viewport"?-this.transform.angle:0)&&(G=Math.sin(A),A=Math.cos(A),E=[E[0]*A-E[1]*G,E[0]*G+E[1]*A]),G=[M?E[0]:qr(v,E[0],this.transform.zoom),M?E[1]:qr(v,E[1],this.transform.zoom),0],A=new Float32Array(16),o.translate(A,d,G),A):d}saveTileTexture(d){var v=this._tileTextures[d.size[0]];v?v.push(d):this._tileTextures[d.size[0]]=[d]}getTileTexture(d){return d=this._tileTextures[d],d&&0<d.length?d.pop():null}isPatternMissing(d){var v;return!(!d||d.from&&d.to&&(v=this.imageManager.getPattern(d.from.toString()),d=this.imageManager.getPattern(d.to.toString()),v)&&d)}useProgram(d,v){this.cache=this.cache||{};var E=d+(v?v.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[E]||(this.cache[E]=new Mv(this.context,Jc[d],v,wg[d],this._showOverdrawInspector,this.style.map.terrain)),this.cache[E]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){var d=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(d.FUNC_ADD)}initDebugOverlayCanvas(){var d;this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,d=this.context.gl,this.debugOverlayTexture=new Q(this.context,this.debugOverlayCanvas,d.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){var{drawingBufferWidth:d,drawingBufferHeight:v}=this.context.gl;return this.width!==d||this.height!==v}}class vy{constructor(d,v){this.points=d,this.planes=v}static fromInvProjectionMatrix(d,v,E){const A=Math.pow(2,E),M=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(G=>{var ee=1/(G=o.transformMat4([],G,d))[3]/v*A;return o.mul$1(G,G,[ee,ee,1/G[3],ee])});return E=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(G=>{var ee=o.sub([],M[G[0]],M[G[1]]),he=o.sub([],M[G[2]],M[G[1]]),ee=o.normalize([],o.cross([],ee,he)),he=-o.dot(ee,M[G[1]]);return ee.concat(he)}),new vy(M,E)}}class yd{constructor(d,v){this.min=d,this.max=v,this.center=o.scale$1([],o.add([],this.min,this.max),.5)}quadrant(d){var v=[d%2==0,d<2],E=o.clone$2(this.min),A=o.clone$2(this.max);for(let M=0;M<v.length;M++)E[M]=(v[M]?this.min:this.center)[M],A[M]=(v[M]?this.center:this.max)[M];return A[2]=this.max[2],new yd(E,A)}distanceX(d){return Math.max(Math.min(this.max[0],d[0]),this.min[0])-d[0]}distanceY(d){return Math.max(Math.min(this.max[1],d[1]),this.min[1])-d[1]}intersects(d){var v=[[this.min[0],this.min[1],this.min[2],1],[this.max[0],this.min[1],this.min[2],1],[this.max[0],this.max[1],this.min[2],1],[this.min[0],this.max[1],this.min[2],1],[this.min[0],this.min[1],this.max[2],1],[this.max[0],this.min[1],this.max[2],1],[this.max[0],this.max[1],this.max[2],
7041],[this.min[0],this.max[1],this.max[2],1]];let E=!0;for(let G=0;G<d.planes.length;G++){var A=d.planes[G];let ee=0;for(let he=0;he<v.length;he++)0<=o.dot$1(A,v[he])&&ee++;if(ee===0)return 0;ee!==v.length&&(E=!1)}if(E)return 2;for(let G=0;G<3;G++){let ee=Number.MAX_VALUE,he=-Number.MAX_VALUE;for(let Ie=0;Ie<d.points.length;Ie++){var M=d.points[Ie][G]-this.min[G];ee=Math.min(ee,M),he=Math.max(he,M)}if(he<0||ee>this.max[G]-this.min[G])return 0}return 1}}class _y{constructor(d=0,v=0,E=0,A=0){if(isNaN(d)||d<0||isNaN(v)||v<0||isNaN(E)||E<0||isNaN(A)||A<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=d,this.bottom=v,this.left=E,this.right=A}interpolate(d,v,E){return v.top!=null&&d.top!=null&&(this.top=o.interpolate.number(d.top,v.top,E)),v.bottom!=null&&d.bottom!=null&&(this.bottom=o.interpolate.number(d.bottom,v.bottom,E)),v.left!=null&&d.left!=null&&(this.left=o.interpolate.number(d.left,v.left,E)),v.right!=null&&d.right!=null&&(this.right=o.interpolate.number(d.right,v.right,E)),this}getCenter(d,v){return d=o.clamp((this.left+d-this.right)/2,0,d),v=o.clamp((this.top+v-this.bottom)/2,0,v),new o.Point(d,v)}equals(d){return this.top===d.top&&this.bottom===d.bottom&&this.left===d.left&&this.right===d.right}clone(){return new _y(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}const Xl=85.051129;class iu{constructor(d,v,E,A,M){this.tileSize=512,this._renderWorldCopies=M===void 0||!!M,this._minZoom=d||0,this._maxZoom=v||22,this._minPitch=E??0,this._maxPitch=A??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new o.LngLat(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new _y,this._posMatrixCache={},this._alignedPosMatrixCache={},this.minElevationForCurrentTile=0}clone(){var d=new iu(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return d.apply(this),d}apply(d){this.tileSize=d.tileSize,this.latRange=d.latRange,this.width=d.width,this.height=d.height,this._center=d._center,this._elevation=d._elevation,this.minElevationForCurrentTile=d.minElevationForCurrentTile,this.zoom=d.zoom,this.angle=d.angle,this._fov=d._fov,this._pitch=d._pitch,this._unmodified=d._unmodified,this._edgeInsets=d._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(d){this._minZoom!==d&&(this._minZoom=d,this.zoom=Math.max(this.zoom,d))}get maxZoom(){return this._maxZoom}set maxZoom(d){this._maxZoom!==d&&(this._maxZoom=d,this.zoom=Math.min(this.zoom,d))}get minPitch(){return this._minPitch}set minPitch(d){this._minPitch!==d&&(this._minPitch=d,this.pitch=Math.max(this.pitch,d))}get maxPitch(){return this._maxPitch}set maxPitch(d){this._maxPitch!==d&&(this._maxPitch=d,this.pitch=Math.min(this.pitch,d))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(d){d===void 0?d=!0:d===null&&(d=!1),this._renderWorldCopies=d}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new o.Point(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(d){d=-o.wrap(d,-180,180)*Math.PI/180,this.angle!==d&&(this._unmodified=!1,this.angle=d,this._calcMatrices(),this.rotationMatrix=o.create$2(),o.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(d){d=o.clamp(d,this.minPitch,this.maxPitch)/180*Math.PI,this._pitch!==d&&(this._unmodified=!1,this._pitch=d,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(d){d=Math.max(.01,Math.min(60,d)),this._fov!==d&&(this._unmodified=!1,this._fov=d/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(d){d=Math.min(Math.max(d,this.minZoom),this.maxZoom),this._zoom!==d&&(this._unmodified=!1,this._zoom=d,this.tileZoom=Math.max(0,Math.floor(d)),this.scale=this.zoomScale(d),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(d){d.lat===this._center.lat&&d.lng===this._center.lng||(this._unmodified=!1,this._center=d,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(d){d!==this._elevation&&(this._elevation=d,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(d){this._edgeInsets.equals(d)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,d,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(d){return this._edgeInsets.equals(d)}interpolatePadding(d,v,E){this._unmodified=!1,this._edgeInsets.interpolate(d,v,E),this._constrain(),this._calcMatrices()}
vendor: 13,333 bytes, line 704
704coveringZoomLevel(d){return d=(d.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/d.tileSize)),Math.max(0,d)}getVisibleUnwrappedCoordinates(d){var v=[new o.UnwrappedTileID(0,d)];if(this._renderWorldCopies){var E=this.pointCoordinate(new o.Point(0,0)),A=this.pointCoordinate(new o.Point(this.width,0)),M=this.pointCoordinate(new o.Point(this.width,this.height)),G=this.pointCoordinate(new o.Point(0,this.height)),ee=Math.floor(Math.min(E.x,A.x,M.x,G.x)),he=Math.floor(Math.max(E.x,A.x,M.x,G.x));for(let Ie=ee-1;Ie<=he+1;Ie++)Ie!==0&&v.push(new o.UnwrappedTileID(Ie,d))}return v}coveringTiles(d){let v=this.coveringZoomLevel(d);var E=v;if(d.minzoom!==void 0&&v<d.minzoom)return[];d.maxzoom!==void 0&&v>d.maxzoom&&(v=d.maxzoom);var A=this.pointCoordinate(this.getCameraPoint()),M=o.MercatorCoordinate.fromLngLat(this.center);const G=Math.pow(2,v);var ee=[G*A.x,G*A.y,0],he=[G*M.x,G*M.y,0],Ie=vy.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,v);let Ne=d.minzoom||0;!d.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(Ne=v);var we=d.terrain?2/Math.min(this.tileSize,d.tileSize)*this.tileSize:3,De=Jr=>({aabb:new yd([Jr*G,0,0],[(Jr+1)*G,G,0]),zoom:0,x:0,y:0,wrap:Jr,fullyVisible:!1}),nt=[],at=[],ut=v,st=d.reparseOverscaled?E:v;if(this._renderWorldCopies)for(let Jr=1;Jr<=3;Jr++)nt.push(De(-Jr)),nt.push(De(Jr));for(nt.push(De(0));0<nt.length;){var _t=nt.pop(),xt=_t.x,At=_t.y;let Jr=_t.fullyVisible;if(!Jr){var Ft=_t.aabb.intersects(Ie);if(Ft===0)continue;Jr=Ft===2}var Ft=d.terrain?ee:he,$t=_t.aabb.distanceX(Ft),Bt=_t.aabb.distanceY(Ft),$t=Math.max(Math.abs($t),Math.abs(Bt)),Bt=we+(1<<ut-_t.zoom)-2;if(_t.zoom===ut||Bt<$t&&_t.zoom>=Ne)Bt=ut-_t.zoom,$t=ee[0]-.5-(xt<<Bt),Bt=ee[1]-.5-(At<<Bt),at.push({tileID:new o.OverscaledTileID(_t.zoom===ut?st:_t.zoom,_t.wrap,_t.zoom,xt,At),distanceSq:o.sqrLen([he[0]-.5-xt,he[1]-.5-At]),tileDistanceToCamera:Math.sqrt($t*$t+Bt*Bt)});else for(let an=0;an<4;an++){var Zt,Xt,yr=(xt<<1)+an%2,xr=(At<<1)+(an>>1),Dr=_t.zoom+1;let jr=_t.aabb.quadrant(an);d.terrain&&(Xt=new o.OverscaledTileID(Dr,_t.wrap,Dr,yr,xr),Zt=(Zt=(Xt=d.terrain.getMinMaxElevation(Xt)).minElevation)!=null?Zt:this.elevation,Xt=(Xt=Xt.maxElevation)!=null?Xt:this.elevation,jr=new yd([jr.min[0],jr.min[1],Zt],[jr.max[0],jr.max[1],Xt])),nt.push({aabb:jr,zoom:Dr,x:yr,y:xr,wrap:_t.wrap,fullyVisible:Jr})}}return at.sort((Jr,an)=>Jr.distanceSq-an.distanceSq).map(Jr=>Jr.tileID)}resize(d,v){this.width=d,this.height=v,this.pixelsToGLUnits=[2/d,-2/v],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(d){return Math.pow(2,d)}scaleZoom(d){return Math.log(d)/Math.LN2}project(d){var v=o.clamp(d.lat,-Xl,Xl);return new o.Point(o.mercatorXfromLng(d.lng)*this.worldSize,o.mercatorYfromLat(v)*this.worldSize)}unproject(d){return new o.MercatorCoordinate(d.x/this.worldSize,d.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(M){var v=this.elevation,E=Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter,A=this.pointLocation(this.centerPoint,M),M=M.getElevationForLngLatZoom(A,this.tileZoom);this.elevation-M&&(E=E+v-M,v=Math.cos(this._pitch)*this.cameraToCenterDistance/E/o.mercatorZfromAltitude(1,A.lat)/this.tileSize,E=this.scaleZoom(v),this._elevation=M,this._center=A,this.zoom=E)}setLocationAtPoint(M,E){var E=this.pointCoordinate(E),A=this.pointCoordinate(this.centerPoint),M=this.locationCoordinate(M),M=new o.MercatorCoordinate(M.x-(E.x-A.x),M.y-(E.y-A.y));this.center=this.coordinateLocation(M),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(d,v){return v?this.coordinatePoint(this.locationCoordinate(d),v.getElevationForLngLatZoom(d,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(d))}pointLocation(d,v){return this.coordinateLocation(this.pointCoordinate(d,v))}locationCoordinate(d){return o.MercatorCoordinate.fromLngLat(d)}coordinateLocation(d){return d&&d.toLngLat()}pointCoordinate(A,E){if(E&&(E=E.pointCoordinate(A),E!=null))return E;var E=[A.x,A.y,0,1],A=[A.x,A.y,1,1],M=(o.transformMat4(E,E,this.pixelMatrixInverse),o.transformMat4(A,A,this.pixelMatrixInverse),E[3]),G=A[3],ee=E[1]/M,he=A[1]/G,Ie=E[2]/M,Ne=A[2]/G,Ne=Ie==Ne?0:(0-Ie)/(Ne-Ie);return new o.MercatorCoordinate(o.interpolate.number(E[0]/M,A[0]/G,Ne)/this.worldSize,o.interpolate.number(ee,he,Ne)/this.worldSize)}coordinatePoint(d,v=0,E=this.pixelMatrix){return d=[d.x*this.worldSize,d.y*this.worldSize,v,1],o.transformMat4(d,d,E),new o.Point(d[0]/d[3],d[1]/d[3])}getBounds(){var d=Math.max(0,this.height/2-this.getHorizon());return new le().extend(this.pointLocation(new o.Point(0,d))).extend(this.pointLocation(new o.Point(this.width,d))).extend(this.pointLocation(new o.Point(this.width,this.height))).extend(this.pointLocation(new o.Point(0,this.height)))}getMaxBounds(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new le([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(d){d?(this.lngRange=[d.getWest(),d.getEast()],this.latRange=[d.getSouth(),d.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-Xl,Xl])}calculatePosMatrix(d,v=!1){var E,A,M,G=d.key,ee=v?this._alignedPosMatrixCache:this._posMatrixCache;return ee[G]||(E=d.canonical,A=this.worldSize/this.zoomScale(E.z),d=E.x+Math.pow(2,E.z)*d.wrap,M=o.identity(new Float64Array(16)),o.translate(M,M,[d*A,E.y*A,0]),o.scale(M,M,[A/o.EXTENT,A/o.EXTENT,1]),o.multiply(M,v?this.alignedProjMatrix:this.projMatrix,M),ee[G]=new Float32Array(M)),ee[G]}customLayerMatrix(){return this.mercatorMatrix.slice()}getConstrained(at,v){v=o.clamp(+v,this.minZoom,this.maxZoom),v={center:new o.LngLat(at.lng,at.lat),zoom:v};let E=this.lngRange;this._renderWorldCopies||E!==null||(E=[-179.9999999999,180-1e-10]);var A=this.tileSize*this.zoomScale(v.zoom);let M=0,G=A,ee=0,he=A,Ie=0,Ne=0;var{x:we,y:De}=this.size,{x:nt,y:at}=(this.latRange&&(nt=this.latRange,M=o.mercatorYfromLat(nt[1])*A,(G=o.mercatorYfromLat(nt[0])*A)-M<De)&&(Ie=De/(G-M)),E&&(ee=o.wrap(o.mercatorXfromLng(E[0])*A,0,A),(he=o.wrap(o.mercatorXfromLng(E[1])*A,0,A))<ee&&(he+=A),he-ee<we)&&(Ne=we/(he-ee)),this.project.call({worldSize:A},at));let ut,st;var _t,xt=Math.max(Ne||0,Ie||0);if(xt)_t=new o.Point(Ne?(he+ee)/2:nt,Ie?(G+M)/2:at),v.center=this.unproject.call({worldSize:A},_t).wrap(),v.zoom+=this.scaleZoom(xt);else{if(this.latRange&&(at-(_t=De/2)<M&&(st=M+_t),at+_t>G)&&(st=G-_t),E){xt=(ee+he)/2;let At=nt;De=we/2,(At=this._renderWorldCopies?o.wrap(nt,xt-A/2,xt+A/2):At)-De<ee&&(ut=ee+De),At+De>he&&(ut=he-De)}ut===void 0&&st===void 0||(_t=new o.Point(ut??nt,st??at),v.center=this.unproject.call({worldSize:A},_t).wrap())}return v}_constrain(){var d,v,E;this.center&&this.width&&this.height&&!this._constraining&&(this._constraining=!0,d=this._unmodified,{center:v,zoom:E}=this.getConstrained(this.center,this.zoom),this.center=v,this.zoom=E,this._unmodified=d,this._constraining=!1)}_calcMatrices(){if(this.height){var A=this._fov/2,M=this.centerOffset,G=this.point.x,ee=this.point.y;this.cameraToCenterDistance=.5/Math.tan(A)*this.height,this._pixelPerMeter=o.mercatorZfromAltitude(1,this.center.lat)*this.worldSize;let he=o.identity(new Float64Array(16));o.scale(he,he,[this.width/2,-this.height/2,1]),o.translate(he,he,[1,-1,0]),this.labelPlaneMatrix=he,he=o.identity(new Float64Array(16)),o.scale(he,he,[1,-1,1]),o.translate(he,he,[-1,-1,0]),o.scale(he,he,[2/this.width,2/this.height,1]),this.glCoordMatrix=he;var A=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),v=Math.min(this.elevation,this.minElevationForCurrentTile),E=A-v*this._pixelPerMeter/Math.cos(this._pitch),v=v<0?E:A,E=Math.PI/2+this._pitch,A=this._fov*(.5+M.y/this.height),A=Math.sin(A)*v/Math.sin(o.clamp(Math.PI-E-A,.01,Math.PI-.01)),d=this.getHorizon(),d=2*Math.atan(d/this.cameraToCenterDistance)*(.5+M.y/(2*d)),E=Math.sin(d)*v/Math.sin(o.clamp(Math.PI-E-d,.01,Math.PI-.01)),d=Math.min(A,E),A=1.01*(Math.cos(Math.PI/2-this._pitch)*d+v),E=this.height/50,d=(he=new Float64Array(16),o.perspective(he,this._fov,this.width/this.height,E,A),he[8]=2*-M.x/this.width,he[9]=2*M.y/this.height,o.scale(he,he,[1,-1,1]),o.translate(he,he,[0,0,-this.cameraToCenterDistance]),o.rotateX(he,he,this._pitch),o.rotateZ(he,he,this.angle),o.translate(he,he,[-G,-ee,0]),this.mercatorMatrix=o.scale([],he,[this.worldSize,this.worldSize,this.worldSize]),o.scale(he,he,[1,1,this._pixelPerMeter]),this.pixelMatrix=o.multiply(new Float64Array(16),this.labelPlaneMatrix,he),o.translate(he,he,[0,0,-this.elevation]),this.projMatrix=he,this.invProjMatrix=o.invert([],he),this.pixelMatrix3D=o.multiply(new Float64Array(16),this.labelPlaneMatrix,he),this.width%2/2),v=this.height%2/2,E=Math.cos(this.angle),A=Math.sin(this.angle),M=G-Math.round(G)+E*d+A*v,G=ee-Math.round(ee)+E*v+A*d,ee=new Float64Array(he);if(o.translate(ee,ee,[.5<M?M-1:M,.5<G?G-1:G,0]),this.alignedProjMatrix=ee,!(he=o.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=he,this._posMatrixCache={},this._alignedPosMatrixCache={}}}maxPitchScaleFactor(){var d;return this.pixelMatrixInverse?(d=[(d=this.pointCoordinate(new o.Point(0,0))).x*this.worldSize,d.y*this.worldSize,0,1],o.transformMat4(d,d,this.pixelMatrix)[3]/this.cameraToCenterDistance):1}getCameraPoint(){var d=this._pitch,d=Math.tan(d)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new o.Point(0,d))}getCameraQueryGeometry(d){var v=this.getCameraPoint();if(d.length===1)return[d[0],v];{let E=v.x,A=v.y,M=v.x,G=v.y;for(const ee of d)E=Math.min(E,ee.x),A=Math.min(A,ee.y),M=Math.max(M,ee.x),G=Math.max(G,ee.y);return[new o.Point(E,A),new o.Point(M,A),new o.Point(M,G),new o.Point(E,G),new o.Point(E,A)]}}lngLatToCameraDepth(d,v){return d=this.locationCoordinate(d),d=[d.x*this.worldSize,d.y*this.worldSize,v,1],o.transformMat4(d,d,this.projMatrix),d[2]/d[3]}}function cf(P,d){let v=!1,E=null,A,M;const G=()=>{E=null,v&&(P.apply(A,M),E=setTimeout(G,d),v=!1)};return(...ee)=>(v=!0,A=this,M=ee,E||G(),E)}class Tt{constructor(d){this._getCurrentHash=()=>{var v=window.location.hash.replace("#","");if(this._hashName){let E;return v.split("&").map(A=>A.split("=")).forEach(A=>{A[0]===this._hashName&&(E=A)}),(E&&E[1]||"").split("/")}return v.split("/")},this._onHashChange=()=>{var v,E=this._getCurrentHash();return 3<=E.length&&!E.some(A=>isNaN(A))&&(v=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(E[3]||0):this._map.getBearing(),this._map.jumpTo({center:[+E[2],+E[1]],zoom:+E[0],bearing:v,pitch:+(E[4]||0)}),!0)},this._updateHashUnthrottled=()=>{var v=window.location.href.replace(/(#.+)?$/,this.getHashString());try{window.history.replaceState(window.history.state,null,v)}catch{}},this._updateHash=cf(this._updateHashUnthrottled,300),this._hashName=d&&encodeURIComponent(d)}addTo(d){return this._map=d,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this}getHashString(d){var A=this._map.getCenter(),v=Math.round(100*this._map.getZoom())/100,M=Math.ceil((v*Math.LN2+Math.log(512/360/.5))/Math.LN10),M=Math.pow(10,M),E=Math.round(A.lng*M)/M,A=Math.round(A.lat*M)/M,M=this._map.getBearing(),G=this._map.getPitch();let ee="";if(ee+=d?`/${E}/${A}/`+v:v+`/${A}/`+E,(M||G)&&(ee+="/"+Math.round(10*M)/10),G&&(ee+="/"+Math.round(G)),this._hashName){const he=this._hashName;let Ie=!1;return d=window.location.hash.slice(1).split("&").map(Ne=>{var we=Ne.split("=")[0];return we===he?(Ie=!0,we+"="+ee):Ne}).filter(Ne=>Ne),Ie||d.push(he+"="+ee),"#"+d.join("&")}return"#"+ee}}_i={linearity:.3,easing:o.bezier(0,0,.3,1)};const zt=o.extend({deceleration:2500,maxSpeed:1400},_i),Ut=o.extend({deceleration:20,maxSpeed:1400},_i),Qr=o.extend({deceleration:1e3,maxSpeed:360},_i),jn=o.extend({deceleration:1e3,maxSpeed:90},_i);class Si{constructor(d){this._map=d,this.clear()}clear(){this._inertiaBuffer=[]}record(d){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:p.now(),settings:d})}_drainInertiaBuffer(){for(var d=this._inertiaBuffer,v=p.now();0<d.length&&160<v-d[0].time;)d.shift()}_onMoveEnd(d){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){var v,E={zoom:0,bearing:0,pitch:0,pan:new o.Point(0,0),pinchAround:void 0,around:void 0};for({settings:v}of this._inertiaBuffer)E.zoom+=v.zoomDelta||0,E.bearing+=v.bearingDelta||0,E.pitch+=v.pitchDelta||0,v.panDelta&&E.pan._add(v.panDelta),v.around&&(E.around=v.around),v.pinchAround&&(E.pinchAround=v.pinchAround);var A=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,M={};return E.pan.mag()&&(d=lr(E.pan.mag(),A,o.extend({},zt,d||{})),M.offset=E.pan.mult(d.amount/E.pan.mag()),M.center=this._map.transform.center,yo(M,d)),E.zoom&&(d=lr(E.zoom,A,Ut),M.zoom=this._map.transform.zoom+d.amount,yo(M,d)),E.bearing&&(d=lr(E.bearing,A,Qr),M.bearing=this._map.transform.bearing+o.clamp(d.amount,-1
vendor: 13,796 bytes, line 704
70479,179),yo(M,d)),E.pitch&&(d=lr(E.pitch,A,jn),M.pitch=this._map.transform.pitch+d.amount,yo(M,d)),(M.zoom||M.bearing)&&(M.around=(A=E.pinchAround===void 0?E.around:E.pinchAround)?this._map.unproject(A):this._map.getCenter()),this.clear(),o.extend(M,{noMoveStart:!0})}}}function yo(P,d){(!P.duration||P.duration<d.duration)&&(P.duration=d.duration,P.easing=d.easing)}function lr(G,ee,v){var{maxSpeed:E,linearity:A,deceleration:M}=v,G=o.clamp(G*A/(ee/1e3),-E,E),ee=Math.abs(G)/(M*A);return{easing:v.easing,duration:1e3*ee,amount:G*(ee/2)}}class ll extends o.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(d,v,E,A={}){var M=m.mousePos(v.getCanvas(),E),G=v.unproject(M);super(d,o.extend({point:M,lngLat:G,originalEvent:E},A)),this._defaultPrevented=!1,this.target=v}}class nh extends o.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(d,v,E){var A=d==="touchend"?E.changedTouches:E.touches,A=m.touchPos(v.getCanvasContainer(),A),M=A.map(ee=>v.unproject(ee)),G=A.reduce((ee,he,Ie,Ne)=>ee.add(he.div(Ne.length)),new o.Point(0,0));super(d,{points:A,point:G,lngLats:M,lngLat:v.unproject(G),originalEvent:E}),this._defaultPrevented=!1}}class xa extends o.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(d,v,E){super(d,{originalEvent:E}),this._defaultPrevented=!1}}class mp{constructor(d,v){this._map=d,this._clickTolerance=v.clickTolerance}reset(){delete this._mousedownPos}wheel(d){return this._firePreventable(new xa(d.type,this._map,d))}mousedown(d,v){return this._mousedownPos=v,this._firePreventable(new ll(d.type,this._map,d))}mouseup(d){this._map.fire(new ll(d.type,this._map,d))}click(d,v){this._mousedownPos&&this._mousedownPos.dist(v)>=this._clickTolerance||this._map.fire(new ll(d.type,this._map,d))}dblclick(d){return this._firePreventable(new ll(d.type,this._map,d))}mouseover(d){this._map.fire(new ll(d.type,this._map,d))}mouseout(d){this._map.fire(new ll(d.type,this._map,d))}touchstart(d){return this._firePreventable(new nh(d.type,this._map,d))}touchmove(d){this._map.fire(new nh(d.type,this._map,d))}touchend(d){this._map.fire(new nh(d.type,this._map,d))}touchcancel(d){this._map.fire(new nh(d.type,this._map,d))}_firePreventable(d){if(this._map.fire(d),d.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Pr{constructor(d){this._map=d}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(d){this._map.fire(new ll(d.type,this._map,d))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new ll("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(d){this._delayContextMenu?this._contextMenuEvent=d:this._ignoreContextMenu||this._map.fire(new ll(d.type,this._map,d)),this._map.listens("contextmenu")&&d.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Ql{constructor(d){this._map=d}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(d){return this.transform.pointLocation(o.Point.convert(d),this._map.terrain)}}class Mg{constructor(d,v){this._map=d,this._tr=new Ql(d),this._el=d.getCanvasContainer(),this._container=d.getContainer(),this._clickTolerance=v.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(d,v){this.isEnabled()&&d.shiftKey&&d.button===0&&(m.disableDrag(),this._startPos=this._lastPos=v,this._active=!0)}mousemoveWindow(d,v){var E,A,M;!this._active||this._lastPos.equals(v=v)||!this._box&&v.dist(this._startPos)<this._clickTolerance||(M=this._startPos,this._lastPos=v,this._box||(this._box=m.create("div","maplibregl-boxzoom",this._container),this._container.classList.add("maplibregl-crosshair"),this._fireEvent("boxzoomstart",d)),d=Math.min(M.x,v.x),E=Math.max(M.x,v.x),A=Math.min(M.y,v.y),M=Math.max(M.y,v.y),m.setTransform(this._box,`translate(${d}px,${A}px)`),this._box.style.width=E-d+"px",this._box.style.height=M-A+"px")}mouseupWindow(d,v){if(this._active&&d.button===0){const E=this._startPos,A=v;if(this.reset(),m.suppressClick(),E.x!==A.x||E.y!==A.y)return this._map.fire(new o.Event("boxzoomend",{originalEvent:d})),{cameraAnimation:M=>M.fitScreenCoordinates(E,A,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",d)}}keydown(d){this._active&&d.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",d))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(m.remove(this._box),this._box=null),m.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(d,v){return this._map.fire(new o.Event(d,{originalEvent:v}))}}function Mu(P,d){if(P.length!==d.length)throw new Error(`The number of touches and points are not equal - touches ${P.length}, points `+d.length);var v={};for(let E=0;E<P.length;E++)v[P[E].identifier]=d[E];return v}function Ii(P){var d=new o.Point(0,0);for(const v of P)d._add(v);return d.div(P.length)}class jv{constructor(d){this.reset(),this.numTouches=d.numTouches}reset(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1}touchstart(d,v,E){(this.centroid||E.length>this.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=d.timeStamp),E.length===this.numTouches&&(this.centroid=Ii(v),this.touches=Mu(E,v)))}touchmove(d,v,E){if(!this.aborted&&this.centroid){var A=Mu(E,v);for(const ee in this.touches){var M=this.touches[ee],G=A[ee];(!G||30<G.dist(M))&&(this.aborted=!0)}}}touchend(d,v,E){if((!this.centroid||500<d.timeStamp-this.startTime)&&(this.aborted=!0),E.length===0&&(d=!this.aborted&&this.centroid,this.reset(),d))return d}}class by{constructor(d){this.singleTap=new jv(d),this.numTaps=d.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(d,v,E){this.singleTap.touchstart(d,v,E)}touchmove(d,v,E){this.singleTap.touchmove(d,v,E)}touchend(d,v,E){if(v=this.singleTap.touchend(d,v,E),v){var E=d.timeStamp-this.lastTime<500,A=!this.lastTap||this.lastTap.dist(v)<30;if(E&&A||this.reset(),this.count++,this.lastTime=d.timeStamp,this.lastTap=v,this.count===this.numTaps)return this.reset(),v}}}class Oc{constructor(d){this._tr=new Ql(d),this._zoomIn=new by({numTouches:1,numTaps:2}),this._zoomOut=new by({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(d,v,E){this._zoomIn.touchstart(d,v,E),this._zoomOut.touchstart(d,v,E)}touchmove(d,v,E){this._zoomIn.touchmove(d,v,E),this._zoomOut.touchmove(d,v,E)}touchend(d,v,E){const A=this._zoomIn.touchend(d,v,E),M=this._zoomOut.touchend(d,v,E),G=this._tr;return A?(this._active=!0,d.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:ee=>ee.easeTo({duration:300,zoom:G.zoom+1,around:G.unproject(A)},{originalEvent:d})}):M?(this._active=!0,d.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:ee=>ee.easeTo({duration:300,zoom:G.zoom-1,around:G.unproject(M)},{originalEvent:d})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class vo{constructor(d){this._enabled=!!d.enable,this._moveStateManager=d.moveStateManager,this._clickTolerance=d.clickTolerance||1,this._moveFunction=d.move,this._activateOnStart=!!d.activateOnStart,d.assignEvents(this),this.reset()}reset(d){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(d)}_move(...d){if(d=this._moveFunction(...d),d.bearingDelta||d.pitchDelta||d.around||d.panDelta)return this._active=!0,d}dragStart(d,v){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(d)&&(this._moveStateManager.startMove(d),this._lastPoint=v.length?v[0]:v,this._activateOnStart)&&this._lastPoint&&(this._active=!0)}dragMove(d,v){if(this.isEnabled()){var E=this._lastPoint;if(E)if(d.preventDefault(),this._moveStateManager.isValidMoveEvent(d)){if(v=v.length?v[0]:v,this._moved||!(v.dist(E)<this._clickTolerance))return this._moved=!0,this._lastPoint=v,this._move(E,v)}else this.reset(d)}}dragEnd(d){this.isEnabled()&&this._lastPoint&&this._moveStateManager.isValidEndEvent(d)&&(this._moved&&m.suppressClick(),this.reset(d))}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}getClickTolerance(){return this._clickTolerance}}const wy={0:1,2:2};function Vv(P,d){return d=wy[d],P.buttons===void 0||(P.buttons&d)!==d}class uf{constructor(d){this._correctEvent=d.checkCorrectEvent}startMove(d){d=m.mouseButton(d),this._eventButton=d}endMove(d){delete this._eventButton}isValidStartEvent(d){return this._correctEvent(d)}isValidMoveEvent(d){return!Vv(d,this._eventButton)}isValidEndEvent(d){return m.mouseButton(d)===this._eventButton}}class Nu{constructor(){this._firstTouch=void 0}_isOneFingerTouch(d){return d.targetTouches.length===1}_isSameTouchEvent(d){return d.targetTouches[0].identifier===this._firstTouch}startMove(d){d=d.targetTouches[0].identifier,this._firstTouch=d}endMove(d){delete this._firstTouch}isValidStartEvent(d){return this._isOneFingerTouch(d)}isValidMoveEvent(d){return this._isOneFingerTouch(d)&&this._isSameTouchEvent(d)}isValidEndEvent(d){return this._isOneFingerTouch(d)&&this._isSameTouchEvent(d)}}const df=P=>{P.mousedown=P.dragStart,P.mousemoveWindow=P.dragMove,P.mouseup=P.dragEnd,P.contextmenu=function(d){d.preventDefault()}},ih=({enable:P,clickTolerance:d})=>{var v=new uf({checkCorrectEvent:E=>m.mouseButton(E)===0&&!E.ctrlKey});return new vo({clickTolerance:d,move:(E,A)=>({around:A,panDelta:A.sub(E)}),activateOnStart:!0,moveStateManager:v,enable:P,assignEvents:df})},Ys=({enable:P,clickTolerance:d,bearingDegreesPerPixelMoved:v=.8})=>{var E=new uf({checkCorrectEvent:A=>m.mouseButton(A)===0&&A.ctrlKey||m.mouseButton(A)===2});return new vo({clickTolerance:d,move:(A,M)=>({bearingDelta:(M.x-A.x)*v}),moveStateManager:E,enable:P,assignEvents:df})},hf=({enable:P,clickTolerance:d,pitchDegreesPerPixelMoved:v=-.5})=>{var E=new uf({checkCorrectEvent:A=>m.mouseButton(A)===0&&A.ctrlKey||m.mouseButton(A)===2});return new vo({clickTolerance:d,move:(A,M)=>({pitchDelta:(M.y-A.y)*v}),moveStateManager:E,enable:P,assignEvents:df})};class on{constructor(d,v){this._clickTolerance=d.clickTolerance||1,this._map=v,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new o.Point(0,0)}minTouchs(){return this._map.cooperativeGestures.isEnabled()?2:1}touchstart(d,v,E){return this._calculateTransform(d,v,E)}touchmove(d,v,E){if(this._active&&!(E.length<this.minTouchs()))return d.preventDefault(),this._calculateTransform(d,v,E)}touchend(d,v,E){this._calculateTransform(d,v,E),this._active&&E.length<this.minTouchs()&&this.reset()}touchcancel(){this.reset()}_calculateTransform(d,v,E){0<E.length&&(this._active=!0);var A=Mu(E,v),M=new o.Point(0,0),G=new o.Point(0,0);let ee=0;for(const Ne in A){var he=A[Ne],Ie=this._touches[Ne];Ie&&(M._add(he),G._add(he.sub(Ie)),ee++,A[Ne]=he)}if(this._touches=A,!(ee<this.minTouchs())&&G.mag()&&(E=G.div(ee),this._sum._add(E),!(this._sum.mag()<this._clickTolerance)))return{around:M.div(ee),panDelta:E}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class dn{constructor(){this.reset()}reset(){this._active=!1,delete this._firstTwoTouches}touchstart(d,v,E){this._firstTwoTouches||E.length<2||(this._firstTwoTouches=[E[0].identifier,E[1].identifier],this._start([v[0],v[1]]))}touchmove(d,v,E){if(this._firstTwoTouches){d.preventDefault();var[M,A]=this._firstTwoTouches,M=ou(E,v,M),E=ou(E,v,A);if(M&&E)return v=this._aroundCenter?null:M.add(E).div(2),this._move([M,E],v,d)}}touchend(d,v,E){var A,M;this._firstTwoTouches&&([M,A]=this._firstTwoTouches,M=ou(E,v,M),E=ou(E,v,A),M&&E||(this._active&&m.suppressClick(),this.reset()))}touchcancel(){this.reset()}enable(d){this._enabled=!0,this._aroundCenter=!!d&&d.around==="center"}disable(){this._enabled=!1,this.reset()}isEnabled(){return!!this._enabled}isActive(){return!!this._active}}function ou(P,d,v){for(let E=0;E<P.length;E++)if(P[E].identifier===v)return d[E]}function ff(P,d){return Math.log(P/d)/Math.LN2}class Du extends dn{reset(){super.reset(),delete this._distance,delete this._startDistance}_start(d){this._startDistance=this._distance=d[0].dist(d[1])}_move(d,v){var E=this._distance;if(this._distance=d[0].dist(d[1]),this._active||!(Math.abs(ff(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:ff(this._distance,E),pinchAround:v}}}function hs(P,d){return 180*P.angleWith(d)/Math.PI}class Eo extends dn{reset(){super.reset(),delete this._minDiameter,delete this._startVector,delete this._vector}_start(d){this._startVector=this._vector=d[0].sub(d[1]),this._minDiameter=d[0].dist(d[1])}_move(d,v,E){var A=this._vector;if(this._vector=d[0].sub(d[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:hs(this._vector,A),pinchAround:v}}_isBelowThreshold(E){this._minDiameter=Math.min(this._minDiameter,E.mag());var v=25/(Math.PI*this._minDiameter)*360,E=hs(E,this._startVector);return Math.abs(E)<v}}function Jl(P){return Math.abs(P.y)>Math.abs(P.x)}class Ey extends dn{constructor(d){super(),this._currentTouchCount=0,this._map=d}
vendor: 11,253 bytes, line 704
704reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(d,v,E){super.touchstart(d,v,E),this._currentTouchCount=E.length}_start(d){Jl((this._lastPoints=d)[0].sub(d[1]))&&(this._valid=!1)}_move(d,v,E){if(!(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)){var A=d[0].sub(this._lastPoints[0]),M=d[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(A,M,E.timeStamp),this._valid)return this._lastPoints=d,this._active=!0,{pitchDelta:-.5*((A.y+M.y)/2)}}}gestureBeginsVertically(d,v,E){var A,M;return this._valid!==void 0?this._valid:(M=2<=d.mag(),A=2<=v.mag(),M||A?M&&A?(M=0<d.y==0<v.y,Jl(d)&&Jl(v)&&M):(this._firstMove===void 0&&(this._firstMove=E),E-this._firstMove<100&&void 0):void 0)}}const au={panStep:100,bearingStep:15,pitchStep:10};class No{constructor(d){this._tr=new Ql(d),d=au,this._panStep=d.panStep,this._bearingStep=d.bearingStep,this._pitchStep=d.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(d){if(!(d.altKey||d.ctrlKey||d.metaKey)){let v=0,E=0,A=0,M=0,G=0;switch(d.keyCode){case 61:case 107:case 171:case 187:v=1;break;case 189:case 109:case 173:v=-1;break;case 37:d.shiftKey?E=-1:(d.preventDefault(),M=-1);break;case 39:d.shiftKey?E=1:(d.preventDefault(),M=1);break;case 38:d.shiftKey?A=1:(d.preventDefault(),G=-1);break;case 40:d.shiftKey?A=-1:(d.preventDefault(),G=1);break;default:return}return this._rotationDisabled&&(E=0,A=0),{cameraAnimation:ee=>{var he=this._tr;ee.easeTo({duration:300,easeId:"keyboardHandler",easing:ta,zoom:v?Math.round(he.zoom)+v*(d.shiftKey?2:1):he.zoom,bearing:he.bearing+E*this._bearingStep,pitch:he.pitch+A*this._pitchStep,offset:[-M*this._panStep,-G*this._panStep],center:he.center},{originalEvent:d})}}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function ta(P){return P*(2-P)}const yp=4.000244140625;class vd{constructor(d,v){this._onTimeout=E=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(E)},this._map=d,this._tr=new Ql(d),this._triggerRenderFrame=v,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450}setZoomRate(d){this._defaultZoomRate=d}setWheelZoomRate(d){this._wheelZoomRate=d}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(d){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!d&&d.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}wheel(d){if(this.isEnabled()&&(!this._map.cooperativeGestures.isEnabled()||d[this._map.cooperativeGestures._bypassKey])){let A=d.deltaMode===WheelEvent.DOM_DELTA_LINE?40*d.deltaY:d.deltaY;var v=p.now(),E=v-(this._lastWheelEventTime||0);this._lastWheelEventTime=v,A!==0&&A%yp==0?this._type="wheel":A!==0&&Math.abs(A)<4?this._type="trackpad":400<E?(this._type=null,this._lastValue=A,this._timeout=setTimeout(this._onTimeout,40,d)):this._type||(this._type=Math.abs(E*A)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,A+=this._lastValue)),d.shiftKey&&A&&(A/=4),this._type&&(this._lastWheelEvent=d,this._delta-=A,this._active||this._start(d)),d.preventDefault()}}_start(d){var v;this._delta&&(this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout),d=m.mousePos(this._map.getCanvas(),d),v=this._tr,d.y>v.transform.height/2-v.transform.getHorizon()?this._around=o.LngLat.convert(this._aroundCenter?v.center:v.unproject(d)):this._around=o.LngLat.convert(v.center),this._aroundPoint=v.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame()))}renderFrame(){if(this._frameId&&(this._frameId=null,this.isActive())){var d=this._tr.transform;if(this._delta!==0){var E=this._type==="wheel"&&Math.abs(this._delta)>yp?this._wheelZoomRate:this._defaultZoomRate;let Ie=2/(1+Math.exp(-Math.abs(this._delta*E)));this._delta<0&&Ie!==0&&(Ie=1/Ie),E=typeof this._targetZoom=="number"?d.zoomScale(this._targetZoom):d.scale,this._targetZoom=Math.min(d.maxZoom,Math.max(d.minZoom,d.scaleZoom(E*Ie))),this._type==="wheel"&&(this._startZoom=d.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var v,E=typeof this._targetZoom=="number"?this._targetZoom:d.zoom,A=this._startZoom,M=this._easing;let G=!1,ee;return this._type==="wheel"&&A&&M?(v=M(M=Math.min((p.now()-this._lastWheelEventTime)/200,1)),ee=o.interpolate.number(A,E,v),M<1?this._frameId||(this._frameId=!0):G=!0):(ee=E,G=!0),this._active=!0,G&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!G,zoomDelta:ee-d.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}}_smoothOutEasing(d){let v=o.defaultEasing;var E,A;return this._prevEase&&(A=this._prevEase,E=(p.now()-A.start)/A.duration,A=A.easing(.01+E)-A.easing(E),E=.27/Math.sqrt(A*A+1e-4)*.01,A=Math.sqrt(.0729-E*E),v=o.bezier(E,A,.25,1)),this._prevEase={start:p.now(),duration:d,easing:v},v}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class _d{constructor(d,v){this._clickZoom=d,this._tapZoom=v}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class qv{constructor(d){this._tr=new Ql(d),this.reset()}reset(){this._active=!1}dblclick(d,v){return d.preventDefault(),{cameraAnimation:E=>{E.easeTo({duration:300,zoom:this._tr.zoom+(d.shiftKey?-1:1),around:this._tr.unproject(v)},{originalEvent:d})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Fa{constructor(){this._tap=new by({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(d,v,E){var A,M,G;this._swipePoint||(this._tapTime?(A=v[0],M=d.timeStamp-this._tapTime<500,G=this._tapPoint.dist(A)<30,M&&G?0<E.length&&(this._swipePoint=A,this._swipeTouch=E[0].identifier):this.reset()):this._tap.touchstart(d,v,E))}touchmove(d,v,E){if(this._tapTime){if(this._swipePoint){var A,M;if(E[0].identifier===this._swipeTouch)return M=(A=v[0]).y-this._swipePoint.y,this._swipePoint=A,d.preventDefault(),this._active=!0,{zoomDelta:M/128}}}else this._tap.touchmove(d,v,E)}touchend(d,v,E){this._tapTime?this._swipePoint&&E.length===0&&this.reset():(v=this._tap.touchend(d,v,E))&&(this._tapTime=d.timeStamp,this._tapPoint=v)}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class fs{constructor(d,v,E){this._el=d,this._mousePan=v,this._touchPan=E}enable(d){this._inertiaOptions=d||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class vp{constructor(d,v,E){this._pitchWithRotate=d.pitchWithRotate,this._mouseRotate=v,this._mousePitch=E}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class _p{constructor(d,v,E,A){this._el=d,this._touchZoom=v,this._touchRotate=E,this._tapDragZoom=A,this._rotationDisabled=!1,this._enabled=!0}enable(d){this._touchZoom.enable(d),this._rotationDisabled||this._touchRotate.enable(d),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class pf{constructor(d,v){this._bypassKey=navigator.userAgent.indexOf("Mac")!==-1?"metaKey":"ctrlKey",this._map=d,this._options=v,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(!this._container){var d=this._map.getCanvasContainer();d.classList.add("maplibregl-cooperative-gestures"),this._container=m.create("div","maplibregl-cooperative-gesture-screen",d);let E=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(E=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));var d=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),v=document.createElement("div"),v=(v.className="maplibregl-desktop-message",v.textContent=E,this._container.appendChild(v),document.createElement("div"));v.className="maplibregl-mobile-message",v.textContent=d,this._container.appendChild(v),this._container.setAttribute("aria-hidden","true")}}_destoryUI(){this._container&&(m.remove(this._container),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destoryUI()}isEnabled(){return this._enabled}touchmove(d){this._onCooperativeGesture(d.touches.length===1)}wheel(d){this._map.scrollZoom.isEnabled()&&this._onCooperativeGesture(!d[this._bypassKey])}_onCooperativeGesture(d){this._enabled&&d&&(this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}}const gf=P=>P.zoom||P.drag||P.pitch||P.rotate;class bp extends o.Event{}function Lu(P){return P.panDelta&&P.panDelta.mag()||P.zoomDelta||P.bearingDelta||P.pitchDelta}class wp{constructor(G,v){this.handleWindowEvent=ee=>{this.handleEvent(ee,ee.type+"Window")},this.handleEvent=(ee,he)=>{if(ee.type==="blur")this.stop(!0);else{this._updatingCamera=!0;var Ie,Ne,we,De=ee.type==="renderFrame"?void 0:ee,nt={needsRenderFrame:!1},at={},ut={},st=ee.touches,_t=st?this._getMapTouches(st):void 0,xt=_t?m.touchPos(this._map.getCanvas(),_t):m.mousePos(this._map.getCanvas(),ee);for({handlerName:Ie,handler:Ne,allowed:we}of this._handlers)if(Ne.isEnabled()){let Ft;this._blockedByActive(ut,we,Ie)?Ne.reset():Ne[he||ee.type]&&(Ft=Ne[he||ee.type](ee,xt,_t),this.mergeHandlerResult(nt,at,Ft,Ie,De),Ft)&&Ft.needsRenderFrame&&this._triggerRe
vendor: 5,296 bytes, line 704
704nderFrame(),(Ft||Ne.isActive())&&(ut[Ie]=Ne)}var At={};for(const Ft in this._previousActiveHandlers)ut[Ft]||(At[Ft]=De);this._previousActiveHandlers=ut,(Object.keys(At).length||Lu(nt))&&(this._changes.push([nt,at,At]),this._triggerRenderFrame()),(Object.keys(ut).length||Lu(nt))&&this._map._stop(!0),this._updatingCamera=!1,st=nt.cameraAnimation,st&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],st(this._map))}},this._map=G,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Si(G),this._bearingSnap=v.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(v);var E,A,M,G=this._el;this._listeners=[[G,"touchstart",{passive:!0}],[G,"touchmove",{passive:!1}],[G,"touchend",void 0],[G,"touchcancel",void 0],[G,"mousedown",void 0],[G,"mousemove",void 0],[G,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[G,"mouseover",void 0],[G,"mouseout",void 0],[G,"dblclick",void 0],[G,"click",void 0],[G,"keydown",{capture:!1}],[G,"keyup",void 0],[G,"wheel",{passive:!1}],[G,"contextmenu",void 0],[window,"blur",void 0]];for([E,A,M]of this._listeners)m.addEventListener(E,A,E===document?this.handleWindowEvent:this.handleEvent,M)}destroy(){for(var[d,v,E]of this._listeners)m.removeEventListener(d,v,d===document?this.handleWindowEvent:this.handleEvent,E)}_addDefaultHandlers(d){var v=this._map,M=v.getCanvasContainer(),G=(this._add("mapEvent",new mp(v,d)),v.boxZoom=new Mg(v,d)),G=(this._add("boxZoom",G),d.interactive&&d.boxZoom&&G.enable(),v.cooperativeGestures=new pf(v,d.cooperativeGestures)),G=(this._add("cooperativeGestures",G),d.cooperativeGestures&&G.enable(),new Oc(v)),E=new qv(v),G=(v.doubleClickZoom=new _d(E,G),this._add("tapZoom",G),this._add("clickZoom",E),d.interactive&&d.doubleClickZoom&&v.doubleClickZoom.enable(),new Fa),E=(this._add("tapDragZoom",G),v.touchPitch=new Ey(v)),E=(this._add("touchPitch",E),d.interactive&&d.touchPitch&&v.touchPitch.enable(d.touchPitch),Ys(d)),A=hf(d),E=(v.dragRotate=new vp(d,E,A),this._add("mouseRotate",E,["mousePitch"]),this._add("mousePitch",A,["mouseRotate"]),d.interactive&&d.dragRotate&&v.dragRotate.enable(),ih(d)),A=new on(d,v),E=(v.dragPan=new fs(M,E,A),this._add("mousePan",E),this._add("touchPan",A,["touchZoom","touchRotate"]),d.interactive&&d.dragPan&&v.dragPan.enable(d.dragPan),new Eo),A=new Du,M=(v.touchZoomRotate=new _p(M,A,E,G),this._add("touchRotate",E,["touchPan","touchZoom"]),this._add("touchZoom",A,["touchPan","touchRotate"]),d.interactive&&d.touchZoomRotate&&v.touchZoomRotate.enable(d.touchZoomRotate),v.scrollZoom=new vd(v,()=>this._triggerRenderFrame())),G=(this._add("scrollZoom",M,["mousePan"]),d.interactive&&d.scrollZoom&&v.scrollZoom.enable(d.scrollZoom),v.keyboard=new No(v));this._add("keyboard",G),d.interactive&&d.keyboard&&v.keyboard.enable(),this._add("blockableMapEvent",new Pr(v))}_add(d,v,E){this._handlers.push({handlerName:d,handler:v,allowed:E}),this._handlersById[d]=v}stop(d){if(!this._updatingCamera){for(var{handler:v}of this._handlers)v.reset();this._inertia.clear(),this._fireEvents({},{},d),this._changes=[]}}isActive(){for(var{handler:d}of this._handlers)if(d.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!gf(this._eventsInProgress)||this.isZooming()}_blockedByActive(d,v,E){for(const A in d)if(A!==E&&(!v||v.indexOf(A)<0))return!0;return!1}_getMapTouches(d){var v=[];for(const A of d){var E=A.target;this._el.contains(E)&&v.push(A)}return v}mergeHandlerResult(d,v,E,A,M){E&&(o.extend(d,E),d={handlerName:A,originalEvent:E.originalEvent||M},E.zoomDelta!==void 0&&(v.zoom=d),E.panDelta!==void 0&&(v.drag=d),E.pitchDelta!==void 0&&(v.pitch=d),E.bearingDelta!==void 0)&&(v.rotate=d)}_applyChanges(){var d,v,E,A={},M={},G={};for([d,v,E]of this._changes)d.panDelta&&(A.panDelta=(A.panDelta||new o.Point(0,0))._add(d.panDelta)),d.zoomDelta&&(A.zoomDelta=(A.zoomDelta||0)+d.zoomDelta),d.bearingDelta&&(A.bearingDelta=(A.bearingDelta||0)+d.bearingDelta),d.pitchDelta&&(A.pitchDelta=(A.pitchDelta||0)+d.pitchDelta),d.around!==void 0&&(A.around=d.around),d.pinchAround!==void 0&&(A.pinchAround=d.pinchAround),d.noInertia&&(A.noInertia=d.noInertia),o.extend(M,v),o.extend(G,E);this._updateMapTransform(A,M,G),this._changes=[]}_updateMapTransform(d,v,E){const A=this._map,M=A._getTransformForUpdate();var G=A.terrain;if(!(Lu(d)||G&&this._terrainMovement))return this._fireEvents(v,E,!0);let{panDelta:ee,zoomDelta:he,bearingDelta:Ie,pitchDelta:Ne,around:we,pinchAround:De}=d;De!==void 0&&(we=De),A._stop(!0),we=we||A.transform.centerPoint;var nt=M.pointLocation(ee?we.sub(ee):we);Ie&&(M.bearing+=Ie),Ne&&(M.pitch+=Ne),he&&(M.zoom+=he),G?this._terrainMovement||!v.drag&&!v.zoom?v.drag&&this._terrainMovement?M.center=M.pointLocation(M.centerPoint.sub(ee)):M.setLocationAtPoint(nt,we):(this._terrainMovement=!0,this._map._elevationFreeze=!0,M.setLocationAtPoint(nt,we),this._map.once("moveend",()=>{this._map._elevationFreeze=!1,this._terrainMovement=!1,M.recalculateZoom(A.terrain)})):M.setLocationAtPoint(nt,we),A._applyUpdatedTransform(M),this._map._update(),d.noInertia||this._inertia.record(d),this._fireEvents(v,E,!0)}
vendor: 16,494 bytes, line 704
704_fireEvents(d,v,E){var A=gf(this._eventsInProgress),M=gf(d),G={};for(const at in d){var ee=d[at].originalEvent;this._eventsInProgress[at]||(G[at+"start"]=ee),this._eventsInProgress[at]=d[at]}!A&&M&&this._fireEvent("movestart",M.originalEvent);for(const at in G)this._fireEvent(at,G[at]);M&&this._fireEvent("move",M.originalEvent);for(const at in d){var he=d[at].originalEvent;this._fireEvent(at,he)}var Ie={};let Ne;for(const at in this._eventsInProgress){var{handlerName:we,originalEvent:De}=this._eventsInProgress[at];this._handlersById[we].isActive()||(delete this._eventsInProgress[at],Ne=v[we]||De,Ie[at+"end"]=Ne)}for(const at in Ie)this._fireEvent(at,Ie[at]);var nt=gf(this._eventsInProgress);E&&(A||M)&&!nt&&(this._updatingCamera=!0,E=at=>at!==0&&-this._bearingSnap<at&&at<this._bearingSnap,!(A=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions))||!A.essential&&p.prefersReducedMotion?(this._map.fire(new o.Event("moveend",{originalEvent:Ne})),E(this._map.getBearing())&&this._map.resetNorth()):(E(A.bearing||this._map.getBearing())&&(A.bearing=0),A.freezeElevation=!0,this._map.easeTo(A,{originalEvent:Ne})),this._updatingCamera=!1)}_fireEvent(d,v){this._map.fire(new o.Event(d,v?{originalEvent:v}:{}))}_requestFrame(){return this._map.triggerRepaint(),this._map._renderTaskQueue.add(d=>{delete this._frameId,this.handleEvent(new bp("renderFrame",{timeStamp:d})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class mf extends o.Evented{constructor(d,v){super(),this._renderFrameCallback=()=>{var E=Math.min((p.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(E)),E<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=d,this._bearingSnap=v.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new o.LngLat(this.transform.center.lng,this.transform.center.lat)}setCenter(d,v){return this.jumpTo({center:d},v)}panBy(d,v,E){return d=o.Point.convert(d).mult(-1),this.panTo(this.transform.center,o.extend({offset:d},v),E)}panTo(d,v,E){return this.easeTo(o.extend({center:d},v),E)}getZoom(){return this.transform.zoom}setZoom(d,v){return this.jumpTo({zoom:d},v),this}zoomTo(d,v,E){return this.easeTo(o.extend({zoom:d},v),E)}zoomIn(d,v){return this.zoomTo(this.getZoom()+1,d,v),this}zoomOut(d,v){return this.zoomTo(this.getZoom()-1,d,v),this}getBearing(){return this.transform.bearing}setBearing(d,v){return this.jumpTo({bearing:d},v),this}getPadding(){return this.transform.padding}setPadding(d,v){return this.jumpTo({padding:d},v),this}rotateTo(d,v,E){return this.easeTo(o.extend({bearing:d},v),E)}resetNorth(d,v){return this.rotateTo(0,o.extend({duration:1e3},d),v),this}resetNorthPitch(d,v){return this.easeTo(o.extend({bearing:0,pitch:0,duration:1e3},d),v),this}snapToNorth(d,v){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(d,v):this}getPitch(){return this.transform.pitch}setPitch(d,v){return this.jumpTo({pitch:d},v),this}cameraForBounds(d,v){d=le.convert(d);var E=v&&v.bearing||0;return this._cameraForBoxAndBearing(d.getNorthWest(),d.getSouthEast(),E,v)}_cameraForBoxAndBearing(De,ee,E,A){var G={top:0,bottom:0,right:0,left:0},M=(typeof(A=o.extend({padding:G,offset:[0,0],maxZoom:this.transform.maxZoom},A)).padding=="number"&&(M=A.padding,A.padding={top:M,bottom:M,right:M,left:M}),A.padding=o.extend(G,A.padding),this.transform),G=M.padding,De=new le(De,ee),ee=M.project(De.getNorthWest()),we=M.project(De.getNorthEast()),he=M.project(De.getSouthEast()),De=M.project(De.getSouthWest()),Ie=o.degreesToRadians(-E),Ne=ee.rotate(Ie),we=we.rotate(Ie),nt=he.rotate(Ie),De=De.rotate(Ie),Ie=new o.Point(Math.max(Ne.x,we.x,De.x,nt.x),Math.max(Ne.y,we.y,De.y,nt.y)),Ne=new o.Point(Math.min(Ne.x,we.x,De.x,nt.x),Math.min(Ne.y,we.y,De.y,nt.y)),we=Ie.sub(Ne),De=(M.width-(G.left+G.right+A.padding.left+A.padding.right))/we.x,nt=(M.height-(G.top+G.bottom+A.padding.top+A.padding.bottom))/we.y;if(!(nt<0||De<0))return Ie=Math.min(M.scaleZoom(M.scale*Math.min(De,nt)),A.maxZoom),Ne=o.Point.convert(A.offset),G=(A.padding.left-A.padding.right)/2,we=(A.padding.top-A.padding.bottom)/2,De=new o.Point(G,we).rotate(o.degreesToRadians(E)),nt=Ne.add(De).mult(M.scale/M.zoomScale(Ie)),{center:M.unproject(ee.add(he).div(2).sub(nt)),zoom:Ie,bearing:E};o.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}fitBounds(d,v,E){return this._fitInternal(this.cameraForBounds(d,v),v,E)}fitScreenCoordinates(d,v,E,A,M){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(o.Point.convert(d)),this.transform.pointLocation(o.Point.convert(v)),E,A),A,M)}_fitInternal(d,v,E){return d?(delete(v=o.extend(d,v)).padding,v.linear?this.easeTo(v,E):this.flyTo(v,E)):this}jumpTo(d,v){this.stop();var E=this._getTransformForUpdate();let A=!1,M=!1,G=!1;return"zoom"in d&&E.zoom!==+d.zoom&&(A=!0,E.zoom=+d.zoom),d.center!==void 0&&(E.center=o.LngLat.convert(d.center)),"bearing"in d&&E.bearing!==+d.bearing&&(M=!0,E.bearing=+d.bearing),"pitch"in d&&E.pitch!==+d.pitch&&(G=!0,E.pitch=+d.pitch),d.padding==null||E.isPaddingEqual(d.padding)||(E.padding=d.padding),this._applyUpdatedTransform(E),this.fire(new o.Event("movestart",v)).fire(new o.Event("move",v)),A&&this.fire(new o.Event("zoomstart",v)).fire(new o.Event("zoom",v)).fire(new o.Event("zoomend",v)),M&&this.fire(new o.Event("rotatestart",v)).fire(new o.Event("rotate",v)).fire(new o.Event("rotateend",v)),G&&this.fire(new o.Event("pitchstart",v)).fire(new o.Event("pitch",v)).fire(new o.Event("pitchend",v)),this.fire(new o.Event("moveend",v))}calculateCameraOptionsFromTo(G,M,Ne,we=0){var G=o.MercatorCoordinate.fromLngLat(G,M),M=o.MercatorCoordinate.fromLngLat(Ne,we),Ne=M.x-G.x,we=M.y-G.y,G=M.z-G.z,ee=Math.hypot(Ne,we,G);if(ee===0)throw new Error("Can't calculate camera options with same From and To");var he=Math.hypot(Ne,we),Ie=this.transform.scaleZoom(this.transform.cameraToCenterDistance/ee/this.transform.tileSize),Ne=180*Math.atan2(Ne,-we)/Math.PI,we=180*Math.acos(he/ee)/Math.PI,we=G<0?90-we:90+we;return{center:M.toLngLat(),zoom:Ie,pitch:we,bearing:Ne}}easeTo(d,v){this._stop(!1,d.easeId),((d=o.extend({offset:[0,0],duration:500,easing:o.defaultEasing},d)).animate===!1||!d.essential&&p.prefersReducedMotion)&&(d.duration=0);const E=this._getTransformForUpdate(),A=this.getZoom(),M=this.getBearing(),G=this.getPitch(),ee=this.getPadding(),he="bearing"in d?this._normalizeBearing(d.bearing,M):M,Ie="pitch"in d?+d.pitch:G,Ne=("padding"in d?d:E).padding,we=o.Point.convert(d.offset);let De=E.centerPoint.add(we);var nt=E.pointLocation(De);const{center:at,zoom:ut}=E.getConstrained(o.LngLat.convert(d.center||nt),($t=d.zoom)!=null?$t:A),st=(this._normalizeCenter(at),E.project(nt)),_t=E.project(at).sub(st),xt=E.zoomScale(ut-A);let At,Ft;d.around&&(At=o.LngLat.convert(d.around),Ft=E.locationPoint(At));var $t={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||ut!==A,this._rotating=this._rotating||M!==he,this._pitching=this._pitching||Ie!==G,this._padding=!E.isPaddingEqual(Ne),this._easeId=d.easeId,this._prepareEase(v,d.noMoveStart,$t),this.terrain&&this._prepareElevation(at),this._ease(Bt=>{var Zt,Xt;this._zooming&&(E.zoom=o.interpolate.number(A,ut,Bt)),this._rotating&&(E.bearing=o.interpolate.number(M,he,Bt)),this._pitching&&(E.pitch=o.interpolate.number(G,Ie,Bt)),this._padding&&(E.interpolatePadding(ee,Ne,Bt),De=E.centerPoint.add(we)),this.terrain&&!d.freezeElevation&&this._updateElevation(Bt),At?E.setLocationAtPoint(At,Ft):(Zt=E.zoomScale(E.zoom-A),Xt=ut>A?Math.min(2,xt):Math.max(.5,xt),Xt=Math.pow(Xt,1-Bt),Bt=E.unproject(st.add(_t.mult(Bt*Xt)).mult(Zt)),E.setLocationAtPoint(E.renderWorldCopies?Bt.wrap():Bt,De)),this._applyUpdatedTransform(E),this._fireMoveEvents(v)},Bt=>{this.terrain&&this._finalizeElevation(),this._afterEase(v,Bt)},d),this}_prepareEase(d,v,E={}){this._moving=!0,v||E.moving||this.fire(new o.Event("movestart",d)),this._zooming&&!E.zooming&&this.fire(new o.Event("zoomstart",d)),this._rotating&&!E.rotating&&this.fire(new o.Event("rotatestart",d)),this._pitching&&!E.pitching&&this.fire(new o.Event("pitchstart",d))}_prepareElevation(d){this._elevationCenter=d,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(d,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(d){this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);var v,E,A=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);d<1&&A!==this._elevationTarget&&(E=(A-((v=this._elevationTarget-this._elevationStart)*d+this._elevationStart))/(1-d),this._elevationStart+=d*(v-E),this._elevationTarget=A),this.transform.elevation=o.interpolate.number(this._elevationStart,this._elevationTarget,d)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_applyUpdatedTransform(d){var v,E,A,M,G;this.transformCameraUpdate&&(d=d.clone(),{center:v,zoom:E,pitch:A,bearing:M,elevation:G}=this.transformCameraUpdate(d),v&&(d.center=v),E!==void 0&&(d.zoom=E),A!==void 0&&(d.pitch=A),M!==void 0&&(d.bearing=M),G!==void 0&&(d.elevation=G),this.transform.apply(d))}_fireMoveEvents(d){this.fire(new o.Event("move",d)),this._zooming&&this.fire(new o.Event("zoom",d)),this._rotating&&this.fire(new o.Event("rotate",d)),this._pitching&&this.fire(new o.Event("pitch",d))}_afterEase(d,v){var E,A;this._easeId&&v&&this._easeId===v||(delete this._easeId,this.fire(new o.Event("freezeElevation",{freeze:!1})),v=this._zooming,E=this._rotating,A=this._pitching,this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,v&&this.fire(new o.Event("zoomend",d)),E&&this.fire(new o.Event("rotateend",d)),A&&this.fire(new o.Event("pitchend",d)),this.fire(new o.Event("moveend",d)))}flyTo(d,v){if(!d.essential&&p.prefersReducedMotion)return nt=o.pick(d,["center","zoom","bearing","pitch","around"]),this.jumpTo(nt,v);this.stop(),d=o.extend({offset:[0,0],speed:1.2,curve:1.42,easing:o.defaultEasing},d);const E=this._getTransformForUpdate(),A=this.getZoom(),M=this.getBearing(),G=this.getPitch(),ee=this.getPadding(),he="bearing"in d?this._normalizeBearing(d.bearing,M):M,Ie="pitch"in d?+d.pitch:G,Ne=("padding"in d?d:E).padding,we=o.Point.convert(d.offset);let De=E.centerPoint.add(we);var nt=E.pointLocation(De);const{center:at,zoom:ut}=E.getConstrained(o.LngLat.convert(d.center||nt),(st=d.zoom)!=null?st:A);this._normalizeCenter(at);var st=E.zoomScale(ut-A);const _t=E.project(nt),xt=E.project(at).sub(_t);let At=d.curve;const Ft=Math.max(E.width,E.height),$t=Ft/st,Bt=xt.mag(),Zt=("minZoom"in d&&(nt=o.clamp(Math.min(d.minZoom,A,ut),E.minZoom,E.maxZoom),st=Ft/E.zoomScale(nt-A),At=Math.sqrt(st/Bt*2)),At*At);function Xt(vr){return vr=($t*$t-Ft*Ft+(vr?-1:1)*Zt*Zt*Bt*Bt)/(2*(vr?$t:Ft)*Zt*Bt),Math.log(Math.sqrt(vr*vr+1)-vr)}function yr(vr){return(Math.exp(vr)-Math.exp(-vr))/2}function xr(vr){return(Math.exp(vr)+Math.exp(-vr))/2}const Dr=Xt(!1);let Jr=function(vr){return xr(Dr)/xr(Dr+At*vr)},an=function(vr){return Ft*((xr(Dr)*(yr(vr=Dr+At*vr)/xr(vr))-yr(Dr))/Zt)/Bt},jr=(Xt(!0)-Dr)/At;if(Math.abs(Bt)<1e-6||!isFinite(jr)){if(Math.abs(Ft-$t)<1e-6)return this.easeTo(d,v);const vr=$t<Ft?-1:1;jr=Math.abs(Math.log($t/Ft))/At,an=function(){return 0},Jr=function(sn){return Math.exp(vr*At*sn)}}return"duration"in d?d.duration=+d.duration:(nt="screenSpeed"in d?+d.screenSpeed/At:+d.speed,d.duration=1e3*jr/nt),d.maxDuration&&d.duration>d.maxDuration&&(d.duration=0),this._zooming=!0,this._rotating=M!==he,this._pitching=Ie!==G,this._padding=!E.isPaddingEqual(Ne),this._prepareEase(v,!1),this.terrain&&this._prepareElevation(at),this._ease(Tr=>{var sn=Tr*jr,yn=1/Jr(sn),Tr=(E.zoom=Tr===1?ut:A+E.scaleZoom(yn),this._rotating&&(E.bearing=o.interpolate.number(M,he,Tr)),this._pitching&&(E.pitch=o.interpolate.number(G,Ie,Tr)),this._padding&&(E.interpolatePadding(ee,Ne,Tr),De=E.centerPoint.add(we)),this.terrain&&!d.freezeElevation&&this._updateElevation(Tr),Tr===1?at:E.unproject(_t.add(xt.mult(an(sn))).mult(yn)));E.setLocationAtPoint(E.renderWorldCopies?Tr.wrap():Tr,De),this._applyUpdatedTransform(E),this._fireMoveEvents(v)},()=>{this.terrain&&this._finalizeElevation(),this._afterEase(v)},d),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(d,v){var E;return this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd&&(E=this._onEaseEnd,delete this._onEaseEnd,E.call(this,v)),d||(E=this.handlers)&&E.stop(!1),this}_ease(d,v,E){E.animate===!1||E.duration===0?(d(1),v()):(this._easeStart=p.now(),this._easeOptions=E,this._onEaseFrame=d,this._onEaseEnd=v,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(d,v){d=o.wrap(d,-180,180);var E=Math.abs(d-v);return Math.abs(d-360-v)<E&&(d-=360),Math.abs(d+360-v)<E&&(d+=360),d}_normalizeCenter(d){var v=this.transform;v.renderWorldCopies&&!v.lngRange&&(v=d.lng-v.center.lng,d.lng+=180<v?-360:v<-180?360:0)}queryTerrainElevation(d){return this.terrain?this.terrain.getElevationForLngLatZoom(o.LngLat.convert(d),this.transform.tileZoom)-this.transform.elevation:null}}const oh={compact:!0,customAttribution:'<a href="https://maplibre.org/" target="_blank">MapLibre</a>'};class ah{constructor(d=oh){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=v=>{!v||v.sourceDataType!=="metadata"&&v.sourceDataType!=="visibility"&&v.dataType!=="style"&&v.type!=="terrain"||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=d}getDefaultPosition(){return"bottom-right"}onAdd(d){return this._map=d,this._compact=this.options.compact,this._container=m.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=m.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=m.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){m.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(d,v){v=this._map._getUIString("AttributionControl."+v),d.title=v,d.setAttribute("aria-label",v)}_updateAttributions(){if(this._map.style){let A=[];this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?A=A.concat(this.options.customAttribution.map(M=>typeof M!="string"?"":M)):typeof this.options.customAttribution=="str
704ing"&&A.push(this.options.customAttribution)),this._map.style.stylesheet&&(E=this._map.style.stylesheet,this.styleOwner=E.owner,this.styleId=E.id);var d=this._map.style.sourceCaches;for(const M in d){var v=d[M];(v.used||v.usedForTerrain)&&(v=v.getSource()).attribution&&A.indexOf(v.attribution)<0&&A.push(v.attribution)}(A=A.filter(M=>String(M).trim())).sort((M,G)=>M.length-G.length);var E=(A=A.filter((M,G)=>{for(let ee=G+1;ee<A.length;ee++)if(0<=A[ee].indexOf(M))return!1;return!0})).join(" | ");E!==this._attribHTML&&(this._attribHTML=E,A.length?(this._innerContainer.innerHTML=E,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}}class Ep{constructor(d={}){this._updateCompact=()=>{var v=this._container.children;v.length&&(v=v[0],this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&v.classList.add("maplibregl-compact"):v.classList.remove("maplibregl-compact"))},this.options=d}getDefaultPosition(){return"bottom-left"}onAdd(d){return this._map=d,this._compact=this.options&&this.options.compact,this._container=m.create("div","maplibregl-ctrl"),d=m.create("a","maplibregl-ctrl-logo"),d.target="_blank",d.rel="noopener nofollow",d.href="https://maplibre.org/",d.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),d.setAttribute("rel","noopener nofollow"),this._container.appendChild(d),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){m.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class bd{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(d){var v=++this._id;return this._queue.push({callback:d,id:v,cancelled:!1}),v}remove(d){var v=this._currentlyRunning;for(const E of v?this._queue.concat(v):this._queue)if(E.id===d)return void(E.cancelled=!0)}run(d=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");var v=this._currentlyRunning=this._queue;this._queue=[];for(const E of v)if(!E.cancelled&&(E.callback(d),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var Hu=o.createLayout([{name:"a_pos3d",type:"Int16",components:3}]);class Gv extends o.Evented{constructor(d){super(),this.sourceCache=d,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,d.usedForTerrain=!0,d.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(d,v){this.sourceCache.update(d,v),this._renderableTilesKeys=[];var E={};for(const A of d.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:v}))E[A.key]=!0,this._renderableTilesKeys.push(A.key),this._tiles[A.key]||(A.posMatrix=new Float64Array(16),o.ortho(A.posMatrix,0,o.EXTENT,0,o.EXTENT,0,1),this._tiles[A.key]=new Ke(A,this.tileSize));for(const A in this._tiles)E[A]||delete this._tiles[A]}freeRtt(d){for(const E in this._tiles){var v=this._tiles[E];(!d||v.tileID.equals(d)||v.tileID.isChildOf(d)||d.isChildOf(v.tileID))&&(v.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map(d=>this.getTileByID(d))}getTileByID(d){return this._tiles[d]}getTerrainCoords(d){var v={};for(const Ie of this._renderableTilesKeys){var E,A,M,G,ee,he=this._tiles[Ie].tileID;he.canonical.equals(d.canonical)?((E=d.clone()).posMatrix=new Float64Array(16),o.ortho(E.posMatrix,0,o.EXTENT,0,o.EXTENT,0,1),v[Ie]=E):he.canonical.isChildOf(d.canonical)?((E=d.clone()).posMatrix=new Float64Array(16),G=he.canonical.z-d.canonical.z,A=he.canonical.x-(he.canonical.x>>G<<G),M=he.canonical.y-(he.canonical.y>>G<<G),G=o.EXTENT>>G,o.ortho(E.posMatrix,0,G,0,G,0,1),o.translate(E.posMatrix,E.posMatrix,[-A*G,-M*G,0]),v[Ie]=E):d.canonical.isChildOf(he.canonical)&&((A=d.clone()).posMatrix=new Float64Array(16),M=d.canonical.z-he.canonical.z,G=d.canonical.x-(d.canonical.x>>M<<M),he=d.canonical.y-(d.canonical.y>>M<<M),ee=o.EXTENT>>M,o.ortho(A.posMatrix,0,o.EXTENT,0,o.EXTENT,0,1),o.translate(A.posMatrix,A.posMatrix,[G*ee,he*ee,0]),o.scale(A.posMatrix,A.posMatrix,[1/2**M,1/2**M,0]),v[Ie]=A)}return v}getSourceTile(d,v){var E=this.sourceCache._source;let A=d.overscaledZ-this.deltaZoom;if((A=A>E.maxzoom?E.maxzoom:A)<E.minzoom)return null;this._sourceTileCache[d.key]||(this._sourceTileCache[d.key]=d.scaledTo(A).key);let M=this.sourceCache.getTileByID(this._sourceTileCache[d.key]);if((!M||!M.dem)&&v)for(;A>=E.minzoom&&(!M||!M.dem);)M=this.sourceCache.getTileByID(d.scaledTo(A--).key);return M}tilesAfterTime(d=Date.now()){return Object.values(this._tiles).filter(v=>v.timeAdded>=d)}}class yf{constructor(d,v,E){this.painter=d,this.sourceCache=new Gv
vendor: 12,526 bytes, line 704
704(v),this.options=E,this.exaggeration=typeof E.exaggeration=="number"?E.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(d,v,E,A=o.EXTENT){var M;return 0<=v&&v<A&&0<=E&&E<A&&(M=(M=(d=this.getTerrainData(d)).tile)==null?void 0:M.dem)?(E=[(v=o.transformMat4$1([],[v/A*o.EXTENT,E/A*o.EXTENT],d.u_terrain_matrix))[0]*M.dim,v[1]*M.dim],A=Math.floor(E[0]),d=Math.floor(E[1]),v=E[0]-A,E=E[1]-d,M.get(A,d)*(1-v)*(1-E)+M.get(A+1,d)*v*(1-E)+M.get(A,d+1)*(1-v)*E+M.get(A+1,d+1)*v*E):0}getElevationForLngLatZoom(E,A){var{tileID:E,mercatorX:A,mercatorY:M}=this._getOverscaledTileIDFromLngLatZoom(E,A);return this.getElevation(E,A%o.EXTENT,M%o.EXTENT,o.EXTENT)}getElevation(d,v,E,A=o.EXTENT){return this.getDEMElevation(d,v,E,A)*this.exaggeration}getTerrainData(d){this._emptyDemTexture||(E=this.painter.context,v=new o.RGBAImage({width:1,height:1},new Uint8Array(4)),this._emptyDepthTexture=new Q(E,v,E.gl.RGBA,{premultiply:!1}),this._emptyDemUnpack=[0,0,0,0],this._emptyDemTexture=new Q(E,new o.RGBAImage({width:1,height:1}),E.gl.RGBA,{premultiply:!1}),this._emptyDemTexture.bind(E.gl.NEAREST,E.gl.CLAMP_TO_EDGE),this._emptyDemMatrix=o.identity([]));var v=this.sourceCache.getSourceTile(d,!0),E=(v&&v.dem&&(!v.demTexture||v.needsTerrainPrepare)&&(E=this.painter.context,v.demTexture=this.painter.getTileTexture(v.dem.stride),v.demTexture?v.demTexture.update(v.dem.getPixels(),{premultiply:!1}):v.demTexture=new Q(E,v.dem.getPixels(),E.gl.RGBA,{premultiply:!1}),v.demTexture.bind(E.gl.NEAREST,E.gl.CLAMP_TO_EDGE),v.needsTerrainPrepare=!1),v&&v+v.tileID.key+d.key);if(E&&!this._demMatrixCache[E]){var A=this.sourceCache.sourceCache._source.maxzoom;let ee=d.canonical.z-v.tileID.canonical.z;d.overscaledZ>d.canonical.z&&(d.canonical.z>=A?ee=d.canonical.z-A:o.warnOnce("cannot calculate elevation if elevation maxzoom > source.maxzoom"));var A=d.canonical.x-(d.canonical.x>>ee<<ee),M=d.canonical.y-(d.canonical.y>>ee<<ee),G=o.fromScaling(new Float64Array(16),[1/(o.EXTENT<<ee),1/(o.EXTENT<<ee),0]);o.translate(G,G,[A*o.EXTENT,M*o.EXTENT,0]),this._demMatrixCache[d.key]={matrix:G,coord:d}}return{u_depth:2,u_terrain:3,u_terrain_dim:v&&v.dem&&v.dem.dim||1,u_terrain_matrix:E?this._demMatrixCache[d.key].matrix:this._emptyDemMatrix,u_terrain_unpack:v&&v.dem&&v.dem.getUnpackVector()||this._emptyDemUnpack,u_terrain_exaggeration:this.exaggeration,texture:(v&&v.demTexture||this._emptyDemTexture).texture,depthTexture:(this._fboDepthTexture||this._emptyDepthTexture).texture,tile:v}}getFramebuffer(d){var v=this.painter,E=v.width/devicePixelRatio,A=v.height/devicePixelRatio;return!this._fbo||this._fbo.width===E&&this._fbo.height===A||(this._fbo.destroy(),this._fboCoordsTexture.destroy(),this._fboDepthTexture.destroy(),delete this._fbo,delete this._fboDepthTexture,delete this._fboCoordsTexture),this._fboCoordsTexture||(this._fboCoordsTexture=new Q(v.context,{width:E,height:A,data:null},v.context.gl.RGBA,{premultiply:!1}),this._fboCoordsTexture.bind(v.context.gl.NEAREST,v.context.gl.CLAMP_TO_EDGE)),this._fboDepthTexture||(this._fboDepthTexture=new Q(v.context,{width:E,height:A,data:null},v.context.gl.RGBA,{premultiply:!1}),this._fboDepthTexture.bind(v.context.gl.NEAREST,v.context.gl.CLAMP_TO_EDGE)),this._fbo||(this._fbo=v.context.createFramebuffer(E,A,!0,!1),this._fbo.depthAttachment.set(v.context.createRenderbuffer(v.context.gl.DEPTH_COMPONENT16,E,A))),this._fbo.colorAttachment.set((d==="coords"?this._fboCoordsTexture:this._fboDepthTexture).texture),this._fbo}getCoordsTexture(){var d=this.painter.context;if(this._coordsTexture)return this._coordsTexture;var v=new Uint8Array(this._coordsTextureSize*this._coordsTextureSize*4);for(let A=0,M=0;A<this._coordsTextureSize;A++)for(let G=0;G<this._coordsTextureSize;G++,M+=4)v[M+0]=255&G,v[M+1]=255&A,v[M+2]=G>>8<<4|A>>8,v[M+3]=0;var E=new o.RGBAImage({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(v.buffer)),E=new Q(d,E,d.gl.RGBA,{premultiply:!1});return E.bind(d.gl.NEAREST,d.gl.CLAMP_TO_EDGE),this._coordsTexture=E}pointCoordinate(G){this.painter.maybeDrawDepthAndCoords(!0);var v=new Uint8Array(4),E=this.painter.context,ee=E.gl,A=Math.round(G.x*this.painter.pixelRatio/devicePixelRatio),G=Math.round(G.y*this.painter.pixelRatio/devicePixelRatio),M=Math.round(this.painter.height/devicePixelRatio),A=(E.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),ee.readPixels(A,M-G-1,1,1,ee.RGBA,ee.UNSIGNED_BYTE,v),E.bindFramebuffer.set(null),v[0]+(v[2]>>4<<8)),M=v[1]+((15&v[2])<<8),G=this.coordsIndex[255-v[3]],ee=G&&this.sourceCache.getTileByID(G);return ee?(E=this._coordsTextureSize,v=(1<<ee.tileID.canonical.z)*E,new o.MercatorCoordinate((ee.tileID.canonical.x*E+A)/v+ee.tileID.wrap,(ee.tileID.canonical.y*E+M)/v,this.getElevation(ee.tileID,A,M,E))):null}depthAtPoint(M){var v=new Uint8Array(4),E=this.painter.context,A=E.gl,M=(E.bindFramebuffer.set(this.getFramebuffer("depth").framebuffer),A.readPixels(M.x,this.painter.height/devicePixelRatio-M.y-1,1,1,A.RGBA,A.UNSIGNED_BYTE,v),E.bindFramebuffer.set(null),(v[0]/16777216+v[1]/65536+v[2]/256+v[3])/256);return M}getTerrainMesh(){if(!this._mesh){var d=this.painter.context,v=new o.Pos3dArray,E=new o.TriangleIndexArray,A=this.meshSize,M=o.EXTENT/A,G=A*A;for(let we=0;we<=A;we++)for(let De=0;De<=A;De++)v.emplaceBack(De*M,we*M,0);for(let we=0;we<G;we+=A+1)for(let De=0;De<A;De++)E.emplaceBack(De+we,A+De+we+1,A+De+we+2),E.emplaceBack(De+we,A+De+we+2,De+we+1);var ee=v.length,he=ee+2*(A+1);for(const we of[0,1])for(let De=0;De<=A;De++)for(const nt of[0,1])v.emplaceBack(De*M,we*o.EXTENT,nt);for(let we=0;we<2*A;we+=2)E.emplaceBack(he+we,he+we+1,he+we+3),E.emplaceBack(he+we,he+we+3,he+we+2),E.emplaceBack(ee+we,ee+we+3,ee+we+1),E.emplaceBack(ee+we,ee+we+2,ee+we+3);var Ie=v.length,Ne=Ie+2*(A+1);for(const we of[0,1])for(let De=0;De<=A;De++)for(const nt of[0,1])v.emplaceBack(we*o.EXTENT,De*M,nt);for(let we=0;we<2*A;we+=2)E.emplaceBack(Ie+we,Ie+we+1,Ie+we+3),E.emplaceBack(Ie+we,Ie+we+3,Ie+we+2),E.emplaceBack(Ne+we,Ne+we+3,Ne+we+1),E.emplaceBack(Ne+we,Ne+we+2,Ne+we+3);this._mesh={indexBuffer:d.createIndexBuffer(E),vertexBuffer:d.createVertexBuffer(v,Hu.members),segments:o.SegmentVector.simpleSegment(0,0,v.length,E.length)}}return this._mesh}getMeshFrameDelta(d){return 2*Math.PI*o.earthRadius/Math.pow(2,d)/5}getMinTileElevationForLngLatZoom(d,v){return d=this._getOverscaledTileIDFromLngLatZoom(d,v).tileID,(v=this.getMinMaxElevation(d).minElevation)!=null?v:0}getMinMaxElevation(v){var v=this.getTerrainData(v).tile,E={minElevation:null,maxElevation:null};return v&&v.dem&&(E.minElevation=v.dem.min*this.exaggeration,E.maxElevation=v.dem.max*this.exaggeration),E}_getOverscaledTileIDFromLngLatZoom(A,v){var A=o.MercatorCoordinate.fromLngLat(A.wrap()),M=(1<<v)*o.EXTENT,E=A.x*M,A=A.y*M,M=Math.floor(E/o.EXTENT),G=Math.floor(A/o.EXTENT);return{tileID:new o.OverscaledTileID(v,0,v,M,G),mercatorX:E,mercatorY:A}}}class su{constructor(d,v,E){this._context=d,this._size=v,this._tileSize=E,this._objects=[],this._recentlyUsed=[],this._stamp=0}destruct(){for(const d of this._objects)d.texture.destroy(),d.fbo.destroy()}_createObject(d){var v=this._context.createFramebuffer(this._tileSize,this._tileSize,!0,!0),E=new Q(this._context,{width:this._tileSize,height:this._tileSize,data:null},this._context.gl.RGBA);return E.bind(this._context.gl.LINEAR,this._context.gl.CLAMP_TO_EDGE),v.depthAttachment.set(this._context.createRenderbuffer(this._context.gl.DEPTH_STENCIL,this._tileSize,this._tileSize)),v.colorAttachment.set(E.texture),{id:d,fbo:v,texture:E,stamp:-1,inUse:!1}}getObjectForId(d){return this._objects[d]}useObject(d){d.inUse=!0,this._recentlyUsed=this._recentlyUsed.filter(v=>d.id!==v),this._recentlyUsed.push(d.id)}stampObject(d){d.stamp=++this._stamp}getOrCreateFreeObject(){for(const v of this._recentlyUsed)if(!this._objects[v].inUse)return this._objects[v];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");var d=this._createObject(this._objects.length);return this._objects.push(d),d}freeObject(d){d.inUse=!1}freeAllObjects(){for(const d of this._objects)this.freeObject(d)}isFull(){return!(this._objects.length<this._size)&&this._objects.some(d=>!d.inUse)===!1}}const lu={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class ec{constructor(d,v){this.painter=d,this.terrain=v,this.pool=new su(d.context,30,v.sourceCache.tileSize*v.qualityFactor)}destruct(){this.pool.destruct()}getTexture(d){return this.pool.getObjectForId(d.rtt[this._stacks.length-1].id).texture}prepareForRender(d,v){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=d._order.filter(ee=>!d._layers[ee].isHidden(v)),this._coordsDescendingInv={};for(const ee in d.sourceCaches){this._coordsDescendingInv[ee]={};for(const he of d.sourceCaches[ee].getVisibleCoordinates()){var E=this.terrain.sourceCache.getTerrainCoords(he);for(const Ie in E)this._coordsDescendingInv[ee][Ie]||(this._coordsDescendingInv[ee][Ie]=[]),this._coordsDescendingInv[ee][Ie].push(E[Ie])}}this._coordsDescendingInvStr={};for(const ee of d._order){var A=d._layers[ee],M=A.source;if(lu[A.type]&&!this._coordsDescendingInvStr[M]){this._coordsDescendingInvStr[M]={};for(const he in this._coordsDescendingInv[M])this._coordsDescendingInvStr[M][he]=this._coordsDescendingInv[M][he].map(Ie=>Ie.key).sort().join()}}for(const ee of this._renderableTiles)for(const he in this._coordsDescendingInvStr){var G=this._coordsDescendingInvStr[he][ee.tileID.key];G&&G!==ee.rttCoords[he]&&(ee.rtt=[])}}renderLayer(d){if(!d.isHidden(this.painter.transform.zoom)){var v=d.type,E=this.painter,A=this._renderableLayerIds[this._renderableLayerIds.length-1]===d.id;if(lu[v]&&(this._prevType&&lu[this._prevType]||this._stacks.push([]),this._prevType=v,this._stacks[this._stacks.length-1].push(d.id),!A))return!0;if(lu[this._prevType]||lu[v]&&A){this._prevType=v;var M=this._stacks.length-1,G=this._stacks[M]||[];for(const Ne of this._renderableTiles){if(this.pool.isFull()&&(kl(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(Ne),Ne.rtt[M]){var ee=this.pool.getObjectForId(Ne.rtt[M].id);if(ee.stamp===Ne.rtt[M].stamp){this.pool.useObject(ee);continue}}var he=this.pool.getOrCreateFreeObject();this.pool.useObject(he),this.pool.stampObject(he),Ne.rtt[M]={id:he.id,stamp:he.stamp},E.context.bindFramebuffer.set(he.fbo.framebuffer),E.context.clear({color:o.Color.transparent,stencil:0}),E.currentStencilSource=void 0;for(let we=0;we<G.length;we++){const De=E.style._layers[G[we]];var Ie=De.source?this._coordsDescendingInv[De.source][Ne.tileID.key]:[Ne.tileID];E.context.viewport.set([0,0,he.fbo.width,he.fbo.height]),E._renderTileClippingMasks(De,Ie),E.renderLayer(E,E.style.sourceCaches[De.source],De,Ie),De.source&&(Ne.rttCoords[De.source]=this._coordsDescendingInvStr[De.source][Ne.tileID.key])}}return kl(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects(),lu[v]}}return!1}}const vf={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"MapLibre logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm","TerrainControl.Enable":"Enable terrain","TerrainControl.Disable":"Disable terrain","CooperativeGesturesHandler.WindowsHelpText":"Use Ctrl + scroll to zoom the map","CooperativeGesturesHandler.MacHelpText":"Use ⌘ + scroll to zoom the map","CooperativeGesturesHandler.MobileHelpText":"Use two fingers to move the map"},D_=l,ze={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:oh,maplibreLogo:!1,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileC
704acheSize:null,maxTileCacheZoomLevels:o.config.MAX_TILE_CACHE_ZOOM_LEVELS,localIdeographFontFamily:"sans-serif",transformRequest:null,transformCameraUpdate:null,fadeDuration:300,crossSourceCollisions:!0,validateStyle:!0,maxCanvasSize:[4096,4096]};_i=class extends mf{constructor(P){if(o.PerformanceUtils.mark(o.PerformanceMarkers.create),(P=o.extend({},ze,P)).minZoom!=null&&P.maxZoom!=null&&P.minZoom>P.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(P.minPitch!=null&&P.maxPitch!=null&&P.minPitch>P.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(P.minPitch!=null&&P.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(P.maxPitch!=null&&85<P.maxPitch)throw new Error("maxPitch must be less than or equal to 85");if(super(new iu(P.minZoom,P.maxZoom,P.minPitch,P.maxPitch,P.renderWorldCopies),{bearingSnap:P.bearingSnap}),this._contextLost=v=>{v.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.fire(new o.Event("webglcontextlost",{originalEvent:v}))},this._contextRestored=v=>{this._setupPainter(),this.resize(),this._update(),this.fire(new o.Event("webglcontextrestored",{originalEvent:v}))},this._onMapScroll=v=>{if(v.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=P.interactive,this._maxTileCacheSize=P.maxTileCacheSize,this._maxTileCacheZoomLevels=P.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=P.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=P.preserveDrawingBuffer,this._antialias=P.antialias,this._trackResize=P.trackResize,this._bearingSnap=P.bearingSnap,this._refreshExpiredTiles=P.refreshExpiredTiles,this._fadeDuration=P.fadeDuration,this._crossSourceCollisions=P.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=P.collectResourceTiming,this._renderTaskQueue=new bd,this._controls=[],this._mapId=o.uniqueId(),this._locale=o.extend({},vf,P.locale),this._clickTolerance=P.clickTolerance,this._overridePixelRatio=P.pixelRatio,this._maxCanvasSize=P.maxCanvasSize,this.transformCameraUpdate=P.transformCameraUpdate,this._imageQueueHandle=a.addThrottleControl(()=>this.isMoving()),this._requestManager=new N(P.transformRequest),typeof P.container=="string"){if(this._container=document.getElementById(P.container),!this._container)throw new Error(`Container '${P.container}' not found.`)}else{if(!(P.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=P.container}if(P.maxBounds&&this.setMaxBounds(P.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),this.on("terrain",()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)}),this.once("idle",()=>{this._idleTriggered=!0}),typeof window<"u"){addEventListener("online",this._onWindowOnline,!1);let v=!1;const E=cf(A=>{this._trackResize&&!this._removed&&this.resize(A)._update()},50);this._resizeObserver=new ResizeObserver(A=>{v?E(A):v=!0}),this._resizeObserver.observe(this._container)}this.handlers=new wp(this,P);var d=typeof P.hash=="string"&&P.hash||void 0;this._hash=P.hash&&new Tt(d).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:P.center,zoom:P.zoom,bearing:P.bearing,pitch:P.pitch}),P.bounds&&(this.resize(),this.fitBounds(P.bounds,o.extend({},P.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=P.localIdeographFontFamily,this._validateStyle=P.validateStyle,P.style&&this.setStyle(P.style,{localIdeographFontFamily:P.localIdeographFontFamily}),P.attributionControl&&this.addControl(new ah(typeof P.attributionControl=="boolean"?void 0:P.attributionControl)),P.maplibreLogo&&this.addControl(new Ep,P.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",v=>{this._update(v.dataType==="style"),this.fire(new o.Event(v.dataType+"data",v))}),this.on("dataloading",v=>{this.fire(new o.Event(v.dataType+"dataloading",v))}),this.on("dataabort",v=>{this.fire(new o.Event("sourcedataabort",v))})}_getMapId(){return this._mapId}addControl(P,d){var v;return d===void 0&&(d=P.getDefaultPosition?P.getDefaultPosition():"top-right"),P&&P.onAdd?(v=P.onAdd(this),this._controls.push(P),P=this._controlPositions[d],d.indexOf("bottom")!==-1?P.insertBefore(v,P.firstChild):P.appendChild(v),this):this.fire(new o.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")))}
704removeControl(P){var d;return P&&P.onRemove?(-1<(d=this._controls.indexOf(P))&&this._controls.splice(d,1),P.onRemove(this),this):this.fire(new o.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")))}hasControl(P){return-1<this._controls.indexOf(P)}calculateCameraOptionsFromTo(P,d,v,E){return E==null&&this.terrain&&(E=this.terrain.getElevationForLngLatZoom(v,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(P,d,v,E)}resize(P){var v=this._containerDimensions(),d=v[0],v=v[1];const E=this._getClampedPixelRatio(d,v);if(this._resizeCanvas(d,v,E),this.painter.resize(d,v,E),this.painter.overLimit()){var A=this.painter.context.gl;this._maxCanvasSize=[A.drawingBufferWidth,A.drawingBufferHeight];const M=this._getClampedPixelRatio(d,v);this._resizeCanvas(d,v,M),this.painter.resize(d,v,M)}return this.transform.resize(d,v),(A=this._requestedCameraState)!=null&&A.resize(d,v),A=!this._moving,A&&(this.stop(),this.fire(new o.Event("movestart",P)).fire(new o.Event("move",P))),this.fire(new o.Event("resize",P)),A&&this.fire(new o.Event("moveend",P)),this}_getClampedPixelRatio(M,G){var{0:v,1:E}=this._maxCanvasSize,A=this.getPixelRatio(),M=M*A,G=G*A;return Math.min(v<M?v/M:1,E<G?E/G:1)*A}getPixelRatio(){var P;return(P=this._overridePixelRatio)!=null?P:devicePixelRatio}setPixelRatio(P){this._overridePixelRatio=P,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(P){return this.transform.setMaxBounds(le.convert(P)),this._update()}setMinZoom(P){if(-2<=(P=P??-2)&&P<=this.transform.maxZoom)return this.transform.minZoom=P,this._update(),this.getZoom()<P&&this.setZoom(P),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(P){if((P=P??22)>=this.transform.minZoom)return this.transform.maxZoom=P,this._update(),this.getZoom()>P&&this.setZoom(P),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(P){if((P=P??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(0<=P&&P<=this.transform.maxPitch)return this.transform.minPitch=P,this._update(),this.getPitch()<P&&this.setPitch(P),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(P){if(85<(P=P??60))throw new Error("maxPitch must be less than or equal to 85");if(P>=this.transform.minPitch)return this.transform.maxPitch=P,this._update(),this.getPitch()>P&&this.setPitch(P),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(P){return this.transform.renderWorldCopies=P,this._update()}project(P){return this.transform.locationPoint(o.LngLat.convert(P),this.style&&this.terrain)}unproject(P){return this.transform.pointLocation(o.Point.convert(P),this.terrain)}isMoving(){var P;return this._moving||((P=this.handlers)==null?void 0:P.isMoving())}isZooming(){var P;return this._zooming||((P=this.handlers)==null?void 0:P.isZooming())}isRotating(){var P;return this._rotating||((P=this.handlers)==null?void 0:P.isRotating())}_createDelegatedListener(P,d,v){if(P==="mouseenter"||P==="mouseover"){let E=!1;return{layer:d,listener:v,delegates:{mousemove:A=>{var M=this.getLayer(d)?this.queryRenderedFeatures(A.point,{layers:[d]}):[];M.length?E||(E=!0,v.call(this,new ll(P,this,A.originalEvent,{features:M}))):E=!1},mouseout:()=>{E=!1}}}}if(P!=="mouseleave"&&P!=="mouseout")return{layer:d,listener:v,delegates:{[P]:E=>{var A=this.getLayer(d)?this.queryRenderedFeatures(E.point,{layers:[d]}):[];A.length&&(E.features=A,v.call(this,E),delete E.features)}}};{let E=!1;return{layer:d,listener:v,delegates:{mousemove:A=>{(this.getLayer(d)?this.queryRenderedFeatures(A.point,{layers:[d]}):[]).length?E=!0:E&&(E=!1,v.call(this,new ll(P,this,A.originalEvent)))},mouseout:A=>{E&&(E=!1,v.call(this,new ll(P,this,A.originalEvent)))}}}}}on(P,d,v){if(v===void 0)return super.on(P,d);var E=this._createDelegatedListener(P,d,v);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[P]=this._delegatedListeners[P]||[],this._delegatedListeners[P].push(E);for(const A in E.delegates)this.on(A,E.delegates[A]);return this}once(P,d,v){if(v===void 0)return super.once(P,d);var E=this._createDelegatedListener(P,d,v);for(const A in E.delegates)this.once(A,E.delegates[A]);return this}off(P,d,v){return v===void 0?super.off(P,d):(this._delegatedListeners&&this._delegatedListeners[P]&&(E=>{var A=E[P];for(let G=0;G<A.length;G++){var M=A[G];if(M.layer===d&&M.listener===v){for(const ee in M.delegates)this.off(ee,M.delegates[ee]);
vendor: 9,209 bytes, line 704
704return A.splice(G,1),this}}})(this._delegatedListeners),this)}queryRenderedFeatures(P,d){if(!this.style)return[];let v;var E=P instanceof o.Point||Array.isArray(P),A=E?P:[[0,0],[this.transform.width,this.transform.height]];return d=d||(E?{}:P)||{},v=A instanceof o.Point||typeof A[0]=="number"?[o.Point.convert(A)]:(E=o.Point.convert(A[0]),P=o.Point.convert(A[1]),[E,new o.Point(P.x,E.y),P,new o.Point(E.x,P.y),E]),this.style.queryRenderedFeatures(v,d,this.transform)}querySourceFeatures(P,d){return this.style.querySourceFeatures(P,d)}setStyle(P,d){return(d=o.extend({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},d)).diff!==!1&&d.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&P?(this._diffStyle(P,d),this):(this._localIdeographFontFamily=d.localIdeographFontFamily,this._updateStyle(P,d))}setTransformRequest(P){return this._requestManager.setTransformRequest(P),this}_getUIString(P){var d=this._locale[P];if(d==null)throw new Error(`Missing UI string '${P}'`);return d}_updateStyle(P,d){var v;if(!d.transformStyle||!this.style||this.style._loaded)return v=this.style&&d.transformStyle?this.style.serialize():void 0,this.style&&(this.style.setEventedParent(null),this.style._remove(!P)),P?(this.style=new Qh(this,d||{}),this.style.setEventedParent(this,{style:this.style}),typeof P=="string"?this.style.loadURL(P,d,v):this.style.loadJSON(P,d,v)):delete this.style,this;this.style.once("style.load",()=>this._updateStyle(P,d))}_lazyInitEmptyStyle(){this.style||(this.style=new Qh(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(P,d){var v;typeof P=="string"?(v=this._requestManager.transformRequest(P,"Style"),o.getJSON(v,new AbortController).then(E=>{this._updateDiff(E.data,d)}).catch(E=>{E&&this.fire(new o.ErrorEvent(E))})):typeof P=="object"&&this._updateDiff(P,d)}_updateDiff(P,d){try{this.style.setState(P,d)&&this._update(!0)}catch(v){o.warnOnce(`Unable to perform style diff: ${v.message||v.error||v}.  Rebuilding the style from scratch.`),this._updateStyle(P,d)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():o.warnOnce("There is no style added to the map.")}addSource(P,d){return this._lazyInitEmptyStyle(),this.style.addSource(P,d),this._update(!0)}isSourceLoaded(P){var d=this.style&&this.style.sourceCaches[P];if(d!==void 0)return d.loaded();this.fire(new o.ErrorEvent(new Error(`There is no source with ID '${P}'`)))}setTerrain(P){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),P){var d=this.style.sourceCaches[P.source];if(!d)throw new Error("cannot load terrain, because there exists no source with ID: "+P.source);this.terrain===null&&d.reload();for(const E in this.style._layers){var v=this.style._layers[E];v.type==="hillshade"&&v.source===P.source&&o.warnOnce("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new yf(this.painter,d,P),this.painter.renderToTexture=new ec(this.painter,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=E=>{E.dataType==="style"?this.terrain.sourceCache.freeRtt():E.dataType==="source"&&E.tile&&(E.sourceId!==P.source||this._elevationFreeze||(this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(E.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.minElevationForCurrentTile=0,this.transform.elevation=0;return this.fire(new o.Event("terrain",{terrain:P})),this}getTerrain(){var P;return(P=(P=this.terrain)==null?void 0:P.options)!=null?P:null}areTilesLoaded(){var P=this.style&&this.style.sourceCaches;for(const E in P){var d=P[E]._tiles;for(const A in d){var v=d[A];if(v.state!=="loaded"&&v.state!=="errored")return!1}}return!0}removeSource(P){return this.style.removeSource(P),this._update(!0)}getSource(P){return this.style.getSource(P)}addImage(P,d,ee={}){var E,A,M,G,{pixelRatio:ee=1,sdf:he=!1,stretchX:Ie,stretchY:Ne,content:we,contentMatch:De}=ee;if(this._lazyInitEmptyStyle(),!(d instanceof HTMLImageElement||o.isImageBitmap(d)))return d.width===void 0||d.height===void 0?this.fire(new o.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`"))):({width:E,height:A,data:M}=d,G=d,this.style.addImage(P,{data:new o.RGBAImage({width:E,height:A},new Uint8Array(M)),pixelRatio:ee,stretchX:Ie,stretchY:Ne,content:we,contentMatch:De,sdf:he,version:0,userImage:G}),G.onAdd&&G.onAdd(this,P),this);({width:E,height:A,data:M}=p.getImageData(d)),this.style.addImage(P,{data:new o.RGBAImage({width:E,height:A},M),pixelRatio:ee,stretchX:Ie,stretchY:Ne,content:we,contentMatch:De,sdf:he,version:0})}updateImage(P,d){var v,E,A,M=this.style.getImage(P);return M?({width:A,height:v,data:E}=d instanceof HTMLImageElement||o.isImageBitmap(d)?p.getImageData(d):d,A===void 0||v===void 0?this.fire(new o.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`"))):A!==M.data.width||v!==M.data.height?this.fire(new o.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image"))):(A=!(d instanceof HTMLImageElement||o.isImageBitmap(d)),M.data.replace(E,A),this.style.updateImage(P,M),this)):this.fire(new o.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")))}getImage(P){return this.style.getImage(P)}hasImage(P){return P?!!this.style.getImage(P):(this.fire(new o.ErrorEvent(new Error("Missing required image id"))),!1)}removeImage(P){this.style.removeImage(P)}loadImage(P){return a.getImage(this._requestManager.transformRequest(P,"Image"),new AbortController)}listImages(){return this.style.listImages()}addLayer(P,d){return this._lazyInitEmptyStyle(),this.style.addLayer(P,d),this._update(!0)}moveLayer(P,d){return this.style.moveLayer(P,d),this._update(!0)}removeLayer(P){return this.style.removeLayer(P),this._update(!0)}getLayer(P){return this.style.getLayer(P)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(P,d,v){return this.style.setLayerZoomRange(P,d,v),this._update(!0)}setFilter(P,d,v={}){return this.style.setFilter(P,d,v),this._update(!0)}getFilter(P){return this.style.getFilter(P)}setPaintProperty(P,d,v,E={}){return this.style.setPaintProperty(P,d,v,E),this._update(!0)}getPaintProperty(P,d){return this.style.getPaintProperty(P,d)}setLayoutProperty(P,d,v,E={}){return this.style.setLayoutProperty(P,d,v,E),this._update(!0)}getLayoutProperty(P,d){return this.style.getLayoutProperty(P,d)}setGlyphs(P,d={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(P,d),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(P,d,v={}){return this._lazyInitEmptyStyle(),this.style.addSprite(P,d,v,E=>{E||this._update(!0)}),this}removeSprite(P){return this._lazyInitEmptyStyle(),this.style.removeSprite(P),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(P,d={}){return this._lazyInitEmptyStyle(),this.style.setSprite(P,d,v=>{v||this._update(!0)}),this}setLight(P,d={}){return this._lazyInitEmptyStyle(),this.style.setLight(P,d),this._update(!0)}getLight(){return this.style.getLight()}setFeatureState(P,d){return this.style.setFeatureState(P,d),this._update()}removeFeatureState(P,d){return this.style.removeFeatureState(P,d),this._update()}getFeatureState(P){return this.style.getFeatureState(P)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let P=0,d=0;return this._container&&(P=this._container.clientWidth||400,d=this._container.clientHeight||300),[P,d]}_setupContainer(){var P=this._container,d=(P.classList.add("maplibregl-map"),this._canvasContainer=m.create("div","maplibregl-canvas-container",P)),d=(this._interactive&&d.classList.add("maplibregl-interactive"),this._canvas=m.create("canvas","maplibregl-canvas",d),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map"),this._canvas.setAttribute("role","regi
704on"),this._containerDimensions()),v=this._getClampedPixelRatio(d[0],d[1]);this._resizeCanvas(d[0],d[1],v);const E=this._controlContainer=m.create("div","maplibregl-control-container",P),A=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(M=>{A[M]=m.create("div",`maplibregl-ctrl-${M} `,E)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(P,d,v){this._canvas.width=Math.floor(v*P),this._canvas.height=Math.floor(v*d),this._canvas.style.width=P+"px",this._canvas.style.height=d+"px"}_setupPainter(){const P={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1};let d=null;this._canvas.addEventListener("webglcontextcreationerror",A=>{d={requestedAttributes:P},A&&(d.statusMessage=A.statusMessage,d.type=A.type)},{once:!0});var v,E=this._canvas.getContext("webgl2",P)||this._canvas.getContext("webgl",P);if(!E)throw v="Failed to initialize WebGL",d?(d.message=v,new Error(JSON.stringify(d))):new Error(v);this.painter=new zv(E,this.transform),_.testSupport(E)}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(P){return this.style&&this.style._loaded&&(this._styleDirty=this._styleDirty||P,this._sourcesDirty=!0,this.triggerRepaint()),this}_requestRenderFrame(P){return this._update(),this._renderTaskQueue.add(P)}_cancelRenderFrame(P){this._renderTaskQueue.remove(P)}_render(P){var d=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(P),!this._removed){let E=!1;this.style&&this._styleDirty&&(this._styleDirty=!1,P=this.transform.zoom,v=p.now(),this.style.zoomHistory.update(P,v),(v=(P=new o.EvaluationParameters(P,{now:v,fadeDuration:d,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()})).crossFadingFactor())===1&&v===this._crossFadingFactor||(E=!0,this._crossFadingFactor=v),this.style.update(P)),this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.minElevationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,d,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:d,showPadding:this.showPadding}),this.fire(new o.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,o.PerformanceUtils.mark(o.PerformanceMarkers.load),this.fire(new o.Event("load"))),this.style&&(this.style.hasTransitions()||E)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();var v=this._sourcesDirty||this._styleDirty||this._placementDirty;return v||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new o.Event("idle")),!this._loaded||this._fullyLoaded||v||(this._fullyLoaded=!0,o.PerformanceUtils.mark(o.PerformanceMarkers.fullLoad)),this}}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){this._hash&&this._hash.remove();for(const d of this._controls)d.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window<"u"&&removeEventListener("online",this._onWindowOnline,!1),a.removeThrottleControl(this._imageQueueHandle),(P=this._resizeObserver)!=null&&P.disconnect();var P=this.painter.context.gl.getExtension("WEBGL_lose_context");P&&P.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),m.remove(this._canvasContainer),m.remove(this._controlContainer),this._container.classList.remove("maplibregl-map"),o.PerformanceUtils.clearMetrics(),this._removed=!0,this.fire(new o.Event("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,p.frameAsync(this._frameRequest).then(P=>{o.PerformanceUtils.frame(P),this._frameRequest=null,this._render(P)}).catch(()=>{}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(P){this._showTileBoundaries!==P&&(this._showTileBoundaries=P,this._update())}get showPadding(){return!!this._showPadding}set showPadding(P){this._showPadding!==P&&(this._showPadding=P,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(P){this._showCollisionBoxes!==P&&((this._showCollisionBoxes=P)?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(P){this._showOverdrawInspector!==P&&(this._showOverdrawInspector=P,this._update())}get repaint(){return!!this._repaint}set repaint(P){this._repaint!==P&&(this._repaint=P,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(P){this._vertices=P,this._update()}get version(){return D_}getCameraTargetElevation(){return this.transform.elevation}};const tc=P=>{P.touchstart=P.dragStart,P.touchmoveWindow=P.dragMove,P.touchend=P.dragEnd},sh=({enable:P,clickTolerance:d,bearingDegreesPerPixelMoved:v=.8})=>{var E=new Nu;return new vo({clickTolerance:d,move:(A,M)=>({bearingDelta:(M.x-A.x)*v}),moveStateManager:E,enable:P,assignEvents:tc})},As=({enable:P,clickTolerance:d,pitchDegreesPerPixelMoved:v=-.5})=>{var E=new Nu;return new vo({clickTolerance:d,move:(A,M)=>({pitchDelta:(M.y-A.y)*v}),moveStateManager:E,enable:P,assignEvents:tc})},pi={showCompass:!0,showZoom:!0,visualizePitch:!1};class Yv{constructor(d,v,E=!1){this.mousedown=G=>{this.startMouse(o.extend({},G,{ctrlKey:!0,preventDefault:()=>G.preventDefault()}),m.mousePos(this.element,G)),m.addEventListener(window,"mousemove",this.mousemove),m.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=G=>{this.moveMouse(G,m.mousePos(this.element,G))},this.mouseup=G=>{this.mouseRotate.dragEnd(G),this.mousePitch&&this.mousePitch.dragEnd(G),this.offTemp()},this.touchstart=G=>{G.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=m.touchPos(this.element,G.targetTouches)[0],this.startTouch(G,this._startPos),m.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),m.addEventListener(window,"touchend",this.touchend))},this.touchmove=G=>{G.targetTouches.length!==1?this.reset():(this._lastPos=m.touchPos(this.element,G.targetTouches)[0],this.moveTouch(G,this._lastPos))},this.touchend=G=>{G.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),delete this._startPos,delete this._lastPos,this.offTemp()},this.reset=()=>{this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;var A=d.dragRotate._mouseRotate.getClickTolerance(),M=d.dragRotate._mousePitch.getClickTolerance();this.element=v,this.mouseRotate=Ys({clickTolerance:A,enable:!0}),this.touchRotate=sh({clickTolerance:A,enable:!0}),this.map=d,E&&(this.mousePitch=hf({clickTolerance:M,enable:!0}),this.touchPitch=As({clickTolerance:M,enable:!0})),m.addEventListener(v,"mousedown",this.mousedown),m.addEventListener(v,"touchstart",this.touchstart,{passive:!1}),m.addEventListener(v,"touchcancel",this.reset)}startMouse(d,v){this.mouseRotate.dragStart(d,v),this.mousePitch&&this.mousePitch.dragStart(d,v),m.disableDrag()}startTouch(d,v){this.touchRotate.dragStart(d,v),this.touchPitch&&this.touchPitch.dragStart(d,v),m.disableDrag()}moveMouse(d,v){var E=this.map,A=(this.mouseRotate.dragMove(d,v)||{}).bearingDelta;A&&E.setBearing(E.getBearing()+A),this.mousePitch&&(A=(this.mousePitch.dragMove(d,v)||{}).pitchDelta,A)&&E.setPitch(E.getPitch()+A)}moveTouch(d,v){var E=this.map,A=(this.touchRotate.dragMove(d,v)||{}).bearingDelta;A&&E.setBearing(E.getBearing()+A),this.touchPitch&&(A=(this.touchPitch.dragMove(d,v)||{}).pitchDelta,A)&&E.setPitch(E.getPitch()+A)}off(){var d=this.element;m.removeEventListener(d,"mousedown",this.mousedown),m.removeEventListener(d,"touchstart",this.touchstart,{passive:!1}),m.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),m.removeEventListener(window,"touchend",this.touchend),m.removeEventListener(d,"touchcancel",this.reset),this.offTemp()}offTemp(){m.enableDrag(),m.removeEventListener(window,"mousemove",this.mousemove),m.removeEventListener(window,"mouseup",this.mouseup),m.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),m.removeEventListener(window,"touchend",this.touchend)}}let Fu;function lh(){return o.__awaiter(this,arguments,void 0,function*(P=!1){if(Fu===void 0||P){if(window.navigator.permissions===void 0)return Fu=!!window.navigator.geolocation;try{var d=yield window.navigator.permissions.query({name:"geolocation"});Fu=d.state!=="denied"}catch{Fu=!!window.navigator.geolocation}}return Fu})}function Ki(P,d,v){var E,A,M,G=new o.LngLat(P.lng,P.lat);for(P=new o.LngLat(P.lng,P.lat),d&&(E=new o.LngLat(P.lng-360,P.lat),A=new o.LngLat(P.lng+360,P.lat),M=v.locationPoint(P).distSqr(d),v.locationPoint(E).distSqr(d)<M?P=E:v.locationPoint(A).distSqr(d)<M&&(P=A));180<Math.abs(P.lng-v.center.lng);){var ee=v.locationPoint(P);if(0<=ee.x&&0<=ee.y&&ee.x<=v.width&&ee.y<=v.height)break;P.lng>v.center.lng?P.lng-=360:P.lng+=360}return P.lng!==G.lng&&v.locationPoint(P).y>v.height/2-v.getHorizon()?P:G}
vendor: 15,605 bytes, line 704
704const Co={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function wd(P,d,v){var E=P.classList;for(const A in Co)E.remove(`maplibregl-${v}-anchor-`+A);E.add(`maplibregl-${v}-anchor-`+d)}class Rs extends o.Evented{constructor(d){if(super(),this._onKeyPress=at=>{var nt=at.code,at=at.charCode||at.keyCode;nt!=="Space"&&nt!=="Enter"&&at!==32&&at!==13||this.togglePopup()},this._onMapClick=nt=>{var nt=nt.originalEvent.target,at=this._element;this._popup&&(nt===at||at.contains(nt))&&this.togglePopup()},this._update=De=>{if(this._map){var nt=this._map.loaded()&&!this._map.isMoving();(De==null?void 0:De.type)!=="terrain"&&((De==null?void 0:De.type)!=="render"||nt)||this._map.once("render",this._update),this._map.transform.renderWorldCopies?this._lngLat=Ki(this._lngLat,this._flatPos,this._map.transform):this._lngLat=(nt=this._lngLat)==null?void 0:nt.wrap(),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationPoint(this._lngLat)._add(this._offset));let at="",ut=(this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?at=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(at=`rotateZ(${this._rotation-this._map.getBearing()}deg)`),"");this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?ut="rotateX(0deg)":this._pitchAlignment==="map"&&(ut=`rotateX(${this._map.getPitch()}deg)`),De&&De.type!=="moveend"||(this._pos=this._pos.round()),m.setTransform(this._element,`${Co[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${ut} `+at),p.frameAsync(new AbortController).then(()=>{this._updateOpacity(De&&De.type==="moveend")}).catch(()=>{})}},this._onMove=De=>{var nt;this._isDragging||(nt=this._clickTolerance||this._map._clickTolerance,this._isDragging=De.point.dist(this._pointerdownPos)>=nt),this._isDragging&&(this._pos=De.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new o.Event("dragstart"))),this.fire(new o.Event("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new o.Event("dragend")),this._state="inactive"},this._addDragHandler=De=>{this._element.contains(De.originalEvent.target)&&(De.preventDefault(),this._positionDelta=De.point.sub(this._pos).add(this._offset),this._pointerdownPos=De.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=d&&d.anchor||"center",this._color=d&&d.color||"#3FB1CE",this._scale=d&&d.scale||1,this._draggable=d&&d.draggable||!1,this._clickTolerance=d&&d.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=d&&d.rotation||0,this._rotationAlignment=d&&d.rotationAlignment||"auto",this._pitchAlignment=d&&d.pitchAlignment&&d.pitchAlignment!=="auto"?d.pitchAlignment:this._rotationAlignment,this.setOpacity(),this.setOpacity(d==null?void 0:d.opacity,d==null?void 0:d.opacityWhenCovered),d&&d.element)this._element=d.element,this._offset=o.Point.convert(d&&d.offset||[0,0]);else{this._defaultMarker=!0,this._element=m.create("div"),this._element.setAttribute("aria-label","Map marker");var v=m.createNS("http://www.w3.org/2000/svg","svg"),E=(v.setAttributeNS(null,"display","block"),v.setAttributeNS(null,"height","41px"),v.setAttributeNS(null,"width","27px"),v.setAttributeNS(null,"viewBox","0 0 27 41"),m.createNS("http://www.w3.org/2000/svg","g")),E=(E.setAttributeNS(null,"stroke","none"),E.setAttributeNS(null,"stroke-width","1"),E.setAttributeNS(null,"fill","none"),E.setAttributeNS(null,"fill-rule","evenodd"),m.createNS("http://www.w3.org/2000/svg","g")),A=(E.setAttributeNS(null,"fill-rule","nonzero"),m.createNS("http://www.w3.org/2000/svg","g")),G=(A.setAttributeNS(null,"transform","translate(3.0, 29.0)"),A.setAttributeNS(null,"fill","#000000"),[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}]);for(const De of G){var M=m.createNS("http://www.w3.org/2000/svg","ellipse");M.setAttributeNS(null,"opacity","0.04"),M.setAttributeNS(null,"cx","10.5"),M.setAttributeNS(null,"cy","5.80029008"),M.setAttributeNS(null,"rx",De.rx),M.setAttributeNS(null,"ry",De.ry),A.appendChild(M)}var G=m.createNS("http://www.w3.org/2000/svg","g"),ee=(G.setAttributeNS(null,"fill",this._color),m.createNS("http://www.w3.org/2000/svg","path")),ee=(ee.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),G.appendChild(ee),m.createNS("http://www.w3.org/2000/svg","g")),he=(ee.setAttributeNS(null,"opacity","0.25"),ee.setAttributeNS(null,"fill","#000000"),m.createNS("http://www.w3.org/2000/svg","path")),he=(he.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),ee.appendChild(he),m.createNS("http://www.w3.org/2000/svg","g")),Ie=(he.setAttributeNS(null,"transform","translate(6.0, 7.0)"),he.setAttributeNS(null,"fill","#FFFFFF"),m.createNS("http://www.w3.org/2000/svg","g")),Ne=(Ie.setAttributeNS(null,"transform","translate(8.0, 8.0)"),m.createNS("http://www.w3.org/2000/svg","circle")),we=(Ne.setAttributeNS(null,"fill","#000000"),Ne.setAttributeNS(null,"opacity","0.25"),Ne.setAttributeNS(null,"cx","5.5"),Ne.setAttributeNS(null,"cy","5.5"),Ne.setAttributeNS(null,"r","5.4999962"),m.createNS("http://www.w3.org/2000/svg","circle"));we.setAttributeNS(null,"fill","#FFFFFF"),we.setAttributeNS(null,"cx","5.5"),we.setAttributeNS(null,"cy","5.5"),we.setAttributeNS(null,"r","5.4999962"),Ie.appendChild(Ne),Ie.appendChild(we),E.appendChild(A),E.appendChild(G),E.appendChild(ee),E.appendChild(he),E.appendChild(Ie),v.appendChild(E),v.setAttributeNS(null,"height",41*this._scale+"px"),v.setAttributeNS(null,"width",27*this._scale+"px"),this._element.appendChild(v),this._offset=o.Point.convert(d&&d.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",De=>{De.preventDefault()}),this._element.addEventListener("mousedown",De=>{De.preventDefault()}),wd(this._element,this._anchor,"marker"),d&&d.className)for(const De of d.className.split(" "))this._element.classList.add(De);this._popup=null}addTo(d){return this.remove(),(this._map=d).getCanvasContainer().appendChild(this._element),d.on("move",this._update),d.on("moveend",this._update),d.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),m.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(d){return this._lngLat=o.LngLat.convert(d),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(d){var v;return this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),d&&("offset"in d.options||(v=Math.abs(13.5)/Math.SQRT2,d.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[v,-1*(24.6+v)],"bottom-right":[-v,-1*(24.6+v)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset),this._popup=d,this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)),this}getPopup(){return this._popup}togglePopup(){var d=this._popup;return this._element.style.opacity!==this._opacityWhenCovered&&d&&(d.isOpen()?d.remove():(d.setLngLat(this._lngLat),d.addTo(this._map))),this}_updateOpacity(d=!1){if((E=this._map)!=null&&E.terrain){if(d)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout(()=>{this._opacityTimeout=null},100)}var v,E=this._map,d=E.terrain.depthAtPoint(this._pos),A=E.terrain.getElevationForLngLatZoom(this._lngLat,E.transform.tileZoom);E.transform.lngLatToCameraDepth(this._lngLat,A)-d<.006?this._element.style.opacity=this._opacity:(d=-this._offset.y/E.transform._pixelPerMeter,d=Math.sin(E.getPitch()*Math.PI/180)*d,v=E.terrain.depthAtPoint(new o.Point(this._pos.x,this._pos.y-this._offset.y)),E=.006<E.transform.lngLatToCameraDepth(this._lngLat,A+d)-v,(A=this._popup)!=null&&A.isOpen()&&E&&this._popup.remove(),this._element.style.opacity=E?this._opacityWhenCovered:this._opacity)}else this._element.style.opacity!==this._opacity&&(this._element.style.opacity=this._opacity)}getOffset(){return this._offset}setOffset(d){return this._offset=o.Point.convert(d),this._update(),this}addClassName(d){this._element.classList.add(d)}removeClassName(d){this._element.classList.remove(d)}toggleClassName(d){return this._element.classList.toggle(d)}setDraggable(d){return this._draggable=!!d,this._map&&(d?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(d){return this._rotation=d||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(d){return this._rotationAlignment=d||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(d){return this._pitchAlignment=d&&d!=="auto"?d:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(d,v){return d===void 0&&v===void 0&&(this._opacity="1",this._opacityWhenCovered="0.2"),d!==void 0&&(this._opacity=d),v!==void 0&&(this._opacityWhenCovered=v),this._map&&this._updateOpacity(!0),this}}const rc={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0};let Ed=0,Ws=!1;class nc extends o.Evented{constructor(d){super(),this._onSuccess=v=>{if(this._map){if(this._isOutOfMapMaxBounds(v))this._setErrorState(),this.fire(new o.Event("outofmaxbounds",v)),this._updateMarker();else{if(this.options.trackUserLocation)switch(this._lastKnownPosition=v,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw new Error("Unexpected watchState "+this._watchState)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(v),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(v),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new o.Event("geolocate",v))}this._finish()}},this._updateCamera=E=>{var M=new o.LngLat(E.coords.longitude,E.coords.latitude),E=E.coords.accuracy,A=this._map.getBearing(),A=o.extend({bearing:A},this.options.fitBoundsOptions),M=le.fromLngLat(M,E);this._map.fitBounds(M,A,{geolocateSource:!0})},this._updateMarker=v=>{var E;v?(E=new o.LngLat(v.coords.longitude,v.coords.latitude),this._accuracyCircleMarker.setLngLat(E).addTo(this._map),this._userLocationDotMarker.setLngLat(E).addTo(this._map),this._accuracy=v.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()):(this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove())},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=v=>{if(this._map){if(this.options.trackUserLocation)if(v.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var E=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=E,this._geolocateButton.setAttribute("aria-label",E),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(v.code===3&&Ws)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new o.Event("error",v)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=v=>{this._map&&(this._container.addEventListener("contextmenu",E=>E.preventDefault()),this._geolocateButton=m.create("button","maplibregl-ctrl-geolocate",this._container),m.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),!(this._geolocateButton.type="button")===v?(o.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled."),v=this._map._getUIString("GeolocateControl.LocationNotAvailable"),this._geolocateButton.disabled=!0,this._geolocateButton.title=v,this._geolocateButton.setAttribute("aria-label",v)):(v=this._map._getUIString("GeolocateControl.FindMyLocation"),this._geolocateButton.title=v,this._geolocateButton.setAttribute("aria-label",v)),this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","fal
704se"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=m.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new Rs({element:this._dotElement}),this._circleElement=m.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Rs({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation)&&this._map.on("movestart",E=>{var A=E.originalEvent&&E.originalEvent.type==="resize";E.geolocateSource||this._watchState!=="ACTIVE_LOCK"||A||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new o.Event("trackuserlocationend")))})},this.options=o.extend({},rc,d)}onAdd(d){return this._map=d,this._container=m.create("div","maplibregl-ctrl maplibregl-ctrl-group"),lh().then(v=>this._setupUI(v)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),m.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Ed=0,Ws=!1}_isOutOfMapMaxBounds(E){var v=this._map.getMaxBounds(),E=E.coords;return v&&(E.longitude<v.getWest()||E.longitude>v.getEast()||E.latitude<v.getSouth()||E.latitude>v.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw new Error("Unexpected watchState "+this._watchState)}}_updateCircleRadius(){var d=this._map.getBounds(),v=d.getSouthEast(),d=d.getNorthEast(),v=v.distanceTo(d),d=this._map._container.clientHeight,v=Math.ceil(this._accuracy/(v/d)*2);this._circleElement.style.width=v+"px",this._circleElement.style.height=v+"px"}trigger(){if(!this._setup)return o.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new o.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Ed--,Ws=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new o.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new o.Event("trackuserlocationstart"));break;default:throw new Error("Unexpected watchState "+this._watchState)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw new Error("Unexpected watchState "+this._watchState)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Ed++;let d;Ws=1<Ed?(d={maximumAge:6e5,timeout:0},!0):(d=this.options.positionOptions,!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,d)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","fal
704se"),this.options.showUserLocation&&this._updateMarker(null)}}const ch={maxWidth:100,unit:"metric"};function L_(P,d,v){var E=v&&v.maxWidth||100,A=P._container.clientHeight/2,M=P.unproject([0,A]),A=P.unproject([E,A]),M=M.distanceTo(A);v&&v.unit==="imperial"?5280<(A=3.2808*M)?Ng(d,E,A/5280,P._getUIString("ScaleControl.Miles")):Ng(d,E,A,P._getUIString("ScaleControl.Feet")):v&&v.unit==="nautical"?Ng(d,E,M/1852,P._getUIString("ScaleControl.NauticalMiles")):1e3<=M?Ng(d,E,M/1e3,P._getUIString("ScaleControl.Kilometers")):Ng(d,E,M,P._getUIString("ScaleControl.Meters"))}function Ng(P,d,v,E){var A=(function(M){var G=Math.pow(10,(""+Math.floor(M)).length-1);return M/=G,M=10<=M?10:5<=M?5:3<=M?3:2<=M?2:1<=M?1:(function(ee){var he=Math.pow(10,Math.ceil(-Math.log(ee)/Math.LN10));return Math.round(ee*he)/he})(M),G*M})(v);P.style.width=d*(A/v)+"px",P.innerHTML=A+"&nbsp;"+E}class Wv extends o.Evented{constructor(d={}){super(),this._onFullscreenChange=()=>{var v;let E=window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement;for(;(v=E==null?void 0:E.shadowRoot)!=null&&v.fullscreenElement;)E=E.shadowRoot.fullscreenElement;E===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,d&&d.container&&(d.container instanceof HTMLElement?this._container=d.container:o.warnOnce("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(d){return this._map=d,this._container||(this._container=this._map.getContainer()),this._controlContainer=m.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){m.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){var d=this._fullscreenButton=m.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);m.create("span","maplibregl-ctrl-icon",d).setAttribute("aria-hidden","true"),d.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){var d=this._getTitle();this._fullscreenButton.setAttribute("aria-label",d),this._fullscreenButton.title=d}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new o.Event("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new o.Event("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}}const Uu={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1}
vendor: 4,634 bytes, line 704
704,uh=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");class dh extends o.Evented{constructor(d){super(),this.remove=()=>(this._content&&m.remove(this._content),this._container&&(m.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new o.Event("close"))),this),this._onMouseUp=v=>{this._update(v.point)},this._onMouseMove=v=>{this._update(v.point)},this._onDrag=v=>{this._update(v.point)},this._update=v=>{var E=this._lngLat||this._trackPointer;if(this._map&&E&&this._content){if(!this._container){if(this._container=m.create("div","maplibregl-popup",this._map.getContainer()),this._tip=m.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(const G of this.options.className.split(" "))this._container.classList.add(G);this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer?this._lngLat=Ki(this._lngLat,this._flatPos,this._map.transform):this._lngLat=(E=this._lngLat)==null?void 0:E.wrap(),!this._trackPointer||v){E=this._flatPos=this._pos=this._trackPointer&&v?v:this._map.project(this._lngLat),this._map.terrain&&(this._flatPos=this._trackPointer&&v?v:this._map.transform.locationPoint(this._lngLat));let G=this.options.anchor;if(v=Dg(this.options.offset),!G){var A=this._container.offsetWidth,M=this._container.offsetHeight;let he;he=E.y+v.bottom.y<M?["top"]:E.y>this._map.transform.height-M?["bottom"]:[],E.x<A/2?he.push("left"):E.x>this._map.transform.width-A/2&&he.push("right"),G=he.length===0?"bottom":he.join("-")}let ee=E.add(v[G]);this.options.subpixelPositioning||(ee=ee.round()),m.setTransform(this._container,`${Co[G]} translate(${ee.x}px,${ee.y}px)`),wd(this._container,G,"popup")}}},this._onClose=()=>{this.remove()},this.options=o.extend(Object.create(Uu),d)}addTo(d){return this._map&&this.remove(),this._map=d,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new o.Event("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(d){return this._lngLat=o.LngLat.convert(d),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(d){return this.setDOMContent(document.createTextNode(d))}setHTML(d){var v,E=document.createDocumentFragment(),A=document.createElement("body");for(A.innerHTML=d;v=A.firstChild;)E.appendChild(v);return this.setDOMContent(E)}getMaxWidth(){var d;return(d=this._container)==null?void 0:d.style.maxWidth}setMaxWidth(d){return this.options.maxWidth=d,this._update(),this}setDOMContent(d){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=m.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(d),this._createCloseButton(),this._update(),this._focusFirstElement(),this}
vendor: 5,604 bytes, line 704
704addClassName(d){this._container&&this._container.classList.add(d)}removeClassName(d){this._container&&this._container.classList.remove(d)}setOffset(d){return this.options.offset=d,this._update(),this}toggleClassName(d){if(this._container)return this._container.classList.toggle(d)}setSubpixelPositioning(d){this.options.subpixelPositioning=d}_createCloseButton(){this.options.closeButton&&(this._closeButton=m.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="&#215;",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){var d;this.options.focusAfterOpen&&this._container&&(d=this._container.querySelector(uh))&&d.focus()}}function Dg(P){var d;return P?typeof P=="number"?(d=Math.round(Math.abs(P)/Math.SQRT2),{center:new o.Point(0,0),top:new o.Point(0,P),"top-left":new o.Point(d,d),"top-right":new o.Point(-d,d),bottom:new o.Point(0,-P),"bottom-left":new o.Point(d,-d),"bottom-right":new o.Point(-d,-d),left:new o.Point(P,0),right:new o.Point(-P,0)}):P instanceof o.Point||Array.isArray(P)?{center:d=o.Point.convert(P),top:d,"top-left":d,"top-right":d,bottom:d,"bottom-left":d,"bottom-right":d,left:d,right:d}:{center:o.Point.convert(P.center||[0,0]),top:o.Point.convert(P.top||[0,0]),"top-left":o.Point.convert(P["top-left"]||[0,0]),"top-right":o.Point.convert(P["top-right"]||[0,0]),bottom:o.Point.convert(P.bottom||[0,0]),"bottom-left":o.Point.convert(P["bottom-left"]||[0,0]),"bottom-right":o.Point.convert(P["bottom-right"]||[0,0]),left:o.Point.convert(P.left||[0,0]),right:o.Point.convert(P.right||[0,0])}:Dg(new o.Point(0,0))}const $b=l;i.AJAXError=o.AJAXError,i.Evented=o.Evented,i.LngLat=o.LngLat,i.MercatorCoordinate=o.MercatorCoordinate,i.Point=o.Point,i.addProtocol=o.addProtocol,i.config=o.config,i.removeProtocol=o.removeProtocol,i.AttributionControl=ah,i.BoxZoomHandler=Mg,i.CanvasSource=rt,i.CooperativeGesturesHandler=pf,i.DoubleClickZoomHandler=_d,i.DragPanHandler=fs,i.DragRotateHandler=vp,i.EdgeInsets=_y,i.FullscreenControl=Wv,i.GeoJSONSource=_e,i.GeolocateControl=nc,i.Hash=Tt,i.ImageSource=it,i.KeyboardHandler=No,i.LngLatBounds=le,i.LogoControl=Ep,i.Map=_i,i.MapMouseEvent=ll,i.MapTouchEvent=nh,i.MapWheelEvent=xa,i.Marker=Rs,i.NavigationControl=class{constructor(P){this._updateZoomButtons=()=>{var v=this._map.getZoom(),d=v===this._map.getMaxZoom(),v=v===this._map.getMinZoom();this._zoomInButton.disabled=d,this._zoomOutButton.disabled=v,this._zoomInButton.setAttribute("aria-disabled",d.toString()),this._zoomOutButton.setAttribute("aria-disabled",v.toString())},this._rotateCompassArrow=()=>{var d=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=d},this._setButtonTitle=(d,v)=>{v=this._map._getUIString("NavigationControl."+v),d.title=v,d.setAttribute("aria-label",v)},this.options=o.extend({},pi,P),this._container=m.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",d=>d.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",d=>this._map.zoomIn({},{originalEvent:d})),m.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",d=>this._map.zoomOut({},{originalEvent:d})),m.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",d=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:d}):this._map.resetNorth({},{originalEvent:d})}),this._compassIcon=m.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(P){return this._map=P,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Yv(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){m.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(P,d){return P=m.create("button",P,this._container),P.type="button",P.addEventListener("click",d),P}},i.Popup=dh,i.RasterDEMTileSource=Ae,i.RasterTileSource=me,i.ScaleControl=class{constructor(P){this._onMove=()=>{L_(this._map,this._container,this.options)},this.setUnit=d=>{this.options.unit=d,L_(this._map,this._container,this.options)},this.options=o.extend({},ch,P)}getDefaultPosition(){return"bottom-left"}onAdd(P){return this._map=P,this._container=m.create("div","maplibregl-ctrl maplibregl-ctrl-scale",P.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){m.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}}
704,i.ScrollZoomHandler=vd,i.Style=Qh,i.TerrainControl=class{constructor(P){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=P}onAdd(P){return this._map=P,this._container=m.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=m.create("button","maplibregl-ctrl-terrain",this._container),m.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){m.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},i.TwoFingersTouchPitchHandler=Ey,i.TwoFingersTouchRotateHandler=Eo,i.TwoFingersTouchZoomHandler=Du,i.TwoFingersTouchZoomRotateHandler=_p,i.VectorTileSource=te,i.VideoSource=kt,i.addSourceType=(P,d)=>o.__awaiter(void 0,void 0,void 0,function*(){if(ct(P))throw new Error(`A source type called "${P}" already exists.`);var v,E;v=P,E=d,bt[v]=E}),i.clearPrewarmedResources=function(){var P=pe;P&&(P.isPreloaded()&&P.numActive()===1?(P.release(Qe),pe=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},i.getMaxParallelImageRequests=function(){return o.config.MAX_PARALLEL_IMAGE_REQUESTS},i.getRTLTextPluginStatus=function(){return Se().getRTLTextPluginStatus()},i.getVersion=function(){return $b},i.getWorkerCount=function(){return ve.workerCount},i.getWorkerUrl=function(){return o.config.WORKER_URL},i.importScriptInWorkers=function(P){return tt().broadcast("IS",P)},i.prewarm=function(){He().acquire(Qe)},i.setMaxParallelImageRequests=function(P){o.config.MAX_PARALLEL_IMAGE_REQUESTS=P},i.setRTLTextPlugin=function(P,d){return Se().setRTLTextPlugin(P,d)},i.setWorkerCount=function(P){ve.workerCount=P},i.setWorkerUrl=function(P){o.config.WORKER_URL=P}}),e},One.exports=r()})(),One.exports),Wh=lC(LBe);function HBe(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var _a,Mne={exports:{}},FBe={},UBe=Object.freeze({__proto__:null,default:FBe}),BBe=DBe(UBe),$Be=((function(r){for(var e,t,n=0,i=[],o=0;o<256;o++)i[o]=(o+256).toString(16).substr(1);function a(){u=16,(!e||l.BUFFER_SIZE<n+u)&&(n=0,e=l.randomBytes(l.BUFFER_SIZE));var u=e.slice(n,n+=u);return u[6]=15&u[6]|64,u[8]=63&u[8]|128,u}function l(){var u=a();return i[u[0]]+i[u[1]]+i[u[2]]+i[u[3]]+"-"+i[u[4]]+i[u[5]]+"-"+i[u[6]]+i[u[7]]+"-"+i[u[8]]+i[u[9]]+"-"+i[u[10]]+i[u[11]]+i[u[12]]+i[u[13]]+i[u[14]]+i[u[15]]}l.BUFFER_SIZE=4096,l.bin=a,l.clearBuffer=function(){e=null,n=0},l.test=function(u){return typeof u=="string"&&/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(u)},typeof crypto<"u"?t=crypto:typeof window<"u"&&window.msCrypto!==void 0&&(t=window.msCrypto),typeof HBe=="function"?(t=t||BBe,r.exports=l):typeof window<"u"&&(window.uuid=l),l.randomBytes=(function(){if(t){if(t.randomBytes)return t.randomBytes;if(t.getRandomValues)return typeof Uint8Array.prototype.slice!="function"?function(u){return u=new Uint8Array(u),t.getRandomValues(u),Array.from(u)}:function(u){return u=new Uint8Array(u),t.getRandomValues(u),u}}return function(u){for(var h=[],p=0;p<u;p++)h.push(Math.floor(256*Math.random()));return h}})()})(Mne),Mne.exports),cS=lC($Be),wv={domain:"atlas.microsoft.com",staticAssetsDomain:"atlas.microsoft.com",stylePath:"styling",styleDefinitionsVersion:"2023-01-01",appInsightsKey:"e96cb745-c6f5-409c-a775-c4313e468c1d",aadInstance:"https://login.microsoftonline.com/"},ai={apiVersionQueryParameter:"api-version",authorizationHeaderName:"Authorization",authorizationTokenPrefix:"Bearer ",jwtSasPrefix:"jwt-sas ",domainPlaceHolder:"{{azMapsDomain}}",legacyDomainPlaceHolder:"{azMapsDomain}",viewPlaceHolder:"{{azMapsView}}",viewParameter:"view",languagePlaceHolder:"{{azMapsLanguage}}",stylePathHolder:"{{azMapsStylingPath}}",styleResourcePlaceholder:"{{azMapsStylePath}}",stylePath:"styling",styleResourcePath:"styles",styleApiVersion:"2.0",mapAgentHeaderName:"Map-Agent",msClientIdHeaderName:"x-ms-client-id",msOriginHeaderName:"Ms-Am-Request-Origin",msOriginHeaderValue:"MapControl",aadResourceId:"https://atlas.microsoft.com/.default",sessionIdHeaderName:"Session-Id"},zBe=window&&window.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return{value:(r=r&&n>=r.length?void 0:r)&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ya=(function(){function r(){}return r.prototype.merge=function(){for(var e,t,n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];try{for(var a=zBe(i),l=a.next();!l.done;l=a.next()){var u=l.value;if(u)for(var h in u)u.hasOwnProperty(h)&&this.hasOwnProperty(h)&&(u[h]!==void 0&&u[h]!=null?this[h]instanceof r?this[h].merge(u[h]):this[h]=u[h]:(n=n||new(Object.getPrototypeOf(this)).constructor,this[h]=n[h]))}}catch(p){e={error:p}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return this},r})(),jBe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}
704r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),VBe=window&&window.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n,i,o=t.call(r),a=[];try{for(;(e===void 0||0<e--)&&!(n=o.next()).done;)a.push(n.value)}catch(l){i={error:l}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},qBe=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.domain=void 0,t.headers={},t.path="",t.protocol="https",t.queryParams={},t.subdomain="",t}return jBe(e,r),e})(Ya),av=(function(){function r(e){this.options=new qBe().merge(e)}return r.prototype.get=function(){return fetch(this.toString(),{method:"GET",mode:"cors",headers:new Headers(this.options.headers)}).then(function(e){if(e.ok)return e.json();throw new Error("HTTP ".concat(e.status,": ").concat(e.statusText))})},r.prototype.toString=function(){var e=Object.entries(this.options.queryParams).map(function(a){var a=VBe(a,2),o=a[0],a=a[1];return"".concat(o,"=").concat(a)}).join("&"),t=[],n=this.options.path||"";return r.protoRegEx.test(n)?t.push(n):(this.options.domain&&(r.protoRegEx.test(this.options.domain)||(t.push("".concat(this.options.protocol,"://")),t.push(this.options.subdomain?"".concat(this.options.subdomain,"."):"")),t.push(this.options.domain)),t.push(this.options.path?"/".concat(n):"")),t.push(e?"?".concat(e):""),t.join("")},r.protoRegEx=new RegExp(/^(((file|http|https):\/\/)|blob:)/i),r})(),Nne=(function(){function r(){}return r.parse=function(e){var t=(e=e.toLowerCase()).lastIndexOf("-");return t!==-1?{code:e,language:e.substring(0,t),region:e.substring(t+1)}:{code:e,language:e}},r})(),vw={localizationsPath:"locs/mapcontrol/2025-11-05",sensitiveUserRegions:["il","kr","pk","in","cn","ar","bh","eg","jo","sa","kw","om","qa","ma","ae"],locales:{defaultLanguage:{defaultRegion:{code:"NGT",strings:"en/resource.json"},latn:{code:"NGT-Latn",strings:"en/resource.json"}},ar:{defaultRegion:{code:"ar",strings:"ar-SA/resource.json"}},bg:{defaultRegion:{code:"bg-BG",strings:"bg-BG/resource.json"}},ca:{defaultRegion:{code:"ca-ES",strings:"ca-ES/resource.json"}},cs:{defaultRegion:{code:"cs-CZ",strings:"cs-CZ/resource.json"}},da:{defaultRegion:{code:"da-DK",strings:"da-DK/resource.json"}},de:{defaultRegion:{code:"de-DE",strings:"de-DE/resource.json"}},et:{defaultRegion:{code:"et-EE",strings:"et-EE/resource.json"}},el:{defaultRegion:{code:"el-GR",strings:"el-GR/resource.json"}},en:{defaultRegion:{code:"en",strings:"en/resource.json"},us:{code:"en-US",strings:"en/resource.json"},au:{code:"en-AU",strings:"en/resource.json"},gb:{code:"en-GB",strings:"en/resource.json"},nz:{code:"en-NZ",strings:"en/resource.json"}},es:{defaultRegion:{code:"es-ES",strings:"es-ES/resource.json"},mx:{code:"es-MX",strings:"es-MX/resource.json"}},eu:{defaultRegion:{code:"eu-ES",strings:"eu-ES/resource.json"}},fi:{defaultRegion:{code:"fi-FI",strings:"fi-FI/resource.json"}},fr:{defaultRegion:{code:"fr-FR",strings:"fr-FR/resource.json"}},gl:{defaultRegion:{code:"gl-ES",strings:"gl-ES/resource.json"}},he:{defaultRegion:{code:"he-IL",strings:"he-IL/resource.json"}},hi:{defaultRegion:{code:"hi-IN",strings:"hi-IN/resource.json"}},hr:{defaultRegion:{code:"hr-HR",strings:"hr-HR/resource.json"}},hu:{defaultRegion:{code:"hu-HU",strings:"hu-HU/resource.json"}},id:{defaultRegion:{code:"id-ID",strings:"id-ID/resource.json"}},it:{defaultRegion:{code:"it-IT",strings:"it-IT/resource.json"}},ja:{defaultRegion:{code:"ja-JP",strings:"ja-JP/resource.json"}},kk:{defaultRegion:{code:"kk-KZ",strings:"kk-KZ/resource.json"}},ko:{defaultRegion:{code:"ko-KR",strings:"ko-KR/resource.json"}},lt:{defaultRegion:{code:"lt-LT",strings:"lt-LT/resource.json"}},lv:{defaultRegion:{code:"lv-LV",strings:"lv-LV/resource.json"}},ms:{defaultRegion:{code:"ms-MY",strings:"ms-MY/resource.json"}},nb:{defaultRegion:{code:"nb-NO",strings:"nb-NO/resource.json"}},nl:{defaultRegion:{code:"nl-NL",strings:"nl-NL/resource.json"}},pl:{defaultRegion:{code:"pl-PL",strings:"pl-PL/resource.json"}},pt:{defaultRegion:{code:"pt-PT",strings:"pt-PT/resource.json"}
704,br:{code:"pt-BR",strings:"pt-BR/resource.json"}},ro:{defaultRegion:{code:"ro-RO",strings:"ro-RO/resource.json"}},ru:{defaultRegion:{code:"ru-RU",strings:"ru-RU/resource.json"}},sk:{defaultRegion:{code:"sk-SK",strings:"sk-SK/resource.json"}},sl:{defaultRegion:{code:"sl-SL",strings:"sl/resource.json"}},sr:{defaultRegion:{code:"sr-CYRL-RS",strings:"sr-CYRL-RS/resource.json"},latn:{code:"sr-LATN-RS",strings:"sr-LATN-RS/resource.json"}},sv:{defaultRegion:{code:"sv-SE",strings:"sv-SE/resource.json"}},th:{defaultRegion:{code:"th-TH",strings:"th-TH/resource.json"}},tr:{defaultRegion:{code:"tr-TR",strings:"tr-TR/resource.json"}},uk:{defaultRegion:{code:"uk-UA",strings:"uk-UA/resource.json"}},vi:{defaultRegion:{code:"vi-VN",strings:"vi-VN/resource.json"}},zh:{defaultRegion:{code:"zh",strings:"en/resource.json"}},"zh-hans":{defaultRegion:{code:"zh-Hans",strings:"zh-cn/resource.json"},cn:{code:"zh-Hans-CN",strings:"zh-cn/resource.json"}},"zh-hant":{defaultRegion:{code:"zh-Hant",strings:"en/resource.json"},tw:{code:"zh-Hant-TW",strings:"zh-TW/resource.json"}}}},Dne=function(){this.Unknown="Unknown",this.Accident="Accident",this.Fog="Fog",this.Danger="Danger",this.Rain="Rain",this.Ice="Ice",this.Jam="Jam",this.LaneClosed="Lane Closed",this.RoadClosed="Road Closed",this.RoadWorks="Road Works",this.Wind="Wind",this.Flood="Flood",this.Detour="Detour"},q8=(function(){function r(){}return r.getCode=function(e){e.localeCompare("auto",void 0,{sensitivity:"base"})===0&&(e=navigator.language);var t=Nne.parse(e);return vw.sensitiveUserRegions.indexOf(t.region)===-1?this.getLocaleData(t).code:e},r.getStrings=function(e){return e=this.getLocaleData(e),vw.locales.defaultLanguage.defaultRegion.code===e.code?new Promise(function(t){t(new Dne)}):new av({domain:wv.staticAssetsDomain,path:"".concat(vw.localizationsPath,"/").concat(e.strings)}).get().then(function(t){return t},function(){return new Dne})},r.getLocaleData=function(e){if(typeof e=="string"&&(e=Nne.parse(e)),vw.locales[e.code])return vw.locales[e.code].defaultRegion;var t;if(vw.locales[e.language])t=vw.locales[e.language];else{if(e.language.indexOf("-")!==-1)return this.getLocaleData(e.language);t=vw.locales.defaultLanguage}return e.region&&t[e.region]?t[e.region]:t.defaultRegion},r})(),GBe=(function(){function r(){}return r.getEdgeOrIEVersion=function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");return 0<t?parseInt(e.substring(t+5,e.indexOf(".",t)),10):0<e.indexOf("Trident/")?(t=e.indexOf("rv:"),parseInt(e.substring(t+3,e.indexOf(".",t)),10)):0<(t=e.indexOf("Edge/"))?parseInt(e.substring(t+5,e.indexOf(".",t)),10):-1},r.isEdgeOrIE=function(){return this.getEdgeOrIEVersion()!==-1},r.isIE=function(){var e=this.getEdgeOrIEVersion();return e!==-1&&e<=11},r})(),Kw="3.7.4",R7=(function(){function r(){}return r.getFullVersion=function(){return Kw},r.getEndpointVersion=function(){var e=Kw.indexOf(".");return(e=Kw.indexOf(".",e+1))===-1?Kw:Kw.substring(0,e)},r})(),YBe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),WBe=window&&window.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n,i,o=t.call(r),a=[];try{for(;(e===void 0||0<e--)&&!(n=o.next()).done;)a.push(n.value)}catch(l){i={error:l}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},KBe=window&&window.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||((n=n||Array.prototype.slice.call(e,0,i))[i]=e[i]);return r.concat(n||Array.prototype.slice.call(e))},Dve=((function(r){r.subscriptionKey="subscriptionKey",r.aad="aad",r.anonymous="anonymous",r.sas="sas"})(_a=_a||{}),(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.authType=void 0,t.subscriptionKey=void 0,t.clientId=void 0,t.aadAppId=void 0,t.aadTenant=void 0,t.aadInstance=void 0,t.getToken=void 0,t.sasToken=void 0,t.authContext=void 0,t}return YBe(e,r),e.prototype.setSubscriptionKey=function(t){this.authType=_a.subscriptionKey,this.subscriptionKey=t},e.prototype.setAadProperties=function(t,n,i,o,a){this.authType=_a.aad,this.authContext=a||this.authContext,this.aadInstance=o||this.aadInstance,this.clientId=t,this.aadAppId=n,this.aadTenant=i},e.prototype.setTokenCallbackFunction=function(t){this.authType=_a.anonymous,this.getToken=t},e.prototype.setSasCallbackFunction=function(t){this.authType=_a.sas,this.getToken=t},e.prototype.merge=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r.prototype.merge.apply(this,KBe([],WBe(t),!1));return i.authType===_a.subscriptionKey?i.authContext=i.aadAppId=i.getToken=void 0:i.authType===_a.aad?i.subscriptionKey=i.getToken=void 0:i.authType===_a.anonymous?i.subscriptionKey=i.authContext=i.aadAppId=void 0:i.authType===_a.sas&&(i.authContext=i.subscriptionKey=i.aadAppId=void 0),i},e})(Ya)),rG=PZ;function PZ(r){return!ZBe(r)}function ZBe(r){return XBe()?QBe()?JBe()?e7e()?t7e()?r7e()?n7e()?i7e()?o7e()?a7e(r&&r.failIfMajorPerformanceCaveat)?c7e()?void 0:"insufficient ECMAScript 6 support":"insufficient WebGL support":"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray supp
704ort":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support":"not a browser"}function XBe(){return typeof window<"u"&&typeof document<"u"}function QBe(){return Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray}function JBe(){return Function.prototype&&Function.prototype.bind}function e7e(){return Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions}function t7e(){return"JSON"in window&&"parse"in JSON&&"stringify"in JSON}function r7e(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var r,e,t=new Blob([""],{type:"text/javascript"}),t=URL.createObjectURL(t);try{e=new Worker(t),r=!0}catch{r=!1}return e&&e.terminate(),URL.revokeObjectURL(t),r}function n7e(){return"Uint8ClampedArray"in window}function i7e(){return ArrayBuffer.isView}function o7e(){var r=document.createElement("canvas"),e=(r.width=r.height=1,r.getContext("2d"));return!!e&&(e=e.getImageData(0,0,1,1))&&e.width===r.width}var P7,m5={};function a7e(r){return m5[r]===void 0&&(m5[r]=l7e(r)),m5[r]}function s7e(r){var e=document.createElement("canvas"),t=Object.create(PZ.webGLContextAttributes);return t.failIfMajorPerformanceCaveat=r,e.getContext("webgl",t)||e.getContext("experimental-webgl",t)}function l7e(t){var e,t=s7e(t);if(!t)return!1;try{e=t.createShader(t.VERTEX_SHADER)}catch{return!1}return!(!e||t.isContextLost())&&(t.shaderSource(e,"void main() {}"),t.compileShader(e),t.getShaderParameter(e,t.COMPILE_STATUS)===!0)}function c7e(){return!document.documentMode}PZ.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0};var Lve="NGT",Hve=cS(),Fve=wv.domain,u7e=wv.staticAssetsDomain,Uve=wv.stylePath,Bve=wv.styleDefinitionsVersion,$ve=ai.styleApiVersion,FP=new Dve,kZ=!1,zve=!1,jve=!1,Vve=!1,qve=!1,Gve=!1,Yve=!1,Wve=!1,OZ=!1;function MZ(){return Object.assign({},FP)}function NZ(){return u7e}function k7(){return Fve}function DZ(){return Uve}function LZ(){return Bve}function HZ(){return $ve}function FZ(){return Wh.getWorkerCount()}function UZ(){return Wh.getMaxParallelImageRequests()}function BZ(){return Lve}function $Z(){return Hve}function zZ(){return FP.authType===_a.subscriptionKey?FP.subscriptionKey:void 0}function Kve(){return P7}function jZ(){return P7}function Zve(){return R7.getFullVersion()}function Xve(r){var e=!GBe.isIE();return e=e&&rG({failIfMajorPerformanceCaveat:r})&&document.createElement("canvas").getContext("webgl2")!==null}function VZ(r){FP=new Dve().merge(FP,r),OZ=!0}function qZ(r){Fve=r,zve=!0}function GZ(r){Uve=r,jve=!0}function Qve(r){Bve=r,Vve=!0}function Jve(r){$ve=r}function YZ(r){0<r&&(Wh.setWorkerCount(r),qve=!0)}function WZ(r){0<r&&(Wh.setMaxParallelImageRequests(r),Gve=!0)}function KZ(r){Lve=q8.getCode(r),Yve=!0}function ZZ(r){Hve=r,Wve=!0}function XZ(r){FP.setSubscriptionKey(r),OZ=!0}function QZ(r){P7=r,kZ=!0}function e0e(r){P7=r,kZ=!0}function t0e(r,e,t){!t&&iD[r.toLowerCase()]||(iD[r.toLowerCase()]=e)}function JZ(r,e){if(e=Math.abs(e||1),typeof r=="string"&&iD[r.toLowerCase()]){for(var t=iD[r.toLowerCase()],n=/calc\(([0-9.]+)[px]*\s*\*\s*\{scale\}\)/gi,i=t,o=n.exec(t);o;)i=i.replace(o[0],parseFloat(o[1])*e+""),o=n.exec(t);return i=i.replace("{scale}",e+"")}throw new Error("Invalid templateName.")}function r0e(){return Object.keys(iD)}function n0e(){Wh.prewarm()}function i0e(){Wh.clearPrewarmedResources()}function o0e(r,e){Wh.addProtocol(r,e)}function a0e(r){Wh.removeProtocol(r)}function G8(){return OZ}function eX(){return zve}function tX(){return jve}function s0e(){return Vve}function rX(){return qve}function nX(){return Gve}function iX(){return Yve}function oX(){return Wve}function aX(){return kZ}function l0e(){return wv.domain}function c0e(){return k7()}function nG(){var r=new av({domain:wv.staticAssetsDomain,path:"sdk/javascript/mapcontrol/".concat(R7.getEndpointVersion(),"/ma
704pbox-gl-rtl-text.min.js")});Wh.setRTLTextPlugin(r.toString(),!0).catch(function(e){e&&console.warn(e)})}var xu,Zc,iD
vendor: 23,994 bytes, line 704
704={marker:'<svg xmlns="http://www.w3.org/2000/svg" width="calc(27 * {scale})" height="calc(39 * {scale})" viewBox="-1 -1 26 38"><path d="M12.25.25a12.254 12.254 0 0 0-12 12.494c0 6.444 6.488 12.109 11.059 22.564.549 1.256 1.333 1.256 1.882 0C17.762 24.853 24.25 19.186 24.25 12.744A12.254 12.254 0 0 0 12.25.25Z" style="fill:{color};stroke:{secondaryColor};stroke-width:1"/><text x="12.5" y="17.5" style="font-size:14px;fill:#fff;text-anchor:middle">{text}</text></svg>',"marker-thick":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(28 * {scale})" height="calc(39 * {scale})" viewBox="-1 -1 27 38"><path d="M12.25.25a12.254 12.254 0 0 0-12 12.494c0 6.444 6.488 12.109 11.059 22.564.549 1.256 1.333 1.256 1.882 0C17.762 24.853 24.25 19.186 24.25 12.744A12.254 12.254 0 0 0 12.25.25Z" style="fill:{color};stroke:{secondaryColor};stroke-width:2"/><text x="12.5" y="18.5" style="font-size:14px;fill:#fff;text-anchor:middle">{text}</text></svg>',"marker-circle":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(28 * {scale})" height="calc(39 * {scale})" viewBox="-1 -1 27 38"><path d="M12.25.25a12.254 12.254 0 0 0-12 12.494c0 6.444 6.488 12.109 11.059 22.564.549 1.256 1.333 1.256 1.882 0C17.762 24.853 24.25 19.186 24.25 12.744A12.254 12.254 0 0 0 12.25.25Z" style="fill:{color};stroke:{secondaryColor};stroke-width:1"/><circle cx="12.5" cy="12.5" r="9" fill="{secondaryColor}"/><text x="12" y="17.5" style="font-size:14px;fill:#000;text-anchor:middle">{text}</text></svg>',pin:'<svg xmlns="http://www.w3.org/2000/svg" width="calc(24 * {scale})" height="calc(28 * {scale})" viewBox="0 0 24 28"><path d="m11.988 16.615a5.15 5.15 0 0 1-2.268-.525 4.909 4.909 0 0 1-2.805-4.442 5.019 5.019 0 0 1 5.072-4.936h.012a5.03 5.03 0 0 1 5.085 4.961 4.907 4.907 0 0 1-.549 2.224 5.114 5.114 0 0 1-4.548 2.718zm0-8.06a3.173 3.173 0 0 0-3.226 3.099 3.081 3.081 0 0 0 1.77 2.782 3.299 3.299 0 0 0 4.365-1.386 3.049 3.049 0 0 0 .342-1.381 3.184 3.184 0 0 0-3.239-3.114h-.012z" fill="{secondaryColor}"/><path d="m11.999.922a10.908 10.908 0 0 0-11.076 10.732 10.639 10.639 0 0 0 4.418 8.598l6.658 6.464 6.658-6.463a10.537 10.537 0 0 0 2.198-15.041 11.182 11.182 0 0 0-8.856-4.289zm1.873 14.341a4.221 4.221 0 0 1-5.589-1.789 3.945 3.945 0 0 1-.445-1.8 4.164 4.164 0 0 1 8.323-.037 4.028 4.028 0 0 1-2.289 3.626Z" fill="{color}"/><path d="m11.999 28-7.256-7.044a11.611 11.611 0 0 1-4.743-9.303 11.844 11.844 0 0 1 11.988-11.652.102 .102 0 0 1 .02 0 12.164 12.164 0 0 1 9.577 4.647 11.357 11.357 0 0 1 2.299 8.614 11.521 11.521 0 0 1-4.63 7.695zm-.01-26.157a9.997 9.997 0 0 0-10.143 9.812 9.769 9.769 0 0 0 4.04 7.853l.099.083 6.014 5.838 6.113-5.922a9.7 9.7 0 0 0 3.945-6.505 9.533 9.533 0 0 0-1.933-7.229 10.305 10.305 0 0 0-8.116-3.931h-.021zm.021 14.772a5.11 5.11 0 0 1-4.547-2.718 4.868 4.868 0 0 1 .932-5.743 5.118 5.118 0 0 1 3.58-1.46h.024a5.031 5.031 0 0 1 5.084 4.938 4.92 4.92 0 0 1-2.805 4.457h0a5.152 5.152 0 0 1-2.269.525zm-.011-8.079h-.015a3.277 3.277 0 0 0-2.295.933 3.029 3.029 0 0 0-.587 3.58 3.297 3.297 0 0 0 4.364 1.386h0a3.092 3.092 0 0 0 1.772-2.795 3.185 3.185 0 0 0-3.239-3.105z" fill="{secondaryColor}"/><text x="12" y="17" style="font-size:14px;fill:#000;text-anchor:middle">{text}</text></svg>',"pin-round":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(25 * {scale})" height="calc(25 * {scale})" viewBox="0 0 25 25"><g transform="translate(0 1)"><circle cx="12.25" cy="11.5833" r="11" fill="{color}"/><path d="m12.25 23.583a12 12 0 1 1 12-12 12 12 0 0 1-12 12zm0-22a10 10 0 1 0 10 10 10 10 0 0 0-10-10z" fill="{secondaryColor}"/><circle cx="12.25" cy="11.5833" r="4.2386" fill="{secondaryColor}"/></g><text x="12.5" y="17" style="font-size:14px;fill:#000;text-anchor:middle">{text}</text></svg>',"marker-flat":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(27 * {scale})" height="calc(42.8 * {scale})"  viewBox="0 0 1600 2570"><g fill="{color}"><path d="M691 2419c-409-575-641-1086-683-1504-10-106-10-136 5-224 31-188 105-330 241-458 129-124 270-190 453-214 69-9 113-10 182-1 373 46 655 326 703 698 40 308-120 801-424 1309-134 224-348 535-369 535-4 0-53-63-108-141z"/></g><g fill="rgba(0,0,0,0.15)" style="transform:scale(-1,1);transform-origin:center"><path d="M691 2419c-407-571-639-1083-682-1498-14-139-3-249 37-371 69-208 254-402 459-481 68-27 217-59 271-59h24v160 180 940 635c0 349-2 635-5 635-2 0-49-63-104-141z"/></g><circle cx="800" cy="800" r="600" fill="{secondaryColor}"/><text x="800" y="1100" style="font-size:800px;fill:#000;text-anchor:middle">{text}</text></svg>',"marker-arrow":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(25.47 * {scale})" height="calc(35.18 * {scale})" viewBox="0 0 4330 5980"><g fill="{color}"><path d="m2080 5969c-49-20-93-63-115-113-25-55-1928-5486-1953-5573-40-138 67-282 210-283 36 0 246 73 987 345 518 190 947 345 955 345 8 0 438-155 955-345 615-226 954-345 979-345 87 0 165 47 204 123 46 91 107-95-957 2942-537 1535-986 2805-997 2823-11 18-43 46-72 62-41 24-62 30-111 29-33 0-71-5-85-10z"/></g><g fill="{secondaryColor}"><path d="m2200 1600c-36 10-83 2-484-84-243-53-451-94-461-91-11 4-22 18-25 31-5 19 114 371 436 1292 244 697 448 1273 454 1281 19 24 50 30 71 12z"/><path d="m2200 1600c-36 10-83 2-484-84-243-53-451-94-461-91-11 4-22 18-25 31-5 19 114 371 436 1292 244 697 448 1273 454 1281 19 24 50 30 71 12z" style="transform:scale(-1,1);transform-origin:center"/></g><g fill="rgba(0,0,0,0.2)" ><path d="m2165 685c8 0 438-155 955-345 615-226 954-345 979-345 87 0 165 47 204 123 46 91 107-95-957 2942-537 1535-986 2805-997 2823-11 18-43 46-72 62-41 24-62 30-111 29z"/></g><text x="2165" y="3300" style="font-size:2500px;fill:#fff;text-anchor:middle">{text}</text></svg>',"marker-ball-pin":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(15.67 * {scale})" height="calc(33.33 * {scale})" viewBox="0 0 235 452"><g transform="translate(-135 10)"><path fill="{secondaryColor}" d="m256 442 0 0c-13 0-18-11-18-24l-6-323c0-13 11-24 24-24h0c13 0 24 11 24 24l-6 323c0 13-5 24-18 24z"/><circle style="fill:{color};stroke-width:10;stroke:{secondaryColor}" cx="256" cy="112" r="111"/><ellipse transform="matrix(0.834 0.5518 -0.5518 0.834 65.7916 -97.18)" fill="rgba(255,255,255,0.3)" cx="194.399" cy="60.749" rx="19.076" ry="32.428"/></g><text x="117.5" y="160" style="font-size:160px;fill:#fff;text-anchor:middle">{text}</text></svg>',"marker-square":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(26.67 * {scale})" height="calc(32.27 * {scale})" viewBox="0 0 2000 2420"><g transform="translate(100 100)" style="stroke:{secondaryColor};stroke-width:100;fill:{color}"><path d="M845 2152c-22-37-58-95-80-129-22-35-62-99-90-143l-50-80-312 0-313 0 0-900 0-900 900 0 900 0 0 900 0 900-313 0-313 0-34 58c-19 31-38 59-42 60-5 2-8 8-8 12 0 9-69 123-88 145-5 6-11 15-13 21-16 39-77 123-89 124-8 0-33-31-55-68z"/></g><text x="1000" y="1300" style="font-size:1000px;fill:#fff;text-anchor:middle">{text}</text></svg>',"marker-square-cluster":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(33.33 * {scale})" height="calc(38.8 * {scale})" viewBox="0 0 2500 2910"><g transform="translate(100 100)" style="stroke:{secondaryColor};stroke-width:100;fill:{color}"><path d="m866 2652c-17-31-37-68-46-82-9-14-32-54-51-90-19-36-50-92-70-125l-36-60-332-3-331-2 0-905 0-905 660 0 660 0 0-38c0-71 50-196 102-258 71-85 189-164 244-164 12 0 26-4 29-10 8-13 222-13 230 0 3 6 17 10 30 10 25 0 117 45 154 76 130 107 191 232 191 392 0 155-63 284-190 386-36 29-129 76-150 76-11 0-22 5-25 10-3 6-31 10-61 10l-54 0 0 660 0 660-332 2-332 3-29 50c-17 28-48 84-70 125-22 41-47 86-56 100-9 14-30 51-46 83-17 32-36 57-45 57-8 0-28-25-44-58z"/></g><text x="1650" y="900" style="font-size:1000px;fill:#fff">+</text><text x="1000" y="1800" style="font-size:1000px;fill:#fff;text-anchor:middle">{text}</text></svg>',"marker-square-rounded":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(26.8 * {scale})" height="calc(32.27 * {scale})" viewBox="0 0 2010 2410"><g transform="translate(100 100)" style="stroke:{secondaryColor};stroke-width:100;fill:{color}"><path d="M856 2155c-20-30-36-59-36-65 0-5-4-10-10-10-5 0-10-5-10-11 0-5-18-37-40-69-22-32-40-64-40-69 0-6-4-11-10-11-5 0-10-5-10-10 0-6-15-33-32-60l-33-50-127 0c-74 0-129-4-133-10-3-5-17-10-30-10-25 0-116-45-155-76-87-69-142-151-178-265-15-46-17-1075-2-1084 5-3 10-17 10-30 0-13 5-27 10-30 6-3 10-13 10-22 0-22 83-135 122-168 57-46 62-50 112-75l50-25 585 0 586 0 63 34c84 46 169 133 212 218l35 68 0 565 0 565-28 59c-32 69-100 157-139 180-15 9-33 22-40 29-23 22-99 57-123 57-13 0-27 5-30 10-4 6-60 10-135 10l-128 0-128 205c-84 136-133 205-144 205-10 0-33-24-54-55z"/></g><text x="1000" y="1300" style="font-size:1000px;fill:#fff;text-anchor:middle">{text}</text></svg>',"marker-square-rounded-cluster":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(33.33 * {scale})" height="calc(32.13 * {scale})" viewBox="0 0 2500 2900"><g transform="translate(100 100)" style="stroke:{secondaryColor};stroke-width:100;fill:{color}"><path d="m874 2669c-9-18-26-49-37-68-11-20-30-55-43-78-13-24-36-64-51-90-14-27-38-69-52-95l-26-48-142 0c-84 0-144-4-148-10-3-5-17-10-30-10-25 0-118-46-154-76-91-76-136-142-175-254-13-38-16-119-16-554 0-358 3-520 12-545 40-125 106-219 195-278 127-84 116-83 646-83l467 0 0-42c0-46 11-87 45-163 54-121 169-220 306-264 46-14 232-14 278 0 165 53 284 175 340 350 19 61 14 204-10 273-32 91-94 178-169 240-38 31-130 76-155 76-13 0-27 5-30 10-3 6-28 10-56 10l-49 0 0 462c0 446-1 464-21 522-32 91-94 178-169 240-38 31-130 76-155 76-13 0-27 5-30 10-4 6-65 10-149 10-138 0-143 1-154 23-12 23-62 114-112 202-16 28-44 79-63 115-42 77-67 88-93 39z"/></g><text x="1650" y="900" style="font-size:1000px;fill:#fff">+</text><text x="1000" y="1800" style="font-size:1000px;fill:#fff;text-anchor:middle">{text}</text></svg>',flag:'<svg xmlns="http://www.w3.org/2000/svg" width="calc(23.5 * {scale})" height="calc(40 * {scale})" viewBox="34 28 198 308"><path style="stroke:{secondaryColor};stroke-width:15;stroke-linecap:round;" d="M42 327l0 -291"/><path style="fill:{color};stroke:{secondaryColor};stroke-width:10;stroke-linejoin:round;" d="M49 50c70 30 104 28 178 2-21 42-21 74 0 116-72 25-101 25-178 0l0-118z"/><text x="130" y="165" style="font-size:100px;fill:#fff;text-anchor:middle">{text}</text></svg>',"flag-triangle":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(27 * {scale})" height="calc(35.33 * {scale})" viewBox="0 0 40.5 53"><g transform="translate(-31 -20)"><path fill="{secondaryColor}" d="M34.7,73.3V48.4l34.6-10.1c0.7-0.2,1.2-0.8,1.2-1.5s-0.4-1.4-1-1.7L33.7,20.5c-0.5-0.2-1.1-0.2-1.6,0.2 c-0.5,0.3-0.7,0.8-0.7,1.4v51.2H34.7z"/><polygon points="34.7,24.5 66,36.5 34.7,45 34.7,10" fill="{color}"/></g><text x="11" y="21" style="font-size:14px;fill:#fff;text-anchor:middle">{text}</text></svg>',"rounded-square":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(34 * {scale})" height="calc(34 * {scale})" viewBox="0 0 34 34"><g transform="translate(2 2)"><rect x="0" y="0" rx="8" ry="8" width="30" height="30" style="stroke:{secondaryColor};stroke-width:2;fill:{color}"/></g><text x="17" y="22" style="font-size:14px;fill:#fff;text-anchor:middle">{text}</text></svg>',"rounded-square-thick":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(38 * {scale})" height="calc(38 * {scale})" viewBox="0 0 38 38"><g transform="translate(4 4)"><rect x="0" y="0" rx="8" ry="8" width="30" height="30" style="stroke:{secondaryColor};stroke-width:4;fill:{color}"/></g><text x="19" y="24" style="font-size:14px;fill:#fff;text-anchor:middle">{text}</text></svg>',triangle:'<svg xmlns="http://www.w3.org/2000/svg" width="calc(36 * {scale})" height="calc(36 * {scale})" viewBox="0 0 36 36"><g transform="translate(2 2)"><polygon points="16,0 32,32 0,32 16,0" style="stroke:{secondaryColor};stroke-width:2;fill:{color}"/></g><text x="17.5" y="30" style="font-size:12px;fill:#fff;text-anchor:middle">{text}</text></svg>',"triangle-thick":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(40 * {scale})" height="calc(40 * {scale})" viewBox="0 0 40 40"><g transform="translate(4 4)"><polygon points="16,0 32,32 0,32 16,0" style="stroke:{secondaryColor};stroke-width:4;fill:{color}"/></g><text x="19.5" y="32" style="font-size:12px;fill:#fff;text-anchor:middle">{text}</text></svg>',hexagon:'<svg xmlns="http://www.w3.org/2000/svg" width="calc(35 * {scale})" height="calc(40 * {scale})" viewBox="0 0 35 40"><g transform="translate(2 2)"><path d="M31 9 15.5 0 0 9 0 27 15.5 36 31 27 31 9Z" style="stroke:{secondaryColor};stroke-width:2;fill:{color}"/></g><text x="17.5" y="25" style="font-size:14px;fill:#fff;text-anchor:middle">{text}</text></svg>',"hexagon-thick":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(39 * {scale})" height="calc(44 * {scale})" viewBox="0 0 39 44"><g transform="translate(4 4)"><path d="M31 9 15.5 0 0 9 0 27 15.5 36 31 27 31 9Z" style="stroke:{secondaryColor};stroke-width:4;fill:{color}"/></g><text x="19.5" y="27" style="font-size:14px;fill:#fff;text-anchor:middle">{text}</text></svg>',"hexagon-rounded":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(40 * {scale})" height="calc(40 * {scale})" viewBox="0 0 1100 1100"><g transform="translate(50 50)"><path style="stroke:{secondaryColor};stroke-width:50;fill:{color}" d="M881 210 561 25c-33-19-88-19-121 0L119 210c-33 19-61 67-61 105v370c0 39 27 86 61 105l321 185c33 19 88 19 122 0l321-185c33-19 61-67 61-105V315C942 276 915 229 881 210z"/></g><text x="550" y="700" style="font-size:400px;fill:#fff;text-anchor:middle">{text}</text></svg>',"hexagon-rounded-thick":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(40 * {scale})" height="calc(40 * {scale})" viewBox="0 0 1200 1200"><g transform="translate(100 100)"><path style="stroke:{secondaryColor};stroke-width:100;fill:{color}" d="M881 210 561 25c-33-19-88-19-121 0L119 210c-33 19-61 67-61 105v370c0 39 27 86 61 105l321 185c33 19 88 19 122 0l321-185c33-19 61-67 61-105V315C942 276 915 229 881 210z"/></g><text x="600" y="750" style="font-size:400px;fill:#fff;text-anchor:middle">{text}</text></svg>',"triangle-arrow-up":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(28 * {scale})" height="calc(28 * {scale})" viewBox="0 0 28 28"><g transform="translate(2 2)"><polygon points="12,0 0,24 12,17 24,24" stroke-width="2" stroke="{secondaryColor}" fill="{color}"/></g><text x="14" y="17" style="font-size:8px;fill:#fff;text-anchor:middle">{text}</text></svg>',"triangle-arrow-left":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(28 * {scale})" height="calc(28 * {scale})" viewBox="0 0 28 28"><g transform="translate(2 2)"><polygon points="24,12 0,0 7,12 0,24" stroke-width="2" stroke="{secondaryColor}" fill="{color}"/></g><text x="14" y="16.5" style="font-size:8px;fill:#fff;text-anchor:middle">{text}</text></svg>',"arrow-up":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(12.16 * {scale})" height="calc(30.1 * {scale})" viewBox="0 0 902 364"><g fill="{color}" transform="matrix(0,2.4,-2.4,0,897,-930)"><polygon points="902,222 233,222 233,364 0,182 233,0 233,141 902,141 902,222"/></g><text x="450" y="700" style="font-size:900px;fill:#000;text-anchor:middle">{text}</text></svg>',"arrow-up-thin":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(16 * {scale})" height="calc(33.33 * {scale})" viewBox="0 0 12 25"><g transform="translate(-136.91823 -751.91998)"><path fill="{color}" d="m148.271 760.71c-1.641-.547-3.186-1.47-4.633-2.769l0 18.07-1.675 0 0-18.07c-1.447 1.299-2.986 2.222-4.616 2.769l0-1.231c2.325-1.596 4.006-3.812 5.043-6.65l.838 0c1.037 2.838 2.718 5.055 5.043 6.65l0 1.231z"/></g><text x="6" y="20" style="font-size:10px;fill:#000;text-anchor:middle">{text}</text></svg>',car:'<svg xmlns="http://www.w3.org/2000/svg" width="calc(21.93 * {scale})" height="calc(40.9 * {scale})" viewBox="0 0 6580 12270"><g transform="translate(0 12270) rotate(-90)"><path fill="{secondaryColor}" d="M7045 6566c-42-13-105-44-105-51 0-2 23-105 50-228 28-123 50-230 50-236 0-8-241-11-907-11-855 0-1145 6-1513 30-85 6-189 13-230 15-41 3-133 10-205 15-286 21-430 32-705 50-953 63-1459 18-2335-205-304-77-746-209-799-238-131-72-221-408-285-1062-34-345-42-532-48-1130-16-1557 108-2532 336-2649 32-17 469-149 676-205 409-110 819-191 1205-238 116-14 224-18 540-18 395 1 494 5 1140 50 1124 79 1224 82 2496 78l641-3-53-237c-29-131-52-238-51-239 1-1 31-14 66-29 56-23 76-26 142-23 67 3 83 7 120 33 23 17 50 41 61 55 10 14 51 117 91 230l73 205 674 3 675 2 90-39c98-43 198-72 315-93 122-21 829-18 990 5 321 45 626 143 849 270 293 168 516 378 704 662 266 402 416 893 467 1527 15 174 8 882-9 998-6 41-18 127-27 190-69 502-253 969-523 1325-79 105-262 284-381 374-189 142-355 229-574 300-336 110-526 139-952 148-457 9-685-23-887-124l-47-24-678-6-678-6-64 179c-79 224-92 253-121 284-67 70-177 97-274 66zm-2752-5073c-23-2-64-2-90 0-26 2-7 3 42 3 50 0 71-1 48-3zm395 0c-21-2-55-2-75 0-21 2-4 4 37 4 41 0 58-2 38-4z"/><path fill="{color}" d="M7043 6498c-13-6-23-19-23-28 0-9 23-117 50-240 28-123 50-230 50-237 0-22-2126-13-2465 10-132 10-400 28-595 42-661 47-824 55-1160 62-435 7-656-8-1040-73-415-70-865-183-1447-365-168-53-272-556-325-1569-16-319-16-1311 0-1630 45-872 129-1366 257-1518 22-26 51-39 172-77 557-177 1122-310 1563-369 271-36 351-40 690-40 361 1 463 6 1165 54 1122 78 1288 83 2337 79 460-2 840-7 843-11 4-4-17-117-47-252l-55-245 39-16c76-30 180-8 224 47 10 13 54 124 98 246l79 222 709 0 709 0 47-24c74-37 219-83 322-101 122-22 606-32 802-16 374 29 658 102 933 238 124 62 271 155 361 230l61 51 6 100c19 278 103 497 247 643 88 89 173 136 278 152l70 11 41 131c116 369 159 673 168 1170 10 584-38 984-167 1397l-40 126-70 12c-193 33-348 175-441 405-56 139-89 302-89 445 0 43-3 47-58 91-290 235-644 384-1068 450-191 29-796 39-974 16-135-18-263-54-368-102l-75-35-701 0-701 0-79 223c-82 232-102 267-163 293-38 16-138 17-170 2zm-2023-820c332-15 1155-12 1835 6 308 8 563 12 566 8 4-4 10-21 13-38 7-30 6-31-92-77-518-244-1197-396-2112-474-295-25-1282-25-1579 0-231 20-473 46-479 51-6 7 49 110 93 171 160 226 416 335 855 365 142 10 539 5 900-12zm3304-263c525-111 899-887 934-1935 19-557-37-1023-172-1435-186-563-521-900-896-899-81 0-158 14-525 92-426 91-431 92-540 146-195 96-287 207-306 368-12 104-11 2985 1 3078 22 170 135 291 365 389 49 21 191 55 480 115 226 47 419 87 430 89 45 10 164 6 229-8zm-5570-485c112-43 197-156 216-291 12-83 13-2623 1-2706-23-158-125-273-270-304-44-9-100-1-542 75-272 47-514 91-539 98-266 68-487 424-594 958-56 280-70 548-40 800 56 484 207 878 414 1081 115 114 122 116 702 218 277 49 524 90 550 90 26 1 72-8 102-19zm2111-3440c1023-44 1884-213 2462-486l113-53-7-33c-3-18-8-35-10-37-2-3-236 1-521 7-993 24-1271 26-1708 11-541-18-1128-18-1249-1-377 56-588 181-734 437-32 55-41 79-32 84 12 8 246 32 491 51 356 28 815 36 1195 20z"/></g><text x="3250" y="8250" style="font-size:3000px;fill:#fff;text-anchor:middle">{text}</text></svg>',checker:'<svg xmlns="http://www.w3.org/2000/svg" width="calc(16 * {scale})" height="calc(16 * {scale})" viewBox="0 0 16 16"><pattern id="p" x="0" y="0" width="16" height="16" patternUnits="userSpaceOnUse"><rect fill="{color}" x="0" width="8" height="8" y="0"/><rect fill="{color}" x="8" width="8" height="8" y="8"/></pattern><rect x="0" y="0" width="16" height="16" fill="{secondaryColor}"/><rect x="0" y="0" width="16" height="16" fill="url(#p)"/></svg>',"checker-rotated":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(16 * {scale})" height="calc(16 * {scale})" viewBox="0 0 60 60"><rect width="60" height="60" fill="{secondaryColor}"/><rect width="42.42" height="42.42" transform="translate(30 0) rotate(45)" fill="{color}"/></svg>',"zig-zag":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(15 * {scale})" height="calc(15 * {scale})" viewBox="0 0 120 120"><rect x="0" y="0" width="120" height="120" fill="{secondaryColor}"/><polygon fill="{color}" points="120 120 60 120 90 90 120 60 120 0 120 0 60 60 0 0 0 60 30 90 60 120 120 120"/></svg>',"zig-zag-vertical":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(15 * {scale})" height="calc(15 * {scale})" viewBox="0 0 120 120"><rect x="0" y="0" width="120" height="120" fill="{secondaryColor}"/><polygon fill="{color}" points="120 0 120 60 90 30 60 0 0 0 0 0 60 60 0 120 60 120 90 90 120 60 120 0"/></svg>',"circles-spaced":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(20 * {scale})" height="calc(20 * {scale})" viewBox="0 0 20 20"><defs><pattern id="p" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" stroke="none" fill="{color}"/></pattern></defs><rect x="0" y="0" width="20" height="20" fill="{secondaryColor}"/><rect x="0" y="0" width="100" height="100" fill="url(#p)"/></svg>',circles:'<svg xmlns="http://www.w3.org/2000/svg" width="calc(7 * {scale})" height="calc(7 * {scale})" viewBox="0 0 20 20"><defs><pattern id="p" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="6" stroke="none" fill="{color}"/></pattern></defs><rect x="0" y="0" width="20" height="20" fill="{secondaryColor}"/><rect x="0" y="0" width="100" height="100" fill="url(#p)"/></svg>',"diagonal-lines-up":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(18 * {scale})" height="calc(18 * {scale})" viewBox="0 0 6 6"><rect x="0" y="0" width="6" height="6" fill="{secondaryColor}"/><g fill="{color}"><path d="M5 0h1L0 6V5zM6 5v1H5z"/></g></svg>',"diagonal-lines-down":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(18 * {scale})" height="calc(18 * {scale})" viewBox="0 0 6 6"><rect x="0" y="0" width="6" height="6" fill="{secondaryColor}"/><g transform="rotate(90 3 3)" fill="{color}"><path d="M5 0h1L0 6V5zM6 5v1H5z"/></g></svg>',"diagonal-stripes-up":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(20 * {scale})" height="calc(20 * {scale})" viewBox="0 0 40 40"><rect x="0" y="0" width="40" height="40" fill="{secondaryColor}"/><g fill="{color}"><path d="M0 40L40 0H20L0 20M40 40V20L20 40"/></g></svg>',"diagonal-stripes-down":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(20 * {scale})" height="calc(20 * {scale})" viewBox="0 0 40 40"><rect x="0" y="0" width="40" height="40" fill="{secondaryColor}"/><g transform="rotate(90 20 20)" fill="{color}"><path d="M0 40L40 0H20L0 20M40 40V20L20 40"/></g></svg>',"grid-lines":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(14 * {scale})" height="calc(14 * {scale})" viewBox="0 0 6 6"><rect x="0" y="0" width="6" height="6" fill="{secondaryColor}"/><g transform="rotate(45 3 3)" fill="{color}"><path d="M5 0h1L0 6V5zM6 5v1H5z"/></g><g fill="{color}" transform="rotate(-45 3 3)"><path d="M5 0h1L0 6V5zM6 5v1H5z"/></g></svg>',"rotated-grid-lines":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(18 * {scale})" height="calc(18 * {scale})" viewBox="0 0 6 6"><rect x="0" y="0" width="6" height="6" fill="{secondaryColor}"/><g transform="rotate(90 3 3)" fill="{color}"><path d="M5 0h1L0 6V5zM6 5v1H5z"/></g><g fill="{color}"><path d="M5 0h1L0 6V5zM6 5v1H5z"/></g></svg>',"rotated-grid-stripes":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(20 * {scale})" height="calc(20 * {scale})" viewBox="0 0 40 40"><rect x="0" y="0" width="40" height="40" fill="{secondaryColor}"/><g transform="rotate(90 20 20)" fill="{color}"><path d="M0 40L40 0H20L0 20M40 40V20L20 40"/></g><g fill="{color}"><path d="M0 40L40 0H20L0 20M40 40V20L20 40"/></g></svg>',"x-fill":'<svg xmlns="http://www.w3.org/2000/svg" width="calc(40 * {scale})" height="calc(40 * {scale})" viewBox="0 0 40 40"><rect x="0" y="0" width="45.3" height="45.3" fill="{secondaryColor}"/><g fill="{color}"><path d="M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z"/></g></svg>',dots:'<svg xmlns="http://www.w3.org/2000/svg" width="calc(13 * {scale})" height="calc(13 * {scale})" viewBox="0 0 20 20"><rect x="0" y="0" width="20" height="20" fill="{secondaryColor}"/><g fill="{color}"><circle cx="3" cy="3" r="3"/><circle cx="13" cy="13" r="3"/></g></svg>'},
704y5=4,Tu=function(r){var e=document.createElement("span");return e.innerText=r,e.classList.add("tooltiptext"),navigator.userAgent.indexOf("Edg")!=-1?e.classList.add("edge"):navigator.userAgent.indexOf("Chrome")!=-1?e.classList.add("chrome"):navigator.userAgent.indexOf("Safari")!=-1?e.classList.add("safari"):navigator.userAgent.indexOf("Firefox")!=-1&&e.classList.add("firefox"),navigator.userAgent.indexOf("Windows")!=-1?e.classList.add("win"):navigator.userAgent.indexOf("Macintosh")!=-1&&e.classList.add("mac"),e},Es=function(r,e,t){t===void 0&&(t=!1);function n(i){var o=e.getBoundingClientRect(),l=r.getBoundingClientRect(),a=o.x+l.width>window.innerWidth?window.innerWidth-l.width:o.x,l=o.y+o.height+l.height+y5>window.innerHeight?o.y-l.height-y5:o.y+o.height+y5;t&&e.parentElement&&(o=e.parentElement?e.parentElement.getBoundingClientRect():null,r.style.position="absolute",a-=o.x,l-=o.y),r.style.transform="translate(".concat(a,"px, ").concat(l,"px)"),r.style.display="block"}e.addEventListener("mouseover",n),e.addEventListener("touchend",n),e.addEventListener("focusin",n),e.addEventListener("keydown",function(i){i.key!=="Escape"&&i.key!=="Esc"||r.style.display!=="block"||(i.stopPropagation(),r.style.display="none")})},d7e=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),h7e=((function(r){r.TopLeft="top-left",r.TopRight="top-right",r.BottomLeft="bottom-left",r.BottomRight="bottom-right",r.NonFixed="non-fixed"})(xu=xu||{}),(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.position=xu.NonFixed,t}return d7e(e,r),e})(Ya)),f7e=(function(){function r(e){var t;e&&(t=void 0,3<=(t=typeof e=="string"?this.getRBGA(e):e).length)&&(this.r=t[0],this.g=t[1],this.b=t[2],3<t.length)&&(this.a=t[3])}return r.prototype.getLuminosity=function(){for(var e=[this.r,this.g,this.b],t=[],n=0;n<e.length;n++){var i=e[n]/255;t[n]=i<=.03928?i/12.92:Math.pow((.055+i)/1.055,2.4)}return .2126*t[0]+.7152*t[1]+.0722*t[2]},r.prototype.getRBGA=function(n){var t=document.createElement("canvas").getContext("2d"),n=(t.globalAlpha=1,t.fillStyle=n,t.fillRect(0,0,1,1),t.getImageData(0,0,1,1).data);return[n[0],n[1],n[2],n[3]]},r})(),rg=((function(r){r.light="light",r.dark="dark",r.auto="auto"})(Zc=Zc||{}),Map),Ob=(function(){function r(){this.listeners=new rg}return r.prototype._addEventListener=function(e,t,n){this.listeners.has(e)||this.listeners.set(e,new rg),this.listeners.get(e).set(t,n)},r.prototype._removeEventListener=function(e,t){this.listeners.has(e)&&this.listeners.get(e).delete(t)},r.prototype._invokeEvent=function(e,t){var n=this;this.listeners.has(e)&&this.listeners.get(e).forEach(function(i,o){i&&n._removeEventListener(e,o);try{o(t)}catch(a){console.error(a)}})},r})(),u0e=Object.freeze({__proto__:null,EventEmitter:Ob}),p7e=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),dg=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._onStyleChange=function(){t._map.getStyle().style.toLowerCase().startsWith("blank")?t._observer||(t._onBackgroun
vendor: 6,590 bytes, line 704
704dChange(),t._observer=new MutationObserver(t._onBackgroundChange),t._observer.observe(t._map.getMapContainer(),{attributes:!0,attributeFilter:["style"]})):(t._observer&&(t._observer.disconnect(),delete t._observer),t._map.styles.getThemeAsync(t._map.getStyle()).then(function(n){t._setTheme(n)}))},t._onBackgroundChange=function(){var n=new f7e(t._map.getMapContainer().style.backgroundColor).getLuminosity(),n=isNaN(n)||.5<n?Zc.light:Zc.dark;t._setTheme(n)},t}return p7e(e,r),e.prototype.onRemove=function(){this._container&&(this._container.remove(),delete this._container),this._map&&(this._map.events.remove("stylechanged",this._onStyleChange),delete this._map),this._observer&&(this._observer.disconnect(),delete this._observer),delete this._theme},e.prototype.buildContainer=function(t,n,i,o){return this._map=t,this._container=document.createElement(o||"div"),this._container.classList.add("azure-maps-control-container"),typeof i=="string"&&this._container.setAttribute("aria-label",i),n.toLowerCase()===Zc.auto?this._map&&this._map.events.add("stylechanged",this._onStyleChange):this._container.classList.add(n),this._container},e.prototype._setTheme=function(t){this._theme!==t&&(this._container.classList.remove(this._theme),this._container.classList.add(t),this._theme=t)},e.activateClickDelay=100,e})(Ob),g7e=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),m7e=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.rotationDegreesDelta=15,t.style=Zc.light,t.inverted=!1,t}return g7e(e,r),e})(Ya),y7e=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),d0e=(function(r){function e(t){var n=r.call(this)||this;return n.hasMouse=!1,n.hasFocus=!1,n.options=new m7e().merge(t),n}return y7e(e,r),e.prototype.onAdd=function(t,n){function i(p){p?(a.classList.add("in-use"),u.classList.remove("hidden-accessible-element")):(a.classList.remove("in-use"),u.classList.add("hidden-accessible-element"))}var o=this,a=this.buildContainer(t,this.options.style,"Rotation Control"),l=this.constructRotationButton(t),u=this.constructRotationGrid(t,n),h=Tu("Reset to Default Rotation");return a.addEventListener("mouseover",function(p){o.lastActiveTime=o.lastActiveTime||p.timeStamp,o.hasMouse=!0,i(!0)}),a.addEventListener("focusin",function(p){o.lastActiveTime=o.lastActiveTime||p.timeStamp,o.hasFocus=!0,i(!0)}),a.addEventListener("mouseleave",function(){o.hasMouse=!1,o.hasFocus||(delete o.lastActiveTime,i(!1))}),a.addEventListener("focusout",function(p){p.relatedTarget instanceof Node&&a.contains(p.relatedTarget)||(o.hasFocus=!1,o.hasMouse)||(delete o.lastActiveTime,i(!1))}),u.addEventListener("keydown",function(p){p.key!=="Escape"&&p.key!=="Esc"||(p.stopPropagation(),l.focus(),i(!1))}),l.addEventListener("keydown",function(p){p.key!=="Escape"&&p.key!=="Esc"||a==null||!a.classList.contains("in-use")||(h==null?void 0:h.style.display)!=="none"||(p.stopPropagation(),i(!1))}),n&&e.InvertOrderPositions.includes(n.position)?(a.appendChild(u),a.appendChild(l),a.appendChild(h),Es(h,l)):(a.appendChild(l),a.appendChild(h),Es(h,l),a.appendChild(u)),a},e.prototype.constructRotationGrid=function(a,n){var i=document.createElement("div"),o=(i.classList.add("sub-container"),i.classList.add("hidden-accessible-element"),this.constructRightRotationButton(a)),a=this.constructLeftRotationButton(a),l=Tu("Rotate Left"),u=Tu("Rotate Right");return n&&e.InvertOrderPositions.includes(n.position)?(i.appendChild(o),i.appendChild(u),Es(u,o),i.appendChild(a),i.appendChild(l),Es(l,a)):(i.appendChild(a),i.appendChild(l),Es(l,a),i.appendChild(o),i.appendChild(u),Es(u,o)),i},e.prototype.constructRotationButton=function(t){var n=this,i=document.createElement("button"),o=(i.classList.add("azure-maps-control-button"),i.classList.add("rotation"),i.setAttribute("aria-label","Reset to Default Rotation"),i.setAttribute("alt","Reset to Default Rotation"),i.setAttribute("type","button"),document.createElement("div"));return i.appendChild(o),i.addEventListener("click",function(a){a.timeStamp-n.lastActiveTime>dg.activateClickDelay&&t.setCamera({bearing:e.DefaultRotation},!0)}),t.events.add("rotate",function(a){o.style.transform="rotate(".concat(-a.map.getCamera().bearing,"deg)")}),i},e.prototype.constructRightRotationButton=function(t){var n=this,i=document.createElement("button");return i.classList.add("azure-maps-control-button"),i.classList.add("rotation-right"),i.setAttribute("aria-label","Rotate Right"),i.setAttribute("alt","Rotate Right"),i.setAttribute("type","button"),i.addEventListener("click",function(){t.setCamera({bearing:t.getCamera().bearing-(n.options.inverted?-1:1)*n.options.rotationDegreesDelta,duration:e.RotationDuration,type:"ease"},!0)}),i},e.prototype.constructLeftRotationButton=function(t){var n=this,i=document.createElement("button");return i.classList.add("azure-maps-control-button"),i.classList.add("rotation-left"),i.setAttribute("aria-label","Rotate Left"),i.setAttribute("alt","Rotate Left"),i.setAttribute("type","button"),i.addEventListener("click",function(){t.setCamera({bearing:t.getCamera().bearing+(n.options.inverted?-1:1)*n.options.rotationDegreesDelta,duration:e.RotationDuration,type:"ease"},!0)}),i},e.DefaultRotation=0,e.RotationDuration=100,e.InvertOrderPositions=[xu.BottomRight,xu.TopRight],e})(dg),v7e=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}
704r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),_7e=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.pitchDegreesDelta=10,t.style=Zc.light,t.inverted=!1,t}return v7e(e,r),e})(Ya),b7e=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),w7e=(function(r){function e(t){var n=r.call(this)||this;return n.container=null,n.map=null,n.pitchButton=null,n.pitchIncrementButton=null,n.pitchDecrementButton=null,n.hasMouse=!1,n.hasFocus=!1,n.pitchChanged=function(i){return n.updatePitchButtonsState()},n.updatePitchButtonsState=function(){var i=n.map.getCamera().pitch<=0,o=60<=n.map.getCamera().pitch;n.hasFocus&&n.pitchButton&&(i||o)&&n.pitchButton.focus(),n.options.inverted?(n.pitchIncrementButton&&n.pitchIncrementButton.disabled!=i&&(n.pitchIncrementButton.disabled=i),n.pitchDecrementButton&&n.pitchDecrementButton.disabled!=o&&(n.pitchDecrementButton.disabled=o)):(n.pitchIncrementButton&&n.pitchIncrementButton.disabled!=o&&(n.pitchIncrementButton.disabled=o),n.pitchDecrementButton&&n.pitchDecrementButton.disabled!=i&&(n.pitchDecrementButton.disabled=i))},n.options=new _7e().merge(t),n}return b7e(e,r),e.prototype.onAdd=function(t,n){function i(p){p?(a.classList.add("in-use"),u.classList.remove("hidden-accessible-element")):(a.classList.remove("in-use"),u.classList.add("hidden-accessible-element"))}var o=this,a=this.buildContainer(t,this.options.style,"Pitch Control"),l=this.constructPitchButton(t),u=this.constructPitchGrid(t,n),h=Tu("Reset to Default Pitch");return a.addEventListener("mouseover",function(p){o.lastActiveTime=o.lastActiveTime||p.timeStamp,o.hasMouse=!0,i(!0)}),a.addEventListener("focusin",function(p){o.lastActiveTime=o.lastActiveTime||p.timeStamp,o.hasFocus=!0,i(!0)}),a.addEventListener("mouseleave",function(){o.hasMouse=!1,o.hasFocus||(delete o.lastActiveTime,i(!1))}),a.addEventListener("focusout",function(p){p.relatedTarget instanceof Node&&a.contains(p.relatedTarget)||(o.hasFocus=!1,o.hasMouse)||(delete o.lastActiveTime,i(!1))}),u.addEventListener("keydown",function(p){p.key!=="Escape"&&p.key!=="Esc"||(p.stopPropagation(),l.focus(),i(!1))}),l.addEventListener("keydown",function(p){p.key!=="Escape"&&p.key!=="Esc"||a==null||!a.classList.contains("in-use")||(h==null?void 0:h.style.display)!=="none"||(p.stopPropagation(),i(!1))}),n&&e.INVERT_ORDER_POSITIONS.includes(n.position)?(a.appendChild(u),a.appendChild(l),a.appendChild(h),Es(h,a)):(a.appendChild(l),a.appendChild(h),Es(h,a),a.appendChild(u)),this.map=t,this.container=a,this.pitchButton=l,t.events.add("pitch",this.pitchChanged),this.updatePitchButtonsState(),a},e.prototype.onRemove=function(){this.container&&(this.container.remove(),this.container=null,this.pitchButton=null,this.pitchIncrementButton=null,this.pitchDecrementButton=null),this.map&&(this.map.events.remove("pitch",this.pitchChanged),this.map=null)},e.prototype.constructPitchGrid=function(o,n){var i=document.createElement("div"),o=(i.classList.add("sub-container"),i.classList.add("hidden-accessible-element"),this.pitchIncrementButton=this.constructPitchIncrementButton(o),this.pitchDecrementButton=this.constructPitchDecrementButton(o),Tu("Increase Pitch")),a=Tu("Decrease Pitch");return n&&e.INVERT_ORDER_POSITIONS.includes(n.position)?(i.appendChild(this.pitchDecrementButton),i.appendChild(a),Es(a,this.pitchDecrementButton),i.appendChild(this.pitchIncrementButton),i.appendChild(o),Es(o,this.pitchIncrementButton)):(i.appendChild(this.pitchIncrementButton),i.appendChild(o),Es(o,this.pitchIncrementButton),i.appendChild(this.pitchDecrementButton),i.appendChild(a),Es(a,this.pitchDecrementButton)),i},e.prototype.constructPitchButton=function(t){var n=this,i=document.createElement("button");return i.classList.add("azure-maps-control-button"),i.classList.add("pitch"),i.setAttribute("aria-label","Reset to Default Pitch"),i.setAttribute("alt","Reset to Default Pitch"),i.setAttribute("type","button"),i.addEventListener("click",function(){event.timeStamp-n.lastActiveTime>dg.activateClickDelay&&t.setCamera({pitch:e.DEFAULT_PITCH},!0)}),i},e.prototype.constructPitchDecrementButton=function(t){var n=this,i=document.createElement("button");return i.classList.add("azure-maps-control-button"),i.classList.add("pitch-down"),i.setAttribute("aria-label","Decrease Pitch"),i.setAttribute("alt","Decrease Pitch"),i.setAttribute("type","button"),i.addEventListener("click",function(){t.setCamera({pitch:t.getCamera().pitch-(n.options.inverted?-1:1)*n.options.pitchDegreesDelta,duration:e.PITCH_DURATION_MS,type:"ease"},!0)}),i},e.prototype.constructPitchIncrementButton=function(t){var n=this,i=document.createElement("button");return i.classList.add("azure-maps-control-button"),i.classList.add("pitch-up"),i.setAttribute("aria-label","Increase Pitch"),i.setAttribute("alt","Increase Pitch"),i.setAttribute("type","button"),i.addEventListener("click",function(){t.setCamera({pitch:t.getCamera().pitch+(n.options.inverted?-1:1)*n.options.pitchDegreesDelta,duration:e.PITCH_DURATION_MS,type:"ease"},!0)}),i},e.PITCH_DURATION_MS=100,e.DEFAULT_PITCH=0,e.INVERT_ORDER_POSITIONS=[xu.BottomRight,xu.TopRight],e})(dg),E7e=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}
704r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),C7e=(function(r){function e(t){var n=r.call(this)||this;return n.map=null,n.control=new Wh.ScaleControl({maxWidth:t==null?void 0:t.maxWidth,unit:t==null?void 0:t.unit}),n}return E7e(e,r),e.prototype.onAdd=function(t,n){this.map=t,(i=(i=this.map)==null?void 0:i._getMap())!=null&&i.addControl(this.control);var i=this.buildContainer(t,Zc.auto,"Scale Bar");return i.appendChild((t=this.control)==null?void 0:t._container),i},e.prototype.onRemove=function(){var t;r.prototype.onRemove.call(this),(t=(t=this.map)==null?void 0:t._getMap())!=null&&t.removeControl(this.control),this.map=null},e.prototype.setUnit=function(t){var n;(n=this.control)!=null&&n.setUnit(t)},e})(dg);function x7e(){this.__data__=[],this.size=0}var T7e=x7e;function S7e(r,e){return r===e||r!=r&&e!=e}var pL=S7e,I7e=pL;function A7e(r,e){for(var t=r.length;t--;)if(I7e(r[t][0],e))return t;return-1}var O7=A7e,R7e=O7,P7e=Array.prototype,k7e=P7e.splice;function O7e(t){var e=this.__data__,t=R7e(e,t);return!(t<0||(t==e.length-1?e.pop():k7e.call(e,t,1),--this.size,0))}var M7e=O7;function N7e(t){var e=this.__data__,t=M7e(e,t);return t<0?void 0:e[t][1]}var D7e=O7;function L7e(r){return-1<D7e(this.__data__,r)}var H7e=O7;function F7e(r,e){var t=this.__data__,n=H7e(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}var U7e=T7e,B7e=O7e,$7e=N7e,z7e=L7e,j7e=F7e;function CA(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}CA.prototype.clear=U7e,CA.prototype.delete=B7e,CA.prototype.get=$7e,CA.prototype.has=z7e,CA.prototype.set=j7e;var M7=CA,V7e=M7;function q7e(){this.__data__=new V7e,this.size=0}var G7e=q7e;function Y7e(t){var e=this.__data__,t=e.delete(t);return this.size=e.size,t}var W7e=Y7e;function K7e(r){return this.__data__.get(r)}var Z7e=K7e;function X7e(r){return this.__data__.has(r)}var Q7e=X7e,J7e=typeof K4=="object"&&K4&&K4.Object===Object&&K4,h0e=J7e,e9e=h0e,t9e=typeof self=="object"&&self&&self.Object===Object&&self,r9e=e9e||t9e||Function("return this")(),x_=r9e,n9e=x_.Symbol,uS=n9e,Lne=uS,f0e=Object.prototype,i9e=f0e.hasOwnProperty,o9e=f0e.toString,x2=Lne?Lne.toStringTag:void 0;function a9e(r){var e=i9e.call(r,x2),t=r[x2];try{var n=!(r[x2]=void 0)}catch{}var i=o9e.call(r);return n&&(e?r[x2]=t:delete r[x2]),i}var s9e=a9e,l9e=Object.prototype,c9e=l9e.toString;function u9e(r){return c9e.call(r)}var d9e=s9e,h9e=u9e,f9e="[object Null]",p9e="[object Undefined]",Hne=uS?uS.toStringTag:void 0;function g9e(r){return r==null?r===void 0?p9e:f9e:(Hne&&Hne in Object(r)?d9e:h9e)(r)}var gL=g9e;function m9e(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}var cC=m9e,y9e=gL,v9e=cC,_9e="[object AsyncFunction]",b9e="[object Function]",w9e="[object GeneratorFunction]",E9e="[object Proxy]";function C9e(r){return!!v9e(r)&&((r=y9e(r))==b9e||r==w9e||r==_9e||r==E9e)}var sX=C9e,x9e=x_["__core-js_shared__"],v5=x9e,Fne=(function(){var r=
704/[^.]+$/.exec(v5&&v5.keys&&v5.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function T9e(r){return!!Fne&&Fne in r}var S9e=T9e,I9e=Function.prototype,A9e=I9e.toString;function R9e(r){if(r!=null){try{return A9e.call(r)}catch{}try{return r+""}catch{}}return""}var p0e=R9e,P9e=sX,k9e=S9e,O9e=cC,M9e=p0e,N9e=/[\\^$.*+?()[\]{}|]/g,D9e=/^\[object .+?Constructor\]$/,L9e=Function.prototype,H9e=Object.prototype,F9e=L9e.toString,U9e=H9e.hasOwnProperty,B9e=RegExp("^"+F9e.call(U9e).replace(N9e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $9e(r){return!(!O9e(r)||k9e(r))&&(P9e(r)?B9e:D9e).test(M9e(r))}function z9e(r,e){return r==null?void 0:r[e]}var j9e=$9e,V9e=z9e;function q9e(r,e){return r=V9e(r,e),j9e(r)?r:void 0}var NS=q9e,G9e=NS(x_,"Map"),lX=G9e,Y9e=NS(Object,"create"),N7=Y9e,Une=N7;function W9e(){this.__data__=Une?Une(null):{},this.size=0}var K9e=W9e;function Z9e(r){return r=this.has(r)&&delete this.__data__[r],this.size-=r?1:0,r}var X9e=Z9e,Q9e=N7,J9e="__lodash_hash_undefined__",e$e=Object.prototype,t$e=e$e.hasOwnProperty;function r$e(r){var e,t=this.__data__;return Q9e?(e=t[r])===J9e?void 0:e:t$e.call(t,r)?t[r]:void 0}var n$e=r$e,i$e=N7,o$e=Object.prototype,a$e=o$e.hasOwnProperty;function s$e(r){var e=this.__data__;return i$e?e[r]!==void 0:a$e.call(e,r)}var l$e=N7,c$e="__lodash_hash_undefined__";function u$e(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=l$e&&e===void 0?c$e:e,this}var d$e=K9e,h$e=X9e,f$e=n$e,p$e=s$e,g$e=u$e;function xA(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}xA.prototype.clear=d$e,xA.prototype.delete=h$e,xA.prototype.get=f$e,xA.prototype.has=p$e,xA.prototype.set=g$e;var Bne=xA,m$e=M7,y$e=lX;function v$e(){this.size=0,this.__data__={hash:new Bne,map:new(y$e||m$e),string:new Bne}}function _$e(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}var b$e=_$e;function D7(r,e){return r=r.__data__,b$e(e)?r[typeof e=="string"?"string":"hash"]:r.map}var w$e=D7;function E$e(r){return r=w$e(this,r).delete(r),this.size-=r?1:0,r}var C$e=D7;function x$e(r){return C$e(this,r).get(r)}var T$e=D7;function S$e(r){return T$e(this,r).has(r)}var I$e=D7;function A$e(r,e){var t=I$e(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this}var R$e=v$e,P$e=E$e,k$e=x$e,O$e=S$e,M$e=A$e;function TA(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}TA.prototype.clear=R$e,TA.prototype.delete=P$e,TA.prototype.get=k$e,TA.prototype.has=O$e,TA.prototype.set=M$e;var g0e=TA,N$e=M7,D$e=lX,L$e=g0e,H$e=200;function F$e(r,e){var t=this.__data__;if(t instanceof N$e){var n=t.__data__;if(!D$e||n.length<H$e-1)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new L$e(n)}return t.set(r,e),this.size=t.size,this}var U$e=M7,B$e=G7e,$$e=W7e,z$e=Z7e,j$e=Q7e,V$e=F$e;function SA(r){r=this.__data__=new U$e(r),this.size=r.size}SA.prototype.clear=B$e,SA.prototype.delete=$$e,SA.prototype.get=z$e,SA.prototype.has=j$e,SA.prototype.set=V$e;var cX=SA;function q$e(r,e){for(var t=-1,n=r==null?0:r.length;++t<n&&e(r[t],t,r)!==!1;);return r}var G$e=q$e,Y$e=NS,W$e=(function(){try{var r=Y$e(Object,"defineProperty");return r({},"",{}),r}catch{}})(),m0e=W$e,$ne=m0e;function K$e(r,e,t){e=="__proto__"&&$ne?$ne(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}var uX=K$e,Z$e=uX,X$e=pL,Q$e=Object.prototype,J$e=Q$e.hasOwnProperty;function eze(r,e,t){var n=r[e];J$e.call(r,e)&&X$e(n,t)&&(t!==void 0||e in r)||Z$e(r,e,t)}var y0e=eze,tze=y0e,rze=uX;function nze(r,e,t,n){for(var i=!t,o=(t=t||{},-1),a=e.length;++o<a;){var l=e[o],u=n?n(t[l],r[l],l,t,r):void 0;u===void 0&&(u=r[l]),(i?rze:tze)(t,l,u)}return t}var mL=nze;function ize(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}var oze=ize;function aze(r){return r!=null&&typeof r=="object"}var Mb=aze,sze=gL,lze=Mb,cze="[object Arguments]";function uze(r){return lze(r)&&sze(r)==cze}var zne=uze,dze=Mb,v0e=Object.prototype,hze=v0e.hasOwnProperty,fze=v0e.propertyIsEnumerable,pze=zne((function(){return arguments})())?zne:function(r){return dze(r)&&hze.call(r,"callee")&&!fze.call(r,"callee")},_0e=pze,gze=Array.isArray,yL=gze,Z4={exports:{}};function mze(){return!1}var yze=mze,L7=(Z4.exports,(function(r,n){var n=n&&!n.nodeType&&n,t=n&&r&&!r.nodeType&&r,t=t&&t.exports===n?x_.Buffer:void 0,n=t?t.isBuffer:void 0;r.exports=n||yze})(Z4,Z4.exports),Z4.exports),vze=9007199254740991,_ze=/^(?:0|[1-9]\d*)$/;function bze(r,e){var t=typeof r;return!!(e=e??vze)&&(t=="number"||t!="symbol"&&_ze.test(r))&&-1<r&&r%1==0&&r<e}var b0e=bze,wze=9007199254740991;function Eze(r){return typeof r=="number"&&-1<r&&r%1==0&&r<=wze}var w0e=Eze,Cze=gL,xze=w0e,Tze=Mb,Sze="[object Arguments]",Ize="[object Array]",Aze="[object Boolean]",Rze="[object Date]",Pze="[object Error]",kze="[object Function]",Oze="[object Map]",Mze="[object Number]",Nze="[object Object]",Dze="[object RegExp]",Lze="[object Set]",Hze="[object String]",Fze="[object WeakMap]",Uze="[object ArrayBuffer]",Bze="[object DataView]",$ze="[object Float32Array]",zze="[object Float64Array
704]",jze="[object Int8Array]",Vze="[object Int16Array]",qze="[object Int32Array]",Gze="[object Uint8Array]",Yze="[object Uint8ClampedArray]",Wze="[object Uint16Array]",Kze="[object Uint32Array]",_s={};function Zze(r){return Tze(r)&&xze(r.length)&&!!_s[Cze(r)]}_s[$ze]=_s[zze]=_s[jze]=_s[Vze]=_s[qze]=_s[Gze]=_s[Yze]=_s[Wze]=_s[Kze]=!0,_s[Sze]=_s[Ize]=_s[Uze]=_s[Aze]=_s[Bze]=_s[Rze]=_s[Pze]=_s[kze]=_s[Oze]=_s[Mze]=_s[Nze]=_s[Dze]=_s[Lze]=_s[Hze]=_s[Fze]=!1;var Xze=Zze;function Qze(r){return function(e){return r(e)}}var dX=Qze,X4={exports:{}},UP=(X4.exports,(function(r,i){var i=i&&!i.nodeType&&i,t=i&&r&&!r.nodeType&&r,n=t&&t.exports===i&&h0e.process,i=(function(){try{var o=t&&t.require&&t.require("util").types;return o||n&&n.binding&&n.binding("util")}catch{}})();r.exports=i})(X4,X4.exports),X4.exports),Jze=Xze,e5e=dX,jne=UP&&UP.isTypedArray,t5e=jne?e5e(jne):Jze,hX=t5e,r5e=oze,n5e=_0e,i5e=yL,o5e=L7,a5e=b0e,s5e=hX,l5e=Object.prototype,c5e=l5e.hasOwnProperty;function u5e(r,e){var t,n=i5e(r),i=!n&&n5e(r),o=!n&&!i&&o5e(r),a=!n&&!i&&!o&&s5e(r),l=n||i||o||a,u=l?r5e(r.length,String):[],h=u.length;for(t in r)!e&&!c5e.call(r,t)||l&&(t=="length"||o&&(t=="offset"||t=="parent")||a&&(t=="buffer"||t=="byteLength"||t=="byteOffset")||a5e(t,h))||u.push(t);return u}var E0e=u5e,d5e=Object.prototype;function h5e(r){var e=r&&r.constructor;return r===(typeof e=="function"&&e.prototype||d5e)}var fX=h5e;function f5e(r,e){return function(t){return r(e(t))}}var C0e=f5e,p5e=C0e(Object.keys,Object),g5e=fX,m5e=p5e,y5e=Object.prototype,v5e=y5e.hasOwnProperty;function _5e(r){if(!g5e(r))return m5e(r);var e,t=[];for(e in Object(r))v5e.call(r,e)&&e!="constructor"&&t.push(e);return t}var b5e=sX,w5e=w0e;function E5e(r){return r!=null&&w5e(r.length)&&!b5e(r)}var H7=E5e,C5e=E0e,x5e=_5e,T5e=H7;function S5e(r){return(T5e(r)?C5e:x5e)(r)}var pX=S5e,I5e=mL,A5e=pX;function R5e(r,e){return r&&I5e(e,A5e(e),r)}var P5e=R5e;function k5e(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}var O5e=cC,M5e=fX,N5e=k5e,D5e=Object.prototype,L5e=D5e.hasOwnProperty;function H5e(r){if(!O5e(r))return N5e(r);var e,t=M5e(r),n=[];for(e in r)(e!="constructor"||!t&&L5e.call(r,e))&&n.push(e);return n}var F5e=E0e,U5e=H5e,B5e=H7;function $5e(r){return B5e(r)?F5e(r,!0):U5e(r)}var vL=$5e,z5e=mL,j5e=vL;function V5e(r,e){return r&&z5e(e,j5e(e),r)}var q5e=V5e,Q4={exports:{}},x0e=(Q4.exports,(function(r,t){var t=t&&!t.nodeType&&t,n=t&&r&&!r.nodeType&&r,n=n&&n.exports===t?x_.Buffer:void 0,i=n?n.allocUnsafe:void 0;r.exports=function(o,a){return a?o.slice():(a=o.length,a=i?i(a):new o.constructor(a),o.copy(a),a)}})(Q4,Q4.exports),Q4.exports);function G5e(r,e){var t=-1,n=r.length;for(e=e||Array(n);++t<n;)e[t]=r[t];return e}var T0e=G5e;function Y5e(r,e){for(var t=-1,n=r==null?0:r.length,i=0,o=[];++t<n;){var a=r[t];e(a,t,r)&&(o[i++]=a)}return o}function W5e(){return[]}var S0e=W5e,K5e=Y5e,Z5e=S0e,X5e=Object.prototype,Q5e=X5e.propertyIsEnumerable,Vne=Object.getOwnPropertySymbols,J5e=Vne?function(r){return r==null?[]:(r=Object(r),K5e(Vne(r),function(e){return Q5e.call(r,e)}))}:Z5e,gX=J5e,eje=mL,tje=gX;function rje(r,e){return eje(r,tje(r),e)}var nje=rje;function ije(r,e){for(var t=-1,n=e.length,i=r.length;++t<n;)r[i+t]=e[t];return r}var I0e=ije,oje=C0e(Object.getPrototypeOf,Object),mX=oje,aje=I0e,sje=mX,lje=gX,cje=S0e,uje=Object.getOwnPropertySymbols,A0e=uje?function(r){for(var e=[];r;)aje(e,lje(r)),r=sje(r);return e}:cje,dje=mL,hje=A0e;function fje(r,e){return dje(r,hje(r),e)}var pje=fje,gje=I0e,mje=yL;function R0e(r,e,t){return e=e(r),mje(r)?e:gje(e,t(r))}var yje=R0e,vje=gX,_je=pX;function bje(r){return yje(r,_je,vje)}var P0e=bje,wje=R0e,Eje=A0e,Cje=vL;function xje(r){return wje(r,Cje,Eje)}var Tje=xje,Sje=NS(x_,"DataView"),Ije=Sje,Aje=NS(x_,"Promise"),Rje=Aje,Pje=NS(x_,"Set"),kje=Pje,Oje=NS(x_,"WeakMap"),iG=Ije,oG=lX,aG=Rje,sG=kje,lG=Oje,k0e=gL,Ek=p0e,qne="[object Map]",Mje="[object Object]",Gne="[object Promise]",Yne="[object Set]",Wne="[object WeakMap]",Kne="[object DataView]",Nje=Ek(iG),Dje=Ek(oG),Lje=Ek(aG),Hje=Ek(sG),Fje=Ek(lG),ix=k0e,F7=ix=iG&&ix(new iG(new ArrayBuffer(1)))!=Kne||oG&&ix(new oG)!=qne||aG&&i
704x(aG.resolve())!=Gne||sG&&ix(new sG)!=Yne||lG&&ix(new lG)!=Wne?function(t){var e=k0e(t),t=e==Mje?t.constructor:void 0,t=t?Ek(t):"";if(t)switch(t){case Nje:return Kne;case Dje:return qne;case Lje:return Gne;case Hje:return Yne;case Fje:return Wne}return e}:ix,Uje=Object.prototype,Bje=Uje.hasOwnProperty;function $je(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&Bje.call(r,"index")&&(t.index=r.index,t.input=r.input),t}var zje=$je,jje=x_.Uint8Array,O0e=jje,Zne=O0e;function Vje(r){var e=new r.constructor(r.byteLength);return new Zne(e).set(new Zne(r)),e}var yX=Vje,qje=yX;function Gje(r,e){return e=e?qje(r.buffer):r.buffer,new r.constructor(e,r.byteOffset,r.byteLength)}var Yje=Gje,Wje=/\w*$/;function Kje(r){var e=new r.constructor(r.source,Wje.exec(r));return e.lastIndex=r.lastIndex,e}var Zje=Kje,Xne=uS?uS.prototype:void 0,Qne=Xne?Xne.valueOf:void 0;function Xje(r){return Qne?Object(Qne.call(r)):{}}var Qje=yX;function Jje(r,e){return e=e?Qje(r.buffer):r.buffer,new r.constructor(e,r.byteOffset,r.length)}var M0e=Jje,e3e=yX,t3e=Yje,r3e=Zje,n3e=Xje,i3e=M0e,o3e="[object Boolean]",a3e="[object Date]",s3e="[object Map]",l3e="[object Number]",c3e="[object RegExp]",u3e="[object Set]",d3e="[object String]",h3e="[object Symbol]",f3e="[object ArrayBuffer]",p3e="[object DataView]",g3e="[object Float32Array]",m3e="[object Float64Array]",y3e="[object Int8Array]",v3e="[object Int16Array]",_3e="[object Int32Array]",b3e="[object Uint8Array]",w3e="[object Uint8ClampedArray]",E3e="[object Uint16Array]",C3e="[object Uint32Array]";function x3e(r,e,t){var n=r.constructor;switch(e){case f3e:return e3e(r);case o3e:case a3e:return new n(+r);case p3e:return t3e(r,t);case g3e:case m3e:case y3e:case v3e:case _3e:case b3e:case w3e:case E3e:case C3e:return i3e(r,t);case s3e:return new n;case l3e:case d3e:return new n(r);case c3e:return r3e(r);case u3e:return new n;case h3e:return n3e(r)}}var T3e=x3e,S3e=cC,Jne=Object.create,I3e=(function(){function r(){}return function(e){return S3e(e)?Jne?Jne(e):(r.prototype=e,e=new r,r.prototype=void 0,e):{}}})(),A3e=I3e,R3e=mX,P3e=fX;function k3e(r){return typeof r.constructor!="function"||P3e(r)?{}:A3e(R3e(r))}var N0e=k3e,O3e=F7,M3e=Mb,N3e="[object Map]";function D3e(r){return M3e(r)&&O3e(r)==N3e}var L3e=D3e,H3e=dX,eie=UP&&UP.isMap,F3e=eie?H3e(eie):L3e,U3e=F3e,B3e=F7,$3e=Mb,z3e="[object Set]";function j3e(r){return $3e(r)&&B3e(r)==z3e}var V3e=j3e,q3e=dX,tie=UP&&UP.isSet,G3e=tie?q3e(tie):V3e,Y3e=cX,W3e=G$e,K3e=y0e,Z3e=P5e,X3e=q5e,Q3e=x0e,J3e=T0e,eVe=nje,tVe=pje,rVe=P0e,nVe=Tje,iVe=F7,oVe=zje,aVe=T3e,sVe=N0e,lVe=yL,cVe=L7,uVe=U3e,dVe=cC,hVe=G3e,fVe=pX,pVe=vL,gVe=1,mVe=2,yVe=4,D0e="[object Arguments]",vVe="[object Array]",_Ve="[object Boolean]",bVe="[object Date]",wVe="[object Error]",L0e="[object Function]",EVe="[object GeneratorFunction]",CVe="[object Map]",xVe="[object Number]",H0e="[object Object]",TVe="[object RegExp]",SVe="[object Set]",IVe="[object String]",AVe="[object Symbol]",RVe="[object WeakMap]",PVe="[object ArrayBuffer]",kVe="[object DataView]",OVe="[object Float32Array]",MVe="[object Float64Array]",NVe="[object Int8Array]",DVe="[object Int16Array]",LVe="[object Int32Array]",HVe="[object Uint8Array]",FVe="[object Uint8ClampedArray]",UVe="[object Uint16Array]",BVe="[object Uint32Array]",Ja={};function BH(r,e,t,n,i,o){var a,l=e&gVe,u=e&mVe,h=e&yVe;if((a=t?i?t(r,n,i,o):t(r):a)===void 0){if(!dVe(r))return r;if(n=lVe(r),n){if(a=oVe(r),!l)return J3e(r,a)}else{var p=iVe(r),m=p==L0e||p==EVe;if(cVe(r))return Q3e(r,l);if(p==H0e||p==D0e||m&&!i){if(a=u||m?{}:sVe(r),!l)return u?tVe(r,X3e(a,r)):eVe(r,Z3e(a,r))}else{if(!Ja[p])return i?r:{};a=aVe(r,p,l)}}if(m=(o=o||new Y3e).get(r),m)return m;o.set(r,a),hVe(r)?r.forEach(function(C){a.add(BH(C,e,t,C,r,o))}):uVe(r)&&r.forEach(function(C,T){a.set(T,BH(C,e,t,T,r,o))});var _=n?void 0:(h?u?nVe:rVe:u?pVe:fVe)(r);W3e(_||r,function(C,T){_&&(C=r[T=C]),K3e(a,T,BH(C,e,t,T,r,o))})}return a}Ja[D0e]=Ja[vVe]=Ja[PVe]=Ja[kVe]=Ja[_Ve]=Ja[bVe]=Ja[OVe]=Ja[MVe]=Ja[NVe]=Ja[DVe]=Ja[LVe]=Ja[CVe]=Ja[xVe]=Ja[H0e]=Ja[TVe]=Ja[SVe]=Ja[IVe]=Ja[AVe]=Ja[HVe]=Ja[FVe]=Ja[UVe]=Ja[BVe]=!0,Ja[wVe]=Ja[L0e]=Ja[RVe]=!1;var F0e=BH,$Ve=F0e,zVe=1,jVe=4;function VVe(r){return $Ve(r,zVe|jVe)}var ql=lC(VVe),qVe=uX,GVe=pL;function YVe(r,e,t){(t===void 0||GVe(r[e],t))&&(t!==void 0||e in r)||qVe(r,e,t)}var U0e=YVe;function WVe(r){return function(e,t,n){for(var i=-1,o=Object(e),a=n(e),l=a.length;l--;){var u=a[r?l:++i];if(t(o[u],u,o)===!1)break}return e}}var KVe=WVe(),ZVe=KVe,XVe=H7,QVe=Mb;function JVe(r){return QVe(r)&&XVe(r)}var eqe=JVe,tqe=gL,rqe=mX,nqe=Mb,iqe="[object Object]",oqe=Function.prototype,aqe=Object.prototype,B0e=oqe.toString,sqe=aqe.hasOwnProperty,lqe=B0e.call(Object);function cqe(r){return!(!nqe(r)||tqe(r)!=iqe)&&((r=rqe(r))===null||typeof(r=sqe.call(r,"constructor")&&r.constructor)=="function"&&r instanceof r&&B0e.call(r)==lqe)}var $0e=cqe;function z0e(r,e){if((e!=="constructor"||typeof r[e]!="function")&&e!="__proto__")return r[e]}var uqe=mL,dqe=vL;function hqe(r){return uqe(r,dqe(r))}var fqe=U0e,pqe=x0e,gqe=M0e,mqe=T0e,yqe=N0e,rie=_0e,nie=yL,vqe=eqe,_qe=L7,bqe=sX,wqe=cC,Eqe=$0e,Cqe=hX,iie=z0e,xqe=hqe;function Tqe(r,e,t,n,i,o,a){var l,u,h,p=iie(r,t),m=iie(e,t),_=a.get(m);_||((e=(_=o?o(p,m,t+"",r,e,a):void 0)===void 0)&&(u=!(l=nie(m))&&_qe(m),h=!l&&!u&&Cqe(m),_=m,l||u||h?_=nie(p)?p:vqe(p)?mqe(p):u?pqe(m,!(e=!1)):h?gqe(m,!(e=!1)):[]:Eqe(m)||rie(m)?rie(_=p)?_=xqe(p):wqe(p)&&!bqe(p)||(_=yqe(m)):e=!1),e&&(a.set(m,_),i(_,m,n,o,a),a.delete(m))),fqe(r,t,_)}
704var Sqe=cX,Iqe=U0e,Aqe=ZVe,Rqe=Tqe,Pqe=cC,kqe=vL,Oqe=z0e;function j0e(r,e,t,n,i){r!==e&&Aqe(e,function(o,a){var l;i=i||new Sqe,Pqe(o)?Rqe(r,e,a,t,j0e,n,i):(l=n?n(Oqe(r,a),o,a+"",r,e,i):void 0,Iqe(r,a,l=l===void 0?o:l))},kqe)}var Mqe=j0e;function Nqe(r){return r}var V0e=Nqe;function Dqe(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}var Lqe=Dqe,oie=Math.max;function Hqe(r,e,t){return e=oie(e===void 0?r.length-1:e,0),function(){for(var n=arguments,i=-1,o=oie(n.length-e,0),a=Array(o);++i<o;)a[i]=n[e+i];for(var i=-1,l=Array(e+1);++i<e;)l[i]=n[i];return l[e]=t(a),Lqe(r,this,l)}}var Fqe=Hqe;function Uqe(r){return function(){return r}}var Bqe=Uqe,aie=m0e,$qe=aie?function(r,e){return aie(r,"toString",{configurable:!0,enumerable:!1,value:Bqe(e),writable:!0})}:V0e,zqe=$qe,jqe=800,Vqe=16,qqe=Date.now;function Gqe(r){var e=0,t=0;return function(){var n=qqe(),i=Vqe-(n-t);if(t=n,0<i){if(++e>=jqe)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}var Yqe=Gqe(zqe),Wqe=V0e,Kqe=Fqe,Zqe=Yqe;function Xqe(r,e){return Zqe(Kqe(r,e,Wqe),r+"")}var Qqe=pL,Jqe=H7,eGe=b0e,tGe=cC;function rGe(r,e,t){var n;return!!tGe(t)&&!!((n=typeof e)=="number"?Jqe(t)&&eGe(e,t.length):n=="string"&&e in t)&&Qqe(t[e],r)}var nGe=Xqe,iGe=rGe;function oGe(r){return nGe(function(e,t){var n=-1,i=t.length,a=1<i?t[i-1]:void 0,o=2<i?t[2]:void 0,a=3<r.length&&typeof a=="function"?(i--,a):void 0;for(o&&iGe(t[0],t[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var l=t[n];l&&r(e,l,n,a)}return e})}var aGe=Mqe,sGe=oGe(function(r,e,t){aGe(r,e,t)}),q0e=lC(sGe),lGe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),cGe=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.layout="icons",t.mapStyles=["road","grayscale_light","grayscale_dark","night","road_shaded_relief"],t.style=Zc.light,t.autoSelectionMode=!0,t}return lGe(e,r),e})(Ya),uGe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),dGe=window&&window.__awaiter||function(r,e,t,n){return new(t=t||Promise)(function(i,o){function a(h){try{u(n.next(h))}catch(p){o(p)}}function l(h){try{u(n.throw(h))}catch(p){o(p)}}function u(h){var p;h.done?i(h.value):((p=h.value)instanceof t?p:new t(function(m){m(p)})).then(a,l)}u((n=n.apply(r,e||[])).next())})},hGe=window&&window.__generator||function(r,e){var t,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:l(0),throw:l(1),return:l(2)};return typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(u){return function(h){var p=[u,h];if(t)throw new TypeError("Generator is already executing.");for(;o=a&&p[a=0]?0:o;)try{if(t=1,n&&(i=2&p[0]?n.return:p[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,p[1])).done)return i;switch(n=0,(p=i?[2&p[0],i.value]:p)[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,n=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3]))o.label=p[1];else if(p[0]===6&&o.label<i[1])o.label=i[1],i=p;else{if(!(i&&o.label<i[2])){i[2]&&o.ops.pop(),o.trys.pop();continue}o.label=i[2],o.ops.push(p)}}p=e.call(r,o)}catch(m){p=[6,m],n=0}finally{t=i=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}},_5=window&&window.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n,i,o=t.call(r),a=[];try{for(;(e===void 0||0<e--)&&!(n=o.next()).done;)a.push(n.value)}catch(l){i={error:l}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},fGe=(function(r){function e(t){var n=r.call(this)||this;return n.styleOpsGrid=null,n.hasMouse=!1,n.hasFocus=!1,n.styleButtons=new rg,n.styleIcons=new rg,n.thumbnailCache={assumedConfiguration:void 0,response:new rg,blob:new rg},n.onStyleChange=function(){var i;n.options.autoSelectionMode&&(i=n.map.getStyle().style,n.setSelectedStyle(i))},n.onMapConfigurationChange=function(i){!n.styleOpsGrid||0<n.styleOpsGrid.children.length&&n.thumbnailCache.assumedConfiguration===i||(n.thumbnailCache.assumedConfiguration=i,Array.from(n.styleOpsGrid.children).forEac
vendor: 4,344 bytes, line 704
704h(function(o){return o.remove()}),n.styleButtons.clear(),n.populateOpsGridFromDefinitions(i))},n.mapToFriendlyStyleName=function(i,o){return o=o.configurations.find(function(a){return a.name===i}),(o==null?void 0:o.displayName)||i},n.options=new cGe().merge(ql(t)),n}return uGe(e,r),e.prototype.onAdd=function(h,n){function i(){a.classList.contains(e.Css.inUse)?p(!1):(p(!0),l.firstElementChild&&l.firstElementChild.focus())}var o=this,a=(this.map=h,this.buildContainer(h,this.options.style,"Map Style Control")),l=this.buildStyleOpsGrid(),u=(this.styleOpsGrid=l,this.buildCurrStyleBtn()),h=Tu("Select Style"),p=function(m){var _,C;m?(a.classList.add(e.Css.inUse),l.classList.remove("hidden-accessible-element"),o.options.layout==="list"&&(C=(m=o.map.getMapContainer()).getBoundingClientRect(),_=u.getBoundingClientRect(),C=Math.max(0,_.top-C.top),_=u.offsetHeight||_.height||0,m=m.clientHeight,m=(n==null?void 0:n.position)===xu.BottomLeft||(n==null?void 0:n.position)===xu.BottomRight?Math.max(0,C-8):Math.max(0,m-(C+_+8)),C=Math.max(100,Math.floor(m)),l.style.maxHeight="".concat(C,"px"))):(a.classList.remove(e.Css.inUse),l.classList.add("hidden-accessible-element"))};return l.classList.add(n&&n.position||"top-right"),a.addEventListener("mouseover",function(){o.hasMouse=!0,p(!0)}),a.addEventListener("focusin",function(){o.hasFocus=!0,p(!0)}),a.addEventListener("mouseleave",function(){o.hasMouse=!1,o.hasFocus||p(!1)}),a.addEventListener("focusout",function(m){m.target===u&&Array.from(l.children).forEach(function(_){return _.removeAttribute("tabIndex")}),m.relatedTarget instanceof Node&&a.contains(m.relatedTarget)||(o.hasFocus=!1,o.hasMouse)||p(!1)}),l.addEventListener("keydown",function(m){m.keyCode===27&&(m.stopPropagation(),u.focus(),Array.from(l.children).forEach(function(_){return _.setAttribute("tabIndex","-1")}),a.classList.contains(e.Css.inUse))&&p(!1)}),u.addEventListener("touchend",function(m){m.preventDefault(),i()}),u.addEventListener("click",function(m){i()}),n&&e.InvertOrderPositions.includes(n.position)?(a.appendChild(l),a.appendChild(u),a.appendChild(h),Es(h,u)):(a.appendChild(u),a.appendChild(h),Es(h,u),a.appendChild(l)),a},e.prototype.onRemove=function(){r.prototype.onRemove.call(this),this.styleOpsGrid=null,this.styleButtons.clear(),this.thumbnailCache.response.clear(),this.thumbnailCache.blob.clear(),this.thumbnailCache.assumedConfiguration=void 0,this.map.events.remove("stylechanged",this.onStyleChange),this.map.events.remove("mapconfigurationchanged",this.onMapConfigurationChange)},e.prototype.setSelectedStyle=function(t){var n,i,o=this;this.styleIcons.has(t)&&(n=this.currStyleImage,i=this.styleIcons.get(t),n.src!==i&&(n.src=i),Object.entries(this.styleButtons).forEach(function(l){var l=_5(l,2),u=l[0];return l[1].setAttribute("aria-current",u===t?"true":"false")}),this.map.styles.definitions().then(function(a){a=o.mapToFriendlyStyleName(t,a),n.alt!==a&&(n.alt=a),n.parentElement.lastChild instanceof Text&&(n.parentElement.lastChild.textContent=a)}))},e.prototype.disableStyle=function(t){t=this.styleButtons[t],t&&t.setAttribute("disabled","true")},e.prototype.enableStyle=function(t){t=this.styleButtons[t],t&&t.removeAttribute("disabled")},e.prototype.buildSelectStyleBtn=function(t,h,i){var o=this,a=document.createElement("button"),l=this.mapToFriendlyStyleName(t,h),u=(a.setAttribute("aria-label",l),a.setAttribute("type","button"),new Image),h=(i.then(function(p){var m;return o.thumbnailCache.blob.has(p.url)?o.thumbnailCache.blob.get(p.url):(m=p.clone().blob(),o.thumbnailCache.blob.set(p.url,m),m)}).then(function(p){p=URL.createObjectURL(p),u.src=p,t===o.map.getStyle().style&&(o.currStyleImage.src=p,o.currStyleImage.alt=l,o.currStyleImage.parentElement.lastChild.nodeType==Node.TEXT_NODE?o.currStyleImage.parentElement.lastChild.textContent=l:o.currStyleImage.parentElement.appendChild(document.createTextNode(l))),o.styleIcons.set(t,p)}),u.setAttribute("aria-hidden","true"),a.appendChild(u),this.options.layout==="icons"?a.classList.add(e.Css.button):(a.classList.add(e.Css.listButton),a.classList.add(e.Css.expanded),a.appendChild(document.createTextNode(l))),a.addEventListener("click",function(){o.hasMouse=!1,o.hasFocus=!1;var p=o.styleButtons[t];p&&!p.hasAttribute("disabled")&&(o._invokeEvent("styleselected",t),o.options.autoSelectionMode&&o.map.setStyle({style:t}
704),Object.entries(o.styleButtons).forEach(function(_){var _=_5(_,2),C=_[0];return _[1].setAttribute("aria-current",C===t?"true":"false")}))}),document.createElement("div"));return h.classList.add("selected-icon"),a.appendChild(h),a},e.prototype.buildCurrStyleBtn=function(){var t=document.createElement("button"),n=(this.options.layout==="icons"?t.classList.add(e.Css.button):t.classList.add(e.Css.listButton),t.classList.add(e.Css.currentStyle),t.setAttribute("aria-label","Select Style"),t.setAttribute("tabindex","-1"),this.currStyleImage=new Image,t.appendChild(this.currStyleImage),document.createElement("div"));return n.classList.add("icon"),t.appendChild(n),t},e.prototype.buildStyleOpsGrid=function(){var t=this,n=document.createElement("div"),i=this.options.layout==="icons"?"icons":"list";return n.classList.add(e.Css.styleOptions,i),i=="list"&&n.classList.add(e.Css.dropdown),n.setAttribute("aria-label","Style Options"),n.classList.add("hidden-accessible-element"),this.map.styles.definitions().then(function(o){return dGe(t,void 0,void 0,function(){return hGe(this,function(a){return this.onMapConfigurationChange(o),this.map.events.add("stylechanged",this.onStyleChange),[2]})})}),this.map.events.add("mapconfigurationchanged",this.onMapConfigurationChange),n},e.prototype.populateOpsGridFromDefinitions=function(t){var n,i,o=this;this.styleOpsGrid&&(n=t.configurations,(n=Array.isArray(this.options.mapStyles)?n.filter(function(a){return o.options.mapStyles.includes(a.name.split("_indoor")[0])}):n).forEach(function(a){var l,u={url:a.thumbnail},h=(a.thumbnail&&o.map.styles._transformStyleRequest(a.thumbnail,u),o.map.getServiceOptions()),h=(h.transformRequest&&q0e(u,h.transformRequest(u.url,"Thumbnail")),o.thumbnailCache.response.has(u.url)?l=Promise.resolve(o.thumbnailCache.response.get(u.url)):(l=fetch(u.url,{headers:u.headers}),o.thumbnailCache.response.set(u.url,l)),o.buildSelectStyleBtn(a.name,t,l));o.styleOpsGrid.appendChild(h),o.styleButtons[a.name]=h,o.options.layout==="icons"&&(u=Tu(o.mapToFriendlyStyleName(a.name,t)),o.styleOpsGrid.appendChild(u),Es(u,h))}),i=this.map.getStyle().style,Object.entries(this.styleButtons).forEach(function(l){var l=_5(l,2),u=l[0];return l[1].setAttribute("aria-current",u===i?"true":"false")}))},e.InvertOrderPositions=[xu.TopRight,xu.BottomRight],e.Css={button:"azure-maps-control-button",listButton:"azure-maps-control-list-button",expanded:"expanded",currentStyle:"curr-style",inUse:"in-use",styleOptions:"style-options",dropdown:"azure-maps-control-dropdown"},e})(dg),pGe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Y8=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.flow="none",t.incidents=!1,t}return pGe(e,r),e})(Ya),gGe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),mGe=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.isActive=!1,t.style=Zc.light,t}return gGe(e,r),e})(Y8),yGe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}
704r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),G0e=(function(r){function e(t){var n,i=this;return(i=r.call(this)||this).hasMouse=!1,i.hasFocus=!1,i.options=new Y8().merge({flow:"relative",incidents:!0}),i.style=Zc.light,i.container=null,i.trafficButton=null,i.map=null,t&&(i.initIsActive=(n=t.isActive)!=null&&n,i.options.flow=t.flow||"relative",i.options.incidents=(n=t.incidents)==null||n,i.style=t.style||Zc.light),i}return yGe(e,r),Object.defineProperty(e.prototype,"isActive",{get:function(){var t;return!!this.map&&((t=this.map.getTraffic()).flow!=="none"||t.incidents)},set:function(t){this.map&&this.map.setTraffic({flow:t?this.options.flow:"none",incidents:!!t&&this.options.incidents})},enumerable:!1,configurable:!0}),e.prototype.onAdd=function(n){(this.map=n).getTraffic(),this.initIsActive!==void 0&&(this.isActive=this.initIsActive),this.container=this.buildContainer(n,this.style,"Traffic Control"),this.container.style.flexDirection="column";var n=this.constructTrafficButton(n),i=(this.container.appendChild(n),Tu("Toggle Traffic Display"));return this.container.appendChild(i),Es(i,n),this.container},e.prototype.onRemove=function(){r.prototype.onRemove.call(this),this.map=null},e.prototype.getOptions=function(){return new mGe().merge({isActive:this.isActive,flow:this.options.flow,incidents:this.options.incidents,style:this.style})},e.prototype.updateButtonState=function(){this.trafficButton&&(this.isActive?(this.container.classList.add("in-use"),this.trafficButton.setAttribute("aria-description","Traffic is displayed")):(this.container.classList.remove("in-use"),this.trafficButton.removeAttribute("aria-description")),this.trafficButton.setAttribute("aria-pressed",this.isActive?"true":"false"))},e.prototype.constructTrafficButton=function(t){var n=this,i=document.createElement("button");return i.classList.add("azure-maps-control-button"),i.classList.add("traffic"),i.setAttribute("aria-label","Toggle Traffic Display"),i.setAttribute("alt","Toggle Traffic Display"),i.setAttribute("type","button"),this.trafficButton=i,this.updateButtonState(),i.addEventListener("click",function(){n.isActive=!n.isActive}),i},e})(dg),vGe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),sie=window&&window.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return{value:(r=r&&n>=r.length?void 0:r)&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},_Ge=(function(r){function e(){var t=r.call(this)||this;return t.table=["Fast",["green","yellow","red","dark-red"],"Slow"],t.map=null,t.syncHiddenState=null,t}return vGe(e,r),e.prototype.onAdd=function(i){this.map=i;var n=this.buildContainer(i,Zc.auto,"Traffic Legend"),i=this.buildTrafficLegendDiv(i);return n.setAttribute("role","definition"),n.appendChild(i),n},e.prototype.onRemove=function(){r.prototype.onRemove.call(this),this.syncHiddenState&&(this.map.events.remove("styledata",this.syncHiddenState),this.syncHiddenState=null),this.map=null},e.prototype.buildTrafficLegendDiv=function(t){var n,i,o,a,l=document.createElement("div"),u=(l.classList.add("traffic-legend","hidden"),l.setAttribute("alt","Traffic Legend"),document.createElement("table")),h=document.createElement("tr"),p=document.createElement("td"),m=(p.setAttribute("alt","Traffic"),p.appendChild(document.createTextNode("Traffic")),Tu("Traffic")),_=(p.classList.add("traffic-legend-title"),p.colSpan=6,h.appendChild(p),h.appendChild(m),Es(m,p),u.appendChild(h),document.createElement("tr"));try{for(var C=sie(this.table),T=C.next();!T.done;T=C.next()){var S=T.value,R=document.createElement("td");if(S==="Fast"||S==="Slow")R.setAttribute("alt",S),R.appendChild(document.createTextNode(S)),R.classList.add("traffic-legend-text");else{R.classList.add("traffic-legend-colors"),R.setAttribute("aria-label","Traffic Legend"),R.setAttribute("role","img");try{o=void 0;for(var O=sie(S),N=O.next();!N.done;N=O.next()){var H=N.value,F=document.createElement("div");F.classList.add(H),R.appendChild(F)}}catch(L){o={error:L}}finally{try{N&&!N.done&&(a=O.return)&&a.call(O)}finally{if(o)throw o.error}}}_.appendChild(R);var j=Tu(S instanceof Array?"Traffic Legend":S);_.appendChild(j),Es(j,R)}}catch(L){n={error:L}}finally{try{T&&!T.done&&(i=C.return)&&i.call(C)}finally{if(n)throw n.error}}return u.appendChild(_),l.appendChild(u),this.syncHiddenState=function(L){L.dataType==="style"&&((L=t.getTraffic()).flow&&L.flow!=="none"?l.classList.remove("hidden"):l.classList.add("hidden"))},this.syncHiddenState({dataType:"style"}),t.events.add("styledata",this.syncHiddenState),l},e})(dg),bGe="__lodash_hash_undefined__";function wGe(r){return this.__data__.set(r,bGe),this}function EGe(r){return this.__data__.has(r)}var CGe=g0e,xGe=wGe,TGe=EGe;function $H(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new CGe;++e<t;)this.add(r[e])}$H.prototype.add=$H.prototype.push=xGe,$H.prototype.has=TGe;function SGe(r,e){for(var t=-1,n=r==null?0:r.length;++t<n;)if(e(r[t],t,r))return!0;return!1}function IGe(r,e){return r.has(e)}var AGe=$H,RGe=SGe,PGe=IGe,kGe=1,OGe=2;function MGe(r,e,t,n,i,o){var a=t&kGe,l=r.length,u=e.length;if(l!=u&&!(a&&l<u))return!1;var u=o.get(r),h=o.get(e);if(u&&h)return u==e&&h==r;var p=-1,m=!0,_=t&OGe?new AGe:void 0;for(o.set(r,e),o.set(e,r);++p<l;){var C,T=r[p],S=e[p];if((C=n?a?n(S,T,p,e,r,o):n(T,S,p,r,e,o):C)!==void 0){if(C)continue;m=!1;break}if(_){if(!RGe(e,function(R,O){if(!PGe(_,O)&&(T===R||i(T,R,t,n,o)))return _.push(O)})){m=!1;break}}else if(T!==S&&!i(T,S,t,n,o)){m=!1;break}}return o.delete(r),o.delete(e),m}var Y0e=MGe;function NGe(r){var e=-1,t=Array(r.size);return r.forEach(function(n,i){t[++e]=[i,n]}),t}function DGe(r){var e=-1,t=Array(r.size);return r.forEach(function(n){t[++e]=n}),t}var lie=O0e,LGe=pL,HGe=Y0e,FGe=NGe,UGe=DGe,BGe=1,$Ge=2,zGe="[object Boolean]",jGe="[object Date]",VGe="[object Error]",qGe="[object Map]",GGe="[object Number]",YGe="[object RegExp]",WGe="[object Set]",KGe="[object String]",ZGe="[object Symbol]",XGe="[object ArrayBuffer]",QGe="[object DataView]",cie=uS?uS.prototype:void 0,b5=cie?cie.valueOf:void 0;function JGe(r,e,t,n,i,o,a){switch(t){case QGe:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case XGe:return!!(r.byteLength==e.byteLength&&o(new lie(r),new lie(e)));case zGe:case jGe:case GGe:return LGe(+r,+e);case VGe:return r.name==e.name&&r.message==e.message;case YGe:case KGe:return r==e+"";case qGe:var l=FGe;case WGe:if(l=l||UGe,r.size!=e.size&&!(n&BGe))return!1;var u=a.get(r);return u?u==e:(n|=$Ge,a.set(r,e),u=HGe(l(r),l(e),n,i,o,a),a.delete(r),u);
704case ZGe:if(b5)return b5.call(r)==b5.call(e)}return!1}var eYe=JGe,uie=P0e,tYe=1,rYe=Object.prototype,nYe=rYe.hasOwnProperty;function iYe(r,e,t,n,i,o){var a=t&tYe,l=uie(r),u=l.length;if(u!=uie(e).length&&!a)return!1;for(var h=u;h--;){var p=l[h];if(!(a?p in e:nYe.call(e,p)))return!1}var m=o.get(r),_=o.get(e);if(m&&_)return m==e&&_==r;for(var C=!0,T=(o.set(r,e),o.set(e,r),a);++h<u;){var S,R=r[p=l[h]],O=e[p];if(!((S=n?a?n(O,R,p,e,r,o):n(R,O,p,r,e,o):S)===void 0?R===O||i(R,O,t,n,o):S)){C=!1;break}T=T||p=="constructor"}return C&&!T&&(m=r.constructor)!=(_=e.constructor)&&"constructor"in r&&"constructor"in e&&!(typeof m=="function"&&m instanceof m&&typeof _=="function"&&_ instanceof _)&&(C=!1),o.delete(r),o.delete(e),C}var w5=cX,oYe=Y0e,aYe=eYe,sYe=iYe,die=F7,hie=yL,fie=L7,lYe=hX,cYe=1,pie="[object Arguments]",gie="[object Array]",J4="[object Object]",uYe=Object.prototype,mie=uYe.hasOwnProperty;function dYe(r,e,t,n,i,o){var a=hie(r),p=hie(e),l=a?gie:die(r),p=p?gie:die(e),u=(l=l==pie?J4:l)==J4,h=(p=p==pie?J4:p)==J4,p=l==p;if(p&&fie(r)){if(!fie(e))return!1;u=!(a=!0)}return p&&!u?(o=o||new w5,a||lYe(r)?oYe(r,e,t,n,i,o):aYe(r,e,l,t,n,i,o)):!(t&cYe)&&(a=u&&mie.call(r,"__wrapped__"),l=h&&mie.call(e,"__wrapped__"),a||l)?i(a?r.value():r,l?e.value():e,t,n,o=o||new w5):p&&(o=o||new w5,sYe(r,e,t,n,i,o))}var hYe=dYe,yie=Mb;function W0e(r,e,t,n,i){return r===e||(r==null||e==null||!yie(r)&&!yie(e)?r!=r&&e!=e:hYe(r,e,t,n,W0e,i))}var fYe=W0e;function pYe(r,e){return fYe(r,e)}var ts,Fo,Oa,Pa,Ho,jh=lC(pYe),hv=(function(){function r(e,t,n,i){this.type="Feature",this.type=r.TYPE,this.properties=t||{},this.id=n,this.geometry=e,this.bbox=i}return r.TYPE="Feature",r})(),gYe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Su=(function(r){function e(t,n){return r.call(this,t,n)||this}return gYe(e,r),e.fromData=function(t){var n=NaN,i=NaN,o=new Set(["y"]),a=new Set(["x"]);return Object.keys(t).forEach(function(l){var u=l.toLowerCase();isNaN(n)&&o.has(u)&&typeof t[l]=="number"?n=t[l]:isNaN(i)&&a.has(u)&&typeof t[l]=="number"&&(i=t[l])}),isNaN(n)||isNaN(i)?null:new e(n,i)},e.getX=function(t){return 0<t.length?t[0]:NaN},e.getY=function(t){return 1<t.length?t[1]:NaN},e.getDestination=function(t,n,i){return new e(e.getX(t)+i*Math.cos((n+270)*Math.PI/180),e.getY(t)+i*Math.sin((n+270)*Math.PI/180))},e.getDistance=function(o,n){var i=e.getX(o)-e.getX(n),o=e.getY(o)-e.getY(n);return Math.sqrt(i*i+o*o)},e.getHeading=function(o,n){var i=e.getX(n)-e.getX(o),o=e.getY(o)-e.getY(n);return 180*(2.5*Math.PI-Math.atan2(o,i))/Math.PI%360},e})(Array),fv=(function(){function r(e){this.type="Point",this.type=r.TYPE,this.coordinates=e}return r.TYPE="Point",r})(),oD=window&&window.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n,i,o=t.call(r),a=[];try{for(;(e===void 0||0<e--)&&!(n=o.next()).done;)a.push(n.value)}catch(l){i={error:l}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},mYe=window&&window.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return{value:(r=r&&n>=r.length?void 0:r)&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},W8=6378137,yYe=Math.PI/180,K0e=180/Math.PI,vie=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9],aD=85.0511;function id(r){return r*yYe}function sD(r){return r*K0e}function vX(r,e,t){return Math.min(Math.max(r,e),t)}function Z0e(i,e){var n=id(e[1]-i[1]),t=id(e[0]-i[0]),n=Math.pow(Math.sin(n/2),2)+Math.cos(id(i[1]))*Math.cos(id(e[1]))*Math.pow(Math.sin(t/2),2),i=2*Math.atan2(Math.sqrt(n),Math.sqrt(1-n));return Math.round(W8*i*100)/100}function cG(r){if(r)switch(r.toLowerCase()){case"feet":case"foot":case"ft":return Fo.feet;case"kilometers":case"kilometer":case"kilometres":case"kilometre":case"km":case"kms":return Fo.kilometers;case"miles":case"mile":case"mi":return Fo.miles;case"nauticalmiles":case"nauticalmile":case"nms":case"nm":return Fo.nauticalMiles;case"yards":case"yard":case"yds":case"yrd":case"yrds":return Fo.yards;default:return Fo.meters}return Fo.meters}function _ie(r){if(r)switch(r.toLowerCase()){case"milespersecondsquared":case"milepersecondsquared":case"mi/s^2":case"mi/s2":return Ho.milesPerSecondSquared;case"kilometerspersecondsquared":case"kilometrespersecondsquared":case"kilometerpersecondsquared":case"kilometrepersecondsquared":case"km/s^2":case"km/s2":return Ho.kilometersPerSecondSquared;case"knotspersecond":case"knotpersecond":case"knts/s":case"kn/s":case"kt/s":return Ho.knotsPerSecond;case"standardgravity":case"g":return Ho.standardGravity;case"feetpersecondsquared":case"footpersecondsquared":case"ft/s^2":case"ft/s2":return Ho.feetPerSecondSquared;
vendor: 10,231 bytes, line 704
704case"yardspersecondsquared":case"yardpersecondsquared":case"yds/s^2":case"yds/s2":case"yd/s^2":case"yd/s2":return Ho.yardsPerSecondSquared;case"milesperhoursecond":case"mileperhoursecond":case"milesperhourseconds":case"mileperhourseconds":case"mi/h/s":return Ho.milesPerHourSecond;case"kilometersperhoursecond":case"kilometrespersoursecond":case"kilometerperhoursecond":case"kilometrepersoursecond":case"kilometersperhourssecond":case"kilometrespersourssecond":case"kilometerperhourssecond":case"kilometrepersourssecond":case"kmhs":case"km/h/s":return Ho.kilometersPerHourSecond;default:return Ho.metersPerSecondSquared}return Ho.metersPerSecondSquared}function bie(r){if(r)switch(r){case"acres":case"ac":return ts.acres;case"hectares":case"ha":return ts.hectares;case"squareFeet":case"ft^2":case"ft2":return ts.squareFeet;case"squareYards":case"squareYard":case"yds^2":case"yds2":case"yd^2":case"yd2":return ts.squareYards;case"squareKilometers":case"squareKilometres":case"squareKilometer":case"squareKilometre":case"km^2":case"km2":return ts.squareKilometers;case"squareMiles":case"squareMile":case"mi^2":case"mi2":return ts.squareMiles;default:return ts.squareMeters}return ts.squareMeters}function wie(r){if(r)switch(r.toLowerCase()){case"feetpersecond":case"footsecond":case"ftps":case"ft/s":return Pa.feetPerSecond;case"milesperhour":case"mileperhour":case"mph":case"mi/hr":case"mi/h":return Pa.milesPerHour;case"knots":case"knot":case"knts":case"knt":case"kn":case"kt":return Pa.knots;case"mach":case"m":return Pa.mach;case"kilometersperhour":case"kilometresperhour":case"kmperhour":case"kmph":case"km/hr":case"km/h":return Pa.kilometersPerHour;default:return Pa.metersPerSecond}return Pa.metersPerSecond}function Eie(r){if(r)switch(r.toLowerCase()){case"milliseconds":case"ms":return Oa.ms;case"minutes":case"minute":case"mins":case"min":return Oa.minutes;case"hours":case"hour":case"hr":case"h":return Oa.hours;case"days":case"day":case"d":return Oa.days;default:return Oa.seconds}return Oa.seconds}function Cie(r){var e=0;if(r&&0<r.length)for(var e=Math.abs(xie(r[0])),t=1,n=r.length;t<n;t++)e-=Math.abs(xie(r[t]));return e}function xie(r){var e=0;if(3<=r.length){for(var t=void 0,n=void 0,i=0,o=r.length;i<o;i++)e+=(id(r[i===o-2?(t=o-2,n=o-1,0):i===o-1?(t=o-1,n=0,1):(n=(t=i)+1,i+2)][0])-id(r[t][0]))*Math.sin(id(r[n][1]));e=e*W8*W8/2}return e}function Tie(r,e,t){return(r[0]-t[0])*(e[1]-t[1])-(r[1]-t[1])*(e[0]-t[0])}function vYe(r,e,t){if(2<=t.length){for(var n,i,o,a=1/0,l=null,u=_L(t,22),h=0,p=u.length-1;h<p;h++)i=_Ye(e,u[h],u[h+1]),(n=Su.getDistance(e,i))<a&&(a=n,l=i);if(l)return o=EX([l],22)[0],new hv(new fv(o),{distance:np(r,o)})}else if(t.length===1)return new hv(new fv(t[0]),{distance:np(r,t[0])});return null}function _Ye(r,e,t){var n,i;return e[0]===t[0]&&e[1]===t[1]||(i=r[0]-e[0],r=r[1]-e[1],(r=((n=t[0]-e[0])*i+(i=t[1]-e[1])*r)/(n*n+i*i))<0)?e:1<r?t:[e[0]+n*r,e[1]+i*r]}function Vf(r,e){var t;return!isNaN(r)&&typeof e=="number"&&0<=e&&(t=void 0,t=e<vie.length?vie[e]:Math.pow(10,e),r=Math.round(r*t)/t),r}function bYe(i){var e=wl(qi.getWest(i)),t=wl(qi.getEast(i)),n=yc(qi.getNorth(i)),o=yc(qi.getSouth(i)),i=qi.getCenter(i),o=[[e,n],[e,o],[i[0],o],[t,o],[t,n],[i[0],n],[e,n]];return new B7([o])}function hb(r,e,t,n){switch(cG(e)){case Fo.meters:r/=1e3;break;case Fo.feet:r/=3280.8399;break;case Fo.miles:r/=.62137119;break;case Fo.yards:r/=1093.6133;break;case Fo.nauticalMiles:r/=.5399568;break;case Fo.kilometers:}switch(cG(t)){case Fo.meters:r*=1e3;break;case Fo.feet:r*=3280.8399;break;case Fo.miles:r*=.62137119;break;case Fo.yards:r*=1093.6133;break;case Fo.nauticalMiles:r*=.5399568;break;case Fo.kilometers:}return typeof n=="number"&&0<=n&&(e=Math.pow(10,n),r=Math.round(r*e)/e),r}function wYe(r,e,t,n){if(!r||r.length<=2)return u;typeof e!="number"&&(e=.5),(typeof t!="number"||t<=0)&&(t=15);var i,o,a,l=r.length,u=r.slice(0),h=(n?(od.areEqual(u[0],u[l-1])&&(u.pop(),l--),u.unshift(r[l-1]),u.push(r[0]),u.push(r[1]),l++):(u.unshift(r[0]),u.push(r[l-1])),[]);h.push([1,0,0,0]);for(var p=1;p<t-1;p++)h.push([2*(a=(i=p/t)*(o=i*i))-3*o+1,-2*a+3*o,a-2*o+i,a-o]);h.push([0,1,0,0]);for(var m,_,C,T,S,R,O=[],p=1;p<l;p++)for(m=e*(u[p+1][0]-u[p-1][0]),_=e*(u[p+1][1]-u[p-1][1]),C=e*(u[p+2][0]-u[p][0]),T=e*(u[p+2][1]-u[p][1]),i=0;i<t;i++)R=(S=h[i])[0]*u[p][0]+S[1]*u[p+1][0]+S[2]*m+S[3]*C,S=vX(S[0]*u[p][1]+S[1]*u[p+1][1]+S[2]*_+S[3]*T,-85,85),O.push([R,S]);return O}function Ck(l,u,o,a){a=a||"meters",l=Kh(l);var a=_X(a),i=id(l[1]),l=id(l[0]),u=id(u),o=o/a,a=Math.asin(Math.sin(i)*Math.cos(o)+Math.cos(i)*Math.sin(o)*Math.cos(u)),l=l+Math.atan2(Math.sin(u)*Math.sin(o)*Math.cos(i),Math.cos(o)-Math.sin(i)*Math.sin(a)),u=vX(yc(sD(a)),-85,85);return[wl(sD(l)),u]}function np(r,e,t){return r=Z0e(r=Kh(r),e=Kh(e)),t==="meters"?r:hb(r,"meters",t||"meters")}function _X(r){return r=cG(r),hb(W8,Fo.meters,r)}function X0e(r,e,t){for(var n=[],i=id(r[1]),o=id(r[0]),a=id(e[1]),l=id(e[0]),u=2*Math.asin(Math.sqrt(Math.pow(Math.sin((i-a)/2),2)+Math.cos(i)*Math.cos(a)*Math.pow(Math.sin((o-l)/2),2))),h=0;h<=t;h++){var _=h/t,C=Math.sin((1-_)*u)/Math.sin(u),_=Math.sin(_*u)/Math.sin(u),p=C*Math.cos(i)*Math.cos(o)+_*Math.cos(a)*Math.cos(l),m=C*Math.cos(i)*Math.sin(o)+_*Math.cos(a)*Math.sin(l),C=C*Math.sin(i)+_*Math.sin(a),_=Math.atan2(C,Math.sqrt(Math.pow(p,2)+Math.pow(m,2))),C=Math.atan2(m,p),_=vX(sD(_),-85,85),C=sD(C);n.push([C,_])}return n}function bX(r){return(Array.isArray(r)?r:r.coordinates).reduce(function(e,t){var n=0<e.length?e[e.length-1]:null;return n&&180<Math.abs(t[0]-n[0])?(n=n[0]<0?t[0]-360:t[0]+360,e.push([n,t[1]])):e.push(t),e},[])}function Q0e(r){for(var e,t,n,i,o,a=Array.isArray(r)?r:r.coordinates,l=[],u=[],h=0;h<a.length;h++)l.push(a[h]),h+1>=a.length||(e=(t=oD(a[h],2))[0],t=t[1],i=(o=oD(a[h+1],2))[0],o=o[1],180<Math.abs(i-e)&&(n=0<e?180:-180,i=Math.abs((0<e?i+360:i-360)-e),o=t+(o-t)*(Math.abs(n-e)/i),l.push([n,o]),u.push(l),l=[[-n,o]]));return u.push(l),u}function EYe(r,e){(!e||e<=0)&&(e=15),Array.isArray(r)?t=r:r.type&&r.type==="LineString"&&(t=r.coordinates);for(var t,n=t.length-1,i=[],o=0;o<n;o++)i=i.concat(X0e(t[o],t[o+1],e));return bX(i)}function CYe(r,e){(!e||e<=0)&&(e=15),Array.isArray(r)?t=r:r.type&&r.type==="LineString"&&(t=r.coordinates);for(var t,n=t.length-1,i=[],o=[],a=0;a<n;a++)for(var l,u,h,p,m,_=X0e(t[a],t[a+1],e),C=0;C<_.length;C++)i.push(_[C]),C+1>=_.length||(l=(u=oD(_[C],2))[0],u=u[1],p=(m=oD(_[C+1],2))[0],m=m[1],180<Math.abs(p-l)&&(h=0<l?180:-180,p=Math.abs((0<l?p+360:p-360)-l),m=u+(m-u)*(Math.abs(h-l)/p),i.push([h,m]),o.push(i),i=[[-h,m]]));return o.push(i),o}function RE(r,e){var t,n;return r=Kh(r),e=Kh(e),r&&2<=r.length&&e&&2<=e.length?(n=id(r[1]),t=id(e[1]),e=id(e[0]-r[0]),r=Math.sin(e)*Math.cos(t),n=Math.cos(n)*Math.sin(t)-Math.sin(n)*Math.cos(t)*Math.cos(e),(sD(Math.atan2(r,n))+360)%360):NaN}function wX(r,e){var t,n=0;Array.isArray(r)?t=r:r.type&&r.type==="LineString"&&(t=r.coordinates);for(var i=0,o=t.length-1;i<o;i++)n+=Z0e(t[i],t[i+1]);return hb(n,"meters",e||"meters")}function J0e(r,e,t){t=t||"meters";var n,i=0;if(Array.isArray(r)?n=r:r.type&&r.type==="LineString"&&(n=r.coordinates),2<=n.length){for(var o,a,l=n.length,u=1;u<l;u++){if(e<=i+(a=np(n[u-1],n[u],t)))return o=RE(n[u-1],n[u]),Ck(n[u-1],o,e-i,t);i+=a}return i<=e?n[l-1]:n[0]}return null}function e_e(r,e,t,n,i){n=n||"meters",i=i||0,r=Kh(r);for(var o=[],a=360/t,l=0;l<=t;l++)o.push(Ck(r,(l*a+i)%360,e,n));return o}function t_e(r,e,t,n,i){return bX(e_e(r,e,t,n,i))}function xYe(r,e,t,n,i){return Q0e(e_e(r,e,t,n,i))}function uG(r,e,t){t=t===void 0?.5:t;var n=np(r=Kh(r),e=Kh(e),"kilometers");return Ck(r,RE(r,e),n*t,"kilometers")}function yc(r){return 90<r?180<(r=(r+90)%360)?90-(r-180):r-90:r<-90?(r=(r-90)%360)<-180?-90-(r+180):r+90:r}function wl(r){return 180<r?(r+180)%360-180:r<-180?(r-180)%360+180:r}function r_e(r,e,t){if(t===0)return Object.assign({},r);e=Kh(e);for(var n,i,o=[],a=0,l=r.length;a<l;a++)n=np(e,r[a]),i=RE(e,r[a]),o.push(Ck(e,i+t,n));return o}function TYe(t,i){t=Kh(t),i=Kh(i);var t=oD(_L([t,i],21),2),i=t[0],t=t[1],n=t[0]-i[0],i=i[1]-t[1];return(2.5*Math.PI-Math.atan2(i,n))*K0e%360}function EX(r,e){for(var t,n,i=512*Math.pow(2,e),o=[],a=0,l=r.length;a<l;a++)t=r[a][0]/i-.5,n=.5-r[a][1]/i,o.push([360*t,90-360*Math.atan(Math.exp(2*-n*Math.PI))/Math.PI]);return o}function _L(r,e){for(var t,n,i=512*Math.pow(2,e),o=[],a=0,l=r.length;a<l;a++)n=Math.sin(r[a][1]*Math.PI/180),t=(r[a][0]+180)/360,n=.5-Math.log((1+n)/(1-n))/(4*Math.PI),o.push([Math.round(t*i),Math.round(n*i)]);return o}function U7(r,e,t,n){switch(_ie(e)){case Ho.kilometersPerHourSecond:r/=3.6;break;case Ho.milesPerHourSecond:r/=2.236936292054;break;case Ho.knotsPerSecond:r/=1.943844492441;break;case Ho.standardGravity:r/=.1019716212978;break;case Ho.kilometersPerSecondSquared:r/=.001;break;case Ho.milesPerSecondSquared:r/=.000621371192;break;case Ho.feetPerSecondSquared:r/=3.280839895012;break;case Ho.yardsPerSecondSquared:r/=1.093613298338;break;case Ho.metersPerSecondSquared:}switch(_ie(t)){case Ho.kilometersPerHourSecond:r*=3.6;break;case Ho.milesPerHourSecond:r*=2.236936292054;break;case Ho.knotsPerSecond:r*=1.943844492441;break;case Ho.standardGravity:r*=.1019716212978;break;case Ho.kilometersPerSecondSquared:r*=.001;break;case Ho.milesPerSecondSquared:r*=.000621371192;break;case Ho.feetPerSecondSquared:r*=3.280839895012;break;case Ho.yardsPerSecondSquared:r*=1.093613298338;break;case Ho.metersPerSecondSquared:}return Vf(r,n)}function n_e(r,e,t,n){switch(bie(e)){case ts.acres:r*=4046.8564224;break;case ts.hectares:r*=1e4;break;case ts.squareFeet:r*=.09290304;break;case ts.squareKilometers:r*=1e6;break;case ts.squareMiles:r*=259e4;break;case ts.squareYards:r*=.83612736;break;case ts.squareMeters:}switch(bie(t)){case ts.acres:r/=4046.8564224;break;case ts.hectares:r/=1e4;break;case ts.squareFeet:r/=.09290304;break;case ts.squareKilometers:r/=1e6;break;case ts.squareMiles:r/=259e4;break;case ts.squareYards:r/=.83612736;break;case ts.squareMeters:}return Vf(r,n)}function dS(r,e,t,n){switch(wie(e)){case Pa.feetPerSecond:r*=1.09728;break;case Pa.milesPerHour:r*=1.6093;break;case Pa.knots:r*=1.852;break;case Pa.metersPerSecond:r*=3.6;break;case Pa.mach:r*=1234.8;break;case Pa.kilometersPerHour:}switch(wie(t)){case Pa.feetPerSecond:r/=1.09728;break;
704case Pa.milesPerHour:r/=1.6093;break;case Pa.knots:r/=1.852;break;case Pa.metersPerSecond:r/=3.6;break;case Pa.mach:r/=1234.8;break;case Pa.kilometersPerHour:}return Vf(r,n)}function xk(r,e,t,n){switch(Eie(e)){case Oa.ms:r/=1e3;break;case Oa.hours:r*=3600;break;case Oa.minutes:r*=60;break;case Oa.days:r*=86400;break;case Oa.seconds:}switch(Eie(t)){case Oa.ms:r*=1e3;break;case Oa.hours:r/=3600;break;case Oa.minutes:r/=60;break;case Oa.days:r/=86400;break;case Oa.seconds:}return Vf(r,n)}function i_e(r,e,t,n,i,o,a,l){return e=hb(e,i,Fo.meters),i=xk(t,o,Oa.seconds),U7(2*(e-dS(r,n,Pa.metersPerSecond)*i)/(i*i),Ho.metersPerSecondSquared,a,l)}function o_e(r,e,t,n,i,o,a){return r=dS(r,n,Pa.metersPerSecond),U7((dS(e,n,Pa.metersPerSecond)-r)/xk(t,i,Oa.seconds),Ho.metersPerSecondSquared,o,a)}function SYe(r,e,t,n,i,o,a){if(typeof t=="string"&&r.type==="Feature"&&r.geometry.type==="Point"&&e.type==="Feature"&&e.geometry.type==="Point"&&(t=CX(r.properties[t],e.properties[t],Oa.seconds),!isNaN(t))){var l=0;if(n&&typeof n=="string"){var u=r.properties[n],n=e.properties[n];if(typeof u=="number"&&(l=u,typeof n=="number"))return o_e(u,n,t,i,Oa.seconds,o,a)}return i_e(l,np(r.geometry.coordinates,e.geometry.coordinates,Fo.meters),t,i,Fo.meters,Oa.seconds,o,a)}return NaN}function a_e(r,e,t){if(r){var n=0;switch((r=r instanceof rs?r.toJson():r).type){case"Feature":var i=r;if(i.geometry)return a_e(i.geometry,e,t);break;case"Polygon":i=r,i.coordinates&&(n=Cie(i.coordinates));break;case"MultiPolygon":var o=r;if(o.coordinates)for(var a=0,l=o.coordinates.length;a<l;a++)n+=Cie(o.coordinates[a])}return n_e(n,ts.squareMeters,e,t)}return 0}function IYe(r,e,t,n,i,o){return r=Kh(r),e=Kh(e),r&&e?(t=xk(t,n,Oa.seconds),dS(np(r,e,Fo.meters)/t,Pa.metersPerSecond,i,o)):0}function AYe(r,e,t,n,i){return typeof t=="string"&&r.type==="Feature"&&r.geometry.type==="Point"&&e.type==="Feature"&&e.geometry.type==="Point"&&(t=CX(r.properties[t],e.properties[t],Oa.seconds),!isNaN(t))?dS(np(r.geometry.coordinates,e.geometry.coordinates,Fo.meters)/t,Pa.metersPerSecond,n,i):NaN}function CX(r,e,t,n){return r=dG(r),e=dG(e),r!=null&&e!=null?xk(e.getTime()-r.getTime(),Oa.ms,t,n):NaN}function RYe(r,e,t,n,i,o,a,l){return e=xk(e,i,Oa.seconds),i=(t=dS(t,o,Pa.metersPerSecond))*e,typeof n=="number"&&(i+=.5*U7(n,a,Ho.metersPerSecondSquared)*e*e),hb(i,Fo.meters,r,l)}function dG(r){if(Object.prototype.toString.call(r)==="[object Date]")return r;if(typeof r=="string"){var e=Date.parse(r);if(!isNaN(e))return new Date(e);if(0<=r.indexOf("Date("))return e=(e=0)<(r=r.replace("/Date(","").replace(")/","")).indexOf("+")?parseInt(r.substr(0,r.indexOf("+")),10):0<r.indexOf("-")?parseInt(r.substr(0,r.indexOf("-")),10):parseInt(r,10),new Date(e)}else if(typeof r=="number")return new Date(r);return null}function PYe(r){var e,t,n=Bx(r).map(function(p){return[wl(p[0]),yc(p[1])]}),i=(n.sort(function(p,m){return p[0]===m[0]?p[1]-m[1]:p[0]-m[0]}),[]);try{for(var o=mYe(n),a=o.next();!a.done;a=o.next()){for(var l=a.value;2<=i.length&&Tie(i[i.length-2],i[i.length-1],l)<=0;)i.pop();i.push(l)}}catch(p){e={error:p}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}for(var u=[],h=n.length-1;0<=h;h--){for(;2<=u.length&&Tie(u[u.length-2],u[u.length-1],n[h])<=0;)u.pop();u.push(n[h])}return new B7([i.concat(u)])}function Bx(r){var e=[],t=null,n=null;if(Array.isArray(r)&&0<r.length)if(Array.isArray(r[0])&&typeof r[0][0]=="number")e=r;else for(var i=r.length,o=0;o<i;o++)e=e.concat(Bx(r[o]));else if(r.type)switch(r.type){case"Point":e=[r.coordinates];break;case"LineString":e=r.coordinates;break;case"Polygon":t=r.coordinates;break;case"MultiPoint":e=r.coordinates;break;case"MultiLineString":t=r.coordinates;break;case"MultiPolygon":n=r.coordinates;break;case"Feature":var a=r,e=rs._isCircle(a)?rs._getCirclePositions(a):Bx(a.geometry);break;case"FeatureCollection":e=Bx(r.features);break;case"GeometryCollection":e=Bx(r.geometries)}else if(r instanceof rs)return Bx(r.toJson());if(t)for(i=t.length,o=0;o<i;o++)e=e.concat(t[o]);else if(n)for(var l=n.length,o=0;o<l;o++)for(var u=n[o].length,h=0;h<u;h++)e=e.concat(n[o][h]);return e}function Kh(r){if(Array.isArray(r)&&typeof r[0]=="number")return r;
704if(r.type){if(r.type==="Point")return r.coordinates;if(r.type==="Feature"&&r.geometry.type==="Point")return r.geometry.coordinates}else if(r instanceof rs&&r.getType()==="Point")return r.getCoordinates();return null}function kYe(r,e){if(e<2)return[];for(var t=[],n=wX(r,Fo.meters)/(e-1),i=0;i<e;i++){var o=J0e(r,n*i,Fo.meters);o!=null&&t.push(o)}return t}function s_e(r,e,t){t=t||"meters";var n,i=0;if(Array.isArray(r)?n=r:r.type&&r.type==="LineString"&&(n=r.coordinates),2<=n.length){for(var o,a,l,u=n.length,h=1;h<u;h++){if(e<=i+(l=np(n[h-1],n[h],t)))return o=RE(n[h-1],n[h]),a=Ck(n[h-1],o,e-i,t),new hv(new fv(a),{heading:o});i+=l}return i<=e?new hv(new fv(n[u-1]),{heading:RE(n[u-2],n[u-1])}):new hv(new fv(n[0]),{heading:RE(n[0],n[1])})}return null}function OYe(r,e){if(e<=0)return[];for(var t=[],n=wX(r,Fo.meters)/(e-1),i=0;i<e;i++){var o=s_e(r,n*i,Fo.meters);o!=null&&t.push(o)}return t}function K8(r,e,t,n){var i=Kh(r),o=_L([i],22)[0],a=null,l=1/0;switch((e=e instanceof rs?e.toJson():e).type){case"Feature":return K8(r,e.geometry,t);case"Point":C=[[e.coordinates]];break;case"MultiPoint":for(var u,h=e.coordinates,p=0,m=h.length;p<m;p++)(u=np(i,h[p]))<l&&(l=u,a=new hv(new fv(h[p]),{distance:u}));break;case"LineString":C=[e.coordinates];break;case"Polygon":case"MultiLineString":C=e.coordinates;break;case"MultiPolygon":var _=e.coordinates;if(0<_.length)for(var C=_[0],p=1,m=_.length;p<m;p++)C=C.concat(_[p])}if(C)for(var T,p=0,m=C.length;p<m;p++)(T=vYe(i,o,C[p]))&&T.properties.distance<l&&(l=T.properties.distance,a=T);return a&&(a.properties.distance=hb(a.properties.distance,"meters",t,n)),a}(function(r){r.squareMeters="squareMeters",r.acres="acres",r.hectares="hectares",r.squareFeet="squareFeet",r.squareKilometers="squareKilometers",r.squareMiles="squareMiles",r.squareYards="squareYards"})(ts=ts||{}),(function(r){r.meters="meters",r.kilometers="kilometers",r.feet="feet",r.miles="miles",r.nauticalMiles="nauticalMiles",r.yards="yards"})(Fo=Fo||{}),(function(r){r.seconds="seconds",r.hours="hours",r.ms="ms",r.minutes="minutes",r.days="days"})(Oa=Oa||{}),(function(r){r.metersPerSecond="metersPerSecond",r.kilometersPerHour="kilometersPerHour",r.feetPerSecond="feetPerSecond",r.milesPerHour="milesPerHour",r.knots="knots",r.mach="mach"})(Pa=Pa||{}),(function(r){r.milesPerSecondSquared="milesPerSecondSquared",r.kilometersPerSecondSquared="kilometersPerSecondSquared",r.knotsPerSecond="knotsPerSecond",r.standardGravity="standardGravity",r.feetPerSecondSquared="feetPerSecondSquared",r.yardsPerSecondSquared="yardsPerSecondSquared",r.milesPerHourSecond="milesPerHourSecond",r.kilometersPerHourSecond="kilometersPerHourSecond",r.metersPerSecondSquared="metersPerSecondSquared"})(Ho=Ho||{});var MYe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),od=(function(r){function e(t,n,i){return i?r.call(this,t,n,i)||this:r.call(this,t,n)||this}return MYe(e,r),e.fromPosition=function(t){return t.length===2?new e(t[0],t[1]):2<t.length?new e(t[0],t[1],t[2]):null},e.areEqual=function(t,n,i){var o,a;return i===void 0&&(i=6),!!(t&&2<=t.length&&n&&2<=n.length)&&(i=Math.pow(10,i),a=yc(t[1]),o=yc(n[1]),t=wl(t[0]),n=wl(n[0]),Math.round((a-o)*i)/i==0)&&((a=Math.round((t-n)*i)/i)==0||a==360)},e.fromLatLng=function(t,n,i){var o,a,l,u,h,p,m=[];return typeof t=="number"?(typeof n=="number"&&m.push(n),m.push(t),typeof i=="number"&&m.push(i)):Array.isArray(t)?2<=t.length&&typeof t[0]=="number"&&typeof t[1]=="number"&&(3<=t.length&&typeof t[2]=="number"?m.push(t[1],t[0],t[2]):m.push(t[1],t[0])):typeof t=="object"&&(o=["lat","latitude","y"],a=["lng","longitude","lon","x"],l=["elv","elevation","alt","altitude","z"],p=h=u=NaN,Object.keys(t).forEach(function(_,C,T){var S=_.toLowerCase();isNaN(u)&&0<=o.indexOf(S)&&typeof t[_]=="number"?u=t[_]:isNaN(h)&&0<=a.indexOf(S)&&typeof t[_]=="number"?h=t[_]:isNaN(p)&&0<=l.indexOf(S)&&typeof t[_]=="number"&&(p=t[_])}),isNaN(u)||isNaN(h)||(m.push(h,u),isNaN(p))||m.push(p)),2<=m.length?m:null},e.fromLatLngs=function(t){var n=[];if(Array.isArray(t))for(var i=0,o=t.length;i<o;i++){var a=e.fromLatLng(t[i]);a&&n.push(a)}return n},e._getDimensions=function(t){for(var n=0;Array.isArray(t);)t=t[0],n++;return typeof t=="number"&&n--,n},e})(Array),B7=(function(){function r(e,t){this.type="Polygon",this.type=r.TYPE,od._getDimensions(e)===1?this.coordinates=[e]:this.coordinates=e,this.bbox=t}return r.TYPE="Polygon",r})(),NYe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}
704r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Sie=window&&window.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return{value:(r=r&&n>=r.length?void 0:r)&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},rs=(function(r){function e(t,n,i){var o,a,l=r.call(this)||this;return t.type==="Feature"?(a=ql((o=t).geometry),i=o.properties?ql(o.properties):{},n=o.id==null||o.id===""?cS():o.id):(a=ql(t),n=n==null||n===""?cS():n,i=i?ql(i):{}),i[e._shapeIdPropName]=n,l.data=new hv(a,i,n),l._handleCircle(),l}return NYe(e,r),e.prototype.addProperty=function(t,n){jh(this.data.properties[t],n)||(this.data.properties[t]=ql(n),t!=="subType"&&t!=="radius"||this._handleCircle(),this.dataSource&&this.dataSource._updateSource(),this._invokeEvent("shapechanged",this))},e.prototype.getBounds=function(){var t,n,i,o,a,l=this.getCoordinates(),u=this.getType();if(u==="Point")a=this.circlePolygon?(h=this.circlePolygon.geometry.coordinates,qi.fromPositions(h[0])):new qi(h=l,h);else if(u==="MultiPoint"||u==="LineString"){var h=l;a=qi.fromPositions(h)}else if(u==="Polygon")h=l,a=qi.fromPositions(h[0]);else if(u==="MultiLineString"){h=l;try{for(var p=Sie(h),m=p.next();!m.done;m=p.next()){var _=m.value;a=qi.merge(a,qi.fromPositions(_))}}catch(R){t={error:R}}finally{try{m&&!m.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}}else if(u==="MultiPolygon"){h=l;try{for(var C=Sie(h),T=C.next();!T.done;T=C.next()){var S=T.value;a=qi.merge(a,qi.fromPositions(S[0]))}}catch(R){i={error:R}}finally{try{T&&!T.done&&(o=C.return)&&o.call(C)}finally{if(i)throw i.error}}}return a},e.prototype.getCoordinates=function(){return ql(this.data.geometry.coordinates)},e.prototype.getCircleCoordinates=function(){return this.circlePolygon?ql(this.circlePolygon.geometry.coordinates[0]):null},e.prototype.getId=function(){return this.data.id},e.prototype.getProperties=function(){return ql(this.data.properties)},e.prototype.getType=function(){return this.data.geometry.type},e.prototype.isCircle=function(){return e._isCircle(this.data)},e.prototype.isRectangle=function(){return e._isRectangle(this.data)},e.prototype.setCoordinates=function(t){t=this.getType()==="Polygon"&&od._getDimensions(t)===1?[t]:t,jh(this.data.geometry.coordinates,t)||(this.data.geometry.coordinates=ql(t),this._handleCircle(),this.dataSource&&this.dataSource._updateSource(),this._invokeEvent("shapechanged",this))},e.prototype.setProperties=function(t){t[e._shapeIdPropName]=this.data.id,jh(this.data.properties,t)||(this.data.properties=ql(t),this._handleCircle(),this.dataSource&&this.dataSource._updateSource(),this._invokeEvent("shapechanged",this))},e.prototype.toJson=function(){return JSON.parse(JSON.stringify(this.data))},e.prototype._toJson=function(){return this.circlePolygon||this.data},e.prototype._setDataSource=function(t){t===void 0||t==null?delete this.dataSource:this.dataSource=t},e.prototype._handleCircle=function(){var t;this.isCircle()?(t=e._getCirclePositions(this.data),this.circlePolygon=new hv(new B7([t]),this.data.properties,this.data.id),this.data.properties.subType="Circle"):delete this.circlePolygon},e._isCircle=function(t){return t&&t.geometry&&t.geometry.type==="Point"&&t.geometry.coordinates&&t.properties&&typeof t.properties.subType=="string"&&t.properties.subType.toLowerCase()==="circle"&&typeof t.properties.radius=="number"},e._isRectangle=function(t){if(t.geometry.type==="Polygon"&&t.geometry.coordinates&&typeof t.properties.subType=="string"&&t.properties.subType.toLowerCase()==="rectangle"&&(t=t.geometry.coordinates,t.length===1)){if(t=t[0],t.length===5)return t[0][0]===t[4][0]&&t[0][1]===t[4][1];if(t.length===4)return!0}return!1},e._getCirclePositions=function(t){return t_e(t.geometry.coordinates,t.properties.radius,72,"meters")},e._shapeIdPropName="_azureMapsShapeId",e})(Ob),DYe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}
vendor: 17,746 bytes, line 704
704r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),LYe=window&&window.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return{value:(r=r&&n>=r.length?void 0:r)&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},qi=(function(r){function e(t,n){var i,o=this;return t&&n?o=(i=t)[2]&&n[2]?r.call(this,i[0],i[1],i[2]||0,n[0],n[1],n[2]||0)||this:r.call(this,i[0],i[1],n[0],n[1])||this:t&&(i=t)&&(i.length===4?o=r.call(this,i[0],i[1],i[2],i[3])||this:6<=i.length&&(o=r.call(this,i[0],i[1],i[2],i[3],i[4],i[5])||this)),o}return DYe(e,r),e.fromBoundingBox=function(a){var n=e.getWest(a),i=e.getSouth(a),o=e.getEast(a),a=e.getNorth(a);return new e([n,i,o,a])},e.fromDimensions=function(l,n,u){var o=l[0],l=l[1],a=Math.min(Math.max(l+u/2,-85.5),85.5),l=Math.min(Math.max(l-u/2,-85.5),85.5),u=wl(o+n/2);return new e([wl(o-n/2),l,u,a])},e.fromEdges=function(t,n,i,o){return new e([t,n,i,o])},e.containsPosition=function(l,a){var o=e.getCenter(l),i=Math.abs(o[1]-a[1]),o=Math.abs(o[0]-a[0]),a=(180<o&&(o=360-o),e.getHeight(l)),l=e.getWidth(l);return i<=a/2+1e-8&&o<=l/2+1e-8},e.containsBoundingBox=function(t,n){var i=t&&t.length===4,o=n&&n.length===4;return!(!i||!o)&&e.getWest(t)<e.getWest(n)&&e.getWest(n)<e.getEast(t)&&e.getWest(t)<e.getEast(n)&&e.getEast(n)<e.getEast(t)&&e.getSouth(t)<e.getSouth(n)&&e.getSouth(n)<e.getNorth(t)&&e.getSouth(t)<e.getNorth(n)&&e.getNorth(n)<e.getNorth(t)},e.crossesAntimeridian=function(t){return wl(e.getEast(t))-wl(e.getWest(t))<0||e.isBoundingBoxWithSixOrMoreElementsLargerThanGlobe(t)||e.isBoundingBoxWithLessThanSixElementsLargerThanGlobe(t)},e.getCenter=function(o){var i=wl(e.getEast(o)),n=wl(e.getWest(o)),n=(i<n&&(i+=360),wl((n+i)/2)),i=yc(e.getSouth(o)),o=yc(e.getNorth(o));return[n,yc((i+o)/2)]},e.getHeight=function(t){return t=yc(e.getNorth(t))-yc(e.getSouth(t)),isNaN(t)?0:t},e.getWidth=function(t){return t=wl(e.getEast(t))-wl(e.getWest(t)),isNaN(t)?0:t<0?t+360:t},e.getSouthWest=function(i){var n=this.getSouth(i),i=this.getWest(i);return isNaN(n)||isNaN(i)?null:[i,n]},e.getNorthEast=function(i){var n=this.getNorth(i),i=this.getEast(i);return isNaN(n)||isNaN(i)?null:[i,n]},e.getNorthWest=function(i){var n=this.getNorth(i),i=this.getWest(i);return isNaN(n)||isNaN(i)?null:[i,n]},e.getSouthEast=function(i){var n=this.getSouth(i),i=this.getEast(i);return isNaN(n)||isNaN(i)?null:[i,n]},e.getSouth=function(t){return t&&4<=t.length?Number(t[1]):NaN},e.getWest=function(t){return t&&4<=t.length?Number(t[0]):NaN},e.getNorth=function(t){if(t){if(t.length===4)return Number(t[3]);if(t.length===6)return Number(t[4])}return NaN},e.getEast=function(t){if(t){if(t.length===4)return Number(t[2]);if(t.length===6)return Number(t[3])}return NaN},e.intersect=function(l,h){var o=e.getCenter(l),a=e.getCenter(h),i=Math.abs(o[1]-a[1]),o=Math.abs(o[0]-a[0]),a=(180<o&&(o=360-o),e.getHeight(l)),l=e.getWidth(l),u=e.getHeight(h),h=e.getWidth(h);return i<=a/2+u/2&&o<=l/2+h/2},e.merge=function(t,n){var i=t&&t.length===4,o=n&&n.length===4;if(i&&!o)return t;if(o&&!i)return n;if(!i&&!o)return null;for(var i=Math.max(yc(e.getNorth(t)),yc(e.getNorth(n))),o=Math.min(yc(e.getSouth(t)),yc(e.getSouth(n))),a=[t,n],l=[],u=0,u=0;u<a.length;u++){var h=a[u],p=wl(e.getWest(h)),m=wl(e.getEast(h));e.crossesAntimeridian(h)?(l.push([p,180]),l.push([-180,m])):l.push([p,m])}l.sort(function(H,F){return H[0]===F[0]?H[1]-F[1]:H[0]-F[0]});var _=[],C=l[0];for(u=1;u<l.length;){var T=l[u];C[1]>=T[0]?C[1]=Math.max(C[1],T[1]):(_.push(C),C=T),u++}_.push(C);var S=_.length,R=_[0][0]+360-_[S-1][1],O=[_[S-1][1],_[0][0]];for(u=1;u<S;u++){var N=_[u][0]-_[u-1][1];R<N&&(R=N,O=[_[u-1][1],_[u][0]])}return new e([O[1],o],[O[0],i])},e.fromPositions=function(t){for(var n,i,o=NaN,a=NaN,l=NaN,u=NaN,h=t.length,p=new Array(h),m=0;h--;)(i=t[h])&&2<=i.length&&(n=yc(i[1]),o=isNaN(o)?n:Math.max(o,n),a=isNaN(a)?n:Math.min(a,n),p[m++]=wl(i[0]));if(m){p.length=m,p.sort(function(S,R){return S-R});for(var _=p[0]+360-p[m-1],C=0,h=1;h<m;h++){var T=p[h]-p[h-1];_<T&&(_=T,C=h)}l=p[C],u=p[(C||m)-1]}return isNaN(l)||isNaN(a)||isNaN(u)||isNaN(o)?null:new e([l,a,u,o])},e.fromLatLngs=function(t){return e.fromPositions(od.fromLatLngs(t))},e.fromData=function(t){var n,i,o=null;if(Array.isArray(t)&&0<t.length){try{for(var a=LYe(t),l=a.next();!l.done;l=a.next()){var u,h=l.value;(u=e.fromData(h))!=null&&(o=o===null?u:e.merge(o,u))}}catch(N){n={error:N}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o}if(t instanceof rs)return t.getBounds();if(t&&t.type){var p=t;if(p.bbox&&p.bbox.length===4)return p.bbox;switch(p.type){case"FeatureCollection":return e.fromData(p.features);case"Feature":return rs._isCircle(p)?e.fromPositions(rs._getCirclePositions(p)):e.fromData(p.geometry);case"GeometryCollection":return e.fromData(p.geometries);case"Point":var m=p.coordinates;if(m&&2<=m.length)return[m[0],m[1],m[0],m[1]];break;case"LineString":case"MultiPoint":return e.fromPositions(p.coordinates);case"Polygon":case"MultiLineString":var _=p.coordinates;if(_&&0<_.length){for(var C=0,T=_.length;C<T;C++)(u=e.fromPositions(_[C]))!=null&&(o=o===null?u:e.merge(o,u));if(o!=null)return o}break;case"MultiPolygon":var S=p.coordinates;if(S&&0<S.length){for(C=0,T=S.length;C<T;C++)for(var R=0,O=S[C].length;R<O;R++)(u=e.fromPositions(S[C][R]))!=null&&(o=o===null?u:e.merge(o,u));return o}}}return null},e.splitOnAntimeridian=function(t){var n,i,o,a,l,u,h=[];return e.isBoundingBoxWithSixOrMoreElementsLargerThanGlobe(t)?[[-180,t[1],t[2],180,t[4],t[5]]]:e.isBoundingBoxWithLessThanSixElementsLargerThanGlobe(t)?[[-180,t[1],180,t[3]]]:(e.crossesAntimeridian(t)?(u=n=void 0,i=wl(e.getWest(t)),o=wl(e.getEast(t)),a=yc(e.getNorth(t)),l=yc(e.getSouth(t)),u=6<=t.length?(n=[i,l,t[2],180,a,t[5]],[-180,l,t[2],o,a,t[5]]):(n=[i,l,180,a],[-180,l,o,a]),h.push(n,u)):h.push(t),h)},e.isBoundingBoxWithSixOrMoreElementsLargerThanGlobe=function(t){return 6<=t.length&&360<t[3]-t[0]},e.isBoundingBoxWithLessThanSixElementsLargerThanGlobe=function(t){return t.length<6&&360<t[2]-t[0]},e})(Array),rT=(function(){function r(e,t){this.type="FeatureCollection",this.type=r.TYPE,this.features=e,this.bbox=t}return r.TYPE="FeatureCollection",r})(),HYe=(function(){function r(e){this.type="GeometryCollection",this.type=r.TYPE,this.geometries=e}return r.TYPE="GeometryCollection",r})(),FYe=(function(){function r(e,t){this.type="LineString",this.type=r.TYPE,this.coordinates=e,this.bbox=t}return r.TYPE="LineString",r})(),UYe=(function(){function r(e,t){this.type="MultiLineString",this.type=r.TYPE,this.coordinates=e,this.bbox=t}return r.TYPE="MultiLineString",r})(),BYe=(function(){function r(e,t){this.type="MultiPoint",this.type=r.TYPE,this.coordinates=e,this.bbox=t}return r.TYPE="MultiPoint",r})(),$Ye=(function(){function r(e,t){this.type="MultiPolygon",this.type=r.TYPE,this.coordinates=e,this.bbox=t}return r.TYPE="MultiPolygon",r})(),zYe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),jYe=(function(r){function e(t,n,i){return r.call(this,t,n,i||0)||this}return zYe(e,r),e.fromPosition=function(t){return 2<=t.length?new e((180+t[0])/360,e._latToMercatorY(t[1]),3<=t.length?e._altitudeToMercatorZ(t[2],t[1]):0):[0,0,0]},e.fromPositions=function(t){for(var n=[],i=0,o=t.length;i<o;i++)n.push(this.fromPosition(t[i]));return n},e.toFloat32Array=function(t){for(var n=new Float32Array(3*t.length),i=0,o=t.length;i<o;i++){var a=3*i,l=t[i];n[a]=(180+l[0])/360,n[1+a]=e._latToMercatorY(l[1]),n[2+a]=3<=l.length?e._altitudeToMercatorZ(l[2],l[1]):0}return n},e.toPosition=function(t){var n;return 2<=t.length?(n=360/Math.PI*Math.atan(Math.exp((180-360*t[1])*Math.PI/180))-90,new od(360*t[0]-180,n,3<=t.length?e._mercatorZToAltitude(t[2],t[1]):0)):[0,0,0]},e.toPositions=function(t){for(var n=[],i=0,o=t.length;i<o;i++)n.push(this.toPosition(t[i]));return n},e.mercatorScale=function(t){return 1/Math.cos(t*Math.PI/180)},e.meterInMercatorUnits=function(t){return 1/e.earthCircumference*e.mercatorScale(e._latToMercatorY(t))},e._circumferenceAtLatitude=function(t){return e.earthCircumference*Math.cos(t*Math.PI/180)},e._altitudeToMercatorZ=function(t,n){return t/e._circumferenceAtLatitude(n)},e._mercatorZToAltitude=function(t,n){return t*e._circumferenceAtLatitude(e._latToMercatorY(n))},e._latToMercatorY=function(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360},e.earthCircumference=2*Math.PI*_X(),e})(Array),l_e=Object.freeze({__proto__:null,BoundingBox:qi,Feature:hv,FeatureCollection:rT,GeometryCollection:HYe,LineString:FYe,MercatorPoint:jYe,MultiLineString:UYe,MultiPoint:BYe,MultiPolygon:$Ye,Point:fv,Polygon:B7,Position:od});function hG(r,e){return r*r+e*e}function VYe(r,e){return hG(r[0]-e[0],r[1]-e[1])}function qYe(r,o,t){var n,i=o[0],o=o[1],a=t[0]-i,l=t[1]-o;return a==0&&l==0||(1<(n=((r[0]-i)*a+(r[1]-o)*l)/hG(a,l))?(i=t[0],o=t[1]):0<n&&(i+=a*n,o+=l*n)),hG(r[0]-i,r[1]-o)}function GYe(r,e){for(var t,n=r[0],i=[n],o=1,a=r.length;o<a;o++)VYe(t=r[o],n)>e&&(i.push(t),n=t);return n!==t&&i.push(t),i}function fG(r,e,t,n,i){for(var o,a=n,l=e+1;l<t;l++){var u=qYe(r[l],r[e],r[t]);a<u&&(o=l,a=u)}n<a&&(1<o-e&&fG(r,e,o,n,i),i.push(r[o]),1<t-o)&&fG(r,o,t,n,i)}function YYe(r,e){var t=r.length-1,n=[r[0]];return fG(r,0,t,e,n),n.push(r[t]),n}function WYe(r,e,t){return e===void 0&&(e=1),t===void 0&&(t=!1),r.length<=2||(e=e*e,r=YYe(r=t?r:GYe(r,e),e)),r}var KYe=WYe;function ZYe(r,e){return KYe(r,e,!0)}var XYe=window&&window.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return{value:(r=r&&n>=r.length?void 0:r)&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},zH=(function(){function r(e,t){this.M=r._calculateAffineTransform(e,t),this.inverseM=r._calculateAffineTransform(t,e)}return r.prototype.toTarget=function(e,t){return this.transformArray(e,this.M,t)},r.prototype.toSource=function(e,t){return this.transformArray(e,this.inverseM,t)},r.prototype.transformArray=function(e,t,n){var i,o;if(e&&Array.isArray(e)&&Array.isArray(e[0])){var a=[];try{for(var l=XYe(e),u=l.next();!u.done;u=l.next()){var h=u.value;a.push(this.transform(h,t,n))}}catch(p){i={error:p}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}return a}return null},r.prototype.transform=function(o,t,n){var i=o[0]*t[0][3]+o[1]*t[1][3]+t[2][3],o=o[0]*t[0][4]+o[1]*t[1][4]+t[2][4];return typeof n=="number"&&0<=n?[Vf(i,n),Vf(o,n)]:[Vf(i,6),Vf(o,6)]},r._calculateAffineTransform=function(e,t){if(e.length!==t.length||e.length<1)throw new Error("Error: source and target arrays must have the same length.");var n=Math.min(e[0].length,t[0].length),i=n+1;if(e.length<n)throw new Error("Erorr: At least "+n+" reference points required.");for(var o=[],a=[],l=0;l<i;l++){a[l]=[];for(var u=0;u<i;u++){u<n&&(o[u]=0);for(var h=a[l][u]=0;h<e.length;h++)u<n&&(o[u]+=l<n?e[h][l]*t[h][u]:t[h][u]),a[l][u]+=n<=l&&n<=u?1:n<=l?e[h][u]:n<=u?e[h][l]:e[h][l]*e[h][u]}a[l]=a[l].concat(o)}if(this._gaussJordanElimination(a))return a;throw new Error("Error: Singular matrix. Points are likely coplanar.")},r._gaussJordanElimination=function(e){for(var t,n=e.length,i=2*n-1,o=0;o<n;o++){for(var a=o,l=o+1;l<n;l++)Math.abs(e[l][o])>Math.abs(e[a][o])&&(a=l);if(t=e[a],e[a]=e[o],e[o]=t,Math.abs(e[o][o])<=1e-12)return!1;for(var u=o+1;u<n;u++)for(var h=e[u][o]/e[o][o],p=o;p<i;p++)e[u][p]-=e[o][p]*h}for(o=n-1;-1<o;o--){for(h=e[o][o],l=0;l<o;l++)for(var m=i-1;o-1<m;m--)e[l][m]-=e[o][m]*e[l][o]/h;e[o][o]/=h;for(var _=n;_<i;_++)e[o][_]/=h}return!0},r})(),c_e=Object.freeze({__proto__:null,get AccelerationUnits(){return Ho},AffineTransform:zH,get AreaUnits(){return ts},get DistanceUnits(){return Fo},get SpeedUnits(){return Pa},get TimeUnits(){return Oa},WEBMERCATOR_MAXLAT:aD,_precision:Vf,boundingBoxToPolygon:bYe,convertAcceleration:U7,convertArea:n_e,convertDistance:hb,convertSpeed:dS,convertTimespan:xk,getAcceleration:i_e,getAccelerationFromFeatures:SYe,getAccelerationFromSpeeds:o_e,getArea:a_e,getCardinalSpline:wYe,getClosestPointOnGeometry:K8,getConvexHull:PYe,getDestination:Ck,getDistanceTo:np,getEarthRadius:_X,getGeodesicPath:EYe,getGeodesicPaths:CYe,getHeading:RE,getLengthOfPath:wX,getPathDenormalizedAtAntimerian:bX,getPathSplitByAntimeridian:Q0e,getPixelHeading:TYe,getPointWithHeadingAlongPath:s_e,getPointsWithHeadingsAlongPath:OYe,getPosition:Kh,getPositionAlongPath:J0e,getPositions:Bx,getPositionsAlongPath:kYe,getRegularPolygonPath:t_e,getRegularPolygonPaths:xYe,getSpeed:IYe,getSpeedFromFeatures:AYe,getTimespan:CX,getTravelDistance:RYe,interpolate:uG,mercatorPixelsToPositions:EX,mercatorPositionsToPixels:_L,normalizeLatitude:yc,normalizeLongitude:wl,parseTimestamp:dG,rotatePositions:r_e,simplify:ZYe}),QYe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),JYe=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.zoomDelta=1,t.style=Zc.light,t}return QYe(e,r),e})(Ya),eWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),tWe=(function(r){function e(t){var n=r.call(this)||this;return n.container=null,n.zoomInButton=null,n.zoomOutButton=null,n.zoomChanged=function(i){return n.updateZoomButtonsState()},n.minZoomChanged=function(i){return n.updateZoomButtonsState()},n.maxZoomChanged=function(i){return n.updateZoomButtonsState()},n.options=new JYe().merge(t),n}return eWe(e,r),e.prototype.onAdd=function(t){this.container=this.buildContainer(t,this.options.style,"Zoom Control"),this.container.style.flexDirection="column",this.zoomInButton=this.constructZoomInButton(t),this.zoomOutButton=this.constructZoomOutButton(t);var n=Tu("Zoom In"),i=Tu("Zoom Out");return this.container.appendChild(this.zoomInButton),this.container.appendChild(n),this.container.appendChild(this.zoomOutButton),this.container.appendChild(i),Es(n,this.zoomInButton),Es(i,this.zoomOutButton),t.events.add("zoom",this.zoomChanged),t.events.add("minzoomchanged",this.minZoomChanged),t.events.add("maxzoomchanged",this.maxZoomChanged),this.map=t,this.container},e.prototype.onRemove=function(){r.prototype.onRemove.call(this),this.map&&(this.map.events.remove("zoom",this.zoomChanged),this.map.events.remove("minzoomchanged",this.minZoomChanged),this.map.events.remove("maxzoomchanged",this.maxZoomChanged),this.map=null),this.container&&(this.container.remove(),this.container=null,this.zoomInButton=null,this.zoomOutButton=null)},e.prototype.updateZoomButtonsState=function(){var t=this.map.getCamera().zoom>=this.map._getMap().getMaxZoom(),n=qi.getSouth(this.map.getCamera().bounds)<=-aD&&qi.getNorth(this.map.getCamera().bounds)>=aD,n=this.map.getCamera().zoom<=this.map._getMap().getMinZoom()||n;this.zoomInButton&&this.zoomInButton.disabled!=t&&(this.zoomInButton.disabled=t,this.zoomInButton.setAttribute("aria-label",t?"Zoom In disabled":"Zoom In")),this.zoomOutButton&&this.zoomOutButton.disabled!=n&&(this.zoomOutButton.disabled=n,this.zoomOutButton.setAttribute("aria-label",t?"Zoom Out disabled":"Zoom Out"))},e.prototype.constructZoomInButton=function(t){var n=this,i=document.createElement("button");return i.classList.add("azure-maps-control-button"),i.classList.add("zoom-in"),i.setAttribute("aria-label","Zoom In"),i.setAttribute("alt","Zoom In"),i.setAttribute("type","button"),i.addEventListener("click",function(){t.setCamera({zoom:t.getCamera().zoom+n.options.zoomDelta,duration:e.ZOOM_DURATION_MS,type:"ease"},!0)}),i},e.prototype.constructZoomOutButton=function(t){var n=this,i=document.createElement("button");return i.classList.add("azure-maps-control-button"),i.classList.add("zoom-out"),i.setAttribute("aria-label","Zoom Out"),i.setAttribute("alt","Zoom Out"),i.setAttribute("type","button"),i.addEventListener("click",function(){t.setCamera({zoom:t.getCamera().zoom-n.options.zoomDelta,duration:e.ZOOM_DURATION_MS,type:"ease"},!0)}),i},e.ZOOM_DURATION_MS=200,e})(dg),rWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}
704r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),nWe=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.style=Zc.light,t.hideIfUnsupported=!1,t.container=void 0,t}return rWe(e,r),e})(Ya),iWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),oWe=(function(r){function e(t){var n=r.call(this)||this;return n.map=null,n.isFullscreenState=!1,n.options=new nWe().merge(t),n.control=new Wh.FullscreenControl({container:n.options.container}),n}return iWe(e,r),e.prototype.onAdd=function(t){var n,i,o=this,a=(this.map=t,(a=(a=this.map)==null?void 0:a._getMap())!=null&&a.addControl(this.control),this.buildContainer(t,this.options.style,"Fullscreen Control")),l=this.control._fullscreenButton;return l&&(n=l.querySelector("span"))&&(i=Tu("Enter Fullscreen"),a.appendChild(l),l.classList.add("azure-maps-control-button","fullscreen"),n.classList.add("fullscreen-icon","fullscreen-end"),l.removeAttribute("title"),a.appendChild(i),Es(i,l),this.control.on("fullscreenstart",function(){l.removeAttribute("title"),n.classList.remove("fullscreen-end"),n.classList.add("fullscreen-start"),i.innerText="Exit Fullscreen",o.isFullscreenState=!0}),this.control.on("fullscreenend",function(){l.removeAttribute("title"),n.classList.remove("fullscreen-start"),n.classList.add("fullscreen-end"),i.innerText="Enter Fullscreen",o.isFullscreenState=!1})),this.options.hideIfUnsupported&&!e.isSupported()&&(a.style.display="none"),a},e.prototype.onRemove=function(){var t;r.prototype.onRemove.call(this),(t=(t=this.map)==null?void 0:t._getMap())!=null&&t.removeControl(this.control),this.map=null},e.prototype.isFullscreen=function(){return this.isFullscreenState},e.isSupported=function(){var t=document;return t.fullscreenEnabled||t.msFullscreenEnabled||t.mozFullScreenEnabled||t.webkitFullscreenEnabled},e})(dg),u_e=Object.freeze({__proto__:null,CompassControl:d0e,ControlBase:dg,FullscreenControl:oWe,PitchControl:w7e,ScaleControl:C7e,StyleControl:fGe,TrafficControl:G0e,TrafficLegendControl:_Ge,ZoomControl:tWe}),aWe=F0e,sWe=1,lWe=4;function cWe(r,e){return aWe(r,sWe|lWe,e=typeof e=="function"?e:void 0)}var $o=lC(cWe),uWe=(function(){function r(e){var t=this;this.attach=function(n){t.map!==n&&(t.map&&t.detachFromCurrentMap(),t.map=n,t.map.indicators._getCollectionDiv().appendChild(t.element),t.map.indicators.add(t))},this.remove=function(){t.detachFromCurrentMap(),t.element.remove()},this.getElement=function(){return t.element},this.detachFromCurrentMap=function(){t.map&&(t.map.indicators.remove(t),delete t.map)},this.element=document.createElement("div"),this.element.setAttribute("tabindex","0"),this.element.setAttribute("role","option"),e!=null&&e.setSize&&this.element.setAttribute("aria-setsize",e.setSize.toString()),e!=null&&e.positionInSet&&this.element.setAttribute("aria-posinset",e.positionInSet.toString()),this.element.setAttribute("aria-label","data point"),this.element.classList.add(r.Css.hidden)}return r.Css={hidden:"hidden-accessible-element"},r})(),dWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Iie=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.buffer=128,t.maxZoom=18,t.cluster=!1,t.clusterRadius=50,t.clusterMa
704xZoom=void 0,t.clusterProperties=void 0,t.lineMetrics=!1,t.tolerance=.375,t.clusterMinPoints=2,t.generateId=!1,t.promoteId=void 0,t.filter=void 0,t}return dWe(e,r),e})(Ya),hWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),ss=(function(r){function e(t){var n=r.call(this)||this;return n.id=t||cS(),n}return hWe(e,r),e.prototype.getId=function(){return this.id},e.prototype._setMap=function(t,n){var i;n===void 0&&(n=!0),t==null||t===void 0?(i=this.map,delete this.map,n&&(this._invokeEvent("sourceremoved",this),i)&&i.events.invoke("sourceremoved",this)):(this.map=t,n&&(this._invokeEvent("sourceadded",this),this.map.events.invoke("sourceadded",this)))},e})(Ob),fWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),e6=window&&window.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return{value:(r=r&&n>=r.length?void 0:r)&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Gp=(function(r){function e(t,n){return t=r.call(this,t)||this,t.requestId=void 0,t.options=new Iie().merge(ql(n)),t.shapes=[],t.shapesMap=new rg,t}return fWe(e,r),e.prototype.add=function(t,n){this._addNoUpdate(t,n),this._updateSource()},e.prototype.clear=function(){this._clearNoUpdate(),this._updateSource()},e.prototype.dispose=function(){this.options=null,this.shapes=null,this.shapesMap=null,this.map=null},e.prototype.getClusterExpansionZoom=function(t){var n=this;return new Promise(function(i,o){var a;n.map?(a=n.map._getMap().getSource(n.getId()))&&a.type==="geojson"&&a.getClusterExpansionZoom(t).then(function(l){typeof l=="number"&&i(l)}).catch(function(l){l&&o(l)}):o("The DataSource hasn't been added to a map.")})},e.prototype.getClusterChildren=function(t){var n=this;return new Promise(function(i,o){var a;n.map?(a=n.map._getMap().getSource(n.getId()))&&a.type==="geojson"&&a.getClusterChildren(t).then(function(l){l&&i(n.map.sources._mapFeaturesToShapes(l,!1,n))}).catch(function(l){l&&o(l)}):o("The DataSource hasn't been added to a map.")})},e.prototype.getClusterLeaves=function(t,n,i){var o=this;return new Promise(function(a,l){var u;o.map?(u=o.map._getMap().getSource(o.getId()))&&u.type==="geojson"&&u.getClusterLeaves(t,n,i).then(function(h){h&&a(o.map.sources._mapFeaturesToShapes(h,!1,o))}).catch(function(h){h&&l(h)}):l("The DataSource hasn't been added to a map.")})},e.prototype.getOptions=function(){return ql(this.options)},e.prototype.getShapes=function(){return Array.from(this.shapes)},e.prototype.importDataFromUrl=function(t){var n=this;return fetch(t,{method:"GET",mode:"cors"}).then(function(i){if(i.ok)return i.json();throw new Error("HTTP ".concat(i.status,": ").concat(i.statusText))}).then(function(i){n.add(i)})},e.prototype.getShapeById=function(t){return this.shapes[this.shapesMap.get(t)]||null},e.prototype.remove=function(o){var n,i,o=Array.isArray(o)?o:[o];try{for(var a=e6(o),l=a.next();!l.done;l=a.next()){var u=l.value;typeof u=="number"?this._removeByIndex(u):this._removeById(u)}}catch(h){n={error:h}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}this._updateSource()},e.prototype.removeById=function(o){var n,i,o=Array.isArray(o)?o:[o];try{for(var a=e6(o),l=a.next();!l.done;l=a.next()){var u=l.value;this._removeById(u)}}catch(h){n={error:h}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}this._updateSource()},e.prototype.setOptions=function(t){t=new Iie().merge(this.options,ql(t)),jh(this.options,t)||(this._invokeEvent("datasourceupdated",this),this.options=t,this.map&&this.map._rebuildStyle())},e.prototype.setShapes=function(t){this._clearNoUpdate(),this.add(t)},e.prototype.toJson=function(){return new rT(this.shapes.map(function(t){return t.toJson()}))},e.prototype._toJson=function(){return new rT(this.shapes.map(function(t){return t._toJson()}))},e.prototype._buildSource=function(){var t={type:"geojson",data:this._toJson(),maxzoom:this.options.maxZoom,cluster:this.options.cluster,clusterRadius:this.options.clusterRadius,tolerance:this.options.tolerance,lineMetrics:this.options.lineMetrics,clusterProperties:this.options.clusterProperties,buffer:this.options.buffer,clusterMinPoints:this.options.clusterMinPoints,generateId:this.options.generateId,promoteId:this.options.promoteId,filter:this.options.filter};
704return typeof this.options.clusterMaxZoom=="number"&&(t.clusterMaxZoom=this.options.clusterMaxZoom),t},e.prototype._isDeepEqual=function(t){var n;return this.constructor===t.constructor&&(n=this._buildSource(),t=t._buildSource(),n.type===t.type)&&n.maxzoom===t.maxzoom&&n.cluster===t.cluster&&n.clusterRadius===t.clusterRadius&&n.tolerance===t.tolerance&&n.lineMetrics===t.lineMetrics&&JSON.stringify(n.clusterProperties)===JSON.stringify(t.clusterProperties)&&n.buffer===t.buffer&&n.clusterMinPoints===t.clusterMinPoints&&n.generateId===t.generateId&&n.promoteId===t.promoteId&&n.filter===t.filter},e.prototype._addNoUpdate=function(t,n){var i;t instanceof rs?(this._addToSources(t,n),i=[t]):Array.isArray(t)?(i=t.map(function(o){return o instanceof rs?o:new rs(o)}),this._addToSources(i,n)):t.type==="FeatureCollection"?(i=t.features.map(function(o){return new rs(o)}),this._addToSources(i,n)):t.type==="GeometryCollection"?(i=t.geometries.map(function(o){return new rs(o)}),this._addToSources(i,n)):(t=new rs(t),this._addToSources(t,n),i=[t]),this._invokeEvent("dataadded",i)},e.prototype._clearNoUpdate=function(){var t=this.shapes;this.shapes=[],this.shapesMap=new rg,t&&0<t.length&&this._invokeEvent("dataremoved",t)},e.prototype._updateSource=function(){var t=this;this.requestId===void 0&&(this.requestId=requestAnimationFrame(function(){t._updateMboxSource(),t.requestId=void 0}))},e.prototype._addToSources=function(t,n){var i,o,a,l;if(t=Array.isArray(t)?t:[t],typeof n!="number")try{for(var u=e6(t),h=u.next();!h.done;h=u.next()){var p=h.value;this.shapes.push(p),this.shapesMap.set(p.getId(),this.shapes.length-1)}}catch(T){i={error:T}}finally{try{h&&!h.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}else for(var m=t.length-1;0<=m;m--)this.shapes.splice(n,0,t[m]),this._updateShapesMap(n);try{for(var _=e6(t),C=_.next();!C.done;C=_.next())(p=C.value)._setDataSource(this)}catch(T){a={error:T}}finally{try{C&&!C.done&&(l=_.return)&&l.call(_)}finally{if(a)throw a.error}}},e.prototype._removeById=function(n){var n=n instanceof rs?n.getId():typeof n=="string"||typeof n=="number"?n:n.id,i=this.shapes[this.shapesMap.get(n)];i&&(i._setDataSource(null),this.shapes.splice(this.shapesMap.get(n),1),this._updateShapesMap(this.shapesMap.get(n)),this.shapesMap.delete(n),this._invokeEvent("dataremoved",[i]))},e.prototype._removeByIndex=function(t){var n;if(t>=this.shapes.length)throw new Error("The specified remove index '".concat(t,"' ")+"is greater than the maximum possible index '".concat(this.shapes.length-1,"'"));n=this.shapes[t],this.shapesMap.delete(n.getId()),n._setDataSource(null),this.shapes.splice(t,1),this._updateShapesMap(t),this._invokeEvent("dataremoved",[n])},e.prototype._updateShapesMap=function(t){for(var n=t;n<this.shapes.length;n++)this.shapesMap.set(this.shapes[n].getId(),n)},e.prototype._updateMboxSource=function(){var t;this.map&&this.map._getMap()&&(t=this.map._getMap().getSource(this.getId()))&&t.type==="geojson"&&t.setData(this._toJson())},e})(ss),pWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),d_e=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.bounds=void 0,t.minZoom=0,t.maxZoom=22,t.isTMS=!1,t.tiles=void 0,t.url=void 0,t}return pWe(e,r),e})(Ya),gWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}
704r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),h_e=(function(r){function e(t,n){return t=r.call(this,t)||this,t.options=new d_e().merge(ql(n)),t}return gWe(e,r),e.prototype.getOptions=function(){return ql(this.options)},e.prototype.getShape=function(t,n){return this.map._getMap().querySourceFeatures(this.getId(),{sourceLayer:t,filter:n})},e.prototype._buildSource=function(){var t={type:"vector"};return this.options.bounds&&(t.bounds=this.options.bounds),this.options.tiles?(t.tiles=this.options.tiles,t.minzoom=this.options.minZoom,t.maxzoom=this.options.maxZoom):this.options.url&&(t.url=this.options.url),this.options.isTMS&&(t.scheme="tms"),t},e.prototype._isDeepEqual=function(t){var n,i;return this.constructor===t.constructor&&(n=this._buildSource(),i=t._buildSource(),n.type===i.type)&&n.url===i.url&&(n.tiles===void 0&&i.tiles===void 0||n.tiles&&i.tiles&&n.tiles.length===i.tiles.length&&n.tiles.every(function(o,a){return o===i.tiles[a]}))&&n.minzoom===i.minzoom&&n.maxzoom===i.maxzoom&&n.bounds===i.bounds&&n.attribution===i.attribution&&n.promoteId===i.promoteId&&n.scheme===i.scheme},e})(ss),mWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),f_e=(function(r){function e(t,n,i){return t=r.call(this,t)||this,t.source=n,t}return mWe(e,r),e.prototype._isDeepEqual=function(t){var n;return this.constructor===t.constructor&&(n=this.source,t=t.source,n.type===t.type)&&n.canvas===t.canvas&&JSON.stringify(n.coordinates)===JSON.stringify(t.coordinates)&&n.animate===t.animate},e.prototype._buildSource=function(){return this.source},e})(ss),yWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),p_e=(function(r){function e(t,n,i){return t=r.call(this,t)||this,t.source=n,t}return yWe(e,r),e.prototype._isDeepEqual=function(t){var n;return this.constructor===t.constructor&&(n=this.source,t=t.source,n.type===t.type)},e.prototype._buildSource=function(){return this.source},e})(ss),vWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),xX=(function(r){function e(t,n,i){return t=r.call(this,t)||this,t.source=n,t}return vWe(e,r),e.prototype._isDeepEqual=function(t){var n;return this.constructor===t.constructor&&(n=this.source,t=t.source,n.type===t.type)&&JSON.stringify(n.coordinates)===JSON.stringify(t.coordinates)&&n.url===t.url},e.prototype._buildSource=function(){return this.source},e})(ss),_We=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}
704r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),g_e=(function(r){function e(t,n,i){return t=r.call(this,t)||this,t.source=n,t}return _We(e,r),e.prototype._isDeepEqual=function(t){var n;return this.constructor===t.constructor&&(n=this.source,t=t.source,n.type===t.type)&&JSON.stringify(n.coordinates)===JSON.stringify(t.coordinates)&&n.urls===t.urls},e.prototype._buildSource=function(){return this.source},e})(ss),bWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),wWe=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.tileSize=512,t}return bWe(e,r),e})(d_e),EWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),CWe=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.encoding=void 0,t}return EWe(e,r),e})(wWe),xWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),m_e=window&&window.__assign||function(){return(m_e=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}).apply(this,arguments)},TWe=(function(r){function e(t,n){return t=r.call(this,t)||this,t.options=new CWe().merge(ql(n)),t}return xWe(e,r),e.prototype.getOptions=function(){return ql(this.options)},e.prototype._buildSource=function(){return m_e({type:"raster-dem",bounds:this.options.bounds,minzoom:this.options.minZoom,maxzoom:this.options.maxZoom,tileSize:this.options.tileSize,encoding:this.options.encoding},this.options.tiles?{tiles:this.options.tiles}:{url:this.options.url})},e.prototype._isDeepEqual=function(t){return this.constructor===t.constructor&&(t=t.getOptions(),this.options.url===t.url)&&this.options.tiles===t.tiles&&this.options.bounds===t.bounds&&this.options.minZoom===t.minZoom&&this.options.maxZoom===t.maxZoom&&this.options.tileSize===t.tileSize&&this.options.encoding===t.encoding},e})(ss),y_e=Object.freeze({__proto__:null,CanvasSource:f_e,DataSource:Gp,ElevationTileSource:TWe,ImageSource:xX,Source:ss,UnknownSource:p_e,VectorTileSource:h_e,VideoSource:g_e}),SWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),bs=(function(r){function e(t){var n=r.call(this)||this;return n.id=t||cS(),n}return SWe(e,r),e.prototype.getId=function(){return this.id},e.prototype.getMap=function(){return this.map||null},e.prototype.onAdd=function(t){this.map=t,this._invokeEvent("layeradded",this),this.map.events.invoke("layeradded",this)},e.prototype.onRemove=function(){var t=this.map;delete this.map,this._invokeEvent("layerremoved",this),t&&t.events.invoke("layerremoved",this)},e._isMBoxEvent=function(t){return!this.LayerEvents.hasOwnProperty(t)},e.prototype._updateBaseProperties=function(t,n){this._updateFilter(t.filter,n.filter),this._updateZoomRange(t.minZoom,n.minZoom,t.maxZoom,n.maxZoom),this._updateLayoutProperty("visibility",t.visible,n.visible,t.visible?"visible":"none")},e.prototype._updateFilter=function(t,n){jh(t,n)||this.map._getMap().setFilter(this.id,t)},e.prototype._updatePaintProperty=function(t,n,i,o){jh(n,i)||this.map._getMap().setPaintProperty(this.id,t,o||n)},e.prototype._updateLayoutProperty=function(t,n,i,o){jh(n,i)||this.map._getMap().setLayoutProperty(this.id,t,o||n)},e.prototype._updateZoomRange=function(t,n,i,o){t===n&&o===i||this.map._getMap().setLayerZoomRange(this.id,t,i)},e.LayerEvents={layeradded:void 0,layerremoved:void 0,focusin:void 0,focusout:void 0},e})(Ob),IWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}
704r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),uC=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.filter=void 0,t.minZoom=0,t.maxZoom=24,t.visible=!0,t}return IWe(e,r),e._cloneCustomizer=function(t){if(t instanceof ss)return t},e})(Ya),AWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),T2=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.source=void 0,t.sourceLayer=void 0,t.color="#1A73AA",t.blur=0,t.opacity=1,t.strokeColor="#FFFFFF",t.strokeOpacity=1,t.strokeWidth=2,t.pitchAlignment="viewport",t.radius=8,t.createIndicators=!1,t.accessibilityIdKey=void 0,t}return AWe(e,r),e})(uC),RWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),PWe=window&&window.__awaiter||function(r,e,t,n){return new(t=t||Promise)(function(i,o){function a(h){try{u(n.next(h))}catch(p){o(p)}}function l(h){try{u(n.throw(h))}catch(p){o(p)}}function u(h){var p;h.done?i(h.value):((p=h.value)instanceof t?p:new t(function(m){m(p)})).then(a,l)}u((n=n.apply(r,e||[])).next())})},kWe=window&&window.__generator||function(r,e){var t,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:l(0),throw:l(1),return:l(2)};return typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(u){return function(h){var p=[u,h];if(t)throw new TypeError("Generator is already executing.");for(;o=a&&p[a=0]?0:o;)try{if(t=1,n&&(i=2&p[0]?n.return:p[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,p[1])).done)return i;switch(n=0,(p=i?[2&p[0],i.value]:p)[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,n=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3]))o.label=p[1];else if(p[0]===6&&o.label<i[1])o.label=i[1],i=p;else{if(!(i&&o.label<i[2])){i[2]&&o.ops.pop(),o.trys.pop();continue}o.label=i[2],o.ops.push(p)}}p=e.call(r,o)}catch(m){p=[6,m],n=0}finally{t=i=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}},Aie=window&&window.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n,i,o=t.call(r),a=[];try{for(;(e===void 0||0<e--)&&!(n=o.next()).done;)a.push(n.value)}catch(l){i={error:l}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},Rie=window&&window.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||((n=n||Array.prototype.slice.call(e,0,i))[i]=e[i]);return r.concat(n||Array.prototype.slice.call(e))},pG=(function(r){function e(t,n,i){var o=r.call(this,n)||this;return o.accessibleIndicator=[],o._setAccessibleIndicator=function(){return PWe(o,void 0,void 0,function(){var a,l,u,h,p,m,_=this;return kWe(this,function(C){return this.accessibleIndicator.forEach(function(T){return T.remove()}),this.accessibleIndicator=[],a=this.map.layers.getRenderedShapes(this.map.getCamera().bounds,this),l=this.options.accessibilityIdKey||(this._getDataSource()?rs._shapeIdPropName:void 0),u=function(T,S){var R=T[S],O=R instanceof rs?R.toJson():R,N=new uWe({positionInSet:S+1,setSize:T.length}),H=N.getElement(),F=Aie(_.map.positionsToPixels([_.getFirstCoordinate(O.geometry.coordinates)]),1)[0];return H.addEventListener("focusin",function(j){_.accessibleIndicator.filter(function(L){return L!==N}
vendor: 4,225 bytes, line 704
704).forEach(function(L){return L.remove()}),0<=S-1&&h(N,u(T,S-1)),S+1<T.length&&m(u(T,S+1)),2<=S&&S==T.length-1&&p(u(T,0)),S==0&&2<=T.length&&m(u(T,T.length-1)),l!==void 0&&_.map._getMap().setPaintProperty(_.id,"circle-stroke-color",["case",["==",["get",l],O.properties[l]],"#000000",_.options.strokeColor]),j={target:H,type:"focusin",map:_.map,shape:R,originalEvent:j,pixel:F},_._invokeEvent("focusin",j)}),H.addEventListener("focusout",function(j){l!==void 0&&_.map._getMap().setPaintProperty(_.id,"circle-stroke-color",["case",["==",["get",l],O.properties[l]],_.options.strokeColor,_.options.strokeColor]),j={target:H,type:"focusout",map:_.map,shape:R,originalEvent:j,pixel:F},_._invokeEvent("focusout",j)}),_.accessibleIndicator.push(N),N},h=function(T,S){S.attach(_.map),S=S.getElement(),T=T.getElement(),T.parentElement.insertBefore(S,T)},p=function(S){S.attach(_.map);var S=S.getElement(),R=S.parentElement;R.insertBefore(S,R.firstElementChild)},m=function(T){T.attach(_.map)},0<a.length&&m(u(a,0)),1<a.length&&m(u(a,a.length-1)),[2]})})},o.options=new T2().merge($o(i,T2._cloneCustomizer)),o.options.source=t||o.options.source,o}return RWe(e,r),e.prototype.getOptions=function(){return $o(this.options,T2._cloneCustomizer)},e.prototype.getSource=function(){return this.options.source},e.prototype.setOptions=function(t){if(t=new T2().merge(this.options,$o(t,T2._cloneCustomizer)),this.map){if(t.source!==this.options.source||t.sourceLayer!==this.options.sourceLayer)return this.options=t,void this.map.layers.add(this);this._updateBaseProperties(t,this.options),this._updatePaintProperty("circle-blur",t.blur,this.options.blur),this._updatePaintProperty("circle-color",t.color,this.options.color),this._updatePaintProperty("circle-opacity",t.opacity,this.options.opacity),this._updatePaintProperty("circle-radius",t.radius,this.options.radius),this._updatePaintProperty("circle-stroke-color",t.strokeColor,this.options.strokeColor),this._updatePaintProperty("circle-stroke-opacity",t.strokeOpacity,this.options.strokeOpacity),this._updatePaintProperty("circle-stroke-width",t.strokeWidth,this.options.strokeWidth),this._updatePaintProperty("circle-pitch-alignment",t.pitchAlignment,this.options.pitchAlignment)}this.options=t},e.prototype.onAdd=function(t){var n,i,o=this;r.prototype.onAdd.call(this,t),this.options.createIndicators&&(t.events.addOnce("idle",this._setAccessibleIndicator),t.events.add("moveend",this._setAccessibleIndicator),(n=this._getDataSource())?t.events.add("dataadded",n,function(){t.events.addOnce("idle",o._setAccessibleIndicator)}):(i=typeof this.options.source=="string"?this.options.source:this.options.source.getId(),t.events.add("sourcedata",function(a){((a=a.source)==null?void 0:a.getId())===i&&t._getMap().isSourceLoaded(i)&&(a=o._getSourceDataEventCacheKey())!==o.sourceDataEventCacheKey&&(o._setAccessibleIndicator(),o.sourceDataEventCacheKey=a)})))},e.prototype.onRemove=function(){var t;this.options.createIndicators&&(this.map.events.remove("idle",this._setAccessibleIndicator),this.map.events.remove("moveend",this._setAccessibleIndicator),(t=this._getDataSource())?this.map.events.remove("dataadded",t,this._setAccessibleIndicator):this.map.events.remove("sourcedata",this._setAccessibleIndicator)),r.prototype.onRemove.call(this)},e.prototype._getSourceDataEventCacheKey=function(){var t;if(this.map)return t=this.map.getServiceOptions().mapConfiguration,Rie(Rie([],Aie(this.map.getCamera().bounds),!1),[this.map.getCamera().zoom,this.map.getCamera().pitch,this.map.getStyle().style,t instanceof Object?t.id:t],!1).join(",")},e.prototype._getDataSource=function(){var t=typeof this.options.source=="string"?this.map.sources.getById(this.options.source):this.options.source;if(t instanceof Gp)return t},e.prototype._buildLayers=function(){var t={id:this.id,type:"circle",source:this.options.source instanceof ss?this.options.source.getId():this.options.source,layout:{visibility:this.options.visible?"visible":"none"},paint:{"circle-color":this.options.color,"circle-blur":this.options.blur,"circle-opacity":this.options.opacity,"circle-stroke-color":this.options.strokeColor,"circle-stroke-opacity":this.options.strokeOpacity,"circle-stroke-width":this.options.strokeWidth,"cir
704cle-pitch-alignment":this.options.pitchAlignment,"circle-radius":this.options.radius},minzoom:this.options.minZoom,maxzoom:this.options.maxZoom};return this.options.filter&&(t.filter=this.options.filter),this.options.sourceLayer&&(t["source-layer"]=this.options.sourceLayer),[t]},e.prototype._getLayerIds=function(){return[this.id]},e.prototype._getSourceIds=function(){var t=new Set;return this.options.source instanceof ss?t.add(this.options.source.getId()):t.add(this.options.source),t},e.prototype.getFirstCoordinate=function(t){return Array.isArray(t[0])?this.getFirstCoordinate(t[0]):t},e})(bs),OWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),S2=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.source=void 0,t.sourceLayer=void 0,t.color=["interpolate",["linear"],["heatmap-density"],0,"rgba(0,0, 255,0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],t.intensity=1,t.opacity=1,t.radius=30,t.weight=1,t}return OWe(e,r),e._cloneCustomizer=function(t){if(t instanceof ss)return t},e})(uC),MWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),NWe=(function(r){function e(t,n,i){return n=r.call(this,n)||this,n.options=new S2().merge($o(i,S2._cloneCustomizer)),n.options.source=t||n.options.source,n}return MWe(e,r),e.prototype.getOptions=function(){return $o(this.options,S2._cloneCustomizer)},e.prototype.getSource=function(){return this.options.source},e.prototype.setOptions=function(t){if(t=new S2().merge(this.options,$o(t,S2._cloneCustomizer)),this.map){if(t.source!==this.options.source||t.sourceLayer!==this.options.sourceLayer)return this.options=t,void this.map.layers.add(this);this._updateBaseProperties(t,this.options),this._updatePaintProperty("heatmap-color",t.color,this.options.color),this._updatePaintProperty("heatmap-intensity",t.intensity,this.options.intensity),this._updatePaintProperty("heatmap-opacity",t.opacity,this.options.opacity),this._updatePaintProperty("heatmap-radius",t.radius,this.options.radius),this._updatePaintProperty("heatmap-weight",t.weight,this.options.weight)}this.options=t},e.prototype._buildLayers=function(){var t={id:this.id,type:"heatmap",source:this.options.source instanceof ss?this.options.source.getId():this.options.source,layout:{visibility:this.options.visible?"visible":"none"},paint:{"heatmap-color":this.options.color,"heatmap-intensity":this.options.intensity,"heatmap-opacity":this.options.opacity,"heatmap-radius":this.options.radius,"heatmap-weight":this.options.weight},minzoom:this.options.minZoom,maxzoom:this.options.maxZoom};return this.options.filter&&(t.filter=this.options.filter),this.options.sourceLayer&&(t["source-layer"]=this.options.sourceLayer),[t]},e.prototype._getLayerIds=function(){return[this.id]},e.prototype._getSourceIds=function(){var t=new Set;return this.options.source instanceof ss?t.add(this.options.source.getId()):t.add(this.options.source),t},e})(bs),DWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}
704r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),v_e=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.contrast=0,t.fadeDuration=300,t.hueRotation=0,t.maxBrightness=1,t.minBrightness=0,t.opacity=1,t.saturation=0,t}return DWe(e,r),e})(uC),LWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),I2=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.url=void 0,t.coordinates=void 0,t}return LWe(e,r),e._cloneCustomizer=function(t){if(t instanceof ss)return t},e})(v_e),HWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),YM=(function(r){function e(){return r!==null&&r.apply(this,arguments)||this}return HWe(e,r),e.prototype._getSourceIds=function(){var t=new Set;return t.add(this._getSourceId()),t},e.prototype.onAdd=function(t){r.prototype.onAdd.call(this,t)},e})(bs),FWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),UWe=(function(r){function e(t,n){return n=r.call(this,n)||this,n.isLoading=!1,n.options=new I2().merge($o(t,I2._cloneCustomizer)),n.img=new Image,n.reloadImage(),n}return FWe(e,r),e.prototype.getOptions=function(){return $o(this.options,I2._cloneCustomizer)},e.prototype.setOptions=function(a){var n,i=new I2().merge(this.options,$o(a,I2._cloneCustomizer)),o=typeof a.url=="string"&&a.url!==this.getOptions().url,a=a.coordinates!==void 0&&a.coordinates!==this.getOptions().coordinates;this.map&&(this._updateBaseProperties(i,this.options),this._updatePaintProperty("raster-contrast",i.contrast,this.options.contrast),this._updatePaintProperty("raster-fade-duration",i.fadeDuration,this.options.fadeDuration),this._updatePaintProperty("raster-hue-rotate",i.hueRotation,this.options.hueRotation),this._updatePaintProperty("raster-brightness-max",i.maxBrightness,this.options.maxBrightness),this._updatePaintProperty("raster-opacity",i.opacity,this.options.opacity),this._updatePaintProperty("raster-saturation",i.saturation,this.options.saturation),n=this.map._getMap().getSource(this._getSourceId()))&&(o||a)&&n.updateImage(i),this.options=i,o?this.reloadImage():a&&this.updateTransform()},e.prototype.getPositions=function(t){return this.transform.then(function(n){return n.toTarget(t)})},e.prototype.getPixels=function(t){return this.transform.then(function(n){return n.toSource(t)})},e.getCoordinatesFromRefPoints=function(t,n,i,o){return new zH(i,o).toTarget([[0,0],[t,0],[t,n],[0,n]])},e.getCoordinatesFromEdges=function(t,n,i,o,a){return typeof a!="number"&&(a=0),n=[Math.min(o,i),n,Math.max(o,i),t],o=qi.getCenter(n),r_e([qi.getNorthWest(n),qi.getNorthEast(n),qi.getSouthEast(n),qi.getSouthWest
vendor: 4,997 bytes, line 704
704(n)],o,a)},e.prototype._buildLayers=function(){var t={id:this.id,type:"raster",source:this._getSourceId(),layout:{visibility:this.options.visible?"visible":"none"},paint:{"raster-opacity":this.options.opacity,"raster-hue-rotate":this.options.hueRotation,"raster-brightness-min":this.options.minBrightness,"raster-brightness-max":this.options.maxBrightness,"raster-saturation":this.options.saturation,"raster-contrast":this.options.contrast,"raster-fade-duration":this.options.fadeDuration},minzoom:this.options.minZoom,maxzoom:this.options.maxZoom};return this.options.filter&&(t.filter=this.options.filter),[t]},e.prototype._getLayerIds=function(){return[this.id]},e.prototype._buildSource=function(){return{type:"image",url:this.options.url,coordinates:this.options.coordinates}},e.prototype._getSourceId=function(){return"".concat(this.getId(),"-ImageSource")},e.prototype.reloadImage=function(){var t=this;this.options.url&&(this.transform=new Promise(function(n,i){t.img.onload=function(){var o=[[0,0],[t.img.width,0],[t.img.width,t.img.height],[0,t.img.height]];n(new zH(o,t.options.coordinates)),t.isLoading=!1},t.img.onerror=t.img.onabort=function(){i("Failed to load image")},t.isLoading=!0,t.img.src=t.options.url}))},e.prototype.updateTransform=function(){var t;this.isLoading||(t=[[0,0],[this.img.width,0],[this.img.width,this.img.height],[0,this.img.height]],this.transform=Promise.resolve(new zH(t,this.options.coordinates)))},e.prototype._getSourceWrapper=function(){var t=this._getSourceId(),n=this._buildSource();return new xX(t,n)},e})(YM),BWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),A2=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.source=void 0,t.sourceLayer=void 0,t.lineCap="round",t.lineJoin="round",t.blur=0,t.strokeColor="#1E90FF",t.strokeDashArray=void 0,t.strokeGradient=void 0,t.offset=0,t.strokeOpacity=1,t.translate=new Su(0,0),t.translateAnchor="map",t.strokeWidth=2,t}return BWe(e,r),e})(uC),$We=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Nw=window&&window.__assign||function(){return(Nw=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}).apply(this,arguments)},gG=(function(r){function e(t,n,i){return n=r.call(this,n)||this,n.options=new A2().merge($o(i,A2._cloneCustomizer)),n.options.source=t||n.options.source,n}return $We(e,r),e.prototype.getOptions=function(){return $o(this.options,A2._cloneCustomizer)},e.prototype.getSource=function(){return this.options.source},e.prototype.setOptions=function(t){if(t=new A2().merge(this.options,$o(t,A2._cloneCustomizer)),this.map){if(t.source!==this.options.source||t.sourceLayer!==this.options.sourceLayer)return this.options=t,void this.map.layers.add(this);this._updateBaseProperties(t,this.options),this._updatePaintProperty("line-blur",t.blur,this.options.blur),this._updateLayoutProperty("line-cap",t.lineCap,this.options.lineCap),this._updateLayoutProperty("line-join",t.lineJoin,this.options.lineJoin),this._updatePaintProperty("line-offset",t.offset,this.options.offset),this._updatePaintProperty("line-color",t.strokeColor,this.options.strokeColor),this._updatePaintProperty("line-dasharray",t.strokeDashArray,this.options.strokeDashArray),this._updatePaintProperty("line-gradient",t.strokeGradient,this.options.strokeGradient),this._updatePaintProperty("line-opacity",t.strokeOpacity,this.options.strokeOpacity),this._updatePaintProperty("line-width",t.strokeWidth,this.options.strokeWidth),this._updatePaintProperty("line-translate",t.translate,this.options.translate),this._updatePaintProperty("line-translate-anchor",t.translateAnchor,this.options.translateAnchor)}this.options=t},e.prototype._buildLayers=function(){return[Nw(Nw(Nw(Nw({id:this.id,type:"line"},this.options.sourceLayer&&{"source-layer":this.options.sourceLayer}),{source:this.options.source instanceof ss?this.options.source.getId():this.options.source,layout:{visibility:this.options.visible?"visible":"none","line-cap":this.options.lineCap,"line-join":this.options.lineJoin}
704,paint:Nw(Nw(Nw({"line-blur":this.options.blur,"line-color":this.options.strokeColor},this.options.strokeDashArray?{"line-dasharray":this.options.strokeDashArray}:{}),this.options.strokeGradient?{"line-gradient":this.options.strokeGradient}:{}),{"line-offset":this.options.offset,"line-opacity":this.options.strokeOpacity,"line-translate":this.options.translate,"line-translate-anchor":this.options.translateAnchor,"line-width":this.options.strokeWidth})}),this.options.filter&&{filter:this.options.filter}),{minzoom:this.options.minZoom,maxzoom:this.options.maxZoom})]},e.prototype._getLayerIds=function(){return[this.id]},e.prototype._getSourceIds=function(){var t=new Set;return this.options.source instanceof ss?t.add(this.options.source.getId()):t.add(this.options.source),t},e})(bs),zWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),R2=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.source=void 0,t.sourceLayer=void 0,t.base=0,t.fillColor="#1E90FF",t.height=0,t.fillOpacity=1,t.fillPattern=void 0,t.translate=new Su(0,0),t.translateAnchor="map",t.verticalGradient=!0,t}return zWe(e,r),e})(uC),jWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Sx=window&&window.__assign||function(){return(Sx=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}).apply(this,arguments)},VWe=(function(r){function e(t,n,i){return n=r.call(this,n)||this,n.options=new R2().merge($o(i,R2._cloneCustomizer)),n.options.source=t||n.options.source,n}return jWe(e,r),e.prototype.getOptions=function(){return $o(this.options,R2._cloneCustomizer)},e.prototype.getSource=function(){return this.options.source},e.prototype.setOptions=function(t){if(t=new R2().merge(this.options,$o(t,R2._cloneCustomizer)),this.map){if(t.source!==this.options.source||t.sourceLayer!==this.options.sourceLayer)return this.options=t,void this.map.layers.add(this);this._updateBaseProperties(t,this.options),this._updatePaintProperty("fill-extrusion-base",t.base,this.options.base),this._updatePaintProperty("fill-extrusion-color",t.fillColor,this.options.fillColor),this._updatePaintProperty("fill-extrusion-height",t.height,this.options.height),this._updatePaintProperty("fill-extrusion-opacity",t.fillOpacity,this.options.fillOpacity),this._updatePaintProperty("fill-extrusion-pattern",t.fillPattern,this.options.fillPattern),this._updatePaintProperty("fill-extrusion-translate",t.translate,this.options.translate),this._updatePaintProperty("fill-extrusion-translate-anchor",t.translateAnchor,this.options.translateAnchor),this._updatePaintProperty("fill-extrusion-vertical-gradient",t.verticalGradient,this.options.verticalGradient)}this.options=t}
704,e.prototype._buildLayers=function(){return[Sx(Sx(Sx(Sx({id:this.id,type:"fill-extrusion"},this.options.sourceLayer&&{"source-layer":this.options.sourceLayer}),{source:this.options.source instanceof ss?this.options.source.getId():this.options.source,layout:{visibility:this.options.visible?"visible":"none"},paint:Sx(Sx({"fill-extrusion-base":this.options.base,"fill-extrusion-height":this.options.height,"fill-extrusion-opacity":this.options.fillOpacity},this.options.fillPattern?{"fill-extrusion-pattern":this.options.fillPattern}:{"fill-extrusion-color":this.options.fillColor}),{"fill-extrusion-translate":this.options.translate,"fill-extrusion-translate-anchor":this.options.translateAnchor,"fill-extrusion-vertical-gradient":this.options.verticalGradient})}),this.options.filter&&{filter:this.options.filter}),{minzoom:this.options.minZoom,maxzoom:this.options.maxZoom})]},e.prototype._getLayerIds=function(){return[this.id]},e.prototype._getSourceIds=function(){var t=new Set;return this.options.source instanceof ss?t.add(this.options.source.getId()):t.add(this.options.source),t},e})(bs),qWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),P2=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.source=void 0,t.sourceLayer=void 0,t.fillColor="#1E90FF",t.fillOpacity=.5,t.fillPattern=void 0,t.fillAntialias=!0,t}return qWe(e,r),e})(uC),GWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),mG=(function(r){function e(t,n,i){return n=r.call(this,n)||this,n.options=new P2().merge($o(i,P2._cloneCustomizer)),n.options.source=t||n.options.source,n}return GWe(e,r),e.prototype.getOptions=function(){return $o(this.options,P2._cloneCustomizer)},e.prototype.getSource=function(){return this.options.source},e.prototype.setOptions=function(t){if(t=new P2().merge(this.options,$o(t,P2._cloneCustomizer)),this.map){if(t.source!==this.options.source||t.sourceLayer!==this.options.sourceLayer)return this.options=t,void this.map.layers.add(this);this._updateBaseProperties(t,this.options),this._updatePaintProperty("fill-color",t.fillColor,this.options.fillColor),this._updatePaintProperty("fill-opacity",t.fillOpacity,this.options.fillOpacity),this._updatePaintProperty("fill-pattern",t.fillPattern,this.options.fillPattern),this._updatePaintProperty("fill-antialias",t.fillAntialias,this.options.fillAntialias)}this.options=t},e.prototype._buildLayers=function(){var t={id:this.id,type:"fill",source:this.options.source instanceof ss?this.options.source.getId():this.options.source,layout:{visibility:this.options.visible?"visible":"none"},paint:{"fill-opacity":this.options.fillOpacity,"fill-antialias":this.options.fillAntialias},minzoom:this.options.minZoom,maxzoom:this.options.maxZoom};return this.options.filter&&(t.filter=this.options.filter),this.options.sourceLayer&&(t["source-layer"]=this.options.sourceLayer),this.options.fillPattern?t.paint["fill-pattern"]=this.options.fillPattern:t.paint["fill-color"]=this.options.fillColor,[t]},e.prototype._getLayerIds=function(){return[this.id]},e.prototype._getSourceIds=function(){var t=new Set;return this.options.source instanceof ss?t.add(this.options.source.getId()):t.add(this.options.source),t},e})(bs),YWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}
704r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),WWe=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.allowOverlap=!1,t.anchor="bottom",t.ignorePlacement=!1,t.image="marker-blue",t.offset=new Su(0,0),t.optional=!1,t.padding=2,t.pitchAlignment="auto",t.rotation=0,t.rotationAlignment="auto",t.size=1,t.opacity=1,t}return YWe(e,r),e})(Ya),KWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),ZWe=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.allowOverlap=!1,t.anchor="center",t.textField=void 0,t.font=["StandardFont-Regular"],t.ignorePlacement=!1,t.justify="center",t.offset=new Su(0,0),t.optional=!1,t.padding=2,t.pitchAlignment="auto",t.radialOffset=void 0,t.rotation=0,t.rotationAlignment="auto",t.variableAnchor=void 0,t.size=16,t.color="#000000",t.haloBlur=0,t.haloColor="rgba(0,0,0,0)",t.haloWidth=0,t.opacity=1,t}return KWe(e,r),e})(Ya),XWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),k2=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.source=void 0,t.sourceLayer=void 0,t.iconOptions=new WWe,t.textOptions=new ZWe,t.placement="point",t.sortKey=void 0,t.zOrder="auto",t.lineSpacing=250,t}return XWe(e,r),e})(uC),QWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Ix=window&&window.__assign||function(){return(Ix=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}).apply(this,arguments)},Z8=(function(r){function e(t,n,i){return n=r.call(this,n)||this,n.options=new k2().merge($o(i,k2._cloneCustomizer)),n.options.source=t||n.options.source,n}return QWe(e,r),e.prototype.getOptions=function(){return $o(this.options,k2._cloneCustomizer)},e.prototype.getSource=function(){return this.options.source},e.prototype.setOptions=function(t){if(t=new k2().merge(this.options,$o(t,k2._cloneCustomizer)),this.map){if(t.source!==this.options.source||t.sourceLayer!==this.options.sourceLayer)return this.options=t,void this.map.layers.add(this);var n=this.options,i=t.iconOptions,o=n.iconOptions,a=t.textOptions,l=n.textOptions;this._updateBaseProperties(t,n),this._updateLayoutProperty("symbol-spacing",t.lineSpacing,n.lineSpacing),this._updateLayoutProperty("symbol-placement",t.placement,n.placement),this._updateLayoutProperty("symbol-sort-key",t.sortKey,n.sortKey),this._updateLayoutProperty("symbol-z-order",t.zOrder,n.zOrder),this._updateLayoutProperty("icon-allow-overlap",i.allowOverlap,o.allowOverlap),this._updateLayoutProperty("icon-anchor",i.anchor,o.anchor),this._updateLayoutProperty("icon-ignore-placement",i.ignorePlacement,o.ignorePlacement),this._updateLayoutProperty("icon-image",i.image,o.image),this._updateLayoutProperty("icon-offset",i.offset,o.offset),this._updatePaintProperty("icon-opacity",i.opacity,o.opacity),this._updateLayoutProperty("icon-optional",i.optional,o.optional),this._updateLayoutProperty("icon-padding",i.padding,o.padding),this._updateLayoutProperty("icon-pitch-alignment",i.pitchAlignment,o.pitchAlignment),this._updateLayoutProperty("icon-rotate",i.rotation,o.rotation),this._updateLayoutProperty("icon-rotation-alignment",i.rotationAlignment,o.rotationAlignment),this._updateLayoutProperty("icon-size",i.size,o.size),this._updateLayoutProperty("text-allow-overlap",a.allowOverlap,l.allowOverlap),this._updateLayoutProperty("text-anchor",a.anchor,l.anchor),this._updatePaintProperty("text-color",a.color,l.color),this._updateLayoutProperty("text-font",a.font,l.font),this._updateLayoutProperty("text-ignore-placement",a.ignorePlacement,l.ignorePlacement),this._updateLayoutProperty("text-ju
704stify",a.justify,l.justify),this._updatePaintProperty("text-halo-blur",a.haloBlur,l.haloBlur),this._updatePaintProperty("text-halo-color",a.haloColor,l.haloColor),this._updatePaintProperty("text-halo-width",a.haloWidth,l.haloWidth),this._updateLayoutProperty("text-offset",a.offset,l.offset),this._updatePaintProperty("text-opacity",a.opacity,l.opacity),this._updateLayoutProperty("text-optional",a.optional,l.optional),this._updateLayoutProperty("text-padding",a.padding,l.padding),this._updateLayoutProperty("text-pitch-alignment",a.pitchAlignment,l.pitchAlignment),this._updateLayoutProperty("text-radial-offset",a.radialOffset,l.radialOffset),this._updateLayoutProperty("text-rotate",a.rotation,l.rotation),this._updateLayoutProperty("text-rotation-alignment",a.rotationAlignment,l.rotationAlignment),this._updateLayoutProperty("text-size",a.size,l.size),this._updateLayoutProperty("text-variable-anchor",a.variableAnchor,l.variableAnchor),this._updateLayoutProperty("text-field",a.textField,l.textField)}this.options=t},e.prototype._buildLayers=function(){var t=Ix(Ix(Ix(Ix({id:this.id,type:"symbol"},this.options.sourceLayer&&{"source-layer":this.options.sourceLayer}),{source:this.options.source instanceof ss?this.options.source.getId():this.options.source,layout:Ix(Ix({visibility:this.options.visible?"visible":"none","symbol-placement":this.options.placement,"symbol-spacing":this.options.lineSpacing,"symbol-z-order":this.options.zOrder,"text-allow-overlap":this.options.textOptions.allowOverlap,"text-anchor":this.options.textOptions.anchor},this.options.textOptions.textField&&{"text-field":this.options.textOptions.textField}),{"text-font":this.options.textOptions.font,"text-ignore-placement":this.options.textOptions.ignorePlacement,"text-justify":this.options.textOptions.justify,"text-offset":this.options.textOptions.offset,"text-optional":this.options.textOptions.optional,"text-padding":this.options.textOptions.padding,"text-pitch-alignment":this.options.textOptions.pitchAlignment,"text-rotate":this.options.textOptions.rotation,"text-rotation-alignment":this.options.textOptions.rotationAlignment,"text-size":this.options.textOptions.size,"icon-allow-overlap":this.options.iconOptions.allowOverlap,"icon-anchor":this.options.iconOptions.anchor,"icon-ignore-placement":this.options.iconOptions.ignorePlacement,"icon-image":this.options.iconOptions.image,"icon-offset":this.options.iconOptions.offset,"icon-optional":this.options.iconOptions.optional,"icon-padding":this.options.iconOptions.padding,"icon-pitch-alignment":this.options.iconOptions.pitchAlignment,"icon-rotate":this.options.iconOptions.rotation,"icon-rotation-alignment":this.options.iconOptions.rotationAlignment,"icon-size":this.options.iconOptions.size}),paint:{"text-color":this.options.textOptions.color,"text-halo-blur":this.options.textOptions.haloBlur,"text-halo-color":this.options.textOptions.haloColor,"text-halo-width":this.options.textOptions.haloWidth,"text-opacity":this.options.textOptions.opacity,"icon-opacity":this.options.iconOptions.opacity}}),this.options.filter&&{filter:this.options.filter}),{minzoom:this.options.minZoom,maxzoom:this.options.maxZoom});return this.options.sortKey!==void 0&&(t.layout["symbol-sort-key"]=this.options.sortKey),this.options.textOptions.radialOffset!==void 0&&(t.layout["text-radial-offset"]=this.options.textOptions.radialOffset),this.options.textOptions.variableAnchor!==void 0&&(t.layout["text-variable-anchor"]=this.options.textOptions.variableAnchor),[t]},e.prototype._getLayerIds=function(){return[this.id]},e.prototype._getSourceIds=function(){var t=new Set;return this.options.source instanceof ss?t.add(this.options.source.getId()):t.add(this.options.source),t},e})(bs),JWe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}
704r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),gM=window&&window.__assign||function(){return(gM=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}).apply(this,arguments)},__e=(function(r){function e(t,n,i){return t=r.call(this,t)||this,t.source=t._modifySource(n,i),t}return JWe(e,r),e.prototype._buildSource=function(){return this.source},e.prototype._isDeepEqual=function(t){var n,i,o,a;return this.constructor===t.constructor&&(a=this.source,n=t.source,t=a.type===n.type&&a.url===n.url&&(a.tiles===void 0&&n.tiles===void 0||a.tiles&&n.tiles&&a.tiles.length===n.tiles.length&&a.tiles.every(function(l,u){return l===n.tiles[u]}))&&a.minzoom===n.minzoom&&a.maxzoom===n.maxzoom&&a.bounds===n.bounds&&a.attribution===n.attribution,i=a.type!=="raster"||a.type==="raster"&&a.type===n.type&&a.tileSize===n.tileSize&&a.scheme===n.scheme,o=a.type!=="raster-dem"||a.type==="raster-dem"&&a.type===n.type&&a.tileSize===n.tileSize&&a.encoding===n.encoding,a=a.type!=="vector"||a.type==="vector"&&a.type===n.type&&a.promoteId===n.promoteId&&a.scheme===n.scheme,t)&&i&&o&&a},e.prototype._modifySource=function(t,n){if(t.type!=="raster"&&t.type!=="raster-dem"&&t.type!=="vector"||!t.tiles){if(t.type!=="raster"&&t.type!=="raster-dem"&&t.type!=="vector"||!t.url)throw new Error("Source definition must define a TileJSON 'url' or a 'tiles' array.");t.url=typeof t.url=="string"?t.url:new av({domain:ai.domainPlaceHolder,path:t.url.path,queryParams:gM(gM({},n),t.url.queryParams)}).toString()}else{var i=t.tiles.map(function(o){return typeof o=="string"?o:new av({domain:ai.domainPlaceHolder,path:o.path,queryParams:gM(gM({},n),o.queryParams)}).toString()});t.tiles=i}return t},e})(ss),eKe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),O2=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.bounds=[-180,-85.0511,180,85.0511],t.minSourceZoom=0,t.maxSourceZoom=22,t.tileSize=512,t.isTMS=!1,t.subdomains=void 0,t.tileUrl=void 0,t}return eKe(e,r),e})(v_e),tKe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),jH=window&&window.__assign||function(){return(jH=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}).apply(this,arguments)},rKe=window&&window.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return{value:(r=r&&n>=r.length?void 0:r)&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},X8=(function(r){function e(t,n){return n=r.call(this,n)||this,t&&n.setOptions(t),n}return tKe(e,r),e.prototype.getOptions=function(){return $o(this.options,O2._cloneCustomizer)},e.prototype.setOptions=function(t){if(t=new O2().merge(this.options,$o(t,O2._cloneCustomizer)),this.map){if(!jh(t.bounds,this.options.bounds)||t.isTMS!==this.options.isTMS||t.maxSourceZoom!==this.options.maxSourceZoom||t.minSourceZoom!==this.options.minSourceZoom||!jh(t.subdomains,this.options.subdomains)||t.tileSize!==this.options.tileSize||t.tileUrl!==this.options.tileUrl)return this.options=t,void this.map.layers.add(this);this._updateBaseProperties(t,this.options),this._updatePaintProperty("raster-contrast",t.contrast,this.options.contrast),this._updatePaintProperty("raster-fade-duration",t.fadeDuration,this.options.fadeDuration),this._updatePaintProperty("raster-hue-rotate",t.hueRotation,this.options.hueRotation),this._updatePaintProperty("raster-brightness-max",t.maxBrightness,this.options.maxBrightness),this._updatePaintProperty("raster-opacity",t.opacity,this.options.opacity),this._updatePaintProperty("raster-saturation",t.saturation,this.options.saturation)}this.options=t},e.prototype._setOptionsNoUpdate=function(t){this.options=new O2().merge(this.options,$o(t,O2._cloneCustomizer))},e.prototype._buildLayers=function(){return[jH(jH({id:this.id,type:"raster",source:this._getSourceId(),layout:{visibility:this.options.visible?"visible":"none"},paint:{"raster-contrast":this.options.contrast,"raster-fade-duration":this.options.fadeDuration,"raster-hue-rotate":this.options.hueRotation,"raster-brightness-max":this.options.maxBrightness,"raster-brightness-min":this.options.minBrightness,"raster-opacity":this.options.opacity,"raster-saturation":this.options.saturation}},this.options.filter&&{filter:this.options.filter}),{minzoom:this.options.minZoom,maxzoom:this.options.maxZoom})]},e.prototype._getLayerIds=function(){return[this.id]},e.prototype._buildSource=function(){var t,n;if(this.options.tileUrl){if(this.options.tileUrl.indexOf("{")===-1)return{type:"raster",url:this.options.tileUrl};
704if(this.options.tileUrl.indexOf("{subdomain}")!==-1){if(!(this.options.subdomains&&0<this.options.subdomains.length))throw new Error("The {subdomain} placeholder was included in the tileUrl but no subdomains were specified");var i=[];try{for(var o=rKe(this.options.subdomains),a=o.next();!a.done;a=o.next()){var l=a.value;i.push(this.options.tileUrl.replace(/{subdomain}/g,l))}}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}n=i}else n=[this.options.tileUrl]}return jH({type:"raster",bounds:this.options.bounds,maxzoom:this.options.maxSourceZoom,minzoom:this.options.minSourceZoom,scheme:this.options.isTMS?"tms":"xyz",tileSize:this.options.tileSize},n&&{tiles:n})},e.prototype._getSourceId=function(){return"".concat(this.getId(),"-RasterSource")},e.prototype._getSourceWrapper=function(){var t=this._getSourceId(),n=this._buildSource();return new __e(t,{name:t,tiles:n.tiles,type:n.type,url:n.url})},e})(YM),nKe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),M2=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.renderer=void 0,t}return nKe(e,r),e})(uC),iKe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),b_e=(function(r){function e(t,n){var i=r.call(this,t)||this;return i._onStyleChange=function(){var o,a;i.map._getMap().getLayer(i.id)||(o=i.map,a=(a=i.map.layers._getUserLayers().find(function(l){return l.layer.getId()==i.id}))==null?void 0:a.before,o.layers.remove(i),o.layers.add(i,a))},i.options=new M2().merge($o(n,M2._cloneCustomizer)),i.source=new Gp,i}return iKe(e,r),e.prototype.getOptions=function(){return $o(this.options,M2._cloneCustomizer)},e.prototype.setOptions=function(t){t=new M2().merge(this.options,$o(t,M2._cloneCustomizer)),this.map&&this.map.triggerRepaint(),this.options=t},e.prototype.onAdd=function(t){var n,i;r.prototype.onAdd.call(this,t),this.map.events.add("stylechanged",this._onStyleChange),this.options.renderer&&this.glContext&&(i=(n=this.options.renderer).onAdd)!=null&&i.call(n,t,this.glContext)},e.prototype.onRemove=function(){var t,n;this.options.renderer&&this.glContext&&(n=(t=this.options.renderer).onRemove)!=null&&n.call(t,this.map,this.glContext),this.map.events.remove("stylechanged",this._onStyleChange),this.glContext=null,r.prototype.onRemove.call(this)},e.prototype._buildLayers=function(){var t=this;if(this.options.renderer)return[{id:this.id,type:"custom",renderingMode:this.options.renderer.renderingMode,onAdd:function(n,i){t.glContext=i},onRemove:function(n,i){},prerender:function(n,i){var o,a;t._shouldRender()&&(a=(o=t.options.renderer).prerender)!=null&&a.call(o,n,i)},render:function(n,i){t._shouldRender()&&t.options.renderer.render(n,i)}}];throw new Error("Cannot build the WebGL layer because renderer was not set.")},e.prototype._getLayerIds=function(){return[this.id]},e.prototype._getSourceIds=function(){return new Set().add(this.source.getId())},e.prototype._shouldRender=function(){var t;return!!this.map&&(t=this.map.getCamera().zoom,this.options.visible)&&this.options.minZoom<=t&&this.options.maxZoom>t},e})(bs),w_e=Object.freeze({__proto__:null,BubbleLayer:pG,HeatMapLayer:NWe,ImageLayer:UWe,Layer:bs,LineLayer:gG,PolygonExtrusionLayer:VWe,PolygonLayer:mG,SymbolLayer:Z8,TileLayer:X8,WebGLLayer:b_e}),$7=(function(){function r(){}return r.convertHtmlString=function(e){var t;return typeof e=="string"?((t=document.createElement("div")).innerHTML=e,t):e},r.parseWithFilter=function(e,t,n,i){var o=this;if(t===void 0&&(t=function(u){return!0}),n===void 0&&(n=function(u){return u}),i===void 0&&(i=function(){return document.createElement("div")}),typeof e=="string"){var l=new DOMParser().parseFromString(e,"text/html").body;if(l.children.length==0)return n(l.innerHTML);var a,l=l.children.length==1&&l.childNodes.length==1?l.children[0]:(a=i(),Array.from(l.childNodes).map(function(u){return a.append(u)}),a)}else l=e;
704return Array.from(l.children).forEach(function(u){return o.parseWithFilter(u,t,n)}),t(l)?n(l):(l.parentNode&&l.parentNode.removeChild(l),null)},r})(),oKe=Mb,aKe=$0e;function sKe(r){return oKe(r)&&r.nodeType===1&&!aKe(r)}var E_e=lC(sKe),lKe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),N2=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.anchor="none",t.draggable=!1,t.closeButton=!0,t.content=document.createElement("span"),t.fillColor="#FFFFFF",t.pixelOffset=new Su(0,0),t.position=new od(0,0),t.showPointer=!0,t}return lKe(e,r),e._cloneCustomizer=function(t){if(E_e(t))return t},e})(Ya),cKe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),t6=window&&window.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n,i,o=t.call(r),a=[];try{for(;(e===void 0||0<e--)&&!(n=o.next()).done;)a.push(n.value)}catch(l){i={error:l}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},bL=(function(r){function e(t){var n=r.call(this)||this;return n.attach=function(i){n.map!==i&&(n.map&&n.remove(),n.map=i,n.marker=n._createMarker(n.options),n.marker.addTo(n.map._getMap()),n.map.popups._getCollectionDiv().appendChild(n.containerDiv),n.map.popups.add(n))}
704,n.open=function(i){if(!i&&!n.map)throw new Error("Must specify a map to open on or attach to a map in advance");n.attach(i||n.map),n.containerDiv.classList.remove(e.Css.hidden),n.map.events.add("move",n._onMove),n._onMove(),n._invokeEvent("open",{target:n,type:"open"})},n.close=function(){n.map&&n.map.events.remove("move",n._onMove),n.containerDiv.classList.add(e.Css.hidden),n._invokeEvent("close",{target:n,type:"close"})},n.remove=function(){n.map&&(n.marker.remove(),n.containerDiv.classList.remove(n.autoAnchor||n.options.anchor),n.map.events.remove("move",n._onMove),n.map.popups.remove(n),delete n.map,delete n.marker,delete n.autoAnchor)},n.isOpen=function(){return n.map&&!n.containerDiv.classList.contains(e.Css.hidden)},n._onMove=function(){var i=n._getAutoAnchor(n.map,n.options);i!==n.autoAnchor&&(n._replaceMarker(n.map,n.options,i),n.map.events.add("move",n._onMove))},n._onDown=function(i){n.map.popups._addDraggedPopup(n);var o=t6(n.map.positionsToPixels([n.options.position]),1)[0];i.type==="mousedown"?n.dragOffset=[o[0]-i.clientX,o[1]-i.clientY]:i.type==="touchstart"&&(n.dragOffset=[o[0]-i.touches[0].clientX,o[1]-i.touches[0].clientY])},n._onDragStart=function(i){i.preventDefault()},n.options=new N2().merge($o(t,N2._cloneCustomizer)),n.containerDiv=n._createContainerDiv(n.options),n.contentDiv=n._createContentDiv(n.options),n.containerDiv.appendChild(n.contentDiv),n.options.showPointer&&(n.arrowDiv=n._createArrowDiv(),n.containerDiv.appendChild(n.arrowDiv)),n.options.closeButton&&(n.closeBtn=n._createCloseButton(),n.contentDiv.appendChild(n.closeBtn),t=Tu("close"),n.contentDiv.appendChild(t),Es(t,n.closeBtn,!0)),n}return cKe(e,r),e.prototype.setPopupOptions=function(t){this.setOptions(t)},e.prototype.setOptions=function(i){var n,i=new N2().merge(this.options,$o(i,N2._cloneCustomizer));i.content!==this.options.content?(this.htmlContent.remove(),this.htmlContent=this._createHtmlContent(i),this.contentDiv.prepend(this.htmlContent)):i.draggable!==this.options.draggable&&this._setDraggable(this.htmlContent,i.draggable),i.closeButton&&!this.closeBtn?(this.closeBtn=this._createCloseButton(),this.contentDiv.appendChild(this.closeBtn),n=Tu("close"),this.contentDiv.appendChild(n),Es(n,this.closeBtn,!0)):!i.closeButton&&this.closeBtn&&(this.contentDiv.removeChild(this.closeBtn),delete this.closeBtn),i.showPointer&&!this.arrowDiv?(this.arrowDiv=this._createArrowDiv(),this.containerDiv.appendChild(this.arrowDiv)):!i.showPointer&&this.arrowDiv&&(this.containerDiv.removeChild(this.arrowDiv),delete this.arrowDiv),i.fillColor!==this.options.fillColor&&(this.containerDiv.style.borderColor=i.fillColor,this.contentDiv.style.backgroundColor=i.fillColor),this.marker&&(i.anchor!==this.options.anchor?this.options.anchor==="none"?(this.autoAnchor!==i.anchor&&this._replaceMarker(this.map,i),this.map.events.remove("move",this._onMove),delete this.autoAnchor):(this._replaceMarker(this.map,i),i.anchor==="none"&&this.map.events.add("move",this._onMove)):(jh(i.position,this.options.position)||this.marker.setLngLat(i.position),jh(i.pixelOffset,this.options.pixelOffset)||this.marker.setOffset(i.pixelOffset))),this.options=i},e.prototype.getPopupOptions=function(){return this.getOptions()},e.prototype.getOptions=function(){return $o(this.options,N2._cloneCustomizer)},e.prototype.getPopupContainer=function(){return this.containerDiv},e.prototype._dragToPixel=function(t){this.dragging||(this.dragging=!0,this.contentDiv.style.pointerEvents="none",this._invokeEvent("dragstart",{type:"dragstart",target:this})),t=[t[0]+this.dragOffset[0],t[1]+this.dragOffset[1]],t=t6(this.map.pixelsToPositions([t]),1)[0],this.options.position=t,this.marker.setLngLat(this.options.position),this._invokeEvent("drag",{type:"drag",target:this})},e.prototype._onUp=function(){this.dragging&&(this.contentDiv.style.pointerEvents="",this._invokeEvent("dragend",{type:"dragend",target:this}),this.options.anchor==="none")&&this._onMove(),delete this.dragOffset,delete this.dragging},e.prototype._createContainerDiv=function(t){var n=this,i=document.createElement("div"),o=(i.classList.add(e.Css.container),i.classList.add(e.Css.hidden),i.style.borderColor=t.fillColor,i.setAttribute("role","dialog"),i.setAttribute("aria-label","Map Information Window"),!1);return i.addEventListener("keydown",function(a){a.key!=="Tab"&&a.key!=="Escape"&&a.key!=="Esc"||(o=!0)}),i.addEventListener("keyup",function(a){a.key!=="Tab"&&a.key!=="Escape"&&a.key!=="Esc"||(o=!1)}),i.addEventListener("focusin",function(a){n.map&&!n.isOpen()&&(n.open(n.map),a.target instanceof HTMLElement)&&a.target.focu
vendor: 4,442 bytes, line 704
704s()}),i.addEventListener("focusout",function(a){o&&a.relatedTarget instanceof Node&&!i.contains(a.relatedTarget)&&(o=!1,n.isOpen())&&n.close()}),i},e.prototype._createContentDiv=function(t){var n=document.createElement("div");return n.classList.add(e.Css.content),n.style.backgroundColor=t.fillColor,n.setAttribute("tabindex","0"),this.htmlContent=this._createHtmlContent(t),n.appendChild(this.htmlContent),n},e.prototype._createArrowDiv=function(){var t=document.createElement("div");return t.classList.add(e.Css.arrow),t},e.prototype._createCloseButton=function(){var t=document.createElement("button");return t.addEventListener("click",this.close),t.classList.add(e.Css.close),t.setAttribute("aria-label","close"),t.setAttribute("type","button"),t.setAttribute("tabindex","0"),t.innerHTML="&times;",t},e.prototype._createHtmlContent=function(t){var n=$7.convertHtmlString(t.content);return t.draggable&&this._setDraggable(n,t.draggable),n},e.prototype._createMarker=function(t,o){var i=this.marker?this.marker.getLngLat():t.position,o=(t.anchor==="none"?(this.autoAnchor=o||"bottom",this.containerDiv.classList.add(this.autoAnchor),new Wh.Marker({anchor:this.autoAnchor,element:this.containerDiv,offset:t.pixelOffset})):(this.containerDiv.classList.add(t.anchor),new Wh.Marker({anchor:t.anchor,element:this.containerDiv,offset:t.pixelOffset}))).setLngLat(i);return o},e.prototype._getAutoAnchor=function(t,n){var i,o,a=this.containerDiv.offsetWidth,l=this.containerDiv.offsetHeight,u=[];return(o=this.marker?(i=(o=t._getMap().project(this.marker.getLngLat())).x,o.y):(o=t6(t.positionsToPixels([n.position]),1),i=(n=t6(o[0],2))[0],n[1]))<l?u.push("top"):o>t.getCanvas().offsetHeight-l&&u.push("bottom"),i<a/2?u.push("left"):i>t.getCanvas().offsetWidth-a/2&&u.push("right"),0<u.length?u.join("-"):"bottom"},e.prototype._replaceMarker=function(t,n,i){var o=this.containerDiv.nextElementSibling;this.marker.remove(),this.containerDiv.classList.remove(this.autoAnchor||this.options.anchor),this.marker=this._createMarker(n,i),this.marker.addTo(t._getMap()),t.popups._getCollectionDiv().insertBefore(this.containerDiv,o||null)},e.prototype._setDraggable=function(t,n){n?(t.addEventListener("mousedown",this._onDown),t.addEventListener("touchstart",this._onDown),t.addEventListener("dragstart",this._onDragStart)):(t.removeEventListener("mousedown",this._onDown),t.removeEventListener("touchstart",this._onDown),t.removeEventListener("dragstart",this._onDragStart))},e.Css={arrow:"popup-arrow",close:"popup-close",container:"popup-container",content:"popup-content-container",hidden:"hidden-accessible-element"},e})(Ob),uKe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),D2=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.anchor="bottom",t.color="#1A73AA",t.draggable=!1,t.htmlContent='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24.5 36.5" id="marker_'.concat(cS(),'" width="24.5" height="36.5" display="block"><path d="M12.25.25a12.2543,12.2543,0,0,0-12,12.4937c0,6.4436,6.4879,12.1093,11.059,22.5641.5493,1.2563,1.3327,1.2563,1.882,0C17.7621,24.8529,24.25,19.1857,24.25,12.7437A12.2543,12.2543,0,0,0,12.25.25Z"   fill="{color}" stroke="{secondaryColor}" stroke-width="0.5"/><text style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; fill: white;" text-anchor="middle" x="12" y="18">{text}</text></svg>'),t.pixelOffset=new Su(0,0),t.position=new od(0,0),t.popup=void 0,t.secondaryColor="white",t.text=void 0,t.visible=!0,t}return uKe(e,r),e._cloneCustomizer=function(t){if(t instanceof bL||E_e(t))return t},e})(Ya),dKe=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}
704r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),z7=(function(r){function e(t){var n=r.call(this)||this;return n._onDrag=function(){var i=n.marker.getLngLat().wrap();n.options.position=new od(i.lng,i.lat),n._invokeEvent("drag",{type:"drag",target:n})},n._onDragStart=function(){n._invokeEvent("dragstart",{type:"dragstart",target:n})},n._onDragEnd=function(){n._invokeEvent("dragend",{type:"dragend",target:n})},n._bubbleElementEvent=function(i){n._invokeEvent(i.type,{type:i.type,target:n})},n._onEleDragStart=function(i){i.preventDefault()},n.options=new D2().merge($o(t,D2._cloneCustomizer)),n._buildMarker(n.options),n}return dKe(e,r),e.prototype.getOptions=function(){return $o(this.options,D2._cloneCustomizer)},e.prototype.getElement=function(){return this.marker.getElement()},e.prototype.setOptions=function(t){t=new D2().merge(this.options,$o(t,D2._cloneCustomizer)),jh(t.htmlContent,this.options.htmlContent)&&t.anchor===this.options.anchor?(typeof t.htmlContent!="string"||t.color===this.options.color&&t.text===this.options.text&&t.secondaryColor===this.options.secondaryColor||(this.element.innerHTML=this._getSubbedHtmlString(t)||""),t.draggable!==this.options.draggable&&(this._setDraggable(t.draggable),this.marker.setDraggable(t.draggable)),jh(t.pixelOffset,this.options.pixelOffset)||this.marker.setOffset(t.pixelOffset),jh(t.position,this.options.position)||this.marker.setLngLat(t.position),t.visible!==this.options.visible&&(t.visible?this.element.classList.remove(e.hiddenClass):this.element.classList.add(e.hiddenClass))):(this.marker.remove(),this._buildMarker(t),this.map&&(this.marker.addTo(this.map._getMap()),this._getCollectionContainer().appendChild(this.element))),this.options=t},e.prototype.togglePopup=function(){if(this.options.popup)if(this.options.popup.isOpen())this.options.popup.close();else{if(!this.map)throw new Error("The marker must be added to a map before calling togglePopup().");this.options.popup.setOptions({position:this.options.position}),this.options.popup.open(this.map)}},e.prototype._addToMap=function(t,n){this.map&&this.map!==t&&this._removeFromMap(),n&&(this.options.position=ql(n),this.marker.setLngLat(this.options.position)),this.map!==t&&(this.map=t,this.marker.addTo(t._getMap()),this._getCollectionContainer().appendChild(this.element))},e.prototype._removeFromMap=function(){this.map&&(this.marker.remove(),delete this.map)},e.prototype._getId=function(){if(this.element)return(typeof this.options.htmlContent=="string"?this.element.firstChild:this.element).id},e.prototype._buildMarker=function(t){var n;typeof t.htmlContent=="string"?(n=this._getSubbedHtmlString(t)||"",this.element=$7.convertHtmlString(n)):this.element=t.htmlContent,this.element.classList.add(e.containerClass),t.draggable&&this._setDraggable(!0),t.visible||this.element.classList.add(e.hiddenClass),this.marker=new Wh.Marker({element:this.element,offset:t.pixelOffset,draggable:t.draggable,anchor:t.anchor}).setLngLat(t.position),this.marker.on("drag",this._onDrag),this.marker.on("dragstart",this._onDragStart),this.marker.on("dragend",this._onDragEnd),this.element.addEventListener("click",this._bubbleElementEvent),this.element.addEventListener("dblclick",this._bubbleElementEvent),this.element.addEventListener("contextmenu",this._bubbleElementEvent),this.element.addEventListener("keydown",this._bubbleElementEvent),this.element.addEventListener("keypress",this._bubbleElementEvent),this.element.addEventListener("keyup",this._bubbleElementEvent),this.element.addEventListener("mousedown",this._bubbleElementEvent),this.element.addEventListener("mouseenter",this._bubbleElementEvent),this.element.addEventListener("mouseleave",this._bubbleElementEvent),this.element.addEventListener("mousemove",this._bubbleElementEvent),this.element.addEventListener("mouseout",this._bubbleElementEvent),this.element.addEventListener("mouseover",this._bubbleElementEvent),this.element.addEventListener("mouseup",this._bubbleElementEvent)},e.prototype._getSubbedHtmlString=function(t){return typeof t.htmlContent=="string"?t.htmlContent.replace(/{color}/gi,t.color||"").replace(/{secondaryColor}/gi,t.secondaryColor||"").replace(/{text}/gi,t.text||""):null},e.prototype._getCollectionContainer=function(){var t=this.map.getCanvasContainer().querySelector(".".concat(e.collectionContainerClass));return t||((t=document.createElement("div")).classList.add(e.collectionContainerClass),this.map.getCanvasContainer().appendChild(t)),t},e.prototype._setDraggable=function(t){t?this.element.addEventListener("dragstart",this._onEleDragStart):this.element.removeEventListener("dragstart",this._onEleDragStart)},e.collectionContainerClass="marker-collection-container",e.hiddenClass="hidden-accessible-element",e.containerClass="marker-container",e})(Ob),hKe=(function(){function r(){}return r.getHighContrastMode=function(){return matchMedia("(-ms-high-contrast: white-on-black)").matches?"dar
704k":matchMedia("(-ms-high-contrast: black-on-white)").matches?"light":matchMedia("(-ms-high-contrast: active)").matches?"dark":matchMedia("(inverted-colors: inverted)").matches?"invert":null},r})();function Nb(r,e){return r||e}function sp(r,e){return r[e]}var E5,Zp=void 0,Gf=null,TX="",j7="function",wL="object",X1="prototype",yG="__proto__",nT="undefined",Q8="constructor",SX="Symbol",fKe="_polyfill",HR="length",J8="name",ud="call",V7="toString",Sv=Nb(Object),IX=sp(Sv,X1),C_e=Nb(String),DS=sp(C_e,X1),pKe=Nb(Math),x_e=Nb(Array),q7=sp(x_e,X1),fb=sp(q7,"slice");function Iu(r,e){try{return{v:r.apply(this,e)}}catch(t){return{e:t}}}function gKe(r,e){return r=Iu(r),r.e?e:r.v}function G7(r){return function(e){return typeof e===r}}function T_e(r){var e="[object "+r+"]";return function(t){return!(!t||mKe(t)!==e)}}function mKe(r){return IX[V7].call(r)}function zs(r){return typeof r===nT||r===nT}function Cr(r){return r===Gf||zs(r)}function yKe(r){return r===Gf||!S_e(r)}function S_e(r){return!!r||r!==Zp}function vKe(r){return E5=E5||["string","number","boolean",nT,"symbol","bigint"],r!==wL&&E5.indexOf(r)!==-1}var Xn=G7("string"),Ci=G7(j7);function ip(r){return!(!r&&Cr(r)||!r||typeof r!==wL)}var io=sp(x_e,"isArray"),_Ke=T_e("Date"),EL=G7("number"),I_e=G7("boolean"),AX=T_e("Error");function BP(r){return!!(r&&r.then&&Ci(r.then))}function eU(r){return!(!r||gKe(function(){return!(r&&0+r)},!r))}var RX=sp(Sv,"getOwnPropertyDescriptor");function jm(r,e){return!!r&&IX.hasOwnProperty[ud](r,e)}var PE=Nb(sp(Sv,"hasOwn"),bKe);function bKe(r,e){return jm(r,e)||!!RX(r,e)}function oo(r,e,t){if(r&&ip(r)){for(var n in r)if(PE(r,n)&&e[ud](r,n,r[n])===-1)break}}var r6={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};function wKe(r){var e,t={};return t[r6.c]=!0,t[r6.e]=!0,r.l&&(t.get=function(){return r.l.v},e=RX(r.l,"v"))&&e.set&&(t.set=function(n){r.l.v=n}),oo(r,function(n,i){t[r6[n]]=zs(i)?t[r6[n]]:i}),t}var pb=sp(Sv,"defineProperty");function Yo(r,e,t){return pb(r,e,wKe(t))}function A_e(r,e,t,n,i){var o={};return oo(r,function(a,l){tU(o,a,e?l:a),tU(o,l,a)}),n?n(o):o}function tU(r,e,t,n){pb(r,e,{value:t,enumerable:!0,writable:!1})}var Yf=Nb(C_e),EKe="[object Error]";function cn(r,e){var t=TX,n=IX[V7][ud](r);n===EKe&&(r={stack:Yf(r.stack),message:Yf(r.message),name:Yf(r.name)});try{t=(t=JSON.stringify(r,Gf,e?typeof e=="number"?e:4:Zp))&&t.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: ")||Yf(r)}catch(i){t=" - "+cn(i,e)}return n+": "+t}function qp(r){throw new Error(r)}function Iv(r){throw new TypeError(r)}var R_e=sp(Sv,"freeze");function CKe(r){return r}function xKe(r){return r[yG]||Gf}var vG=sp(Sv,"assign"),Q1=sp(Sv,"keys");function Tk(r){return R_e&&oo(r,function(e,t){(io(t)||ip(t))&&Tk(t)}),gb(r)}var gb=Nb(R_e,CKe),_G=Nb(sp(Sv,"getPrototypeOf"),xKe);function TKe(r){return A_e(r,1,0,gb)}function SKe(r){return A_e(r,0,0,gb)}function IKe(r){var e={};return oo(r,function(t,n){tU(e,t,n[1]),tU(e,n[0],n[1])}),gb(e)}function AKe(r){return IKe(r)}var C5,P_e=SKe({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),Pie="__tsUtils$gblCfg";function k_e(){var r;return r=(r=(r=(r=typeof globalThis!==nT?globalThis:r)||typeof self===nT?r:self)||typeof window===nT?r:window)||typeof globalThis===nT?r:globalThis}function O_e(){var r;return C5||(r=Iu(k_e).v||{},C5=r[Pie]=r[Pie]||{}),C5}function T_(r,e,t){var n=e&&e[r];return function(i){var o,a=i&&i[r]||n;if(a||t)return o=arguments,(a||t).apply(i,a?fb[ud](o,1):o);Iv('"'+Yf(r)+'" not defined for '+cn(i))}}function RKe(r){return function(e){return e[r]}}var PKe=sp(pKe,"max"),kie=T_("slice",DS),S_=T_("substring",DS),Zw=T_("substr",DS,kKe);function kKe(r,e,t){return Cr(r)&&Iv("Invalid "+cn(r)),t<0?TX:((e=e||0)<0&&(e=PKe(e+r[HR],0)),zs(t)?kie(r,e):kie(r,e,e+t))}function PX(r,e){return S_(r,0,e)}var x5,n6,Ec,Oie="_urid";function OKe(){var r;return x5||(r=O_e(),x5=r.gblSym=r.gblSym||{k:{},s:{}}),x5}function kX(r){var e={description:Yf(r),toString:function(){return SX+"("+r+")"}};return e[fKe]=!0,e}function MKe(r){var e,t,n=OKe();return PE(n.k,r)||(e=kX(r),t=Q1(n.s).length,e[Oie]=function(){return t+"_"+e[V7]()},n.k[r]=e,n.s[e[Oie]()]=Yf(r)),n.k[r]}function NKe(t){n6=n6||{};var e,t=P_e[t];return e=t?n6[t]=n6[t]||kX(SX+"."+t):e}function dC(){Ec=O_e()}function DKe(r){var e={};return Ec||dC(),e.b=Ec.lzy,pb(e,"v",{configurable:!0,get:function(){var t=r();return Ec.lzy||pb(e,"v",{value:t}),e.b=Ec.lzy,t}}),e}function Qm(r){return pb({toJSON:function(){return r}},"v",{value:r})}var WM,M_e="window";function Sk(r,e){var t;return function(){return Ec||dC(),(t=t&&!Ec.lzy?t:Qm(Iu(r,e).v)).v}}function Mm(r){return Ec||dC(),(WM=WM&&r!==!1&&!Ec.lzy?WM:Qm(Iu(k_e).v||Gf)).v}function rl(r,e){return e=WM&&e!==!1?WM.v:Mm(e),e&&e[r]?e[r]:r===M_e?Zf():Gf}function N_e(){return!!zd()}var zd=Sk(rl,["document"]);function Y7(){return!!Zf()}var Zf=Sk(rl,[M_e]);function LKe(){return!!I_()}var I_=Sk(rl,["navigator"]);function HKe(){return!!D_e()}var CL,Mie,T5,D_e=Sk(rl,["history"]),FKe=Sk(function(){return!!Iu(function(){return process&&(process.versions||{}).node}).v}),L_e=Sk(function(){return!!Iu(function(){return self&&self instanceof WorkerGlobalScope}).v});function W7(){return CL=Qm(Iu(rl,[SX]).v)}function UKe(r){var e=(Ec.lzy?0:CL)||W7();return e.v?e.v[r]:Zp}function BKe(){return!!$Ke()}function $Ke(){return Ec||dC(),((Ec.lzy?0:CL)||W7()).v}function OX(r,e){var t=P_e[r],n=(Ec||dC(),(Ec.lzy?0:CL)||W7());return n.v?n.v[t||r]:NKe(r)}function L2(r,e){Ec||dC();var t=(Ec.lzy?0:CL)||W7();return t.v?t.v(r):kX(r)}
vendor: 5,553 bytes, line 704
704function MX(r){return Ec||dC(),((Mie=(Ec.lzy?0:Mie)||Qm(Iu(UKe,["for"]).v)).v||MKe)(r)}function bG(r){return!!r&&Ci(r.next)}function H_e(r){return!yKe(r)&&Ci(r[OX(3)])}function NX(r,e,t){if(r&&(bG(r)||(r=r[(T5=T5||Qm(OX(3))).v]?r[T5.v]():null),bG(r))){var n=Zp,i=Zp;try{for(var o=0;!(i=r.next()).done&&e[ud](t||r,i.value,o,r)!==-1;)o++}catch(a){n={e:a},r.throw&&(i=Gf,r.throw(n))}finally{try{i&&!i.done&&r.return&&r.return(i)}finally{if(n)throw n.e}}}}function JA(r,e,t){return r.apply(e,t)}function eR(r,e){return!zs(e)&&r&&(io(e)?JA(r.push,r,e):bG(e)||H_e(e)?NX(e,function(t){r.push(t)}):r.push(e)),r}function un(r,e,t){if(r)for(var n=r[HR]>>>0,i=0;i<n&&!(i in r&&e[ud](r,r[i],i,r)===-1);i++);}var Gd=T_("indexOf",q7),KM=T_("map",q7);function K7(r,e,t){return(r&&r.slice||fb).apply(r,fb[ud](arguments,1))}var Nie,Die,zKe=T_("reduce",q7),jE=Nb(sp(Sv,"create"),jKe);function jKe(r){var e;return r?((e=typeof r)!==wL&&e!==j7&&Iv("Prototype must be an Object or function: "+cn(r)),t[X1]=r,new t):{};function t(){}}function F_e(r,e){return(Sv.setPrototypeOf||function(t,n){var i;(Nie=Nie||Qm(((i={})[yG]=[],i instanceof Array))).v?t[yG]=n:oo(n,function(o,a){return t[o]=a})})(r,e)}function VKe(r,e,t){function n(){this[Q8]=e,Iu(Yo,[this,J8,{v:r,c:!0,e:!1}])}return Iu(Yo,[e,J8,{v:r,c:!0,e:!1}]),(e=F_e(e,t))[X1]=t===Gf?jE(t):(n[X1]=t[X1],new n),e}function Lie(r,e){e&&(r[J8]=e)}function U_e(r,e,t){var n=Error,i=n[X1][J8],o=Error.captureStackTrace;return VKe(r,function(){var a=arguments;try{Iu(Lie,[n,r]);var l,u=JA(n,this,fb[ud](a))||this;return u!==this&&(l=_G(this))!==_G(u)&&F_e(u,l),o&&o(u,this[Q8]),e&&e(u,a),u}finally{Iu(Lie,[n,i])}},n)}function qKe(r){throw new(Die=Die||U_e("UnsupportedError"))(r)}function g_(){return(Date.now||GKe)()}function GKe(){return new Date().getTime()}function YKe(r){return function(e){return Cr(e)&&Iv("strTrim called ["+cn(e)+"]"),e=e&&e.replace?e.replace(r,TX):e}}var S5,I5,Hie,WKe=YKe(/^\s+|(?=\s)\s+$/g),Cc=T_("trim",DS,WKe);function Bh(r){if(!r||typeof r!==wL)return!1;var e=!1;if(r!==(Hie=Hie||!Y7()||Zf())){I5||(S5=Function[X1][V7],I5=S5[ud](Sv));try{var t=_G(r);e=(e=!t)||(t=jm(t,Q8)?t[Q8]:t)&&typeof t===j7&&S5[ud](t)===I5}catch{}}return e}function KKe(r){return r.value&&$_e(r),!0}var Fie=[JKe,$_e,tZe,eZe];function ZKe(r,e,t,n){var i;return un(r,function(o){if(o.k===e)return i=o,-1}),i||(i={k:e,v:e},r.push(i),n(i)),i.v}function DX(r,e,t,o){var i=t.handler,o=t.path?o?t.path.concat(o):t.path:[],a={handler:t.handler,src:t.src,path:o},l=typeof e,u=!1,h=!1,p=(e&&l===wL?u=Bh(e):h=e===Gf||vKe(l),{type:l,isPrim:h,isPlain:u,value:e,result:e,path:o,origin:t.src,copy:function(m,_){return DX(r,m,_?a:t,_)},copyTo:function(m,_){return B_e(r,m,_,a)}});return p.isPrim?i&&i[ud](t,p)?p.result:e:ZKe(r,e,o,function(m){Yo(p,"result",{g:function(){return m.v},s:function(T){m.v=T}});for(var _=0,C=i;!(C||(_<Fie.length?Fie[_++]:KKe))[ud](t,p);)C=Gf})}function B_e(r,e,t,n){if(!Cr(t))for(var i in t)e[i]=DX(r,t[i],n,i);return e}function XKe(r,e,t){return B_e([],r,e,{handler:t,src:e,path:[]})}function QKe(r,e){return DX([],r,{handler:e,src:r})}function JKe(r){var e,t=r.value;return!!io(t)&&((e=r.result=[]).length=t.length,r.copyTo(e,t),!0)}function eZe(r){var e=r.value;return!!_Ke(e)&&(r.result=new Date(e.getTime()),!0)}function tZe(r){return r.type===j7}function $_e(r){var e,t=r.value;return!(!t||!r.isPlain||(e=r.result={},r.copyTo(e,t),0))}function z_e(r,e){return un(e,function(t){XKe(r,t)}),r}function Uie(r,e,t,n,i,o,a){return z_e(QKe(r)||{},fb[ud](arguments))}function rZe(r,e,t,n,i,o,a){return z_e(r||{},fb[ud](arguments))}var A5,nZe=RKe(HR);function mb(){return Ec||dC(),(A5=A5&&!Ec.lzy?A5:Qm(Iu(rl,["performance"]).v)).v}var j_e=T_("split",DS);function V_e(r,e,t){var n;r&&e&&(n=(e=j_e(e,".")).pop(),un(e,function(i){Cr(r[i])&&(r[i]={}),r=r[i]}),r[n]=t)}var q_e=T_("endsWith",DS,iZe);function iZe(r,e,t){return Xn(r)||Iv("'"+cn(r)+"' is not a string"),e=Xn(e)?e:Yf(e),t=!zs(t)&&t<r[HR]?t:r[HR],S_(r,t-e[HR],t)===e}var Wf=T_("indexOf",DS),R5="ref",P5="unref",k5="hasRef",oZe="enabled";function aZe(r,e,t){var n,i=!0,o=r?e(Gf):Gf;function a(){return i=!1,o&&o[P5]&&o[P5](),n}function l(){o&&t(o),o=Gf}function u(){return o=e(o),i||a(),n}return(n={cancel:l,refresh:u})[k5]=function(){return o&&o[k5]?o[k5]():i},n[R5]=function(){return i=!0,o&&o[R5]&&o[R5](),n},n[P5]=a,{h:n=pb(n,oZe,{get:function(){return!!o},set:function(h){!h&&o&&l(),h&&!o&&u()}}),dn:function(){o=Gf}}}function G_e(r,e,t){var n=io(e),i=n?e.length:0,o=(0<i?e[0]:n?Zp:e)||setTimeout,a=(1<i?e[1]:Zp)||clearTimeout,l=t[0],u=(t[0]=function(){u.dn(),JA(l,Zp,fb[ud](arguments))},aZe(r,function(h){if(h){if(h.refresh)return h.refresh(),h;JA(a,Zp,[h])}return JA(o,Zp,t)},function(h){JA(a,Zp,[h])}));return u.h}function Vm(r,e){return G_e(!0,Zp,fb[ud](arguments))}function sZe(r,e){return G_e(!1,Zp,fb[ud](arguments))}var O5,Y_e=TKe,lZe=AKe,zw=Y_e({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2}),$P="toLowerCase",rU="blkVal",mi="length",nU="rdOnly",iU="notify",oU="warnToConsole",xL="throwInternal",Ik="setDf",OT="watch",Vl="logger",hS="apply",sa="push",Ak="splice",W_e="hdlr",tR="cancel",TL="initialize",Xw="identifier",aU="removeNotificationListener",sU="addNotificationListener",Y0="isInitialized",Bie="instrumentationKey",M5="INACTIVE",ZM="value",i6="getNotifyMgr",lD="getPlugin",J1="name",H2="iKey",FR="time",Dh="processNext",K_e="getProcessTelContext",$ie="pollInternalLogs",rR="enabled",zie="stopPollingInternalLogs",VE="unload",o6="onComplete",lU="version",Z_e="loggingLevelConsole",fS="createNew",R1="teardown",cU="messageId",MT="message",zP="isA
704sync",kE="diagLog",uU="_doTeardown",cD="update",r_="getNext",uD="setNextPlugin",X_e="protocol",wG="userAgent",jP="split",N5="nodeType",NT="replace",Q_e="logInternalMessage",eb="type",LX="handler",mM="status",jie="getResponseHeader",Vie="getAllResponseHeaders",EG="isChildEvt",IA="data",UR="getCtx",A0="setCtx",CG="complete",qie="itemsReceived",F2="urlString",Gie="sendPOST",D5="headers",MI="timeout",Yie="setRequestHeader",xG="traceId",TG="spanId",SG="traceFlags";function cZe(r,e){O5=O5||U_e("AggregationError",function(n,i){1<i[mi]&&(n.errors=i[1])});var t=r;throw un(e,function(n,i){t+=`
705`.concat(i," > ").concat(cn(n))}),new O5(t,e||[])}var L5,J_e="function",e1e="object",HX="undefined",n_="prototype",FX=Object,uZe=FX[n_],t1e=((Mm()||{}).Symbol,(Mm()||{}).Reflect,"hasOwnProperty"),dZe=function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var i in e=arguments[t])uZe[t1e].call(e,i)&&(r[i]=e[i]);return r},$h=vG||dZe,r1e=function(r,e){return(r1e=FX.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var i in n)n[t1e](i)&&(t[i]=n[i])}))(r,e)};function Db(r,e){function t(){this.constructor=r}typeof e!==J_e&&e!==null&&Iv("Class extends value "+String(e)+" is not a constructor or null"),r1e(r,e),r[n_]=e===null?jE(e):(t[n_]=e[n_],new t)}function Wie(r,e){for(var t=0,n=e.length,i=r.length;t<n;t++,i++)r[i]=e[t];return r}var dU="constructor",yb="prototype",hU="function",fU="_dynInstFuncs",IG="_isDynProxy",BR="_dynClass",hZe="_dynCls$",AG="_dynInstChk",dD=AG,n1e="_dfOpts",Kie="_unknown_",UX="__proto__",a6="_dyn"+UX,Zie="__dynProto$Gbl",H5="_dynInstProto",VH="useBaseInst",RG="setInstFuncs",BX=Object,hD=BX.getPrototypeOf,Xie=BX.getOwnPropertyNames,Qie=Mm(),PG=Qie[Zie]||(Qie[Zie]={o:((L5={})[RG]=!0,L5[VH]=!0,L5),n:1e3});function qH(r){return r&&(r===BX[yb]||r===Array[yb])}function $X(r){return qH(r)||r===Function[yb]}function pS(r){if(r){if(hD)return hD(r);var e=r[UX]||r[yb]||(r[dU]?r[dU][yb]:null),t=r[a6]||e;jm(r,a6)||(delete r[H5],t=r[a6]=r[H5]||r[a6],r[H5]=e)}return t}function pU(r,e){var t=[];if(Xie)t=Xie(r);
vendor: 4,167 bytes, line 705
705else for(var n in r)typeof n=="string"&&jm(r,n)&&t.push(n);if(t&&0<t.length)for(var i=0;i<t.length;i++)e(t[i])}function zX(r,e,t){return e!==dU&&typeof r[e]===hU&&(t||jm(r,e))&&e!==UX&&e!==yb}function gU(r){Iv("DynamicProto: "+r)}function fZe(r){var e=jE(null);return pU(r,function(t){!e[t]&&zX(r,t,!1)&&(e[t]=r[t])}),e}function jX(r,e){for(var t=r.length-1;0<=t;t--)if(r[t]===e)return!0;return!1}function pZe(r,e,t,n){function i(u,h,p){var m,_=h[p];return _[IG]&&n&&(m=u[fU]||{})[dD]!==!1&&(_=(m[h[BR]]||{})[p]||_),function(){return _.apply(u,arguments)}}for(var o=jE(null),a=(pU(t,function(u){o[u]=i(e,t,u)}),pS(r)),l=[];a&&!$X(a)&&!jX(l,a);)pU(a,function(u){!o[u]&&zX(a,u,!hD)&&(o[u]=i(e,a,u))}),l.push(a),a=pS(a);return o}function gZe(r,e,t,n){var i=null;if(r&&jm(t,BR)){var o=r[fU]||jE(null);if((i=(o[t[BR]]||jE(null))[e])||gU("Missing ["+e+"] "+hU),!i[AG]&&o[dD]!==!1){for(var a=!jm(r,e),l=pS(r),u=[];a&&l&&!$X(l)&&!jX(u,l);){var h=l[e];if(h){a=h===n;break}u.push(l),l=pS(l)}try{a&&(r[e]=i),i[AG]=1}catch{o[dD]=!1}}}return i}function mZe(r,e,t){var n=e[r];return typeof(n=n===t?pS(e)[r]:n)!==hU&&gU("["+r+"] is not a "+hU),n}function yZe(r,e,t,n,i){var o,a;qH(r)||qH(o=t[fU]=t[fU]||jE(null))||(a=o[e]=o[e]||jE(null),o[dD]!==!1&&(o[dD]=!!i),qH(a))||pU(t,function(l){function u(){return(gZe(this,p,h,u)||mZe(p,h,u)).apply(this,arguments)}var h,p;zX(t,l,!1)&&t[l]!==n[l]&&(a[l]=t[l],delete t[l],jm(r,l)&&(!r[l]||r[l][IG])||(r[l]=(h=r,p=l,u[IG]=1,u)))})}function vZe(r,e){if(hD){for(var t=[],n=pS(e);n&&!$X(n)&&!jX(t,n);){if(n===r)return!0;t.push(n),n=pS(n)}return!1}return!0}function F5(r,e){return jm(r,yb)?r.name||e||Kie:((r||{})[dU]||{}).name||e||Kie}function cs(a,e,h,n){jm(a,yb)||gU("theClass is an invalid class definition.");var i=a[yb],o=(vZe(i,e)||gU("["+F5(a)+"] not in hierarchy of ["+F5(e)+"]"),null),a=(jm(i,BR)?o=i[BR]:(o=hZe+F5(a,"_")+"$"+PG.n,PG.n++,i[BR]=o),cs[n1e]),l=!!a[VH],u=(l&&n&&n[VH]!==void 0&&(l=!!n[VH]),fZe(e)),h=(h(e,pZe(i,e,u,l)),!!hD&&!!a[RG]);yZe(i,o,e,u,(h=h&&n?!!n[RG]:h)!==!1)}cs[n1e]=PG.o;var mU="Promise",VX="rejected";function vb(r,e){return i1e(r,function(t){return e?e({status:"fulfilled",rejected:!1,value:t}):t},function(t){return e?e({status:VX,rejected:!0,reason:t}):t})}function i1e(r,e,t,n){var i=r;try{if(BP(r))(e||t)&&(i=r.then(e,t));else try{e&&(i=e(r))}catch(o){if(!t)throw o;i=t(o)}}finally{}return i}var U5,o1e=["pending","resolving","resolved",VX],Jie="dispatchEvent";function _Ze(r){var e;return!!(e=r&&r.createEvent?r.createEvent("Event"):e)&&e.initEvent}function bZe(r,e,t,n){var i=zd(),i=(U5=U5||Qm(!!Iu(_Ze,[i]).v)).v?i.createEvent("Event"):n?new Event(e):{};t&&t(i),U5.v&&i.initEvent(e,!1,!0),i&&r[Jie]?r[Jie](i):(n=r["on"+e])?n(i):(t=rl("console"))&&(t.error||t.log)(e,cn(i))}var B5,eoe,toe,roe,a1e="unhandledRejection",wZe=a1e.toLowerCase(),EZe=10;function noe(r){return Ci(r)?r.toString():cn(r)}function CZe(r,e,t){var n,i,o=K7(arguments,3),a=0,l=!1,u=[],h=!1,p=null;function m(O,N){return h=!0,p&&p.cancel(),p=null,r(function(H,F){u.push(function(){try{var j=a===2?O:N,L=zs(j)?n:Ci(j)?j(n):j;BP(L)?L.then(H,F):(!j&&a===3?F:H)(L)}catch(B){F(B)}}),l&&C()},o)}function _(){return o1e[a]}function C(){var O;0<u.length&&(O=u.slice(),u=[],h=!0,p&&p.cancel(),p=null,e(O))}function T(O,N){return function(H){a===N&&(O===2&&BP(H)?(a=1,H.then(T(2,1),T(3,1))):(a=O,l=!0,n=H,C(),h||O!==3||(p=p||Vm(S,EZe))))}}function S(){var O;h||(h=!0,FKe()?process.emit(a1e,n,i):(O=Zf()||Mm(),B5=B5||Qm(Iu(rl,[mU+"RejectionEvent"]).v),bZe(O,wZe,function(N){return Yo(N,"promise",{g:function(){return i}}),N.reason=n,N},!!B5.v)))}pb(i={then:m,catch:function(O){return m(void 0,O)},finally:function(O){var N=O,H=O;return Ci(O)&&(N=function(F){return O&&O(),F},H=function(F){throw O&&O(),F}),m(N,H)}},"state",{get:_}),BKe()&&(i[OX(11)]="IPromise"),i.toString=function(){return"IPromise "+_()+(l?" - "+noe(n):"")},Ci(t)||Iv(mU+": executor is not a function - "+noe(t));var R=T(3,0);try{t.call(i,T(2,0),R)}catch(O){R(O)}return i}function xZe(r){return function(e){var t=K7(arguments,1);return r(function(n,i){try{var o=[],a=1;NX(e,function(l,u){l&&(a++,i1e(l,function(h){o[u]=h,--a==0&&n(o)},i))}),--a===0&&n(o)}catch(l){i(l)}},t)}}
705function TZe(r){return Qm(function(e){var t=K7(arguments,1);return r(function(n,i){var o=[],a=1;function l(u,h){a++,vb(u,function(p){p.rejected?o[h]={status:VX,reason:p.reason}:o[h]={status:"fulfilled",value:p.value},--a==0&&n(o)})}try{io(e)?un(e,l):H_e(e)?NX(e,l):Iv("Input is not an iterable"),--a===0&&n(o)}catch(u){i(u)}},t)})}function SZe(r){un(r,function(e){try{e()}catch{}})}function IZe(r){var e=EL(r)?r:0;return function(t){Vm(function(){SZe(t)},e)}}function XM(r,e){return CZe(XM,IZe(e),r,e)}function AZe(r,e){var t=(eoe=eoe||Qm(Iu(rl,[mU]).v||null)).v;if(!t)return XM(r);Ci(r)||Iv(mU+": executor is not a function - "+cn(r));var n=0;return t=new t(function(i,o){r(function(a){n=2,i(a)},function(a){n=3,o(a)})}),pb(t,"state",{get:function(){return o1e[n]}}),t}function _b(r,e){return(toe=toe||Qm(AZe)).v.call(this,r,e)}var RZe=xZe(_b);function PZe(r,e){return(roe=roe||TZe(_b)).v(r,e)}var H0=void 0,Oo="",$x="channels",Yc="core",kG="createPerfMgr",OG="disabled",$R="extensionConfig",AA="extensions",m_="processTelemetry",yU="priority",GH="eventsSent",QM="eventsDiscarded",YH="eventsSendRequest",iT="perfEvent",$5="offlineEventsStored",z5="offlineBatchSent",j5="offlineBatchDrop",vU="getPerfMgr",MG="domain",V5="path",kZe="Not dynamic - ",OZe="getPrototypeOf",MZe=/-([a-z])/g,NZe=/([^\w\d_$])/g,DZe=/^(\d+[\w\d_$])/,LZe=Object[OZe];function DT(r){return!Cr(r)}function _U(r){return r=r&&Xn(r)?(r=(r=r[NT](MZe,function(e,t){return t.toUpperCase()}))[NT](NZe,"_"))[NT](DZe,function(e,t){return"_"+t}):r}function Md(r,e){return!(!r||!e)&&Wf(r,e)!==-1}function VP(r){return r&&r.toISOString()||""}function ea(r){return AX(r)?r[J1]:Oo}function $a(r,e,t,n,i){var o=t;return!r||(o=r[e])===t||i&&!i(o)||n&&!n(t)||(r[e]=o=t),o}function Sh(r,e,t){var n;return r?!(n=r[e])&&Cr(n)&&(n=zs(t)?{}:t,r[e]=n):n=zs(t)?{}:t,n}function s1e(r,e){var t=null,n=null;return Ci(r)?t=r:n=r,function(){var i=arguments;if(n=t?t():n)return n[e][hS](n,i)}}function HZe(r,e,t){if(r&&e&&ip(r)&&ip(e))for(var n in e)(function(i){var o;Xn(i)&&(o=e[i],Ci(o)?t&&!t(i,!0,e,r)||(r[i]=s1e(e,i)):t&&!t(i,!1,e,r)||(PE(r,i)&&delete r[i],Yo(r,i,{g:function(){return e[i]},s:function(a){e[i]=a}})))})(n);return r}function bU(r,e,t,n,i){r&&e&&t&&(r[e]=s1e(t,n))}function yM(r,e,t,n){return r&&e&&ip(r)&&io(t)&&un(t,function(i){Xn(i)&&bU(r,i,e,i)}),r}function FZe(r){return function(){var e=this;r&&oo(r,function(t,n){e[t]=n})}}function l1e(r){return r=r&&vG?FX(vG({},r)):r}function c1e(r,e,t,n,i,o){var a=arguments,l=a[0]||{},u=a[mi],h=!1,p=1;for(0<u&&I_e(l)&&(h=l,l=a[p]||{},p++),ip(l)||(l={});p<u;p++){var m,_,C,T,S=a[p],R=io(S),O=ip(S);for(m in S)(R&&m in S||O&&PE(S,m))&&(_=S[m],C=void 0,h&&_&&((C=io(_))||Bh(_))&&(T=l[m],C?io(T)||(T=[]):Bh(T)||(T={}),_=c1e(h,T,_)),_!==void 0)&&(l[m]=_)}return l}function q5(r,n){var t=!1,n=n&&n.featureOptIn&&n.featureOptIn[r];return t=r&&n?(r=n.mode)==3||r==1:t}function wU(r){try{return r.responseText}catch{}return null}function u1e(r,e){return r?"XDomainRequest,Response:"+wU(r)||"":e}function EU(r,e){return r?"XMLHttpRequest,Status:"+r[mM]+",Response:"+wU(r)||r.response||"":e}function ioe(r,e){return e&&(EL(e)?r=[e].concat(r):io(e)&&(r=e.concat(r))),r}var UZe="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",ooe="withCredentials",BZe="timeout";function $Ze(r,e,t,n,i,o){function a(u,h,p){try{u[h]=p}catch{}}i===void 0&&(i=!1);var l=new XMLHttpRequest;return a(l,UZe,n),t&&a(l,ooe,t),l.open(r,e,!i),t&&a(l,ooe,t),!i&&o&&a(l,BZe,o),l}function zZe(r){var e={};return Xn(r)&&un(Cc(r)[jP](/[\r\n]+/),function(t){var n,i;t&&((i=t.indexOf(": "))!==-1?(n=Cc(t.substring(0,i))[$P](),i=Cc(t.substring(i+1)),e[n]=i):e[Cc(t)]=1)}),e}function G5(r,e,t){return!r[t]&&e&&e[jie]&&(e=e[jie](t))&&(r[t]=Cc(e)),r}var jZe="kill-duration",VZe="kill-duration-seconds",qZe="time-delta-millis";function Y5(r,e){var t={};return r[Vie]?t=zZe(r[Vie]()):e&&(t=G5(t,r,qZe),t=G5(t,r,jZe),t=G5(t,r,VZe)),t}var GZe="documentMode",YZe="location",WZe="console",d1e="JSON",KZe="crypto",ZZe="msCrypto",XZe="ReactNative",NG="msie",DG="trident/",h1e="XMLHttpRequest",W5=null,aoe=null,QZe=!1,U2=null,K5=null;function f1e(r,e){var t,n=!1;if(r){try{(n=e in r)||(t=r[n_])&&(n=e in t)}catch{}if(!n)try{n=!zs(new r()[e])}catch{}}return n}function W0(r){return r&&QZe&&(r=rl("__mockLocation"),r)?r:typeof location===e1e&&location?location:rl(YZe)}function JZe(){return typeof console!==HX?console:rl(WZe)}function SL(){return!!(typeof JSON===e1e&&JSON||rl(d1e)!==null)}function Ev(){return SL()?JSON||rl(d1e):null}function eXe(){return rl(KZe)}function tXe(){return rl(ZZe)}function rXe(){var r=I_();return!(!r||!r.product)&&r.product===XZe}function LG(){var r=I_();return!r||r[wG]===aoe&&W5!==null||(r=((aoe=r[wG])||Oo)[$P](),W5=Md(r,NG)||Md(r,DG)),W5}function p1e(r){var e=((r=(r=r===void 0?null:r)?r:(e=I_()||{})?(e.userAgent||Oo)[$P]():Oo)||Oo)[$P]();return Md(e,NG)?(r=zd()||{},Math.max(parseInt(e[jP](NG)[1]),r[GZe]||0)):Md(e,DG)&&(r=parseInt(e[jP](DG)[1]),r)?r+4:null}function vM(r){return K5=K5!==null&&r!==!1?K5:LKe()&&!!I_().sendBeacon}function qX(r){var e=!1;try{var e=!!rl("fetch"),t=rl("Request");e&&r&&t&&(e=f1e(t,"keepalive"))}catch{}return e}function nXe(){return U2=U2===null&&(U2=typeof XDomainRequest!==HX)&&Z7()?U2&&!f1e(rl(h1e),"withCredentials"):U2}function Z7(){var r=!1;try{r=!!rl(h1e)}catch{}return r}function iXe(r,e){return!!(r&&r.dispatchEvent&&e)&&(r.dispatchEvent(e),!0)}function oXe(r,i){var t,n=null,i={detail:i||null};return Ci(CustomEvent)?n=new CustomEvent(r,i):(t=zd())&&t.createEvent&&(n=t.createEvent("CustomEvent")).initCustomEvent(r,!0,!0,i),n}function aXe(r,e,t){var n=Mm();if(n&&n.CustomEvent)try{return iXe(n,oXe(r,{cfg:e||null,customDetails:t||null}))}catch{}return!1}var g1e=4294967296,OE=4294967295,m1e=123456789,y1e=987654321,v1e=!1,WH=m1e,KH=y1e;function sXe(r){r<0&&(r>>>=0),WH=m1e+r&OE,KH=y1e-r&OE,v1e=!0}function lXe(){try{var r=2147483647&g_();sXe((Math.random()*g1e^r)+r)}catch{}}function cXe(r){return Math.floor(fD()/OE*(r+1))>>>0}function fD(r){var e=0,t=eXe()||tXe();return(e=t&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&OE:e)===0&&LG()&&(v1e||lXe(),e=uXe()&OE),e===0&&(e=Math.floor(g1e*Math.random()|0)),e>>>=0,e}function uXe(r){var e=((KH=36969*(65535&KH)+(KH>>16)&OE)<<16)+(65535&(WH=18e3*(65535&WH)+(WH>>16)&OE))>>>0&OE|0;return e>>>=0,e}function GX(r){r===void 0&&(r=22);for(var e=fD()>>>0,t=0,n=Oo;n[mi]<r;)t++,n+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
705+/".charAt(63&e),e>>>=6,t===5&&(e=(fD()<<2&4294967295|3&e)>>>0,t=0);return n}var _1e="3.3.0",dXe="."+GX(6),hXe=0;function b1e(r){return r[N5]===1||r[N5]===9||!+r[N5]}function fXe(r,e){var t=e[r.id];if(!t){t={};try{b1e(e)&&Yo(e,r.id,{e:!1,v:t})}catch{}}return t}function qm(r,e){return _U(r+hXe+++((e=e===void 0?!1:e)?"."+_1e:Oo)+dXe)}function w1e(r){var e={id:qm("_aiData-"+(r||Oo)+"."+_1e),accept:function(t){return b1e(t)},get:function(t,n,i,o){var a=t[e.id];return a?a[_U(n)]:(o&&((a=fXe(e,t))[_U(n)]=i),i)},kill:function(t,n){if(t&&t[n])try{delete t[n]}catch{}}};return e}function ZH(r){return r&&ip(r)&&(r.isVal||r.fb||PE(r,"v")||PE(r,"mrg")||PE(r,"ref")||r.set)}function E1e(r,e,t){var n,i=t.dfVal||S_e;if(e&&t.fb){var o=t.fb;io(o)||(o=[o]);for(var a=0;a<o[mi];a++){var l=o[a],u=e[l];if(i(u)?n=u:r&&(i(u=r.cfg[l])&&(n=u),r.set(r.cfg,Yf(l),u)),i(n))break}}return n=!i(n)&&i(t.v)?t.v:n}function HG(r,e,t){var n,i=t;return(i=t&&ZH(t)?E1e(r,e,t):i)&&(ZH(i)&&(i=HG(r,e,i)),io(i)?(n=[])[mi]=i[mi]:Bh(i)&&(n={}),n)&&(oo(i,function(o,a){a&&ZH(a)&&(a=HG(r,e,a)),n[o]=a}),i=n),i}function YX(r,e,t,m){var i,o,a,l,u,h,p=m,p=ZH(p)?(i=p.isVal,o=p.set,u=p[nU],_=p[rU],a=p.mrg,!(l=p.ref)&&zs(l)&&(l=!!a),E1e(r,e,p)):m,m=(_&&r[rU](e,t),!0),_=e[t];!_&&Cr(_)||(h=_,m=!1,i&&h!==p&&!i(h)&&(h=p,m=!0),o&&(m=(h=o(h,p,e))===p)),m?h=p&&HG(r,e,p):(Bh(h)||io(p))&&a&&p&&(Bh(p)||io(p))&&oo(p,function(C,T){YX(r,h,C,T)}),r.set(e,t,h),l&&r.ref(e,t),u&&r[nU](e,t)}var qE=MX("[[ai_dynCfg_1]]"),C1e=MX("[[ai_blkDynCfg_1]]"),pXe=MX("[[ai_frcDynCfg_1]]");function x1e(r){var e;return r&&(io(r)?(e=[])[mi]=r[mi]:Bh(r)&&(e={}),e)?(oo(r,function(t,n){e[t]=x1e(n)}),e):r}function gXe(r){if(r){var e=r[qE]||r;if(e.cfg&&(e.cfg===r||e.cfg[qE]===e))return e}return null}function mXe(r){if(r&&(Bh(r)||io(r)))try{r[C1e]=!0}catch{}return r}function Z5(r,e,t){var n=!1;return n=!t||r[e.blkVal]||(n=t[pXe])||t[C1e]?n:Bh(t)||io(t)}function T1e(r){Iv("InvalidAccess:"+r)}var yXe=["push","pop","shift","unshift","splice"],pD=function(r,e,t,n){r&&r[xL](3,108,"".concat(t," [").concat(e,"] failed - ")+cn(n))};function vXe(r,e,t){io(e)&&un(yXe,function(n){var i=e[n];e[n]=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var l=i[hS](this,o);return xU(r,e,t,"Patching"),l}})}function CU(r,e){return r=RX(r,e),r&&r.get}function _Xe(r,e,t,n){var i={n:t,h:[],trk:function(u){u&&u.fn&&(Gd(i.h,u)===-1&&i.h[sa](u),r.trk(u,i))},clr:function(u){u=Gd(i.h,u),u!==-1&&i.h[Ak](u,1)}},o=!0,a=!1;function l(){o&&(a=a||Z5(l,r,n),n&&!n[qE]&&a&&(n=xU(r,n,t,"Converting")),o=!1);var u=r.act;return u&&i.trk(u),n}l[r.prop]={chng:function(){r.add(i)}},Yo(e,i.n,{g:l,s:function(u){if(n!==u){l[r.ro]&&!r.upd&&T1e("["+t+"] is read-only:"+cn(e)),o&&(a=a||Z5(l,r,n),o=!1);var h,p=a&&l[r.rf];if(a)if(p){oo(n,function(m){n[m]=u?u[m]:H0});try{oo(u,function(m,_){X7(r,n,m,_)}),u=n}catch(m){pD((r.hdlr||{})[Vl],t,"Assigning",m),a=!1}}else n&&n[qE]&&oo(n,function(_){var _=CU(n,_);_&&(_=_[r.prop])&&_.chng()});
vendor: 34,732 bytes, line 705
705u!==n&&(h=u&&Z5(l,r,u),!p&&h&&(u=xU(r,u,t,"Converting")),n=u,a=h),r.add(i)}}})}function X7(r,e,t,n){var i;return e&&((i=CU(e,t))&&i[r.prop]?e[t]=n:_Xe(r,e,t,n)),e}function X5(r,e,t,n){if(e){var i=CU(e,t),o=i&&!!i[r.prop],a=n&&n[0],l=n&&n[1],n=n&&n[2];if(!o){if(n)try{mXe(e)}catch(h){pD((r.hdlr||{})[Vl],t,"Blocking",h)}try{X7(r,e,t,e[t]),i=CU(e,t)}catch(h){pD((r.hdlr||{})[Vl],t,"State",h)}}a&&(i[r.rf]=a),l&&(i[r.ro]=l),n&&(i[r.blkVal]=!0)}return e}function xU(r,e,t,n){try{oo(e,function(i,o){X7(r,e,i,o)}),e[qE]||(pb(e,qE,{get:function(){return r[W_e]}}),vXe(r,e,t))}catch(i){pD((r.hdlr||{})[Vl],t,n,i)}return e}var B2="[[ai_",$2="]]";function bXe(r){var e,t=L2(B2+"get"+r.uid+$2),n=L2(B2+"ro"+r.uid+$2),i=L2(B2+"rf"+r.uid+$2),o=L2(B2+"blkVal"+r.uid+$2),a=L2(B2+"dtl"+r.uid+$2),l=null,u=null;function h(m,_){var C=e.act;try{(e.act=m)&&m[a]&&(un(m[a],function(S){S.clr(m)}),m[a]=[]),_({cfg:r.cfg,set:r.set.bind(r),setDf:r[Ik].bind(r),ref:r.ref.bind(r),rdOnly:r[nU].bind(r)})}catch(S){var T=r[Vl];throw T&&T[xL](1,107,cn(S)),S}finally{e.act=C||null}}function p(){if(l){var m=l,_=(l=null,u&&u[tR](),u=null,[]);if(un(m,function(C){if(C&&(C[a]&&(un(C[a],function(T){T.clr(C)}),C[a]=null),C.fn))try{h(C,C.fn)}catch(T){_[sa](T)}}),l)try{p()}catch(C){_[sa](C)}0<_[mi]&&cZe("Watcher error(s): ",_)}}return(t={prop:t,ro:n,rf:i})[rU]=o,t[W_e]=r,t.add=function(m){if(m&&0<m.h[mi]){l=l||[],u=u||Vm(function(){u=null,p()},0);for(var _=0;_<m.h[mi];_++){var C=m.h[_];C&&Gd(l,C)===-1&&l[sa](C)}}},t[iU]=p,t.use=h,t.trk=function(m,_){m&&(m=m[a]=m[a]||[],Gd(m,_)===-1)&&m[sa](_)},e=t}function wXe(r,e){var t={fn:e,rm:function(){t.fn=null,e=r=null}};return Yo(t,"toJSON",{v:function(){return"WatcherHandler"+(t.fn?"":"[X]")}}),r.use(t,e),t}function EXe(r,e,t){var n,i,o=gXe(e);return o||(o=qm("dyncfg",!0),(e={uid:null,cfg:t=e&&t!==!1?e:x1e(e)})[Vl]=r,e[iU]=function(){n[iU]()},e.set=function(a,l,u){try{a=X7(n,a,l,u)}catch(h){pD(r,l,"Setting value",h)}return a[l]},e[Ik]=function(a,l){return l&&oo(l,function(u,h){YX(i,a,u,h)}),a},e[OT]=function(a){return wXe(n,a)},e.ref=function(a,l){return X5(n,a,l,((a={})[0]=!0,a))[l]},e[nU]=function(a,l){return X5(n,a,l,((a={})[1]=!0,a))[l]},e[rU]=function(a,l){return X5(n,a,l,((a={})[2]=!0,a))[l]},e._block=function(a,l){n.use(null,function(u){var h=n.upd;try{zs(l)||(n.upd=l),a(u)}finally{n.upd=h}})},Yo(i=e,"uid",{c:!1,e:!1,w:!1,v:o}),xU(n=bXe(i),t,"config","Creating"),i)}function CXe(r,e){r?(r[oU](e),r[xL](2,108,e)):T1e(e)}function Gm(r,e,t,n){return t=EXe(t,r||{},n),e&&t[Ik](t.cfg,e),t}function Gl(r,e,t){var n=r[qE]||r;return(!n.cfg||n.cfg!==r&&n.cfg[qE]!==n?(CXe(t,kZe+cn(r)),Gm(r,null,t)):n)[OT](e)}function nR(r,e){if(r&&r[VE])return r[VE](e)}function S1e(r,e,t){var n;return t||(n=_b(function(i){t=i})),r&&0<nZe(r)?vb(nR(r[0],e),function(){S1e(K7(r,1),e,t)}):t(),n}var xXe=500,soe="Microsoft_ApplicationInsights_BypassAjaxInstrumentation";function TXe(r,e,t){return!r&&Cr(r)?e:I_e(r)?r:Yf(r)[$P]()==="true"}function O0(r){return{mrg:!0,v:r}}function loe(r,e){return{set:r,v:e}}function TU(r,e,t){return{fb:t,isVal:r,v:e}}function _c(r,e){return{fb:e,set:TXe,v:!!r}}function SXe(r){return{isVal:Xn,v:Yf(Oo)}}var s6,z2,Q5=[GH,QM,YH,iT],SU=null;function IXe(r,e){return function(){var t=arguments,n=I1e(e);n&&(n=n.listener)&&n[r]&&n[r][hS](n,t)}}function AXe(){var r=rl("Microsoft");return SU=r?r.ApplicationInsights:SU}function I1e(r){var e=SU;return(e=e||r.disableDbgExt===!0?e:SU||AXe())?e.ChromeDbgExt:null}function RXe(r){if(!s6){s6={};for(var e=0;e<Q5[mi];e++)s6[Q5[e]]=IXe(Q5[e],r)}return s6}var A1e="warnToConsole",PXe="AI (Internal): ",kXe="AI: ",OXe="AITR_",MXe={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},NXe=((z2={})[0]=null,z2[1]="errorToConsole",z2[2]=A1e,z2[3]="debugToConsole",z2);function coe(r){return r?'"'+r[NT](/\"/g,Oo)+'"':Oo}function J5(r,e){var t,n=JZe();n&&(t="log",n[r]&&(t=r),Ci(n[t]))&&n[t](e)}var gD=(function(){function r(e,t,n,i){n===void 0&&(n=!1),this[cU]=e,this[MT]=(n?kXe:PXe)+e,n=Oo,SL()&&(n=Ev().stringify(i)),e=(t?" message:"+coe(t):Oo)+(i?" props:"+coe(n):Oo),this[MT]+=e}return r.dataType="MessageData",r})();function LS(r,e){return(r||{})[Vl]||new IU(e)}var uoe,NI,IU=(function(){function r(e){this.identifier="DiagnosticLogger",this.queue=[];var t,n,i,o,a,l=0,u={};cs(r,this,function(h){function p(_,C){var T,S;i<=l||(S=!0,T=OXe+C[cU],u[T]?S=!1:u[T]=!0,S&&(_<=n&&(h.queue[sa](C),l++,m(_===1?"error":"warn",C)),l===i)&&(S=new gD(23,T="Internal events throttle limit per PageView reached for this app.",!1),h.queue[sa](S),_===1?h.errorToConsole(T):h[oU](T)))}function m(_,C){var T=I1e(e||{});T&&T[kE]&&T[kE](_,C)}a=Gl(Gm(e||{},MXe,h).cfg,function(_){_=_.cfg,t=_[Z_e],n=_.loggingLevelTelemetry,i=_.maxMessageLimit,o=_.enableDebug}),h.consoleLoggingLevel=function(){return t},h[xL]=function(_,C,T,S,R){if(C=new gD(C,T,R=R===void 0?!1:R,S),o)throw cn(C);T=NXe[_]||A1e,zs(C[MT])?m("throw"+(_===1?"Critical":"Warning"),C):(R?(S=+C[cU],!u[S]&&_<=t&&(h[T](C[MT]),u[S]=!0)):_<=t&&h[T](C[MT]),p(_,C))},h.debugToConsole=function(_){J5("debug",_),m("warning",_)},h[oU]=function(_){J5("warn",_),m("warning",_)},h.errorToConsole=function(_){J5("error",_),m("error",_)},h.resetInternalMessageCount=function(){l=0,u={}},h[Q_e]=p,h[VE]=function(_){a&&a.rm(),a=null}})}return r.__ieDyn=1,r})();function WX(r){return r||new IU}function zr(r,e,t,n,i,o){o===void 0&&(o=!1),WX(r)[xL](e,t,n,i,o)}function LT(r,e){WX(r)[oU](e)}function DXe(r,e,t){WX(r)[Q_e](e,t)}var i_,doe="toGMTString",hoe="toUTCString",KX="cookie",ej="expires",foe="isCookieUseDisabled",FG="disableCookiesUsage",iR="_ckMgr",l6=null,tj=null,poe=null,goe={},AU={},LXe=((uoe={cookieCfg:O0(((NI={})[MG]={fb:"cookieDomain",dfVal:DT},NI.path={fb:"cookiePath",dfVal:DT},NI.enabled=H0,NI.ignoreCookies=H0,NI.blockedCookies=H0,NI)),cookieDomain:H0,cookiePath:H0})[FG]=H0,uoe);function ZX(){i_=i_||DKe(function(){return zd()})}function HXe(r,e){var t=XH[iR]||AU[iR];return t||(t=XH[iR]=XH(r,e),AU[iR]=t),t}function c6(r){return!r||r.isEnabled()}function R1e(r,e){return!!(e&&r&&io(r.ignoreCookies))&&Gd(r.ignoreCookies,e)!==-1}function FXe(r,e){return!!(e&&r&&io(r.blockedCookies)&&Gd(r.blockedCookies,e)!==-1)||R1e(r,e)}function moe(r,n){var t,n=n[rR];return Cr(n)&&(t=void 0,zs(r[foe])||(t=!r[foe]),n=t=zs(r[FG])?t:!r[FG]),n}function XX(r,e){var t;return r&&(t=r.getCookieMgr()),t=t||HXe(e,(r||{})[Vl])}function XH(r,e){r=Gm(r||AU,null,e).cfg,a=Gl(r,function(_){_[Ik](_.cfg,LXe),n=_.ref(_.cfg,"cookieCfg"),i=n[V5]||"/",o=n[MG],l=moe(r,n)!==!1,u=n.getCookie||UXe,h=n.setCookie||boe,p=n.delCookie||boe},e),(t={isEnabled:function(){var _=moe(r,n)!==!1&&l&&yoe(e),C=AU[iR];return _=_&&C&&m!==C?c6(C):_},setEnabled:function(_){l=_!==!1,n[rR]=_},set:function(_,C,T,S,R){var O,N,H,F=!1;return c6(m)&&!FXe(n,_)&&(O={},N=Cc(C||Oo),(H=Wf(N,";"))!==-1&&(N=Cc(PX(C,H)),O=P1e(S_(C,H+1))),$a(O,MG,S||o,eU,zs),Cr(T)||(C=LG(),zs(O[ej])&&0<(H=g_()+1e3*T)&&((S=new Date).setTime(H),$a(O,ej,voe(S,C?doe:hoe)||voe(S,C?doe:hoe)||Oo,eU)),C)||$a(O,"max-age",Oo+T,null,zs),(H=W0())&&H[X_e]==="https:"&&($a(O,"secure",null,null,zs),tj=tj===null?!BXe((I_()||{})[wG]):tj)&&$a(O,"SameSite","None",null,zs),$a(O,V5,R||i,null,zs),h(_,_oe(N,O)),F=!0),F},get:function(_){var C=Oo;return C=c6(m)&&!R1e(n,_)?u(_):C},del:function(_,C){var T=!1;return T=c6(m)?m.purge(_,C):T},purge:function(_,C){var T,S=!1;return yoe(e)&&((T={})[V5]=C||"/",T[ej]="Thu, 01 Jan 1970 00:00:01 GMT",C=T,LG()||(C["max-age"]="0"),p(_,_oe(Oo,C)),S=!0),S}})[VE]=function(_){a&&a.rm(),a=null};var t,n,i,o,a,l,u,h,p,m=t;return m[iR]=m}function yoe(r){if(l6===null){l6=!1,i_||ZX();try{var e=i_.v||{};l6=e[KX]!==void 0}catch(t){zr(r,2,68,"Cannot access document.cookie - "+ea(t),{exception:cn(t)})}}return l6}function P1e(r){var e={};return r&&r[mi]&&un(Cc(r)[jP](";"),function(t){var n;(t=Cc(t||Oo))&&((n=Wf(t,"="))===-1?e[t]=null:e[Cc(PX(t,n))]=Cc(S_(t,n+1)))}),e}function voe(r,e){return Ci(r[e])?r[e]():null}function _oe(r,e){var t=r||Oo;return oo(e,function(n,i){t+="; "+n+(Cr(i)?Oo:"="+i)}),t}function UXe(r){var e,t=Oo;return i_||ZX(),i_.v&&(e=i_.v[KX]||Oo,poe!==e&&(goe=P1e(e),poe=e),t=Cc(goe[r]||Oo)),t}function boe(r,e){i_||ZX(),i_.v&&(i_.v[KX]=r+"="+e)}function BXe(r){return!(!Xn(r)||!Md(r,"CPU iPhone OS 12")&&!Md(r,"iPad; CPU OS 12")&&!(Md(r,"Macintosh; Intel Mac OS X 10_14")&&Md(r,"Version/")&&Md(r,"Safari"))&&(!Md(r,"Macintosh; Intel Mac OS X 10_14")||!q_e(r,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!Md(r,"Chrome/5")&&!Md(r,"Chrome/6")&&(!Md(r,"UnrealEngine")||Md(r,"Chrome"))&&!Md(r,"UCBrowser/12")&&!Md(r,"UCBrowser/11"))}var $Xe={perfEvtsSendAll:!1};function zXe(r){r.h=null;var e=r.cb;r.cb=[],un(e,function(t){Iu(t.fn,[t.arg])})}function _w(r,e,t,n){un(r,function(i){i&&i[e]&&(t?(t.cb[sa]({fn:n,arg:i}),t.h=t.h||Vm(zXe,0,t)):Iu(n,[i]))})}var jXe=(function(){function r(e){this.listeners=[];var t,n=[],i={h:null,cb:[]},o=Gm(e,$Xe)[OT](function(a){t=!!a.cfg.perfEvtsSendAll});cs(r,this,function(a){Yo(a,"listeners",{g:function(){return n}}),a[sU]=function(l){n[sa](l)},a[aU]=function(l){for(var u=Gd(n,l);-1<u;)n[Ak](u,1),u=Gd(n,l)},a[GH]=function(l){_w(n,GH,i,function(u){u[GH](l)})},a[QM]=function(l,u){_w(n,QM,i,function(h){h[QM](l,u)})},a[YH]=function(l,u){_w(n,YH,u?i:null,function(h){h[YH](l,u)})},a[iT]=function(l){!l||!t&&l[EG]()||_w(n,iT,null,function(u){l[zP]?Vm(function(){return u[iT](l)},0):u[iT](l)})},a[$5]=function(l){l&&l[mi]&&_w(n,$5,i,function(u){u[$5](l)})},a[z5]=function(l){l&&l[IA]&&_w(n,z5,i,function(u){u[z5](l)})},a[j5]=function(l,u){var h;0<l&&(h=u||0,_w(n,j5,i,function(p){p[j5](l,h)}))},a[VE]=function(l){function u(){o&&o.rm(),o=null,n=[],i.h&&i.h[tR](),i.h=null,i.cb=[]}var h;if(_w(n,"unload",null,function(p){p=p[VE](l),p&&(h=h||[])[sa](p)}),h)return _b(function(p){return vb(RZe(h),function(){u(),p()})});u()}})}return r.__ieDyn=1,r})(),zR="ctx",UG="ParentContextKey",JM="ChildrenContextKey",VXe=null,QH=(function(){function r(e,t,n){var i,o=this;o.start=g_(),o[J1]=e,o[zP]=n,o[EG]=function(){return!1},Ci(t)&&Yo(o,"payload",{g:function(){return!i&&Ci(t)&&(i=t(),t=null),i}}),o[UR]=function(a){return a?(a===r[UG]||a===r[JM]?o:o[zR]||{})[a]:null},o[A0]=function(a,l){a&&(a===r[UG]?(o[a]||(o[EG]=function(){return!0}),o[a]=l):a===r[JM]?o[a]=l:(o[zR]=o[zR]||{})[a]=l)},o[CG]=function(){var a=0,l=o[UR](r[JM]);if(io(l))for(var u=0;u<l[mi];u++){var h=l[u];h&&(a+=h[FR])}o[FR]=g_()-o.start,o.exTime=o[FR]-a,o[CG]=function(){}}}return r.ParentContextKey="parent",r.ChildrenContextKey="childEvts",r})(),qXe=(function(){function r(e){this.ctx={},cs(r,this,function(t){t.create=function(n,i,o){return new QH(n,i,o)},t.fire=function(n){n&&(n[CG](),e)&&Ci(e[iT])&&e[iT](n)},t[A0]=function(n,i){n&&((t[zR]=t[zR]||{})[n]=i)},t[UR]=function(n){return(t[zR]||{})[n]}})}return r.__ieDyn=1,r})(),rj="CoreUtils.doPerf";function RU(r,e,t,n,i){if(r&&(r=r[vU]?r[vU]():r)){var o,a=void 0,l=r[UR](rj);try{if(a=r.create(e(),n,i))return l&&a[A0]&&(a[A0](QH[UG],l),l[UR])&&l[A0]&&((o=l[UR](QH[JM]))||(o=[],l[A0](QH[JM],o)),o[sa](a)),r[A0](rj,a),t(a)}catch(u){a&&a[A0]&&a[A0]("exception",u)}finally{a&&r.fire(a),r[A0](rj,l)}}return t()}function GXe(){return VXe}function pE(){for(var r,e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t=Oo,n=0;n<4;n++)t+=e[15&(r=fD())]+e[r>>4&15]+e[r>>8&15]+e[r>>12&15]+e[r>>16&15]+e[r>>20&15]+e[r>>24&15]+e[r>>28&15];var i=e[8+(3&fD())|0];return Zw(t,0,8)+Zw(t,9,4)+"4"+Zw(t,13,3)+i+Zw(t,16,3)+Zw(t,19,12)}var BG="00",YXe="ff",k1e="00000000000000000000000000000000",O1e="0000000000000000";function IL(r,e,t){return!(!r||r[mi]!==e||r===t||!r.match(/^[\da-f]*$/i))}function woe(r,e,t){return IL(r,e)?r:t}function WXe(r){for(var e=(r=isNaN(r)||r<0||255<r?1:r).toString(16);e[mi]<2;)e="0"+e;return e}function Eoe(r,e,t,n){var i={};return i[lU]=IL(n,2,YXe)?n:BG,i[xG]=QX(r)?r:pE(),i[TG]=JX(e)?e:PX(pE(),16),i.traceFlags=0<=t&&t<=255?t:1,i}function QX(r){return IL(r,32,k1e)}function JX(r){return IL(r,16,O1e)}function Coe(r){var e,t;return r?(IL(e=WXe(r[SG]),2)||(e="01"),t=r[lU]||BG,"".concat((t=t!=="00"&&t!=="ff"?BG:t).toLowerCase(),"-").concat(woe(r.traceId,32,k1e).toLowerCase(),"-").concat(woe(r.spanId,16,O1e).toLowerCase(),"-").concat(e.toLowerCase())):""}var KXe=w1e("plugin");function HT(r){return KXe.get(r,"state",{},!0)}function xoe(r,e){for(var t=[],n=null,i=r[r_]();i;){var o,a,l=i[lD]();l&&(n&&n[uD]&&l[m_]&&n[uD](l),a=!!(o=HT(l))[Y0],(a=l[Y0]?l[Y0]():a)||t[sa](l),n=l,i=i[r_]())}un(t,function(u){var h=r[Yc]();u[TL](r.getCfg(),h,e,r[r_]()),o=HT(u),u[Yc]||o[Yc]||(o[Yc]=h),o[Y0]=!0,delete o[R1]})}function nj(r){return r.sort(function(e,t){var n,i=0;return t?(n=t[m_],e[m_]?i=n?e[yU]-t[yU]:1:n&&(i=-1)):i=e?1:-1,i})}function ZXe(r){var e={};return{getName:function(){return e[J1]},setName:function(t){e[J1]=t},getTraceId:function(){return e[xG]},setTraceId:function(t){QX(t)&&(e[xG]=t)},getSpanId:function(){return e[TG]},setSpanId:function(t){JX(t)&&(e[TG]=t)},getTraceFlags:function(){return e[SG]},setTraceFlags:function(t){e[SG]=t}}}var Toe,XXe="TelemetryPluginChain",Soe="_hasRun",Ioe="_getTelCtx",Aoe=0;function QXe(r,e,t){for(;r;){if(r[lD]()===t)return r;r=r[r_]()}return gS([t],e.config||{},e)}function eQ(r,e,t,n){var i=null,o=[],a=(e=e||Gm({},null,t[Vl]),n!==null&&(i=n?QXe(r,t,n):r),{_next:function(){var u=i;{var h;i=u?u[r_]():null,u||(h=o)&&0<h[mi]&&(un(h,function(p){try{p.func.call(p.self,p.args)}catch(m){zr(t[Vl],2,73,"Unexpected Exception during onComplete - "+cn(m))}}),o=[])}return u},ctx:{core:function(){return t},diagLog:function(){return LS(t,e.cfg)},getCfg:function(){return e.cfg},getExtCfg:function(u,h){var p=l(u,!0);return h&&oo(h,function(m,_){var C;!Cr(p[m])||!(C=e.cfg[m])&&Cr(C)||(p[m]=C),YX(e,p,m,_)}),e[Ik](p,h)},getConfig:function(_,h,p){p===void 0&&(p=!1);var m,_=l(_,!1),C=e.cfg;return!_||!_[h]&&Cr(_[h])?!C[h]&&Cr(C[h])||(m=C[h]):m=_[h],m||!Cr(m)?m:p},hasNext:function(){return!!i},getNext:function(){return i},setNext:function(u){i=u},iterate:function(u){for(;h=a._next();){var h=h[lD]();h&&u(h)}},onComplete:function(u,h){for(var p=[],m=2;m<arguments.length;m++)p[m-2]=arguments[m];u&&o[sa]({func:u,self:zs(h)?a.ctx:h,args:p})}}});function l(u,h){var p,m=null,_=e.cfg;return _&&u&&(p=_[$R],_[$R]=p=!p&&h?{}:p,p=e.ref(_,$R))&&(m=p[u],p[u]=m=!m&&h?{}:m,m=e.ref(p,u)),m}return a}function Cv(r,e,t,n){var i=Gm(e),o=eQ(r,i,t,n),a=o.ctx;return a[Dh]=function(l){var u=o._next();return u&&u[m_](l,a),!u},a[fS]=function(l,u){return Cv((l=io(l=l===void 0?null:l)?gS(l,i.cfg,t,u):l)||a[r_](),i.cfg,t,u)},a}function PU(r,e,t){var n=Gm(e.config),i=eQ(r,n,e,t),o=i.ctx;return o[Dh]=function(a){var l=i._next();return l&&l[VE](o,a),!l},o[fS]=function(a,l){return PU((a=io(a=a===void 0?null:a)?gS(a,n.cfg,e,l):a)||o[r_](),e,l)},o}function tQ(r,e,t){var n=Gm(e.config),i=eQ(r,n,e,t).ctx;return i[Dh]=function(o){return i.iterate(function(a){Ci(a[cD])&&a[cD](i,o)})},i[fS]=function(o,a){return tQ((o=io(o=o===void 0?null:o)?gS(o,n.cfg,e,a):o)||i[r_](),e,a)},i}function gS(r,e,t,n){var i,o=null,a=!n;return io(r)&&0<r[mi]&&(i=null,un(r,function(l){(a=a||n!==l?a:!0)&&l&&Ci(l[m_])&&(l=JXe(l,e,t),o=o||l,i&&i._setNext(l),i=l)})),n&&!o?gS([n],e,t):o}function JXe(r,e,t){var n=null,i=Ci(r[m_]),o=Ci(r[uD]),a=r?r[Xw]+"-"+r[yU]+"-"+Aoe++:"Unknown-0-"+Aoe++,l={getPlugin:function(){return r},getNext:function(){return n},processTelemetry:function(h,p){u(p=p||(function(){var m;return r&&Ci(r[Ioe])&&(m=r[Ioe]()),m=m||Cv(l,e,t),m})(),function(m){var _;return!(!r||!i||(_=HT(r))[R1]||_[OG]||(o&&r[uD](n),r[m_](h,m),0))},"processTelemetry",function(){return{item:h}},!h.sync)||p[Dh](h)},unload:function(h,p){u(h,function(){var m,_,C=!1;return r&&(m=HT(r),_=r[Yc]||m[Yc],!r||_&&_!==h.core()||m[R1]||(m[Yc]=null,m[R1]=!0,m[Y0]=!1,r[R1]&&r[R1](h,p)===!0&&(C=!0))),C},"unload",function(){},p[zP])||h[Dh](p)},update:function(h,p){u(h,function(){var m,_,C=!1;return r&&(m=HT(r),_=r[Yc]||m[Yc],!r||_&&_!==h.core()||m[R1]||r[cD]&&r[cD](h,p)===!0&&(C=!0)),C},"update",function(){},!1)||h[Dh](p)},_id:a,_setNext:function(h){n=h}};function u(h,p,m,_,C){var T=!1,S=r?r[Xw]:XXe,R=(R=h[Soe])||(h[Soe]={});return h.setNext(n),r&&RU(h[Yc](),function(){return S+":"+m},function(){R[a]=!0;try{var O=n?n._id:Oo;O&&(R[O]=!1),T=p(h)}catch(N){O=!n||R[n._id],O&&(T=!0),n&&O||zr(h[kE](),1,73,"Plugin ["+S+"] failed during "+m+" - "+cn(N)+", run flags: "+cn(R))}},_,C),T}return gb(l)}function M1e(){var r=[];return{add:function(e){e&&r[sa](e)},run:function(e,t){un(r,function(n){try{n(e,t)}catch(i){zr(e[kE](),2,73,"Unexpected error calling unload handler - "+cn(i))}}),r=[]}}}function N1e(){var r=[];return{run:function(e){var t=r;r=[],un(t,function(n){try{(n.rm||n.remove).call(n)}catch(i){zr(e,2,73,"Unloading:"+cn(i))}})},add:function(e){e&&eR(r,e)}}}var bw="getPlugin",eQe=((Toe={})[$R]={isVal:DT,v:{}},Toe),Rk=(function(){function r(){var e,t,n,i,o,a=this;function l(_){var m,_=_=_===void 0?null:_;return _||(m=t||Cv(null,{},a[Yc]),_=n&&n[bw]?m[fS](null,n[bw]):m[fS](null,n)),_}function u(p,m,_){Gm(p,eQe,LS(m)),!_&&m&&(_=m[K_e]()[r_]());var C=n;n&&n[bw]&&(C=n[bw]()),a[Yc]=m,t=Cv(_,p,m,C)}function h(){e=!1,a[Yc]=null,n=t=null,o=N1e(),i=M1e()}h(),cs(r,a,function(p){p[TL]=function(m,_,C,T){u(m,_,T),e=!0},p[R1]=function(m,_){var C,T,S,R,O=p[Yc];if(O&&(!m||O===m[Yc]()))return T=!1,S=m||PU(null,O,n&&n[bw]?n[bw]():n),R=_||((m={reason:0})[zP]=!1,m),p[uU]&&p[uU](S,R,N)===!0?C=!0:N(),C;function N(){T||(T=!0,i.run(S,_),o.run(S[kE]()),C===!0&&S[Dh](R),h())}},p[cD]=function(m,_){var C,T,S,R=p[Yc];if(R&&(!m||R===m[Yc]()))return T=!1,S=m||tQ(null,R,n&&n[bw]?n[bw]():n),p._doUpdate&&p._doUpdate(S,_||{reason:0},O)===!0?C=!0:O(),C;function O(){T||(T=!0,u(S.getCfg(),S.core(),S[r_]()))}},bU(p,"_addUnloadCb",function(){return i},"add"),bU(p,"_addHook",function(){return o},"add"),Yo(p,"_unloadHooks",{g:function(){return o}})}),a[kE]=function(p){return l(p)[kE]()},a[Y0]=function(){return e},a.setInitialized=function(p){e=p},a[uD]=function(p){n=p},a[Dh]=function(p,m){m?m[Dh](p):n&&Ci(n[m_])&&n[m_](p,null)},a._getTelCtx=l}return r.__ieDyn=1,r})();function tQe(r,e,t){var n={id:e,fn:t};return eR(r,n),{remove:function(){un(r,function(i,o){if(i.id===n.id)return r[Ak](o,1),-1})}}}function rQe(r,e,t){for(var n=!1,i=r[mi],o=0;o<i;++o){var a=r[o];if(a)try{if(a.fn[hS](null,[e])===!1){n=!0;break}}catch(l){zr(t,2,64,"Telemetry initializer failed: "+ea(l),{exception:cn(l)},!0)}}return!n}var ox,nQe=(function(r){function e(){var t,n,i=r.call(this)||this;function o(){t=0,n=[]}return i.identifier="TelemetryInitializerPlugin",i.priority=199,o(),cs(e,i,function(a,l){a.addTelemetryInitializer=function(u){return tQe(n,t++,u)},a[m_]=function(u,h){rQe(n,u,(h||a)[kE]())&&a[Dh](u,h)},a[uU]=function(){o()}}),i}return Db(e,r),e.__ieDyn=1,e})(Rk),D1e="Plugins must provide initialize method",iQe="_notificationManager",Roe="SDK is still unloading...",oQe="SDK is not initialized",aQe=100,sQe=5e4,ij=Tk(((ox={cookieCfg:{}})[AA]={rdOnly:!0,ref:!0,v:[]},ox[$x]={rdOnly:!0,ref:!0,v:[]},ox[$R]={ref:!0,v:{}},ox[kG]=H0,ox.loggingLevelConsole=0,ox.diagnosticLogInterval=H0,ox));function lQe(r,e){return new qXe(e)}function cQe(r,e,t){var n=[],i=[],o={};return un(t,function(a){(Cr(a)||Cr(a[TL]))&&qp(D1e);var l=a[yU],u=a[Xw];a&&l&&(Cr(o[l])?o[l]=u:LT(r,"Two extensions have same priority #"+l+" - "+o[l]+", "+u)),(!l||l<e?n:i)[sa](a)}),(t={})[Yc]=n,t[$x]=i,t}function Poe(r,e){var t=!1;return un(e,function(n){if(n===r)return t=!0,-1}),t}function $G(r,e,t,n){t&&oo(t,function(i,o){n&&Bh(o)&&Bh(e[i])&&$G(r,e[i],o,n),n&&Bh(o)&&Bh(e[i])?$G(r,e[i],o,n):r.set(e,i,o)})}function koe(r,e){var t=null,n=-1;return un(r,function(i,o){if(i.w===e)return t=i,n=o,-1}),{i:n,l:t}}function uQe(r,e){var t=koe(r,e).l;return t||r[sa](t={w:e,rm:function(){var n=koe(r,e);n.i!==-1&&r[Ak](n.i,1)}}),t}function dQe(r,e,t){un(e,function(n){var i=Gl(r,n.w,t);delete n.w,n.rm=function(){i.rm()}})}function hQe(r,e,t,n){return e.add(r[OT](function(i){var o=i.cfg.disableDbgExt;o===!0&&n&&(t[aU](n),n=null),t&&!n&&o!==!0&&(n=RXe(i.cfg),t[sU](n))})),n}function fQe(r){return Yo({rm:function(){r.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(r)+">"}})}var pQe=(function(){function r(){var e,t,n,i,o,a,l,u,h,p,m,_,C,T,S,R,O,N,H,F,j,L,B,Q,Z,ie,J,ne,ue,K,se,be;cs(r,this,function(de){function ge(){ue=!0,Cr(j)?(ie=zw[M5],zr(n,1,112,"ikey can't be resolved from promises")):ie=zw.ACTIVE,Ue()}function Ue(){t&&(de.releaseQueue(),de[$ie]())}function Qe(te){return K&&K[rR]||be||(te||n&&0<n.queue[mi])&&(se||(se=!0,re(e[OT](function(Ae){var Ae=Ae.cfg.diagnosticLogInterval,_e=(Ae&&0<Ae||(Ae=1e4),!1);K&&(_e=K[rR],K[tR]()),(K=sZe(qe,Ae)).unref(),K[rR]=_e}))),K[rR]=!0),K}function ve(){function te(Ae){Ae&&un(Ae,function(_e){var Ve;_e[Xw]&&_e[lU]&&!me[_e.identifier]&&(Ve=_e[Xw]+"="+_e[lU],Q[sa](Ve),me[_e.identifier]=_e)})}var me={};Q=[],te(_),m&&un(m,function(Ae){te(Ae)}),te(p)}function pe(){t=!1,(e=Gm({},ij,de[Vl])).cfg[Z_e]=1,Yo(de,"config",{g:function(){return e.cfg},s:function(me){de.updateCfg(me,!1)}}),Yo(de,"pluginVersionStringArr",{g:function(){return Q||ve(),Q}}),Yo(de,"pluginVersionString",{g:function(){return Z||(Q||ve(),Z=Q.join(";")),Z||Oo}}),Yo(de,"logger",{g:function(){return n||(n=new IU(e.cfg),e[Vl]=n),n},s:function(me){e[Vl]=me,n!==me&&(nR(n,!1),n=me)}}),de[Vl]=new IU(e.cfg),B=[];var te=de.config[AA]||[];te.splice(0,te[mi]),eR(te,B),T=new nQe,nR(o,!(i=[])),l=a=o=null,nR(u,!1),C=!(p=[]),R=qm("AIBaseCore",!(S=_=m=h=u=null)),O=M1e(),j=F=null,N=N1e(),ie=0,ne=J=K=Q=Z=null,ue=se=be=!(L=[])}function He(){var te=Cv(tt(),e.cfg,de);return te[o6](Qe),te}function Re(te){var me=cQe(de[Vl],xXe,p),me=(Q=Z=h=null,_=nj(eR(_=(m||[])[0]||[],me[$x])),eR(nj(me[Yc]),_)),Ae=(B=gb(me),de.config[AA]||[]),Ae=(Ae.splice(0,Ae[mi]),eR(Ae,B),He());_&&0<_[mi]&&xoe(Ae[fS](_),me),xoe(Ae,me),te&&Et(te)}function $e(te){var me=null,Ae=null,_e=[];return un(B,function(Ve){if(Ve[Xw]===te&&Ve!==T)return Ae=Ve,-1;Ve.getChannel&&_e[sa](Ve)}),!Ae&&0<_e[mi]&&un(_e,function(Ve){if(!(Ae=Ve.getChannel(te)))return-1}),me=Ae?{plugin:Ae,setEnabled:function(Ve){HT(Ae)[OG]=!Ve},isEnabled:function(){var Ve=HT(Ae);return!Ve[R1]&&!Ve[OG]},remove:function(Ve,it){var vt,kt=[Ae];(vt={reason:1})[zP]=Ve=Ve===void 0?!0:Ve,ot(kt,vt,function(rt){rt&&Re({reason:32,removed:kt}),it&&it(rt)})}}:me}function tt(){var te;return h||(te=(B||[]).slice(),Gd(te,T)===-1&&te[sa](T),h=gS(nj(te),e.cfg,de)),h}function ot(te,me,Ae){var _e;te&&0<te[mi]?((_e=PU(gS(te,e.cfg,de),de))[o6](function(){var Ve=!1,it=[],vt=(un(p,function(kt,rt){Poe(kt,te)?Ve=!0:it[sa](kt)}),p=it,Q=Z=null,[]);m&&(un(m,function(kt,rt){var bt=[];un(kt,function(Xe){Poe(Xe,te)?Ve=!0:bt[sa](Xe)}),vt[sa](bt)}),m=vt),Ae&&Ae(Ve),Qe()}),_e[Dh](me)):Ae(!1)}function qe(){var te;n&&n.queue&&(te=n.queue.slice(0),n.queue[mi]=0,un(te,function(_e){(Ae={})[J1]=S||"InternalMessageId: "+_e[cU],Ae[H2]=j,Ae[FR]=VP(new Date),Ae.baseType=gD.dataType,Ae.baseData={message:_e[MT]};var Ae,_e=Ae;de.track(_e)}))}function lt(te,me,Ae,_e){var Ve=1,it=!1,vt=null;function kt(){Ve--,it&&Ve===0&&(vt&&vt[tR](),vt=null,me&&me(it),me=null)}return _e=_e||5e3,_&&0<_[mi]&&He()[fS](_).iterate(function(rt){var bt;rt.flush&&(Ve++,bt=!1,rt.flush(te,function(){bt=!0,kt()},Ae)||bt||(te&&vt==null?vt=Vm(function(){vt=null,kt()},_e):kt()))}),it=!0,kt(),!0}function Et(te){var me=tQ(tt(),de);me[o6](Qe),de._updateHook&&de._updateHook(me,te)===!0||me[Dh](te)}function Oe(te){var me=de[Vl];me?(zr(me,2,73,te),Qe()):qp(te)}function le(te){var me=de[i6]();me&&me[QM]([te],2)}function re(te){N.add(te)}pe(),de._getDbgPlgTargets=function(){return[B,i]},de[Y0]=function(){return t},de.activeStatus=function(){return ie},de._setPendingStatus=function(){ie=3},de[TL]=function(te,me,Ae,it){C&&qp(Roe),de[Y0]()&&qp("Core cannot be initialized more than once"),e=Gm(te,ij,Ae||de[Vl],!1),te=e.cfg,re(e[OT](function(vt){var kt,rt,bt,Xe,ct=vt.cfg;ie!==3&&(ne=ct.initInMemoMaxSize||aQe,rt=ct[Bie],bt=ct.endpointUrl,Cr(rt)?(j=null,ie=zw[M5],kt="Please provide instrumentation key",t?(zr(n,1,100,kt),Ue()):qp(kt)):(kt=[],j=BP(rt)?(kt[sa](rt),null):rt,J=BP(bt)?(kt[sa](bt),null):bt,kt[mi]?(ue=!1,ie=3,rt=DT(ct.initTimeOut)?ct.initTimeOut:sQe,bt=PZe(kt),Vm(function(){ue||ge()},rt),vb(bt,function(Me){try{var X,z,W;ue||(Me.rejected||((X=Me[ZM])&&X[mi]&&(z=X[0],j=z&&z[ZM],1<X[mi])&&(W=X[1],J=W&&W[ZM]),j&&(te[Bie]=j,te.endpointUrl=J)),ge())}catch{ue||ge()}})):ge(),oo(Xe=vt.ref(vt.cfg,$R),function(Me){vt.ref(Xe,Me)})))})),H=hQe(e,N,(o=it)&&de[i6](),H),re(e[OT](function(vt){var kt;vt.cfg.enablePerfMgr?(kt=vt.cfg[kG],Ve!==kt&&(Sh(vt.cfg,kG,kt=kt||lQe),Ve=kt,l=null),a||l||!Ci(kt)||(l=kt(de,de[i6]()))):Ve=l=null})),de[Vl]=Ae;var Ve,it=te[AA];(p=[])[sa].apply(p,Wie(Wie([],me,!1),it)),m=te[$x],Re(null),_&&_[mi]!==0||qp("No "+$x+" available"),m&&1<m[mi]&&((Ae=de[lD]("TeeChannelController"))&&Ae.plugin||zr(n,1,28,"TeeChannel required")),dQe(te,L,n),t=!(L=null),ie===zw.ACTIVE&&Ue()},de.getChannels=function(){var te=[];return _&&un(_,function(me){te[sa](me)}),gb(te)},de.track=function(te){RU(de[vU](),function(){return"AppInsightsCore:track"},function(){te===null&&(le(te),qp("Invalid telemetry item")),!te[J1]&&Cr(te[J1])&&(le(te),qp("telemetry name required")),te[H2]=te[H2]||j,te[FR]=te[FR]||VP(new Date),te.ver=te.ver||"4.0",!C&&de[Y0]()&&ie===zw.ACTIVE?He()[Dh](te):ie!==zw[M5]&&i[mi]<=ne&&i[sa](te)},function(){return{item:te}},!te.sync)},de[K_e]=He,de[i6]=function(){return o||(o=new jXe(e.cfg),de[iQe]=o),o},de[sU]=function(te){de.getNotifyMgr()[sU](te)},de[aU]=function(te){o&&o[aU](te)},de.getCookieMgr=function(){return u=u||XH(e.cfg,de[Vl])},de.setCookieMgr=function(te){u!==te&&(nR(u,!1),u=te)},de[vU]=function(){return a||l||GXe()},de.setPerfMgr=function(te){a=te},de.eventCnt=function(){return i[mi]},de.releaseQueue=function(){var te;t&&0<i[mi]&&(te=i,i=[],ie===2?un(te,function(me){me[H2]=me[H2]||j,He()[Dh](me)}):zr(n,2,20,"core init status is not active"))},de[$ie]=function(te){return S=te||null,be=!1,K&&K[tR](),Qe(!0)},de[zie]=function(){be=!0,K&&K[tR](),qe()},yM(de,function(){return T},["addTelemetryInitializer"]),de[VE]=function(te,me,Ae){te===void 0&&(te=!0),t||qp(oQe),C&&qp(Roe),(_e={reason:50})[zP]=te,_e.flushComplete=!1;var _e,Ve,it=_e,vt=(te&&!me&&(Ve=_b(function(kt){me=kt})),PU(tt(),de));return vt[o6](function(){N.run(de[Vl]),S1e([u,o,n],te,function(){pe(),me&&me(it)})},de),qe(),lt(te,function(kt){it.flushComplete=kt,C=!0,O.run(vt,it),de[zie](),vt[Dh](it)},6,Ae),Ve},de[lD]=$e,de.addPlugin=function(te,me,Ae,_e){var Ve,it,vt;function kt(){p[sa](te),it.added=[te],Re(it),_e&&_e(!0)}te?(Ve=$e(te[Xw]))&&!me?(_e&&_e(!1),Oe("Plugin ["+te[Xw]+"] is already loaded!")):(it={reason:16},Ve?ot(vt=[Ve.plugin],{reason:2,isAsync:!!Ae},function(rt){rt?(it.removed=vt,it.reason|=32,kt()):_e&&_e(!1)}):kt()):(_e&&_e(!1),Oe(D1e))},de.updateCfg=function(te,me){var Ae,_e;me===void 0&&(me=!0),de[Y0]()&&(Ae={reason:1,cfg:e.cfg,oldCfg:Uie({},e.cfg),newConfig:Uie({},te),merge:me},te=Ae.newConfig,_e=e.cfg,te[AA]=_e[AA],te[$x]=_e[$x]),e._block(function(Ve){var it=Ve.cfg;$G(Ve,it,te,me),me||oo(it,function(vt){PE(te,vt)||Ve.set(it,vt,H0)}),Ve[Ik](it,ij)},!0),e[iU](),Ae&&Et(Ae)},de.evtNamespace=function(){return R},de.flush=lt,de.getTraceCtx=function(te){return F=F||ZXe()},de.setTraceCtx=function(te){F=te||null},de.addUnloadHook=re,bU(de,"addUnloadCb",function(){return O},"add"),de.onCfgChange=function(te){return te=t?Gl(e.cfg,te,de[Vl]):uQe(L,te),fQe(te)},de.getWParam=function(){return N_e()||e.cfg.enableWParam?0:-1}})}return r.__ieDyn=1,r})();function oj(r,e){try{if(r&&r!==""){var t=Ev().parse(r);if(t&&t[qie]&&t[qie]>=t.itemsAccepted&&t.itemsReceived-t.itemsAccepted===t.errors[mi])return t}}catch(n){zr(e,1,43,"Cannot parse the response. "+(n[J1]||cn(n)),{response:r})}return null}var T0="",gQe="NoResponseBody",Ooe="&"+gQe+"=true",aj="POST",mQe=(function(){function r(){var e,t,n,i,o,a,l,u,h,p,m,_,C,T=0;cs(r,this,function(S,R){var O=!0;function N(J,ne){zr(n,2,26,"Failed to send telemetry.",{message:J}),F(ne,400,{})}function H(J){N("No endpoint url is provided for the batch",J)}function F(J,ne,ue,K){try{J&&J(ne,ue,K)}catch{}}function j(J,ne){var ue,K=I_();return(ue=J[F2])?(ue=J[F2]+(_?Ooe:T0),J=J[IA],J=i?J:new Blob([J],{type:"text/plain;charset=UTF-8"}),K.sendBeacon(ue,J)):(H(ne),!0)}function L(J,ne,ue){var K,se=J[IA];try{se&&(j(J,ne)?F(ne,200,{},T0):(K=o&&o.beaconOnRetry)&&Ci(K)?K(J,ne,j):(l&&l[Gie](J,ne,!0),zr(n,2,40,". Failed to send telemetry with Beacon API, retried with normal sender.")))}catch(be){i&&LT(n,"Failed to send telemetry using sendBeacon API. Ex:"+cn(be)),F(ne,i?0:400,{},T0)}}function B(J,ne,ue){var K,se,be,de,ge=J[D5]||{},Ue=(!ue&&e&&(K=_b(function(ve,pe){se=ve,be=pe})),i&&ue&&J.disableXhrSync&&(ue=!1),J[F2]);if(Ue)return de=$Ze(aj,Ue,O,!0,ue,J[MI]),i||de[Yie]("Content-type","application/json"),un(Q1(ge),function(ve){de[Yie](ve,ge[ve])}),de.onreadystatechange=function(){i||(Qe(de),de.readyState===4&&se&&se(!0))},de.onload=function(){i&&Qe(de)},de.onerror=function(ve){F(ne,i?de[mM]:400,Y5(de,i),i?T0:EU(de)),be&&be(ve)},de.ontimeout=function(){F(ne,i?de[mM]:500,Y5(de,i),i?T0:EU(de)),se&&se(!1)},de.send(J[IA]),K;function Qe(ve){var pe=o&&o.xhrOnComplete;pe&&Ci(pe)?pe(ve,ne,J):(pe=wU(ve),F(ne,ve[mM],Y5(ve,i),pe))}H(ne),se&&se(!1)}function Q(J,ne,ue){var K,se,be,de=J[F2],ve=J[IA],ge=i?ve:new Blob([ve],{type:"application/json"}),Ue=new Headers,Qe=ve[mi],ve=!1,pe=!1,He=J[D5]||{},Re=((ge={method:aj,body:ge})[soe]=!0,J.headers&&0<Q1(J.headers)[mi]&&(un(Q1(He),function(ot){Ue.append(ot,He[ot])}),ge[D5]=Ue),O&&i&&(ge.credentials="include"),ue&&(ge.keepalive=!0,T+=Qe,i?J._sendReason===2&&(ve=!0,_)&&(de+=Ooe):ve=!0),new Request(de,ge));try{Re[soe]=!0}catch{}if(!ue&&e&&(K=_b(function(ot,qe){se=ot,be=qe})),de){try{vb(fetch(i?de:Re,i?ge:null),function(ot){if(ue&&(T-=Qe,Qe=0),!pe)if(pe=!0,ot.rejected)$e(ot.reason&&ot.reason[MT]),be&&be(ot.reason);else{var qe=ot[ZM];try{i||qe.ok?i&&!qe.body?(tt(qe,null,T0),se&&se(!0)):vb(qe.text(),function(lt){tt(qe,J,lt[ZM]),se&&se(!0)}):($e(qe.statusText),se&&se(!1))}catch(lt){$e(cn(lt)),be&&be(lt)}}})}catch(ot){pe||($e(cn(ot)),be&&be(ot))}return ve&&!pe&&(pe=!0,F(ne,200,{}),se)&&se(!0),i&&!pe&&0<J[MI]&&C&&C.set(function(){pe||(pe=!0,F(ne,500,{}),se&&se(!0))},J[MI]),K}function $e(ot){F(ne,i?0:400,{},i?T0:ot)}function tt(ot,qe,lt){var Et=ot[mM],Oe=o.fetchOnComplete;Oe&&Ci(Oe)?Oe(ot,ne,lt||T0,qe):F(ne,Et,{},lt||T0)}H(ne),se&&se(!1)}function Z(J,ne,ue){var be=Zf(),K=new XDomainRequest,se=J[IA],be=(K.onload=function(){var ge=wU(K),Ue=o&&o.xdrOnComplete;Ue&&Ci(Ue)?Ue(K,ne,J):F(ne,200,{},ge)},K.onerror=function(){F(ne,400,{},i?T0:u1e(K))},K.ontimeout=function(){F(ne,500,{})},K.onprogress=function(){},be&&be.location&&be.location[X_e]||""),de=J[F2];de?i||de.lastIndexOf(be,0)===0?(be=i?de:de[NT](/^(https?:)/,""),K.open(aj,be),J[MI]&&(K[MI]=J[MI]),K.send(se),i&&ue?C&&C.set(function(){K.send(se)},0):K.send(se)):(zr(n,2,40,". "+(de="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.")),N(de,ne)):H(ne)}function ie(){T=0,_=m=p=h=u=e=t=!1,C=l=a=o=i=n=null}ie(),S[TL]=function(J,ne){n=ne,t&&zr(n,1,28,"Sender is already initialized"),S.SetConfig(J),t=!0},S._getDbgPlgTargets=function(){return[t,i,a,e]},S.SetConfig=function(J){try{var ne;return o=J.senderOnCompleteCallBack||{},a=!!J.disableCredentials,i=!!J.isOneDs,e=!!J.enableSendPromise,u=!!J.disableXhr,h=!!J.disableBeacon,p=!!J.disableBeaconSync,C=J.timeWrapper,_=!!J.addNoResponse,m=!!J.disableFetchKeepAlive,l={sendPOST:B},i||(O=!1),a&&(ne=W0())&&ne.protocol&&ne.protocol[$P]()==="file:"&&(O=!1),!0}catch{}return!1},S.getSyncFetchPayload=function(){return T},S.getSenderInst=function(J,ne){if(J&&J[mi]){for(var ue=J,K=ne,se=0,be=null,de=0;be==null&&de<ue[mi];)se=ue[de],u||se!==1?se!==2||!qX(K)||K&&m?se!==3||!vM()||(K?p:h)||(be=L):be=Q:nXe()?be=Z:Z7()&&(be=B),de++;return be?((J={_transport:se,_isSync:K})[Gie]=be,J):null}return null},S.getFallbackInst=function(){return l},S[uU]=function(J,ne){ie()}})}return r.__ieDyn=1,r})(),L1e="on",Moe="attachEvent",Noe="addEventListener",Doe="detachEvent",Loe="removeEventListener",zG="events",jG="visibilitychange",Q7="pagehide",H1e="unload",F1e="beforeunload",U1e=qm("aiEvtPageHide"),yQe=(qm("aiEvtPageShow"),/\.[\.]+/g),vQe=/[\.]+$/,_Qe=1,kU=w1e("events"),bQe=/^([^.]*)(?:\.(.+)|)/;function Hoe(r){return r&&r[NT]?r[NT](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,Oo):r}function rQ(i,n){n&&(t=Oo,io(n)?(t=Oo,un(n,function(o){(o=Hoe(o))&&(o[0]!=="."&&(o="."+o),t+=o)})):t=Hoe(n),t)&&(t[0]!=="."&&(t="."+t),i=(i||Oo)+t);var t,n=bQe.exec(i||Oo)||[],i={};return i[eb]=n[1],i.ns=(n[2]||Oo).replace(yQe,".").replace(vQe,Oo)[jP](".").sort().join("."),i}function B1e(r,e,t){return r=kU.get(r,zG,{},t=t===void 0?!0:t),r[e]||(r[e]=[])}function $1e(r,e,t,n){r&&e&&e[eb]&&(r[Loe]?r[Loe](e[eb],t,n):r[Doe]&&r[Doe](L1e+e[eb],t))}function wQe(r,e,t,n){var i=!1;return r&&e&&e[eb]&&t&&(r[Noe]?(r[Noe](e[eb],t,n),i=!0):r[Moe]&&(r[Moe](L1e+e[eb],t),i=!0)),i}function Foe(r,e,t,n){for(var i=e[mi];i--;){var o=e[i];!o||t.ns&&t.ns!==o.evtName.ns||n&&!n(o)||($1e(r,o.evtName,o[LX],o.capture),e[Ak](i,1))}}function EQe(r,e,t){var n;e[eb]?Foe(r,B1e(r,e[eb]),e,t):(oo(n=kU.get(r,zG,{}),function(i,o){Foe(r,o,e,t)}),Q1(n)[mi]===0&&kU.kill(r,zG))}function hC(r,e){var t=e?rQ("xx",t=io(e)?[r].concat(e):[r,e]).ns[jP]("."):r;return t}function tb(r,e,t,n,i){i===void 0&&(i=!1);var o,a=!1;if(r)try{var l,u=rQ(e,n);(a=wQe(r,u,t,i))&&kU.accept(r)&&((o={guid:_Qe++,evtName:u})[LX]=t,o.capture=i,l=o,B1e(r,u.type)[sa](l))}catch{}return a}function jR(r,e,t,n,i){if(i===void 0&&(i=!1),r)try{var o=rQ(e,n),a=!1;EQe(r,o,function(l){return!((!o.ns||t)&&l[LX]!==t)&&(a=!0)}),a||$1e(r,o,t,i)}catch{}}function CQe(r,e,t){var n=!1,i=Zf(),i=(i&&(n=tb(i,r,e,t),n=tb(i.body,r,e,t)||n),zd());return n=i&&tb(i,r,e,t)||n}function xQe(r,e,t){var n=Zf(),n=(n&&(jR(n,r,e,t),jR(n.body,r,e,t)),zd());n&&jR(n,r,e,t)}function OU(r,e,t,n){var i=!1;return e&&r&&0<r[mi]&&un(r,function(o){!o||t&&Gd(t,o)!==-1||(i=CQe(o,e,n)||i)}),i}function TQe(r,e,t,n){var i=!1;return i=e&&r&&io(r)&&!(i=OU(r,e,t,n))&&t&&0<t[mi]?OU(r,e,null,n):i}function VG(r,e,t){r&&io(r)&&un(r,function(n){n&&xQe(n,e,t)})}function SQe(r,e,t){return TQe([F1e,H1e,Q7],r,e,t)}function IQe(r,e){VG([F1e,H1e,Q7],r,e)}function qG(r,e,t){var n=hC(U1e,t),i=OU([Q7],r,e,n);return i=!(i=e&&Gd(e,jG)!==-1?i:OU([jG],function(o){var a=zd();r&&a&&a.visibilityState==="hidden"&&r(o)},e,n)||i)&&e?qG(r,null,t):i}function AQe(r,e){e=hC(U1e,e),VG([Q7],r,e),VG([jG],null,e)}var Uoe="_aiHooks",Boe=["req","rsp","hkErr","fnErr"];function nQ(r,e){if(r)for(var t=0;t<r[mi]&&!e(r[t],t);t++);}function sj(r,e,t,n,i){0<=i&&i<=2&&nQ(r,function(l,a){var l=l.cbks,u=l[Boe[i]];if(u){e.ctx=function(){return n[a]=n[a]||{}};try{u[hS](e.inst,t)}catch(p){u=e.err;try{var h=l[Boe[2]];h&&(e.err=p,h[hS](e.inst,t))}catch{}finally{e.err=u}}}})}function RQe(r){return function(){var e=arguments,t=r.h,n=((i={})[J1]=r.n,i.inst=this,i.ctx=null,i.set=function(u,h){(e=a([],e))[u]=
705h,o=a([n],e)},i),i=[],o=a([n],e);function a(u,h){return nQ(h,function(p){u[sa](p)}),u}n.evt=rl("event"),sj(t,n,o,i,0);var l=r.f;if(l)try{n.rslt=l[hS](this,e)}catch(u){throw n.err=u,sj(t,n,o,i,3),u}return sj(t,n,o,i,1),n.rslt}}function iQ(r,e,t,n){var i=null;return r&&(jm(r,e)?i=r:t&&(i=iQ(LZe(r),e,n,!1))),i}function PQe(r,e,t){return r?GG(r[n_],e,t,!1):null}function z1e(o,e,t,n){var i=t&&t[Uoe],o=(i||((t=RQe(i={i:0,n:e,f:t,h:[]}))[Uoe]=i,o[e]=t),{id:i.i,cbks:n,rm:function(){var a=this.id;nQ(i.h,function(l,u){if(l.id===a)return i.h[Ak](u,1),1})}});return i.i++,i.h[sa](o),o}function GG(r,e,t,n,i){return n===void 0&&(n=!0),r&&e&&t&&(r=iQ(r,e,n,i),r&&(n=r[e],typeof n===J_e))?z1e(r,e,n,t):null}function u6(r,e,t,n,i){return r&&e&&t&&(n=iQ(r,e,n,i)||r,n)?z1e(n,e,n[e],t):null}var d6="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",j1e="sampleRate",lj="ProcessLegacy",$oe="http.method",oQ="https://dc.services.visualstudio.com",VR="/v2/track",y_="not_specified",cj="iKey",Ra=lZe({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]}),qP="split",Mi="length",mD="toLowerCase",ax="ingestionendpoint",GP="toString",J7="push",aQ="removeItem",xv="name",gE="message",RA="count",uj="preTriggerDate",dj="disabled",hj="interval",zoe="daysOfMonth",fj="date",pj="getUTCDate",MU="stringify",gj="pathname",joe="correlationHeaderExcludePatterns",DI="exceptions",zy="parsedStack",K0="properties",rb="measurements",qR="sizeInBytes",w1="typeName",_M="severityLevel",mj="problemGroup",yj="isManual",V1e="CreateFromInterface",oR="assembly",zx="fileName",JH="hasFullStack",h6="level",LI="method",j2="line",NU="duration",Voe="receivedResponse";function q1e(r,e,t){var n=e[Mi],i=kQe(r,e);if(i[Mi]!==n){for(var o=0,a=i;t[a]!==void 0;)o++,a=S_(i,0,147)+NQe(o);i=a}return i}function kQe(r,e){var t;return e&&150<(e=Cc(Yf(e)))[Mi]&&(t=S_(e,0,150),zr(r,2,57,"name is too long.  It has been truncated to 150 characters.",{name:e},!0)),t||e}function xc(r,e,t){var n;return t===void 0&&(t=1024),e&&(t=t||1024,(e=Cc(Yf(e)))[Mi]>t)&&(n=S_(e,0,t),zr(r,2,61,"string value is too long. It has been truncated to "+t+" characters.",{value:e},!0)),n||e}function e9(r,e){return Y1e(r,e,2048,66)}function G1e(r,e){var t;return e&&32768<e[Mi]&&(t=S_(e,0,32768),zr(r,2,56,"message is too long, it has been truncated to 32768 characters.",{message:e},!0)),t||e}function OQe(r,e){var t,n;return e&&32768<(n=""+e)[Mi]&&(t=S_(n,0,32768),zr(r,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:e},!0)),t||e}function HS(r,e){var t;return e&&(t={},oo(e,function(n,i){if(ip(i)&&SL())try{i=Ev()[MU](i)}catch(o){zr(r,2,49,"custom property is not valid",{exception:o},!0)}i=xc(r,i,8192),n=q1e(r,n,t),t[n]=i}),e=t),e}function FS(r,e){var t;return e&&(t={},oo(e,function(n,i){n=q1e(r,n,t),t[n]=i}),e=t),e}function MQe(r,e){return e&&Y1e(r,e,128,69)[GP]()}function Y1e(r,e,t,n){var i;return e&&(e=Cc(Yf(e)))[Mi]>t&&(i=S_(e,0,t),zr(r,2,n,"input is too long, it has been truncated to "+t+" characters.",{data:e},!0)),i||e}function NQe(r){return r="00"+r,Zw(r,r[Mi]-3)}var qoe=zd()||{},Goe=0,DQe=[null,null,null,null,null];function sQ(r){var e=Goe,t=DQe,n=t[e];return qoe.createElement?t[e]||(n=t[e]=qoe.createElement("a")):n={host:FQe(r,!0)},n.href=r,++e>=t[Mi]&&(e=0),Goe=e,n}function LQe(t){var e,t=sQ(t);return e=t?t.href:e}function HQe(r,e){return r?r.toUpperCase()+" "+e:e}function FQe(r,e){return r=W1e(r,e)||"",r&&(e=r.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i),e!=null&&3<e[Mi]&&Xn(e[2])&&0<e[2][Mi])?e[2]+(e[3]||""):r}function W1e(r,e){var t=null;return r&&(r=r.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i))!=null&&2<r[Mi]&&Xn(r[2])&&0<r[2][Mi]&&(t=r[2]||"",e)&&2<r[Mi]&&(e=(r[1]||"")[mD](),r=r[3]||"",t+=r=e==="http"&&r===":80"||e==="https"&&r===":443"?"":r),t}var UQe=[oQ+VR,"https://breeze.aimon.applicationinsights.io"+VR,"https://dc-int.services.visualstudio.com"+VR],BQe="cid-v1:";function YG(r){return Gd(UQe,r[mD]())!==-1}function Yoe(r,e,a){if(!e||r&&r.disableCorrelationHeaders)return!1;if(r&&r[joe]){for(var n=0;n<r.correlationHeaderExcludePatterns[Mi];n++)if(r[joe][n].test(e))return!1}var i=sQ(e).host[mD]();if(!i||Wf(i,":443")===-1&&Wf(i,":80")===-1||(i=(W1e(e,!0)||"")[mD]()),(!r||!r.enableCorsCorrelation)&&i&&i!==a)return!1;var o,a=r&&r.correlationHeaderDomains;
705if(a&&(un(a,function(u){u=new RegExp(u.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")),o=o||u.test(i)}),!o))return!1;var l=r&&r.correlationHeaderExcludedDomains;if(!l||l[Mi]===0)return!0;for(n=0;n<l[Mi];n++)if(new RegExp(l[n].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(i))return!1;return i&&0<i[Mi]}function Woe(r){if(r&&(r=$Qe(r,Ra[1]),r&&r!==BQe))return r}function $Qe(r,e){if(r)for(var t=r[qP](","),n=0;n<t[Mi];++n){var i=t[n][qP]("=");if(i[Mi]===2&&i[0]===e)return i[1]}}function zQe(r,e,t,n){var i,o,a,l=n,u=n;return l=e&&0<e[Mi]?(a=(i=sQ(e)).host,l||(i[gj]!=null?((o=i.pathname[Mi]===0?"/":i[gj]).charAt(0)!=="/"&&(o="/"+o),u=i[gj],xc(r,t?t+" "+o:o)):xc(r,e))):a=n,{target:a,name:l,data:u}}function f6(){var r=mb();return r&&r.now&&r.timing&&(r=r.now()+r.timing.navigationStart,0<r)?r:g_()}function Lf(r,e){var t=null;return t=r===0||e===0||Cr(r)||Cr(e)?t:e-r}function lQ(r,e){var t=r||{};return{getName:function(){return t[xv]},setName:function(n){e&&e.setName(n),t[xv]=n},getTraceId:function(){return t.traceID},setTraceId:function(n){e&&e.setTraceId(n),QX(n)&&(t.traceID=n)},getSpanId:function(){return t.parentID},setSpanId:function(n){e&&e.setSpanId(n),JX(n)&&(t.parentID=n)},getTraceFlags:function(){return t.traceFlags},setTraceFlags:function(n){e&&e.setTraceFlags(n),t.traceFlags=n}}}var AL=Y_e({LocalStorage:0,SessionStorage:1}),ME=void 0,NE=void 0,K1e="";function cQ(){return r9()?t9(AL.LocalStorage):null}function t9(r){try{if(Cr(Mm()))return null;var e=new Date()[GP](),t=rl(r===AL.LocalStorage?"localStorage":"sessionStorage"),n=K1e+e,i=(t.setItem(n,e),t.getItem(n)!==e);if(t[aQ](n),!i)return t}catch{}return null}function uQ(){return yD()?t9(AL.SessionStorage):null}function jQe(){NE=ME=!1}function dQ(r){K1e=r||""}function VQe(){ME=r9(!0),NE=yD(!0)}function r9(r){return ME=!r&&ME!==void 0?ME:!!t9(AL.LocalStorage)}function Z1e(r,e){var t=cQ();if(t!==null)try{return t.getItem(e)}catch(n){ME=!1,zr(r,2,1,"Browser failed read of local storage. "+ea(n),{exception:cn(n)})}return null}function X1e(r,e,t){var n=cQ();if(n!==null)try{return n.setItem(e,t),!0}catch(i){ME=!1,zr(r,2,3,"Browser failed write to local storage. "+ea(i),{exception:cn(i)})}return!1}function qQe(r,e){var t=cQ();if(t!==null)try{return t[aQ](e),!0}catch(n){ME=!1,zr(r,2,5,"Browser failed removal of local storage item. "+ea(n),{exception:cn(n)})}return!1}function yD(r){return NE=!r&&NE!==void 0?NE:!!t9(AL.SessionStorage)}function WG(r,e){var t=uQ();if(t!==null)try{return t.getItem(e)}catch(n){NE=!1,zr(r,2,2,"Browser failed read of session storage. "+ea(n),{exception:cn(n)})}return null}function Q1e(r,e,t){var n=uQ();if(n!==null)try{return n.setItem(e,t),!0}catch(i){NE=!1,zr(r,2,4,"Browser failed write to session storage. "+ea(i),{exception:cn(i)})}return!1}function J1e(r,e){var t=uQ();if(t!==null)try{return t[aQ](e),!0}catch(n){NE=!1,zr(r,2,6,"Browser failed removal of session storage item. "+ea(n),{exception:cn(n)})}return!1}var GQe="appInsightsThrottle",YQe=function(r,e){var t,n,i,o,a,l,u,h=this,p=!1,m=!1;function _(B,Q,Z,ie){if(p){if(!(function(Ue){try{var Qe=C(Ue);return cXe(1e6)<=Qe.limit.samplingRate}catch{}return!1})(B))return;var J=C(B),ne=F(B),ue=S(J,t,ne),K=!1,se=0,be=j(B);try{ue&&!be?(se=Math.min(J.limit.maxSendNumber,ne[RA]+1),K=!(ne[RA]=0),a[B]=!0,ne[uj]=new Date):(a[B]=ue,ne[RA]+=1);var de=R(B);N(n,de,ne);for(var ge=0;ge<se;ge++)zr(n,Z||1,B,Q)}catch{}return{isThrottled:K,throttleNum:se}}return ie&&L(B)[J7]({msgID:B,message:Q,severity:Z}),null}function C(B){return i[B]||i[109]}function T(B,Q){var Z,ie;try{var J=Q||{},ne={},ue=(ne[dj]=!!J[dj],J[hj]||{}),K=(m=(ue===null?void 0:ue.daysOfMonth)&&0<(ue===null?void 0:ue.daysOfMonth[Mi]),ne[hj]=(function(se){var be=(se=se||{})==null?void 0:se.monthInterval,de=se==null?void 0:se.dayInterval;return Cr(be)&&Cr(de)&&(se.monthInterval=3,m||(se[zoe]=[28],m=!0)),se={monthInterval:se==null?void 0:se.monthInterval,dayInterval:se==null?void 0:se.dayInterval,daysOfMonth:se==null?void 0:se.daysOfMonth}})(ue),{samplingRate:((Z=J.limit)==null?void 0:Z.samplingRate)||100,maxSendNumber:((ie=J.limit)==null?void 0:ie.maxSen
705dNumber)||1});ne.limit=K,i[B]=ne}catch{}}function S(B,Q,Z){var ie,J;return!(!B||B[dj]||!Q||!DT(Z))&&(Q=O(),Z=Z[fj],ie=1,(B=B[hj])!=null&&B.monthInterval&&(J=12*(Q.getUTCFullYear()-Z.getUTCFullYear())+Q.getUTCMonth()-Z.getUTCMonth(),ie=H(B.monthInterval,0,J)),J=1,m?J=Gd(B[zoe],Q[pj]()):B!=null&&B.dayInterval&&(Q=Math.floor((Q.getTime()-Z.getTime())/864e5),J=H(B.dayInterval,0,Q)),0<=ie)&&0<=J}function R(B,Q){return Q=DT(Q)?Q:"",B?GQe+Q+"-"+B:null}function O(B){try{if(!B)return new Date;var Q=new Date(B);if(!isNaN(Q.getDate()))return Q}catch{}return null}function N(B,Q,Z){try{return X1e(B,Q,Cc(JSON[MU](Z)))}catch{}}function H(B,Q,Z){return B<=0?1:Q<=Z&&(Z-Q)%B==0?Math.floor((Z-Q)/B)+1:-1}function F(B){try{var Q,Z=o[B];return Z||(Q=R(B,l),Z=(function(ie,J,ne){try{var ue,K={date:O(),count:0};return ie?{date:O((ue=JSON.parse(ie))[fj])||K[fj],count:ue[RA]||K[RA],preTriggerDate:ue.preTriggerDate?O(ue[uj]):void 0}:(N(J,ne,K),K)}catch{}return null})(Z1e(n,Q),n,Q),o[B]=Z),o[B]}catch{}return null}function j(B){var Q,Z=a[B];return Cr(Z)&&(Z=!1,(Q=F(B))&&(Z=(function(ie){try{var J;if(ie)return J=new Date,ie.getUTCFullYear()===J.getUTCFullYear()&&ie.getUTCMonth()===J.getUTCMonth()&&ie[pj]()===J[pj]()}catch{}return!1})(Q[uj])),a[B]=Z),a[B]}function L(B){return Cr((u=u||{})[B])&&(u[B]=[]),u[B]}n=LS(r),a={},o={},u={},i={},T(109),l=DT(e)?e:"",r.addUnloadHook(Gl(r.config,function(B){B=B.cfg,t=r9(),oo(B.throttleMgrCfg||{},function(Q,Z){T(parseInt(Q),Z)})})),h._getDbgPlgTargets=function(){return[u]},h.getConfig=function(){return i},h.canThrottle=function(B){var Q=F(B);return S(C(B),t,Q)},h.isTriggered=j,h.isReady=function(){return p},h.flush=function(B){try{var Q,Z=L(B);if(Z&&0<Z[Mi])return Q=Z.slice(0),u[B]=[],un(Q,function(ie){_(ie.msgID,ie[gE],ie.severity,!1)}),!0}catch{}return!1},h.flushAll=function(){try{var B;if(u)return B=!0,oo(u,function(Q){Q=h.flush(parseInt(Q)),B=B&&Q}),B}catch{}return!1},h.onReadyState=function(B,Q){return Q===void 0&&(Q=!0),(p=!!Cr(B)||B)&&Q?h.flushAll():null},h.sendMessage=function(B,Q,Z){return _(B,Q,Z,!0)}},WQe=";",KQe="=";function Koe(r){var e;return r?(r=r[qP](WQe),r=zKe(r,function(t,o){var i,o=o[qP](KQe);return o[Mi]===2&&(i=o[0][mD](),o=o[1],t[i]=o),t},{}),0<Q1(r)[Mi]&&(r.endpointsuffix&&(e=r.location?r.location+".":"",r[ax]=r[ax]||"https://"+e+"dc."+r.endpointsuffix),r[ax]=r[ax]||oQ,q_e(r[ax],"/"))&&(r[ax]=r[ax].slice(0,-1)),r):{}}var ZQe=function(r,e,t){var n=this;this.ver=1,this.sampleRate=100,this.tags={},this[xv]=xc(r,t)||y_,this.data=e,this.time=VP(new Date),this.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return n.sampleRate===100?4:1},tags:1,data:1}},Qw=(function(){function r(e,t,n,i){this.aiDataContract={ver:1,name:1,properties:0,measurements:0},this.ver=2,this[xv]=xc(e,t)||y_,this[K0]=HS(e,n),this[rb]=FS(e,i)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Event",r.dataType="EventData",r})(),XQe="<no_method>",GR="error",Ff="stack",KG="stackDetails",Zoe="errorSrc",ZG="message",ebe="description";function XG(r,e){var t=r;return t&&!Xn(t)&&(JSON&&JSON[MU]?(t=JSON[MU](r),!e||t&&t!=="{}"||(t=Ci(r[GP])?r[GP]():""+r)):t=r+" - (Missing JSON.stringify)"),t||""}function tbe(r,e){var t=r;return r&&((t=t&&!Xn(t)&&(r[ZG]||r[ebe])||t)&&!Xn(t)&&(t=XG(t,!0)),r.filename)&&(t=t+" @"+(r.filename||"")+":"+(r.lineno||"?")+":"+(r.colno||"?")),(t=e&&e!=="String"&&e!=="Object"&&e!=="Error"&&Wf(t||"",e)===-1?e+": "+t:t)||""}function QQe(r){try{if(ip(r))return"hasFullStack"in r&&"typeName"in r}catch{}return!1}function JQe(r){try{if(ip(r))return"ver"in r&&"exceptions"in r&&"properties"in r}catch{}return!1}function Xoe(r){return r&&r.src&&Xn(r.src)&&r.obj&&io(r.obj)}function sx(e){var e=e||"",t=(e=Xn(e)?e:Xn(e[Ff])?e[Ff]:""+e)[qP](`
706`);return{src:e,obj:t}}function eJe(r){for(var e=[],t=r[qP](`
707`),n=0;n<t[Mi];n++){var i=t[n];t[n+1]&&(i+="@"+t[n+1],n++),e[J7](i)}return{src:r,obj:e}}function rbe(r){var e,t=null;if(r)try{r[Ff]?t=sx(r[Ff]):r[GR]&&r[GR][Ff]?t=sx(r[GR][Ff]):r.exception&&r.exception[Ff]?t=sx(r.exception[Ff]):Xoe(r)?t=r:Xoe(r[KG])?t=r[KG]:Zf()&&Zf().opera&&r[ZG]?t=eJe(r[gE]):r.reason&&r.reason[Ff]?t=sx(r.reason[Ff]):Xn(r)?t=sx(r):(e=r[ZG]||r[ebe]||"",Xn(r[Zoe])&&(e&&(e+=`
708`),e+=" from "+r[Zoe]),e&&(t=sx(e)))}catch(n){t=sx(n)}return t||{src:"",obj:null}}function tJe(r){var e="";return r&&(r.obj?un(r.obj,function(t){e+=t+`
709`}):e=r.src||""),e}function rJe(r){if(r=r.obj,r&&0<r[Mi]){var e=[],t=0,n=0;if(un(r,function(p){var p=p[GP]();
vendor: 57,410 bytes, lines 709-711
709QG.regex.test(p)&&(p=new QG(p,t++),n+=p[qR],e[J7](p))}),32768<n)for(var i=0,o=e[Mi]-1,a=0,l=i,u=o;i<o;){if(32768<(a+=e[i][qR]+e[o][qR])){e.splice(l,u-l+1);break}l=i,u=o,i++,o--}}return e}function DU(r){var e="";if(r&&!(e=r.typeName||r[xv]||""))try{var t=/function (.{1,200})\(/.exec(r.constructor[GP]()),e=t&&1<t[Mi]?t[1]:""}catch{}return e}function vj(r){if(r)try{var e,t;if(!Xn(r))return e=DU(r),(t=XG(r,!1))&&t!=="{}"||(r[GR]&&(e=DU(r=r[GR])),t=XG(r,!0)),Wf(t,e)!==0&&e!=="String"?e+":"+t:t}catch{}return""+(r||"")}var ym=(function(){function r(e,t,n,i,o,a){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var l=this;l.ver=2,JQe(t)?(l[DI]=t[DI]||[],l[K0]=t[K0],l[rb]=t[rb],t[_M]&&(l[_M]=t[_M]),t.id&&(l.id=t.id,t[K0].id=t.id),t[mj]&&(l[mj]=t[mj]),Cr(t[yj])||(l[yj]=t[yj])):(n=n||{},a&&(n.id=a),l[DI]=[new Qoe(e,t,n)],l[K0]=HS(e,n),l[rb]=FS(e,i),o&&(l[_M]=o),a&&(l.id=a))}return r.CreateAutoException=function(e,t,n,i,o,a,l,u){var h=DU(o||a||e),p={};return p[gE]=tbe(e,h),p.url=t,p.lineNumber=n,p.columnNumber=i,p.error=vj(o||a||e),p.evt=vj(a||e),p[w1]=h,p.stackDetails=rbe(l||o||a),p.errorSrc=u,p},r.CreateFromInterface=function(e,t,n,i){var o=t[DI]&&KM(t[DI],function(a){return Qoe[V1e](e,a)});return new r(e,$h($h({},t),{exceptions:o}),n,i)},r.prototype.toInterface=function(){var l=this.exceptions,e=this.properties,t=this.measurements,n=this.severityLevel,i=this.problemGroup,o=this.id,a=this.isManual,l=l instanceof Array&&KM(l,function(h){return h.toInterface()})||void 0,u={ver:"4.0"};return u[DI]=l,u.severityLevel=n,u.properties=e,u.measurements=t,u.problemGroup=i,u.id=o,u.isManual=a,u},r.CreateSimpleException=function(e,t,n,i,o,a){var l;return{exceptions:[((l={})[JH]=!0,l.message=e,l.stack=o,l.typeName=t,l)]}},r.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",r.dataType="ExceptionData",r.formatError=vj,r})(),Qoe=(function(){function r(e,t,n){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var i,o,a=this;QQe(t)?(a[w1]=t[w1],a[gE]=t[gE],a[Ff]=t[Ff],a[zy]=t[zy]||[],a[JH]=t[JH]):(o=(i=t)&&i.evt,AX(i)||(i=i[GR]||o||i),a[w1]=xc(e,DU(i))||y_,a[gE]=G1e(e,tbe(t||i,a[w1]))||y_,o=t[KG]||rbe(t),a[zy]=rJe(o),io(a[zy])&&KM(a[zy],function(l){l[oR]=xc(e,l[oR]),l[zx]=xc(e,l[zx])}),a[Ff]=OQe(e,tJe(o)),a.hasFullStack=io(a.parsedStack)&&0<a.parsedStack[Mi],n&&(n[w1]=n[w1]||a[w1]))}return r.prototype.toInterface=function(){var e,t=this[zy]instanceof Array&&KM(this[zy],function(n){return n.toInterface()});return(e={id:this.id,outerId:this.outerId,typeName:this[w1],message:this[gE],hasFullStack:this[JH],stack:this[Ff]})[zy]=t||void 0,e},r.CreateFromInterface=function(e,t){var n=t[zy]instanceof Array&&KM(t[zy],function(i){return QG[V1e](i)})||t[zy];return new r(e,$h($h({},t),{parsedStack:n}))},r})(),QG=(function(){function r(e,t){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var n,i=this;i[qR]=0,typeof e=="string"?(n=e,i[h6]=t,i[LI]=XQe,i[oR]=Cc(n),i[zx]="",i[j2]=0,(t=n.match(r.regex))&&5<=t[Mi]&&(i[LI]=Cc(t[2])||i[LI],i[zx]=Cc(t[4]),i[j2]=parseInt(t[5])||0)):(i[h6]=e[h6],i[LI]=e[LI],i[oR]=e[oR],i[zx]=e[zx],i[j2]=e[j2],i[qR]=0),i.sizeInBytes+=i.method[Mi],i.sizeInBytes+=i.fileName[Mi],i.sizeInBytes+=i.assembly[Mi],i[qR]+=r.baseSize,i.sizeInBytes+=i.level.toString()[Mi],i.sizeInBytes+=i.line.toString()[Mi]}return r.CreateFromInterface=function(e){return new r(e,null)},r.prototype.toInterface=function(){return{level:this[h6],method:this[LI],assembly:this[oR],fileName:this[zx],line:this[j2]}},r.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,r.baseSize=58,r})(),nJe=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},FT=(function(){function r(e,t,n,i,o,a,l,u,h){this.aiDataContract={ver:1,metrics:1,properties:0},this.ver=2;var p=new nJe;p[RA]=0<i?i:void 0,p.max=isNaN(a)||a===null?void 0:a,p.min=isNaN(o)||o===null?void 0:o,p[xv]=xc(e,t)||y_,p.value=n,p.stdDev=isNaN(l)||l===null?void 0:l,this.metrics=[p],this[K0]=HS(e,u),this[rb]=FS(e,h)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",r.dataType="MetricData",r})(),V2="";function Jw(o){(isNaN(o)||o<0)&&(o=0),o=Math.round(o);var e=V2+o%1e3,t=V2+Math.floor(o/1e3)%60,n=V2+Math.floor(o/6e4)%60,i=V2+Math.floor(o/36e5)%24,o=Math.floor(o/864e5);return(0<o?o+".":V2)+(i[Mi]<2?"0"+i:i)+":"+(n[Mi]<2?"0"+n:n)+":"+(t[Mi]<2?"0"+t:t)+"."+(e[Mi]===1?"00"+e:e[Mi]===2?"0"+e:e)}function iJe(r,e,t,n,i){return!i&&Xn(r)&&(r==="Script error."||r==="Script error")}var DE=(function(){function r(e,t,n,i,o,a,l){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},this.ver=2,this.id=MQe(e,l),this.url=e9(e,n),this[xv]=xc(e,t)||y_,isNaN(i)||(this[NU]=Jw(i)),this[K0]=HS(e,o),this[rb]=FS(e,a)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",r.dataType="PageviewData",r})(),UT=(function(){function r(e,T,n,i,o,a,l,u,h,p,m,_){h===void 0&&(h="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var C=this,T=(C.ver=2,C.id=T,C[NU]=Jw(o),C.success=a,C.resultCode=l+"",C.type=xc(e,h),zQe(e,n,u,i));C.data=e9(e,i)||T.data,C.target=xc(e,T.target),p&&(C.target="".concat(C.target," | ").concat(p)),C[xv]=xc(e,T[xv]),C[K0]=HS(e,m),C[rb]=FS(e,_)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",r.dataType="RemoteDependencyData",r})(),YR=(function(){function r(e,t,n,i,o){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},this.ver=2,this[gE]=G1e(e,t=t||y_),this[K0]=HS(e,i),this[rb]=FS(e,o),n&&(this[_M]=n)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Message",r.dataType="MessageData",r})(),WR=(function(){function r(e,t,n,i,o,a,l){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var u=this;u.ver=2,u.url=e9(e,n),u[xv]=xc(e,t)||y_,u[K0]=HS(e,o),u[rb]=FS(e,a),l&&(u.domProcessing=l.domProcessing,u[NU]=l[NU],u.networkConnect=l.networkConnect,u.perfTotal=l.perfTotal,u[Voe]=l[Voe],u.sentRequest=l.sentRequest)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",r.dataType="PageviewPerformanceData",r})(),US=function(r,e){this.aiDataContract={baseType:1,baseData:1},this.baseType=r,this.baseData=e};function fC(r){var e="ai."+r+".";return function(t){return e+t}}var q2=fC("application"),jc=fC("device"),p6=fC("location"),HI=fC("operation"),_j=fC("session"),ww=fC("user"),lx=fC("cloud"),G2=fC("internal"),nbe=(function(r){function e(){return r.call(this)||this}return Db(e,r),e})(FZe({applicationVersion:q2("ver"),applicationBuild:q2("build"),applicationTypeId:q2("typeId"),applicationId:q2("applicationId"),applicationLayer:q2("layer"),deviceId:jc("id"),deviceIp:jc("ip"),deviceLanguage:jc("language"),deviceLocale:jc("locale"),deviceModel:jc("model"),deviceFriendlyName:jc("friendlyName"),deviceNetwork:jc("network"),deviceNetworkName:jc("networkName"),deviceOEMName:jc("oemName"),deviceOS:jc("os"),deviceOSVersion:jc("osVersion"),deviceRoleInstance:jc("roleInstance"),deviceRoleName:jc("roleName"),deviceScreenResolution:jc("screenResolution"),deviceType:jc("type"),deviceMachineName:jc("machineName"),deviceVMName:jc("vmName"),deviceBrowser:jc("browser"),deviceBrowserVersion:jc("browserVersion"),locationIp:p6("ip"),locationCountry:p6("country"),locationProvince:p6("province"),locationCity:p6("city"),operationId:HI("id"),operationName:HI("name"),operationParentId:HI("parentId"),operationRootId:HI("rootId"),operationSyntheticSource:HI("syntheticSource"),operationCorrelationVector:HI("correlationVector"),sessionId:_j("id"),sessionIsFirst:_j("isFirst"),sessionIsNew:_j("isNew"),userAccountAcquisitionDate:ww("accountAcquisitionDate"),userAccountId:ww("accountId"),userAgent:ww("userAgent"),userId:ww("id"),userStoreRegion:ww("storeRegion"),userAuthUserId:ww("authUserId"),userAnonymousUserAcquisitionDate:ww("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:ww("authUserAcquisitionDate"),cloudName:lx("name"),cloudRole:lx("role"),cloudRoleVer:lx("roleVer"),cloudRoleInstance:lx("roleInstance"),cloudEnvironment:lx("environment"),cloudLocation:lx("location"),cloudDeploymentUnit:lx("deploymentUnit"),internalNodeName:G2("nodeName"),internalSdkVersion:G2("sdkVersion"),internalAgentVersion:G2("agentVersion"),internalSnippet:G2("snippet"),internalSdkSrc:G2("sdkSrc")}));function Dw(r,e,t,l,i,o){t=xc(l,t)||y_,(Cr(r)||Cr(e)||Cr(t))&&qp("Input doesn't contain all required fields");var a,l="",u=(r[cj]&&(l=r[cj],delete r[cj]),(a={})[xv]=t,a.time=VP(new Date),a.iKey=l,a.ext=o||{},a.tags=[],a.data={},a.baseType=e,a.baseData=r,a);return Cr(i)||oo(i,function(h,p){u.data[h]=p}),u}var Bp={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os"},ja=new nbe;function Y2(r){var e,t=null;return Ci(Event)?t=new Event(r):(e=zd())&&e.createEvent&&(t=e.createEvent("Event")).initEvent(r,!0,!0),t}function Joe(r,e){jR(r,null,null,e)}function oJe(r){var e,t=zd(),n=I_(),i=!1,o=[],a=1,l=(!n||Cr(n.onLine)||n.onLine||(a=2),0),u=m(),h=hC(qm("OfflineListener"),r);try{p(Zf())&&(i=!0),t&&(e=t.body||t).ononline&&p(e)&&(i=!0)}catch{i=!1}function p(S){var R=!1;return S&&(R=tb(S,"online",C,h))&&tb(S,"offline",T,h),R}function m(){return l!==2&&a!==2}function _(){var S=m();u!==S&&(u=S,un(o,function(R){var O={isOnline:u,rState:a,uState:l};try{R(O)}catch{}}))}function C(){a=1,_()}function T(){a=2,_()}return{isOnline:function(){return u},isListening:function(){return i},unload:function(){var S=Zf();S&&i&&(Joe(S,h),t&&!zs((S=t.body||t).ononline)&&Joe(S,h),i=!1)},addListener:function(S){return o[J7](S),{rm:function(){var R=o.indexOf(S);if(-1<R)return o.splice(R,1)}}},setOnlineState:function(S){l=S,_()}}}var n9="AppInsightsPropertiesPlugin",ibe="AppInsightsChannelPlugin",obe="ApplicationInsightsAnalytics",LU="toString",JG="isStorageUseDisabled",FI="_addHook",Ku="core",Ew="dataType",cx="envelopeType",Hp="diagLog",ux="track",eF="trackPageView",eY="trackPreviousPageVisit",jx="sendPageViewInternal",YP="startTime",tY="properties",M0="duration",rY="sendPageViewPerformanceInternal",hQ="populatePageViewPerformanceEvent",bM="href",eae="sendExceptionInternal",bj="exception",W2="error",wj="_onerror",Ej="errorSrc",Cj="lineNumber",xj="columnNumber",tae="message",Tj="CreateAutoException",g6="addTelemetryInitializer",aJe="overridePageViewDuration",abe="autoTrackPageVisitTime",sbe="isBrowserLinkTrackingEnabled",vD="length",lbe="enableAutoRouteTracking",cbe="enableUnhandledPromiseRejectionTracking",nY="autoUnhandledPromiseInstrumented",iY="getEntriesByType",ube="isPerformanceTimingSupported",dbe="getPerformanceTiming",HU="navigationStart",oY="shouldCollectDuration",hbe="isPerformanceTimingDataReady",wM="responseStart",sJe="requestStart",tF="loadEventEnd",aY="responseEnd",rF="connectEnd",fbe="pageVisitStartTime",lJe=(function(){function r(e,t,n,i){cs(r,this,function(o){var a,l=null,u=[],h=!1,p=!1;function m(C){n&&n.flush(C,function(){})}function _(C){u.push(C),(function T(){l=l||Vm(function(){l=null;var S=u.slice(0),R=!1;u=[],un(S,function(O){O()?R=!0:u.push(O)}),0<u[vD]&&T(),R&&m(!0)},100)})()}n&&(a=n.logger),o[eF]=function(C,T){var S,R,O,N,H,F,j=C.name,L=(!Cr(j)&&typeof j=="string"||(R=zd(),j=C.name=R&&R.title||""),C.uri);!Cr(L)&&typeof L=="string"||(R=W0(),L=C.uri=R&&R[bM]||""),p||((S=(R=mb())&&R[iY]&&R[iY]("navigation"))&&S[0]&&!zs(R.timeOrigin)?(S=S[0].loadEventStart,C[YP]=new Date(R.timeOrigin+S)):(R=(T||C[tY]||{})[M0]||0,C[YP]=new Date(new Date().getTime()-R)),p=!0),i[ube]()?(O=!1,H=i[dbe]()[HU],0<H&&(N=Lf(H,+new Date),i[oY](N)||(N=void 0)),Cr(T)||Cr(T[M0])||(F=T[M0]),!t&&isNaN(F)||(isNaN(F)&&((T=T||{})[M0]=N),e[jx](C,T),m(!0),O=!0),T=T||{},_(function(){var B,Q=!1;try{i[hbe]()?(Q=!0,B={name:j,uri:L},i[hQ](B),B.isValid||O?(O||(T[M0]=B.durationMs,e[jx](C,T)),h||(e[rY](B,T),h=!0)):(T[M0]=N,e[jx](C,T))):0<H&&6e4<Lf(H,+new Date)&&(Q=!0,O||(T[M0]=6e4,e[jx](C,T)))}catch(Z){zr(a,1,38,"trackPageView failed on page load calculation: "+ea(Z),{exception:cn(Z)})}return Q})):(e[jx](C,T),m(!0),L_e()||zr(a,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info."))},o.teardown=function(C,T){var S;l&&(l.cancel(),l=null,S=u.slice(0),u=[],un(S,function(R){R()}))}})}return r.__ieDyn=1,r})(),cJe=36e5,rae=["googlebot","adsbot-google","apis-google","mediapartners-google"];function pbe(){var r=mb();return r&&!!r.timing}function uJe(){var r=mb();return r&&r.getEntriesByType&&0<r.getEntriesByType("navigation")[vD]}function dJe(){var r=mb(),r=r?r.timing:0;return r&&0<r.domainLookupStart&&0<r[HU]&&0<r[wM]&&0<r[sJe]&&0<r[tF]&&0<r[aY]&&0<r[rF]&&0<r.domLoading}function nae(){return pbe()?mb().timing:null}function hJe(){return uJe()?mb()[iY]("navigation")[0]:null}function fJe(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=(I_()||{}).userAgent,n=!1;if(t)for(var i=0;i<rae[vD];i++)n=n||Wf(t.toLowerCase(),rae[i])!==-1;if(n)return!1;for(i=0;i<r[vD];i++)if(r[i]<0||cJe<=r[i])return!1;return!0}var Fp,pJe=(function(){function r(e){var t=LS(e);cs(r,this,function(n){n[hQ]=function(i){i.isValid=!1;var o=hJe(),a=nae(),l=0,u=0,h=0,p=0,m=0;(o||a)&&(m=o?(l=o[M0],u=o[YP]===0?o[rF]:Lf(o[YP],o[rF]),h=Lf(o.requestStart,o[wM]),p=Lf(o[wM],o[aY]),Lf(o.responseEnd,o[tF])):(l=Lf(a[HU],a[tF]),u=Lf(a[HU],a[rF]),h=Lf(a.requestStart,a[wM]),p=Lf(a[wM],a[aY]),Lf(a.responseEnd,a[tF])),l===0?zr(t,2,10,"error calculating page view performance.",{total:l,network:u,request:h,response:p,dom:m}):n[oY](l,u,h,p,m)?l<Math.floor(u)+Math.floor(h)+Math.floor(p)+Math.floor(m)?zr(t,2,8,"client performance math error.",{total:l,network:u,request:h,response:p,dom:m}):(i.durationMs=l,i.perfTotal=i[M0]=Jw(l),i.networkConnect=Jw(u),i.sentRequest=Jw(h),i.receivedResponse=Jw(p),i.domProcessing=Jw(m),i.isValid=!0):zr(t,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:l,network:u,request:h,response:p,dom:m}))},n[dbe]=nae,n[ube]=pbe,n[hbe]=dJe,n[oY]=fJe})}return r.__ieDyn=1,r})(),gJe=(function(){function r(e,t){var n="prevPageVisitData";cs(r,this,function(i){i[eY]=function(o,a){try{var l=(function(u,h){var p=null;try{var m;p=(function(){var _=null;try{var C,T;yD()&&(C=g_(),T=WG(e,n))&&SL()&&((_=Ev().parse(T)).pageVisitTime=C-_[fbe],J1e(e,n))}catch(S){LT(e,"Stop page visit timer failed: "+cn(S)),_=null}return _})(),yD()&&(WG(e,n)!=null&&qp("Cannot call startPageVisit consecutively without first calling stopPageVisit"),m=Ev().stringify(new mJe(u,h)),Q1e(e,n,m))}catch(_){LT(e,"Call to restart failed: "+cn(_)),p=null}return p})(o,a);l&&t(l.pageName,l.pageUrl,l.pageVisitTime)}catch(u){LT(e,"Auto track page visit time failed, metric will not be collected: "+cn(u))}},Yo(i,"_logger",{g:function(){return e}}),Yo(i,"pageVisitTimeTrackingHandler",{g:function(){return t}})})}return r.__ieDyn=1,r})(),mJe=function(r,e){this[fbe]=g_(),this.pageName=r,this.pageUrl=e},iae=function(r,e){var t=this,n={};t.start=function(i){n[i]!==void 0&&zr(r,2,62,"start was called more than once for this event without calling stop.",{name:i,key:i},!0),n[i]=+new Date},t.stop=function(i,o,a,l){var u=n[i];isNaN(u)?zr(r,2,63,"stop was called without a corresponding start.",{name:i,key:i},!0):(u=Lf(u,+new Date),t.action(i,o,u,a,l)),delete n[i],n[i]=void 0}},yJe="event";function K2(r,e){r&&r.dispatchEvent&&e&&r.dispatchEvent(e)}function vJe(r){var e;return r&&r.reason?(e=r.reason,!Xn(e)&&Ci(e[LU])?e[LU]():cn(e)):r||""}var oae=6e4,_Je=Tk(((Fp={sessionRenewalMs:loe(aae,18e5),sessionExpirationMs:loe(aae,864e5),disableExceptionTracking:_c()})[abe]=_c(),Fp[aJe]=_c(),Fp[cbe]=_c(),Fp[nY]=!1,Fp.samplingPercentage=TU(bJe,100),Fp[JG]=_c(),Fp[sbe]=_c(),Fp[lbe]=_c(),Fp.namePrefix=SXe(),Fp.enableDebug=_c(),Fp.disableFlushOnBeforeUnload=_c(),Fp.disableFlushOnUnload=_c(!1,"disableFlushOnBeforeUnload"),Fp));function aae(r,e){return+(r=(r=r||e)<oae?oae:r)}function bJe(r){return!isNaN(r)&&0<r&&r<=100}function wJe(r){zs(r[JG])||(r[JG]?jQe:VQe)()}var EJe=(function(r){function e(){var t,n,i,o,a,l,u,h,p,m,_,C,T,S,R,O,N,H,F,j=r.call(this)||this;return j.identifier=obe,j.priority=180,j.autoRoutePVDelay=500,cs(e,j,function(L,B){var Q=B[FI];function Z(J,ne,ue,K,se){L[Hp]().throwInternal(J,ne,ue,K,se)}function ie(){l=a=o=i=n=t=null;var J=W0(!(O=S=T=C=_=m=p=h=u=!1));N=J&&J[bM]||"",R=F=H=null,Yo(L,"config",{g:function(){return R}})}ie(),L.getCookieMgr=function(){return XX(L[Ku])},L.processTelemetry=function(J,ne){L.processNext(J,ne)},L.trackEvent=function(J,ne){try{var ue=Dw(J,Qw[Ew],Qw[cx],L[Hp](),ne);L[Ku][ux](ue)}catch(K){Z(2,39,"trackTrace failed, trace will not be collected: "+ea(K),{exception:cn(K)})}},L.startTrackEvent=function(J){try{t.start(J)}catch(ne){Z(1,29,"startTrackEvent failed, event will not be collected: "+ea(ne),{exception:cn(ne)})}},L.stopTrackEvent=function(J,ne,ue){try{t.stop(J,void 0,ne,ue)}catch(K){Z(1,30,"stopTrackEvent failed, event will not be collected: "+ea(K),{exception:cn(K)})}},L.trackTrace=function(J,ne){try{var ue=Dw(J,YR[Ew],YR[cx],L[Hp](),ne);L[Ku][ux](ue)}catch(K){Z(2,39,"trackTrace failed, trace will not be collected: "+ea(K),{exception:cn(K)})}},L.trackMetric=function(J,ne){try{var ue=Dw(J,FT[Ew],FT[cx],L[Hp](),ne);L[Ku][ux](ue)}catch(K){Z(1,36,"trackMetric failed, metric will not be collected: "+ea(K),{exception:cn(K)})}},L[eF]=function(J,ne){try{var ue=J||{};i[eF](ue,$h($h($h({},ue.properties),ue.measurements),ne)),O&&a[eY](ue.name,ue.uri)}catch(K){Z(1,37,"trackPageView failed, page view will not be collected: "+ea(K),{exception:cn(K)})}},L[jx]=function(J,ne,ue){var K=zd(),K=(K&&(J.refUri=J.refUri===void 0?K.referrer:J.refUri),Cr(J[YP])&&(K=(ne||J[tY]||{})[M0]||0,J[YP]=new Date(new Date().getTime()-K)),Dw(J,DE[Ew],DE[cx],L[Hp](),ne,ue));L[Ku][ux](K)},L[rY]=function(J,ne,ue){J=Dw(J,WR[Ew],WR[cx],L[Hp](),ne,ue),L[Ku][ux](J)},L.trackPageViewPerformance=function(J,ne){J=J||{};try{o[hQ](J),L[rY](J,ne)}catch(ue){Z(1,37,"trackPageViewPerformance failed, page view will not be collected: "+ea(ue),{exception:cn(ue)})}},L.startTrackPage=function(J){try{var ne;typeof J!="string"&&(J=(ne=zd())&&ne.title||""),n.start(J)}catch(ue){Z(1,31,"startTrackPage failed, page view may not be collected: "+ea(ue),{exception:cn(ue)})}},L.stopTrackPage=function(J,ne,ue,K){try{var se,be;typeof J!="string"&&(J=(se=zd())&&se.title||""),typeof ne!="string"&&(ne=(be=W0())&&be[bM]||""),n.stop(J,ne,ue,K),O&&a[eY](J,ne)}catch(de){Z(1,32,"stopTrackPage failed, page view will not be collected: "+ea(de),{exception:cn(de)})}},L[eae]=function(J,ne,ue){var K=J&&(J[bj]||J[W2])||AX(J)&&J||{name:J&&typeof J,message:J||y_};J=J||{},K=Dw(new ym(L[Hp](),K,J[tY]||ne,J.measurements,J.severityLevel,J.id).toInterface(),ym[Ew],ym[cx],L[Hp](),ne,ue),L[Ku][ux](K)},L.trackException=function(J,ne){J&&!J[bj]&&J[W2]&&(J[bj]=J[W2]);try{L[eae](J,ne)}catch(ue){Z(1,35,"trackException failed, exception will not be collected: "+ea(ue),{exception:cn(ue)})}},L[wj]=function(J){var ne=J&&J[W2],ue=J&&J.evt;try{ue||(Ue=Zf())&&(ue=Ue[yJe]);var K,se,be=J&&J.url||(zd()||{}).URL,de=J[Ej]||"window.onerror@"+be+":"+(J[Cj]||0)+":"+(J[xj]||0),ge={errorSrc:de,url:be,lineNumber:J[Cj]||0,columnNumber:J[xj]||0,message:J[tae]};iJe(J.message,J.url,J.lineNumber,J.columnNumber,J[W2])?(K=ym[Tj]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",be,J[Cj]||0,J[xj]||0,ne,ue,null,de),se=ge,K=Dw(K,ym[Ew],ym[cx],L[Hp](),se),L[Ku][ux](K)):(J[Ej]||(J[Ej]=de),L.trackException({exception:J,severityLevel:3},ge))}catch(Qe){var Ue=ne?ne.name+", "+ne[tae]:"null";Z(1,11,"_onError threw exception while logging error, error will not be collected: "+ea(Qe),{exception:cn(Qe),errorString:Ue})}},L[g6]=function(J){if(L[Ku])return L[Ku][g6](J);(l=l||[]).push(J)},L.initialize=function(J,ne,ue,K){if(!L.isInitialized()){Cr(ne)&&qp("Error initializing"),B.initialize(J,ne,ue,K);try{var se,be;F=hC(qm(L.identifier),ne.evtNamespace&&ne.evtNamespace()),l&&(un(l,function(Re){ne[g6](Re)}),l=null),ve=J,pe=L.identifier,He=L[Ku],L[FI](Gl(ve,function(){var Re,$e=Cv(null,ve,He);R=$e.getExtCfg(pe,_Je),O=R[abe],ve.storagePrefix&&dQ(ve.storagePrefix),wJe(R),u=R[sbe],!h&&u&&(Re=["/browserLinkSignalR/","/__browserLink/"],L[FI](L[g6](function(tt){if(u&&tt.baseType===UT[Ew]){var ot=tt.baseData;if(ot){for(var qe=0;qe<Re[vD];qe++)if(ot.target&&0<=Wf(ot.target,Re[qe]))return!1}}return!0})),h=!0)})),o=new pJe(L[Ku]),i=new lJe(L,R.overridePageViewDuration,L[Ku],o),a=new gJe(L[Hp](),function(Re,$e,tt){var ot=Re;ot={PageName:Re,PageUrl:$e},L.trackMetric({name:"PageVisitTime",average:tt,max:tt,min:tt,sampleCount:1},ot)}),(t=new iae(L[Hp](),"trackEvent")).action=function(Re,$e,tt,ot,qe){qe=qe||{},(ot=ot||{}).duration=tt[LU](),L.trackEvent({name:Re,properties:ot,measurements:qe})},(n=new iae(L[Hp](),"trackPageView")).action=function(Re,$e,tt,ot,qe){(ot=Cr(ot)?{}:ot).duration=tt[LU](),L[jx]({name:Re,uri:$e,properties:ot,measurements:qe},ot)},Y7()&&(Ue=Zf(),Qe=W0(!0),L[FI](Gl(R,function(){(_=R.disableExceptionTracking)||C||R.autoExceptionInstrumented||(Q(u6(Ue,"onerror",{ns:F,rsp:function(Re,$e,tt,ot,qe,lt){_||Re.rslt===!0||L[wj](ym[Tj]($e,tt,ot,qe,lt,Re.evt))}},!1)),C=!0)})),se=Ue,be=Qe,L[FI](Gl(R,function(){T=R[cbe]===!0,C=C||R[nY],T&&!S&&(Q(u6(se,"onunhandledrejection",{ns:F,rsp:function(Re,$e){T&&Re.rslt!==!0&&L[wj](ym[Tj](vJe($e),be?be[bM]:"",0,0,$e,Re.evt))}},!1)),R[nY]=S=!0)})),de=Zf(),ge=W0(!0),L[FI](Gl(R,function(){var Re,$e,tt,ot;p=R[lbe]===!0,de&&p&&!m&&HKe()&&($e=D_e(),Ci($e.pushState))&&Ci($e.replaceState)&&typeof Event!==HX&&(Re=de,$e=$e,tt=ge,m||(ot=R.namePrefix||"",Q(u6($e,"pushState",{ns:F,rsp:function(){p&&(K2(Re,Y2(ot+"pushState")),K2(Re,Y2(ot+"locationchange")))}},!0)),Q(u6($e,"replaceState",{ns:F,rsp:function(){p&&(K2(Re,Y2(ot+"replaceState")),K2(Re,Y2(ot+"locationchange")))}},!0)),tb(Re,ot+"popstate",function(){p&&K2(Re,Y2(ot+"locationchange"))},F),tb(Re,ot+"locationchange",function(){H=(H&&(N=H),tt&&tt[bM]||"");{var qe,lt;p&&((qe=(function(){var Et=null;L[Ku]&&L[Ku].getTraceCtx&&(Et=L[Ku].getTraceCtx(!1));{var Oe;Et||(Oe=L[Ku].getPlugin(n9))&&(Oe=Oe.plugin.context)&&(Et=lQ(Oe.telemetryTrace))}return Et})())&&(qe.setTraceId(pE()),lt="_unknown_",tt&&tt.pathname&&(lt=tt.pathname+(tt.hash||"")),qe.setName(xc(L[Hp](),lt))),Vm((function(Et){L[eF]({refUri:Et,properties:{duration:0}})}).bind(L,N),L.autoRoutePVDelay))}},F),m=!0))})))}catch(Re){throw L.setInitialized(!1),Re}var de,ge,Ue,Qe,ve,pe,He}},L._doTeardown=function(J,ne){i&&i.teardown(J,ne),jR(window,null,null,F),ie()},Yo(L,"_pageViewManager",{g:function(){return i}}),Yo(L,"_pageViewPerformanceManager",{g:function(){return o}}),Yo(L,"_pageVisitTimeManager",{g:function(){return a}}),Yo(L,"_evtNamespace",{g:function(){return"."+F}})}),j}return Db(e,r),e.Version="3.3.0",e})(Rk),nF="featureOptIn",gbe="onCfgChangeReceive",mbe="nonOverrideConfigs",ybe="scheduleFetchTimeout";function vbe(r,e,t,n){try{var i=n<t,o=(i&&(r=null),t==0?rZe({},r):r);return o&&e&&!i&&oo(o,function(a){var l=e[a];l&&(ip(o[a])&&ip(l)?o[a]=vbe(o[a],l,++t,n):delete o[a])}),o}catch{}return r}var m6,KR="featureOptIn.",_be=".mode",bbe=".onCfg",wbe=".offCfg";function CJe(r,e,t){var n,i,o,a,l,u,h,p,m,_;return e&&e.enabled?(n=(e=(e[nF]||{})[r]||{mode:1}).mode,i=e.onCfg,e=e.offCfg,o=(t=(t||{})[r]||{mode:2}).mode,a=t.onCfg,l=t.offCfg,t=!!t.blockCdnCfg,u=KR+r+bbe,h=KR+r+wbe,p=o,m=a,_=l,t||(n===4||n===5?(p=n==4?3:2,m=i||a,_=e||l):n===2||o===2?(p=2,m=a||i,_=l||e):n===3?(p=3,m=a||i,_=l||e):n===1&&o===1&&(p=1)),(t={})[KR+r+_be]=p,t[u]=m,t[h]=_,t):null}function xJe(r,e){try{var t,n;return r&&r.enabled?r[nF]?(t=r[nF],n=r.config||{},oo(t,function(i){var o=CJe(i,r,e.config[nF]);Cr(o)||(oo(o,function(a,l){V_e(n,a,l)}),TJe(i,o,n))}),n):r.config:null}catch{}return null}function TJe(a,o,t){var n=o[KR+a+_be],i=o[KR+a+bbe],o=o[KR+a+wbe],a=n===2?o:n===3?i:null;a&&oo(a,function(l,u){V_e(t,l,u)})}var SJe="ai_cfgsync",sae="GET",IJe=18e5,UI=void 0,AJe={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},RJe=Tk(((m6={syncMode:1,blkCdnCfg:UI,customEvtName:UI,cfgUrl:UI,overrideSyncFn:UI,overrideFetchFn:UI})[gbe]=UI,m6[ybe]=IJe,m6[mbe]=AJe,m6)),PJe=(function(r){function e(){var t,n,i,o,a,l,u,h,p,m,_,C,T,S,R,O,N=r.call(this)||this,H=(N.priority=198,!(N.identifier="AppInsightsCfgSyncPlugin"));return cs(e,N,function(F,j){function L(){C=O=R=p=_=m=l=T=h=u=a=o=i=n=null}function B(ge,Ue){if(ge){if(n=ge,Ue&&!H)return Z();if(u&&!H)return F.core.updateCfg(ge),!0}return!1}function Q(){try{var ge=Mm();ge&&jR(ge,null,null,o)}catch{}}function Z(ge){try{return O&&Ci(O)?O(n,ge):aXe(i,n,ge)}catch{}return!1}function ie(ge){try{if(Q(),ge&&(i=ge,u)){var Ue=Mm();if(Ue)try{tb(Ue,i,function(ve){var ve=ve&&ve.detail;C&&ve?C(ve):(ve=(ve=ve&&ve.cfg)&&Bh(ve)&&se(ve))&&B(ve)},o,!0)}catch{}}return!0}catch{}return!1}function J(ge,Ue,Qe){var ve=Mm(),ve=ve&&ve.fetch||null;if(ge&&ve&&Ci(ve))try{var pe=new Request(ge,{method:sae});vb(fetch(pe),function(He){var Re=He.value;He.rejected?K(Ue,400):Re.ok?vb(Re.text(),function($e){K(Ue,Re.status,$e.value,Qe)}):K(Ue,Re.status,null,Qe)})}catch{}}function ne(ge,Ue,Qe){try{var ve=new XMLHttpRequest;ve.open(sae,ge),ve.onreadystatechange=function(){ve.readyState===XMLHttpRequest.DONE&&K(Ue,ve.status,ve.responseText,Qe)},ve.onerror=function(){K(Ue,400)},ve.ontimeout=function(){K(Ue,400)},ve.send()}catch{}}function ue(ge,Ue,Qe){try{var ve,pe,He;200<=ge&&ge<400&&Ue?(_=0,(ve=Ev())&&(He=(pe=xJe(ve.parse(Ue),F.core))&&Bh(pe)&&se(pe))&&B(He,Qe)):_++,_<3&&be()}catch{}}function K(ge,Ue,Qe,ve){try{ge(Ue,Qe,ve)}catch{}}function se(ge){var Ue=null;try{ge&&(Ue=vbe(ge,T,0,5))}catch{}return Ue}function be(){!l&&m&&(l=Vm(function(){l=null,S(a,ue,h)},m)).unref()}function de(){l&&l.cancel(),l=null,_=0}L(),F.initialize=function(ge,Ue,Qe,ve){var pe,He,Re;j.initialize(ge,Ue,Qe,ve),o=hC(qm(F.identifier),Ue.evtNamespace&&Ue.evtNamespace()),pe=ge,He=F.identifier,Re=F.core,F._addHook(Gl(pe,function(){var $e=Cv(null,pe,Re),$e=(t=$e.getExtCfg(He,RJe),p),$e=(p=!!t.blkCdnCfg,Cr($e)||$e===p||(!p&&a?S&&S(a,ue,h):de()),Cr(u)&&(u=t.syncMode===2),Cr(h)&&(h=t.syncMode===1),t.customEvtName||SJe);i!==$e&&(u?ie($e):(Q(),i=$e)),(a=Cr(a)?t.cfgUrl:a)||(n=pe,h&&Z())})),O=t.overrideSyncFn,R=t.overrideFetchFn,C=t[gbe],T=t[mbe],m=t[ybe],S=(function(){var $e=R;return Cr($e)&&(qX()?$e=J:Z7()&&($e=ne)),$e})(),_=0,a&&!p&&S&&S(a,ue,h)},F.getCfg=function(){return n},F.pause=function(){H=!0,de()},F.resume=function(){H=!1,be()},F.setCfg=function(ge){return B(ge)},F.sync=Z,F.updateEventListenerName=ie,F._doTeardown=function(ge,Ue){Q(),de(),L()},F._getDbgPlgTargets=function(){return[h,u,i,p,T]},F.processTelemetry=function(ge,Ue){F.processNext(ge,Ue)}}),N}return Db(e,r),e.__ieDyn=1,e})(Rk),Ax="duration",rd="tags",Sj="deviceType",Lh="data",bb="name",_D="traceID",no="length",bD="stringify",BS="measurements",o_="dataType",$S="envelopeType",Rx="toString",EM="_get",BT="enqueue",$T="count",Ebe="eventsLimitInMem",LE="push",FU="item",sY="emitLineDelimitedJson",ZR="clear",fQ="createNew",UU="markAsSent",eN="clearSent",pQ="bufferOverride",Ij="BUFFER_KEY",Cw="SENT_BUFFER_KEY",PA="concat",Z2="MAX_BUFFER_SIZE",X2="triggerSend",Ad="diagLog",Aj="initialize",Q2="_sender",lY="customHeaders",Cbe="maxBatchSizeInBytes",cY="onunloadDisableBeacon",uY="isBeaconApiDisabled",xbe="alwaysUseXhrOverride",dY="disableXhr",Tbe="enableSessionStorageBuffer",xw="_buffer",Sbe="onunloadDisableFetch",Ibe="disableSendBeaconSplit",Abe="instrumentationKey",lae="enableSendPromise",y6="getSenderInst",cae="unloadTransports",Rbe="convertUndefined",Pbe="maxBatchInterval",iF="serialize",BI="_onError",Rj="_onPartialSuccess",v6="_onSuccess",Pj="itemsReceived",kj="itemsAccepted",Oj="oriPayload",Mj="baseType",BU="sampleRate",uae="eventsSendRequest",kbe="getSamplingScore",kJe="getHashCodeScore",Nj="baseType",Vs="baseData",_u="properties",dae="true";function zl(r,e,t){return $a(r,e,t,eU)}function OJe(r,e,t){for(var n=t[rd]=t[rd]||{},i=e.ext=e.ext||{},o=e[rd]=e[rd]||[],a=i.user,a=(a&&(zl(n,ja.userAuthUserId,a.authId),zl(n,ja.userId,a.id||a.localId)),i.app),a=(a&&zl(n,ja.sessionId,a.sesId),i.device),a=(a&&(zl(n,ja.deviceId,a.id||a.localId),zl(n,ja[Sj],a.deviceClass),zl(n,ja.deviceIp,a.ip),zl(n,ja.deviceModel,a.model),zl(n,ja[Sj],a[Sj])),e.ext.web),e=(a&&(zl(n,ja.deviceLanguage,a.browserLang),zl(n,ja.deviceBrowserVersion,a.browserVer),zl(n,ja.deviceBrowser,a.browser),zl(e=(e=(e=t[Lh]=t[Lh]||{})[Vs]=e[Vs]||{})[_u]=e[_u]||{},"domain",a.domain),zl(e,"isManual",a.isManual?dae:null),zl(e,"screenRes",a.screenRes),zl(e,"userConsent",a.userConsent?dae:null)),i.os),a=(e&&(zl(n,ja.deviceOS,e[bb]),zl(n,ja.deviceOSVersion,e.osVer)),i.trace),l=(a&&(zl(n,ja.operationParentId,a.parentID),zl(n,ja.operationName,xc(r,a[bb])),zl(n,ja.operationId,a[_D])),{}),u=o[no]-1;0<=u;u--)oo(o[u],function(p,m){l[p]=m}),o.splice(u,1);oo(o,function(h,p){l[h]=p}),e=$h($h({},n),l),e[ja.internalSdkVersion]||(e[ja.internalSdkVersion]=xc(r,"javascript:".concat(MJe.Version),64)),t[rd]=l1e(e)}function GE(r,e,t){Cr(r)||oo(r,function(n,i){EL(i)?t[n]=i:Xn(i)?e[n]=i:SL()&&(e[n]=Ev()[bD](i))})}function zS(r,e){Cr(r)||oo(r,function(t,n){r[t]=n||e})}function jS(r,e,t,n){return n=new ZQe(r,n,e),zl(n,"sampleRate",t[j1e]),(t[Vs]||{}).startTime&&(n.time=VP(t[Vs].startTime)),n.iKey=t.iKey,e=t.iKey.replace(/-/g,""),n[bb]=n[bb].replace("{0}",e),OJe(r,t,n),t[rd]=t[rd]||[],l1e(n)}function VS(r,e){Cr(e[Vs])&&zr(r,1,46,"telemetryItem.baseData cannot be null.")}var MJe={Version:"3.3.0"};function NJe(r,e,a){VS(r,e);var n,i=e[Vs][BS]||{},o=e[Vs][_u]||{},a=(GE(e[Lh],o,i),Cr(a)||zS(o,a),e[Vs]);return Cr(a)?(LT(r,"Invalid input for dependency data"),null):(n=a[_u]&&a[_u][$oe]?a[_u][$oe]:"GET",n=new UT(r,a.id,a.target,a[bb],a[Ax],a.success,a.responseCode,n,a.type,a.correlationContext,o,i),a=new US(UT[o_],n),jS(r,UT[$S],e,a))}function Obe(r,e,i){VS(r,e);var o={},n={},i=(e[Nj]!==Qw[o_]&&(o.baseTypeSource=e[Nj]),e[Nj]===Qw[o_]?(o=e[Vs][_u]||{},n=e[Vs][BS]||{}):e[Vs]&&GE(e[Vs],o,n),GE(e[Lh],o,n),Cr(i)||zS(o,i),e[Vs][bb]),i=new Qw(r,i,o,n),o=new US(Qw[o_],i);return jS(r,Qw[$S],e,o)}function DJe(r,e,i){VS(r,e);var n=e[Vs][BS]||{},o=e[Vs][_u]||{},i=(GE(e[Lh],o,n),Cr(i)||zS(o,i),e[Vs]),i=ym.CreateFromInterface(r,i,o,n),o=new US(ym[o_],i);return jS(r,ym[$S],e,o)}function LJe(r,e,o){VS(r,e);var a=e[Vs],n=a[_u]||{},i=a[BS]||{},o=(GE(e[Lh],n,i),Cr(o)||zS(n,o),new FT(r,a[bb],a.average,a.sampleCount,a.min,a.max,a.stdDev,n,i)),a=new US(FT[o_],o);return jS(r,FT[$S],e,a)}function HJe(r,e,p){VS(r,e);var n,h=e[Vs],h=(Cr(h)||Cr(h[_u])||Cr(h[_u][Ax])?Cr(e[Lh])||Cr(e[Lh][Ax])||(n=e[Lh][Ax],delete e[Lh][Ax]):(n=h[_u][Ax],delete h[_u][Ax]),e[Vs]),i=(((e.ext||{}).trace||{})[_D]&&(i=e.ext.trace[_D]),h.id||i),o=h[bb],a=h.uri,l=h[_u]||{},u=h[BS]||{},h=(Cr(h.refUri)||(l.refUri=h.refUri),Cr(h.pageType)||(l.pageType=h.pageType),Cr(h.isLoggedIn)||(l.isLoggedIn=h.isLoggedIn[Rx]()),Cr(h[_u])||oo(h[_u],function(m,_){l[m]=_}),GE(e[Lh],l,u),Cr(p)||zS(l,p),new DE(r,o,a,n,l,u,i)),p=new US(DE[o_],h);return jS(r,DE[$S],e,p)}function FJe(r,e,l){VS(r,e);var n=e[Vs],u=n[bb],i=n.uri||n.url,o=n[_u]||{},a=n[BS]||{},l=(GE(e[Lh],o,a),Cr(l)||zS(o,l),new WR(r,u,i,void 0,o,a,n)),u=new US(WR[o_],l);return jS(r,WR[$S],e,u)}function UJe(r,e,a){VS(r,e);var l=e[Vs].message,n=e[Vs].severityLevel,i=e[Vs][_u]||{},o=e[Vs][BS]||{},a=(GE(e[Lh],i,o),Cr(a)||zS(i,a),new YR(r,l,n,i,o)),l=new US(YR[o_],a);return jS(r,YR[$S],e,l)}var Hs,Lw,Mbe=(function(){function r(e,t){var n=[],i=!1,o=t.maxRetryCnt;this[EM]=function(){return n},this._set=function(a){return n=a},cs(r,this,function(a){a[BT]=function(l){a[$T]()>=t[Ebe]?i||(zr(e,2,105,"Maximum in-memory buffer size reached: "+a[$T](),!0),i=!0):(l.cnt=l.cnt||0,!Cr(o)&&l.cnt>o||n[LE](l))},a[$T]=function(){return n[no]},a.size=function(){for(var l=n[no],u=0;u<n[no];u++)l+=n[u].item[no];return t[sY]||(l+=2),l},a[ZR]=function(){i=!(n=[])},a.getItems=function(){return n.slice(0)},a.batchPayloads=function(l){var u;return l&&0<l[no]?(u=[],un(l,function(h){u[LE](h[FU])}),t[sY]?u.join(`
710`):"["+u.join(",")+"]"):null},a[fQ]=function(l,u,h){var p=n.slice(0),m=new(h?Nbe:gQ)(l=l||e,u=u||{});return un(p,function(_){m[BT](_)}),m}})}return r.__ieDyn=1,r})(),gQ=(function(r){function e(t,n){return t=r.call(this,t,n)||this,cs(e,t,function(i,o){i[UU]=function(a){o[ZR]()},i[eN]=function(a){}}),t}return Db(e,r),e.__ieDyn=1,e})(Mbe),BJe=["AI_buffer","AI_sentBuffer"],Nbe=(function(r){function e(n,i){var o=r.call(this,n,i)||this,a=!1,l=i==null?void 0:i.namePrefix,u=i[pQ]||{getItem:WG,setItem:Q1e},h=u.getItem,p=u.setItem,m=i.maxRetryCnt;return cs(e,o,function(_,C){var T=N(e[Ij]),S=N(e[Cw]),R=(function(){var L=[];try{return un(BJe,function(B){var Q=j(B);L=L[PA](Q),l&&(Q=j(l+"_"+B),L=L[PA](Q))}),L}catch(B){zr(n,2,41,"Transfer events from previous buffers: "+ea(B)+". previous Buffer items can not be removed",{exception:cn(B)})}return[]})(),S=S[PA](R),R=_._set(T[PA](S));function O(L,B){var Q=[],Z=[];return un(L,function(ie){Z[LE](ie[FU])}),un(B,function(ie){Ci(ie)||Gd(Z,ie[FU])!==-1||Q[LE](ie)}),Q}function N(L){return H(l?l+"_"+L:L)}function H(L){try{var B=h(n,L);if(B){var Q=Ev().parse(B);if((Q=Xn(Q)?Ev().parse(Q):Q)&&io(Q))return Q}}catch(Z){zr(n,1,42," storage key: "+L+", "+ea(Z),{exception:cn(Z)})}return[]}function F(L,B){try{var L=l?l+"_"+L:L,Q=JSON[bD](B);p(n,L,Q)}catch(Z){p(n,L,JSON[bD]([])),zr(n,2,41," storage key: "+L+", "+ea(Z)+". Buffer cleared",{exception:cn(Z)})}}function j(L){try{var B=H(L),Q=[];return un(B,function(Z){Q[LE]({item:Z,cnt:0})}),J1e(n,L),Q}catch{}return[]}R[no]>e[Z2]&&(R[no]=e[Z2]),F(e[Cw],[]),F(e[Ij],R),_[BT]=function(L){_[$T]()>=e[Z2]?a||(zr(n,2,67,"Maximum buffer size reached: "+_[$T](),!0),a=!0):(L.cnt=L.cnt||0,!Cr(m)&&L.cnt>m||(C[BT](L),F(e.BUFFER_KEY,_[EM]())))},_[ZR]=function(){C[ZR](),F(e.BUFFER_KEY,_[EM]()),F(e[Cw],[]),a=!1},_[UU]=function(L){F(e[Ij],_._set(O(L,_[EM]())));var B=N(e[Cw]);B instanceof Array&&L instanceof Array&&((B=B[PA](L))[no]>e[Z2]&&(zr(n,1,67,"Sent buffer reached its maximum size: "+B[no],!0),B[no]=e[Z2]),F(e[Cw],B))},_[eN]=function(L){L=O(L,N(e[Cw])),F(e[Cw],L)},_[fQ]=function(L,B,Q){Q=!!Q;var Z=_[EM]().slice(0),ie=N(e[Cw]).slice(0),J=(L=L||n,B=B||{},_[ZR](),new(Q?e:gQ)(L,B));return un(Z,function(ne){J[BT](ne)}),Q&&J[UU](ie),J}}),o}var t;return Db(e,r),(t=e).VERSION="_1",e.BUFFER_KEY="AI_buffer"+t.VERSION,e.SENT_BUFFER_KEY="AI_sentBuffer"+t.VERSION,e.MAX_BUFFER_SIZE=2e3,e})(Mbe),$Je=(function(){function r(e){cs(r,this,function(t){function n(a,l){var u="__aiCircularRefCheck",h={};if(a)if(a[u])zr(e,2,50,"Circular reference detected while serializing object",{name:l},!0);else if(a.aiDataContract)a[u]=!0,oo(a.aiDataContract,function(p,T){var _=Ci(T)?1&T():1&T,C=Ci(T)?4&T():4&T,T=2&T,S=a[p]!==void 0,R=ip(a[p])&&a[p]!==null;!_||S||T?C||(_=void 0)!==(_=R?(T?i:n)(a[p],p):a[p])&&(h[p]=_):zr(e,1,24,"Missing required field specification. The field is required but not present on source",{field:p,name:l})}),delete a[u];else if(l==="measurements")h=o(a,"number",l);else if(l==="properties")h=o(a,"string",l);else if(l==="tags")h=o(a,"string",l);else if(io(a))h=i(a,l);else{zr(e,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:l},!0);try{Ev()[bD](a),h=a}catch(p){zr(e,1,48,p&&Ci(p[Rx])?p[Rx]():"Error serializing object",null,!0)}}else zr(e,1,48,"cannot serialize object because it is null or undefined",{name:l},!0);return h}function i(a,l){if(a)if(io(a))for(var u=[],h=0;h<a[no];h++){var p=n(a[h],l+"["+h+"]");u[LE](p)}else zr(e,1,54,`This field was specified as an array in the contract but the item is not an array.\r
711`,{name:l},!0);return u}function o(a,l,u){var h;return a&&(h={},oo(a,function(p,m){l==="string"?m===void 0?h[p]="undefined":m===null?h[p]="null":m[Rx]?h[p]=m[Rx]():h[p]="invalid field: toString() is not defined.":l==="number"?m===void 0?h[p]="undefined":m===null?h[p]="null":(m=parseFloat(m),h[p]=m):(h[p]="invalid field: "+u+" is of unknown type.",zr(e,1,h[p],null,!0))})),h}t[iF]=function(a){a=n(a,"root");try{return Ev()[bD](a)}catch(l){zr(e,1,48,l&&Ci(l[Rx])?l[Rx]():"Error serializing object",null,!0)}}})}return r.__ieDyn=1,r})(),zJe=8,jJe=(function(){function r(){}return r.prototype.getHashCodeScore=function(e){return 100*(this.getHashCode(e)/r.INT_MAX_VALUE)},r.prototype.getHashCode=function(e){if(e==="")return 0;for(;e[no]<zJe;)e=e[PA](e);for(var t=5381,n=0;n<e[no];++n)t=(t<<5)+t+e.charCodeAt(n),t&=t;return Math.abs(t)},r.INT_MAX_VALUE=2147483647,r})(),VJe=function(){var r=new jJe,e=new nbe;this[kbe]=function(t){return t[rd]&&t[rd][e.userId]?r.getHashCodeScore(t[rd][e.userId]):t.ext&&t.ext.user&&t.ext.user.id?r[kJe](t.ext.user.id):t[rd]&&t[rd][e.operationId]?r.getHashCodeScore(t[rd][e.operationId]):t.ext&&t.ext.telemetryTrace&&t.ext.telemetryTrace[_D]?r.getHashCodeScore(t.ext.telemetryTrace[_D]):100*Math.random()}},qJe=(function(){function r(e,t){this.INT_MAX_VALUE=2147483647,t=t||LS(null),(100<e||e<0)&&(t.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this[BU]=e,this.samplingScoreGenerator=new VJe}return r.prototype.isSampledIn=function(e){var t=this[BU];return t==null||100<=t||e.baseType===FT[o_]||this.samplingScoreGenerator[kbe](e)<t},r})(),x1=void 0,hae="",GJe=65e3;function fae(r){try{return r.responseText}catch{}return null}function YJe(r){return r&&r.sendPOST}var pae=Tk(((Hs={endpointUrl:TU(eU,oQ+VR)})[sY]=_c(),Hs[Pbe]=15e3,Hs[Cbe]=102400,Hs.disableTelemetry=_c(),Hs[Tbe]=_c(!0),Hs.isRetryDisabled=_c(),Hs[uY]=_c(!0),Hs[Ibe]=_c(!0),Hs[dY]=_c(),Hs[Sbe]=_c(),Hs[cY]=_c(),Hs[Abe]=x1,Hs.namePrefix=x1,Hs.samplingPercentage=TU(WJe,100),Hs[lY]=x1,Hs[Rbe]=x1,Hs[Ebe]=1e4,Hs[pQ]=!1,Hs.httpXHROverride={isVal:YJe,v:x1},Hs[xbe]=_c(),Hs.transports=x1,Hs.retryCodes=x1,Hs.maxRetryCnt={isVal:EL,v:10},Hs));function WJe(r){return!isNaN(r)&&0<r&&r<=100}(Lw={})[Qw.dataType]=Obe,Lw[YR.dataType]=UJe,Lw[DE.dataType]=HJe,Lw[WR.dataType]=FJe,Lw[ym.dataType]=DJe,Lw[FT.dataType]=LJe,Lw[UT.dataType]=NJe;var KJe=Lw,ZJe=(function(r){function e(){var t,n,i,o,a,l,u,h,p,m,_,C,T,S,R,O,N,H,F,j,L,B,Q,Z,ie,J,ne,ue,K,se,be,de,ge,Ue,Qe=r.call(this)||this,ve=(Qe.priority=1001,Qe.identifier=ibe,0);return cs(e,Qe,function(pe,He){function Re(Me,X){var z=fae(Me);!Me||z+""!="200"&&z!==""?(z=oj(z))&&z[Pj]&&z[Pj]>z[kj]&&!L?pe[Rj](X,z):pe[BI](X,u1e(Me)):(t=0,pe[v6](X,0))}function $e(Me,X,z){Me.readyState===4&&Ae(Me.status,X,Me.responseURL,z,EU(Me),fae(Me)||Me.response)}function tt(Me){try{var X;if(Me)return(X=Me[Oj])&&X[no]?X:null}catch{}return null}function ot(Me,X){return!(H||(Me?Me.baseData&&!Me[Mj]?(X&&zr(X,1,70,"Cannot send telemetry without baseData and baseType"),1):(Me[Mj]||(Me[Mj]="EventData"),pe[Q2]?pe._sample.isSampledIn(Me)?(Me[j1e]=pe._sample[BU],0):(X&&zr(X,2,33,"Telemetry item was sampled out and not sent",{SampleRate:pe._sample[BU]}),1):(X&&zr(X,1,28,"Sender was not initialized"),1)):(X&&zr(X,1,7,"Cannot send empty telemetry"),1)))}function qe(Me,X){var z=Me.iKey||F,W=e.constructEnvelope(Me,z,X,j);if(W){var Se=!1;if(Me[rd]&&Me[rd][lj]&&(un(Me[rd][lj],function(Ke){try{Ke&&Ke(W)===!1&&(Se=!0,LT(X,"Telemetry processor check returns false"))}catch(je){zr(X,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+ea(je),{exception:cn(je)},!0)}}),delete Me[rd][lj]),!Se)return W}else zr(X,1,47,"Unable to create an AppInsights envelope")}function lt(Me){var X=hae,z=pe[Ad]();try{var W=ot(Me,z),Se=null;(Se=W?qe(Me,z):Se)&&(X=a[iF](Se))}catch{}return X}function Et(Me){var X=hae;return X=Me&&Me[no]?"["+Me.join(",")+"]":X}function Oe(Me){var X=te(),z={urlString:_};return z[Lh]=Me,z.headers=X,z}function le(je,X,z,W){W===void 0&&(W=!0);function Se(We,Pt,Jt){var wr;wr=X,Jt=Jt,We===200&&wr?pe._onSuccess(wr,wr[no]):Jt&&pe[BI](wr,Jt)}var Ke=re(X),je=je&&je.sendPOST;return je&&Ke?(W&&pe._buffer[UU](X),je(Ke,Se,!z)):null}function re(Me){var X,z,W;return io(Me)&&0<Me[no]?(z=pe[xw].batchPayloads(Me),W=te(),(X={})[Lh]=z,X.urlString=_,X.headers=W,X.disableXhrSync=ue,X.disableFetchKeepAlive=!K,X[Oj]=Me,X):null}function te(){try{var Me=u||{};return YG(_)&&(Me[Ra[6]]=Ra[7]),Me}catch{}return null}function me(Me){Me=Me?Me[no]:0,pe[xw].size()+Me>T&&(p&&!p.isOnline()||pe[X2](!0,null,10))}function Ae(Me,X,z,W,Se,Ke){var je=null;pe._appId||(je=oj(Ke))&&je.appId&&(pe._appId=je.appId),(Me<200||300<=Me)&&Me!==0?(Me!==301&&Me!==307&&Me!==308||_e(z))&&!L&&Xe(Me)?(kt(X),zr(pe[Ad](),2,40,". Response code "+Me+". Will retry to send "+X[no]+" items.")):pe[BI](X,Se):p&&!p.isOnline()?L||(kt(X,10),zr(pe[Ad](),2,40,". Offline - Response Code: ".concat(Me,". Offline status: ").concat(!p.isOnline(),". Will retry to send ").concat(X.length," items."))):(_e(z),Me===206?(je=je||oj(Ke))&&!L?pe[Rj](X,je):pe[BI](X,Se):(t=0,pe[v6](X,W)))}function _e(Me){return!(10<=l||Cr(Me)||Me===""||Me===_)&&(_=Me,++l,1)}function Ve(Me,X){if(!h)return le(ge&&ge[y6]([3],!0),Me,X);h(Me,!1)}function it(Me){try{if(Me&&Me[no])return Xn(Me[0])}catch{}}function vt(Me,X){var z=null;if(io(Me)){for(var W=Me[no],Se=0;Se<Me[no];Se++)W+=Me[Se].item[no];return ge.getSyncFetchPayload()+W<=GJe?z=2:vM()?z=3:(z=1,zr(pe[Ad](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender.")),le(ge&&ge[y6]([z],!0),Me,X)}return null}function kt(Me,X){if(X===void 0&&(X=1),Me&&Me[no]!==0){var z=pe[xw];z[eN](Me),t++;for(var W,Se=0,Ke=Me;Se<Ke.length;Se++){var je=Ke[Se];je.cnt=je.cnt||0,je.cnt++,z[BT](je)}Me=X,Me=t<=1?10:(W=(Math.pow(2,t)-1)/2,W=Math.floor(Math.random()*W*10)+1,W*=Me,Math.max(Math.min(W,3600),10)),W=g_()+1e3*Me,n=W,rt()}}function rt(){var Me;o||i||(Me=n?Math.max(0,n-g_()):0,Me=Math.max(B,Me),o=Vm(function(){o=null,pe[X2](!0,null,1)},Me))}function bt(){o&&o.cancel(),n=o=null}function Xe(Me){return Cr(Ue)?Me===401||Me===408||Me===429||Me===500||Me===502||Me===503||Me===504:Ue[no]&&-1<Ue.indexOf(Me)}function ct(){pe[Q2]=null,pe[xw]=null,pe._appId=null,pe._sample=null,T=ve=l=t=0,ie=j=x1,de=K=ue=L=H=S=i=!(u={}),ge=be=se=Q=F=N=C=_=m=h=a=o=n=p=null,Yo(pe,"_senderConfig",{g:function(){return c1e({},pae)}})}ct(),pe.pause=function(){bt(),i=!0},pe.resume=function(){i&&(i=!1,n=null,me(),rt())},pe.flush=function(Me,X,z){if(Me===void 0&&(Me=!0),!i){bt();try{return pe[X2](Me,null,z||1)}catch(W){zr(pe[Ad](),1,22,"flush failed, telemetry will not be collected: "+ea(W),{exception:cn(W)})}}},pe.onunloadFlush=function(){if(!i)if(S||ne)try{return pe[X2](!0,Ve,2)}catch(Me){zr(pe[Ad](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+ea(Me),{exception:cn(Me)})}else pe.flush(!1)},pe.addHeader=function(Me,X){u[Me]=X},pe[Aj]=function(Me,X,z,W){pe.isInitialized()&&zr(pe[Ad](),1,28,"Sender is already initialized"),He[Aj](Me,X,z,W);var Se=pe.identifier,Ke=(a=new $Je(X.logger),t=0,n=null,pe[Q2]=null,l=0,pe[Ad]());m=hC(qm("Sender"),X.evtNamespace&&X.evtNamespace()),p=oJe(m),pe._addHook(Gl(Me,function(je){je=je.cfg,je.storagePrefix&&dQ(je.storagePrefix);var We=Cv(null,je,X).getExtCfg(Se,pae),Mt=(Yo(pe,"_senderConfig",{g:function(){return We}}),X.activeStatus()===zw.PENDING?pe.pause():X.activeStatus()===zw.ACTIVE&&pe.resume(),C!==We.endpointUrl&&(_=C=We.endpointUrl),N&&N!==We[lY]&&un(N,function(Te){delete u[Te.header]}),T=We[Cbe],S=(We[cY]===!1||We[uY]===!1)&&vM(),R=We[cY]===!1&&vM(),O=We[uY]===!1&&vM(),ne=We[xbe],ue=!!We[dY],Ue=We.retryCodes,We[pQ]),rr=!!We[Tbe]&&(!!Mt||yD()),wr=We.namePrefix,Jt=rr!==Q||rr&&ie!==wr||rr&&Z!==Mt;if(pe[xw]){if(Jt)try{pe._buffer=pe._buffer[fQ](Ke,We,rr)}catch(Te){zr(pe[Ad](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+ea(Te),{exception:cn(Te)})}me()}else pe[xw]=new(rr?Nbe:gQ)(Ke,We);ie=wr,Q=rr,Z=Mt,K=!We[Sbe]&&qX(!0),de=!!We[Ibe],pe._sample=new qJe(We.samplingPercentage,Ke),(function(Te,fe){return fe=fe.disableInstrumentationKeyValidation,!Cr(fe)&&fe?1:new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$").test(Te)})(F=We[Abe],je)||zr(Ke,1,100,"Invalid Instrumentation key "+F),N=We[lY],Xn(_)&&!YG(_)&&N&&0<N[no]?un(N,function(Te){Qe.addHeader(Te.header,Te.value)}):N=null,J=We[lae];var Pt,Jt=(function(){var Te;try{var fe={xdrOnComplete:function(Ee,xe,et){if(et=tt(et),et)return Re(Ee,et)},fetchOnComplete:function(Ee,xe,et,gt){if(gt=tt(gt),gt)return Ae(Ee.status,gt,Ee.url,gt[no],Ee.statusText,et||"")},xhrOnComplete:function(Ee,xe,et){if(et=tt(et),et)return $e(Ee,et,et[no])},beaconOnRetry:function(Ee,xe,et){var gt=xe,Rt=et,dt=Ee&&Ee[Oj];if(de)be&&be(dt,!0),zr(pe[Ad](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var pt=[],wt=0;wt<dt[no];wt++){var Yt=dt[wt],Vt=[Yt],ar=re(Vt);Rt(ar,gt)?pe._onSuccess(Vt,Vt[no]):pt[LE](Yt)}0<pt[no]&&(be&&be(pt,!0),zr(pe[Ad](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}};return(Te={})[lae]=J,Te.isOneDs=!1,Te.disableCredentials=!1,Te[dY]=ue,Te.disableBeacon=!O,Te.disableBeaconSync=!R,Te.senderOnCompleteCallBack=fe,Te}catch{}return null})(),wr=(ge?ge.SetConfig(Jt):(ge=new mQe)[Aj](Jt,Ke),We.httpXHROverride),rr=ioe([3,1,2],We.transports),Nr=ge&&ge[y6](rr,!1),mt=ge&&ge.getFallbackInst(),Mt=(se=function(Te,fe){return le(mt,Te,fe)},be=function(Te,fe){return le(mt,Te,fe,!1)},Nr=ne?wr:Nr||wr||mt,pe[Q2]=function(Te,fe){return le(Nr,Te,fe)},K&&(h=vt),ioe([3,1],We[cae]));K||(Mt=Mt.filter(function(Te){return Te!==2})),Pt=ge&&ge[y6](Mt,!0),Pt=!ne&&Pt||wr,h=(h=(ne||We[cae]||!h)&&Pt?function(Te,fe){return le(Pt,Te,fe)}:h)||se,H=We.disableTelemetry,j=We[Rbe]||x1,L=We.isRetryDisabled,B=We[Pbe]}))},pe.processTelemetry=function(Me,X){var z,W=(X=pe._getTelCtx(X))[Ad]();try{if(!ot(Me,W))return;var Se=qe(Me,W);if(!Se)return;var Ke=a[iF](Se),je=pe[xw],We=(me(Ke),(z={})[FU]=Ke,z.cnt=0,z);je[BT](We),rt()}catch(Pt){zr(W,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+ea(Pt),{exception:cn(Pt)})}pe.processNext(Me,X)},pe.isCompletelyIdle=function(){return!i&&ve===0&&pe._buffer[$T]()===0},pe._xhrReadyStateChange=function(Me,X,z){if(!it(X))return $e(Me,X,z)},pe[X2]=function(Me,X,z){var W;if(Me===void 0&&(Me=!0),!i)try{var Se=pe[xw];if(H)Se[ZR]();else if(0<Se[$T]()){var Ke=Se.getItems(),je=z||0,We=Me,Pt=(function(){var Jt="getNotifyMgr";return pe.core[Jt]?pe.core[Jt]():pe.core._notificationManager})();if(Pt&&Pt[uae])try{Pt[uae](je,We)}catch(Jt){zr(pe[Ad](),1,74,"send request notification failed: "+ea(Jt),{exception:cn(Jt)})}W=X?X.call(pe,Ke,Me):pe[Q2](Ke,Me)}bt()}catch(Jt){Se=p1e(),(!Se||9<Se)&&zr(pe[Ad](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+ea(Jt),{exception:cn(Jt)})}return W},pe.getOfflineSupport=function(){var Me={getUrl:function(){return _},createPayload:Oe};return Me[iF]=lt,Me.batch=Et,Me.shouldProcess=function(X){return!!ot(X)},Me},pe._doTeardown=function(Me,X){pe.onunloadFlush(),nR(p,!1),ct()},pe[BI]=function(Me,X,z){if(!it(Me))return Me=Me,X=X,zr(pe[Ad](),2,26,"Failed to send telemetry.",{message:X}),void(pe._buffer&&pe._buffer[eN](Me))},pe[Rj]=function(Me,X){if(!it(Me)){for(var z=Me,Me=X,W=[],Se=[],X=Me.errors.reverse(),Ke=0,je=X;Ke<je.length;Ke++){var We=je[Ke],Pt=z.splice(We.index,1)[0];(Xe(We.statusCode)?Se:W)[LE](Pt)}0<z[no]&&pe[v6](z,Me[kj]),0<W[no]&&pe[BI](W,EU(null,["partial success",Me[kj],"of",Me.itemsReceived].join(" "))),0<Se[no]&&(kt(Se),zr(pe[Ad](),2,40,"Partial success. Delivered: "+z[no]+", Failed: "+W[no]+". Will retry to send "+Se[no]+" our of "+Me[Pj]+" items"))}},pe[v6]=function(Me,X){it(Me)||(Me=Me,pe._buffer&&pe._buffer[eN](Me))},pe._xdrOnLoad=function(Me,X){if(!it(X))return Re(Me,X)}}),Qe}return Db(e,r),e.constructEnvelope=function(t,n,i,o){return t=n===t.iKey||Cr(n)?t:$h($h({},t),{iKey:n}),(KJe[t.baseType]||Obe)(i,t,o)},e})(Rk),gae="duration",zT="properties",rv="requestUrl",CM="inst",oT="length",B1="traceID",mE="spanID",Cm="traceFlags",tN="context",XR="aborted",oF="traceId",aF="spanId",_6="_addHook",Vy="core",Dj="includeCorrelationHeaders",hY="getAbsoluteUrl",dx="headers",pm="requestHeaders",Lj="setRequestHeader",mae="trackDependencyDataInternal",aT="startTime",$I="toLowerCase",fY="enableRequestHeaderTracking",Dbe="enableAjaxErrorStatusText",Lbe="enableAjaxPerfTracking",Hbe="maxAjaxCallsPerView",Fbe="excludeRequestFromAutoTrackingPatterns",Ube="addRequestContext",pY="disableAjaxTracking",Bbe="ajaxPerfLookupDelay",$be="disableFetchTracking",zbe="enableResponseHeaderTracking",ev="status",Vx="statusText",aR="headerMap",gY="openDone",mY="sendDone",sT="requestSentTime",yY="abortDone",vY="getTraceId",_Y="getTraceFlags",eE="method",bY="errorStatusText",jbe="stateChangeAttached",yae="responseText",xM="responseFinishedTime",wY="CreateTrackItem",Vbe="response",vae="getAllResponseHeaders",EY="getPartAProps",$U="perfMark",kA="name",CY="perfTiming",rN="exception",_ae="ajaxDiagnosticsMessage",xY="correlationContext",Hj="ajaxTotalDuration",bae="eventTraceCtx";function qbe(o,i,t){var n=0,i=o[i],o=o[t];return n=i&&o?Lf(i,o):n}function hx(r,e,a,n,i){var o=0,a=qbe(a,n,i);return o=a?Hw(r,e,Jw(a)):o}function Hw(r,e,t){var n=0;return r&&e&&t&&((r.ajaxPerf=r.ajaxPerf||{})[e]=t,n=1),n}function XJe(r,e){var t,n=r[CY],i=e[zT]||{},o=0,m="Start",a="domainLookup",l="connect",u="request",h="response",p=l+"End",m=u+m,_=h+"End",C="transferSize",T="encodedBodySize",S="decodedBodySize",R="serverTiming";n?(o=(o=(o=(o=(o=(o=(o|=hx(i,"End",n,"redirectStart","End"))|hx(i,a,n,"domainLookupStart","domainLookupEnd"))|hx(i,l,n,"connectStart",p))|hx(i,u,n,m,"requestEnd"))|hx(i,h,n,"responseStart",_))|hx(i,"networkConnect",n,"startTime",p))|hx(i,"sentRequest",n,m,_),a=(a=n[gae])||qbe(n,"startTime",_)||0,o=(o|=Hw(i,gae,a))|Hw(i,"perfTotal",a),(l=n[R])&&(t={},un(l,function(O,H){var H=_U(O.name||""+H),F=t[H]||{};oo(O,function(j,L){!(j!=="name"&&Xn(L)||EL(L))||!(L=F[j]?F[j]+";"+L:L)&&Xn(L)||(F[j]=L)}),t[H]=F}),o|=Hw(i,R,t)),o=(o=(o|=Hw(i,C,n[C]))|Hw(i,T,n[T]))|Hw(i,S,n[S])):r[$U]&&(o|=Hw(i,"missing",r.perfAttempts)),o&&(e[zT]=i)}var Bl,QJe=function(){this[gY]=!1,this.setRequestHeaderDone=!1,this[mY]=!1,this[yY]=!1,this[jbe]=!1},wae=(function(){function r(e,t,n,i){var o=this,a=n;o[$U]=null,o.completed=!1,o.requestHeadersSize=null,o[pm]=null,o.responseReceivingDuration=null,o.callbackDuration=null,o[Hj]=null,o[XR]=0,o.pageUrl=null,o[rv]=null,o.requestSize=0,o[eE]=null,o[ev]=null,o[sT]=null,o.responseStartedTime=null,o[xM]=null,o.callbackFinishedTime=null,o.endTime=null,o.xhrMonitoringState=new QJe,o.clientFailure=0,o[B1]=e,o[mE]=t,o[Cm]=i==null?void 0:i.getTraceFlags(),o[bae]=i?((n={})[oF]=i[vY](),n[aF]=i.getSpanId(),n[Cm]=i[_Y](),n):null,cs(r,o,function(l){l.getAbsoluteUrl=function(){return l[rv]?LQe(l[rv]):null},l.getPathName=function(){return l[rv]?e9(a,HQe(l[eE],l[rv])):null},l[wY]=function(u,h,p){var m;return l.ajaxTotalDuration=Math.round(1e3*Lf(l.requestSentTime,l.responseFinishedTime))/1e3,l[Hj]<0?null:((m={id:"|"+l[B1]+"."+l[mE],target:l[hY]()})[kA]=l.getPathName(),m.type=u,m[aT]=null,m.duration=l[Hj],m.success=200<=+l[ev]&&+l[ev]<400,m.responseCode=+l[ev],m[zT]={HttpMethod:l[eE]},m=(u=m)[zT],l[XR]&&(m[XR]=!0),l[sT]&&(u[aT]=new Date,u[aT].setTime(l[sT])),XJe(l,u),h&&0<Q1(l.requestHeaders)[oT]&&(m[pm]=l[pm]),p&&(h=p())&&((p=h[xY])&&(u.correlationContext=p),h[aR]&&0<Q1(h.headerMap)[oT]&&(m.responseHeaders=h[aR]),l[bY])&&(400<=l[ev]?((p=h.type)!==""&&p!=="text"||(m.responseText=h.responseText?h[Vx]+" - "+h.responseText:h[Vx]),p==="json"&&(m.responseText=h.response?h[Vx]+" - "+JSON.stringify(h[Vbe]):h[Vx])):l[ev]===0&&(m.responseText=h[Vx]||"")),u)},l[EY]=function(){var u,h=null,p=l[bae];return p&&(p[oF]||p[aF])&&(u=(h={})[Bp.TraceExt]=((u={})[B1]=p[oF],u.parentID=p[aF],u),Cr(p[Cm])||(u[Cm]=p[Cm])),h}})}return r.__ieDyn=1,r})(),nN="diagLog",HE="_ajaxData",qx="fetch",J2="Failed to monitor XMLHttpRequest",Gbe=", monitoring data for this ajax call ",zI=Gbe+"may be incorrect.",Eae=Gbe+"won't be sent.",Cae="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",xae="Failed to add custom defined request context as configured call back may missing a null check.",Tae="Failed to calculate the duration of the ",JJe=0;function eet(){var r=Mm();return!r||Cr(r.Request)||Cr(r.Request[n_])||Cr(r[qx])?null:r[qx]}function tet(r,e){var t,n=!1,i=(Z7()&&(n=!(Cr(i=XMLHttpRequest[n_])||Cr(i.open)||Cr(i.send)||Cr(i.abort))),p1e());if(n=i&&i<9?!1:n)try{var o=new XMLHttpRequest,a={xh:[],i:((t={})[e]={},t)},l=(o[HE]=a,XMLHttpRequest[n_].open);XMLHttpRequest[n_].open=l}catch(u){n=!1,iN(r,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",((i={})[rN]=cn(u),i))}return n}var OA=function(r,e){return r&&e&&r[HE]?(r[HE].i||{})[e]:null},ret=function(r,e,t){r&&(r=(r[HE]||{}).xh)&&r.push({n:e,v:t})},Fj=function(r,e){var t=!1;return r&&(r=(r[HE]||{}).xh)&&un(r,function(n){if(n.n===e)return t=!0,-1}),t};function sF(r,e){var t="";try{var n=OA(r,e);n&&n[rv]&&(t+="(url: '"+n[rv]+"')")}catch{}return t}function iN(r,e,t,n,i){zr(r[nN](),1,e,t,n,i)}function g1(r,e,t,n,i){zr(r[nN](),2,e,t,n,i)}function eO(r,e,t){return function(n){var i;iN(r,e,t,((i={ajaxDiagnosticsMessage:sF(n[CM],r._ajaxDataId)})[rN]=cn(n.err),i))}}function jI(r,e){return r&&e?Wf(r,e):-1}function Sae(r,e,t){var n={id:e,fn:t};return r.push(n),{remove:function(){un(r,function(i,o){if(i.id===n.id)return r.splice(o,1),-1})}}}function Ybe(r,e,t,n){var i=!0;return un(e,function(o,a){try{o.fn.call(null,t)===!1&&(i=!1)}catch(l){zr(r&&r.logger,1,64,"Dependency "+n+" [#"+a+"] failed: "+ea(l),{exception:cn(l)},!0)}}),i}function net(r,e,t,n,i,o){var a;0<r[oT]&&((a={})[Vy]=e,a.xhr=n,a.input=i,a.init=o,a.traceId=t[B1],a.spanId=t[mE],a.traceFlags=t[Cm],a.context=t[tN]||{},a.aborted=!!t[XR],Ybe(e,r,n=a,"listener"),t[B1]=n[oF],t[mE]=n[aF],t[Cm]=n[Cm],t[tN]=n[tN])}var b6="*.blob.core.",iet=gb([b6+"windows.net",b6+"chinacloudapi.cn",b6+"cloudapi.de",b6+"usgovcloudapi.net"]),oet=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i],aet=gb(((Bl={})[Hbe]=500,Bl[pY]=!1,Bl[$be]=!1,Bl[Fbe]=void 0,Bl.disableCorrelationHeaders=!1,Bl.distributedTracingMode=1,Bl.correlationHeaderExcludedDomains=iet,Bl.correlationHeaderDomains=void 0,Bl.correlationHeaderExcludePatterns=void 0,Bl.appId=void 0,Bl.enableCorsCorrelation=!1,Bl[fY]=!1,Bl[zbe]=!1,Bl[Dbe]=!1,Bl[Lbe]=!1,Bl.maxAjaxPerfLookupAttempts=3,Bl[Bbe]=25,Bl.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],Bl[Ube]=void 0,Bl.addIntEndpoints=!0,Bl)),set=(function(r){function e(){var t,n,i,o,a,l,u,h,p,m,_,C,T,S,R,O,N,H,F,j,L,B,Q,Z,ie,J,ne,ue,K,se,be=r.call(this)||this;return be.identifier=e.identifier,be.priority=120,cs(e,be,function(de,ge){var Ue=ge[_6];function Qe(){var Oe=W0();se=n=t=!1,i=Oe&&Oe.host&&Oe.host[$I](),S=C=m=p=l=a=!1,N=O=!(R={}),j=F=H=_=h=o=null,B=T=u=0,Q=[],Z=[],L=qm("ajaxData"),de._ajaxDataId=L,ue=ne=J=1,K=ie=null}function ve(Oe){var le=!0;return(Oe||ie)&&un(ie,function(re){if(re[$I]()===Oe[$I]())return le=!1,-1}),le}function pe(Oe,le,re){Ue(PQe(Oe,le,re))}function He(Oe,le,re){var te,me,Ae=!1,_e=((Xn(le)?le:(le||{}).url||"")||"")[$I]();return un(H,function(Ve){var it=Ve;Xn(Ve)&&(it=new RegExp(Ve)),Ae=Ae||it.test(_e)}),Ae||(te=jI(_e,"?"),me=jI(_e,"#"),(te=te===-1||me!==-1&&me<te?me:te)!==-1&&(_e=_e.substring(0,te)),Cr(Oe)?Cr(le)||(Ae=typeof le=="object"&&le[d6]===!0||!!re&&re[d6]===!0):Ae=Oe[d6]===!0||_e[d6]===!0,(Ae=!Ae&&_e&&YG(_e)?!0:Ae)?R[_e]||(R[_e]=1):R[_e]&&(Ae=!0)),Ae}function Re(Oe,le,re){var te=!0,me=n;return Cr(Oe)||(te=re===!0||!Cr(le)),me&&te}function $e(){var Oe=null;return Oe=!(Oe=de[Vy]&&de[Vy].getTraceCtx?de[Vy].getTraceCtx(!1):Oe)&&h&&h.telemetryTrace?lQ(h.telemetryTrace):Oe}function tt(Oe,le){var re;le[rv]&&_&&C&&(re=mb())&&Ci(re.mark)&&(Oe=_+Oe+"#"+ ++JJe,re.mark(Oe),re=re.getEntriesByName(Oe))&&re[oT]===1&&(le[$U]=re[0])}function ot(Oe,le,re,te){var me=le[$U],Ae=mb(),_e=J,Ve=ne,it=le[rv],vt=0;(function kt(){try{if(Ae&&me){vt++;for(var rt=null,bt=Ae.getEntries(),Xe=bt[oT]-1;0<=Xe;Xe--){var ct=bt[Xe];if(ct){if(ct.entryType==="resource")ct.initiatorType!==Oe||jI(ct[kA],it)===-1&&jI(it,ct[kA])===-1||(rt=ct);else if(ct.entryType==="mark"&&ct[kA]===me[kA]){le[CY]=rt;break}if(ct[aT]<me[aT]-1e3)break}}}!me||le[CY]||_e<=vt||le.async===!1?(me&&Ci(Ae.clearMarks)&&Ae.clearMarks(me[kA]),le.perfAttempts=vt,re()):Vm(kt,Ve)}catch(Me){te(Me)}})()}function qe(Oe){var le="";try{Cr(Oe)||(le+="(url: '".concat(typeof Oe=="string"?Oe:Oe.url,"')"))}catch(re){iN(de,15,"Failed to grab failed fetch diagnostics message",{exception:cn(re)})}return le}function lt(Oe,le,re,te,me,Ae){function _e(Ve,it,vt){vt=vt||{},vt.fetchDiagnosticsMessage=qe(re),it&&(vt.exception=cn(it)),g1(de,Ve,Tae+"fetch call"+Eae,vt)}me&&(me[xM]=f6(),me[ev]=le,ot(qx,me,function(){var Ve,it=me[wY]("Fetch",a,Ae);try{F&&(Ve=F({status:le,request:re,response:te}))}catch{g1(de,104,xae)}it?(Ve!==void 0&&(it[zT]=$h($h({},it.properties),Ve)),Ve=me[EY](),Et(Z,de[Vy],me,it,null,Ve)):_e(14,null,{requestSentTime:me[sT],responseFinishedTime:me[xM]})},function(Ve){_e(18,Ve,null)}))}function Et(Oe,le,re,te,me,Ae){var _e,Ve=!0;0<Oe[oT]&&((_e={item:te})[zT]=me,_e.sysProperties=Ae,_e.context=re?re[tN]:null,_e.aborted=!!re&&!!re[XR],Ve=Ybe(le,Oe,_e,"initializer")),Ve&&de[mae](te,me,Ae)}Qe(),de.initialize=function(Oe,le,re,te){var me,Ae;!de.isInitialized()&&(ge.initialize(Oe,le,re,te),j=hC(qm("ajax"),le&&le.evt
711Namespace&&le.evtNamespace()),de[_6](Gl(Oe,function(_e){_e=Cv(null,_e.cfg,de[Vy]),o=_e.getExtCfg(e.identifier,aet),ue=o.distributedTracingMode,a=o[fY],l=o[Dbe],C=o[Lbe],T=o[Hbe],H=[].concat(o[Fbe]||[],o.addIntEndpoints!==!1?oet:[]),F=o[Ube],m=ue===0||ue===1,p=ue===1||ue===2,C&&(_=L),O=!!o[pY],J=o.maxAjaxPerfLookupAttempts,ne=o[Bbe],ie=o.ignoreHeaders,K=o.appId})),tet(de,L)&&de[_6](Gl(o,function(){O=!!o[pY],a=o[fY],O||n||(pe(XMLHttpRequest,"open",{ns:j,req:function(_e,Ve,it,vt){var kt,rt,bt,Xe,ct,Me,X;O||(_e=_e[CM],kt=OA(_e,L),!He(_e,it)&&Re(_e,kt,!0)&&(kt&&kt.xhrMonitoringState[gY]||(Xe=_e,Ve=Ve,it=it,vt=vt,ct=$e(),Me=ct&&ct[vY]()||pE(),X=Zw(pE(),0,16),Xe=(Xe=Xe[HE]=Xe[HE]||{xh:[],i:{}}).i=Xe.i||{},(Me=Xe[L]=Xe[L]||new wae(Me,X,de[nN](),(Xe=de.core)==null?void 0:Xe.getTraceCtx()))[Cm]=ct&&ct[_Y](),Me[eE]=Ve,Me[rv]=it,Me.xhrMonitoringState[gY]=!0,Me[pm]={},Me.async=vt,Me[bY]=l,kt=Me),rt=_e,(bt=kt).xhrMonitoringState[jbe]=tb(rt,"readystatechange",function(){var z,W,Se;try{rt&&rt.readyState===4&&Re(rt,bt)&&((Se=OA(W=rt,L))[xM]=f6(),Se[ev]=W[ev],ot("xmlhttprequest",Se,function(){try{var We,Pt=Se[wY]("Ajax",a,function(){(mt={statusText:W[Vx]})[aR]=null,mt[xY]=(function(Mt){try{var Te=Mt[vae]();if(Te!==null&&jI(Te[$I](),Ra[8])!==-1)return Woe(Mt.getResponseHeader(Ra[0]))}catch(fe){g1(de,18,Cae,((Te={})[_ae]=sF(Mt,L),Te[rN]=cn(fe),Te))}})(W),mt.type=W.responseType,mt[yae]=(function(Mt){try{var Te=Mt.responseType;if(Te===""||Te==="text")return Mt[yae]}catch{}return null})(W),mt.response=W[Vbe];var rr,Nr,mt;return S&&(rr=W[vae]())&&(rr=Cc(rr).split(/[\r\n]+/),Nr={},un(rr,function(fe){var fe=fe.split(": "),Te=fe.shift(),fe=fe.join(": ");ve(Te)&&(Nr[Te]=fe)}),mt[aR]=Nr),mt}),Jt=void 0;try{F&&(Jt=F({status:W[ev],xhr:W}))}catch{g1(de,104,xae)}Pt?(Jt!==void 0&&(Pt[zT]=$h($h({},Pt.properties),Jt)),We=Se[EY](),Et(Z,de[Vy],Se,Pt,null,We)):je(null,{requestSentTime:Se[sT],responseFinishedTime:Se[xM]})}finally{try{var wr=(W[HE]||{i:{}}).i||{};wr[L]&&(wr[L]=null)}catch{}}},function(We){je(We,null)}))}catch(We){var Ke=cn(We);Ke&&jI(Ke[$I](),"c00c023f")!==-1||iN(de,16,J2+" 'readystatechange' event handler"+zI,((z={})[_ae]=sF(rt,L),z[rN]=Ke,z))}function je(We,Pt){Pt=Pt||{},Pt.ajaxDiagnosticsMessage=sF(W,L),We&&(Pt.exception=cn(We)),g1(de,14,Tae+"ajax call"+Eae,Pt)}},j)))},hkErr:eO(de,15,J2+".open"+zI)}),pe(XMLHttpRequest,"send",{ns:j,req:function(_e,Ve){var it;O||Re(_e=_e[CM],it=OA(_e,L))&&!it.xhrMonitoringState[mY]&&(tt("xhr",it),it[sT]=f6(),de[Dj](it,void 0,void 0,_e),it.xhrMonitoringState[mY]=!0)},hkErr:eO(de,17,J2+zI)}),pe(XMLHttpRequest,"abort",{ns:j,req:function(_e){O||Re(_e=_e[CM],_e=OA(_e,L))&&!_e.xhrMonitoringState[yY]&&(_e[XR]=1,_e.xhrMonitoringState[yY]=!0)},hkErr:eO(de,13,J2+".abort"+zI)}),pe(XMLHttpRequest,"setRequestHeader",{ns:j,req:function(_e,Ve,it){var vt;O||(_e=_e[CM],(vt=OA(_e,L))&&Re(_e,vt)&&(ret(_e,Ve,it),a)&&ve(Ve)&&vt&&(vt[pm][Ve]=it))},hkErr:eO(de,71,J2+".setRequestHeader"+zI)}),n=!0)})),(re=eet())&&(me=Mm(),Ae=re.polyfill,de[_6](Gl(o,function(){N=!!o[$be],S=o[zbe],N||t?Ae&&!se&&(Ue(GG(me,qx,{ns:j,req:function(_e,Ve,it){He(null,Ve,it)}})),se=!0):(Ue(GG(me,qx,{ns:j,req:function(_e,Ve,it){var vt,kt;N||!t||He(null,Ve,it)||Ae&&n||(vt=_e.ctx(),kt=(function(rt,bt){var Xe=$e(),ct=Xe&&Xe[vY]()||pE(),Me=Zw(pE(),0,16),Me=new wae(ct,Me,de[nN](),(ct=de.core)==null?void 0:ct.getTraceCtx());Me[Cm]=Xe&&Xe[_Y](),Me[sT]=f6(),Me[bY]=l,ct=rt instanceof Request?(rt||{}).url||"":rt,ct===""&&(Xe=W0())&&Xe.href&&(ct=j_e(Xe.href,"#")[0]),Me[rv]=ct,Xe="GET",bt&&bt[eE]?Xe=bt[eE]:rt&&rt instanceof Request&&(Xe=rt[eE]),Me[eE]=Xe;var X={};return a&&new Headers((bt?bt[dx]:0)||rt instanceof Request&&rt[dx]||{}).forEach(function(z,W){ve(W)&&(X[W]=z)}),Me[pm]=X,tt(qx,Me),Me})(Ve,it),(Ve=de[Dj](kt,Ve,it))!==it&&_e.set(1,Ve),vt.data=kt)},rsp:function(_e,Ve){var it;N||(it=_e.ctx().data)&&(_e.rslt=_e.rslt.then(function(vt){return lt(0,(vt||{})[ev],Ve,vt,it,function(){(rt={statusText:(vt||{})[Vx]})[aR]=null,rt[xY]=(function(bt){if(bt&&bt[dx])try{return Woe(bt[dx].get(Ra[0]))}catch(Xe){g1(de,18,Cae,((bt={fetchDiagnosticsMessage:qe(bt)})[rN]=cn(Xe),bt))}})(vt);var kt,rt;return S&&vt&&(kt={}
vendor: 14,668 bytes, line 711
711,vt.headers.forEach(function(bt,Xe){ve(Xe)&&(kt[Xe]=bt)}),rt[aR]=kt),rt}),vt}).catch(function(vt){throw lt(0,0,Ve,null,it,null,vt.message||cn(vt)),vt}))},hkErr:eO(de,15,"Failed to monitor Window.fetch"+zI)},!0,L_e())),t=!0)})),Ae)&&(me[qx].polyfill=Ae),te=de[Vy].getPlugin(n9))&&(h=te.plugin[tN])},de._doTeardown=function(){Qe()},de.trackDependencyData=function(Oe,le){Et(Z,de[Vy],null,Oe,le)},de[Dj]=function(Oe,le,re,te){var me,Ae,_e,Ve,it=de._currentWindowHost||i;return net(Q,de[Vy],Oe,te,le,re),le||le===""?(Yoe(o,Oe[hY](),it)&&(re=re||{},le=new Headers(re[dx]||le instanceof Request&&le[dx]||{}),m&&(me="|"+Oe[B1]+"."+Oe[mE],le.set(Ra[3],me),a)&&(Oe[pm][Ra[3]]=me),(Ae=K||h&&h.appId())&&(le.set(Ra[0],Ra[2]+Ae),a)&&(Oe[pm][Ra[0]]=Ra[2]+Ae),p&&(Cr(_e=Oe[Cm])&&(_e=1),Ve=Coe(Eoe(Oe[B1],Oe[mE],_e)),le.set(Ra[4],Ve),a)&&(Oe[pm][Ra[4]]=Ve),re[dx]=le),re):te?(Yoe(o,Oe[hY](),it)&&(m&&(Fj(te,Ra[3])?g1(de,71,"Unable to set ["+Ra[3]+"] as it has already been set by another instance"):(me="|"+Oe[B1]+"."+Oe[mE],te[Lj](Ra[3],me),a&&(Oe[pm][Ra[3]]=me))),(Ae=K||h&&h.appId())&&(Fj(te,Ra[0])?g1(de,71,"Unable to set ["+Ra[0]+"] as it has already been set by another instance"):(te[Lj](Ra[0],Ra[2]+Ae),a&&(Oe[pm][Ra[0]]=Ra[2]+Ae))),p)&&(Cr(_e=Oe[Cm])&&(_e=1),Fj(te,Ra[4])?g1(de,71,"Unable to set ["+Ra[4]+"] as it has already been set by another instance"):(Ve=Coe(Eoe(Oe[B1],Oe[mE],_e)),te[Lj](Ra[4],Ve),a&&(Oe[pm][Ra[4]]=Ve))),te):void 0},de[mae]=function(Oe,le,re){T===-1||u<T?(ue!==2&&ue!==1||typeof Oe.id!="string"||Oe.id[Oe.id[oT]-1]==="."||(Oe.id+="."),Cr(Oe[aT])&&(Oe[aT]=new Date),Oe=Dw(Oe,UT.dataType,UT.envelopeType,de[nN](),le,re),de[Vy].track(Oe)):u===T&&iN(de,55,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0),++u},de.addDependencyListener=function(Oe){return Sae(Q,B++,Oe)},de.addDependencyInitializer=function(Oe){return Sae(Z,B++,Oe)}}),be}return Db(e,r),e.prototype.processTelemetry=function(t,n){this.processNext(t,n)},e.prototype.addDependencyInitializer=function(t){return null},e.identifier="AjaxDependencyPlugin",e})(Rk),cet=function(){},uet=function(){this.id="browser",this.deviceClass="Browser"},det="3.3.0",het=function(r,e){var t=this,n=Gl(r,function(){var i=r.sdkExtension;t.sdkVersion=(i?i+"_":"")+"javascript:"+det});e&&e.add(n)},fet=function(){},zU="sessionManager",jU="update",lF="isUserCookieSet",VU="isNewUser",Uj="getTraceCtx",TY="telemetryTrace",Wbe="applySessionContext",Kbe="applyApplicationContext",Zbe="applyDeviceContext",Xbe="applyOperationContext",Qbe="applyUserContext",Jbe="applyOperatingSystemContxt",ewe="applyLocationContext",twe="applyInternalContext",Gx="accountId",cF="getSessionId",mQ="namePrefix",pet="sessionCookiePostfix",rwe="userCookiePostfix",qU="idLength",yQ="getNewId",GU="length",MA="automaticSession",NA="authenticatedId",tO="acquisitionDate",w6="renewalDate",oN="join",rO="cookieSeparator",Bj="authUserCookieName",get="ai_session",met=864e5,yet=18e5,vet=6e4,nwe=function(){},_et=(function(){function r(e,t,n){var i,o,a,l,u=LS(t),h=XX(t);cs(r,this,function(p){var m=Gl(e=e||{},function(T){a=e.sessionExpirationMs||met,l=e.sessionRenewalMs||yet;var S=e.sessionCookiePostfix||e[mQ]||"";i=get+S});function _(T,S){var R=!1,O=", session will be reset",N=S.split("|");if(2<=N[GU])try{var H=+N[1]||0,F=+N[2]||0;isNaN(H)||H<=0?zr(u,2,27,"AI session acquisition date is 0"+O):isNaN(F)||F<=0?zr(u,2,27,"AI session renewal date is 0"+O):N[0]&&(T.id=N[0],T[tO]=H,T[w6]=F,R=!0)}catch(j){zr(u,1,9,"Error parsing ai_session value ["+(S||"")+"]"+O+" - "+ea(j),{exception:cn(j)})}return R}function C(O,S){var N=O[tO],R=(O[w6]=S,l),H=N+a-S,O=[O.id,N,S],N=0,N=H<R?H/1e3:R/1e3,H=e.cookieDomain||null;h.set(i,O[oN]("|"),0<a?N:null,H),o=S}n&&n.add(m),p[MA]=new nwe,p[jU]=function(){var T,S,R=g_(),O=!1,N=p[MA];!(O=N.id?O:!(function(H){var F=!1,j=h.get(i);return(j&&Ci(j.split)||(j=Z1e(u,i)))&&(F=_(H,j)),F||H.id})(N))&&0<a&&(T=R-N[tO],S=R-N[w6],O=(O=(O=T<0||S<0)||a<T)||l<S),O?(T=R,S=e[yQ]||GX,p.automaticSession.id=S(e[qU]||22),p[MA][tO]=T,C(p[MA],T),r9()||zr(u,2,0,"Browser does not support local storage. Session durations will be inaccurate.")):(!o||vet<R-o)&&C(N,R)},p.backup=function(){var T,S,R=p[MA];T=R.id,S=R[tO],R=R[w6],X1e(u,i,[T,S,R][oN]("|"))}})}return r.__ieDyn=1,r})(),bet=function(r,e,t,n){this.traceID=r||pE(),this.parentID=e,r=W0(),!t&&r&&r.pathname&&(t=r.pathname),this.name=xc(n,t)};function Iae(r){return!(typeof r!="string"||!r||r.match(/,|;|=| |\|/))}var wet=(function(){function r(e,t,n){this.isNewUser=!1,this.isUserCookieSet=!1;var i,o=LS(t),a=XX(t);cs(r,this,function(l){Yo(l,"config",{g:function(){return e}});var u=Gl(e,function(){var _=e[rwe]||"",_=(i=r.userCookieName+_,a.get(i)),_=(_&&(l[VU]=!1,0<(_=_.split(r[rO]))[GU])&&(l.id=_[0],l[lF]=!!l.id),l.id||(l.id=h(),m(p(l.id)[oN](r[rO])),_=(e[mQ]||"")+"ai_session",qQe(o,_)),l[Gx]=e[Gx]||void 0,a.get(r[Bj]));_&&((_=(_=decodeURI(_)).split(r[rO]))[0]&&(l[NA]=_[0]),1<_[GU])&&_[1]&&(l[Gx]=_[1])});function h(){var _=e||{};return(_[yQ]||GX)(_[qU]?e[qU]:22)}function p(_){var C=VP(new Date);return l.accountAcquisitionDate=C,l[VU]=!0,[_,C]}function m(_){l[lF]=a.set(i,_,31536e3)}n&&n.add(u),l.setAuthenticatedUserContext=function(_,C,T){T===void 0&&(T=!1),!Iae(_)||C&&!Iae(C)?zr(o,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0):(l[NA]=_,_=l[NA],C&&(l[Gx]=C,_=[l[NA],l.accountId][oN](r[rO])),T&&a.set(r[Bj],encodeURI(_)))},l.clearAuthenticatedUserContext=function(){l[NA]=null,l[Gx]=null,a.del(r[Bj])},l[jU]=function(_){l.id===_&&l[lF]||m(p(_||h())[oN](r[rO]))}})}return r.cookieSeparator="|",r.userCookieName="ai_user",r.authUserCookieName="ai_authUser",r})(),E6="ext",C6="tags";function VI(r,e){r&&r[e]&&Q1(r[e])[GU]===0&&delete r[e]}function Aae(){return null}var Eh,$j,m1,x6,nO,Rae,T6,Eet=(function(){function r(e,t,n,i){var o=this,a=e.logger;cs(r,this,function(l){var u,h,p;l.appId=Aae,l[cF]=Aae,l.application=new cet,l.internal=new het(t,i),Y7()&&(l[zU]=new _et(t,e,i),l.device=new uet,l.location=new fet,l.user=new wet(t,e,i),h=u=void 0,n&&(u=n.getTraceId(),h=n.getSpanId(),p=n.getName()),l[TY]=new bet(u,h,p,a),l.session=new nwe),l[cF]=function(){var m=l.session;return m&&Xn(m.id)||(m=(l[zU]||{})[MA])&&Xn(m.id)?m.id:null},l[Wbe]=function(m,_){$a(Sh(m.ext,Bp.AppExt),"sesId",l[cF](),Xn)},l[Jbe]=function(m,_){$a(m.ext,Bp.OSExt,l.os)},l[Kbe]=function(m,_){var C=l.application;C&&($a(m=Sh(m,C6),ja.applicationVersion,C.ver,Xn),$a(m,ja.applicationBuild,C.build,Xn))},l[Zbe]=function(m,_){var C=l.device;C&&($a(m=Sh(Sh(m,E6),Bp.DeviceExt),"localId",C.id,Xn),$a(m,"ip",C.ip,Xn),$a(m,"model",C.model,Xn),$a(m,"deviceClass",C.deviceClass,Xn))},l[twe]=function(m,_){var C,T=l.internal;T&&($a(C=Sh(m,C6),ja.internalAgentVersion,T.agentVersion,Xn),$a(C,ja.internalSdkVersion,xc(a,T.sdkVersion,64),Xn),m.baseType!==gD.dataType&&m.baseType!==DE.dataType||($a(C,ja.internalSnippet,T.snippetVer,Xn),$a(C,ja.internalSdkSrc,T.sdkSrc,Xn)))},l[ewe]=function(m,_){var C=o.location;C&&$a(Sh(m,C6,[]),ja.locationIp,C.ip,Xn)},l[Xbe]=function(m,_){var C=l[TY];C&&($a(m=Sh(Sh(m,E6),Bp.TraceExt,{traceID:void 0,parentID:void 0}),"traceID",C.traceID,Xn,Cr),$a(m,"name",C.name,Xn,Cr),$a(m,"parentID",C.parentID,Xn,Cr))},l.applyWebContext=function(m,_){var C=o.web;C&&$a(Sh(m,E6),Bp.WebExt,C)},l[Qbe]=function(m,_){var C=l.user;C&&($a(Sh(m,C6,[]),ja.userAccountId,C[Gx],Xn),$a(m=Sh(Sh(m,E6),Bp.UserExt),"id",C.id,Xn),$a(m,"authId",C[NA],Xn))},l.cleanUp=function(m,_){m=m.ext,m&&(VI(m,Bp.DeviceExt),VI(m,Bp.UserExt),VI(m,Bp.WebExt),VI(m,Bp.OSExt),VI(m,Bp.AppExt),VI(m,Bp.TraceExt))}})}return r.__ieDyn=1,r})(),qI=null,Cet=Tk(((Eh={})[Gx]=qI,Eh.sessionRenewalMs=18e5,Eh.samplingPercentage=100,Eh.sessionExpirationMs=864e5,Eh.cookieDomain=qI,Eh.sdkExtension=qI,Eh.isBrowserLinkTrackingEnabled=!1,Eh.appId=qI,Eh[cF]=qI,Eh[mQ]=$j,Eh[pet]=$j,Eh[rwe]=$j,Eh[qU]=22,Eh[yQ]=qI,Eh)),xet=(function(r){function e(){var t,n,i,o,a,l=r.call(this)||this;return l.priority=110,l.identifier=n9,cs(e,l,function(u,h){function p(){a=!(o=i=n=t=null)}p(),Yo(u,"context",{g:function(){return o}}),u.initialize=function(m,_,C,T){var S,R,O;h.initialize(m,_,C,T),S=m,R=u.identifier,O=u.core,u._addHook(Gl(S,function(){var N=Cv(null,S,O);S.storagePrefix&&dQ(S.storagePrefix),a=S.disableUserInitMessage!==!1,t=N.getExtCfg(R,Cet),u._extConfig=t})),i=O[Uj](!1),o=new Eet(O,t,i,u._unloadHooks),n=lQ(u.context[TY],i),O.setTraceCtx(n),u.context.appId=function(){var N=O.getPlugin(ibe);return N?N.plugin._appId:null}},u.processTelemetry=function(m,_){var C,T,S,R;Cr(m)||(_=u._getTelCtx(_),m.name===DE.envelopeType&&_.diagLog().resetInternalMessageCount(),(S=o||{}).session&&typeof o.session.id!="string"&&S[zU]&&S[zU][jU](),(C=S.user)&&!C[lF]&&C[jU](S.user.id),S=_,Sh(T=m,"tags",[]),Sh(T,"ext",{}),(R=u.context)[Wbe](T,S),R[Kbe](T,S),R[Zbe](T,S),R[Xbe](T,S),R[Qbe](T,S),R[Jbe](T,S),R.applyWebContext(T,S),R[ewe](T,S),R[twe](T,S),R.cleanUp(T,S),C&&C[VU]&&(C[VU]=!1,a||(R=new gD(72,(I_()||{}).userAgent||""),DXe(_.diagLog(),1,R))),u.processNext(m,_))},u._doTeardown=function(m,_){m=(m||{}).core(),m&&m[Uj]&&m[Uj](!1)===n&&m.setTraceCtx(i),p()}}),l}return Db(e,r),e.__ieDyn=1,e})(Rk),Tet=xet,iwe="AuthenticatedUserContext",Pk="track",SY="snippet",Iet="getCookieMgr",Aet="startTrackPage",Ret="stopTrackPage",zj="flush",Pet="startTrackEvent",ket="stopTrackEvent",Oet="addTelemetryInitializer",Pae="pollInternalLogs",jj="getPlugin",Vj="evtNamespace",Met=Pk+"Event",Net=Pk+"Trace",Det=Pk+"Metric",Let=Pk+"PageView",Het=Pk+"Exception",Fet=Pk+"DependencyData",Uet="set"+iwe,Bet="clear"+iwe,$et="https://js.monitor.azure.com/scripts/b/ai.config.1.cfg.json",qj="version",fx="queue",uF="connectionString",TM="instrumentationKey",kae="instrumentationkey",dF="userOverrideEndpointUrl",hF="endpointUrl",Oae="ingestionendpoint",iO="onunloadFlush",sm="context",Mae="addHousekeepingBeforeUnload",Gj="sendMessage",zet="updateSnippetDefinitions",Nae=[SY,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],owe="iKeyUsage",awe="CdnUsage",swe="SdkLoaderVer",S6=void 0,jet={samplingRate:100,maxSendNumber:1},Vet={monthInterval:3,daysOfMonth:[28]},I6={disabled:!0,limit:O0(jet),interval:O0(Vet)},qet=((m1={})[uF]=S6,m1[hF]=S6,m1[TM]=S6,m1[dF]=S6,m1.diagnosticLogInterval=TU(Get,1e4),m1.featureOptIn=((x6={})[owe]={mode:3},x6[awe]={mode:2},x6[swe]={mode:2},x6),m1.throttleMgrCfg=O0(((nO={})[109]=O0(I6),nO[106]=O0(I6),nO[111]=O0(I6),nO[110]=O0(I6),nO)),m1.extensionConfig=O0(((Rae={}).AppInsightsCfgSyncPlugin=O0({cfgUrl:$et,syncMode:2}),Rae)),m1);function Get(r){return r&&0<r}var Yet=(function(){function r(e){var t,n,i,o,a,l,u,h,p,m,_,C,T,S,R=this;cs(r,this,function(O){H(),Yo(O,"config",{g:function(){return h}}),un(["pluginVersionStringArr","pluginVersionString"],function(L){Yo(O,L,{g:function(){return u?u[L]:null}})}),o=""+(e.sv||e[qj]||""),e[fx]=e[fx]||[],e[qj]=e[qj]||2;var N=Gm(e.config||{},qet);function H(){a=qm("AISKU"),_=o=i=n=t=l=null,S=T=C=!1,m=new PJe}function F(){l&&(IQe(null,l),AQe(null,l))}function j(L){u.addUnloadHook(L)}h=N.cfg,p=new EJe,Yo(O,"appInsights",{g:function(){return p}}),n=new Tet,t=new set,i=new ZJe,u=new pQe,Yo(O,"core",{g:function(){return u}}),j(Gl(N,function(){var L,B,Q=h[uF];function Z(){return XM(function(ie,J){vb(Q,function(ne){var ue=ne&&ne.value,K=null;!ne.rejected&&ue&&(K=Koe(h[uF]=ue)),ie(K)})})}BP(Q)&&(L=XM(function(ie,J){Z().then(function(ne){var ue=h[TM],ue=ne&&ne[kae]||ue;ie(ue)}).catch(function(ne){ie(null)})}),Cr(B=h[dF])&&(B=XM(function(ie,J){Z().then(function(K){var ue=h[hF],K=K&&K[Oae];ie(K?K+VR:ue)}).catch(function(ne){ie(null)})})),h[TM]=L,h[hF]=B),Xn(Q)&&(B=(L=Koe(Q))[Oae],h.endpointUrl=h[dF]||B+VR,h[TM]=L[kae]||h[TM]),h.endpointUrl=h[dF]||h[hF]})),O[SY]=e,O[zj]=function(L,B){var Q;return RU(u,function(){return"AISKU.flush"},function(){L&&!B&&(Q=_b(function(J){B=J}));function Z(){--ie===0&&B()}var ie=1;un(u.getChannels(),function(J){J&&(ie++,J[zj](L,Z))}),Z()},null,L=L===void 0?!0:L),Q},O[iO]=function(L){L===void 0&&(L=!0),un(u.getChannels(),function(B){B[iO]?B[iO]():B[zj](L)})},O.loadAppInsights=function(L,B,Q){return(L=L===void 0?!1:L)&&qKe("Legacy Mode is no longer supported"),RU(O.core,function(){return"AISKU.loadAppInsights"},function(){u.initialize(h,[i,n,t,p,m],B,Q),Yo(O,"context",{g:function(){return n[sm]}}),_=_||new YQe(u);var Z,ie=Wet();ie&&O[sm]&&(O[sm].internal.sdkSrc=ie),(Z=O[SY])&&(ie="",Cr(o)||(ie+=o),O[sm]&&O[sm].internal&&(O[sm].internal.snippetVer=ie||"-"),oo(O,function(J,ne){Xn(J)&&!Ci(ne)&&J&&J[0]!=="_"&&Gd(Nae,J)===-1&&Z[J]!==ne&&(Z[J]=ne)})),O.emptyQueue(),O[Pae](),O[Mae](O),j(Gl(N,function(){var J=!1;h.throttleMgrCfg[109]&&(J=!h.throttleMgrCfg[109].disabled),!_.isReady()&&h.extensionConfig&&h.extensionConfig[m.identifier]&&J&&_.onReadyState(!0),C||h[uF]||!q5(owe,h)||(_[Gj](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),C=!0),!T&&O[sm].internal.sdkSrc&&O[sm].internal.sdkSrc.indexOf("az416426")!=-1&&q5(awe,h)&&(_[Gj](110,"See Cdn support notice at aka.ms/JsActiveCdn"),T=!0),!S&&parseInt(o)<6&&q5(swe,h)&&(_[Gj](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),S=!0)}))}),O},O[zet]=function(L){HZe(L,O,function(B){return B&&Gd(Nae,B)===-1})},O.emptyQueue=function(){try{if(io(O.snippet[fx])){for(var L=O.snippet[fx].length,B=0;B<L;B++)(0,O.snippet[fx][B])();O.snippet[fx]=void 0,delete O.snippet[fx]}}catch(Q){Q&&Ci(Q.toString)&&Q.toString()}},O[Mae]=function(L){var B,Q;(Y7()||N_e())&&(Q=!(B=function(){var Z;L[iO](!1),Ci(O.core[jj])&&(Z=R.core[jj](n9))&&(Z=Z.plugin)&&Z[sm]&&Z[sm]._sessionManager&&Z[sm]._sessionManager.backup()}),l=l||hC(a,u[Vj]&&u[Vj]()),j(Gl(h,function(J){var J=J.cfg,ie=L.appInsights,ie=Cv(null,J,ie.core).getExtCfg(ie.identifier||obe),J=(F(),J.disablePageUnloadEvents);ie.disableFlushOnBeforeUnload||(SQe(B,J,l)&&(Q=!0),Q=!!qG(B,J,l)||Q)||rXe()||zr(u.logger,1,19,"Could not add handler for beforeunload and pagehide"),Q||ie.disableFlushOnUnload||qG(B,J,l)})))},O.getSender=function(){return i},O.unload=function(L,B,Q){var Z,ie=!1;return L&&!B&&(Z=_b(function(J){B=J})),O[iO](L),F(),u.unload&&u.unload(L,function(J){ie||(ie=!0,H(),B&&B(J))},Q),Z},yM(O,p,[Iet,Met,Let,"trackPageViewPerformance",Het,"_onerror",Net,Det,Aet,Ret,Pet,ket]),yM(O,function(){return t},[Fet,"addDependencyListener","addDependencyInitializer"]),yM(O,u,[Oet,Pae,"stopPollingInternalLogs",jj,"addPlugin",Vj,"addUnloadCb","getTraceCtx","updateCfg","onCfgChange"]),yM(O,function(){var L=n[sm];return L?L.user:null},[Uet,Bet])})}return r.prototype.addDependencyInitializer=function(e){return null},r})();
711function Wet(){if(!T6){var r=null;try{var e=(document||{}).currentScript;e&&(r=e.src)}catch{}if(r){try{var t,n=r.toLowerCase();n&&(t="",un(["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"],function(i,o){if(Wf(n,i)!==-1)return t="cdn"+(o+1),Wf(n,"/scripts/")===-1&&(Wf(n,"/next/")!==-1?t+="-next":Wf(n,"/beta/")!==-1&&(t+="-beta")),T6=t+"",-1}))}catch{}T6=r}}return T6}var GI,Ket=(function(){function r(e){this.options=e,!this.options.disableTelemetry&&wv.appInsightsKey&&(this.appInsights=new Yet({config:{instrumentationKey:wv.appInsightsKey,disableExceptionTracking:!0,disableAjaxTracking:!0,isCookieUseDisabled:!0,maxBatchInterval:5e3}}),this.appInsights.loadAppInsights(),this.appInsights.addTelemetryInitializer(function(t){t.tags[ja.applicationVersion]=R7.getFullVersion()}))}return r.prototype.trackEvent=function(e,t){!this.options.disableTelemetry&&this.appInsights&&this.appInsights.trackEvent(e,t)},r.prototype.setAuthenticatedUserContext=function(e,t){!this.options.disableTelemetry&&this.appInsights&&this.appInsights.setAuthenticatedUserContext(e,t)},r.prototype.trackException=function(e){!this.options.disableTelemetry&&this.appInsights&&this.appInsights.trackException(e)},r.prototype.flush=function(e){!this.options.disableTelemetry&&this.appInsights&&this.appInsights.flush(e)},r})(),Zet=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Dae=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.copyrightMessage=void 0,t.copyrightContent=void 0,t.customAttribution=void 0,t.showFeedbackLink=!0,t.showLogo=!0,t}return Zet(e,r),e})(Ya),Xet=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Qet=(function(r){function e(t){var n=r.call(this)||this;return n.textAttribution=function(i){return[n.options.copyrightMessage,n.options.customAttribution].filter(function(o){return o}).join("")},n.updateFeedbackLink=function(){var i,o;n.feedbackAnchor&&n.map&&(i=(o=n.map.getCamera()).center,o=o.zoom,n.feedbackAnchor.href="".concat(e.feedbackLink,"&cp=").concat(i[1],"~").concat(i[0],"&lvl=").concat(o+1))},n.options=new Dae().merge(t),n}return Xet(e,r),e.prototype.onAdd=function(t){return this.map=t,this.container=this.buildContainer(t,Zc.auto),this.container.className="map-copyright without-bg",this.copyrightDiv=this.buildCopyrightDiv(),this.copyrightDiv.className="azure-map-copyright",this.container.appendChild(this.copyrightDiv),this.options.showFeedbackLink&&this.addRemoveFeedbackDiv(!0),this.container},e.prototype.onRemove=function(){r.prototype.onRemove.call(this),delete this.container},e.prototype.setOptions=function(o){var n,i=this,o=new Dae().merge(this.options,o);o.copyrightMessage===this.options.copyrightMessage&&o.customAttribution===this.options.customAttribution||(this.copyrightDiv.innerText=this.textAttribution(o)),o.copyrightContent!==this.options.copyrightContent&&(this.options.copyrightContent&&(n=Array.from(this.copyrightDiv.children).find(function(a){return a===i.options.copyrightContent}),this.copyrightDiv.removeChild(n)),0<this.copyrightDiv.childNodes.length?this.copyrightDiv.insertBefore(o.copyrightContent,this.copyrightDiv.childNodes[0]):this.copyrightDiv.appendChild(o.copyrightContent),this.options.copyrightContent=o.copyrightContent),!o.showFeedbackLink&&this.feedbackAnchor?this.addRemoveFeedbackDiv(!1):o.showFeedbackLink&&!this.feedbackAnchor&&this.addRemoveFeedbackDiv(!0),this.options=o},e.prototype.getDefaultAttributions=function(){var t=new Date().getFullYear(),n=["©".concat(t," TomTom")];return this.options.showLogo||n.push("©".concat(t," Microsoft")),n},e.prototype.buildCopyrightDiv=function(){var t=document.createElement("div");return t.innerText=this.textAttribution(this.options)||"",t},e.prototype.buildFeedbackLink=function(){var t=document.createElement("a");return t.setAttribute("alt","Provide Map Data Feedback"),t.setAttribute("aria-label","Provide Map Data Feedback"),t.innerText="Feedback",t.href=e.feedbackLink,t.target="_blank",t.rel="noopener",t.className="azure-map-feedback-text",t},e.prototype.addRemoveFeedbackDiv=function(t){t?(this.feedbackAnchor=this.buildFeedbackLink(),this.feedbackTooltip=Tu("Provide Map Data Feedback"),this.container.appendChild(this.feedbackAnchor),this.container.appendChild(this.feedbackTooltip),Es(this.feedbackTooltip,this.feedbackAnchor),(t=(t=this.map)==null?void 0:t.events)!=null&&t.add("moveend",this.updateFeedbackLink)):(this.feedbackAnchor.remove(),this.feedbackTooltip.remove(),delete this.feedbackTooltip,delete this.feedbackAnchor,(t=(t=this.map)==null?void 0:t.events)!=null&&t.remove("moveend",this.updateFeedbackLink))},e.feedbackLink="https://aka.ms/azuremaps-feedback?feedbackep=UrlAzureMapsWebSdk",e})(dg),Jet=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}
711r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Lae=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.showLogo=!0,t}return Jet(e,r),e})(Ya),ett=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),ttt=(function(r){function e(t){var n=r.call(this)||this;return n.map=null,n._onResize=function(){var i=((i=(i=n.map)==null?void 0:i.getMapContainer())==null?void 0:i.clientWidth)||0;n._setVisiblity(n.options.showLogo&&e.CONTAINER_MIN_WIDTH<=i)},n.options=new Lae().merge(t),n}return ett(e,r),e.prototype.onAdd=function(t){return this.map=t,this.container=this.buildContainer(t,Zc.auto),this.container.className="map-logo-control",(t=this.map)!=null&&t.events.add("resize",this._onResize),this._addRemoveLogo(this.options.showLogo),this.container},e.prototype.onRemove=function(){var t;r.prototype.onRemove.call(this),(t=this.map)!=null&&t.events.remove("resize",this._onResize),this.map=null,delete this.container},e.prototype.setOptions=function(t){t=new Lae().merge(this.options,t),!t.showLogo&&this.logoAnchor?this._addRemoveLogo(!1):t.showLogo&&!this.logoAnchor&&this._addRemoveLogo(!0),this.options=t},e.prototype._addRemoveLogo=function(t){t?(this.logoAnchor=document.createElement("a"),this.logoAnchor.className="azure-map-logo",this.logoAnchor.href="https://aka.ms/azuremaps",this.logoAnchor.setAttribute("aria-label","Visit azure.microsoft.com"),this.logoAnchor.setAttribute("target","_blank"),this.container.appendChild(this.logoAnchor),this.logoTooltip=Tu("Visit azure.microsoft.com"),this.container.appendChild(this.logoTooltip),Es(this.logoTooltip,this.logoAnchor),this._setVisiblity(!0)):((t=this.logoAnchor)!=null&&t.remove(),(t=this.logoTooltip)!=null&&t.remove(),delete this.logoAnchor,this._setVisiblity(!1))},e.prototype._setVisiblity=function(t){this.container&&(this.container.style.display=t?"flex":"none")},e.CONTAINER_MIN_WIDTH=480,e})(dg),rtt=(function(){function r(){}return r.throwOnError=function(o,t){function n(a){throw i.off("error",n),a.error}var i=o instanceof xQ?o._getMap():o,o=(i.on("error",n),t());return i.off("error",n),o},r.tryCatch=function(e,t,n,i){try{return this.throwOnError(e,t)}catch(o){return n(o)}finally{typeof i=="function"&&i()}},r.tryFinally=function(e,t,n){try{return this.throwOnError(e,t)}finally{n()}},r})(),lwe=window&&window.__assign||function(){return(lwe=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}).apply(this,arguments)},ntt=(function(){function r(e){this.map=e}return r.prototype.request=function(n){var t,n={domain:this.map.getServiceOptions().domain,path:"reverseGeocode",queryParams:lwe({"api-version":"2023-06-01",coordinates:"".concat(wl(n.position[0]),",").concat(yc(n.position[1]))},n.style.view&&{view:n.style.view}),headers:{"Accept-Language":n.style.language}};return new av(((t=this.map.authentication)==null?void 0:t.signRequest(n))||n).get()},r})(),itt=(function(){function r(){this._labelCache={},this._labelIdx={},this._preloadedCache=new Set}return r.prototype.cache=function(e,t,n,i){i="".concat(e,"_").concat(n[0],"_").concat(n[1],"_").concat(i),this._labelIdx[t.labelType]||(this._labelIdx[t.labelType]=[],this._labelCache[t.labelType]=[]),this._labelIdx[t.labelType].indexOf(i)===-1&&(this._labelCache[t.labelType].push({name:e,radius:t.radius,minZoom:t.minZoom,maxZoom:t.maxZoom||24,position:n}),this._labelIdx[t.labelType].push(i))},r.prototype.getNearestLabel=function(e,t,n){var i=null,o=this._labelCache[e];if(o)for(var a,l=1/0,u=0,h=o.length;u<h;u++)n>=o[u].minZoom&&n<=o[u].maxZoom&&(a=np(o[u].position,t))<=o[u].radius&&a<=l&&(l=
vendor: 14,546 bytes, line 711
711a,i=o[u]);return i},r.prototype._preloadCache=function(e){if(!this._preloadedCache.has(e)){this._preloadedCache.add(e);var t={source:[],labelType:"water",minZoom:0,radius:395e4,polygonSources:[]},n=e,i=n.indexOf("-");switch(n=i!==-1?n.substr(0,i):n){case"fr":this.cache("Océan Pacifique",t,[-170,32],e),this.cache("Océan Pacifique",t,[-138,-27],e),this.cache("Océan Atlantique",t,[-40,32],e),this.cache("Océan Atlantique",t,[-17,-29],e);break;case"es":this.cache("Océan Pacifique",t,[-170,32],e),this.cache("Océan Pacifique",t,[-138,-27],e),this.cache("Océano Atlántico",t,[-40,32],e),this.cache("Océano Atlántico",t,[-17,-29],e);break;case"pt":this.cache("Oceano Pacífico",t,[-170,32],e),this.cache("Oceano Pacífico",t,[-138,-27],e),this.cache("Oceano Atlântico",t,[-40,32],e),this.cache("Oceano Atlântico",t,[-17,-29],e);break;case"ja":this.cache("太平洋",t,[-170,32],e),this.cache("太平洋",t,[-138,-27],e);break;case"en":this.cache("Pacific Ocean",t,[-170,32],e),this.cache("Pacific Ocean",t,[-138,-27],e),this.cache("Atlantic Ocean",t,[-40,32],e),this.cache("Atlantic Ocean",t,[-17,-29],e),this.cache("Indian Ocean",t,[77,-26],e)}}},r})(),oO=window&&window.__awaiter||function(r,e,t,n){return new(t=t||Promise)(function(i,o){function a(h){try{u(n.next(h))}catch(p){o(p)}}function l(h){try{u(n.throw(h))}catch(p){o(p)}}function u(h){var p;h.done?i(h.value):((p=h.value)instanceof t?p:new t(function(m){m(p)})).then(a,l)}u((n=n.apply(r,e||[])).next())})},aO=window&&window.__generator||function(r,e){var t,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:l(0),throw:l(1),return:l(2)};return typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(u){return function(h){var p=[u,h];if(t)throw new TypeError("Generator is already executing.");for(;o=a&&p[a=0]?0:o;)try{if(t=1,n&&(i=2&p[0]?n.return:p[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,p[1])).done)return i;switch(n=0,(p=i?[2&p[0],i.value]:p)[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,n=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3]))o.label=p[1];else if(p[0]===6&&o.label<i[1])o.label=i[1],i=p;else{if(!(i&&o.label<i[2])){i[2]&&o.ops.pop(),o.trys.pop();continue}o.label=i[2],o.ops.push(p)}}p=e.call(r,o)}catch(m){p=[6,m],n=0}finally{t=i=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}},Hae=window&&window.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n,i,o=t.call(r),a=[];try{for(;(e===void 0||0<e--)&&!(n=o.next()).done;)a.push(n.value)}catch(l){i={error:l}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},ott=window&&window.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||((n=n||Array.prototype.slice.call(e,0,i))[i]=e[i]);return r.concat(n||Array.prototype.slice.call(e))},att=(function(){function r(e,t){var n=this;this._disposed=!1,this._lastHeadingTime=0,this._actionQueue=[],this._pointerUpdateDelay=3e3,this._camUpdateDelay=1e3,this._headUpdateLimit=1e3,this._controlEventDelay=500,this._moveThreshold=25,this._headingThreshold=5,this._pitchThreshold=5,this._roadPixelRadius=120,this._minRoadDistance=25,this._minIntersectionPixelDistance=50,this._labelConfig=[{source:["Ocean label","Ocean name"],labelType:"water",minZoom:0,radius:395e4,polygonSources:["Ocean","Ocean or sea"]},{source:["Sea label"],labelType:"water",minZoom:3,radius:1e6,polygonSources:["Sea","Ocean or sea"]},{source:["Country name"],labelType:"country",minZoom:0,maxZoom:5,radius:3e5},{source:["State name","State name short"],labelType:"state",minZoom:4,maxZoom:7,radius:3e5},{source:["Capital city","Large city"],labelType:"city",minZoom:8,radius:4e4},{source:["Medium city"],labelType:"city",minZoom:8,radius:3e4},{source:["Small city"],labelType:"city",minZoom:8,radius:2e4},{source:["Island label"],labelType:"city",minZoom:8,radius:1e4},{source:["Town"],labelType:"city",minZoom:10,radius:1e4},{source:["Village"],labelType:"neighbourhood",minZoom:12,radius:6e3},{source:["Amusement area label"],labelType:"poi",minZoom:14,radius:2e3,polygonSources:["Amusement park"]},{source:["Hospital label"],labelType:"poi",minZoom:14,radius:1e3,polygonSources:["Hospital"]},{source:["Shopping centre label"],labelType:"poi",minZoom:14,radius:1e3,polygonSources:["Shopping"]},{source:["Stadium label"],labelType:"poi",minZoom:14,radius:1e3,polygonSources:["Stadium"]},{source:["University/School label"],labelType:"poi",minZoom:14,radius:1e3,polygonSources:["University"]},{source:["Zoo label"],labelType:"poi",minZoom:14,radius:1e3,polygonSources:["Zoo"]},{source:["Airport Label","Airport name","Airport POI"],labelType:"majorPoi",minZoom:11,radius:3e3,polygonSources:["Airport","Runway"]},{source:["National park label"],labelType:"majorPoi",minZoom:7,radius:15e3,polygonSources:["National or state park","National park","Forest"]},{source:["Reservation label"],labelType:"majorPoi",minZoom:7,radius:15e3,polygonSources:["Reservation"]}],this._labelCache=new Set(["city","state","country","water","majorPoi"]),this._roadLayers=new Set(["Connecting road","Connecting road tunnel","International road","International road tunnel","Local road","Local road tunnel","Major local road","Major local road tunnel","Major road","Major road tunnel","Minor local road","Minor local road tunnel","Motorway","Motorway tunnel","Secondary road","Secondary road tunnel","Toll connecting road","Toll connecting road tunnel","Toll international road","Toll international road tunnel","Toll local road","Toll local road tunnel","Toll major local road","Toll major local road tunnel","Toll major road","Toll major road tunnel","Toll minor local road","Toll minor local road tunnel","Toll motorway","Toll motorway tunnel","Toll secondary road","Toll secondary road tunnel"]),this._returnDetailedDescriptions=!1,this._shortcutListener=function(i){return oO(n,void 0,void 0,function(){var o,a,l;return aO(this,function(u){switch(u.label){case 0:return i.altKey&&i.ctrlKey&&i.keyCode===68?(this._returnDetailedDescriptions=!this._returnDetailedDescriptions,l=this._map.getCamera(),a=this._map.getStyle(),o=a.language.toLowerCase(),a=a.style.toLowerCase(),[4,this._getLocDesc(l,o,a)]):[3,2];case 1:l=u.sent(),this._descCallback(l),u.label=2;case 2:return[2]}})})},this._onRotate=function(){n._rotateTimeout||(Date.now()-n._lastHeadingTime>=n._headUpdateLimit?n._rotateTimeout=setTimeout(n._updateHeading,d0e.RotationDuration+25):n._rotateTimeout=setTimeout(n._updateHeading,n._headUpdateLimit-(Date.now()-n._lastHeadingTime)))},this._onMove=function(){n._moveTimeout&&(clearTimeout(n._moveTimeout),delete n._moveTimeout),n._controlTimeout&&(clearTimeout(n._controlTimeout),delete n._controlTimeout)},this._onMoveEnd=function(i){i.fromControl?n._controlTimeout=setTimeout(n._updateCam,n._controlEventDelay):n._updateCam()},this._onStyleData=function(){setTimeout(n._updateStyle)},this._onPointerDown=function(i){n._lastPointerPos=n._getEventPos(i),n._pointerTimeout=setTimeout(function(){return oO(n,void 0,void 0,function(){var o,a,l;return aO(this,function(u){switch(u.label){case 0:return a=this._map.getStyle(),o=a.language.toLowerCase(),a=a.style.toLowerCase(),(l=this._map.getCamera()).center=this._map.pixelsToPositions([this._lastPointerPos])[0],[4,this._getLocDesc(l,o,a)];case 1:return l=u.sent(),this._descCallback(l),this._onPointerUp(),[2]}})})},n._pointerUpdateDelay),n._map.getCanvas().addEventListener("mousemove",n._onPointerMove),n._map.getCanvas().addEventListener("touchmove",n._onPointerMove),n._map.getCanvas().addEventListener("mouseup",n._onPointerUp),n._map.getCanvas().addEventListener("touchend",n._onPointerUp)},this._onPointerMove=function(a){var a=n._getEventPos(a),o=n._lastPointerPos[0]-a[0],a=n._lastPointerPos[1]-a[1];Math.sqrt(o*o+a*a)>n._moveThreshold&&n._onPointerUp()},this._onPointerUp=function(){clearTimeout(n._pointerTimeout),delete n._pointerTimeout,n._map.getCanvas().removeEventListener("mousemove",n._onPointerMove),n._map.getCanvas().removeEventListener("touchmove",n._onPointerMove),n._map.getCanvas().removeEventListener("mouseup",n._onPointerUp),n._map.getCanvas().removeEventListener("touchend",n._onPointerUp)},this._updateHeading=function(){var i,o=n._map.getCamera();n._lastHead&&!n._checkHeadingThreshold(o.bearing,n._lastHead)||(i=n._getHeadingDesc(o),n._lastHead=o.bearing,n._descCallback("<p>Map heading ".concat(i,".</p>")),n._lastHeadingTime=Date.now()),delete n._rotateTimeout},this._updateStyle=function(){return oO(n,void 0,void 0,function(){var i,o,a,l;return aO(this,function(u){switch(u.label){case 0:return i=this._map.getCamera(),a=this._map.getStyle(),o=a.language.toLowerCase(),a=a.style.toLowerCase(),this._lastLang===o?[3,2]:(r._labelCache._preloadCache(o),[4,this._getLocDesc(i,o,a)]);case 1:return l=u.sent(),[3,4];case 2:return this._lastStyle===a||this._lastStyle!=="blank"?[3,4]:[4,this._getLocDesc(i,o,a)];case 3:l=u.sent(),u.label=4;case 4:return this._lastLang=o,this._lastStyle=a,l&&this._descCallback(l),[2]}})})},this._updateCam=function(i){i===void 0&&(i=!1);var o,a,l,u=n._map.getCamera();(!n._lastCam||0<n._actionQueue.length||n._checkThresholds(u,n._lastCam))&&(l=n._map.getStyle(),o=l.language.toLowerCase(),a=l.style.toLowerCase(),(l=n._getActionDesc(u))&&n._actionQueue.push(l),n._lastCam=u,n._moveTimeout&&(clearTimeout(n._moveTimeout),delete n._moveTimeout),n._moveTimeout=setTimeout(function(){return oO(n,void 0,void 0,function(){var h;return aO(this,function(p){switch(p.label){case 0:return clearTimeout(this._rotateTimeout),delete this._rotateTimeout,[4,this._getLocDesc(u,o,a)];case 1:return h=p.sent(),0<this._actionQueue.length?(this._descCallback("<p>Map ".concat(this._actionQueue.join(", then "),".</p>").concat(h)),this._actionQueue=[]):this._descCallback(h),[2]}})})},i?0:n._camUpdateDelay))},this._map=e,this._restFallback=e.getServiceOptions().enableAccessibilityLocationFallback,this._descCallback=t,this._reverseSearch=new ntt(e),r._labelCache||(r._labelCache=new itt),this._lastLang=this._map.getStyle().language.toLowerCase(),r._labelCache._preloadCache(this._lastLang),this._map.events.addOnce("idle",function(){var i;n._disposed||(n._updateCam(!0),n._baseVectorTileSourceId=r._baseVectorTileSourceIds.find(function(o){return n._map.sources.getById(o)}),n._baseVectorTileSourceId==="bing-mvt"&&(n._labelConfig=r._labelConfigBing,n._roadLayers=r._roadLayersBing),n._polygonStyleLayer=n._labelConfig.reduce(function(o,a){return a.polygonSources&&o.push.apply(o,ott([],Hae(a.polygonSources),!1)),o},[]),(i=n._map._getMap()).on("move",n._onMove),i.on("moveend",n._onMoveEnd),i.on("styledata",n._onStyleData),i.on("rotate",n._onRotate),(i=n._map.getCanvas()).addEventListener("mousedown",n._onPointerDown),i.addEventListener("touchstart",n._onPointerDown))}),this._map.getMapContainer().addEventListener("keydown",this._shortcutListener)}return r.prototype.dispose=function(){this._disposed=!0;var e=this._map._getMap(),e=(e.off("move",this._onMove),e.off("moveend",this._onMoveEnd),e.off("styledata",this._onStyleData),e.off("rotate",this._onRotate),this._map.getCanvas());e.removeEventListener("mousedown",this._onPointerDown),e.removeEventListener("touchstart",this._onPointerDown),this._map.getMapContainer().removeEventListener("keydown",this._shortcutListener)},r.prototype._getEventPos=function(e){var t,n;return"touches"in e?(t=e.touches[0],n=e.target.getBoundingClientRect(),[t.pageX-n.left,t.pageY-n.top]):[e.offsetX,e.offsetY]},r.prototype._checkThresholds=function(e,t){return this._checkZoomThreshold(e.zoom,t.zoom)||this._checkPitchThreshold(e.pitch,t.pitch)||this._checkLocThreshold(e.center,t.center)||this._checkHeadingThreshold(e.bearing,t.bearing)},r.prototype._checkZoomThreshold=function(e,t){return this._round(e)!==this._round(t)},r.prototype._checkPitchThreshold=function(e,t){return Math.abs(e-t)>=this._pitchThreshold},r.prototype._checkLocThreshold=function(e,t){return e=(t=Hae(this._map.positionsToPixels([t,e]),2))[0],t=t[1],Su.getDistance(e,t)>=this._moveThreshold},r.prototype._checkHeadingThreshold=function(e,t){return e<0&&(e+=360),t<0&&(t+=360),e=Math.abs(e-t),(e=180<e?360-e:e)>=this._headingThreshold},r.prototype._getLocDesc=function(e,t,n){return oO(this,void 0,void 0,function(){var i,o,a,l,u,h,p,m,_,C=this;return aO(this,function(T){switch(T.label){case 0:return n==="blank"?[3,3]:this._map._getMap().loaded()?[3,2]:[4,new Promise(function(S){return C._map._getMap().once("idle",S)})];case 1:T.sent(),T.label=2;case 2:for(i={},o=this._map.positionsToPixels([e.center])[0],rtt.tryCatch(this._map,function(){var S=C._map._getMap();a=S.queryRenderedFeatures(o,{layers:C._polygonStyleLayer.filter(function(R){return S.getLayer(R)}),filter:["==",["geometry-type"],"Polygon"]})},function(){}),l=null,a&&0<a.length&&(l=a[0]),u=null,h=0,p=this._labelConfig.length;h<p;h++)m=this._labelConfig[h],e.zoom>=m.minZoom?m.polygonSources?l&&m.polygonSources.indexOf(l.layer["source-layer"])!==-1?(u=m.labelType,this._getClosestLabel(m,e,t,i,!1)):this._getClosestLabel(m,e,t,i,!0):this._getClosestLabel(m,e,t,i,!1):this._getClosestLabel(m,e,t,i,!0);return 8<=e.zoom&&this._processRoads(i,e,t),this._labelCache.forEach(function(S){!i[S]&&(_=null,_=S!=="water"&&S!=="majorPoi"||S===u?r._labelCache.getNearestLabel(S,e.center,e.zoom):_)&&(i[S]=_.name)}),[2,this._processLocInfo(e,u,i,!0,this._restFallback)];case 3:return[2,this._processLocInfo(e,null,null,!1,!1)]}})})},r.prototype._getHeadingDesc=function(e){var t=e.bearing;switch(t<0&&(t+=360),t=this._round(t,this._headingThreshold)){case 0:case 360:return"north";case 45:return"north east";case 90:return"east";case 135:return"south east";case 180:return"south";case 225:return"south west";case 270:return"west";case 315:return"north west";default:return"".concat(t," degrees")}},r.prototype._getClosestLabel=function(e,t,n,i,o){for(var a=e.radius,l=0,u=e.source.length;l<u;l++){var h={sourceLayer:e.source[l],filter:["has","name"]},p=this._map._getMap().querySourceFeatures(this._baseVectorTileSourceId,h),m=null,_=1/0,C=this._labelCache.has(e.labelType);if(!o||C)for(var T=0,S=p.length;T<S;T++){var R,O=p[T].geometry.type==="Point"?p[T]:K8(t.center,p[T].geometry);o||(R=p[T].geometry.type==="Point"?np(t.center,O.geometry.coordinates):O.properties.distance)<_&&(_=R,m=p[T]),C&&r._labelCache.cac
vendor: 4,109 bytes, line 711
711he(p[T].properties.name,e,O.geometry.coordinates,n)}o||(h=e.labelType+"Dis",m&&_<=a&&(typeof i[h]!="number"||_<=i[h])&&(i[e.labelType]=m.properties.name,i[h]=_))}},r.prototype._processRoads=function(e,t,n,i){var o=this._map._getMap().queryRenderedFeatures(i,{filter:["==",["geometry-type"],"LineString"]});if(o){for(var a,l=void 0,u=void 0,h=void 0,p=void 0,m=0,_=o.length;m<_;m++)this._roadLayers.has(o[m].layer["source-layer"])&&o[m].properties.name&&o[m].properties.name!==""&&(a=K8(t.center,o[m]),!h||a.properties.distance<h.properties.distance)&&(l&&o[m].properties.name===l.properties.name?h=a:l&&o[m].properties.name===l.properties.name?(!p||a.properties.distance<p.properties.distance)&&(p=a,u=o[m]):(p=h,u=l,h=a,l=o[m]));l&&(!e.country&&l.properties.country_code&&(e.country=l.properties.country_code,e.countryDis=0,r._labelCache.cache(e.country,{source:[],labelType:"country",radius:5e3,minZoom:0},h.geometry.coordinates,n)),!e.state&&l.properties.country_subdivision&&(e.state=l.properties.country_subdivision,e.stateDis=0,r._labelCache.cache(e.state,{source:[],labelType:"state",radius:5e3,minZoom:4},h.geometry.coordinates,n)),15<=t.zoom)&&(i=this._map.positionsToPixels([t.center,h.geometry.coordinates]),(Su.getDistance(i[0],i[1])<this._roadPixelRadius||h.properties.distance<this._minRoadDistance)&&(e.road=l.properties.name),u)&&(n=this._map.positionsToPixels([p.geometry.coordinates]),Su.getDistance(i[0],n[0])<this._minIntersectionPixelDistance||p.properties.distance<this._minRoadDistance)&&(e.secondRoad=u.properties.name,e.secondRoadDis=p.properties.distance)}},r.prototype._getActionDesc=function(e){var t,n,i;return this._lastCam&&(t=[],this._checkLocThreshold(e.center,this._lastCam.center)&&(i=["panned"],(n=Math.round(RE(this._lastCam.center,e.center)))===0||n===360?i.push("north"):n<90?i.push("north east"):n===90?i.push("east"):n<180?i.push("south east"):n===180?i.push("south"):n<270?i.push("south west"):n===270?i.push("west"):n<360&&i.push("north west"),n=np(this._lastCam.center,e.center,Fo.meters),i.push(1e3<n?"".concat(Vf(n/1e3,2)," kilometers"):"".concat(Vf(n,2)," meters")),t.push(i.join(" "))),this._checkZoomThreshold(e.zoom,this._lastCam.zoom)&&((i=["zoomed"]).push(this._lastCam.zoom<e.zoom?"in":"out"),1<=(n=Math.abs(this._lastCam.zoom-e.zoom))&&(n=Math.ceil(n),i.push("".concat(n,1<n?" levels":" level"))),this._getCanonicalZoom(this._lastCam.zoom)!==this._getCanonicalZoom(e.zoom)&&i.push("to ".concat(this._getCanonicalZoom(e.zoom)," level")),e.zoom>=e.maxZoom&&i.push("Zoom In button disabled, maximum zoom level reached"),n=qi.getSouth(e.bounds)<=-aD&&qi.getNorth(e.bounds)>=aD,(e.zoom<=e.minZoom||n)&&i.push("Zoom Out button disabled, minimum zoom level reached"),t.push(i.join(" "))),this._checkPitchThreshold(e.pitch,this._lastCam.pitch)&&(n=this._round(e.pitch,this._pitchThreshold),t.push("pitched to ".concat(n," degrees")),e.pitch!==60&&e.pitch!==0||(i=e.pitch===60?"maximum":"minimum",t.push("reached ".concat(i," of ").concat(e.pitch," degrees")))),this._checkHeadingThreshold(this._lastCam.bearing,e.bearing)&&t.push("rotated to ".concat(this._getHeadingDesc(e))),t.join(" and "))||null},r.prototype._getCanonicalZoom=function(e){return(e=this._round(e))<2?"world":e<5?"country":e<11?"state province":e<15?"city":"street"},r.prototype._processLocInfo=function(e,t,n,i,o){var a=this;return new Promise(function(l,u){var h=[];if(i){var p=[];if(n&&(t&&(t==="water"&&n.water?p.push(n.water):t==="majorPoi"&&n.majorPoi&&p.push(n.majorPoi)),p.length===0)&&(n.majorPoi&&8<=e.zoom?p.push(n.majorPoi):(n.poi&&14<=e.zoom?p.push(n.poi):n.road&&15<=e.zoom&&(n.secondRoad?p.push(n.road+" & "+n.secondRoad):p.push(n.road)),n.neighbourhood&&12<=e.zoom&&p.push(n.neighbourhood),n.city&&6<=e.zoom&&p.push(n.city)),n.state&&4<=e.zoom&&p.push(n.state),p.length===0?n.water?p.push(n.water):n.country&&p.push(n.country):p.length===1&&n.state&&4<=e.zoom&&n.country&&p.push(n.country)),0<p.length)h.push("<p>Location: ",p.join(", "),".</p>");else if(o&&t!=="water")return void a._reverseGeocodeDescription(e).then(function(m){l(m)},function(){u("<p>Location: unknown</p>")}
vendor: 14,917 bytes, lines 711-712
711)}a._returnDetailedDescriptions&&(h.push("<p>Zoom: ",Vf(e.zoom,2),".</p>"),h.push("<p>Latitude: ",Vf(e.center[1],5),".</p>"),h.push("<p>Longitude: ",Vf(e.center[0],5),".</p>")),l(h.join(""))})},r.prototype._reverseGeocodeDescription=function(e){var t=this;return new Promise(function(n){var i=t._map.getStyle();t._reverseSearch.request({position:e.center,style:i}).then(function(o){var a,l={};o&&o.features&&0<o.features.length&&(a=(a=o.features[0])==null?void 0:a.properties)!=null&&a.address&&((a=o.features[0].properties.address).countryRegion&&(l.country=a.countryRegion.name,r._labelCache.cache(l.country,{source:[],labelType:"country",radius:5e3,minZoom:0},e.center,i.language)),a.adminDistricts&&(l.state=(o=a.adminDistricts[0])==null?void 0:o.shortName,r._labelCache.cache(l.state,{source:[],labelType:"state",radius:5e3,minZoom:4},e.center,i.language)),a.locality&&(l.city=a.locality,r._labelCache.cache(l.city,{source:[],labelType:"city",radius:1e3,minZoom:10},e.center,i.language)),a.addressLine)&&(l.road=a.addressLine),t._processLocInfo(e,null,l,!0,!1).then(function(u){n(u)})},function(o){t._processLocInfo(e,null,null,!0,!1).then(function(a){n(a)})}).catch(function(o){t._processLocInfo(e,null,null,!0,!1).then(function(a){n(a)})})})},r.prototype._round=function(e,t){return t===void 0&&(t=1),Math.round(e/t)*t},r._baseVectorTileSourceIds=["microsoft.base","vectorTiles","bing-mvt"],r._labelConfigBing=[{source:["water_feature"],labelType:"water",minZoom:0,radius:395e4,polygonSources:["generic_water_fill"]},{source:["water_feature"],labelType:"water",minZoom:3,radius:1e6,polygonSources:["generic_water_fill"]},{source:["country_region"],labelType:"country",minZoom:0,maxZoom:5,radius:3e5},{source:["admin_division1"],labelType:"state",minZoom:4,maxZoom:7,radius:3e5},{source:["populated_place"],labelType:"city",minZoom:8,radius:4e4},{source:["neighborhood"],labelType:"neighbourhood",minZoom:12,radius:6e3},{source:["amusement_park"],labelType:"poi",minZoom:14,radius:2e3,polygonSources:["amusement_park_fill"]},{source:["hospital"],labelType:"poi",minZoom:14,radius:1e3,polygonSources:["hospital_fill"]},{source:["shopping_center"],labelType:"poi",minZoom:14,radius:1e3,polygonSources:["shopping_center_fill"]},{source:["stadium"],labelType:"poi",minZoom:14,radius:1e3,polygonSources:["stadium_fill"]},{source:["higher_education_facility","school"],labelType:"poi",minZoom:14,radius:1e3,polygonSources:["higher_education_facility_fill","school_fill"]},{source:["zoo"],labelType:"poi",minZoom:14,radius:1e3,polygonSources:["zoo_fill"]},{source:["airport","airport_terminal"],labelType:"majorPoi",minZoom:11,radius:3e3,polygonSources:["airport_terminal_fill","airport_fill-merged7","airport_runway_fill"]},{source:["reserve"],labelType:"majorPoi",minZoom:7,radius:15e3,polygonSources:["generic_reserve_fill","land_cover_forest_fill"]}],r._roadLayersBing=new Set(["road"]),r})(),stt=function(r){var e=this;this.addToMap=function(){e.mapViewDesc==null&&(e.initializeMapLiveStateInfo(),e.initializeMapStyleInfo(),e.createMapKeyBindingInfo(),e.map.getMapContainer().setAttribute("role","application"),e.map.getMapContainer().setAttribute("aria-label","Map Application"),e.map.getCanvasContainer().setAttribute("aria-live","polite"),e.map.getCanvasContainer().setAttribute("aria-describedby","atlas-map-state atlas-map-style"),e.map.getCanvas().setAttribute("aria-label","Interactive Map"),e.map.getCanvas().setAttribute("aria-describedby","atlas-map-shortcuts"),e.map.getCanvas().setAttribute("alt","Interactive Map"))},this.removeFromMap=function(){e.mapViewDesc!=null&&e.mapViewDesc.dispose(),delete e.mapViewDesc,e.atlasMapKeyBindings!=null&&e.map.getCanvasContainer().removeChild(e.atlasMapKeyBindings),delete e.atlasMapKeyBindings,e.atlasMapLiveStateInfo!=null&&e.map.getCanvasContainer().removeChild(e.atlasMapLiveStateInfo),delete e.atlasMapLiveStateInfo,e.atlasMapStyleInfo!=null&&e.map.getCanvasContainer().removeChild(e.atlasMapStyleInfo),delete e.atlasMapStyleInfo,e.map.getMapContainer().removeAttribute("role"),e.map.getMapContainer().removeAttribute("aria-label"),e.map.getCanvasContainer().removeAttribute("aria-live"),e.map.getCanvasContainer().removeAttribute("aria-describedby"),e.map.getCanvas().removeAttribute("aria-label"),e.map.getCanvas().removeAttribute("aria-describedby"),e.map.getCanvas().removeAttribute("alt"),e.map.events.remove("stylechanged",e.updateMapStyle)},this.createMapKeyBindingInfo=function(){e.atlasMapKeyBindings=document.createElement("div"),e.atlasMapKeyBindings.setAttribute("tabindex","-1"),e.atlasMapKeyBindings.setAttribute("aria-hidden","true"),e.atlasMapKeyBindings.id="atlas-map-shortcuts",e.atlasMapKeyBindings.classList.add("hidden-accessible-element"),e.atlasMapKeyBindings.innerHTML=["Map shortcuts:","Zoom out: hyphen.","Zoom in: plus.","Pan right 100 pixels: right arrow.","Pan left 100 pixels: left arrow.","Pan up 100 pixels: up arrow.","Pan down 100 pixels: down arrow.","Rotate 15 degrees clockwise: shift + right arrow.","Rotate 15 degrees counter clockwise: shift + left arrow.","Increase pitch 10 degrees: shift + up arrow.","Decrease pitch 10 degrees: shift + down arrow.","Jump focus to the map: Escape."].join(`
712`),e.map.getCanvasContainer().appendChild(e.atlasMapKeyBindings);var t=[189,187,38,37,39,40],n=e.map._getMap()._canvas;n!=null&&n.addEventListener("keyup",function(i){t.find(function(o){return i.keyCode===o})&&(e.atlasMapKeyBindings.innerHTML="")})},this.initializeMapLiveStateInfo=function(){e.mapViewDesc=new att(e.map,e.updateMapState),e.atlasMapLiveStateInfo=document.createElement("div"),e.atlasMapLiveStateInfo.setAttribute("tabindex","-1"),e.atlasMapLiveStateInfo.setAttribute("aria-hidden","true"),e.atlasMapLiveStateInfo.id="atlas-map-state",e.atlasMapLiveStateInfo.classList.add("hidden-accessible-element"),e.map.getCanvasContainer().appendChild(e.atlasMapLiveStateInfo)},this.initializeMapStyleInfo=function(){e.atlasMapStyleInfo=document.createElement("div"),e.atlasMapStyleInfo.setAttribute("tabindex","-1"),e.atlasMapStyleInfo.setAttribute("aria-hidden","true"),e.atlasMapStyleInfo.id="atlas-map-style",e.atlasMapStyleInfo.classList.add("hidden-accessible-element"),e.map.events.add("stylechanged",e.updateMapStyle),e.map.getCanvasContainer().appendChild(e.atlasMapStyleInfo)},this.updateMapStyle=function(){e.atlasMapStyleInfo.innerHTML="<p>Map style: ".concat(e.map.getStyle().style,".</p>")},this.updateMapState=function(t){e.atlasMapLiveStateInfo.innerHTML=t},this.map=r},ltt=function(r){var e=this;this.listenerEnabled=!1,this.lastFlowMode="none",this.addToMap=function(){if(!e.map._isReady())throw new Error("Traffic flow could not be added to the map because the map is not ready. Please use a ready event listener to guarantee the map is ready before enabling traffic flow.");e.listenerEnabled||(e.map.events.add("styledata",e.addToMap),e.listenerEnabled=!0);var t,n=e.map.getTraffic();n.flow!=="none"&&(t=e.map.layers.getLayerById("traffic_".concat(n.flow)))&&(e.lastFlowMode=n.flow,t._updateLayoutProperty("visibility","visible","none"))},this.removeFromMap=function(){var t;e.map.getTraffic(),e.lastFlowMode!="none"&&((t=e.map.layers.getLayerById("traffic_".concat(e.lastFlowMode)))&&t._updateLayoutProperty("visibility","none","visible"),e.lastFlowMode="none"),e.listenerEnabled&&(e.map.events.remove("styledata",e.addToMap),e.listenerEnabled=!1)},this.map=r},ctt=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Fae=(function(r){function e(t,n,i){var a=(a=(a=(a=(a=(a=(a=(a=(a=(a=(a=(a=(a=(a=t.icon_category_12)!=null?a:t.icon_category_11)!=null?a:t.icon_category_10)!=null?a:t.icon_category_9)!=null?a:t.icon_category_8)!=null?a:t.icon_category_7)!=null?a:t.icon_category_6)!=null?a:t.icon_category_5)!=null?a:t.icon_category_4)!=null?a:t.icon_category_3)!=null?a:t.icon_category_2)!=null?a:t.icon_category_1)!=null?a:t.icon_category_0)!=null?a:t.icon_category,o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=t.description_12)!=null?o:t.description_11)!=null?o:t.description_10)!=null?o:t.description_9)!=null?o:t.description_8)!=null?o:t.description_7)!=null?o:t.description_6)!=null?o:t.description_5)!=null?o:t.description_4)!=null?o:t.description_3)!=null?o:t.description_2)!=null?o:t.description_1)!=null?o:t.description_0)!=null?o:t.description,a={icon:"".concat(e.getSeverityColorName(t.magnitude),"-").concat(e.getIncidentTypeIconName(a)),incidentType:e.getIncidentTypeName(a,i),description:o,delay:t.delay,color:e.getSeverityColorHexCode(t.magnitude),id:t.id};return r.call(this,n,a)||this}return ctt(e,r),e.getIncidentTypeName=function(t,n){switch(t){case 0:return n.Unknown;case 1:return n.Accident;case 2:return n.Fog;case 3:return n.Danger;case 4:return n.Rain;case 5:return n.Ice;case 6:return n.Jam;case 7:return n.LaneClosed;case 8:return n.RoadClosed;case 9:return n.RoadWorks;case 10:return n.Wind;case 11:return n.Flood;case 12:return n.Detour;default:return n.Unknown}},e.getIncidentTypeIconName=function(t){switch(t){case 0:return"unknown";case 1:return"accident";case 2:return"fog";case 3:return"danger";case 4:return"rain";case 5:return"ice";case 6:return"jam";case 7:return"lane-closed";case 8:return"road-closed";case 9:return"road-work";case 10:return"wind";case 11:return"flood";case 12:return"detour";default:return"unknown"}},e.getSeverityColorName=function(t){switch(t){case 0:return"grey";case 1:return"yellow";case 2:return"orange";case 3:return"red";default:return"grey"}},e.getSeverityColorHexCode=function(t){switch(t){case 0:return"#B5B6B7";case 1:return"#F4C951";case 2:return"#F4873F";case 3:return"#F04F4E";default:return"#B5B6B7"}},e})(hv),Uae=((function(r){r.DELAY="delay",r.LENGTH="length",r.FROM="from",r.TO="to"})(GI=GI||{}),(function(){function r(){}return r.build=function(e,t){t===void 0&&(t="en-US");var n,o=document.createElement("div"),a=(o.classList.add("incident-popup-title"),o.classList.add("font-segoeui-b"),o.innerText=e.properties.incidentType,o.setAttribute("aria-label","Incident Type ".concat(e.properties.incidentType)),document.createElement("div")),i=(a.classList.add("incident-popup-subtitle"),a.classList.add("font-segoeui-b"),a.setAttribute("aria-label","Incident Description ".concat(e.properties.description)),a.innerText=e.properties.description,document.createElement("div")),o=(i.classList.add("incident-popup-header"),i.style.backgroundColor=e.properties.color,i.appendChild(o),i.appendChild(a),document.createElement("div")),a=(o.classList.add("incident-popup-body"),e.properties.delay&&(a="".concat(Math.floor(e.properties.delay/60)," min"),a=this.createInfoSection(a,GI.DELAY),o.appendChild(a)),e.properties.length&&(a=new Intl.NumberFormat([t,"en-US"],{maximumFractionDigits:2}),n=void 0,n=t==="en-US"?(t=hb(e.properties.length,"meters","miles"),"".concat(a.format(t)," miles")):(t=hb(e.properties.length,"meters","kilometers"),"".concat(a.format(t)," km")),a=this.createInfoSection(n,GI.LENGTH),o.appendChild(a)),e.properties.from&&(t=this.createInfoSection(e.properties.from,GI.FROM),o.appendChild(t)),e.properties.to&&(n=this.createInfoSection(e.properties.to,GI.TO),o.appendChild(n)),document.createElement("div"));return a.classList.add("incident-popup-content"),a.appendChild(i),a.appendChild(o),new bL({content:a,position:e.geometry.coordinates})},r.createInfoSection=function(e,t){var n=document.createElement("div"),i=(n.classList.add("incident-popup-info"),document.createElement("div")),o=(i.classList.add("icon"),i.classList.add(t),document.createElement("span"));return o.classList.add("message"),o.classList.add("font-segoeui"),o.setAttribute("aria-label","Incident ".concat(t," ").concat(e)),o.innerText=e,n.appendChild(i),n.appendChild(o),n},r})()),utt=window&&window.__awaiter||function(r,e,t,n){return new(t=t||Promise)(function(i,o){function a(h){try{u(n.next(h))}catch(p){o(p)}}function l(h){try{u(n.throw(h))}catch(p){o(p)}}function u(h){var p;h.done?i(h.value):((p=h.value)instanceof t?p:new t(function(m){m(p)})).then(a,l)}u((n=n.apply(r,e||[])).next())})},dtt=window&&window.__generator||function(r,e){var t,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:l(0),throw:l(1),return:l(2)};return typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(u){return function(h){var p=[u,h];if(t)throw new TypeError("Generator is already executing.");for(;o=a&&p[a=0]?0:o;)try{if(t=1,n&&(i=2&p[0]?n.return:p[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,p[1])).done)return i;switch(n=0,(p=i?[2&p[0],i.value]:p)[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,n=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3]))o.label=p[1];else if(p[0]===6&&o.label<i[1])o.label=i[1],i=p;else{if(!(i&&o.label<i[2])){i[2]&&o.ops.pop(),o.trys.pop();continue}o.label=i[2],o.ops.push(p)}}p=e.call(r,o)}catch(m){p=[6,m],n=0}finally{t=i=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}},htt=(function(){function r(n){var t=this,n=(this.incidentLayerName="incidents",this.incidentSourceName="mapcontrol_traffic_incident",this.addToMap=function(){t.map.sources.getById(t.incidentSourceName)||t.map.sources.add(t.vectorTileSource),t.map.layers.getLayerById(t.incidentLayerName)||t.map.layers.add(t.incidentLayer,"labels"),t.clickPopup=new bL({position:[0,0],pixelOffset:[0,-18]}),t.map.addEventListener("mouseover",t.incidentLayerName,t.cursorToPointer),t.map.addEventListener("mouseleave",t.incidentLayerName,t.cursorToDefault),t.map.addEventListener("click",t.incidentLayerName,t.openIncidentPopup),t.map.events.addOnce("idle",t.setAccessiblePopups),t.map.events.add("moveend",t.setAccessiblePopups)},this.accessiblePopups=[],this.setAccessiblePopups=function(){return utt(t,void 0,void 0,function(){var i,o,a,l,u,h,p=this;return dtt(this,function(m){switch(m.label){case 0:return this.accessiblePopups.forEach(function(_){return _.remove()}),this.accessiblePopups=[],i=this.map.layers.getRenderedShapes(this.map.getCamera().bounds,this.incidentLayer),[4,this.map._getLocalizedStrings()];case 1:return o=m.sent(),a=function(_,C){var T=_[C],R=T.geometry.coordinates,R=new fv(new od(R[0],R[1])),T=new Fae(T.properties,R,o),S=Uae.build(T,p.incidentLanguage),R=S.getPopupContainer();return R.addEventListener("focusin",function(O){p.clickPopup.remove(),p.accessiblePopups.filter(function(N){return N!==S}
712).forEach(function(N){return N.remove()}),0<=C-1&&l(S,a(_,C-1)),C+1<_.length&&h(a(_,C+1)),2<=C&&C==_.length-1&&u(a(_,0)),C==0&&2<=_.length&&h(a(_,_.length-1))}),C==_.length-1&&R.addEventListener("focusout",function(O){O.relatedTarget===null&&S.close()}),p.accessiblePopups.push(S),S},l=function(_,C){C.open(p.map),C.close(),C=C.getPopupContainer(),_=_.getPopupContainer(),_.parentElement.insertBefore(C,_)},u=function(C){C.open(p.map),C.close();var C=C.getPopupContainer(),T=C.parentElement;T.insertBefore(C,T.firstElementChild)},h=function(_){_.open(p.map),_.close()},0<i.length&&h(a(i,0)),1<i.length&&h(a(i,i.length-1)),[2]}})})},this.removeFromMap=function(){var i;t.map.removeEventListener("mouseover",t.incidentLayerName,t.cursorToPointer),t.map.removeEventListener("mouseleave",t.incidentLayerName,t.cursorToDefault),t.map.removeEventListener("click",t.incidentLayerName,t.openIncidentPopup),t.map.events.remove("idle",t.setAccessiblePopups),t.map.events.remove("moveend",t.setAccessiblePopups),t.accessiblePopups.forEach(function(o){return o.remove()}),t.accessiblePopups=[],(i=t.clickPopup)!=null&&i.remove(),t.map.layers.getLayerById(t.incidentLayerName)!=null&&t.map.layers.remove(t.incidentLayerName),t.map.sources.getById(t.incidentSourceName)!=null&&t.map.sources.remove(t.incidentSourceName)},this.cursorToPointer=function(i){t.map.getCanvas().style.cursor="pointer"},this.cursorToDefault=function(i){t.map.getCanvas().style.cursor=""},this.openIncidentPopup=function(i){t.clickPopup.remove(),t.accessiblePopups.forEach(function(l){return l.close()});var o=i.position,a=i.features[0];t.map._getLocalizedStrings().then(function(l){var u=new fv(new od(o[0],o[1])),u=new Fae(a.properties,u,l);t.clickPopup=Uae.build(u,t.incidentLanguage),t.clickPopup.open(t.map),t.clickPopup.getPopupContainer().addEventListener("focusout",function(h){h.relatedTarget===null&&t.clickPopup.close()})})},this.map=n,this.vectorTileSource=new h_e(this.incidentSourceName,{maxZoom:22,tiles:["https://".concat(ai.domainPlaceHolder,"/traffic/incident/tile/pbf?api-version=1.0&zoom={z}&x={x}&y={y}")]}),this.getIncidentIconImageExpression());this.incidentLayer=new Z8(this.incidentSourceName,this.incidentLayerName,{sourceLayer:"Traffic incident POI",iconOptions:{ignorePlacement:!0,allowOverlap:!0,image:n,size:.75}})}return r.prototype.getIncidentIconImageExpression=function(){return["concat",["let","magnitude",["get","magnitude"],["case",["==",["var","magnitude"],0],"grey",["==",["var","magnitude"],1],"yellow",["==",["var","magnitude"],2],"orange",["==",["var","magnitude"],3],"red",["==",["var","magnitude"],4],"grey","grey"]],"-",["let","category",["coalesce",["get","icon_category_12"],["get","icon_category_11"],["get","icon_category_10"],["get","icon_category_9"],["get","icon_category_8"],["get","icon_category_7"],["get","icon_category_6"],["get","icon_category_5"],["get","icon_category_4"],["get","icon_category_3"],["get","icon_category_2"],["get","icon_category_0"],["get","icon_category"],0],["case",["==",["var","category"],0],"unknown",["==",["var","category"],1],"accident",["==",["var","category"],2],"fog",["==",["var","category"],3],"danger",["==",["var","category"],4],"rain",["==",["var","category"],5],"ice",["==",["var","category"],6],"jam",["==",["var","category"],7],"lane-closed",["==",["var","category"],8],"road-closed",["==",["var","category"],9],"road-work",["==",["var","category"],10],"wind",["==",["var","category"],11],"flood",["==",["var","category"],12],"detour","unknown"]]]},r})(),ftt=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Bae=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.interactive=!0,t.scrollZoomInteraction=!0,t.boxZoomInteraction=!0,t.dragRotateInteraction=!0,t.dragPanInteraction=!0,t.keyboardInteraction=!0,t.dblClickZoomInteraction=!0,t.touchInteraction=!0,t.touchRotate=!0,t.wheelZoomRate=1/450,t}return ftt(e,r),e})(Ya),ptt=(function(){function r(e){var t=this;this._onKeyDown=function(n){n.keyCode===27&&t.map.getCanvas().focus()},this.map=e}return r.prototype.enable=function(){this.map.getMapContainer().addEventListener("keydown",this._onKeyDown)},r.prototype.disable=function(){this.map.getMapContainer().removeEventListener("keydown",this._onKeyDown)},r})(),gtt=(function(){function r(e){var t=this;this._onGestureStart=function(n){t.hasTouch||(n.preventDefault(),t.initZoom=t.map.getCamera().zoom)},this._onGestureChange=function(n){t.hasTouch||(n.preventDefault(),t.map.setCamera({zoom:t.initZoom+n.scale-1}))},this._onTouchStart=function(n){t.hasTouch=!0},this._onTouchEnd=function(n){n.touches.length===0&&(t.hasTouch=!1)},this.map=e}return r.prototype.enable=function(){this.map.getCanvasContainer().addEventListener("gesturestart",this._onGestureStart),this.map.getCanvasContainer().addEventListener("gesturechange",this._onGestureChange),this.map.getCanvasContainer().addEventListener("touchstart",this._onTouchStart),this.map.getCanvasContainer().addEventListener("touchend",this._onTouchEnd)},r.prototype.disable=function(){this.map.getCanvasContainer().removeEventListener("gesturestart",this._onGestureStart),this.map.getCanvasContainer().removeEventListener("gesturechange",this._onGestureChange),this.map.getCanvasContainer().removeEventListener("touchstart",this._onTouchStart),this.map.getCanvasContainer().removeEventListener("touchend",this._onTouchEnd)},r})(),mtt=(function(){function r(e,t){this.added=!1,this.map=e,this.focusShortcut=new ptt(e),this.pinchZoom=new gtt(e),this.options=new Bae().merge(t)}return r.prototype.addToMap=function(){this.added||(this.added=!0,this._setInteractions(this.options))},r.prototype.removeFromMap=function(){this.added&&(this.added=!1,this._setInteractions({interactive:!1}))},r.prototype.setOptions=function(e){this.options=new Bae().merge(this.options,e),this.added&&this._setInteractions(this.options)},r.prototype.getOptions=function(){return Object.assign({},this.options)},r.prototype._setInteractions=function(e){var t;e.interactive?(e.boxZoomInteraction?this.map._getMap().boxZoom.enable():this.map._getMap().boxZoom.disable(),e.dblClickZoomInteraction?this.map._getMap().doubleClickZoom.enable():this.map._getMap().doubleClickZoom.disable(),e.dragPanInteraction?this.map._getMap().dragPan.enable():this.map._getMap().dragPan.disable(),e.dragRotateInteraction?this.map._getMap().dragRotate.enable():this.map._getMap().dragRotate.disable(),e.keyboardInteraction?(this.map._getMap().keyboard.enable(),this.focusShortcut.enable()):(this.map._getMap().keyboard.disable(),this.focusShortcut.disable()),e.scrollZoomInteraction?(this.map._getMap().scrollZoom.enable(),this.map._getMap().scrollZoom.setWheelZoomRate(e.wheelZoomRate)):this.map._getMap().scrollZoom.disable(),t=this.map._getMap().touchZoomRotate,e.touchInteraction?(t.enable(),e.touchRotate?t.enableRotation():t.disableRotation()):t.disable(),this.pinchZoom.enable()):(this.map._getMap().boxZoom.disable(),this.map._getMap().doubleClickZoom.disable(),this.map._getMap().dragPan.disable(),this.map._getMap().dragRotate.disable(),this.map._getMap().keyboard.disable(),this.focusShortcut.disable(),this.map._getMap().scrollZoom.disable(),this.map._getMap().touchZoomRotate.disable(),this.pinchZoom.disable())},r})();function cwe(r,e,t){var n={type:"Feature"};return(t=t===void 0?{}:t).id!==0&&!t.id||(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.properties=e||{},n.geometry=r,n}function ytt(r,e,t){t===void 0&&(t={});for(var n=0,i=r;n<i.length;n++){var o=i[n];
712if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var a=0;a<o[o.length-1].length;a++)if(o[o.length-1][a]!==o[0][a])throw new Error("First and last Position are not equivalent.")}return cwe({type:"Polygon",coordinates:r},e,t)}function vtt(r,e,t){return cwe({type:"MultiPolygon",coordinates:r},e,t=t===void 0?{}:t)}function $ae(r){return r.type==="Feature"?r.geometry:r}var zae={exports:{}},_tt=(zae.exports=(function(){function r(Oe,le){if(!(Oe instanceof le))throw new TypeError("Cannot call a class as a function")}function e(Oe,le){for(var re=0;re<le.length;re++){var te=le[re];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(Oe,te.key,te)}}function t(Oe,le,re){return le&&e(Oe.prototype,le),re&&e(Oe,re),Oe}var n=(function(){function Oe(le,re){this.next=null,this.key=le,this.data=re,this.left=null,this.right=null}return Oe})();function i(Oe,le){return Oe>le?1:Oe<le?-1:0}function o(Oe,le,re){for(var te=new n(null,null),me=te,Ae=te;;){var _e=re(Oe,le.key);if(_e<0){if(le.left===null)break;if(re(Oe,le.left.key)<0){var Ve=le.left;if(le.left=Ve.right,Ve.right=le,le=Ve,le.left===null)break}Ae.left=le,Ae=le,le=le.left}else if(_e>0){if(le.right===null)break;if(re(Oe,le.right.key)>0){var Ve=le.right;if(le.right=Ve.left,Ve.left=le,le=Ve,le.right===null)break}me.right=le,me=le,le=le.right}else break}return me.right=le.left,Ae.left=le.right,le.left=te.right,le.right=te.left,le}function a(Oe,le,re,te){var me=new n(Oe,le);if(re===null)return me.left=me.right=null,me;re=o(Oe,re,te);var Ae=te(Oe,re.key);return Ae<0?(me.left=re.left,me.right=re,re.left=null):Ae>=0&&(me.right=re.right,me.left=re,re.right=null),me}function l(Oe,le,re){var te=null,me=null;if(le){le=o(Oe,le,re);var Ae=re(le.key,Oe);Ae===0?(te=le.left,me=le.right):Ae<0?(me=le.right,le.right=null,te=le):(te=le.left,le.left=null,me=le)}return{left:te,right:me}}function u(Oe,le,re){return le===null?Oe:(Oe===null||(le=o(Oe.key,le,re),le.left=Oe),le)}function h(Oe,le,re,te,me){if(Oe){te(""+le+(re?"└── ":"├── ")+me(Oe)+`
713`);var Ae=le+(re?"    ":"│   ");Oe.left&&h(Oe.left,Ae,!1,te,me),Oe.right&&h(Oe.right,Ae,!0,te,me)}}var p=(function(){function Oe(le){le===void 0&&(le=i),this._root=null,this._size=0,this._comparator=le}return Oe.prototype.insert=function(le,re){return this._size++,this._root=a(le,re,this._root,this._comparator)},Oe.prototype.add=function(le,re){var te=new n(le,re);this._root===null&&(te.left=te.right=null,this._size++,this._root=te);var me=this._comparator,Ae=o(le,this._root,me),_e=me(le,Ae.key);return _e===0?this._root=Ae:(_e<0?(te.left=Ae.left,te.right=Ae,Ae.left=null):_e>0&&(te.right=Ae.right,te.left=Ae,Ae.right=null),this._size++,this._root=te),this._root},Oe.prototype.remove=function(le){this._root=this._remove(le,this._root,this._comparator)},Oe.prototype._remove=function(le,re,te){var me;if(re===null)return null;re=o(le,re,te);var Ae=te(le,re.key);return Ae===0?(re.left===null?me=re.right:(me=o(le,re.left,te),me.right=re.right),this._size--,me):re},Oe.prototype.pop=function(){var le=this._root;if(le){for(;le.left;)le=le.left;return this._root=o(le.key,this._root,this._comparator),this._root=this._remove(le.key,this._root,this._comparator),{key:le.key,data:le.data}}return null},Oe.prototype.findStatic=function(le){for(var re=this._root,te=this._comparator;re;){var me=te(le,re.key);if(me===0)return re;me<0?re=re.left:re=re.right}return null},Oe.prototype.find=function(le){return this._root&&(this._root=o(le,this._root,this._comparator),this._comparator(le,this._root.key)!==0)?null:this._root},Oe.prototype.contains=function(le){for(var re=this._root,te=this._comparator;re;){var me=te(le,re.key);if(me===0)return!0;me<0?re=re.left:re=re.right}return!1},Oe.prototype.forEach=function(le,re){for(var te=this._root,me=[],Ae=!1;!Ae;)te!==null?(me.push(te),te=te.left):me.length!==0?(te=me.pop(),le.call(re,te),te=te.right):Ae=!0;return this},Oe.prototype.range=function(le,re,te,me){for(var Ae=[],_e=this._comparator,Ve=this._root,it;Ae.length!==0||Ve;)if(Ve)Ae.push(Ve),Ve=Ve.left;
713else{if(Ve=Ae.pop(),it=_e(Ve.key,re),it>0)break;if(_e(Ve.key,le)>=0&&te.call(me,Ve))return this;Ve=Ve.right}return this},Oe.prototype.keys=function(){var le=[];return this.forEach(function(re){var te=re.key;return le.push(te)}),le},Oe.prototype.values=function(){var le=[];return this.forEach(function(re){var te=re.data;return le.push(te)}),le},Oe.prototype.min=function(){return this._root?this.minNode(this._root).key:null},Oe.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},Oe.prototype.minNode=function(le){if(le===void 0&&(le=this._root),le)for(;le.left;)le=le.left;return le},Oe.prototype.maxNode=function(le){if(le===void 0&&(le=this._root),le)for(;le.right;)le=le.right;return le},Oe.prototype.at=function(le){for(var re=this._root,te=!1,me=0,Ae=[];!te;)if(re)Ae.push(re),re=re.left;else if(Ae.length>0){if(re=Ae.pop(),me===le)return re;me++,re=re.right}else te=!0;return null},Oe.prototype.next=function(le){var re=this._root,te=null;if(le.right){for(te=le.right;te.left;)te=te.left;return te}for(var me=this._comparator;re;){var Ae=me(le.key,re.key);if(Ae===0)break;Ae<0?(te=re,re=re.left):re=re.right}return te},Oe.prototype.prev=function(le){var re=this._root,te=null;if(le.left!==null){for(te=le.left;te.right;)te=te.right;return te}for(var me=this._comparator;re;){var Ae=me(le.key,re.key);if(Ae===0)break;Ae<0?re=re.left:(te=re,re=re.right)}return te},Oe.prototype.clear=function(){return this._root=null,this._size=0,this},Oe.prototype.toList=function(){return C(this._root)},Oe.prototype.load=function(le,re,te){re===void 0&&(re=[]),te===void 0&&(te=!1);var me=le.length,Ae=this._comparator;if(te&&R(le,re,0,me-1,Ae),this._root===null)this._root=m(le,re,0,me),this._size=me;else{var _e=S(this.toList(),_(le,re),Ae);me=this._size+me,this._root=T({head:_e},0,me)}return this},Oe.prototype.isEmpty=function(){return this._root===null},Object.defineProperty(Oe.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),Oe.prototype.toString=function(le){le===void 0&&(le=function(me){return String(me.key)});var re=[];return h(this._root,"",!0,function(te){return re.push(te)},le),re.join("")},Oe.prototype.update=function(le,re,te){var me=this._comparator,Ae=l(le,this._root,me),_e=Ae.left,Ve=Ae.right;me(le,re)<0?Ve=a(re,te,Ve,me):_e=a(re,te,_e,me),this._root=u(_e,Ve,me)},Oe.prototype.split=function(le){return l(le,this._root,this._comparator)},Oe})();function m(Oe,le,re,te){var me=te-re;if(me>0){var Ae=re+Math.floor(me/2),_e=Oe[Ae],Ve=le[Ae],it=new n(_e,Ve);return it.left=m(Oe,le,re,Ae),it.right=m(Oe,le,Ae+1,te),it}return null}function _(Oe,le){for(var re=new n(null,null),te=re,me=0;me<Oe.length;me++)te=te.next=new n(Oe[me],le[me]);return te.next=null,re.next}function C(Oe){for(var le=Oe,re=[],te=!1,me=new n(null,null),Ae=me;!te;)le?(re.push(le),le=le.left):re.length>0?(le=Ae=Ae.next=re.pop(),le=le.right):te=!0;return Ae.next=null,me.next}function T(Oe,le,re){var te=re-le;if(te>0){var me=le+Math.floor(te/2),Ae=T(Oe,le,me),_e=Oe.head;return _e.left=Ae,Oe.head=Oe.head.next,_e.right=T(Oe,me+1,re),_e}return null}function S(Oe,le,re){for(var te=new n(null,null),me=te,Ae=Oe,_e=le;Ae!==null&&_e!==null;)re(Ae.key,_e.key)<0?(me.next=Ae,Ae=Ae.next):(me.next=_e,_e=_e.next),me=me.next;return Ae!==null?me.next=Ae:_e!==null&&(me.next=_e),te.next}function R(Oe,le,re,te,me){if(!(re>=te)){for(var Ae=Oe[re+te>>1],_e=re-1,Ve=te+1;;){do _e++;while(me(Oe[_e],Ae)<0);do Ve--;while(me(Oe[Ve],Ae)>0);if(_e>=Ve)break;var it=Oe[_e];Oe[_e]=Oe[Ve],Oe[Ve]=it,it=le[_e],le[_e]=le[Ve],le[Ve]=it}R(Oe,le,re,Ve,me),R(Oe,le,Ve+1,te,me)}}var O=function(le,re){return le.ll.x<=re.x&&re.x<=le.ur.x&&le.ll.y<=re.y&&re.y<=le.ur.y},N=function(le,re){if(re.ur.x<le.ll.x||le.ur.x<re.ll.x||re.ur.y<le.ll.y||le.ur.y<re.ll.y)return null;var te=le.ll.x<re.ll.x?re.ll.x:le.ll.x,me=le.ur.x<re.ur.x?le.ur.x:re.ur.x,Ae=le.ll.y<re.ll.y?re.ll.y:le.ll.y,_e=le.ur.y<re.ur.y?le.ur.y:re.ur.y;return{ll:{x:te,y:Ae},ur:{x:me,y:_e}}},H=Number.EPSILON;H===void 0&&(H=Math.pow(2,-52));var F=H*H,j=function(le,re){if(-H<le&&le<H&&-H<re&&re<H)return 0;var te=le-re;return te*te<F*le*re?0:le<re?-1:1},L=(function(){function Oe(){r(this,Oe),this.reset()}return t(Oe,[{key:"reset",value:function(){this.xRounder=new B,this.yRounder=new B}}
713,{key:"round",value:function(re,te){return{x:this.xRounder.round(re),y:this.yRounder.round(te)}}}]),Oe})(),B=(function(){function Oe(){r(this,Oe),this.tree=new p,this.round(0)}return t(Oe,[{key:"round",value:function(re){var te=this.tree.add(re),me=this.tree.prev(te);if(me!==null&&j(te.key,me.key)===0)return this.tree.remove(re),me.key;var Ae=this.tree.next(te);return Ae!==null&&j(te.key,Ae.key)===0?(this.tree.remove(re),Ae.key):re}}]),Oe})(),Q=new L,Z=function(le,re){return le.x*re.y-le.y*re.x},ie=function(le,re){return le.x*re.x+le.y*re.y},J=function(le,re,te){var me={x:re.x-le.x,y:re.y-le.y},Ae={x:te.x-le.x,y:te.y-le.y},_e=Z(me,Ae);return j(_e,0)},ne=function(le){return Math.sqrt(ie(le,le))},ue=function(le,re,te){var me={x:re.x-le.x,y:re.y-le.y},Ae={x:te.x-le.x,y:te.y-le.y};return Z(Ae,me)/ne(Ae)/ne(me)},K=function(le,re,te){var me={x:re.x-le.x,y:re.y-le.y},Ae={x:te.x-le.x,y:te.y-le.y};return ie(Ae,me)/ne(Ae)/ne(me)},se=function(le,re,te){return re.y===0?null:{x:le.x+re.x/re.y*(te-le.y),y:te}},be=function(le,re,te){return re.x===0?null:{x:te,y:le.y+re.y/re.x*(te-le.x)}},de=function(le,re,te,me){if(re.x===0)return be(te,me,le.x);if(me.x===0)return be(le,re,te.x);if(re.y===0)return se(te,me,le.y);if(me.y===0)return se(le,re,te.y);var Ae=Z(re,me);if(Ae==0)return null;var _e={x:te.x-le.x,y:te.y-le.y},Ve=Z(_e,re)/Ae,it=Z(_e,me)/Ae,vt=le.x+it*re.x,kt=te.x+Ve*me.x,rt=le.y+it*re.y,bt=te.y+Ve*me.y,Xe=(vt+kt)/2,ct=(rt+bt)/2;return{x:Xe,y:ct}},ge=(function(){t(Oe,null,[{key:"compare",value:function(re,te){var me=Oe.comparePoints(re.point,te.point);return me!==0?me:(re.point!==te.point&&re.link(te),re.isLeft!==te.isLeft?re.isLeft?1:-1:Qe.compare(re.segment,te.segment))}},{key:"comparePoints",value:function(re,te){return re.x<te.x?-1:re.x>te.x?1:re.y<te.y?-1:re.y>te.y?1:0}}]);function Oe(le,re){r(this,Oe),le.events===void 0?le.events=[this]:le.events.push(this),this.point=le,this.isLeft=re}return t(Oe,[{key:"link",value:function(re){if(re.point===this.point)throw new Error("Tried to link already linked events");for(var te=re.point.events,me=0,Ae=te.length;me<Ae;me++){var _e=te[me];this.point.events.push(_e),_e.point=this.point}this.checkForConsuming()}},{key:"checkForConsuming",value:function(){for(var re=this.point.events.length,te=0;te<re;te++){var me=this.point.events[te];if(me.segment.consumedBy===void 0)for(var Ae=te+1;Ae<re;Ae++){var _e=this.point.events[Ae];_e.consumedBy===void 0&&me.otherSE.point.events===_e.otherSE.point.events&&me.segment.consume(_e.segment)}}}},{key:"getAvailableLinkedEvents",value:function(){for(var re=[],te=0,me=this.point.events.length;te<me;te++){var Ae=this.point.events[te];Ae!==this&&!Ae.segment.ringOut&&Ae.segment.isInResult()&&re.push(Ae)}return re}},{key:"getLeftmostComparator",value:function(re){var te=this,me=new Map,Ae=function(Ve){var it=Ve.otherSE;me.set(Ve,{sine:ue(te.point,re.point,it.point),cosine:K(te.point,re.point,it.point)})};return function(_e,Ve){me.has(_e)||Ae(_e),me.has(Ve)||Ae(Ve);var it=me.get(_e),vt=it.sine,kt=it.cosine,rt=me.get(Ve),bt=rt.sine,Xe=rt.cosine;return vt>=0&&bt>=0?kt<Xe?1:kt>Xe?-1:0:vt<0&&bt<0?kt<Xe?-1:kt>Xe?1:0:bt<vt?-1:bt>vt?1:0}}}]),Oe})(),Ue=0,Qe=(function(){t(Oe,null,[{key:"compare",value:function(re,te){var me=re.leftSE.point.x,Ae=te.leftSE.point.x,_e=re.rightSE.point.x,Ve=te.rightSE.point.x;if(Ve<me)return 1;if(_e<Ae)return-1;var it=re.leftSE.point.y,vt=te.leftSE.point.y,kt=re.rightSE.point.y,rt=te.rightSE.point.y;if(me<Ae){if(vt<it&&vt<kt)return 1;if(vt>it&&vt>kt)return-1;var bt=re.comparePoint(te.leftSE.point);if(bt<0)return 1;if(bt>0)return-1;var Xe=te.comparePoint(re.rightSE.point);return Xe!==0?Xe:-1}if(me>Ae){if(it<vt&&it<rt)return-1;if(it>vt&&it>rt)return 1;var ct=te.comparePoint(re.leftSE.point);if(ct!==0)return ct;var Me=re.comparePoint(te.rightSE.point);return Me<0?1:Me>0?-1:1}if(it<vt)return-1;if(it>vt)return 1;if(_e<Ve){var X=te.comparePoint(re.rightSE.point);if(X!==0)return X}if(_e>Ve){var z=re.comparePoint(te.rightSE.point);if(z<0)return 1;if(z>0)return-1}if(_e!==Ve){var W=kt-it,Se=_e-me,Ke=rt-vt,je=Ve-Ae;if(W>Se&&Ke<je)return 1;if(W<Se&&Ke>je)return-1}return _e>Ve?1:_e<Ve||kt<rt?-1:kt>rt?1:re.id<te.id?-1:re.id>te.id?1:0}}]);function Oe(le,re,te,me){r(this,Oe),this.id=++Ue,this.leftSE=le,le.segment=this,le.otherSE=re,this.rightSE=re,re.segment=this,re.otherSE=le,this.rings=te,this.windings=me}return t(Oe,[{key:"replaceRightSE",value:function(re){this.rightSE=re,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}},{key:"bbox",value:function(){var re=this.leftSE.point.y,te=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:re<te?re:te},ur:{x:this.rightSE.point.x,y:re>te?re:te}}}},{key:"vector",value:function(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}},{key:"isAnEndpoint",value:function(re){return re.x===this.leftSE.point.x&&re.y===this.leftSE.point.y||re.x===this.rightSE.point.x&&re.y===this.rightSE.point.y}},{key:"comparePoint",value:function(re){if(this.isAnEndpoint(re))return 0;var te=this.leftSE.point,me=this.rightSE.point,Ae=this.vector();if(te.x===me.x)return re.x===te.x?0:re.x<te.x?1:-1;var _e=(re.y-te.y)/Ae.y,Ve=te.x+_e*Ae.x;if(re.x===Ve)return 0;var it=(re.x-te.x)/Ae.x,vt=te.y+it*Ae.y;return re.y===vt?0:re.y<vt?-1:1}},{key:"getIntersection",value:function(re){var te=this.bbox(),me=re.bbox(),Ae=N(te,me);if(Ae===null)return null;var _e=this.leftSE.point,Ve=this.rightSE.point,it=re.leftSE.point,vt=re.rightSE.point,kt=O(te,it)&&this.comparePoint(it)===0,rt=O(me,_e)&&re.comparePoint(_e)===0,bt=O(te,vt)&&this.comparePoint(vt)===0,Xe=O(me,Ve)&&re.comparePoint(Ve)===0;if(rt&&kt)return Xe&&!bt?Ve:!Xe&&bt?vt:null;if(rt)return bt&&_e.x===vt.x&&_e.y===vt.y?null:_e;if(kt)return Xe&&Ve.x===it.x&&Ve.y===it.y?null:it;if(Xe&&bt)return null;if(Xe)return Ve;if(bt)return vt;var ct=de(_e,this.vector(),it,re.vector());
713return ct===null||!O(Ae,ct)?null:Q.round(ct.x,ct.y)}},{key:"split",value:function(re){var te=[],me=re.events!==void 0,Ae=new ge(re,!0),_e=new ge(re,!1),Ve=this.rightSE;this.replaceRightSE(_e),te.push(_e),te.push(Ae);var it=new Oe(Ae,Ve,this.rings.slice(),this.windings.slice());return ge.comparePoints(it.leftSE.point,it.rightSE.point)>0&&it.swapEvents(),ge.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),me&&(Ae.checkForConsuming(),_e.checkForConsuming()),te}},{key:"swapEvents",value:function(){var re=this.rightSE;this.rightSE=this.leftSE,this.leftSE=re,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(var te=0,me=this.windings.length;te<me;te++)this.windings[te]*=-1}},{key:"consume",value:function(re){for(var te=this,me=re;te.consumedBy;)te=te.consumedBy;for(;me.consumedBy;)me=me.consumedBy;var Ae=Oe.compare(te,me);if(Ae!==0){if(Ae>0){var _e=te;te=me,me=_e}if(te.prev===me){var Ve=te;te=me,me=Ve}for(var it=0,vt=me.rings.length;it<vt;it++){var kt=me.rings[it],rt=me.windings[it],bt=te.rings.indexOf(kt);bt===-1?(te.rings.push(kt),te.windings.push(rt)):te.windings[bt]+=rt}me.rings=null,me.windings=null,me.consumedBy=te,me.leftSE.consumedBy=te.leftSE,me.rightSE.consumedBy=te.rightSE}}},{key:"prevInResult",value:function(){return this._prevInResult!==void 0?this._prevInResult:(this.prev?this.prev.isInResult()?this._prevInResult=this.prev:this._prevInResult=this.prev.prevInResult():this._prevInResult=null,this._prevInResult)}},{key:"beforeState",value:function(){if(this._beforeState!==void 0)return this._beforeState;if(!this.prev)this._beforeState={rings:[],windings:[],multiPolys:[]};else{var re=this.prev.consumedBy||this.prev;this._beforeState=re.afterState()}return this._beforeState}},{key:"afterState",value:function(){if(this._afterState!==void 0)return this._afterState;var re=this.beforeState();this._afterState={rings:re.rings.slice(0),windings:re.windings.slice(0),multiPolys:[]};for(var te=this._afterState.rings,me=this._afterState.windings,Ae=this._afterState.multiPolys,_e=0,Ve=this.rings.length;_e<Ve;_e++){var it=this.rings[_e],vt=this.windings[_e],kt=te.indexOf(it);kt===-1?(te.push(it),me.push(vt)):me[kt]+=vt}for(var rt=[],bt=[],Xe=0,ct=te.length;Xe<ct;Xe++)if(me[Xe]!==0){var Me=te[Xe],X=Me.poly;if(bt.indexOf(X)===-1)if(Me.isExterior)rt.push(X);else{bt.indexOf(X)===-1&&bt.push(X);var z=rt.indexOf(Me.poly);z!==-1&&rt.splice(z,1)}}for(var W=0,Se=rt.length;W<Se;W++){var Ke=rt[W].multiPoly;Ae.indexOf(Ke)===-1&&Ae.push(Ke)}return this._afterState}},{key:"isInResult",value:function(){if(this.consumedBy)return!1;if(this._isInResult!==void 0)return this._isInResult;var re=this.beforeState().multiPolys,te=this.afterState().multiPolys;switch(Et.type){case"union":{var me=re.length===0,Ae=te.length===0;this._isInResult=me!==Ae;break}case"intersection":{var _e,Ve;re.length<te.length?(_e=re.length,Ve=te.length):(_e=te.length,Ve=re.length),this._isInResult=Ve===Et.numMultiPolys&&_e<Ve;break}case"xor":{var it=Math.abs(re.length-te.length);this._isInResult=it%2===1;break}case"difference":{var vt=function(rt){return rt.length===1&&rt[0].isSubject};this._isInResult=vt(re)!==vt(te);break}default:throw new Error("Unrecognized operation type found ".concat(Et.type))}return this._isInResult}}],[{key:"fromRing",value:function(re,te,me){var Ae,_e,Ve,it=ge.comparePoints(re,te);if(it<0)Ae=re,_e=te,Ve=1;else if(it>0)Ae=te,_e=re,Ve=-1;else throw new Error("Tried to create degenerate segment at [".concat(re.x,", ").concat(re.y,"]"));var vt=new ge(Ae,!0),kt=new ge(_e,!1);return new Oe(vt,kt,[me],[Ve])}}]),Oe})(),ve=(function(){function Oe(le,re,te){if(r(this,Oe),!Array.isArray(le)||le.length===0)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=re,this.isExterior=te,this.segments=[],typeof le[0][0]!="number"||typeof le[0][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var me=Q.round(le[0][0],le[0][1]);this.bbox={ll:{x:me.x,y:me.y},ur:{x:me.x,y:me.y}};for(var Ae=me,_e=1,Ve=le.length;_e<Ve;_e++){if(typeof le[_e][0]!="number"||typeof le[_e][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
713var it=Q.round(le[_e][0],le[_e][1]);it.x===Ae.x&&it.y===Ae.y||(this.segments.push(Qe.fromRing(Ae,it,this)),it.x<this.bbox.ll.x&&(this.bbox.ll.x=it.x),it.y<this.bbox.ll.y&&(this.bbox.ll.y=it.y),it.x>this.bbox.ur.x&&(this.bbox.ur.x=it.x),it.y>this.bbox.ur.y&&(this.bbox.ur.y=it.y),Ae=it)}(me.x!==Ae.x||me.y!==Ae.y)&&this.segments.push(Qe.fromRing(Ae,me,this))}return t(Oe,[{key:"getSweepEvents",value:function(){for(var re=[],te=0,me=this.segments.length;te<me;te++){var Ae=this.segments[te];re.push(Ae.leftSE),re.push(Ae.rightSE)}return re}}]),Oe})(),pe=(function(){function Oe(le,re){if(r(this,Oe),!Array.isArray(le))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");this.exteriorRing=new ve(le[0],this,!0),this.bbox={ll:{x:this.exteriorRing.bbox.ll.x,y:this.exteriorRing.bbox.ll.y},ur:{x:this.exteriorRing.bbox.ur.x,y:this.exteriorRing.bbox.ur.y}},this.interiorRings=[];for(var te=1,me=le.length;te<me;te++){var Ae=new ve(le[te],this,!1);Ae.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=Ae.bbox.ll.x),Ae.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=Ae.bbox.ll.y),Ae.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=Ae.bbox.ur.x),Ae.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=Ae.bbox.ur.y),this.interiorRings.push(Ae)}this.multiPoly=re}return t(Oe,[{key:"getSweepEvents",value:function(){for(var re=this.exteriorRing.getSweepEvents(),te=0,me=this.interiorRings.length;te<me;te++)for(var Ae=this.interiorRings[te].getSweepEvents(),_e=0,Ve=Ae.length;_e<Ve;_e++)re.push(Ae[_e]);return re}}]),Oe})(),He=(function(){function Oe(le,re){if(r(this,Oe),!Array.isArray(le))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");try{typeof le[0][0][0]=="number"&&(le=[le])}catch{}this.polys=[],this.bbox={ll:{x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY},ur:{x:Number.NEGATIVE_INFINITY,y:Number.NEGATIVE_INFINITY}};for(var te=0,me=le.length;te<me;te++){var Ae=new pe(le[te],this);Ae.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=Ae.bbox.ll.x),Ae.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=Ae.bbox.ll.y),Ae.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=Ae.bbox.ur.x),Ae.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=Ae.bbox.ur.y),this.polys.push(Ae)}this.isSubject=re}return t(Oe,[{key:"getSweepEvents",value:function(){for(var re=[],te=0,me=this.polys.length;te<me;te++)for(var Ae=this.polys[te].getSweepEvents(),_e=0,Ve=Ae.length;_e<Ve;_e++)re.push(Ae[_e]);return re}}]),Oe})(),Re=(function(){t(Oe,null,[{key:"factory",value:function(re){for(var te=[],me=0,Ae=re.length;me<Ae;me++){var _e=re[me];if(!(!_e.isInResult()||_e.ringOut)){for(var Ve=null,it=_e.leftSE,vt=_e.rightSE,kt=[it],rt=it.point,bt=[];Ve=it,it=vt,kt.push(it),it.point!==rt;)for(;;){var Xe=it.getAvailableLinkedEvents();if(Xe.length===0){var ct=kt[0].point,Me=kt[kt.length-1].point;throw new Error("Unable to complete output ring starting at [".concat(ct.x,",")+" ".concat(ct.y,"]. Last matching segment found ends at")+" [".concat(Me.x,", ").concat(Me.y,"]."))}if(Xe.length===1){vt=Xe[0].otherSE;break}for(var X=null,z=0,W=bt.length;z<W;z++)if(bt[z].point===it.point){X=z;break}if(X!==null){var Se=bt.splice(X)[0],Ke=kt.splice(Se.index);Ke.unshift(Ke[0].otherSE),te.push(new Oe(Ke.reverse()));continue}bt.push({index:kt.length,point:it.point});var je=it.getLeftmostComparator(Ve);vt=Xe.sort(je)[0].otherSE;break}te.push(new Oe(kt))}}return te}}]);function Oe(le){r(this,Oe),this.events=le;for(var re=0,te=le.length;re<te;re++)le[re].segment.ringOut=this;this.poly=null}return t(Oe,[{key:"getGeom",value:function(){for(var re=this.events[0].point,te=[re],me=1,Ae=this.events.length-1;me<Ae;me++){var _e=this.events[me].point,Ve=this.events[me+1].point;J(_e,re,Ve)!==0&&(te.push(_e),re=_e)}if(te.length===1)return null;var it=te[0],vt=te[1];J(it,re,vt)===0&&te.shift(),te.push(te[0]);for(var kt=this.isExteriorRing()?1:-1,rt=this.isExteriorRing()?0:te.length-1,bt=this.isExteriorRing()?te.length:-1,Xe=[],ct=rt;ct!=bt;ct+=kt)Xe.push([te[ct].x,te[ct].y]);return Xe}},{key:"isExteriorRing",value:function(){if(this._isExteriorRing===void 0){var re=this.enclosingRing();this._isExteriorRing=re?!re.isExteriorRing():!0}return this._isExteriorRing}},{key:"enclosingRing",value:function(){return this._enclosingRing===void 0&&(this._enclosingRing=this._calcEnclosingRing()),this._enclosingRing}},{key:"_calcEnclosingRing",value:function(){for(var re=this.events[0],te=1,me=this.events.length;te<me;te++){var Ae=this.events[te];ge.compare(re,Ae)>0&&(re=Ae)}for(var _e=re.segment.prevInResult(),Ve=_e?_e.prevInResult():null;;){if(!_e)return null;if(!Ve)return _e.ringOut;if(Ve.ringOut!==_e.ringOut)return Ve.ringOut.enclosingRing()!==_e.ringOut?_e.ringOut:_e.ringOut.enclosingRing();_e=Ve.prevInResult(),Ve=_e?_e.prevInResult():null}}}]),Oe})(),$e=(function(){function Oe(le){r(this,Oe),this.exteriorRing=le,le.poly=this,this.interiorRings=[]}return t(Oe,[{key:"addInterior",value:function(re){this.interiorRings.push(re),re.poly=this}},{key:"getGeom",value:function(){var re=[this.exteriorRing.getGeom()];if(re[0]===null)return null;for(var te=0,me=this.interiorRings.length;te<me;te++){var Ae=this.interiorRings[te].getGeom();Ae!==null&&re.push(Ae)}return re}}]),Oe})(),tt=(function(){function Oe(le){r(this,Oe),this.rings=le,this.polys=this._composePolys(le)}return t(Oe,[{key:"getGeom",value:function(){for(var re=[],te=0,me=this.polys.length;te<me;te++){var Ae=this.polys[te].getGeom();Ae!==null&&re.push(Ae)}return re}},{key:"_composePolys",value:function(re){for(var te=[],me=0,Ae=re.length;me<Ae;me++){var _e=re[me];if(!_e.poly)if(_e.isExteriorRing())te.push(new $e(_e));else{var Ve=_e.enclosingRing();Ve.poly||te.push(new $e(Ve)),Ve.poly.addInterior(_e)}}return te}}]),Oe})(),ot=(function(){function Oe(le){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qe.compare;r(this,Oe),this.queue=le,this.tree=new p(re),this.segments=[]}return t(Oe,[{key:"process",value:function(re){var te=re.segment,me=[];
713if(re.consumedBy)return re.isLeft?this.queue.remove(re.otherSE):this.tree.remove(te),me;var Ae=re.isLeft?this.tree.insert(te):this.tree.find(te);if(!Ae)throw new Error("Unable to find segment #".concat(te.id," ")+"[".concat(te.leftSE.point.x,", ").concat(te.leftSE.point.y,"] -> ")+"[".concat(te.rightSE.point.x,", ").concat(te.rightSE.point.y,"] ")+"in SweepLine tree. Please submit a bug report.");for(var _e=Ae,Ve=Ae,it=void 0,vt=void 0;it===void 0;)_e=this.tree.prev(_e),_e===null?it=null:_e.key.consumedBy===void 0&&(it=_e.key);for(;vt===void 0;)Ve=this.tree.next(Ve),Ve===null?vt=null:Ve.key.consumedBy===void 0&&(vt=Ve.key);if(re.isLeft){var kt=null;if(it){var rt=it.getIntersection(te);if(rt!==null&&(te.isAnEndpoint(rt)||(kt=rt),!it.isAnEndpoint(rt)))for(var bt=this._splitSafely(it,rt),Xe=0,ct=bt.length;Xe<ct;Xe++)me.push(bt[Xe])}var Me=null;if(vt){var X=vt.getIntersection(te);if(X!==null&&(te.isAnEndpoint(X)||(Me=X),!vt.isAnEndpoint(X)))for(var z=this._splitSafely(vt,X),W=0,Se=z.length;W<Se;W++)me.push(z[W])}if(kt!==null||Me!==null){var Ke=null;if(kt===null)Ke=Me;else if(Me===null)Ke=kt;else{var je=ge.comparePoints(kt,Me);Ke=je<=0?kt:Me}this.queue.remove(te.rightSE),me.push(te.rightSE);for(var We=te.split(Ke),Pt=0,Jt=We.length;Pt<Jt;Pt++)me.push(We[Pt])}me.length>0?(this.tree.remove(te),me.push(re)):(this.segments.push(te),te.prev=it)}else{if(it&&vt){var wr=it.getIntersection(vt);if(wr!==null){if(!it.isAnEndpoint(wr))for(var rr=this._splitSafely(it,wr),Nr=0,mt=rr.length;Nr<mt;Nr++)me.push(rr[Nr]);if(!vt.isAnEndpoint(wr))for(var Mt=this._splitSafely(vt,wr),Te=0,fe=Mt.length;Te<fe;Te++)me.push(Mt[Te])}}this.tree.remove(te)}return me}},{key:"_splitSafely",value:function(re,te){this.tree.remove(re);var me=re.rightSE;this.queue.remove(me);var Ae=re.split(te);return Ae.push(me),re.consumedBy===void 0&&this.tree.insert(re),Ae}}]),Oe})(),qe=typeof process<"u"&&kne.POLYGON_CLIPPING_MAX_QUEUE_SIZE||1e6,lt=typeof process<"u"&&kne.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS||1e6,Et=new((function(){function Oe(){r(this,Oe)}return t(Oe,[{key:"run",value:function(re,te,me){Et.type=re,Q.reset();for(var Ae=[new He(te,!0)],_e=0,Ve=me.length;_e<Ve;_e++)Ae.push(new He(me[_e],!1));if(Et.numMultiPolys=Ae.length,Et.type==="difference")for(var it=Ae[0],vt=1;vt<Ae.length;)N(Ae[vt].bbox,it.bbox)!==null?vt++:Ae.splice(vt,1);if(Et.type==="intersection"){for(var kt=0,rt=Ae.length;kt<rt;kt++)for(var bt=Ae[kt],Xe=kt+1,ct=Ae.length;Xe<ct;Xe++)if(N(bt.bbox,Ae[Xe].bbox)===null)return[]}for(var Me=new p(ge.compare),X=0,z=Ae.length;X<z;X++)for(var W=Ae[X].getSweepEvents(),Se=0,Ke=W.length;Se<Ke;Se++)if(Me.insert(W[Se]),Me.size>qe)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");for(var je=new ot(Me),We=Me.size,Pt=Me.pop();Pt;){var Jt=Pt.key;if(Me.size===We){var wr=Jt.segment;throw new Error("Unable to pop() ".concat(Jt.isLeft?"left":"right"," SweepEvent ")+"[".concat(Jt.point.x,", ").concat(Jt.point.y,"] from segment #").concat(wr.id," ")+"[".concat(wr.leftSE.point.x,", ").concat(wr.leftSE.point.y,"] -> ")+"[".concat(wr.rightSE.point.x,", ").concat(wr.rightSE.point.y,"] from queue. ")+"Please file a bug report.")}if(Me.size>qe)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");if(je.segments.length>lt)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");for(var rr=je.process(Jt),Nr=0,mt=rr.length;Nr<mt;Nr++){var Mt=rr[Nr];Mt.consumedBy===void 0&&Me.insert(Mt)}We=Me.size,Pt=Me.pop()}Q.reset();var Te=Re.factory(je.segments),fe=new tt(Te);return fe.getGeom()}}]),Oe})());return{union:function(le){for(var re=arguments.length,te=new Array(re>1?re-1:0),me=1;me<re;me++)te[me-1]=arguments[me];return Et.run("union",le,te)},intersection:function(le){for(var re=arguments.length,te=new Array(re>1?re-1:0),me=1;me<re;me++)te[me-1]=arguments[me];return Et.run("intersection",le,te)},xor:function(le){for(var re=arguments.length,te=new Array(re>1?re-1:0),me=1;me<re;
713me++)te[me-1]=arguments[me];return Et.run("xor",le,te)},difference:function(le){for(var re=arguments.length,te=new Array(re>1?re-1:0),me=1;me<re;me++)te[me-1]=arguments[me];return Et.run("difference",le,te)}}})(),zae.exports),btt=lC(_tt);function wtt(r,e,t){return t===void 0&&(t={}),r=$ae(r),e=$ae(e),r=btt.intersection(r.coordinates,e.coordinates),r.length===0?null:r.length===1?ytt(r[0],t.properties):vtt(r,t.properties)}var Ett=function(r){return function(e,t,n){var i=n.value,o=new Map;return n.value=function(){var a=this,l=arguments;!o.get(a)&&(i.apply(a,l),o.set(a,!0),setTimeout(function(){return o.delete(a)},r))},n}},Ctt=window&&window.__decorate||function(r,e,t,n){var i,o=arguments.length,a=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,n);else for(var l=r.length-1;0<=l;l--)(i=r[l])&&(a=(o<3?i(a):3<o?i(e,t,a):i(e,t))||a);return 3<o&&a&&Object.defineProperty(e,t,a),a},IY=window&&window.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n,i,o=t.call(r),a=[];try{for(;(e===void 0||0<e--)&&!(n=o.next()).done;)a.push(n.value)}catch(l){i={error:l}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},AY=window&&window.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||((n=n||Array.prototype.slice.call(e,0,i))[i]=e[i]);return r.concat(n||Array.prototype.slice.call(e))},xtt=["DIV","SPAN","A"],RY=["data-azure-maps-attribution-minzoom","data-azure-maps-attribution-maxzoom","data-azure-maps-attribution-geometry","data-azure-maps-attribution-tileset","data-azure-maps-attribution-order","data-azure-maps-attribution-dynamic"],Ttt=AY(["href"],IY(RY),!1),jae=(function(){function r(e,t){var n=this;this.lastFetchState={bounds:null,zoom:null},this.getElement=function(){return n.element},this.element=e,this.attributionChangeCallback=t}return r.prototype.equals=function(e){return this.stringRepresentation===e.stringRepresentation},Object.defineProperty(r.prototype,"stringRepresentation",{get:function(){return[this.minZoom!==void 0?"minzoom=".concat(this.minZoom):"",this.maxZoom!==void 0?"maxzoom=".concat(this.maxZoom):"",this.geometry!==void 0?this.element.attributes.getNamedItem("data-azure-maps-attribution-geometry").value:"",this.tilesetId!==void 0?"tilesetId=".concat(this.tilesetId):"",this.dynamic?"dynamic":""].filter(function(e){return 0<e.length}).join(";")},enumerable:!1,configurable:!0}),r.applicable=function(e){return Array.from(e.attributes).map(function(t){return RY.includes(t.name)}).reduce(function(t,n){return t||n},!1)},Object.defineProperty(r.prototype,"minZoom",{get:function(){var e=this.element.attributes.getNamedItem("data-azure-maps-attribution-minzoom");return e&&!isNaN(e.value)?parseInt(e.value):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"maxZoom",{get:function(){var e=this.element.attributes.getNamedItem("data-azure-maps-attribution-maxzoom");return e&&!isNaN(e.value)?parseInt(e.value):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"geometry",{get:function(){var e=this.element.attributes.getNamedItem("data-azure-maps-attribution-geometry");if(e&&e.value)try{return JSON.parse(e.value)}catch{}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tilesetId",{get:function(){var e=this.element.attributes.getNamedItem("data-azure-maps-attribution-tileset");return e&&e.value?e.value:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"order",{get:function(){var e=this.element.attributes.getNamedItem("data-azure-maps-attribution-order");return e&&!isNaN(e.value)?parseInt(e.value):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"dynamic",{get:function(){return this.element.attributes.getNamedItem("data-azure-maps-attribution-dynamic")!==null},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hidesElement",{get:function(){return this.element.style.display=="none"}
vendor: 1,261 bytes, line 713
713,enumerable:!1,configurable:!0}),r.prototype.forceHide=function(){this.element.style.display="none"},r.prototype.satisfied=function(e){var t=!this.minZoom||!e.zoom||e.zoom>=this.minZoom,n=!this.maxZoom||!e.zoom||e.zoom<=this.maxZoom,i=!0;return this.geometry&&e.bounds&&(i=wtt({type:"Feature",geometry:this.geometry,properties:{}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[qi.getNorthWest(e.bounds),qi.getNorthEast(e.bounds),qi.getSouthEast(e.bounds),qi.getSouthWest(e.bounds),qi.getNorthWest(e.bounds)]]},properties:{}})!==null),t&&n&&i},r.prototype.apply=function(e,l){var n=this,i=(l===void 0&&(l=null),this.satisfied(e.getCamera())),o=this.dynamic&&this.tilesetId,a=this.hidesElement,l=l&&["dragend","zoomend","pitchend"].includes(l.type);return i||a?i&&(a||o)&&(i&&a&&this.element.style.removeProperty("display"),o)&&(l?e.events.addOnce("idle",function(u){return n.fetchAndApplyDynamicAttribution(e)}):this.fetchAndApplyDynamicAttribution(e)):this.element.style.display="none",i===a},r.prototype.fetchAndApplyDynamicAttribution=function(e){var t,n,i,o=this,a=e.getCamera();this.lastFetchState&&qi.containsBoundingBox(this.lastFetchState.bounds,a.bounds)&&Math.floor(this.lastFetchState.zoom)==Math.floor(a.zoom)||(t=uG(a.center,qi.getSouthWest
713(a.bounds),r.viewportBufferExpansionRatio),i=((n=uG(a.center,qi.getNorthEast(a.bounds),r.viewportBufferExpansionRatio))[0]<t[0]?[[t[0],t[1],180,n[1]],[-180,t[1],n[0],n[1]]]:[[t[0],t[1],n[0],n[1]]]).map(function(u){var u=new URLSearchParams({"api-version":"2.1",tilesetId:o.tilesetId,zoom:a.zoom!==void 0?"".concat(Math.floor(a.zoom)):void 0,bounds:u.join(",")}),p="".concat("https://{{azMapsDomain}}","/map/attribution"),h={url:p,headers:{}},p=(e._substituteDomainLanguageViewAndSignInRequest(p,h),"".concat(h.url).concat(h.url.includes("?")?"&":"?").concat(u.toString()));return e._sendRequest(p,"Attribution",h.headers).then(function(m){return m.json()})}),Promise.all(i).then(function(l){o.applyAttributionResponse(l),o.lastFetchState={bounds:new qi([t[0],t[1],n[0],n[1]]),zoom:a.zoom}}).catch(function(l){return console.error(l)}))},r.prototype.applyAttributionResponse=function(a){var t,n,i,o=this,a=a.map(function(l){return l.copyrights||[]}).reduce(function(l,u){return AY(AY([],IY(l),!1),IY(u),!1)},[]);a.length!=0&&((a=$7.parseWithFilter(a.join(""),function(l){return!0},function(l){return l},function(){return o.element.innerHTML="",o.element}))===null?console.warn("Dynamic attribution is empty after filtering"):(t=typeof a=="string"?((t=document.createElement("span")).innerHTML=a,t):a,i=t===this.element?(n=document.createElement("span"),Array.from(this.element.childNodes).forEach(function(l){return n.appendChild(l)}),n):t,Array.from(this.element.attributes).filter(function(l){return RY.includes(l.name)}).forEach(function(l){return i.attributes.setNamedItem(l.cloneNode())}),i.style.display=this.element.style.display,a=this.element.parentElement,this.element.remove(),a.append(i),this.element=i,this.attributionChangeCallback(this)))},r.viewportBufferExpansionRatio=2,Ctt([Ett(1e3)],r.prototype,"fetchAndApplyDynamicAttribution",null),r})(),Tw=window&&window.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n,i,o=t.call(r),a=[];try{for(;(e===void 0||0<e--)&&!(n=o.next()).done;)a.push(n.value)}catch(l){i={error:l}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},YI=window&&window.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||((n=n||Array.prototype.slice.call(e,0,i))[i]=e[i]);return r.concat(n||Array.prototype.slice.call(e))},Stt=[/all rights reserved/gi],Itt=(function(){function r(e,t,n){var i,o=this;this.rules=[],this.virtualContext=((i=document.createElement("span")).className="azure-map-copyright-context",i),this.renderContext=this.virtualContext.cloneNode(!1),this.addAttributionFromSource=function(a){},this.removeAttributionFromSource=function(a){},this.getMapStyleVisibleSources=function(){var a=o.map._getMap(),l=a.getStyle();return Object.entries(l.sources).filter(function(u){var h=Tw(u,1)[0];return l.layers.filter(function(p){return p&&p.source==h}).reduce(function(p,m){return!(m.layout&&m.layout.visibility==="none"||m.paint&&m.paint["icon-opacity"]===0&&m.paint["text-opacity"]===0)||p},!1)}).map(function(u){return u=Tw(u,1)[0],a.getSource(u)})},this.loadAttributionOnceSourcesLoaded=function(){var a=o.getMapStyleVisibleSources();Promise.all(a.map(function(l){return new Promise(function(u,h){var p;"tiles"in l||(l==null?void 0:l.type)==="geojson"?u(l):((p=l).on("data",function m(_){_.sourceDataType=="metadata"&&(p.off("data",m),u(l))}),p.on("error",function m(_){p.off("error",m),h(_)}))}).then(function(u){return{status:"fulfilled",value:u}}).catch(function(u){return{status:"rejected",reason:u}})})).then(function(l){o.reloadAttribution()})},this.reloadAttribution=function(){var u=o.getMapStyleVisibleSources(),a=new Set,l={},u=u.filter(function(C){return"attribution"in C&&C.attribution&&"tiles"in C&&C.tiles instanceof Array&&0<C.tiles.length}).map(function(C){return $7.parseWithFilter((C=C.attribution)!=null?C:"",function(T){return xtt.includes(T.tagName)&&Array.from(T.attributes).map(function(S){return Ttt.includes(S.name)}).reduce(function(S,R){return S&&R},!0)},function(T){var S,R=null;return T instanceof HTMLElement&&jae.applicable(T)&&(R=new jae(T,function(){return o.renderAttribution()}),a.add(R),R.order!==void 0)&&(T.style.order="".concat(R.order)),R&&T instanceof HTMLElement&&(!((S=R.stringRepresentation)in l)||R.order!==void 0&&l[S].order!==void 0&&R.order<l[S].order||R.order!==void 0&&l[S].order===void 0)&&(l[S]=R),T},function(){return document.createElement("span")})}),h=new Set(Object.values(l)),m=new Set(YI([],Tw(a),!1).filter(function(C){return!h.has(C)})),p=new Set(YI([],Tw(m),!1).map(function(C){return C.getElement()})),m=(YI([],Tw(p),!1).filter(function(C){return C.parentElement!==null}
713).forEach(function(C){return C.parentElement.removeChild(C)}),o.rules=Object.values(l),u.filter(function(C){return typeof C=="string"||!p.has(C)}).map(function(C){return typeof C=="string"?new Text(C):C})),_=document.createElement("span");0<m.length?m.forEach(function(C){return _.appendChild(C)}):o.getDefaultAttribution().forEach(function(C){return _.appendChild(C)}),o.virtualContext=_,o.copyrightControl.setOptions({copyrightContent:o.renderContext}),o.applyRules(),o.renderAttribution()},this.applyRules=function(a){a===void 0&&(a=null),o.rules.reduce(function(l,u){return u=u.apply(o.map,a),l||u},!1)&&o.renderAttribution()},this.renderAttribution=function(){var a=function(h){return Array.from(h.style.display!="none"?h.children:[]).map(function(p){return a(p)}).reduce(function(p,m){return YI(YI([],Tw(p),!1),Tw(m),!1)},Array.from(h.style.display!="none"?h.childNodes:[]).filter(function(p){return p.nodeType==p.TEXT_NODE}))},l=o.virtualContext.cloneNode(!0),u=a(l);u.forEach(function(h){return h.textContent=YI([],Tw(Stt),!1).reduce(function(p,m){return p.replace(m,"").trim()},h.textContent)}),u.reduce(function(h,p){return h.has(p.textContent)?(p.textContent="",p.parentElement&&p.parentElement.removeChild(p)):h.add(p.textContent),h},new Set),o.renderContext.innerHTML="",Array.from(l.childNodes).forEach(function(h){return o.renderContext.appendChild(h)})},this.map=e,this.copyrightControl=t,this.options=n}return r.prototype.addToMap=function(){this.map.events.add("stylechanged",this.loadAttributionOnceSourcesLoaded),this.map.events.add("dragend",this.applyRules),this.map.events.add("zoomend",this.applyRules),this.map.events.add("pitchend",this.applyRules)},r.prototype.removeFromMap=function(){this.map.events.remove("stylechanged",this.loadAttributionOnceSourcesLoaded),this.map.events.remove("dragend",this.applyRules),this.map.events.remove("zoomend",this.applyRules),this.map.events.remove("pitchend",this.applyRules)},r.prototype.getDefaultAttribution=function(){return this.copyrightControl.getDefaultAttributions().map(function(e){return e=e,(t=document.createElement("a")).textContent=e,t;var t})},r})(),uwe=function(r,e){return(uwe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}))(r,e)};function hd(r,e){function t(){this.constructor=r}
vendor: 8,080 bytes, line 713
713uwe(r,e),r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var bn=function(){return(bn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}).apply(this,arguments)};function Vae(r,e){var t={};for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(r);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(r,i[n])&&(t[i[n]]=r[i[n]]);return t}function pr(r,e,t,n){return new(t=t||Promise)(function(i,o){function a(h){try{u(n.next(h))}catch(p){o(p)}}function l(h){try{u(n.throw(h))}catch(p){o(p)}}function u(h){var p;h.done?i(h.value):((p=h.value)instanceof t?p:new t(function(m){m(p)})).then(a,l)}u((n=n.apply(r,[])).next())})}function gr(r,e){var t,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:l(0),throw:l(1),return:l(2)};return typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(u){return function(h){var p=[u,h];if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,n&&(i=2&p[0]?n.return:p[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,p[1])).done)return i;switch(n=0,(p=i?[2&p[0],i.value]:p)[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,n=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3]))o.label=p[1];else if(p[0]===6&&o.label<i[1])o.label=i[1],i=p;else{if(!(i&&o.label<i[2])){i[2]&&o.ops.pop(),o.trys.pop();continue}o.label=i[2],o.ops.push(p)}}p=e.call(r,o)}catch(m){p=[6,m],n=0}finally{t=i=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}}function Att(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n,i,o=t.call(r),a=[];try{for(;(e===void 0||0<e--)&&!(n=o.next()).done;)a.push(n.value)}catch(l){i={error:l}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a}function vQ(){for(var r=[],e=0;e<arguments.length;e++)r=r.concat(Att(arguments[e]));return r}var dwe=function(r,e){return(dwe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){t.__proto__=n}:function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}))(r,e)};function lp(r,e){function t(){this.constructor=r}dwe(r,e),r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var ha=function(){return(ha=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}).apply(this,arguments)};function yi(r,e,t,n){return new(t=t||Promise)(function(i,o){function a(h){try{u(n.next(h))}catch(p){o(p)}}function l(h){try{u(n.throw(h))}catch(p){o(p)}}function u(h){var p;h.done?i(h.value):((p=h.value)instanceof t?p:new t(function(m){m(p)})).then(a,l)}u((n=n.apply(r,[])).next())})}function vi(r,e){var t,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:l(0),throw:l(1),return:l(2)};return typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(u){return function(h){var p=[u,h];if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,n&&(i=2&p[0]?n.return:p[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,p[1])).done)return i;switch(n=0,(p=i?[2&p[0],i.value]:p)[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,n=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3]))o.label=p[1];else if(p[0]===6&&o.label<i[1])o.label=i[1],i=p;else{if(!(i&&o.label<i[2])){i[2]&&o.ops.pop(),o.trys.pop();continue}o.label=i[2],o.ops.push(p)}}p=e.call(r,o)}catch(m){p=[6,m],n=0}finally{t=i=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}}function i9(){for(var r=0,e=0,t=arguments.length;e<t;e++)r+=arguments[e].length;for(var n=Array(r),i=0,e=0;e<t;e++)for(var o=arguments[e],a=0,l=o.length;a<l;a++,i++)n[i]=o[a];return n}var sg,qc,jT,xi,sR,aN,YU,WU,T1,Kc,Yn,$1,hm,fa,KU,lR,jw,sN,tE,PY,gu,wD,kh,It={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",REGIONAL_AUTH_NON_MSI_QUERY_STRING:"allowestsrnonmsi=true",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},RL=[It.OPENID_SCOPE,It.PROFILE_SCOPE,It.OFFLINE_ACCESS_SCOPE],qae=i9(RL,[It.EMAIL_SCOPE]),jd=((function(r){r.CONTENT_TYPE="Content-Type",r.RETRY_AFTER="Retry-After",r.CCS_HEADER="X-AnchorMailbox",r.WWWAuthenticate="WWW-Authenticate",r.AuthenticationInfo="Authentication-Info",r.X_MS_REQUEST_ID="x-ms-request-id",r.X_MS_HTTP_VERSION="x-ms-httpver"})(sg=sg||{}),(function(r){r.ID_TOKEN="idtoken",r.CLIENT_INFO="client.info",r.ADAL_ID_TOKEN="adal.idtoken",r.ERROR="error",r.ERROR_DESC="error.description",r.ACTIVE_ACCOUNT="active-account",r.ACTIVE_ACCOUNT_FILTERS="active-account-filters"})(qc=qc||{}),(function(r){r.COMMON="common",r.ORGANIZATIONS="organizations",r.CONSUMERS="consumers"})(jT=jT||{}),(function(r){r.CLIENT_ID="client_id",r.REDIRECT_URI="redirect_uri",r.RESPONSE_TYPE="response_type",r.RESPONSE_MODE="response_mode",r.GRANT_TYPE="grant_type",r.CLAIMS="claims",r.SCOPE="scope",r.ERROR="error",r.ERROR_DESCRIPTION="error_description",r.ACCESS_TOKEN="access_token",r.ID_TOKEN="id_token",r.REFRESH_TOKEN="refresh_token",r.EXPIRES_IN="expires_in",r.STATE="state",r.NONCE="nonce",r.PROMPT="prompt",r.SESSION_STATE="session_state",r.CLIENT_INFO="client_info",r.CODE="code",r.CODE_CHALLENGE="code_challenge",r.CODE_CHALLENGE_METHOD="code_challenge_method",r.CODE_VERIFIER="code_verifier",r.CLIENT_REQUEST_ID="client-request-id",r.X_CLIENT_SKU="x-client-SKU",r.X_CLIENT_VER="x-client-VER",r.X_CLIENT_OS="x-client-OS",r.X_CLIENT_CPU="x-client-CPU",r.X_CLIENT_CURR_TELEM="x-client-current-telemetry",r.X_CLIENT_LAST_TELEM="x-client-last-telemetry",r.X_MS_LIB_CAPABILITY="x-ms-lib-capability",r.X_APP_NAME="x-app-name",r.X_APP_VER="x-app-ver",r.POST_LOGOUT_URI="post_logout_redirect_uri",r.ID_TOKEN_HINT="id_token_hint",r.DEVICE_CODE="device_code",r.CLIENT_SECRET="client_secret",r.CLIENT_ASSERTION="client_assertion",r.CLIENT_ASSERTION_TYPE="client_assertion_type",r.TOKEN_TYPE="token_type",r.REQ_CNF="req_cnf",r.OBO_ASSERTION="assertion",r.REQUESTED_TOKEN_USE="requested_token_use",r.ON_BEHALF_OF="on_behalf_of",r.FOCI="foci",r.CCS_HEADER="X-AnchorMailbox",r.RETURN_SPA_CODE="return_spa_code",r.
713NATIVE_BROKER="nativebroker",r.LOGOUT_HINT="logout_hint"})(xi=xi||{}),(function(r){r.ACCESS_TOKEN="access_token",r.XMS_CC="xms_cc"})(sR=sR||{}),{LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"}),Gae=((function(r){r.ACCOUNT="account",r.SID="sid",r.LOGIN_HINT="login_hint",r.ID_TOKEN="id_token",r.DOMAIN_HINT="domain_hint",r.ORGANIZATIONS="organizations",r.CONSUMERS="consumers",r.ACCOUNT_ID="accountIdentifier",r.HOMEACCOUNT_ID="homeAccountIdentifier"})(aN=aN||{}),{PLAIN:"plain",S256:"S256"}),kY=((function(r){r.QUERY="query",r.FRAGMENT="fragment",r.FORM_POST="form_post"})(YU=YU||{}),(function(r){r.IMPLICIT_GRANT="implicit",r.AUTHORIZATION_CODE_GRANT="authorization_code",r.CLIENT_CREDENTIALS_GRANT="client_credentials",r.RESOURCE_OWNER_PASSWORD_GRANT="password",r.REFRESH_TOKEN_GRANT="refresh_token",r.DEVICE_CODE_GRANT="device_code",r.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"})(WU=WU||{}),(function(r){r.MSSTS_ACCOUNT_TYPE="MSSTS",r.ADFS_ACCOUNT_TYPE="ADFS",r.MSAV1_ACCOUNT_TYPE="MSA",r.GENERIC_ACCOUNT_TYPE="Generic"})(T1=T1||{}),(function(r){r.CACHE_KEY_SEPARATOR="-",r.CLIENT_INFO_SEPARATOR="."})(Kc=Kc||{}),(function(r){r.ID_TOKEN="IdToken",r.ACCESS_TOKEN="AccessToken",r.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",r.REFRESH_TOKEN="RefreshToken"})(Yn=Yn||{}),(function(r){r[r.ADFS=1001]="ADFS",r[r.MSA=1002]="MSA",r[r.MSSTS=1003]="MSSTS",r[r.GENERIC=1004]="GENERIC",r[r.ACCESS_TOKEN=2001]="ACCESS_TOKEN",r[r.REFRESH_TOKEN=2002]="REFRESH_TOKEN",r[r.ID_TOKEN=2003]="ID_TOKEN",r[r.APP_METADATA=3001]="APP_METADATA",r[r.UNDEFINED=9999]="UNDEFINED"})($1=$1||{}),"appmetadata"),Rtt="client_info",lN="1",cN={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:86400},Xu=((function(r){r.CONFIG="config",r.CACHE="cache",r.NETWORK="network",r.HARDCODED_VALUES="hardcoded_values"})(hm=hm||{}),{SCHEMA_VERSION:5,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"}),uN=((function(r){r.BEARER="Bearer",r.POP="pop",r.SSH="ssh-cert"})(fa=fa||{}),{DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"}),Yae={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},A6=((function(r){r.username="username",r.password="password"})(KU=KU||{}),(function(r){r[r.httpSuccess=200]="httpSuccess",r[r.httpBadRequest=400]="httpBadRequest"})(lR=lR||{}),(function(r){r.FAILED_AUTO_DETECTION="1",r.INTERNAL_CACHE="2",r.ENVIRONMENT_VARIABLE="3",r.IMDS="4"})(jw=jw||{}),(function(r){r.CONFIGURED_MATCHES_DETECTED="1",r.CONFIGURED_NO_AUTO_DETECTION="2",r.CONFIGURED_NOT_DETECTED="3",r.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",r.AUTO_DETECTION_REQUESTED_FAILED="5"})(sN=sN||{}),(function(r){r.NO_CACHE_HIT="0",r.FORCE_REFRESH="1",r.NO_CACHED_ACCESS_TOKEN="2",r.CACHED_ACCESS_TOKEN_EXPIRED="3",r.REFRESH_CACHED_ACCESS_TOKEN="4",r.CLAIMS_REQUESTED_CACHE_SKIPPED="5"})(tE=tE||{}),(function(r){r.Jwt="JWT",r.Jwk="JWK",r.Pop="pop"})(PY=PY||{}),{unexpectedError:{code:"unexpected_error",desc:"Unexpected error in authentication."},postRequestFailed:{code:"post_request_failed",desc:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."}}),xn=(function(r){function e(t,n,i){var o=this,o=r.call(this,n?t+": "+n:t)||this;return Object.setPrototypeOf(o,e.prototype),o.errorCode=t||It.EMPTY_STRING,o.errorMessage=n||It.EMPTY_STRING,o.subError=i||It.EMPTY_STRING,o.name="AuthError",o}return lp(e,r),e.prototype.setCorrelationId=function(t){this.correlationId=t},e.createUnexpectedError=function(t){return new e(A6.unexpectedError.code,A6.unexpectedError.desc+": "+t)},e.createPostRequestFailed=function(t){return new e(A6.postRequestFailed.code,A6.postRequestFailed.desc+": "+t)},e})(Error),ZU={createNewGuid:function(){throw xn.createUnexpectedError("Crypto interface - createNewGuid() has not been implemented")},base64Decode:function(){throw xn.createUnexpectedError("Crypto interface - base64Decode() has not been implemented")},base64Encode:function(){throw xn.createUnexpectedError("Crypto interface - base64Encode() has not been implemented")},generatePkceCodes:function(){return yi(this,void 0,void 0,function(){return vi(this,function(r){throw xn.createUnexpectedError("Crypto interface - generatePkceCodes() has not been implemented")})})},getPublicKeyThumbprint:function(){return yi(this,void 0,void 0,function(){return vi(this,function(r){throw xn.createUnexpectedError("Crypto interface - getPublicKeyThumbprint() has not been implemented")})})},removeTokenBindingKey:function(){return yi(this,void 0,void 0,function(){return vi(this,function(r){throw xn.createUnexpectedError("Crypto interface - removeTokenBindingKey() has not been implemented")})})},clearKeystore:function(){return yi(this,void 0,void 0,function(){return vi(this,function(r){throw xn.createUnexpectedError("Crypto interface - clearKeystore() has not been implemented")})})},signJwt:function(){return yi(this,void 0,void 0,function(){return vi(this,function(r){throw xn.createUnexpectedError("Crypto interface - signJwt() has not been implemented")})})},hashString:function(){return yi(this,void 0,void 0,function(){return vi(this,function(r){throw xn.createUnexpectedError("Crypto interface - hashString() has not been implemented")})})}},Rr={clientInfoDecodingError:{code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},clientInfoEmptyError:{code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},tokenParsingError:{code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},nullOrEmptyToken:{code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},endpointResolutionError:{code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},networkError:{code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},unableToGetOpenidConfigError:{code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},hashNotDeserialized:{code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},invalidStateError:{code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},stateMismatchError:{code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},stateNotFoundError:{code:"state_not_found",desc:"State not found"},nonceMismatchError:{code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},nonceNotFoundError:{code:"nonce_not_found",desc:"nonce not found"},authTimeNotFoundError:{code:"auth_time_not_found",desc:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information."},maxAgeTranspiredError:{code:"max_age_transpired",desc:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication."},multipleMatchingTokens:{code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},multipleMatchingAccounts:{code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},multipleMatchingAppMetadata:{code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"}
713,tokenRequestCannotBeMade:{code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},appendEmptyScopeError:{code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},removeEmptyScopeError:{code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},appendScopeSetError:{code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},emptyInputScopeSetError:{code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},DeviceCodePollingCancelled:{code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},DeviceCodeExpired:{code:"device_code_expired",desc:"Device code is expired."},DeviceCodeUnknownError:{code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},NoAccountInSilentRequest:{code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},invalidCacheRecord:{code:"invalid_cache_record",desc:"Cache record object was null or undefined."},invalidCacheEnvironment:{code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},noAccountFound:{code:"no_account_found",desc:"No account found in cache for given key."},CachePluginError:{code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},noCryptoObj:{code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},unexpectedAccountType:{code:"unexpected_account_type",desc:"Unexpected account type."},unexpectedCredentialType:{code:"unexpected_credential_type",desc:"Unexpected credential type."},invalidAssertion:{code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},invalidClientCredential:{code:"invalid_client_credential",desc:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential"},tokenRefreshRequired:{code:"token_refresh_required",desc:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired."},userTimeoutReached:{code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},tokenClaimsRequired:{code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},noAuthorizationCodeFromServer:{code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},bindingKeyNotRemovedError:{code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},logoutNotSupported:{code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."},keyIdMissing:{code:"key_id_missing",desc:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key."},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},userCanceledError:{code:"user_canceled",desc:"User canceled the flow."}},ln=(function(r){function e(t,n){return t=r.call(this,t,n)||this,t.name="ClientAuthError",Object.setPrototypeOf(t,e.prototype),t}return lp(e,r),e.createClientInfoDecodingError=function(t){return new e(Rr.clientInfoDecodingError.code,Rr.clientInfoDecodingError.desc+" Failed with error: "+t)},e.createClientInfoEmptyError=function(){return new e(Rr.clientInfoEmptyError.code,""+Rr.clientInfoEmptyError.desc)},e.createTokenParsingError=function(t){return new e(Rr.tokenParsingError.code,Rr.tokenParsingError.desc+" Failed with error: "+t)},e.createTokenNullOrEmptyError=function(t){return new e(Rr.nullOrEmptyToken.code,Rr.nullOrEmptyToken.desc+" Raw Token Value: "+t)},e.createEndpointDiscoveryIncompleteError=function(t){return new e(Rr.endpointResolutionError.code,Rr.endpointResolutionError.desc+" Detail: "+t)},e.createNetworkError=function(t,n){return new e(Rr.networkError.code,Rr.networkError.desc+" | Fetch client threw: "+n+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToGetOpenidConfigError=function(t){return new e(Rr.unableToGetOpenidConfigError.code,Rr.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+t)},e.createHashNotDeserializedError=function(t){return new e(Rr.hashNotDeserialized.code,Rr.hashNotDeserialized.desc+" Given Object: "+t)}
713,e.createInvalidStateError=function(t,n){return new e(Rr.invalidStateError.code,Rr.invalidStateError.desc+" Invalid State: "+t+", Root Err: "+n)},e.createStateMismatchError=function(){return new e(Rr.stateMismatchError.code,Rr.stateMismatchError.desc)},e.createStateNotFoundError=function(t){return new e(Rr.stateNotFoundError.code,Rr.stateNotFoundError.desc+":  "+t)},e.createNonceMismatchError=function(){return new e(Rr.nonceMismatchError.code,Rr.nonceMismatchError.desc)},e.createAuthTimeNotFoundError=function(){return new e(Rr.authTimeNotFoundError.code,Rr.authTimeNotFoundError.desc)},e.createMaxAgeTranspiredError=function(){return new e(Rr.maxAgeTranspiredError.code,Rr.maxAgeTranspiredError.desc)},e.createNonceNotFoundError=function(t){return new e(Rr.nonceNotFoundError.code,Rr.nonceNotFoundError.desc+":  "+t)},e.createMultipleMatchingTokensInCacheError=function(){return new e(Rr.multipleMatchingTokens.code,Rr.multipleMatchingTokens.desc+".")},e.createMultipleMatchingAccountsInCacheError=function(){return new e(Rr.multipleMatchingAccounts.code,Rr.multipleMatchingAccounts.desc)},e.createMultipleMatchingAppMetadataInCacheError=function(){return new e(Rr.multipleMatchingAppMetadata.code,Rr.multipleMatchingAppMetadata.desc)},e.createTokenRequestCannotBeMadeError=function(){return new e(Rr.tokenRequestCannotBeMade.code,Rr.tokenRequestCannotBeMade.desc)},e.createAppendEmptyScopeToSetError=function(t){return new e(Rr.appendEmptyScopeError.code,Rr.appendEmptyScopeError.desc+" Given Scope: "+t)},e.createRemoveEmptyScopeFromSetError=function(t){return new e(Rr.removeEmptyScopeError.code,Rr.removeEmptyScopeError.desc+" Given Scope: "+t)},e.createAppendScopeSetError=function(t){return new e(Rr.appendScopeSetError.code,Rr.appendScopeSetError.desc+" Detail Error: "+t)},e.createEmptyInputScopeSetError=function(){return new e(Rr.emptyInputScopeSetError.code,""+Rr.emptyInputScopeSetError.desc)},e.createDeviceCodeCancelledError=function(){return new e(Rr.DeviceCodePollingCancelled.code,""+Rr.DeviceCodePollingCancelled.desc)},e.createDeviceCodeExpiredError=function(){return new e(Rr.DeviceCodeExpired.code,""+Rr.DeviceCodeExpired.desc)},e.createDeviceCodeUnknownError=function(){return new e(Rr.DeviceCodeUnknownError.code,""+Rr.DeviceCodeUnknownError.desc)},e.createNoAccountInSilentRequestError=function(){return new e(Rr.NoAccountInSilentRequest.code,""+Rr.NoAccountInSilentRequest.desc)},e.createNullOrUndefinedCacheRecord=function(){return new e(Rr.invalidCacheRecord.code,Rr.invalidCacheRecord.desc)},e.createInvalidCacheEnvironmentError=function(){return new e(Rr.invalidCacheEnvironment.code,Rr.invalidCacheEnvironment.desc)},e.createNoAccountFoundError=function(){return new e(Rr.noAccountFound.code,Rr.noAccountFound.desc)},e.createCachePluginError=function(){return new e(Rr.CachePluginError.code,""+Rr.CachePluginError.desc)},e.createNoCryptoObjectError=function(t){return new e(Rr.noCryptoObj.code,""+Rr.noCryptoObj.desc+t)},e.createInvalidCacheTypeError=function(){return new e(Rr.invalidCacheType.code,""+Rr.invalidCacheType.desc)},e.createUnexpectedAccountTypeError=function(){return new e(Rr.unexpectedAccountType.code,""+Rr.unexpectedAccountType.desc)},e.createUnexpectedCredentialTypeError=function(){return new e(Rr.unexpectedCredentialType.code,""+Rr.unexpectedCredentialType.desc)},e.createInvalidAssertionError=function(){return new e(Rr.invalidAssertion.code,""+Rr.invalidAssertion.desc)},e.createInvalidCredentialError=function(){return new e(Rr.invalidClientCredential.code,""+Rr.invalidClientCredential.desc)},e.createRefreshRequiredError=function(){return new e(Rr.tokenRefreshRequired.code,Rr.tokenRefreshRequired.desc)},e.createUserTimeoutReachedError=function(){return new e(Rr.userTimeoutReached.code,Rr.userTimeoutReached.desc)},e.createTokenClaimsRequiredError=function(){return new e(Rr.tokenClaimsRequired.code,Rr.tokenClaimsRequired.desc)},e.createNoAuthCodeInServerResponseError=function(){return new e(Rr.noAuthorizationCodeFromServer.code,Rr.noAuthorizationCodeFromServer.desc)},e.createBindingKeyNotRemovedError=function(){return new e(Rr.bindingKeyNotRemovedError.code,Rr.bindingKeyNotRemovedError.desc)},e.createLogoutNotSupportedError=function(){return new e(Rr.logoutNotSupported.code,Rr.logoutNotSupported.desc)},e.createKeyIdMissingError=function(){return new e(Rr.keyIdMissing.code,Rr.keyIdMissing.desc)},e.createNoNetworkConnectivityError=function(){return new e(Rr.noNetworkConnectivity.code,Rr.noNetworkConnectivity.desc)},e.createUserCanceledError=function(){return new e(Rr.userCanceledError.code,Rr.userCanceledError.desc)},e})(xn),nn=(function(){function r(){}return r.decodeAuthToken=function(e){if(r.isEmpty(e))throw ln.createTokenNullOrEmptyError(e);var t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(e);if(!t||t.length<4)throw ln.createTokenParsingError("Given token is malformed: "+JSON.stringify(e));return{header:t[1],JWSPayload:t[2],JWSSig:t[3]}},r.isEmpty=function(e){return e===void 0||!e||e.length===0},r.isEmptyObj=function(e){if(e&&!r.isEmpty(e))try{var t=JSON.parse(e);return Object.keys(t).length===0}catch{}return!0},r.startsWith=function(e,t){return e.indexOf(t)===0},r.endsWith=function(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length},r.queryStringToObject=function(i){function t(o){return decodeURIComponent(o.replace(/\+/g," "))}var n={},i=i.split("&");
713return i.forEach(function(o){var a;o.trim()&&(a=(o=o.split(/=(.+)/g,2))[0],o=o[1],a)&&o&&(n[t(a)]=t(o))}),n},r.trimArrayEntries=function(e){return e.map(function(t){return t.trim()})},r.removeEmptyStringsFromArray=function(e){return e.filter(function(t){return!r.isEmpty(t)})},r.jsonParseHelper=function(e){try{return JSON.parse(e)}catch{return null}},r.matchPattern=function(e,t){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(t)},r})(),_Q=((function(r){r[r.Error=0]="Error",r[r.Warning=1]="Warning",r[r.Info=2]="Info",r[r.Verbose=3]="Verbose",r[r.Trace=4]="Trace"})(gu=gu||{}),(function(){function r(e,t,n){this.level=gu.Info,e=e||r.createDefaultLoggerOptions(),this.localCallback=e.loggerCallback||function(){},this.piiLoggingEnabled=e.piiLoggingEnabled||!1,this.level=typeof e.logLevel=="number"?e.logLevel:gu.Info,this.correlationId=e.correlationId||It.EMPTY_STRING,this.packageName=t||It.EMPTY_STRING,this.packageVersion=n||It.EMPTY_STRING}return r.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:gu.Info}},r.prototype.clone=function(e,t,n){return new r({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:n||this.correlationId},e,t)},r.prototype.logMessage=function(e,t){var n;t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii||(n=new Date().toUTCString(),n=(nn.isEmpty(t.correlationId)?nn.isEmpty(this.correlationId)?"["+n+"]":"["+n+"] : ["+this.correlationId+"]":"["+n+"] : ["+t.correlationId+"]")+" : "+this.packageName+"@"+this.packageVersion+" : "+gu[t.logLevel]+" - "+e,this.executeCallback(t.logLevel,n,t.containsPii||!1))},r.prototype.executeCallback=function(e,t,n){this.localCallback&&this.localCallback(e,t,n)},r.prototype.error=function(e,t){this.logMessage(e,{logLevel:gu.Error,containsPii:!1,correlationId:t||It.EMPTY_STRING})},r.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:gu.Error,containsPii:!0,correlationId:t||It.EMPTY_STRING})},r.prototype.warning=function(e,t){this.logMessage(e,{logLevel:gu.Warning,containsPii:!1,correlationId:t||It.EMPTY_STRING})},r.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:gu.Warning,containsPii:!0,correlationId:t||It.EMPTY_STRING})},r.prototype.info=function(e,t){this.logMessage(e,{logLevel:gu.Info,containsPii:!1,correlationId:t||It.EMPTY_STRING})},r.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:gu.Info,containsPii:!0,correlationId:t||It.EMPTY_STRING})},r.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:gu.Verbose,containsPii:!1,correlationId:t||It.EMPTY_STRING})},r.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:gu.Verbose,containsPii:!0,correlationId:t||It.EMPTY_STRING})},r.prototype.trace=function(e,t){this.logMessage(e,{logLevel:gu.Trace,containsPii:!1,correlationId:t||It.EMPTY_STRING})},r.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:gu.Trace,containsPii:!0,correlationId:t||It.EMPTY_STRING})},r.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},r})()),hwe="@azure/msal-common",bQ="13.3.1",gi=((function(r){r[r.None=0]="None",r.AzurePublic="https://login.microsoftonline.com",r.AzurePpe="https://login.windows-ppe.net",r.AzureChina="https://login.chinacloudapi.cn",r.AzureGermany="https://login.microsoftonline.de",r.AzureUsGovernment="https://login.microsoftonline.us"})(wD=wD||{}),{redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},claimsRequestParsingError:{code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},authorityUriInsecure:{code:"authority_uri_insecure",desc:"Authority URIs must use https.  Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options"},urlParseError:{code:"url_parse_error",desc:"URL could not be parsed into appropriate segments."},urlEmptyError:{code:"empty_url_error",desc:"URL was empty or null."},emptyScopesError:{code:"empty_input_scopes_error",desc:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token."},clientIdSingleScopeError:{code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},invalidPrompt:{code:"invalid_prompt_value",desc:"Supported prompt values are 'login', 'select_account', 'consent', 'create', 'none' and 'no_session'.  Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest"},invalidClaimsRequest:{code:"invalid_claims",desc:"Given claims parameter must be a stringified JSON object."},tokenRequestEmptyError:{code:"token_request_empty",desc:"Token request was empty and not found in cache."},logoutRequestEmptyError:{code:"logout_request_empty",desc:"The logout request was null or undefined."},invalidCodeChallengeMethod:{code:"invalid_code_challenge_method",desc:'code_challenge_method passed is invali
713d. Valid values are "plain" and "S256".'},invalidCodeChallengeParams:{code:"pkce_params_missing",desc:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"},invalidCloudDiscoveryMetadata:{code:"invalid_cloud_discovery_metadata",desc:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields"},invalidAuthorityMetadata:{code:"invalid_authority_metadata",desc:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields."},untrustedAuthority:{code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."},invalidAzureCloudInstance:{code:"invalid_azure_cloud_instance",desc:"Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values"},missingSshJwk:{code:"missing_ssh_jwk",desc:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme."},missingSshKid:{code:"missing_ssh_kid",desc:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme."},missingNonceAuthenticationHeader:{code:"missing_nonce_authentication_header",desc:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce."},invalidAuthenticationHeader:{code:"invalid_authentication_header",desc:"Invalid authentication header provided"},authorityMismatch:{code:"authority_mismatch",desc:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."}}),is=(function(r){function e(t,n){return t=r.call(this,t,n)||this,t.name="ClientConfigurationError",Object.setPrototypeOf(t,e.prototype),t}return lp(e,r),e.createRedirectUriEmptyError=function(){return new e(gi.redirectUriNotSet.code,gi.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(gi.postLogoutUriNotSet.code,gi.postLogoutUriNotSet.desc)},e.createClaimsRequestParsingError=function(t){return new e(gi.claimsRequestParsingError.code,gi.claimsRequestParsingError.desc+" Given value: "+t)},e.createInsecureAuthorityUriError=function(t){return new e(gi.authorityUriInsecure.code,gi.authorityUriInsecure.desc+" Given URI: "+t)},e.createUrlParseError=function(t){return new e(gi.urlParseError.code,gi.urlParseError.desc+" Given Error: "+t)},e.createUrlEmptyError=function(){return new e(gi.urlEmptyError.code,gi.urlEmptyError.desc)},e.createEmptyScopesArrayError=function(){return new e(gi.emptyScopesError.code,""+gi.emptyScopesError.desc)},e.createClientIdSingleScopeError=function(t){return new e(gi.clientIdSingleScopeError.code,gi.clientIdSingleScopeError.desc+" Given Scopes: "+t)},e.createInvalidPromptError=function(t){return new e(gi.invalidPrompt.code,gi.invalidPrompt.desc+" Given value: "+t)},e.createInvalidClaimsRequestError=function(){return new e(gi.invalidClaimsRequest.code,gi.invalidClaimsRequest.desc)},e.createEmptyLogoutRequestError=function(){return new e(gi.logoutRequestEmptyError.code,gi.logoutRequestEmptyError.desc)},e.createEmptyTokenRequestError=function(){return new e(gi.tokenRequestEmptyError.code,gi.tokenRequestEmptyError.desc)},e.createInvalidCodeChallengeMethodError=function(){return new e(gi.invalidCodeChallengeMethod.code,gi.invalidCodeChallengeMethod.desc)},e.createInvalidCodeChallengeParamsError=function(){return new e(gi.invalidCodeChallengeParams.code,gi.invalidCodeChallengeParams.desc)},e.createInvalidCloudDiscoveryMetadataError=function(){return new e(gi.invalidCloudDiscoveryMetadata.code,gi.invalidCloudDiscoveryMetadata.desc)},e.createInvalidAuthorityMetadataError=function(){return new e(gi.invalidAuthorityMetadata.code,g
vendor: 4,251 bytes, line 713
713i.invalidAuthorityMetadata.desc)},e.createUntrustedAuthorityError=function(){return new e(gi.untrustedAuthority.code,gi.untrustedAuthority.desc)},e.createInvalidAzureCloudInstanceError=function(){return new e(gi.invalidAzureCloudInstance.code,gi.invalidAzureCloudInstance.desc)},e.createMissingSshJwkError=function(){return new e(gi.missingSshJwk.code,gi.missingSshJwk.desc)},e.createMissingSshKidError=function(){return new e(gi.missingSshKid.code,gi.missingSshKid.desc)},e.createMissingNonceAuthenticationHeadersError=function(){return new e(gi.missingNonceAuthenticationHeader.code,gi.missingNonceAuthenticationHeader.desc)},e.createInvalidAuthenticationHeaderError=function(t,n){return new e(gi.invalidAuthenticationHeader.code,gi.invalidAuthenticationHeader.desc+". Invalid header: "+t+". Details: "+n)},e.createAuthorityMismatchError=function(){return new e(gi.authorityMismatch.code,gi.authorityMismatch.desc)},e})(ln),Fd=(function(){function r(n){var t=this,n=n?nn.trimArrayEntries(i9(n)):[],n=n?nn.removeEmptyStringsFromArray(n):[];this.validateInputScopes(n),this.scopes=new Set,n.forEach(function(i){return t.scopes.add(i)})}return r.fromString=function(e){return new r((e||It.EMPTY_STRING).split(" "))},r.createSearchScopes=function(e){return e=new r(e),e.containsOnlyOIDCScopes()?e.removeScope(It.OFFLINE_ACCESS_SCOPE):e.removeOIDCScopes(),e},r.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw is.createEmptyScopesArrayError()},r.prototype.containsScope=function(e){var t=new r(this.printScopesLowerCase().split(" "));return!nn.isEmpty(e)&&t.scopes.has(e.toLowerCase())},r.prototype.containsScopeSet=function(e){var t=this;return!(!e||e.scopes.size<=0)&&this.scopes.size>=e.scopes.size&&e.asArray().every(function(n){return t.containsScope(n)})},r.prototype.containsOnlyOIDCScopes=function(){var e=this,t=0;return qae.forEach(function(n){e.containsScope(n)&&(t+=1)}),this.scopes.size===t},r.prototype.appendScope=function(e){nn.isEmpty(e)||this.scopes.add(e.trim())},r.prototype.appendScopes=function(e){var t=this;try{e.forEach(function(n){return t.appendScope(n)})}catch(n){throw ln.createAppendScopeSetError(n)}},r.prototype.removeScope=function(e){if(nn.isEmpty(e))throw ln.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},r.prototype.removeOIDCScopes=function(){var e=this;qae.forEach(function(t){e.scopes.delete(t)})},r.prototype.unionScopeSets=function(e){var t;if(e)return t=new Set,e.scopes.forEach(function(n){return t.add(n.toLowerCase())}),this.scopes.forEach(function(n){return t.add(n.toLowerCase())}),t;throw ln.createEmptyInputScopeSetError()},r.prototype.intersectingScopeSets=function(n){if(!n)throw ln.createEmptyInputScopeSetError();n.containsOnlyOIDCScopes()||n.removeOIDCScopes();var t=this.unionScopeSets(n),n=n.getScopeCount(),i=this.getScopeCount();return t.size<i+n},r.prototype.getScopeCount=function(){return this.scopes.size},r.prototype.asArray=function(){var e=[];return this.scopes.forEach(function(t){return e.push(t)}),e},r.prototype.printScopes=function(){return this.scopes?this.asArray().join(" "):It.EMPTY_STRING},r.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},r})();function XU(r,e){if(nn.isEmpty(r))throw ln.createClientInfoEmptyError();try{var t=e.base64Decode(r);return JSON.parse(t)}catch(n){throw ln.createClientInfoDecodingError(n.message)}}function cR(r){if(nn.isEmpty(r))throw ln.createClientInfoDecodingError("Home account ID was empty.");return r=r.split(Kc.CLIENT_INFO_SEPARATOR,2),{uid:r[0],utid:r.length<2?It.EMPTY_STRING:r[1]}}(function(r){r[r.Default=0]="Default",r[r.Adfs=1]="Adfs",r[r.Dsts=2]="Dsts",r[r.Ciam=3]="Ciam"})(kh=kh||{});var ad=(function(){function r(){}return r.prototype.generateAccountId=function(){return[this.homeAccountId,this.environment].join(Kc.CACHE_KEY_SEPARATOR).toLowerCase()},r.prototype.generateAccountKey=function(){return r.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},r.prototype.generateType=function(){switch(this.authorityType){case T1.ADFS_ACCOUNT_TYPE:return $1.ADFS;case T1.MSAV1_ACCOUNT_TYPE:return $1.MSA;case T1.MSSTS_ACCOUNT_TYPE:return $1.MSSTS;
713case T1.GENERIC_ACCOUNT_TYPE:return $1.GENERIC;default:throw ln.createUnexpectedAccountTypeError()}},r.prototype.getAccountInfo=function(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,idTokenClaims:this.idTokenClaims,nativeAccountId:this.nativeAccountId}},r.generateAccountCacheKey=function(e){return[e.homeAccountId,e.environment||It.EMPTY_STRING,e.tenantId||It.EMPTY_STRING].join(Kc.CACHE_KEY_SEPARATOR).toLowerCase()},r.createAccount=function(p,t,n,i,o,a,l,u){var h=new r,p=(h.authorityType=T1.MSSTS_ACCOUNT_TYPE,h.clientInfo=p,h.homeAccountId=t,h.nativeAccountId=u,l||i&&i.getPreferredCache());if(p)return h.environment=p,h.realm=((t=n==null?void 0:n.claims)==null?void 0:t.tid)||It.EMPTY_STRING,n&&(h.idTokenClaims=n.claims,h.localAccountId=((u=n==null?void 0:n.claims)==null?void 0:u.oid)||((l=n==null?void 0:n.claims)==null?void 0:l.sub)||It.EMPTY_STRING,p=(i=n==null?void 0:n.claims)==null?void 0:i.preferred_username,u=(t=n==null?void 0:n.claims)!=null&&t.emails?n.claims.emails[0]:null,h.username=p||u||It.EMPTY_STRING,h.name=(l=n==null?void 0:n.claims)==null?void 0:l.name),h.cloudGraphHostName=o,h.msGraphHost=a,h;throw ln.createInvalidCacheEnvironmentError()},r.createGenericAccount=function(u,t,n,i,o,a){var l=new r,u=(l.authorityType=n&&n.authorityType===kh.Adfs?T1.ADFS_ACCOUNT_TYPE:T1.GENERIC_ACCOUNT_TYPE,l.homeAccountId=u,l.realm=It.EMPTY_STRING,a||n&&n.getPreferredCache());if(u)return t&&(l.localAccountId=((a=t==null?void 0:t.claims)==null?void 0:a.oid)||((n=t==null?void 0:t.claims)==null?void 0:n.sub)||It.EMPTY_STRING,l.username=((a=t==null?void 0:t.claims)==null?void 0:a.upn)||It.EMPTY_STRING,l.name=((n=t==null?void 0:t.claims)==null?void 0:n.name)||It.EMPTY_STRING,l.idTokenClaims=t==null?void 0:t.claims),l.environment=u,l.cloudGraphHostName=i,l.msGraphHost=o,l;throw ln.createInvalidCacheEnvironmentError()},r.generateHomeAccountId=function(e,t,n,i,o){var a=(a=o==null?void 0:o.claims)!=null&&a.sub?o.claims.sub:It.EMPTY_STRING;if(t!==kh.Adfs&&t!==kh.Dsts){if(e)try{var l=XU(e,i);if(!nn.isEmpty(l.uid)&&!nn.isEmpty(l.utid))return""+l.uid+Kc.CLIENT_INFO_SEPARATOR+l.utid}catch{}n.verbose("No client info in response")}return a},r.isAccountEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType")},r.accountInfoIsEqual=function(e,t,n){var i,o;return!(!e||!t)&&(o=!0,n&&(n=e.idTokenClaims||{},i=t.idTokenClaims||{},o=n.iat===i.iat&&n.nonce===i.nonce),e.homeAccountId===t.homeAccountId)&&e.localAccountId===t.localAccountId&&e.username===t.username&&e.tenantId===t.tenantId&&e.environment===t.environment&&e.nativeAccountId===t.nativeAccountId&&o},r})(),v_=(function(){function r(e,t){if(nn.isEmpty(e))throw ln.createTokenNullOrEmptyError(e);this.rawToken=e,this.claims=r.extractTokenClaims(e,t)}return r.extractTokenClaims=function(e,t){e=nn.decodeAuthToken(e);try{var n=e.JWSPayload,i=t.base64Decode(n);return JSON.parse(i)}catch(o){throw ln.createTokenParsingError(o)}},r.checkMaxAge=function(e,t){if(t===0||Date.now()-3e5>e+t)throw ln.createMaxAgeTranspiredError()},r})(),kf=(function(){function r(e,t,n){this.clientId=e,this.cryptoImpl=t,this.commonLogger=n.clone(hwe,bQ)}return r.prototype.getAllAccounts=function(){var e=this,t=this.getAccountKeys();return t.length<1||(t=t.reduce(function(n,i){return i=e.getAccount(i),i&&n.push(i),n},[])).length<1?[]:t.map(function(n){return e.getAccountInfoFromEntity(n)})},r.prototype.getAccountInfoFilteredBy=function(e){return e=this.getAccountsFilteredBy(e),0<e.length?this.getAccountInfoFromEntity(e[0]):null},r.prototype.getAccountInfoFromEntity=function(t){var t=t.getAccountInfo(),n=this.getIdToken(t);return n&&(t.idToken=n.secret,t.idTokenClaims=new v_(n.secret,this.cryptoImpl).claims),t},r.prototype.saveCacheRecord=function(e){return yi(this,void 0,void 0,function(){return vi(this,function(t){switch(t.label){case 0:if(e)return e.account&&this.setAccount(e.account),e.idToken&&this.setIdTokenCredential(e.idToken),e.accessToken?[4,this.saveAcce
713ssToken(e.accessToken)]:[3,2];throw ln.createNullOrUndefinedCacheRecord();case 1:t.sent(),t.label=2;case 2:return e.refreshToken&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata),[2]}})})},r.prototype.saveAccessToken=function(e){return yi(this,void 0,void 0,function(){var t,n,i,o,a=this;return vi(this,function(l){switch(l.label){case 0:return t={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},n=this.getTokenKeys(),i=Fd.fromString(e.target),o=[],n.accessToken.forEach(function(u){var h;a.accessTokenKeyMatchesFilter(u,t,!1)&&(h=a.getAccessTokenCredential(u))&&a.credentialMatchesFilter(h,t)&&Fd.fromString(h.target).intersectingScopeSets(i)&&o.push(a.removeAccessToken(u))}),[4,Promise.all(o)];case 1:return l.sent(),this.setAccessTokenCredential(e),[2]}})})},r.prototype.getAccountsFilteredBy=function(e){var t=this,n=this.getAccountKeys(),i=[];return n.forEach(function(o){!t.isAccountKey(o,e.homeAccountId,e.realm)||!(o=t.getAccount(o))||e.homeAccountId&&!t.matchHomeAccountId(o,e.homeAccountId)||e.localAccountId&&!t.matchLocalAccountId(o,e.localAccountId)||e.username&&!t.matchUsername(o,e.username)||e.environment&&!t.matchEnvironment(o,e.environment)||e.realm&&!t.matchRealm(o,e.realm)||e.nativeAccountId&&!t.matchNativeAccountId(o,e.nativeAccountId)||i.push(o)}),i},r.prototype.isAccountKey=function(e,t,n){return!(e.split(Kc.CACHE_KEY_SEPARATOR).length<3||t&&!e.toLowerCase().includes(t.toLowerCase())||n&&!e.toLowerCase().includes(n.toLowerCase()))},r.prototype.isCredentialKey=function(e){if(e.split(Kc.CACHE_KEY_SEPARATOR).length<6||(e=e.toLowerCase(),e.indexOf(Yn.ID_TOKEN.toLowerCase())===-1&&e.indexOf(Yn.ACCESS_TOKEN.toLowerCase())===-1&&e.indexOf(Yn.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&e.indexOf(Yn.REFRESH_TOKEN.toLowerCase())===-1))return!1;if(-1<e.indexOf(Yn.REFRESH_TOKEN.toLowerCase())){var t=""+Yn.REFRESH_TOKEN+Kc.CACHE_KEY_SEPARATOR+this.clientId+Kc.CACHE_KEY_SEPARATOR,n=""+Yn.REFRESH_TOKEN+Kc.CACHE_KEY_SEPARATOR+lN+Kc.CACHE_KEY_SEPARATOR;if(e.indexOf(t.toLowerCase())===-1&&e.indexOf(n.toLowerCase())===-1)return!1}else if(e.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0},r.prototype.credentialMatchesFilter=function(e,t){return!(t.clientId&&!this.matchClientId(e,t.clientId)||t.userAssertionHash&&!this.matchUserAssertionHash(e,t.userAssertionHash)||typeof t.homeAccountId=="string"&&!this.matchHomeAccountId(e,t.homeAccountId)||t.environment&&!this.matchEnvironment(e,t.environment)||t.realm&&!this.matchRealm(e,t.realm)||t.credentialType&&!this.matchCredentialType(e,t.credentialType)||t.familyId&&!this.matchFamilyId(e,t.familyId)||t.target&&!this.matchTarget(e,t.target)||(t.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==t.requestedClaimsHash||e.credentialType===Yn.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(t.tokenType&&!this.matchTokenType(e,t.tokenType)||t.tokenType===fa.SSH&&t.keyId&&!this.matchKeyId(e,t.keyId)))},r.prototype.getAppMetadataFilteredBy=function(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)},r.prototype.getAppMetadataFilteredByInternal=function(e,t){var n=this,i=this.getKeys(),o={};return i.forEach(function(a){var l;!n.isAppMetadata(a)||!(l=n.getAppMetadata(a))||e&&!n.matchEnvironment(l,e)||t&&!n.matchClientId(l,t)||(o[a]=l)}),o},r.prototype.getAuthorityMetadataByAlias=function(e){var t=this,n=this.getAuthorityMetadataKeys(),i=null;return n.forEach(function(o){t.isAuthorityMetadata(o)&&o.indexOf(t.clientId)!==-1&&(o=t.getAuthorityMetadata(o))&&o.aliases.indexOf(e)!==-1&&(i=o)}),i},r.prototype.removeAllAccounts=function(){return yi(this,void 0,void 0,function(){var e,t,n=this;return vi(this,function(i){switch(i.label){case 0:return e=this.getAccountKeys(),t=[],e.forEach(function(o){t.push(n.removeAccount(o))}),[4,Promise.all(t)];case 1:return i.sent(),[2]}})})},r.prototype.removeAccount=function(e){return yi(this,void 0,void 0,function(){var t;return vi(this,function(n){switch(n.label){case 0:if(t=this.getAccount(e))return[4,this.removeAccountContext(t)];throw ln.createNoAccountFoundError();case 1:return n.sent(),this.removeItem(e),[2]}})})},r.prototype.removeAccountContext=function(e){return yi(this,void 0,void 0,function(){var t,n,i,o=this;return vi(this,function(a){switch(a.label){case 0:return t=this.getTokenKeys(),n=e.generateAccountId(),i=[],t.idToken.forEac
vendor: 4,267 bytes, line 713
713h(function(l){l.indexOf(n)===0&&o.removeIdToken(l)}),t.accessToken.forEach(function(l){l.indexOf(n)===0&&i.push(o.removeAccessToken(l))}),t.refreshToken.forEach(function(l){l.indexOf(n)===0&&o.removeRefreshToken(l)}),[4,Promise.all(i)];case 1:return a.sent(),[2]}})})},r.prototype.removeAccessToken=function(e){return yi(this,void 0,void 0,function(){var t;return vi(this,function(n){switch(n.label){case 0:if(!(t=this.getAccessTokenCredential(e)))return[2];if(t.credentialType.toLowerCase()!==Yn.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(t.tokenType!==fa.POP)return[3,4];if(!(t=t.keyId))return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(t)];case 2:return n.sent(),[3,4];case 3:throw n.sent(),ln.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(e)]}})})},r.prototype.removeAppMetadata=function(){var e=this;return this.getKeys().forEach(function(t){e.isAppMetadata(t)&&e.removeItem(t)}),!0},r.prototype.readCacheRecord=function(l,a,n){var u=this.getTokenKeys(),i=this.readAccountFromCache(l),o=this.getIdToken(l,u),a=this.getAccessToken(l,a,u),l=this.getRefreshToken(l,!1,u),u=this.readAppMetadataFromCache(n);return i&&o&&(i.idTokenClaims=new v_(o.secret,this.cryptoImpl).claims),{account:i,idToken:o,accessToken:a,refreshToken:l,appMetadata:u}},r.prototype.readAccountFromCache=function(e){return e=ad.generateAccountCacheKey(e),this.getAccount(e)},r.prototype.getIdToken=function(i,o){var n=this,i=(this.commonLogger.trace("CacheManager - getIdToken called"),{homeAccountId:i.homeAccountId,environment:i.environment,credentialType:Yn.ID_TOKEN,clientId:this.clientId,realm:i.tenantId}),i=this.getIdTokensByFilter(i,o),o=i.length;return o<1?(this.commonLogger.info("CacheManager:getIdToken - No token found"),null):1<o?(this.commonLogger.info("CacheManager:getIdToken - Multiple id tokens found, clearing them"),i.forEach(function(a){n.removeIdToken(a.generateCredentialKey())}),null):(this.commonLogger.info("CacheManager:getIdToken - Returning id token"),i[0])},r.prototype.getIdTokensByFilter=function(e,i){var n=this,i=i&&i.idToken||this.getTokenKeys().idToken,o=[];return i.forEach(function(a){n.idTokenKeyMatchesFilter(a,ha({clientId:n.clientId},e))&&(a=n.getIdTokenCredential(a))&&n.credentialMatchesFilter(a,e)&&o.push(a)}),o},r.prototype.idTokenKeyMatchesFilter=function(e,t){return e=e.toLowerCase(),!(t.clientId&&e.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&e.indexOf(t.homeAccountId.toLowerCase())===-1)},r.prototype.removeIdToken=function(e){this.removeItem(e)},r.prototype.removeRefreshToken=function(e){this.removeItem(e)},r.prototype.getAccessToken=function(p,t,n){var i=this,o=(this.commonLogger.trace("CacheManager - getAccessToken called"),Fd.createSearchScopes(t.scopes)),a=t.authenticationScheme||fa.BEARER,u=a&&a.toLowerCase()!==fa.BEARER.toLowerCase()?Yn.ACCESS_TOKEN_WITH_AUTH_SCHEME:Yn.ACCESS_TOKEN,l={homeAccountId:p.homeAccountId,environment:p.environment,credentialType:u,clientId:this.clientId,realm:p.tenantId,target:o,tokenType:a,keyId:t.sshKid,requestedClaimsHash:t.requestedClaimsHash},u=n&&n.accessToken||this.getTokenKeys().accessToken,h=[],p=(u.forEach(function(m){i.accessTokenKeyMatchesFilter(m,l,!0)&&(m=i.getAccessTokenCredential(m))&&i.credentialMatchesFilter(m,l)&&h.push(m)}),h.length);return p<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):1<p?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),h.forEach(function(m){i.removeAccessToken(m.generateCredentialKey())}),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),h[0])},r.prototype.accessTokenKeyMatchesFilter=function(e,t,n){var i=e.toLowerCase();if(t.clientId&&i.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&i.indexOf(t.homeAccountId.toLowerCase())===-1||t.realm&&i.indexOf(t.realm.toLowerCase())===-1||t.requestedClaimsHash&&i.indexOf(t.requestedClaimsHash.toLowerCase())===-1)return!1;if(t.target)for(var o=t.target.asArray(),a=0;a<o.length;a++){if(n&&!i.includes(o[a].toLowerCase()))return!1;if(!n&&i.includes(o[a].toLowerCase()))return!0}return!0},r.prototype.getAccessTokensByFilter=function(e){var t=this,n=this.getTokenKeys(),i=[];
vendor: 9,068 bytes, line 713
713return n.accessToken.forEach(function(o){t.accessTokenKeyMatchesFilter(o,e,!0)&&(o=t.getAccessTokenCredential(o))&&t.credentialMatchesFilter(o,e)&&i.push(o)}),i},r.prototype.getRefreshToken=function(l,o,n){var i=this,o=(this.commonLogger.trace("CacheManager - getRefreshToken called"),o?lN:void 0),a={homeAccountId:l.homeAccountId,environment:l.environment,credentialType:Yn.REFRESH_TOKEN,clientId:this.clientId,familyId:o},l=n&&n.refreshToken||this.getTokenKeys().refreshToken,u=[];return l.forEach(function(h){i.refreshTokenKeyMatchesFilter(h,a)&&(h=i.getRefreshTokenCredential(h))&&i.credentialMatchesFilter(h,a)&&u.push(h)}),u.length<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),u[0])},r.prototype.refreshTokenKeyMatchesFilter=function(e,t){return e=e.toLowerCase(),!(t.familyId&&e.indexOf(t.familyId.toLowerCase())===-1||!t.familyId&&t.clientId&&e.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&e.indexOf(t.homeAccountId.toLowerCase())===-1)},r.prototype.readAppMetadataFromCache=function(n){var n={environment:n,clientId:this.clientId},t=this.getAppMetadataFilteredBy(n),n=Object.keys(t).map(function(o){return t[o]}),i=n.length;if(i<1)return null;if(1<i)throw ln.createMultipleMatchingAppMetadataInCacheError();return n[0]},r.prototype.isAppMetadataFOCI=function(e){return e=this.readAppMetadataFromCache(e),!(!e||e.familyId!==lN)},r.prototype.matchHomeAccountId=function(e,t){return!(typeof e.homeAccountId!="string"||t!==e.homeAccountId)},r.prototype.matchLocalAccountId=function(e,t){return!(typeof e.localAccountId!="string"||t!==e.localAccountId)},r.prototype.matchUsername=function(e,t){return!(typeof e.username!="string"||t.toLowerCase()!==e.username.toLowerCase())},r.prototype.matchUserAssertionHash=function(e,t){return!(!e.userAssertionHash||t!==e.userAssertionHash)},r.prototype.matchEnvironment=function(e,t){return t=this.getAuthorityMetadataByAlias(t),!!(t&&-1<t.aliases.indexOf(e.environment))},r.prototype.matchCredentialType=function(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()},r.prototype.matchClientId=function(e,t){return!(!e.clientId||t!==e.clientId)},r.prototype.matchFamilyId=function(e,t){return!(!e.familyId||t!==e.familyId)},r.prototype.matchRealm=function(e,t){return!(!e.realm||t!==e.realm)},r.prototype.matchNativeAccountId=function(e,t){return!(!e.nativeAccountId||t!==e.nativeAccountId)},r.prototype.matchTarget=function(e,t){return!(e.credentialType!==Yn.ACCESS_TOKEN&&e.credentialType!==Yn.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target)&&Fd.fromString(e.target).containsScopeSet(t)},r.prototype.matchTokenType=function(e,t){return!(!e.tokenType||e.tokenType!==t)},r.prototype.matchKeyId=function(e,t){return!(!e.keyId||e.keyId!==t)},r.prototype.isAppMetadata=function(e){return e.indexOf(kY)!==-1},r.prototype.isAuthorityMetadata=function(e){return e.indexOf(cN.CACHE_KEY)!==-1},r.prototype.generateAuthorityMetadataCacheKey=function(e){return cN.CACHE_KEY+"-"+this.clientId+"-"+e},r.toObject=function(e,t){for(var n in t)e[n]=t[n];return e},r})(),Ptt=(function(r){function e(){return r!==null&&r.apply(this,arguments)||this}return lp(e,r),e.prototype.setAccount=function(){throw xn.createUnexpectedError("Storage interface - setAccount() has not been implemented for the cacheStorage interface.")},e.prototype.getAccount=function(){throw xn.createUnexpectedError("Storage interface - getAccount() has not been implemented for the cacheStorage interface.")},e.prototype.setIdTokenCredential=function(){throw xn.createUnexpectedError("Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.")},e.prototype.getIdTokenCredential=function(){throw xn.createUnexpectedError("Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.")},e.prototype.setAccessTokenCredential=function(){throw xn.createUnexpectedError("Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.")},e.prototype.getAccessTokenCredential=function(){throw xn.createUnexpectedError("Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.")},e.prototype.setRefreshTokenCredential=function(){throw xn.createUnexpectedError("Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},e.prototype.getRefreshTokenCredential=function(){throw xn.createUnexpectedError("Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},e.prototype.setAppMetadata=function(){throw xn.createUnexpectedError("Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.")},e.prototype.getAppMetadata=function(){throw xn.createUnexpectedError("Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.")},e.prototype.setServerTelemetry=function(){throw xn.createUnexpectedError("Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.")},e.prototype.getServerTelemetry=function(){throw xn.createUnexpectedError("Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.")},e.prototype.setAuthorityMetadata=function(){throw xn.createUnexpectedError("Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.")},e.prototype.getAuthorityMetadata=function(){throw xn.createUnexpectedError("Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.")},e.prototype.getAuthorityMetadataKeys=function(){throw xn.createUnexpectedError("Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.")},e.prototype.setThrottlingCache=function(){throw xn.createUnexpectedError("Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.")},e.prototype.getThrottlingCache=function(){throw xn.createUnexpectedError("Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.")},e.prototype.removeItem=function(){throw xn.createUnexpectedError("Storage interface - removeItem() has not been implemented for the cacheStorage interface.")},e.prototype.containsKey=function(){throw xn.createUnexpectedError("Storage interface - containsKey() has not been implemented for the cacheStorage interface.")},e.prototype.getKeys=function(){throw xn.createUnexpectedError("Storage interface - getKeys() has not been implemented for the cacheStorage interface.")},e.prototype.getAccountKeys=function(){throw xn.createUnexpectedError("Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.")},e.prototype.getTokenKeys=function(){throw xn.createUnexpectedError("Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.")},e.prototype.clear=function(){return yi(this,void 0,void 0,function(){return vi(this,function(t){throw xn.createUnexpectedError("Storage interface - clear() has not been implemented for the cacheStorage interface.")})})},e.prototype.updateCredentialCacheKey=function(){throw xn.createUnexpectedError("Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.")},e})(kf),ktt=300,fwe={tokenRenewalOffsetSeconds:ktt,preventCorsPreflight:!1},Ott={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:gu.Info,correlationId:It.EMPTY_STRING},Mtt={claimsBasedCachingEnabled:!0},Ntt={sendGetRequestAsync:function(){return yi(this,void 0,void 0,function(){return vi(this,function(r){throw xn.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented")})})},sendPostRequestAsync:function(){return yi(this,void 0,void 0,function(){return vi(this,function(r){throw xn.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented")})})}},Dtt={sku:It.SKU,version:bQ,cpu:It.EMPTY_STRING,os:It.EMPTY_STRING},Ltt={clientSecret:It.EMPTY_STRING,clientAssertion:void 0},Htt={azureCloudInstance:wD.None,tenant:""+It.DEFAULT_COMMON_TENANT},Ftt={application:{appName:"",appVersion:""}};function Utt(_){var e=_.authOptions,t=_.systemOptions,C=_.loggerOptions,n=_.cacheOptions,i=_.storageInterface,o=_.networkInterface,a=_.cryptoInterface,l=_.clientCredentials,u=_.libraryInfo,h=_.telemetry,p=_.serverTelemetryManager,m=_.persistencePlugin,_=_.serializableCache,C=ha(ha({},Ott),C);return{authOptions:Btt(e),systemOptions:ha(ha({},fwe),t),loggerOptions:C,cacheOptions:ha(ha({},Mtt),n),storageInterface:i||new Ptt(e.clientId,ZU,new _Q(C)),networkInterface:o||Ntt,cryptoInterface:a||ZU,clientCredentials:l||Ltt,libraryInfo:ha(ha({},Dtt),u),telemetry:ha(ha({},Ftt),h),serverTelemetryManager:p||null,persistencePlugin:m||null,serializableCache:_||null}}function Btt(r){return ha({clientCapabilities:[],azureCloudOptions:Htt,ski
713pAuthorityMetadataCache:!1},r)}var ng,Qt,QU,Yj,mS=(function(r){function e(t,n,i){return t=r.call(this,t,n,i)||this,t.name="ServerError",Object.setPrototypeOf(t,e.prototype),t}return lp(e,r),e})(xn),JU=(function(){function r(){}return r.generateThrottlingStorageKey=function(e){return uN.THROTTLING_PREFIX+"."+JSON.stringify(e)},r.preProcess=function(e,i){var n,i=r.generateThrottlingStorageKey(i),o=e.getThrottlingCache(i);if(o){if(!(o.throttleTime<Date.now()))throw new mS(((n=o.errorCodes)==null?void 0:n.join(" "))||It.EMPTY_STRING,o.errorMessage,o.subError);e.removeItem(i)}},r.postProcess=function(e,t,n){(r.checkResponseStatus(n)||r.checkResponseForRetryAfter(n))&&(n={throttleTime:r.calculateThrottleTime(parseInt(n.headers[sg.RETRY_AFTER])),error:n.body.error,errorCodes:n.body.error_codes,errorMessage:n.body.error_description,subError:n.body.suberror},e.setThrottlingCache(r.generateThrottlingStorageKey(t),n))},r.checkResponseStatus=function(e){return e.status===429||500<=e.status&&e.status<600},r.checkResponseForRetryAfter=function(e){return!!e.headers&&e.headers.hasOwnProperty(sg.RETRY_AFTER)&&(e.status<200||300<=e.status)},r.calculateThrottleTime=function(t){var t=t<=0?0:t,n=Date.now()/1e3;return Math.floor(1e3*Math.min(n+(t||uN.DEFAULT_THROTTLE_TIME_SECONDS),n+uN.DEFAULT_MAX_THROTTLE_TIME_SECONDS))},r.removeThrottle=function(e,t,n,i){t={clientId:t,authority:n.authority,scopes:n.scopes,homeAccountIdentifier:i,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},i=this.generateThrottlingStorageKey(t),e.removeItem(i)},r})(),$tt=(function(){function r(e,t){this.networkClient=e,this.cacheManager=t}return r.prototype.sendPostRequest=function(e,t,n){return yi(this,void 0,void 0,function(){var i,o;return vi(this,function(a){switch(a.label){case 0:JU.preProcess(this.cacheManager,e),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(t,n)];case 2:return i=a.sent(),[3,4];case 3:throw(o=a.sent())instanceof xn?o:ln.createNetworkError(t,o);case 4:return JU.postProcess(this.cacheManager,e,i),[2,i]}})})},r})(),Px=((function(r){r.HOME_ACCOUNT_ID="home_account_id",r.UPN="UPN"})(ng=ng||{}),(function(){function r(){}return r.validateRedirectUri=function(e){if(nn.isEmpty(e))throw is.createRedirectUriEmptyError()},r.validatePrompt=function(e){var t,n=[];for(t in jd)n.push(jd[t]);if(n.indexOf(e)<0)throw is.createInvalidPromptError(e)},r.validateClaims=function(e){try{JSON.parse(e)}catch{throw is.createInvalidClaimsRequestError()}},r.validateCodeChallengeParams=function(e,t){if(nn.isEmpty(e)||nn.isEmpty(t))throw is.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},r.validateCodeChallengeMethod=function(e){if([Gae.PLAIN,Gae.S256].indexOf(e)<0)throw is.createInvalidCodeChallengeMethodError()},r.sanitizeEQParams=function(e,t){return e?(t.forEach(function(n,i){e[i]&&delete e[i]}),Object.fromEntries(Object.entries(e).filter(function(n){return n[1]!==""}))):{}},r})()),dN=(function(){function r(){this.parameters=new Map}return r.prototype.addResponseTypeCode=function(){this.parameters.set(xi.RESPONSE_TYPE,encodeURIComponent(It.CODE_RESPONSE_TYPE))},r.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(xi.RESPONSE_TYPE,encodeURIComponent(It.TOKEN_RESPONSE_TYPE+" "+It.ID_TOKEN_RESPONSE_TYPE))},r.prototype.addResponseMode=function(e){this.parameters.set(xi.RESPONSE_MODE,encodeURIComponent(e||YU.QUERY))},r.prototype.addNativeBroker=function(){this.parameters.set(xi.NATIVE_BROKER,encodeURIComponent("1"))},r.prototype.addScopes=function(e,t){t=(t=t===void 0?!0:t)?i9(e||[],RL):e||[],e=new Fd(t),this.parameters.set(xi.SCOPE,encodeURIComponent(e.printScopes()))},r.prototype.addClientId=function(e){this.parameters.set(xi.CLIENT_ID,encodeURIComponent(e))},r.prototype.addRedirectUri=function(e){Px.validateRedirectUri(e),this.parameters.set(xi.REDIRECT_URI,encodeURIComponent(e))},r.prototype.addPostLogoutRedirectUri=function(e){Px.validateRedirectUri(e),this.parameters.set(xi.POST_LOGOUT_URI,encodeURIComponent(e))},r.prototype.addIdTokenHint=function(e){this.parameters.set(xi.ID_TOKEN_HINT,encodeURIComponent(e))},r.prototype.addDomainHint=function(e){this.parameters.set(aN.DOMAIN_HINT,encodeURIComponent(e))},r.prototype.addLoginHint=function(e){this.parameters.set(aN.LOGIN_HINT,encodeURIComponent(e))},r.prototype.addCcsUpn=function(e){this.parameters.set(sg.CCS_HEADER,encodeURIComponent("UPN:"+e))},r.prototype.addCcsOid=function(e){this.parameters.set(sg.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},r.prototype.addSid=function(e){this.parameters.set(aN.SID,encodeURIComponent(e))},r.prototype.addClaims=function(e,t){e=this.addClientCapabilitiesToClaims(e,t),Px.validateClaims(e),this.parameters.set(xi.CLAIMS,encodeURIComponent(e))},r.prototype.addCorrelationId=function(e){this.parameters.set(xi.CLIENT_REQUEST_ID,encodeURIComponent(e))},r.prototype.addLibraryInfo=function(e){this.parameters.set(xi.X_CLIENT_SKU,e.sku),this.parameters.set(xi.X_CLIENT_VER,e.ver
vendor: 12,031 bytes, line 713
713sion),e.os&&this.parameters.set(xi.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(xi.X_CLIENT_CPU,e.cpu)},r.prototype.addApplicationTelemetry=function(e){e!=null&&e.appName&&this.parameters.set(xi.X_APP_NAME,e.appName),e!=null&&e.appVersion&&this.parameters.set(xi.X_APP_VER,e.appVersion)},r.prototype.addPrompt=function(e){Px.validatePrompt(e),this.parameters.set(""+xi.PROMPT,encodeURIComponent(e))},r.prototype.addState=function(e){nn.isEmpty(e)||this.parameters.set(xi.STATE,encodeURIComponent(e))},r.prototype.addNonce=function(e){this.parameters.set(xi.NONCE,encodeURIComponent(e))},r.prototype.addCodeChallengeParams=function(e,t){if(Px.validateCodeChallengeParams(e,t),!e||!t)throw is.createInvalidCodeChallengeParamsError();this.parameters.set(xi.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(xi.CODE_CHALLENGE_METHOD,encodeURIComponent(t))},r.prototype.addAuthorizationCode=function(e){this.parameters.set(xi.CODE,encodeURIComponent(e))},r.prototype.addDeviceCode=function(e){this.parameters.set(xi.DEVICE_CODE,encodeURIComponent(e))},r.prototype.addRefreshToken=function(e){this.parameters.set(xi.REFRESH_TOKEN,encodeURIComponent(e))},r.prototype.addCodeVerifier=function(e){this.parameters.set(xi.CODE_VERIFIER,encodeURIComponent(e))},r.prototype.addClientSecret=function(e){this.parameters.set(xi.CLIENT_SECRET,encodeURIComponent(e))},r.prototype.addClientAssertion=function(e){nn.isEmpty(e)||this.parameters.set(xi.CLIENT_ASSERTION,encodeURIComponent(e))},r.prototype.addClientAssertionType=function(e){nn.isEmpty(e)||this.parameters.set(xi.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},r.prototype.addOboAssertion=function(e){this.parameters.set(xi.OBO_ASSERTION,encodeURIComponent(e))},r.prototype.addRequestTokenUse=function(e){this.parameters.set(xi.REQUESTED_TOKEN_USE,encodeURIComponent(e))},r.prototype.addGrantType=function(e){this.parameters.set(xi.GRANT_TYPE,encodeURIComponent(e))},r.prototype.addClientInfo=function(){this.parameters.set(Rtt,"1")},r.prototype.addExtraQueryParameters=function(e){var t=this,n=Px.sanitizeEQParams(e,this.parameters);Object.keys(n).forEach(function(i){t.parameters.set(i,e[i])})},r.prototype.addClientCapabilitiesToClaims=function(e,t){var n;if(e)try{n=JSON.parse(e)}catch{throw is.createInvalidClaimsRequestError()}else n={};return t&&0<t.length&&(n.hasOwnProperty(sR.ACCESS_TOKEN)||(n[sR.ACCESS_TOKEN]={}),n[sR.ACCESS_TOKEN][sR.XMS_CC]={values:t}),JSON.stringify(n)},r.prototype.addUsername=function(e){this.parameters.set(KU.username,encodeURIComponent(e))},r.prototype.addPassword=function(e){this.parameters.set(KU.password,encodeURIComponent(e))},r.prototype.addPopToken=function(e){nn.isEmpty(e)||(this.parameters.set(xi.TOKEN_TYPE,fa.POP),this.parameters.set(xi.REQ_CNF,encodeURIComponent(e)))},r.prototype.addSshJwk=function(e){nn.isEmpty(e)||(this.parameters.set(xi.TOKEN_TYPE,fa.SSH),this.parameters.set(xi.REQ_CNF,encodeURIComponent(e)))},r.prototype.addServerTelemetry=function(e){this.parameters.set(xi.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(xi.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},r.prototype.addThrottling=function(){this.parameters.set(xi.X_MS_LIB_CAPABILITY,uN.X_MS_LIB_CAPABILITY_VALUE)},r.prototype.addLogoutHint=function(e){this.parameters.set(xi.LOGOUT_HINT,encodeURIComponent(e))},r.prototype.createQueryString=function(){var e=new Array;return this.parameters.forEach(function(t,n){e.push(n+"="+t)}),e.join("&")},r})(),wQ=(function(){function r(e,t){this.config=Utt(e),this.logger=new _Q(this.config.loggerOptions,hwe,bQ),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new $tt(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}return r.prototype.createTokenRequestHeaders=function(e){var t={};if(t[sg.CONTENT_TYPE]=It.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case ng.HOME_ACCOUNT_ID:try{var n=cR(e.credential);t[sg.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(i){this.logger.verbose("Could not parse home account ID for CCS Header: "+i)}break;case ng.UPN:t[sg.CCS_HEADER]="UPN: "+e.credential}return t},r.prototype.executePostToTokenEndpoint=function(e,t,n,i){return yi(this,void 0,void 0,function(){var o;return vi(this,function(a){switch(a.label){case 0:return[4,this.networkManager.sendPostRequest(i,e,{body:t,headers:n})];case 1:return o=a.sent(),this.config.serverTelemetryManager&&o.status<500&&o.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,o]}})})},r.prototype.updateAuthority=function(e){if(!e.discoveryComplete())throw ln.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},r.prototype.createTokenQueryParameters=function(e){var t=new dN;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},r})(),EQ=(function(){function r(){}return r.prototype.generateAccountId=function(){return r.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},r.prototype.generateCredentialId=function(){return r.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},r.prototype.generateTarget=function(){return r.generateTargetForCacheKey(this.target)},r.prototype.generateCredentialKey=function(){return r.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},r.prototype.generateType=function(){switch(this.credentialType){case Yn.ID_TOKEN:return $1.ID_TOKEN;case Yn.ACCESS_TOKEN:case Yn.ACCESS_TOKEN_WITH_AUTH_SCHEME:return $1.ACCESS_TOKEN;case Yn.REFRESH_TOKEN:return $1.REFRESH_TOKEN;default:throw ln.createUnexpectedCredentialTypeError()}},r.generateCredentialCacheKey=function(e,t,n,i,o,a,l,u,h){return[this.generateAccountIdForCacheKey(e,t),this.generateCredentialIdForCacheKey(n,i,o,l),this.generateTargetForCacheKey(a),this.generateClaimsHashForCacheKey(h),this.generateSchemeForCacheKey(u)].join(Kc.CACHE_KEY_SEPARATOR).toLowerCase()},r.generateAccountIdForCacheKey=function(e,t){return[e,t].join(Kc.CACHE_KEY_SEPARATOR).toLowerCase()},r.generateCredentialIdForCacheKey=function(e,t,n,i){return[e,e===Yn.REFRESH_TOKEN&&i||t,n||It.EMPTY_STRING].join(Kc.CACHE_KEY_SEPARATOR).toLowerCase()},r.generateTargetForCacheKey=function(e){return(e||It.EMPTY_STRING).toLowerCase()},r.generateClaimsHashForCacheKey=function(e){return(e||It.EMPTY_STRING).toLowerCase()},r.generateSchemeForCacheKey=function(e){return e&&e.toLowerCase()!==fa.BEARER.toLowerCase()?e.toLowerCase():It.EMPTY_STRING},r})(),lT=(function(r){function e(){return r!==null&&r.apply(this,arguments)||this}return lp(e,r),e.createIdTokenEntity=function(t,n,i,o,a){var l=new e;return l.credentialType=Yn.ID_TOKEN,l.homeAccountId=t,l.environment=n,l.clientId=o,l.secret=i,l.realm=a,l},e.isIdTokenEntity=function(t){return!!t&&t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===Yn.ID_TOKEN},e})(EQ),Nm=(function(){function r(){}return r.nowSeconds=function(){return Math.round(new Date().getTime()/1e3)},r.isTokenExpired=function(e,t){return(Number(e)||0)<r.nowSeconds()+t},r.wasClockTurnedBack=function(e){return Number(e)>r.nowSeconds()},r.delay=function(e,t){return new Promise(function(n){return setTimeout(function(){return n(t)},e)})},r})(),cT=(function(r){function e(){return r!==null&&r.apply(this,arguments)||this}return lp(e,r),e.createAccessTokenEntity=function(H,n,i,o,a,l,u,h,p,m,_,C,T,S,R){var O,N=new e,H=(N.homeAccountId=H,N.credentialType=Yn.ACCESS_TOKEN,N.secret=i,Nm.nowSeconds());if(N.cachedAt=H.toString(),N.expiresOn=u.toString(),N.extendedExpiresOn=h.toString(),m&&(N.refreshOn=m.toString()),N.environment=n,N.clientId=o,N.realm=a,N.target=l,N.userAssertionHash=C,N.tokenType=nn.isEmpty(_)?fa.BEARER:_,S&&(N.requestedClaims=S,N.requestedClaimsHash=R),((H=N.tokenType)==null?void 0:H.toLowerCase())!==fa.BEARER.toLowerCase())switch(N.credentialType=Yn.ACCESS_TOKEN_WITH_AUTH_SCHEME,N.tokenType){case fa.POP:var F=v_.extractTokenClaims(i,p);if((O=F==null?void 0:F.cnf)==null||!O.kid)throw ln.createTokenClaimsRequiredError();N.keyId=F.cnf.kid;break;case fa.SSH:N.keyId=T}return N},e.isAccessTokenEntity=function(t){return!!t&&t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.hasOwnProperty("target")&&(t.credentialType===Yn.ACCESS_TOKEN||t.credentialType===Yn.ACCESS_TOKEN_WITH_AUTH_SCHEME)},e})(EQ),uR=(function(r){function e(){return r!==null&&r.apply(this,arguments)||this}return lp(e,r),e.createRefreshTokenEntity=function(t,n,i,o,a,l){var u=new e;return u.clientId=o,u.credentialType=Yn.REFRESH_TOKEN,u.environment=n,u.homeAccountId=t,u.secret=i,u.userAssertionHash=l,a&&(u.familyId=a),u},e.isRefreshTokenEntity=function(t){return!!t&&t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===Yn.REFRESH_TOKEN},e})(EQ),Wae=["interaction_required","consent_required","login_required"],ztt=["message_only","additional_action","basic_action","user_password_expired","consent_required"],dR={noTokensFoundError:{code:"no_tokens_found",desc:"No refresh token found in the cache. Please sign-in."},native_account_unavailable:{code:"native_account_unavailable",desc:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API."}},Im=(function(r){function e(t,n,i,o,a,l,u){return t=r.call(this,t,n,i)||this,Object.setPrototypeOf(t,e.prototype),t.timestamp=o||It.EMPTY_STRING,t.traceId=a||It.EMPTY_STRING,t.correlationId=l||It.EMPTY_STRING,t.claims=u||It.EMPTY_STRING,t.name="InteractionRequiredAuthError",t}return lp(e,r),e.isInteractionRequiredError=function(o,n,a){var o=!!o&&-1<Wae.indexOf(o),a=!!a&&-1<ztt.indexOf(a),l=!!n&&Wae.some(function(u){return-1<n.indexOf(u)});return o||l||a},e.createNoTokensFoundError=function(){return new e(dR.noTokensFoundError.code,dR.noTokensFoundError.desc)},e.createNativeAccountUnavailableError=function(){return new e(dR.native_account_unavailable.code,dR.native_account_unavailable.desc)},e})(xn),eB=function(r,e,t,n,i){this.account=r||null,this.idToken=e||null,this.accessToken=t||null,this.refreshToken=n||null,this.appMetadata=i||null},nb=(function(){function r(){}return r.setRequestState=function(e,t,n){return e=r.generateLibraryState(e,n),nn.isEmpty(t)?e:""+e+It.RESOURCE_DELIM+t},r.generateLibraryState=function(e,t){var n;if(e)return n={id:e.createNewGuid()},t&&(n.meta=t),t=JSON.stringify(n),e.base64Encode(t);throw ln.createNoCryptoObjectError("generateLibraryState")},r.parseRequestState=function(e,t){if(!e)throw ln.createNoCryptoObjectError("parseRequestState");if(nn.isEmpty(t))throw ln.createInvalidStateError(t,"Null, undefined or empty state");try{var n=t.split(It.RESOURCE_DELIM),i=n[0],o=1<n.length?n.slice(1).join(It.RESOURCE_DELIM):It.EMPTY_STRING,a=e.base64Decode(i),l=JSON.parse(a);return{userRequestState:nn.isEmpty(o)?It.EMPTY_STRING:o,libraryState:l}}catch(u){throw ln.createInvalidStateError(t,u)}},r})(),ko=(function(){function r(e){if(this._urlString=e,nn.isEmpty(this._urlString))throw is.createUrlEmptyError();nn.isEmpty(this.getHash())&&(this._urlString=r.canonicalizeUri(e))}return Object.defineProperty(r.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),r.canonicalizeUri=function(e){var t;return e&&(t=e.toLowerCase(),nn.endsWith(t,"?")?t=t.slice(0,-1):nn.endsWith(t,"?/")&&(t=t.
vendor: 6,807 bytes, line 713
713slice(0,-2)),nn.endsWith(t,"/")||(t+="/"),t)},r.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(t){throw is.createUrlParseError(t)}if(!e.HostNameAndPort||!e.PathSegments)throw is.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw is.createInsecureAuthorityUriError(this.urlString)},r.appendQueryString=function(e,t){return nn.isEmpty(t)?e:e.indexOf("?")<0?e+"?"+t:e+"&"+t},r.removeHashFromUrl=function(e){return r.canonicalizeUri(e.split("#")[0])},r.prototype.replaceTenantPath=function(e){var t=this.getUrlComponents(),n=t.PathSegments;return!e||n.length===0||n[0]!==jT.COMMON&&n[0]!==jT.ORGANIZATIONS||(n[0]=e),r.constructAuthorityUriFromObject(t)},r.prototype.getHash=function(){return r.parseHash(this.urlString)},r.prototype.getUrlComponents=function(){var e,t=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(t);if(t)return e=(e=(t={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]}).AbsolutePath.split("/")).filter(function(n){return n&&0<n.length}),t.PathSegments=e,!nn.isEmpty(t.QueryString)&&t.QueryString.endsWith("/")&&(t.QueryString=t.QueryString.substring(0,t.QueryString.length-1)),t;throw is.createUrlParseError("Given url string: "+this.urlString)},r.getDomainFromUrl=function(e){var t=RegExp("^([^:/?#]+://)?([^/?#]*)"),t=e.match(t);if(t)return t[2];throw is.createUrlParseError("Given url string: "+e)},r.getAbsoluteUrl=function(e,t){return e[0]===It.FORWARD_SLASH?(t=new r(t).getUrlComponents()).Protocol+"//"+t.HostNameAndPort+e:e},r.parseHash=function(e){var t=e.indexOf("#"),n=e.indexOf("#/");return-1<n?e.substring(n+2):-1<t?e.substring(t+1):It.EMPTY_STRING},r.parseQueryString=function(e){var t=e.indexOf("?"),n=e.indexOf("/?");return-1<n?e.substring(n+2):-1<t?e.substring(t+1):It.EMPTY_STRING},r.constructAuthorityUriFromObject=function(e){return new r(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))},r.getDeserializedHash=function(n){if(nn.isEmpty(n))return{};var t=r.parseHash(n),n=nn.queryStringToObject(nn.isEmpty(t)?n:t);if(n)return n;throw ln.createHashNotDeserializedError(JSON.stringify(n))},r.getDeserializedQueryString=function(n){if(nn.isEmpty(n))return{};var t=r.parseQueryString(n),n=nn.queryStringToObject(nn.isEmpty(t)?n:t);if(n)return n;throw ln.createHashNotDeserializedError(JSON.stringify(n))},r.hashContainsKnownProperties=function(e){return!(nn.isEmpty(e)||e.indexOf("=")<0||!((e=r.getDeserializedHash(e)).code||e.error_description||e.error||e.state))},r})(),jtt=((function(r){r.AcquireTokenByCode="acquireTokenByCode",r.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",r.AcquireTokenSilent="acquireTokenSilent",r.AcquireTokenSilentAsync="acquireTokenSilentAsync",r.AcquireTokenPopup="acquireTokenPopup",r.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",r.CryptoOptsSignJwt="cryptoOptsSignJwt",r.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",r.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",r.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",r.SsoSilent="ssoSilent",r.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",r.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",r.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",r.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",r.BrokerHandhshake="brokerHandshake",r.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",r.AcquireTokenByBroker="acquireTokenByBroker",r.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",r.RefreshTokenClientAcquireToken="refreshTokenClientAcquireToken",r.RefreshTokenClientAcquireTokenWithCachedRefreshToken="refreshTokenClientAcquireTokenWithCachedRefreshToken",r.RefreshTokenClientAcquireTokenByRefreshToken="refreshTokenClientAcquireTokenByRefreshToken",r.RefreshTokenClientCreateTokenRequestBody="refreshTokenClientCreateTokenRequestBody",r.AcquireTokenFromCache="acquireTokenFromCache",r.AcquireTokenBySilentIframe="acquireTokenBySilentIframe",r.InitializeBaseRequest="initializeBaseRequest",r.InitializeSilentRequest="initializeSilentRequest",r.InitializeClientApplication="initializeClientApplication",r.SilentIframeClientTokenHelper="silentIframeClientTokenHelper",r.SilentHandlerInitiateAuthRequest="silentHandlerInitiateAuthRequest",r.SilentHandlerMonitorIframeForHash="silentHandlerMonitorIframeForHash",r.SilentHandlerLoadFrame="silentHandlerLoadFrame",r.StandardInteractionClientCreateAuthCodeClient="standardInteractionClientCreateAuthCodeClient",r.StandardInteractionClientGetClientConfiguration="standardInteractionClientGetClientConfiguration",r.StandardInteractionClientInitializeAuthorizationRequest="standardInteractionClientInitializeAuthorizationRequest",r.StandardInteractionClientInitializeAuthorizationCodeRequest="standardInteractionClientInitializeAuthorizationCodeRequest",r.GetAuthCodeUrl="getAuthCodeUrl",r.HandleCodeResponseFromServer="handleCodeResponseFromServer",r.HandleCodeResponseFromHash="handleCodeResponseFromHash",r.UpdateTokenEndpointAuthority="updateTokenEndpointAuthority",r.AuthClientAcquireToken="authClientAcquireToken",r.AuthClientExecuteTokenRequest="authClientExecuteTokenRequest",r.AuthClientCreateTokenRequestBody="authClientCreateTokenRequestBody",r.AuthClientCreateQueryString="authClientCreateQueryString",r.PopTokenGenerateCnf="popTokenGenerateCnf",r.PopTokenGenerateKid="popTokenGenerateKid",r.HandleServerTokenResponse="handleServerTokenResponse",r.AuthorityFactoryCreateDiscoveredInstance="authorityFactoryCreateDiscoveredInstance",r.AuthorityResolveEndpointsAsync="authorityResolveEndpointsAsync",r.AuthorityGetCloudDiscoveryMetadataFromNetwork="authorityGetCloudDiscoveryMetadataFromNetwork",r.AuthorityUpdateCloudDiscoveryMetadata="authorityUpdateCloudDiscoveryMetadata",r.AuthorityGetEndpointMetadataFromNetwork="authorityGetEndpointMetadataFromNetwork",r.AuthorityUpdateEndpointMetadata="authorityUpdateEndpointMetadata",r.AuthorityUpdateMetadataWithRegionalInformation="authorityUpdateMetadataWithRegionalInformation",r.RegionDiscoveryDetectRegion="regionDiscoveryDetectRegion",r.RegionDiscoveryGetRegionFromIMDS="regionDiscoveryGetRegionFromIMDS",r.RegionDiscoveryGetCurrentVersion="regionDiscoveryGetCurrentVersion",r.AcquireTokenByCodeAsync="acquireTokenByCodeAsync",r.GetEndpointMetadataFromNetwork="getEndpointMetadataFromNetwork",r.GetCloudDiscoveryMetadataFromNetworkMeasurement="getCloudDiscoveryMetadataFromNetworkMeasurement",r.HandleRedirectPromiseMeasurement="handleRedirectPromiseMeasurement",r.UpdateCloudDiscoveryMetadataMeasurement="updateCloudDiscoveryMetadataMeasurement",r.UsernamePasswordCl
713ientAcquireToken="usernamePasswordClientAcquireToken",r.NativeMessageHandlerHandshake="nativeMessageHandlerHandshake",r.ClearTokensAndKeysWithClaims="clearTokensAndKeysWithClaims"})(Qt=Qt||{}),(function(r){r[r.NotStarted=0]="NotStarted",r[r.InProgress=1]="InProgress",r[r.Completed=2]="Completed"})(QU=QU||{}),new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status"])),WP=((function(r){r.SW="sw",r.UHW="uhw"})(Yj=Yj||{}),(function(){function r(e,t){this.cryptoUtils=e,this.performanceClient=t}return r.prototype.generateCnf=function(e){var t;return yi(this,void 0,void 0,function(){var n,i;return vi(this,function(o){switch(o.label){case 0:return(t=this.performanceClient)!=null&&t.addQueueMeasurement(Qt.PopTokenGenerateCnf,e.correlationId),(t=this.performanceClient)!=null&&t.setPreQueueTime(Qt.PopTokenGenerateKid,e.correlationId),[4,this.generateKid(e)];case 1:return i=o.sent(),n=this.cryptoUtils.base64Encode(JSON.stringify(i)),i={kid:i.kid,reqCnfString:n},[4,this.cryptoUtils.hashString(n)];case 2:return[2,(i.reqCnfHash=o.sent(),i)]}})})},r.prototype.generateKid=function(e){var t;return yi(this,void 0,void 0,function(){return vi(this,function(n){switch(n.label){case 0:return(t=this.performanceClient)!=null&&t.addQueueMeasurement(Qt.PopTokenGenerateKid,e.correlationId),[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return[2,{kid:n.sent(),xms_ksl:Yj.SW}]}})})},r.prototype.signPopToken=function(e,t,n){return yi(this,void 0,void 0,function(){return vi(this,function(i){return[2,this.signPayload(e,t,n)]})})},r.prototype.signPayload=function(e,t,n,i){return yi(this,void 0,void 0,function(){var o,a,l,u;return vi(this,function(h){switch(h.label){case 0:return o=n.resourceRequestMethod,u=n.resourceRequestUri,a=n.shrClaims,l=n.shrNonce,u=u?new ko(u):void 0,u=u==null?void 0:u.getUrlComponents(),[4,this.cryptoUtils.signJwt(ha({at:e,ts:Nm.nowSeconds(),m:o==null?void 0:o.toUpperCase(),u:u==null?void 0:u.HostNameAndPort,nonce:l||this.cryptoUtils.createNewGuid(),p:u==null?void 0:u.AbsolutePath,q:u!=null&&u.QueryString?[[],u.QueryString]:void 0,client_claims:a||void 0},i),t,n.correlationId)];case 1:return[2,h.sent()]}})})},r})()),OY=(function(){function r(){}return r.prototype.generateAppMetadataKey=function(){return r.generateAppMetadataCacheKey(this.environment,this.clientId)},r.generateAppMetadataCacheKey=function(e,t){return[kY,e,t].join(Kc.CACHE_KEY_SEPARATOR).toLowerCase()},r.createAppMetadataEntity=function(e,t,n){var i=new r;return i.clientId=e,i.environment=t,n&&(i.familyId=n),i},r.isAppMetadataEntity=function(e,t){return!!t&&e.indexOf(kY)===0&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment")},r})(),Vtt=(function(){function r(e,t){this.cache=e,this.hasChanged=t}return Object.defineProperty(r.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),r})(),tB=(function(){function r(e,t,n,i,o,a,l){this.clientId=e,this.cacheStorage=t,this.cryptoObj=n,this.logger=i,this.serializableCache=o,this.persistencePlugin=a,this.performanceClient=l}return r.prototype.validateServerAuthorizationCodeResponse=function(e,t,n){if(!e.state||!t)throw e.state?ln.createStateNotFoundError("Cached State"):ln.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw ln.createStateMismatchError();if(e.error||e.error_description||e.suberror)throw Im.isInteractionRequiredError(e.error,e.error_description,e.suberror)?new Im(e.error||It.EMPTY_STRING,e.error_description,e.suberror,e.timestamp||It.EMPTY_STRING,e.trace_id||It.EMPTY_STRING,e.correlation_id||It.EMPTY_STRING,e.claims||It.EMPTY_STRING):new mS(e.error||It.EMPTY_STRING,e.error_description,e.suberror);e.client_info&&XU(e.client_info,n)},r.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(Im.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new Im(e.error,e.error_description,e.suberror,e.timestamp||It.EMPTY_STRING,e.trace_id||It.EMPTY_STRING,e.correlation_id||It.EMPTY_STRING,e.claims||It.EMPTY_STRING);var t=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new mS(e.error,t,e.suberror)}},r.prototype.handleServerTokenResponse=function(e,t,n,i,o,a,l,u,h){var p;return yi(this,void 0,void 0,function(){var m,_,C,T,S;return vi(this,function(R){switch(R.label){case 0:if((p=this.performanceClient)!=null&&p.addQueueMeasurement(Qt.HandleServerTokenResponse,e.correlation_id),e.id_token){if(m=new v_(e.id_token||It.EMPTY_STRING,this.cryptoObj),o&&!nn.isEmpty(o.nonce)&&m.claims.nonce!==o.nonce)throw ln.createNonceMismatchError();if(i.maxAge||i.maxAge===0){if(!(C=m.claims.auth_time))throw ln.createAuthTimeNotFoundError();v_.checkMaxAge(C,i.maxAge)}}this.homeAccountIdentifier=ad.generateHomeAccountId(e.client_info||It.EMPTY_STRING,t.authorityType,this.logger,this.cryptoObj,m),o&&o.state&&(_=nb.parseRequestState(this.cryptoObj,o.state)),e.key_id=e.key_id||i.sshKid||void 0,C=this.generateCacheRecord(e,t,n,i,m,a,o),R.label=1;case 1:return R.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),T=new Vtt(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(T)]):[3,3];case 2:R.sent(),R.label=3;case 3:return!l||u||!C.account||(S=C.account.generateAccountKey(),this.cacheStorage.getAccount(S))?[4,this.cacheStorage.saveCacheRecord(C)]:(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,r.generateAuthenticationResult(this.cryptoObj,t,C,!1,i,m,_,void 0,h)]);case 4:return R.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&T?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(T)]):[3,7];case 6:R.sent(),R.label=7;
713case 7:return[7];case 8:return[2,r.generateAuthenticationResult(this.cryptoObj,t,C,!1,i,m,_,e,h)]}})})},r.prototype.generateCacheRecord=function(e,t,n,i,R,a,T){var u,h,p=t.getPreferredCache();if(nn.isEmpty(p))throw ln.createInvalidCacheEnvironmentError();!nn.isEmpty(e.id_token)&&R&&(u=lT.createIdTokenEntity(this.homeAccountIdentifier,p,e.id_token||It.EMPTY_STRING,this.clientId,R.claims.tid||It.EMPTY_STRING),h=this.generateAccountEntity(e,R,t,T));var m,_,C,T=null,S=(nn.isEmpty(e.access_token)||(m=e.scope?Fd.fromString(e.scope):new Fd(i.scopes||[]),C=(_=n+((typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0))+((typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0),n=(S=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0)&&0<S?n+S:void 0,T=cT.createAccessTokenEntity(this.homeAccountIdentifier,p,e.access_token||It.EMPTY_STRING,this.clientId,R?R.claims.tid||It.EMPTY_STRING:t.tenant,m.printScopes(),_,C,this.cryptoObj,n,e.token_type,a,e.key_id,i.claims,i.requestedClaimsHash)),null),R=(nn.isEmpty(e.refresh_token)||(S=uR.createRefreshTokenEntity(this.homeAccountIdentifier,p,e.refresh_token||It.EMPTY_STRING,this.clientId,e.foci,a)),null);return nn.isEmpty(e.foci)||(R=OY.createAppMetadataEntity(this.clientId,p,e.foci)),new eB(h,u,T,S,R)},r.prototype.generateAccountEntity=function(e,t,n,l){var o=n.authorityType,a=l?l.cloud_graph_host_name:It.EMPTY_STRING,l=l?l.msgraph_host:It.EMPTY_STRING;if(o===kh.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),ad.createGenericAccount(this.homeAccountIdentifier,t,n,a,l);if(nn.isEmpty(e.client_info)&&n.protocolMode==="AAD")throw ln.createClientInfoEmptyError();return e.client_info?ad.createAccount(e.client_info,this.homeAccountIdentifier,t,n,a,l):ad.createGenericAccount(this.homeAccountIdentifier,t,n,a,l)},r.generateAuthenticationResult=function(e,t,n,i,o,a,l,u,h){var p;return yi(this,void 0,void 0,function(){var m,_,C,T,S,R,O,N;return vi(this,function(H){switch(H.label){case 0:if(m=It.EMPTY_STRING,_=[],C=null,S=It.EMPTY_STRING,!n.accessToken)return[3,4];if(n.accessToken.tokenType!==fa.POP)return[3,2];if(O=new WP(e),R=n.accessToken,N=R.secret,R=R.keyId)return[4,O.signPopToken(N,R,o)];throw ln.createKeyIdMissingError();case 1:return m=H.sent(),[3,3];case 2:m=n.accessToken.secret,H.label=3;case 3:_=Fd.fromString(n.accessToken.target).asArray(),C=new Date(1e3*Number(n.accessToken.expiresOn)),T=new Date(1e3*Number(n.accessToken.extendedExpiresOn)),H.label=4;case 4:return n.appMetadata&&(S=n.appMetadata.familyId===lN?lN:It.EMPTY_STRING),O=(a==null?void 0:a.claims.oid)||(a==null?void 0:a.claims.sub)||It.EMPTY_STRING,N=(a==null?void 0:a.claims.tid)||It.EMPTY_STRING,u!=null&&u.spa_accountid&&n.account&&(n.account.nativeAccountId=u==null?void 0:u.spa_accountid),[2,{authority:t.canonicalAuthority,uniqueId:O,tenantId:N,scopes:_,account:n.account?n.account.getAccountInfo():null,idToken:a?a.rawToken:It.EMPTY_STRING,idTokenClaims:a?a.claims:{},accessToken:m,fromCache:i,expiresOn:C,correlationId:o.correlationId,requestId:h||It.EMPTY_STRING,extExpiresOn:T,familyId:S,tokenType:((p=n.accessToken)==null?void 0:p.tokenType)||It.EMPTY_STRING,state:l?l.userRequestState:It.EMPTY_STRING,cloudGraphHostName:((p=n.account)==null?void 0:p.cloudGraphHostName)||It.EMPTY_STRING,msGraphHost:((p=n.account)==null?void 0:p.msGraphHost)||It.EMPTY_STRING,code:u==null?void 0:u.spa_code,fromNativeBroker:!1}]}})})},r})(),pwe=(function(r){function e(t,n){return t=r.call(this,t,n)||this,t.includeRedirectUri=!0,t}return lp(e,r),e.prototype.getAuthCodeUrl=function(t){var n;return yi(this,void 0,void 0,function(){var i;return vi(this,function(o){switch(o.label){case 0:return(n=this.performanceClient)!=null&&n.addQueueMeasurement(Qt.GetAuthCodeUrl,t.correlationId),(n=this.performanceClient)!=null&&n.setPreQueueTime(Qt.AuthClientCreateQueryString,t.correlationId),[4,this.createAuthCodeUrlQueryString(t)];case 1:return i=o.sent(),[2,ko.appendQueryString(this.authority.authorizationEndpoint,i)]}})})},e.prototype.acquireToken=function(t,n){var i,o;return yi(this,void 0,void 0,function(){var a,l,u,h,p,m=this;return vi(this,function(_){switch(_.label){case 0:if(t&&t.code)return(i=this.performanceClient)!=null&&i.addQueueMeasurement(Qt.AuthClientAcquireToken,t.correlationId),a=(i=this.performanceClient)==null?void 0:i.startMeasurement("AuthCodeClientAcquireToken",t.correlationId),this.logger.info("in acquireToken call in auth-code client"),l=Nm.nowSeconds(),(i=this.performanceClient)!=null&&i.setPreQueueTime(Qt.AuthClientExecuteTokenRequest,t.correlationId),[4,this.executeTokenRequest(this.authority,t)];throw ln.createTokenRequestCannotBeMadeError();case 1:return u=_.sent(),h=(i=u.headers)==null?void 0:i[sg.X_MS_REQUEST_ID],(p=(o=u.headers)==null?void 0:o[sg.X_MS_HTTP_VERSION])&&a!=null&&a.addStaticFields({httpVerAuthority:p}),(p=new tB(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient)).validateTokenResponse(u.body),(
vendor: 7,028 bytes, line 713
713o=this.performanceClient)!=null&&o.setPreQueueTime(Qt.HandleServerTokenResponse,t.correlationId),[2,p.handleServerTokenResponse(u.body,this.authority,l,t,n,void 0,void 0,void 0,h).then(function(C){return a!=null&&a.endMeasurement({success:!0}),C}).catch(function(C){throw m.logger.verbose("Error in fetching token in ACC",t.correlationId),a!=null&&a.endMeasurement({errorCode:C.errorCode,subErrorCode:C.subError,success:!1}),C})]}})})},e.prototype.handleFragmentResponse=function(o,n){var i=new tB(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),o=new ko(o),o=ko.getDeserializedHash(o.getHash());if(i.validateServerAuthorizationCodeResponse(o,n,this.cryptoUtils),o.code)return ha(ha({},o),{code:o.code});throw ln.createNoAuthCodeInServerResponseError()},e.prototype.getLogoutUri=function(t){if(t)return t=this.createLogoutUrlQueryString(t),ko.appendQueryString(this.authority.endSessionEndpoint,t);throw is.createEmptyLogoutRequestError()},e.prototype.executeTokenRequest=function(t,n){var i;return yi(this,void 0,void 0,function(){var o,a,l,u,h;return vi(this,function(p){switch(p.label){case 0:return(i=this.performanceClient)!=null&&i.addQueueMeasurement(Qt.AuthClientExecuteTokenRequest,n.correlationId),(i=this.performanceClient)!=null&&i.setPreQueueTime(Qt.AuthClientCreateTokenRequestBody,n.correlationId),o=this.createTokenQueryParameters(n),o=ko.appendQueryString(t.tokenEndpoint,o),[4,this.createTokenRequestBody(n)];case 1:if(a=p.sent(),u=void 0,n.clientInfo)try{l=XU(n.clientInfo,this.cryptoUtils),u={credential:""+l.uid+Kc.CLIENT_INFO_SEPARATOR+l.utid,type:ng.HOME_ACCOUNT_ID}}catch(m){this.logger.verbose("Could not parse client info for CCS Header: "+m)}return u=this.createTokenRequestHeaders(u||n.ccsCredential),h={clientId:this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:n.scopes,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},[2,this.executePostToTokenEndpoint(o,a,u,h)]}})})},e.prototype.createTokenRequestBody=function(t){var n;return yi(this,void 0,void 0,function(){var i,o,a,l,u,h;return vi(this,function(p){switch(p.label){case 0:return(n=this.performanceClient)!=null&&n.addQueueMeasurement(Qt.AuthClientCreateTokenRequestBody,t.correlationId),(i=new dN).addClientId(this.config.authOptions.clientId),this.includeRedirectUri?i.addRedirectUri(t.redirectUri):Px.validateRedirectUri(t.redirectUri),i.addScopes(t.scopes),i.addAuthorizationCode(t.code),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addThrottling(),this.serverTelemetryManager&&i.addServerTelemetry(this.serverTelemetryManager),t.codeVerifier&&i.addCodeVerifier(t.codeVerifier),this.config.clientCredentials.clientSecret&&i.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(o=this.config.clientCredentials.clientAssertion,i.addClientAssertion(o.assertion),i.addClientAssertionType(o.assertionType)),i.addGrantType(WU.AUTHORIZATION_CODE_GRANT),i.addClientInfo(),t.authenticationScheme!==fa.POP?[3,2]:(o=new WP(this.cryptoUtils,this.performanceClient),(n=this.performanceClient)!=null&&n.setPreQueueTime(Qt.PopTokenGenerateCnf,t.correlationId),[4,o.generateCnf(t)]);case 1:return a=p.sent(),i.addPopToken(a.reqCnfString),[3,3];case 2:if(t.authenticationScheme===fa.SSH){if(!t.sshJwk)throw is.createMissingSshJwkError();i.addSshJwk(t.sshJwk)}p.label=3;case 3:if(a=t.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(a),(!nn.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&0<this.config.authOptions.clientCapabilities.length)&&i.addClaims(t.claims,this.config.authOptions.clientCapabilities),l=void 0,t.clientInfo)try{u=XU(t.clientInfo,this.cryptoUtils),l={credential:""+u.uid+Kc.CLIENT_INFO_SEPARATOR+u.utid,type:ng.HOME_ACCOUNT_ID}}catch(m){this.logger.verbose("Could not parse client info for CCS Header: "+m)}else l=t.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&l)switch(l.type){case ng.HOME_ACCOUNT_ID:try{u=cR(l.credential),i.addCcsOid(u)}catch(m){this.logger.verbose("Could not parse home account ID for CCS Header: "+m)}break;case ng.UPN:i.addCcsUpn(l.credential)}return t.tokenBodyParameters&&i.addExtraQueryParameters(t.tokenBodyParameters),!t.enableSpaAuthorizationCode||t.tokenBodyParameters&&t.tokenBodyParameters[xi.RETURN_SPA_CODE]||i.addExtraQueryParameters(((h={})[xi.RETURN_SPA_CODE]="1",h)),[2,i.createQueryString()]}})})},e.prototype.createAuthCodeUrlQueryString=function(t){var n;return yi(this,void 0,void 0,function(){var i,o,a,l;return vi(this,function(u){switch(u.label){case 0:if((n=this.performanceClient)!=null&&n.addQueueMeasurement(Qt.AuthClientCreateQueryString,t.correlationId),(i=new dN).addClientId(this.config.authOptions.clientId),o=i9(t.scopes||[],t.extraScopesToConsent||[]),i.addScopes(o),i.addRedirectUri(t.redirectUri),o=t.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(o),i.addResponseMode(t.responseMode),i.addResponseTypeCode(),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addClientInfo(),t.codeChallenge&&t.codeChallengeMethod&&i.addCodeChallengeParams(t.codeChallenge,t.codeChallengeMethod),t.prompt&&i.addPrompt(t.prompt),t.domainHint&&i.addDomainHint(t.domainHint),t.prompt!==jd.SELECT_ACCOUNT)if(t.sid&&t.prompt===jd.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),i.addSid(t.sid);else if(t.account){if(o=this.extractAccountSid(t.account),l=this.extractLoginHint(t.account)){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),i.addLoginHint(l);try{a=cR(t.account.homeAccountId),i.addCcsOid(a)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(o&&t.prompt===jd.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),i.addSid(o);try{a=cR(t.account.homeAccountId),i.addCcsOid(a)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(t.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),i.addLoginHint(t.loginHint),i.addCcsUpn(t.loginHint);else if(t.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),i.addLoginHint(t.account.username);try{a=cR(t.account.homeAccountId),i.addCcsOid(a)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else t.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),i.addLoginHint(t.loginHint),i.addCcsUpn(t.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");
713return t.nonce&&i.addNonce(t.nonce),t.state&&i.addState(t.state),(!nn.isEmpty(t.claims)||this.config.authOptions.clientCapabilities&&0<this.config.authOptions.clientCapabilities.length)&&i.addClaims(t.claims,this.config.authOptions.clientCapabilities),t.extraQueryParameters&&i.addExtraQueryParameters(t.extraQueryParameters),t.nativeBroker?(i.addNativeBroker(),t.authenticationScheme!==fa.POP?[3,2]:[4,new WP(this.cryptoUtils).generateCnf(t)]):[3,2];case 1:l=u.sent(),i.addPopToken(l.reqCnfString),u.label=2;case 2:return[2,i.createQueryString()]}})})},e.prototype.createLogoutUrlQueryString=function(t){var n=new dN;return t.postLogoutRedirectUri&&n.addPostLogoutRedirectUri(t.postLogoutRedirectUri),t.correlationId&&n.addCorrelationId(t.correlationId),t.idTokenHint&&n.addIdTokenHint(t.idTokenHint),t.state&&n.addState(t.state),t.logoutHint&&n.addLogoutHint(t.logoutHint),t.extraQueryParameters&&n.addExtraQueryParameters(t.extraQueryParameters),n.createQueryString()},e.prototype.extractAccountSid=function(t){return((t=t.idTokenClaims)==null?void 0:t.sid)||null},e.prototype.extractLoginHint=function(t){return((t=t.idTokenClaims)==null?void 0:t.login_hint)||null},e})(wQ),gwe=(function(r){function e(t,n){return r.call(this,t,n)||this}return lp(e,r),e.prototype.acquireToken=function(t){var n,i,o;return yi(this,void 0,void 0,function(){var a,l,u,h,p,m=this;return vi(this,function(_){switch(_.label){case 0:return(n=this.performanceClient)!=null&&n.addQueueMeasurement(Qt.RefreshTokenClientAcquireToken,t.correlationId),a=(n=this.performanceClient)==null?void 0:n.startMeasurement(Qt.RefreshTokenClientAcquireToken,t.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",t.correlationId),l=Nm.nowSeconds(),(n=this.performanceClient)!=null&&n.setPreQueueTime(Qt.RefreshTokenClientExecuteTokenRequest,t.correlationId),[4,this.executeTokenRequest(t,this.authority)];case 1:return u=_.sent(),h=(n=u.headers)==null?void 0:n[sg.X_MS_HTTP_VERSION],a!=null&&a.addStaticFields({refreshTokenSize:((i=u.body.refresh_token)==null?void 0:i.length)||0}),h&&a!=null&&a.addStaticFields({httpVerToken:h}),h=(i=u.headers)==null?void 0:i[sg.X_MS_REQUEST_ID],(p=new tB(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(u.body),(o=this.performanceClient)!=null&&o.setPreQueueTime(Qt.HandleServerTokenResponse,t.correlationId),[2,p.handleServerTokenResponse(u.body,this.authority,l,t,void 0,void 0,!0,t.forceCache,h).then(function(C){return a!=null&&a.endMeasurement({success:!0}),C}).catch(function(C){throw m.logger.verbose("Error in fetching refresh token",t.correlationId),a!=null&&a.endMeasurement({errorCode:C.errorCode,subErrorCode:C.subError,success:!1}),C})]}})})},e.prototype.acquireTokenByRefreshToken=function(t){var n,i;return yi(this,void 0,void 0,function(){var o,a;return vi(this,function(l){if(!t)throw is.createEmptyTokenRequestError();if((i=this.performanceClient)!=null&&i.addQueueMeasurement(Qt.RefreshTokenClientAcquireTokenByRefreshToken,t.correlationId),!t.account)throw ln.createNoAccountInSilentRequestError();if(this.cacheManager.isAppMetadataFOCI(t.account.environment))try{return(n=this.performanceClient)!=null&&n.setPreQueueTime(Qt.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!0)]}catch(u){if(o=u instanceof Im&&u.errorCode===dR.noTokensFoundError.code,a=u instanceof mS&&u.errorCode===Yae.INVALID_GRANT_ERROR&&u.subError===Yae.CLIENT_MISMATCH_ERROR,o||a)return(i=this.performanceClient)!=null&&i.setPreQueueTime(Qt.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!1)];throw u}return(i=this.performanceClient)!=null&&i.setPreQueueTime(Qt.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!1)]})})},e.prototype.acquireTokenWithCachedRefreshToken=function(t,n){var i;return yi(this,void 0,void 0,function(){var o,a;return vi(this,function(l){if((i=this.performanceClient)!=null&&i.addQueueMeasurement(Qt.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),o=(i=this.performanceClient)==null?void 0:i.startMeasurement(Qt.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",t.correlationId),a=this.cacheManager.getRefreshToken(t.account,n))return o!=null&&o.endMeasurement({success:!0}),a=ha(ha({},t),{refreshToken:a.secret,authenticationScheme:t.authenticationScheme||fa.BEARER,ccsCredential:{credential:t.account.homeAccountId,type:ng.HOME_ACCOUNT_ID}}),(i=this.performanceClient)!=null&&i.setPreQueueTime(Qt.RefreshTokenClientAcquireToken,t.correlationId),[2,this.acquireToken(a)];throw o!=null&&o.discardMeasurement(),Im.createNoTokensFoundError()})})},e.prototype.executeTokenRequest=function(t,n){var i;return yi(this,void 0,void 0,function(){var o,a,l,u,h;return vi(this,function(p){switch(p.label){case 0:return(i=this.performanceClient)!=null&&i.addQueueMeasurement(Qt.RefreshTokenClientExecuteTokenRequest,t.correlationId),o=(i=this.performanceClient)==null?void 0:i.startMeasurement(Qt.RefreshTokenClientExecuteTokenRequest,t.correlationId),(i=this.performanceClient)!=null&&i.setPreQueueTime(Qt.RefreshTokenClientCreateTokenRequestBody,t.correlationId),a=this.createTokenQueryParameters(t),a=ko.appendQueryString(n.tokenEndpoint,a),[4,this.createTokenRequestBody(t)];case 1:return l=p.sent(),u=this.createTokenRequestHeaders(t.ccsCredential),h={clientId:this.config.authOptions.clientId,authority:n.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},[2,this.executePostToTokenEndpoint(a,l,u,h).then(function(m){return o!=null&&o.endMeasurement({success:!0}),m}).catch(function(m){throw o!=null&&o.endMeasurement({success:!1}),m})]}})})},e.prototype.createTokenRequestBody=function(t){var n;return yi(this,void 0,void 0,function(){var i,o,a,l;return vi(this,function(u){switch(u.label){case 0:return(n=this.performanceClient)!=null&&n.addQueueMeasurement(Qt.RefreshTokenClientCreateTokenRequestBody,t.correlationId),a=t.correlationId,i=(n=this.performanceClient)==null?void 0:n.startMeasurement(Qt.BaseClientCreateTokenRequestHeaders,a),(o=new dN).addClientId(this.config.authOptions.clientId),o.addScopes(t.scopes),o.addGrantType(WU.REFRESH_TOKEN_GRANT),o.addClientInfo(),o.addLibraryInfo(this.config.libraryInfo),o.addApplicationTelemetry(this.config.telemetry.application),o.addThrottling(),this.serverTelemetryManager&&o.addServerTelemetry(this.serverTelemetryManager),o.addCorrelationId(a),o.addRefreshToken(t.refreshToken),this.config.clientCredentials.clientSecret&&o.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(a=this.config.clientCredentials.clientAssertion,o.addClientAssertion(a.assertion),o.addClientAssertionType(a.assertionType)),t.authenticationScheme!==fa.POP?[3,2]:(a=new WP(this.cryptoUtils,this.performanceClient),(n=this.performanceClient)!=null&&n.setPreQueueTime(Qt.PopTokenGenerateCnf,t.correlationId),[4,a.generateCnf(t)]);case 1:return a=u.sent(),o.addPopToken(a.reqCnfString),[3,3];case 2:if(t.authenticationScheme===fa.SSH){if(!t.sshJwk)throw i!=null&&i.endMeasurement({success:!1}),is.createMissingSshJwkError();o.addSshJwk(t.sshJwk)}u.label=3;case 3:if((!nn.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&0<this.config.authOptions.clientCapabilities.length)&&o.addClaims(t.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&t.ccsCredential)switch(t.ccsCredential.type){case ng.HOME_ACCOUNT_ID:try{l=cR(t.ccsCredential.credential),o.addCcsOid(l)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case ng.UPN:o.addCcsUpn(t.ccsCredential.credential)}return i!=null&&i.endMeasurement({success:!0}),[2,o.createQueryString()]}})})},e})(wQ),qtt=(function(r){function e(t,n){return r.call(this,t,n)||this}return lp(e,r),e.prototype.acquireToken=function(t){return yi(this,void 0,void 0,function(){var n;return vi(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.acquireCachedToken(t)];case 1:return[2,i.sent()];case 2:if((n=i.sent())instanceof ln&&n.errorCode===Rr.tokenRefreshRequired.code)return[2,new gwe(this.config,this.performanceClient).acquireTokenByRefreshToken(t)];throw n;case 3:return[2]}})})},e.prototype.acquireCachedToken=function(t){var n,i,o;return yi(this,void 0,void 0,function(){var a;return vi(this,function(l){switch(l.label){case 0:if(!t)throw is.createEmptyTokenRequestError();if(t.forceRefresh)throw(n=this.serverTelemetryManager)!=null&&n.setCacheOutcome(tE.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),ln.createRefreshRequiredError();if(!this.config.cacheOptions.claimsBasedCachingEnabled&&!nn.isEmptyObj(t.claims))throw(n=this.serverTelemetryManager)!=null&&n.setCacheOutcome(tE.CLAIMS_REQUESTED_CACHE_SKIPPED),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."),ln.createRefreshRequiredError();if(!t.account)throw ln.createNoAccountInSilentRequestError();if(a=t.authority||this.authority.getPreferredCache(),!(a=this.cacheManager.readCacheRecord(t.account,t,a)).accessToken)throw(i=this.serverTelemetryManager)!=null&&i.setCacheOutcome(tE.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),ln.createRefreshRequiredError();if(Nm.wasClockTurnedBack(a.accessToken.cachedAt)||Nm.isTokenExpired(a.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(i=this.serverTelemetryManager)!=null&&i.setCacheOutcome(tE.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),ln.createRefreshRequiredError();if(a.accessToken.refreshOn&&Nm.isTokenExpired(a.accessToken.refreshOn,0))throw(o=this.serverTelemetryManager)!=null&&o.setCacheOutcome(tE.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),ln.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(a,t)];case 1:return[2,l.sent()]}})})},e.prototype.generateResultFromCacheRecord=function(t,n){return yi(this,void 0,void 0,function(){var i,o;return vi(this,function(a){switch(a.label){case 0:if(t.idToken&&(i=new v_(t.idToken.secret,this.config.cryptoInterface)),n.maxAge||n.maxAge===0){if(!(o=i==null?void 0:i.claims.auth_time))throw ln.createAuthTimeNotFoundError();v_.checkMaxAge(o,n.maxAge)}return[4,tB.generateAuthenticationResult(this.cryptoUtils,this.authority,t,!0,n,i)];case 1:return[2,a.sent()]}})})},e})(wQ);function Gtt(r){return r.hasOwnProperty("authorization_endpoint")&&r.hasOwnProperty("token_endpoint")&&r.hasOwnProperty("issuer")&&r.hasOwnProperty("jwks_uri")}var ED,mwe={endpointMetadata:
vendor: 3,207 bytes, line 713
713{"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/o
vendor: 11,012 bytes, line 713
713auth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},
713instanceDiscoveryMetadata:{"https://login.microsoftonline.com/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/common/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/consumers/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/organizations/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}}},Kae=mwe.endpointMetadata,Zae=mwe.instanceDiscoveryMetadata,MY=((function(r){r.AAD="AAD",r.OIDC="OIDC"})(ED=ED||{}),(function(){function r(){this.expiresAt=Nm.nowSeconds()+cN.REFRESH_TIME_SECONDS}return r.prototype.updateCloudDiscoveryMetadata=function(e,t){this.aliases=e.aliases,this.preferred_cache=e.preferred_cache,this.preferred_network=e.preferred_network,this.aliasesFromNetwork=t},r.prototype.updateEndpointMetadata=function(e,t){this.authorization_endpoint=e.authorization_endpoint,this.token_endpoint=e.token_endpoint,this.end_session_endpoint=e.end_session_endpoint,this.issuer=e.issuer,this.endpointsFromNetwork=t,this.jwks_uri=e.jwks_uri},r.prototype.updateCanonicalAuthority=function(e){this.canonical_authority=e},r.prototype.resetExpiresAt=function(){this.expiresAt=Nm.nowSeconds()+cN.REFRESH_TIME_SECONDS},r.prototype.isExpired=function(){return this.expiresAt<=Nm.nowSeconds()},r.isAuthorityMetadataEntity=function(e,t){return!!t&&e.indexOf(cN.CACHE_KEY)===0&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")&&t.hasOwnProperty("jwks_uri")},r})());function Ytt(r){return r.hasOwnProperty("tenant_discovery_endpoint")&&r.hasOwnProperty("metadata")}function Wtt(r){return r.hasOwnProperty("error")&&r.hasOwnProperty("error_description")}var z1,bc,F0,Go,R0,hR,ns,pn,Xae,Qae,Bf,ui,Vw,Ktt=(function(){function r(e,t,n){this.networkInterface=e,this.performanceClient=t,this.correlationId=n}return r.prototype.detectRegion=function(e,t){var n,i;return yi(this,void 0,void 0,function(){var o,a,l,u;return vi(this,function(h){switch(h.label){case 0:if((n=this.performanceClient)!=null&&n.addQueueMeasurement(Qt.RegionDiscoveryDetectRegion,this.correlationId),o=e)return[3,8];a=r.IMDS_OPTIONS,h.label=1;case 1:return h.trys.push([1,6,,7]),(n=this.performanceClient)!=null&&n.setPreQueueTime(Qt.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(It.IMDS_VERSION,a)];case 2:return(l=h.sent()).status===lR.httpSuccess&&(o=l.body,t.region_source=jw.IMDS),l.status!==lR.httpBadRequest?[3,5]:((i=this.performanceClient)!=null&&i.setPreQueueTime(Qt.RegionDiscoveryGetCurrentVersion,this.correlationId),[4,this.getCurrentVersion(a)]);case 3:return(l=h.sent())?((i=this.performanceClient)!=null&&i.setPreQueueTime(Qt.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(l,a)]):(t.regi
vendor: 25,648 bytes, lines 713-717
713on_source=jw.FAILED_AUTO_DETECTION,[2,null]);case 4:(u=h.sent()).status===lR.httpSuccess&&(o=u.body,t.region_source=jw.IMDS),h.label=5;case 5:return[3,7];case 6:return h.sent(),t.region_source=jw.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:t.region_source=jw.ENVIRONMENT_VARIABLE,h.label=9;case 9:return o||(t.region_source=jw.FAILED_AUTO_DETECTION),[2,o||null]}})})},r.prototype.getRegionFromIMDS=function(e,t){var n;return yi(this,void 0,void 0,function(){return vi(this,function(i){return(n=this.performanceClient)!=null&&n.addQueueMeasurement(Qt.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[2,this.networkInterface.sendGetRequestAsync(It.IMDS_ENDPOINT+"?api-version="+e+"&format=text",t,It.IMDS_TIMEOUT)]})})},r.prototype.getCurrentVersion=function(e){var t;return yi(this,void 0,void 0,function(){var n;return vi(this,function(i){switch(i.label){case 0:(t=this.performanceClient)!=null&&t.addQueueMeasurement(Qt.RegionDiscoveryGetCurrentVersion,this.correlationId),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(It.IMDS_ENDPOINT+"?format=json",e)];case 2:return(n=i.sent()).status===lR.httpBadRequest&&n.body&&n.body["newest-versions"]&&0<n.body["newest-versions"].length?[2,n.body["newest-versions"][0]]:[2,null];case 3:return i.sent(),[2,null];case 4:return[2]}})})},r.IMDS_OPTIONS={headers:{Metadata:"true"}},r})(),CD=(function(){function r(e,t,n,i,o,a,l){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=n,this.authorityOptions=i,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=o,this.performanceClient=a,this.correlationId=l,this.regionDiscovery=new Ktt(t,this.performanceClient,this.correlationId)}return r.prototype.getAuthorityType=function(e){if(e.HostNameAndPort.endsWith(It.CIAM_AUTH_URL))return kh.Ciam;if(e=e.PathSegments,e.length)switch(e[0].toLowerCase()){case It.ADFS:return kh.Adfs;case It.DSTS:return kh.Dsts}return kh.Default},Object.defineProperty(r.prototype,"authorityType",{get:function(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(e){this._canonicalAuthority=new ko(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw ln.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw ln.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw ln.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(this.metadata.end_session_endpoint)return this.replacePath(this.metadata.end_session_endpoint);throw ln.createLogoutNotSupportedError()}throw ln.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw ln.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"jwksUri",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw ln.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),r.prototype.canReplaceTenant=function(e){return e.PathSegments.length===1&&!r.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===kh.Default&&this.protocolMode===ED.AAD},r.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},r.prototype.replacePath=function(e){var t=this,n=e,i=new ko(this.metadata.canonical_authority).getUrlComponents(),o=i.PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach(function(a,l){var u=o[l];l===0&&t.canReplaceTenant(i)&&u!==(l=new ko(t.metadata.authorization_endpoint).getUrlComponents().PathSegments[0])&&(t.logger.verbose("Replacing tenant domain name "+u+" with id "+l),u=l),a!==u&&(n=n.replace("/"+u+"/","/"+a+"/"))}),this.replaceTenant(n)},Object.defineProperty(r.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===kh.Adfs||this.authorityType===kh.Dsts||this.protocolMode===ED.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),r.prototype.discoveryComplete=function(){return!!this.metadata},r.prototype.resolveEndpointsAsync=function(){var e;return yi(this,void 0,void 0,function(){var t,n,i;return vi(this,function(o){switch(o.label){case 0:return(e=this.performanceClient)!=null&&e.addQueueMeasurement(Qt.AuthorityResolveEndpointsAsync,this.correlationId),(t=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort))||(t=new MY).updateCanonicalAuthority(this.canonicalAuthority),(e=this.performanceClient)!=null&&e.setPreQueueTime(Qt.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),[4,this.updateCloudDiscoveryMetadata(t)];case 1:return n=o.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,t.preferred_network),(e=this.performanceClient)!=null&&e.setPreQueueTime(Qt.AuthorityUpdateEndpointMetadata,this.correlationId),[4,this.updateEndpointMetadata(t)];case 2:return i=o.sent(),n!==hm.CACHE&&i!==hm.CACHE&&(t.resetExpiresAt(),t.updateCanonicalAuthority(this.canonicalAuthority)),i=this.cacheManager.generateAuthorityMetadataCacheKey(t.preferred_cache),this.cacheManager.setAuthorityMetadata(i,t),this.metadata=t,[2]}})})},r.prototype.updateEndpointMetadata=function(e){var t,n,i;return yi(this,void 0,void 0,function(){var o,a;return vi(this,function(l){switch(l.label){case 0:return(t=this.performanceClient)!=null&&t.addQueueMeasurement(Qt.AuthorityUpdateEndpointMetadata,this.correlationId),(o=this.getEndpointMetadataFromConfig())?(e.updateEndpointMetadata(o,!1),[2,hm.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,hm.CACHE]:((t=this.performanceClient)!=null&&t.setPreQueueTime(Qt.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),[4,this.getEndpointMetadataFromNetwork()]);case 1:return(o=l.sent())?(t=this.authorityOptions.azureRegionConfiguration)!=null&&t.azureRegion?((n=this.performanceClient)!=null&&n.setPreQueueTime(Qt.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(o)]):[3,3]:[3,4];case 2:o=l.sent(),l.label=3;case 3:return e.updateEndpointMetadata(o,!0),[2,hm.NETWORK];case 4:return!(a=this.getEndpointMetadataFromHardcodedValues())||this.authorityOptions.skipAuthorityMetadataCache?[3,7]:(n=this.authorityOptions.azureRegionConfiguration)!=null&&n.azureRegion?((i=this.performanceClient)!=null&&i.setPreQueueTime(Qt.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(a)]):[3,6];case 5:a=l.sent(),l.label=6;case 6:return e.updateEndpointMetadata(a,!1),[2,hm.HARDCODED_VALUES];case 7:throw ln.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},r.prototype.isAuthoritySameType=function(e){return new ko(e.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length},r.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw is.createInvalidAuthorityMetadataError()}return null},r.prototype.getEndpointMetadataFromNetwork=function(){var e;return yi(this,void 0,void 0,function(){var t,n;return vi(this,function(i){switch(i.label){case 0:(e=this.performanceClient)!=null&&e.addQueueMeasurement(Qt.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),t={},i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,t)];case 2:return[2,Gtt((n=i.sent()).body)?n.body:null];case 3:return i.sent(),[2,null];case 4:return[2]}})})},r.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in Kae?Kae[this.canonicalAuthority]:null},r.prototype.updateMetadataWithRegionalInformation=function(e){var t;return yi(this,void 0,void 0,function(){var n;return vi(this,function(i){switch(i.label){case 0:return(t=this.performanceClient)!=null&&t.addQueueMeasurement(Qt.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),(n=(t=this.authorityOptions.azureRegionConfiguration)==null?void 0:t.azureRegion)?n!==It.AZURE_REGION_AUTO_DISCOVER_FLAG?(this.regionDiscoveryMetadata.region_outcome=sN.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=n,[2,r.replaceWithRegionalInformation(e,n)]):((t=this.performanceClient)!=null&&t.setPreQueueTime(Qt.RegionDiscoveryDetectRegion,this.correlationId),[4,this.regionDiscovery.detectRegion((t=this.authorityOptions.azureRegionConfiguration)==null?void 0:t.environmentRegion,this.regionDiscoveryMetadata)]):[3,2];case 1:if(n=i.sent())return this.regionDiscoveryMetadata.region_outcome=sN.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=n,[2,r.replaceWithRegionalInformation(e,n)];this.regionDiscoveryMetadata.region_outcome=sN.AUTO_DETECTION_REQUESTED_FAILED,i.label=2;case 2:return[2,e]}})})},r.prototype.updateCloudDiscoveryMetadata=function(e){var t;return yi(this,void 0,void 0,function(){var n,i;return vi(this,function(o){switch(o.label){case 0:return(t=this.performanceClient)!=null&&t.addQueueMeasurement(Qt.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||It.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||It.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(e.canonical_authority||It.NOT_APPLICABLE)),(n=this.getCloudDiscoveryMetadataFromConfig())?(this.logger.verbose("Found cloud discovery metadata in the config."),e.updateCloudDiscoveryMetadata(n,!1),[2,hm.CONFIG]):(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."),i=e.isExpired(),this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!i?(this.logger.verbose("Found metadata in the cache."),[2,hm.CACHE]):(i&&this.logger.verbose("The metadata entity is expired."),this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network."),(t=this.performanceClient)!=null&&t.setPreQueueTime(Qt.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),[4,this.getCloudDiscoveryMetadataFromNetwork()]));case 1:if(n=o.sent())return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),e.updateCloudDiscoveryMetadata(n,!0),[2,hm.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),(i=this.getCloudDiscoveryMetadataFromHarcodedValues())&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),e.updateCloudDiscoveryMetadata(i,!1),[2,hm.HARDCODED_VALUES];throw this.logger.error("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error."),is.createUntrustedAuthorityError()}})})},r.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===kh.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),r.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");var e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),t=r.getCloudDiscoveryMetadataFromNetworkResponse(e.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),t)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),t;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),is.createInvalidCloudDiscoveryMetadataError()}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),r.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null},r.prototype.getCloudDiscoveryMetadataFromNetwork=function(){var e;return yi(this,void 0,void 0,function(){var t,n,i,o,a,l;return vi(this,function(u){switch(u.label){case 0:(e=this.performanceClient)!=null&&e.addQueueMeasurement(Qt.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),t=""+It.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",n={},i=null,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(t,n)];case 2:if(l=u.sent(),a=o=void 0,Ytt(l.body))o=l.body,a=o.metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+o.tenant_discovery_endpoint);else{if(!Wtt(l.body))return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),[2,null];if(this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: "+l.status),(o=l.body).error===It.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+o.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+o.error_description),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),a=[]}return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),i=r.getCloudDiscoveryMetadataFromNetworkResponse(a,this.hostnameAndPort),[3,4];case 3:return(l=u.sent())instanceof xn?this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
714Error: `+l.errorCode+`
715Error Description: `+l.errorMessage):this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
716Error: `+l.name+`
717Error Description: `+l.message),[2,null];case 4:return i||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),i=r.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,i]}})})},r.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in Zae?Zae[this.canonicalAuthority]:null},r.prototype.isInKnownAuthorities=function(){var e=this;return 0<this.authorityOptions.knownAuthorities.filter(function(t){return ko.getDomainFromUrl(t).toLowerCase()===e.hostnameAndPort}).length},r.generateAuthority=function(e,t){var n;return t&&t.azureCloudInstance!==wD.None&&(n=t.tenant||It.DEFAULT_COMMON_TENANT,n=t.azureCloudInstance+"/"+n+"/"),n||e},r.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},r.getCloudDiscoveryMetadataFromNetworkResponse=function(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(-1<i.aliases.indexOf(t))return i}return null},r.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw ln.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},r.prototype.isAlias=function(e){return-1<this.metadata.aliases.indexOf(e)},r.isPublicCloudAuthority=function(e){return 0<=It.KNOWN_PUBLIC_CLOUDS.indexOf(e)},r.buildRegionalAuthorityString=function(i,t,n){var i=new ko(i),a=(i.validateAsUri(),i.getUrlComponents()),o=t+"."+a.HostNameAndPort,a=(this.isPublicCloudAuthority(a.HostNameAndPort)&&(o=t+"."+It.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX),ko.constructAuthorityUriFromObject(ha(ha({},i.getUrlComponents()),{HostNameAndPort:o})).urlString);return n?a+"?"+n:a},r.replaceWithRegionalInformation=function(e,t){return e.authorization_endpoint=r.buildRegionalAuthorityString(e.authorization_endpoint,t),e.token_endpoint=r.buildRegionalAuthorityString(e.token_endpoint,t,It.REGIONAL_AUTH_NON_MSI_QUERY_STRING),e.end_session_endpoint&&(e.end_session_endpoint=r.buildRegionalAuthorityString(e.end_session_endpoint,t)),e},r.transformCIAMAuthority=function(n){var t=n.endsWith(It.FORWARD_SLASH)?n:""+n+It.FORWARD_SLASH,n=new ko(n).getUrlComponents();return t=n.PathSegments.length===0&&n.HostNameAndPort.endsWith(It.CIAM_AUTH_URL)?""+t+n.HostNameAndPort.split(".")[0]+It.AAD_TENANT_DOMAIN_SUFFIX:t},r.reservedTenantDomains=new Set(["{tenant}","{tenantid}",jT.COMMON,jT.CONSUMERS,jT.ORGANIZATIONS]),r})(),rB=(function(){function r(){}return r.createDiscoveredInstance=function(e,t,n,i,o,a,l){return yi(this,void 0,void 0,function(){var u,h;return vi(this,function(p){switch(p.label){case 0:a!=null&&a.addQueueMeasurement(Qt.AuthorityFactoryCreateDiscoveredInstance,l),u=CD.transformCIAMAuthority(e),u=r.createInstance(u,t,n,i,o,a,l),p.label=1;case 1:return p.trys.push([1,3,,4]),a!=null&&a.setPreQueueTime(Qt.AuthorityResolveEndpointsAsync,l),[4,u.resolveEndpointsAsync()];case 2:return p.sent(),[2,u];case 3:throw h=p.sent(),ln.createEndpointDiscoveryIncompleteError(h);case 4:return[2]}})})},r.createInstance=function(e,t,n,i,o,a,l){if(nn.isEmpty(e))throw is.createUrlEmptyError();return new CD(e,t,n,i,o,a,l)},r})(),nB=(function(){function r(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return r.isServerTelemetryEntity=function(n,t){var n=n.indexOf(Xu.CACHE_KEY)===0,i=!0;return t&&(i=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),n&&i},r})(),Jae=(function(){function r(){}return r.isThrottlingEntity=function(i,t){var n=!1,i=(i&&(n=i.indexOf(uN.THROTTLING_PREFIX)===0),!0);return t&&(i=t.hasOwnProperty("throttleTime")),n&&i},r})(),Ztt={sendGetRequestAsync:function(){return Promise.reject(xn.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented for the Network interface."))},sendPostRequestAsync:function(){return Promise.reject(xn.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented for the Network interface."))}},R6={missingKidError:{code:"missing_kid_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided."},missingAlgError:{code:"missing_alg_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."}},ese=(function(r){function e(t,n){return t=r.call(this,t,n)||this,t.name="JoseHeaderError",Object.setPrototypeOf(t,e.prototype),t}return lp(e,r),e.createMissingKidError=function(){return new e(R6.missingKidError.code,R6.missingKidError.desc)},e.createMissingAlgError=function(){return new e(R6.missingAlgError.code,R6.missingAlgError.desc)},e})(xn),Xtt=(function(){function r(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}return r.getShrHeaderString=function(e){if(!e.kid)throw ese.createMissingKidError();if(e.alg)return e=new r({typ:e.typ||PY.Pop,kid:e.kid,alg:e.alg}),JSON.stringify(e);throw ese.createMissingAlgError()},r})(),Qtt=(function(){function r(e,t){this.cacheOutcome=tE.NO_CACHE_HIT,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||It.EMPTY_STRING,this.wrapperVer=e.wrapperVer||It.EMPTY_STRING,this.telemetryCacheKey=Xu.CACHE_KEY+Kc.CACHE_KEY_SEPARATOR+e.clientId}return r.prototype.generateCurrentRequestHeaderValue=function(){var t=""+this.apiId+Xu.VALUE_SEPARATOR+this.cacheOutcome,e=[this.wrapperSKU,this.wrapperVer].join(Xu.VALUE_SEPARATOR),t=[t,this.getRegionDiscoveryFields()].join(Xu.VALUE_SEPARATOR);return[Xu.SCHEMA_VERSION,t,e].join(Xu.CATEGORY_SEPARATOR)},r.prototype.generateLastRequestHeaderValue=function(){var e=this.getLastRequests(),o=r.maxErrorsToSend(e),t=e.failedRequests.slice(0,2*o).join(Xu.VALUE_SEPARATOR),n=e.errors.slice(0,o).join(Xu.VALUE_SEPARATOR),i=e.errors.length,o=[i,o<i?Xu.OVERFLOW_TRUE:Xu.OVERFLOW_FALSE].join(Xu.VALUE_SEPARATOR);return[Xu.SCHEMA_VERSION,e.cacheHits,t,n,o].join(Xu.CATEGORY_SEPARATOR)},r.prototype.cacheFailedRequest=function(e){var t=this.getLastRequests();t.errors.length>=Xu.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),nn.isEmpty(e.subError)?nn.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(Xu.UNKNOWN_ERROR):t.errors.push(e.errorCode):t.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)},r.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},r.prototype.getLastRequests=function(){var e=new nB;return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||e},r.prototype.clearTelemetryCache=function(){var e,t=this.getLastRequests(),n=r.maxErrorsToSend(t);n===t.errors.length?this.cacheManager.removeItem(this.telemetryCacheKey):((e=new nB).failedRequests=t.failedRequests.slice(2*n),e.errors=t.errors.slice(n),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e))},r.maxErrorsToSend=function(e){for(var t=0,n=0,i=e.errors.length,o=0;o<i;o++){var a=e.failedRequests[2*o]||It.EMPTY_STRING,l=e.failedRequests[2*o+1]||It.EMPTY_STRING,u=e.errors[o]||It.EMPTY_STRING;if(!((n+=a.toString().length+l.toString().length+u.length+3)<Xu.MAX_LAST_HEADER_BYTES))break;t+=1}return t},r.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||It.EMPTY_STRING),e.push(this.regionSource||It.EMPTY_STRING),e.push(this.regionOutcome||It.EMPTY_STRING),e.join(",")},r.prototype.updateRegionDiscoveryMetadata=function(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome},r.prototype.setCacheOutcome=function(e){this.cacheOutcome=e},r})(),ywe=(function(){function r(e,t,n,i,o,a){this.authority=t,this.libraryName=i,this.libraryVersion=o,this.applicationTelemetry=a,this.clientId=e,this.logger=n,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.queueMeasurements=new Map,this.preQueueTimeByCorrelationId=new Map}return r.prototype.startPerformanceMeasurement=function(e,t){return{}},r.prototype.startPerformanceMeasuremeant=function(e,t){return{}},r.prototype.getIntFields=function(){return jtt},r.prototype.getPreQueueTime=function(e,t){var n=this.preQueueTimeByCorrelationId.get(t);if(n){if(n.name===e)return n.time;this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue time found for "+e+", unable to add queue measurement")}else this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: "+t+", unable to add queue measurement")},r.prototype.calculateQueuedTime=function(e,t){return e<1?(this.logger.trace("PerformanceClient: preQueueTime should be a positive integer and not "+e),0):t<1?(this.logger.trace("PerformanceClient: currentTime should be a positive integer and not "+t),
vendor: 1,436 bytes, line 717
7170):t<e?(this.logger.trace("PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved"),0):t-e},r.prototype.addQueueMeasurement=function(e,t,n,i){if(t){if(n===0)this.logger.trace("PerformanceClient.addQueueMeasurement: queue time provided for "+e+" is "+n);else if(!n)return void this.logger.trace("PerformanceClient.addQueueMeasurement: no queue time provided for "+e);n={eventName:e,queueTime:n,manuallyCompleted:i},i=this.queueMeasurements.get(t),i?(i.push(n),this.queueMeasurements.set(t,i)):(this.logger.trace("PerformanceClient.addQueueMeasurement: adding correlationId "+t+" to queue measurements"),this.queueMeasurements.set(t,[n])),this.preQueueTimeByCorrelationId.delete(t)}else this.logger.trace("PerformanceClient.addQueueMeasurement: correlationId not provided for "+e+", cannot add queue measurement")},r.prototype.startMeasurement=function(e,t){var n=this,i=t||this.generateId(),o=(t||this.logger.info("PerformanceClient: No correlation id provided for "+e+", generating",i),this.logger.trace("PerformanceClient: Performance measurement started for "+e,i),this.startPerformanceMeasuremeant(e,i)),a=(o.startMeasurement(),{eventId:this.generateId(),status:QU.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:i,appName:(t=this.applicationTelemetry)==null?void 0:t.appName,a
vendor: 7,346 bytes, line 717
717ppVersion:(e=this.applicationTelemetry)==null?void 0:e.appVersion});return this.cacheEventByCorrelationId(a),{endMeasurement:function(l){return n.endMeasurement(ha(ha({},a),l),o)},discardMeasurement:function(){return n.discardMeasurements(a.correlationId)},addStaticFields:function(l){return n.addStaticFields(l,a.correlationId)},increment:function(l){return n.increment(l,a.correlationId)},measurement:o,event:a}},r.prototype.endMeasurement=function(e,t){var n,i,o,a,l,u=this,h=this.eventsByCorrelationId.get(e.correlationId);return h?(i={totalQueueTime:0,totalQueueCount:0,manuallyCompletedCount:0},(n=e.eventId===h.eventId)?(i=this.getQueueInfo(e.correlationId),this.discardCache(h.correlationId)):(o=h.incompleteSubMeasurements)!=null&&o.delete(e.eventId),t!=null&&t.endMeasurement(),(o=t==null?void 0:t.flushMeasurement())?(this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+o+" ms",e.correlationId),n?(a=ha(ha({},h),e),l=0,(t=a.incompleteSubMeasurements)!=null&&t.forEach(function(p){u.logger.trace("PerformanceClient: Incomplete submeasurement "+p.name+" found for "+e.name,a.correlationId),l++}),a.incompleteSubMeasurements=void 0,a=ha(ha({},a),{durationMs:Math.round(o),queuedTimeMs:i.totalQueueTime,queuedCount:i.totalQueueCount,queuedManuallyCompletedCount:i.manuallyCompletedCount,status:QU.Completed,incompleteSubsCount:l}),this.truncateIntegralFields(a,this.getIntFields()),this.emitEvents([a],e.correlationId),a):(h[e.name+"DurationMs"]=Math.floor(o),ha({},h))):(this.logger.trace("PerformanceClient: Performance measurement not taken",h.correlationId),null)):(this.logger.trace("PerformanceClient: Measurement not found for "+e.eventId,e.correlationId),null)},r.prototype.addStaticFields=function(e,t){this.logger.trace("PerformanceClient: Updating static fields");var n=this.eventsByCorrelationId.get(t);n?this.eventsByCorrelationId.set(t,ha(ha({},n),e)):this.logger.trace("PerformanceClient: Event not found for",t)},r.prototype.increment=function(e,t){this.logger.trace("PerformanceClient: Updating counters");var n=this.eventsByCorrelationId.get(t);if(n)for(var i in e)n.hasOwnProperty(i)||(n[i]=0),n[i]+=e[i];else this.logger.trace("PerformanceClient: Event not found for",t)},r.prototype.cacheEventByCorrelationId=function(e){var t=this.eventsByCorrelationId.get(e.correlationId);t?(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" added/updated",e.correlationId),t.incompleteSubMeasurements=t.incompleteSubMeasurements||new Map,t.incompleteSubMeasurements.set(e.eventId,{name:e.name,startTimeMs:e.startTimeMs})):(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" started",e.correlationId),this.eventsByCorrelationId.set(e.correlationId,ha({},e)))},r.prototype.getQueueInfo=function(e){var t=this.queueMeasurements.get(e),n=(t||this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: "+e),0),i=0,o=0;return t!=null&&t.forEach(function(a){n+=a.queueTime,i++,o+=a.manuallyCompleted?1:0}),{totalQueueTime:n,totalQueueCount:i,manuallyCompletedCount:o}},r.prototype.discardMeasurements=function(e){this.logger.trace("PerformanceClient: Performance measurements discarded",e),this.eventsByCorrelationId.delete(e)},r.prototype.discardCache=function(e){this.discardMeasurements(e),this.logger.trace("PerformanceClient: QueueMeasurements discarded",e),this.queueMeasurements.delete(e),this.logger.trace("PerformanceClient: Pre-queue times discarded",e),this.preQueueTimeByCorrelationId.delete(e)},r.prototype.addPerformanceCallback=function(e){var t=this.generateId();return this.callbacks.set(t,e),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+t),t},r.prototype.removePerformanceCallback=function(e){var t=this.callbacks.delete(e);return t?this.logger.verbose("PerformanceClient: Performance callback "+e+" removed."):this.logger.verbose("PerformanceClient: Performance callback "+e+" not removed."),t},r.prototype.emitEvents=function(e,t){var n=this;this.logger.verbose("PerformanceClient: Emitting performance events",t),this.callbacks.forEach(function(i,o){n.logger.trace("PerformanceClient: Emitting event to callback "+o,t),i.apply(null,[e])})},r.prototype.truncateIntegralFields=function(e,t){t.forEach(function(n){n in e&&typeof e[n]=="number"&&(e[n]=Math.floor(e[n]))})},r})(),tse=(function(){function r(){}return r.prototype.startMeasurement=function(){},r.prototype.endMeasurement=function(){},r.prototype.flushMeasurement=function(){return null},r})(),Jtt=(function(r){function e(){return r!==null&&r.apply(this,arguments)||this}return lp(e,r),e.prototype.generateId=function(){return"callback-id"},e.prototype.startPerformanceMeasuremeant=function(){return new tse},e.prototype.startPerformanceMeasurement=function(){return new tse},e.prototype.calculateQueuedTime=function(t,n){return 0},e.prototype.addQueueMeasurement=function(t,n,i){},e.prototype.setPreQueueTime=function(t,n){},e})(ywe),Ir={pkceNotGenerated:{code:"pkce_not_created",desc:"The PKCE code challenge and verifier could not be generated."},cryptoDoesNotExist:{code:"crypto_nonexistent",desc:"The crypto object or function is not available."},httpMethodNotImplementedError:{code:"http_method_not_implemented",desc:"The HTTP method given has not been implemented in this library."},emptyNavigateUriError:{code:"empty_navigate_uri",desc:"Navigation URI is empty. Please check stack trace for more info."},hashEmptyError:{code:"hash_empty_error",desc:"Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors."},hashDoesNotContainStateError:{code:"no_state_in_hash",desc:"Hash does not contain state. Please verify that the request originated from msal."},hashDoesNotContainKnownPropertiesError:{code:"hash_does_not_contain_known_properties",desc:"Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors."},unableToParseStateError:{code:"unable_to_parse_state",desc:"Unable to parse state. Please verify that the request originated from msal."},stateInteractionTypeMismatchError:{code:"state_interaction_type_mismatch",desc:"Hash contains state but the interaction type does not match the caller."},interactionInProgress:{code:"interaction_in_progress",desc:"Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API.  For more visit: aka.ms/msaljs/browser-errors."},popupWindowError:{code:"popup_window_error",desc:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser."},emptyWindowError:{code:"empty_window_error",desc:"window.open returned null or undefined window object."},userCancelledError:{code:"user_cancelled",desc:"User cancelled the flow."},monitorPopupTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},monitorIframeTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},redirectInIframeError:{code:"redirect_in_iframe",desc:"Redirects are not supported for iframed or brokered a
717pplications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs."},blockTokenRequestsInHiddenIframeError:{code:"block_iframe_reload",desc:"Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors"},blockAcquireTokenInPopupsError:{code:"block_nested_popups",desc:"Request was blocked inside a popup because MSAL detected it was running in a popup."},iframeClosedPrematurelyError:{code:"iframe_closed_prematurely",desc:"The iframe being monitored was closed prematurely."},silentLogoutUnsupportedError:{code:"silent_logout_unsupported",desc:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead."},noAccountError:{code:"no_account_error",desc:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request."},silentPromptValueError:{code:"silent_prompt_value_error",desc:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'."},noTokenRequestCacheError:{code:"no_token_request_cache_error",desc:"No token request found in cache."},unableToParseTokenRequestCacheError:{code:"unable_to_parse_token_request_cache_error",desc:"The cached token request could not be parsed."},noCachedAuthorityError:{code:"no_cached_authority_error",desc:"No cached authority found."},authRequestNotSet:{code:"auth_request_not_set_error",desc:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler"},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},notInBrowserEnvironment:{code:"non_browser_environment",desc:"Login and token requests are not supported in non-browser environments."},databaseNotOpen:{code:"database_not_open",desc:"Database is not open!"},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},postRequestFailed:{code:"post_request_failed",desc:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'"},getRequestFailed:{code:"get_request_failed",desc:"Network request failed. Please check the network trace to determine root cause."},failedToParseNetworkResponse:{code:"failed_to_parse_response",desc:"Failed to parse network response. Check network trace."},unableToLoadTokenError:{code:"unable_to_load_token",desc:"Error loading token to cache."},signingKeyNotFoundInStorage:{code:"crypto_key_not_found",desc:"Cryptographic Key or Keypair not found in browser storage."},authCodeRequired:{code:"auth_code_required",desc:"An authorization code must be provided (as the `code` property on the request) to this flow."},authCodeOrNativeAccountRequired:{code:"auth_code_or_nativeAccountId_required",desc:"An authorization code or nativeAccountId must be provided to this flow."},spaCodeAndNativeAccountPresent:{code:"spa_code_and_nativeAccountId_present",desc:"Request cannot contain both spa code and native account id."},databaseUnavailable:{code:"database_unavailable",desc:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts."},unableToAcquireTokenFromNativePlatform:{code:"unable_to_acquire_token_from_native_platform",desc:"Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors."},nativeHandshakeTimeout:{code:"native_handshake_timeout",desc:"Timed out while attempting to establish connection to browser extension"},nativeExtensionNotInstalled:{code:"native_extension_not_installed",desc:"Native extension is not installed. If you think this is a mistake call the initialize function."},nativeConnectionNotEstablished:{code:"native_connection_not_established",desc:"Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors."},nativeBrokerCalledBeforeInitialize:{code:"native_broker_called_before_initialize",desc:"You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors."},nativePromptNotSupported:{code:"native_prompt_not_supported",desc:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow."}},Vr=(function(r){function e(t,n){return t=r.call(this,t,n)||this,Object.setPrototypeOf(t,e.prototype),t.name="BrowserAuthError",t}return hd(e,r),e.createPkceNotGeneratedError=function(t){return new e(Ir.pkceNotGenerated.code,Ir.pkceNotGenerated.desc+" Detail:"+t)},e.createCryptoNotAvailableError=function(t){return new e(Ir.cryptoDoesNotExist.code,Ir.cryptoDoesNotExist.desc+" Detail:"+t)},e.createHttpMethodNotImplementedError=function(t){return new e(Ir.httpMethodNotImplementedError.code,Ir.httpMethodNotImplementedError.desc+" Given Method: "+t)},e.createEmptyNavigationUriError=function(){return new e(Ir.emptyNavigateUriError.code,Ir.emptyNavigateUriError.desc)},e.createEmptyHashError=function(t){return new e(Ir.hashEmptyError.code,Ir.hashEmptyError.desc+" Given Url: "+t)},e.createHashDoesNotContainStateError=function(){return new e(Ir.hashDoesNotContainStateError.code,Ir.hashDoesNotContainStateError.desc)},e.createHashDoesNotContainKnownPropertiesError=function(){return new e(Ir.hashDoesNotContainKnownPropertiesError.code,Ir.hashDoesNotContainKnownPropertiesError.desc)},e.createUnableToParseStateError=function(){return new e(Ir.unableToParseStateError.code,Ir.unableToParseStateError.desc)},e.createStateInteractionTypeMismatchError=function(){return new e(Ir.stateInteractionTypeMismatchError.code,Ir.stateInteractionTypeMismatchError.desc)},e.createInteractionInProgressError=function(){return new e(Ir.interactionInProgress.code,Ir.interactionInProgress.desc)},e.createPopupWindowError=function(t){var n=Ir.popupWindowError.desc,n=nn.isEmpty(t)?n:n+" Details: "+t;return new e(Ir.popupWindowError.code,n)},e.createEmptyWindowCreatedError=function(){return new e(Ir.emptyWindowError.code,Ir.emptyWindowError.desc)},e.createUserCancelledError=function(){return new e(Ir.userCancelledError.code,Ir.userCancelledError.desc)},e.createMonitorPopupTimeoutError=function(){return new e(Ir.monitorPopupTimeoutError.code,Ir.monitorPopupTimeoutError.desc)},e.createMonitorIframeTimeoutError=function(){return new e(Ir.monitorIframeTimeoutError.code,Ir.monitorIframeTimeoutError.desc)},e.createRedirectInIframeError=function(t){return new e(Ir.redirectInIframeError.code,Ir.redirectInIframeError.desc+" (window.parent !== window) => "+t)},e.createBlockReloadInHiddenIframeError=function(){return new e(Ir.blockTokenRequestsInHiddenIframeError.code,Ir.blockTokenRequestsInHiddenIframeError.desc)},e.createBlockAcquireTokenInPopupsError=function(){return new e(Ir.blockAcquireTokenInPopupsError.code,Ir.blockAcquireTokenInPopupsError.desc)},e.createIframeClosedPrematurelyError=function(){return new e(Ir.iframeClosedPrematurelyError.code,Ir.iframeClosedPrematurelyError.desc)},e.createSilentLogoutUnsupportedError=function(){return new e(Ir.silentLogoutUnsupportedError.code,Ir.silentLogoutUnsupportedError.desc)},e.createNoAccountError=function(){return new e(Ir.noAccountError.code,Ir.noAccountError.desc)},e.createSilentPromptValueError=function(t){return new e(Ir.silentPromptValueError.code,Ir.silentPromptValueError.desc+" Given value: "+t)},e.createUnableToParseTokenRequestCacheError=function(){return new e(Ir.unableToParseTokenRequestCacheError.code,Ir.unableToParseTokenRequestCacheError.desc)},e.createNoTokenRequestCacheError=function(){return new e(Ir.noToken
717RequestCacheError.code,Ir.noTokenRequestCacheError.desc)},e.createAuthRequestNotSetError=function(){return new e(Ir.authRequestNotSet.code,Ir.authRequestNotSet.desc)},e.createNoCachedAuthorityError=function(){return new e(Ir.noCachedAuthorityError.code,Ir.noCachedAuthorityError.desc)},e.createInvalidCacheTypeError=function(){return new e(Ir.invalidCacheType.code,""+Ir.invalidCacheType.desc)},e.createNonBrowserEnvironmentError=function(){return new e(Ir.notInBrowserEnvironment.code,Ir.notInBrowserEnvironment.desc)},e.createDatabaseNotOpenError=function(){return new e(Ir.databaseNotOpen.code,Ir.databaseNotOpen.desc)},e.createNoNetworkConnectivityError=function(){return new e(Ir.noNetworkConnectivity.code,Ir.noNetworkConnectivity.desc)},e.createPostRequestFailedError=function(t,n){return new e(Ir.postRequestFailed.code,Ir.postRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+n.split("?")[0])},e.createGetRequestFailedError=function(t,n){return new e(Ir.getRequestFailed.code,Ir.getRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+n.split("?")[0])},e.createFailedToParseNetworkResponseError=function(t){return new e(Ir.failedToParseNetworkResponse.code,Ir.failedToParseNetworkResponse.desc+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToLoadTokenError=function(t){return new e(Ir.unableToLoadTokenError.code,Ir.unableToLoadTokenError.desc+" | "+t)},e.createSigningKeyNotFoundInStorageError=function(t){return new e(Ir.signingKeyNotFoundInStorage.code,Ir.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+t)},e.createAuthCodeRequiredError=function(){return new e(Ir.authCodeRequired.code,Ir.authCodeRequired.desc)},e.createAuthCodeOrNativeAccountIdRequiredError=function(){return new e(Ir.authCodeOrNativeAccountRequired.code,Ir.authCodeOrNativeAccountRequired.desc)},e.createSpaCodeAndNativeAccountIdPresentError=function(){return new e(Ir.spaCodeAndNativeAccountPresent.code,Ir.spaCodeAndNativeAccountPresent.desc)},e.createDatabaseUnavailableError=function(){return new e(Ir.databaseUnavailable.code,Ir.databaseUnavailable.desc)},e.createUnableToAcquireTokenFromNativePlatformError=function(){return new e(Ir.unableToAcquireTokenFromNativePlatform.code,Ir.unableToAcquireTokenFromNativePlatform.desc)},e.createNativeHandshakeTimeoutError=function(){return new e(Ir.nativeHandshakeTimeout.code,Ir.nativeHandshakeTimeout.desc)},e.createNativeExtensionNotInstalledError=function(){return new e(Ir.nativeExtensionNotInstalled.code,Ir.nativeExtensionNotInstalled.desc)},e.createNativeConnectionNotEstablishedError=function(){return new e(Ir.nativeConnectionNotEstablished.code,Ir.nativeConnectionNotEstablished.desc)},e.createNativeBrokerCalledBeforeInitialize=function(){return new e(Ir.nativeBrokerCalledBeforeInitialize.code,Ir.nativeBrokerCalledBeforeInitialize.desc)},e.createNativePromptParameterNotSupportedError=function(){return new e(Ir.nativePromptNotSupported.code,Ir.nativePromptNotSupported.desc)},e})(xn),tv={INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},SM={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},rse=((function(r){r.HandshakeRequest="Handshake",r.HandshakeResponse="HandshakeResponse",r.GetToken="GetToken",r.Response="Response"})(z1=z1||{}),(function(r){r.LocalStorage="localStorage",r.SessionStorage="sessionStorage",r.MemoryStorage="memoryStorage"})(bc=bc||{}),(function(r){r.GET="GET",r.POST="POST"})(F0=F0||{}),(function(r){r.AUTHORITY="authority",r.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",r.SESSION_STATE="session.state",r.REQUEST_STATE="request.state",r.NONCE_IDTOKEN="nonce.id_token",r.ORIGIN_URI="request.origin",r.RENEW_STATUS="token.renew.status",r.URL_HASH="urlHash",r.REQUEST_PARAMS="request.params",r.SCOPES="scopes",r.INTERACTION_STATUS_KEY="interaction.status",r.CCS_CREDENTIAL="ccs.credential",r.CORRELATION_ID="request.correlationId",r.NATIVE_REQUEST="request.native",r.REDIRECT_CONTEXT="request.redirect.context"})(Go=Go||{}),(function(r){r.ACCOUNT_KEYS="msal.account.keys",r.TOKEN_KEYS="msal.token.keys"})(R0=R0||{}),(function(r){r.WRAPPER_SKU="wrapper.sku",r.WRAPPER_VER="wrapper.version"})(hR=hR||{}),(function(r){r[r.acquireTokenRedirect=861]="acquireTokenRedirect",r[r.acquireTokenPopup=862]="acquireTokenPopup",r[r.ssoSilent=863]="ssoSilent",r[r.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",r[r.handleRedirectPromise=865]="handleRedirectPromise",r[r.acquireTokenByCode=866]="acquireTokenByCode",r[r.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",r[r.logout=961]="logout",r[r.logoutPopup=962]="logoutPopup"})(ns=ns||{}),(function(r){r.Redirect="redirect",r.Popup="popup",r.Silent="silent",r.None="none"})(pn=pn||{}),(function(r){r.Startup="startup",r.Login="login",r.Logout="logout",r.AcquireToken="acquireToken",r.SsoSilent="ssoSilent",r.HandleRedirect="handleRedirect",r.None="none"})(Xae=Xae||{}),{scopes:RL}),KP="jwk",NY=((function(r){r.React="@azure/msal-react",r.Angular="@azure/msal-angular"}
717)(Qae=Qae||{}),"msal.db"),ert=1,trt=NY+".keys",Pf=((function(r){r[r.Default=0]="Default",r[r.AccessToken=1]="AccessToken",r[r.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",r[r.RefreshToken=3]="RefreshToken",r[r.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",r[r.Skip=5]="Skip"})(Bf=Bf||{}),{redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},storageNotSupportedError:{code:"storage_not_supported",desc:"Given storage configuration option was not supported."},noRedirectCallbacksSet:{code:"no_redirect_callbacks",desc:"No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},stubPcaInstanceCalled:{code:"stubbed_public_client_application_called",desc:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors"},inMemRedirectUnavailable:{code:"in_mem_redirect_unavailable",desc:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."},entropyNotProvided:{code:"entropy_not_provided",desc:"The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option."}}),iB=(function(r){function e(t,n){return t=r.call(this,t,n)||this,t.name="BrowserConfigurationAuthError",Object.setPrototypeOf(t,e.prototype),t}return hd(e,r),e.createRedirectUriEmptyError=function(){return new e(Pf.redirectUriNotSet.code,Pf.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(Pf.postLogoutUriNotSet.code,Pf.postLogoutUriNotSet.desc)},e.createStorageNotSupportedError=function(t){return new e(Pf.storageNotSupportedError.code,Pf.storageNotSupportedError.desc+" Given Location: "+t)},e.createRedirectCallbacksNotSetError=function(){return new e(Pf.noRedirectCallbacksSet.code,Pf.noRedirectCallbacksSet.desc)},e.createStubPcaInstanceCalledError=function(){return new e(Pf.stubPcaInstanceCalled.code,Pf.stubPcaInstanceCalled.desc)},e.createInMemoryRedirectUnavailableError=function(){return new e(Pf.inMemRedirectUnavailable.code,Pf.inMemRedirectUnavailable.desc)},e.createEntropyNotProvided=function(){return new e(Pf.entropyNotProvided.code,Pf.entropyNotProvided.desc)},e})(xn),nse=(function(){function r(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return r.prototype.validateWindowStorage=function(e){if(e!==bc.LocalStorage&&e!==bc.SessionStorage||!window[e])throw iB.createStorageNotSupportedError(e)},r.prototype.getItem=function(e){return this.windowStorage.getItem(e)},r.prototype.setItem=function(e,t){this.windowStorage.setItem(e,t)},r.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},r.prototype.getKeys=function(){return Object.keys(this.windowStorage)},r.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},r})(),DY=(function(){function r(){this.cache=new Map}return r.prototype.getItem=function(e){return this.cache.get(e)||null},r.prototype.setItem=function(e,t){this.cache.set(e,t)},r.prototype.removeItem=function(e){this.cache.delete(e)},r.prototype.getKeys=function(){var e=[];return this.cache.forEach(function(t,n){e.push(n)}),e},r.prototype.containsKey=function(e){return this.cache.has(e)},r.prototype.clear=function(){this.cache.clear()},r})(),vwe=(function(){function r(){}return r.extractBrowserRequestState=function(e,t){if(nn.isEmpty(t))return null;try{return nb.parseRequestState(e,t).libraryState.meta}catch(n){throw ln.createInvalidStateError(t,n)}},r.parseServerResponseFromHash=function(e){return e?(e=new ko(e),ko.getDeserializedHash(e.getHash())):{}},r})(),LY=(function(r){function e(t,n,i,o){return t=r.call(this,t,i,o)||this,t.COOKIE_LIFE_MULTIPLIER=864e5,t.cacheConfig=n,t.logger=o,t.internalStorage=new DY,t.browserStorage=t.setupBrowserStorage(t.cacheConfig.cacheLocation),t.temporaryCacheStorage=t.setupTemporaryCacheStorage(t.cacheConfig.temporaryCacheLocation,t.cacheConfig.cacheLocation),n.cacheMigrationEnabled&&(t.migrateCacheEntries(),t.createKeyMaps()),t}return hd(e,r),e.prototype.setupBrowserStorage=function(t){switch(t){case bc.LocalStorage:case bc.SessionStorage:try{return new nse(t)}catch(n){this.logger.verbose(n);break}}return this.cacheConfig.cacheLocation=bc.MemoryStorage,new DY},e.prototype.setupTemporaryCacheStorage=function(t,n){switch(n){case bc.LocalStorage:case bc.SessionStorage:try{return new nse(t||bc.SessionStorage)}catch(i){return this.logger.verbose(i),this.internalStorage}case bc.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var t=this,n=It.CACHE_PREFIX+"."+qc.ID_TOKEN,i=It.CACHE_PREFIX+"."+qc.CLIENT_INFO,o=It.CACHE_PREFIX+"."+qc.ERROR,a=It.CACHE_PREFIX+"."+qc.ERROR_DESC,l=[this.browserStorage.getItem(n),this.browserStorage.getItem(i),this.browserStorage.getItem(o),this.browserStorage.getItem(a)];
vendor: 4,988 bytes, line 717
717[qc.ID_TOKEN,qc.CLIENT_INFO,qc.ERROR,qc.ERROR_DESC].forEach(function(u,h){return t.migrateCacheEntry(u,l[h])})},e.prototype.migrateCacheEntry=function(t,n){n&&this.setTemporaryCache(t,n,!0)},e.prototype.createKeyMaps=function(){var t=this,n=(this.logger.trace("BrowserCacheManager - createKeyMaps called."),this.getItem(R0.ACCOUNT_KEYS)),i=this.getItem(R0.TOKEN_KEYS+"."+this.clientId);n&&i?this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration."):this.browserStorage.getKeys().forEach(function(o){var a;if(t.isCredentialKey(o)&&(a=t.getItem(o))){var l,u,h=t.validateAndParseJson(a);if(h&&h.hasOwnProperty("credentialType"))switch(h.credentialType){case Yn.ID_TOKEN:if(lT.isIdTokenEntity(h))return t.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: "+o+" found, saving key to token key map"),u=kf.toObject(new lT,h),u=t.updateCredentialCacheKey(o,u),void t.addTokenKey(u,Yn.ID_TOKEN);t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: "+o);break;case Yn.ACCESS_TOKEN:case Yn.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(cT.isAccessTokenEntity(h))return t.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: "+o+" found, saving key to token key map"),l=kf.toObject(new cT,h),u=t.updateCredentialCacheKey(o,l),void t.addTokenKey(u,Yn.ACCESS_TOKEN);t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: "+o);break;case Yn.REFRESH_TOKEN:if(uR.isRefreshTokenEntity(h))return t.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: "+o+" found, saving key to token key map"),l=kf.toObject(new uR,h),u=t.updateCredentialCacheKey(o,l),void t.addTokenKey(u,Yn.REFRESH_TOKEN);t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: "+o)}}t.isAccountKey(o)&&(a=t.getItem(o))&&(a=t.validateAndParseJson(a))&&ad.isAccountEntity(a)&&(t.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: "+o+" found, saving key to account key map"),t.addAccountKeyToMap(o))})},e.prototype.validateAndParseJson=function(t){try{var n=JSON.parse(t);return n&&typeof n=="object"?n:null}catch{return null}},e.prototype.getItem=function(t){return this.browserStorage.getItem(t)},e.prototype.setItem=function(t,n){this.browserStorage.setItem(t,n)},e.prototype.getAccount=function(t){this.logger.trace("BrowserCacheManager.getAccount called");var n=this.getItem(t);return(n=n&&this.validateAndParseJson(n))&&ad.isAccountEntity(n)?kf.toObject(new ad,n):(this.removeAccountKeyFromMap(t),null)},e.prototype.setAccount=function(t){this.logger.trace("BrowserCacheManager.setAccount called");var n=t.generateAccountKey();this.setItem(n,JSON.stringify(t)),this.addAccountKeyToMap(n)},e.prototype.getAccountKeys=function(){this.logger.trace("BrowserCacheManager.getAccountKeys called");var t=this.getItem(R0.ACCOUNT_KEYS);return t?JSON.parse(t):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])},e.prototype.addAccountKeyToMap=function(t){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: "+t);var n=this.getAccountKeys();n.indexOf(t)===-1?(n.push(t),this.setItem(R0.ACCOUNT_KEYS,JSON.stringify(n)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")},e.prototype.removeAccountKeyFromMap=function(i){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: "+i);var n=this.getAccountKeys(),i=n.indexOf(i);-1<i?(n.splice(i,1),this.setItem(R0.ACCOUNT_KEYS,JSON.stringify(n)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap ke
717y not found in existing map")},e.prototype.removeAccount=function(t){return pr(this,void 0,void 0,function(){return gr(this,function(n){return r.prototype.removeAccount.call(this,t),this.removeAccountKeyFromMap(t),[2]})})},e.prototype.removeIdToken=function(t){r.prototype.removeIdToken.call(this,t),this.removeTokenKey(t,Yn.ID_TOKEN)},e.prototype.removeAccessToken=function(t){return pr(this,void 0,void 0,function(){return gr(this,function(n){return r.prototype.removeAccessToken.call(this,t),this.removeTokenKey(t,Yn.ACCESS_TOKEN),[2]})})},e.prototype.removeRefreshToken=function(t){r.prototype.removeRefreshToken.call(this,t),this.removeTokenKey(t,Yn.REFRESH_TOKEN)},e.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var t=this.getItem(R0.TOKEN_KEYS+"."+this.clientId);if(t){if(t=this.validateAndParseJson(t),t&&t.hasOwnProperty("idToken")&&t.hasOwnProperty("accessToken")&&t.hasOwnProperty("refreshToken"))return t;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}},e.prototype.addTokenKey=function(t,n){this.logger.trace("BrowserCacheManager addTokenKey called");var i=this.getTokenKeys();switch(n){case Yn.ID_TOKEN:i.idToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),i.idToken.push(t));break;case Yn.ACCESS_TOKEN:i.accessToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),i.accessToken.push(t));break;case Yn.REFRESH_TOKEN:i.refreshToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),i.refreshToken.push(t));break;default:this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: "+n),ln.createUnexpectedCredentialTypeError()}this.setItem(R0.TOKEN_KEYS+"."+this.clientId,JSON.stringify(i))},e.prototype.removeTokenKey=function(t,n){this.logger.trace("BrowserCacheManager removeTokenKey called");var i=this.getTokenKeys();switch(n){case Yn.ID_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: "+t+" from map");var o=i.idToken.indexOf(t);-1<o?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),i.idToken.splice(o,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case Yn.ACCESS_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: "+t+" from map"),o=i.accessToken.indexOf(t),-1<o?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),i.accessToken.splice(o,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case Yn.REFRESH_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: "+t+" from map"),o=i.refreshToken.indexOf(t),-1<o?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),i.refreshToken.splice(o,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:this.logger.error("BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: "+n),ln.createUnexpectedCredentialTypeError()}this.setItem(R0.TOKEN_KEYS+"."+this.clientId,JSON.stringify(i))},e.prototype.getIdTokenCredential=function(t){var n=this.getItem(t);return(n=n&&this.validateAndParseJson(n))&&lT.isIdTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),kf.toObject(new lT,n)):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(t,Yn.ID_TOKEN),null)},e.prototype.setIdTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var n=t.generateCredentialKey();this.setItem(n,JSON.stringify(t)),this.addTokenKey(n,Yn.ID_TOKEN)},e.prototype.getAccessTokenCredential=function(t){var n=this.getItem(t);return(n=n&&this.validateAndParseJson(n))&&cT.isAccessTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),kf.toObject(new cT,n)):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(t,Yn.ACCESS_TOKEN),null)},e.prototype.setAccessTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var n=t.generateCredentialKey();this.setItem(n,JSON.stringify(t)),this.addTokenKey(n,Yn.ACCESS_TOKEN)},e.prototype.getRefreshTokenCredential=function(t){var n=this.getItem(t);return(n=n&&this.validateAndParseJson(n))&&uR.isRefreshTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),kf.toObject(new uR,n)):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(t,Yn.REFRESH_TOKEN),null)},e.prototype.setRefreshTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var n=t.generateCredentialKey();this.setItem(n,JSON.stringify(t)),this.addTokenKey(n,Yn.REFRESH_TOKEN)},e.prototype.getAppMetadata=function(t){var n=this.getItem(t);return(n=n&&this.validateAndParseJson(n))&&OY.isAppMetadataEntity(t,n)?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),kf.toObject(new OY,n)):(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null)},e.prototype.setAppMetadata=function(t){this.logger.trace("BrowserCacheManager.setAppMetadata called");var n=t.generateAppMetadataKey();this.setItem(n,JSON.stringify(t))},e.prototype.getServerTelemetry=function(t){var n=this.getItem(t);return(n=n&&this.validateAndParseJson(n))&&nB.isServerTelemetryEntity(t,n)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),kf.toObject(new nB,n)):(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null)},e.prototype.setServerTelemetry=function(t,n){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(t,JSON.stringify(n))},e.prototype.getAuthorityMetadata=function(t){var n=this.internalStorage.getItem(t);return n?(n=this.validateAndParseJson(n))&&MY.isAuthorityMetadataEntity(t,n)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),kf.toObject(new MY,n)):null:(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null)},e.prototype.getAuthorityMetadataKeys=function(){var t=this;return this.internalStorage.getKeys().filter(function(n){return t.isAuthorityMetadata(n)})},e.prototype.setWrapperMetadata=function(t,n){this.internalStorage.setItem(hR.WRAPPER_SKU,t),this.internalStorage.setItem(hR.WRAPPER_VER,n)},e.prototype.getWrapperMetadata=function(){return[this.internalStorage.getItem(hR.WRAPPER_SKU)||It.EMPTY_STRING,this.internalStorage.getItem(hR.WRAPPER_VER)||It.EMPTY_STRING]},e.prototype.setAuthorityMetadata=function(t,n){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(t,JSON.stringify(n))},e.prototype.getActiveAccount=function(){var t=this.generateCacheKey(qc.ACTIVE_ACCOUNT_FILTERS),t=this.getItem(t);return t?(t=this.validateAndParseJson(t))?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:t.homeAccountId,localAccountId:t.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema"),t=this.generateCacheKey(qc.ACTIVE_ACCOUNT),(t=this.getItem(t))?(t=this.getAccountInfoByFilter({localAccountId:t})[0]||null)?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(t),t):null:(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null))},e.prototype.setActiveAccount=function(t){var n,i=this.generateCacheKey(qc.ACTIVE_ACCOUNT_FILTERS),o=this.generateCacheKey(qc.ACTIVE_ACCOUNT);t?(this.logger.verbose("setActiveAccount: Active account set"),n={homeAccountId:t.homeAccountId,localAccountId:t.localAccountId},this.browserStorage.setItem(i,JSON.stringify(n)),this.browserStorage.setItem(o,t.localAccountId)):(this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(i),this.browserStorage.removeItem(o))},e.prototype.getAccountInfoByFilter=function(t){var n=this.getAllAccounts();return this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+n.length+" accounts found"),n.filter(function(i){return!(t.username&&t.username.toLowerCase()!==i.username.toLowerCase()||t.homeAccountId&&t.homeAccountId!==i.homeAccountId||t.localAccountId&&t.localAccountId!==i.localAccountId||t.tenantId&&t.tenantId!==i.tenantId||t.environment&&t.environment!==i.environment)})},e.prototype.getAccountInfoByHints=function(t,n){var i=this.getAllAccounts().filter(function(o){var a;return n?(a=o.idTokenClaims&&o.idTokenClaims.sid,n===a):!!t&&t===o.username});if(i.length===1)return i[0];if(1<i.length)throw ln.createMultipleMatchingAccountsInCacheError();return null},e.prototype.getThrottlingCache=function(t){var n=this.getItem(t);return(n=n&&this.validateAndParseJson(n))&&Jae.isThrottlingEntity(t,n)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),kf.toObject(new Jae,n)):(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null)},e.prototype.setThrottlingCache=function(t,n){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(t,JSON.stringify(n))},e.prototype.getTemporaryCache=function(t,n){return n=n?this.generateCacheKey(t):t,this.cacheConfig.storeAuthStateInCookie&&(t=this.getItemCookie(n),t)?(this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),t):(t=this.temporaryCacheStorage.getItem(n),t?(this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),t):this.cacheConfig.cacheLocation===bc.LocalStorage&&(t=this.browserStorage.getItem(n),t)?(this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),t):(this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null))},e.prototype.setTemporaryCache=function(t,n,i){i=i?this.generateCacheKey(t):t,this.temporaryCacheStorage.setItem(i,n),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(i,n))},e.prototype.removeItem=function(t){this.browserStorage.removeItem(t),this.temporaryCacheStorage.removeItem(t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItem
717Cookie(t))},e.prototype.containsKey=function(t){return this.browserStorage.containsKey(t)||this.temporaryCacheStorage.containsKey(t)},e.prototype.getKeys=function(){return vQ(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},e.prototype.clear=function(){return pr(this,void 0,void 0,function(){var t=this;return gr(this,function(n){switch(n.label){case 0:return[4,this.removeAllAccounts()];case 1:return n.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(i){!t.browserStorage.containsKey(i)&&!t.temporaryCacheStorage.containsKey(i)||i.indexOf(It.CACHE_PREFIX)===-1&&i.indexOf(t.clientId)===-1||t.removeItem(i)}),this.internalStorage.clear(),[2]}})})},e.prototype.clearTokensAndKeysWithClaims=function(){return pr(this,void 0,void 0,function(){var t,n,i=this;return gr(this,function(o){switch(o.label){case 0:return this.logger.trace("BrowserCacheManager.clearTokensAndKeysWithClaims called"),t=this.getTokenKeys(),n=[],t.accessToken.forEach(function(a){var l=i.getAccessTokenCredential(a);l!=null&&l.requestedClaimsHash&&a.includes(l.requestedClaimsHash.toLowerCase())&&n.push(i.removeAccessToken(a))}),[4,Promise.all(n)];case 1:return o.sent(),0<n.length&&this.logger.warning(n.length+" access tokens with claims in the cache keys have been removed from the cache."),[2]}})})},e.prototype.setItemCookie=function(t,n,i){t=encodeURIComponent(t)+"="+encodeURIComponent(n)+";path=/;SameSite=Lax;",i&&(t+="expires="+this.getCookieExpirationTime(i)+";"),this.cacheConfig.secureCookies&&(t+="Secure;"),document.cookie=t},e.prototype.getItemCookie=function(t){for(var n=encodeURIComponent(t)+"=",i=document.cookie.split(";"),o=0;o<i.length;o++){for(var a=i[o];a.charAt(0)===" ";)a=a.substring(1);if(a.indexOf(n)===0)return decodeURIComponent(a.substring(n.length,a.length))}return It.EMPTY_STRING},e.prototype.clearMsalCookies=function(){var t=this,n=It.CACHE_PREFIX+"."+this.clientId;document.cookie.split(";").forEach(function(i){for(;i.charAt(0)===" ";)i=i.substring(1);var o;
717i.indexOf(n)===0&&(o=i.split("=")[0],t.clearItemCookie(o))})},e.prototype.clearItemCookie=function(t){this.setItemCookie(t,It.EMPTY_STRING,-1)},e.prototype.getCookieExpirationTime=function(t){var n=new Date;return new Date(n.getTime()+t*this.COOKIE_LIFE_MULTIPLIER).toUTCString()},e.prototype.getCache=function(){return this.browserStorage},e.prototype.setCache=function(){},e.prototype.generateCacheKey=function(t){return this.validateAndParseJson(t)?JSON.stringify(t):nn.startsWith(t,It.CACHE_PREFIX)||nn.startsWith(t,qc.ADAL_ID_TOKEN)?t:It.CACHE_PREFIX+"."+this.clientId+"."+t},e.prototype.generateAuthorityKey=function(t){return t=nb.parseRequestState(this.cryptoImpl,t).libraryState.id,this.generateCacheKey(Go.AUTHORITY+"."+t)},e.prototype.generateNonceKey=function(t){return t=nb.parseRequestState(this.cryptoImpl,t).libraryState.id,this.generateCacheKey(Go.NONCE_IDTOKEN+"."+t)},e.prototype.generateStateKey=function(t){return t=nb.parseRequestState(this.cryptoImpl,t).libraryState.id,this.generateCacheKey(Go.REQUEST_STATE+"."+t)},e.prototype.getCachedAuthority=function(n){var n=this.generateStateKey(n),n=this.getTemporaryCache(n);return n?(n=this.generateAuthorityKey(n),this.getTemporaryCache(n)):null},e.prototype.updateCacheEntries=function(t,n,i,o,a){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var l,u=this.generateStateKey(t),u=(this.setTemporaryCache(u,t,!1),this.generateNonceKey(t)),u=(this.setTemporaryCache(u,n,!1),this.generateAuthorityKey(t));this.setTemporaryCache(u,i,!1),a?(l={credential:a.homeAccountId,type:ng.HOME_ACCOUNT_ID},this.setTemporaryCache(Go.CCS_CREDENTIAL,JSON.stringify(l),!0)):nn.isEmpty(o)||(l={credential:o,type:ng.UPN},this.setTemporaryCache(Go.CCS_CREDENTIAL,JSON.stringify(l),!0))},e.prototype.resetRequestCache=function(t){var n=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),nn.isEmpty(t)||this.getKeys().forEach(function(i){i.indexOf(t)!==-1&&n.removeItem(i)}),t&&(this.removeItem(this.generateStateKey(t)),this.removeItem(this.generateNonceKey(t)),this.removeItem(this.generateAuthorityKey(t))),this.removeItem(this.generateCacheKey(Go.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(Go.ORIGIN_URI)),this.removeItem(this.generateCacheKey(Go.URL_HASH)),this.removeItem(this.generateCacheKey(Go.CORRELATION_ID)),this.removeItem(this.generateCacheKey(Go.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(Go.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},e.prototype.cleanRequestByState=function(t){this.logger.trace("BrowserCacheManager.cleanRequestByState called"),t&&(t=this.generateStateKey(t),t=this.temporaryCacheStorage.getItem(t),this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+t),this.resetRequestCache(t||It.EMPTY_STRING)),this.clearMsalCookies()},e.prototype.cleanRequestByInteractionType=function(t){var n=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(i){var o;i.indexOf(Go.REQUEST_STATE)!==-1&&(i=n.temporaryCacheStorage.getItem(i))&&(o=vwe.extractBrowserRequestState(n.cryptoImpl,i))&&o.interactionType===t&&(n.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+i),n.resetRequestCache(i))}),this.clearMsalCookies(),this.setInteractionInProgress(!1)},e.prototype.cacheCodeRequest=function(t,n){this.logger.trace("BrowserCacheManager.cacheCodeRequest called"),n=n.base64Encode(JSON.stringify(t)),this.setTemporaryCache(Go.REQUEST_PARAMS,n,!0)},e.prototype.getCachedRequest=function(t,n){this.logger.trace("BrowserCacheManager.getCachedRequest called");var i=this.getTemporaryCache(Go.REQUEST_PARAMS,!0);if(!i)throw Vr.createNoTokenRequestCacheError();if(n=this.validateAndParseJson(n.base64Decode(i)),!n)throw Vr.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(Go.REQUEST_PARAMS)),nn.isEmpty(n.authority)){if(i=this.generateAuthorityKey(t),t=this.getTemporaryCache(i),!t)throw Vr.createNoCachedAuthorityError();n.authority=t}return n},e.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var t=this.getTemporaryCache(Go.NATIVE_REQUEST,!0);return t?this.validateAndParseJson(t)||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null):(this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null)},e.prototype.isInteractionInProgress=function(t){var n=this.getInteractionInProgress();return t?n===this.clientId:!!n},e.prototype.getInteractionInProgress=function(){var t=It.CACHE_PREFIX+"."+Go.INT
vendor: 13,088 bytes, line 717
717ERACTION_STATUS_KEY;return this.getTemporaryCache(t,!1)},e.prototype.setInteractionInProgress=function(t){var n=It.CACHE_PREFIX+"."+Go.INTERACTION_STATUS_KEY;if(t){if(this.getInteractionInProgress())throw Vr.createInteractionInProgressError();this.setTemporaryCache(n,this.clientId,!1)}else this.getInteractionInProgress()===this.clientId&&this.removeItem(n)},e.prototype.getLegacyLoginHint=function(){var t=this.getTemporaryCache(qc.ADAL_ID_TOKEN),n=(t&&(this.browserStorage.removeItem(qc.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved.")),this.getTemporaryCache(qc.ID_TOKEN,!0)),n=(n&&(this.removeItem(this.generateCacheKey(qc.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved")),n||t);if(n){if(t=new v_(n,this.cryptoImpl),t.claims&&t.claims.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),t.claims.preferred_username;if(t.claims&&t.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),t.claims.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null},e.prototype.updateCredentialCacheKey=function(t,n){var i=n.generateCredentialKey();if(t!==i){var o=this.getItem(t);if(o)return this.removeItem(t),this.setItem(i,o),this.logger.verbose("Updated an outdated "+n.credentialType+" cache key"),i;this.logger.error("Attempted to update an outdated "+n.credentialType+" cache key but no item matching the outdated key was found in storage")}return t},e.prototype.getRedirectRequestContext=function(){return this.getTemporaryCache(Go.REDIRECT_CONTEXT,!0)},e.prototype.setRedirectRequestContext=function(t){this.setTemporaryCache(Go.REDIRECT_CONTEXT,t,!0)},e})(kf),rrt=function(r,e){var t={cacheLocation:bc.MemoryStorage,temporaryCacheLocation:bc.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};return new LY(r,t,ZU,e)},Wj="@azure/msal-browser",hN="2.38.3",nrt=(function(){function r(){}return r.prototype.sendGetRequestAsync=function(e,t){return pr(this,void 0,void 0,function(){var n,i,o;return gr(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,fetch(e,{method:F0.GET,headers:this.getFetchHeaders(t)})];case 1:return n=a.sent(),[3,3];case 2:throw i=a.sent(),window.navigator.onLine?Vr.createGetRequestFailedError(i,e):Vr.createNoNetworkConnectivityError();case 3:return a.trys.push([3,5,,6]),o={headers:this.getHeaderDict(n.headers)},[4,n.json()];case 4:return[2,(o.body=a.sent(),o.status=n.status,o)];case 5:throw a.sent(),Vr.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},r.prototype.sendPostRequestAsync=function(e,t){return pr(this,void 0,void 0,function(){var n,i,o,a;return gr(this,function(l){switch(l.label){case 0:n=t&&t.body||It.EMPTY_STRING,l.label=1;case 1:return l.trys.push([1,3,,4]),[4,fetch(e,{method:F0.POST,headers:this.getFetchHeaders(t),body:n})];case 2:return i=l.sent(),[3,4];case 3:throw o=l.sent(),window.navigator.onLine?Vr.createPostRequestFailedError(o,e):Vr.createNoNetworkConnectivityError();case 4:return l.trys.push([4,6,,7]),a={headers:this.getHeaderDict(i.headers)},[4,i.json()];case 5:return[2,(a.body=l.sent(),a.status=i.status,a)];case 6:throw l.sent(),Vr.createFailedToParseNetworkResponseError(e);case 7:return[2]}})})},r.prototype.getFetchHeaders=function(e){var t,n=new Headers;return e&&e.headers&&(t=e.headers,Object.keys(t).forEach(function(i){n.append(i,t[i])})),n},r.prototype.getHeaderDict=function(e){var t={};return e.forEach(function(n,i){t[i]=n}),t},r})(),irt=(function(){function r(){}return r.prototype.sendGetRequestAsync=function(e,t){return pr(this,void 0,void 0,function(){return gr(this,function(n){return[2,this.sendRequestAsync(e,F0.GET,t)]})})},r.prototype.sendPostRequestAsync=function(e,t){return pr(this,void 0,void 0,function(){return gr(this,function(n){return[2,this.sendRequestAsync(e,F0.POST,t)]})})},r.prototype.sendRequestAsync=function(e,t,n){var i=this;return new Promise(function(o,a){var l=new XMLHttpRequest;if(l.open(t,e,!0),i.setXhrHeaders(l,n),l.onload=function(){(l.status<200||300<=l.status)&&(t===F0.POST?a(Vr.createPostRequestFailedError("Failed with status "+l.status,e)):a(Vr.createGetRequestFailedError("Failed with status "+l.status,e)));try{var u=JSON.parse(l.responseText),h={headers:i.getHeaderDict(l),body:u,status:l.status};o(h)}catch{a(Vr.createFailedToParseNetworkResponseError(e))}},l.onerror=function(){window.navigator.onLine?t===F0.POST?a(Vr.createPostRequestFailedError("Failed with status "+l.status,e)):a(Vr.createGetRequestFailedError("Failed with status "+l.status,e)):a(Vr.createNoNetworkConnectivityError())},t===F0.POST&&n&&n.body)l.send(n.body);else{if(t!==F0.GET)throw Vr.createHttpMethodNotImplementedError(t);l.send()}})},r.prototype.setXhrHeaders=function(e,t){var n;t&&t.headers&&(n=t.headers,Object.keys(n).forEach(function(i){e.setRequestHeader(i,n[i])}))},r.prototype.getHeaderDict=function(t){var t=t.getAllResponseHeaders().trim().split(/[\r\n]+/),n={};return t.forEach(function(a){var a=a.split(": "),o=a.shift(),a=a.join(": ");o&&a&&(n[o]=a)}),n},r})(),Cl=(function(){function r(){}return r.clearHash=function(e){e.location.hash=It.EMPTY_STRING,typeof e.history.replaceState=="function"&&e.history.replaceState(null,It.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},r.replaceHash=function(e){e=e.split("#"),e.shift(),window.location.hash=0<e.length?e.join("#"):It.EMPTY_STRING},r.isInIframe=function(){return window.parent!==window},r.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(tv.POPUP_NAME_PREFIX+".")===0},r.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},r.getHomepage=function(){var e=new ko(window.location.href).getUrlComponents();return e.Protocol+"//"+e.HostNameAndPort+"/"},r.getBrowserNetworkClient=function(){return new(window.fetch&&window.Headers?nrt:irt)},r.blockReloadInHiddenIframes=function(){if(ko.hashContainsKnownProperties(window.location.hash)&&r.isInIframe())throw Vr.createBlockReloadInHiddenIframeError()},r.blockRedirectInIframe=function(e,t){var n=r.isInIframe();if(e===pn.Redirect&&n&&!t)throw Vr.createRedirectInIframeError(n)},r.blockAcquireTokenInPopups=function(){if(r.isInPopup())throw Vr.createBlockAcquireTokenInPopupsError()},r.blockNonBrowserEnvironment=function(e){if(!e)throw Vr.createNonBrowserEnvironmentError()},r.blockNativeBrokerCalledBeforeInitialized=function(e,t){if(e&&!t)throw Vr.createNativeBrokerCalledBeforeInitialize()},r.detectIEOrEdge=function(){var n=window.navigator.userAgent,e=n.indexOf("MSIE "),t=n.indexOf("Trident/"),n=n.indexOf("Edge/");return 0<e||0<t||0<n},r})(),_we=(function(){function r(e,t,n,i,o,a,l,u,h){this.config=e,this.browserStorage=t,this.browserCrypto=n,this.networkClient=this.config.system.networkClient,this.eventHandler=o,this.navigationClient=a,this.nativeMessageHandler=u,this.correlationId=h||this.browserCrypto.createNewGuid(),this.logger=i.clone(tv.MSAL_SKU,hN,this.correlationId),this.performanceClient=l}return r.prototype.clearCacheOnLogout=function(e){return pr(this,void 0,void 0,function(){return gr(this,function(t){switch(t.label){case 0:if(!e)return[3,5];ad.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(ad.generateAccountCacheKey(e))];case 2:return t.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return t.sent(),this.logger.error("Account provided in logout request was not found. Local cache unchanged."),[3,4];case 4:return[3,9];case 5:return t.trys.push([5,8,,9]),this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),[4,this.browserStorage.clear()];case 6:return t.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return t.sent(),[3,9];case 8:return t.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}})})},r.prototype.initializeBaseRequest=function(e,t){return pr(this,void 0,void 0,function(){var n,i,o;return gr(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(Qt.InitializeBaseRequest,e.correlationId),this.logger.verbose("Initializing BaseAuthRequest"),n=e.authority||this.config.auth.authority,t?[4,this.validateRequestAuthority(n,t)]:[3,2];case 1:a.sent(),a.label=2;case 2:if(i=vQ(e&&e.scopes||[]),(i=bn(bn({},e),{correlationId:this.correlationId,authority:n,scopes:i})).authenticationScheme){if(i.authenticationScheme===fa.SSH){if(!e.sshJwk)throw is.createMissingSshJwkError();if(!e.sshKid)throw is.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+i.authenticationScheme+'" as configured in Auth request')}else i.authenticationScheme=fa.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);return this.config.cache.claimsBasedCachingEnabled&&e.claims&&!nn.isEmptyObj(e.claims)?(o=i,[4,this.browserCrypto.hashString(e.claims)]):[3,4];case 3:o.requestedClaimsHash=a.sent(),a.label=4;case 4:return[2,i]}})})},r.prototype.getRedirectUri=function(e){return this.logger.verbose("getRedirectUri called"),e=e||this.config.auth.redirectUri||Cl.getCurrentUri(),ko.getAbsoluteUrl(e,Cl.getCurrentUri())},r.prototype.validateRequestAuthority=function(e,t){return pr(this,void 0,void 0,function(){return gr(this,function(n){switch(n.label){case 0:return[4,this.getDiscoveredAuthority(e)];case 1:if(n.sent().isAlias(t.environment))return[2];throw is.createAuthorityMismatchError()}})})},r.prototype.initializeServerTelemetryManager=function(e,t){return this.logger.verbose("initializeServerTelemetryManager called"),e={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:t||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]},new Qtt(e,this.browserStorage)},r.prototype.getDiscoveredAuthority=function(e){return pr(this,void 0,void 0,function(){var t;return gr(this,function(n){switch(n.label){case 0:return this.logger.verbose("getDiscoveredAuthority called"),t={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},e?(this.logger.verbose("Creating discovered authority with request authority"),[4,rB.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,t,this.logger)]):[3,2];case 1:return[2,n.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,rB.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,t,this.logger)];case 3:return[2,n.sent()]}})})},r})(),kk=(function(r){function e(){return r!==null&&r.apply(this,arguments)||this}return hd(e,r),e.prototype.initializeAuthorizationCodeRequest=function(t){return pr(this,void 0,void 0,function(){var n,i;return gr(this,function(o){switch(o.label){case 0:return this.performanceClient.addQueueMeasurement(Qt.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),this.logger.verbose("initializeAuthorizationRequest called",t.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return n=o.sent(),i=bn(bn({},t),{redirectUri:t.redirectUri,code:It.EMPTY_STRING,codeVerifier:n.verifier}),t.codeChallenge=n.challenge,t.codeChallengeMethod=It.S256_CODE_CHALLENGE_METHOD,[2,i]}})})},e.prototype.initializeLogoutRequest=function(t){this.logger.verbose("initializeLogoutRequest called",t==null?void 0:t.correlationId);var n,i=bn({correlationId:this.correlationId||this.browserCrypto.createNewGuid()},t);return t?t.logoutHint?this.logger.verbose("logoutHint has already been set in logoutRequest"):t.account?(n=this.getLogoutHintFromIdTokenClaims(t.account))&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),i.logoutHint=n):this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set"):this.logger.verbose("logoutHint will not be set since no logout request was configured"),t&&t.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",i.correlationId):t&&t.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",i.correlationId),i.postLogoutRedirectUri=ko.getAbsoluteUrl(t.postLogoutRedirectUri,Cl.getCurrentUri())
vendor: 5,167 bytes, line 717
717):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",i.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",i.correlationId),i.postLogoutRedirectUri=ko.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Cl.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",i.correlationId),i.postLogoutRedirectUri=ko.getAbsoluteUrl(Cl.getCurrentUri(),Cl.getCurrentUri())),i},e.prototype.getLogoutHintFromIdTokenClaims=function(t){if(t=t.idTokenClaims,t){if(t.login_hint)return t.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null},e.prototype.createAuthCodeClient=function(t,n,i){return pr(this,void 0,void 0,function(){var o;return gr(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(Qt.StandardInteractionClientCreateAuthCodeClient,this.correlationId),this.performanceClient.setPreQueueTime(Qt.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,n,i)];case 1:return o=a.sent(),[2,new pwe(o,this.performanceClient)]}})})},e.prototype.getClientConfiguration=function(t,n,i){return pr(this,void 0,void 0,function(){var o,a;return gr(this,function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(Qt.StandardInteractionClientGetClientConfiguration,this.correlationId),this.logger.verbose("getClientConfiguration called",this.correlationId),this.performanceClient.setPreQueueTime(Qt.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),[4,this.getDiscoveredAuthority(n,i)];case 1:return o=l.sent(),a=this.config.system.loggerOptions,[2,{authOptions:{clientId:this.config.auth.clientId,authority:o,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:a.loggerCallback,piiLoggingEnabled:a.piiLoggingEnabled,logLevel:a.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:t,libraryInfo:{sku:tv.MSAL_SKU,version:hN,cpu:It.EMPTY_STRING,os:It.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},e.prototype.validateAndExtractStateFromHash=function(t,n,i){if(this.logger.verbose("validateAndExtractStateFromHash called",i),!t.state)throw Vr.createHashDoesNotContainStateError();var o=vwe.extractBrowserRequestState(this.browserCrypto,t.state);if(!o)throw Vr.createUnableToParseStateError();if(o.interactionType!==n)throw Vr.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",i),t.state},e.prototype.getDiscoveredAuthority=function(t,n){var i;return pr(this,void 0,void 0,function(){var o,a,l;return gr(this,function(u){switch(u.label){case 0:return this.performanceClient.addQueueMeasurement(Qt.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),this.logger.verbose("getDiscoveredAuthority called",this.correlationId),o=(i=this.performanceClient)==null?void 0:i.startMeasurement(Qt.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),a={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},l=t||this.config.auth.authority,l=CD.generateAuthority(l,n||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),this.performanceClient.setPreQueueTime(Qt.AuthorityFactoryCreateDiscoveredInstance,this.correlationId),[4,rB.createDiscoveredInstance(l,this.config.system.networkClient,this.browserStorage,a,this.logger,this.performanceClient,this.correlationId).then(function(h){return o.endMeasurement({success:!0}),h}).catch(function(h){throw o.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),h})];case 1:return[2,u.sent()]}})})},e.prototype.initializeAuthorizationRequest=function(t,n){return pr(this,void 0,void 0,function(){var i,o,a,l,u;return gr(this,function(h){switch(h.label){case 0:return this.performanceClient.addQueueMeasurement(Qt.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId),this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),i=this.getRedirectUri(t.redirectUri),o={interactionType:n},o=nb.setRequestState(this.browserCrypto,t&&t.state||It.EMPTY_STRING,o),this.performanceClient.setPreQueueTime(Qt.InitializeBaseRequest,this.correlationId),l=[{}
vendor: 19,033 bytes, line 717
717],[4,this.initializeBaseRequest(t)];case 1:return a=bn.apply(void 0,[bn.apply(void 0,l.concat([h.sent()])),{redirectUri:i,state:o,nonce:t.nonce||this.browserCrypto.createNewGuid(),responseMode:YU.FRAGMENT}]),(u=t.account||this.browserStorage.getActiveAccount())&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+u.homeAccountId,this.correlationId),a.account=u),nn.isEmpty(a.loginHint)&&!u&&(u=this.browserStorage.getLegacyLoginHint())&&(a.loginHint=u),[2,a]}})})},e})(_we),CQ=(function(){function r(e,t,n,i,o){this.authModule=e,this.browserStorage=t,this.authCodeRequest=n,this.logger=i,this.performanceClient=o}return r.prototype.handleCodeResponseFromHash=function(e,t,n,i){return pr(this,void 0,void 0,function(){var o,a;return gr(this,function(l){if(this.performanceClient.addQueueMeasurement(Qt.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),nn.isEmpty(e))throw Vr.createEmptyHashError(e);if(o=this.browserStorage.generateStateKey(t),!(o=this.browserStorage.getTemporaryCache(o)))throw ln.createStateNotFoundError("Cached State");try{a=this.authModule.handleFragmentResponse(e,o)}catch(u){throw u instanceof mS&&u.subError===Ir.userCancelledError.code?Vr.createUserCancelledError():u}return this.performanceClient.setPreQueueTime(Qt.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),[2,this.handleCodeResponseFromServer(a,t,n,i)]})})},r.prototype.handleCodeResponseFromServer=function(e,t,n,i,o){return o===void 0&&(o=!0),pr(this,void 0,void 0,function(){var a,l,u;return gr(this,function(h){switch(h.label){case 0:if(this.performanceClient.addQueueMeasurement(Qt.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),a=this.browserStorage.generateStateKey(t),a=this.browserStorage.getTemporaryCache(a))return l=this.browserStorage.generateNonceKey(a),l=this.browserStorage.getTemporaryCache(l),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?(this.performanceClient.setPreQueueTime(Qt.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,n,i)]):[3,2];throw ln.createStateNotFoundError("Cached State");case 1:h.sent(),h.label=2;case 2:return o&&(e.nonce=l||void 0),e.state=a,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(u=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=u),this.performanceClient.setPreQueueTime(Qt.AuthClientAcquireToken,this.authCodeRequest.correlationId),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return u=h.sent(),this.browserStorage.cleanRequestByState(t),[2,u]}})})},r.prototype.updateTokenEndpointAuthority=function(e,t,n){return pr(this,void 0,void 0,function(){var i;return gr(this,function(o){switch(o.label){case 0:return this.performanceClient.addQueueMeasurement(Qt.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),i="https://"+e+"/"+t.tenant+"/",[4,rB.createDiscoveredInstance(i,n,this.browserStorage,t.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return i=o.sent(),this.authModule.updateAuthority(i),[2]}})})},r.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(Go.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+e)}return null},r})(),ise=(function(r){function e(t,n,i,o,a,l){return t=r.call(this,t,n,i,o,l)||this,t.browserCrypto=a,t}return hd(e,r),e.prototype.initiateAuthRequest=function(t,n){return pr(this,void 0,void 0,function(){var i;return gr(this,function(o){switch(o.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),nn.isEmpty(t)?[3,7]:(n.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(Go.ORIGIN_URI,n.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(Go.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+t),i={apiId:ns.acquireTokenRedirect,timeout:n.redirectTimeout,noHistory:!1},typeof n.onRedirectNavigate!="function"?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),n.onRedirectNavigate(t)===!1?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,n.navigationClient.navigateExternal(t,i)])));case 1:return o.sent(),[2];case 2:return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,n.navigationClient.navigateExternal(t,i)];case 5:return o.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),Vr.createEmptyNavigationUriError();case 8:return[2]}})})},e.prototype.handleCodeResponseFromHash=function(t,n,i,o){return pr(this,void 0,void 0,function(){var a,l,u,h;return gr(this,function(p){switch(p.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),nn.isEmpty(t))throw Vr.createEmptyHashError(t);if(this.browserStorage.setInteractionInProgress(!1),a=this.browserStorage.generateStateKey(n),!(a=this.browserStorage.getTemporaryCache(a)))throw ln.createStateNotFoundError("Cached State");try{l=this.authModule.handleFragmentResponse(t,a)}catch(m){throw m instanceof mS&&m.subError===Ir.userCancelledError.code?Vr.createUserCancelledError():m}return u=this.browserStorage.generateNonceKey(a),u=this.browserStorage.getTemporaryCache(u),this.authCodeRequest.code=l.code,l.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(l.cloud_instance_host_name,i,o)]:[3,2];case 1:p.sent(),p.label=2;case 2:return l.nonce=u||void 0,l.state=a,l.client_info?this.authCodeRequest.clientInfo=l.client_info:(h=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=h),[4,this.authModule.acquireToken(this.authCodeRequest,l)];case 3:return h=p.sent(),this.browserStorage.cleanRequestByState(n),[2,h]}})})},e})(CQ),sO=((function(r){r.INITIALIZE_START="msal:initializeStart",r.INITIALIZE_END="msal:initializeEnd",r.ACCOUNT_ADDED="msal:accountAdded",r.ACCOUNT_REMOVED="msal:accountRemoved",r.LOGIN_START="msal:loginStart",r.LOGIN_SUCCESS="msal:loginSuccess",r.LOGIN_FAILURE="msal:loginFailure",r.ACQUIRE_TOKEN_START="msal:acquireTokenStart",r.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",r.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",r.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",r.SSO_SILENT_START="msal:ssoSilentStart",r.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",r.SSO_SILENT_FAILURE="msal:ssoSilentFailure",r.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",r.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",r.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",r.HANDLE_REDIRECT_START="msal:handleRedirectStart",r.HANDLE_REDIRECT_END="msal:handleRedirectEnd",r.POPUP_OPENED="msal:popupOpened",r.LOGOUT_START="msal:logoutStart",r.LOGOUT_SUCCESS="msal:logoutSuccess",r.LOGOUT_FAILURE="msal:logoutFailure",r.LOGOUT_END="msal:logoutEnd",r.RESTORE_FROM_BFCACHE="msal:restoreFromBFCache"})(ui=ui||{}),(function(r){r.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",r.USER_CANCEL="USER_CANCEL",r.NO_NETWORK="NO_NETWORK",r.TRANSIENT_ERROR="TRANSIENT_ERROR",r.PERSISTENT_ERROR="PERSISTENT_ERROR",r.DISABLED="DISABLED",r.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"})(Vw=Vw||{}),{extensionError:{code:"ContentError"},userSwitch:{code:"user_switch",desc:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."},tokensNotFoundInCache:{code:"tokens_not_found_in_internal_memory_cache",desc:"Tokens not cached in MSAL JS internal memory, please make the WAM request"}}),Z0=(function(r){function e(t,n,i){return t=r.call(this,t,n)||this,Object.setPrototypeOf(t,e.prototype),t.name="NativeAuthError",t.ext=i,t}return hd(e,r),e.prototype.isFatal=function(){return!(!this.ext||!this.ext.status||this.ext.status!==Vw.PERSISTENT_ERROR&&this.ext.status!==Vw.DISABLED)||this.errorCode===sO.extensionError.code},e.createError=function(t,n,i){if(i&&i.status)switch(i.status){case Vw.ACCOUNT_UNAVAILABLE:return Im.createNativeAccountUnavailableError();case Vw.USER_INTERACTION_REQUIRED:return new Im(t,n);case Vw.USER_CANCEL:return Vr.createUserCancelledError();case Vw.NO_NETWORK:return Vr.createNoNetworkConnectivityError()}return new e(t,n,i)},e.createUserSwitchError=function(){return new e(sO.userSwitch.code,sO.userSwitch.desc)},e.createTokensNotFoundInCacheError=function(){return new e(sO.tokensNotFoundInCache.code,sO.tokensNotFoundInCache.desc)},e})(xn),bwe=(function(r){function e(){return r!==null&&r.apply(this,arguments)||this}return hd(e,r),e.prototype.acquireToken=function(t){return pr(this,void 0,void 0,function(){var n,i,o,a;return gr(this,function(l){switch(l.label){case 0:return n=this.performanceClient.startMeasurement(Qt.SilentCacheClientAcquireToken,t.correlationId),o=this.initializeServerTelemetryManager(ns.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(o,t.authority,t.azureCloudOptions)];case 1:i=l.sent(),this.logger.verbose("Silent auth client created"),l.label=2;case 2:return l.trys.push([2,4,,5]),[4,i.acquireCachedToken(t)];case 3:return o=l.sent(),n.endMeasurement({success:!0,fromCache:!0}),[2,o];case 4:throw(a=l.sent())instanceof Vr&&a.errorCode===Ir.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),n.endMeasurement({errorCode:a instanceof xn&&a.errorCode||void 0,subErrorCode:a instanceof xn&&a.subError||void 0,success:!1}),a;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(Vr.createSilentLogoutUnsupportedError())},e.prototype.createSilentFlowClient=function(t,n,i){return pr(this,void 0,void 0,function(){var o;return gr(this,function(a){switch(a.label){case 0:return this.performanceClient.setPreQueueTime(Qt.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,n,i)];case 1:return o=a.sent(),[2,new qtt(o,this.performanceClient)]}})})},e.prototype.initializeSilentRequest=function(t,n){return pr(this,void 0,void 0,function(){var i;return gr(this,function(o){switch(o.label){case 0:return this.performanceClient.addQueueMeasurement(Qt.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(Qt.InitializeBaseRequest,this.correlationId),i=[bn({},t)],[4,this.initializeBaseRequest(t,n)];case 1:return[2,bn.apply(void 0,[bn.apply(void 0,i.concat([o.sent()])),{account:n,forceRefresh:t.forceRefresh||!1}])]}})})},e})(kk),QR=(function(r){function e(t,n,i,o,a,l,u,h,p,m,_,C){return n=r.call(this,t,n,i,o,a,l,h,p,C)||this,n.apiId=u,n.accountId=m,n.nativeMessageHandler=p,n.nativeStorageManager=_,n.silentCacheClient=new bwe(t,n.nativeStorageManager,i,o,a,l,h,p,C),n}return hd(e,r),e.prototype.acquireToken=function(t){return pr(this,void 0,void 0,function(){var n,i,o,a,l;return gr(this,function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),n=this.performanceClient.startMeasurement(Qt.NativeInteractionClientAcquireToken,t.correlationId),i=Nm.nowSeconds(),[4,this.initializeNativeRequest(t)];case 1:o=u.sent(),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,o)];case 3:return a=u.sent(),n.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,a];case 4:return u.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return a={method:z1.GetToken,request:o},[4,this.nativeMessageHandler.sendMessage(a)];case 6:return l=u.sent(),l=this.validateNativeResponse(l),[2,this.handleNativeResponse(l,o,i).then(function(h){return n.endMeasurement({success:!0,isNativeBroker:!0,requestId:h.requestId}),h}).catch(function(h){throw n.endMeasurement({success:!1,errorCode:h.errorCode,subErrorCode:h.subError,isNativeBroker:!0}),h})]}})})},e.prototype.createSilentCacheRequest=function(t,n){return{authority:t.authority,correlationId:this.correlationId,scopes:Fd.fromString(t.scope).asArray(),account:n,forceRefresh:!1}},e.prototype.acquireTokensFromCache=function(t,n){return pr(this,void 0,void 0,function(){var i,o;return gr(this,function(a){switch(a.label){case 0:if(!t)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),ln.createNoAccountFoundError();if(!(i=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:t})))throw ln.createNoAccountFoundError();a.label=1;case 1:return a.trys.push([1,3,,4]),o=this.createSilentCacheRequest(n,i),[4,this.silentCacheClient.acquireToken(o)];case 2:return[2,a.sent()];case 3:throw a.sent();case 4:return[2]}})})},e.prototype.acquireTokenRedirect=function(t){return pr(this,void 0,void 0,function(){var n,i,o,a,l;return gr(this,function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(t)];case 1:n=u.sent(),i={method:z1.GetToken,request:n},u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(i)];case 3:return o=u.sent(),this.validateNativeResponse(o),[3,5];case 4:if((o=u.sent())instanceof Z0&&o.isFatal())throw o;return[3,5];case 5:return this.browserStorage.setTemporaryCache(Go.NATIVE_REQUEST,JSON.stringify(n),!0),a={apiId:ns.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},l=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(t.redirectUri),[4,this.navigationClient.navigateExternal(l,a)];case 6:return u.sent(),[2]}})})},e.prototype.handleRedirectPromise=function(){return pr(this,void 0,void 0,function(){var t,n,i,o;return gr(this,function(a){switch(a.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(!(t=this.browserStorage.getCachedNativeRequest()))return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];n=t.prompt,t=Vae(t,["prompt"]),n&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Go.NATIVE_REQUEST)),n={method:z1.GetToken,request:t},i=Nm.nowSeconds(),a.label=1;case 1:return a.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(n)];case 2:return o=a.sent(),this.validateNativeResponse(o),o=this.handleNativeResponse(o,t,i),this.browserStorage.setInteractionInProgress(!1),[2,o];case 3:throw o=a.sent(),this.browserStorage.setInteractionInProgress(!1),o;case 4:return[2]}})})},e.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},e.prototype.handleNativeResponse=function(t,n,i){return pr(this,void 0,void 0,function(){var o,a,l,u;return gr(this,function(h){switch(h.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),t.account.id!==n.accountId)throw Z0.createUserSwitchError();return[4,this.getDiscoveredAuthority(n.authority)];case 1:return u=h.sent(),l=u.getPreferredCache(),o=this.createIdTokenObj(t),a=this.createHomeAccountIdentifier(t,o),l=this.createAccountEntity(t,a,o,l),[4,this.generateAuthenticationResult(t,n,o,l,u.canonicalAuthority,i)];case 2:return u=h.sent(),this.cacheAccount(l),this.cacheNativeTokens(t,n,a,l,o,u.accessToken,u.tenantId,i),[2,u]}})})},e.prototype.createIdTokenObj=function(t){return new v_(t.id_token||It.EMPTY_STRING,this.browserCrypto)},e.prototype.createHomeAccountIdentifier=function(t,n){return ad.generateHomeAccountId(t.client_info||It.EMPTY_STRING,kh.Default,this.logger,this.browserCrypto,n)},e.prototype.createAccountEntity=function(t,n,i,o){return ad.createAccount(t.client_info,n,i,void 0,void 0,void 0,o,t.account.id)},e.prototype.generateScopes=function(t,n){return t.scope?Fd.fromString(t.scope):Fd.fromString(n.scope)},e.prototype.generatePopAccessToken=function(t,n){return pr(this,void 0,void 0,function(){var i,o;return gr(this,function(a){switch(a.label){case 0:if(n.tokenType!==fa.POP)return[3,2];if(t.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,t.shr];if(i=new WP(this.browserCrypto),o={resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,shrNonce:n.shrNonce},n.keyId)return[4,i.signPopToken(t.access_token,n.keyId,o)];throw ln.createKeyIdMissingError();case 1:return[2,a.sent()];case 2:return[2,t.access_token]}})})},e.prototype.generateAuthenticationResult=function(t,n,i,o,a,l){return pr(this,void 0,void 0,function(){var u,h,p,m,_,C;return gr(this,function(T){switch(T.label){case 0:return u=this.addTelemetryFromNativeResponse(t),h=t.scope?Fd.fromString(t.scope):Fd.fromString(n.scope),m=t.account.properties||{},p=m.UID||i.claims.oid||i.claims.sub||It.EMPTY_STRING,m=m.TenantId||i.claims.tid||It.EMPTY_STRING,[4,this.generatePopAccessToken(t,n)];case 1:return _=T.sent(),C=n.tokenType===fa.POP?fa.POP:fa.BEARER,[2,{authority:a,uniqueId:p,tenantId:m,scopes:h.asArray(),account:o.getAccountInfo(),idToken:t.id_token,idTokenClaims:i.claims,accessToken:_,fromCache:!!u&&this.isResponseFromCache(u),expiresOn:new Date(1e3*Number(l+t.expires_in)),tokenType:C,correlationId:this.correlationId,state:t.state,fromNativeBroker:!0}]}})})},e.prototype.cacheAccount=function(t){var n=this;this.browserStorage.setAccount(t),this.browserStorage.removeAccountContext(t).catch(function(i){n.logger.error("Error occurred while removing account context from browser storage. "+i)})},e.prototype.cacheNativeTokens=function(_,n,C,o,a,T,u,m){var p=lT.createIdTokenEntity(C,n.authority,_.id_token||It.EMPTY_STRING,n.clientId,a.claims.tid||It.EMPTY_STRING),m=m+(n.tokenType===fa.POP?It.SHR_NONCE_VALIDITY:(typeof _.expires_in=="str
717ing"?parseInt(_.expires_in,10):_.expires_in)||0),_=this.generateScopes(_,n),C=cT.createAccessTokenEntity(C,n.authority,T,n.clientId,a?a.claims.tid||It.EMPTY_STRING:u,_.printScopes(),m,0,this.browserCrypto),T=new eB(o,p,C);this.nativeStorageManager.saveCacheRecord(T)},e.prototype.addTelemetryFromNativeResponse=function(t){return t=this.getMATSFromResponse(t),t?(this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:t.broker_version,matsAccountJoinOnStart:t.account_join_on_start,matsAccountJoinOnEnd:t.account_join_on_end,matsDeviceJoin:t.device_join,matsPromptBehavior:t.prompt_behavior,matsApiErrorCode:t.api_error_code,matsUiVisible:t.ui_visible,matsSilentCode:t.silent_code,matsSilentBiSubCode:t.silent_bi_sub_code,matsSilentMessage:t.silent_message,matsSilentStatus:t.silent_status,matsHttpStatus:t.http_status,matsHttpEventCount:t.http_event_count},this.correlationId),t):null},e.prototype.validateNativeResponse=function(t){if(t.hasOwnProperty("access_token")&&t.hasOwnProperty("id_token")&&t.hasOwnProperty("client_info")&&t.hasOwnProperty("account")&&t.hasOwnProperty("scope")&&t.hasOwnProperty("expires_in"))return t;throw Z0.createUnexpectedError("Response missing expected properties.")},e.prototype.getMATSFromResponse=function(t){if(t.properties.MATS)try{return JSON.parse(t.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},e.prototype.isResponseFromCache=function(t){return t.is_cached===void 0?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!t.is_cached},e.prototype.initializeNativeRequest=function(t){return pr(this,void 0,void 0,function(){var n,i,o,a,l,u=this;return gr(this,function(h){switch(h.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),n=t.authority||this.config.auth.authority,t.account?[4,this.validateRequestAuthority(n,t.account)]:[3,2];case 1:h.sent(),h.label=2;case 2:return(a=new ko(n)).validateAsUri(),l=t.scopes,o=Vae(t,["scopes"]),(l=new Fd(l||[])).appendScopes(RL),i=function(){switch(u.apiId){case ns.ssoSilent:case ns.acquireTokenSilent_silentFlow:return u.logger.trace("initializeNativeRequest: silent request sets prompt to none"),jd.NONE}if(t.prompt)switch(t.prompt){case jd.NONE:case jd.CONSENT:case jd.LOGIN:return u.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),t.prompt;default:throw u.logger.trace("initializeNativeRequest: prompt = "+t.prompt+" is not compatible with native flow"),Vr.createNativePromptParameterNotSupportedError()}else u.logger.trace("initializeNativeRequest: prompt was not provided")},o=bn(bn({},o),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:a.urlString,scope:l.printScopes(),redirectUri:this.getRedirectUri(t.redirectUri),prompt:i(),correlationId:this.correlationId,tokenType:t.authenticationScheme,windowTitleSubstring:document.title,extraParameters:bn(bn(bn({},t.extraQueryParameters),t.tokenQueryParameters),{telemetry:SM.MATS_TELEMETRY}),extendedExpiryToken:!1}),t.authenticationScheme!==fa.POP?[3,4]:(a={resourceRequestUri:t.resourceRequestUri,resourceRequestMethod:t.resourceRequestMethod,shrClaims:t.shrClaims,shrNonce:t.shrNonce},[4,new WP(this.browserCrypto).generateCnf(a)]);case 3:l=h.sent(),o.reqCnf=l.reqCnfString,o.keyId=l.kid,h.label=4;case 4:return[2,o]}})})},e})(_we),VT=(function(){function r(e,t,n,i){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=i,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=n,this.handshakeEvent=n.startMeasurement(Qt.NativeMessageHandlerHandshake)}return r.prototype.sendMessage=function(e){return pr(this,void 0,void 0,function(){var t,n=this;return gr(this,function(i){return this.logger.trace("NativeMessageHandler - sendMessage called."),t={channel:SM.CHA
vendor: 4,857 bytes, line 717
717NNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:e},this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii("NativeMessageHandler - Sending request to browser extension: "+JSON.stringify(t)),this.messageChannel.port1.postMessage(t),[2,new Promise(function(o,a){n.resolvers.set(t.responseId,{resolve:o,reject:a})})]})})},r.createProvider=function(e,t,n){return pr(this,void 0,void 0,function(){var i,o;return gr(this,function(a){switch(a.label){case 0:e.trace("NativeMessageHandler - createProvider called."),a.label=1;case 1:return a.trys.push([1,3,,5]),[4,(i=new r(e,t,n,SM.PREFERRED_EXTENSION_ID)).sendHandshakeRequest()];case 2:return a.sent(),[2,i];case 3:return a.sent(),[4,(o=new r(e,t,n)).sendHandshakeRequest()];case 4:return a.sent(),[2,o];case 5:return[2]}})})},r.prototype.sendHandshakeRequest=function(){return pr(this,void 0,void 0,function(){var e,t=this;return gr(this,function(n){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:SM.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:z1.HandshakeRequest}},this.handshakeEvent.addStaticFields({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=function(i){t.onChannelMessage(i)},window.postMessage(e,window.origin,[this.messageChannel.port2]),[2,new Promise(function(i,o){t.handshakeResolvers.set(e.responseId,{resolve:i,reject:o}),t.timeoutId=window.setTimeout(function(){window.removeEventListener("message",t.windowListener,!1),t.messageChannel.port1.close(),t.messageChannel.port2.close(),t.handshakeEvent.endMeasurement({extensionHandshakeTimedOut:!0,success:!1}),o(Vr.createNativeHandshakeTimeoutError()),t.handshakeResolvers.delete(e.responseId)},t.handshakeTimeoutMs)})]})})},r.prototype.onWindowMessage=function(e){this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source!==window||!(e=e.data).channel||e.channel!==SM.CHANNEL_ID||e.extensionId&&e.extensionId!==this.extensionId||e.body.method===z1.HandshakeRequest&&(this.logger.verbose(e.extensionId?"Extension with id: "+e.extensionId+" not installed":"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1),e=this.handshakeResolvers.get(e.responseId))&&(this.handshakeEvent.endMeasurement({success:!1,extensionInstalled:!1}),e.reject(Vr.createNativeExtensionNotInstalledError()))},r.prototype.onChannelMessage=function(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var t=e.data,n=this.resolvers.get(t.responseId),i=this.handshakeResolvers.get(t.responseId);try{var o=t.body.method;if(o===z1.Response){if(n){var a=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(a)),a.status!=="Success")n.reject(Z0.createError(a.code,a.description,a.ext));else{if(!a.result)throw xn.createUnexpectedError("Event does not contain result.");a.result.code&&a.result.description?n.reject(Z0.createError(a.result.code,a.result.description,a.result.ext)):n.resolve(a.result)}this.resolvers.delete(t.responseId)}}else o===z1.HandshakeResponse&&i&&(clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=t.extensionId,this.extensionVersion=t.body.version,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),this.handshakeEvent.endMeasurement({extensionInstalled:!0,success:!0}),i.resolve(),this.handshakeResolvers.delete(t.responseId))}catch(l){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+l.toString()),this.logger.errorPii("Unable to parse "+e),n?n.reject(l):i&&i.reject(l)}},r.prototype.getExtensionId=function(){return this.extensionId},r.prototype.getExtensionVersion=function(){return this.extensionVersion},r.isNativeAvailable=function(e,t,n,i){if(t.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return t.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!n)return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(i)switch(i){case fa.BEARER:case fa.POP:return t.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return t.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},r})(),ort=(function(r){function e(t,n,i,o,a,l,u,h,p,m){return t=r.call(this,t,n,i,o,a,l,u,p,m)||this,t.n
vendor: 4,146 bytes, line 717
717ativeStorage=h,t}return hd(e,r),e.prototype.acquireToken=function(t){return pr(this,void 0,void 0,function(){var n,i,o,a,l,u,h,p=this;return gr(this,function(m){switch(m.label){case 0:return this.performanceClient.setPreQueueTime(Qt.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,pn.Redirect)];case 1:n=m.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||It.EMPTY_STRING,n.account||null),i=this.initializeServerTelemetryManager(ns.acquireTokenRedirect),o=function(_){_.persisted&&(p.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),p.browserStorage.cleanRequestByState(n.state),p.eventHandler.emitEvent(ui.RESTORE_FROM_BFCACHE,pn.Redirect))},m.label=2;case 2:return m.trys.push([2,7,,8]),this.performanceClient.setPreQueueTime(Qt.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(n)];case 3:return a=m.sent(),this.performanceClient.setPreQueueTime(Qt.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(i,n.authority,n.azureCloudOptions)];case 4:return u=m.sent(),this.logger.verbose("Auth code client created"),l=new ise(u,this.browserStorage,a,this.logger,this.browserCrypto,this.performanceClient),[4,u.getAuthCodeUrl(bn(bn({},n),{nativeBroker:VT.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}))];case 5:return u=m.sent(),h=this.getRedirectStartPage(t.redirectStartPage),this.logger.verbosePii("Redirect start page: "+h),window.addEventListener("pageshow",o),[4,l.initiateAuthRequest(u,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:h,onRedirectNavigate:t.onRedirectNavigate})];case 6:return[2,m.sent()];case 7:throw(h=m.sent())instanceof xn&&h.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",o),i.cacheFailedRequest(h),this.browserStorage.cleanRequestByState(n.state),h;case 8:return[2]}})})},e.prototype.handleRedirectPromise=function(t){return pr(this,void 0,void 0,function(){var n,i,o,a,l,u,h,p,m,_;return gr(this,function(C){switch(C.label){case 0:n=this.initializeServerTelemetryManager(ns.handleRedirectPromise),C.label=1;case 1:if(C.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(!(i=this.getRedirectResponseHash(t||window.location.hash)))return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(pn.Redirect),[2,null];o=void 0;try{a=ko.getDeserializedHash(i),o=this.validateAndExtractStateFromHash(a,pn.Redirect),this.logger.verbose("State extracted from hash")}catch(T){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+T),this.browserStorage.cleanRequestByInteractionType(pn.Redirect),[2,null]}return l=this.browserStorage.getTemporaryCache(Go.ORIGIN_URI,!0)||It.EMPTY_STRING,u=ko.removeHashFromUrl(l),m=ko.removeHashFromUrl(window.location.href),u===m&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(i,o,n)]):[3,3];case 2:return u=C.sent(),-1<l.indexOf("#")&&Cl.replaceHash(l),[2,u];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(i,o,n)]);case 4:return Cl.isInIframe()&&!this.config.system.allowRedirectInIframe?[3,9]:(this.browserStorage.setTemporaryCache(Go.URL_HASH,i,!0),h={apiId:ns.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},p=!0,l&&l!=="null"?[3,6]:(m=Cl.getHomepage(),this.browserStorage.setTemporaryCache(Go.ORIGIN_URI,m,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(m,h)])
vendor: 28,531 bytes, line 717
717);case 5:return p=C.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+l),[4,this.navigationClient.navigateInternal(l,h)];case 7:p=C.sent(),C.label=8;case 8:if(!p)return[2,this.handleHash(i,o,n)];C.label=9;case 9:return[2,null];case 10:throw(_=C.sent())instanceof xn&&_.setCorrelationId(this.correlationId),n.cacheFailedRequest(_),this.browserStorage.cleanRequestByInteractionType(pn.Redirect),_;case 11:return[2]}})})},e.prototype.getRedirectResponseHash=function(t){return this.logger.verbose("getRedirectResponseHash called"),ko.hashContainsKnownProperties(t)?(Cl.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash")):(t=this.browserStorage.getTemporaryCache(Go.URL_HASH,!0),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Go.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash")),t},e.prototype.handleHash=function(t,n,i){return pr(this,void 0,void 0,function(){var o,a,l,u=this;return gr(this,function(h){switch(h.label){case 0:if(o=this.browserStorage.getCachedRequest(n,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),(a=ko.getDeserializedHash(t)).accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),this.nativeMessageHandler)return a=new QR(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ns.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,a.accountId,this.nativeStorage,o.correlationId),l=nb.parseRequestState(this.browserCrypto,n).userRequestState,[2,a.acquireToken(bn(bn({},o),{state:l,prompt:void 0})).finally(function(){u.browserStorage.cleanRequestByState(n)})];throw Vr.createNativeConnectionNotEstablishedError()}if(a=this.browserStorage.getCachedAuthority(n))return this.performanceClient.setPreQueueTime(Qt.StandardInteractionClientCreateAuthCodeClient,o.correlationId),[4,this.createAuthCodeClient(i,a)];throw Vr.createNoCachedAuthorityError();case 1:return l=h.sent(),this.logger.verbose("Auth code client created"),JU.removeThrottle(this.browserStorage,this.config.auth.clientId,o),[4,new ise(l,this.browserStorage,o,this.logger,this.browserCrypto,this.performanceClient).handleCodeResponseFromHash(t,n,l.authority,this.networkClient)];case 2:return[2,h.sent()]}})})},e.prototype.logout=function(t){return pr(this,void 0,void 0,function(){var n,i,o,a,l;return gr(this,function(u){switch(u.label){case 0:this.logger.verbose("logoutRedirect called"),n=this.initializeLogoutRequest(t),i=this.initializeServerTelemetryManager(ns.logout),u.label=1;case 1:return u.trys.push([1,10,,11]),this.eventHandler.emitEvent(ui.LOGOUT_START,pn.Redirect,t),[4,this.clearCacheOnLogout(n.account)];case 2:return u.sent(),o={apiId:ns.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(Qt.StandardInteractionClientCreateAuthCodeClient,n.correlationId),[4,this.createAuthCodeClient(i,t&&t.authority)];case 3:return a=u.sent(),this.logger.verbose("Auth code client created"),a=a.getLogoutUri(n),this.eventHandler.emitEvent(ui.LOGOUT_SUCCESS,pn.Redirect,n),t&&typeof t.onRedirectNavigate=="function"?t.onRedirectNavigate(a)===!1?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(a,o)]):[3,7];case 4:return u.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),u.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(a,o)];case 8:return u.sent(),[2];case 9:return[3,11];case 10:throw(l=u.sent())instanceof xn&&l.setCorrelationId(this.correlationId),i.cacheFailedRequest(l),this.eventHandler.emitEvent(ui.LOGOUT_FAILURE,pn.Redirect,null,l),this.eventHandler.emitEvent(ui.LOGOUT_END,pn.Redirect),l;case 11:return this.eventHandler.emitEvent(ui.LOGOUT_END,pn.Redirect),[2]}})})},e.prototype.getRedirectStartPage=function(t){return t=t||window.location.href,ko.getAbsoluteUrl(t,Cl.getCurrentUri())},e})(kk),art=(function(r){function e(t,n,i,o,a,l,u,h,p,m){return t=r.call(this,t,n,i,o,a,l,u,p,m)||this,t.unloadWindow=t.unloadWindow.bind(t),t.nativeStorage=h,t}return hd(e,r),e.prototype.acquireToken=function(t){try{var n,i=this.generatePopupName(t.scopes||RL,t.authority||this.config.auth.authority),o=t.popupWindowAttributes||{};return this.config.system.asyncPopups?(this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(t,i,o)):(this.logger.verbose("asyncPopup set to false, opening popup before acquiring token"),n=this.openSizedPopup("about:blank",i,o),this.acquireTokenPopupAsync(t,i,o,n))}catch(a){return Promise.reject(a)}},e.prototype.logout=function(t){try{this.logger.verbose("logoutPopup called");var n,i=this.initializeLogoutRequest(t),o=this.generateLogoutPopupName(i),a=t&&t.authority,l=t&&t.mainWindowRedirectUri,u=(t==null?void 0:t.popupWindowAttributes)||{};return this.config.system.asyncPopups?(this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(i,o,u,a,void 0,l)):(this.logger.verbose("asyncPopup set to false, opening popup"),n=this.openSizedPopup("about:blank",o,u),this.logoutPopupAsync(i,o,u,a,n,l))}catch(h){return Promise.reject(h)}},e.prototype.acquireTokenPopupAsync=function(t,n,i,o){return pr(this,void 0,void 0,function(){var a,l,u,h,p,m,_,C,T,S,R,O=this;return gr(this,function(N){switch(N.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),a=this.initializeServerTelemetryManager(ns.acquireTokenPopup),this.performanceClient.setPreQueueTime(Qt.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,pn.Popup)];case 1:l=N.sent(),this.browserStorage.updateCacheEntries(l.state,l.nonce,l.authority,l.loginHint||It.EMPTY_STRING,l.account||null),N.label=2;case 2:return N.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(Qt.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(l)];case 3:return u=N.sent(),this.performanceClient.setPreQueueTime(Qt.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(a,l.authority,l.azureCloudOptions)];case 4:return h=N.sent(),this.logger.verbose("Auth code client created"),m=VT.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme),p=void 0,m&&(p=this.performanceClient.startMeasurement(Qt.FetchAccountIdWithNativeBroker,t.correlationId)),[4,h.getAuthCodeUrl(bn(bn({},l),{nativeBroker:m}))];case 5:return m=N.sent(),_=new CQ(h,this.browserStorage,u,this.logger,this.performanceClient),C={popup:o,popupName:n,popupWindowAttributes:i},C=this.initiateAuthRequest(m,C),this.eventHandler.emitEvent(ui.POPUP_OPENED,pn.Popup,{popupWindow:C},null),[4,this.monitorPopupForHash(C)];case 6:if(C=N.sent(),R=ko.getDeserializedHash(C),T=this.validateAndExtractStateFromHash(R,pn.Popup,l.correlationId),JU.removeThrottle(this.browserStorage,this.config.auth.clientId,u),R.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),p&&p.endMeasurement({success:!0,isNativeBroker:!0}),this.nativeMessageHandler)return R=new QR(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ns.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,R.accountId,this.nativeStorage,l.correlationId),S=nb.parseRequestState(this.browserCrypto,T).userRequestState,[2,R.acquireToken(bn(bn({},l),{state:S,prompt:void 0})).finally(function(){O.browserStorage.cleanRequestByState(T)})];throw Vr.createNativeConnectionNotEstablishedError()}return[4,_.handleCodeResponseFromHash(C,T,h.authority,this.networkClient)];case 7:return[2,N.sent()];case 8:throw R=N.sent(),o&&o.close(),R instanceof xn&&R.setCorrelationId(this.correlationId),a.cacheFailedRequest(R),this.browserStorage.cleanRequestByState(l.state),R;case 9:return[2]}})})},e.prototype.logoutPopupAsync=function(t,n,i,o,a,l){return pr(this,void 0,void 0,function(){var u,h,p;return gr(this,function(m){switch(m.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(ui.LOGOUT_START,pn.Popup,t),u=this.initializeServerTelemetryManager(ns.logoutPopup),m.label=1;case 1:return m.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(t.account)];case 2:return m.sent(),this.performanceClient.setPreQueueTime(Qt.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(u,o)];case 3:return h=m.sent(),this.logger.verbose("Auth code client created"),h=h.getLogoutUri(t),this.eventHandler.emitEvent(ui.LOGOUT_SUCCESS,pn.Popup,t),h=this.openPopup(h,{popupName:n,popupWindowAttributes:i,popup:a}),this.eventHandler.emitEvent(ui.POPUP_OPENED,pn.Popup,{popupWindow:h},null),[4,this.waitForLogoutPopup(h)];case 4:return m.sent(),l?(h={apiId:ns.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},p=ko.getAbsoluteUrl(l,Cl.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+p),this.navigationClient.navigateInternal(p,h)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw p=m.sent(),a&&a.close(),p instanceof xn&&p.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(ui.LOGOUT_FAILURE,pn.Popup,null,p),this.eventHandler.emitEvent(ui.LOGOUT_END,pn.Popup),u.cacheFailedRequest(p),p;case 6:return this.eventHandler.emitEvent(ui.LOGOUT_END,pn.Popup),[2]}})})},e.prototype.initiateAuthRequest=function(t,n){if(nn.isEmpty(t))throw this.logger.error("Navigate url is empty"),Vr.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+t),this.openPopup(t,n)},e.prototype.monitorPopupForHash=function(t){var n=this;return new Promise(function(i,o){var a=n.config.system.windowHashTimeout/n.config.system.pollIntervalMilliseconds,l=0,u=(n.logger.verbose("PopupHandler.monitorPopupForHash - polling started"),setInterval(function(){if(t.closed)n.logger.error("PopupHandler.monitorPopupForHash - window closed"),n.cleanPopup(),clearInterval(u),o(Vr.createUserCancelledError());else{var h=It.EMPTY_STRING,p=It.EMPTY_STRING;try{h=t.location.href,p=t.location.hash}catch{}nn.isEmpty(h)||h==="about:blank"||(n.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),l++,p?(n.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(u),n.cleanPopup(t),ko.hashContainsKnownProperties(p)?(n.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),i(p)):(n.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."),n.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+p),o(Vr.createHashDoesNotContainKnownPropertiesError()))):a<l&&(n.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(u),o(Vr.createMonitorPopupTimeoutError())))}},n.config.system.pollIntervalMilliseconds))})},e.prototype.waitForLogoutPopup=function(t){var n=this;return new Promise(function(i){n.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var o=setInterval(function(){t.closed&&(n.logger.error("PopupHandler.waitForLogoutPopup - window closed"),n.cleanPopup(),clearInterval(o),i());var a=It.EMPTY_STRING;try{a=t.location.href}catch{}nn.isEmpty(a)||a==="about:blank"||(n.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(o),n.cleanPopup(t),i())},n.config.system.pollIntervalMilliseconds)})},e.prototype.openPopup=function(t,n){try{var i=void 0;if(n.popup?(i=n.popup,this.logger.verbosePii("Navigating popup window to: "+t),i.location.assign(t)):n.popup===void 0&&(this.logger.verbosePii("Opening popup window to: "+t),i=this.openSizedPopup(t,n.popupName,n.popupWindowAttributes)),i)return i.focus&&i.focus(),this.currentWindow=i,window.addEventListener("beforeunload",this.unloadWindow),i;throw Vr.createEmptyWindowCreatedError()}catch(o){throw this.logger.error("error opening popup "+o.message),this.browserStorage.setInteractionInProgress(!1),Vr.createPopupWindowError(o.toString())}},e.prototype.openSizedPopup=function(t,n,_){var o=window.screenLeft||window.screenX,a=window.screenTop||window.screenY,l=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,u=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,h=(h=_.popupSize)==null?void 0:h.width,p=(p=_.popupSize)==null?void 0:p.height,m=(m=_.popupPosition)==null?void 0:m.top,_=(_=_.popupPosition)==null?void 0:_.left;return(!h||h<0||l<h)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),h=tv.POPUP_WIDTH),(!p||p<0||u<p)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),p=tv.POPUP_HEIGHT),(!m||m<0||u<m)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),m=Math.max(0,u/2-tv.POPUP_HEIGHT/2+a)),(!_||_<0||l<_)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),_=Math.max(0,l/2-tv.POPUP_WIDTH/2+o)),window.open(t,n,"width="+h+", height="+p+", top="+m+", left="+_+", scrollbars=yes")},e.prototype.unloadWindow=function(t){this.browserStorage.cleanRequestByInteractionType(pn.Popup),this.currentWindow&&this.currentWindow.close(),t.preventDefault()},e.prototype.cleanPopup=function(t){t&&t.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},e.prototype.generatePopupName=function(t,n){return tv.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+t.join("-")+"."+n+"."+this.correlationId},e.prototype.generateLogoutPopupName=function(t){return t=t.account&&t.account.homeAccountId,tv.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+t+"."+this.correlationId},e})(kk),srt=(function(){function r(){}return r.prototype.navigateInternal=function(e,t){return r.defaultNavigateWindow(e,t)},r.prototype.navigateExternal=function(e,t){return r.defaultNavigateWindow(e,t)},r.defaultNavigateWindow=function(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise(function(n){setTimeout(function(){n(!0)},t.timeout)})},r})(),lrt=6e4,HY=6e3,crt=3e4,urt=2e3;function drt(i,l){var t=i.auth,n=i.cache,u=i.system,i=i.telemetry,o={clientId:It.EMPTY_STRING,authority:""+It.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:It.EMPTY_STRING,authorityMetadata:It.EMPTY_STRING,redirectUri:It.EMPTY_STRING,postLogoutRedirectUri:It.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:ED.AAD,azureCloudOptions:{azureCloudInstance:wD.None,tenant:It.EMPTY_STRING},skipAuthorityMetadataCache:!1},a={cacheLocation:bc.SessionStorage,temporaryCacheLocation:bc.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!(!n||n.cacheLocation!==bc.LocalStorage),claimsBasedCachingEnabled:!0},h={loggerCallback:function(){},logLevel:gu.Info,piiLoggingEnabled:!1},l=bn(bn({},fwe),{loggerOptions:h,networkClient:l?Cl.getBrowserNetworkClient():Ztt,navigationClient:new srt,loadFrameTimeout:0,windowHashTimeout:(u==null?void 0:u.loadFrameTimeout)||lrt,iframeHashTimeout:(u==null?void 0:u.loadFrameTimeout)||HY,navigateFrameWait:l&&Cl.detectIEOrEdge()?500:0,redirectNavigationTimeout:crt,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(u==null?void 0:u.nativeBrokerHandshakeTimeout)||urt,pollIntervalMilliseconds:tv.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),u=bn(bn({},u),{loggerOptions:(u==null?void 0:u.loggerOptions)||h}),h={application:{appName:It.EMPTY_STRING,appVersion:It.EMPTY_STRING}};return{auth:bn(bn({},o),t),cache:bn(bn({},a),n),system:bn(bn({},l),u),telemetry:bn(bn({},h),i)}}var P6,wwe=(function(r){function e(t,n,i,o,a,l){return t=r.call(this,t,n,i,o,l)||this,t.navigateFrameWait=a.navigateFrameWait,t.pollIntervalMilliseconds=a.pollIntervalMilliseconds,t}return hd(e,r),e.prototype.initiateAuthRequest=function(t){return pr(this,void 0,void 0,function(){return gr(this,function(n){switch(n.label){case 0:if(this.performanceClient.addQueueMeasurement(Qt.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),nn.isEmpty(t))throw this.logger.info("Navigate url is empty"),Vr.createEmptyNavigationUriError();return this.navigateFrameWait?(this.performanceClient.setPreQueueTime(Qt.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),[4,this.loadFrame(t)]):[3,2];case 1:return[2,n.sent()];case 2:return[2,this.loadFrameSync(t)]}})})},e.prototype.monitorIframeForHash=function(t,n){var i=this;return this.performanceClient.addQueueMeasurement(Qt.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise(function(o,a){n<HY&&i.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+n+"ms) than the default ("+HY+"ms). This may result in timeouts.");var l=window.performance.now()+n,u=setInterval(function(){if(window.performance.now()>l)i.removeHiddenIframe(t),clearInterval(u),a(Vr.createMonitorIframeTimeoutError());else{var h=It.EMPTY_STRING,p=t.contentWindow;try{h=p?p.location.href:It.EMPTY_STRING}catch{}nn.isEmpty(h)||(h=p?p.location.hash:It.EMPTY_STRING,ko.hashContainsKnownProperties(h)&&(i.removeHiddenIframe(t),clearInterval(u),o(h)))}},i.pollIntervalMilliseconds)})},e.prototype.loadFrame=function(t){var n=this;return this.performanceClient.addQueueMeasurement(Qt.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),new Promise(function(i,o){var a=n.createHiddenIframe();setTimeout(function(){a?(a.src=t,i(a)):o("Unable to load iframe")},n.navigateFrameWait)})},e.prototype.loadFrameSync=function(t){var n=this.createHiddenIframe();return n.src=t,n},e.prototype.createHiddenIframe=function(){var t=document.createElement("iframe");return t.style.visibility="hidden",t.style.position="absolute",t.style.width=t.style.height="0",t.style.border="0",t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(t),t},e.prototype.removeHiddenIframe=function(t){document.body===t.parentNode&&document.body.removeChild(t)},e})(CQ),hrt=(function(r){function e(t,n,i,o,a,l,u,h,p,m,_){return t=r.call(this,t,n,i,o,a,l,h,m,_)||this,t.apiId=u,t.nativeStorage=p,t}return hd(e,r),e.prototype.acquireToken=function(t){return pr(this,void 0,void 0,function(){var n,i,o,a;return gr(this,function(l){switch(l.label){case 0:if(this.performanceClient.addQueueMeasurement(Qt.SilentIframeClientAcquireToken,t.correlationId),this.logger.verbose("acquireTokenByIframe called"),n=this.performanceClient.startMeasurement(Qt.SilentIframeClientAcquireToken,t.correlationId),nn.isEmpty(t.loginHint)&&nn.isEmpty(t.sid)&&(!t.account||nn.isEmpty(t.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),t.prompt&&t.prompt!==jd.NONE&&t.prompt!==jd.NO_SESSION)throw n.endMeasurement({success:!1}),Vr.createSilentPromptValueError(t.prompt);return this.performanceClient.setPreQueueTime(Qt.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(bn(bn({},t),{prompt:t.prompt||jd.NONE}),pn.Silent)];case 1:i=l.sent(),this.browserStorage.updateCacheEntries(i.state,i.nonce,i.authority,i.loginHint||It.EMPTY_STRING,i.account||null),o=this.initializeServerTelemetryManager(this.apiId),l.label=2;case 2:return l.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(Qt.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(o,i.authority,i.azureCloudOptions)];case 3:return a=l.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(Qt.SilentIframeClientTokenHelper,t.correlationId),[4,this.silentTokenHelper(a,i).then(function(u){return n.endMeasurement({success:!0,fromCache:!1,requestId:u.requestId}),u})];case 4:return[2,l.sent()];case 5:throw(a=l.sent())instanceof xn&&a.setCorrelationId(this.correlationId),o.cacheFailedRequest(a),this.browserStorage.cleanRequestByState(i.state),n.endMeasurement({errorCode:a instanceof xn&&a.errorCode||void 0,subErrorCode:a instanceof xn&&a.subError||void 0,success:!1}),a;case 6:return[2]}})})},e.prototype.logout=function(){return Promise.reject(Vr.createSilentLogoutUnsupportedError())},e.prototype.silentTokenHelper=function(t,n){return pr(this,void 0,void 0,function(){var i,o,a,l,u,h,p,m=this;return gr(this,function(_){switch(_.label){case 0:return this.performanceClient.addQueueMeasurement(Qt.SilentIframeClientTokenHelper,n.correlationId),this.performanceClient.setPreQueueTime(Qt.StandardInteractionClientInitializeAuthorizationCodeRequest,n.correlationId),[4,this.initializeAuthorizationCodeRequest(n)];case 1:return i=_.sent(),this.performanceClient.setPreQueueTime(Qt.GetAuthCodeUrl,n.correlationId),[4,t.getAuthCodeUrl(bn(bn({},n),{nativeBroker:VT.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,n.authenticationScheme)}))];case 2:return a=_.sent(),o=new wwe(t,this.browserStorage,i,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(Qt.SilentHandlerInitiateAuthRequest,n.correlationId),[4,o.initiateAuthRequest(a)];case 3:return a=_.sent(),this.performanceClient.setPreQueueTime(Qt.SilentHandlerMonitorIframeForHash,n.correlationId),[4,o.monitorIframeForHash(a,this.config.system.iframeHashTimeout)];case 4:if(l=_.sent(),h=ko.getDeserializedHash(l),u=this.validateAndExtractStateFromHash(h,pn.Silent,i.correlationId),h.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),this.nativeMessageHandler)return h=new QR(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,h.accountId,this.browserStorage,this.correlationId),p=nb.parseRequestState(this.browserCrypto,u).userRequestState,[2,h.acquireToken(bn(bn({},n),{state:p,prompt:n.prompt||jd.NONE})).finally(function(){m.browserStorage.cleanRequestByState(u)})];throw Vr.createNativeConnectionNotEstablishedError()}return this.performanceClient.setPreQueueTime(Qt.HandleCodeResponseFromHash,n.correlationId),[2,o.handleCodeResponseFromHash(l,u,t.authority,this.networkClient)]}})})},e})(kk),frt=(function(r){function e(){return r!==null&&r.apply(this,arguments)||this}return hd(e,r),e.prototype.acquireToken=function(t){return pr(this,void 0,void 0,function(){var n,i,o,a,l,u=this;return gr(this,function(h){switch(h.label){case 0:return this.performanceClient.addQueueMeasurement(Qt.SilentRefreshClientAcquireToken,t.correlationId),this.performanceClient.setPreQueueTime(Qt.InitializeBaseRequest,t.correlationId),i=[bn({},t)],[4,this.initializeBaseRequest(t,t.account)];case 1:return n=bn.apply(void 0,i.concat([h.sent()])),o=this.performanceClient.startMeasurement(Qt.SilentRefreshClientAcquireToken,n.correlationId),a=this.initializeServerTelemetryManager(ns.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(a,n.authority,n.azureCloudOptions)];case 2:return l=h.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(Qt.RefreshTokenClientAcquireTokenByRefreshToken,t.correlationId),[2,l.acquireTokenByRefreshToken(n).then(function(p){return o.endMeasurement({success:!0,fromCache:p.fromCache,requestId:p.requestId}),p}).catch(function(p){throw p instanceof xn&&p.setCorrelationId(u.correlationId),a.cacheFailedRequest(p),o.endMeasurement({errorCode:p.errorCode,subErrorCode:p.subError,success:!1}),p})]}})})},e.prototype.logout=function(){return Promise.reject(Vr.createSilentLogoutUnsupportedError())},e.prototype.createRefreshTokenClient=function(t,n,i){return pr(this,void 0,void 0,function(){var o;return gr(this,function(a){switch(a.label){case 0:return this.performanceClient.setPreQueueTime(Qt.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,n,i)];case 1:return o=a.sent(),[2,new gwe(o,this.performanceClient)]}})})},e})(kk),prt=(function(){function r(e,t){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=t,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return r.prototype.addEventCallback=function(e){var t;return typeof window<"u"?(t=this.browserCrypto.createNewGuid(),this.eventCallbacks.set(t,e),this.logger.verbose("Event callback registered with id: "+t),t):null},r.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" removed.")},r.prototype.enableAccountStorageEvents=function(){typeof window<"u"&&(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},r.prototype.disableAccountStorageEvents=function(){typeof window<"u"&&(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},r.prototype.emitEvent=function(e,t,n,i){var o,a=this;typeof window<"u"&&(o={eventType:e,interactionType:t||null,payload:n||null,error:i||null,timestamp:Date.now()},this.logger.info("Emitting event: "+e),this.eventCallbacks.forEach(function(l,u){a.logger.verbose("Emitting event to callback "+u+": "+e),l.apply(null,[o])}))},r.prototype.handleAccountCacheChange=function(e){try{var t,n,i=e.newValue||e.oldValue;i&&typeof(t=JSON.parse(i))=="object"&&ad.isAccountEntity(t)&&(n=kf.toObject(new ad,t).getAccountInfo(),!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(ui.ACCOUNT_ADDED,void 0,n)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(ui.ACCOUNT_REMOVED,void 0,n)))}catch{}},r})(),Rd=(function(){function r(){}return r.decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},r})(),Ewe=(function(){function r(e){this.cryptoObj=e}return r.prototype.generateGuid=function(){try{var e=new Uint8Array(16);return this.cryptoObj.getRandomValues(e),e[6]|=64,e[6]&=79,e[8]|=128,e[8]&=191,Rd.decimalToHex(e[0])+Rd.decimalToHex(e[1])+Rd.decimalToHex(e[2])+Rd.decimalToHex(e[3])+"-"+Rd.decimalToHex(e[4])+Rd.decimalToHex(e[5])+"-"+Rd.decimalToHex(e[6])+Rd.decimalToHex(e[7])+"-"+Rd.decimalToHex(e[8])+Rd.decimalToHex(e[9])+"-"+Rd.decimalToHex(e[10])+Rd.decimalToHex(e[11])+Rd.decimalToHex(e[12])+Rd.decimalToHex(e[13])+Rd.decimalToHex(e[14])+Rd.decimalToHex(e[15])}catch{for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",n="0123456789abcdef",i=0,o=It.EMPTY_STRING,a=0;a<36;a++)t[a]!=="-"&&t[a]!=="4"&&(i=16*Math.random()|0),o+=t[a]==="x"?n[i]:t[a]==="y"?n[i=i&3|8]:t[a];return o}},r.prototype.isGuid=function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)},r})(),ib=(function(){function r(){}return r.stringToUtf8Arr=function(e){for(var t,n=0,i=e.length,o=0;o<i;o++)n+=(t=e.charCodeAt(o))<128?1:t<2048?2:t<65536?3:t<2097152?4:t<67108864?5:6;for(var a=new Uint8Array(n),l=0,u=0;l<n;u++)(t=e.charCodeAt(u))<128?a[l++]=t:(t<2048?a[l++]=192+(t>>>6):(t<65536?a[l++]=224+(t>>>12):(t<2097152?a[l++]=240+(t>>>18):(t<67108864?a[l++]=248+(t>>>24):(a[l++]=252+(t>>>30),a[l++]=128+(t>>>24&63)),a[l++]=128+(t>>>18&63)),a[l++]=128+(t>>>12&63)),a[l++]=128+(t>>>6&63)),a[l++]=128+(63&t));return a},r.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return t},r.utf8ArrToString=function(e){for(var t,n=It.EMPTY_STRING,i=e.length,o=0;o<i;
717o++)t=e[o],n+=String.fromCharCode(251<t&&t<254&&o+5<i?1073741824*(t-252)+(e[++o]-128<<24)+(e[++o]-128<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:247<t&&t<252&&o+4<i?(t-248<<24)+(e[++o]-128<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:239<t&&t<248&&o+3<i?(t-240<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:223<t&&t<240&&o+2<i?(t-224<<12)+(e[++o]-128<<6)+e[++o]-128:191<t&&t<224&&o+1<i?(t-192<<6)+e[++o]-128:t);return n},r.getSortedObjectString=function(e){return JSON.stringify(e,Object.keys(e).sort())},r})(),Cwe=(function(){function r(){}return r.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,It.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},r.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,It.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},r.prototype.encode=function(e){return e=ib.stringToUtf8Arr(e),this.base64EncArr(e)},r.prototype.base64EncArr=function(e){for(var t,n=(3-e.length%3)%3,i=It.EMPTY_STRING,o=e.length,a=0,l=0;l<o;l++)a|=e[l]<<(16>>>(t=l%3)&24),t!=2&&e.length-l!=1||(i+=String.fromCharCode(this.uint6ToB64(a>>>18&63),this.uint6ToB64(a>>>12&63),this.uint6ToB64(a>>>6&63),this.uint6ToB64(63&a)),a=0);return n==0?i:i.substring(0,i.length-n)+(n==1?"=":"==")},r.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:e===62?43:e===63?47:65},r})(),grt=(function(){function r(){}return r.prototype.decode=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Invalid base64 string")}return e=this.base64DecToArr(t),ib.utf8ArrToString(e)},r.prototype.base64DecToArr=function(e,t){for(var n,i=e.replace(/[^A-Za-z0-9\+\/]/g,It.EMPTY_STRING),o=i.length,a=t?Math.ceil((3*o+1>>>2)/t)*t:3*o+1>>>2,l=new Uint8Array(a),u=void 0,h=0,p=0,m=0;m<o;m++)if(n=3&m,h|=this.b64ToUint6(i.charCodeAt(m))<<18-6*n,n==3||o-m==1){for(u=0;u<3&&p<a;u++,p++)l[p]=h>>>(16>>>u&24)&255;h=0}return l},r.prototype.b64ToUint6=function(e){return 64<e&&e<91?e-65:96<e&&e<123?e-71:47<e&&e<58?e+4:e===43?62:e===47?63:0},r})(),mrt=32,yrt=(function(){function r(e){this.base64Encode=new Cwe,this.cryptoObj=e}return r.prototype.generateCodes=function(){return pr(this,void 0,void 0,function(){var e,t;return gr(this,function(n){switch(n.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return t=n.sent(),[2,{verifier:e,challenge:t}]}})})},r.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array(mrt);return this.cryptoObj.getRandomValues(e),this.base64Encode.urlEncodeArr(e)}catch(t){throw Vr.createPkceNotGeneratedError(t)}},r.prototype.generateCodeChallengeFromVerifier=function(e){return pr(this,void 0,void 0,function(){var t;return gr(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return t=n.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(t))];case 2:throw t=n.sent(),Vr.createPkceNotGeneratedError(t);case 3:return[2]}})})},r})(),vrt=(function(){function r(){}return r.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,n){return pr(this,void 0,void 0,function(){return gr(this,function(i){return[2,window.crypto.subtle.generateKey(e,t,n)]})})},r.prototype.exportKey=function(e){return pr(this,void 0,void 0,function(){return gr(this,function(t){return[2,window.crypto.subtle.exportKey(KP,e)]})})},r.prototype.importKey=function(e,t,n,i){return pr(this,void 0,void 0,function(){return gr(this,function(o){return[2,window.crypto.subtle.importKey(KP,e,t,n,i)]})})},r.prototype.sign=function(e,t,n){return pr(this,void 0,void 0,function(){return gr(this,function(i){return[2,window.crypto.subtle.sign(e,t,n)]})})},r.prototype.digest=function(e,t){return pr(this,void 0,void 0,function(){return gr(this,function(n){return[2,window.crypto.subtle.digest(e,t)]})})},r})(),_rt=(function(){function r(){}return r.prototype.initPrng=function(e){return window.msrCrypto.initPrng(vQ(e))},r.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,n){return pr(this,void 0,void 0,function(){return gr(this,function(i){return[2,window.msrCrypto.subtle.generateKey(e,t,n)]})})}
vendor: 12,603 bytes, line 717
717,r.prototype.exportKey=function(e){return pr(this,void 0,void 0,function(){return gr(this,function(t){return[2,window.msrCrypto.subtle.exportKey(KP,e)]})})},r.prototype.importKey=function(e,t,n,i){return pr(this,void 0,void 0,function(){return gr(this,function(o){return[2,window.msrCrypto.subtle.importKey(KP,e,t,n,i)]})})},r.prototype.sign=function(e,t,n){return pr(this,void 0,void 0,function(){return gr(this,function(i){return[2,window.msrCrypto.subtle.sign(e,t,n)]})})},r.prototype.digest=function(e,t){return pr(this,void 0,void 0,function(){return gr(this,function(n){return[2,window.msrCrypto.subtle.digest(e,t)]})})},r})(),brt=(function(){function r(){}return r.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,n){return pr(this,void 0,void 0,function(){return gr(this,function(i){return[2,new Promise(function(o,a){var l=window.msCrypto.subtle.generateKey(e,t,n);l.addEventListener("complete",function(u){o(u.target.result)}),l.addEventListener("error",function(u){a(u)})})]})})},r.prototype.exportKey=function(e){return pr(this,void 0,void 0,function(){return gr(this,function(t){return[2,new Promise(function(n,i){var o=window.msCrypto.subtle.exportKey(KP,e);o.addEventListener("complete",function(a){var l=a.target.result,l=ib.utf8ArrToString(new Uint8Array(l)).replace(/\r/g,It.EMPTY_STRING).replace(/\n/g,It.EMPTY_STRING).replace(/\t/g,It.EMPTY_STRING).split(" ").join(It.EMPTY_STRING).replace("\0",It.EMPTY_STRING);try{n(JSON.parse(l))}catch(u){i(u)}}),o.addEventListener("error",function(a){i(a)})})]})})},r.prototype.importKey=function(e,t,n,i){return pr(this,void 0,void 0,function(){var o,a;return gr(this,function(l){return o=ib.getSortedObjectString(e),a=ib.stringToArrayBuffer(o),[2,new Promise(function(u,h){var p=window.msCrypto.subtle.importKey(KP,a,t,n,i);p.addEventListener("complete",function(m){u(m.target.result)}),p.addEventListener("error",function(m){h(m)})})]})})},r.prototype.sign=function(e,t,n){return pr(this,void 0,void 0,function(){return gr(this,function(i){return[2,new Promise(function(o,a){var l=window.msCrypto.subtle.sign(e,t,n);l.addEventListener("complete",function(u){o(u.target.result)}),l.addEventListener("error",function(u){a(u)})})]})})},r.prototype.digest=function(e,t){return pr(this,void 0,void 0,function(){return gr(this,function(n){return[2,new Promise(function(i,o){var a=window.msCrypto.subtle.digest(e,t.buffer);a.addEventListener("complete",function(l){i(l.target.result)}),a.addEventListener("error",function(l){o(l)})})]})})},r})(),wrt="RSASSA-PKCS1-v1_5",ose="SHA-256",Ert=2048,Crt=new Uint8Array([1,0,1]),xwe=(function(){function r(e,t){if(this.logger=e,this.cryptoOptions=t,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new vrt;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new brt;else{if(!this.hasMsrCrypto()||(e=this.cryptoOptions)==null||!e.useMsrCrypto)throw this.hasMsrCrypto()&&this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"),this.logger.error("BrowserCrypto: No crypto interfaces available."),Vr.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new _rt}if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),(t=this.cryptoOptions)==null||!t.entropy)throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),iB.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:wrt,hash:ose,modulusLength:Ert,publicExponent:Crt}}return r.prototype.hasIECrypto=function(){return"msCrypto"in window},r.prototype.hasBrowserCrypto=function(){return"crypto"in window},r.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},r.prototype.sha256Digest=function(e){return pr(this,void 0,void 0,function(){var t;return gr(this,function(n){return t=ib.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:ose},t)]})})},r.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},r.prototype.generateKeyPair=function(e,t){return pr(this,void 0,void 0,function(){return gr(this,function(n){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,t)]})})},r.prototype.exportJwk=function(e){return pr(this,void 0,void 0,function(){return gr(this,function(t){return[2,this.subtleCrypto.exportKey(e)]})})},r.prototype.importJwk=function(e,t,n){return pr(this,void 0,void 0,function(){return gr(this,function(i){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,t,n)]})})},r.prototype.sign=function(e,t){return pr(this,void 0,void 0,function(){return gr(this,function(n){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,t)]})})},r})(),xrt=(function(){function r(){this.dbName=NY,this.version=ert,this.tableName=trt,this.dbOpen=!1}return r.prototype.open=function(){return pr(this,void 0,void 0,function(){var e=this;return gr(this,function(t){return[2,new Promise(function(n,i){var o=window.indexedDB.open(e.dbName,e.version);o.addEventListener("upgradeneeded",function(a){a.target.result.createObjectStore(e.tableName)}),o.addEventListener("success",function(a){e.db=a.target.result,e.dbOpen=!0,n()}),o.addEventListener("error",function(){return i(Vr.createDatabaseUnavailableError())})})]})})},r.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},r.prototype.validateDbIsOpen=function(){return pr(this,void 0,void 0,function(){return gr(this,function(e){switch(e.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,e.sent()];case 2:return[2]}})})},r.prototype.getItem=function(e){return pr(this,void 0,void 0,function(){var t=this;return gr(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(i,o){if(!t.db)return o(Vr.createDatabaseNotOpenError());var a=t.db.transaction([t.tableName],"readonly").objectStore(t.tableName).get(e);a.addEventListener("success",function(l){t.closeConnection(),i(l.target.result)}),a.addEventListener("error",function(l){t.closeConnection(),o(l)})})]}})})},r.prototype.setItem=function(e,t){return pr(this,void 0,void 0,function(){var n=this;return gr(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(o,a){if(!n.db)return a(Vr.createDatabaseNotOpenError());var l=n.db.transaction([n.tableName],"readwrite").objectStore(n.tableName).put(t,e);l.addEventListener("success",function(){n.closeConnection(),o()}),l.addEventListener("error",function(u){n.closeConnection(),a(u)})})]}})})},r.prototype.removeItem=function(e){return pr(this,void 0,void 0,function(){var t=this;return gr(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(i,o){if(!t.db)return o(Vr.createDatabaseNotOpenError());var a=t.db.transaction([t.tableName],"readwrite").objectStore(t.tableName).delete(e);a.addEventListener("success",function(){t.closeConnection(),i()}),a.addEventListener("error",function(l){t.closeConnection(),o(l)})})]}})})},r.prototype.getKeys=function(){return pr(this,void 0,void 0,function(){var e=this;return gr(this,function(t){switch(t.label){case 0:return[4,this.validateDbIsOpen()];case 1:return t.sent(),[2,new Promise(function(n,i){if(!e.db)return i(Vr.createDatabaseNotOpenError());var o=e.db.transaction([e.tableName],"readonly").objectStore(e.tableName).getAllKeys();o.addEventListener("success",function(a){e.closeConnection(),n(a.target.result)}),o.addEventListener("error",function(a){e.closeConnection(),i(a)})})]}})})},r.prototype.containsKey=function(e){return pr(this,void 0,void 0,function(){var t=this;return gr(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(i,o){if(!t.db)return o(Vr.createDatabaseNotOpenError());var a=t.db.transaction([t.tableName],"readonly").objectStore(t.tableName).count(e);a.addEventListener("success",function(l){t.closeConnection(),i(l.target.result===1)}),a.addEventListener("error",function(l){t.closeConnection(),o(l)})})]}})})},r.prototype.deleteDatabase=function(){return pr(this,void 0,void 0,function(){return gr(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(t,n){var i=window.indexedDB.deleteDatabase(NY);i.addEventListener("success",function(){return t(!0)}),i.addEventListener("blocked",function(){return t(!0)}),i.addEventListener("error",function(){return n(!1)})})]})})},r})(),ase=(function(){function r(e,t){this.inMemoryCache=new DY,this.indexedDBCache=new xrt,this.logger=e,this.storeName=t}return r.prototype.handleDatabaseAccessError=function(e){if(!(e instanceof Vr&&e.errorCode===Ir.databaseUnavailable.code))throw e;this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.")},r.prototype.getItem=function(e){return pr(this,void 0,void 0,function(){var t,n;return gr(this,function(i){switch(i.label){case 0:if(t=this.inMemoryCache.getItem(e))return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(e)];case 2:return[2,i.sent()];case 3:return n=i.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}})})},r.prototype.setItem=function(e,t){return pr(this,void 0,void 0,function(){var n;return gr(this,function(i){switch(i.label){case 0:this.inMemoryCache.setItem(e,t),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(e,t)];case 2:return i.sent(),[3,4];case 3:return n=i.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2]}})})},r.prototype.removeItem=function(e){return pr(this,void 0,void 0,function(){var t;return gr(this,function(n){switch(n.label){case 0:this.inMemoryCache.removeItem(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(e)];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2]}})})},r.prototype.getKeys=function(){return pr(this,void 0,void 0,function(){var e,t;return gr(this,function(n){switch(n.label){case 0:if((e=this.inMemoryCache.getKeys()).length!==0)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,n.sent()];case 3:return t=n.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2,e]}})})},r.prototype.containsKey=function(e){return pr(this,void 0,void 0,function(){var t,n;return gr(this,function(i){switch(i.label){case 0:if(t=this.inMemoryCache.containsKey(e))return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(e)];case 2:return[2,i.sent()];case 3:return n=i.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}})})},r.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},r.prototype.clearPersistent=function(){return pr(this,void 0,void 0,function(){var e;return gr(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return(e=t.sent())&&this.logger.verbose("Persistent keystore deleted"),[2,e];case 2:return e=t.sent(),this.handleDatabaseAccessError(e),[2,!1];case 3:return[2]}})})},r})(),Trt=((function(r){r.asymmetricKeys="asymmetricKeys",r.symmetricKeys="symmetricKeys"})(P6=P6||{}),(function(){function r(e){this.logger=e,this.asymmetricKeys=new ase(this.logger,P6.asymmetricKeys),this.symmetricKeys=new ase(this.logger,P6.symmetricKeys)}return r.prototype.clear=function(){return pr(this,void 0,void 0,function(){var e;return gr(this,function(t){switch(t.label){case 0:this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.asymmetricKeys.clearPersistent
717()];case 2:return t.sent(),[2,!0];case 3:return(e=t.sent())instanceof Error?this.logger.error("Clearing keystore failed with error: "+e.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},r})()),Srt=(function(){function r(e,t,n){this.logger=e,this.browserCrypto=new xwe(this.logger,n),this.b64Encode=new Cwe,this.b64Decode=new grt,this.guidGenerator=new Ewe(this.browserCrypto),this.pkceGenerator=new yrt(this.browserCrypto),this.cache=new Trt(this.logger),this.performanceClient=t}return r.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},r.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},r.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},r.prototype.generatePkceCodes=function(){return pr(this,void 0,void 0,function(){return gr(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},r.prototype.getPublicKeyThumbprint=function(e){var t;return pr(this,void 0,void 0,function(){var n,i,o,a,l;return gr(this,function(u){switch(u.label){case 0:return n=(t=this.performanceClient)==null?void 0:t.startMeasurement(Qt.CryptoOptsGetPublicKeyThumbprint,e.correlationId),[4,this.browserCrypto.generateKeyPair(r.EXTRACTABLE,r.POP_KEY_USAGES)];case 1:return i=u.sent(),[4,this.browserCrypto.exportJwk(i.publicKey)];case 2:return a=u.sent(),a={e:a.e,kty:a.kty,n:a.n},a=ib.getSortedObjectString(a),[4,this.hashString(a)];case 3:return o=u.sent(),[4,this.browserCrypto.exportJwk(i.privateKey)];case 4:return a=u.sent(),[4,this.browserCrypto.importJwk(a,!1,["sign"])];case 5:return l=u.sent(),[4,this.cache.asymmetricKeys.setItem(o,{privateKey:l,publicKey:i.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri})];case 6:return u.sent(),n&&n.endMeasurement({success:!0}),[2,o]}})})},r.prototype.removeTokenBindingKey=function(e){return pr(this,void 0,void 0,function(){return gr(this,function(t){switch(t.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(e)];case 1:return t.sent(),[4,this.cache.asymmetricKeys.containsKey(e)];case 2:return[2,!t.sent()]}})})},r.prototype.clearKeystore=function(){return pr(this,void 0,void 0,function(){return gr(this,function(e){switch(e.label){case 0:return[4,this.cache.clear()];case 1:return[2,e.sent()]}})})},r.prototype.signJwt=function(e,t,n){var i;return pr(this,void 0,void 0,function(){var o,a,l,u,h,p;return gr(this,function(m){switch(m.label){case 0:return o=(i=this.performanceClient)==null?void 0:i.startMeasurement(Qt.CryptoOptsSignJwt,n),[4,this.cache.asymmetricKeys.getItem(t)];case 1:if(a=m.sent())return[4,this.browserCrypto.exportJwk(a.publicKey)];throw Vr.createSigningKeyNotFoundInStorageError(t);case 2:return h=m.sent(),l=ib.getSortedObjectString(h),u=this.b64Encode.urlEncode(JSON.stringify({kid:t})),u=Xtt.getShrHeaderString({kid:u,alg:h.alg}),h=this.b64Encode.urlEncode(u),e.cnf={jwk:JSON.parse(l)},u=this.b64Encode.urlEncode(JSON.stringify(e)),l=h+"."+u,h=ib.stringToArrayBuffer(l),[4,this.browserCrypto.sign(a.privateKey,h)];case 3:return u=m.sent(),h=this.b64Encode.urlEncodeArr(new Uint8Array(u)),p=l+"."+h,o&&o.endMeasurement({success:!0}),[2,p]}})})},r.prototype.hashString=function(e){return pr(this,void 0,void 0,function(){var t;return gr(this,function(n){switch(n.label){case 0:return[4,this.browserCrypto.sha256Digest(e)];case 1:return t=n.sent(),t=new Uint8Array(t),[2,this.b64Encode.urlEncodeArr(t)]}})})},r.POP_KEY_USAGES=["sign","verify"],r.EXTRACTABLE=!0,r})(),sse=(function(){function r(e,t){this.correlationId=t,this.measureName=r.makeMeasureName(e,t),this.startMark=r.makeStartMark(e,t),this.endMark=r.makeEndMark(e,t)}return r.makeMeasureName=function(e,t){return"msal.measure."+e+"."+t},r.makeStartMark=function(e,t){return"msal.start."+e+"."+t},r.makeEndMark=function(e,t){return"msal.end."+e+"."+t},r.supportsBrowserPerformance=function(){return typeof window<"u"&&window.performance!==void 0&&typeof window.performance.mark=="function"&&typeof window.performance.measure=="function"&&typeof window.performance.clearMarks=="function"&&typeof window.performance.clearMeasures=="function"&&typeof window.performance.getEntriesByName=="function"},r.flushMeasurements=function(e,t){if(r.supportsBrowserPerformance())try{t.forEach(function(n){n=r.makeMeasureName(n.name,e),0<window.performance.getEntriesByName(n,"measure").length&&(window.performance.clearMeasures(n),window.performance.clearMarks(r.makeStartMark(n,e)),window.performance.clearMarks(r.makeEndMark(n,e)))})}catch{}},r.prototype.startMeasurement=function(){if(r.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},r.prototype.endMeasurement=function(){if(r.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},r.prototype.flushMeasurement=function(){if(r.supportsBrowserPerformance())try{var e,t=window.performance.getEntriesByName(this.measureName,"measure");if(0<t.length)return e=t[0].duration,window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),e}catch{}return null},r})(),Irt=(function(r){function e(t,n,i,o,a,l,u){return t=r.call(this,t,n,i,o,a,l)||this,t.browserCrypto=new xwe(t.logger,u),t.guidGenerator=new Ewe(t.browserCrypto),t}return hd(e,r),e.prototype.startPerformanceMeasuremeant=function(t,n){return new sse(t,n)},e.prototype.generateId=function(){return this.guidGenerator.generateGuid()},e.prototype.getPageVisibility=function(){var t;return((t=document.visibilityState)==null?void 0:t.toString())||null},e.prototype.deleteIncompleteSubMeasurements=function(t){var n=this.eventsByCorrelationId.get(t.event.correlationId),i=n&&n.eventId===t.event.eventId,o=[];i&&n!=null&&n.incompleteSubMeasurements&&n.incompleteSubMeasurements.forEac
717h(function(a){o.push(bn({},a))}),0<o.length&&sse.flushMeasurements(t.event.correlationId,o)},e.prototype.supportsBrowserPerformanceNow=function(){return typeof window<"u"&&window.performance!==void 0&&typeof window.performance.now=="function"},e.prototype.startMeasurement=function(t,n){var i=this,o=this.getPageVisibility(),a=r.prototype.startMeasurement.call(this,t,n);return bn(bn({},a),{endMeasurement:function(l){return l=a.endMeasurement(bn({startPageVisibility:o,endPageVisibility:i.getPageVisibility()},l)),i.deleteIncompleteSubMeasurements(a),l},discardMeasurement:function(){a.discardMeasurement(),i.deleteIncompleteSubMeasurements(a),a.measurement.flushMeasurement()}})},e.prototype.setPreQueueTime=function(t,n){var i;this.supportsBrowserPerformanceNow()?n?((i=this.preQueueTimeByCorrelationId.get(n))&&(this.logger.trace("BrowserPerformanceClient: Incomplete pre-queue "+i.name+" found",n),this.addQueueMeasurement(i.name,n,void 0,!0)),this.preQueueTimeByCorrelationId.set(n,{name:t,time:window.performance.now()})):this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to set telemetry queue time"):this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for "+t)},e.prototype.addQueueMeasurement=function(t,n,i,o){if(this.supportsBrowserPerformanceNow())if(n){var a,l=r.prototype.getPreQueueTime.call(this,t,n);if(l)return a=window.performance.now(),i=i||r.prototype.calculateQueuedTime.call(this,l,a),r.prototype.addQueueMeasurement.call(this,t,n,i,o)}else this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to add queue measurement");else this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to add queue measurement for "+t)},e})(ywe),Art=(function(){function r(e,t,n,i){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=t,this.logger=n,this.cryptoObj=i}return r.prototype.loadExternalTokens=function(e,t,n){if(this.logger.info("TokenCache - loadExternalTokens called"),!t.id_token)throw Vr.createUnableToLoadTokenError("Please ensure server response includes id token.");var i=new v_(t.id_token,this.cryptoObj);if(e.account)var o=this.loadAccount(i,e.account.environment,void 0,void 0,e.account.homeAccountId),a=new eB(o,this.loadIdToken(i,o.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,t,o.homeAccountId,e.account.environment,e.account.tenantId,n),this.loadRefreshToken(e,t,o.homeAccountId,e.account.environment));else{if(!e.authority)throw Vr.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");var u=CD.generateAuthority(e.authority,e.azureCloudOptions),l={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},u=new CD(u,this.config.system.networkClient,this.storage,l,this.logger);if(n.clientInfo)this.logger.trace("TokenCache - homeAccountId from options"),o=this.loadAccount(i,u.hostnameAndPort,n.clientInfo,u.authorityType);else{if(!t.client_info)throw Vr.createUnableToLoadTokenError("Please provide clientInfo in the response or options.");this.logger.trace("TokenCache - homeAccountId from response"),o=this.loadAccount(i,u.hostnameAndPort,t.client_info,u.authorityType)}a=new eB(o,this.loadIdToken(i,o.homeAccountId,u.hostnameAndPort,u.tenant),this.loadAccessToken(e,t,o.homeAccountId,u.hostnameAndPort,u.tenant,n),this.loadRefreshToken(e,t,o.homeAccountId,u.hostnameAndPort))}return this.generateAuthenticationResult(e,i,a,u)},r.prototype.loadAccount=function(e,t,n,i,o){var a;if(o?a=o:i!==void 0&&n&&(a=ad.generateHomeAccountId(n,i,this.logger,this.cryptoObj,e)),!a)throw Vr.createUnableToLoadTokenError("Unexpected missing homeAccountId");if(o=n?ad.createAccount(n,a,e,void 0,void 0,void 0,t):ad.createGenericAccount(a,e,void 0,void 0,void 0,t),this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(o),o;throw Vr.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadIdToken=function(e,t,n,i){if(t=lT.createIdTokenEntity(t,n,e.rawToken,this.config.auth.clientId,i),this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(t),t;throw Vr.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadAccessToken=function(l,t,p,i,o,h){if(!t.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!t.expires_in)throw Vr.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!h.extendedExpiresOn)throw Vr.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var l=new Fd(l.scopes).printScopes(),u=h.expiresOn||t.expires_in+new Date().getTime()/1e3,h=h.extendedExpiresOn,p=cT.createAccessTokenEntity(p,i,t.access_token,this.config.auth.clientId,o,l,u,h,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(p),p;throw Vr.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadRefreshToken=function(e,t,n,i){if(!t.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;if(n=uR.createRefreshTokenEntity(n,i,t.refresh_token,this.config.auth.clientId),this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(n),n;throw Vr.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.generateAuthenticationResult=function(e,t,n,i){var o,a=It.EMPTY_STRING,l=[],u=null,h=(n!=null&&n.accessToken&&(a=n.accessToken.secret,l=Fd.fromString(n.accessToken.target).asArray(),u=new Date(1e3*Number(n.accessToken.expiresOn)),o=new Date(1e3*Number(n.accessToken.extendedExpiresOn))),(t==null?void 0:t.claims.oid)||(t==null?void 0:t.claims.sub)||It.EMPTY_STRING),p=(t==null?void 0:t.claims.tid)||It.EMPTY_STRING;return{authority:i?i.canonicalAuthority:It.EMPTY_STRING,uniqueId:h,tenantId:p,scopes:l,account:n!=null&&n.account?n.account.getAccountInfo():null,idToken:t?t.rawToken:It.EMPTY_STRING,idTokenClaims:t?t.claims:{},accessToken:a,fromCache:!0,expiresOn:u,correlationId:e.correlationId||It.EMPTY_STRING,requestId:It.EMPTY_STRING,extExpiresOn:o,familyId:It.EMPTY_STRING,tokenType:((i=n==null?void 0:n.accessToken)==null?void 0:i.tokenType)||It.EMPTY_STRING,state:It.EMPTY_STRING,cloudGraphHostName:((h=n==null?void 0:n.account)==null?void 0:h.cloudGraphHostName)||It.EMPTY_STRING,msGraphHost:((p=n==null?void 0:n.account)==null?void 0:p.msGraphHost)||It.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},r})(),Rrt=(function(r){function e(t){return t=r.call(this,t)||this,t.includeRedirectUri=!1,t}return hd(e,r),e})(pwe),Prt=(function(r){function e(t,n,i,o,a,l,u,h,p,m){return t=r.call(this,t,n,i,o,a,l,h,p,m)||this,t.apiId=u,t}return hd(e,r),e.prototype.acquireToken=function(t){return pr(this,void 0,void 0,function(){var n,i,o,a;return gr(this,function(l){switch(l.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),t.code)return this.performanceClient.setPreQueueTime(Qt.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,pn.Silent)];throw Vr.createAuthCodeRequiredError();case 1:n=l.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||It.EMPTY_STRING,n.account||null),i=this.initializeServerTelemetryManager(this.apiId),l.label=2;case 2:return l.trys.push([2,4,,5]),o=bn(bn({}
vendor: 6,535 bytes, line 717
717,n),{code:t.code}),this.performanceClient.setPreQueueTime(Qt.StandardInteractionClientGetClientConfiguration,t.correlationId),[4,this.getClientConfiguration(i,n.authority)];case 3:return a=l.sent(),a=new Rrt(a),this.logger.verbose("Auth code client created"),[2,new wwe(a,this.browserStorage,o,this.logger,this.config.system,this.performanceClient).handleCodeResponseFromServer({code:t.code,msgraph_host:t.msGraphHost,cloud_graph_host_name:t.cloudGraphHostName,cloud_instance_host_name:t.cloudInstanceHostName},n.state,a.authority,this.networkClient,!1)];case 4:throw(a=l.sent())instanceof xn&&a.setCorrelationId(this.correlationId),i.cacheFailedRequest(a),this.browserStorage.cleanRequestByState(n.state),a;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(Vr.createSilentLogoutUnsupportedError())},e})(kk),krt=(function(){function r(e){this.isBrowserEnvironment=typeof window<"u",this.config=drt(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new _Q(this.config.system.loggerOptions,Wj,hN),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.isBrowserEnvironment?new Irt(this.config.auth.clientId,this.config.auth.authority,this.logger,Wj,hN,this.config.telemetry.application,this.config.system.cryptoOptions):new Jtt(this.config.auth.clientId,this.config.auth.authority,this.logger,Wj,hN,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new Srt(this.logger,this.performanceClient,this.config.system.cryptoOptions):ZU,this.eventHandler=new prt(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new LY(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):rrt(this.config.auth.clientId,this.logger),e={cacheLocation:bc.MemoryStorage,temporaryCacheLocation:bc.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0},this.nativeInternalStorage=new LY(this.config.auth.clientId,e,this.browserCrypto,this.logger),this.tokenCache=new Art(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return r.prototype.initialize=function(){return pr(this,void 0,void 0,function(){var e,t,n,i,o;return gr(this,function(a){switch(a.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(e=this.config.system.allowNativeBroker,t=this.performanceClient.startMeasurement(Qt.InitializeClientApplication),this.eventHandler.emitEvent(ui.INITIALIZE_START),!e)return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),n=this,[4,VT.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)];case 2:return n.nativeExtensionProvider=a.sent(),[3,4];case 3:return i=a.sent(),this.logger.verbose(i),[3,4];case 4:return this.config.cache.claimsBasedCachingEnabled?[3,6]:(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),o=this.performanceClient.startMeasurement(Qt.ClearTokensAndKeysWithClaims),[4,this.browserStorage.clearTokensAndKeysWithClaims()]);case 5:a.sent(),o.endMeasurement({success:!0}),a.label=6;case 6:return this.initialized=!0,this.eventHandler.emitEvent(ui.INITIALIZE_END),t.endMeasurement({allowNativeBroker:e,success:!0}),[2]}})})},r.prototype.handleRedirectPromise=function(e){return pr(this,void 0,void 0,function(){var t,n,i,o,a,l=this;return gr(this,function(u){return this.logger.verbose("handleRedirectPromise called"),Cl.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t=this.getAllAccounts(),this.isBrowserEnvironment?(n=e||It.EMPTY_STRING,(i=this.redirectResponse.get(n))===void 0?(this.eventHandler.emitEvent(ui.HANDLE_REDIRECT_START,pn.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),a=this.browserStorage.getCachedNativeRequest(),o=void 0,o=a&&VT.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),new QR(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ns.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,a.accountId,this.nativeInternalStorage,a.correlationId).handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),a=this.browserStorage.getTemporaryCache(Go.CORRELATION_ID,!0)||It.EMPTY_STRING,this.createRedirectClient(a).handleRedirectPromise(e)),i=o.then(function(h){return h&&(t.length<l.getAllAccounts().length?(l.eventHandler.emitEvent(ui.LOGIN_SUCCESS,pn.Redirect,h),l.logger.verbose("handleRedirectResponse returned result, login success")):(l.eventHandler.emitEvent(ui.ACQUIRE_TOKEN_SUCCESS,pn.Redirect,h),l.logger.verbose("handleRedirectResponse returned result, acquire token success"))),l.eventHandler.emitEvent(ui.HANDLE_REDIRECT_END,pn.Redirect),h}).catch(function(h){throw 0<t.length?l.eventHandler.emitEvent(ui.ACQUIRE_TOKEN_FAILURE,pn.Redirect,null,h):l.eventHandler.emitEvent(ui.LOGIN_FAILURE,pn.Redirect,null,h),l.eventHandler.emitEvent(ui.HANDLE_REDIRECT_END,pn.Redirect),h}),this.redirectResponse.set(n,i)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,i]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},r.prototype.acquireTokenRedirect=function(e){return pr(this,void 0,void 0,function(){var t,n,i=this;return gr(this,function(o){return t=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",t),this.preflightBrowserEnvironmentCheck(pn.Redirect),(n=0<this.getAllAccounts().length)?this.eventHandler.emitEvent(ui.ACQUIRE_TOKEN_START,pn.Redirect,e):this.eventHandler.emitEvent(ui.LOGIN_START,pn.Redirect,e),[2,(this.nativeExtensionProvider&&this.canUseNative(e)?new QR(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ns.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId).acquireTokenRedirect(e).catch(function(a){if
vendor: 5,513 bytes, line 717
717(a instanceof Z0&&a.isFatal())return i.nativeExtensionProvider=void 0,i.createRedirectClient(e.correlationId).acquireToken(e);if(a instanceof Im)return i.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),i.createRedirectClient(e.correlationId).acquireToken(e);throw i.browserStorage.setInteractionInProgress(!1),a}):this.createRedirectClient(e.correlationId).acquireToken(e)).catch(function(a){throw n?i.eventHandler.emitEvent(ui.ACQUIRE_TOKEN_FAILURE,pn.Redirect,null,a):i.eventHandler.emitEvent(ui.LOGIN_FAILURE,pn.Redirect,null,a),a})]})})},r.prototype.acquireTokenPopup=function(e){var t=this,n=this.getRequestCorrelationId(e),i=this.performanceClient.startMeasurement(Qt.AcquireTokenPopup,n);try{this.logger.verbose("acquireTokenPopup called",n),this.preflightBrowserEnvironmentCheck(pn.Popup)}catch(a){return Promise.reject(a)}var o=this.getAllAccounts();return 0<o.length?this.eventHandler.emitEvent(ui.ACQUIRE_TOKEN_START,pn.Popup,e):this.eventHandler.emitEvent(ui.LOGIN_START,pn.Popup,e),(this.canUseNative(e)?this.acquireTokenNative(e,ns.acquireTokenPopup).then(function(a){return t.browserStorage.setInteractionInProgress(!1),i.endMeasurement({success:!0,isNativeBroker:!0,requestId:a.requestId}),a}).catch(function(a){if(a instanceof Z0&&a.isFatal())return t.nativeExtensionProvider=void 0,t.createPopupClient(e.correlationId).acquireToken(e);if(a instanceof Im)return t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),t.createPopupClient(e.correlationId).acquireToken(e);throw t.browserStorage.setInteractionInProgress(!1),a}):this.createPopupClient(e.correlationId).acquireToken(e)).then(function(a){return o.length<t.getAllAccounts().length?t.eventHandler.emitEvent(ui.LOGIN_SUCCESS,pn.Popup,a):t.eventHandler.emitEvent(ui.ACQUIRE_TOKEN_SUCCESS,pn.Popup,a),i.addStaticFields({accessTokenSize:a.accessToken.length,idTokenSize:a.idToken.length}),i.endMeasurement({success:!0,requestId:a.requestId}),a}).catch(function(a){return 0<o.length?t.eventHandler.emitEvent(ui.ACQUIRE_TOKEN_FAILURE,pn.Popup,null,a):t.eventHandler.emitEvent(ui.LOGIN_FAILURE,pn.Popup,null,a),i.endMeasurement({errorCode:a.errorCode,subErrorCode:a.subError,success:!1}),Promise.reject(a)})},r.prototype.trackPageVisibilityWithMeasurement=function(){var e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))},r.prototype.ssoSilent=function(e){var t;return pr(this,void 0,void 0,function(){var n,i,o=this;return gr(this,function(a){return n=this.getRequestCorrelationId(e),i=bn(bn({},e),{prompt:e.prompt,correlationId:n}),this.preflightBrowserEnvironmentCheck(pn.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(Qt.SsoSilent,n),(t=this.ssoSilentMeasurement)!=null&&t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",n),this.eventHandler.emitEvent(ui.SSO_SILENT_START,pn.Silent,i),[2,(this.canUseNative(i)?this.acquireTokenNative(i,ns.ssoSilent).catch(function(l){if(l instanceof Z0&&l.isFatal())return o.nativeExtensionProvider=void 0,o.createSilentIframeClient(i.correlationId).acquireToken(i);throw l}):this.createSilentIframeClient(i.correlationId).acquireToken(i)).then(function(l){var u;return o.eventHandler.emitEvent(ui.SSO_SILENT_SUCCESS,pn.Silent,l),(u=o.ssoSilentMeasurement)!=null&&u.addStaticFields({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),(u=o.ssoSilentMeasurement)!=null&&u.endMeasurement({success:!0,isNativeBroker:l.fromNativeBroker,requestId:l.requestId}),l}).catch(function(l){var u;throw o.eventHandler.emitEvent(ui.SSO_SILENT_FAILURE,pn.Silent,null,l),(u=o.ssoSilentMeasurement)!=null&&u.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),l}).finally(function(){document.removeEventListener("visibilitychange",o.trackPageVisibilityWithMeasurement)})]})})},r.prototype.acquireTokenByCode=function(e){return pr(this,void 0,void 0,function(){var t,n,i,o,a=this;return gr(this,function(l){t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(pn.Silent),this.logger.trace("acquireTokenByCode called",t),this.eventHandler.emitEvent(ui.ACQUIRE_TOKEN_BY_CODE_START,pn.Silent,e),n=this.performanceClient.startMeasurement(Qt.AcquireTokenByCode,e.correlationId);try{if(e.code&&e.nativeAccountId)throw Vr.createSpaCodeAndNativeAccountIdPresentError();if(e.code)return i=e.code,(o=this.hybridAuthCodeResponses.get(i))?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),n.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),o=this.acquireTokenByCodeAsync(bn(bn({},e),{correlationId:t})).then(function(u){return a.eventHandler.emitEvent(ui.ACQUIRE_TOKEN_BY_CODE_SUCCESS,pn.Silent,u),a.hybridAuthCodeResponses.delete(i),n.addStaticFields({accessTokenSize:u.accessToken.length,idTokenSize:u.idToken.length}),n.endMeasurement({success:!0,isNativeBroker:u.fromNativeBroker,requestId:u.requestId}),u}).catch(function(u){throw a.hybridAuthCodeResponses.delete(i),a.eventHandler.emitEvent(ui.ACQUIRE_TOKEN_BY_CODE_FAILURE,pn.Silent,null,u),n.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u}),this.hybridAuthCodeResponses.set(i,o)),[2,o];
vendor: 6,224 bytes, line 717
717if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,ns.acquireTokenByCode,e.nativeAccountId).catch(function(u){throw u instanceof Z0&&u.isFatal()&&(a.nativeExtensionProvider=void 0),u})];throw Vr.createUnableToAcquireTokenFromNativePlatformError()}throw Vr.createAuthCodeOrNativeAccountIdRequiredError()}catch(u){throw this.eventHandler.emitEvent(ui.ACQUIRE_TOKEN_BY_CODE_FAILURE,pn.Silent,null,u),n.endMeasurement({errorCode:u instanceof xn&&u.errorCode||void 0,subErrorCode:u instanceof xn&&u.subError||void 0,success:!1}),u}return[2]})})},r.prototype.acquireTokenByCodeAsync=function(e){var t;return pr(this,void 0,void 0,function(){var n=this;return gr(this,function(i){switch(i.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(Qt.AcquireTokenByCodeAsync,e.correlationId),(t=this.acquireTokenByCodeAsyncMeasurement)!=null&&t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),[4,this.createSilentAuthCodeClient(e.correlationId).acquireToken(e).then(function(o){var a;return(a=n.acquireTokenByCodeAsyncMeasurement)!=null&&a.endMeasurement({success:!0,fromCache:o.fromCache,isNativeBroker:o.fromNativeBroker,requestId:o.requestId}),o}).catch(function(o){var a;throw(a=n.acquireTokenByCodeAsyncMeasurement)!=null&&a.endMeasurement({errorCode:o.errorCode,subErrorCode:o.subError,success:!1}),o}).finally(function(){document.removeEventListener("visibilitychange",n.trackPageVisibilityWithMeasurement)})];case 1:return[2,i.sent()]}})})},r.prototype.acquireTokenFromCache=function(e,t,n){return pr(this,void 0,void 0,function(){return gr(this,function(i){switch(this.performanceClient.addQueueMeasurement(Qt.AcquireTokenFromCache,t.correlationId),n.cacheLookupPolicy){case Bf.Default:case Bf.AccessToken:case Bf.AccessTokenAndRefreshToken:return[2,e.acquireToken(t)];default:throw ln.createRefreshRequiredError()}return[2]})})},r.prototype.acquireTokenByRefreshToken=function(e,t){return pr(this,void 0,void 0,function(){var n;return gr(this,function(i){switch(this.performanceClient.addQueueMeasurement(Qt.AcquireTokenByRefreshToken,e.correlationId),t.cacheLookupPolicy){case Bf.Default:case Bf.AccessTokenAndRefreshToken:case Bf.RefreshToken:case Bf.RefreshTokenAndNetwork:return n=this.createSilentRefreshClient(e.correlationId),this.performanceClient.setPreQueueTime(Qt.SilentRefreshClientAcquireToken,e.correlationId),[2,n.acquireToken(e)];default:throw ln.createRefreshRequiredError()}return[2]})})},r.prototype.acquireTokenBySilentIframe=function(e){return pr(this,void 0,void 0,function(){var t;return gr(this,function(n){return this.performanceClient.addQueueMeasurement(Qt.AcquireTokenBySilentIframe,e.correlationId),t=this.createSilentIframeClient(e.correlationId),this.performanceClient.setPreQueueTime(Qt.SilentIframeClientAcquireToken,e.correlationId),[2,t.acquireToken(e)]})})},r.prototype.logout=function(e){return pr(this,void 0,void 0,function(){var t;return gr(this,function(n){return t=this.getRequestCorrelationId(e),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",t),[2,this.logoutRedirect(bn({correlationId:t},e))]})})},r.prototype.logoutRedirect=function(e){return pr(this,void 0,void 0,function(){var t;return gr(this,function(n){return t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(pn.Redirect),[2,this.createRedirectClient(t).logout(e)]})})},r.prototype.logoutPopup=function(e){try{var t=this.getRequestCorrelationId(e);return this.preflightBrowserEnvironmentCheck(pn.Popup),this.createPopupClient(t).logout(e)}catch(n){return Promise.reject(n)}},r.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},r.prototype.getAccountByUsername=function(e){var t;return this.logger.trace("getAccountByUsername called"),e?(t=this.browserStorage.getAccountInfoFilteredBy({username:e}))?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii("getAccountByUsername: Returning signed-in accounts matching username: "+e),t):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null):(this.logger.warning("getAccountByUsername: No username provided"),null)},r.prototype.getAccountByHomeId=function(e){var t;return this.logger.trace("getAccountByHomeId called"),e?(t=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:e}))?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii("getAccountByHomeId: Returning signed-in accounts matching homeAccountId: "+e),t):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null):(this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null)},r.prototype.getAccountByLocalId=function(e){var t;return this.logger.trace("getAccountByLocalId called"),e?(t=this.browserStorage.getAccountInfoFilteredBy({localAccountId:e}))?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii("getAccountByLocalId: Returning signed-in accounts matching localAccountId: "+e),t):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null):(this.logger.warning("getAccountByLocalId: No localAccountId provided"),null)},r.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},r.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},r.prototype.preflightBrowserEnvironmentCheck=function(e,t){if(t===void 0&&(t=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),Cl.blockNonBrowserEnvironment(this.isBrowserEnvironment),Cl.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),Cl.blockReloadInHiddenIframes(),Cl.blockAcquireTokenInPopups(),Cl.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===pn.Redirect&&this.config.cache.cac
vendor: 13,224 bytes, line 717
717heLocation===bc.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw iB.createInMemoryRedirectUnavailableError();e!==pn.Redirect&&e!==pn.Popup||this.preflightInteractiveRequest(t)},r.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Cl.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},r.prototype.acquireTokenNative=function(e,t,n){return pr(this,void 0,void 0,function(){return gr(this,function(i){if(this.logger.trace("acquireTokenNative called"),this.nativeExtensionProvider)return[2,new QR(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,n||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId).acquireToken(e)];throw Vr.createNativeConnectionNotEstablishedError()})})},r.prototype.canUseNative=function(e,t){if(this.logger.trace("canUseNative called"),!VT.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case jd.NONE:case jd.CONSENT:case jd.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+e.prompt+" is not compatible with native flow, returning false"),!1}return!(!t&&!this.getNativeAccountId(e)&&(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),1))},r.prototype.getNativeAccountId=function(e){return e=e.account||this.browserStorage.getAccountInfoByHints(e.loginHint,e.sid)||this.getActiveAccount(),e&&e.nativeAccountId||""},r.prototype.createPopupClient=function(e){return new art(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createRedirectClient=function(e){return new ort(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createSilentIframeClient=function(e){return new hrt(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ns.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createSilentCacheClient=function(e){return new bwe(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.createSilentRefreshClient=function(e){return new frt(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.createSilentAuthCodeClient=function(e){return new Prt(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ns.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},r.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},r.prototype.addPerformanceCallback=function(e){return this.performanceClient.addPerformanceCallback(e)},r.prototype.removePerformanceCallback=function(e){return this.performanceClient.removePerformanceCallback(e)},r.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},r.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},r.prototype.getTokenCache=function(){return this.tokenCache},r.prototype.getLogger=function(){return this.logger},r.prototype.setLogger=function(e){this.logger=e},r.prototype.initializeWrapperLibrary=function(e,t){this.browserStorage.setWrapperMetadata(e,t)},r.prototype.setNavigationClient=function(e){this.navigationClient=e},r.prototype.getConfiguration=function(){return this.config},r.prototype.getRequestCorrelationId=function(e){return e!=null&&e.correlationId?e.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():It.EMPTY_STRING},r})(),Ort=(function(r){function e(t){return t=r.call(this,t)||this,t.astsAsyncMeasurement=void 0,t.activeSilentTokenRequests=new Map,t.trackPageVisibility=t.trackPageVisibility.bind(t),t}return hd(e,r),e.prototype.loginRedirect=function(t){return pr(this,void 0,void 0,function(){var n;return gr(this,function(i){return n=this.getRequestCorrelationId(t),this.logger.verbose("loginRedirect called",n),[2,this.acquireTokenRedirect(bn({correlationId:n},t||rse))]})})},e.prototype.loginPopup=function(t){var n=this.getRequestCorrelationId(t);return this.logger.verbose("loginPopup called",n),this.acquireTokenPopup(bn({correlationId:n},t||rse))},e.prototype.acquireTokenSilent=function(t){return pr(this,void 0,void 0,function(){var n,i,o,a,l,u=this;return gr(this,function(h){if(n=this.getRequestCorrelationId(t),(i=this.performanceClient.startMeasurement(Qt.AcquireTokenSilent,n)).addStaticFields({cacheLookupPolicy:t.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(pn.Silent),this.logger.verbose("acquireTokenSilent called",n),l=t.account||this.getActiveAccount())return a={clientId:this.config.auth.clientId,authority:t.authority||It.EMPTY_STRING,scopes:t.scopes,homeAccountIdentifier:l.homeAccountId,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},o=JSON.stringify(a),(a=this.activeSilentTokenRequests.get(o))===void 0?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",n),this.performanceClient.setPreQueueTime(Qt.AcquireTokenSilentAsync,n),l=this.acquireTokenSilentAsync(bn(bn({},t),{correlationId:n}),l).then(function(p){return u.activeSilentTokenRequests.delete(o),i.addStaticFields({accessTokenSize:p.accessToken.length,idTokenSize:p.idToken.length}),i.endMeasurement({success:!0,fromCache:p.fromCache,isNativeBroker:p.fromNativeBroker,cacheLookupPolicy:t.cacheLookupPolicy,requestId:p.requestId}),p}).catch(function(p){throw u.activeSilentTokenRequests.delete(o),i.endMeasurement({errorCode:p.errorCode,subErrorCode:p.subError,success:!1}),p}),this.activeSilentTokenRequests.set(o,l),[2,l]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",n),i.discardMeasurement(),[2,a]);throw Vr.createNoAccountError()})})},e.prototype.trackPageVisibility=function(){this.astsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.astsAsyncMeasurement.increment({visibilityChangeCount:1}))},e.prototype.acquireTokenSilentAsync=function(t,n){var i;return pr(this,void 0,void 0,function(){var o,a,l,u,h=this;return gr(this,function(p){switch(p.label){case 0:return this.performanceClient.addQueueMeasurement(Qt.AcquireTokenSilentAsync,t.correlationId),this.eventHandler.emitEvent(ui.ACQUIRE_TOKEN_START,pn.Silent,t),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(Qt.AcquireTokenSilentAsync,t.correlationId),(i=this.astsAsyncMeasurement)!=null&&i.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),VT.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme)&&n.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),o=bn(bn({},t),{account:n}),o=this.acquireTokenNative(o,ns.acquireTokenSilent_silentFlow).catch(function(m){return pr(h,void 0,void 0,function(){return gr(this,function(_){if(m instanceof Z0&&m.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,[2,this.createSilentIframeClient(t.correlationId).acquireToken(t)];throw m})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),a=this.createSilentCacheClient(t.correlationId),this.performanceClient.setPreQueueTime(Qt.InitializeSilentRequest,t.correlationId),[4,a.initializeSilentRequest(t,n)];case 2:l=p.sent(),u=bn(bn({},t),{cacheLookupPolicy:t.cacheLookupPolicy||Bf.Default}),this.performanceClient.setPreQueueTime(Qt.AcquireTokenFromCache,l.correlationId),o=this.acquireTokenFromCache(a,l,u).catch(function(m){if(u.cacheLookupPolicy===Bf.AccessToken)throw m;return Cl.blockReloadInHiddenIframes(),h.eventHandler.emitEvent(ui.ACQUIRE_TOKEN_NETWORK_START,pn.Silent,l),h.performanceClient.setPreQueueTime(Qt.AcquireTokenByRefreshToken,l.correlationId),h.acquireTokenByRefreshToken(l,u).catch(function(_){var C=_ instanceof mS,T=_ instanceof Im,S=_.errorCode===dR.noTokensFoundError.code,R=_.errorCode===tv.INVALID_GRANT_ERROR;if(C&&R&&!T&&u.cacheLookupPolicy!==Bf.AccessTokenAndRefreshToken&&u.cacheLookupPolicy!==Bf.RefreshToken||u.cacheLookupPolicy===Bf.Skip||S)return h.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",t.correlationId),h.performanceClient.setPreQueueTime(Qt.AcquireTokenBySilentIframe,l.correlationId),h.acquireTokenBySilentIframe(l);throw _})}),p.label=3;case 3:return[2,o.then(function(m){var _;return h.eventHandler.emitEvent(ui.ACQUIRE_TOKEN_SUCCESS,pn.Silent,m),(_=h.astsAsyncMeasurement)!=null&&_.endMeasurement({success:!0,fromCache:m.fromCache,isNativeBroker:m.fromNativeBroker,requestId:m.requestId}),m}).catch(function(m){var _;throw h.eventHandler.emitEvent(ui.ACQUIRE_TOKEN_FAILURE,pn.Silent,null,m),(_=h.astsAsyncMeasurement)!=null&&_.endMeasurement({errorCode:m.errorCode,subErrorCode:m.subError,success:!1}),m}).finally(function(){document.removeEventListener("visibilitychange",h.trackPageVisibility)})]}})})},e})(krt);function FY(r){this.message=r}FY.prototype=new Error,FY.prototype.name="InvalidCharacterError";var lse=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(r){var e=String(r).replace(/=+$/,"");if(e.length%4==1)throw new FY("'atob' failed: The string to be decoded is not correctly encoded.");for(var t,n,i=0,o=0,a="";n=e.charAt(o++);~n&&(t=i%4?64*t+n:n,i++%4)&&(a+=String.fromCharCode(255&t>>(-2*i&6))))n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return a};function Mrt(r){var e=r.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return decodeURIComponent(lse(e).replace(/(.)/g,function(t,n){return n=n.charCodeAt(0).toString(16).toUpperCase(),"%"+(n=n.length<2?"0"+n:n)}))}catch{return lse(e)}}function oB(r){this.message=r}function Nrt(r,e){if(typeof r!="string")throw new oB("Invalid token specified");e=(e=e||{}).header===!0?0:1;try{return JSON.parse(Mrt(r.split(".")[e]))}catch(t){throw new oB("Invalid token specified: "+t.message)}}oB.prototype=new Error,oB.prototype.name="InvalidTokenError";var Drt=(function(){function r(e){var t=this,n=(this.fallbackStorage={},this._triggerTokenFetch=function(i){return i===void 0&&(i=!1),new Promise(function(o,a){typeof t.options.getToken!="function"?a(new Error("Token cannot be ".concat(i?"fetched":"renewed"," because getToken was not set or is not a function."))):t.options.getToken(function(l){try{var u=t._getTokenExpiry(l)-r.constants.tokenRefreshClockSkew;t._storeToken(l),t._setTimeoutTokenFetch(u),o()}catch{a(new Error("Invalid token returned by getToken function"))}},function(l){a(l)},t.map)})},this._setTimeoutTokenFetch=function(i){clearTimeout(t.tokenTimeOutHandle),t.tokenTimeOutHandle=setTimeout(t._triggerTokenFetch,Math.min(1e3*i,2147483647))},e.getServiceOptions());this.options=n.authOptions,this.sessionId=n.sessionId,this.map=e}return r.prototype.initialize=function(){var e=this;return this.initPromise||(this.initPromise=new Promise(function(t,n){if(e.options.authType===_a.subscriptionKey)t();else if(e.options.authType===_a.aad)e.options.authContext=e.options.authContext||r.getDefaultAuthContext(e.options),e.options.authContext.handleRedirectPromise().then(function(){setTimeout(function(){return e._loginAndAcquireTokenForAAD(t,n)})}).catch(function(o){n(new Error("Error logging in the AAD users: "+o))});else if(e.options.authType===_a.anonymous)t(e._triggerTokenFetch(!0));else if(e.options.authType===_a.sas){if(e.options.sasToken){var i=-1;try{i=e._getTokenExpiry(e.options.sasToken)}catch{return void n(new Error("An invalid sasToken was provided."))}if(i>r.constants.tokenRefreshClockSkew)return e._storeToken(e.options.sasToken),e._setTimeoutTokenFetch(i-r.constants.tokenRefreshClockSkew),void t()}t(e._triggerTokenFetch())}else n(new Error("An invalid authentication type was specified."))})),this.initPromise},r.prototype.dispose=function(){this.tokenTimeOutHandle&&(clearTimeout(this.tokenTimeOutHandle),this.tokenTimeOutHandle=null)},r.getDefaultAuthContext=function(e){if(!e.aadAppId)throw new Error("No AAD a
717pp ID was specified.");if(e.aadTenant)return this.defaultAuthContext||(this.defaultAuthContext=new Ort({auth:{authority:"".concat(e.aadInstance||wv.aadInstance).concat(e.aadTenant),clientId:e.aadAppId},cache:{cacheLocation:this.constants.preferredCacheLocation}})),this.defaultAuthContext;throw new Error("No AAD tenant was specified.")},r.prototype._loginAndAcquireTokenForAAD=function(e,t){var n=((n=this.options.authContext)==null?void 0:n.getAllAccounts())||[];n.length===0?(this.options.authContext.loginRedirect(),e()):(this.options.authContext.setActiveAccount(n[0]),this._acquireTokenForAAD(e,t))},r.prototype._acquireTokenForAAD=function(e,t){var n=this,i={scopes:[ai.aadResourceId]};this.options.authContext.acquireTokenSilent(i).then(function(o){n._saveItem(r.constants.storage.tokenKey,o.accessToken);var a={map:n.map,type:r.constants.events.tokenAcquired},a=(n.map.events.invoke(r.constants.events.tokenAcquired,a),clearTimeout(n.tokenTimeOutHandle),new Date(o.expiresOn).getTime()-Date.now());n.tokenTimeOutHandle=setTimeout(function(){return n._acquireTokenForAAD()},a),e!=null&&e()}).catch(function(o){if(o instanceof Im)return n.options.authContext.acquireTokenRedirect(i),e==null?void 0:e();t!=null&&t(o)})},r.prototype.getAuthType=function(){return this.options.authType},r.prototype.getClientId=function(){return this.options.clientId},r.prototype.getToken=function(){if(this.options.authType===_a.aad)return this._getItem(r.constants.storage.tokenKey);if(this.options.authType!==_a.anonymous&&this.options.authType!==_a.sas)return this.options.authType===_a.subscriptionKey?this.options.subscriptionKey:void 0;var e=this._getItem(r.constants.storage.tokenKey);if(e){var t=this._getTokenExpiry(e);if(t<300&&0<t)this._triggerTokenFetch();else if(t<=0)throw this._saveItem(r.constants.storage.tokenKey,""),new Error(r.constants.errors.tokenExpired)}else this._triggerTokenFetch();return e},r.prototype._getTokenExpiry=function(t){var t=Nrt(t).exp,n=this._getCurrentTime();return 0<t-n?t-n:-1},r.prototype._storeToken=function(e){this._saveItem(r.constants.storage.tokenKey,e),e={map:this.map,type:r.constants.events.tokenAcquired},this.map.events.invoke(r.constants.events.tokenAcquired,e)},r.prototype._saveItem=function(e,t){return this._supportsLocalStorage()?localStorage.setItem(e,t):this._supportsSessionStorage()?sessionStorage.setItem(e,t):this.fallbackStorage[e]=t,!0},r.prototype._getItem=function(e){return this._supportsLocalStorage()?localStorage.getItem(e):this._supportsSessionStorage()?sessionStorage.getItem(e):e in this.fallbackStorage?this.fallbackStorage[e]:null},r.prototype._supportsLocalStorage=function(){try{return window.localStorage?(window.localStorage.setItem(r.constants.storage.testStorageKey,"A"),window.localStorage.getItem(r.constants.storage.testStorageKey)==="A"&&(window.localStorage.removeItem(r.constants.storage.testStorageKey),!window.localStorage.getItem(r.constants.storage.testStorageKey))):!1}catch{return!1}},r.prototype._supportsSessionStorage=function(){try{return window.sessionStorage?(window.sessionStorage.setItem(r.constants.storage.testStorageKey,"A"),window.sessionStorage.getItem(r.constants.storage.testStorageKey)==="A"&&(window.sessionStorage.removeItem(r.constants.storage.testStorageKey),!window.sessionStorage.getItem(r.constants.storage.testStorageKey))):!1}catch{return!1}},r.prototype._getCurrentTime=function(){return Math.round(new Date().getTime()/1e3)},r.prototype.signRequest=function(e){e.headers=e.headers||{},e.headers[ai.sessionIdHeaderName]=this.sessionId,e.headers[ai.msOriginHeaderName]=ai.msOriginHeaderValue,e.headers[ai.mapAgentHeaderName]="MapControl/".concat(Kw," (Web)");var t=this.getToken();switch(this.options.authType){case _a.aad:case _a.anonymous:e.headers[ai.msClientIdHeaderName]=this.options.clientId,e.headers[ai.authorizationHeaderName]=ai.authorizationTokenPrefix+t;break;case _a.sas:e.headers[ai.authorizationHeaderName]=ai.jwtSasPrefix+t;break;case _a.subscriptionKey:e.headers["subscription-key"]=t;break;default:throw new Error("An invalid authentication type was specified")}return e},r.constants={preferredCacheLocation:"localStorage",storage:{tokenKey:"access.token.key",testStorageKey:"testStorage"},events:{tokenAcquired:"tokenacquired"},tokenExpiresIn:3599,tokenRefreshClockSkew:300,errors:{tokenExpired:"Token Expired, Try again"}},r})(),cse=window&&window.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return{value:(r=r&&n>=r.length?void 0:r)&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Lrt=(function(){function r(e){for(var t in this.map=e,this.controlContainer=document.createElement("div"),this.controlContainer.classList.add("atlas-control-container"),xu){var n;xu.hasOwnProperty(t)&&((n=document.createElement("div")).classList.add(xu[t]),n.classList.add("subcontrol-container"),this.controlContainer.appendChild(n))}this.map.getMapContainer().appendChild(this.controlContainer),this.controls=new Set}return r.prototype.add=function(e,t){var n,i;if(Array.isArray(e))try{for(var o=cse(e),a=o.next();!a.done;a=o.next()){var l=a.value;this._add(l,t)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}else this._add(e,t)},r.prototype.getControls=function(){return Array.from(this.controls)},r.prototype.remove=function(e){var t,n;if(Array.isArray(e))try{for(var i=cse(e),o=i.next();!o.done;o=i.next()){var a=o.value;this._remove(a)}}
vendor: 7,380 bytes, line 717
717catch(l){t={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}else this._remove(e)},r.prototype._add=function(i,o){this.controls.add(i);var n=new h7e().merge(o),i=i.onAdd(this.map,o),o=this.controlContainer.getElementsByClassName(n.position);if(!(0<o.length))throw new Error("Control position ".concat(n.position," does not exist."));o.item(0).appendChild(i)},r.prototype._remove=function(e){e.onRemove(),this.controls.delete(e)},r})(),DA=window&&window.__assign||function(){return(DA=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}).apply(this,arguments)},Hrt=(function(){function r(e){this.callbacks=new rg,this.map=e}return r.prototype.addCallback=function(e,t,n,i,o){var a,l,u=this;if(i)a=function(C){var p=C.lngLat?new od(C.lngLat.lng,C.lngLat.lat):void 0,m=C.point?[C.point.x,C.point.y]:void 0,_=C.features?C.features.map(function(T){return new hv(T.geometry,T.properties,T.id)}):[],C={type:C.type,originalEvent:C.originalEvent,position:p,coordinate:m,features:_};n(C)};else switch(e){case"data":case"sourcedata":case"styledata":a=function(h){h=DA(DA({dataType:h.dataType},h.dataType==="source"&&DA(DA(DA({isSourceLoaded:h.isSourceLoaded},h.sourceDataType&&{sourceDataType:h.sourceDataType}),{source:u.map.sources.getById(h.sourceId)}),h.tile&&{tile:{id:{x:h.tile.tileID.canonical.x,y:h.tile.tileID.canonical.y,z:h.tile.tileID.canonical.z},size:h.tile.tileSize,state:h.tile.state}})),{map:u.map,type:h.type}),o&&u.map.events._removeListener(e,t,n),n(h)};break;case"error":a=function(h){h={error:h.error,map:u.map,type:h.type},o&&u.map.events._removeListener(e,t,n),n(h)};break;case"touchstart":case"touchend":case"touchmove":case"touchcancel":a=function(h){if(h.originalEvent){if(h.originalEvent===l)return;l=h.originalEvent}var T=h.point?new Su(h.point.x,h.point.y):void 0,p=h.points?h.points.map(function(S){return new Su(S.x,S.y)}):[],m=h.lngLat?new od(h.lngLat.lng,h.lngLat.lat):void 0,_=h.lngLats?h.lngLats.map(function(S){return new od(S.lng,S.lat)}):[],C=m?u.map.layers.getRenderedShapes(new fv(m),t?[t]:void 0):[],T={map:u.map,originalEvent:h.originalEvent,pixel:T,pixels:p,position:m,positions:_,shapes:C,layerId:t||void 0,preventDefault:function(){return h.preventDefault()},type:h.type};o&&u.map.events._removeListener(e,t,n),n(T)};break;case"mousedown":case"mouseup":case"mouseover":case"mousemove":case"click":case"dblclick":case"mouseout":case"mouseenter":case"mouseleave":case"contextmenu":a=function(h){if(h.originalEvent){if(h.originalEvent===l)return;l=h.originalEvent}var _=h.lngLat?new od(h.lngLat.lng,h.lngLat.lat):void 0,p=h.point?new Su(h.point.x,h.point.y):void 0,m=_?u.map.layers.getRenderedShapes(new fv(_),t?[t]:void 0):[],_={map:u.map,originalEvent:h.originalEvent,position:_,pixel:p,preventDefault:function(){return h.preventDefault()},shapes:m,layerId:t||void 0,type:h.type};o&&u.map.events._removeListener(e,t,n),n(_)};break;case"styleimagemissing":a=function(h){o&&u.map.events._removeListener(e,t,n),n(h.id)};break;case"wheel":a=function(h){if(h.originalEvent){if(h.originalEvent===l)return;l=h.originalEvent}var p={map:u.map,originalEvent:h.originalEvent,preventDefault:function(){return h.preventDefault()},type:h.type};o&&u.map.events._removeListener(e,t,n),n(p)};break;case"resize":a=function(h){var p,m={map:u.map,type:h.type};for(p in h)p!=="type"&&p!=="target"&&(m[p]=h[p]);o&&u.map.events._removeListener(e,t,n),n(m)};break;default:a=function(h){var p={map:u.map,type:h.type};h.originalEvent&&(p.originalEvent=h.originalEvent),o&&u.map.events._removeListener(e,t,n),n(p)}}this.callbacks.has(t)||this.callbacks.set(t,new rg),this.callbacks.get(t).has(e)||this.callbacks.get(t).set(e,new Map),this.callbacks.get(t).get(e).set(n,[a,o])},r.prototype.removeCallback=function(e,t,n){this.callbacks.has(t)&&this.callbacks.get(t).has(e)&&this.callbacks.get(t).get(e).has(n)&&this.callbacks.get(t).get(e).delete(n)},r.prototype.getModifiedCallback=function(e,t,n){if(this.callbacks.has(t)&&this.callbacks.get(t).has(e)&&this.callbacks.get(t).get(e).has(n))return this.callbacks.get(t).get(e).get(n)[0]},r.prototype.getLayerCallbacks=function(e){if(this.callbacks.has(e))return this.callbacks.get(e)},r.prototype.getEventCallbacks=function(e,t){if(this.callbacks.has(t)&&(t=this.callbacks.get(t),t.has(e)))return t.get(e)},r})(),px=window&&window.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return{value:(r=r&&n>=r.length?void 0:r)&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Kj=window&&window.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n,i,o=t.call(r),a=[];try{for(;(e===void 0||0<e--)&&!(n=o.next()).done;)a.push(n.value)}catch(l){i={error:l}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},use=["maxzoomchanged","minzoomchanged","mapconfigurationchanged"],Frt=(function(){function r(e){this.map=e,this.mapCallbackHandler=new Hrt(this.map)}return r.prototype.add=function(e,t,n){var i,o;if(typeof t=="function")this._addGlobalListener(e,t,!1,!1);else{t=Array.isArray(t)?t:[t];try{for(var a=px(t),l=a.next();!l.done;l=a.next()){var u=l.value;u instanceof bs&&bs._isMBoxEvent(e)?this._addLayerListener(e,u,n,!1,!1):u._addEventListener(e,n,!1)}}catch(h){i={error:h}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}},r.prototype.addOnce=function(e,t,n){typeof t=="function"?this._addGlobalListener(e,t,!1,!0):t instanceof bs&&bs._isMBoxEvent(e)?this._addLayerListener(e,t,n,!1,!0):t._addEventListener(e,n,!0)},r.prototype._addLegacy=function(e,t,n){typeof t=="function"?this._addGlobalListener(e,t,!0,!1):this._addLayerListener(e,t,n,!0,!1)},r.prototype._addLayerListener=function(e,p,n,i,o){var a,l,u,h,p=p instanceof bs?p.getId():p,m=this.map.layers.getLayerById(p),_=this.mapCallbackHandler.getModifiedCallback(e,p,n);if(_&&m)try{for(var C=px(m._getLayerIds()),T=C.next();!T.done;T=C.next()){var S=T.value;this.map._getMap().off(e,S,_)}}catch(N){a={error:N}}finally{try{T&&!T.done&&(l=C.return)&&l.call(C)}finally{if(a)throw a.error}}if(this.mapCallbackHandler.addCallback(e,p,n,i,o),m){_=this.mapCallbackHandler.getModifiedCallback(e,p,n);try{for(var R=px(m._getLayerIds()),O=R.next();!O.done;O=R.next())S=O.value,this.map._getMap().on(e,S,_)}catch(N){u={error:N}}finally{try{O&&!O.done&&(h=R.return)&&h.call(R)}finally{if(u)throw u.error}}}},r.prototype._addGlobalListener=function(e,t,n,i){var o,a,l,u;use.includes(e)?this.map._addEventListener(e,t,i):(o=this.mapCallbackHandler.getModifiedCallback(e,"",t),this.mapCallbackHandler.addCallback(e,"",t,n,i),a=this.mapCallbackHandler.getModifiedCallback(e,"",t),e==="load"&&this.map._isLoaded()?(l={type:"load",map:this.map},setTimeout(function(){return a(l)})):e==="ready"?this.map._isReady()&&(u={type:"ready",map:this.map},setTimeout(function(){return a(u)})):(o&&this.map._getMap().off(e,o),this.map._getMap().on(e,a)))},r.prototype.invoke=function(e,t,n){if(n===void 0)this._invokeListeners(e,"",t);else if(t instanceof bs&&bs._isMBoxEvent(e))this._invokeListeners(e,t.getId(),n);else{if(!(t instanceof Ob))throw new Error("The invoke target is 
717invalid.");t._invokeEvent(e,n)}},r.prototype._invokeListeners=function(e,t,n){var i=this,o=new rg(this.mapCallbackHandler.getEventCallbacks(e,t));o?o.forEach(function(a,l){a=Kj(a,2),a[0],a[1]&&i._removeListener(e,t,l),l(n)}):e==="error"&&console.error("error"in n?n.error:n)},r.prototype.remove=function(e,t,n){var i,o;if(typeof t=="function")this._removeListener(e,"",t);else{t=Array.isArray(t)?t:[t];try{for(var a=px(t),l=a.next();!l.done;l=a.next()){var u=l.value;u instanceof bs&&bs._isMBoxEvent(e)?this._removeListener(e,u,n):u!=null&&u._removeEventListener(e,n)}}catch(h){i={error:h}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}},r.prototype._removeLegacy=function(e,t,n){typeof t=="function"?this._removeListener(e,"",t):this._removeListener(e,t,n)},r.prototype._removeListener=function(e,t,n){var i,o;if(use.includes(e))this.map._removeEventListener(e,n);else{var t=t instanceof bs?t.getId():t,a=this.mapCallbackHandler.getModifiedCallback(e,t,n);if(a)if(t){var l=this.map.layers.getLayerById(t);if(l)try{for(var u=px(l._getLayerIds()),h=u.next();!h.done;h=u.next()){var p=h.value;this.map._getMap().off(e,p,a)}}catch(_){i={error:_}}finally{try{h&&!h.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}}else this.map._getMap().off(e,a);this.mapCallbackHandler.removeCallback(e,t,n)}},r.prototype._enableLayerEvents=function(e){var t=this,n=this.mapCallbackHandler.getLayerCallbacks(e.getId());n&&n.forEach(function(i,o){i.forEach(function(a){var l,u,h=Kj(a,1)[0];try{for(var p=px(e._getLayerIds()),m=p.next();!m.done;m=p.next()){var _=m.value;t.map._getMap().on(o,_,h)}}catch(C){l={error:C}}finally{try{m&&!m.done&&(u=p.return)&&u.call(p)}finally{if(l)throw l.error}}})})},r.prototype._disableLayerEvents=function(e){var t=this,n=this.mapCallbackHandler.getLayerCallbacks(e.getId());n&&n.forEach(function(i,o){i.forEach(function(a){var l,u,h=Kj(a,1)[0];try{for(var p=px(e._getLayerIds()),m=p.next();!m.done;m=p.next()){var _=m.value;t.map._getMap().off(o,_,h)}}catch(C){l={error:C}}finally{try{m&&!m.done&&(u=p.return)&&u.call(p)}finally{if(l)throw l.error}}})})},r})(),dse=window&&window.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return{value:(r=r&&n>=r.length?void 0:r)&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Urt=(function(){function r(e){this.markers=new Set,this.map=e}return r.prototype.add=function(e,t){var n,i;if(Array.isArray(e))try{for(var o=dse(e),a=o.next();!a.done;a=o.next()){var l=a.value;this._addMarker(l,t)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}else this._addMarker(e,t)},r.prototype._addMarker=function(e,t){e._addToMap(this.map,t),this.markers.add(e)},r.prototype.getMarkers=function(){return Array.from(this.markers)},r.prototype.remove=function(e){var t,n;if(Array.isArray(e))try{for(var i=dse(e),o=i.next();!o.done;o=i.next()){var a=o.value;this._removeMarker(a)}}
vendor: 8,126 bytes, line 717
717catch(l){t={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}else this._removeMarker(e)},r.prototype._removeMarker=function(e){var t=this;e instanceof z7?(e._removeFromMap(),this.markers.delete(e)):this.markers.forEach(function(n){n._getId()===e&&(n._removeFromMap(),t.markers.delete(n))})},r.prototype.clear=function(){var e=this;this.markers.forEach(function(t){t._removeFromMap(),e.markers.delete(t)})},r})(),Brt=(function(){function r(e){this.userImages=new rg,this.imageLoadTimeout=5e3,this.map=e}return r.prototype.add=function(e,t,n){var i=this;return new Promise(function(o,a){var l,u,h;i.userImages.has(e)?o():t instanceof HTMLImageElement||t instanceof ImageData?(i.map._getMap().addImage(e,t,n),i.userImages.set(e,{image:t,meta:n}),o()):typeof t=="string"&&(u=void 0,u=/<svg/i.test(t)&&!/^data:/i.test(t)?"data:image/svg+xml;base64,"+window.btoa(t):t,h=!1,i.map._sendRequest(u,"Image").then(function(p){return h?void 0:p.blob()}).then(function(p){var m;!h&&p&&(clearTimeout(l),(m=new Image).onload=function(){i.map._getMap().addImage(e,m,n),i.userImages.set(e,{image:m,meta:n}),o()},m.onerror=m.onabort=function(){a("Failed to load image into HTML element.")},m.src=URL.createObjectURL(p))}).catch(function(){h||(clearTimeout(l),a("Failed to load image into HTML element."))}),l=setTimeout(function(){h=!0,a("Failed to load image within specified timeout: ".concat(i.imageLoadTimeout," ms."))},i.imageLoadTimeout))})},r.prototype.clear=function(){var e=this;this.userImages.forEach(function(t,n){e.map._getMap().removeImage(n)}),this.userImages.clear()},r.prototype.getImageIds=function(){var e=[];return this.userImages.forEach(function(t,n){e.push(n)}),e},r.prototype.createFromTemplate=function(e,t,n,i,o){return n=n||"#1A73AA",i=i||"#fff",t=(t=JZ(t,o)).replace(/{color}/g,n).replace(/{secondaryColor}/g,i).replace(/{text}/g,""),this.add(e,t)},r.prototype.hasImage=function(e){return this.userImages.has(e)},r.prototype.remove=function(e){this.map._getMap().removeImage(e),this.userImages.delete(e)},r.prototype._restoreImages=function(){var e=this;this.userImages.forEach(function(t,n){e.map._getMap().hasImage(n)||e.map._getMap().addImage(n,t.image,t.meta)})},r})(),$rt=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),zrt=window&&window.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return{value:(r=r&&n>=r.length?void 0:r)&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Fw=(function(r){function e(t,n){return n=r.call(this,n)||this,n.layers=t,n}return $rt(e,r),e.prototype.getOptions=function(){return{}},e.prototype.setOptions=function(t){},e.prototype._buildLayers=function(){return this.layers},e.prototype._getLayerIds=function(){return this.layers.map(function(t){return t.id})},e.prototype._getSourceIds=function(){var t,n,i=new Set;try{for(var o=zrt(this.layers),a=o.next();!a.done;a=o.next()){var l=a.value;"source"in l&&typeof l.source=="string"?i.add(l.source):"source"in l&&l.source&&i.add(l.id)}}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i},e.prototype._updateLayoutProperty=function(t,n,i,o){var a;jh(n,i)||(a=this.map._getMap(),this.layers.forEach(function(l){a.getLayer(l.id)?a.setLayoutProperty(l.id,t,o||n):console.warn("Could not update layout property ".concat(t," for layer ").concat(l.id," to ").concat(o||n))}))},e})(bs),y1=window&&window.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return{value:(r=r&&n>=r.length?void 0:r)&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},jrt=window&&window.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n,i,o=t.call(r),a=[];try{for(;(e===void 0||0<e--)&&!(n=o.next()).done;)a.push(n.value)}catch(l){i={error:l}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},Vrt=window&&window.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||((n=n||Array.prototype.slice.call(e,0,i))[i]=e[i]);return r.concat(n||Array.prototype.slice.call(e))},qrt=(function(){function r(e){this.layerIndex=[],this.userLayers=[],this.map=e}return r.prototype.add=function(e,t){var n,i,o=t instanceof bs?t.getId():t;if(Array.isArray(e))try{for(var a=y1(e),l=a.next();!l.done;l=a.next()){var u=l.value;this._addLayer(u,o)}}catch(h){n={error:h}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}else this._addLayer(e,o)},r.prototype._addLayer=function(e,t){if(!(this.map._isReady()||e instanceof Fw))throw new Error("The layer '".concat(e.getId(),"' could not be added to the map because ")+"the map is not ready. Please use a ready event listener to guarantee the map is ready before adding a layer to it.");var n,i,o,a;t!==e.getId()&&this.layerIndex.find(function(l){return t===l.getId()})?this._getMapboxLayerExists(e)?(i=this.layerIndex.findIndex(function(l){return l.getId()===e.getId()}),o=this.userLayers.findIndex(function(l){return l.layer.getId()===e.getId()}),this._removeMapboxLayers(e),this._addMapboxLayers(e,t),(a=this.layerIndex[i])&&this.map.events._disableLayerEvents(a),this.map.events._enableLayerEvents(e),this.layerIndex.splice(i,1),n=this.layerIndex.findIndex(function(l){return l.getId()===t}),this.layerIndex.splice(n,0,e),e instanceof Fw||(this.userLayers[o]={layer:e,before:t}),a&&a.onRemove()):(this._addMapboxLayers(e,t),this.map.events._enableLayerEvents(e),n=this.layerIndex.findIndex(function(l){return l.getId()===t}),this.layerIndex.splice(n,0,e),e instanceof Fw||this.userLayers.push({layer:e,before:t})):(i=this.layerIndex.findIndex(function(l){return l.getId()===e.getId()}),o=this.userLayers.findIndex(function(l){return l.layer.getId()===e.getId()}),0<=i&&0<=o?(a=this.layerIndex[i],this._removeMapboxLayers(a),this._addMapboxLayers(e,i+1),this.map.events._disableLayerEvents(a),this.map.events._enableLayerEvents(e),(this.layerIndex[i]=e)instanceof Fw||(this.userLayers[o]={layer:e,before:void 0}),a.onRemove()):(this._addMapboxLayers(e),this.map.events._enableLayerEvents(e),this.layerIndex.push(e),e instanceof Fw||this.userLayers.push({layer:e,before:t}))),e.onAdd(this.map)},r.prototype._addMapboxLayers=function(e,t){var n,i;if(!(e instanceof X8)||e.getOptions().tileUrl){if(!(e instanceof Fw)){e instanceof YM&&(this.map._getMap().addSource(e._getSourceId(),e._buildSource()),this.map.sources.setSourceState(e._getSourceWrapper()));var o=this._getMapboxBefore(t);try{for(var a=y1(e._buildLayers()),l=a.next();!l.done;l=a.next()){var u=l.value;this.map._getMap().addLayer(u,o)}}catch(h){n={error:h}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}}this.map.events._enableLayerEvents(e)}},r.prototype._removeMapboxLayers=function(e,t){var n,i;if(e instanceof Fw&&!t)this.map.events._disableLayerEvents(e);else{try{for(var o=y1(e._getLayerIds()),a=o.next();!a.done;a=o.next()){var l=a.value;this.map._getMap().getLayer(l)&&this.map._getMap().removeLayer(l)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}this.map.events._disableLayerEvents(e),e instanceof YM&&this.map._getMap().getSource(e._getSourceId())&&this.map._getMap().removeSource(e._getSourceId())}},r.prototype._getMapboxLayerExists=function(e){var t=this,n=!1;return typeof e=="string"?!!(e=this.layerIndex.find(function(i){return i.getId()===e}
vendor: 2,634 bytes, line 717
717)):(e._getLayerIds().forEach(function(i){t.map._getMap().getLayer(i)&&(n=!0)}),n)},r.prototype._getMapboxBefore=function(e){var t,n,i,o;if(typeof e=="string"){var a=this.layerIndex.find(function(C){return C.getId()===e});if(!a)return;try{for(var l=y1(a._getLayerIds()),u=l.next();!u.done;u=l.next()){var h=u.value;if(this.map._getMap().getLayer(h))return h}}catch(C){t={error:C}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}e=this.layerIndex.findIndex(function(C){return C.getId()===e})+1}for(var p=e;p<this.layerIndex.length;p++)try{i=void 0;for(var m=y1(this.layerIndex[p]._getLayerIds()),_=m.next();!_.done;_=m.next())if(h=_.value,this.map._getMap().getLayer(h))return h}catch(C){i={error:C}}finally{try{_&&!_.done&&(o=m.return)&&o.call(m)}finally{if(i)throw i.error}}},r.prototype.clear=function(){for(var e=this.layerIndex.length-1;0<=e;e--){var t=this.layerIndex[e];t&&(this._removeMapboxLayers(t,!0),this.layerIndex.splice(e,1),t.onRemove())}this.userLayers=[]},r.prototype.getLayerById=function(e){var t=this.layerIndex.find(function(n){return n.getId()===e});if(t)return t},r.prototype.getLayers=function(){return this.layerIndex.slice(0)},r.prototype._getSourceIds=function(){var e,t,n=new Set;try{for(var i=y1(this.layerIndex),o=i.next();!o.done;o=i.next())o.value._getSourceIds().forEach(function(a){return n.add(a)})}catch(a){e={error:a}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return n},r.prototype._getUserLayers=function(){return Array.from(this.userLayers)},r.prototype.move=function(e,t){var n=e instanceof bs?e.getId():e,i=t instanceof bs?t.getId():t;if(!this.layerIndex.find(function(o){return o.getId()===n}))throw new Error("The layer '".concat(n,"' has not been added to the map and cannot be moved."));t=this.layerIndex.findIndex(function(o){return o.getId()===n}),this._moveMapboxLayers(this.layerIndex[t],i),e=this.layerIndex[t],this.layerIndex.splice(t,1),t=this.layerIndex.findIndex(function(o){return o.getId()===i}),-1<t?this.layerIndex.splice(t,0,e):this.layerIndex.push(e),t=this.userLayers.find(function(o){return o.layer.getId()===n}),t&&(t.before=i)},r.prototype._moveMapboxLayers=function(e,t){var n,i,o=this._getMapboxBefore(t);try{for(var a=y1(e._getLayerIds()),l=a.next();!l.done;l=a.next()){var u=l.value;this.map._getMap().moveLayer(u,o)}}catch(h){n={error:h}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}},r.prototype.getRenderedShapes=function(e,t,n){var i,o,a,l=this;if(e=e||[-180,-85.0511,180,85.0511],Array.isArray(e)?e.length===4||e.length===6?a=this.map.positionsToPixels([qi.getSouthWest
717(e),qi.getNorthEast(e)]):e.length!==2&&e.length!==3||(a=this.map.positionsToPixels([e])[0]):a=this.map.positionsToPixels([e.coordinates])[0],t){t=Array.isArray(t)?t:[t];var u=[],h=this;try{for(var p=y1(t),m=p.next();!m.done;m=p.next())(function(T){var C=T instanceof bs?T.getId():T,T=h.layerIndex.findIndex(function(S){return S.getId()===C});if(!(-1<T))throw new Error("The layer '".concat(C,"' has not been added to the map ")+"and its rendered features cannot be retrieved.");u.push.apply(u,Vrt([],jrt(h.layerIndex[T]._getLayerIds().filter(function(S){return!!l.map._getMap().getLayer(S)})),!1))})(m.value)}catch(_){i={error:_}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}}return e=this.map._getMap().queryRenderedFeatures(a,{layers:u,filter:n}),this.map.sources._mapFeaturesToShapes(e)},r.prototype.remove=function(e){var t,n;if(Array.isArray(e))try{for(var i=y1(e),o=i.next();!o.done;o=i.next()){var a=o.value;this._removeLayer(a)}}catch(l){t={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}else this._removeLayer(e)},r.prototype._removeLayer=function(e){var t=e instanceof bs?e.getId():e,i=this.layerIndex.findIndex(function(o){return o.getId()===t});if(i==-1)throw new Error("The layer '".concat(t,"' has not been added to the map and cannot be removed."));var n=this.layerIndex[i],i=(this._removeMapboxLayers(n),this.layerIndex.splice(i,1),this.userLayers.findIndex(function(o){return o.layer.getId()===t}));i!=-1&&this.userLayers.splice(i,1),e instanceof YM&&this.map.sources.unsetSourceState(e._getSourceId()),n.onRemove()},r})(),hse=window&&window.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return{value:(r=r&&n>=r.length?void 0:r)&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Grt=(function(){function r(e){var t=this;this._onDrag=function(n){var i,o;n.type==="mousemove"?(i=n.clientX,o=n.clientY):n.type==="touchmove"&&(i=n.touches[0].clientX,o=n.touches[0].clientY),t.draggedPopups.forEach(function(a){a._dragToPixel([i,o])})},this._onUp=function(){t.map.getMapContainer().removeEventListener("mousemove",t._onDrag),t.map.getMapContainer().removeEventListener("touchmove",t._onDrag),t.map.getMapContainer().removeEventListener("mouseup",t._onUp),t.map.getMapContainer().removeEventListener("touchend",t._onUp),t.draggedPopups.forEach(function(n){t.draggedPopups.delete(n),n._onUp()})},this.map=e,this.popups=new Set,this.draggedPopups=new Set}return r.prototype.add=function(e){var t,n;e=Array.isArray(e)?e:[e];try{for(var i=hse(e),o=i.next();!o.done;o=i.next()){var a=o.value;this.popups.has(a)||(this.popups.add(a),a.attach(this.map))}}
717catch(l){t={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},r.prototype.clear=function(){var e=this;this.popups.forEach(function(t){e.popups.delete(t),t.remove()})},r.prototype.remove=function(e){var t,n;e=Array.isArray(e)?e:[e];try{for(var i=hse(e),o=i.next();!o.done;o=i.next()){var a=o.value;this.popups.has(a)&&(this.popups.delete(a),a.remove())}}catch(l){t={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},r.prototype.getPopups=function(){return Array.from(this.popups)},r.prototype._getCollectionDiv=function(){var e=this.map.getMapContainer().querySelector(".".concat(r.Css.collection));return e||((e=document.createElement("div")).classList.add(r.Css.collection),e.setAttribute("aria-label","Map Information"),this.map.getMapContainer().appendChild(e)),e},r.prototype._addDraggedPopup=function(e){this.draggedPopups.size===0&&(this.map.getMapContainer().addEventListener("mousemove",this._onDrag),this.map.getMapContainer().addEventListener("touchmove",this._onDrag),this.map.getMapContainer().addEventListener("mouseup",this._onUp),this.map.getMapContainer().addEventListener("touchend",this._onUp)),this.draggedPopups.add(e)},r.Css={collection:"popup-collection-container"},r})(),Zj=window&&window.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return{value:(r=r&&n>=r.length?void 0:r)&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Yrt=(function(){function r(e){this.map=e,this.sources=new rg}return r.prototype.add=function(e,t){var n,i;if(t===void 0&&(t=!0),Array.isArray(e))try{for(var o=Zj(e),a=o.next();!a.done;a=o.next()){var l=a.value;this._addSource(l,t)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}else this._addSource(e,t)},r.prototype.getRenderedShapes=function(e,t,n){return e=typeof e=="string"?e:e.getId(),n=this.map._getMap().querySourceFeatures(e,{sourceLayer:n,filter:t}),this.map.sources._mapFeaturesToShapes(n,!0,this.sources.get(e))},r.prototype.getFeatureState=function(e,t,n){return e=typeof e=="string"?e:e instanceof rs?e.getId():e.id,t=typeof t=="string"?t:t.getId(),this.map._getMap().getFeatureState({id:e,source:t,sourceLayer:n})},r.prototype.removeFeatureState=function(e,t,n,i){e=typeof e=="string"?e:e instanceof rs?e.getId():e.id,t=typeof t=="string"?t:t.getId(),this.map._getMap().removeFeatureState({id:e,source:t,sourceLayer:n},i)},r.prototype.setFeatureState=function(e,t,n,i){e=typeof e=="string"?e:e instanceof rs?e.getId():e.id,t=typeof t=="string"?t:t.getId(),this.map._getMap().setFeatureState({id:e,source:t,sourceLayer:i},n)},r.prototype._buildSources=function(){var e={};return this.sources.forEach(function(t){e[t.getId()]=t._buildSource()}),e},r.prototype.clear=function(){var e=this;this.sources.forEach(function(t){e.remove(t)})},r.prototype.getById=function(e){return this.sources.get(e)},r.prototype.getSources=function(){return Array.from(this.sources.values())},r.prototype.isSourceLoaded=function(e){return e=e instanceof ss?e.getId():e,this.map._getMap().isSourceLoaded(e)},r.prototype.remove=function(e,t){var n,i;if(t===void 0&&(t=!0),Array.isArray(e))try{for(var o=Zj(e),a=o.next();!a.done;a=o.next()){var l=a.value;this._removeSource(l,t)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}else this._removeSource(e,t)},r.prototype.setSourceState=function(e,t){t===void 0&&(t=!0),this.sources.set(e.getId(),e),e._setMap(this.map,t)},r.prototype.unsetSourceState=function(e){this.sources.has(e)&&(this.sources.get(e)._setMap(null),this.sources.delete(e))},r.prototype._removeSource=function(e,t){if(e=e instanceof ss?e.getId():e,!this.sources.has(e))throw new Error("'".concat(e,"' is not added to the map"));if(this.map._getMap().getSource(e)&&t&&this.map._getMap().removeSource(e),this.map._getMap().getSource(e)&&t)throw new Error("One or more layers have a dependency on the source '".concat(e,"'"));this.unsetSourceState(e)},r.prototype._addSource=function(e,t){if(this.sources.has(e.getId())){if(t)throw new Error("'".concat(e.getId(),"' is already added to the map"));this.unsetSourceState(e.getId())}if(t){if(!this.map._isReady())throw new Error("The source '".concat(e.getId(),"' could not be added to the map because ")+"the map is not ready. Please use a ready event listener to guarantee the map is ready before adding a source to it.");this.map._getMap().addSource(e.getId(),e._buildSource())}this.setSourceState(e)},r.prototype._mapFeaturesToShapes=function(e,t,n){var i,o,a=[];try{for(var l=Zj(e),u=l.next();!u.done;u=l.next()){var h=u.value;
717if((n||typeof h.source=="string")&&typeof h.properties[rs._shapeIdPropName]=="string"){var p=n||this.sources.get(h.source);if(p instanceof Gp){var m=p.getShapeById(h.properties[rs._shapeIdPropName]);if(m instanceof rs){a.push(m);continue}}}t||a.push(h)}}catch(_){i={error:_}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}return a},r.prototype._syncSources=function(e){var t=this;e?(Object.keys(e).map(function(n){var i,o=e[n];switch(o.type){case"vector":case"raster":case"raster-dem":i=new __e(n,{name:n,tiles:o.tiles,type:o.type,url:o.url,tileSize:"tileSize"in o?o.tileSize:void 0});break;case"canvas":i=new f_e(n,o);break;case"geojson":var a=new Gp(n,{maxZoom:o.maxzoom,cluster:o.cluster,clusterRadius:o.clusterRadius,tolerance:o.tolerance,lineMetrics:o.lineMetrics,clusterProperties:o.clusterProperties,buffer:o.buffer,clusterMinPoints:o.clusterMinPoints,generateId:o.generateId,promoteId:o.promoteId,filter:o.filter});typeof o.data!="string"&&o.data!==void 0&&a._addNoUpdate(o.data),i=a;break;case"image":i=new xX(n,o);break;case"video":i=new g_e(n,o);break;default:i=new p_e(n,o)}return i}).forEach(function(n){var i=t.sources.get(n.getId()),o=i&&n._isDeepEqual(i);!o&&i&&t.unsetSourceState(i.getId()),t.setSourceState(n,!o)}),Array.from(this.sources.keys()).filter(function(n){return!(n in e)}).forEach(function(n){return t.unsetSourceState(n)})):console.warn("syncSources called with no style sources which is unexpected.")},r})(),Wrt=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Krt=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.duration=1e3,t.type="jump",t}return Wrt(e,r),e})(Ya),Zrt=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Xrt=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.bottom=0,t.left=0,t.right=0,t.top=0,t}return Zrt(e,r),e})(Ya),Qrt=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Jrt=window&&window.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return{value:(r=r&&n>=r.length?void 0:r)&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ent=window&&window.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n,i,o=t.call(r),a=[];try{for(;(e===void 0||0<e--)&&!(n=o.next()).done;)a.push(n.value)}catch(l){i={error:l}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},tnt=window&&window.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||((n=n||Array.prototype.slice.call(e,0,i))[i]=e[i]);return r.concat(n||Array.prototype.slice.call(e))},rnt=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.bounds=[-180,-89,180,90],t.maxBounds=void 0,t.maxZoom=20,t.offset=new Su(0,0),t.padding=new Xrt,t}return Qrt(e,r),e.prototype.merge=function(){for(var t,n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];try{for(var a=Jrt(i),l=a.next();!l.done;l=a.next()){var u=l.value;u&&typeof u.padding=="number"&&(u.padding={top:u.padding,bottom:u.padding,left:u.padding,right:u.padding})}}catch(h){t={error:h}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r.prototype.merge.apply(this,tnt([],ent(i),!1))},e})(Ya),nnt=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}
717r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),int=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.zoom=1,t.center=new od(0,0),t.centerOffset=new Su(0,0),t.bearing=0,t.pitch=0,t.minZoom=1,t.maxZoom=20,t.minPitch=0,t.maxPitch=60,t.maxBounds=void 0,t}return nnt(e,r),e})(Ya),ont=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),PL=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.name=void 0,t.before=void 0,t.minZoom=1,t.maxZoom=20,t.overwrite=!1,t.opacity=1,t}return ont(e,r),e})(Ya),ant=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),snt=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.color="rgba(0,0,0,.5)",t.outlineColor="#000",t.radius=1,t.outlineWidth=5,t.name="default-circles",t}return ant(e,r),e})(PL),lnt=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),cnt=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.cap="butt",t.join="miter",t.name="default-linestrings",t.color="#000",t.width=1,t}return lnt(e,r),e})(PL),unt=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),dnt=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.iconSize=1,t.fontSize=14,t.fontColor="#000",t.textFont="SegoeUi-Regular",t.cluster=!0,t.clusterIcon=void 0,t.textOffset=[0,0],t.name="default-pins",t.icon="pin-darkblue",t.title="",t}return unt(e,r),e})(PL),hnt=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),fnt=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.color="rgba(0,0,0,.5)",t.outlineColor="#000",t.name="default-polygons",t}return hnt(e,r),e})(PL),pnt=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}
717r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),gnt=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.name="default-raster",t}return pnt(e,r),e})(PL),mnt=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),ynt=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.anchor="map",t.color="#FFFFFF",t.intensity=.5,t.position=[1.15,210,30],t}return mnt(e,r),e})(Ya),vnt=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),_nt=window&&window.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return{value:(r=r&&n>=r.length?void 0:r)&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},bnt=window&&window.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n,i,o=t.call(r),a=[];try{for(;(e===void 0||0<e--)&&!(n=o.next()).done;)a.push(n.value)}catch(l){i={error:l}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},wnt=window&&window.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||((n=n||Array.prototype.slice.call(e,0,i))[i]=e[i]);return r.concat(n||Array.prototype.slice.call(e))},fse=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.antialias=void 0,t.autoResize=!0,t.language=BZ(),t.light=new ynt,t.preserveDrawingBuffer=!1,t.progressiveLoading=!1,t.progressiveLoadingInitialLayerGroups=["base"],t.renderWorldCopies=!0,t.showBuildingModels=!1,t.showFeedbackLink=!0,t.showLogo=!0,t.showLabels=!0,t.customAttribution=void 0,t.showTileBoundaries=!1,t.style=void 0,t.view=jZ(),t.userRegion=t.view,t.styleOverrides=void 0,t.customStyleTransform=void 0,t}return vnt(e,r),e.prototype.merge=function(){for(var t,n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];try{for(var a=_nt(i),l=a.next();!l.done;l=a.next()){var u=l.value;u&&(u.hasOwnProperty("view")?u.userRegion=u.view:u.hasOwnProperty("userRegion")&&(u.view=u.userRegion),typeof u.language=="string")&&(u.language=q8.getCode(u.language))}}catch(h){t={error:h}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r.prototype.merge.apply(this,wnt([],bnt(i),!1))},e})(Ya),Ent=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),xD=window&&window.__assign||function(){return(xD=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}).apply(this,arguments)},Cnt=window&&window.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return{value:(r=r&&n>=r.length?void 0:r)&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},lO=window&&window.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n,i,o=t.call(r),a=[];try{for(;(e===void 0||0<e--)&&!(n=o.next()).done;)a.push(n.value)}catch(l){i={error:l}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},cO=window&&window.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||((n=n||Array.prototype.slice.call(e,0,i))[i]=e[i]);return r.concat(n||Array.prototype.slice.call(e))},Xj=function(r){return r.length==0?void 0:r.slice(1).reduce(function(e,t){return function(n,i){return n=e(n,i),xD(xD({},n),t(n.url,i))}},r[0])},Qj=(function(r){function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.authOptions=MZ(),t.disableTelemetry=!0,t["disable-telemetry"]=t.disableTelemetry,t.domain=k7(),t.staticAssetsDomain=NZ(),t.styleDefinitionsPath=DZ(),t.styleDefinitionsVersion=LZ(),t.styleAPIVersion=HZ(),t.mapConfiguration=void 0,t.styleSet
717=void 0,t.enableAccessibility=!0,t["enable-accessibility"]=t.enableAccessibility,t.enableAccessibilityLocationFallback=!0,t.maxParallelImageRequests=UZ(),t.refreshExpiredTiles=!0,t.subscriptionKey=zZ(),t["subscription-key"]=t.subscriptionKey,t.sessionId=$Z(),t["session-id"]=t.sessionId,t._transformers=[],t.transformRequest=void 0,t.workerCount=FZ(),t.fadeDuration=300,t.localIdeographFontFamily="sans-serif",t.validateStyle=!1,t}return Ent(e,r),e.prototype.merge=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=this.styleDefinitionsVersion;try{for(var o=Cnt(t),a=o.next();!a.done;a=o.next()){var l=a.value;l&&(l.authOptions?typeof l.authOptions.subscriptionKey=="string"&&(l.subscriptionKey=l["subscription-key"]=l.authOptions.subscriptionKey):typeof l.subscriptionKey=="string"?(l["subscription-key"]=l.subscriptionKey,l.authOptions={authType:_a.subscriptionKey,subscriptionKey:l.subscriptionKey}):typeof l["subscription-key"]=="string"&&(l.subscriptionKey=l["subscription-key"],l.authOptions={authType:_a.subscriptionKey,subscriptionKey:l["subscription-key"]}),typeof l.sessionId=="string"?l["session-id"]=l.sessionId:typeof l["session-id"]=="string"&&(l.sessionId=l["session-id"]),typeof l.disableTelemetry=="boolean"?l["disable-telemetry"]=l.disableTelemetry:typeof l["disable-telemetry"]=="boolean"&&(l.disableTelemetry=l["disable-telemetry"]),typeof l.enableAccessibility=="boolean"?l["enable-accessibility"]=l.enableAccessibility:typeof l["enable-accessibility"]=="boolean"&&(l.enableAccessibility=l["enable-accessibility"]))}}catch(_){h={error:_}}finally{try{a&&!a.done&&(p=o.return)&&p.call(o)}finally{if(h)throw h.error}}var u=this._transformers,p=t?t.filter(function(_){return _!==void 0}).reduce(function(_,C){return cO(cO([],lO(_),!1),lO(C._transformers||[]),!1)},[]):[],h=r.prototype.merge.apply(this,cO([],lO(t),!1)),p=(h.authOptions.authType!==_a.subscriptionKey&&(h["subscription-key"]=h.subscriptionKey=void 0),h.styleSet!==void 0&&h.mapConfiguration===void 0&&(h.mapConfiguration=h.styleSet),h.mapConfiguration&&typeof h.mapConfiguration!="string"&&(h.mapConfiguration=xD(xD({},h.mapConfiguration),{defaultConfiguration:h.mapConfiguration.defaultConfiguration||h.mapConfiguration.defaultStyle,configurations:h.mapConfiguration.configurations||h.mapConfiguration.styles})),this._transformers=cO(cO([],lO(u||[]),!1),lO(p.filter(function(_){return!u.includes(_)})),!1),this.transformRequest&&!this._transformers.includes(this.transformRequest)&&this._transformers.push(this.transformRequest),new Date(Date.UTC(2023,0))),m=new Date(this.styleDefinitionsVersion);return(isNaN(m.getTime())||m.getTime()<p.getTime())&&(console.warn("Style definition version ".concat(this.styleDefinitionsVersion," is invalid or deprecated, style definition version is unchanged (").concat(i,")")),this.styleDefinitionsVersion=i),this.transformRequest=Xj(this._transformers),h},e.prototype.addTransformer=function(t){this._transformers||(this._transformers=[]),this._transformers.push(t),this.transformRequest=Xj(this._transformers)},e.prototype.removeTransformer=function(t){this._transformers&&(this._transformers=this._transformers.filter(function(n){return t!==n}),this.transformRequest=Xj(this._transformers))},e._cloneCustomizer=function(t){if(typeof t=="object")return Object.assign({},t)},e})(Ya),xnt=(function(){function r(){}return r.getLayerGroup=function(e){return typeof e!="string"&&e.metadata&&e.metadata["microsoft.maps:layerGroup"]?e.metadata["microsoft.maps:layerGroup"]:(e=typeof e!="string"?e.id:e).startsWith("microsoft.")&&4<=(e=e.split(".")).length?e[3]:void 0},r})(),k6=(function(){function r(e){var t=this;this.isHijacked=function(){return t._hijackedToResolve!==void 0||t._hijackedToReject!==void 0},this.isResolved=function(){return t._hijackedToResolve!==void 0||t._toResolve!==void 0},this.isRejected=function(){return t._hijackedToReject!==void 0||t._toReject!==void 0},this.resultIfResolved=function(){return t._hijackedToResolve||t._toResolve},this.errorIfRejected=function(){return t._hijackedToReject||t._toReject},this._thenResolver=function(n,i){var o;t._hijackedToResolve?n(t._hijackedToResolve):t._hijackedToReject?i(t._hijackedToReject):(o=t.origin,t.origin.then(function(a){t.isHijacked()||(o!==t.origin?t._thenResolver(n,i):(t._toResolve=a,n(a)
717))}).catch(function(a){t.isHijacked()||(o!==t.origin?t._thenResolver(n,i):(t._toReject=a,i(a)))}))},this.origin=e,this[Symbol.toStringTag]=this.origin[Symbol.toStringTag]}return r.resolve=function(e){return new r(Promise.resolve(e))},r.reject=function(e){return new r(Promise.reject(e))},r.prototype.then=function(e,t){var n=this;return new Promise(function(i,o){n._resolve=i,n._reject=o,n._thenResolver(i,o)}).then(e,t)},r.prototype.catch=function(e){var t=this;return new Promise(function(n,i){t._resolve=n,t._reject=i,t._thenResolver(n,i)}).catch(e)},r.prototype.finally=function(e){var t=this;return new Promise(function(n,i){t._resolve=n,t._reject=i,t._thenResolver(n,i)}).finally(e)},r.prototype.hijackAndResolve=function(e){this._hijackedToResolve=e,this._resolve&&this._resolve(e)},r.prototype.hijackAndReject=function(e){this._hijackedToReject=e,this._reject&&this._reject(e)},r.prototype.switchWith=function(e){this.origin=e,this._toResolve=void 0,this._toReject=void 0},r})(),pse={road:"Road",satellite:"Satellite",satellite_road_labels:"Hybrid",grayscale_dark:"Grayscale (Dark)",grayscale_light:"Grayscale (Light)",night:"Night",road_shaded_relief:"Terra",blank:"Blank",blank_accessible:"Blank (Accessible)",high_contrast_dark:"High contrast (Dark)",high_contrast_light:"High contrast (Light)"},qy=window&&window.__assign||function(){return(qy=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}).apply(this,arguments)},Jj=window&&window.__awaiter||function(r,e,t,n){return new(t=t||Promise)(function(i,o){function a(h){try{u(n.next(h))}catch(p){o(p)}}function l(h){try{u(n.throw(h))}catch(p){o(p)}}function u(h){var p;h.done?i(h.value):((p=h.value)instanceof t?p:new t(function(m){m(p)})).then(a,l)}u((n=n.apply(r,e||[])).next())})},e3=window&&window.__generator||function(r,e){var t,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:l(0),throw:l(1),return:l(2)};return typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(u){return function(h){var p=[u,h];if(t)throw new TypeError("Generator is already executing.");for(;o=a&&p[a=0]?0:o;)try{if(t=1,n&&(i=2&p[0]?n.return:p[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,p[1])).done)return i;switch(n=0,(p=i?[2&p[0],i.value]:p)[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,n=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3]))o.label=p[1];else if(p[0]===6&&o.label<i[1])o.label=i[1],i=p;else{if(!(i&&o.label<i[2])){i[2]&&o.ops.pop(),o.trys.pop();continue}o.label=i[2],o.ops.push(p)}}p=e.call(r,o)}catch(m){p=[6,m],n=0}finally{t=i=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}},Sw=window&&window.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n,i,o=t.call(r),a=[];try{for(;(e===void 0||0<e--)&&!(n=o.next()).done;)a.push(n.value)}catch(l){i={error:l}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},t3=window&&window.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||((n=n||Array.prototype.slice.call(e,0,i))[i]=e[i]);return r.concat(n||Array.prototype.slice.call(e))},Tnt=window&&window.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return{value:(r=r&&n>=r.length?void 0:r)&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},O6={countryRegion:"cr|bv:0",adminDistrict:"ad|bv:0",adminDistrict2:"ds|bv:0",buildingFootprint:"bld|v:0_adr|lv:0",roadDetails:"g|rasterDetailsVisible:0"},Snt=(function(){function r(e,t){var n=this;this.definitions=function(){var i=n.initPromise||n.initStyleset();return i},this.indoorState=void 0,this.preservedPreindoorMapConfiguration=void 0,this._progressiveLoadingState={mapStyle:void 0,pendingVisibilityChange:void 0},this._deferLayerGroupVisibilities=function(i,o){var a,l,u,h,p=o.filter(function(m){return m in i});p.length!==0&&(a=n.map._getMap(),l=a.getZoom(),u=n.map.getStyle().style,n._progressiveLoadingState.pendingVisibilityChange&&(n.map.events.remove("load",n._progressiveLoadingState.pendingVisibilityChange),n._progressiveLoadingState.pendingVisibilityChange=null),n._progressiveLoadingState.mapStyle=u,(h=Object.entries(i).reduce(function(m,T){var T=Sw(T,2),C=T[0],T=T[1],S=p.includes(C);return t3(t3([],Sw(m),!1),Sw(T.filter(function(R){if(R.type==="custom")return!1;if(S){if(typeof R.maxzoom=="number"&&typeof R.minzoom=="number"){if(l<=R.maxzoom&&l>=R.minzoom)return!1}else if(typeof R.minzoom=="number"){if(l>=R.minzoom)return!1}else if(typeof R.maxzoom!="number"||l<=R.maxzoom)return!1}return((R=R.layout)==null?void 0:R.visibility)!=="none"})),!1)}
vendor: 2,681 bytes, line 717
717,[])).forEach(function(m){m.layout=m.layout||{},m.layout.visibility="none"}),n._progressiveLoadingState.pendingVisibilityChange=function(){n._progressiveLoadingState.pendingVisibilityChange=null;var m=n.map.getStyle().style;u===m&&(h.forEach(function(_){_.layout.visibility="visible",a.setLayoutProperty(_.id,"visibility","visible")}),(m=n.map.copyrightDelegate)!=null)&&m.reloadAttribution()},n.map.events.addOnce("load",n._progressiveLoadingState.pendingVisibilityChange))},this._onStyleData=function(i){n.map.events.invoke("stylechanged",{style:i.name,map:n.map,type:"stylechanged"})},this._lookUp=function(i){var o,a,h=n.definitions(),l=h.errorIfRejected(),u=h.resultIfResolved();if(l||!u)return null;var h=u.configurations,p=void 0;try{for(var m=Tnt(h),_=m.next();!_.done;_=m.next()){var C=_.value;if(C.name===i.style)return C;C.name===u.defaultConfiguration&&(p=p||C)}}catch(T){o={error:T}}finally{try{_&&!_.done&&(a=m.return)&&a.call(m)}finally{if(o)throw o.error}}return p=p||h[0]},this._lookUpAsync=function(i){return Jj(n,void 0,void 0,function(){var o;return e3(this,function(a){switch(a.label){case 0:return[4,this.definitions()];case 1:return o=a.sent(),[2,o.configurations.find(function(l){return l.name===(i.style||o.defaultConfiguration)})||o.configurations.find(function(l){return l.name===o.defaultConfiguration})||o.configurations[0]]}})})},this.map=e,this.serviceOptions=t}return r.prototype.updateIndoorState=function(e,t){var n,i,o=this,a=this.map.styles.getMapConfiguration();a?(this.preservedPreindoorMapConfiguration=a,n=this.map.getStyle().style?"".concat(this.map.getStyle().style,"_indoor").concat(e==="dark"?"_dark":"","_tileset_").concat(t):void 0,this.map.styles.setMapConfiguration("defaultIndoor_".concat(t),a==="microsoft-maps:default"?n:void 0)):(i=((a=this.indoorState)==null?void 0:a.tilesetId)!==t,this.indoorState={tilesetId:t,theme:e},this.initStyleset(),this.definitions().then(function(l){var h=(o.map.getStyle().style||l.defaultConfiguration).replace("_indoor_dark","").replace("_indoor",""),u="".concat(h,"_indoor"),h=l.configurations.find(function(p){return p.name.startsWith(u)});h&&o.map.setStyle({style:h.name},!i)}))},r.prototype.unsetIndoorState=function(){var e=this,t=this.preservedPreindoorMapConfiguration;t?this.map.styles.setMapConfiguration(t):(this.indoorState=void 0,this.initStyleset(),this.definitions().then(function(n){var i=e.map.getStyle().style;i.includes("_indoor")&&i.split("_indoor")[0]?e.map.setStyle({style:i.split("_indoor")[0]}):e.map.setStyle({style:void 0})}))},r.prototype.initStyleset=function(){var e,t=this;return e=this.serviceOptions.mapConfiguration?typeof this.serviceOptions.mapConfiguration=="str
717ing"?(e=this.map.authentication?this.map.authentication.initialize():Promise.resolve(),new k6(e.then(function(){return t._request(t.serviceOptions.domain,"".concat(ai.styleResourcePath,"/mapconfigurations/metadata/").concat(t.serviceOptions.mapConfiguration),"StyleDefinitions").then(function(n){return qy(qy({},n),{defaultConfiguration:n.defaultConfiguration||n.defaultStyle,configurations:n.configurations||n.styles})})}))):k6.resolve(this.serviceOptions.mapConfiguration):(e=this.map.authentication?this.map.authentication.initialize():Promise.resolve(),new k6(e.then(function(){return t._request(t.serviceOptions.staticAssetsDomain,"".concat(ai.stylePath,"/").concat(ai.styleResourcePath),"StyleDefinitions",{version:t.serviceOptions.styleDefinitionsVersion,mcv:Kw.replace(/\./g,"")}).then(function(n){return{version:isNaN(n.version)?0:parseFloat(n.version),defaultConfiguration:n.defaultStyle,configurations:n.styles.filter(function(i){return t.indoorState?t.indoorState.theme==="auto"?i.name.endsWith(i.theme==="dark"?"_indoor_dark":"_indoor"):i.name.endsWith(t.indoorState.theme==="dark"?"_indoor_dark":"_indoor"):!i.name.includes("indoor")}).map(function(i){return{copyright:i.copyright.join(" "),name:i.name,displayName:(function(o){return o=t.indoorState&&o.includes("_indoor")?o.split("_indoor")[0]:o,o in pse?pse[o]:o})(i.name),theme:i.theme,thumbnail:new av({domain:t.serviceOptions.staticAssetsDomain,path:i.thumbnail,protocol:"https"}).toString(),url:new av({domain:t.serviceOptions.staticAssetsDomain,path:"".concat(ai.stylePath,"/").concat(ai.styleResourcePath,"/").concat(i.name),queryParams:{styleVersion:n.version!==void 0&&n.version!==null?n.version:t.serviceOptions.styleDefinitionsVersion,mcv:Kw.replace(/\./g,"")},protocol:"https"}).toString()}})}})}))),this.initPromise&&this.initPromise.switchWith(e),this.initPromise=e,this.initPromise.then(function(n){return t.map._invokeEvent("mapconfigurationchanged",n)}),this.initPromise},r.prototype.getStyle=function(e){if(e=this._lookUp(e),!e)throw Error("Style definition is not available.");if(e.url)return e.url;if(e.style)return e.style;throw Error("Style definition neither contains URL nor style object.")},r.prototype.deriveNewStyleAndLayerGroups=function(e,t){for(var n,i,o=this.map.getStyle(),a=this.map.getTraffic(),l={},u=0;u<t.layers.length;u++){var h=t.layers[u],p=xnt.getLayerGroup(h);p?(l[p]||(l[p]=[]),l[p].push(h),o.showBuildingModels||h.type!=="fill-extrusion"?h.type==="fill-extrusion"&&(h.layout=(n=h.layout)!=null?n:{},h.layout.visibility="visible"):(h.layout=(n=h.layout)!=null?n:{},h.layout.visibility="none"),a.flow!=="none"&&p&&p==="traffic_".concat(a.flow)&&h.type=="line"&&(h.layout=(i=h.layout)!=null?i:{},h.layout.visibility="visible"),p!=="labels"&&p!=="labels_places"&&p!=="labels_indoor"||h.type!=="symbol"||(o.showLabels&&((i=h.layout)==null?void 0:i.visibility)!=="none"?(h.layout=(p=h.layout)!=null?p:{},h.layout.visibility="visible"):(h.layout=(p=h.layout)!=null?p:{},h.layout.visibility="none"))):l[h.id]=[h]}return[t,l]},r.prototype.injectUserLayersIntoStyle=function(e,t,n){return e?this.map.layers._getUserLayers().reduce(function(i,o){var a,l,u,h;return o.layer instanceof b_e||(a=((l=(l=n==null?void 0:n[o.before])==null?void 0:l[0])==null?void 0:l.id)||o.before,l=e.layers.find(function(p){return p.id===o.layer.getId()}),-1<(u=t.layers.findIndex(function(p){return p.id===o.layer.getId()}))&&t.layers.splice(u,1),l&&(u=new Set(Array.from(o.layer._getSourceIds()).map(function(p){var m;return!i.sources[p]&&(m=e.sources[p])?{source:m,id:p}:void 0}).filter(function(p){return p!==void 0})),-1<(h=a?i.layers.findIndex(function(p){return p.id===a}):-1)?i.layers.splice(h,0,l):i.layers.push(l),u.forEach(function(_){var m=_.source,_=_.id;i.sources[_]=m}))),i},qy({},t)):t},r.prototype.setStyle=function(e,t){var n=this,i=(t===void 0&&(t=!0),this._lookUp(e));if(!i)throw Error("Style definition ".concat(e.style," is not available."));if(!i.url&&!i.style)throw Error("Style definition neither contains URL nor style object.");var o,a,l,u=function(){return n._onStyleData(i)},h=function(){n.map.events.remove("styledata",u),n.map.events.addOnce("styledata",u)},p=e&&e.customStyleTransform?function(_,C){return _=e.customStyleTransform(_,C),h(),_}:function(R,T){var O=qy(qy({}
717,T),{layers:t3([],Sw(T.layers),!1),sources:qy({},T.sources)}),S=e.progressiveLoading&&!n.map._isLoaded(),T=(S&&Array.isArray(T==null?void 0:T.layers)&&((O=qy({},T)).layers=O.layers.map(function(N){var H=qy({},N);return N.layout&&(H.layout=qy({},N.layout)),H})),Sw(n.deriveNewStyleAndLayerGroups(R,O),2)),O=T[0],T=T[1],S=(S&&(S=e.progressiveLoadingInitialLayerGroups,Array.isArray(S))&&0<S.length&&n._deferLayerGroupVisibilities(T,S),n.injectUserLayersIntoStyle(R,O,T)),R=Object.entries(T).map(function(F){var F=Sw(F,2),H=F[0],F=F[1];return n._buildFundamentalLayerFrom(F,H)}),O=n.map.layers._getUserLayers().reduce(function(N,H){var F=H.before?N.findIndex(function(j){return j.getId()===H.before}):-1;return-1<F?N.splice(F,0,H.layer):N.push(H.layer),N},R);return n.map.layers.layerIndex=O,n.map.sources._syncSources(S.sources),h(),S},m=i.url;m&&e!=null&&e.styleOverrides&&(o=new URL(m),a=new URLSearchParams(o.search),0<(l=Object.entries(e==null?void 0:e.styleOverrides).filter(function(T){var T=Sw(T,2),C=T[0],T=T[1];return C in O6&&(O6[C].includes("bv")&&(T==null?void 0:T.borderVisible)===!1||!O6[C].includes("bv")&&(T==null?void 0:T.visible)===!1)}).map(function(C){var C=Sw(C,2),T=C[0];return C[1],O6[T]})).length)&&(a.set("st",l.join("_")),o.search=a.toString(),m=o.toString()),this.map._getMap().setStyle(m||i.style,{diff:t,validate:this.serviceOptions.validateStyle,transformStyle:p})},r.prototype.getTheme=function(e){if(e=this._lookUp(e),e)return e.theme.toLowerCase()},r.prototype.getThemeAsync=function(e){return Jj(this,void 0,void 0,function(){return e3(this,function(t){switch(t.label){case 0:return[4,this._lookUpAsync(e)];case 1:return[2,t.sent().theme]}})})},r.prototype.setMapConfiguration=function(e,t){var n=this;typeof(this.serviceOptions.mapConfiguration=e)=="string"?this.initStyleset():this.initPromise?this.initPromise.hijackAndResolve(e):this.initPromise=k6.resolve(e),this.definitions().then(function(i){var o=i.defaultConfiguration;i.configurations.find(function(a){return a.name===t})&&(o=t),n.map.setStyle({style:o})})},r.prototype.getMapConfiguration=function(){return this.serviceOptions.mapConfiguration},r.prototype.setStyleSet=function(e){this.updateIndoorState(e==="indoor_dark"?"dark":"light",null)},r.prototype.getStyleSet=function(){return this.indoorState!==void 0?this.indoorState.theme==="dark"?"indoor_dark":"indoor":"base"}
717,r.prototype.clearStyleSet=function(){this.unsetIndoorState()},r.prototype._buildFundamentalLayerFrom=function(e,t){if(e&&0<e.length)return(e=new Fw(e,t)).onAdd(this.map),e;throw new Error("Unable to construct fundamental map layer for ID: ".concat(t,"."))},r.prototype._transformStyleRequest=function(e,t){var n=(av.protoRegEx.test(this.serviceOptions.domain)?this.serviceOptions.domain.slice(this.serviceOptions.domain.indexOf("//")+2):this.serviceOptions.domain).replace(/\/+$/,"");e.includes(ai.domainPlaceHolder)&&(t.url=t.url.replace(ai.domainPlaceHolder,n)),e.includes(ai.stylePathHolder)&&(t.url=t.url.replace(ai.stylePathHolder,ai.stylePath)),e.includes(ai.styleResourcePlaceholder)&&(t.url=t.url.replace(ai.styleResourcePlaceholder,ai.styleResourcePath)),(t.url.toLocaleLowerCase().includes(n.toLocaleLowerCase())||t.url.toLocaleLowerCase().includes(this.serviceOptions.staticAssetsDomain.toLocaleLowerCase()))&&((e=new URL(t.url)).searchParams.get(ai.apiVersionQueryParameter)||(e.searchParams.set(ai.apiVersionQueryParameter,this.serviceOptions.styleAPIVersion),t.url=e.href),(n=this.map.authentication)!=null&&n.signRequest(t),this._deleteAuthTokenForStaticAssets(t))},r.prototype._request=function(e,t,n,i){var o;return i===void 0&&(i={}),Jj(this,void 0,void 0,function(){var a,l;return e3(this,function(u){switch(u.label){case 0:return l={url:new av({protocol:"https",domain:e,path:t,queryParams:qy(((l={})[ai.apiVersionQueryParameter]=this.serviceOptions.styleAPIVersion,l),i)}).toString()},typeof this.serviceOptions.transformRequest=="function"&&n&&(l=this.serviceOptions.transformRequest(l.url,n)),(o=this.map.authentication)!=null&&o.signRequest(l),this._deleteAuthTokenForStaticAssets(l),a={method:"GET",mode:"cors"},l.credentials&&(a.credentials=l.credentials),l.headers&&(a.headers=l.headers),[4,fetch(l.url,a).then(function(h){if(h.ok)return h.json();throw new Error("HTTP ".concat(h.status,": ").concat(h.statusText," "))})];case 1:return[2,u.sent()]}})})}
717,r.prototype._deleteAuthTokenForStaticAssets=function(e){e.url.startsWith("https://".concat(this.serviceOptions.staticAssetsDomain,"/").concat(ai.stylePath))&&(delete e.headers[ai.msClientIdHeaderName],delete e.headers[ai.authorizationHeaderName])},r})(),Int=function(){return"ENVIRONMENT"in window&&!!window.ENVIRONMENT.hmr},gse=window&&window.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return{value:(r=r&&n>=r.length?void 0:r)&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ant=(function(){function r(e){this.map=e,this.indicators=new Set}return r.prototype.add=function(e){var t,n;e=Array.isArray(e)?e:[e];try{for(var i=gse(e),o=i.next();!o.done;o=i.next()){var a=o.value;this.indicators.has(a)||(this.indicators.add(a),a.attach(this.map))}}catch(l){t={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},r.prototype.clear=function(){var e=this;this.indicators.forEach(function(t){e.indicators.delete(t),t.remove()})},r.prototype.remove=function(e){var t,n;e=Array.isArray(e)?e:[e];try{for(var i=gse(e),o=i.next();!o.done;o=i.next()){var a=o.value;this.indicators.has(a)&&(this.indicators.delete(a),a.remove())}}
717catch(l){t={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},r.prototype.getIndicators=function(){return Array.from(this.indicators)},r.prototype._getCollectionDiv=function(){var e=this.map.getMapContainer().querySelector(".".concat(r.Css.collection));return e||((e=document.createElement("div")).setAttribute("aria-label","map data"),e.setAttribute("role","listbox"),e.classList.add(r.Css.collection),this.map.getMapContainer().appendChild(e)),e},r.Css={collection:"accessible-indicator-collection-container"},r})(),Rnt=window&&window.__extends||(function(){var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,i){n.__proto__=i}:function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),E1=window&&window.__assign||function(){return(E1=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}).apply(this,arguments)},Pnt=window&&window.__awaiter||function(r,e,t,n){return new(t=t||Promise)(function(i,o){function a(h){try{u(n.next(h))}catch(p){o(p)}}function l(h){try{u(n.throw(h))}catch(p){o(p)}}function u(h){var p;h.done?i(h.value):((p=h.value)instanceof t?p:new t(function(m){m(p)})).then(a,l)}u((n=n.apply(r,e||[])).next())})},knt=window&&window.__generator||function(r,e){var t,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:l(0),throw:l(1),return:l(2)};return typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(u){return function(h){var p=[u,h];if(t)throw new TypeError("Generator is already executing.");for(;o=a&&p[a=0]?0:o;)try{if(t=1,n&&(i=2&p[0]?n.return:p[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,p[1])).done)return i;switch(n=0,(p=i?[2&p[0],i.value]:p)[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,n=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3]))o.label=p[1];else if(p[0]===6&&o.label<i[1])o.label=i[1],i=p;else{if(!(i&&o.label<i[2])){i[2]&&o.ops.pop(),o.trys.pop();continue}o.label=i[2],o.ops.push(p)}}p=e.call(r,o)}catch(m){p=[6,m],n=0}finally{t=i=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}},Ont=window&&window.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n,i,o=t.call(r),a=[];try{for(;(e===void 0||0<e--)&&!(n=o.next()).done;)a.push(n.value)}catch(l){i={error:l}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},Mnt=window&&window.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||((n=n||Array.prototype.slice.call(e,0,i))[i]=e[i]);return r.concat(n||Array.prototype.slice.call(e))},M6=window&&window.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return{value:(r=r&&n>=r.length?void 0:r)&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},xQ=(function(r){function e(t,n){var i,o,a=r.call(this)||this,l=(a.removed=!1,a.loaded=!1,a.ready=!1,a._resizeCallback=function(){return a.resize()},!0);a._updateGlobalDefaults(n),a.serviceOptions=new Qj().merge(n),a.styleOptions=new fse().merge(n),a.trafficOptions=new Y8,a.styles=new Snt(a,a.serviceOptions),a.insights=new Ket(a.serviceOptions),a.serviceOptions.authOptions.subscriptionKey&&(a.serviceOptions.authOptions.subscriptionKey=encodeURIComponent(a.serviceOptions.authOptions.subscriptionKey)),i=a.serviceOptions.authOptions.clientId||(a.serviceOptions.authOptions.subscriptionKey?a.serviceOptions.authOptions.subscriptionKey.replace(/.(?=.{3,}$)/g,"*"):"invalid-setting"),a.insights&&a.insights.setAuthenticatedUserContext(a.serviceOptions.sessionId,i),arguments[2]&&Int()?(o=arguments[2],a.ready=!0,a.loaded=!0):(i={antialias:a.styleOptions.antialias,attributionControl:!1,container:t,fadeDuration:a.serviceOptions.fadeDuration,localIdeographFontFamily:a.serviceOptions.localIdeographFontFamily,preserveDrawingBuffer:a.styleOptions.preserveDrawingBuffer,refreshExpiredTiles:a.serviceOptions.refreshExpiredTiles,renderWorldCopies:a.styleOptions.renderWorldCopies,trackResize:!1,transformRequest:function(m,_){var C={url:m};return _==="Tile"||_==="Source"?(m.includes(ai.legacyDomainPlaceHolder)&&a.insights&&a.insights.trackEvent({name:"TileLoad"}),a._substituteDomainLanguageViewAndSignInRequest(m,C)):_!=="Style"&&_!=="SpriteJSON"&&_!=="SpriteImage"&&_!=="Glyphs"||a.styles._transformStyleRequest(m,C),a.serviceOptions.transformRequest&&q0e(C,a.serviceOptions.transformRequest(C.url,_)),C}},o=new Wh.Map(i));try{a.map=o,a.authentication=new Drt(a),a.controls=new Lrt(a),a.events=new Frt(a),a.imageSprite=new Brt(a),a.layers=new qrt(a),a.markers=new Urt(a),a.sources=new Yrt(a),a.popups=new Grt(a),a.indicators=new Ant(a),a.map.getContainer().classList.add(e.Css.container),a.map.getCanvasContainer().classList.add(e.Css.canvasContainer),a.map.getCanvas().classList.add(e.Css.canvas),a._detectHighContrast(),a.copyrightControl=new Qet({showFeedbackLink:a.styleOptions.showFeedbackLink,showLogo:a.styleOptions.showLogo,customAttribution:a.styleOptions.customAttribution}),a.controls.add(a.copyrightControl,{position:xu.NonFixed}
vendor: 4,112 bytes, line 717
717),a.logoControl=new ttt({showLogo:a.styleOptions.showLogo}),a.controls.add(a.logoControl,{position:xu.BottomLeft});var u=a.authentication?a.authentication.initialize():Promise.resolve();if(a.removed)return a;var h=function(){a.loaded=!0,a.map.off("load",h)},p=(a.map.on("load",h),function(){a.ready=!0,a.map.off("styledata",p),a.events.invoke("ready",{map:a,type:"ready"})});a.map.on("styledata",p),a._setAutoResize(a.styleOptions.autoResize),a.map.showTileBoundaries=a.styleOptions.showTileBoundaries,a.localizedStringsPromise=q8.getStrings(a.styleOptions.language),u.then(function(){return a.styles.definitions()}).then(function(m){if(!a.removed){if(a.authentication&&!a.authentication.getToken())throw new Error("AuthenticationManager finished initializing, but no token is available");a.serviceOptions["enable-accessibility"]&&a.accessibleMapDelegate.addToMap(),a._setStyleComponents(a.styleOptions),a.copyrightDelegate&&a.copyrightDelegate.addToMap()}}).catch(function(m){m=m instanceof Error?m:new Error(m),a.insights.trackException({error:m}),m={map:a,type:"error",error:m},a.events.invoke("error",m)}),a.setCamera(E1(E1({},n),{type:"jump",duration:0})),a.incidentDelegate=new htt(a),a.flowDelegate=new ltt(a),a.accessibleMapDelegate=new stt(a),a.userInteractionDelegate=new mtt(a,n),a.userInteractionDelegate.addToMap(),a.copyrightDelegate=new Itt(a,a.copyrightControl,a.styleOptions)}catch(m){throw l=!1,a.insights.trackException({error:m instanceof Error?m:new Error(m)}),m}finally{a.insights.trackEvent({name:"MapLoad"},{success:l,supported:rG(),supportedWithPerformance:rG({failIfMajorPerformanceCaveat:!0})}),a.insights.flush()}return a}return Rnt(e,r),Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this.removed},enumerable:!1,configurable:!0}),e.prototype.getCanvas=function(){return this.map.getCanvas()},e.prototype.getCanvasContainer=function(){return this.map.getCanvasContainer()},e.prototype.getMapContainer=function(){return this.map.getContainer()},e.prototype.getServiceOptions=function(){return $o(this.serviceOptions,Qj._cloneCustomizer)},e.prototype.setServiceOptions=function(t){this.serviceOptions=new Qj().merge(this.serviceOptions,t),this.serviceOptions["enable-accessibility"]?this.accessibleMapDelegate.addToMap():this.accessibleMapDelegate.removeFromMap(),t=this.styles.serviceOptions.mapConfiguration!==this.serviceOptions.mapConfiguration||this.styles.serviceOptions.staticAssetsDomain!==this.serviceOptions.staticAssetsDomain||this.styles.serviceOptions.styleDefinitionsVersion!==this.serviceOptions.styleDefinitionsVersion||this.styles.serviceOptions.domain!==this.serviceOptions.domain||this.styles.serviceOptions.styleAPIVersion!==this.serviceOptions.styleAPIVersion,this.styles.serviceOptions=this.serviceOptions,t&&(this.styles.initPromise=null,this.setStyle({}))},e.prototype.addRequestTransformer=function(t){this.serviceOptions.addTransformer(t)},e.prototype.removeRequestTransformer=function(t){this.serviceOptions.removeTransformer(t)},e.prototype.setCamera=function(t,n){if(n===void 0&&(n=!1),"padding"in t||"offset"in t||"bounds"in t){var i,l=new rnt().merge({maxZoom:this.getCamera().maxZoom},t),o=this._generateSafeBounds(l.bounds),u={padding:l.padding,offset:l.offset,maxZoom:l.maxZoom};if(!(i=this.map.cameraForBounds(o,u)))throw a={message:"The map cannot be fit to the current canvas with the given CameraBoundsOptions.",containerWidth:(a=(a=this.map)==null?void 0:a.getContainer())==null?void 0:a.clientWidth,containerHeight:a==null?void 0:a.clientHeight,safeBounds:o,cameraForBoundsOptions:u},new Error(JSON.stringify(a));"pitch"in t&&(i.pitch=t.pitch),"bearing"in t&&(i.bearing=t.bearing),"minPitch"in t&&this.map.setMinPitch(t.minPitch),"maxPitch"in t&&this.map.setMaxPitch(t.maxPitch),"minZoom"in t&&this.map.setMinZoom(t.minZoom),o=this._generateSafeBounds(l.maxBounds)}else u=new int().merge(this.getCamera(),t),u.centerOffset&&2<=u.centerOffset.length&&(a=u.centerOffset,(l=_L([u.center],u.zoom))[0][0]+=a[0],l[0][1]+=a[1],u.center=EX(l,u.zoom)[0]),i={center:u.center,zoom:u.zoom,bearing:u.bearing,pitch:u.pitch,around:void 0}
vendor: 6,833 bytes, line 717
717,this.map.setMinZoom(u.minZoom),this.map.setMaxZoom(u.maxZoom),u.minPitch&&this.map.setMinPitch(u.minPitch),u.maxPitch&&this.map.setMaxPitch(u.maxPitch),this._invokeEvent("minzoomchanged",this.map.getMinZoom()),this._invokeEvent("maxzoomchanged",this.map.getMaxZoom()),o=this._generateSafeBounds(u.maxBounds);o?this.map.setMaxBounds(o):this.map.setMaxBounds(null);var a=new Krt().merge(t),l={duration:a.duration,easing:function(h){return h},offset:[0,0],animate:!0},u={fromControl:n};a.type==="jump"?this.map.jumpTo(i,u):a.type==="ease"?this.map.easeTo(E1(E1({},i),l),u):a.type==="fly"&&this.map.flyTo(E1(E1({},i),l),u)},e.prototype.setCameraBounds=function(t){this.setCamera(t)},e.prototype.getCamera=function(){var t=this.map.getBounds().getSouthWest().toArray(),n=this.map.getBounds().getNorthEast().toArray();return{zoom:this.map.getZoom(),center:this.map.getCenter().toArray(),bearing:this.map.getBearing(),pitch:this.map.getPitch(),bounds:new qi(t,n),minZoom:this.map.getMinZoom(),maxZoom:this.map.getMaxZoom(),maxBounds:(t=this.map.getMaxBounds())==null?void 0:t.toArray().flat()}},e.prototype.setStyle=function(t,n){n===void 0&&(n=!0),delete t.preserveDrawingBuffer,t=new fse().merge(this.styleOptions,t),t.autoResize!==this.styleOptions.autoResize&&this._setAutoResize(t.autoResize),t.language!==this.styleOptions.language&&(this.localizedStringsPromise=q8.getStrings(t.language)),t.renderWorldCopies!==this.styleOptions.renderWorldCopies&&this.map.setRenderWorldCopies(t.renderWorldCopies),t.showFeedbackLink!==this.styleOptions.showFeedbackLink&&this.copyrightControl.setOptions({showFeedbackLink:t.showFeedbackLink}),t.customAttribution!==this.styleOptions.customAttribution&&this.copyrightControl.setOptions({customAttribution:t.customAttribution}),t.showLogo!==this.styleOptions.showLogo&&(this.copyrightControl.setOptions({showLogo:t.showLogo}),this.logoControl.setOptions({showLogo:t.showLogo})),t.showTileBoundaries!==this.styleOptions.showTileBoundaries&&(this.map.showTileBoundaries=t.showTileBoundaries),t.showBuildingModels&&console.warn("showBuildingModels is deprecated."),n=n&&this.styleOptions.language===t.language&&this.styleOptions.view===t.view,this.styleOptions=t,this._setStyleComponents(t,n)},e.prototype.getStyle=function(){return ql(this.styleOptions)},e.prototype.addIcon=function(t,n){this.imageSprite.add(t,n)},e.prototype.addPins=function(t,i){var i=new dnt().merge(i),o=this.layers.getLayerById(i.name),a=!1;if(o||(a=!0,o=new Z8("".concat(i.name,"-source"),i.name,{source:"".concat(i.name,"-source"),minZoom:i.minZoom,maxZoom:i.maxZoom,iconOptions:{anchor:"center",size:i.iconSize,image:["case",["has","icon"],["get","icon"],i.icon],ignorePlacement:!i.cluster,opacity:i.opacity},textOptions:{anchor:"center",textField:["case",["has","point_count"],["to-string",["get","point_count"]],["has","title"],["to-string",["get","title"]],i.title],font:["case",["has","point_count"],["literal",["StandardFontCondensed-Bold"]],["literal",[i.textFont]]],size:["case",["has","point_count"],20,i.fontSize],ignorePlacement:!i.cluster,opacity:i.opacity,offset:["case",["has","point_count"],["literal",[.5,-.45]],["literal",[i.textOffset[0]/16,i.textOffset[1]/16]]],color:i.fontColor}})),!(o instanceof Z8))throw new Error("A layer with name '".concat(i.name,"' already exists but it is not a SymbolLayer.")+"A SymbolLayer should be used for rendering pins.");var l=o.getSource(),u=(typeof l=="string"?(h=l,l=this.sources.getById(h)):h=l.getId(),!1);if(l||(u=!0,l=new Gp(h,{cluster:i.cluster})),!(l instanceof Gp))throw new Error("The source with name '".concat(h,"' already exists but it is not a DataSource.")+"New data can only be added to a DataSource.");u&&this.sources.add(l),a&&this.layers.add(o,i.before);var h=new rT(t);i.overwrite?l.setShapes(h):l.add(h)},e.prototype.addCircles=function(t,i){var i=new snt().merge(i),o=this.layers.getLayerById(i.name),a=!1;if(o||(a=!0,o=new pG("".concat(i.name,"-source"),i.name,{source:"".concat(i.name,"-source"),minZoom:i.minZoom,maxZoom:i.maxZoom,opacity:i.opacity,radius:["case",["has","radius"],["get","radius"],i.radius],color:["case",["has","color"],["get","color"],i.color],strokeColor:["case",["has","outlineColor"],["get","outlineColor"],i.outlineColor],strokeWidth:["case",["has","outlineWidth"],["get","outlineWidth"],i.outlineWidth]})),!(o instanceof pG))throw new Error("A layer with name '".concat(i.name,"' already exists but it is not a BubbleLayer.")+"A BubbleLayer should be used for rendering circles.");var l=o.getSource(),u=(typeof l=="string"?(h=l,l=this.sources.getById(h)):h=l.getId(),!1);if(l||(u=!0,l=new Gp(h)),!(l instanceof Gp))throw new Error("The source with name '".concat(h,"' already exists but it is not a DataSource.")+"New data can only be added to a DataSource.");u&&this.sources.add(l),a&&this.layers.add(o,i.before);var h=new rT(t);i.overwrite?l.setShapes(h):l.add(h)},e.prototype.addLinestrings=function(t,i){var i=new cnt().merge(i),o=this.layers.getLayerById(i.name),a=!1;if(o||(a=!0,o=new gG("".concat(i.name,"-source"),i.name,{source:"".concat(i.name,"-source"),minZoom:i.minZoom,maxZoom:i.maxZoom,lineCap:i.cap,lineJoin:i.join,strokeOpacity:i.opacity,strokeColor:["case",["has","color"],["get","color"],i.color],strokeWidth:["case",["has","width"],["get","width"],i.width]})),!(o instanceof gG))throw new Error("A layer with name '".concat(i.name,"' already exists but it is not a LineLayer.")+"A LineLayer should be used for rendering linestrings.");var l=o.getSource(),u=(typeof l=="string"?(h=l,l=this.sources.getById(h)):h=l.getId(),!1);if(l||(u=!0,l=new Gp(h)),!(l instanceof Gp))throw new Error("The source with name '".concat(h,"' already exists but it is not a DataSource.")+"New data can only be added to a DataSource.");u&&this.sources.add(l),a&&this.layers.add(o,i.before);var h=new rT(t);i.overwrite?l.setShapes(h):l.add(h)},e.prototype.addPolygons=function(t,i){var i=new fnt().merge(i),o=this.layers.getLayerById(i.name),a=!1;if(o||(a=!0,o=new mG("".concat(i.name,"-source"),i.name,{source:"".concat(i.name,"-source"),minZoom:i.minZoom,maxZoom:i.maxZoom,fillOpacity:i.opacity,fillColor:["case",["has","color"],["get","color"],i.color]})),!(o instanceof mG))throw new Error("A layer with name '".concat(i.name,"' already exists but it is not a PolygonLayer.")+"A PolygonLayer should be used for rendering linestrings.");var l=o.getSource(),u=(typeof l=="string"?(h=l,l=this.sources.getById(h)):h=l.getId(),!1);if(l||(u=!0,l=new Gp(h)),!(l instanceof Gp))throw new Error("The source with name '".concat(h,"' already exists but it is not a DataSource.")+"New data can only be added to a DataSource.");u&&this.sources.add(l),a&&this.layers.add(o,i.before);var h=new rT(t);i.overwrite?l.setShapes(h):l.add(h)},e.prototype.addRaster=function(t,o){var i,o=new gnt().merge(o),a=this.layers.getLayerById(o.name);
717if(!((a=a||new X8({maxZoom:o.maxZoom,minZoom:o.minZoom,opacity:o.opacity,tileSize:256,tileUrl:"{subdomain}"},o.name))instanceof X8))throw new Error("A layer with name '".concat(o.name,"' already exists but it is not a TileLayer.")+"A TileLayer should be used for rendering raster images.");if(a.getOptions().tileUrl!=="{subdomain}")throw new Error("A TileLayer with name '".concat(o.name,"' already exists but was configured ")+"for a single tile url [default for new TileLayer(...)].");(i=!o.overwrite&&a.getOptions().subdomains||[]).push.apply(i,Mnt([],Ont(t),!1)),a._setOptionsNoUpdate({subdomains:i}),this.layers.add(a,o.before)},e.prototype.getLayers=function(){return this.layers.getLayers().map(function(t){return t.getId()})},e.prototype.removeLayers=function(t){var n,i;try{for(var o=M6(t),a=o.next();!a.done;a=o.next()){var l,u=a.value;this.layers.getLayerById(u)&&(this.layers.remove(u),l="".concat(u,"-source"),this.sources.getById(l))&&this.sources.remove(l)}}catch(h){n={error:h}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},e.prototype.addHtml=function(t,n){t.id||(t.id="marker_".concat(cS()));var i=new z7({htmlContent:t});return this.markers.add(i,n),t.id},e.prototype.removeHtml=function(t){this.markers.remove(t)},e.prototype.addEventListener=function(t,n,i){this.events._addLegacy(t,n,i)},e.prototype.removeEventListener=function(t,n,i){this.events._removeLegacy(t,n,i)},e.prototype.setUserInteraction=function(t){this.userInteractionDelegate.setOptions(t)},e.prototype.getUserInteraction=function(){return this.userInteractionDelegate.getOptions()},e.prototype.addControl=function(t,n){this.controls.add(t,n)},e.prototype.removeControl=function(t){this.controls.remove(t)},e.prototype.setTraffic=function(t){var n=this.trafficOptions.incidents,i=this.trafficOptions.flow;if(this.trafficOptions=new Y8().merge(this.trafficOptions,t),this.controls.getControls().filter(function(o){return o instanceof G0e}).forEach(function(o){return o.updateButtonState()}),this.incidentDelegate&&(this.trafficOptions.incidents?n||this.incidentDelegate.addToMap():this.incidentDelegate.removeFromMap()),this.trafficOptions.flow&&this.trafficOptions.flow!=="none"){["absolute","relative-delay"].includes(this.trafficOptions.flow)&&console.warn("The 'absolute' and 'relative-delay' flow options are deprecated. Please use 'relative' instead.");try{this.trafficOptions.flow!==i&&this.flowDelegate.addToMap()}catch(o){throw this.trafficOptions.flow=i,o}}else this.flowDelegate.removeFromMap()},e.prototype.getTraffic=function(){return ql(this.trafficOptions)},e.prototype.remove=function(){this.dispose()},e.prototype.clear=function(){this.popups.clear(),this.layers.clear(),this.sources.clear(),this.markers.clear(),this.indicators.clear()},e.prototype.dispose=function(){var t;for(this.clear(),this.map.remove(),(t=this.authentication)!=null&&t.dispose(),this.removed=!0,(t=this.resizeObserver)!=null&&t.disconnect(),this.resizeObserver=null;this.getMapContainer().firstChild;){var n=this.getMapContainer().firstChild;this.getMapContainer().removeChild(n)}},e.prototype.resize=function(t,n,i){typeof t!="number"&&typeof t!="string"||typeof n!="number"&&typeof n!="string"?i=t:(t=t,this.getMapContainer().style.height=typeof t=="number"?"".concat(t,"px"):t,this.getMapContainer().style.width=typeof n=="number"?"".concat(n,"px"):n),t=this.getMapContainer().style.overflow,this.getMapContainer().style.overflow="hidden",this.map.resize(i),this.getMapContainer().style.overflow=t},e.prototype.pixelsToPositions=function(t){var n,i,o=[];try{for(var a=M6(t),l=a.next();!l.done;l=a.next()){var u=l.value,h=this.map.unproject(u);o.push(new od(h.lng,h.lat))}}catch(p){n={error:p}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o},e.prototype.positionsToPixels=function(t){var n,i,o=[];try{for(var a=M6(t),l=a.next();!l.done;l=a.next()){var u=l.value,h=this.map.project(u);o.push(new Su(h.x,h.y))}}catch(p){n={error:p}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o},e.prototype.areTilesLoaded=function(){return this.map.areTilesLoaded()},e.prototype.stop=function(){this.map.stop()},e.prototype.triggerRepaint=function(){this.map.triggerRepaint()},e.prototype.enableElevation=function(t,n){this.map.setTerrain(typeof t=="string"?{source:t,exaggeration:n}:{source:t.getId(),exaggeration:n})},e.prototype.disableElevation=function(){this.map.setTerrain(null)},e.prototype._getMap=function(){return this.map},e.prototype._rebuildStyle=function(t){return t===void 0&&(t=!0),Pnt(this,void 0,void 0,function(){var n=this;return knt(this,function(i){return this.styles.setStyle(this.styleOptions,t),this.events.addOnce("stylechanged",function(){return n.imageSprite._restoreImages()}),[2]})})},e.prototype._isLoaded=function(){return this.loaded},e.prototype._isReady=function(){return this.ready},e.prototype._getLocalizedStrings=function(){return this.localizedStringsPromise},e.prototype._sendRequest=function(t,n,i){var o;return(o=typeof this.serviceOptions.transformRequest=="function"?this.serviceOptions.transformRequest(t,n):o)?fetch(o.url||t,{credentials:o.credentials,headers:E1(E1({},i),o.headers),method:"GET",mode:"cors"}):fetch(t,{headers:i,method:"GET",mode:"cors"})},e.prototype._substituteDomainLanguageViewAndSignInRequest=function(t,n){var i;(t.includes(ai.legacyDomainPlaceHolder)||t.includes(ai.domainPlaceHolder))&&(i=new RegExp("[^{]".concat(ai.legacyDomainPlaceHolder,"[^}]")),t.match(i)&&(n.url=n.url.replace(ai.legacyDomainPlaceHolder,ai.domainPlaceHolder)),av.protoRegEx.test(this.serviceOptions.domain)?(i=n.url.indexOf(ai.domainPlaceHolder),n.url=this.serviceOptions.domain+n.url.substring(i+ai.domainPlaceHolder.length)):n.url=n.url.replace(ai.domainPlaceHolder,this.serviceOptions.domain)),(n.url.toLocaleLowerCase().includes(this.serviceOptions.domain.toLocaleLowerCase())||n.url.toLocaleLowerCase().includes(this.serviceOptions.staticAssetsDomain.toLocaleLowerCase()))&&
717(i=this.authentication)!=null&&i.signRequest(n),t.includes(ai.languagePlaceHolder)&&(n.url=n.url.replace(ai.languagePlaceHolder,this.styleOptions.language)),t.includes(ai.viewPlaceHolder)&&(n.url=this.styleOptions.view?n.url.replace(ai.viewPlaceHolder,this.styleOptions.view):n.url.replace(ai.viewPlaceHolder,"").replace("&".concat(ai.viewParameter,"="),""))},e.prototype._setAutoResize=function(t){t?(this.resizeObserver||(this.resizeObserver=new ResizeObserver(this._resizeCallback)),this.resizeObserver.observe(this.map.getContainer())):this.resizeObserver&&this.resizeObserver.unobserve(this.map.getContainer())},e.prototype._setStyleComponents=function(t,n){var i=this;n===void 0&&(n=!0),this.removed||this.styles.definitions().then(function(o){var a,l,u=!0;if(i.styleOptions.style)try{for(var h=M6(o.configurations),p=h.next();!p.done;p=h.next()){var m=p.value;if(i.styleOptions.style===m.name){u=!1;break}}}catch(_){a={error:_}}finally{try{p&&!p.done&&(l=h.return)&&l.call(h)}finally{if(a)throw a.error}}u&&(i.styleOptions.style=o.defaultConfiguration),i.styleOptions=t,i._rebuildStyle(n)})},e.prototype._updateGlobalDefaults=function(t){t&&(t.authOptions&&!G8()&&VZ(t.authOptions),t.domain&&!eX()&&qZ(t.domain),t.styleDefinitionsPath&&!tX()&&GZ(t.styleDefinitionsPath),t.workerCount&&!rX()&&YZ(t.workerCount),t.maxParallelImageRequests&&!nX()&&WZ(t.maxParallelImageRequests),!t.subscriptionKey&&!t["subscription-key"]||G8()||XZ(t.subscriptionKey||t["subscription-key"]),!t.sessionId&&!t["session-id"]||oX()||ZZ(t.sessionId||t["session-id"]),t.language&&!iX()&&KZ(t.language),!t.userRegion&&!t.view||aX()||QZ(t.userRegion||t.view))},e.prototype._generateSafeBounds=function(t){if(t){var n=qi.getSouth(t),i=qi.getWest(t),o=qi.getNorth(t),a=qi.getEast(t);if(!(isFinite(n)&&isFinite(i)&&isFinite(o)&&isFinite(a)))throw new Error("The bounds specified are invalid: [".concat(t,"]"));for(;a<i;)a+=360;return new qi([i,n,a,o])}return t},e.prototype._detectHighContrast=function(){var t,n;switch(hKe.getHighContrastMode()){case"invert":case"light":t=e.Css.hcLight,n="high_contrast_light";break;case"dark":t=e.Css.hcDark,n="high_contrast_dark"}t&&this.map.getContainer().classList.add(t),n&&this.styleOptions.style==="road"&&(this.styleOptions.style=n)},e.Css={canvasContainer:"atlas-map-canvas-container",canvas:"atlas-map-canvas",container:"atlas-map",hcDark:"high-contrast-dark",hcLight:"high-contrast-light"},e})(Ob),Nnt=window&&window.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n,i,o=t.call(r),a=[];try{for(;(e===void 0||0<e--)&&!(n=o.next()).done;)a.push(n.value)}catch(l){i={error:l}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},Dnt=window&&window.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||((n=n||Array.prototype.slice.call(e,0,i))[i]=e[i]);return r.concat(n||Array.prototype.slice.call(e))},Twe=(function(){function r(){this.detectHyperlinks=!0,this.parsePropertyPaths=!0}return r.applyTemplate=function(e,t){var n,i,o,a=this,l=document.createElement("div");return l.classList.add(r.Css.template),e&&(typeof(t=t||{}).singleDescription!="boolean"&&(t.singleDescription=!0),t.sandboxContent=typeof t.sandboxContent!="boolean"||t.sandboxContent,t.title&&typeof t.content=="string"&&(t.content.includes("{title}")||t.content.includes("{name}"))||(e.title?t.title="{title}":e.name&&(t.title="{name}")),typeof t.detectHyperlinks!="boolean"&&(t.detectHyperlinks=!0),typeof t.parsePropertyPaths!="boolean"&&(t.parsePropertyPaths=!0),t.textColor&&(l.style.color=t.textColor),t.fillColor&&(l.style.backgroundColor=t.fillColor),t.title&&((o=this._applyStringTemplate(e,t.title,t)).innerText=o.textContent||o.innerText||"",this._appendChild(l,o,r.Css.title)),(n=document.createElement("div")).classList.add(r.Css.content),Array.isArray(t.content)?0<t.content.length&&t.content[0].propertyPath?this._appendChild(n,this._generateContent(e,t.content,t),r.Css.item):t.content.forEach(function(u){a._appendChild(n,a._generateContent(e,u,t),r.Css.item)}):(i=0,o=void(e.description&&Object.keys(e).forEach(function(u){a._ignoreProperty(u,e[u])||i++})),i===1||t.singleDescription&&e.description||i===2&&e.Snippet?(o=document.createElement("div")).innerHTML=e.description:o=this._generateContent(e,t.content,t),this._appendChild(n,o,r.Css.item)),n.innerHTML!=="")&&(t.sandboxContent?l.appendChild(r._createSandboxedIframe(n,t)):l.appendChild(n)),l},r._createSandboxedIframe=function(i,t){var n=document.createElement("iframe"),i=(n.sandbox.add("allow-popups"),i.innerHTML),o=!1,m=100,a=550,l=10,p=(document.body.scrollWidth<=340&&(a=300,m=50),i.split(/<(tr|div|br|li|h[0-9]|p>
vendor: 6,783 bytes, line 717
717)/)),h=Math.max.apply(Math,Dnt([],Nnt(p.map(function(_){return _.replace(/<[a-zA-Z0-9\s=\/]+>/g,"").length})),!1))-1,u=Math.ceil(3.5*h),h=(u<a&&(a=u,m=h),i.includes("<img")||i.includes("<video")?(o=!0,n.width="550px"):(u=-1<i.indexOf(r.Css.table)?25:20,l+=Math.max(.5*p.length*u,Math.ceil(i.replace(/<[a-zA-Z0-9\s=\/]+>/g,"").length/m)*u)),n.width=a+"px",n.height=o||280<l?"280px":l+"px",t.textColor?"color:".concat(t.textColor,";"):""),p=t.fillColor?"background-color:".concat(t.fillColor,";"):"",m='<html><head><title></title><meta charset="utf-8" /><meta http-equiv="x-ua-compatible" content="IE=Edge" />'+'<link rel="stylesheet" href="'.concat(r._cssUrl,'" type="text/css"/>')+"<style>html, body{margin:0;padding:0;".concat(h).concat(p,"}</style></head>")+'<body><div class="'.concat(r.Css.template,'" style="padding:0;width:').concat(a-20,'px">').concat(i,"</div></body></html>");return n.srcdoc===void 0?n.src="data:text/html;charset=utf-8,"+encodeURI(m):n.srcdoc=m,n},r._appendChild=function(e,t,n){t&&(n&&(t.className=(t.className?t.className+" ":"")+n),e.appendChild(t))},r._generateContent=function(e,t,n){return t?Array.isArray(t)?this._generatePropertyInfoTable(e,t,n):this._applyStringTemplate(e,t,n):(t=this._generateDynamicTableHtml(e,null,n))?((e=document.createElement("div")).innerHTML=t,e):null},r._applyStringTemplate=function(e,t,n){if(t){for(var i,o,a=t,l=this._placeholderRx.exec(t);l;)2<=l.length&&(i=this._getPropertyValue(e,l[1],n),a=a.replace(l[0],i)),l=this._placeholderRx.exec(t);if(a)return(a=a.trim()).includes("<")&&(a=a.replace(/[\r\n]+/g,"<br/>")),(o=document.createElement("div")).innerHTML=a,o}return null},r._getPropertyValue=function(e,t,n,i){var o=n.parsePropertyPaths?t.split("/"):[t],a=o.length;if(0<a&&e){var l=o[0],u=e[l];if(n.detectHyperlinks&&t==="link"&&(!i||i.hyperlinkFormat)){var h,p,m,_=[];if(Array.isArray(u)?u.forEach(function(O){O.href?_.push(O):typeof O=="string"&&_.push({href:O})}):u.href&&_.push(u),0<_.length)return i&&i.hyperlinkFormat?h=i.hyperlinkFormat:n&&n.hyperlinkFormat&&(h=n.hyperlinkFormat),p=h&&h.target?h.target:"_blank",m=[],_.forEach(function(O){O.title||h&&h.label||!O.rel||m.push(O.rel," - "),m.push('<a href="',O.href,'" target="',p,'">'),O.title?m.push(O.title):h&&h.label?m.push(h.label):m.push(O.href),m.push("</a>","<br/>")}),m.pop(),m.join("")}if(u!=null){for(var C=void 0,C=1;C<a&&(u=u[o[C]],l=o[C],u!=null);C++);if(C===a&&u!=null){if(e=void 0,(e=u.value!==void 0?u.value:u)instanceof Date)return i&&i.dateFormat?e.toLocaleString(void 0,i.dateFormat):n.dateFormat?e.toLocaleString(void 0,n.dateFormat):e.toISOString();if(typeof e=="object")return(T=this._generateDynamicTableHtml(e,o.slice(1),n))||"";if(typeof e=="number"){if(i){if(i.dateFormat)return new Date(e).toLocaleString(void 0,i.dateFormat);if(i.numberFormat)return e.toLocaleString(void 0,i.numberFormat)}else if(/(timestamp|date)/gi.test(l))return new Date(e).toISOString();return e.toLocaleString(void 0,n.numberFormat)}if(typeof e=="string"&&e!==""&&!/[\n\r<>\s]/g.test(e)&&(n.detectHyperlinks||i&&i.hyperlinkFormat)){var T,e=e.trim(),t=this._isUrlRx.test(e)||i&&i.hyperlinkFormat,S=this._isImageUrlRx.test(e)&&(t||e.startsWith("data:image")),R=this._emailRx.test(e);if(t||S||R)return t=void 0,T=void(i&&i.hyperlinkFormat?t=i.hyperlinkFormat:n&&n.hyperlinkFormat&&(t=n.hyperlinkFormat)),T=t&&t.target?' target="'.concat(t.target,'"'):' target="_blank"',i="".concat(t&&t.label?t.label:e),t&&t.scheme?e=t.scheme+e:R&&(e="mailto:"+e),n=t&&t.label?' alt="'.concat(t.label,'"'):"",(t&&t.isImage||S)&&(i='<img src="'.concat(e,'" style="max-width:100%"').concat(n,'"/>')),'<a href="'.concat(e,'"').concat(T,">").concat(i,"</a>")}return e.toString()}}}return""},r._generatePropertyInfoTable=function(e,t,n){var i,o;return e&&t&&0<t.length?((i=[]).push('<table class="'.concat((o=this).Css.table,'">')),t.forEach(function(a){var l=o._getPropertyValue(e,a.propertyPath,n,a);a.hideLabel?i.push('<tr><td colspan="2">',l,"</td></tr>"):(a=a.label||a.propertyPath.split("/")[0],i.push("<tr><th>",a,"</th><td>",l,"</td></tr>"))}),i.push("</table>"),(t=document.createElement("div")).innerHTML=i.join(""),t):null},r._generateDynamicTableHtml=function(e,t,n){var i,o,a,l,u=this;return!e||((i=[]).push('<table class="'.concat((o=this).Css.table,'">')),a=t&&0<t.length?t.join("/")+"/":"",l=0,Object.keys(e).forEach(function(h){u._ignoreProperty(h,e[h])||(i.push("<tr><th>",h,"</th><td>",o._getPropertyValue(e,a+h,n),"</td></tr>"),l++)}),l===0)?null:(i.push("</table>"),i.join(""))},r._ignoreProperty=function(e,t){switch(e){case"title":case"name":case"base":case"popupTemplate":case"anchor":case"icon":case"image":case"imageUrl":case"rotation":case"color":case"size":case"offset":case"strokeColor":case"strokeWidth":case"strokeOpacity":case"subType":case"fillColor":case"fillOpacity":case"visibility":case"visible":return!0;default:if(e.indexOf("_")===0||t==null||t==="")return!0}return!1},r._placeholderRx=/\{([a-zA-Z0-9_\/\s]+)\}/gi,r._isUrlRx=/^(http|https|ftp|tel|mailto):\/\//i,r._isImageUrlRx=/(^data:image|.png$|.jpg$|.jpeg$|.gif$|.bmp$|.svg|.tif|.tiff$)/i,r._emailRx=/^[^\.\s@:](?:[^\s@:]*[^\s@:\.])?@[^\.\s@]+(?:\.[^\.\s@]+)*$/,r._cssUrl=new av({domain:wv.staticAssetsDomain,path:"sdk/javascript/mapcontrol/".concat(R7.getEndpointVersion(),"/atlas.min.css")}).toString(),r.Css={template:"azure-maps-control-popup-template",title:"azure-maps-control-popup-template-title",content:"azure-maps-control-popup-template-content",item:"azure-maps-control-popup-template-content-item",table:"azure-maps-control-popup-template-table"},r})(),Xp=(nG(),Object.freeze({__proto__:null,get AuthenticationType(){return _a},get ControlPosition(){return xu},get ControlStyle(){return Zc},HtmlMarker:z7,Map:xQ,Pixel:Su,Popup:bL,PopupTemplate:Twe,Shape:rs,_enableRTLTextPlugin:nG,_getAssetDomain:l0e,_getDomain:c0e,_hasMaxParallelImageRequests:nX,_hasSetAuthenticationOptions:G8,_hasSetDomain:eX,_hasSetLanguage:iX,_hasSetSessionId:oX,_hasSetStyleDefinitionsPath:tX,_hasSetStyleDefinitionsVersion:s0e,_hasSetView:aX,_hasWorkerCount:rX,addImageTemplate:t0e,addProtocol:o0e,clearPrewarmedResources:i0e,control:u_e,data:l_e,getAllImageTemplateNames:r0e,getAuthenticationOptions:MZ,getDomain:k7,getImageTemplate:JZ,getLanguage:BZ,getMaxParallelImageRequests:UZ,getSessionId:$Z,getStaticAssetsDomain:NZ,getStyleAPIVersion:HZ,getStyleDefinitionsPath:DZ,getStyleDefinitionsVersion:LZ,getSubscriptionKey:zZ,getUserRegion:Kve,getVersion:Zve,getView:jZ,getWorkerCount:FZ,internal:u0e,isSupported:Xve,layer:w_e,math:c_e,prewarm:n0e,removeProtocol:a0e,setAuthenticationOptions:VZ,setDomain:qZ,setLanguage:KZ,setMaxParallelImageRequests:WZ,setSessionId:ZZ,setStyleAPIVersion:Jve,setStyleDefinitionsPath:GZ,setStyleDefinitionsVersion:Qve,setSubscriptionKey:XZ,setUserRegion:QZ,setVie
vendor: 8,514 bytes, line 717
717w:e0e,setWorkerCount:YZ,source:y_e}));const Kkt=Object.freeze(Object.defineProperty({__proto__:null,get AuthenticationType(){return _a},get ControlPosition(){return xu},get ControlStyle(){return Zc},HtmlMarker:z7,Map:xQ,Pixel:Su,Popup:bL,PopupTemplate:Twe,Shape:rs,_enableRTLTextPlugin:nG,_getAssetDomain:l0e,_getDomain:c0e,_hasMaxParallelImageRequests:nX,_hasSetAuthenticationOptions:G8,_hasSetDomain:eX,_hasSetLanguage:iX,_hasSetSessionId:oX,_hasSetStyleDefinitionsPath:tX,_hasSetStyleDefinitionsVersion:s0e,_hasSetView:aX,_hasWorkerCount:rX,addImageTemplate:t0e,addProtocol:o0e,clearPrewarmedResources:i0e,control:u_e,data:l_e,default:Xp,getAllImageTemplateNames:r0e,getAuthenticationOptions:MZ,getDomain:k7,getImageTemplate:JZ,getLanguage:BZ,getMaxParallelImageRequests:UZ,getSessionId:$Z,getStaticAssetsDomain:NZ,getStyleAPIVersion:HZ,getStyleDefinitionsPath:DZ,getStyleDefinitionsVersion:LZ,getSubscriptionKey:zZ,getUserRegion:Kve,getVersion:Zve,getView:jZ,getWorkerCount:FZ,internal:u0e,isSupported:Xve,layer:w_e,math:c_e,prewarm:n0e,removeProtocol:a0e,setAuthenticationOptions:VZ,setDomain:qZ,setLanguage:KZ,setMaxParallelImageRequests:WZ,setSessionId:ZZ,setStyleAPIVersion:Jve,setStyleDefinitionsPath:GZ,setStyleDefinitionsVersion:Qve,setSubscriptionKey:XZ,setUserRegion:QZ,setView:e0e,setWorkerCount:YZ,source:y_e},Symbol.toStringTag,{value:"Module"})),Ei=r=>typeof r=="string",uO=()=>{let r,e;const t=new Promise((n,i)=>{r=n,e=i});return t.resolve=r,t.reject=e,t},mse=r=>r==null?"":""+r,Lnt=(r,e,t)=>{r.forEach(n=>{e[n]&&(t[n]=e[n])})},Hnt=/###/g,yse=r=>r&&r.indexOf("###")>-1?r.replace(Hnt,"."):r,vse=r=>!r||Ei(r),fN=(r,e,t)=>{const n=Ei(e)?e.split("."):e;let i=0;for(;i<n.length-1;){if(vse(r))return{};const o=yse(n[i]);!r[o]&&t&&(r[o]=new t),Object.prototype.hasOwnProperty.call(r,o)?r=r[o]:r={},++i}return vse(r)?{}:{obj:r,k:yse(n[i])}},_se=(r,e,t)=>{const{obj:n,k:i}=fN(r,e,Object);if(n!==void 0||e.length===1){n[i]=t;return}let o=e[e.length-1],a=e.slice(0,e.length-1),l=fN(r,a,Object);for(;l.obj===void 0&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),l=fN(r,a,Object),l&&l.obj&&typeof l.obj[`${l.k}.${o}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${o}`]=t},Fnt=(r,e,t,n)=>{const{obj:i,k:o}=fN(r,e,Object);i[o]=i[o]||[],i[o].push(t)},aB=(r,e)=>{const{obj:t,k:n}=fN(r,e);if(t)return t[n]},Unt=(r,e,t)=>{const n=aB(r,t);return n!==void 0?n:aB(e,t)},Swe=(r,e,t)=>{for(const n in e)n!=="__proto__"&&n!=="constructor"&&(n in r?Ei(r[n])||r[n]instanceof String||Ei(e[n])||e[n]instanceof String?t&&(r[n]=e[n]):Swe(r[n],e[n],t):r[n]=e[n]);return r},WI=r=>r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Bnt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const $nt=r=>Ei(r)?r.replace(/[&<>"'\/]/g,e=>Bnt[e]):r;class znt{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}const jnt=[" ",",","?","!",";"],Vnt=new znt(20),qnt=(r,e,t)=>{e=e||"",t=t||"";const n=jnt.filter(a=>e.indexOf(a)<0&&t.indexOf(a)<0);if(n.length===0)return!0;const i=Vnt.getRegExp(`(${n.map(a=>a==="?"?"\\?":a).join("|")})`);let o=!i.test(r);if(!o){const a=r.indexOf(t);a>0&&!i.test(r.substring(0,a))&&(o=!0)}return o},UY=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!r)return;if(r[e])return r[e];const n=e.split(t);let i=r;for(let o=0;o<n.length;){if(!i||typeof i!="object")return;let a,l="";for(let u=o;u<n.length;++u)if(u!==o&&(l+=t),l+=n[u],a=i[l],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&u<n.length-1)continue;o+=u-o+1;break}i=a}return i},sB=r=>r&&r.replace("_","-"),Gnt={type:"logger",log(r){this.output("log",r)},warn(r){this.output("warn",r)},error(r){this.output("error",r)},output(r,e){console&&console[r]&&console[r].apply(console,e)}};class lB{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Gnt,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,i){return i&&!this.debug?null:(Ei(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new lB(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new lB(this.logger,e)}}var X0=new lB;class o9{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const i=this.observers[n].get(t)||0;this.observers[n].set(t,i+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(a=>{let[l,u]=a;for(let h=0;h<u;h++)l(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[l,u]=a;for(let h=0;h<u;h++)l.apply(l,[e,...n])})}}class bse extends o9{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.indexOf(".")>-1?l=e.split("."):(l=[e,t],n&&(Array.isArray(n)?l.push(...n):Ei(n)&&o?l.push(...n.split(o)):l.push(n)));const u=aB(this.data,l);return!u&&!t&&!n&&e.indexOf(".")>-1&&(e=l[0],t=l[1],n=l.slice(2).join(".")),u||!a||!Ei(n)?u:UY(this.data&&this.data[e]&&this.data[e][t],n,o)}addResource(e,t,n,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let l=[e,t];n&&(l=l.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(l=e.split("."),i=t,t=l[1]),this.addNamespaces(t),_se(this.data,l,i),o.silent||this.emit("added",e,t,n,i)}addResources(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in n)(Ei(n[o])||Array.isArray(n[o]))&&this.addResource(e,t,o,n[o],{silent:!0});i.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[e,t];e.indexOf(".")>-1&&(l=e.split("."),i=n,n=t,t=l[1]),this.addNamespaces(t);let u=aB(this.data,l)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?Swe(u,n,o):u={...u,...n},_se(this.data,l,u),a.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(i=>t[i]&&Object.keys(t[i]).length>0)}toJSON(){return this.data}}var Iwe={processors:{},addPostProcessor(r){this.processors[r.name]=r},handle(r,e,t,n,i){return r.forEach(o=>{this.processors[o]&&(e=this.processors[o].process(e,t,n,i))}),e}};const wse={};class cB extends o9{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Lnt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
717i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=X0.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const n=this.resolve(e,t);return n&&n.res!==void 0}extractFromKey(e,t){let n=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const i=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const a=n&&e.indexOf(n)>-1,l=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!qnt(e,n,i);if(a&&!l){const u=e.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:e,namespaces:Ei(o)?[o]:o};const h=e.split(n);(n!==i||n===i&&this.options.ns.indexOf(h[0])>-1)&&(o=h.shift()),e=h.join(i)}return{key:e,namespaces:Ei(o)?[o]:o}}translate(e,t,n){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const i=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,o=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(e[e.length-1],t),u=l[l.length-1],h=t.lng||this.language,p=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h&&h.toLowerCase()==="cimode"){if(p){const F=t.nsSeparator||this.options.nsSeparator;return i?{res:`${u}${F}${a}`,usedKey:a,exactUsedKey:a,usedLng:h,usedNS:u,usedParams:this.getUsedParamsDetails(t)}:`${u}${F}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:h,usedNS:u,usedParams:this.getUsedParamsDetails(t)}:a}const m=this.resolve(e,t);let _=m&&m.res;const C=m&&m.usedKey||a,T=m&&m.exactUsedKey||a,S=Object.prototype.toString.apply(_),R=["[object Number]","[object Function]","[object RegExp]"],O=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,N=!this.i18nFormat||this.i18nFormat.handleAsObject,H=!Ei(_)&&typeof _!="boolean"&&typeof _!="number";if(N&&_&&H&&R.indexOf(S)<0&&!(Ei(O)&&Array.isArray(_))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(C,_,{...t,ns:l}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(m.res=F,m.usedParams=this.getUsedParamsDetails(t),m):F}if(o){const F=Array.isArray(_),j=F?[]:{},L=F?T:C;for(const B in _)if(Object.prototype.hasOwnProperty.call(_,B)){const Q=`${L}${o}${B}`;j[B]=this.translate(Q,{...t,joinArrays:!1,ns:l}),j[B]===Q&&(j[B]=_[B])}_=j}}else if(N&&Ei(O)&&Array.isArray(_))_=_.join(O),_&&(_=this.extendTranslation(_,e,t,n));else{let F=!1,j=!1;const L=t.count!==void 0&&!Ei(t.count),B=cB.hasDefaultValue(t),Q=L?this.pluralResolver.getSuffix(h,t.count,t):"",Z=t.ordinal&&L?this.pluralResolver.getSuffix(h,t.count,{ordinal:!1}):"",ie=L&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),J=ie&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${Q}`]||t[`defaultValue${Z}`]||t.defaultValue;!this.isValidLookup(_)&&B&&(F=!0,_=J),this.isValidLookup(_)||(j=!0,_=a);const ue=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&j?void 0:_,K=B&&J!==_&&this.options.updateMissing;if(j||F||K){if(this.logger.log(K?"updateKey":"missingKey",h,u,a,K?J:_),o){const ge=this.resolve(a,{...t,keySeparator:!1});ge&&ge.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let se=[];const be=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&be&&be[0])for(let ge=0;ge<be.length;ge++)se.push(be[ge]);else this.options.saveMissingTo==="all"?se=this.languageUtils.toResolveHierarchy(t.lng||this.language):se.push(t.lng||this.language);const de=(ge,Ue,Qe)=>{const ve=B&&Qe!==_?Qe:ue;this.options.missingKeyHandler?this.options.missingKeyHandler(ge,u,Ue,ve,K,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ge,u,Ue,ve,K,t),this.emit
vendor: 12,035 bytes, line 717
717("missingKey",ge,u,Ue,_)};this.options.saveMissing&&(this.options.saveMissingPlurals&&L?se.forEach(ge=>{const Ue=this.pluralResolver.getSuffixes(ge,t);ie&&t[`defaultValue${this.options.pluralSeparator}zero`]&&Ue.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ue.push(`${this.options.pluralSeparator}zero`),Ue.forEach(Qe=>{de([ge],a+Qe,t[`defaultValue${Qe}`]||J)})}):de(se,a,J))}_=this.extendTranslation(_,e,t,m,n),j&&_===a&&this.options.appendNamespaceToMissingKey&&(_=`${u}:${a}`),(j||F)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?_=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${a}`:a,F?_:void 0):_=this.options.parseMissingKeyHandler(_))}return i?(m.res=_,m.usedParams=this.getUsedParamsDetails(t),m):_}extendTranslation(e,t,n,i,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const h=Ei(e)&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(h){const _=e.match(this.interpolator.nestingRegexp);p=_&&_.length}let m=n.replace&&!Ei(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),e=this.interpolator.interpolate(e,m,n.lng||this.language||i.usedLng,n),h){const _=e.match(this.interpolator.nestingRegexp),C=_&&_.length;p<C&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(n.lng=this.language||i.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var _=arguments.length,C=new Array(_),T=0;T<_;T++)C[T]=arguments[T];return o&&o[0]===C[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${C[0]} in key: ${t[0]}`),null):a.translate(...C,t)},n)),n.interpolation&&this.interpolator.reset()}const l=n.postProcess||this.options.postProcess,u=Ei(l)?[l]:l;return e!=null&&u&&u.length&&n.applyPostProcessor!==!1&&(e=Iwe.handle(u,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,i,o,a,l;return Ei(e)&&(e=[e]),e.forEach(u=>{if(this.isValidLookup(n))return;const h=this.extractFromKey(u,t),p=h.key;i=p;let m=h.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const _=t.count!==void 0&&!Ei(t.count),C=_&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),T=t.context!==void 0&&(Ei(t.context)||typeof t.context=="number")&&t.context!=="",S=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);m.forEach(R=>{this.isValidLookup(n)||(l=R,!wse[`${S[0]}-${R}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(wse[`${S[0]}-${R}`]=!0,this.logger.warn(`key "${i}" for languages "${S.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),S.forEach(O=>{if(this.isValidLookup(n))return;a=O;const N=[p];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(N,p,O,R,t);else{let F;_&&(F=this.pluralResolver.getSuffix(O,t.count,t));const j=`${this.options.pluralSeparator}zero`,L=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(_&&(N.push(p+F),t.ordinal&&F.indexOf(L)===0&&N.push(p+F.replace(L,this.options.pluralSeparator)),C&&N.push(p+j)),T){const B=`${p}${this.options.contextSeparator}${t.context}`;N.push(B),_&&(N.push(B+F),t.ordinal&&F.indexOf(L)===0&&N.push(B+F.replace(L,this.options.pluralSeparator)),C&&N.push(B+j))}}let H;for(;H=N.pop();)this.isValidLookup(n)||(o=H,n=this.getResource(O,R,H,t))}))})}),{res:n,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:l}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!Ei(e.replace);let i=n?e.replace:e;if(n&&typeof e.count<"u"&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!n){i={...i};for(const o of t)delete i[o]}return i}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&e[n]!==void 0)return!0;return!1}}const r3=r=>r.charAt(0).toUpperCase()+r.slice(1);class Ese{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=X0.create("languageUtils")}getScriptPartFromCode(e){if(e=sB(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=sB(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(Ei(e)&&e.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let i=Intl.getCanonicalLocales(e)[0];if(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)return i}catch{}const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map(i=>i.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=r3(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=r3(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=r3(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(n=>{if(t)return;const i=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(i))&&(t=i)}),!t&&this.options.supportedLngs&&e.forEach(n=>{if(t)return;const i=this.getLanguagePartFromCode(n);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),Ei(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return Ei(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(e))):Ei(e)&&o(this.formatLanguageCode(e)),n.forEach(a=>{i.indexOf(a)<0&&o(this.formatLanguageCode(a))}),i}}let Ynt=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Wnt={1:r=>+(r>1),2:r=>+(r!=1),3:r=>0,4:r=>r%10==1&&r%100!=11?0:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?1:2,5:r=>r==0?0:r==1?1:r==2?2:r%100>=3&&r%100<=10?3:r%100>=11?4:5,6:r=>r==1?0:r>=2&&r<=4?1:2,7:r=>r==1?0:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?1:2,8:r=>r==1?0:r==2?1:r!=8&&r!=11?2:3,9:r=>+(r>=2),10:r=>r==1?0:r==2?1:r<7?2:r<11?3:4,11:r=>r==1||r==11?0:r==2||r==12?1:r>2&&r<20?2:3,12:r=>+(r%10!=1||r%100==11),13:r=>+(r!==0),14:r=>r==1?0:r==2?1:r==3?2:3,15:r=>r%10==1&&r%100!=11?0:r%10>=2&&(r%100<10||r%100>=20)?1:2,16:r=>r%10==1&&r%100!=11?0:r!==0?1:2,17:r=>r==1||r%10==1&&r%100!=11?0:1,18:r=>r==0?0:r==1?1:2,19:r=>r==1?0:r==0||r%100>1&&r%100<11?1:r%100>10&&r%100<20?2:3,20:r=>r==1?0:r==0||r%100>0&&r%100<20?1:2,21:r=>r%100==1?1:r%100==2?2:r%100==3||r%100==4?3:0,22:r=>r==1?0:r==2?1:(r<0||r>10)&&r%10==0?2:3};const Knt=["v1","v2","v3"],Znt=["v4"],Cse={zero:0,one:1,two:2,few:3,many:4,other:5},Xnt=()=>{const r={};return Ynt.forEach(e=>{e.lngs.forEach(t=>{r[t]={numbers:e.nr,plurals:Wnt[e.fc]}})}),r};class Qnt{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=X0.create("pluralResolver"),(!this.options.compatibilityJSON||Znt.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Xnt(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const n=sB(e==="dev"?"en":e),i=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let a;try{a=new Intl.PluralRules(n,{type:i})}catch{if(!e.match(/-|_/))return;const u=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(u,t)}return this.pluralRulesCache[o]=a,a}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};
vendor: 1,301 bytes, line 717
717return this.getSuffixes(e,n).map(i=>`${t}${i}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((i,o)=>Cse[i]-Cse[o]).map(i=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${i}`):n.numbers.map(i=>this.getSuffix(e,i,t)):[]}getSuffix(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(e,n);return i?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:this.getSuffixRetroCompatible(i,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let i=e.numbers[n];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}
vendor: 20,671 bytes, line 717
717shouldUseIntlApi(){return!Knt.includes(this.options.compatibilityJSON)}}const xse=function(r,e,t){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=Unt(r,e,t);return!o&&i&&Ei(t)&&(o=UY(r,t,n),o===void 0&&(o=UY(e,t,n))),o},n3=r=>r.replace(/\$/g,"$$$$");class Jnt{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=X0.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(t=>t),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:i,prefix:o,prefixEscaped:a,suffix:l,suffixEscaped:u,formatSeparator:h,unescapeSuffix:p,unescapePrefix:m,nestingPrefix:_,nestingPrefixEscaped:C,nestingSuffix:T,nestingSuffixEscaped:S,nestingOptionsSeparator:R,maxReplaces:O,alwaysFormat:N}=e.interpolation;this.escape=t!==void 0?t:$nt,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?WI(o):a||"{{",this.suffix=l?WI(l):u||"}}",this.formatSeparator=h||",",this.unescapePrefix=p?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":p||"",this.nestingPrefix=_?WI(_):C||WI("$t("),this.nestingSuffix=T?WI(T):S||WI(")"),this.nestingOptionsSeparator=R||",",this.maxReplaces=O||1e3,this.alwaysFormat=N!==void 0?N:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,n)=>t&&t.source===n?(t.lastIndex=0,t):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,i){let o,a,l;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=C=>{if(C.indexOf(this.formatSeparator)<0){const O=xse(t,u,C,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(O,void 0,n,{...i,...t,interpolationkey:C}):O}const T=C.split(this.formatSeparator),S=T.shift().trim(),R=T.join(this.formatSeparator).trim();return this.format(xse(t,u,S,this.options.keySeparator,this.options.ignoreJSONStructure),R,n,{...i,...t,interpolationkey:S})};this.resetRegExp();const p=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,m=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:C=>n3(C)},{regex:this.regexp,safeValue:C=>this.escapeValue?n3(this.escape(C)):n3(C)}].forEach(C=>{for(l=0;o=C.regex.exec(e);){const T=o[1].trim();if(a=h(T),a===void 0)if(typeof p=="function"){const R=p(e,o,i);a=Ei(R)?R:""}else if(i&&Object.prototype.hasOwnProperty.call(i,T))a="";else if(m){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${T} for interpolating ${e}`),a="";else!Ei(a)&&!this.useRawValueToEscape&&(a=mse(a));const S=C.safeValue(a);if(e=e.replace(o[0],S),m?(C.regex.lastIndex+=a.length,C.regex.lastIndex-=o[0].length):C.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,a;const l=(u,h)=>{const p=this.nestingOptionsSeparator;if(u.indexOf(p)<0)return u;const m=u.split(new RegExp(`${p}[ ]*{`));let _=`{${m[1]}`;u=m[0],_=this.interpolate(_,a);const C=_.match(/'/g),T=_.match(/"/g);(C&&C.length%2===0&&!T||T.length%2!==0)&&(_=_.replace(/'/g,'"'));try{a=JSON.parse(_),h&&(a={...h,...a})}catch(S){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,S),`${u}${p}${_}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,u};for(;i=this.nestingRegexp.exec(e);){let u=[];a={...n},a=a.replace&&!Ei(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let h=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const p=i[1].split(this.formatSeparator).map(m=>m.trim());i[1]=p.shift(),u=p,h=!0}if(o=t(l.call(this,i[1].trim(),a),a),o&&i[0]===e&&!Ei(o))return o;Ei(o)||(o=mse(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),o=""),h&&(o=u.reduce((p,m)=>this.format(p,m,n.lng,{...n,interpolationkey:i[1].trim()}),o.trim())),e=e.replace(i[0],o),this.regexp.lastIndex=0}return e}}const eit=r=>{let e=r.toLowerCase().trim();const t={};if(r.indexOf("(")>-1){const n=r.split("(");e=n[0].toLowerCase().trim();const i=n[1].substring(0,n[1].length-1);e==="currency"&&i.indexOf(":")<0?t.currency||(t.currency=i.trim()):e==="relativetime"&&i.indexOf(":")<0?t.range||(t.range=i.trim()):i.split(";").forEach(a=>{if(a){const[l,...u]=a.split(":"),h=u.join(":").trim().replace(/^'+|'+$/g,""),p=l.trim();t[p]||(t[p]=h),h==="false"&&(t[p]=!1),h==="true"&&(t[p]=!0),isNaN(h)||(t[p]=parseInt(h,10))}})}return{formatName:e,formatOptions:t}},KI=r=>{const e={};return(t,n,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=n+JSON.stringify(o);let l=e[a];return l||(l=r(sB(n),i),e[a]=l),l(t)}};class tit{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=X0.create("formatter"),this.options=e,this.formats={number:KI((t,n)=>{const i=new Intl.NumberFormat(t,{...n});return o=>i.format(o)}),currency:KI((t,n)=>{const i=new Intl.NumberFormat(t,{...n,style:"currency"});return o=>i.format(o)}),datetime:KI((t,n)=>{const i=new Intl.DateTimeFormat(t,{...n});return o=>i.format(o)}),relativetime:KI((t,n)=>{const i=new Intl.RelativeTimeFormat(t,{...n});return o=>i.format(o,n.range||"day")}),list:KI((t,n)=>{const i=new Intl.ListFormat(t,{...n});return o=>i.format(o)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=KI(t)}format(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(l=>l.indexOf(")")>-1)){const l=o.findIndex(u=>u.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,l)].join(this.formatSeparator)}return o.reduce((l,u)=>{const{formatName:h,formatOptions:p}=eit(u);if(this.formats[h]){let m=l;try{const _=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},C=_.locale||_.lng||i.locale||i.lng||n;m=this.formats[h](l,C,{...p,...i,..._})}catch(_){this.logger.warn(_)}return m}else this.logger.warn(`there was no format function for ${h}`);return l},e)}}const rit=(r,e)=>{r.pending[e]!==void 0&&(delete r.pending[e],r.pendingCount--)};class nit extends o9{constructor(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=X0.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,i.backend,i)}queueLoad(e,t,n,i){const o={},a={},l={},u={};return e.forEach(h=>{let p=!0;t.forEach(m=>{const _=`${h}|${m}`;!n.reload&&this.store.hasResourceBundle(h,m)?this.state[_]=2:this.state[_]<0||(this.state[_]===1?a[_]===void 0&&(a[_]=!0):(this.state[_]=1,p=!1,a[_]===void 0&&(a[_]=!0),o[_]===void 0&&(o[_]=!0),u[m]===void 0&&(u[m]=!0)))}),p||(l[h]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(e,t,n){const i=e.split("|"),o=i[0],a=i[1];t&&this.emit("failedLoading",o,a,t),!t&&n&&this.store.addResourceBundle(o,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const l={};this.queue.forEach(u=>{Fnt(u.loaded,[o],a),rit(u,e),t&&u.errors.push(t),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(h=>{l[h]||(l[h]={});const p=u.loaded[h];p.length&&p.forEach(m=>{l[h][m]===void 0&&(l[h][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:o,callback:a});return}this.readingCalls++;const l=(h,p)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(h&&p&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,i+1,o*2,a)},o);return}a(h,p)},u=this.backend[n].bind(this.backend);if(u.length===2){try{const h=u(e,t);h&&typeof h.then=="function"?h.then(p=>l(null,p)).catch(l):l(null,h)}catch(h){l(h)}return}return u(e,t,l)}prepareLoading(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();Ei(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Ei(t)&&(t=[t]);const o=this.queueLoad(e,t,n,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(a=>{this.loadOne(a)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=e.split("|"),i=n[0],o=n[1];this.read(i,o,"read",void 0,void 0,(a,l)=>{a&&this.logger.warn(`${t}loading namespace ${o} for language ${i} failed`,a),!a&&l&&this.logger.log(`${t}loaded namespace ${o} for language ${i}`,l),this.loaded(e,a,l)})}saveMissing(e,t,n,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const u={...a,isUpdate:o},h=this.backend.create.bind(this.backend);if(h.length<6)try{let p;h.length===5?p=h(e,t,n,i,u):p=h(e,t,n,i),p&&typeof p.then=="function"?p.then(m=>l(null,m)).catch(l):l(null,p)}catch(p){l(p)}else h(e,t,n,i,l,u)}!e||!e[0]||this.store.addResource(e[0],t,n,i)}}}const Tse=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:r=>{let e={};if(typeof r[1]=="object"&&(e=r[1]),Ei(r[1])&&(e.defaultValue=r[1]),Ei(r[2])&&(e.tDescription=r[2]),typeof r[2]=="object"||typeof r[3]=="object"){const t=r[3]||r[2];Object.keys(t).forEach(n=>{e[n]=t[n]})}return e},interpolation:{escapeValue:!0,format:r=>r,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Sse=r=>(Ei(r.ns)&&(r.ns=[r.ns]),Ei(r.fallbackLng)&&(r.fallbackLng=[r.fallbackLng]),Ei(r.fallbackNS)&&(r.fallbackNS=[r.fallbackNS]),r.supportedLngs&&r.supportedLngs.indexOf("cimode")<0&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),r),N6=()=>{},iit=r=>{Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(t=>{typeof r[t]=="function"&&(r[t]=r[t].bind(r))})};class TD extends o9{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Sse(e),this.services={},this.logger=X0,this.modules={external:[]},iit(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(Ei(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const i=Tse();this.options={...i,...this.options,...Sse(t)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?X0.init(o(this.modules.logger),this.options):X0.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:typeof Intl<"u"&&(p=tit);const m=new Ese(this.options);this.store=new bse(this.options.resources,this.options);const _=this.services;_.logger=X0,_.resourceStore=this.store,_.languageUtils=m,_.pluralResolver=new Qnt(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(_.formatter=o(p),_.formatter.init(_,this.options),this.options.interpolation.format=_.formatter.format.bind(_.formatter)),_.interpolator=new Jnt(this.options),_.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},_.backendConnector=new nit(o(this.modules.backend),_.resourceStore,_,this.options),_.backendConnector.on("*",function(C){for(var T=arguments.length,S=new Array(T>1?T-1:0),R=1;R<T;R++)S[R-1]=arguments[R];e.emit(C,...S)}),this.modules.languageDetector&&(_.languageDetector=o(this.modules.languageDetector),_.languageDetector.init&&_.languageDetector.init(_,this.options.detection,this.options)),this.modules.i18nFormat&&(_.i18nFormat=o(this.modules.i18nFormat),_.i18nFormat.init&&_.i18nFormat.init(this)),this.translator=new cB(this.services,this.options),this.translator.on("*",function(C){for(var T=arguments.length,S=new Array(T>1?T-1:0),R=1;R<T;R++)S[R-1]=arguments[R];e.emit(C,...S)}),this.modules.external.forEach(C=>{C.init&&C.init(this)})}if(this.format=this.options.interpolation.format,n||(n=N6),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(p=>{this[p]=function(){return e.store[p](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=function(){return e.store[p](...arguments),e}});const u=uO(),h=()=>{const p=(m,_)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(_),n(m,_)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initImmediate?h():setTimeout(h,0),u}loadResources(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:N6;const i=Ei(e)?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const o=[],a=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(h=>{h!=="cimode"&&o.indexOf(h)<0&&o.push(h)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>a(u)),this.options.preload&&this.options.preload.forEach(l=>a(l)),this.services.backendConnector.load(o,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(l)})}else n(null)}reloadResources(e,t,n){const i=uO();return typeof e=="function"&&(n=e,e=void 0),typeof t=="function"&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=N6),this.services.backendConnector.reload(e,t,o=>{i.resolve(),n(o)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Iwe.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const i=uO();this.emit("languageChanging",e);const o=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},a=(u,h)=>{h?(o(h),this.translator.changeLanguage(h),this.isLanguageChangingTo=void 0,this.emit("languageChanged",h),this.logger.log("languageChanged",h)):this.isLanguageChangingTo=void 0,i.resolve(function(){return n.t(...arguments)}),t&&t(u,function(){return n.t(...arguments)})},l=u=>{!e&&!u&&this.services.languageDetector&&(u=[]);const h=Ei(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);h&&(this.language||o(h),this.translator.language||this.translator.changeLanguage(h),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(h)),this.loadResources(h,p=>{a(p,h)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e),i}getFixedT(e,t,n){var i=this;const o=function(a,l){let u;if(typeof l!="object"){for(var h=arguments.length,p=new Array(h>2?h-2:0),m=2;m<h;m++)p[m-2]=arguments[m];u=i.options.overloadTranslationOptionHandler([a,l].concat(p))}else u={...l};u.lng=u.lng||o.lng,u.lngs=u.lngs||o.lngs,u.ns=u.ns||o.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||n||o.keyPrefix);const _=i.options.keySeparator||".";let C;return u.keyPrefix&&Array.isArray(a)?C=a.map(T=>`${u.keyPrefix}${_}${T}`):C=u.keyPrefix?`${u.keyPrefix}${_}${a}`:a,i.t(C,u)};return Ei(e)?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
vendor: 4,061 bytes, line 717
717if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const a=(l,u)=>{const h=this.services.backendConnector.state[`${l}|${u}`];return h===-1||h===0||h===2};if(t.precheck){const l=t.precheck(this,a);if(l!==void 0)return l}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!i||a(o,e)))}loadNamespaces(e,t){const n=uO();return this.options.ns?(Ei(e)&&(e=[e]),e.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{n.resolve(),t&&t(i)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=uO();Ei(e)&&(e=[e]);const i=this.options.preload||[],o=e.filter(a=>i.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return o.length?(this.options.preload=i.concat(o),this.loadResources(a=>{n.resolve(),t&&t(a)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new Ese(Tse());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new TD(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:N6;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},o=new TD(i);return(e.debug!==void 0||e.prefix!==void 0)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(l=>{o[l]=this[l]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new bse(this.store.data,i),o.services.resourceStore=o.store),o.translator=new cB(o.services,i),o.translator.on("*",function(l){for(var u=arguments.length,h=new Array(u>1?u-1:0),p=1;p<u;p++)h[p-1]=arguments[p];o.emit(l,...h)}),o.init(i,t),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Au=TD.createInstance();Au.createInstance=TD.createInstance;Au.createInstance;Au.dir;Au.init;Au.loadResources;Au.reloadResources;Au.use;Au.changeLanguage;Au.getFixedT;const bm=Au.t;Au.exists;Au.setDefaultNamespace;Au.hasLoadedNamespace;Au.loadNamespaces;Au.loadLanguages;function Awe(r,e){return function(){return r.apply(e,arguments)}}const{toString:oit}=Object.prototype,{getPrototypeOf:a9}=Object,{iterator:s9,toStringTag:Rwe}=Symbol,l9=(r=>e=>{const t=oit.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Av=r=>(r=r.toLowerCase(),e=>l9(e)===r),c9=r=>e=>typeof e===r,{isArray:Ok}=Array,ZP=c9("undefined");function kL(r){return r!==null&&!ZP(r)&&r.constructor!==null&&!ZP(r.constructor)&&Xf(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const Pwe=Av("ArrayBuffer");function ait(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&Pwe(r.buffer),e}const sit=c9("string"),Xf=c9("function"),kwe=c9("number"),OL=r=>r!==null&&typeof r=="object",lit=r=>r===!0||r===!1,fF=r=>{if(l9(r)!=="object")return!1;const e=a9(r);
vendor: 5,027 bytes, line 717
717return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Rwe in r)&&!(s9 in r)},cit=r=>{if(!OL(r)||kL(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch{return!1}},uit=Av("Date"),dit=Av("File"),hit=r=>!!(r&&typeof r.uri<"u"),fit=r=>r&&typeof r.getParts<"u",pit=Av("Blob"),git=Av("FileList"),mit=r=>OL(r)&&Xf(r.pipe);function yit(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Ise=yit(),Ase=typeof Ise.FormData<"u"?Ise.FormData:void 0,vit=r=>{if(!r)return!1;if(Ase&&r instanceof Ase)return!0;const e=a9(r);if(!e||e===Object.prototype||!Xf(r.append))return!1;const t=l9(r);return t==="formdata"||t==="object"&&Xf(r.toString)&&r.toString()==="[object FormData]"},_it=Av("URLSearchParams"),[bit,wit,Eit,Cit]=["ReadableStream","Request","Response","Headers"].map(Av),xit=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ML(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,i;if(typeof r!="object"&&(r=[r]),Ok(r))for(n=0,i=r.length;n<i;n++)e.call(null,r[n],n,r);else{if(kL(r))return;const o=t?Object.getOwnPropertyNames(r):Object.keys(r),a=o.length;let l;for(n=0;n<a;n++)l=o[n],e.call(null,r[l],l,r)}}function Owe(r,e){if(kL(r))return null;e=e.toLowerCase();const t=Object.keys(r);let n=t.length,i;for(;n-- >0;)if(i=t[n],e===i.toLowerCase())return i;return null}const uT=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis,Mwe=r=>!ZP(r)&&r!==uT;function BY(...r){const{caseless:e,skipUndefined:t}=Mwe(this)&&this||{},n={},i=(o,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const l=e&&Owe(n,a)||a,u=$Y(n,l)?n[l]:void 0;fF(u)&&fF(o)?n[l]=BY(u,o):fF(o)?n[l]=BY({},o):Ok(o)?n[l]=o.slice():(!t||!ZP(o))&&(n[l]=o)};for(let o=0,a=r.length;o<a;o++)r[o]&&ML(r[o],i);return n}const Tit=(r,e,t,{allOwnKeys:n}={})=>(ML(e,(i,o)=>{t&&Xf(i)?Object.defineProperty(r,o,{__proto__:null,value:Awe(i,t),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(r,o,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),r),Sit=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),Iit=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),Object.defineProperty(r.prototype,"constructor",{__proto__:null,value:r,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(r,"super",{__proto__:null,value:e.prototype}),t&&Object.assign(r.prototype,t)},Ait=(r,e,t,n)=>{let i,o,a;const l={};if(e=e||{},r==null)return e;do{for(i=Object.getOwnPropertyNames(r),o=i.length;o-- >0;)a=i[o],(!n||n(a,r,e))&&!l[a]&&(e[a]=r[a],l[a]=!0);r=t!==!1&&a9(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},Rit=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;const n=r.indexOf(e,t);return n!==-1&&n===t},Pit=r=>{if(!r)return null;if(Ok(r))return r;let e=r.length;if(!kwe(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},kit=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&a9(Uint8Array)),Oit=(r,e)=>{const n=(r&&r[s9]).call(r);let i;for(;(i=n.next())&&!i.done;){const o=i.value;e.call(r,o[0],o[1])}},Mit=(r,e)=>{let t;const n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},Nit=Av("HTMLFormElement"),Dit=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,i){return n.toUpperCase()+i}),$Y=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),Lit=Av("RegExp"),Nwe=(r,e)=>{const t=Object.getOwnPropertyDescriptors(r),n={};ML(t,(i,o)=>{let a;(a=e(i,o,r))!==!1&&(n[o]=a||i)}),Object.defineProperties(r,n)},Hit=r=>{Nwe(r,(e,t)=>{if(Xf(r)&&["arguments","caller","callee"].includes(t))return!1;const n=r[t];if(Xf(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Fit=(r,e)=>{const t={},n=i=>{i.forEach(o=>{t[o]=!0})};return Ok(r)?n(r):n(String(r).split(e)),t},Uit=()=>{},Bit=(r,e)=>r!=null&&Number.isFinite(r=+r)?r:e;function $it(r){return!!(r&&Xf(r.append)&&r[Rwe]==="FormData"&&r[s9])}const zit=r=>{const e=new WeakSet,t=n=>{if(OL(n)){if(e.has(n))return;if(kL(n))return n;if(!("toJSON"in n)){e.add(n);const i=Ok(n)?[]:{};return ML(n,(o,a)=>{const l=t(o);!ZP(l)&&(i[a]=l)}),e.delete(n),i}}return n};return t(r)},jit=Av("AsyncFunction"),Vit=r=>r&&(OL(r)||Xf(r))&&Xf(r.then)&&Xf(r.catch),Dwe=((r,e)=>r?setImmediate:e?((t,n)=>(uT.addEventListener("message",({source:i,data:o})=>{i===uT&&o===t&&n.length&&n.shift()()},!1),i=>{n.push(i),uT.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Xf(uT.postMessage)),qit=typeof queueMicrotask<"u"?queueMicrotask.bind(uT):typeof process<"u"&&process.nextTick||Dwe,Git=r=>r!=null&&Xf(r[s9]),Dt={isArray:Ok,isArrayBuffer:Pwe,isBuffer:kL,isFormData:vit,isArrayBufferView:ait,isString:sit,isNumber:kwe,isBoolean:lit,isObject:OL,isPlainObject:fF,isEmptyObject:cit,isReadableStream:bit,isRequest:wit,isResponse:Eit,isHeaders:Cit,isUndefined:
vendor: 34,518 bytes, lines 717-725
717ZP,isDate:uit,isFile:dit,isReactNativeBlob:hit,isReactNative:fit,isBlob:pit,isRegExp:Lit,isFunction:Xf,isStream:mit,isURLSearchParams:_it,isTypedArray:kit,isFileList:git,forEach:ML,merge:BY,extend:Tit,trim:xit,stripBOM:Sit,inherits:Iit,toFlatObject:Ait,kindOf:l9,kindOfTest:Av,endsWith:Rit,toArray:Pit,forEachEntry:Oit,matchAll:Mit,isHTMLForm:Nit,hasOwnProperty:$Y,hasOwnProp:$Y,reduceDescriptors:Nwe,freezeMethods:Hit,toObjectSet:Fit,toCamelCase:Dit,noop:Uit,toFiniteNumber:Bit,findKey:Owe,global:uT,isContextDefined:Mwe,isSpecCompliantForm:$it,toJSONObject:zit,isAsyncFn:jit,isThenable:Vit,setImmediate:Dwe,asap:qit,isIterable:Git},Yit=Dt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Wit=r=>{const e={};let t,n,i;return r&&r.split(`
718`).forEach(function(a){i=a.indexOf(":"),t=a.substring(0,i).trim().toLowerCase(),n=a.substring(i+1).trim(),!(!t||e[t]&&Yit[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e};function Kit(r){let e=0,t=r.length;for(;e<t;){const n=r.charCodeAt(e);if(n!==9&&n!==32)break;e+=1}for(;t>e;){const n=r.charCodeAt(t-1);if(n!==9&&n!==32)break;t-=1}return e===0&&t===r.length?r:r.slice(e,t)}const Zit=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Xit=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function TQ(r,e){return Dt.isArray(r)?r.map(t=>TQ(t,e)):Kit(String(r).replace(e,""))}const Qit=r=>TQ(r,Zit),Jit=r=>TQ(r,Xit);function Lwe(r){const e=Object.create(null);return Dt.forEach(r.toJSON(),(t,n)=>{e[n]=Jit(t)}),e}const Rse=Symbol("internals");function dO(r){return r&&String(r).trim().toLowerCase()}function pF(r){return r===!1||r==null?r:Dt.isArray(r)?r.map(pF):Qit(String(r))}function eot(r){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}const tot=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function i3(r,e,t,n,i){if(Dt.isFunction(n))return n.call(this,e,t);if(i&&(e=t),!!Dt.isString(e)){if(Dt.isString(n))return e.indexOf(n)!==-1;if(Dt.isRegExp(n))return n.test(e)}}function rot(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function not(r,e){const t=Dt.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{__proto__:null,value:function(i,o,a){return this[n].call(this,e,i,o,a)},configurable:!0})})}let Vh=class{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function o(l,u,h){const p=dO(u);if(!p)throw new Error("header name must be a non-empty string");const m=Dt.findKey(i,p);(!m||i[m]===void 0||h===!0||h===void 0&&i[m]!==!1)&&(i[m||u]=pF(l))}const a=(l,u)=>Dt.forEach(l,(h,p)=>o(h,p,u));if(Dt.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Dt.isString(e)&&(e=e.trim())&&!tot(e))a(Wit(e),t);else if(Dt.isObject(e)&&Dt.isIterable(e)){let l={},u,h;for(const p of e){if(!Dt.isArray(p))throw TypeError("Object iterator must return a key-value pair");l[h=p[0]]=(u=l[h])?Dt.isArray(u)?[...u,p[1]]:[u,p[1]]:p[1]}a(l,t)}else e!=null&&o(t,e,n);return this}get(e,t){if(e=dO(e),e){const n=Dt.findKey(this,e);if(n){const i=this[n];if(!t)return i;if(t===!0)return eot(i);if(Dt.isFunction(t))return t.call(this,i,n);if(Dt.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=dO(e),e){const n=Dt.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||i3(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let i=!1;function o(a){if(a=dO(a),a){const l=Dt.findKey(n,a);l&&(!t||i3(n,n[l],l,t))&&(delete n[l],i=!0)}}return Dt.isArray(e)?e.forEach(o):o(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const o=t[n];(!e||i3(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const t=this,n={};return Dt.forEach(this,(i,o)=>{const a=Dt.findKey(n,o);if(a){t[a]=pF(i),delete t[o];return}const l=e?rot(o):String(o).trim();l!==o&&delete t[o],t[l]=pF(i),n[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Dt.forEach(this,(n,i)=>{n!=null&&n!==!1&&(t[i]=e&&Dt.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
719`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(i=>n.set(i)),n}static accessor(e){const n=(this[Rse]=this[Rse]={accessors:{}}).accessors,i=this.prototype;function o(a){const l=dO(a);n[l]||(not(i,a),n[l]=!0)}return Dt.isArray(e)?e.forEach(o):o(e),this}};Vh.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Dt.reduceDescriptors(Vh.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(n){this[t]=n}}});Dt.freezeMethods(Vh);const iot="[REDACTED ****]";function oot(r){if(Dt.hasOwnProp(r,"toJSON"))return!0;let e=Object.getPrototypeOf(r);for(;e&&e!==Object.prototype;){if(Dt.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function aot(r,e){const t=new Set(e.map(o=>String(o).toLowerCase())),n=[],i=o=>{if(o===null||typeof o!="object"||Dt.isBuffer(o))return o;if(n.indexOf(o)!==-1)return;o instanceof Vh&&(o=o.toJSON()),n.push(o);let a;if(Dt.isArray(o))a=[],o.forEach((l,u)=>{const h=i(l);Dt.isUndefined(h)||(a[u]=h)});else{if(!Dt.isPlainObject(o)&&oot(o))return n.pop(),o;a=Object.create(null);for(const[l,u]of Object.entries(o)){const h=t.has(l.toLowerCase())?iot:i(u);Dt.isUndefined(h)||(a[l]=h)}}return n.pop(),a};return i(r)}let _n=class Hwe extends Error{static from(e,t,n,i,o,a){const l=new Hwe(e.message,t||e.code,n,i,o);return l.cause=e,l.name=e.name,e.status!=null&&l.status==null&&(l.status=e.status),a&&Object.assign(l,a),l}constructor(e,t,n,i,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&Dt.hasOwnProp(e,"redact")?e.redact:void 0,n=Dt.isArray(t)&&t.length>0?aot(e,t):Dt.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};_n.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";_n.ERR_BAD_OPTION="ERR_BAD_OPTION";_n.ECONNABORTED="ECONNABORTED";_n.ETIMEDOUT="ETIMEDOUT";_n.ECONNREFUSED="ECONNREFUSED";_n.ERR_NETWORK="ERR_NETWORK";_n.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";_n.ERR_DEPRECATED="ERR_DEPRECATED";_n.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";_n.ERR_BAD_REQUEST="ERR_BAD_REQUEST";_n.ERR_CANCELED="ERR_CANCELED";_n.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";_n.ERR_INVALID_URL="ERR_INVALID_URL";_n.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const sot=null;function zY(r){return Dt.isPlainObject(r)||Dt.isArray(r)}function Fwe(r){return Dt.endsWith(r,"[]")?r.slice(0,-2):r}function o3(r,e,t){return r?r.concat(e).map(function(i,o){return i=Fwe(i),!t&&o?"["+i+"]":i}).join(t?".":""):e}function lot(r){return Dt.isArray(r)&&!r.some(zY)}const cot=Dt.toFlatObject(Dt,{},null,function(e){return/^is[A-Z]/.test(e)});function u9(r,e,t){if(!Dt.isObject(r))throw new TypeError("target must be an object");e=e||new FormData,t=Dt.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(R,O){return!Dt.isUndefined(O[R])});const n=t.metaTokens,i=t.visitor||m,o=t.dots,a=t.indexes,l=t.Blob||typeof Blob<"u"&&Blob,u=t.maxDepth===void 0?100:t.maxDepth,h=l&&Dt.isSpecCompliantForm(e);if(!Dt.isFunction(i))throw new TypeError("visitor must be a function");function p(S){if(S===null)return"";if(Dt.isDate(S))return S.toISOString();if(Dt.isBoolean(S))return S.toString();if(!h&&Dt.isBlob(S))throw new _n("Blob is not supported. Use a Buffer instead.");return Dt.isArrayBuffer(S)||Dt.isTypedArray(S)?h&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function m(S,R,O){let N=S;if(Dt.isReactNative(e)&&Dt.isReactNativeBlob(S))return e.append(o3(O,R,o),p(S)),!1;if(S&&!O&&typeof S=="object"){if(Dt.endsWith(R,"{}"))R=n?R:R.slice(0,-2),S=JSON.stringify(S);else if(Dt.isArray(S)&&lot(S)||(Dt.isFileList(S)||Dt.endsWith(R,"[]"))&&(N=Dt.toArray(S)))return R=Fwe(R),N.forEach(function(F,j){!(Dt.isUndefined(F)||F===null)&&e.append(a===!0?o3([R],j,o):a===null?R:R+"[]",p(F))}),!1}return zY(S)?!0:(e.append(o3(O,R,o),p(S)),!1)}const _=[],C=Object.assign(cot,{defaultVisitor:m,convertValue:p,isVisitable:zY});function T(S,R,O=0){if(!Dt.isUndefined(S)){if(O>u)throw new _n("Object is too deeply nested ("+O+" levels). Max depth: "+u,_n.ERR_FORM_DATA_DEPTH_EXCEEDED);if(_.indexOf(S)!==-1)throw Error("Circular reference detected in "+R.join("."));_.push(S),Dt.forEach(S,function(H,F){(!(Dt.isUndefined(H)||H===null)&&i.call(e,H,Dt.isString(F)?F.trim():F,R,C))===!0&&T(H,R?R.concat(F):[F],O+1)}),_.pop()}}if(!Dt.isObject(r))throw new TypeError("data must be an object");return T(r),e}function Pse(r){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(r).replace(/[!'()~]|%20/g,function(n){return e[n]})}function SQ(r,e){this._pairs=[],r&&u9(r,this,e)}const Uwe=SQ.prototype;Uwe.append=function(e,t){this._pairs.push([e,t])};Uwe.toString=function(e){const t=e?function(n){return e.call(this,n,Pse)}:Pse;return this._pairs.map(function(i){return t(i[0])+"="+t(i[1])},"").join("&")};function uot(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Bwe(r,e,t){if(!e)return r;const n=t&&t.encode||uot,i=Dt.isFunction(t)?{serialize:t}:t,o=i&&i.serialize;let a;if(o?a=o(e,i):a=Dt.isURLSearchParams(e)?e.toString():new SQ(e,i).toString(n),a){const l=r.indexOf("#");l!==-1&&(r=r.slice(0,l)),r+=(r.indexOf("?")===-1?"?":"&")+a}return r}class kse{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Dt.forEach(this.handlers,function(n){n!==null&&e(n)})}}const IQ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},dot=typeof URLSearchParams<"u"?URLSearchParams:SQ,hot=typeof FormData<"u"?FormData:null,fot=typeof Blob<"u"?Blob:null,pot={isBrowser:!0,classes:{URLSearchParams:dot,FormData:hot,Blob:fot},protocols:["http","https","file","blob","url","data"]},AQ=typeof window<"u"&&typeof document<"u",jY=typeof navigator=="object"&&navigator||void 0,got=AQ&&(!jY||["ReactNative","NativeScript","NS"].indexOf(jY.product)<0),mot=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",yot=AQ&&window.location.href||"http://localhost",vot=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:AQ,hasStandardBrowserEnv:got,hasStandardBrowserWebWorkerEnv:mot,navigator:jY,origin:yot},Symbol.toStringTag,{value:"Module"})),Ud={...vot,...pot};function _ot(r,e){return u9(r,new Ud.classes.URLSearchParams,{visitor:function(t,n,i,o){return Ud.isNode&&Dt.isBuffer(t)?(this.append(n,t.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...e})}function bot(r){return Dt.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function wot(r){const e={},t=Object.keys(r);let n;const i=t.length;let o;for(n=0;n<i;n++)o=t[n],e[o]=r[o];return e}function $we(r){function e(t,n,i,o){let a=t[o++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),u=o>=t.length;return a=!a&&Dt.isArray(i)?i.length:a,u?(Dt.hasOwnProp(i,a)?i[a]=Dt.isArray(i[a])?i[a].concat(n):[i[a],n]:i[a]=n,!l):((!Dt.hasOwnProp(i,a)||!Dt.isObject(i[a]))&&(i[a]=[]),e(t,n,i[a],o)&&Dt.isArray(i[a])&&(i[a]=wot(i[a])),!l)}if(Dt.isFormData(r)&&Dt.isFunction(r.entries)){const t={};return Dt.forEachEntry(r,(n,i)=>{e(bot(n),i,t,0)}),t}return null}const ZI=(r,e)=>r!=null&&Dt.hasOwnProp(r,e)?r[e]:void 0;function Eot(r,e,t){if(Dt.isString(r))try{return(e||JSON.parse)(r),Dt.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}const NL={transitional:IQ,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=Dt.isObject(e);if(o&&Dt.isHTMLForm(e)&&(e=new FormData(e)),Dt.isFormData(e))return i?JSON.stringify($we(e)):e;if(Dt.isArrayBuffer(e)||Dt.isBuffer(e)||Dt.isStream(e)||Dt.isFile(e)||Dt.isBlob(e)||Dt.isReadableStream(e))return e;if(Dt.isArrayBufferView(e))return e.buffer;if(Dt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(o){const u=ZI(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return _ot(e,u).toString();if((l=Dt.isFileList(e))||n.indexOf("multipart/form-data")>-1){const h=ZI(this,"env"),p=h&&h.FormData;return u9(l?{"files[]":e}:e,p&&new p,u)}}return o||i?(t.setContentType("application/json",!1),Eot(e)):e}],transformResponse:[function(e){const t=ZI(this,"transitional")||NL.transitional,n=t&&t.forcedJSONParsing,i=ZI(this,"responseType"),o=i==="json";if(Dt.isResponse(e)||Dt.isReadableStream(e))return e;if(e&&Dt.isString(e)&&(n&&!i||o)){const l=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,ZI(this,"parseReviver"))}catch(u){if(l)throw u.name==="SyntaxError"?_n.from(u,_n.ERR_BAD_RESPONSE,this,null,ZI(this,"response")):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ud.classes.FormData,Blob:Ud.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Dt.forEach(["delete","get","head","post","put","patch","query"],r=>{NL.headers[r]={}});function a3(r,e){const t=this||NL,n=e||t,i=Vh.from(n.headers);let o=n.data;return Dt.forEach(r,function(l){o=l.call(t,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function zwe(r){return!!(r&&r.__CANCEL__)}let DL=class extends _n{constructor(e,t,n){super(e??"canceled",_n.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function jwe(r,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new _n("Request failed with status code "+t.status,t.status>=400&&t.status<500?_n.ERR_BAD_REQUEST:_n.ERR_BAD_RESPONSE,t.config,t.request,t))}function Cot(r){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(r);return e&&e[1]||""}function xot(r,e){r=r||10;const t=new Array(r),n=new Array(r);let i=0,o=0,a;return e=e!==void 0?e:1e3,function(u){const h=Date.now(),p=n[o];a||(a=h),t[i]=u,n[i]=h;let m=o,_=0;for(;m!==i;)_+=t[m++],m=m%r;if(i=(i+1)%r,i===o&&(o=(o+1)%r),h-a<e)return;const C=p&&h-p;return C?Math.round(_*1e3/C):void 0}}function Tot(r,e){let t=0,n=1e3/e,i,o;const a=(h,p=Date.now())=>{t=p,i=null,o&&(clearTimeout(o),o=null),r(...h)};return[(...h)=>{const p=Date.now(),m=p-t;m>=n?a(h,p):(i=h,o||(o=setTimeout(()=>{o=null,a(i)},n-m)))},()=>i&&a(i)]}const uB=(r,e,t=3)=>{let n=0;const i=xot(50,250);return Tot(o=>{if(!o||typeof o.loaded!="number")return;const a=o.loaded,l=o.lengthComputable?o.total:void 0,u=l!=null?Math.min(a,l):a,h=Math.max(0,u-n),p=i(h);n=Math.max(n,u);const m={loaded:u,total:l,progress:l?u/l:void 0,bytes:h,rate:p||void 0,estimated:p&&l?(l-u)/p:void 0,event:o,lengthComputable:l!=null,[e?"download":"upload"]:!0};r(m)},t)},Ose=(r,e)=>{const t=r!=null;return[n=>e[0]({lengthComputable:t,total:r,loaded:n}),e[1]]},Mse=r=>(...e)=>Dt.asap(()=>r(...e)),Sot=Ud.hasStandardBrowserEnv?((r,e)=>t=>(t=new URL(t,Ud.origin),r.protocol===t.protocol&&r.host===t.host&&(e||r.port===t.port)))(new URL(Ud.origin),Ud.navigator&&/(msie|trident)/i.test(Ud.navigator.userAgent)):()=>!0,Iot=Ud.hasStandardBrowserEnv?{write(r,e,t,n,i,o,a){if(typeof document>"u")return;const l=[`${r}=${encodeURIComponent(e)}`];Dt.isNumber(t)&&l.push(`expires=${new Date(t).toUTCString()}`),Dt.isString(n)&&l.push(`path=${n}`),Dt.isString(i)&&l.push(`domain=${i}`),o===!0&&l.push("secure"),Dt.isString(a)&&l.push(`SameSite=${a}`),document.cookie=l.join("; ")},read(r){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let t=0;t<e.length;t++){const n=e[t].replace(/^\s+/,""),i=n.indexOf("=");if(i!==-1&&n.slice(0,i)===r)return decodeURIComponent(n.slice(i+1))}return null},remove(r){this.write(r,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Aot(r){return typeof r!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function Rot(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function Vwe(r,e,t){let n=!Aot(e);return r&&(n||t===!1)?Rot(r,e):e}const Nse=r=>r instanceof Vh?{...r}:r;function yS(r,e){e=e||{};const t=Object.create(null);Object.defineProperty(t,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(h,p,m,_){return Dt.isPlainObject(h)&&Dt.isPlainObject(p)?Dt.merge.call({caseless:_},h,p):Dt.isPlainObject(p)?Dt.merge({},p):Dt.isArray(p)?p.slice():p}function i(h,p,m,_){if(Dt.isUndefined(p)){if(!Dt.isUndefined(h))return n(void 0,h,m,_)}else return n(h,p,m,_)}function o(h,p){if(!Dt.isUndefined(p))return n(void 0,p)}function a(h,p){if(Dt.isUndefined(p)){if(!Dt.isUndefined(h))return n(void 0,h)}else return n(void 0,p)}function l(h,p,m){if(Dt.hasOwnProp(e,m))return n(h,p);if(Dt.hasOwnProp(r,m))return n(void 0,h)}const u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:l,headers:(h,p,m)=>i(Nse(h),Nse(p),m,!0)};return Dt.forEach(Object.keys({...r,...e}),function(p){if(p==="__proto__"||p==="constructor"||p==="prototype")return;const m=Dt.hasOwnProp(u,p)?u[p]:i,_=Dt.hasOwnProp(r,p)?r[p]:void 0,C=Dt.hasOwnProp(e,p)?e[p]:void 0,T=m(_,C,p);Dt.isUndefined(T)&&m!==l||(t[p]=T)}),t}const Pot=["content-type","content-length"];function kot(r,e,t){if(t!=="content-only"){r.set(e);return}Object.entries(e).forEach(([n,i])=>{Pot.includes(n.toLowerCase())&&r.set(n,i)})}const Oot=r=>encodeURIComponent(r).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),qwe=r=>{const e=yS({},r),t=_=>Dt.hasOwnProp(e,_)?e[_]:void 0,n=t("data");let i=t("withXSRFToken");const o=t("xsrfHeaderName"),a=t("xsrfCookieName");let l=t("headers");const u=t("auth"),h=t("baseURL"),p=t("allowAbsoluteUrls"),m=t("url");if(e.headers=l=Vh.from(l),e.url=Bwe(Vwe(h,m,p),r.params,r.paramsSerializer),u&&l.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?Oot(u.password):""))),Dt.isFormData(n)&&(Ud.hasStandardBrowserEnv||Ud.hasStandardBrowserWebWorkerEnv?l.setContentType(void 0):Dt.isFunction(n.getHeaders)&&kot(l,n.getHeaders(),t("formDataHeaderPolicy"))),Ud.hasStandardBrowserEnv&&(Dt.isFunction(i)&&(i=i(e)),i===!0||i==null&&Sot(e.url))){const C=o&&a&&Iot.read(a);C&&l.set(o,C)}return e},Mot=typeof XMLHttpRequest<"u",Not=Mot&&function(r){return new Promise(function(t,n){const i=qwe(r);let o=i.data;const a=Vh.from(i.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:h}=i,p,m,_,C,T;function S(){C&&C(),T&&T(),i.cancelToken&&i.cancelToken.unsubscribe(p),i.signal&&i.signal.removeEventListener("abort",p)}let R=new XMLHttpRequest;R.open(i.method.toUpperCase(),i.url,!0),R.timeout=i.timeout;function O(){if(!R)return;const H=Vh.from("getAllResponseHeaders"in R&&R.getAllResponseHeaders()),j={data:!l||l==="text"||l==="json"?R.responseText:R.response,status:R.status,statusText:R.statusText,headers:H,config:r,request:R};jwe(function(B){t(B),S()},function(B){n(B),S()},j),R=null}"onloadend"in R?R.onloadend=O:R.onreadystatechange=function(){!R||R.readyState!==4||R.status===0&&!(R.responseURL&&R.responseURL.startsWith("file:"))||setTimeout(O)},R.onabort=function(){R&&(n(new _n("Request aborted",_n.ECONNABORTED,r,R)),S(),R=null)},R.onerror=function(F){const j=F&&F.message?F.message:"Network Error",L=new _n(j,_n.ERR_NETWORK,r,R);L.event=F||null,n(L),S(),R=null},R.ontimeout=function(){let F=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const j=i.transitional||IQ;i.timeoutErrorMessage&&(F=i.timeoutErrorMessage),n(new _n(F,j.clarifyTimeoutError?_n.ETIMEDOUT:_n.ECONNABORTED,r,R)),S(),R=null},o===void 0&&a.setContentType(null),"setRequestHeader"in R&&Dt.forEach(Lwe(a),function(F,j){R.setRequestHeader(j,F)}),Dt.isUndefined(i.withCredentials)||(R.withCredentials=!!i.withCredentials),l&&l!=="json"&&(R.responseType=i.responseType),h&&([_,T]=uB(h,!0),R.addEventListener("progress",_)),u&&R.upload&&([m,C]=uB(u),R.upload.addEventListener("progress",m),R.upload.addEventListener("loadend",C)),(i.cancelToken||i.signal)&&(p=H=>{R&&(n(!H||H.type?new DL(null,r,R):H),R.abort(),S(),R=null)},i.cancelToken&&i.cancelToken.subscribe(p),i.signal&&(i.signal.aborted?p():i.signal.addEventListener("abort",p)));const N=Cot(i.url);if(N&&!Ud.protocols.includes(N)){n(new _n("Unsupported protocol "+N+":",_n.ERR_BAD_REQUEST,r));return}R.send(o||null)})},Dot=(r,e)=>{if(r=r?r.filter(Boolean):[],!e&&!r.length)return;const t=new AbortController;let n=!1;const i=function(u){if(!n){n=!0,a();const h=u instanceof Error?u:this.reason;t.abort(h instanceof _n?h:new DL(h instanceof Error?h.message:h))}};let o=e&&setTimeout(()=>{o=null,i(new _n(`timeout of ${e}ms exceeded`,_n.ETIMEDOUT))},e);const a=()=>{r&&(o&&clearTimeout(o),o=null,r.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),r=null)};r.forEach(u=>u.addEventListener("abort",i));const{signal:l}=t;return l.unsubscribe=()=>Dt.asap(a),l},Lot=function*(r,e){let t=r.byteLength;if(t<e){yield r;return}let n=0,i;for(;n<t;)i=n+e,yield r.slice(n,i),n=i},Hot=async function*(r,e){for await(const t of Fot(r))yield*Lot(t,e)},Fot=async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}const e=r.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},Dse=(r,e,t,n)=>{const i=Hot(r,e);let o=0,a,l=u=>{a||(a=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:h,value:p}=await i.next();if(h){l(),u.close();return}let m=p.byteLength;if(t){let _=o+=m;t(_)}u.enqueue(new Uint8Array(p))}catch(h){throw l(h),h}},cancel(u){return l(u),i.return()}},{highWaterMark:2})};function Uot(r){if(!r||typeof r!="string"||!r.startsWith("data:"))return 0;const e=r.indexOf(",");if(e<0)return 0;const t=r.slice(5,e),n=r.slice(e+1);if(/;base64/i.test(t)){let a=n.length;const l=n.length;for(let C=0;C<l;C++)if(n.charCodeAt(C)===37&&C+2<l){const T=n.charCodeAt(C+1),S=n.charCodeAt(C+2);(T>=48&&T<=57||T>=65&&T<=70||T>=97&&T<=102)&&(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102)&&(a-=2,C+=2)}let u=0,h=l-1;const p=C=>C>=2&&n.charCodeAt(C-2)===37&&n.charCodeAt(C-1)===51&&(n.charCodeAt(C)===68||n.charCodeAt(C)===100);h>=0&&(n.charCodeAt(h)===61?(u++,h--):p(h)&&(u++,h-=3)),u===1&&h>=0&&(n.charCodeAt(h)===61||p(h))&&u++;const _=Math.floor(a/4)*3-(u||0);return _>0?_:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(n,"utf8");let o=0;for(let a=0,l=n.length;a<l;a++){const u=n.charCodeAt(a);if(u<128)o+=1;else if(u<2048)o+=2;else if(u>=55296&&u<=56319&&a+1<l){const h=n.charCodeAt(a+1);h>=56320&&h<=57343?(o+=4,a++):o+=3}else o+=3}return o}const RQ="1.16.1",Lse=64*1024,{isFunction:D6}=Dt,Hse=(r,...e)=>{try{return!!r(...e)}catch{return!1}},Bot=r=>{const e=Dt.global!==void 0&&Dt.global!==null?Dt.global:globalThis,{ReadableStream:t,TextEncoder:n}=e;r=Dt.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},r);const{fetch:i,Request:o,Response:a}=r,l=i?D6(i):typeof fetch=="function",u=D6(o),h=D6(a);if(!l)return!1;const p=l&&D6(t),m=l&&(typeof n=="function"?(O=>N=>O.encode(N))(new n):async O=>new Uint8Array(await new o(O).arrayBuffer())),_=u&&p&&Hse(()=>{let O=!1;const N=new o(Ud.origin,{body:new t,method:"POST",get duplex(){return O=!0,"half"}}),H=N.headers.has("Content-Type");return N.body!=null&&N.body.cancel(),O&&!H}),C=h&&p&&Hse(()=>Dt.isReadableStream(new a("").body)),T={stream:C&&(O=>O.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(O=>{!T[O]&&(T[O]=(N,H)=>{let F=N&&N[O];if(F)return F.call(N);throw new _n(`Response type '${O}' is not supported`,_n.ERR_NOT_SUPPORT,H)})});const S=async O=>{if(O==null)return 0;if(Dt.isBlob(O))return O.size;if(Dt.isSpecCompliantForm(O))return(await new o(Ud.origin,{method:"POST",body:O}).arrayBuffer()).byteLength;if(Dt.isArrayBufferView(O)||Dt.isArrayBuffer(O))return O.byteLength;if(Dt.isURLSearchParams(O)&&(O=O+""),Dt.isString(O))return(await m(O)).byteLength},R=async(O,N)=>{const H=Dt.toFiniteNumber(O.getContentLength());return H??S(N)};return async O=>{let{url:N,method:H,data:F,signal:j,cancelToken:L,timeout:B,onDownloadProgress:Q,onUploadProgress:Z,responseType:ie,headers:J,withCredentials:ne="same-origin",fetchOptions:ue,maxContentLength:K,maxBodyLength:se}=qwe(O);const be=Dt.isNumber(K)&&K>-1,de=Dt.isNumber(se)&&se>-1;let ge=i||fetch;ie=ie?(ie+"").toLowerCase():"text";let Ue=Dot([j,L&&L.toAbortSignal()],B),Qe=null;const ve=Ue&&Ue.unsubscribe&&(()=>{Ue.unsubscribe()});let pe;try{if(be&&typeof N=="string"&&N.startsWith("data:")&&Uot(N)>K)throw new _n("maxContentLength size of "+K+" exceeded",_n.ERR_BAD_RESPONSE,O,Qe);if(de&&H!=="get"&&H!=="head"){const qe=await R(J,F);if(typeof qe=="number"&&isFinite(qe)&&qe>se)throw new _n("Request body larger than maxBodyLength limit",_n.ERR_BAD_REQUEST,O,Qe)}if(Z&&_&&H!=="get"&&H!=="head"&&(pe=await R(J,F))!==0){let qe=new o(N,{method:"POST",body:F,duplex:"half"}),lt;if(Dt.isFormData(F)&&(lt=qe.headers.get("content-type"))&&J.setContentType(lt),qe.body){const[Et,Oe]=Ose(pe,uB(Mse(Z)));F=Dse(qe.body,Lse,Et,Oe)}}Dt.isString(ne)||(ne=ne?"include":"omit");const He=u&&"credentials"in o.prototype;if(Dt.isFormData(F)){const qe=J.getContentType();qe&&/^multipart\/form-data/i.test(qe)&&!/boundary=/i.test(qe)&&J.delete("content-type")}J.set("User-Agent","axios/"+RQ,!1);const Re={...ue,signal:Ue,method:H.toUpperCase(),headers:Lwe(J.normalize()),body:F,duplex:"half",credentials:He?ne:void 0};Qe=u&&new o(N,Re);let $e=await(u?ge(Qe,ue):ge(N,Re));if(be){const qe=Dt.toFiniteNumber($e.headers.get("content-length"));if(qe!=null&&qe>K)throw new _n("maxContentLength size of "+K+" exceeded",_n.ERR_BAD_RESPONSE,O,Qe)}const tt=C&&(ie==="stream"||ie==="response");if(C&&$e.body&&(Q||be||tt&&ve)){const qe={};["status","statusText","headers"].forEach(te=>{qe[te]=$e[te]});const lt=Dt.toFiniteNumber($e.headers.get("content-length")),[Et,Oe]=Q&&Ose(lt,uB(Mse(Q),!0))||[];let le=0;const re=te=>{if(be&&(le=te,le>K))throw new _n("maxContentLength size of "+K+" exceeded",_n.ERR_BAD_RESPONSE,O,Qe);Et&&Et(te)};$e=new a(Dse($e.body,Lse,re,()=>{Oe&&Oe(),ve&&ve()}),qe)}ie=ie||"text";let ot=await T[Dt.findKey(T,ie)||"text"]($e,O);if(be&&!C&&!tt){let qe;if(ot!=null&&(typeof ot.byteLength=="number"?qe=ot.byteLength:typeof ot.size=="number"?qe=ot.size:typeof ot=="string"&&(qe=typeof n=="function"?new n().encode(ot).byteLength:ot.length)),typeof qe=="number"&&qe>K)throw new _n("maxContentLength size of "+K+" exceeded",_n.ERR_BAD_RESPONSE,O,Qe)}return!tt&&ve&&ve(),await new Promise((qe,lt)=>{jwe(qe,lt,{data:ot,headers:Vh.from($e.headers),status:$e.status,statusText:$e.statusText,config:O,request:Qe})})}catch(He){if(ve&&ve(),Ue&&Ue.aborted&&Ue.reason instanceof _n){const Re=Ue.reason;throw Re.config=O,Qe&&(Re.request=Qe),He!==Re&&(Re.cause=He),Re}throw He&&He.name==="TypeError"&&/Load failed|fetch/i.test(He.message)?Object.assign(new _n("Network Error",_n.ERR_NETWORK,O,Qe,He&&He.response),{cause:He.cause||He}):_n.from(He,He&&He.code,O,Qe,He&&He.response)}}},$ot=new Map,Gwe=r=>{let e=r&&r.env||{};const{fetch:t,Request:n,Response:i}=e,o=[n,i,t];let a=o.length,l=a,u,h,p=$ot;for(;l--;)u=o[l],h=p.get(u),h===void 0&&p.set(u,h=l?new Map:Bot(e)),p=h;return h};Gwe();const PQ={http:sot,xhr:Not,fetch:{get:Gwe}};Dt.forEach(PQ,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(r,"adapterName",{__proto__:null,value:e})}});const Fse=r=>`- ${r}`,zot=r=>Dt.isFunction(r)||r===null||r===!1;function jot(r,e){r=Dt.isArray(r)?r:[r];const{length:t}=r;let n,i;const o={};for(let a=0;a<t;a++){n=r[a];let l;if(i=n,!zot(n)&&(i=PQ[(l=String(n)).toLowerCase()],i===void 0))throw new _n(`Unknown adapter '${l}'`);if(i&&(Dt.isFunction(i)||(i=i.get(e))))break;o[l||"#"+a]=i}if(!i){const a=Object.entries(o).map(([u,h])=>`adapter ${u} `+(h===!1?"is not supported by the environment":"is not available in the build"));let l=t?a.length>1?`since :
720`+a.map(Fse).join(`
721`):" "+Fse(a[0]):"as no adapter specified";throw new _n("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i}const Ywe={getAdapter:jot,adapters:PQ};function s3(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new DL(null,r)}function Use(r){return s3(r),r.headers=Vh.from(r.headers),r.data=a3.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),Ywe.getAdapter(r.adapter||NL.adapter,r)(r).then(function(n){s3(r),r.response=n;try{n.data=a3.call(r,r.transformResponse,n)}finally{delete r.response}return n.headers=Vh.from(n.headers),n},function(n){if(!zwe(n)&&(s3(r),n&&n.response)){r.response=n.response;try{n.response.data=a3.call(r,r.transformResponse,n.response)}finally{delete r.response}n.response.headers=Vh.from(n.response.headers)}return Promise.reject(n)})}const d9={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{d9[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});const Bse={};d9.transitional=function(e,t,n){function i(o,a){return"[Axios v"+RQ+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return(o,a,l)=>{if(e===!1)throw new _n(i(a," has been removed"+(t?" in "+t:"")),_n.ERR_DEPRECATED);return t&&!Bse[a]&&(Bse[a]=!0,console.warn(i(a," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,a,l):!0}};d9.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Vot(r,e,t){if(typeof r!="object")throw new _n("options must be an object",_n.ERR_BAD_OPTION_VALUE);const n=Object.keys(r);let i=n.length;for(;i-- >0;){const o=n[i],a=Object.prototype.hasOwnProperty.call(e,o)?e[o]:void 0;if(a){const l=r[o],u=l===void 0||a(l,o,r);if(u!==!0)throw new _n("option "+o+" must be "+u,_n.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new _n("Unknown option "+o,_n.ERR_BAD_OPTION)}}const gF={assertOptions:Vot,validators:d9},lm=gF.validators;let qT=class{constructor(e){this.defaults=e||{},this.interceptors={request:new kse,response:new kse}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=(()=>{if(!i.stack)return"";const a=i.stack.indexOf(`
722`);return a===-1?"":i.stack.slice(a+1)})();try{if(!n.stack)n.stack=o;else if(o){const a=o.indexOf(`
723`),l=a===-1?-1:o.indexOf(`
724`,a+1),u=l===-1?"":o.slice(l+1);String(n.stack).endsWith(u)||(n.stack+=`
725`+o)}}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=yS(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:o}=t;n!==void 0&&gF.assertOptions(n,{silentJSONParsing:lm.transitional(lm.boolean),forcedJSONParsing:lm.transitional(lm.boolean),clarifyTimeoutError:lm.transitional(lm.boolean),legacyInterceptorReqResOrdering:lm.transitional(lm.boolean)},!1),i!=null&&(Dt.isFunction(i)?t.paramsSerializer={serialize:i}:gF.assertOptions(i,{encode:lm.function,serialize:lm.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),gF.assertOptions(t,{baseUrl:lm.spelling("baseURL"),withXsrfToken:lm.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&Dt.merge(o.common,o[t.method]);o&&Dt.forEach(["delete","get","head","post","put","patch","query","common"],T=>{delete o[T]}),t.headers=Vh.concat(a,o);const l=[];let u=!0;this.interceptors.request.forEach(function(S){if(typeof S.runWhen=="function"&&S.runWhen(t)===!1)return;u=u&&S.synchronous;const R=t.transitional||IQ;R&&R.legacyInterceptorReqResOrdering?l.unshift(S.fulfilled,S.rejected):l.push(S.fulfilled,S.rejected)});const h=[];this.interceptors.response.forEach(function(S){h.push(S.fulfilled,S.rejected)});let p,m=0,_;if(!u){const T=[Use.bind(this),void 0];for(T.unshift(...l),T.push(...h),_=T.length,p=Promise.resolve(t);m<_;)p=p.then(T[m++],T[m++]);return p}_=l.length;let C=t;for(;m<_;){const T=l[m++],S=l[m++];try{C=T(C)}catch(R){S.call(this,R);break}}try{p=Use.call(this,C)}catch(T){return Promise.reject(T)}for(m=0,_=h.length;m<_;)p=p.then(h[m++],h[m++]);return p}getUri(e){e=yS(this.defaults,e);const t=Vwe(e.baseURL,e.url,e.allowAbsoluteUrls);return Bwe(t,e.params,e.paramsSerializer)}};Dt.forEach(["delete","get","head","options"],function(e){qT.prototype[e]=function(t,n){return this.request(yS(n||{},{method:e,url:t,data:(n||{}).data}))}});Dt.forEach(["post","put","patch","query"],function(e){function t(n){return function(o,a,l){return this.request(yS(l||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}qT.prototype[e]=t(),e!=="query"&&(qT.prototype[e+"Form"]=t(!0))});let qot=class Wwe{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(o){t=o});const n=this;this.promise.then(i=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(l=>{n.subscribe(l),o=l}).then(i);return a.cancel=function(){n.unsubscribe(o)},a},e(function(o,a,l){n.reason||(n.reason=new DL(o,a,l),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
725subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=n=>{e.abort(n)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Wwe(function(i){e=i}),cancel:e}}};function Got(r){return function(t){return r.apply(null,t)}}function Yot(r){return Dt.isObject(r)&&r.isAxiosError===!0}const VY={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(VY).forEach(([r,e])=>{VY[e]=r});function Kwe(r){const e=new qT(r),t=Awe(qT.prototype.request,e);return Dt.extend(t,qT.prototype,e,{allOwnKeys:!0}),Dt.extend(t,e,null,{allOwnKeys:!0}),t.create=function(i){return Kwe(yS(r,i))},t}const Al=Kwe(NL);Al.Axios=qT;Al.CanceledError=DL;Al.CancelToken=qot;Al.isCancel=zwe;Al.VERSION=RQ;Al.toFormData=u9;Al.AxiosError=_n;Al.Cancel=Al.CanceledError;Al.all=function(e){return Promise.all(e)};Al.spread=Got;Al.isAxiosError=Yot;Al.mergeConfig=yS;Al.AxiosHeaders=Vh;Al.formToJSON=r=>$we(Dt.isHTMLForm(r)?new FormData(r):r);Al.getAdapter=Ywe.getAdapter;Al.HttpStatusCode=VY;Al.default=Al;const{Axios:Jkt,AxiosError:Wot,CanceledError:e2t,isCancel:t2t,CancelToken:r2t,VERSION:n2t,all:i2t,Cancel:o2t,isAxiosError:a2t,spread:s2t,toFormData:l2t,AxiosHeaders:c2t,HttpStatusCode:u2t,formToJSON:d2t,getAdapter:h2t,mergeConfig:f2t,create:p2t}=Al;function dB(r){"@babel/helpers - typeof";return dB=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dB(r)}function vS(r){if(r===null||r===!0||r===!1)return NaN;var e=Number(r);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Zh(r,e){if(e.length<r)throw new TypeError(r+" argument"+(r>1?"s":"")+" required, but only "+e.length+" present")}function A_(r){Zh(1,arguments);var e=Object.prototype.toString.call(r);return r instanceof Date||dB(r)==="object"&&e==="[object Date]"?new Date(r.getTime()):typeof r=="number"||e==="[object Number]"?new Date(r):((typeof r=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Kot(r,e){Zh(2,arguments);var t=A_(r).getTime(),n=vS(e);return new Date(t+n)}var Zot={};function h9(){return Zot}function Xot(r){var e=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return e.setUTCFullYear(r.getFullYear()),r.getTime()-e.getTime()}function Qot(r){return Zh(1,arguments),r instanceof Date||dB(r)==="object"&&Object.prototype.toString.call(r)==="[object Date]"}function Jot(r){if(Zh(1,arguments),!Qot(r)&&typeof r!="number")return!1;var e=A_(r);return!isNaN(Number(e))}function eat(r,e){Zh(2,arguments);var t=vS(e);return Kot(r,-t)}
vendor: 12,189 bytes, line 725
725var tat=864e5;function rat(r){Zh(1,arguments);var e=A_(r),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var n=e.getTime(),i=t-n;return Math.floor(i/tat)+1}function hB(r){Zh(1,arguments);var e=1,t=A_(r),n=t.getUTCDay(),i=(n<e?7:0)+n-e;return t.setUTCDate(t.getUTCDate()-i),t.setUTCHours(0,0,0,0),t}function Zwe(r){Zh(1,arguments);var e=A_(r),t=e.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(t+1,0,4),n.setUTCHours(0,0,0,0);var i=hB(n),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var a=hB(o);return e.getTime()>=i.getTime()?t+1:e.getTime()>=a.getTime()?t:t-1}function nat(r){Zh(1,arguments);var e=Zwe(r),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var n=hB(t);return n}var iat=6048e5;function oat(r){Zh(1,arguments);var e=A_(r),t=hB(e).getTime()-nat(e).getTime();return Math.round(t/iat)+1}function fB(r,e){var t,n,i,o,a,l,u,h;Zh(1,arguments);var p=h9(),m=vS((t=(n=(i=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:p.weekStartsOn)!==null&&n!==void 0?n:(u=p.locale)===null||u===void 0||(h=u.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&t!==void 0?t:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var _=A_(r),C=_.getUTCDay(),T=(C<m?7:0)+C-m;return _.setUTCDate(_.getUTCDate()-T),_.setUTCHours(0,0,0,0),_}function Xwe(r,e){var t,n,i,o,a,l,u,h;Zh(1,arguments);var p=A_(r),m=p.getUTCFullYear(),_=h9(),C=vS((t=(n=(i=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&i!==void 0?i:_.firstWeekContainsDate)!==null&&n!==void 0?n:(u=_.locale)===null||u===void 0||(h=u.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(m+1,0,C),T.setUTCHours(0,0,0,0);var S=fB(T,e),R=new Date(0);R.setUTCFullYear(m,0,C),R.setUTCHours(0,0,0,0);var O=fB(R,e);return p.getTime()>=S.getTime()?m+1:p.getTime()>=O.getTime()?m:m-1}function aat(r,e){var t,n,i,o,a,l,u,h;Zh(1,arguments);var p=h9(),m=vS((t=(n=(i=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&i!==void 0?i:p.firstWeekContainsDate)!==null&&n!==void 0?n:(u=p.locale)===null||u===void 0||(h=u.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&t!==void 0?t:1),_=Xwe(r,e),C=new Date(0);C.setUTCFullYear(_,0,m),C.setUTCHours(0,0,0,0);var T=fB(C,e);return T}var sat=6048e5;function lat(r,e){Zh(1,arguments);var t=A_(r),n=fB(t,e).getTime()-aat(t,e).getTime();return Math.round(n/sat)+1}function va(r,e){for(var t=r<0?"-":"",n=Math.abs(r).toString();n.length<e;)n="0"+n;return t+n}var Iw={y:function(e,t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return va(t==="yy"?i%100:i,t.length)},M:function(e,t){var n=e.getUTCMonth();return t==="M"?String(n+1):va(n+1,2)},d:function(e,t){return va(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(e,t){return va(e.getUTCHours()%12||12,t.length)},H:function(e,t){return va(e.getUTCHours(),t.length)},m:function(e,t){return va(e.getUTCMinutes(),t.length)},s:function(e,t){return va(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,i=e.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,n-3));return va(o,t.length)}},XI={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},cat={G:function(e,t,n){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){var i=e.getUTCFullYear(),o=i>0?i:1-i;return n.ordinalNumber(o,{unit:"year"})}return Iw.y(e,t)},Y:function(e,t,n,i){var o=Xwe(e,i),a=o>0?o:1-o;if(t==="YY"){var l=a%100;return va(l,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):va(a,t.length)},R:function(e,t){var n=Zwe(e);return va(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return va(n,t.length)},Q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return va(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return va(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){var i=e.getUTCMonth();switch(t){case"M":case"MM":return Iw.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return va(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){var o=lat(e,i);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):va(o,t.length)},I:function(e,t,n){var i=oat(e);return t==="Io"?n.ordinalNumber(i,{unit:"week"}):va(i,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):Iw.d(e,t)},D:function(e,t,n){var i=rat(e);return t==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):va(i,t.length)},E:function(e,t,n){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){var o=e.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return va(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){var o=e.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return va(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var i=e.getUTCDay(),o=i===0?7:i;switch(t){case"i":return String(o);case"ii":return va(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){var i=e.getUTCHours(),o=i/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){var i=e.getUTCHours(),o;switch(i===12?o=XI.noon:i===0?o=XI.midnight:o=i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){var i=e.getUTCHours(),o;switch(i>=17?o=XI.evening:i>=12?o=XI.afternoon:i>=4?o=XI.morning:o=XI.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return Iw.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Iw.H(e,t)},K:function(e,t,n){var i=e.getUTCHours()%12;return t==="Ko"?n.ordinalNumber(i,{unit:"hour"}):va(i,t.length)},k:function(e,t,n){var i=e.getUTCHours();return i===0&&(i=24),t==="ko"?n.ordinalNumber(i,{unit:"hour"}):va(i,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Iw.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Iw.s(e,t)},S:function(e,t){return Iw.S(e,t)},X:function(e,t,n,i){var o=i._originalDate||e,a=o.getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return zse(a);case"XXXX":case"XX":return kx(a);case"XXXXX":case"XXX":default:return kx(a,":")}},x:function(e,t,n,i){var o=i._originalDate||e,a=o.getTimezoneOffset();switch(t){case"x":return zse(a);case"xxxx":case"xx":return kx(a);case"xxxxx":case"xxx":default:return kx(a,":")}},O:function(e,t,n,i){var o=i._originalDate||e,a=o.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+$se(a,":");case"OOOO":default:return"GMT"+kx(a,":")}},z:function(e,t,n,i){var o=i._originalDate||e,a=o.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+$se(a,":");case"zzzz":default:return"GMT"+kx(a,":")}},t:function(e,t,n,i){var o=i._originalDate||e,a=Math.floor(o.getTime()/1e3);return va(a,t.length)},T:function(e,t,n,i){var o=i._originalDate||e,a=o.getTime();return va(a,t.length)}};function $se(r,e){var t=r>0?"-":"+",n=Math.abs(r),i=Math.floor(n/60),o=n%60;if(o===0)return t+String(i);var a=e;return t+String(i)+a+va(o,2)}function zse(r,e){if(r%60===0){var t=r>0?"-":"+";return t+va(Math.abs(r)/60,2)}return kx(r,e)}function kx(r,e){var t=e||"",n=r>0?"-":"+",i=Math.abs(r),o=va(Math.floor(i/60),2),a=va(i%60,2);return n+o+t+a}var jse=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Qwe=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},uat=function(e,t){var n=e.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return jse(e,t);var a;switch(i){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",jse(i,t)).replace("{{time}}",Qwe(o,t))},dat={p:Qwe,P:uat},hat=["D","DD"],fat=["YY","YYYY"];function pat(r){return hat.indexOf(r)!==-1}function gat(r){return fat.indexOf(r)!==-1}function Vse(r,e,t){if(r==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").
vendor: 4,927 bytes, line 725
725concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var mat={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},yat=function(e,t,n){var i,o=mat[e];return typeof o=="string"?i=o:t===1?i=o.one:i=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function l3(r){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):r.defaultWidth,n=r.formats[t]||r.formats[r.defaultWidth];return n}}var vat={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},_at={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},bat={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},wat={date:l3({formats:vat,defaultWidth:"full"}),time:l3({formats:_at,defaultWidth:"full"}),dateTime:l3({formats:bat,defaultWidth:"full"})},Eat={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Cat=function(e,t,n,i){return Eat[e]};function hO(r){return function(e,t){var n=t!=null&&t.context?String(t.context):"standalone",i;if(n==="formatting"&&r.formattingValues){var o=r.defaultFormattingWidth||r.defaultWidth,a=t!=null&&t.width?String(t.width):o;i=r.formattingValues[a]||r.formattingValues[o]}else{var l=r.defaultWidth,u=t!=null&&t.width?String(t.width):r.defaultWidth;i=r.values[u]||r.values[l]}var h=r.argumentCallback?r.argumentCallback(e):e;return i[h]}}var xat={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Tat={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Sat={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Iat={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Aat={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Rat={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Pat=function(e,t){var n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},kat={ordinalNumber:Pat,era:hO({values:xat,defaultWidth:"wide"}),quarter:hO({values:Tat,defaultWidth:"wide",argumentCallback:function(e){return e-1}}
vendor: 5,020 bytes, line 725
725),month:hO({values:Sat,defaultWidth:"wide"}),day:hO({values:Iat,defaultWidth:"wide"}),dayPeriod:hO({values:Aat,defaultWidth:"wide",formattingValues:Rat,defaultFormattingWidth:"wide"})};function fO(r){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.width,i=n&&r.matchPatterns[n]||r.matchPatterns[r.defaultMatchWidth],o=e.match(i);if(!o)return null;var a=o[0],l=n&&r.parsePatterns[n]||r.parsePatterns[r.defaultParseWidth],u=Array.isArray(l)?Mat(l,function(m){return m.test(a)}):Oat(l,function(m){return m.test(a)}),h;h=r.valueCallback?r.valueCallback(u):u,h=t.valueCallback?t.valueCallback(h):h;var p=e.slice(a.length);return{value:h,rest:p}}}function Oat(r,e){for(var t in r)if(r.hasOwnProperty(t)&&e(r[t]))return t}function Mat(r,e){for(var t=0;t<r.length;t++)if(e(r[t]))return t}function Nat(r){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.match(r.matchPattern);if(!n)return null;var i=n[0],o=e.match(r.parsePattern);if(!o)return null;var a=r.valueCallback?r.valueCallback(o[0]):o[0];a=t.valueCallback?t.valueCallback(a):a;var l=e.slice(i.length);return{value:a,rest:l}}}var Dat=/^(\d+)(th|st|nd|rd)?/i,Lat=/\d+/i,Hat={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Fat={any:[/^b/i,/^(a|c)/i]},Uat={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Bat={any:[/1/i,/2/i,/3/i,/4/i]},$at={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},zat={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},jat={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Vat={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},qat={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Gat={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Yat={ordinalNumber:Nat({matchPattern:Dat,parsePattern:Lat,valueCallback:function(e){return parseInt(e,10)}}),era:fO({matchPatterns:Hat,defaultMatchWidth:"wide",parsePatterns:Fat,defaultParseWidth:"any"}),quarter:fO({matchPatterns:Uat,defaultMatchWidth:"wide",parsePatterns:Bat,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:fO({matchPatterns:$at,defaultMatchWidth:"wide",parsePatterns:zat,defaultParseWidth:"any"}),day:fO({matchPatterns:jat,defaultMatchWidth:"wide",parsePatterns:Vat,defaultParseWidth:"any"}),dayPeriod:fO({matchPatterns:qat,defaultMatchWidth:"any",parsePatterns:Gat,defaultParseWidth:"any"})},Wat={code:"en-US",formatDistance:yat,formatLong:wat,formatRelative:Cat,localize:kat,match:Yat,options:{weekStartsOn:0,firstWeekContainsDate:1}},Kat=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Zat=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Xat=/^'([^]*?)'?$/,Qat=/''/g,Jat=/[a-zA-Z]/;function est(r,e,t){var n,i,o,a,l,u,h,p,m,_,C,T,S,R,O,N,H,F;Zh(2,arguments);var j=String(e),L=h9(),B=(n=(i=t==null?void 0:t.locale)!==null&&i!==void 0?i:L.locale)!==null&&n!==void 0?n:Wat,Q=vS((o=(a=(l=(u=t==null?void 0:t.firstWeekContainsDate)!==null&&u!==void 0?u:t==null||(h=t.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&l!==void 0?l:L.firstWeekContainsDate)!==null&&a!==void 0?a:(m=L.locale)===null||m===void 0||(_=m.options)===null||_===void 0?void 0:_.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(Q>=1&&Q<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Z=vS((C=(T=(S=(R=t==null?void 0:t.weekStartsOn)!==null&&R!==void 0?R:t==null||(O=t.locale)===null||O===void 0||(N=O.options)===null||N===void 0?void 0:N.weekStartsOn)!==null&&S!==void 0?S:L.weekStartsOn)!==null&&T!==void 0?T:(H=L.locale)===null||H===void 0||(F=H.options)===null||F===void 0?void 0:F.weekStartsOn)!==null&&C!==void 0?C:0);if(!(Z>=0&&Z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!B.localize)throw new RangeError("locale must contain localize property");if(!B.formatLong)throw new RangeError("locale must contain formatLong property");var ie=A_(r);if(!Jot(ie))throw new RangeError("Invalid time value");var J=Xot(ie),ne=eat(ie,J),ue={firstWeekContainsDate:Q,weekStartsOn:Z,locale:B,_originalDate:ie},K=j.match(Zat).map(function(se){var be=se[0];if(be==="p"||be==="P"){var de=dat[be];return de(se,B.formatLong)}return se}).join("").match(Kat).map(function(se){if(se==="''")return"'";var be=se[0];if(be==="'")return tst(se);var de=cat[be];
725if(de)return!(t!=null&&t.useAdditionalWeekYearTokens)&&gat(se)&&Vse(se,e,String(r)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&pat(se)&&Vse(se,e,String(r)),de(ne,se,B.localize,ue);if(be.match(Jat))throw new RangeError("Format string contains an unescaped latin alphabet character `"+be+"`");return se}).join("");return K}function tst(r){var e=r.match(Xat);return e?e[1].replace(Qat,"'"):r}function rst(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function qY(r,e){return qY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},qY(r,e)}var IM={exports:{}};/**
726 * @license
727 * Lodash <https://lodash.com/>
728 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
729 * Released under MIT license <https://lodash.com/license>
730 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
731 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
732 */var nst=IM.exports,qse;function ist(){return qse||(qse=1,(function(r,e){(function(){var t,n="4.18.1",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",l="Invalid `variable` option passed into `_.template`",u="Invalid `imports` option passed into `_.template`",h="__lodash_hash_undefined__",p=500,m="__lodash_placeholder__",_=1,C=2,T=4,S=1,R=2,O=1,N=2,H=4,F=8,j=16,L=32,B=64,Q=128,Z=256,ie=512,J=30,ne="...",ue=800,K=16,se=1,be=2,de=3,ge=1/0,Ue=9007199254740991,Qe=17976931348623157e292,ve=NaN,pe=4294967295,He=pe-1,Re=pe>>>1,$e=[["ary",Q],["bind",O],["bindKey",N],["curry",F],["curryRight",j],["flip",ie],["partial",L],["partialRight",B],["rearg",Z]],tt="[object Arguments]",ot="[object Array]",qe="[object AsyncFunction]",lt="[object Boolean]",Et="[object Date]",Oe="[object DOMException]",le="[object Error]",re="[object Function]",te="[object GeneratorFunction]",me="[object Map]",Ae="[object Number]",_e="[object Null]",Ve="[object Object]",it="[object Promise]",vt="[object Proxy]",kt="[object RegExp]",rt="[object Set]",bt="[object String]",Xe="[object Symbol]",ct="[object Undefined]",Me="[object WeakMap]",X="[object WeakSet]",z="[object ArrayBuffer]",W="[object DataView]",Se="[object Float32Array]",Ke="[object Float64Array]",je="[object Int8Array]",We="[object Int16Array]",Pt="[object Int32Array]",Jt="[object Uint8Array]",wr="[object Uint8ClampedArray]",rr="[object Uint16Array]",Nr="[object Uint32Array]",mt=/\b__p \+= '';/g,Mt=/\b(__p \+=) '' \+/g,Te=/(__e\(.*?\)|\b__t\)) \+\n'';/g,fe=/&(?:amp|lt|gt|quot|#39);/g,Ee=/[&<>"']/g,xe=RegExp(fe.source),et=RegExp(Ee.source),gt=/<%-([\s\S]+?)%>/g,Rt=/<%([\s\S]+?)%>/g,dt=/<%=([\s\S]+?)%>/g,pt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wt=/^\w*$/,Yt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vt=/[\\^$.*+?()[\]{}|]/g,ar=RegExp(Vt.source),kr=/^\s+/,qr=/\s/,Kr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,zn=/\{\n\/\* \[wrapped with (.+)\] \*/,Wn=/,? & /,On=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Mn=/[()=,{}\[\]\/\s]/,Yr=/\\(\\)?/g,rn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qn=/\w*$/,ii=/^[-+]0x[0-9a-f]+$/i,mo=/^0b[01]+$/i,Nn=/^\[object .+?Constructor\]$/,Yi=/^0o[0-7]+$/i,Rl=/^(?:0|[1-9]\d*)$/,kv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 13,389 bytes, line 732
7327f]/g,Yd=/($^)/,Ca=/['\n\r\u2028\u2029\\]/g,Ov="\\ud800-\\udfff",Wi="\\u0300-\\u036f",Xh="\\ufe20-\\ufe2f",yg="\\u20d0-\\u20ff",Kl=Wi+Xh+yg,us="\\u2700-\\u27bf",ny="a-z\\xdf-\\xf6\\xf8-\\xff",La="\\xac\\xb1\\xd7\\xf7",Qc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ic="\\u2000-\\u206f",up=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ha="A-Z\\xc0-\\xd6\\xd8-\\xde",Qh="\\ufe0e\\ufe0f",Ac=La+Qc+Ic+up,_i="['’]",Jc="["+Ov+"]",ri="["+Ac+"]",iy="["+Kl+"]",Wd="\\d+",oy="["+us+"]",Mv="["+ny+"]",Jh="[^"+Ov+Ac+Wd+us+ny+Ha+"]",Pu="\\ud83c[\\udffb-\\udfff]",ef="(?:"+iy+"|"+Pu+")",dp="[^"+Ov+"]",Ni="(?:\\ud83c[\\udde6-\\uddff]){2}",Nv="[\\ud800-\\udbff][\\udc00-\\udfff]",Kd="["+Ha+"]",ay="\\u200d",R_="(?:"+Mv+"|"+Jh+")",Dv="(?:"+Kd+"|"+Jh+")",vg="(?:"+_i+"(?:d|ll|m|re|s|t|ve))?",sy="(?:"+_i+"(?:D|LL|M|RE|S|T|VE))?",_g=ef+"?",fd="["+Qh+"]?",ku="(?:"+ay+"(?:"+[dp,Ni,Nv].join("|")+")"+fd+_g+")*",Zd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",bg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",eu=fd+_g+ku,tu="(?:"+[oy,Ni,Nv].join("|")+")"+eu,Rc="(?:"+[dp+iy+"?",iy,Ni,Nv,Jc].join("|")+")",Hb=RegExp(_i,"g"),tf=RegExp(iy,"g"),wg=RegExp(Pu+"(?="+Pu+")|"+Rc+eu,"g"),Eg=RegExp([Kd+"?"+Mv+"+"+vg+"(?="+[ri,Kd,"$"].join("|")+")",Dv+"+"+sy+"(?="+[ri,Kd+R_,"$"].join("|")+")",Kd+"?"+R_+"+"+vg,Kd+"+"+sy,bg,Zd,Wd,tu].join("|"),"g"),hp=RegExp("["+ay+Ov+Kl+Qh+"]"),ly=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,fp=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rf=-1,hn={};hn[Se]=hn[Ke]=hn[je]=hn[We]=hn[Pt]=hn[Jt]=hn[wr]=hn[rr]=hn[Nr]=!0,hn[tt]=hn[ot]=hn[z]=hn[lt]=hn[W]=hn[Et]=hn[le]=hn[re]=hn[me]=hn[Ae]=hn[Ve]=hn[kt]=hn[rt]=hn[bt]=hn[Me]=!1;var so={};so[tt]=so[ot]=so[z]=so[W]=so[lt]=so[Et]=so[Se]=so[Ke]=so[je]=so[We]=so[Pt]=so[me]=so[Ae]=so[Ve]=so[kt]=so[rt]=so[bt]=so[Xe]=so[Jt]=so[wr]=so[rr]=so[Nr]=!0,so[le]=so[re]=so[Me]=!1;var pd={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Lv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Pc={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Pl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cg=parseFloat,pp=parseInt,xg=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,Xd=typeof self=="object"&&self&&self.Object===Object&&self,Ka=xg||Xd||Function("return this")(),Ou=e&&!e.nodeType&&e,ru=Ou&&!0&&r&&!r.nodeType&&r,Qd=ru&&ru.exports===Ou,Zl=Qd&&xg.process,al=(function(){try{var Tt=ru&&ru.require&&ru.require("util").types;return Tt||Zl&&Zl.binding&&Zl.binding("util")}catch{}})(),ds=al&&al.isArrayBuffer,nf=al&&al.isDate,Tg=al&&al.isMap,nu=al&&al.isRegExp,Hv=al&&al.isSet,Jd=al&&al.isTypedArray;function Za(Tt,zt,Ut){switch(Ut.length){case 0:return Tt.call(zt);case 1:return Tt.call(zt,Ut[0]);case 2:return Tt.call(zt,Ut[0],Ut[1]);case 3:return Tt.call(zt,Ut[0],Ut[1],Ut[2])}return Tt.apply(zt,Ut)}function Sg(Tt,zt,Ut,Qr){for(var jn=-1,Si=Tt==null?0:Tt.length;++jn<Si;){var yo=Tt[jn];zt(Qr,yo,Ut(yo),Tt)}return Qr}function Ss(Tt,zt){for(var Ut=-1,Qr=Tt==null?0:Tt.length;++Ut<Qr&&zt(Tt[Ut],Ut,Tt)!==!1;);return Tt}function Di(Tt,zt){for(var Ut=Tt==null?0:Tt.length;Ut--&&zt(Tt[Ut],Ut,Tt)!==!1;);return Tt}function cy(Tt,zt){for(var Ut=-1,Qr=Tt==null?0:Tt.length;++Ut<Qr;)if(!zt(Tt[Ut],Ut,Tt))return!1;return!0}function of(Tt,zt){for(var Ut=-1,Qr=Tt==null?0:Tt.length,jn=0,Si=[];++Ut<Qr;){var yo=Tt[Ut];zt(yo,Ut,Tt)&&(Si[jn++]=yo)}return Si}function uy(Tt,zt){var Ut=Tt==null?0:Tt.length;return!!Ut&&Qi(Tt,zt,0)>-1}function eh(Tt,zt,Ut){for(var Qr=-1,jn=Tt==null?0:Tt.length;++Qr<jn;)if(Ut(zt,Tt[Qr]))return!0;return!1}function la(Tt,zt){for(var Ut=-1,Qr=Tt==null?0:Tt.length,jn=Array(Qr);++Ut<Qr;)jn[Ut]=zt(Tt[Ut],Ut,Tt);return jn}function af(Tt,zt){for(var Ut=-1,Qr=zt.length,jn=Tt.length;++Ut<Qr;)Tt[jn+Ut]=zt[Ut];return Tt}function Ig(Tt,zt,Ut,Qr){var jn=-1,Si=Tt==null?0:Tt.length;for(Qr&&Si&&(Ut=Tt[++jn]);++jn<Si;)Ut=zt(Ut,Tt[jn],jn,Tt);return Ut}function _C(Tt,zt,Ut,Qr){var jn=Tt==null?0:Tt.length;for(Qr&&jn&&(Ut=Tt[--jn]);jn--;)Ut=zt(Ut,Tt[jn],jn,Tt);return Ut}function dy(Tt,zt){for(var Ut=-1,Qr=Tt==null?0:Tt.length;++Ut<Qr;)if(zt(Tt[Ut],Ut,Tt))return!0;return!1}var hy=Ag("length");function Fv(Tt){return Tt.split("")}function ca(Tt){return Tt.match(On)||[]}function fy(Tt,zt,Ut){var Qr;return Ut(Tt,function(jn,Si,yo){if(zt(jn,Si,yo))return Qr=Si,!1}),Qr}function fi(Tt,zt,Ut,Qr){for(var jn=Tt.length,Si=Ut+(Qr?1:-1);Qr?Si--:++Si<jn;)if(zt(Tt[Si],Si,Tt))return Si;return-1}function Qi(Tt,zt,Ut){return zt===zt?Bb(Tt,zt,Ut):fi(Tt,py,Ut)}function Mo(Tt,zt,Ut,Qr){for(var jn=Ut-1,Si=Tt.length;++jn<Si;)if(Qr(Tt[jn],zt))return jn;return-1}function py(Tt){return Tt!==Tt}function P_(Tt,zt){var Ut=Tt==null?0:Tt.length;return Ut?Rg(Tt,zt)/Ut:ve}function Ag(Tt){return function(zt){return zt==null?t:zt[Tt]}}function k_(Tt){return function(zt){return Tt==null?t:Tt[zt]}}function gy(Tt,zt,Ut,Qr,jn){return jn(Tt,function(Si,yo,lr){Ut=Qr?(Qr=!1,Si):zt(Ut,Si,yo,lr)}),Ut}function Fb(Tt,zt){var Ut=Tt.length;for(Tt.sort(zt);Ut--;)Tt[Ut]=Tt[Ut].value;return Tt}function Rg(Tt,zt){for(var Ut,Qr=-1,jn=Tt.length;++Qr<jn;){var Si=zt(Tt[Qr]);Si!==t&&(Ut=Ut===t?Si:Ut+Si)}return Ut}function my(Tt,zt){for(var Ut=-1,Qr=Array(Tt);++Ut<Tt;)Qr[Ut]=zt(Ut);return Qr}function Ub(Tt,zt){return la(zt,function(Ut){return[Ut,Tt[Ut]]})}function Uv(Tt){return Tt&&Tt.slice(0,zv(Tt)+1).replace(kr,"")}function Is(Tt){return function(zt){return Tt(zt)}}function sf(Tt,zt){return la(zt,function(Ut){return Tt[Ut]})}function Pg(Tt,zt){return Tt.has(zt)}function Ko(Tt,zt){for(var Ut=-1,Qr=Tt.length;++Ut<Qr&&Qi(zt,Tt[Ut],0)>-1;);return Ut}function th(Tt,zt){for(var Ut=Tt.length;Ut--&&Qi(zt,Tt[Ut],0)>-1;);return Ut}function kc(Tt,zt){for(var Ut=Tt.length,Qr=0;Ut--;)Tt[Ut]===zt&&++Qr;return Qr}var Bv=k_(pd),$v=k_(Lv);function gp(Tt){return"\\"+Pl[Tt]}function kg(Tt,zt){return Tt==null?t:Tt[zt]}function gd(Tt){return hp.test(Tt)}function O_(Tt){return ly.test(Tt)}function M_(Tt){for(var zt,Ut=[];!(zt=Tt.next()).done;)Ut.push(zt.value);return Ut}function Og(Tt){var zt=-1,Ut=Array(Tt.size);return Tt.forEach(function(Qr,jn){Ut[++zt]=[jn,Qr]}),Ut}function lf(Tt,zt){return function(Ut){return Tt(zt(Ut))}}function sl(Tt,zt){for(var Ut=-1,Qr=Tt.length,jn=0,Si=[];++Ut<Qr;){var yo=Tt[Ut];(yo===zt||yo===m)&&(Tt[Ut]=m,Si[jn++]=Ut)}return Si}function md(Tt){var zt=-1,Ut=Array(Tt.size);return Tt.forEach(function(Qr){Ut[++zt]=Qr}),Ut}function yy(Tt){var zt=-1,Ut=Array(Tt.size);return Tt.forEach(function(Qr){Ut[++zt]=[Qr,Qr]}),Ut}function Bb(Tt,zt,Ut){for(var Qr=Ut-1,jn=Tt.length;++Qr<jn;)if(Tt[Qr]===zt)return Qr;return-1}function N_(Tt,zt,Ut){for(var Qr=Ut+1;Qr--;)if(Tt[Qr]===zt)return Qr;return Qr}function rh(Tt){return gd(Tt)?yd(Tt):hy(Tt)}function kl(Tt){return gd(Tt)?_y(Tt):Fv(Tt)}function zv(Tt){for(var zt=Tt.length;zt--&&qr.test(Tt.charAt(zt)););return zt}var vy=k_(Pc);function yd(Tt){for(var zt=wg.lastIndex=0;wg.test(Tt);)++zt;return zt}function _y(Tt){return Tt.match(wg)||[]}function Xl(Tt){return Tt.match(Eg)||[]}var iu=(function Tt(zt){zt=zt==null?Ka:cf.defaults(Ka.Object(),zt,cf.pick(Ka,fp));var Ut=zt.Array,Qr=zt.Date,jn=zt.Error,Si=zt.Function,yo=zt.Math,lr=zt.Object,ll=zt.RegExp,nh=zt.String,xa=zt.TypeError,mp=Ut.prototype,Pr=Si.prototype,Ql=lr.prototype,Mg=zt["__core-js_shared__"],Mu=Pr.toString,Ii=Ql.hasOwnProperty,jv=0,by=(function(){var b=/[^.]+$/.exec(Mg&&Mg.keys&&Mg.keys.IE_PROTO||"");return b?"Symbol(src)_1."+b:""})(),Oc=Ql.toString,vo=Mu.call(lr),wy=Ka._,Vv=ll("^"+Mu.call(Ii).replace(Vt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),uf=Qd?zt.Buffer:t,Nu=zt.Symbol,df=zt.Uint8Array,ih=uf?uf.allocUnsafe:t,Ys=lf(lr.getPrototypeOf,lr),hf=lr.create,on=Ql.propertyIsEnumerable,dn=mp.splice,ou=Nu?Nu.isConcatSpreadable:t,ff=Nu?Nu.iterator:t,Du=Nu?Nu.toStringTag:t,hs=(function(){try{var b=Lo(lr,"defineProperty");return b({},"",{}),b}catch{}})(),Eo=zt.clearTimeout!==Ka.clearTimeout&&zt.clearTimeout,Jl=Qr&&Qr.now!==Ka.Date.now&&Qr.now,Ey=zt.setTimeout!==Ka.setTimeout&&zt.setTimeout,au=yo.ceil,No=yo.floor,ta=lr.getOwnPropertySymbols,yp=uf?uf.isBuffer:t,vd=zt.isFinite,_d=mp.join,qv=lf(lr.keys,lr),Fa=yo.max,fs=yo.min,vp=Qr.now,_p=zt.parseInt,pf=yo.random,gf=mp.reverse,bp=Lo(zt,"DataView"),Lu=Lo(zt,"Map"),wp=Lo(zt,"Promise"),mf=Lo(zt,"Set"),oh=Lo(zt,"WeakMap"),ah=Lo(lr,"create"),Ep=oh&&new oh,bd={},Hu=Sp(bp),Gv=Sp(Lu),yf=Sp(wp),su=Sp(mf),lu=Sp(oh),ec=Nu?Nu.prototype:t,vf=ec?ec.valueOf:t,D_=ec?ec.toString:t;function ze(b){if(An(b)&&!In(b)&&!(b instanceof pi)){if(b instanceof As)return b;if(Ii.call(b,"__wrapped__"))return l0(b)}return new As(b)}var tc=(function(){function b(){}return function(I){if(!Cn(I))return{};if(hf)return hf(I);b.prototype=I;var U=new b;return b.prototype=t,U}})();function sh(){}function As(b,I){this.__wrapped__=b,this.__actions__=[],this.__chain__=!!I,this.__index__=0,this.__values__=t}ze.templateSettings={escape:gt,evaluate:Rt,interpolate:dt,variable:"",imports:{_:ze}},ze.prototype=sh.prototype,ze.prototype.constructor=ze,As.prototype=tc(sh.prototype),As.prototype.constructor=As;function pi(b){this.__wrapped__=b,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=pe,this.__views__=[]}function Yv(){var b=new pi(this.__wrapped__);return b.__actions__=Fc(this.__actions__),b.__dir__=this.__dir__,b.__filtered__=this.__filtered__,b.__iteratees__=Fc(this.__iteratees__),b.__takeCount__=this.__takeCount__,b.__views__=Fc(this.__views__),b}function Fu(){if(this.__filtered__){var b=new pi(this);b.__dir__=-1,b.__filtered__=!0}else b=this.clone(),b.__dir__*=-1;return b}function lh(){var b=this.__wrapped__.value(),I=this.__dir__,U=In(b),ae=I<0,ke=U?b.length:0,Ye=SC(0,ke,this.__views__),ft=Ye.start,Ct=Ye.end,Ot=Ct-ft,or=ae?Ct:ft-1,sr=this.__iteratees__,_r=sr.length,Xr=0,Rn=fs(Ot,this.__takeCount__);if(!U||!ae&&ke==Ot&&Rn==Ot)return z_(b,this.__actions__);var ei=[];e:for(;Ot--&&Xr<Rn;){or+=I;for(var ji=-1,Gn=b[or];++ji<_r;){var po=sr[ji],Ao=po.iteratee,Np=po.type,wh=Ao(Gn);if(Np==be)Gn=wh;else if(!wh){if(Np==se)continue e;break e}}ei[Xr++]=Gn}return ei}pi.prototype=tc(sh.prototype),pi.prototype.constructor=pi;function Ki(b){var I=-1,U=b==null?0:b.length;for(this.clear();++I<U;){var ae=b[I];this.set(ae[0],ae[1])}}function Co(){this.__data__=ah?ah(null):{},this.size=0}function wd(b){var I=this.has(b)&&delete this.__data__[b];return this.size-=I?1:0,I}function Rs(b){var I=this.__data__;if(ah){var U=I[b];return U===h?t:U}return Ii.call(I,b)?I[b]:t}function rc(b){var I=this.__data__;return ah?I[b]!==t:Ii.call(I,b)}function Ed(b,I){var U=this.__data__;return this.size+=this.has(b)?0:1,U[b]=ah&&I===t?h:I,this}Ki.prototype.clear=Co,Ki.prototype.delete=wd,Ki.prototype.get=Rs,Ki.prototype.has=rc,Ki.prototype.set=Ed;function Ws(b){var I=-1,U=b==null?0:b.length;for(this.clear();++I<U;){var ae=b[I];this.set(ae[0],ae[1])}}function nc(){this.__data__=[],this.size=0}function ch(b){var I=this.__data__,U=st(I,b);if(U<0)return!1;var ae=I.length-1;return U==ae?I.pop():dn.call(I,U,1),--this.size,!0}function L_(b){var I=this.__data__,U=st(I,b);return U<0?t:I[U][1]}function Ng(b){return st(this.__data__,b)>-1}function Wv(b,I){var U=this.__data__,ae=st(U,b);return ae<0?(++this.size,U.push([b,I])):U[ae][1]=I,this}Ws.prototype.clear=nc,Ws.prototype.delete=ch,Ws.prototype.get=L_,Ws.prototype.has=Ng,Ws.prototype.set=Wv;function Uu(b){var I=-1,U=b==null?0:b.length;for(this.clear();++I<U;){var ae=b[I];this.set(ae[0],ae[1])}}function uh(){this.size=0,this.__data__={hash:new Ki,map:new(Lu||Ws),string:new Ki}}function dh(b){var I=i0(this,b).delete(b);return this.size-=I?1:0,I}function Dg(b){return i0(this,b).get(b)}function $b(b){return i0(this,b).has(b)}function P(b,I){var U=i0(this,b),ae=U.size;
vendor: 10,538 bytes, line 732
732return U.set(b,I),this.size+=U.size==ae?0:1,this}Uu.prototype.clear=uh,Uu.prototype.delete=dh,Uu.prototype.get=Dg,Uu.prototype.has=$b,Uu.prototype.set=P;function d(b){var I=-1,U=b==null?0:b.length;for(this.__data__=new Uu;++I<U;)this.add(b[I])}function v(b){return this.__data__.set(b,h),this}function E(b){return this.__data__.has(b)}d.prototype.add=d.prototype.push=v,d.prototype.has=E;function A(b){var I=this.__data__=new Ws(b);this.size=I.size}function M(){this.__data__=new Ws,this.size=0}function G(b){var I=this.__data__,U=I.delete(b);return this.size=I.size,U}function ee(b){return this.__data__.get(b)}function he(b){return this.__data__.has(b)}function Ie(b,I){var U=this.__data__;if(U instanceof Ws){var ae=U.__data__;if(!Lu||ae.length<i-1)return ae.push([b,I]),this.size=++U.size,this;U=this.__data__=new Uu(ae)}return U.set(b,I),this.size=U.size,this}A.prototype.clear=M,A.prototype.delete=G,A.prototype.get=ee,A.prototype.has=he,A.prototype.set=Ie;function Ne(b,I){var U=In(b),ae=!U&&Ll(b),ke=!U&&!ae&&Hl(b),Ye=!U&&!ae&&!ke&&By(b),ft=U||ae||ke||Ye,Ct=ft?my(b.length,nh):[],Ot=Ct.length;for(var or in b)(I||Ii.call(b,or))&&!(ft&&(or=="length"||ke&&(or=="offset"||or=="parent")||Ye&&(or=="buffer"||or=="byteLength"||or=="byteOffset")||xp(or,Ot)))&&Ct.push(or);return Ct}function we(b){var I=b.length;return I?b[Lg(0,I-1)]:t}function De(b,I){return Vg(Fc(b),Bt(I,0,b.length))}function nt(b){return Vg(Fc(b))}function at(b,I,U){(U!==t&&!wn(b[I],U)||U===t&&!(I in b))&&Ft(b,I,U)}function ut(b,I,U){var ae=b[I];(!(Ii.call(b,I)&&wn(ae,U))||U===t&&!(I in b))&&Ft(b,I,U)}function st(b,I){for(var U=b.length;U--;)if(wn(b[U][0],I))return U;return-1}function _t(b,I,U,ae){return Jr(b,function(ke,Ye,ft){I(ae,ke,U(ke),ft)}),ae}function xt(b,I){return b&&$u(I,hu(I),b)}function At(b,I){return b&&$u(I,If(I),b)}function Ft(b,I,U){I=="__proto__"&&hs?hs(b,I,{configurable:!0,enumerable:!0,value:U,writable:!0}):b[I]=U}function $t(b,I){for(var U=-1,ae=I.length,ke=Ut(ae),Ye=b==null;++U<ae;)ke[U]=Ye?t:Yk(b,I[U]);return ke}function Bt(b,I,U){return b===b&&(U!==t&&(b=b<=U?b:U),I!==t&&(b=b>=I?b:I)),b}function Zt(b,I,U,ae,ke,Ye){var ft,Ct=I&_,Ot=I&C,or=I&T;if(U&&(ft=ke?U(b,ae,ke,Ye):U(b)),ft!==t)return ft;if(!Cn(b))return b;var sr=In(b);if(sr){if(ft=ms(b),!Ct)return Fc(b,ft)}else{var _r=ks(b),Xr=_r==re||_r==te;if(Hl(b))return Qv(b,Ct);if(_r==Ve||_r==tt||Xr&&!ke){if(ft=Ot||Xr?{}:AC(b),!Ct)return Ot?XS(b,At(ft,b)):ho(b,xt(ft,b))}else{if(!so[_r])return ke?b:{};ft=Uk(b,_r,Ct)}}Ye||(Ye=new A);var Rn=Ye.get(b);if(Rn)return Rn;Ye.set(b,ft),Op(b)?b.forEach(function(Gn){ft.add(Zt(Gn,I,U,Gn,b,Ye))}):Ua(b)&&b.forEach(function(Gn,po){ft.set(po,Zt(Gn,I,U,po,b,Ye))});var ei=or?Ot?Xb:Q_:Ot?If:hu,ji=sr?t:ei(b);return Ss(ji||b,function(Gn,po){ji&&(po=Gn,Gn=b[po]),ut(ft,po,Zt(Gn,I,U,po,b,Ye))}),ft}function Xt(b){var I=hu(b);return function(U){return yr(U,b,I)}}function yr(b,I,U){var ae=U.length;if(b==null)return!ae;for(b=lr(b);ae--;){var ke=U[ae],Ye=I[ke],ft=b[ke];if(ft===t&&!(ke in b)||!Ye(ft))return!1}return!0}function xr(b,I,U){if(typeof b!="function")throw new xa(a);return lc(function(){b.apply(t,U)},I)}function Dr(b,I,U,ae){var ke=-1,Ye=uy,ft=!0,Ct=b.length,Ot=[],or=I.length;if(!Ct)return Ot;U&&(I=la(I,Is(U))),ae?(Ye=eh,ft=!1):I.length>=i&&(Ye=Pg,ft=!1,I=new d(I));e:for(;++ke<Ct;){var sr=b[ke],_r=U==null?sr:U(sr);if(sr=ae||sr!==0?sr:0,ft&&_r===_r){for(var Xr=or;Xr--;)if(I[Xr]===_r)continue e;Ot.push(sr)}else Ye(I,_r,ae)||Ot.push(sr)}return Ot}var Jr=Vb(Tn),an=Vb(oi,!0);function jr(b,I){var U=!0;return Jr(b,function(ae,ke,Ye){return U=!!I(ae,ke,Ye),U}),U}function vr(b,I,U){for(var ae=-1,ke=b.length;++ae<ke;){var Ye=b[ae],ft=I(Ye);if(ft!=null&&(Ct===t?ft===ft&&!Ls(ft):U(ft,Ct)))var Ct=ft,Ot=Ye}return Ot}function sn(b,I,U,ae){var ke=b.length;for(U=Kn(U),U<0&&(U=-U>ke?0:ke+U),ae=ae===t||ae>ke?ke:Kn(ae),ae<0&&(ae+=ke),ae=U>ae?0:cw(ae);U<ae;)b[U++]=I;return b}function yn(b,I){var U=[];return Jr(b,function(ae,ke,Ye){I(ae,ke,Ye)&&U.push(ae)}),U}function Tr(b,I,U,ae,ke){var Ye=-1,ft=b.length;for(U||(U=sc),ke||(ke=[]);++Ye<ft;){var Ct=b[Ye];I>0&&U(Ct)?I>1?Tr(Ct,I-1,U,ae,ke):af(ke,Ct):ae||(ke[ke.length]=Ct)}return ke}var Jn=Y_(),Li=Y_(!0);function Tn(b,I){return b&&Jn(b,I,hu)}function oi(b,I){return b&&Li(b,I,hu)}function Dn(b,I){return of(I,function(U){return fl(b[U])})}function bi(b,I){I=fh(I,b);for(var U=0,ae=I.length;b!=null&&U<ae;)b=b[xd(I[U++])];return U&&U==ae?b:t}function li(b,I,U){var ae=I(b);return In(b)?ae:af(ae,U(b))}function Ln(b){return b==null?b===t?ct:_e:Du&&Du in lr(b)?Xa(b):kC(b)}function _o(b,I){return b>I}function ra(b,I){return b!=null&&Ii.call(b,I)}function Mc(b,I){return b!=null&&I in lr(b)}function Ps(b,I,U){return b>=fs(I,U)&&b<Fa(I,U)}function Hi(b,I,U){for(var ae=U?eh:uy,ke=b[0].length,Ye=b.length,ft=Ye,Ct=Ut(Ye),Ot=1/0,or=[];ft--;){var sr=b[ft];ft&&I&&(sr=la(sr,Is(I))),Ot=fs(sr.length,Ot),Ct[ft]=!U&&(I||ke>=120&&sr.length>=120)?new d(ft&&sr):t}sr=b[0];var _r=-1,Xr=Ct[0];e:for(;++_r<ke&&or.length<Ot;){var Rn=sr[_r],ei=I?I(Rn):Rn;if(Rn=U||Rn!==0?Rn:0,!(Xr?Pg(Xr,ei):ae(or,ei,U))){for(ft=Ye;--ft;){var ji=Ct[ft];if(!(ji?Pg(ji,ei):ae(b[ft],ei,U)))continue e}Xr&&Xr.push(ei),or.push(Rn)}}return or}function lo(b,I,U,ae){return Tn(b,function(ke,Ye,ft){I(ae,U(ke),Ye,ft)}),ae}function cl(b,I,U){I=fh(I,b),b=ju(b,I);var ae=b==null?b:b[xd(uc(I))];return ae==null?t:Za(ae,b,U)}function co(b){return An(b)&&Ln(b)==tt}function na(b){return An(b)&&Ln(b)==z}function Ai(b){return An(b)&&Ln(b)==Et}function Fi(b,I,U,ae,ke){return b===I?!0:b==null||I==null||!An(b)&&!An(I)?b!==b&&I!==I:Ks(b,I,U,ae,Fi,ke)}function Ks(b,I,U,ae,ke,Ye){var ft=In(b),Ct=In(I),Ot=ft?ot:ks(b),or=Ct?ot:ks(I);Ot=Ot==tt?Ve:Ot,or=or==tt?Ve:or;var sr=Ot==Ve,_r=or==Ve,Xr=Ot==or;if(Xr&&Hl(b)){if(!Hl(I))return!1;ft=!0,sr=!1}if(Xr&&!sr)return Ye||(Ye=new A),ft||By(b)?t0(b,I,U,ae,ke,Ye):tI(b,I,Ot,U,ae,ke,Ye);if(!(U&S)){var Rn=sr&&Ii.call(b,"__wrapped__"),ei=_r&&Ii.call(I,"__wrapped__");if(Rn||ei){var ji=Rn?b.value():b,Gn=ei?I.value():I;return Ye||(Ye=new A),ke(ji,Gn,U,ae,Ye)}}return Xr?(Ye||(Ye=new A),TC(b,I,U,ae,ke,Ye)):!1}function Do(b){return An(b)&&ks(b)==me}function Ta(b,I,U,ae){var ke=U.length,Ye=ke,ft=!ae;if(b==null)return!Ye;for(b=lr(b);ke--;){var Ct=U[ke];if(ft&&Ct[2]?Ct[1]!==b[Ct[0]]:!(Ct[0]in b))return!1}for(;++ke<Ye;){Ct=U[ke];var Ot=Ct[0],or=b[Ot],sr=Ct[1];if(ft&&Ct[2]){if(or===t&&!(Ot in b))return!1}else{var _r=new A;if(ae)var Xr=ae(or,sr,Ot,b,I,_r);if(!(Xr===t?Fi(sr,or,S|R,ae,_r):Xr))return!1}}return!0}function Nc(b){if(!Cn(b)||Bk(b))return!1;var I=fl(b)?Vv:Nn;return I.test(Sp(b))}function ps(b){return An(b)&&Ln(b)==kt}function ia(b){return An(b)&&ks(b)==rt}function ic(b){return An(b)&&Ui(b.length)&&!!hn[Ln(b)]}function Ol(b){return typeof b=="function"?b:b==null?Af:typeof b=="object"?In(b)?cu(b[0],b[1]):xo(b):KJ(b)}function uo(b){if(!zu(b))return qv(b);var I=[];for(var U in lr(b))Ii.call(b,U)&&U!="constructor"&&I.push(U);return I}function jo(b){if(!Cn(b))return PC(b);var I=zu(b),U=[];for(var ae in b)ae=="constructor"&&(I||!Ii.call(b,ae))||U.push(ae);return U}function Dc(b,I){return b<I}function Lc(b,I){var U=-1,ae=Bn(b)?Ut(b.length):[];return Jr(b,function(ke,Ye,ft){ae[++U]=I(ke,Ye,ft)}),ae}function xo(b){var I=Sa(b);return I.length==1&&I[0][2]?a0(I[0][0],I[0][1]):function(U){return U===b||Ta(U,b,I)}}function cu(b,I){return $g(b)&&J_(I)?a0(xd(b),I):function(U){var ae=Yk(U,b);return ae===t&&ae===I?Wk(U,b):Fi(I,ae,S|R)}}function _f(b,I,U,ae,ke){b!==I&&Jn(I,function(Ye,ft){if(ke||(ke=new A),Cn(Ye))Kv(b,I,ft,U,_f,ae,ke);else{var Ct=ae?ae(hl(b,ft),Ye,ft+"",b,I,ke):t;Ct===t&&(Ct=Ye),at(b,ft,Ct)}},If)}function Kv(b,I,U,ae,ke,Ye,ft){var Ct=hl(b,U),Ot=hl(I,U),or=ft.get(Ot);if(or){at(b,U,or);return}var sr=Ye?Ye(Ct,Ot,U+"",b,I,ft):t,_r=sr===t;if(_r){var Xr=In(Ot),Rn=!Xr&&Hl(Ot),ei=!Xr&&!Rn&&By(Ot);sr=Ot,Xr||Rn||ei?In(Ct)?sr=Ct:Vo(Ct)?sr=Fc(Ct):Rn?(_r=!1,sr=Qv(Ot,!0)):ei?(_r=!1,sr=EC(Ot,!0)):sr=[]:Ds(Ot)||Ll(Ot)?(sr=Ct,Ll(Ct)?sr=Vk(Ct):(!Cn(Ct)||fl(Ct))&&(sr=AC(Ot))):_r=!1}_r&&(ft.set(Ot,sr),ke(sr,Ot,ae,Ye,ft),ft.delete(Ot)),at(b,U,sr)}function Ml(b,I){var U=b.length;if(U)return I+=I<0?U:0,xp(I,U)?b[I]:t}function hh(b,I,U){I.length?I=la(I,function(Ye){return In(Ye)?function(ft){return bi(ft,Ye.length===1?Ye[0]:Ye)}:Ye}):I=[Af];var ae=-1;I=la(I,Is(Sn()));var ke=Lc(b,function(Ye,ft,Ct){var Ot=la(I,function(or){return or(Ye)});return{criteria:Ot,index:++ae,value:Ye}});return Fb(ke,function(Ye,ft){return Ug(Ye,ft,U)})}function Nl(b,I){return Zo(b,I,function(U,ae){return Wk(b,ae)})}function Zo(b,I,U){for(var ae=-1,ke=I.length,Ye={};++ae<ke;){var ft=I[ae],Ct=bi(b,ft);U(Ct,ft)&&Bu(Ye,fh(ft,b),Ct)}return Ye}function To(b){return function(I){return bi(I,b)}}function gs(b,I,U,ae){var ke=ae?Mo:Qi,Ye=-1,ft=I.length,Ct=b;for(b===I&&(I=Fc(I)),U&&(Ct=la(b,Is(U)));++Ye<ft;)for(var Ot=0,or=I[Ye],sr=U?U(or):or;(Ot=ke(Ct,sr,Ot,ae))>-1;)Ct!==b&&dn.call(Ct,Ot,1),dn.call(b,Ot,1);return b}function H_(b,I){for(var U=b?I.length:0,ae=U-1;U--;){var ke=I[U];if(U==ae||ke!==Ye){var Ye=ke;xp(ke)?dn.call(b,ke,1):$_(b,ke)}}return b}function Lg(b,I){return b+No(pf()*(I-b+1))}function F_(b,I,U,ae){for(var ke=-1,Ye=Fa(au((I-b)/(U||1)),0),ft=Ut(Ye);Ye--;)ft[ae?Ye:++ke]=b,b+=U;return ft}function bC(b,I){var U="";if(!b||I<1||I>Ue)return U;do I%2&&(U+=b),I=No(I/2),I&&(b+=b);while(I);return U}function Hn(b,I){return jg(dl(b,I,Af),b+"")}function U_(b){return we(mI(b))}function zb(b,I){var U=mI(b);return Vg(U,Bt(I,0,U.length))}function Bu(b,I,U,ae){if(!Cn(b))return b;I=fh(I,b);for(var ke=-1,Ye=I.length,ft=Ye-1,Ct=b;Ct!=null&&++ke<Ye;){var Ot=xd(I[ke]),or=U;if(Ot==="__proto__"||Ot==="constructor"||Ot==="prototype")return b;if(ke!=ft){var sr=Ct[Ot];or=ae?ae(sr,Ot,Ct):t,or===t&&(or=Cn(sr)?sr:xp(I[ke+1])?[]:{})}ut(Ct,Ot,or),Ct=Ct[Ot]}return b}var Hc=Ep?function(b,I){return Ep.set(b,I),b}:Af,Cd=hs?function(b,I){return hs(b,"toString",{configurable:!0,enumerable:!1,value:t$(I),writable:!0})}:Af;function Cy(b){return Vg(mI(b))}function Zs(b,I,U){var ae=-1,ke=b.length;I<0&&(I=-I>ke?0:ke+I),U=U>ke?ke:U,U<0&&(U+=ke),ke=I>U?0:U-I>>>0,I>>>=0;for(var Ye=Ut(ke);++ae<ke;)Ye[ae]=b[ae+I];return Ye}function ga(b,I){var U;return Jr(b,function(ae,ke,Ye){return U=I(ae,ke,Ye),!U}),!!U}function Hg(b,I,U){var ae=0,ke=b==null?ae:b.length;if(typeof I=="number"&&I===I&&ke<=Re){for(;ae<ke;){var Ye=ae+ke>>>1,ft=b[Ye];ft!==null&&!Ls(ft)&&(U?ft<=I:ft<I)?ae=Ye+1:ke=Ye}return ke}return B_(b,I,Af,U)}function B_(b,I,U,ae){var ke=0,Ye=b==null?0:b.length;if(Ye===0)return 0;I=U(I);for(var ft=I!==I,Ct=I===null,Ot=Ls(I),or=I===t;ke<Ye;){var sr=No((ke+Ye)/2),_r=U(b[sr]),Xr=_r!==t,Rn=_r===null,ei=_r===_r,ji=Ls(_r);
vendor: 20,812 bytes, lines 732-734
732if(ft)var Gn=ae||ei;else or?Gn=ei&&(ae||Xr):Ct?Gn=ei&&Xr&&(ae||!Rn):Ot?Gn=ei&&Xr&&!Rn&&(ae||!ji):Rn||ji?Gn=!1:Gn=ae?_r<=I:_r<I;Gn?ke=sr+1:Ye=sr}return fs(Ye,He)}function Zv(b,I){for(var U=-1,ae=b.length,ke=0,Ye=[];++U<ae;){var ft=b[U],Ct=I?I(ft):ft;if(!U||!wn(Ct,Ot)){var Ot=Ct;Ye[ke++]=ft===0?0:ft}}return Ye}function Xv(b){return typeof b=="number"?b:Ls(b)?ve:+b}function ul(b){if(typeof b=="string")return b;if(In(b))return la(b,ul)+"";if(Ls(b))return D_?D_.call(b):"";var I=b+"";return I=="0"&&1/b==-ge?"-0":I}function bf(b,I,U){var ae=-1,ke=uy,Ye=b.length,ft=!0,Ct=[],Ot=Ct;if(U)ft=!1,ke=eh;else if(Ye>=i){var or=I?null:xC(b);if(or)return md(or);ft=!1,ke=Pg,Ot=new d}else Ot=I?[]:Ct;e:for(;++ae<Ye;){var sr=b[ae],_r=I?I(sr):sr;if(sr=U||sr!==0?sr:0,ft&&_r===_r){for(var Xr=Ot.length;Xr--;)if(Ot[Xr]===_r)continue e;I&&Ot.push(_r),Ct.push(sr)}else ke(Ot,_r,U)||(Ot!==Ct&&Ot.push(_r),Ct.push(sr))}return Ct}function $_(b,I){I=fh(I,b);var U=-1,ae=I.length;if(!ae)return!0;for(;++U<ae;){var ke=xd(I[U]);if(ke==="__proto__"&&!Ii.call(b,"__proto__")||(ke==="constructor"||ke==="prototype")&&U<ae-1)return!1}var Ye=ju(b,I);return Ye==null||delete Ye[xd(uc(I))]}function xy(b,I,U,ae){return Bu(b,I,U(bi(b,I)),ae)}function wf(b,I,U,ae){for(var ke=b.length,Ye=ae?ke:-1;(ae?Ye--:++Ye<ke)&&I(b[Ye],Ye,b););return U?Zs(b,ae?0:Ye,ae?Ye+1:ke):Zs(b,ae?Ye+1:0,ae?ke:Ye)}function z_(b,I){var U=b;return U instanceof pi&&(U=U.value()),Ig(I,function(ae,ke){return ke.func.apply(ke.thisArg,af([ae],ke.args))},U)}function Ty(b,I,U){var ae=b.length;if(ae<2)return ae?bf(b[0]):[];for(var ke=-1,Ye=Ut(ae);++ke<ae;)for(var ft=b[ke],Ct=-1;++Ct<ae;)Ct!=ke&&(Ye[ke]=Dr(Ye[ke]||ft,b[Ct],I,U));return bf(Tr(Ye,1),I,U)}function j_(b,I,U){for(var ae=-1,ke=b.length,Ye=I.length,ft={};++ae<ke;){var Ct=ae<Ye?I[ae]:t;U(ft,b[ae],Ct)}return ft}function Fg(b){return Vo(b)?b:[]}function V_(b){return typeof b=="function"?b:Af}function fh(b,I){return In(b)?b:$g(b,I)?[b]:s0(Io(b))}var WS=Hn;function ph(b,I,U){var ae=b.length;return U=U===t?ae:U,!I&&U>=ae?b:Zs(b,I,U)}var q_=Eo||function(b){return Ka.clearTimeout(b)};function Qv(b,I){if(I)return b.slice();var U=b.length,ae=ih?ih(U):new b.constructor(U);return b.copy(ae),ae}function G_(b){var I=new b.constructor(b.byteLength);return new df(I).set(new df(b)),I}function wC(b,I){var U=I?G_(b.buffer):b.buffer;return new b.constructor(U,b.byteOffset,b.byteLength)}function KS(b){var I=new b.constructor(b.source,qn.exec(b));return I.lastIndex=b.lastIndex,I}function Fk(b){return vf?lr(vf.call(b)):{}}function EC(b,I){var U=I?G_(b.buffer):b.buffer;return new b.constructor(U,b.byteOffset,b.length)}function ZS(b,I){if(b!==I){var U=b!==t,ae=b===null,ke=b===b,Ye=Ls(b),ft=I!==t,Ct=I===null,Ot=I===I,or=Ls(I);if(!Ct&&!or&&!Ye&&b>I||Ye&&ft&&Ot&&!Ct&&!or||ae&&ft&&Ot||!U&&Ot||!ke)return 1;if(!ae&&!Ye&&!or&&b<I||or&&U&&ke&&!ae&&!Ye||Ct&&U&&ke||!ft&&ke||!Ot)return-1}return 0}function Ug(b,I,U){for(var ae=-1,ke=b.criteria,Ye=I.criteria,ft=ke.length,Ct=U.length;++ae<ft;){var Ot=ZS(ke[ae],Ye[ae]);if(Ot){if(ae>=Ct)return Ot;var or=U[ae];return Ot*(or=="desc"?-1:1)}}return b.index-I.index}function CC(b,I,U,ae){for(var ke=-1,Ye=b.length,ft=U.length,Ct=-1,Ot=I.length,or=Fa(Ye-ft,0),sr=Ut(Ot+or),_r=!ae;++Ct<Ot;)sr[Ct]=I[Ct];for(;++ke<ft;)(_r||ke<Ye)&&(sr[U[ke]]=b[ke]);for(;or--;)sr[Ct++]=b[ke++];return sr}function Bg(b,I,U,ae){for(var ke=-1,Ye=b.length,ft=-1,Ct=U.length,Ot=-1,or=I.length,sr=Fa(Ye-Ct,0),_r=Ut(sr+or),Xr=!ae;++ke<sr;)_r[ke]=b[ke];for(var Rn=ke;++Ot<or;)_r[Rn+Ot]=I[Ot];for(;++ft<Ct;)(Xr||ke<Ye)&&(_r[Rn+U[ft]]=b[ke++]);return _r}function Fc(b,I){var U=-1,ae=b.length;for(I||(I=Ut(ae));++U<ae;)I[U]=b[U];return I}function $u(b,I,U,ae){var ke=!U;U||(U={});for(var Ye=-1,ft=I.length;++Ye<ft;){var Ct=I[Ye],Ot=ae?ae(U[Ct],b[Ct],Ct,U,b):t;Ot===t&&(Ot=b[Ct]),ke?Ft(U,Ct,Ot):ut(U,Ct,Ot)}return U}function ho(b,I){return $u(b,o0(b),I)}function XS(b,I){return $u(b,fo(b),I)}function jb(b,I){return function(U,ae){var ke=In(U)?Sg:_t,Ye=I?I():{};return ke(U,b,Sn(ae,2),Ye)}}function oc(b){return Hn(function(I,U){var ae=-1,ke=U.length,Ye=ke>1?U[ke-1]:t,ft=ke>2?U[2]:t;for(Ye=b.length>3&&typeof Ye=="function"?(ke--,Ye):t,ft&&Lr(U[0],U[1],ft)&&(Ye=ke<3?t:Ye,ke=1),I=lr(I);++ae<ke;){var Ct=U[ae];Ct&&b(I,Ct,ae,Ye)}return I})}function Vb(b,I){return function(U,ae){if(U==null)return U;if(!Bn(U))return b(U,ae);for(var ke=U.length,Ye=I?ke:-1,ft=lr(U);(I?Ye--:++Ye<ke)&&ae(ft[Ye],Ye,ft)!==!1;);return U}}function Y_(b){return function(I,U,ae){for(var ke=-1,Ye=lr(I),ft=ae(I),Ct=ft.length;Ct--;){var Ot=ft[b?Ct:++ke];if(U(Ye[Ot],Ot,Ye)===!1)break}return I}}function qb(b,I,U){var ae=I&O,ke=Iy(b);function Ye(){var ft=this&&this!==Ka&&this instanceof Ye?ke:b;return ft.apply(ae?U:this,arguments)}return Ye}function Sy(b){return function(I){I=Io(I);var U=gd(I)?kl(I):t,ae=U?U[0]:I.charAt(0),ke=U?ph(U,1).join(""):I.slice(1);return ae[b]()+ke}}function Cp(b){return function(I){return Ig(YJ(GJ(I).replace(Hb,"")),b,"")}}function Iy(b){return function(){var I=arguments;switch(I.length){case 0:return new b;case 1:return new b(I[0]);case 2:return new b(I[0],I[1]);case 3:return new b(I[0],I[1],I[2]);case 4:return new b(I[0],I[1],I[2],I[3]);case 5:return new b(I[0],I[1],I[2],I[3],I[4]);case 6:return new b(I[0],I[1],I[2],I[3],I[4],I[5]);case 7:return new b(I[0],I[1],I[2],I[3],I[4],I[5],I[6])}var U=tc(b.prototype),ae=b.apply(U,I);return Cn(ae)?ae:U}}function Jv(b,I,U){var ae=Iy(b);function ke(){for(var Ye=arguments.length,ft=Ut(Ye),Ct=Ye,Ot=n0(ke);Ct--;)ft[Ct]=arguments[Ct];var or=Ye<3&&ft[0]!==Ot&&ft[Ye-1]!==Ot?[]:sl(ft,Ot);if(Ye-=or.length,Ye<U)return ac(b,I,Yb,ke.placeholder,t,ft,or,t,t,U-Ye);var sr=this&&this!==Ka&&this instanceof ke?ae:b;return Za(sr,this,ft)}return ke}function W_(b){return function(I,U,ae){var ke=lr(I);if(!Bn(I)){var Ye=Sn(U,3);I=hu(I),U=function(Ct){return Ye(ke[Ct],Ct,ke)}}var ft=b(I,U,ae);return ft>-1?ke[Ye?I[ft]:ft]:t}}function Gb(b){return mh(function(I){var U=I.length,ae=U,ke=As.prototype.thru;for(b&&I.reverse();ae--;){var Ye=I[ae];if(typeof Ye!="function")throw new xa(a);if(ke&&!ft&&Ry(Ye)=="wrapper")var ft=new As([],!0)}for(ae=ft?ae:U;++ae<U;){Ye=I[ae];var Ct=Ry(Ye),Ot=Ct=="wrapper"?r0(Ye):t;Ot&&Jb(Ot[0])&&Ot[1]==(Q|F|L|Z)&&!Ot[4].length&&Ot[9]==1?ft=ft[Ry(Ot[0])].apply(ft,Ot[3]):ft=Ye.length==1&&Jb(Ye)?ft[Ct]():ft.thru(Ye)}return function(){var or=arguments,sr=or[0];if(ft&&or.length==1&&In(sr))return ft.plant(sr).value();for(var _r=0,Xr=U?I[_r].apply(this,or):sr;++_r<U;)Xr=I[_r].call(this,Xr);return Xr}})}function Yb(b,I,U,ae,ke,Ye,ft,Ct,Ot,or){var sr=I&Q,_r=I&O,Xr=I&N,Rn=I&(F|j),ei=I&ie,ji=Xr?t:Iy(b);function Gn(){for(var po=arguments.length,Ao=Ut(po),Np=po;Np--;)Ao[Np]=arguments[Np];if(Rn)var wh=n0(Gn),Dp=kc(Ao,wh);if(ae&&(Ao=CC(Ao,ae,ke,Rn)),Ye&&(Ao=Bg(Ao,Ye,ft,Rn)),po-=Dp,Rn&&po<or){var Ul=sl(Ao,wh);return ac(b,I,Yb,Gn.placeholder,U,Ao,Ul,Ct,Ot,or-po)}var $y=_r?U:this,h1=Xr?$y[b]:b;return po=Ao.length,Ct?Ao=Tp(Ao,Ct):ei&&po>1&&Ao.reverse(),sr&&Ot<po&&(Ao.length=Ot),this&&this!==Ka&&this instanceof Gn&&(h1=ji||Iy(h1)),h1.apply($y,Ao)}return Gn}function Ay(b,I){return function(U,ae){return lo(U,b,I(ae),{})}}function e0(b,I){return function(U,ae){var ke;if(U===t&&ae===t)return I;if(U!==t&&(ke=U),ae!==t){if(ke===t)return ae;typeof U=="string"||typeof ae=="string"?(U=ul(U),ae=ul(ae)):(U=Xv(U),ae=Xv(ae)),ke=b(U,ae)}return ke}}function Wb(b){return mh(function(I){return I=la(I,Is(Sn())),Hn(function(U){var ae=this;return b(I,function(ke){return Za(ke,ae,U)})})})}function K_(b,I){I=I===t?" ":ul(I);var U=I.length;if(U<2)return U?bC(I,b):I;var ae=bC(I,au(b/rh(I)));return gd(I)?ph(kl(ae),0,b).join(""):ae.slice(0,b)}function QS(b,I,U,ae){var ke=I&O,Ye=Iy(b);function ft(){for(var Ct=-1,Ot=arguments.length,or=-1,sr=ae.length,_r=Ut(sr+Ot),Xr=this&&this!==Ka&&this instanceof ft?Ye:b;++or<sr;)_r[or]=ae[or];for(;Ot--;)_r[or++]=arguments[++Ct];return Za(Xr,ke?U:this,_r)}return ft}function JS(b){return function(I,U,ae){return ae&&typeof ae!="number"&&Lr(I,U,ae)&&(U=ae=t),I=Td(I),U===t?(U=I,I=0):U=Td(U),ae=ae===t?I<U?1:-1:Td(ae),F_(I,U,ae,b)}}function Dl(b){return function(I,U){return typeof I=="string"&&typeof U=="string"||(I=Wu(I),U=Wu(U)),b(I,U)}}function ac(b,I,U,ae,ke,Ye,ft,Ct,Ot,or){var sr=I&F,_r=sr?ft:t,Xr=sr?t:ft,Rn=sr?Ye:t,ei=sr?t:Ye;I|=sr?L:B,I&=~(sr?B:L),I&H||(I&=-4);var ji=[b,I,ke,Rn,_r,ei,Xr,Ct,Ot,or],Gn=U.apply(t,ji);return Jb(b)&&e1(Gn,ji),Gn.placeholder=ae,Uc(Gn,b,I)}function Kb(b){var I=yo[b];return function(U,ae){if(U=Wu(U),ae=ae==null?0:fs(Kn(ae),292),ae&&vd(U)){var ke=(Io(U)+"e").split("e"),Ye=I(ke[0]+"e"+(+ke[1]+ae));return ke=(Io(Ye)+"e").split("e"),+(ke[0]+"e"+(+ke[1]-ae))}return I(U)}}var xC=mf&&1/md(new mf([,-0]))[1]==ge?function(b){return new mf(b)}:i$;function Z_(b){return function(I){var U=ks(I);return U==me?Og(I):U==rt?yy(I):Ub(I,b(I))}}function gh(b,I,U,ae,ke,Ye,ft,Ct){var Ot=I&N;if(!Ot&&typeof b!="function")throw new xa(a);var or=ae?ae.length:0;if(or||(I&=-97,ae=ke=t),ft=ft===t?ft:Fa(Kn(ft),0),Ct=Ct===t?Ct:Kn(Ct),or-=ke?ke.length:0,I&B){var sr=ae,_r=ke;ae=ke=t}var Xr=Ot?t:r0(b),Rn=[b,I,U,ae,ke,sr,_r,Ye,ft,Ct];if(Xr&&tw(Rn,Xr),b=Rn[0],I=Rn[1],U=Rn[2],ae=Rn[3],ke=Rn[4],Ct=Rn[9]=Rn[9]===t?Ot?0:b.length:Fa(Rn[9]-or,0),!Ct&&I&(F|j)&&(I&=-25),!I||I==O)var ei=qb(b,I,U);else I==F||I==j?ei=Jv(b,I,Ct):(I==L||I==(O|L))&&!ke.length?ei=QS(b,I,U,ae):ei=Yb.apply(t,Rn);var ji=Xr?Hc:e1;return Uc(ji(ei,Rn),b,I)}function Zb(b,I,U,ae){return b===t||wn(b,Ql[U])&&!Ii.call(ae,U)?I:b}function X_(b,I,U,ae,ke,Ye){return Cn(b)&&Cn(I)&&(Ye.set(I,b),_f(b,I,t,X_,Ye),Ye.delete(I)),b}function eI(b){return Ds(b)?t:b}function t0(b,I,U,ae,ke,Ye){var ft=U&S,Ct=b.length,Ot=I.length;if(Ct!=Ot&&!(ft&&Ot>Ct))return!1;var or=Ye.get(b),sr=Ye.get(I);if(or&&sr)return or==I&&sr==b;var _r=-1,Xr=!0,Rn=U&R?new d:t;for(Ye.set(b,I),Ye.set(I,b);++_r<Ct;){var ei=b[_r],ji=I[_r];if(ae)var Gn=ft?ae(ji,ei,_r,I,b,Ye):ae(ei,ji,_r,b,I,Ye);if(Gn!==t){if(Gn)continue;Xr=!1;break}if(Rn){if(!dy(I,function(po,Ao){if(!Pg(Rn,Ao)&&(ei===po||ke(ei,po,U,ae,Ye)))return Rn.push(Ao)})){Xr=!1;break}}else if(!(ei===ji||ke(ei,ji,U,ae,Ye))){Xr=!1;break}}return Ye.delete(b),Ye.delete(I),Xr}function tI(b,I,U,ae,ke,Ye,ft){switch(U){case W:if(b.byteLength!=I.byteLength||b.byteOffset!=I.byteOffset)return!1;b=b.buffer,I=I.buffer;case z:return!(b.byteLength!=I.byteLength||!Ye(new df(b),new df(I)));case lt:case Et:case Ae:return wn(+b,+I);case le:return b.name==I.name&&b.message==I.message;case kt:case bt:return b==I+"";case me:var Ct=Og;case rt:var Ot=ae&S;if(Ct||(Ct=md),b.size!=I.size&&!Ot)return!1;var or=ft.get(b);if(or)return or==I;ae|=R,ft.set(b,I);var sr=t0(Ct(b),Ct(I),ae,ke,Ye,ft);return ft.delete(b),sr;case Xe:if(vf)return vf.call(b)==vf.call(I)}return!1}function TC(b,I,U,ae,ke,Ye){var ft=U&S,Ct=Q_(b),Ot=Ct.length,or=Q_(I),sr=or.length;if(Ot!=sr&&!ft)return!1;for(var _r=Ot;_r--;){var Xr=Ct[_r];if(!(ft?Xr in I:Ii.call(I,Xr)))return!1}var Rn=Ye.get(b),ei=Ye.get(I);if(Rn&&ei)return Rn==I&&ei==b;var ji=!0;Ye.set(b,I),Ye.set(I,b);for(var Gn=ft;++_r<Ot;){Xr=Ct[_r];var po=b[Xr],Ao=I[Xr];if(ae)var Np=ft?ae(Ao,po,Xr,I,b,Ye):ae(po,Ao,Xr,b,I,Ye);if(!(Np===t?po===Ao||ke(po,Ao,U,ae,Ye):Np)){ji=!1;break}Gn||(Gn=Xr=="constructor")}if(ji&&!Gn){var wh=b.constructor,Dp=I.constructor;wh!=Dp&&"constructor"in b&&"constructor"in I&&!(typeof wh=="function"&&wh instanceof wh&&typeof Dp=="function"&&Dp instanceof Dp)&&(ji=!1)}return Ye.delete(b),Ye.delete(I),ji}function mh(b){return jg(dl(b,t,u0),b+"")}function Q_(b){return li(b,hu,o0)}function Xb(b){return li(b,If,fo)}var r0=Ep?function(b){return Ep.get(b)}:i$;function Ry(b){for(var I=b.name+"",U=bd[I],ae=Ii.call(bd,I)?U.length:0;ae--;){var ke=U[ae],Ye=ke.func;if(Ye==null||Ye==b)return ke.name}return I}function n0(b){var I=Ii.call(ze,"placeholder")?ze:b;return I.placeholder}function Sn(){var b=ze.iteratee||r$;return b=b===r$?Ol:b,arguments.length?b(arguments[0],arguments[1]):b}function i0(b,I){var U=b.__data__;return RC(I)?U[typeof I=="string"?"string":"hash"]:U.map}function Sa(b){for(var I=hu(b),U=I.length;U--;){var ae=I[U],ke=b[ae];I[U]=[ae,ke,J_(ke)]}return I}function Lo(b,I){var U=kg(b,I);return Nc(U)?U:t}function Xa(b){var I=Ii.call(b,Du),U=b[Du];try{b[Du]=t;var ae=!0}catch{}var ke=Oc.call(b);return ae&&(I?b[Du]=U:delete b[Du]),ke}var o0=ta?function(b){return b==null?[]:(b=lr(b),of(ta(b),function(I){return on.call(b,I)}))}:o$,fo=ta?function(b){for(var I=[];b;)af(I,o0(b)),b=Ys(b);return I}:o$,ks=Ln;(bp&&ks(new bp(new ArrayBuffer(1)))!=W||Lu&&ks(new Lu)!=me||wp&&ks(wp.resolve())!=it||mf&&ks(new mf)!=rt||oh&&ks(new oh)!=Me)&&(ks=function(b){var I=Ln(b),U=I==Ve?b.constructor:t,ae=U?Sp(U):"";if(ae)switch(ae){case Hu:return W;case Gv:return me;case yf:return it;case su:return rt;case lu:return Me}return I});function SC(b,I,U){for(var ae=-1,ke=U.length;++ae<ke;){var Ye=U[ae],ft=Ye.size;switch(Ye.type){case"drop":b+=ft;break;case"dropRight":I-=ft;break;case"take":I=fs(I,b+ft);break;case"takeRight":b=Fa(b,I-ft);break}}return{start:b,end:I}}function IC(b){var I=b.match(zn);return I?I[1].split(Wn):[]}function uu(b,I,U){I=fh(I,b);for(var ae=-1,ke=I.length,Ye=!1;++ae<ke;){var ft=xd(I[ae]);if(!(Ye=b!=null&&U(b,ft)))break;b=b[ft]}return Ye||++ae!=ke?Ye:(ke=b==null?0:b.length,!!ke&&Ui(ke)&&xp(ft,ke)&&(In(b)||Ll(b)))}function ms(b){var I=b.length,U=new b.constructor(I);return I&&typeof b[0]=="string"&&Ii.call(b,"index")&&(U.index=b.index,U.input=b.input),U}function AC(b){return typeof b.constructor=="function"&&!zu(b)?tc(Ys(b)):{}}function Uk(b,I,U){var ae=b.constructor;switch(I){case z:return G_(b);case lt:case Et:return new ae(+b);case W:return wC(b,U);case Se:case Ke:case je:case We:case Pt:case Jt:case wr:case rr:case Nr:return EC(b,U);case me:return new ae;case Ae:case bt:return new ae(b);case kt:return KS(b);case rt:return new ae;case Xe:return Fk(b)}}function Qb(b,I){var U=I.length;if(!U)return b;var ae=U-1;return I[ae]=(U>1?"& ":"")+I[ae],I=I.join(U>2?", ":" "),b.replace(Kr,`{
733/* [wrapped with `+I+`] */
734`)}function sc(b){return In(b)||Ll(b)||!!(ou&&b&&b[ou])}function xp(b,I){var U=typeof b;return I=I??Ue,!!I&&(U=="number"||U!="symbol"&&Rl.test(b))&&b>-1&&b%1==0&&b<I}function Lr(b,I,U){if(!Cn(U))return!1;var ae=typeof I;return(ae=="number"?Bn(U)&&xp(I,U.length):ae=="string"&&I in U)?wn(U[I],b):!1}function $g(b,I){if(In(b))return!1;var U=typeof b;return U=="number"||U=="symbol"||U=="boolean"||b==null||Ls(b)?!0:wt.test(b)||!pt.test(b)||I!=null&&b in lr(I)}function RC(b){var I=typeof b;return I=="string"||I=="number"||I=="symbol"||I=="boolean"?b!=="__proto__":b===null}function Jb(b){var I=Ry(b),U=ze[I];if(typeof U!="function"||!(I in pi.prototype))return!1;if(b===U)return!0;var ae=r0(U);return!!ae&&b===ae[0]}function Bk(b){return!!by&&by in b}var zg=Mg?fl:a$;function zu(b){var I=b&&b.constructor,U=typeof I=="function"&&I.prototype||Ql;return b===U}function J_(b){return b===b&&!Cn(b)}function a0(b,I){return function(U){return U==null?!1:U[b]===I&&(I!==t||b in lr(U))}}function ew(b){var I=ht(b,function(ae){return U.size===p&&U.clear(),ae}),U=I.cache;return I}function tw(b,I){var U=b[1],ae=I[1],ke=U|ae,Ye=ke<(O|N|Q),ft=ae==Q&&U==F||ae==Q&&U==Z&&b[7].length<=I[8]||ae==(Q|Z)&&I[7].length<=I[8]&&U==F;if(!(Ye||ft))return b;ae&O&&(b[2]=I[2],ke|=U&O?0:H);var Ct=I[3];if(Ct){var Ot=b[3];b[3]=Ot?CC(Ot,Ct,I[4]):Ct,b[4]=Ot?sl(b[3],m):I[4]}return Ct=I[5],Ct&&(Ot=b[5],b[5]=Ot?Bg(Ot,Ct,I[6]):Ct,b[6]=Ot?sl(b[5],m):I[6]),Ct=I[7],Ct&&(b[7]=Ct),ae&Q&&(b[8]=b[8]==null?I[8]:fs(b[8],I[8])),b[9]==null&&(b[9]=I[9]),b[0]=I[0],b[1]=ke,b}function PC(b){var I=[];if(b!=null)for(var U in lr(b))I.push(U);return I}function kC(b){return Oc.call(b)}function dl(b,I,U){return I=Fa(I===t?b.length-1:I,0),function(){for(var ae=arguments,ke=-1,Ye=Fa(ae.length-I,0),ft=Ut(Ye);++ke<Ye;)ft[ke]=ae[I+ke];ke=-1;for(var Ct=Ut(I+1);++ke<I;)Ct[ke]=ae[ke];return Ct[I]=U(ft),Za(b,this,Ct)}}function ju(b,I){return I.length<2?b:bi(b,Zs(I,0,-1))}function Tp(b,I){for(var U=b.length,ae=fs(I.length,U),ke=Fc(b);ae--;){var Ye=I[ae];b[ae]=xp(Ye,U)?ke[Ye]:t}return b}function hl(b,I){if(!(I==="constructor"&&typeof b[I]=="function")&&I!="__proto__")return b[I]}var e1=Py(Hc),lc=Ey||function(b,I){return Ka.setTimeout(b,I)},jg=Py(Cd);function Uc(b,I,U){var ae=I+"";return jg(b,Qb(ae,rI(IC(ae),U)))}function Py(b){var I=0,U=0;return function(){var ae=vp(),ke=K-(ae-U);if(U=ae,ke>0){if(++I>=ue)return arguments[0]}else I=0;return b.apply(t,arguments)}}function Vg(b,I){var U=-1,ae=b.length,ke=ae-1;for(I=I===t?ae:I;++U<I;){var Ye=Lg(U,ke),ft=b[Ye];b[Ye]=b[U],b[U]=ft}return b.length=I,b}var s0=ew(function(b){var I=[];return b.charCodeAt(0)===46&&I.push(""),b.replace(Yt,function(U,ae,ke,Ye){I.push(ke?Ye.replace(Yr,"$1"):ae||U)}),I});function xd(b){if(typeof b=="string"||Ls(b))return b;var I=b+"";return I=="0"&&1/b==-ge?"-0":I}function Sp(b){if(b!=null){try{return Mu.call(b)}catch{}try{return b+""}catch{}}return""}function rI(b,I){return Ss($e,function(U){var ae="_."+U[0];I&U[1]&&!uy(b,ae)&&b.push(ae)}),b.sort()}function l0(b){if(b instanceof pi)return b.clone();var I=new As(b.__wrapped__,b.__chain__);return I.__actions__=Fc(b.__actions__),I.__index__=b.__index__,I.__values__=b.__values__,I}function t1(b,I,U){(U?Lr(b,I,U):I===t)?I=1:I=Fa(Kn(I),0);var ae=b==null?0:b.length;if(!ae||I<1)return[];for(var ke=0,Ye=0,ft=Ut(au(ae/I));ke<ae;)ft[Ye++]=Zs(b,ke,ke+=I);return ft}function du(b){for(var I=-1,U=b==null?0:b.length,ae=0,ke=[];++I<U;){var Ye=b[I];Ye&&(ke[ae++]=Ye)}return ke}function Ji(){var b=arguments.length;if(!b)return[];for(var I=Ut(b-1),U=arguments[0],ae=b;ae--;)I[ae-1]=arguments[ae];return af(In(U)?Fc(U):[U],Tr(I,1))}var Xs=Hn(function(b,I){return Vo(b)?Dr(b,Tr(I,1,Vo,!0)):[]}),Ia=Hn(function(b,I){var U=uc(I);return Vo(U)&&(U=t),Vo(b)?Dr(b,Tr(I,1,Vo,!0),Sn(U,2)):[]}),ua=Hn(function(b,I){var U=uc(I);return Vo(U)&&(U=t),Vo(b)?Dr(b,Tr(I,1,Vo,!0),t,U):[]});function Os(b,I,U){var ae=b==null?0:b.length;return ae?(I=U||I===t?1:Kn(I),Zs(b,I<0?0:I,ae)):[]}function ky(b,I,U){var ae=b==null?0:b.length;return ae?(I=U||I===t?1:Kn(I),I=ae-I,Zs(b,0,I<0?0:I)):[]}function ys(b,I){return b&&b.length?wf(b,Sn(I,3),!0,!0):[]}function r1(b,I){return b&&b.length?wf(b,Sn(I,3),!0):[]}function Oy(b,I,U,ae){var ke=b==null?0:b.length;return ke?(U&&typeof U!="number"&&Lr(b,I,U)&&(U=0,ae=ke),sn(b,I,U,ae)):[]}function qg(b,I,U){var ae=b==null?0:b.length;if(!ae)return-1;var ke=U==null?0:Kn(U);return ke<0&&(ke=Fa(ae+ke,0)),fi(b,Sn(I,3),ke)}function c0(b,I,U){var ae=b==null?0:b.length;if(!ae)return-1;var ke=ae-1;return U!==t&&(ke=Kn(U),ke=U<0?Fa(ae+ke,0):fs(ke,ae-1)),fi(b,Sn(I,3),ke,!0)}function u0(b){var I=b==null?0:b.length;return I?Tr(b,1):[]}function cc(b){var I=b==null?0:b.length;return I?Tr(b,ge):[]}function n1(b,I){var U=b==null?0:b.length;return U?(I=I===t?1:Kn(I),Tr(b,I)):[]}function yh(b){for(var I=-1,U=b==null?0:b.length,ae={};++I<U;){var ke=b[I];Ft(ae,ke[0],ke[1])}return ae}function Ef(b){return b&&b.length?b[0]:t}function i1(b,I,U){var ae=b==null?0:b.length;if(!ae)return-1;var ke=U==null?0:Kn(U);return ke<0&&(ke=Fa(ae+ke,0)),Qi(b,I,ke)}function rw(b){var I=b==null?0:b.length;return I?Zs(b,0,-1):[]}var Cf=Hn(function(b){var I=la(b,Fg);return I.length&&I[0]===b[0]?Hi(I):[]}),o1=Hn(function(b){var I=uc(b),U=la(b,Fg);return I===uc(U)?I=t:U.pop(),U.length&&U[0]===b[0]?Hi(U,Sn(I,2)):[]}),vh=Hn(function(b){var I=uc(b),U=la(b,Fg);return I=typeof I=="function"?I:t,I&&U.pop(),U.length&&U[0]===b[0]?Hi(U,t,I):[]});function a1(b,I){return b==null?"":_d.call(b,I)}function uc(b){var I=b==null?0:b.length;return I?b[I-1]:t}function OC(b,I,U){var ae=b==null?0:b.length;if(!ae)return-1;var ke=ae;return U!==t&&(ke=Kn(U),ke=ke<0?Fa(ae+ke,0):fs(ke,ae-1)),I===I?N_(b,I,ke):fi(b,py,ke,!0)}function s1(b,I){return b&&b.length?Ml(b,Kn(I)):t}var nw=Hn(dc);function dc(b,I){return b&&b.length&&I&&I.length?gs(b,I):b}function Gg(b,I,U){return b&&b.length&&I&&I.length?gs(b,I,Sn(U,2)):b}function _h(b,I,U){return b&&b.length&&I&&I.length?gs(b,I,t,U):b}var hc=mh(function(b,I){var U=b==null?0:b.length,ae=$t(b,I);return H_(b,la(I,function(ke){return xp(ke,U)?+ke:ke}).sort(ZS)),ae});function Ip(b,I){var U=[];if(!(b&&b.length))return U;var ae=-1,ke=[],Ye=b.length;for(I=Sn(I,3);++ae<Ye;){var ft=b[ae];I(ft,ae,b)&&(U.push(ft),ke.push(ae))}return H_(b,ke),U}function d0(b){return b==null?b:gf.call(b)}function iw(b,I,U){var ae=b==null?0:b.length;return ae?(U&&typeof U!="number"&&Lr(b,I,U)?(I=0,U=ae):(I=I==null?0:Kn(I),U=U===t?ae:Kn(U)),Zs(b,I,U)):[]}function nI(b,I){return Hg(b,I)}function Ap(b,I,U){return B_(b,I,Sn(U,2))}function MC(b,I){var U=b==null?0:b.length;if(U){var ae=Hg(b,I);if(ae<U&&wn(b[ae],I))return ae}return-1}function NC(b,I){return Hg(b,I,!0)}function Rp(b,I,U){return B_(b,I,Sn(U,2),!0)}function DC(b,I){var U=b==null?0:b.length;if(U){var ae=Hg(b,I,!0)-1;if(wn(b[ae],I))return ae}return-1}function My(b){return b&&b.length?Zv(b):[]}function l1(b,I){return b&&b.length?Zv(b,Sn(I,2)):[]}function iI(b){var I=b==null?0:b.length;return I?Zs(b,1,I):[]}
vendor: 5,311 bytes, line 734
734function ow(b,I,U){return b&&b.length?(I=U||I===t?1:Kn(I),Zs(b,0,I<0?0:I)):[]}function h0(b,I,U){var ae=b==null?0:b.length;return ae?(I=U||I===t?1:Kn(I),I=ae-I,Zs(b,I<0?0:I,ae)):[]}function oI(b,I){return b&&b.length?wf(b,Sn(I,3),!1,!0):[]}function Vu(b,I){return b&&b.length?wf(b,Sn(I,3)):[]}var f0=Hn(function(b){return bf(Tr(b,1,Vo,!0))}),aI=Hn(function(b){var I=uc(b);return Vo(I)&&(I=t),bf(Tr(b,1,Vo,!0),Sn(I,2))}),Yg=Hn(function(b){var I=uc(b);return I=typeof I=="function"?I:t,bf(Tr(b,1,Vo,!0),t,I)});function sI(b){return b&&b.length?bf(b):[]}function Ny(b,I){return b&&b.length?bf(b,Sn(I,2)):[]}function LC(b,I){return I=typeof I=="function"?I:t,b&&b.length?bf(b,t,I):[]}function ma(b){if(!(b&&b.length))return[];var I=0;return b=of(b,function(U){if(Vo(U))return I=Fa(U.length,I),!0}),my(I,function(U){return la(b,Ag(U))})}function HC(b,I){if(!(b&&b.length))return[];var U=ma(b);return I==null?U:la(U,function(ae){return Za(I,t,ae)})}var lI=Hn(function(b,I){return Vo(b)?Dr(b,I):[]}),cI=Hn(function(b){return Ty(of(b,Vo))}),Wg=Hn(function(b){var I=uc(b);return Vo(I)&&(I=t),Ty(of(b,Vo),Sn(I,2))}),FC=Hn(function(b){var I=uc(b);return I=typeof I=="function"?I:t,Ty(of(b,Vo),t,I)}),UC=Hn(ma);function uI(b,I){return j_(b||[],I||[],ut)}function qu(b,I){return j_(b||[],I||[],Bu)}var BC=Hn(function(b){var I=b.length,U=I>1?b[I-1]:t;return U=typeof U=="function"?(b.pop(),U):t,HC(b,U)});function Dy(b){var I=ze(b);return I.__chain__=!0,I}function Pp(b,I){return I(b),b}function xf(b,I){return I(b)}var Kg=mh(function(b){var I=b.length,U=I?b[0]:0,ae=this.__wrapped__,ke=function(Ye){return $t(Ye,b)};return I>1||this.__actions__.length||!(ae instanceof pi)||!xp(U)?this.thru(ke):(ae=ae.slice(U,+U+(I?1:0)),ae.__actions__.push({func:xf,args:[ke],thisArg:t}),new As(ae,this.__chain__).thru(function(Ye){return I&&!Ye.length&&Ye.push(t),Ye}))});function aw(){return Dy(this)}function p0(){return new As(this.value(),this.__chain__)}function $C(){this.__values__===t&&(this.__values__=tm(this.value()));var b=this.__index__>=this.__values__.length,I=b?t:this.__values__[this.__index__++];return{done:b,value:I}}function $k(){return this}function zC(b){for(var I,U=this;U instanceof sh;){var ae=l0(U);ae.__index__=0,ae.__values__=t,I?ke.__wrapped__=ae:I=ae;var ke=ae;U=U.__wrapped__}return ke.__wrapped__=b,I}function zk(){var b=this.__wrapped__;if(b instanceof pi){var I=b;return this.__actions__.length&&(I=new pi(this)),I=I.reverse(),I.__actions__.push({func:xf,args:[d0],thisArg:t}),new As(I,this.__chain__)}return this.thru(d0)}function Ly(){return z_(this.__wrapped__,this.__actions__)}var kp=jb(function(b,I,U){Ii.call(b,U)?++b[U]:Ft(b,U,1)});function g0(b,I,U){var ae=In(b)?cy:jr;return U&&Lr(b,I,U)&&(I=t),ae(b,Sn(I,3))}function c1(b,I){var U=In(b)?of:yn;return U(b,Sn(I,3))}var jC=W_(qg),u1=W_(c0);function dI(b,I){return Tr(y0(b,I),1)}function VC(b,I){return Tr(y0(b,I),ge)}function sw(b,I,U){return U=U===t?1:Kn(U),Tr(y0(b,I),U)}function Hy(b,I){var U=In(b)?Ss:Jr;return U(b,Sn(I,3))}function Zg(b,I){var U=In(b)?Di:an;return U(b,Sn(I,3))}var m0=jb(function(b,I,U){Ii.call(b,U)?b[U].push(I):Ft(b,U,[I])});function qC(b,I,U,ae){b=Bn(b)?b:mI(b),U=U&&!ae?Kn(U):0;var ke=b.length;return U<0&&(U=Fa(ke+U,0)),Uy(b)?U<=ke&&b.indexOf(I,U)>-1:!!ke&&Qi(b,I,U)>-1}var lw=Hn(function(b,I,U){var ae=-1,ke=typeof I=="function",Ye=Bn(b)?Ut(b.length):[];return Jr(b,function(ft){Ye[++ae]=ke?Za(I,ft,U):cl(ft,I,U)}),Ye}),Xg=jb(function(b,I,U){Ft(b,U,I)});function y0(b,I){var U=In(b)?la:Lc;return U(b,Sn(I,3))}function Fy(b,I,U,ae){return b==null?[]:(In(I)||(I=I==null?[]:[I]),U=ae?t:U,In(U)||(U=U==null?[]:[U]),hh(b,I,U))}var GC=jb(function(b,I,U){b[U?0:1].push(I)},function(){return[[],[]]});function g(b,I,U){var ae=In(b)?Ig:gy,ke=arguments.length<3;return ae(b,Sn(I,4),U,ke,Jr)}function s(b,I,U){var ae=In(b)?_C:gy,ke=arguments.length<3;return ae(b,Sn(I,4),U,ke,an)}function c(b,I){var U=In(b)?of:yn;return U(b,St(Sn(I,3)))}function f(b){var I=In(b)?we:U_;return I(b)}function y(b,I,U){(U?Lr(b,I,U):I===t)?I=1:I=Kn(I);var ae=In(b)?De:zb;return ae(b,I)}function w(b){var I=In(b)?nt:Cy;return I(b)}function x(b){if(b==null)return 0;if(Bn(b))return Uy(b)?rh(b):b.length;var I=ks(b);return I==me||I==rt?b.size:uo(b).length}function k(b,I,U){var ae=In(b)?dy:ga;return U&&Lr(b,I,U)&&(I=t),ae(b,Sn(I,3))}var D=Hn(function(b,I){if(b==null)return[];var U=I.length;return U>1&&Lr(b,I[0],I[1])?I=[]:U>2&&Lr(I[0],I[1],I[2])&&(I=[I[0]]),hh(b,Tr(I,1),[])}),q=Jl||function(){return Ka.Date.now()};function Y(b,I){if(typeof I!="function")throw new xa(a);return b=Kn(b),function(){if(--b<1)return I.apply(this,arguments)}}function oe(b,I,U){return I=U?t:I,I=b&&I==null?b.length:I,gh(b,Q,t,t,t,t,I)}function ye(b,I){var U;if(typeof I!="function")throw new xa(a);return b=Kn(b),function(){return--b>0&&(U=I.apply(this,arguments)),b<=1&&(I=t),U}}var Ce=Hn(function(b,I,U){var ae=O;if(U.length){var ke=sl(U,n0(Ce));ae|=L}return gh(b,ae,I,U,ke)}),Pe=Hn(function(b,I,U){var ae=O|N;if(U.length){var ke=sl(U,n0(Pe));ae|=L}return gh(I,ae,b,U,ke)});function Be(b,I,U){I=U?t:I;var ae=gh(b,F,t,t,t,t,t,I);return ae.placeholder=Be.placeholder,ae}function Ze(b,I,U){I=U?t:I;var ae=gh(b,j,t,t,t,t,t,I);return ae.placeholder=Ze.placeholder,ae}function Ge(b,I,U){var ae,ke,Ye,ft,Ct,Ot,or=0,sr=!1,_r=!1,Xr=!0;if(typeof b!="function")throw new xa(a);
vendor: 6,133 bytes, line 734
734I=Wu(I)||0,Cn(U)&&(sr=!!U.leading,_r="maxWait"in U,Ye=_r?Fa(Wu(U.maxWait)||0,I):Ye,Xr="trailing"in U?!!U.trailing:Xr);function Rn(Ul){var $y=ae,h1=ke;return ae=ke=t,or=Ul,ft=b.apply(h1,$y),ft}function ei(Ul){return or=Ul,Ct=lc(po,I),sr?Rn(Ul):ft}function ji(Ul){var $y=Ul-Ot,h1=Ul-or,ZJ=I-$y;return _r?fs(ZJ,Ye-h1):ZJ}function Gn(Ul){var $y=Ul-Ot,h1=Ul-or;return Ot===t||$y>=I||$y<0||_r&&h1>=Ye}function po(){var Ul=q();if(Gn(Ul))return Ao(Ul);Ct=lc(po,ji(Ul))}function Ao(Ul){return Ct=t,Xr&&ae?Rn(Ul):(ae=ke=t,ft)}function Np(){Ct!==t&&q_(Ct),or=0,ae=Ot=ke=Ct=t}function wh(){return Ct===t?ft:Ao(q())}function Dp(){var Ul=q(),$y=Gn(Ul);if(ae=arguments,ke=this,Ot=Ul,$y){if(Ct===t)return ei(Ot);if(_r)return q_(Ct),Ct=lc(po,I),Rn(Ot)}return Ct===t&&(Ct=lc(po,I)),ft}return Dp.cancel=Np,Dp.flush=wh,Dp}var Fe=Hn(function(b,I){return xr(b,1,I)}),Le=Hn(function(b,I,U){return xr(b,Wu(I)||0,U)});function Je(b){return gh(b,ie)}function ht(b,I){if(typeof b!="function"||I!=null&&typeof I!="function")throw new xa(a);var U=function(){var ae=arguments,ke=I?I.apply(this,ae):ae[0],Ye=U.cache;if(Ye.has(ke))return Ye.get(ke);var ft=b.apply(this,ae);return U.cache=Ye.set(ke,ft)||Ye,ft};return U.cache=new(ht.Cache||Uu),U}ht.Cache=Uu;function St(b){if(typeof b!="function")throw new xa(a);return function(){var I=arguments;switch(I.length){case 0:return!b.call(this);case 1:return!b.call(this,I[0]);case 2:return!b.call(this,I[0],I[1]);case 3:return!b.call(this,I[0],I[1],I[2])}return!b.apply(this,I)}}function Lt(b){return ye(2,b)}var qt=WS(function(b,I){I=I.length==1&&In(I[0])?la(I[0],Is(Sn())):la(Tr(I,1),Is(Sn()));var U=I.length;return Hn(function(ae){for(var ke=-1,Ye=fs(ae.length,U);++ke<Ye;)ae[ke]=I[ke].call(this,ae[ke]);return Za(b,this,ae)})}),jt=Hn(function(b,I){var U=sl(I,n0(jt));return gh(b,L,t,I,U)}),Wt=Hn(function(b,I){var U=sl(I,n0(Wt));return gh(b,B,t,I,U)}),tr=mh(function(b,I){return gh(b,Z,t,t,t,I)});function dr(b,I){if(typeof b!="function")throw new xa(a);return I=I===t?I:Kn(I),Hn(b,I)}function cr(b,I){if(typeof b!="function")throw new xa(a);return I=I==null?0:Fa(Kn(I),0),Hn(function(U){var ae=U[I],ke=ph(U,0,I);return ae&&af(ke,ae),Za(b,this,ke)})}function Kt(b,I,U){var ae=!0,ke=!0;if(typeof b!="function")throw new xa(a);return Cn(U)&&(ae="leading"in U?!!U.leading:ae,ke="trailing"in U?!!U.trailing:ke),Ge(b,I,{leading:ae,maxWait:I,trailing:ke})}function Gr(b){return oe(b,1)}function $r(b,I){return jt(V_(I),b)}function Wr(){if(!arguments.length)return[];var b=arguments[0];return In(b)?b:[b]}function kn(b){return Zt(b,T)}function ci(b,I){return I=typeof I=="function"?I:t,Zt(b,T,I)}function $n(b){return Zt(b,_|T)}function Zi(b,I){return I=typeof I=="function"?I:t,Zt(b,_|T,I)}function fn(b,I){return I==null||yr(b,I,hu(I))}function wn(b,I){return b===I||b!==b&&I!==I}var Ri=Dl(_o),So=Dl(function(b,I){return b>=I}),Ll=co((function(){return arguments})())?co:function(b){return An(b)&&Ii.call(b,"callee")&&!on.call(b,"callee")},In=Ut.isArray,Pi=ds?Is(ds):na;function Bn(b){return b!=null&&Ui(b.length)&&!fl(b)}function Vo(b){return An(b)&&Bn(b)}function v0(b){return b===!0||b===!1||An(b)&&Ln(b)==lt}var Hl=yp||a$,Qg=nf?Is(nf):Ai;function Bc(b){return An(b)&&b.nodeType===1&&!Ds(b)}function Tf(b){if(b==null)return!0;if(Bn(b)&&(In(b)||typeof b=="string"||typeof b.splice=="function"||Hl(b)||By(b)||Ll(b)))return!b.length;var I=ks(b);if(I==me||I==rt)return!b.size;if(zu(b))return!uo(b).length;for(var U in b)if(Ii.call(b,U))return!1;return!0}function jk(b,I){return Fi(b,I)}function YC(b,I,U){U=typeof U=="function"?U:t;var ae=U?U(b,I):t;return ae===t?Fi(b,I,t,U):!!ae}function vs(b){if(!An(b))return!1;var I=Ln(b);return I==le||I==Oe||typeof b.message=="string"&&typeof b.name=="string"&&!Ds(b)}function fc(b){return typeof b=="number"&&vd(b)}function fl(b){if(!Cn(b))return!1;var I=Ln(b);return I==re||I==te||I==qe||I==vt}function Jg(b){return typeof b=="number"&&b==Kn(b)}function Ui(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=Ue}function Cn(b){var I=typeof b;return b!=null&&(I=="object"||I=="function")}function An(b){return b!=null&&typeof b=="object"}var Ua=Tg?Is(Tg):Do;function Ms(b,I){return b===I||Ta(b,I,Sa(I))}function Gu(b,I,U){return U=typeof U=="function"?U:t,Ta(b,I,Sa(I),U)}function Xo(b){return Yu(b)&&b!=+b}function Ns(b){if(zg(b))throw new jn(o);return Nc(b)}function pc(b){return b===null}function $c(b){return b==null}function Yu(b){return typeof b=="number"||An(b)&&Ln(b)==Ae}function Ds(b){if(!An(b)||Ln(b)!=Ve)return!1;var I=Ys(b);if(I===null)return!0;var U=Ii.call(I,"constructor")&&I.constructor;return typeof U=="function"&&U instanceof U&&Mu.call(U)==vo}var Fl=nu?Is(nu):ps;function Sf(b){return Jg(b)&&b>=-Ue&&b<=Ue}var Op=Hv?Is(Hv):ia;function Uy(b){return typeof b=="string"||!In(b)&&An(b)&&Ln(b)==bt}function Ls(b){return typeof b=="symbol"||An(b)&&Ln(b)==Xe}var By=Jd?Is(Jd):ic;function em(b){return b===t}function hI(b){return An(b)&&ks(b)==Me}function bh(b){return An(b)&&Ln(b)==X}var fI=Dl(Dc),d1=Dl(function(b,I){return b<=I});function tm(b){if(!b)return[];if(Bn(b))return Uy(b)?kl(b):Fc(b);if(ff&&b[ff])return M_(b[ff]());var I=ks(b),U=I==me?Og:I==rt?md:mI;return U(b)}function Td(b){if(!b)return b===0?b:0;if(b=Wu(b),b===ge||b===-ge){var I=b<0?-1:1;return I*Qe}return b===b?b:0}function Kn(b){var I=Td(b),U=I%1;return I===I?U?I-U:I:0}function cw(b){return b?Bt(Kn(b),0,pe):0}function Wu(b){if(typeof b=="number")return b;if(Ls(b))return ve;if(Cn(b)){var I=typeof b.valueOf=="function"?b.valueOf():b;b=Cn(I)?I+"":I}if(typeof b!="string")return b===0?b:+b;b=Uv(b);var U=mo.test(b);return U||Yi.test(b)?pp(b.slice(2),U?2:8):ii.test(b)?ve:+b}function Vk(b){return $u(b,If(b))}function pI(b){return b?Bt(Kn(b),-Ue,Ue):b===0?b:0}function Io(b){return b==null?"":ul(b)}var WC=oc(function(b,I){if(zu(I)||Bn(I)){$u(I,hu(I),b);return}for(var U in I)Ii.call(I,U)&&ut(b,U,I[U])}),QL=oc(function(b,I){$u(I,If(I),b)}),_0=oc(function(b,I,U,ae){$u(I,If(I),b,ae)}),b0=oc(function(b,I,U,ae){$u(I,hu(I),b,ae)}),uw=mh($t);function dw(b,I){var U=tc(b);return I==null?U:xt(U,I)}var JL=Hn(function(b,I){b=lr(b);var U=-1,ae=I.length,ke=ae>2?I[2]:t;for(ke&&Lr(I[0],I[1],ke)&&(ae=1);++U<ae;
vendor: 4,287 bytes, line 734
734)for(var Ye=I[U],ft=If(Ye),Ct=-1,Ot=ft.length;++Ct<Ot;){var or=ft[Ct],sr=b[or];(sr===t||wn(sr,Ql[or])&&!Ii.call(b,or))&&(b[or]=Ye[or])}return b}),e4=Hn(function(b){return b.push(t,X_),Za($J,t,b)});function t4(b,I){return fy(b,Sn(I,3),Tn)}function r4(b,I){return fy(b,Sn(I,3),oi)}function qk(b,I){return b==null?b:Jn(b,Sn(I,3),If)}function Gk(b,I){return b==null?b:Li(b,Sn(I,3),If)}function n4(b,I){return b&&Tn(b,Sn(I,3))}function rm(b,I){return b&&oi(b,Sn(I,3))}function nm(b){return b==null?[]:Dn(b,hu(b))}function KC(b){return b==null?[]:Dn(b,If(b))}function Yk(b,I,U){var ae=b==null?t:bi(b,I);return ae===t?U:ae}function Mp(b,I){return b!=null&&uu(b,I,ra)}function Wk(b,I){return b!=null&&uu(b,I,Mc)}var i4=Ay(function(b,I,U){I!=null&&typeof I.toString!="function"&&(I=Oc.call(I)),b[I]=U},t$(Af)),gI=Ay(function(b,I,U){I!=null&&typeof I.toString!="function"&&(I=Oc.call(I)),Ii.call(b,I)?b[I].push(U):b[I]=[U]},Sn),sTe=Hn(cl);function hu(b){return Bn(b)?Ne(b):uo(b)}function If(b){return Bn(b)?Ne(b,!0):jo(b)}function lTe(b,I){var U={};return I=Sn(I,3),Tn(b,function(ae,ke,Ye){Ft(U,I(ae,ke,Ye),ae)}),U}function cTe(b,I){var U={};return I=Sn(I,3),Tn(b,function(ae,ke,Ye){Ft(U,ke,I(ae,ke,Ye))}),U}var uTe=oc(function(b,I,U){_f(b,I,U)}),$J=oc(function(b,I,U,ae){_f(b,I,U,ae)}),dTe=mh(function(b,I){var U={};if(b==null)return U;var ae=!1;I=la(I,function(Ye){return Ye=fh(Ye,b),ae||(ae=Ye.length>1),Ye}),$u(b,Xb(b),U),ae&&(U=Zt(U,_|C|T,eI));for(var ke=I.length;ke--;)$_(U,I[ke]);return U});function hTe(b,I){return zJ(b,St(Sn(I)))}var fTe=mh(function(b,I){return b==null?{}:Nl(b,I)});function zJ(b,I){if(b==null)return{};var U=la(Xb(b),function(ae){return[ae]});return I=Sn(I),Zo(b,U,function(ae,ke){return I(ae,ke[0])})}function pTe(b,I,U){I=fh(I,b);var ae=-1,ke=I.length;for(ke||(ke=1,b=t);++ae<ke;){var Ye=b==null?t:b[xd(I[ae])];Ye===t&&(ae=ke,Ye=U),b=fl(Ye)?Ye.call(b):Ye}return b}function gTe(b,I,U){return b==null?b:Bu(b,I,U)}function mTe(b,I,U,ae){return ae=typeof ae=="function"?ae:t,b==null?b:Bu(b,I,U,ae)}var jJ=Z_(hu),VJ=Z_(If);function yTe(b,I,U){var ae=In(b),ke=ae||Hl(b)||By(b);if(I=Sn(I,4),U==null){var Ye=b&&b.constructor;ke?U=ae?new Ye:[]:Cn(b)?U=fl(Ye)?tc(Ys(b)):{}:U={}}return(ke?Ss:Tn)(b,function(ft,Ct,Ot){return I(U,ft,Ct,Ot)}),U}function vTe(b,I){return b==null?!0:$_(b,I)}function _Te(b,I,U){return b==null?b:xy(b,I,V_(U))}function bTe(b,I,U,ae){return ae=typeof ae=="function"?ae:t,b==null?b:xy(b,I,V_(U),ae)}function mI(b){return b==null?[]:sf(b,hu(b))}function wTe(b){return b==null?[]:sf(b,If(b))}function ETe(b,I,U){return U===t&&(U=I,I=t),U!==t&&(U=Wu(U),U=U===U?U:0),I!==t&&(I=Wu(I),I=I===I?I:0),Bt(Wu(b),I,U)}function CTe(b,I,U){return I=Td(I),U===t?(U=I,I=0):U=Td(U),b=Wu(b),Ps(b,I,U)}function xTe(b,I,U){if(U&&typeof U!="boolean"&&Lr(b,I,U)&&(I=U=t),U===t&&(typeof I=="boolean"?(U=I,I=t):typeof b=="boolean"&&(U=b,b=t)),b===t&&I===t?(b=0,I=1):(b=Td(b),I===t?(I=b,b=0):I=Td(I)),b>I){var ae=b;b=I,I=ae}if(U||b%1||I%1){var ke=pf();return fs(b+ke*(I-b+Cg("1e-"+((ke+"").length-1))),I)}return Lg(b,I)}var TTe=Cp(function(b,I,U){return I=I.toLowerCase(),b+(U?qJ(I):I)});function qJ(b){return e$(Io(b).toLowerCase())}function GJ(b){return b=Io(b),b&&b.replace(kv,Bv).replace(tf,"")}function STe(b,I,U){b=Io(b),I=ul(I);var ae=b.length;U=U===t?ae:Bt(Kn(U),0,ae);var ke=U;return U-=I.length,U>=0&&b.slice(U,ke)==I}function ITe(b){return b=Io(b),b&&et.test(b)?b.replace(Ee,$v):b}function ATe(b){return b=Io(b),b&&ar.test(b)?b.replace(Vt,"\\$&"):b}var RTe=Cp(function(b,I,U){return b+(U?"-":"")+I.toLowerCase()}),PTe=Cp(function(b,I,U){return b+(U?" ":"")+I.toLowerCase()}),kTe=Sy("toLowerCase");function OTe(b,I,U){b=Io(b),I=Kn(I);var ae=I?rh(b):0;if(!I||ae>=I)return b;var ke=(I-ae)/2;return K_(No(ke),U)+b+K_(au(ke),U)}function MTe(b,I,U){b=Io(b),I=Kn(I);var ae=I?rh(b):0;return I&&ae<I?b+K_(I-ae,U):b}function NTe(b,I,U){b=Io(b),I=Kn(I);var ae=I?rh(b):0;return I&&ae<I?K_(I-ae,U)+b:b}function DTe(b,I,U){return U||I==null?I=0:I&&(I=+I),_p(Io(b).replace(kr,""),I||0)}function LTe(b,I,U){return(U?Lr(b,I,U):I===t)?I=1:I=Kn(I),bC(Io(b),I)}function HTe(){var b=arguments,I=Io(b[0]);return b.length<3?I:I.replace(b[1],b[2])}var FTe=Cp(function(b,I,U){return b+(U?"_":"")+I.toLowerCase()});function UTe(b,I,U){return U&&typeof U!="number"&&Lr(b,I,U)&&(I=U=t),U=U===t?pe
vendor: 4,407 bytes, lines 734-751
734:U>>>0,U?(b=Io(b),b&&(typeof I=="string"||I!=null&&!Fl(I))&&(I=ul(I),!I&&gd(b))?ph(kl(b),0,U):b.split(I,U)):[]}var BTe=Cp(function(b,I,U){return b+(U?" ":"")+e$(I)});function $Te(b,I,U){return b=Io(b),U=U==null?0:Bt(Kn(U),0,b.length),I=ul(I),b.slice(U,U+I.length)==I}function zTe(b,I,U){var ae=ze.templateSettings;U&&Lr(b,I,U)&&(I=t),b=Io(b),I=b0({},I,ae,Zb);var ke=b0({},I.imports,ae.imports,Zb),Ye=hu(ke),ft=sf(ke,Ye);Ss(Ye,function(Gn){if(Mn.test(Gn))throw new jn(u)});var Ct,Ot,or=0,sr=I.interpolate||Yd,_r="__p += '",Xr=ll((I.escape||Yd).source+"|"+sr.source+"|"+(sr===dt?rn:Yd).source+"|"+(I.evaluate||Yd).source+"|$","g"),Rn="//# sourceURL="+(Ii.call(I,"sourceURL")?(I.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rf+"]")+`
735`;b.replace(Xr,function(Gn,po,Ao,Np,wh,Dp){return Ao||(Ao=Np),_r+=b.slice(or,Dp).replace(Ca,gp),po&&(Ct=!0,_r+=`' +
736__e(`+po+`) +
737'`),wh&&(Ot=!0,_r+=`';
738`+wh+`;
739__p += '`),Ao&&(_r+=`' +
740((__t = (`+Ao+`)) == null ? '' : __t) +
741'`),or=Dp+Gn.length,Gn}),_r+=`';
742`;var ei=Ii.call(I,"variable")&&I.variable;if(!ei)_r=`with (obj) {
743`+_r+`
744}
745`;else if(Mn.test(ei))throw new jn(l);_r=(Ot?_r.replace(mt,""):_r).replace(Mt,"$1").replace(Te,"$1;"),_r="function("+(ei||"obj")+`) {
746`+(ei?"":`obj || (obj = {});
747`)+"var __t, __p = ''"+(Ct?", __e = _.escape":"")+(Ot?`, __j = Array.prototype.join;
748function print() { __p += __j.call(arguments, '') }
749`:`;
750`)+_r+`return __p
751}`;var ji=WJ(function(){return Si(Ye,Rn+"return "+_r).apply(t,ft)});if(ji.source=_r,vs(ji))throw ji;return ji}function jTe(b){return Io(b).toLowerCase()}function VTe(b){return Io(b).toUpperCase()}function qTe(b,I,U){if(b=Io(b),b&&(U||I===t))return Uv(b);if(!b||!(I=ul(I)))return b;var ae=kl(b),ke=kl(I),Ye=Ko(ae,ke),ft=th(ae,ke)+1;return ph(ae,Ye,ft).join("")}function GTe(b,I,U){if(b=Io(b),b&&(U||I===t))return b.slice(0,zv(b)+1);if(!b||!(I=ul(I)))return b;var ae=kl(b),ke=th(ae,kl(I))+1;return ph(ae,0,ke).join("")}function YTe(b,I,U){if(b=Io(b),b&&(U||I===t))return b.replace(kr,"");if(!b||!(I=ul(I)))return b;var ae=kl(b),ke=Ko(ae,kl(I));return ph(ae,ke).join("")}function WTe(b,I){var U=J,ae=ne;if(Cn(I)){var ke="separator"in I?I.separator:ke;U="length"in I?Kn(I.length):U,ae="omission"in I?ul(I.omission):ae}b=Io(b);var Ye=b.length;if(gd(b)){var ft=kl(b);Ye=ft.length}if(U>=Ye)return b;var Ct=U-rh(ae);if(Ct<1)return ae;var Ot=ft?ph(ft,0,Ct).join(""):b.slice(0,Ct);if(ke===t)return Ot+ae;if(ft&&(Ct+=Ot.length-Ct),Fl(ke)){if(b.slice(Ct).search(ke)){var or,sr=Ot;for(ke.global||(ke=ll(ke.source,Io(qn.exec(ke))+"g")),ke.lastIndex=0;or=ke.exec(sr);)var _r=or.index;Ot=Ot.slice(0,_r===t?Ct:_r)}}else if(b.indexOf(ul(ke),Ct)!=Ct){var Xr=Ot.lastIndexOf(ke);Xr>-1&&(Ot=Ot.slice(0,Xr))}return Ot+ae}function KTe(b){return b=Io(b),b&&xe.test(b)?b.replace(fe,vy):b}var ZTe=Cp(function(b,I,U){return b+(U?" ":"")+I.toUpperCase()}),e$=Sy("toUpperCase");function YJ(b,I,U){return b=Io(b),I=U?t:I,I===t?O_(b)?Xl(b):ca(b):b.match(I)||[]}var WJ=Hn(function(b,I){try{return Za(b,t,I)}catch(U){return vs(U)?U:new jn(U)}}),XTe=mh(function(b,I){return Ss(I,function(U){U=xd(U),Ft(b,U,Ce(b[U],b))}),b});function QTe(b){var I=b==null?0:b.length,U=Sn();return b=I?la(b,function(ae){if(typeof ae[1]!="function")throw new xa(a);return[U(ae[0]),ae[1]]}):[],Hn(function(ae){for(var ke=-1;++ke<I;){var Ye=b[ke];if(Za(Ye[0],this,ae))return Za(Ye[1],this,ae)}})}function JTe(b){return Xt(Zt(b,_))}function t$(b){return function(){return b}}function eSe(b,I){return b==null||b!==b?I:b}var tSe=Gb(),rSe=Gb(!0);function Af(b){return b}function r$(b){return Ol(typeof b=="function"?b:Zt(b,_))}function nSe(b){return xo(Zt(b,_))}function iSe(b,I){return cu(b,Zt(I,_))}var oSe=Hn(function(b,I){return function(U){return cl(U,b,I)}}),aSe=Hn(function(b,I){return function(U){return cl(b,U,I)}});function n$(b,I,U){var ae=hu(I),ke=Dn(I,ae);U==null&&!(Cn(I)&&(ke.length||!ae.length))&&(U=I,I=b,b=this,ke=Dn(I,hu(I)));var Ye=!(Cn(U)&&"chain"in U)||!!U.chain,ft=fl(b);return Ss(ke,function(Ct){var Ot=I[Ct];b[Ct]=Ot,ft&&(b.prototype[Ct]=function(){var or=this.__chain__;if(Ye||or){var sr=b(this.__wrapped__),_r=sr.__actions__=Fc(this.__actions__);return _r.push({func:Ot,args:arguments,thisArg:b}),sr.__chain__=or,sr}return Ot.apply(b,af([this.value()],arguments))})}),b}function sSe(){return Ka._===this&&(Ka._=wy),this}function i$(){}function lSe(b){return b=Kn(b),Hn(function(I){return Ml(I,b)})}var cSe=Wb(la),uSe=Wb(cy),dSe=Wb(dy);
vendor: 1,668 bytes, line 751
751function KJ(b){return $g(b)?Ag(xd(b)):To(b)}function hSe(b){return function(I){return b==null?t:bi(b,I)}}var fSe=JS(),pSe=JS(!0);function o$(){return[]}function a$(){return!1}function gSe(){return{}}function mSe(){return""}function ySe(){return!0}function vSe(b,I){if(b=Kn(b),b<1||b>Ue)return[];var U=pe,ae=fs(b,pe);I=Sn(I),b-=pe;for(var ke=my(ae,I);++U<b;)I(U);return ke}function _Se(b){return In(b)?la(b,xd):Ls(b)?[b]:Fc(s0(Io(b)))}function bSe(b){var I=++jv;return Io(b)+I}var wSe=e0(function(b,I){return b+I},0),ESe=Kb("ceil"),CSe=e0(function(b,I){return b/I},1),xSe=Kb("floor");function TSe(b){return b&&b.length?vr(b,Af,_o):t}function SSe(b,I){return b&&b.length?vr(b,Sn(I,2),_o):t}function ISe(b){return P_(b,Af)}function ASe(b,I){return P_(b,Sn(I,2))}function RSe(b){return b&&b.length?vr(b,Af,Dc):t}function PSe(b,I){return b&&b.length?vr(b,Sn(I,2),Dc):t}var kSe=e0(function(b,I){return b*I},1),OSe=Kb("round"),MSe=e0(function(b,I){return b-I},0);function NSe(b){return b&&b.length?Rg(b,Af):0}function DSe(b,I){return b&&b.length?Rg(b,Sn(I,2)):0}return ze.after=Y,ze.ary=oe,ze.assign=WC,ze.assignIn=QL,ze.assignInWith=_0,ze.assignWith=b0,ze.at=uw,ze.before=ye,ze.bind=Ce,ze.bindAll=XTe,ze.bindKey=Pe,ze.castArray=Wr,ze.chain=Dy,ze.chunk=t1,ze.compact=du,ze.concat=Ji,ze.cond=QTe,ze.conforms=JTe,ze.constant=t$,ze.countBy=kp,ze.create=dw,ze.curry=Be,ze.curryRight=Ze,ze.debounce=Ge,ze.defaults=JL,ze.defaultsDeep=e4,ze.defer=Fe,ze.delay=Le,ze.difference=Xs,ze.differenceBy=Ia,ze.differenceWith=ua,ze.drop=Os,ze.dropRight=ky,ze.dropRightWhile=ys,ze.dropWhile=r1,ze.fill=Oy,ze.filter=c1,ze.flatMap=dI,ze.flatMapDeep=VC,ze.flatMapDepth=sw,ze.flatten=u0,ze.flatten
vendor: 4,761 bytes, line 751
751Deep=cc,ze.flattenDepth=n1,ze.flip=Je,ze.flow=tSe,ze.flowRight=rSe,ze.fromPairs=yh,ze.functions=nm,ze.functionsIn=KC,ze.groupBy=m0,ze.initial=rw,ze.intersection=Cf,ze.intersectionBy=o1,ze.intersectionWith=vh,ze.invert=i4,ze.invertBy=gI,ze.invokeMap=lw,ze.iteratee=r$,ze.keyBy=Xg,ze.keys=hu,ze.keysIn=If,ze.map=y0,ze.mapKeys=lTe,ze.mapValues=cTe,ze.matches=nSe,ze.matchesProperty=iSe,ze.memoize=ht,ze.merge=uTe,ze.mergeWith=$J,ze.method=oSe,ze.methodOf=aSe,ze.mixin=n$,ze.negate=St,ze.nthArg=lSe,ze.omit=dTe,ze.omitBy=hTe,ze.once=Lt,ze.orderBy=Fy,ze.over=cSe,ze.overArgs=qt,ze.overEvery=uSe,ze.overSome=dSe,ze.partial=jt,ze.partialRight=Wt,ze.partition=GC,ze.pick=fTe,ze.pickBy=zJ,ze.property=KJ,ze.propertyOf=hSe,ze.pull=nw,ze.pullAll=dc,ze.pullAllBy=Gg,ze.pullAllWith=_h,ze.pullAt=hc,ze.range=fSe,ze.rangeRight=pSe,ze.rearg=tr,ze.reject=c,ze.remove=Ip,ze.rest=dr,ze.reverse=d0,ze.sampleSize=y,ze.set=gTe,ze.setWith=mTe,ze.shuffle=w,ze.slice=iw,ze.sortBy=D,ze.sortedUniq=My,ze.sortedUniqBy=l1,ze.split=UTe,ze.spread=cr,ze.tail=iI,ze.take=ow,ze.takeRight=h0,ze.takeRightWhile=oI,ze.takeWhile=Vu,ze.tap=Pp,ze.throttle=Kt,ze.thru=xf,ze.toArray=tm,ze.toPairs=jJ,ze.toPairsIn=VJ,ze.toPath=_Se,ze.toPlainObject=Vk,ze.transform=yTe,ze.unary=Gr,ze.union=f0,ze.unionBy=aI,ze.unionWith=Yg,ze.uniq=sI,ze.uniqBy=Ny,ze.uniqWith=LC,ze.unset=vTe,ze.unzip=ma,ze.unzipWith=HC,ze.update=_Te,ze.updateWith=bTe,ze.values=mI,ze.valuesIn=wTe,ze.without=lI,ze.words=YJ,ze.wrap=$r,ze.xor=cI,ze.xorBy=Wg,ze.xorWith=FC,ze.zip=UC,ze.zipObject=uI,ze.zipObjectDeep=qu,ze.zipWith=BC,ze.entries=jJ,ze.entriesIn=VJ,ze.extend=QL,ze.extendWith=_0,n$(ze,ze),ze.add=wSe,ze.attempt=WJ,ze.camelCase=TTe,ze.capitalize=qJ,ze.ceil=ESe,ze.clamp=ETe,ze.clone=kn,ze.cloneDeep=$n,ze.cloneDeepWith=Zi,ze.cloneWith=ci,ze.conformsTo=fn,ze.deburr=GJ,ze.defaultTo=eSe,ze.divide=CSe,ze.endsWith=STe,ze.eq=wn,ze.escape=ITe,ze.escapeRegExp=ATe,ze.every=g0,ze.find=jC,ze.findIndex=qg,ze.findKey=t4,ze.findLast=u1,ze.findLastIndex=c0,ze.findLastKey=r4,ze.floor=xSe,ze.forEach=Hy,ze.forEachRight=Zg,ze.forIn=qk,ze.forInRight=Gk,ze.forOwn=n4,ze.forOwnRight=rm,ze.get=Yk,ze.gt=Ri,ze.gte=So,ze.has=Mp,ze.hasIn=Wk,ze.head=Ef,ze.identity=Af,ze.includes=qC,ze.indexOf=i1,ze.inRange=CTe,ze.invoke=sTe,ze.isArguments=Ll,ze.isArray=In,ze.isArrayBuffer=Pi,ze.isArrayLike=Bn,ze.isArrayLikeObject=Vo,ze.isBoolean=v0,ze.isBuffer=Hl,ze.isDate=Qg,ze.isElement=Bc,ze.isEmpty=Tf,ze.isEqual=jk,ze.isEqualWith=YC,ze.isError=vs,ze.isFinite=fc,ze.isFunction=fl,ze.isInteger=Jg,ze.isLength=Ui,ze.isMap=Ua,ze.isMatch=Ms,ze.isMatchWith=Gu,ze.isNaN=Xo,ze.isNative=Ns,ze.isNil=$c,ze.isNull=pc,ze.isNumber=Yu,ze.isObject=Cn,ze.isObjectLike=An,ze.isPlainObject=Ds,ze.isRegExp=Fl,ze.isSafeInteger=Sf,ze.isSet=Op,ze.isString=Uy,ze.isSymbol=Ls,ze.isTypedArray=By,ze.isUndefined=em,ze.isWeakMap=hI,ze.isWeakSet=bh,ze.join=a1,ze.kebabCase=RTe,ze.last=uc,ze.lastIndexOf=OC,ze.lowerCase=PTe,ze.lowerFirst=kTe,ze.lt=fI,ze.lte=d1,ze.max=TSe,ze.maxBy=SSe,ze.mean=ISe,ze.meanBy=ASe,ze.min=RSe,ze.minBy=PSe,ze.stubArray=o$,ze.stubFalse=a$,ze.stubObject=gSe,ze.stubString=mSe,ze.stubTrue=ySe,ze.multiply=kSe,ze.nth=s1,ze.noConflict=sSe,ze.noop=i$,ze.now=q,ze.pad=OTe,ze.padEnd=MTe,ze.padStart=NTe,ze.parseInt=DTe,ze.random=xTe,ze.reduce=g,ze.reduceRight=s,ze.repeat=LTe,ze.replace=HTe,ze.result=pTe,ze.round=OSe,ze.runInContext=Tt,ze.sample=f,ze.size=x,ze.snakeCase=FTe,ze.some=k,ze.sortedIndex=nI,ze.sortedIndexBy=Ap,ze.sortedIndexOf=MC,ze.sortedLastIndex=NC,ze.sortedLastIndexBy=Rp,ze.sortedLastIndexOf=DC,ze.startCase=BTe,ze.startsWith=$Te,ze.subtract=MSe,ze.sum=NSe,ze.sumBy=DSe,ze.template=zTe,ze.times=vSe,ze.toFinite=Td,ze.toInteger=Kn,ze.toLength=cw,ze.toLower=jTe,ze.toNumber=Wu,ze.toSafeInteger=pI,ze.toString=Io,ze.toUpper=VTe,ze.trim=qTe,ze.trimEnd=GTe,ze.trimStart=YTe,ze.truncate=WTe,ze.unescape=KTe,ze.uniqueId=bSe,ze.upperCase=ZTe,ze.upperFirst=e$,ze.each=Hy,ze.eachRight=Zg,ze.first=Ef,n$(ze,(function(){var b={};return Tn(ze,function(I,U){Ii.call(ze.prototype,U)||(b[U]=I)}),b})(),{chain:!1}),ze.VERSION=n,Ss(["bind","bindKey","curry","curryRight","partial","partialRight"],function(b){ze[b].placeholder=ze}),Ss(["drop","take"],function(b,I){pi.prototype[b]=function(U){U=U===t?1:Fa(Kn(U),0);var ae=this.__filtered__&&!I?new pi(this):this.clone();return ae.__filtered__?ae.__takeCount__=fs(U,ae.__takeCount__):ae.__views__.push({size:fs(U,pe),type:b+(ae.__dir__<0?"Right":"")}),ae},pi.prototype[b+"Right"]=function(U){return this.reverse()[b](U).reverse()}}),Ss(["filter","map","takeWhile"],function(b,I){var U=I+1,ae=U==se||U==de;pi.prototype[b]=function(ke){var Ye=this.clone();return Ye.__iteratees__.push({iteratee:Sn(ke,3),type:U}),Ye.__filtered__=Ye.__filtered__||ae,Ye}}),Ss(["head","last"],function(b,I){var U="take"+(I?"Right":"");
vendor: 1,586 bytes, line 751
751pi.prototype[b]=function(){return this[U](1).value()[0]}}),Ss(["initial","tail"],function(b,I){var U="drop"+(I?"":"Right");pi.prototype[b]=function(){return this.__filtered__?new pi(this):this[U](1)}}),pi.prototype.compact=function(){return this.filter(Af)},pi.prototype.find=function(b){return this.filter(b).head()},pi.prototype.findLast=function(b){return this.reverse().find(b)},pi.prototype.invokeMap=Hn(function(b,I){return typeof b=="function"?new pi(this):this.map(function(U){return cl(U,b,I)})}),pi.prototype.reject=function(b){return this.filter(St(Sn(b)))},pi.prototype.slice=function(b,I){b=Kn(b);var U=this;return U.__filtered__&&(b>0||I<0)?new pi(U):(b<0?U=U.takeRight(-b):b&&(U=U.drop(b)),I!==t&&(I=Kn(I),U=I<0?U.dropRight(-I):U.take(I-b)),U)},pi.prototype.takeRightWhile=function(b){return this.reverse().takeWhile(b).reverse()},pi.prototype.toArray=function(){return this.take(pe)},Tn(pi.prototype,function(b,I){var U=/^(?:filter|find|map|reject)|While$/.test(I),ae=/^(?:head|last)$/.test(I),ke=ze[ae?"take"+(I=="last"?"Right":""):I],Ye=ae||/^find/.test(I);ke&&(ze.prototype[I]=function(){var ft=this.__wrapped__,Ct=ae?[1]:arguments,Ot=ft instanceof pi,or=Ct[0],sr=Ot||In(ft),_r=function(po){var Ao=ke.apply(ze,af([po],Ct));return ae&&Xr?Ao[0]:Ao};sr&&U&&typeof or=="function"&&or.length!=1&&(Ot=sr=!1);var Xr=this.__chain__,Rn=!!this.__actions__.length,ei=Ye&&!Xr,ji=Ot&&!Rn;if(!Ye&&sr){ft=ji?ft:new pi(this);var Gn=b.apply(ft,Ct);return Gn.__actions__.push({func:xf,args:[_r],thisArg:t}),new As(Gn,Xr)}return ei&&ji?b.apply(this,Ct):(Gn=this.thru(_r),ei?ae?Gn.value(
751)[0]:Gn.value():Gn)})}),Ss(["pop","push","shift","sort","splice","unshift"],function(b){var I=mp[b],U=/^(?:push|sort|unshift)$/.test(b)?"tap":"thru",ae=/^(?:pop|shift)$/.test(b);ze.prototype[b]=function(){var ke=arguments;if(ae&&!this.__chain__){var Ye=this.value();return I.apply(In(Ye)?Ye:[],ke)}return this[U](function(ft){return I.apply(In(ft)?ft:[],ke)})}}),Tn(pi.prototype,function(b,I){var U=ze[I];if(U){var ae=U.name+"";Ii.call(bd,ae)||(bd[ae]=[]),bd[ae].push({name:I,func:U})}}),bd[Yb(t,N).name]=[{name:"wrapper",func:t}],pi.prototype.clone=Yv,pi.prototype.reverse=Fu,pi.prototype.value=lh,ze.prototype.at=Kg,ze.prototype.chain=aw,ze.prototype.commit=p0,ze.prototype.next=$C,ze.prototype.plant=zC,ze.prototype.reverse=zk,ze.prototype.toJSON=ze.prototype.valueOf=ze.prototype.value=Ly,ze.prototype.first=ze.prototype.head,ff&&(ze.prototype[ff]=$k),ze}),cf=iu();ru?((ru.exports=cf)._=cf,Ou._=cf):Ka._=cf}).call(nst)})(IM,IM.exports)),IM.exports}var yE=ist();const g2t=ao(yE);function ce(){return ce=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},ce.apply(null,arguments)}function D1(r){if(typeof r!="object"||r===null)return!1;const e=Object.getPrototypeOf(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)}function Jwe(r){if(V.isValidElement(r)||!D1(r))return r;const e={};return Object.keys(r).forEach(t=>{e[t]=Jwe(r[t])}),e}function qh(r,e,t={clone:!0}){const n=t.clone?ce({},r):r;return D1(r)&&D1(e)&&Object.keys(e).forEach(i=>{V.isValidElement(e[i])?n[i]=e[i]:D1(e[i])&&Object.prototype.hasOwnProperty.call(r,i)&&D1(r[i])?n[i]=qh(r[i],e[i],t):t.clone?n[i]=D1(e[i])?Jwe(e[i]):e[i]:n[i]=e[i]}),n}const ost=Object.freeze(Object.defineProperty({__proto__:null,default:qh,isPlainObject:D1},Symbol.toStringTag,{value:"Module"}));function wb(r){let e="https://mui.com/production-error/?code="+r;for(let t=1;t<arguments.length;t+=1)e+="&args[]="+encodeURIComponent(arguments[t]);return"Minified MUI error #"+r+"; visit "+e+" for the full message."}const ast=Object.freeze(Object.defineProperty({__proto__:null,default:wb},Symbol.toStringTag,{value:"Module"}));var c3={exports:{}},Aa={};/**
752 * @license React
753 * react-is.production.js
754 *
755 * Copyright (c) Meta Platforms, Inc. and affiliates.
756 *
757 * This source code is licensed under the MIT license found in the
758 * LICENSE file in the root directory of this source tree.
759 */var Gse;function sst(){if(Gse)return Aa;Gse=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),_=Symbol.for("react.view_transition"),C=Symbol.for("react.client.reference");function T(S){if(typeof S=="object"&&S!==null){var R=S.$$typeof;switch(R){case r:switch(S=S.type,S){case t:case i:case n:case u:case h:case _:return S;default:switch(S=S&&S.$$typeof,S){case a:case l:case m:case p:return S;case o:return S;default:return R}}case e:return R}}}return Aa.ContextConsumer=o,Aa.ContextProvider=a,Aa.Element=r,Aa.ForwardRef=l,Aa.Fragment=t,Aa.Lazy=m,Aa.Memo=p,Aa.Portal=e,Aa.Profiler=i,Aa.StrictMode=n,Aa.Suspense=u,Aa.SuspenseList=h,Aa.isContextConsumer=function(S){return T(S)===o},Aa.isContextProvider=function(S){return T(S)===a},Aa.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===r},Aa.isForwardRef=function(S){return T(S)===l},Aa.isFragment=function(S){return T(S)===t},Aa.isLazy=function(S){return T(S)===m},Aa.isMemo=function(S){return T(S)===p},Aa.isPortal=function(S){return T(S)===e},Aa.isProfiler=function(S){return T(S)===i},Aa.isStrictMode=function(S){return T(S)===n},Aa.isSuspense=function(S){return T(S)===u},Aa.isSuspenseList=function(S){return T(S)===h},Aa.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===t||S===i||S===n||S===u||S===h||typeof S=="object"&&S!==null&&(S.$$typeof===m||S.$$typeof===p||S.$$typeof===a||S.$$typeof===o||S.$$typeof===l||S.$$typeof===C||S.getModuleId!==void 0)},Aa.typeOf=T,Aa}var Yse;function lst(){return Yse||(Yse=1,c3.exports=sst()),c3.exports}var pB=lst();const cst=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function eEe(r){const e=`${r}`.match(cst);return e&&e[1]||""}function tEe(r,e=""){return r.displayName||r.name||eEe(r)||e}function Wse(r,e,t){const n=tEe(e);return r.displayName||(n!==""?`${t}(${n})`:t)}function ust(r){if(r!=null){if(typeof r=="string")return r;if(typeof r=="function")return tEe(r,"Component");if(typeof r=="object")switch(r.$$typeof){case pB.ForwardRef:return Wse(r,r.render,"ForwardRef");case pB.Memo:return Wse(r,r.type,"memo");default:return}}}const dst=Object.freeze(Object.defineProperty({__proto__:null,default:ust,getFunctionName:eEe},Symbol.toStringTag,{value:"Module"})),hst=br.oneOfType([br.func,br.object]);function nr(r){if(typeof r!="string")throw new Error(wb(7));return r.charAt(0).toUpperCase()+r.slice(1)}const fst=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"}));function gB(...r){return r.reduce((e,t)=>
759t==null?e:function(...i){e.apply(this,i),t.apply(this,i)},()=>{})}function kQ(r,e=166){let t;function n(...i){const o=()=>{r.apply(this,i)};clearTimeout(t),t=setTimeout(o,e)}return n.clear=()=>{clearTimeout(t)},n}function pst(r,e){return()=>null}function pN(r,e){var t,n;return V.isValidElement(r)&&e.indexOf((t=r.type.muiName)!=null?t:(n=r.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function Il(r){return r&&r.ownerDocument||document}function YE(r){return Il(r).defaultView||window}function gst(r,e){return()=>null}function mB(r,e){typeof r=="function"?r(e):r&&(r.current=e)}const nl=typeof window<"u"?V.useLayoutEffect:V.useEffect;let Kse=0;function mst(r){const[e,t]=V.useState(r),n=r||e;return V.useEffect(()=>{e==null&&(Kse+=1,t(`mui-${Kse}`))},[e]),n}const Zse=W3.useId;function Jm(r){if(Zse!==void 0){const e=Zse();return r??e}return mst(r)}function yst(r,e,t,n,i){return null}function hg({controlled:r,default:e,name:t,state:n="value"}){const{current:i}=V.useRef(r!==void 0),[o,a]=V.useState(e),l=i?r:o,u=V.useCallback(h=>{i||a(h)},[]);return[l,u]}function Zr(r){const e=V.useRef(r);return nl(()=>{e.current=r}),V.useRef((...t)=>(0,e.current)(...t)).current}function wo(...r){return V.useMemo(()=>r.every(e=>e==null)?null:e=>{r.forEach(t=>{mB(t,e)})},r)}const Xse={};function vst(r,e){const t=V.useRef(Xse);return t.current===Xse&&(t.current=r(e)),t}const _st=[];function bst(r){V.useEffect(r,_st)}class LL{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new LL}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function dT(){const r=vst(LL.create).current;return bst(r.disposeEffect),r}let f9=!0,GY=!1;const wst=new LL,Est={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 Cst(r){const{type:e,tagName:t}=r;return!!(t==="INPUT"&&Est[e]&&!r.readOnly||t==="TEXTAREA"&&!r.readOnly||r.isContentEditable)}function xst(r){r.metaKey||r.altKey||r.ctrlKey||(f9=!0)}function u3(){f9=!1}function Tst(){this.visibilityState==="hidden"&&GY&&(f9=!0)}function Sst(r){r.addEventListener("keydown",xst,!0),r.addEventListener("mousedown",u3,!0),r.addEventListener("pointerdown",u3,!0),r.addEventListener("touchstart",u3,!0),r.addEventListener("visibilitychange",Tst,!0)}function Ist(r){const{target:e}=r;try{return e.matches(":focus-visible")}catch{}return f9||Cst(e)}function OQ(){const r=V.useCallback(i=>{i!=null&&Sst(i.ownerDocument)},[]),e=V.useRef(!1);function t(){return e.current?(GY=!0,wst.start(100,()=>{GY=!1}),e.current=!1,!0):!1}function n(i){return Ist(i)?(e.current=!0,!0):!1}return{isFocusVisibleRef:e,onFocus:n,onBlur:t,ref:r}}function rEe(r){const e=r.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}const Ast={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function XP(r,e){const t=ce({},e);return Object.keys(r).forEach(n=>{if(n.toString().match(/^(components|slots)$/))t[n]=ce({},r[n],t[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=r[n]||{},o=e[n];t[n]={},!o||!Object.keys(o)?t[n]=i:!i||!Object.keys(i)?t[n]=o:(t[n]=ce({}
759,o),Object.keys(i).forEach(a=>{t[n][a]=XP(i[a],o[a])}))}else t[n]===void 0&&(t[n]=r[n])}),t}function Ur(r,e,t=void 0){const n={};return Object.keys(r).forEach(i=>{n[i]=r[i].reduce((o,a)=>{if(a){const l=e(a);l!==""&&o.push(l),t&&t[a]&&o.push(t[a])}return o},[]).join(" ")}),n}const Qse=r=>r,Rst=()=>{let r=Qse;return{configure(e){r=e},generate(e){return r(e)},reset(){r=Qse}}},MQ=Rst(),Pst={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 Mr(r,e,t="Mui"){const n=Pst[e];return n?`${t}-${n}`:`${MQ.generate(r)}-${e}`}function Br(r,e,t="Mui"){const n={};return e.forEach(i=>{n[i]=Mr(r,i,t)}),n}function nEe(r,e=Number.MIN_SAFE_INTEGER,t=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(r,t))}const kst=Object.freeze(Object.defineProperty({__proto__:null,default:nEe},Symbol.toStringTag,{value:"Module"}));function Gt(r,e){if(r==null)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)!==-1)continue;t[n]=r[n]}return t}function QP(r){return typeof r=="string"}function fR(r,e,t){return r===void 0||QP(r)?e:ce({},e,{ownerState:ce({},e.ownerState,t)})}function iEe(r){var e,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r)){var i=r.length;for(e=0;e<i;e++)r[e]&&(t=iEe(r[e]))&&(n&&(n+=" "),n+=t)}else for(t in r)r[t]&&(n&&(n+=" "),n+=t);return n}function mr(){for(var r,e,t=0,n="",i=arguments.length;t<i;t++)(r=arguments[t])&&(e=iEe(r))&&(n&&(n+=" "),n+=e);return n}function yB(r,e=[]){if(r===void 0)return{};const t={};return Object.keys(r).filter(n=>n.match(/^on[A-Z]/)&&typeof r[n]=="function"&&!e.includes(n)).forEach(n=>{t[n]=r[n]}),t}function Jse(r){if(r===void 0)return{};const e={};return Object.keys(r).filter(t=>!(t.match(/^on[A-Z]/)&&typeof r[t]=="function")).forEach(t=>{e[t]=r[t]}),e}function oEe(r){const{getSlotProps:e,additionalProps:t,externalSlotProps:n,externalForwardedProps:i,className:o}=r;if(!e){const C=mr(t==null?void 0:t.className,o,i==null?void 0:i.className,n==null?void 0:n.className),T=ce({},t==null?void 0:t.style,i==null?void 0:i.style,n==null?void 0:n.style),S=ce({},t,i,n);return C.length>0&&(S.className=C),Object.keys(T).length>0&&(S.style=T),{props:S,internalRef:void 0}}const a=yB(ce({},i,n)),l=Jse(n),u=Jse(i),h=e(a),p=mr(h==null?void 0:h.className,t==null?void 0:t.className,o,i==null?void 0:i.className,n==null?void 0:n.className),m=ce({},h==null?void 0:h.style,t==null?void 0:t.style,i==null?void 0:i.style,n==null?void 0:n.style),_=ce({},h,t,u,l);return p.length>0&&(_.className=p),Object.keys(m).length>0&&(_.style=m),{props:_,internalRef:h.ref}}function NQ(r,e,t){return typeof r=="function"?r(e,t):r}const Ost=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function bo(r){var e;const{elementType:t,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:o=!1}=r,a=Gt(r,Ost),l=o?{}:NQ(n,i),{props:u,internalRef:h}=oEe(ce({},a,{externalSlotProps:l})),p=wo(h,l==null?void 0:l.ref,(e=r.additionalProps)==null?void 0:e.ref);return fR(t,ce({},u,{ref:p}),i)}function qS(r){if(parseInt(V.version,10)>=19){var e;return(r==null||(e=r.props)==null?void 0:e.ref)||null}return(r==null?void 0:r.ref)||null}const aEe=V.createContext(void 0);function Mst({value:r,children:e}){return $.jsx(aEe.Provider,{value:r,children:e})}function Nst(r){const{theme:e,name:t,props:n}=r;if(!e||!e.components||!e.components[t])return n;const i=e.components[t];return i.defaultProps?XP(i.defaultProps,n):!i.styleOverrides&&!i.variants?XP(i,n):n}function Dst({props:r,name:e}){const t=V.useContext(aEe);return Nst({props:r,name:e,theme:{components:t}})}function Pn(r){return Dst(r)}var gx={},d3={exports:{}},ele;function Wa(){return ele||(ele=1,(function(r){function e(t){return t&&t.__esModule?t:{default:t}}
vendor: 11,204 bytes, line 759
759r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports})(d3)),d3.exports}var h3={exports:{}},tle;function Lst(){return tle||(tle=1,(function(r){function e(){return r.exports=e=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)({}).hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},r.exports.__esModule=!0,r.exports.default=r.exports,e.apply(null,arguments)}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports})(h3)),h3.exports}var f3={exports:{}},rle;function Hst(){return rle||(rle=1,(function(r){function e(t,n){if(t==null)return{};var i={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(n.indexOf(o)!==-1)continue;i[o]=t[o]}return i}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports})(f3)),f3.exports}function Fst(r){if(r.sheet)return r.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===r)return document.styleSheets[e]}function Ust(r){var e=document.createElement("style");return e.setAttribute("data-emotion",r.key),r.nonce!==void 0&&e.setAttribute("nonce",r.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Bst=(function(){function r(t){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=r.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ust(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Fst(i);try{o.insertRule(n,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},r})(),Pd="-ms-",vB="-moz-",oa="-webkit-",sEe="comm",DQ="rule",LQ="decl",$st="@import",lEe="@keyframes",zst="@layer",jst=Math.abs,p9=String.fromCharCode,Vst=Object.assign;function qst(r,e){return Ju(r,0)^45?(((e<<2^Ju(r,0))<<2^Ju(r,1))<<2^Ju(r,2))<<2^Ju(r,3):0}function cEe(r){return r.trim()}function Gst(r,e){return(r=e.exec(r))?r[0]:r}function aa(r,e,t){return r.replace(e,t)}function YY(r,e){return r.indexOf(e)}function Ju(r,e){return r.charCodeAt(e)|0}function SD(r,e,t){return r.slice(e,t)}function U0(r){return r.length}function HQ(r){return r.length}function L6(r,e){return e.push(r),r}function Yst(r,e){return r.map(e).join("")}var g9=1,JP=1,uEe=0,op=0,wc=0,Mk="";function m9(r,e,t,n,i,o,a){return{value:r,root:e,parent:t,type:n,props:i,children:o,line:g9,column:JP,length:a,return:""}}function pO(r,e){return Vst(m9("",null,null,"",null,null,0),r,{length:-r.length},e)}function Wst(){return wc}function Kst(){return wc=op>0?Ju(Mk,--op):0,JP--,wc===10&&(JP=1,g9--),wc}function lg(){return wc=op<uEe?Ju(Mk,op++):0,JP++,wc===10&&(JP=1,g9++),wc}function a_(){return Ju(Mk,op)}function mF(){return op}function HL(r,e){return SD(Mk,r,e)}function ID(r){switch(r){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function dEe(r){return g9=JP=1,uEe=U0(Mk=r),op=0,[]}function hEe(r){return Mk="",r}function yF(r){return cEe(HL(op-1,WY(r===91?r+2:r===40?r+1:r)))}function Zst(r){for(;(wc=a_())&&wc<33;)lg();return ID(r)>2||ID(wc)>3?"":" "}function Xst(r,e){for(;--e&&lg()&&!(wc<48||wc>102||wc>57&&wc<65||wc>70&&wc<97););return HL(r,mF()+(e<6&&a_()==32&&lg()==32))}function WY(r){for(;lg();)switch(wc){case r:return op;case 34:case 39:r!==34&&r!==39&&WY(wc);break;case 40:r===41&&WY(r);break;case 92:lg();break}return op}function Qst(r,e){for(;lg()&&r+wc!==57;)if(r+wc===84&&a_()===47)break;return"/*"+HL(e,op-1)+"*"+p9(r===47?r:lg())}function Jst(r){for(;!ID(a_());)lg();return HL(r,op)}function elt(r){return hEe(vF("",null,null,null,[""],r=dEe(r),0,[0],r))}function vF(r,e,t,n,i,o,a,l,u){for(var h=0,p=0,m=a,_=0,C=0,T=0,S=1,R=1,O=1,N=0,H="",F=i,j=o,L=n,B=H;R;)switch(T=N,N=lg()){case 40:if(T!=108&&Ju(B,m-1)==58){YY(B+=aa(yF(N),"&","&\f"),"&\f")!=-1&&(O=-1);break}case 34:case 39:case 91:B+=yF(N);break;case 9:case 10:case 13:case 32:B+=Zst(T);break;case 92:B+=Xst(mF()-1,7);continue;case 47:switch(a_()){case 42:case 47:L6(tlt(Qst(lg(),mF()),e,t),u);break;default:B+="/"}break;case 123*S:l[h++]=U0(B)*O;case 125*S:case 59:case 0:switch(N){case 0:case 125:R=0;case 59+p:O==-1&&(B=aa(B,/\f/g,"")),C>0&&U0(B)-m&&L6(C>32?ile(B+";",n,t,m-1):ile(aa(B," ","")+";",n,t,m-2),u);break;case 59:B+=";";default:if(L6(L=nle(B,e,t,h,p,i,l,H,F=[],j=[],m),o),N===123)if(p===0)vF(B,e,L,L,F,o,m,l,j);else switch(_===99&&Ju(B,3)===110?100:_){case 100:case 108:case 109:case 115:vF(r,L,L,n&&L6(nle(r,L,L,0,0,i,l,H,i,F=[],m),j),i,j,m,l,n?F:j);break;default:vF(B,L,L,L,[""],j,0,l,j)}}h=p=C=0,S=O=1,H=B="",m=a;break;case 58:m=1+U0(B),C=T;default:if(S<1){if(N==123)--S;else if(N==125&&S++==0&&Kst()==125)continue}switch(B+=p9(N),N*S){case 38:O=p>0?1:(B+="\f",-1);break;case 44:l[h++]=(U0(B)-1)*O,O=1;break;case 64:a_()===45&&(B+=yF(lg())),_=a_(),p=m=U0(H=B+=Jst(mF())),N++;break;case 45:T===45&&U0(B)==2&&(S=0)}}return o}function nle(r,e,t,n,i,o,a,l,u,h,p){for(var m=i-1,_=i===0?o:[""],C=HQ(_),T=0,S=0,R=0;T<n;++T)for(var O=0,N=SD(r,m+1,m=jst(S=a[T])),H=r;O<C;++O)(H=cEe(S>0?_[O]+" "+N:aa(N,/&\f/g,_[O])))&&(u[R++]=H);return m9(r,e,t,i===0?DQ:l,u,h,p)}function tlt(r,e,t){return m9(r,e,t,sEe,p9(Wst()),SD(r,2,-2),0)}function ile(r,e,t,n){return m9(r,e,t,LQ,SD(r,0,n),SD(r,n+1,-1),n)}function JR(r,e){for(var t="",n=HQ(r),i=0;i<n;i++)t+=e(r[i],i,r,e)||"";return t}function rlt(r,e,t,n){switch(r.type){case zst:if(r.children.length)break;case $st:case LQ:return r.return=r.return||r.value;case sEe:return"";case lEe:return r.return=r.value+"{"+JR(r.children,n)+"}";case DQ:r.value=r.props.join(",")}return U0(t=JR(r.children,n))?r.return=r.value+"{"+t+"}":""}function nlt(r){var e=HQ(r);return function(t,n,i,o){for(var a="",l=0;l<e;l++)a+=r[l](t,n,i,o)||"";return a}}function ilt(r){return function(e){e.root||(e=e.return)&&r(e)}}var ole=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var i=e(n);return t.set(n,i),i}};function fEe(r){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=r(t)),e[t]}}var olt=function(e,t,n){for(var i=0,o=0;i=o,o=a_(),i===38&&o===12&&(t[n]=1),!ID(o);)lg();return HL(e,op)},alt=function(e,t){var n=-1,i=44;do switch(ID(i)){case 0:i===38&&a_()===12&&(t[n]=1),e[n]+=olt(op-1,t,n);break;case 2:e[n]+=yF(i);break;case 4:if(i===44){e[++n]=a_()===58?"&\f":"",t[n]=e[n].length;break}default:e[n]+=p9(i)}while(i=lg());return e},slt=function(e,t){return hEe(alt(dEe(e),t))},ale=new WeakMap,llt=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,i=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!ale.get(n))&&!i){ale.set(e,!0);for(var o=[],a=slt(t,o),l=n.props,u=0,h=0;u<a.length;u++)for(var p=0;p<l.length;p++,h++)e.props[h]=o[u]?a[u].replace(/&\f/g,l[p]):l[p]+" "+a[u]}}},clt=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function pEe(r,e){switch(qst(r,e)){case 5103:return oa+"print-"+r+r;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return oa+r+r;case 5349:case 4246:case 4810:case 6968:case 2756:return oa+r+vB+r+Pd+r+r;case 6828:case 4268:return oa+r+Pd+r+r;case 6165:return oa+r+Pd+"flex-"+r+r;case 5187:return oa+r+aa(r,/(\w+).+(:[^]+)/,oa+"box-$1$2"+Pd+"flex-$1$2")+r;case 5443:return oa+r+Pd+"flex-item-"+aa(r,/flex-|-self/,"")+r;case 4675:return oa+r+Pd+"flex-line-pack"+aa(r,/align-content|flex-|-self/,"")+r;case 5548:return oa+r+Pd+aa(r,"shrink","negative")+r;case 5292:return oa+r+Pd+aa(r,"basis","preferred-size")+r;case 6060:return oa+"box-"+aa(r,"-grow","")+oa+r+Pd+aa(r,"grow","positive")+r;case 4554:return oa+aa(r,/([^-])(transform)/g,"$1"+oa+"$2")+r;case 6187:return aa(aa(aa(r,/(zoom-|grab)/,oa+"$1"),/(image-set)/,oa+"$1"),r,"")+r;case 5495:case 3959:return aa(r,/(image-set\([^]*)/,oa+"$1$`$1");case 4968:return aa(aa(r,/(.+:)(flex-)?(.*)/,oa+"box-pack:$3"+Pd+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+oa+r+r;case 4095:case 3583:case 4068:case 2532:return aa(r,/(.+)-inline(.+)/,oa+"$1$2")+r;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(U0(r)-1-e>6)switch(Ju(r,e+1)){case 109:if(Ju(r,e+4)!==45)break;case 102:return aa(r,/(.+:)(.+)-([^]+)/,"$1"+oa+"$2-$3$1"+vB+(Ju(r,e+3)==108?"$3":"$2-$3"))+r;case 115:return~YY(r,"stretch")?pEe(aa(r,"stretch","fill-available"),e)+r:r}break;case 4949:if(Ju(r,e+1)!==115)break;case 6444:switch(Ju(r,U0(r)-3-(~YY(r,"!important")&&10))){case 107:return aa(r,":",":"+oa)+r;case 101:return aa(r,/(.+:)([^;!]+)(;|!.+)?/,"$1"+oa+(Ju(r,14)===45?"inline-":"")+"box$3$1"+oa+"$2$3$1"+Pd+"$2box$3")+r}break;case 5936:switch(Ju(r,e+11)){case 114:return oa+r+Pd+aa(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return oa+r+Pd+aa(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return oa+r+Pd+aa(r,/[svh]\w+-[tblr]{2}/,"lr")+r}return oa+r+Pd+r+r}return r}var ult=function(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case LQ:e.return=pEe(e.value,e.length);break;case lEe:return JR([pO(e,{value:aa(e.value,"@","@"+oa)})],i);case DQ:if(e.length)return Yst(e.props,function(o){switch(Gst(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return JR([pO(e,{props:[aa(o,/:(read-\w+)/,":"+vB+"$1")]})],i);case"::placeholder":return JR([pO(e,{props:[aa(o,/:(plac\w+)/,":"+oa+"input-$1")]}),pO(e,{props:[aa(o,/:(plac\w+)/,":"+vB+"$1")]}),pO(e,{props:[aa(o,/:(plac\w+)/,Pd+"input-$1")]})],i)}return""})}},dlt=[ult],gEe=function(e){var t=e.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(S){var R=S.getAttribute("data-emotion");R.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var i=e.stylisPlugins||dlt,o={},a,l=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(S){for(var R=S.getAttribute("data-emotion").split(" "),O=1;O<R.length;O++)o[R[O]]=!0;l.push(S)});var u,h=[llt,clt];{var p,m=[rlt,ilt(function(S){p.insert(S)})],_=nlt(h.concat(i,m)),C=function(R){return JR(elt(R),_)};u=function(R,O,N,H){p=N,C(R?R+"{"+O.styles+"}":O.styles),H&&(T.inserted[O.name]=!0)}}var T={key:t,sheet:new Bst({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:u};
vendor: 4,177 bytes, lines 759-766
759return T.sheet.hydrate(l),T},p3={exports:{}},da={};/** @license React v16.13.1
760 * react-is.production.min.js
761 *
762 * Copyright (c) Facebook, Inc. and its affiliates.
763 *
764 * This source code is licensed under the MIT license found in the
765 * LICENSE file in the root directory of this source tree.
766 */var sle;function hlt(){if(sle)return da;sle=1;var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,n=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,o=r?Symbol.for("react.profiler"):60114,a=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,_=r?Symbol.for("react.suspense_list"):60120,C=r?Symbol.for("react.memo"):60115,T=r?Symbol.for("react.lazy"):60116,S=r?Symbol.for("react.block"):60121,R=r?Symbol.for("react.fundamental"):60117,O=r?Symbol.for("react.responder"):60118,N=r?Symbol.for("react.scope"):60119;function H(j){if(typeof j=="object"&&j!==null){var L=j.$$typeof;switch(L){case e:switch(j=j.type,j){case u:case h:case n:case o:case i:case m:return j;default:switch(j=j&&j.$$typeof,j){case l:case p:case T:case C:case a:return j;default:return L}}case t:return L}}}function F(j){return H(j)===h}return da.AsyncMode=u,da.ConcurrentMode=h,da.ContextConsumer=l,da.ContextProvider=a,da.Element=e,da.ForwardRef=p,da.Fragment=n,da.Lazy=T,da.Memo=C,da.Portal=t,da.Profiler=o,da.StrictMode=i,da.Suspense=m,da.isAsyncMode=function(j){return F(j)||H(j)===u},da.isConcurrentMode=F,da.isContextConsumer=function(j){return H(j)===l},da.isContextProvider=function(j){return H(j)===a},da.isElement=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===e},da.isForwardRef=function(j){return H(j)===p},da.isFragment=function(j){return H(j)===n},da.isLazy=function(j){return H(j)===T},da.isMemo=function(j){return H(j)===C},da.isPortal=function(j){return H(j)===t},da.isProfiler=function(j){return H(j)===o},da.isStrictMode=function(j){return H(j)===i},da.isSuspense=function(j){return H(j)===m},da.isValidElementType=function(j){return typeof j=="string"||typeof j=="function"||j===n||j===h||j===o||j===i||j===m||j===_||typeof j=="object"&&j!==null&&(j.$$typeof===T||j.$$typeof===C||j.$$typeof===a||j.$$typeof===l||j.$$typeof===p||j.$$typeof===R||j.$$typeof===O||j.$$typeof===N||j.$$typeof===S)},da.typeOf=H,da}var lle;function flt(){return lle||(lle=1,p3.exports=hlt()),p3.exports}var g3,cle;function plt(){if(cle)return g3;cle=1;var r=flt(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[r.ForwardRef]=n,o[r.Memo]=i;function a(T){return r.isMemo(T)?i:o[T.$$typeof]||e}var l=Object.defineProperty,u=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,_=Object.prototype;function C(T,S,R){if(typeof S!="string"){if(_){var O=m(S);O&&O!==_&&C(T,O,R)}var N=u(S);h&&(N=N.concat(h(S)));for(var H=a(T),F=a(S),j=0;j<N.length;++j){var L=N[j];if(!t[L]&&!(R&&R[L])&&!(F&&F[L])&&!(H&&H[L])){var B=p(S,L);try{l(T,L,B)}catch{}}}}return T}return g3=C,g3}plt();var glt=!0;function mEe(r,e,t){var n="";return t.split(" ").forEach(function(i){r[i]!==void 0?e.push(r[i]+";"):i&&(n+=i+" ")}),n}var FQ=function(e,t,n){var i=e.key+"-"+t.name;(n===!1||glt===!1)&&e.registered[i]===void 0&&(e.registered[i]=t.styles)},UQ=function(e,t,n){FQ(e,t,n);var i=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o=t;do e.insert(t===o?"."+i:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function mlt(r){for(var e=0,t,n=0,i=r.length;i>=4;++n,i-=4)t=r.charCodeAt(n)&255|(r.charCodeAt(++n)&255)<<8|(r.charCodeAt(++n)&255)<<16|(r.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>
vendor: 11,569 bytes, line 766
766>16)*59797<<16),t^=t>>>24,e=(t&65535)*1540483477+((t>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(r.charCodeAt(n+2)&255)<<16;case 2:e^=(r.charCodeAt(n+1)&255)<<8;case 1:e^=r.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var ylt={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,scale: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},vlt=/[A-Z]|^ms/g,_lt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yEe=function(e){return e.charCodeAt(1)===45},ule=function(e){return e!=null&&typeof e!="boolean"},m3=fEe(function(r){return yEe(r)?r:r.replace(vlt,"-$&").toLowerCase()}),dle=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(_lt,function(n,i,o){return B0={name:i,styles:o,next:B0},i})}return ylt[e]!==1&&!yEe(e)&&typeof t=="number"&&t!==0?t+"px":t};function AD(r,e,t){if(t==null)return"";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case"boolean":return"";case"object":{var i=t;if(i.anim===1)return B0={name:i.name,styles:i.styles,next:B0},i.name;var o=t;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)B0={name:a.name,styles:a.styles,next:B0},a=a.next;var l=o.styles+";";return l}return blt(r,e,t)}case"function":{if(r!==void 0){var u=B0,h=t(r);return B0=u,AD(r,e,h)}break}}var p=t;if(e==null)return p;var m=e[p];return m!==void 0?m:p}function blt(r,e,t){var n="";if(Array.isArray(t))for(var i=0;i<t.length;i++)n+=AD(r,e,t[i])+";";else for(var o in t){var a=t[o];if(typeof a!="object"){var l=a;e!=null&&e[l]!==void 0?n+=o+"{"+e[l]+"}":ule(l)&&(n+=m3(o)+":"+dle(o,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(e==null||e[a[0]]===void 0))for(var u=0;u<a.length;u++)ule(a[u])&&(n+=m3(o)+":"+dle(o,a[u])+";");else{var h=AD(r,e,a);switch(o){case"animation":case"animationName":{n+=m3(o)+":"+h+";";break}default:n+=o+"{"+h+"}"}}}return n}var hle=/label:\s*([^\s;{]+)\s*(;|$)/g,B0;function Nk(r,e,t){if(r.length===1&&typeof r[0]=="object"&&r[0]!==null&&r[0].styles!==void 0)return r[0];var n=!0,i="";B0=void 0;var o=r[0];if(o==null||o.raw===void 0)n=!1,i+=AD(t,e,o);else{var a=o;i+=a[0]}for(var l=1;l<r.length;l++)if(i+=AD(t,e,r[l]),n){var u=o;i+=u[l]}hle.lastIndex=0;for(var h="",p;(p=hle.exec(i))!==null;)h+="-"+p[1];var m=mlt(i)+h;return{name:m,styles:i,next:B0}}var wlt=function(e){return e()},vEe=W3.useInsertionEffect?W3.useInsertionEffect:!1,_Ee=vEe||wlt,fle=vEe||V.useLayoutEffect,bEe=V.createContext(typeof HTMLElement<"u"?gEe({key:"css"}):null),Elt=bEe.Provider,BQ=function(e){return V.forwardRef(function(t,n){var i=V.useContext(bEe);return e(t,i,n)})},WE=V.createContext({}),Clt=function(e,t){if(typeof t=="function"){var n=t(e);return n}return ce({},e,t)},xlt=ole(function(r){return ole(function(e){return Clt(r,e)})}),Tlt=function(e){var t=V.useContext(WE);return e.theme!==t&&(t=xlt(t)(e.theme)),V.createElement(WE.Provider,{value:t},e.children)},$Q={}.hasOwnProperty,KY="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Slt=function(e,t){var n={};for(var i in t)$Q.call(t,i)&&(n[i]=t[i]);return n[KY]=e,n},Ilt=function(e){var t=e.cache,n=e.serialized,i=e.isStringTag;return FQ(t,n,i),_Ee(function(){return UQ(t,n,i)}),null},Alt=BQ(function(r,e,t){var n=r.css;typeof n=="string"&&e.registered[n]!==void 0&&(n=e.registered[n]);var i=r[KY],o=[n],a="";typeof r.className=="string"?a=mEe(e.registered,o,r.className):r.className!=null&&(a=r.className+" ");var l=Nk(o,void 0,V.useContext(WE));a+=e.key+"-"+l.name;var u={};for(var h in r)$Q.call(r,h)&&h!=="css"&&h!==KY&&(u[h]=r[h]);return u.className=a,t&&(u.ref=t),V.createElement(V.Fragment,null,V.createElement(Ilt,{cache:e,serialized:l,isStringTag:typeof i=="string"}),V.createElement(i,u))}),Rlt=Alt,ple=function(e,t){var n=arguments;if(t==null||!$Q.call(t,"css"))return V.createElement.apply(void 0,n);var i=n.length,o=new Array(i);o[0]=Rlt,o[1]=Slt(e,t);for(var a=2;a<i;a++)o[a]=n[a];return V.createElement.apply(null,o)};(function(r){var e;e||(e=r.JSX||(r.JSX={}))})(ple||(ple={}));var Plt=BQ(function(r,e){var t=r.styles,n=Nk([t],void 0,V.useContext(WE)),i=V.useRef();return fle(function(){var o=e.key+"-global",a=new e.sheet.constructor({key:o,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),l=!1,u=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return e.sheet.tags.length&&(a.before=e.sheet.tags[0]),u!==null&&(l=!0,u.setAttribute("data-emotion",o),a.hydrate([u])),i.current=[a,l],function(){a.flush()}},[e]),fle(function(){var o=i.current,a=o[0],l=o[1];if(l){o[1]=!1;return}if(n.next!==void 0&&UQ(e,n.next,!0),a.tags.length){var u=a.tags[a.tags.length-1].nextElementSibling;a.before=u,a.flush()}e.insert("",n,a,!1)},[e,n.name]),null});function Eb(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return Nk(e)}function Rv(){var r=Eb.apply(void 0,arguments),e="animation-"+r.name;return{name:e,styles:"@keyframes "+e+"{"+r.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var klt=/^((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|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,Olt=fEe(function(r){return klt.test(r)||r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)<91}),Mlt=Olt,Nlt=function(e){return e!=="theme"},gle=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?Mlt:Nlt},mle=function(e,t,n){var i;if(t){var o=t.shouldForwardProp;i=e.__emotion_forwardProp&&o?function(a){return e.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&n&&(i=e.__emotion_forwardProp),i},Dlt=function(e){var t=e.cache,n=e.serialized,i=e.isStringTag;return FQ(t,n,i),_Ee(function(){return UQ(t,n,i)}),null},Llt=function r(e,t){var n=e.__emotion_real===e,i=n&&e.__emotion_base||e,o,a;t!==void 0&&(o=t.label,a=t.target);var l=mle(e,t,n),u=l||gle(i),h=!u("as");return function(){var p=arguments,m=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(o!==void 0&&m.push("label:"+o+";"),p[0]==null||p[0].raw===void 0)m.push.apply(m,p);else{var _=p[0];m.push(_[0]);for(var C=p.length,T=1;T<C;T++)m.push(p[T],_[T])}var S=BQ(function(R,O,N){var H=h&&R.as||i,F="",j=[],L=R;if(R.theme==null){L={};for(var B in R)L[B]=R[B];L.theme=V.useContext(WE)}typeof R.className=="string"?F=mEe(O.registered,j,R.className):R.className!=null&&(F=R.className+" ");var Q=Nk(m.concat(j),O.registered,L);F+=O.key+"-"+Q.name,a!==void 0&&(F+=" "+a);var Z=h&&l===void 0?gle(H):u,ie={};for(var J in R)h&&J==="as"||Z(J)&&(ie[J]=R[J]);return ie.className=F,N&&(ie.ref=N),V.createElement(V.Fragment,null,V.createElement(Dlt,{cache:O,serialized:Q,isStringTag:typeof H=="string"}),V.createElement(H,ie))});return S.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",S.defaultProps=e.defaultProps,S.__emotion_real=S,S.__emotion_base=i,S.__emotion_styles=m,S.__emotion_forwardProp=l,Object.defineProperty(S,"toString",{value:function(){return"."+a}}
766),S.withComponent=function(R,O){var N=r(R,ce({},t,O,{shouldForwardProp:mle(S,O,!0)}));return N.apply(void 0,m)},S}},Hlt=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],_B=Llt.bind(null);Hlt.forEach(function(r){_B[r]=_B(r)});function Flt(r,e){const t=gEe({key:"css",prepend:r});if(e){const n=t.insert;t.insert=(...i)=>(i[1].styles.match(/^@layer\s+[^{]*$/)||(i[1].styles=`@layer mui {${i[1].styles}}`),n(...i))}return t}const y3=new Map;function Ult(r){const{injectFirst:e,enableCssLayer:t,children:n}=r,i=V.useMemo(()=>{const o=`${e}-${t}`;if(typeof document=="object"&&y3.has(o))return y3.get(o);const a=Flt(e,t);return y3.set(o,a),a},[e,t]);return e||t?$.jsx(Elt,{value:i,children:n}):n}function Blt(r){return r==null||Object.keys(r).length===0}function wEe(r){const{styles:e,defaultTheme:t={}}=r,n=typeof e=="function"?i=>e(Blt(i)?t:i):e;return $.jsx(Plt,{styles:n})}function zQ(r,e){return _B(r,e)}const EEe=(r,e)=>{Array.isArray(r.__emotion_styles)&&(r.__emotion_styles=e(r.__emotion_styles))},yle=[];function bB(r){return yle[0]=r,Nk(yle)}const $lt=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:wEe,StyledEngineProvider:Ult,ThemeContext:WE,css:Eb,default:zQ,internal_processStyles:EEe,internal_serializeStyles:bB,keyframes:Rv},Symbol.toStringTag,{value:"Module"})),CEe=Ab($lt),zlt=Ab(ost),jlt=Ab(fst),Vlt=Ab(dst),qlt=["values","unit","step"],Glt=r=>{const e=Object.keys(r).map(t=>({key:t,val:r[t]}))||[];return e.sort((t,n)=>t.val-n.val),e.reduce((t,n)=>ce({},t,{[n.key]:n.val}),{})};function xEe(r){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:t="px",step:n=5}=r,i=Gt(r,qlt),o=Glt(e),a=Object.keys(o);function l(_){return`@media (min-width:${typeof e[_]=="number"?e[_]:_}${t})`}function u(_){return`@media (max-width:${(typeof e[_]=="number"?e[_]:_)-n/100}${t})`}function h(_,C){const T=a.indexOf(C);return`@media (min-width:${typeof e[_]=="number"?e[_]:_}${t}) and (max-width:${(T!==-1&&typeof e[a[T]]=="number"?e[a[T]]:C)-n/100}${t})`}function p(_){return a.indexOf(_)+1<a.length?h(_,a[a.indexOf(_)+1]):l(_)}function m(_){const C=a.indexOf(_);return C===0?l(a[1]):C===a.length-1?u(a[C]):h(_,a[a.indexOf(_)+1]).replace("@media","@media not all and")}return ce({keys:a,values:o,up:l,down:u,between:h,only:p,not:m,unit:t},i)}const Ylt={borderRadius:4};function gN(r,e){return e?qh(r,e,{clone:!1}):r}const jQ={xs:0,sm:600,md:900,lg:1200,xl:1536},vle={keys:["xs","sm","md","lg","xl"],up:r=>`@media (min-width:${jQ[r]}px)`};function ap(r,e,t){const n=r.theme||{};if(Array.isArray(e)){const o=n.breakpoints||vle;return e.reduce((a,l,u)=>(a[o.up(o.keys[u])]=t(e[u]),a),{})}if(typeof e=="object"){const o=n.breakpoints||vle;return Object.keys(e).reduce((a,l)=>{if(Object.keys(o.values||jQ).indexOf(l)!==-1){const u=o.up(l);a[u]=t(e[l],l)}else{const u=l;a[u]=e[u]}return a},{})}return t(e)}function TEe(r={}){var e;return((e=r.keys)==null?void 0:e.reduce((n,i)=>{const o=r.up(i);return n[o]={},n},{}))||{}}function ZY(r,e){return r.reduce((t,n)=>{const i=t[n];return(!i||Object.keys(i).length===0)&&delete t[n],t},e)}function Wlt(r,...e){const t=TEe(r),n=[t,...e].reduce((i,o)=>qh(i,o),{});return ZY(Object.keys(t),n)}function Klt(r,e){if(typeof r!="object")return{};const t={},n=Object.keys(e);
766return Array.isArray(r)?n.forEach((i,o)=>{o<r.length&&(t[i]=!0)}):n.forEach(i=>{r[i]!=null&&(t[i]=!0)}),t}function GT({values:r,breakpoints:e,base:t}){const n=t||Klt(r,e),i=Object.keys(n);if(i.length===0)return r;let o;return i.reduce((a,l,u)=>(Array.isArray(r)?(a[l]=r[u]!=null?r[u]:r[o],o=u):typeof r=="object"?(a[l]=r[l]!=null?r[l]:r[o],o=l):a[l]=r,a),{})}function y9(r,e,t=!0){if(!e||typeof e!="string")return null;if(r&&r.vars&&t){const n=`vars.${e}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,r);if(n!=null)return n}return e.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,r)}function wB(r,e,t,n=t){let i;return typeof r=="function"?i=r(t):Array.isArray(r)?i=r[t]||n:i=y9(r,t)||n,e&&(i=e(i,n,r)),i}function Yl(r){const{prop:e,cssProperty:t=r.prop,themeKey:n,transform:i}=r,o=a=>{if(a[e]==null)return null;const l=a[e],u=a.theme,h=y9(u,n)||{};return ap(a,l,m=>{let _=wB(h,i,m);return m===_&&typeof m=="string"&&(_=wB(h,i,`${e}${m==="default"?"":nr(m)}`,m)),t===!1?_:{[t]:_}})};return o.propTypes={},o.filterProps=[e],o}function Zlt(r){const e={};return t=>(e[t]===void 0&&(e[t]=r(t)),e[t])}const Xlt={m:"margin",p:"padding"},Qlt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},_le={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Jlt=Zlt(r=>{if(r.length>2)if(_le[r])r=_le[r];else return[r];const[e,t]=r.split(""),n=Xlt[e],i=Qlt[t]||"";return Array.isArray(i)?i.map(o=>n+o):[n+i]}),VQ=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],qQ=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...VQ,...qQ];function FL(r,e,t,n){var i;const o=(i=y9(r,e,!1))!=null?i:t;return typeof o=="number"?a=>typeof a=="string"?a:o*a:Array.isArray(o)?a=>typeof a=="string"?a:o[a]:typeof o=="function"?o:()=>{}}function GQ(r){return FL(r,"spacing",8)}function _S(r,e){if(typeof e=="string"||e==null)return e;const t=Math.abs(e),n=r(t);return e>=0?n:typeof n=="number"?-n:`-${n}`}function ect(r,e){return t=>r.reduce((n,i)=>(n[i]=_S(e,t),n),{})}function tct(r,e,t,n){if(e.indexOf(t)===-1)return null;const i=Jlt(t),o=ect(i,n),a=r[t];return ap(r,a,o)}function SEe(r,e){const t=GQ(r.theme);return Object.keys(r).map(n=>tct(r,e,n,t)).reduce(gN,{})}function ml(r){return SEe(r,VQ)}ml.propTypes={};ml.filterProps=VQ;function yl(r){return SEe(r,qQ)}yl.propTypes={};yl.filterProps=qQ;function rct(r=8){if(r.mui)return r;const e=GQ({spacing:r}),t=(...n)=>(n.length===0?[1]:n).map(o=>{const a=e(o);return typeof a=="number"?`${a}px`:a}).join(" ");return t.mui=!0,t}function v9(...r){const e=r.reduce((n,i)=>(i.filterProps.forEach(o=>{n[o]=i}),n),{}),t=n=>Object.keys(n).reduce((i,o)=>e[o]?gN(i,e[o](n)):i,{});return t.propTypes={},t.filterProps=r.reduce((n,i)=>n.concat(i.filterProps),[]),t}function wm(r){return typeof r!="number"?r:`${r}px solid`}function ey(r,e){return Yl({prop:r,themeKey:"borders",transform:e})}const nct=ey("border",wm),ict=ey("borderTop",wm),oct=ey("borderRight",wm),act=ey("borderBottom",wm),sct=ey("borderLeft",wm),lct=ey("borderColor"),cct=ey("borderTopColor"),uct=ey("borderRightColor"),dct=ey("borderBottomColor"),hct=ey("borderLeftColor"),fct=ey("outline",wm),pct=ey("outlineColor"),_9=r=>{if(r.borderRadius!==void 0&&r.borderRadius!==null){const e=FL(r.theme,"shape.borderRadius",4),t=n=>({borderRadius:_S(e,n)});return ap(r,r.borderRadius,t)}return null};_9.propTypes={};_9.filterProps=["borderRadius"];v9(nct,ict,oct,act,sct,lct,cct,uct,dct,hct,_9,fct,pct);const b9=r=>{if(r.gap!==void 0&&r.gap!==null){const e=FL(r.theme,"spacing",8),t=n=>({gap:_S(e,n)});return ap(r,r.gap,t)}return null};b9.propTypes={};b9.filterProps=["gap"];const w9=r=>{if(r.columnGap!==void 0&&r.columnGap!==null){const e=FL(r.theme,"spacing",8),t=n=>({columnGap:_S(e,n)});return ap(r,r.columnGap,t)}return null};w9.propTypes={};w9.filterProps=["columnGap"];const E9=r=>{if(r.rowGap!==void 0&&r.rowGap!==null){const e=FL(r.theme,"spacing",8),t=n=>({rowGap:_S(e,n)});return ap(r,r.rowGap,t)}return null};E9.propTypes={};E9.filterProps=["rowGap"];const gct=Yl({prop:"gridColumn"}),mct=Yl({prop:"gridRow"}
766),yct=Yl({prop:"gridAutoFlow"}),vct=Yl({prop:"gridAutoColumns"}),_ct=Yl({prop:"gridAutoRows"}),bct=Yl({prop:"gridTemplateColumns"}),wct=Yl({prop:"gridTemplateRows"}),Ect=Yl({prop:"gridTemplateAreas"}),Cct=Yl({prop:"gridArea"});v9(b9,w9,E9,gct,mct,yct,vct,_ct,bct,wct,Ect,Cct);function eP(r,e){return e==="grey"?e:r}const xct=Yl({prop:"color",themeKey:"palette",transform:eP}),Tct=Yl({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:eP}),Sct=Yl({prop:"backgroundColor",themeKey:"palette",transform:eP});v9(xct,Tct,Sct);function Jp(r){return r<=1&&r!==0?`${r*100}%`:r}const Ict=Yl({prop:"width",transform:Jp}),YQ=r=>{if(r.maxWidth!==void 0&&r.maxWidth!==null){const e=t=>{var n,i;const o=((n=r.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[t])||jQ[t];return o?((i=r.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${r.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Jp(t)}};return ap(r,r.maxWidth,e)}return null};YQ.filterProps=["maxWidth"];const Act=Yl({prop:"minWidth",transform:Jp}),Rct=Yl({prop:"height",transform:Jp}),Pct=Yl({prop:"maxHeight",transform:Jp}),kct=Yl({prop:"minHeight",transform:Jp});Yl({prop:"size",cssProperty:"width",transform:Jp});Yl({prop:"size",cssProperty:"height",transform:Jp});const Oct=Yl({prop:"boxSizing"});v9(Ict,YQ,Act,Rct,Pct,kct,Oct);const UL={border:{themeKey:"borders",transform:wm},borderTop:{themeKey:"borders",transform:wm},borderRight:{themeKey:"borders",transform:wm},borderBottom:{themeKey:"borders",transform:wm},borderLeft:{themeKey:"borders",transform:wm},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wm},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:_9},color:{themeKey:"palette",transform:eP},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:eP},backgroundColor:{themeKey:"palette",transform:eP},p:{style:yl},pt:{style:yl},pr:{style:yl},pb:{style:yl},pl:{style:yl},px:{style:yl},py:{style:yl},padding:{style:yl},paddingTop:{style:yl},paddingRight:{style:yl},paddingBottom:{style:yl},paddingLeft:{style:yl},paddingX:{style:yl},paddingY:{style:yl},paddingInline:{style:yl},paddingInlineStart:{style:yl},paddingInlineEnd:{style:yl},paddingBlock:{style:yl},paddingBlockStart:{style:yl},paddingBlockEnd:{style:yl},m:{style:ml},mt:{style:ml},mr:{style:ml},mb:{style:ml},ml:{style:ml},mx:{style:ml},my:{style:ml},margin:{style:ml},marginTop:{style:ml},marginRight:{style:ml},marginBottom:{style:ml},marginLeft:{style:ml},marginX:{style:ml},marginY:{style:ml},marginInline:{style:ml},marginInlineStart:{style:ml},marginInlineEnd:{style:ml},marginBlock:{style:ml},marginBlockStart:{style:ml},marginBlockEnd:{style:ml},displayPrint:{cssProperty:!1,transform:r=>({"@media print":{display:r}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:b9},rowGap:{style:E9},columnGap:{style:w9},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Jp},maxWidth:{style:YQ},minWidth:{transform:Jp},height:{transform:Jp},maxHeight:{transform:Jp},minHeight:{transform:Jp},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Mct(...r){const e=r.reduce((n,i)=>n.concat(Object.keys(i)),[]),t=new Set(e);return r.every(n=>t.size===Object.keys(n).length)}function Nct(r,e){return typeof r=="function"?r(e):r}function IEe(){function r(t,n,i,o){const a={[t]:n,theme:i},l=o[t];
766if(!l)return{[t]:n};const{cssProperty:u=t,themeKey:h,transform:p,style:m}=l;if(n==null)return null;if(h==="typography"&&n==="inherit")return{[t]:n};const _=y9(i,h)||{};return m?m(a):ap(a,n,T=>{let S=wB(_,p,T);return T===S&&typeof T=="string"&&(S=wB(_,p,`${t}${T==="default"?"":nr(T)}`,T)),u===!1?S:{[u]:S}})}function e(t){var n;const{sx:i,theme:o={},nested:a}=t||{};if(!i)return null;const l=(n=o.unstable_sxConfig)!=null?n:UL;function u(h){let p=h;if(typeof h=="function")p=h(o);else if(typeof h!="object")return h;if(!p)return null;const m=TEe(o.breakpoints),_=Object.keys(m);let C=m;return Object.keys(p).forEach(T=>{const S=Nct(p[T],o);if(S!=null)if(typeof S=="object")if(l[T])C=gN(C,r(T,S,o,l));else{const R=ap({theme:o},S,O=>({[T]:O}));Mct(R,S)?C[T]=e({sx:S,theme:o,nested:!0}):C=gN(C,R)}else C=gN(C,r(T,S,o,l))}),!a&&o.modularCssLayers?{"@layer sx":ZY(_,C)}:ZY(_,C)}return Array.isArray(i)?i.map(u):u(i)}return e}const Dk=IEe();Dk.filterProps=["sx"];function AEe(r,e){const t=this;return t.vars&&typeof t.getColorSchemeSelector=="function"?{[t.getColorSchemeSelector(r).replace(/(\[[^\]]+\])/,"*:where($1)")]:e}:t.palette.mode===r?e:{}}const Dct=["breakpoints","palette","spacing","shape"];function BL(r={},...e){const{breakpoints:t={},palette:n={},spacing:i,shape:o={}}=r,a=Gt(r,Dct),l=xEe(t),u=rct(i);let h=qh({breakpoints:l,direction:"ltr",components:{},palette:ce({mode:"light"},n),spacing:u,shape:ce({},Ylt,o)},a);return h.applyStyles=AEe,h=e.reduce((p,m)=>qh(p,m),h),h.unstable_sxConfig=ce({},UL,a==null?void 0:a.unstable_sxConfig),h.unstable_sx=function(m){return Dk({sx:m,theme:this})},h}const Lct=Object.freeze(Object.defineProperty({__proto__:null,default:BL,private_createBreakpoints:xEe,unstable_applyStyles:AEe},Symbol.toStringTag,{value:"Module"})),Hct=Ab(Lct),Fct=["sx"],Uct=r=>{var e,t;const n={systemProps:{},otherProps:{}},i=(e=r==null||(t=r.theme)==null?void 0:t.unstable_sxConfig)!=null?e:UL;return Object.keys(r).forEach(o=>{i[o]?n.systemProps[o]=r[o]:n.otherProps[o]=r[o]}),n};function $L(r){const{sx:e}=r,t=Gt(r,Fct),{systemProps:n,otherProps:i}=Uct(t);let o;return Array.isArray(e)?o=[n,...e]:typeof e=="function"?o=(...a)=>{const l=e(...a);return D1(l)?ce({},n,l):n}:o=ce({},n,e),ce({},i,{sx:o})}const Bct=Object.freeze(Object.defineProperty({__proto__:null,default:Dk,extendSxProp:$L,unstable_createStyleFunctionSx:IEe,unstable_defaultSxConfig:UL},Symbol.toStringTag,{value:"Module"})),$ct=Ab(Bct);var ble;function zct(){if(ble)return gx;ble=1;var r=Wa();Object.defineProperty(gx,"__esModule",{value:!0}),gx.default=j,gx.shouldForwardProp=T,gx.systemDefaultTheme=void 0;var e=r(Lst()),t=r(Hst()),n=m(CEe),i=zlt;r(jlt),r(Vlt);var o=r(Hct),a=r($ct);const l=["ownerState"],u=["variants"],h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(L){if(typeof WeakMap!="function")return null;var B=new WeakMap,Q=new WeakMap;return(p=function(Z){return Z?Q:B})(L)}function m(L,B){if(L&&L.__esModule)return L;if(L===null||typeof L!="object"&&typeof L!="function")return{default:L};var Q=p(B);if(Q&&Q.has(L))return Q.get(L);var Z={__proto__:null},ie=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var J in L)if(J!=="default"&&Object.prototype.hasOwnProperty.call(L,J)){var ne=ie?Object.getOwnPropertyDescriptor(L,J):null;ne&&(ne.get||ne.set)?Object.defineProperty(Z,J,ne):Z[J]=L[J]}return Z.default=L,Q&&Q.set(L,Z),Z}function _(L){return Object.keys(L).length===0}function C(L){return typeof L=="string"&&L.charCodeAt(0)>96}function T(L){return L!=="ownerState"&&L!=="theme"&&L!=="sx"&&L!=="as"}function S(L,B){return B&&L&&typeof L=="object"&&L.styles&&!L.styles.startsWith("@layer")&&(L.styles=`@layer ${B}{${String(L.styles)}}`),L}const R=gx.systemDefaultTheme=(0,o.default)(),O=L=>L&&L.charAt(0).toLowerCase()+L.slice(1);function N({defaultTheme:L,theme:B,themeId:Q}){return _(B)?L:B[Q]||B}function H(L){return L?(B,Q)=>Q[L]:null}function F(L,B,Q){let{ownerState:Z}=B,ie=(0,t.default)(B,l);const J=typeof L=="function"?L((0,e.default)({ownerState:Z},ie)):L;if(Array.isArray(J))return J.flatMap(ne=>F(ne,(0,e.default)({ownerState:Z},ie),Q));
766if(J&&typeof J=="object"&&Array.isArray(J.variants)){const{variants:ne=[]}=J;let K=(0,t.default)(J,u);return ne.forEach(se=>{let be=!0;if(typeof se.props=="function"?be=se.props((0,e.default)({ownerState:Z},ie,Z)):Object.keys(se.props).forEach(de=>{(Z==null?void 0:Z[de])!==se.props[de]&&ie[de]!==se.props[de]&&(be=!1)}),be){Array.isArray(K)||(K=[K]);const de=typeof se.style=="function"?se.style((0,e.default)({ownerState:Z},ie,Z)):se.style;K.push(Q?S((0,n.internal_serializeStyles)(de),Q):de)}}),K}return Q?S((0,n.internal_serializeStyles)(J),Q):J}function j(L={}){const{themeId:B,defaultTheme:Q=R,rootShouldForwardProp:Z=T,slotShouldForwardProp:ie=T}=L,J=ne=>(0,a.default)((0,e.default)({},ne,{theme:N((0,e.default)({},ne,{defaultTheme:Q,themeId:B}))}));return J.__mui_systemSx=!0,(ne,ue={})=>{(0,n.internal_processStyles)(ne,qe=>qe.filter(lt=>!(lt!=null&&lt.__mui_systemSx)));const{name:K,slot:se,skipVariantsResolver:be,skipSx:de,overridesResolver:ge=H(O(se))}=ue,Ue=(0,t.default)(ue,h),Qe=K&&K.startsWith("Mui")||se?"components":"custom",ve=be!==void 0?be:se&&se!=="Root"&&se!=="root"||!1,pe=de||!1;let He,Re=T;se==="Root"||se==="root"?Re=Z:se?Re=ie:C(ne)&&(Re=void 0);const $e=(0,n.default)(ne,(0,e.default)({shouldForwardProp:Re,label:He},Ue)),tt=qe=>typeof qe=="function"&&qe.__emotion_real!==qe||(0,i.isPlainObject)(qe)?lt=>{const Et=N({theme:lt.theme,defaultTheme:Q,themeId:B});return F(qe,(0,e.default)({},lt,{theme:Et}),Et.modularCssLayers?Qe:void 0)}:qe,ot=(qe,...lt)=>{let Et=tt(qe);const Oe=lt?lt.map(tt):[];K&&ge&&Oe.push(te=>{const me=N((0,e.default)({},te,{defaultTheme:Q,themeId:B}));if(!me.components||!me.components[K]||!me.components[K].styleOverrides)return null;const Ae=me.components[K].styleOverrides,_e={};return Object.entries(Ae).forEach(([Ve,it])=>{_e[Ve]=F(it,(0,e.default)({},te,{theme:me}),me.modularCssLayers?"theme":void 0)}),ge(te,_e)}),K&&!ve&&Oe.push(te=>{var me;const Ae=N((0,e.default)({},te,{defaultTheme:Q,themeId:B})),_e=Ae==null||(me=Ae.components)==null||(me=me[K])==null?void 0:me.variants;return F({variants:_e},(0,e.default)({},te,{theme:Ae}),Ae.modularCssLayers?"theme":void 0)}),pe||Oe.push(J);const le=Oe.length-lt.length;if(Array.isArray(qe)&&le>0){const te=new Array(le).fill("");Et=[...qe,...te],Et.raw=[...qe.raw,...te]}const re=$e(Et,...Oe);return ne.muiName&&(re.muiName=ne.muiName),re};return $e.withConfig&&(ot.withConfig=$e.withConfig),ot}}return gx}var jct=zct();const Vct=ao(jct);function qct(r,e){return ce({toolbar:{minHeight:56,[r.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[r.up("sm")]:{minHeight:64}}},e)}var Qs={};const Gct=Ab(ast),Yct=Ab(kst);var wle;function Wct(){if(wle)return Qs;wle=1;var r=Wa();Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.alpha=T,Qs.blend=L,Qs.colorChannel=void 0,Qs.darken=R,Qs.decomposeColor=a,Qs.emphasize=F,Qs.getContrastRatio=C,Qs.getLuminance=_,Qs.hexToRgb=i,Qs.hslToRgb=m,Qs.lighten=N,Qs.private_safeAlpha=S,Qs.private_safeColorChannel=void 0,Qs.private_safeDarken=O,Qs.private_safeEmphasize=j,Qs.private_safeLighten=H,Qs.recomposeColor=h,Qs.rgbToHex=p;var e=r(Gct),t=r(Yct);function n(B,Q=0,Z=1){return(0,t.default)(B,Q,Z)}function i(B){B=B.slice(1);const Q=new RegExp(`.{1,${B.length>=6?2:1}}`,"g");let Z=B.match(Q);return Z&&Z[0].length===1&&(Z=Z.map(ie=>ie+ie)),Z?`rgb${Z.length===4?"a":""}(${Z.map((ie,J)=>J<3?parseInt(ie,16):Math.round(parseInt(ie,16)/255*1e3)/1e3).join(", ")})`:""}function o(B){const Q=B.toString(16);return Q.length===1?`0${Q}`:Q}function a(B){if(B.type)return B;if(B.charAt(0)==="#")return a(i(B));const Q=B.indexOf("("),Z=B.substring(0,Q);if(["rgb","rgba","hsl","hsla","color"].indexOf(Z)===-1)throw new Error((0,e.default)(9,B));let ie=B.substring(Q+1,B.length-1),J;if(Z==="color"){if(ie=ie.split(" "),J=ie.shift(),ie.length===4&&ie[3].charAt(0)==="/"&&(ie[3]=ie[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(J)===-1)throw new Error((0,e.default)(10,J))}else ie=ie.split(",");return ie=ie.map(ne=>parseFloat(ne)),{type:Z,values:ie,colorSpace:J}}const l=B=>{const Q=a(B);return Q.values.slice(0,3).map((Z,ie)=>Q.type.indexOf("hsl")!==-1&&ie!==0?`${Z}%`:Z).join(" ")};Qs.colorChannel=l;const u=(B,Q)=>{try{return l(B)}catch{return B}};Qs.private_safeColorChannel=u;function h(B){const{type:Q,colorSpace:Z}=B;let{values:ie}=B;return Q.indexOf("rgb")!==-1?ie=ie.map((J,ne)=>ne<3?parseInt(J,10):J):Q.indexOf("hsl")!==-1&&(ie[1]=`${ie[1]}%`,ie[2]=`${ie[2]}%`),Q.indexOf("color")!==-1?ie=`${Z} ${ie.join(" ")}`:ie=`${ie.join(", ")}`,`${Q}(${ie})`}function p(B){if(B.indexOf("#")===0)return B;const{values:Q}=a(B);return`#${Q.map((Z,ie)=>o(ie===3?Math.round(255*Z):Z)).join("")}`}function m(B){B=a(B);const{values:Q}=B,Z=Q[0],ie=Q[1]/100,J=Q[2]/100,ne=ie*Math.min(J,1-J),ue=(be,de=(be+Z/30)%12)=>J-ne*Math.max(Math.min(de-3,9-de,1),-1);let K="rgb";const se=[Math.round(ue(0)*255),Math.round(ue(8)*255),Math.round(ue(4)*255)];return B.type==="hsla"&&(K+="a",se.push(Q[3])),h({type:K,values:se})}function _(B){B=a(B);let Q=B.type==="hsl"||B.type==="hsla"?a(m(B)).values:B.values;return Q=Q.map(Z=>(B.type!=="color"&&(Z/=255),Z<=.03928?Z/12.92:((Z+.055)/1.055)**2.4)),Number((.2126*Q[0]+.7152*Q[1]+.0722*Q[2]).toFixed(3))}function C(B,Q){const Z=_(B),ie=_(Q);return(Math.max(Z,ie)+.05)/(Math.min(Z,ie)+.05)}function T(B,Q){return B=a(B),Q=n(Q),(B.type==="rgb"||B.type==="hsl")&&(B.type+="a"),B.type==="color"?B.values[3]=`/${Q}`:B.values[3]=Q,h(B)}function S(B,Q,Z){try{return T(B,Q)}catch{return B}}function R(B,Q){if(B=a(B),Q=n(Q),B.type.indexOf("hsl")!==-1)B.values[2]*=1-Q;else if(B.type.indexOf("rgb")!==-1||B.type.indexOf("color")!==-1)for(let Z=0;Z<3;Z+=1)B.values[Z]*=1-Q;return h(B)}function O(B,Q,Z){try{return R(B,Q)}catch{return B}}function N(B,Q){if(B=a(B),Q=n(Q),B.type.indexOf("hsl")!==-1)B.values[2]+=(100-B.values[2])*Q;else if(B.type.indexOf("rgb")!==-1)for(let Z=0;Z<3;Z+=1)B.values[Z]+=(255-B.values[Z])*Q;else if(B.type.indexOf("color")!==-1)for(let Z=0;Z<3;Z+=1)B.values[Z]+=(1-B.values[Z])*Q;return h(B)}function H(B,Q,Z){try{return N(B,Q)}catch{return B}}function F(B,Q=.15){return _(B)>.5?R(B,Q):N(B,Q)}function j(B,Q,Z){try{return F(B,Q)}catch{return B}}function L(B,Q,Z,ie=1){const J=(se,be)=>Math.round((se**(1/ie)*(1-Z)+be**(1/ie)*Z)**ie),ne=a(B),ue=a(Q),K=[J(ne.values[0],ue.values[0]),J(ne.values[1],ue.values[1]),J(ne.values[2],ue.values[2])];return h({type:"rgb",values:K})}return Qs}var Qn=Wct();const RD={black:"#000",white:"#fff"},Kct={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"},QI={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"},JI={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"},gO={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"},eA={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"},tA={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"},rA={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"},Zct=["mode","contrastThreshold","tonalOffset"],Ele={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:RD.white,default:RD.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)",disabledBackgroun
766d:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},v3={text:{primary:RD.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:RD.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 Cle(r,e,t,n){const i=n.light||n,o=n.dark||n*1.5;r[e]||(r.hasOwnProperty(t)?r[e]=r[t]:e==="light"?r.light=Qn.lighten(r.main,i):e==="dark"&&(r.dark=Qn.darken(r.main,o)))}function Xct(r="light"){return r==="dark"?{main:eA[200],light:eA[50],dark:eA[400]}:{main:eA[700],light:eA[400],dark:eA[800]}}function Qct(r="light"){return r==="dark"?{main:QI[200],light:QI[50],dark:QI[400]}:{main:QI[500],light:QI[300],dark:QI[700]}}function Jct(r="light"){return r==="dark"?{main:JI[500],light:JI[300],dark:JI[700]}:{main:JI[700],light:JI[400],dark:JI[800]}}function eut(r="light"){return r==="dark"?{main:tA[400],light:tA[300],dark:tA[700]}:{main:tA[700],light:tA[500],dark:tA[900]}}function tut(r="light"){return r==="dark"?{main:rA[400],light:rA[300],dark:rA[700]}:{main:rA[800],light:rA[500],dark:rA[900]}}function rut(r="light"){return r==="dark"?{main:gO[400],light:gO[300],dark:gO[700]}:{main:"#ed6c02",light:gO[500],dark:gO[900]}}function nut(r){const{mode:e="light",contrastThreshold:t=3,tonalOffset:n=.2}=r,i=Gt(r,Zct),o=r.primary||Xct(e),a=r.secondary||Qct(e),l=r.error||Jct(e),u=r.info||eut(e),h=r.success||tut(e),p=r.warning||rut(e);function m(S){return Qn.getContrastRatio(S,v3.text.primary)>=t?v3.text.primary:Ele.text.primary}const _=({color:S,name:R,mainShade:O=500,lightShade:N=300,darkShade:H=700})=>{if(S=ce({},S),!S.main&&S[O]&&(S.main=S[O]),!S.hasOwnProperty("main"))throw new Error(wb(11,R?` (${R})`:"",O));if(typeof S.main!="string")throw new Error(wb(12,R?` (${R})`:"",JSON.stringify(S.main)));return Cle(S,"light",N,n),Cle(S,"dark",H,n),S.contrastText||(S.contrastText=m(S.main)),S},C={dark:v3,light:Ele};return qh(ce({common:ce({},RD),mode:e,primary:_({color:o,name:"primary"}),secondary:_({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:_({color:l,name:"error"}),warning:_({color:p,name:"warning"}),info:_({color:u,name:"info"}),success:_({color:h,name:"success"}),grey:Kct,contrastThreshold:t,getContrastText:m,augmentColor:_,tonalOffset:n},C[e]),i)}const iut=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function out(r){return Math.round(r*1e5)/1e5}const xle={textTransform:"uppercase"},Tle='"Roboto", "Helvetica", "Arial", sans-serif';function aut(r,e){const t=typeof e=="function"?e(r):e,{fontFamily:n=Tle,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:u=700,htmlFontSize:h=16,allVariants:p,pxToRem:m}=t,_=Gt(t,iut),C=i/14,T=m||(O=>`${O/h*C}rem`),S=(O,N,H,F,j)=>ce({fontFamily:n,fontWeight:O,fontSize:T(N),lineHeight:H},n===Tle?{letterSpacing:`${out(F/N)}em`}:{},j,p),R={h1:S(o,96,1.167,-1.5),h2:S(o,60,1.2,-.5),h3:S(a,48,1.167,0),h4:S(a,34,1.235,.25),h5:S(a,24,1.334,0),h6:S(l,20,1.6,.15),subtitle1:S(a,16,1.75,.15),subtitle2:S(l,14,1.57,.1),body1:S(a,16,1.5,.15),body2:S(a,14,1.43,.15),button:S(l,14,1.75,.4,xle),caption:S(a,12,1.66,.4),overline:S(a,12,2.66,1,xle),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qh(ce({htmlFontSize:h,pxToRem:T,fontFamily:n,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:u},R),_,{clone:!1})}const sut=.2,lut=.14,cut=.12;function Fs(...r){return[`${r[0]}px ${r[1]}px ${r[2]}px ${r[3]}px rgba(0,0,0,${sut})`,`${r[4]}px ${r[5]}px ${r[6]}px ${r[7]}px rgba(0,0,0,${lut})`,`${r[8]}px ${r[9]}px ${r[10]}px ${r[11]}px rgba(0,0,0,${cut})`].join(",")}const uut=["none",Fs(0,2,1,-1,0,1,1,0,0,1,3,0),Fs(0,3,1,-2,0,2,2,0,0,1,5,0),Fs(0,3,3,-2,0,3,4,0,0,1,8,0),Fs(0,2,4,-1,0,4,5,0,0,1,10,0),Fs(0,3,5,-1,0,5,8,0,0,1,14,0),Fs(0,3,5,-1,0,6,10,0,0,1,18,0),Fs(0,4,5,-2,0,7,10,1,0,2,16,1),Fs(0,5,5,-3,0,8,10,1,0,3,14,2),Fs(0,5,6,-3,0,9,12,1,0,3,16,2),Fs(0,6,6,-3,0,10,14,1,0,4,18,3),Fs(0,6,7,-4,0,11,15,1,0,4,20,3),Fs(0,7,8,-4,0,12,17,2,0,5,22,4),Fs(0,7,8,-4,0,13,19,2,0,5,24,4),Fs(0,7,9,-4,0,14,21,2,0,5,26,4),Fs(0,8,9,-5,0,15,22,2,0,6,28,5),Fs(0,8,10,-5,0,16,24,2,0,6,30,5),Fs(0,8,11,-5,0,17,26,2,0,6,32,5),Fs(0,9,11,-5,0,18,28,2,0,7,34,6),Fs(0,9,12,-6,0,19,29,2,0,7,36,6
766),Fs(0,10,13,-6,0,20,31,3,0,8,38,7),Fs(0,10,13,-6,0,21,33,3,0,8,40,7),Fs(0,10,14,-6,0,22,35,3,0,8,42,7),Fs(0,11,14,-7,0,23,36,3,0,9,44,8),Fs(0,11,15,-7,0,24,38,3,0,9,46,8)],dut=["duration","easing","delay"],hut={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)"},fut={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Sle(r){return`${Math.round(r)}ms`}function put(r){if(!r)return 0;const e=r/36;return Math.round((4+15*e**.25+e/5)*10)}function gut(r){const e=ce({},hut,r.easing),t=ce({},fut,r.duration);return ce({getAutoHeightDuration:put,create:(i=["all"],o={})=>{const{duration:a=t.standard,easing:l=e.easeInOut,delay:u=0}=o;return Gt(o,dut),(Array.isArray(i)?i:[i]).map(h=>`${h} ${typeof a=="string"?a:Sle(a)} ${l} ${typeof u=="string"?u:Sle(u)}`).join(",")}},r,{easing:e,duration:t})}const mut={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},yut=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function bS(r={},...e){const{mixins:t={},palette:n={},transitions:i={},typography:o={}}=r,a=Gt(r,yut);if(r.vars&&r.generateCssVars===void 0)throw new Error(wb(18));const l=nut(n),u=BL(r);let h=qh(u,{mixins:qct(u.breakpoints,t),palette:l,shadows:uut.slice(),typography:aut(l,o),transitions:gut(i),zIndex:ce({},mut)});return h=qh(h,a),h=e.reduce((p,m)=>qh(p,m),h),h.unstable_sxConfig=ce({},UL,a==null?void 0:a.unstable_sxConfig),h.unstable_sx=function(m){return Dk({sx:m,theme:this})},h}function m2t(...r){return bS(...r)}const C9=bS(),wS="$$material";function REe(r){return r!=="ownerState"&&r!=="theme"&&r!=="sx"&&r!=="as"}const Ru=r=>REe(r)&&r!=="classes",Nt=Vct({themeId:wS,defaultTheme:C9,rootShouldForwardProp:Ru});function vut(r){return Mr("MuiSvgIcon",r)}const y2t=Br("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]),_ut=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],but=r=>{const{color:e,fontSize:t,classes:n}=r,i={root:["root",e!=="inherit"&&`color${nr(e)}`,`fontSize${nr(t)}`]};return Ur(i,vut,n)},wut=Nt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,t.color!=="inherit"&&e[`color${nr(t.color)}`],e[`fontSize${nr(t.fontSize)}`]]}})(({theme:r,ownerState:e})=>{var t,n,i,o,a,l,u,h,p,m,_,C,T;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=r.transitions)==null||(n=t.create)==null?void 0:n.call(t,"fill",{duration:(i=r.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=r.typography)==null||(a=o.pxToRem)==null?void 0:a.call(o,20))||"1.25rem",medium:((l=r.typography)==null||(u=l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem",large:((h=r.typography)==null||(p=h.pxToRem)==null?void 0:p.call(h,35))||"2.1875rem"}[e.fontSize],color:(m=(_=(r.vars||r).palette)==null||(_=_[e.color])==null?void 0:_.main)!=null?m:{action:(C=(r.vars||r).palette)==null||(C=C.action)==null?void 0:C.active,disabled:(T=(r.vars||r).palette)==null||(T=T.action)==null?void 0:T.disabled,inherit:void 0}[e.color]}}),XY=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:l="svg",fontSize:u="medium",htmlColor:h,inheritViewBox:p=!1,titleAccess:m,viewBox:_="0 0 24 24"}=n,C=Gt(n,_ut),T=V.isValidElement(i)&&i.type==="svg",S=ce({},n,{color:a,component:l,fontSize:u,instanceFontSize:e.fontSize,inheritViewBox:p,viewBox:_,hasSvgAsChild:T}),R={};p||(R.viewBox=_);const O=but(S);return $.jsxs(wut,ce({as:l,className:mr(O.root,o),focusable:"false",color:h,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:t},R,C,T&&i.props,{ownerState:S,children:[T?i.props.children:i,m?$.jsx("title",{children:m}):null]}))});XY.muiName="SvgIcon";function zo(r,e){function t(n,i){return $.jsx(XY,ce({"data-testid":`${e}Icon`,ref:i},n,{children:r}))}return t.muiName=XY.muiName,V.memo(V.forwardRef(t))}const Eut={configure:r=>{MQ.configure(r)}},Cut=Object.freeze(Object.defineProperty({__proto__:null,capitalize:nr,createChainedFunction:gB,createSvgIcon:zo,debounce:kQ,deprecatedPropType:pst,isMuiElement:pN,ownerDocument:Il,ownerWindow:YE,requirePropFactory:gst,setRef:mB,unstable_ClassNameGenerator:Eut,unstable_useEnhancedEffect:nl,unstable_useId:Jm,unsupportedProp:yst,useControlled:hg,useEventCallback:Zr,useForkRef:wo,useIsFocusVisible:OQ},Symbol.toStringTag,{value:"Module"})),xut=zo($.jsx("path",{d:"M7 15h7v2H7zm0-4h10v2H7zm0-4h10v2H7zm12-4h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-.14 0-.27.01-.4.04-.39.08-.74.28-1.01.55-.18.18-.33.4-.43.64-.1.23-.16.49-.16.77v14c0 .27.06.54.16.78s.25.45.43.64c.27.27.62.47 1.01.55.13.02.26.03.4.03h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7-.25c.41 0 .75.34.75.75s-.34.75-.75.75-.75-.34-.75-.75.34-.75.75-.75M19 19H5V5h14z"}),"AssignmentOutlined"),Tut=zo($.jsx("path",{d:"m14 4 2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z"}),"CallSplitOutlined"),Sut=zo($.jsx("path",{d:"m13.7826 15.1719 2.1213-2.1213 5.9963 5.9962-2.1213 2.1213zM17.5 10c1.93 0 3.5-1.57 3.5-3.5 0-.58-.16-1.12-.41-1.6l-2.7 2.7-1.49-1.49 2.7-2.7c-.48-.25-1.02-.41-1.6-.41C15.57 3 14 4.57 14 6.5c0 .41.08.8.21 1.16l-1.85 1.85-1.78-1.78.71-.71-1.41-1.41L12 3.49c-1.17-1.17-3.07-1.17-4.24 0L4.22 7.03l1.41 1.41H2.81l-.71.71 3.54 3.54.71-.71V9.15l1.41 1.41.71-.71 1.78 1.78-7.41 7.41 2.12 2.12L16.34 9.79c.36.13.75.21 1.16.21"}),"ConstructionOutlined"),Iut=zo($.jsx("path",{d:"m12.36 6 .4 2H18v6h-3.36l-.4-2H7V6zM14 4H5v17h2v-7h5.6l.4 2h7V6h-5.6z"}),"FlagOutlined"),Aut=zo($.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"),Rut=zo($.jsx("path",{d:"M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7m2.85 11.1-.85.6V16h-4v-2.3l-.85-.6C7.8 12.16 7 10.63 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1"}),"LightbulbOutlined"),Put=zo($.jsx("path",{d:"M14.39 11 16 12.61V11zM17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.27-.77 2.37-1.87 2.84l1.4 1.4C21.05 15.36 22 13.79 22 12c0-2.76-2.24-5-5-5M2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4.01 1.41-1.41L3.41 2.86z"}),"LinkOffOutlined"),PEe=zo($.jsx("path",{d:"M12 6.5c3.79 0 7.17 2.13 8.82 5.5-1.65 3.37-5.02 5.5-8.82 5.5S4.83 15.37 3.18 12C4.83 8.63 8.21 6.5 12 6.5m0-2C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5m0 5c1.38 0 2.5 1.12 2.5 2.5s-1.12 2.5-2.5 2.5-2.5-1.12-2.5-2.5 1.12-2.5 2.5-2.5m0-2c-2.48 0-4.5 2.02-4.5 4.5s2.02 4.5 4.5 4.5 4.5-2.02 4.5-4.5-2.02-4.5-4.5-4.5"}),"RemoveRedEyeOutlined"),kut=zo($.jsx("path",{d:"M21 12.4V7l-4-4H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h7.4zM15 15c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3M6 6h9v4H6zm13.99 10.25 1.77 1.77L16.77 23H15v-1.77zm3.26.26-.85.85-1.77-1.77.85-.85c.2-.2.51-.2.71 0l1.06 1.06c.2.2.2.52 0 .71"}),"SaveAs"),Ile=zo($.jsx("path",{d:"M21 12.4V7l-4-4H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h7.4l2-2H5V5h11.17L19 7.83v6.57zM15 15c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3M6 6h9v4H6zm13.99 10.25 1.77 1.77L16.77 23H15v-1.77zm3.26.26-.85.85-1.77-1.77.85-.85c.2-.2.51-.2.71 0l1.06 1.06c.2.2.2.52 0 .71"}),"SaveAsOutlined"),Out=zo($.jsx("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03
766-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"SettingsOutlined"),kEe=zo($.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");var mO={},_3={};const Mut=Ab(Cut);var Ale;function Ts(){return Ale||(Ale=1,(function(r){"use client";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return e.createSvgIcon}});var e=Mut})(_3)),_3}var Rle;function Nut(){if(Rle)return mO;Rle=1;var r=Wa();Object.defineProperty(mO,"__esModule",{value:!0}),mO.default=void 0;var e=r(Ts()),t=ls();return mO.default=(0,e.default)((0,t.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm2 16H5V5h11.17L19 7.83zm-7-7c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3M6 6h9v4H6z"}),"SaveOutlined"),mO}var Dut=Nut();const Lut=ao(Dut),Hut="data:image/svg+xml,%3csvg%20width='487'%20height='245'%20viewBox='0%200%20487%20245'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='487'%20height='245'%20fill='white'/%3e%3cpath%20d='M99.396%20120.674C99.3961%20159.205%20111.807%20203.806%20121.39%20218.293H364.102C373.017%20206.258%20390.579%20174.966%20389.51%20146.082C388.172%20109.976%20354.072%2092.5913%20332.676%2089.9168C311.28%2087.2423%20287.21%2065.1776%20270.494%2050.4678C253.778%2035.758%20227.174%2024.3919%20180.3%2029.7405C135.48%2034.8548%2099.3959%2079.2189%2099.396%20120.674Z'%20fill='%23F8FBFE'/%3e%3cpath%20d='M56%20218L147%20218'%20stroke='%23234C8A'%20stroke-width='1.33725'%20stroke-linecap='round'/%3e%3cpath%20d='M327.5%20218.274L388.976%20218.274'%20stroke='%23234C8A'%20stroke-width='1.53076'%20stroke-linecap='round'/%3e%3cg%20filter='url(%23filter0_d_1_482)'%3e%3cpath%20d='M152.5%20209C152.5%20213.694%20156.306%20217.5%20161%20217.5H311C315.694%20217.5%20319.5%20213.694%20319.5%20209V138.6C319.5%20136.888%20318.112%20135.5%20316.4%20135.5H155.6C153.888%20135.5%20152.5%20136.888%20152.5%20138.6V209Z'%20fill='white'%20stroke='%23234C8A'/%3e%3cpath%20d='M152.25%20209C152.25%20213.832%20156.168%20217.75%20161%20217.75H311C315.832%20217.75%20319.75%20213.832%20319.75%20209V188.823H152.25V209Z'%20stroke='%23234C8A'%20stroke-width='0.5'/%3e%3cpath%20d='M152.25%20162.668H319.75V138.2C319.75%20136.571%20318.429%20135.25%20316.8%20135.25H156.3C154.063%20135.25%20152.25%20137.063%20152.25%20139.3V162.668Z'%20stroke='%23234C8A'%20stroke-width='0.5'/%3e%3crect%20x='0.25'%20y='-0.25'%20width='167.5'%20height='26.6636'%20transform='matrix(1%200%200%20-1%20152%20188.827)'%20stroke='%23234C8A'%20stroke-width='0.5'/%3e%3cline%20y1='-0.5'%20x2='26.4091'%20y2='-0.5'%20transform='matrix(-5.79308e-08%20-1%20-1%203.29822e-08%20175%20162.164)'%20stroke='%23234C8A'/%3e%3cline%20y1='-0.5'%20x2='26.4091'%20y2='-0.5'%20transform='matrix(-5.79308e-08%20-1%20-1%203.29822e-08%20298%20162.164)'%20stroke='%23234C8A'/%3e%3cline%20y1='-0.5'%20x2='26.4091'%20y2='-0.5'%20transform='matrix(-5.79308e-08%20-1%20-1%203.29822e-08%20235%20189.327)'%20stroke='%23234C8A'/%3e%3cline%20y1='-0.5'%20x2='28.6727'%20y2='-0.5'%20transform='matrix(-5.79308e-08%20-1%20-1%203.29822e-08%20192%20217.245)'%20stroke='%23234C8A'/%3e%3cline%20y1='-0.5'%20x2='28.6727'%20y2='-0.5'%20transform='matrix(-5.79308e-08%20-1%20-1%203.29822e-08%20278%20217.245)'%20stroke='%23234C8A'/%3e%3c/g%3e%3cpath%20d='M234.215%20181.325L235.176%20181.705L236.125%20181.295C241.199%20179.1%20249.075%20175.394%20256.253%20171.384C259.84%20169.38%20263.294%20167.277%20266.151%20165.228C268.94%20163.229%20271.407%20161.111%20272.765%20159.035C275.591%20154.714%20279.828%20146.616%20283.31%20138.393C285.056%20134.27%20286.635%20130.062%20287.758%20126.235C288.865%20122.465%20289.596%20118.849%20289.49%20115.992C289.205%20108.326%20289.367%2082.7359%20289.488%2070.5141C289.501%2069.2554%20288.738%2068.1915%20287.667%2067.7339L236.313%2045.7857C235.556%2045.4618%20234.698%2045.464%20233.941%2045.7918L183.307%2067.7395C182.21%2068.215%20181.5%2069.2965%20181.5%2070.4921V118.254V118.36L181.509%20118.465C181.889%20122.955%20183.222%20130.276%20185.983%20137.899C188.737%20145.502%20192.991%20153.629%20199.348%20159.503C211.543%20170.772%20227.631%20178.724%20234.215%20181.325Z'%20fill='%23DCEDFA'%20stroke='%23234C8A'%20stroke-width='5'/%3e%3ccircle%20cx='236.236'%20cy='81.236'%20r='10.236'%20fill='white'/%3e%3crect%20x='227.013'%20y='97'%20width='18'%20height='64'%20rx='3'%20fill='white'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_1_482'%20x='137'%20y='120'%20width='198'%20height='113'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='Backgroun
766dImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset/%3e%3cfeGaussianBlur%20stdDeviation='7.5'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.25%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_1_482'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_1_482'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",Fut="data:image/svg+xml,%3csvg%20width='31'%20height='18'%20viewBox='0%200%2031%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.7002%2016.5L14.7002%202L29.2002%2016.5'%20stroke='%233D68AA'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",OEe="data:image/svg+xml,%3csvg%20width='31'%20height='18'%20viewBox='0%200%2031%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M29.2002%202L16.2002%2016.5L1.7002%202'%20stroke='%233D68AA'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Uut="data:image/svg+xml,%3csvg%20width='19'%20height='22'%20viewBox='0%200%2019%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.03137%2021.1262C1.47274%2021.1262%200.994526%2020.9273%200.596715%2020.5295C0.198905%2020.1317%200%2019.6535%200%2019.0948V4.87524C0%204.31662%200.198905%203.8384%200.596715%203.44059C0.994526%203.04278%201.47274%202.84387%202.03137%202.84387H3.04706V0.8125H5.07843V2.84387H13.2039V0.8125H15.2353V2.84387H16.251C16.8096%202.84387%2017.2878%203.04278%2017.6856%203.44059C18.0834%203.8384%2018.2823%204.31662%2018.2823%204.87524V19.0948C18.2823%2019.6535%2018.0834%2020.1317%2017.6856%2020.5295C17.2878%2020.9273%2016.8096%2021.1262%2016.251%2021.1262H2.03137ZM2.03137%2019.0948H16.251V8.93799H2.03137V19.0948ZM2.03137%206.90661H16.251V4.87524H2.03137V6.90661ZM9.14117%2013.0007C8.85339%2013.0007%208.61217%2012.9034%208.41749%2012.7087C8.22282%2012.514%208.12549%2012.2728%208.12549%2011.985C8.12549%2011.6973%208.22282%2011.456%208.41749%2011.2614C8.61217%2011.0667%208.85339%2010.9694%209.14117%2010.9694C9.42895%2010.9694%209.67017%2011.0667%209.86485%2011.2614C10.0595%2011.456%2010.1569%2011.6973%2010.1569%2011.985C10.1569%2012.2728%2010.0595%2012.514%209.86485%2012.7087C9.67017%2012.9034%209.42895%2013.0007%209.14117%2013.0007ZM5.07843%2013.0007C4.79065%2013.0007%204.54943%2012.9034%204.35475%2012.7087C4.16008%2012.514%204.06274%2012.2728%204.06274%2011.985C4.06274%2011.6973%204.16008%2011.456%204.35475%2011.2614C4.54943%2011.0667%204.79065%2010.9694%205.07843%2010.9694C5.36621%2010.9694%205.60743%2011.0667%205.8021%2011.2614C5.99678%2011.456%206.09411%2011.6973%206.09411%2011.985C6.09411%2012.2728%205.99678%2012.514%205.8021%2012.7087C5.60743%2012.9034%205.36621%2013.0007%205.07843%2013.0007ZM13.2039%2013.0007C12.9161%2013.0007%2012.6749%2012.9034%2012.4802%2012.7087C12.2856%2012.514%2012.1882%2012.2728%2012.1882%2011.985C12.1882%2011.6973%2012.2856%2011.456%2012.4802%2011.2614C12.6749%2011.0667%2012.9161%2010.9694%2013.2039%2010.9694C13.4917%2010.9694%2013.7329%2011.0667%2013.9276%2011.2614C14.1223%2011.456%2014.2196%2011.6973%2014.2196%2011.985C14.2196%2012.2728%2014.1223%2012.514%2013.9276%2012.7087C13.7329%2012.9034%2013.4917%2013.0007%2013.2039%2013.0007ZM9.14117%2017.0635C8.85339%2017.0635%208.61217%2016.9661%208.41749%2016.7715C8.22282%2016.5768%208.12549%2016.3356%208.12549%2016.0478C8.12549%2015.76%208.22282%2015.5188%208.41749%2015.3241C8.61217%2015.1294%208.85339%2015.0321%209.14117%2015.0321C9.42895%2015.0321%209.67017%2015.1294%209.86485%2015.3241C10.0595%2015.5188%2010.1569%2015.76%2010.1569%2016.0478C10.1569%2016.3356%2010.0595%2016.5768%209.86485%2016.7715C9.67017%2016.9661%209.42895%2017.0635%209.14117%2017.0635ZM5.07843%2017.0635C4.79065%2017.0635%204.54943%2016.9661%204.35475%2016.7715C4.16008%2016.5768%204.06274%2016.3356%204.06274%2016.0478C4.06274%2015.76%204.16008%2015.5188%204.35475%2015.3241C4.54943%2015.1294%204.79065%2015.0321%205.07843%2015.0321C5.36621%2015.0321%205.60743%2015.1294%205.8021%2015.3241C5.99678%2015.5188%206.
76609411%2015.76%206.09411%2016.0478C6.09411%2016.3356%205.99678%2016.5768%205.8021%2016.7715C5.60743%2016.9661%205.36621%2017.0635%205.07843%2017.0635ZM13.2039%2017.0635C12.9161%2017.0635%2012.6749%2016.9661%2012.4802%2016.7715C12.2856%2016.5768%2012.1882%2016.3356%2012.1882%2016.0478C12.1882%2015.76%2012.2856%2015.5188%2012.4802%2015.3241C12.6749%2015.1294%2012.9161%2015.0321%2013.2039%2015.0321C13.4917%2015.0321%2013.7329%2015.1294%2013.9276%2015.3241C14.1223%2015.5188%2014.2196%2015.76%2014.2196%2016.0478C14.2196%2016.3356%2014.1223%2016.5768%2013.9276%2016.7715C13.7329%2016.9661%2013.4917%2017.0635%2013.2039%2017.0635Z'%20fill='%23234C8A'/%3e%3c/svg%3e",MEe="/assets/CCUSRadio-hbPNqUiN.svg",NEe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='66'%20height='30'%20viewBox='0%200%2066%2030'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.1998%2011.4013C14.1998%206.43778%2018.2111%202.41406%2023.1594%202.41406H38.092V8.03108H44.8117C45.8426%208.03108%2046.6783%208.86937%2046.6783%209.90342C46.6783%2010.9375%2045.8426%2011.7758%2044.8117%2011.7758H38.092V16.5904H44.8117C45.8426%2016.5904%2046.6783%2017.4287%2046.6783%2018.4628C46.6783%2019.4968%2045.8426%2020.3351%2044.8117%2020.3351H38.092V26.38H23.1594C18.2111%2026.38%2014.1998%2022.3563%2014.1998%2017.3928V17.0183H2.25363V11.7758H14.1998V11.4013Z'%20fill='%23B3774B'/%3e%3cmask%20id='mask0_52_1116'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='49'%20height='28'%3e%3cpath%20d='M48.369%200.660645H0.5V27.5869H48.369V0.660645Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.9631%2011.1314C13.9631%206.17444%2017.9815%202.15601%2022.9385%202.15601H37.8976V7.76565H44.6291C45.6618%207.76565%2046.499%208.60284%2046.499%209.63553C46.499%2010.6682%2045.6618%2011.5054%2044.6291%2011.5054H37.8976V16.3138H44.6291C45.6618%2016.3138%2046.499%2017.151%2046.499%2018.1837C46.499%2019.2164%2045.6618%2020.0535%2044.6291%2020.0535H37.8976V26.0905H22.9385C17.9815%2026.0905%2013.9631%2022.072%2013.9631%2017.1151V16.7411H1.99582V11.5054H13.9631V11.1314Z'%20fill='black'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_52_1116)'%3e%3cpath%20d='M37.8976%202.15655H39.3936C39.3936%201.33038%2038.7238%200.660645%2037.8976%200.660645V2.15655ZM37.8976%207.7662H36.4017V9.2621H37.8976V7.7662ZM37.8976%2011.506V10.0101H36.4017V11.506H37.8976ZM37.8976%2016.3143H36.4017V17.8102H37.8976V16.3143ZM37.8976%2020.0541V18.5582H36.4017V20.0541H37.8976ZM37.8976%2026.091V27.5869C38.7238%2027.5869%2039.3936%2026.9172%2039.3936%2026.091H37.8976ZM13.9632%2016.7416H15.4591V15.2457H13.9632V16.7416ZM1.99591%2016.7416H0.5C0.5%2017.5678%201.16974%2018.2375%201.99591%2018.2375V16.7416ZM1.99591%2011.506V10.0101C1.16974%2010.0101%200.5%2010.6798%200.5%2011.506H1.99591ZM13.9632%2011.506V13.0019H15.4591V11.506H13.9632ZM22.9386%200.660645C17.1554%200.660645%2012.4672%205.34882%2012.4672%2011.132H15.4591C15.4591%207.00115%2018.8078%203.65246%2022.9386%203.65246V0.660645ZM37.8976%200.660645H22.9386V3.65246H37.8976V0.660645ZM39.3936%207.7662V2.15655H36.4017V7.7662H39.3936ZM44.6292%206.27029H37.8976V9.2621H44.6292V6.27029ZM47.995%209.63608C47.995%207.77721%2046.4881%206.27029%2044.6292%206.27029V9.2621C44.8357%209.2621%2045.0032%209.42957%2045.0032%209.63608H47.995ZM44.6292%2013.0019C46.4881%2013.0019%2047.995%2011.495%2047.995%209.63608H45.0032C45.0032%209.84259%2044.8357%2010.0101%2044.6292%2010.0101V13.0019ZM37.8976%2013.0019H44.6292V10.0101H37.8976V13.0019ZM39.3936%2016.3143V11.506H36.4017V16.3143H39.3936ZM44.6292%2014.8184H37.8976V17.8102H44.6292V14.8184ZM47.995%2018.1842C47.995%2016.3253%2046.4881%2014.8184%2044.6292%2014.8184V17.8102C44.8357%2017.8102%2045.0032%2017.9777%2045.0032%2018.1842H47.995ZM44.6292%2021.55C46.4881%202
7661.55%2047.995%2020.0431%2047.995%2018.1842H45.0032C45.0032%2018.3908%2044.8357%2018.5582%2044.6292%2018.5582V21.55ZM37.8976%2021.55H44.6292V18.5582H37.8976V21.55ZM39.3936%2026.091V20.0541H36.4017V26.091H39.3936ZM22.9386%2027.5869H37.8976V24.5951H22.9386V27.5869ZM12.4672%2017.1156C12.4672%2022.8988%2017.1554%2027.5869%2022.9386%2027.5869V24.5951C18.8078%2024.5951%2015.4591%2021.2464%2015.4591%2017.1156H12.4672ZM12.4672%2016.7416V17.1156H15.4591V16.7416H12.4672ZM13.9632%2015.2457H1.99591V18.2375H13.9632V15.2457ZM3.49181%2016.7416V11.506H0.5V16.7416H3.49181ZM1.99591%2013.0019H13.9632V10.0101H1.99591V13.0019ZM12.4672%2011.132V11.506H15.4591V11.132H12.4672Z'%20fill='white'/%3e%3c/g%3e%3cpath%20d='M63.1561%2013.1636H59.6475L63.9521%205.48772L63.9569%205.47917C64.5691%204.35312%2063.783%202.99878%2062.5039%202.99878H56.635C56.0074%202.99878%2055.3843%203.35344%2055.1058%203.98942L49.1844%2017.0385C48.6463%2018.1325%2049.4676%2019.4334%2050.7059%2019.4334H53.2289L50.7409%2026.4776C50.7408%2026.4781%2050.7405%2026.4786%2050.7404%2026.4791C50.4315%2027.3466%2050.8438%2028.1247%2051.4752%2028.4872C52.0968%2028.8439%2052.9747%2028.8242%2053.5914%2028.1698L53.5997%2028.161L53.6077%2028.1519L64.3624%2015.97C65.2772%2014.9322%2064.6955%2013.1636%2063.1561%2013.1636Z'%20fill='%23B3774B'%20stroke='white'%20stroke-width='1.16907'/%3e%3c/svg%3e",Ple="/assets/default-project-CU1VciO9.svg",DEe="data:image/svg+xml,%3csvg%20width='30'%20height='50'%20viewBox='0%200%2033%2054'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M33%2033.0983C33%2043.9438%2024.1028%2052.6775%2016.2305%2052.6775C8.35818%2052.6775%200%2043.9438%200%2033.0983C0%2022.2528%2013.7151%205.41926%2013.2359%200C21.6207%202.79704%2033%2022.2528%2033%2033.0983Z'%20fill='%231E90FF'/%3e%3cpath%20d='M27.2529%2042.9804C25.8105%2049.0591%2020.0863%2052.9293%2016.0491%2052.0224C12.012%2051.1156%208.88724%2045.2577%2010.3296%2039.179C11.772%2033.1003%2021.0442%2025.2454%2021.5192%2022.1528C25.4471%2024.6864%2028.6953%2036.9017%2027.2529%2042.9804Z'%20fill='white'/%3e%3cpath%20d='M20.5418%2048.1323C21.0841%2053.152%2016.1099%2052.4444%2015.3258%2052.0164C12.5936%2052.2958%208.4417%2048.8194%207.89945%2043.7997C7.35719%2038.7799%2010.5526%2029.8588%2010.1154%2027.3676C13.1653%2028.3646%2019.9996%2043.1126%2020.5418%2048.1323Z'%20fill='white'/%3e%3c/svg%3e",But="data:image/svg+xml,%3csvg%20width='66'%20height='91'%20viewBox='0%200%2066%2091'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cellipse%20cx='33'%20cy='85.5'%20rx='13'%20ry='5.5'%20fill='%23153970'%20fill-opacity='0.2'/%3e%3cpath%20d='M33%2085L32.2858%2085.6999L32.9982%2086.4269L33.7125%2085.7017L33%2085ZM33%2085C33.7125%2085.7017%2033.7127%2085.7015%2033.713%2085.7011L33.7143%2085.6998L33.719%2085.6951L33.7367%2085.677L33.805%2085.6071C33.8649%2085.5457%2033.9532%2085.4547%2034.068%2085.3356C34.2977%2085.0975%2034.6334%2084.7466%2035.0601%2084.2934C35.9134%2083.387%2037.1309%2082.0711%2038.591%2080.429C41.5104%2077.146%2045.4051%2072.5537%2049.3021%2067.3196C53.1967%2062.0889%2057.1085%2056.1975%2060.0506%2050.3176C62.9838%2044.4553%2065%2038.5129%2065%2033.2041C65%2015.4258%2050.678%201%2033%201C15.322%201%201%2015.4258%201%2033.2041C1%2038.4739%203.01701%2044.3969%205.94968%2050.2505C8.89149%2056.1224%2012.803%2062.0184%2016.6974%2067.2588C20.5941%2072.5026%2024.4886%2077.1097%2027.4077%2080.4051C28.8678%2082.0533%2030.0851%2083.3748%2030.9383%2084.2852C31.365%2084.7404%2031.7007%2085.0929%2031.9303%2085.3322C32.0451%2085.4518%2032.1334%2085.5432%2032.1933%2085.6049L32.2615%2085.6751L32.2792%2085.6932L32.2839%2085.698L32.2852%2085.6993C32.2855%2085.6997%2032.2858%2085.6999%2033%2085Z'%20fill='%23f1b183'%20stroke='%23f1b183'%20stroke-width='3'/%3e%3cpath%20d='M33%2054C45.1503%2054%2055%2044.1503%2055%2032C55%2019.8497%2045.1503%2010%2033%2010C20.8497%2010%2011%2019.8497%2011%2032C11%2044.1503%2020.8497%2054%2033%2054Z'%20fill='%23b3774b'%20/%3e%3csvg%20width='27'%20height='46'%20x%20=%20'20'%20y=%20'12'%20viewBox='0%200%2058%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M23.0102%2011.5C23.2724%205.10446%2028.5401%200%2035%200H47V
7665.5H55.3547C56.7354%205.5%2057.8547%206.61929%2057.8547%208C57.8547%209.38071%2056.7354%2010.5%2055.3547%2010.5H47V18.5H55.3547C56.7354%2018.5%2057.8547%2019.6193%2057.8547%2021C57.8547%2022.3807%2056.7354%2023.5%2055.3547%2023.5H47V29H35C28.8806%2029%2023.831%2024.4195%2023.0928%2018.5L6.55651e-07%2018.5L0%2011.5L23.0102%2011.5Z'%20fill='white'/%3e%3c/svg%3e%20h2%20%3csvg%20width='10'%20height='10'%20viewBox='0%200%2022%2017'%20x%20=%20'21'%20y=%20'19'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.7%2017V9.825H3.35V17H0.35V-1.78814e-07H3.35V6.95H9.7V-1.78814e-07H12.7V17H9.7ZM21.821%2017H15.641V15.575C15.641%2014.855%2015.736%2014.255%2015.926%2013.775C16.116%2013.285%2016.371%2012.885%2016.691%2012.575C17.011%2012.255%2017.361%2012%2017.741%2011.81L18.761%2011.3C19.151%2011.1%2019.466%2010.89%2019.706%2010.67C19.956%2010.44%2020.081%2010.145%2020.081%209.785V9.515C20.081%209.145%2019.951%208.855%2019.691%208.645C19.441%208.425%2019.036%208.315%2018.476%208.315C18.136%208.315%2017.791%208.365%2017.441%208.465C17.101%208.565%2016.686%208.705%2016.196%208.885L15.641%207.34C16.201%207.09%2016.711%206.915%2017.171%206.815C17.641%206.705%2018.096%206.65%2018.536%206.65C19.346%206.65%2019.991%206.78%2020.471%207.04C20.961%207.3%2021.311%207.65%2021.521%208.09C21.741%208.52%2021.851%208.995%2021.851%209.515V9.785C21.851%2010.325%2021.741%2010.785%2021.521%2011.165C21.311%2011.545%2021.031%2011.865%2020.681%2012.125C20.331%2012.385%2019.951%2012.615%2019.541%2012.815L18.521%2013.325C18.151%2013.505%2017.876%2013.755%2017.696%2014.075C17.526%2014.395%2017.431%2014.805%2017.411%2015.305H21.821V17Z'%20fill='white'/%3e%3c/svg%3e%3c/svg%3e",zf="data:image/svg+xml,%3csvg%20width='88'%20height='39'%20viewBox='0%200%2088%2039'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='path-1-outside-1_3939_3308'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='64'%20height='36'%20fill='black'%3e%3crect%20fill='white'%20width='64'%20height='36'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M18%2014C18%207.37258%2023.3726%202%2030%202H50V9.5H59C60.3807%209.5%2061.5%2010.6193%2061.5%2012C61.5%2013.3807%2060.3807%2014.5%2059%2014.5H50V20.9287H59C60.3807%2020.9287%2061.5%2022.048%2061.5%2023.4287C61.5%2024.8094%2060.3807%2025.9287%2059%2025.9287H50V34H30C23.3726%2034%2018%2028.6274%2018%2022V21.5L2%2021.5V14.5L18%2014.5V14Z'/%3e%3c/mask%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M18%2014C18%207.37258%2023.3726%202%2030%202H50V9.5H59C60.3807%209.5%2061.5%2010.6193%2061.5%2012C61.5%2013.3807%2060.3807%2014.5%2059%2014.5H50V20.9287H59C60.3807%2020.9287%2061.5%2022.048%2061.5%2023.4287C61.5%2024.8094%2060.3807%2025.9287%2059%2025.9287H50V34H30C23.3726%2034%2018%2028.6274%2018%2022V21.5L2%2021.5V14.5L18%2014.5V14Z'%20fill='%23b3774b'/%3e%3cpath%20d='M50%202H52V0H50V2ZM50%209.5H48V11.5H50V9.5ZM50%2014.5V12.5H48V14.5H50ZM50%2020.9287H48V22.9287H50V20.9287ZM50%2025.9287V23.9287H48V25.9287H50ZM50%2034V36H52V34H50ZM18%2021.5H20V19.5H18V21.5ZM2%2021.5H0V23.5H2L2%2021.5ZM2%2014.5L2%2012.5H0V14.5H2ZM18%2014.5V16.5H20V14.5H18ZM30%200C22.268%200%2016%206.26801%2016%2014H20C20%208.47715%2024.4772%204%2030%204V0ZM50%200H30V4H50V0ZM52%209.5V2H48V9.5H52ZM59%207.5H50V11.5H59V7.5ZM63.5%2012C63.5%209.51472%2061.4853%207.5%2059%207.5V11.5C59.2761%2011.5%2059.5%2011.7239%2059.5%2012H63.5ZM59%2016.5C61.4853%2016.5%2063.5%2014.4853%2063.5%2012H59.5C59.5%2012.2761%2059.2761%2012.5%2059%2012.5V16.5ZM50%2016.5H59V12.5H50V16.5ZM52%2020.9287V14.5H48V20.9287H52ZM59%2018.9287H50V22.9287H59V18.9287ZM63.5%2023.4287C63.5%2020.9434%2061.4853%2018.9287%2059%2018.9287V22.9287C59.2761%2022.9287%2059.5%2023.1526%2059.5%2023.4287H63.5ZM59%2027.9287C61.4853%2027.9287%2063.5%2025.914%2063.5%2023.4287H59.5C59.5%2023.7049%2059.2761%2023.9287%2059%2023.9287V27.9287ZM50%2027.9287H59V23.9287H50V27.9287ZM52%2034V25.9287H48V34H52ZM30%2036H50V32H30V36ZM16%2022C16%2029.732%2022.268%2036%2030%2036V32C24.4772%2032%2020%2027.5228%2020%2022H16ZM16%2021.5V22H20V21.5H16ZM18%2019.5L2%2019.5L2%2023.5L18%2023.5V19.5ZM4%2021.5V14.5H0V21.5
766H4ZM2%2016.5L18%2016.5V12.5L2%2012.5L2%2016.5ZM16%2014V14.5H20V14H16Z'%20fill='white'%20mask='url(%23path-1-outside-1_3939_3308)'/%3e%3cpath%20d='M83.8396%2016.64H79.1643L84.9004%206.33987L84.9005%206.33991L84.9067%206.3284C85.7225%204.81737%2084.675%203%2082.9706%203H75.1501C74.3138%203%2073.4835%203.47592%2073.1124%204.32932L65.222%2021.8397C64.5049%2023.3077%2065.5993%2025.0533%2067.2494%2025.0533H70.6114L67.2961%2034.5059C67.2959%2034.5065%2067.2956%2034.5072%2067.2954%2034.5078C66.8838%2035.6719%2067.4332%2036.7161%2068.2746%2037.2025C69.1028%2037.6811%2070.2727%2037.6547%2071.0944%2036.7766L71.1055%2036.7648L71.1162%2036.7526L85.4471%2020.4059L85.4476%2020.4053C86.6666%2019.0127%2085.8909%2016.64%2083.8396%2016.64Z'%20fill='%23b3774b'%20stroke='white'%20stroke-width='2'/%3e%3cpath%20d='M35.7%2027V19.825H29.35V27H26.35V10H29.35V16.95H35.7V10H38.7V27H35.7ZM46.013%2027H41.481V25.955C41.481%2025.427%2041.5507%2024.987%2041.69%2024.635C41.8293%2024.2757%2042.0163%2023.9823%2042.251%2023.755C42.4857%2023.5203%2042.7423%2023.3333%2043.021%2023.194L43.769%2022.82C44.055%2022.6733%2044.286%2022.5193%2044.462%2022.358C44.6453%2022.1893%2044.737%2021.973%2044.737%2021.709V21.511C44.737%2021.2397%2044.6417%2021.027%2044.451%2020.873C44.2677%2020.7117%2043.9707%2020.631%2043.56%2020.631C43.3107%2020.631%2043.0577%2020.6677%2042.801%2020.741C42.5517%2020.8143%2042.2473%2020.917%2041.888%2021.049L41.481%2019.916C41.8917%2019.7327%2042.2657%2019.6043%2042.603%2019.531C42.9477%2019.4503%2043.2813%2019.41%2043.604%2019.41C44.198%2019.41%2044.671%2019.5053%2045.023%2019.696C45.3823%2019.8867%2045.639%2020.1433%2045.793%2020.466C45.9543%2020.7813%2046.035%2021.1297%2046.035%2021.511V21.709C46.035%2022.105%2045.9543%2022.4423%2045.793%2022.721C45.639%2022.9997%2045.4337%2023.2343%2045.177%2023.425C44.9203%2023.6157%2044.6417%2023.7843%2044.341%2023.931L43.593%2024.305C43.3217%2024.437%2043.12%2024.6203%2042.988%2024.855C42.8633%2025.0897%2042.7937%2025.3903%2042.779%2025.757H46.013V27Z'%20fill='white'/%3e%3c/svg%3e",Ti="data:image/svg+xml,%3csvg%20width='85'%20height='63'%20viewBox='0%200%2085%2063'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='path-1-outside-1_3939_3307'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='78'%20height='63'%20fill='black'%3e%3crect%20fill='white'%20width='78'%20height='63'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M25%203C12.8528%203%203%207.45402%203%2018H47C47%207.45402%2037.1472%203%2025%203ZM3%2060V20H47V60H3ZM50%2031.625V59.625H74V31.625H50ZM61.9933%2021.1582C55.1905%2021.1582%2049.6726%2023.6668%2049.6726%2029.6066H74.3139C74.3139%2023.6668%2068.796%2021.1582%2061.9933%2021.1582Z'/%3e%3c/mask%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M25%203C12.8528%203%203%207.45402%203%2018H47C47%207.45402%2037.1472%203%2025%203ZM3%2060V20H47V60H3ZM50%2031.625V59.625H74V31.625H50ZM61.9933%2021.1582C55.1905%2021.1582%2049.6726%2023.6668%2049.6726%2029.6066H74.3139C74.3139%2023.6668%2068.796%2021.1582%2061.9933%2021.1582Z'%20fill='%23568949'/%3e%3cpath%20d='M3%2018H0V21H3V18ZM47%2018V21H50V18H47ZM3%2020V17H0V20H3ZM3%2060H0V63H3V60ZM47%2020H50V17H47V20ZM47%2060V63H50V60H47ZM50%2059.625H47V62.625H50V59.625ZM50%2031.625V28.625H47V31.625H50ZM74%2059.625V62.625H77V59.625H74ZM74%2031.625H77V28.625H74V31.625ZM49.6726%2029.6066H46.6726V32.6066H49.6726V29.6066ZM74.3139%2029.6066V32.6066H77.3139V29.6066H74.3139ZM6%2018C6%2013.8568%207.84458%2011.0379%2011.0085%209.10552C14.3394%207.07116%2019.2205%206%2025%206V0C18.6323%200%2012.5134%201.15585%207.88114%203.985C3.08184%206.91616%200%2011.5973%200%2018H6ZM47%2015H3V21H47V15ZM25%206C30.7795%206%2035.6606%207.07116%2038.9915%209.10552C42.1554%2011.0379%2044%2013.8568%2044%2018H50C50%2011.5973%2046.9182%206.91616%2042.1189%203.985C37.4866%201.15585%2031.3677%200%2025%200V6ZM0%2020V60H6V20H0ZM47%2017H3V23H47V17ZM50%2060V20H44V60H50ZM3%2063H47V57H3V63ZM53%2059.625V31.625H47V59.625H53ZM74%2056.625H50V62.625H74V56.625ZM71%2031.625V59.625H77V31.625H71ZM50%2034.625H74V28.625H50V34.625ZM52.6726%2029.6066C52.6726%2027.7584%2053.4413%2026.5778%2054.8521%2025.7113C56.4297%2024.7423%2058.8883%2024.1582%2061.9933%2024.1582V18.1582C58.2955%2018.1582%2054.5938%2018.8285%2051.7117%2020.5987C48.6629%2022.4714%2046.6726%2025.5151%2046.6726%2029.6066H52.6726ZM74.3139%2026.6066H49.6726V32.6066H74.3139V26.6066ZM61.9933%2024.1582C65.0983%2024.1582%2067.5569%2024.7423%2069.1345%2025.7113C70.5452%2026.5778%2071.3139%2027.7584%2071.3139%2029.6066H77.3139C77.3139%2025.5151%2075.3237%2022.4714%2072.2748%202
7660.5987C69.3928%2018.8285%2065.691%2018.1582%2061.9933%2018.1582V24.1582Z'%20fill='white'%20mask='url(%23path-1-outside-1_3939_3307)'/%3e%3cpath%20d='M24.7%2048V40.825H18.35V48H15.35V31H18.35V37.95H24.7V31H27.7V48H24.7Z'%20fill='white'/%3e%3cpath%20d='M35.4393%2047.9053H30.9073V46.8603C30.9073%2046.3323%2030.977%2045.8923%2031.1163%2045.5403C31.2556%2045.1809%2031.4426%2044.8876%2031.6773%2044.6603C31.912%2044.4256%2032.1686%2044.2386%2032.4473%2044.0993L33.1953%2043.7253C33.4813%2043.5786%2033.7123%2043.4246%2033.8883%2043.2633C34.0716%2043.0946%2034.1633%2042.8783%2034.1633%2042.6143V42.4163C34.1633%2042.1449%2034.068%2041.9323%2033.8773%2041.7783C33.694%2041.6169%2033.397%2041.5363%2032.9863%2041.5363C32.737%2041.5363%2032.484%2041.5729%2032.2273%2041.6463C31.978%2041.7196%2031.6736%2041.8223%2031.3143%2041.9543L30.9073%2040.8213C31.318%2040.6379%2031.692%2040.5096%2032.0293%2040.4363C32.374%2040.3556%2032.7076%2040.3153%2033.0303%2040.3153C33.6243%2040.3153%2034.0973%2040.4106%2034.4493%2040.6013C34.8086%2040.7919%2035.0653%2041.0486%2035.2193%2041.3713C35.3806%2041.6866%2035.4613%2042.0349%2035.4613%2042.4163V42.6143C35.4613%2043.0103%2035.3806%2043.3476%2035.2193%2043.6263C35.0653%2043.9049%2034.86%2044.1396%2034.6033%2044.3303C34.3466%2044.5209%2034.068%2044.6896%2033.7673%2044.8363L33.0193%2045.2103C32.748%2045.3423%2032.5463%2045.5256%2032.4143%2045.7603C32.2896%2045.9949%2032.22%2046.2956%2032.2053%2046.6623H35.4393V47.9053Z'%20fill='white'/%3e%3c/svg%3e",LEe="data:image/svg+xml,%3csvg%20width='75'%20height='66'%20viewBox='0%200%2075%2066'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.4966%2035.628C42.3684%2033.2344%2041.8084%2030.9175%2040.8299%2028.7394C39.8337%2026.5221%2038.4448%2024.5346%2036.7038%2022.835C34.9605%2021.1332%2032.9426%2019.7967%2030.7085%2018.8657C28.3952%2017.9018%2025.9412%2017.4132%2023.4194%2017.4132C20.8978%2017.4132%2018.4439%2017.9018%2016.1306%2018.8657C13.8966%2019.7967%2011.8787%2021.1332%2010.1355%2022.835C8.3945%2024.5346%207.00557%2026.5221%206.00943%2028.7394C5.03093%2030.9176%204.47097%2033.2344%204.34278%2035.628H3.18087C2.31694%2035.628%201.61587%2036.329%201.61587%2037.193C1.61587%2038.0569%202.31693%2038.758%203.18087%2038.758H4.42344C4.63033%2040.7127%205.12993%2042.6134%205.91054%2044.4117C6.68245%2046.19%207.71432%2047.836%208.97882%2049.3072L5.80405%2056.7875L6.80724%2057.2133L5.80404%2
766056.7875C5.56104%2057.3601%205.55532%2057.9992%205.78827%2058.5761L6.82834%2058.1561L5.78827%2058.5761C6.02121%2059.1529%206.46915%2059.6088%207.04183%2059.8519L7.04186%2059.8519C7.33025%2059.9743%207.63856%2060.0381%207.95395%2060.0381C8.89312%2060.0381%209.73889%2059.478%2010.1058%2058.6137C10.1058%2058.6137%2010.1058%2058.6136%2010.1058%2058.6136L12.6536%2052.6116C12.6826%2052.6317%2012.7116%2052.6515%2012.7406%2052.6713V59.1966C12.7406%2060.4861%2013.7879%2061.5335%2015.0774%2061.5335C16.367%2061.5335%2017.4143%2060.4861%2017.4143%2059.1966V54.9896C19.3462%2055.6345%2021.3643%2055.9608%2023.4194%2055.9608C25.5225%2055.9608%2027.5911%2055.6182%2029.5662%2054.9417C31.3265%2054.3386%2032.9843%2053.4809%2034.5%2052.3902L37.3612%2058.5252L37.3612%2058.5253C37.7446%2059.347%2038.5739%2059.8752%2039.4805%2059.8752C39.8237%2059.8752%2040.1576%2059.7999%2040.4667%2059.6558L40.4667%2059.6558C41.0306%2059.3929%2041.4622%2058.9216%2041.675%2058.3372C41.8878%2057.7527%2041.8602%2057.1142%2041.5973%2056.5504L41.5972%2056.5503L38.0917%2049.0327C39.2901%2047.5851%2040.268%2045.9758%2040.9997%2044.2461C41.7396%2042.4969%2042.2154%2040.652%2042.4159%2038.758H42.9837C43.8477%2038.758%2044.5487%2038.0569%2044.5487%2037.193C44.5487%2036.329%2043.8477%2035.628%2042.9837%2035.628H42.4966Z'%20fill='%23089A9A'%20stroke='white'%20stroke-width='2.25319'/%3e%3cpath%20d='M43.0656%2036H2.93438C2.41844%2036%202%2036.4457%202%2036.9998C2%2037.5538%202.41844%2038%202.93438%2038H43.0656C43.5816%2038%2044%2037.5543%2044%2037.0002C44%2036.4462%2043.5816%2036%2043.0656%2036Z'%20fill='%23089A9A'/%3e%3cpath%20d='M67.8678%2064.1266H68.9944V63V12.3771C68.9944%209.57362%2067.9003%206.93226%2065.9179%204.94988C63.9355%202.96749%2061.2941%201.87341%2058.4906%201.87341H37.2398C34.4363%201.87341%2031.7949%202.96749%2029.8126%204.94988C27.8302%206.93226%2026.7361%209.57362%2026.7361%2012.3771V63V64.1266H27.8627H67.8678Z'%20fill='%23089A9A'%20stroke='white'%20stroke-width='2.25319'/%3e%3cpath%20d='M68.5432%2056.7454H27.1188V58.1963H68.5432V56.7454Z'%20fill='white'/%3e%3cmask%20id='mask0_269_14267'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='24'%20y='10'%20width='51'%20height='2'%3e%3cpath%20d='M74.0277%2010.0944H24V11.3691H74.0277V10.0944Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_269_14267)'%3e%3cpath%20d='M37.2409%202.25806H58.4915C61.1754%202.25806%2063.7494%203.32422%2065.6472%205.22201C67.5449%207.11979%2068.6111%209.69374%2068.6111%2012.3776V63.7449H27.1213V12.3776C27.1213%209.69374%2028.1875%207.11979%2030.0853%205.22201C31.9831%203.32422%2034.557%202.25806%2037.2409%202.25806Z'%20fill='white'/%3e%3c/g%3e%3cpath%20d='M37.3623%2042.75V27.0762H40.6761V33.5432H47.4033V27.0762H50.7095V42.75H47.4033V36.2754H40.6761V42.75H37.3623ZM52.7214%2042.75V41.2364L55.8975%2038.4557C56.1356%2038.2403%2056.3383%2038.0433%2056.5055%2037.8647C56.6727%2037.6833%2056.8003%2037.5019%2056.8882%2037.3205C56.976%2037.1362%2057.02%2036.9364%2057.02%2036.721C57.02%2036.48%2056.9675%2036.2745%2056.8626%2036.1045C56.7578%2035.9316%2056.6132%2035.7983%2056.429%2035.7048C56.2447%2035.6113%2056.0336%2035.5645%2055.7955%2035.5645C55.5545%2035.5645%2055.3433%2035.6141%2055.1619%2035.7133C54.9805%2035.8097%2054.8388%2035.95%2054.7368%2036.1342C54.6375%2036.3185%2054.5879%2036.5424%2054.5879%2036.806H52.5939C52.5939%2036.2136%2052.7271%2035.702%2052.9935%2035.2711C53.26%2034.8403%2053.6341%2034.5086%2054.116%2034.2762C54.6007%2034.0409%2055.1634%2033.9233%2055.804%2033.9233C56.4644%2033.9233%2057.0384%2034.0338%2057.5259%2034.2549C58.0135%2034.476%2058.3905%2034.785%2058.6569%2035.1818C58.9262%2035.5758%2059.0608%2036.0336%2059.0608%2036.5552C59.0608%2036.8868%2058.9942%2037.2156%2058.861%2037.5416C58.7278%2037.8675%2058.4882%2038.2275%2058.1424%2038.6215C57.7995%2039.0155%2057.3119%2039.4875%2056.6798%2040.0374L55.6381%2040.9983V41.0535H59.1671V42.75H52.7214Z'%20fill='white'/%3e%3c/svg%3e",EB="data:image/svg+xml,%3csvg%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M53.8772%2013.5113L51.7308%2015.3448L54.9083%2018.0627V23.3218H60.9654V52.2089C60.9654%2055.7037%2058.3611%2056.1069%2056.4041%2056.1069C52.755%2056.1069%2051.9701%2053.0417%2051.8496%2052.4266V30.7029H40.9747V4.73971C40.9747%202.12043%2038.4943%200%2035.4305%200H5.54763C2.48378%200%200%202.11749%200%204.73971V59.2574C0%2061.8752%202.48378%2064%205.54763%2064H35.4305C38.4943%2064%2040.9747%2061.8781%2040.9747%2059.2574V33.2942H48.8133V52.5223L48.8288%2052.6915C49.1524%2054.7693%2051.1525%2058.6967%2056.4041%2058.6967C61.1616%2058.6967%2064%2056.2717%2064%2052.2044V22.1608L53.8772%2013.5113ZM56.4247%2022.021V19.3576L59.5402%2022.021H56.4247ZM12.5239%2035.5C12.5239%2035.5%2017.6102%2035.9664%2019.1542%2037.2923C20.6999%2038.6107%2020.9392%2040.5531%2019.6844%2041.6214C18.4313%2042.6941%2016.1661%2042.4925%2014.6187%2041.1667C13.0695%2039.8468%2012.5239%2035.5%2012.5239%2035.5ZM18.3091%2056.2761C17.8788%2055.4888%2017.5552%2054.7281%2017.2643%2053.9099C16.8753%2052.7769%2016.6067%2051.6085%2016.531%2050.4122C16.3486%2048.0313%2017.0956%2045.49%2018.8255%2043.6197C19.2282%2043.1591%2019.7549%2042.6985%2020.1749%2042.3469C20.5691%2042.0055%2020.9581%2041.6082%2021.2955%2041.2079C21.9685%2040.3956%2022.4659%2039.476%2022.6621%2038.4842C23.077%2036.4932%2022.1905%2034.3213%2020.588%2032.6791C22.4263%2034.1197%2023.7758%2036.2401%2023.6811%2038.568C23.6415%2039.7202%2023.2336%2040.8651%2022.6088%2041.8863C22.2921%2042.4042%2021.9392%2042.8795%2021.5227%2043.3534C21.1113%2043.8081%2020.8101%2044.1612%2020.5243%2044.5983C19.3797%2046.2846%2019.1456%2048.2402%2019.5845%2050.109C19.7962%2051.0537%2020.1612%2051.9749%2020.6293%2052.8607C21.0872%2053.7245%2021.7034%2054.6442%2022.2972%2055.3123L23.225%2056.1113C23.2818%2056.1731%2023.3059%2056.2246%2023.3386%2056.279L18.3091%2056.2761ZM26.9601%2049.566C25.4144%2050.886%2023.1458%2051.0905%2021.8927%2050.0193C20.6397%2048.951%2020.8789%2047.01%2022.4246%2045.6886C23.9703%2044.3672%2029.0566%2043.8978%2029.0566%2043.8978C29.0566%2043.8978%2028.5024%2048.2432%2026.9601%2049.566ZM34.9038%2029.8362H6.57867V5.62113H34.9055L34.9038%2029.8362Z'%20fill='%237D62AC'/%3e%3crect%20x='9'%20y='33'%20width='23'%20height='24'%20fill='%237D62AC'/%3e%3cpath%20d='M12.3623%2052V36.3262H15.6761V42.7932H22.4033V36.3262H25.7095V52H22.4033V45.5254H15.6761V52H12.3623ZM27.7214%2052V50.4864L30.8975%2047.7057C31.1356%2047.4903%2031.3383%2047.2933%2031.5055%2047.1147C31.6727%2046.9333%2031.8003%2046.7519%2031.8882%2046.5705C31.976%2046.3862%2032.02%2046.1864%2032.02%2045.971C32.02%2045.73%2031.9675%2045.5245%2031.8626%2045.3545C31.7578%2045.1816%2031.6132%2045.0483%2031.429%2044.9548C31.2447%2044.8
766613%2031.0336%2044.8145%2030.7955%2044.8145C30.5545%2044.8145%2030.3433%2044.8641%2030.1619%2044.9633C29.9805%2045.0597%2029.8388%2045.2%2029.7368%2045.3842C29.6375%2045.5685%2029.5879%2045.7924%2029.5879%2046.056H27.5939C27.5939%2045.4636%2027.7271%2044.952%2027.9935%2044.5211C28.26%2044.0903%2028.6341%2043.7586%2029.116%2043.5262C29.6007%2043.2909%2030.1634%2043.1733%2030.804%2043.1733C31.4644%2043.1733%2032.0384%2043.2838%2032.5259%2043.5049C33.0135%2043.726%2033.3905%2044.035%2033.6569%2044.4318C33.9262%2044.8258%2034.0608%2045.2836%2034.0608%2045.8052C34.0608%2046.1368%2033.9942%2046.4656%2033.861%2046.7916C33.7278%2047.1175%2033.4882%2047.4775%2033.1424%2047.8715C32.7995%2048.2655%2032.3119%2048.7375%2031.6798%2049.2874L30.6381%2050.2483V50.3035H34.1671V52H27.7214Z'%20fill='white'/%3e%3c/svg%3e",$ut="data:image/svg+xml,%3csvg%20width='5'%20height='12'%20viewBox='0%200%205%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.361938%202.28021C0.17195%201.08328%201.09685%200%202.30876%200C3.50524%200%204.42581%201.05726%204.26121%202.24237L3.57695%207.16904C3.49242%207.77767%202.97204%208.23077%202.35756%208.23077C1.75216%208.23077%201.2366%207.7906%201.14169%207.19267L0.361938%202.28021Z'%20fill='%23C5314B'/%3e%3ccircle%20cx='2.28622'%20cy='10.5168'%20r='1.37179'%20fill='%23C5314B'/%3e%3c/svg%3e",zut="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3cpath%20d='M12%2012C12.55%2012%2013.0208%2011.8042%2013.4125%2011.4125C13.8042%2011.0208%2014%2010.55%2014%2010C14%209.45%2013.8042%208.97917%2013.4125%208.5875C13.0208%208.19583%2012.55%208%2012%208C11.45%208%2010.9792%208.19583%2010.5875%208.5875C10.1958%208.97917%2010%209.45%2010%2010C10%2010.55%2010.1958%2011.0208%2010.5875%2011.4125C10.9792%2011.8042%2011.45%2012%2012%2012ZM12%2022C9.31667%2019.7167%207.3125%2017.5958%205.9875%2015.6375C4.6625%2013.6792%204%2011.8667%204%2010.2C4%207.7%204.80417%205.70833%206.4125%204.225C8.02083%202.74167%209.88333%202%2012%202C14.1167%202%2015.9792%202.74167%2017.5875%204.225C19.1958%205.70833%2020%207.7%2020%2010.2C20%2011.8667%2019.3375%2013.6792%2018.0125%2015.6375C16.6875%2017.5958%2014.6833%2019.7167%2012%2022Z'%20fill='%233d68aa'%20fill-opacity='0.886275'/%3e%3c/svg%3e",jut="data:image/svg+xml,%3csvg%20width='8'%20height='11'%20viewBox='0%200%208%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.45726%201C4.45726%200.74746%204.25254%200.542735%204%200.542735C3.74746%200.542735%203.54274%200.74746%203.54274%201L4.45726%201ZM3.67666%2010.4686C3.85524%2010.6472%204.14476%2010.6472%204.32333%2010.4686L7.23335%207.55862C7.41192%207.38004%207.41192%207.09052%207.23335%206.91195C7.05478%206.73337%206.76525%206.73337%206.58668%206.91195L4%209.49863L1.41332%206.91195C1.23475%206.73337%200.945221%206.73337%200.766648%206.91195C0.588075%207.09052%200.588075%207.38004%200.766648%207.55862L3.67666%2010.4686ZM3.54274%201L3.54273%2010.1453L4.45726%2010.1453L4.45726%201L3.54274%201Z'%20fill='%23699EBF'/%3e%3c/svg%3e",Vut="data:image/svg+xml,%3csvg%20width='6'%20height='6'%20viewBox='0%200%206%206'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='2.74359'%20cy='2.74359'%20r='2.74359'%20fill='%23427F40'/%3e%3c/svg%3e",qut="data:image/svg+xml,%3csvg%20width='97'%20height='115'%20viewBox='0%200%2097%20115'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M36.5738%2094.5595L35.8242%2095.3222L36.5719%2096.1148L37.3214%2095.3241L36.5738%2094.5595ZM36.5738%2094.5595C37.3214%2095.3241%2037.3205%2095.325%2037.3214%2095.3241L37.3233%2095.3222L37.328%2095.3175L37.3467%2095.2979L37.4178%2095.2211C37.4814%2095.1547%2037.5741%2095.0555%2037.6939%2094.9254C37.9353%2094.6662%2038.2871%2094.2835%2038.7353%2093.7894C39.6299%2092.8013%2040.9072%2091.3668%2042.44%2089.5776C45.5027%2085.9984%2049.5891%2080.993%2053.6774%2075.288C57.7638%2069.5865%2061.868%2063.165%2064.9541%2056.7559C68.0318%2050.3661%2070.1475%2043.8889%2070.1475%2038.1023C70.1475%2018.7241%2055.1213%203%2036.5738%203C18.0263%203%203%2018.7241%203%2038.1023C3%2043.8463%205.11666%2050.3024%208.19341%2056.6827C11.2795%2063.083
7661%2015.3837%2069.5097%2019.4692%2075.2217C23.5575%2080.9378%2027.6439%2085.9591%2030.7066%2089.5514C32.2384%2091.348%2033.5157%2092.7882%2034.4103%2093.7801C34.8585%2094.2769%2035.2104%2094.6606%2035.4518%2094.9217C35.5716%2095.0517%2035.6642%2095.1519%2035.7269%2095.2192L35.799%2095.295L35.8177%2095.3147L35.8224%2095.3203L35.8242%2095.3222C35.8242%2095.3231%2035.8242%2095.3222%2036.5738%2094.5595Z'%20fill='white'/%3e%3cpath%20d='M35.8242%2095.3222L36.5719%2096.1148L37.3214%2095.3241M35.8242%2095.3222L35.8177%2095.3147L35.799%2095.295L35.7269%2095.2192C35.6642%2095.1519%2035.5716%2095.0518%2035.4518%2094.9217C35.2104%2094.6606%2034.8585%2094.2769%2034.4103%2093.7801C33.5157%2092.7882%2032.2384%2091.348%2030.7066%2089.5514C27.6439%2085.9591%2023.5575%2080.9378%2019.4692%2075.2217C15.3837%2069.5097%2011.2795%2063.0831%208.19341%2056.6827C5.11666%2050.3024%203%2043.8463%203%2038.1023C3%2018.7241%2018.0263%203%2036.5738%203C55.1213%203%2070.1475%2018.7241%2070.1475%2038.1023C70.1475%2043.8889%2068.0318%2050.3661%2064.9541%2056.7559C61.868%2063.165%2057.7638%2069.5865%2053.6774%2075.288C49.5891%2080.993%2045.5027%2085.9984%2042.44%2089.5776C40.9072%2091.3668%2039.6299%2092.8013%2038.7353%2093.7894C38.2871%2094.2835%2037.9353%2094.6662%2037.6939%2094.9254C37.5741%2095.0555%2037.4814%2095.1547%2037.4178%2095.2211L37.3467%2095.2979L37.328%2095.3175L37.3214%2095.3241'%20fill='%23234C8A'/%3e%3cpath%20d='M35.8242%2095.3222L36.5719%2096.1148L37.3214%2095.324L37.328%2095.3175L37.3467%2095.2978L37.4178%2095.2211C37.4814%2095.1547%2037.5741%2095.0555%2037.6939%2094.9254C37.9353%2094.6662%2038.2871%2094.2835%2038.7353%2093.7894C39.6299%2092.8013%2040.9072%2091.3668%2042.44%2089.5776C45.5027%2085.9984%2049.5891%2080.993%2053.6774%2075.288C57.7638%2069.5865%2061.868%2063.165%2064.9541%2056.7559C68.0318%2050.3661%2070.1475%2043.8889%2070.1475%2038.1023C70.1475%2018.7241%2055.1213%203%2036.5738%203C18.0263%203%203%2018.7241%203%2038.1023C3%2043.8463%205.11666%2050.3024%208.19341%2056.6827C11.2795%2063.0831%2015.3837%2069.5097%2019.4692%2075.2217C23.5575%2080.9378%2027.6439%2085.9591%2030.7066%2089.5514C32.2384%2091.348%2033.5157%2092.7882%2034.4103%2093.7801C34.8585%2094.2769%2035.2104%2094.6606%2035.4518%2094.9217C35.5716%2095.0517%2035.6642%2095.1519%2035.7269%2095.2192L35.799%2095.295L35.8177%2095.3147L35.8242%2095.3222Z'%20stroke='%23234C8A'%20stroke-width='4.58583'/%3e%3ccircle%20cx='36.6161'%20cy='35.6161'%20r='18.6161'%20fill='white'/%3e%3ccircle%20cx='65.7623'%20cy='83.7623'%20r='26.7623'%20fill='%23234C8A'%20stroke='white'%20stroke-width='8'/%3e%3crect%20x='53.109'%20y='82.7215'%20width='26.2969'%20height='3.0722'%20rx='1.5361'%20fill='white'%20stroke='white'%20stroke-width='1.78194'/%3e%3crect%20x='67.7937'%20y='71.109'%20width='26.2969'%20height='3.0722'%20rx='1.5361'%20transform='rotate(90%2067.7937%2071.109)'%20fill='white'%20stroke='white'%20stroke-width='1.78194'/%3e%3c/svg%3e",HEe="/assets/OtherRadio-DubK4nUe.svg",WQ="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.6667%207.3335L7.33337%2014.6668M14.6667%2014.6668L7.33337%207.33349'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",FEe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='41'%20height='34'%20viewBox='0%200%2041%2034'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.0688%202.52441C6.71883%202.52441%201.56822%204.85278%201.56822%2010.3657H24.5695C24.5695%204.85278%2019.4188%202.52441%2013.0688%202.52441ZM1.56822%2032.3215V11.4113H24.5695V32.3215H1.56822ZM26.1377%2017.4883V32.1254H38.6838V17.4883H26.1377ZM32.4073%2012.0167C28.8511%2012.0167%2025.9666%2013.3281%2025.9666%2016.4332H38.8479C38.8479%2013.3281%2035.9634%2012.0167%2032.4073%2012.0167Z'%20fill='%23568949'/%3e%3cmask%20id='mask0_52_1105'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='41'%20height='34'%3e%3cpath%20d='M40.7749%200.955566H0V33.8891H40.7749V0.955566Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.0688%202.52441C6.71883%202.52441%201.56822%204.85278%201.56822%2010.3657H24.5695C24.5695%204.85278%2019.4188%202.52441%2013.0688%202.52441ZM1.56822%2032.3215V11.4113H24.5695V32.3215H1.56822ZM26.1377%2017.4883V32.1254H38.6838V17.4883H26.1377ZM32.4073%2012.0167C28.8511%2012.0167%2025.9666%2013.3281%2025.9666%2016.4332H38.8479C38.8479%2013.3281%2035.9634%2012.0167%2032.4073%2012.0167Z'%20fill='black'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_52_1105)'%3e%3cpath%20d='M1.56827%2010.3652H0V11.9334H1.56827V10.3652ZM24.5695%2010.3652V11.9334H26.1378V10.3652H24.5695ZM1.56827%2011.4107V9.8424H0V11.4107H1.56827ZM1.56827%2032.3209H0C0%2033.187%200.702137%2033.8891%201.56827%2033.8891V32.3209ZM24.5695%2011.4107H26.1378V9.8424H24.5695V11.4107ZM24.5695%2032.3209V34.0852H26.1378V32.3209H24.5695ZM26.1378%2032.1248H24.5695V33.8891H26.1378V32.1248ZM26.1378%2017.4877V15.9194H24.5695V17.4877H26.1378ZM38.848%2032.1248V33.8891C39.7141%2033.8891%2040.4162%2033.187%2040.4162%2032.3209V32.1248H38.848ZM38.848%2017.4877H40.4162L40.3957%2015.9194H38.848V17.4877ZM25.9666%2016.4326H24.3983V18.0008H25.9666V16.4326ZM38.848%2016.4326V18.0008H40.4162V16.4326H38.848ZM3.13653%2010.3652C3.13653%208.19928%204.1008%206.72569%205.75475%205.71552C7.496%204.65205%2010.0476%204.0921%2013.0689%204.0921V0.955566C9.74013%200.955566%206.54145%201.55979%204.11991%203.03875C1.61105%204.57102%200%207.01812%200%2010.3652H3.13653ZM24.5695%208.79689H1.56827V11.9334H24.5695V8.79689ZM13.0689%204.0921C16.0901%204.0921%2018.6418%204.65205%2020.383%205.71552C22.037%206.72569%2023.0012%208.19928%2023.0012%2010.3652H26.1378C26.1378%207.01812%2024.5267%204.57102%2022.0179%203.03875C19.5963%201.55979%2016.3976%200.955566%2013.0689%200.955566V4.0921ZM0%2011.4107V32.3209H3.13653V11.4107H0ZM24.5695%209.8424H1.56827V12.9789H24.5695V9.8424ZM26.1378%2032.3209V11.4107H23.0012V32.3209H26.1378ZM1.56827%2033.8891L24.5695%2034.0852V30.7526H1.56827V33.8891ZM27.706%2032.1248V17.4877H24.5695V32.1248H27.706ZM38.848%2030.5566H26.1378V33.8891H38.848V30.5566ZM37.1156%2017.4877V32.1248H38.848H40.4162V17.4877H38.848H37.1156ZM26.1378%2019.056L38.8561%2019.2282L38.848%2017.4877V15.9194H26.1378V19.056ZM27.5349%2016.4326C27.5349%2015.4664%2027.9367%2014.8492%2028.6742%2014.3963C29.4989%2013.8897%2030.7842%2013.5844%2032.4073%2013.5844V10.4479C30.4743%2010.4479%2028.5392%2010.7983%2027.0326%2011.7236C25.4388%2012.7026%2024.3983%2014.2937%2024.3983%2016.4326H27.5349ZM38.848%2014.8643H25.9666V18.0008H38.848V14.8643ZM32.4073%2013.5844C34.0305%2013.5844%2035.3157%2013.8897%2036.1404
766%2014.3963C36.8779%2014.8492%2037.2797%2015.4664%2037.2797%2016.4326H40.4162C40.4162%2014.2937%2039.3759%2012.7026%2037.782%2011.7236C36.2754%2010.7983%2034.3403%2010.4479%2032.4073%2010.4479V13.5844Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",UEe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='54'%20height='27'%20viewBox='0%200%2054%2027'%20fill='none'%3e%3cpath%20d='M10.5178%2026.382C9.89062%2026.3934%209.2678%2026.276%208.68777%2026.0373C8.10774%2025.7985%207.58281%2025.4434%207.14539%2024.9938C6.69583%2024.5564%206.3407%2024.0315%206.10194%2023.4515C5.86318%2022.8714%205.74585%2022.2486%205.7572%2021.6214H4.17279C3.75548%2021.6274%203.34138%2021.5478%202.95604%2021.3875C2.5707%2021.2272%202.22229%2020.9896%201.93231%2020.6894C1.63215%2020.3995%201.39459%2020.0511%201.2343%2019.6657C1.074%2019.2804%200.994368%2018.8663%201.00031%2018.449V10.5177H35.3035V4.1728C35.2975%203.75549%2035.3772%203.34136%2035.5375%202.95602C35.6978%202.57068%2035.9353%202.2223%2036.2355%201.93232C36.5255%201.63219%2036.8739%201.39461%2037.2592%201.23432C37.6446%201.07403%2038.0587%200.9944%2038.476%201.00031H47.2797C47.9486%200.994332%2048.6019%201.20275%2049.1437%201.59505C49.6921%201.98199%2050.0966%202.53988%2050.294%203.18132L52.594%2010.0021C52.6475%2010.1636%2052.6873%2010.3293%2052.7129%2010.4975C52.7398%2010.6747%2052.7531%2010.8536%2052.7528%2011.0328V21.6214H47.9934C48.0048%2022.2486%2047.8874%2022.8714%2047.6487%2023.4515C47.4099%2024.0315%2047.0548%2024.5564%2046.6052%2024.9938C46.1678%2025.4434%2045.6429%2025.7985%2045.0629%2026.0373C44.4828%2026.276%2043.86%2026.3934%2043.2329%2026.382C42.6057%2026.3934%2041.9829%2026.276%2041.4029%2026.0373C40.8228%2025.7985%2040.2979%2025.4434%2039.8605%2024.9938C39.4109%2024.5564%2039.0558%2024.0315%2038.817%2023.4515C38.5783%2022.8714%2038.4609%2022.2486%2038.4723%2021.6214H15.2765C15.2878%2022.2486%2015.1705%2022.8714%2014.9317%2023.4515C14.693%2024.0315%2014.3379%2024.5564%2013.8883%2024.9938C13.4511%2025.4431%2012.9265%2025.7982%2012.3468%2026.0369C11.7671%2026.2757%2011.1446%2026.3931%2010.5178%2026.382ZM10.5178%2023.2095C10.7273%2023.2148%2010.9357%2023.177%2011.1301%2023.0986C11.3244%2023.0201%2011.5007%2022.9026%2011.6478%2022.7533C11.7971%2022.6062%2011.9146%2022.43%2011.993%2022.2356C12.0715%2022.0412%2012.1093%2021.8328%2012.104%2021.6233C12.1093%2021.4137%2012.0715%2021.2053%2011.993%2021.011C11.9146%2020.8166%2011.7971%2020.6404%2011.6478%2020.4933C11.5007%2020.344%2011.3244%2020.2265%2011.1301%2020.148C10.9357%2020.0695%2010.7273%2020.0318%2010.5178%2020.0371C10.3082%2020.0318%2010.0998%2020.0695%209.90545%2020.148C9.71109%2020.2265%209.53487%2020.344%209.38771%2020.4933C9.23845%2020.6404%209.12096%2020.8166%209.04249%2021.011C8.96403%2021.2053%208.92626%2021.4137%208.93152%2021.6233C8.92626%2021.8328%208.96403%2022.0412%209.04249%2022.2356C9.12096%2022.43%209.23845%2022.6062%209.38771%2022.7533C9.53487%2022.9026%209.71109%2023.0201%209.90545%2023.0986C10.0998%2023.177%2010.3082%2023.2148%2010.5178%2023.2095ZM43.2347%2023.2095C43.4442%2023.2148%2043.6526%2023.177%2043.847%2023.0986C44.0414%2023.0201%2044.2176%2022.9026%2044.3648%2022.7533C44.514%2022.6062%2044.6315%2022.43%2044.71%2022.2356C44.7884%2022.0412%2044.8262%2021.8328%2044.8209%2021.6233C44.8262%2021.4137%2044.7884%2021.2053%2044.71%2021.011C44.6315%2020.8166%2044.514%2020.6404%2044.3648%2020.4933C44.2176%2020.344%2044.0414%2020.2265%2043.847%2020.148C43.6526%2020.0695%2043.4442%2020.0318%2043.2347%2020.0371C43.0252%2020.0318%2042.8168%2020.0695%2042.6224%2020.148C42.428%2020.2265%2042.2518%2020.344%2042.1046%2020.4933C41.9554%2020.6404%2041.8379%2020.8166%2041.7594%2021.011C41.681%2021.2053%2041.6432%2021.4137%2041.6485%2021.6233C41.6432%2021.8328%2041.681%2022.0412%2041.7594%2022.2356C41.8379%2022.43%2041.9554%2022.6062%2042.1046%2022.7533C42.2518%2022.9026%2042.428%2023.0201%2042.6224%2023.0986C42.8168%2023.177%2043.0252%2023.2148%2043.2347%2023.2095ZM4.17279%2013.6915V18.4502H6.98842C7.42977%2017.9538%207.97009%2017.5553%208.57466%2017.2803C9.18453%2017.0023%209.84754%2016.8603%2010.5178%2016.864C11.188%2016.8603%2011.851%2017.0023%2012.4609%2017.2803C13.0654%2017.5553%2013.6058%2017.9538%2014.0471%2018.4502H35.3035V13.6915H4.17279ZM38.476%2018.4502H39.7054C40.1467%2017.9538%2040.687%2017.5553%2041.2916%2017.2803C41.9015%2017.0023%2042.5645%2016.8603%2043.2347%2016.864C43.9049%2016.8603%2044.5679%2017.0023%2045.1778%2017.2803C45.7824%2017.5553%2046.3227%2017.9538%2046.764%2018.4502H49.5797V13.6915H38.476V18.4502ZM38.476%2010.519H49.4215L47.2797%204.174H38.476V10.519Z'%20fill='%23A94242'%20stroke='white'%20stroke-width='1.22632'/%3e%3cpath%20d='M29.2785%201H5.65499C3.95022%201%202.56824%202.72444%202.56824%204.85166V6.55794C2.56824%208.68515%203.95022%2010.4096%205.65499%2010.4096H29.2785C30.9833%2010.4096%2032.3653%208.68515%2032.3653%206.55794V4.85166C32.3653%202.72444%2030.9833%201%2029.2785%201Z'%20fill='%23A94242'%20stroke='white'%20stroke-width='1.22632'/%3e%3crect%20x='2.56824'%20y='12.9197'%2
7660width='48.6162'%20height='6.27306'%20fill='%23A94242'/%3e%3c/svg%3e",$i="/assets/ShipperRadio-BM8s4Kvc.svg",BEe="data:image/svg+xml,%3csvg%20width='46'%20height='44'%20viewBox='0%200%2046%2044'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.34897%2019.1846C3.70818%2020.611%203.34148%2022.1283%203.25753%2023.6957H2.49664C1.93087%2023.6957%201.47177%2024.1548%201.47177%2024.7206C1.47177%2025.2864%201.93087%2025.7455%202.49664%2025.7455H3.31035C3.44584%2027.0255%203.77301%2028.2702%204.28421%2029.4479C4.78971%2030.6124%205.46545%2031.6904%206.29353%2032.6538L4.21447%2037.5524L4.89361%2037.8406L4.21447%2037.5524C4.05533%2037.9274%204.05159%2038.3459%204.20413%2038.7237L4.88824%2038.4474L4.20414%2038.7237C4.35668%2039.1014%204.65003%2039.4%205.02505%2039.5592L5.02508%2039.5592C5.21393%2039.6393%205.41583%2039.6811%205.62237%2039.6811C6.2374%2039.6811%206.79127%2039.3144%207.03153%2038.7483C7.03153%2038.7483%207.03154%2038.7483%207.03155%2038.7483L8.70001%2034.8178C8.719%2034.8309%208.738%2034.8439%208.757%2034.8569V39.1301C8.757%2039.9745%209.44285%2040.6604%2010.2873%2040.6604C11.1318%2040.6604%2011.8176%2039.9745%2011.8176%2039.1301V36.375C13.0828%2036.7973%2014.4044%2037.0111%2015.7502%2037.0111C17.1274%2037.0111%2018.4821%2036.7867%2019.7755%2036.3436C20.9283%2035.9487%2022.014%2035.387%2023.0066%2034.6727L24.8802%2038.6904L24.8803%2038.6905C25.1313%2039.2286%2025.6744%2039.5744%2026.2681%2039.5744C26.4928%2039.5744%2026.7115%2039.5251%2026.9139%2039.4308L26.9139%2039.4308C27.2832%2039.2586%2027.5659%2038.95%2027.7052%2038.5672C27.8446%2038.1845%2027.8265%2037.7664%2027.6543%2037.3971L27.6543%2037.3971L25.3586%2032.474C26.1434%2031.526%2026.7838%2030.4721%2027.263%2029.3394C27.7475%2028.194%2028.0591%2026.9858%2028.1904%2025.7455H28.5622C29.128%2025.7455%2029.5871%2025.2864%2029.5871%2024.7206C29.5871%2024.1548%2029.128%2023.6957%2028.5622%2023.6957H28.2432C28.1593%2022.1283%2027.7926%2020.611%2027.1518%2019.1846C26.4994%2017.7325%2025.5898%2016.431%2024.4497%2015.318C23.3081%2014.2036%2021.9867%2013.3283%2020.5236%2012.7187C19.0087%2012.0874%2017.4017%2011.7675%2015.7502%2011.7675C14.0989%2011.7675%2012.4919%2012.0874%2010.977%2012.7187C9.51399%2013.3283%208.19258%2014.2036%207.051%2015.318C5.91088%2016.431%205.00131%2017.7325%204.34897%2019.1846Z'%20fill='%23089A9A'%20stroke='white'%20stroke-width='1.47554'/%3e%3cpath%20d='M26.2495%2023.9771H2.28144C1.9733%2023.9771%201.72339%2024.3059%201.72339%2024.7147C1.72339%2025.1234%201.9733%2025.4526%202.28144%2025.4526H26.2495C26.5577%2025.4526%2026.8076%2025.1237%2026.8076%2024.715C26.8076%2024.3062%2026.5577%2023.9771%2026.2495%2023.9771Z'%20fill='%23089A9A'/%3e%3cpath%20d='M41.6827%2042.3592H42.4205V41.6214V8.47013C42.4205%206.6342%2041.704%204.90445%2040.4058%203.60626C39.1076%202.30806%2037.3778%201.59158%2035.5419%201.59158H21.6254C19.7895%201.59158%2018.0598%202.30806%2016.7616%203.60626C15.4634%204.90445%2014.7469%206.6342%2014.7469%208.47013V41.6214V42.3592H15.4846H41.6827Z'%20fill='%23089A9A'%20stroke='white'%20stroke-width='1.47554'/%3e%3cpath%20d='M42.1249%2037.5255H14.9974V38.4757H42.1249V37.5255Z'%20fill='white'/%3e%3cmask%20id='mask0_2092_277'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='12'%20y='6'%20width='34'%20height='2'%3e%3cpath%20d='M45.716%206.97522H12.9545V7.81003H45.716V6.97522Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_2092_277)'%3e%3cpath%20d='M21.6255%201.84375H35.5418C37.2994%201.84375%2038.985%202.54195%2040.2278%203.78475C41.4706%205.02754%2042.1688%206.71314%2042.1688%208.47072V42.1095H14.9985V8.47072C14.9985%206.71314%2015.6967%205.02754%2016.9395%203.78475C18.1823%202.54195%2019.8679%201.84375%2021.6255%201.84375Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",Gut="data:image/svg+xml,%3csvg%20width='50'%20height='47'%20viewBox='0%200%2050%2047'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M43.1801%2015.2106C46.0417%2015.2106%2048.3616%2012.8908%2048.3616%2010.0291C48.3616%207.16735%2046.0417%204.84747%2043.1801%204.84747C40.3182%204.84747%2037.9985%207.16735%2037.9985%2010.0291C37.9985%2012.8908%2040.3182%2015.2106%2043.1801%2015.2106Z'%20fill='white'/%3e%3cpath%20d='M40.417%2039.3276C40.7502%2039.3696%2041.0896%2039.3912%2041.4345%2039.3912H41.4724C45.9132%2039.3912%2049.513%2035.7913%2049.513%2031.3505V19.7011C49.513%2018.493%2048.5337%2017.5134%2047.3253%2017.5134H41.0914C41.4441%2018.1811%2041.6385%2018.9441%2041.6254%2019.7511V32.9869C41.6736%2035.2348%2041.2392%2037.3815%2040.417%2039.3276Z'%20fill='white'/%3e%3cpath%20d='M35.9314%2037.2141C34.369%2035.7475%2033.3928%2033.6638%2033.3926%2031.3517V19.989H36.6741V33.0434L36.6748%2033.0721C36.709%2034.5352%2036.4423%2035.9357%2035.9314%2037.2141Z'%20fill='white'/%3e%3cpath%20d='M27.8075%2015.1513C31.5898%2014.7759%2034.5437%2011.5848%2034.5437%207.70377C34.5437%203.57018%2031.1927%200.219238%2027.0591%200.219238C22.9255%200.219238%2019.5745%203.57018%2019.5745%207.70377C19.5745%207.84652%2019.5787%207.98832%2019.5863%208.12911H23.2211C25.7542%208.12911%2027.8075%2010.1825%2027.8075%2012.7154V15.1513Z'%20fill='white'/%3e%3cpath%20d='M22.8563%2013.8977V13.0804H21.8524C22.1624%2013.3806%2022.4983%2013.6543%2022.8563%2013.8977Z'%20fill='white'/%3e%3cpath%20d='M13.8147%2033.4613C13.8131%2033.313%2013.8141%2033.1639%2013.8175%2033.0144V30.3625H14.9883V19.2221H19.3207V17.5134H22.8562V33.4613H13.8147Z'%20fill='white'/%3e%3cpath%20d='M14.8522%2038.4126H23.2211C25.7542%2038.4126%2027.8075%2036.3593%2027.8075%2033.8264V17.5134H37.0392C38.233%2017.543%2039.1774%2018.5338%2039.1497%2019.7276V33.0144C39.3165%2040.1792%2033.648%2046.1247%2026.4838%2046.3C21.2346%2046.1715%2016.7887%2042.946%2014.8522%2038.4126Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M23.2216%2010.6047H2.11062C0.94498%2010.6047%200%2011.5497%200%2012.7154V33.8264
766C0%2034.9919%200.944955%2035.9369%202.11062%2035.9369H23.2216C24.3872%2035.9369%2025.3321%2034.9919%2025.3321%2033.8264V12.7154C25.3321%2011.5497%2024.3872%2010.6047%2023.2216%2010.6047ZM6.94251%2019.2221H11.2749V30.3625H13.7505V19.2221H18.0829V16.7464H6.94251V19.2221Z'%20fill='white'/%3e%3c/svg%3e",Yut="data:image/svg+xml,%3csvg%20width='11'%20height='14'%20viewBox='0%200%2011%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.03658%203.07888C-0.438807%204.04967%20-0.10941%206.97014%200.240552%207.86364C0.44725%208.39137%200.584819%209.89926%200.612456%2010.6873C0.618387%2010.8564%200.898904%2011.0579%201.05643%2010.9961L8.24467%208.17699C8.57391%208.04786%208.67224%207.71204%208.45696%207.43147C7.96475%206.78998%207.15244%205.71892%206.96009%205.22844C6.68264%204.52097%204.86586%201.96931%202.03658%203.07888Z'%20fill='%23C5314B'/%3e%3cmask%20id='mask0_166_91'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='2'%20y='9'%20width='6'%20height='5'%3e%3crect%20x='7.95325'%20y='11.4585'%20width='4.55871'%20height='2.27936'%20transform='rotate(158%207.95325%2011.4585)'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_166_91)'%3e%3ccircle%20cx='4.98607'%20cy='10.1989'%20r='1.51957'%20transform='rotate(158%204.98607%2010.1989)'%20fill='%23C5314B'/%3e%3c/g%3e%3cpath%20d='M6.03149%202.63828C7.14599%202.92943%208.13439%203.7554%208.15506%205.45013'%20stroke='%23C5314B'%20stroke-width='0.457265'%20stroke-linecap='round'/%3e%3cpath%20d='M6.09795%201.1943C8.18751%201.7184%209.32719%203.23799%209.70269%205.5173'%20stroke='%23C5314B'%20stroke-width='0.457265'%20stroke-linecap='round'/%3e%3c/svg%3e";var fr=(r=>(r.TONS="t",r.MEGAWATTS="MW",r.MEGAWATTHOUR="MWh",r.TERAWATTHOUR="TWh",r))(fr||{}),es=(r=>(r.PRODUCED_PER_YEAR="h2Producedperyear",r.PRODUCED="h2Produced",r.CONSUMED_PER_YEAR="h2Consumedperyear",r.CONSUMED="h2Consumed",r.STORED="h2Stored",r.TRADED="h2Traded",r.CCUS="ccus",r.GAS_POWER_PLANT_MW="gasPowerPlantMw",r.H2_TANKSTELLE_350_BAR="h2Tankstelle350Bar",r.H2_TANKSTELLE_700_BAR="h2Tankstelle700Bar",r.OTHER="Other",r))(es||{});const Wut=r=>new Map([["h2Producedperyear",r==null?void 0:r.h2Producedperyear],["h2Produced",r==null?void 0:r.h2Produced],["h2Consumedperyear",r==null?void 0:r.h2Consumedperyear],["h2Consumed",r==null?void 0:r.h2Consumed],["h2Stored",r==null?void 0:r.h2Stored],["h2Traded",r==null?void 0:r.h2Traded],["ccus",r==null?void 0:r.ccus],["gasPowerPlantMw",r==null?void 0:r.gasPowerPlantMw],["h2Tankstelle350Bar",0],["h2Tankstelle700Bar",0],["Other",0]]),Kut="#ffffff",Zut="#234c8a",Xut="#313131",Qut="#234c8a",Jut="#0079bf",edt="#ffa500",tdt="#fbfc0b",rdt="#60a5fa",ndt="#3b82f6",idt="#93c5fd",odt="#234c8a",adt="#bfdbfe",sdt="#e2e2e2",ti={white:Kut,blue600:Zut,darkerGray:Xut,h2DigitalBlue:Qut,pipelineBlue:Jut,pipelineOrange:edt,pipelineYellow:tdt,projectPlanningPale:rdt,projectConstructionPale:ndt,projectConceptPale:idt,projectOperationalPale:odt,projectCandidatePale:adt,lightGray:sdt},v2t={LOCATION:"location",STAGING:"staging"},_2t=["projectId","electrolyserSize","MSTeamsID","MSTeamsName","MSTeamsChannel","NotificationLink","timezone","District","active","connectorUrl","phases","producerQnAResponse","consumerQnAResponse","traderQnAResponse","childLocations"],b2t=[{status:"draft",label:"h2-dig.edit-staging.draft",icon:$.jsx(Ile,{}),condition:(r,e)=>r===null&&e===null},{status:"open",label:"h2-dig.edit-staging.open",icon:$.jsx(Ile,{}),condition:(r,e)=>r&&e||!r&&e},{status:"inactive",label:"h2-dig.edit-staging.inactive",icon:$.jsx(kEe,{}),condition:(r,e)=>!r&&!e},{status:"active",label:"h2-dig.edit-staging.active",icon:$.jsx(PEe,{}),condition:(r,e)=>r&&!e}],yO={color:ti.white,borderRadius:"50%",width:30,height:30,padding:"4px",display:"flex",alignItems:"center",justifyContent:"center"},w2t=[{value:Nd.CANDIDATE,labelId:"candidate",icon:$.jsx(Iut,{sx:{...yO,backgroundColor:ti.projectCandidatePale}})},{value:Nd.CONCEPT,labelId:"concept",icon:$.jsx(Rut,{sx:{...yO,backgroundColor:ti.projectConceptPale}})},{value:Nd.PLANNING,labelId:"planning",icon:$.jsx(xut,{sx:{...yO,backgroundColor:ti.projectPlanningPale}})},{value:Nd.CONSTRUCTION,labelId:"construction",icon:$.jsx(Sut,{sx:{...yO,backgroundColor:ti.projectConstructionPale}})},{value:Nd.OPERATIONAL,labelId:"operational",icon:$.jsx(Out,{sx:{...yO,backgroundColor:ti.projectOperationalPale}})}];
766var CB=(r=>(r.MIN_POTENTIAL_TW_PER_HOUR="MIN_POTENTIAL_TW_PER_HOUR",r.MIN_POTENTIAL_TONS_PER_YEAR="MIN_POTENTIAL_TONS_PER_YEAR",r.MAX_POTENTIAL_TW_PER_HOUR="MAX_POTENTIAL_TW_PER_HOUR",r.MAX_POTENTIAL_TONS_PER_YEAR="MAX_POTENTIAL_TONS_PER_YEAR",r))(CB||{}),Uo=(r=>(r.H2PRODUCEDPERHOUR="H2PRODUCEDPERHOUR",r.H2PRODUCED_TONS_PER_YEAR="H2PRODUCED_TONS_PER_YEAR",r.H2CONSUMEDPERHOUR="H2CONSUMEDPERHOUR",r.H2CONSUMED_TONS_PER_YEAR="H2CONSUMED_TONS_PER_YEAR",r.H2_TRADER_TONS_PER_YEAR="H2_TRADER_TONS_PER_YEAR",r.H2_STORAGE="H2_STORAGE",r.CCUS="CCUS",r.GAS_POWER_PLANT_MW="GAS_POWER_PLANT_MW",r.OTHER="OTHER",r.H2_TANKSTELLE_350_BAR="H2_TANKSTELLE_350_BAR",r.H2_TANKSTELLE_700_BAR="H2_TANKSTELLE_700_BAR",r.H2PRODUCED_TRANSPORTATION_CAPACITY_CELZA_TONS_PER_HOUR="H2PRODUCED_TRANSPORTATION_CAPACITY_CELZA_MW_PER_HOUR",r.H2PRODUCED_TRANSPORTATION_CAPACITY_CELZA_TONS_PER_YEAR="H2PRODUCED_TRANSPORTATION_CAPACITY_CELZA_TONS_PER_YEAR",r.H2PRODUCED_EXIT_SPAIN_TONS_PER_HOUR="H2PRODUCED_EXIT_SPAIN_MW_PER_HOUR",r.H2PRODUCED_EXIT_SPAIN_TONS_PER_YEAR="H2PRODUCED_EXIT_SPAIN_TONS_PER_YEAR",r.H2PRODUCED_TRANSPORTATION_CAPACITY_BARMAR_TONS_PER_HOUR="H2PRODUCED_TRANSPORTATION_CAPACITY_BARMAR_MW_PER_HOUR",r.H2PRODUCED_TRANSPORTATION_CAPACITY_BARMAR_TONS_PER_YEAR="H2PRODUCED_TRANSPORTATION_CAPACITY_BARMAR_TONS_PER_YEAR",r.H2PRODUCED_EXIT_FRANCE_TONS_PER_HOUR="H2PRODUCED_EXIT_FRANCE_MW_PER_HOUR",r.H2PRODUCED_EXIT_FRANCE_TONS_PER_YEAR="H2PRODUCED_EXIT_FRANCE_TONS_PER_YEAR",r.H2PRODUCED_TRANSPORTATION_CAPACITY_FRANCE_GERMANY_TONS_PER_HOUR="H2PRODUCED_TRANSPORTATION_CAPACITY_FRANCE_GERMANY_MW_PER_HOUR",r.H2PRODUCED_TRANSPORTATION_CAPACITY_FRANCE_GERMANY_TONS_PER_YEAR="H2PRODUCED_TRANSPORTATION_CAPACITY_FRANCE_GERMANY_TONS_PER_YEAR",r.H2PRODUCED_EXIT_HYFEN_HYINFRA_MED_TONS_PER_HOUR="H2PRODUCED_EXIT_HYFEN_HYINFRA_MED_MW_PER_HOUR",r.H2PRODUCED_EXIT_HYFEN_HYINFRA_MED_TONS_PER_YEAR="H2PRODUCED_EXIT_HYFEN_HYINFRA_MED_TONS_PER_YEAR",r.H2PRODUCED_EXIT_HYFEN_MIDHY_HYSOW_TONS_PER_HOUR="H2PRODUCED_EXIT_HYFEN_MIDHY_HYSOW_MW_PER_HOUR",r.H2PRODUCED_EXIT_HYFEN_MIDHY_HYSOW_TONS_PER_YEAR="H2PRODUCED_EXIT_HYFEN_MIDHY_HYSOW_TONS_PER_YEAR",r.H2PRODUCED_EXIT_HYFEN_CHEMICAL_VALLEY_LYON_TONS_PER_HOUR="H2PRODUCED_EXIT_HYFEN_CHEMICAL_VALLEY_LYON_MW_PER_HOUR",r.H2PRODUCED_EXIT_HYFEN_CHEMICAL_VALLEY_LYON_TONS_PER_YEAR="H2PRODUCED_EXIT_HYFEN_CHEMICAL_VALLEY_LYON_TONS_PER_YEAR",r.H2PRODUCED_EXIT_HYFEN_MOSAHYC_TONS_PER_HOUR="H2PRODUCED_EXIT_HYFEN_MOSAHYC_MW_PER_HOUR",r.H2PRODUCED_EXIT_HYFEN_MOSAHYC_TONS_PER_YEAR="H2PRODUCED_EXIT_HYFEN_MOSAHYC_TONS_PER_YEAR",r.H2PRODUCED_EXIT_HYFEN_HY4LINK_TONS_PER_HOUR="H2PRODUCED_EXIT_HYFEN_HY4LINK_MW_PER_HOUR",r.H2PRODUCED_EXIT_HYFEN_HY4LINK_TONS_PER_YEAR="H2PRODUCED_EXIT_HYFEN_HY4LINK_TONS_PER_YEAR",r.H2PRODUCED_EXIT_HYFEN_RHYN_TONS_PER_HOUR="H2PRODUCED_EXIT_HYFEN_RHYN_MW_PER_HOUR",r.H2PRODUCED_EXIT_HYFEN_RHYN_TONS_PER_YEAR="H2PRODUCED_EXIT_HYFEN_RHYN_TONS_PER_YEAR",r.H2PRODUCED_EXIT_HYFEN_OTHER_TONS_PER_HOUR="H2PRODUCED_EXIT_HYFEN_OTHER_MW_PER_HOUR",r.H2PRODUCED_EXIT_HYFEN_OTHER_TONS_PER_YEAR="H2PRODUCED_EXIT_HYFEN_OTHER_TONS_PER_YEAR",r.H2PRODUCED_ENTRY_HYFEN_HYINFRA_MED_TONS_PER_HOUR="H2PRODUCED_ENTRY_HYFEN_HYINFRA_MED_MW_PER_HOUR",r.H2PRODUCED_ENTRY_HYFEN_HYINFRA_MED_TONS_PER_YEAR="H2PRODUCED_ENTRY_HYFEN_HYINFRA_MED_TONS_PER_YEAR",r.H2PRODUCED_ENTRY_HYFEN_MIDHY_HYSOW_TONS_PER_HOUR="H2PRODUCED_ENTRY_HYFEN_MIDHY_HYSOW_MW_PER_HOUR",r.H2PRODUCED_ENTRY_HYFEN_MIDHY_HYSOW_TONS_PER_YEAR="H2PRODUCED_ENTRY_HYFEN_MIDHY_HYSOW_TONS_PER_YEAR",r.H2PRODUCED_ENTRY_HYFEN_CHEMICAL_VALLEY_LYON_TONS_PER_HOUR="H2PRODUCED_ENTRY_HYFEN_CHEMICAL_VALLEY_LYON_MW_PER_HOUR",r.H2PRODUCED_ENTRY_HYFEN_CHEMICAL_VALLEY_LYON_TONS_PER_YEAR="H2PRODUCED_ENTRY_HYFEN_CHEMICAL_VALLEY_LYON_TONS_PER_YEAR",r.H2PRODUCED_ENTRY_HYFEN_MOSAHYC_TONS_PER_HOUR="H2PRODUCED_ENTRY_HYFEN_MOSAHYC_MW_PER_HOUR",r.H2PRODUCED_ENTRY_HYFEN_MOSAHYC_TONS_PER_YEAR="H2PRODUCED_ENTRY_HYFEN_MOSAHYC_TONS_PER_YEAR",r.H2PRODUCED_ENTRY_HYFEN_HY4LINK_TONS_PER_HOUR="H2PRODUCED_ENTRY_HYFEN_HY4LINK_MW_PER_HOUR",r.H2PRODUCED_ENTRY_HYFEN_HY4LINK_TONS_PER_YEAR="H2PRODUCED_ENTRY_HYFEN_HY4LINK_TONS_PER_YEAR",r.H2PRODUCED_ENTRY_HYFEN_RHYN_TONS_P
766ER_HOUR="H2PRODUCED_ENTRY_HYFEN_RHYN_MW_PER_HOUR",r.H2PRODUCED_ENTRY_HYFEN_RHYN_TONS_PER_YEAR="H2PRODUCED_ENTRY_HYFEN_RHYN_TONS_PER_YEAR",r.H2PRODUCED_ENTRY_HYFEN_OTHER_TONS_PER_HOUR="H2PRODUCED_ENTRY_HYFEN_OTHER_MW_PER_HOUR",r.H2PRODUCED_ENTRY_HYFEN_OTHER_TONS_PER_YEAR="H2PRODUCED_ENTRY_HYFEN_OTHER_TONS_PER_YEAR",r.H2PRODUCED_CALL_FOR_INTEREST_ANNUAL_TONS_PER_YEAR="H2PRODUCED_CALL_FOR_INTEREST_ANNUAL_TONS_PER_YEAR",r.H2PRODUCED_CALL_FOR_INTEREST_PEAK_TONS_PER_HOUR="H2PRODUCED_CALL_FOR_INTEREST_PEAK_TONS_PER_HOUR",r.H2CONSUMED_GRID_OFFTAKE_CAPACITY_TONS_PER_HOUR="H2CONSUMED_GRID_OFFTAKE_CAPACITY_MW_PER_HOUR",r.H2CONSUMED_GRID_OFFTAKE_CAPACITY_TONS_PER_YEAR="H2CONSUMED_GRID_OFFTAKE_CAPACITY_TONS_PER_YEAR",r.H2CONSUMED_TRANSPORTATION_CAPACITY_H2MED_CORRIDOR_TONS_PER_HOUR="H2CONSUMED_TRANSPORTATION_CAPACITY_H2MED_CORRIDOR_MW_PER_HOUR",r.H2CONSUMED_TRANSPORTATION_CAPACITY_H2MED_CORRIDOR_TONS_PER_YEAR="H2CONSUMED_TRANSPORTATION_CAPACITY_H2MED_CORRIDOR_TONS_PER_YEAR",r.H2CONSUMED_CALL_FOR_INTEREST_ANNUAL_TONS_PER_YEAR="H2CONSUMED_CALL_FOR_INTEREST_ANNUAL_TONS_PER_YEAR",r.H2CONSUMED_CALL_FOR_INTEREST_PEAK_TONS_PER_HOUR="H2CONSUMED_CALL_FOR_INTEREST_PEAK_TONS_PER_HOUR",r.H2TRADER_TRANSPORTATION_CAPACITY_CELZA_TONS_PER_HOUR="H2TRADER_TRANSPORTATION_CAPACITY_CELZA_MW_PER_HOUR",r.H2TRADER_TRANSPORTATION_CAPACITY_CELZA_TONS_PER_YEAR="H2TRADER_TRANSPORTATION_CAPACITY_CELZA_TONS_PER_YEAR",r.H2TRADER_EXIT_SPAIN_TONS_PER_HOUR="H2TRADER_EXIT_SPAIN_MW_PER_HOUR",r.H2TRADER_EXIT_SPAIN_TONS_PER_YEAR="H2TRADER_EXIT_SPAIN_TONS_PER_YEAR",r.H2TRADER_TRANSPORTATION_CAPACITY_BARMAR_TONS_PER_HOUR="H2TRADER_TRANSPORTATION_CAPACITY_BARMAR_MW_PER_HOUR",r.H2TRADER_TRANSPORTATION_CAPACITY_BARMAR_TONS_PER_YEAR="H2TRADER_TRANSPORTATION_CAPACITY_BARMAR_TONS_PER_YEAR",r.H2TRADER_EXIT_FRANCE_HYNFRAMED_TONS_PER_HOUR="H2TRADER_EXIT_FRANCE_HYNFRAMED_MW_PER_HOUR",r.H2TRADER_EXIT_FRANCE_HYNFRAMED_TONS_PER_YEAR="H2TRADER_EXIT_FRANCE_HYNFRAMED_TONS_PER_YEAR",r.H2TRADER_EXIT_FRANCE_CHEMICAL_VALLEY_LYON_TONS_PER_HOUR="H2TRADER_EXIT_FRANCE_CHEMICAL_VALLEY_LYON_MW_PER_HOUR",r.H2TRADER_EXIT_FRANCE_CHEMICAL_VALLEY_LYON_TONS_PER_YEAR="H2TRADER_EXIT_FRANCE_CHEMICAL_VALLEY_LYON_TONS_PER_YEAR",r.H2TRADER_EXIT_FRANCE_MOSAHYC_TONS_PER_HOUR="H2TRADER_EXIT_FRANCE_MOSAHYC_MW_PER_HOUR",r.H2TRADER_EXIT_FRANCE_MOSAHYC_TONS_PER_YEAR="H2TRADER_EXIT_FRANCE_MOSAHYC_TONS_PER_YEAR",r.H2TRADER_EXIT_FRANCE_HY4LINK_TONS_PER_HOUR="H2TRADER_EXIT_FRANCE_HY4LINK_MW_PER_HOUR",r.H2TRADER_EXIT_FRANCE_HY4LINK_TONS_PER_YEAR="H2TRADER_EXIT_FRANCE_HY4LINK_TONS_PER_YEAR",r.H2TRADER_EXIT_FRANCE_RHYN_TONS_PER_HOUR="H2TRADER_EXIT_FRANCE_RHYN_MW_PER_HOUR",r.H2TRADER_EXIT_FRANCE_RHYN_TONS_PER_YEAR="H2TRADER_EXIT_FRANCE_RHYN_TONS_PER_YEAR",r.H2TRADER_ENTRY_FRANCE_HYNFRAMED_TONS_PER_HOUR="H2TRADER_ENTRY_FRANCE_HYNFRAMED_MW_PER_HOUR",r.H2TRADER_ENTRY_FRANCE_HYNFRAMED_TONS_PER_YEAR="H2TRADER_ENTRY_FRANCE_HYNFRAMED_TONS_PER_YEAR",r.H2TRADER_ENTRY_FRANCE_CHEMICAL_VALLEY_LYON_TONS_PER_HOUR="H2TRADER_ENTRY_FRANCE_CHEMICAL_VALLEY_LYON_MW_PER_HOUR",r.H2TRADER_ENTRY_FRANCE_CHEMICAL_VALLEY_LYON_TONS_PER_YEAR="H2TRADER_ENTRY_FRANCE_CHEMICAL_VALLEY_LYON_TONS_PER_YEAR",r.H2TRADER_ENTRY_FRANCE_MOSAHYC_TONS_PER_HOUR="H2TRADER_ENTRY_FRANCE_MOSAHYC_MW_PER_HOUR",r.H2TRADER_ENTRY_FRANCE_MOSAHYC_TONS_PER_YEAR="H2TRADER_ENTRY_FRANCE_MOSAHYC_TONS_PER_YEAR",r.H2TRADER_ENTRY_FRANCE_HY4LINK_TONS_PER_HOUR="H2TRADER_ENTRY_FRANCE_HY4LINK_MW_PER_HOUR",r.H2TRADER_ENTRY_FRANCE_HY4LINK_TONS_PER_YEAR="H2TRADER_ENTRY_FRANCE_HY4LINK_TONS_PER_YEAR",r.H2TRADER_ENTRY_FRANCE_RHYN_TONS_PER_HOUR="H2TRADER_ENTRY_FRANCE_RHYN_MW_PER_HOUR",r.H2TRADER_ENTRY_FRANCE_RHYN_TONS_PER_YEAR="H2TRADER_ENTRY_FRANCE_RHYN_TONS_PER_YEAR",r.H2TRADER_TRANSPORTATION_CAPACITY_FRANCE_GERMANY_TONS_PER_HOUR="H2TRADER_TRANSPORTATION_CAPACITY_FRANCE_GERMANY_MW_PER_HOUR",r.H2TRADER_TRANSPORTATION_CAPACITY_FRANCE_GERMANY_TONS_PER_YEAR="H2TRADER_TRANSPORTATION_CAPACITY_FRANCE_GERMANY_TONS_PER_YEAR",r.H2TRADER_EXIT_CAPACITY_HYFEN_NATIONAL_FRANCE_TONS_PER_HOUR="H2TRADER_EXIT_CAPACITY_HYFEN_NATIONAL_FRANCE_TONS_PER_HOUR",r.H2TRADER_EXIT_CAPACITY_HYFEN_NATIONAL_FRANCE_TONS_PER_YEAR="H2TRADER_EXIT_CAPACITY_HYFEN_NATIONAL_FRANCE_TONS_PER_YEAR",r.H2TRADER_EXIT_CAPACITY_HYFEN_MIDHY_HYSOW_TONS_PER_HOUR="H2TRADER_EXIT_CAPACITY_HYFEN_MIDHY_HYSOW_TONS_PER_HOUR",r.H2TRADER_EXIT_CAPACITY_HYFEN_MIDHY_HYSOW_TONS_PER_YEAR="H2TRADER_EXIT_CAPACITY_HYFEN_MIDHY_HYSOW_TONS_PER_YEAR",r.H2TRADER_ENTRY_CAPACITY_HYFEN_ANOTHER_EXIT_TONS_PER_HOUR="H2TRADER_ENTRY_CAPACITY_HYFEN_ANOTHER_EXIT_TONS_PER_HOUR",r.H2TRADER_ENTRY_CAPACITY_HYFEN_ANOTHER_EXIT_TONS_PER_YEAR="H2TRADER_ENTRY_CAPACITY_HYFEN_ANOTHER_EXIT_TONS_PER_YEAR",r.H2TRADER_ENTRY_CAPACITY_NATIONAL_FRANCE_HYFEN_TONS_PER_HOUR="H2TRADER_ENTRY_CAPACITY_NATIONAL_FRANCE_HYFEN_TONS_PER_HOUR",r.H2TRADER_ENTRY_CAPACITY_NATIONAL_FRANCE_HYFEN_TONS_PER_YEAR="H2TRADER_ENTRY_CAPACITY_NATIONAL_FRANCE_HYFEN_TONS_PER_YEAR",r.H2TRADER_ENTRY_CAPACITY_HYFEN_MIDHY_HYSOW_TONS_PER_HOUR="H2TRADER_ENTRY_CAPACITY_HYFEN_MIDHY_HYSOW_TONS_PER_HOUR",r.H2TRADER_ENTRY_CAPACITY_HYFEN_MIDHY_HYSOW_TONS_PER_YEAR="H2TRADER_ENTRY_CAPACITY_HYFEN_MIDHY_HYSOW_TONS_PER_YEAR",r.H2TRADER_ENTRY_CAPACITY_HYFEN_ANOTHER_ENTRY_TONS_PER_HOUR="H2TRADER_ENTRY_CAPACITY_HYFEN_ANOTHER_ENTRY_TONS_PER_HOUR",r.H2TRADER_ENTRY_CAPACITY_HYFEN_ANOTHER_ENTRY_TONS_PER_YEAR="H2TRADER_ENTRY_CAPACITY_HYFEN_ANOTHER_ENTRY_TONS_PER_YEAR",r))(Uo||{});const ldt=new Map([["H2PRODUCEDPERHOUR",{labelId:"h2-dig.phases.producer",shortLabel:"h2-dig.phases.producerMini",className:"producer-phase",icon:Ti,unit:fr.MEGAWATTS}
766],["H2PRODUCED_TONS_PER_YEAR",{labelId:"h2-dig.phases.producerPerYear",shortLabel:"h2-dig.phases.producerPerYearMini",className:"producer-phase",icon:Ti,unit:fr.TONS}],["H2CONSUMEDPERHOUR",{labelId:"h2-dig.phases.consumer",shortLabel:"h2-dig.phases.consumerMini",className:"consumer-phase",icon:zf,unit:fr.MEGAWATTS}],["H2CONSUMED_TONS_PER_YEAR",{labelId:"h2-dig.phases.consumerPerYear",shortLabel:"h2-dig.phases.consumerPerYearMini",className:"consumer-phase",icon:zf,unit:fr.TONS}],["H2_TRADER_TONS_PER_YEAR",{labelId:"h2-dig.phases.trader",shortLabel:"h2-dig.phases.traderMini",className:"ccus-phase",icon:$i,unit:fr.TONS}],["H2_STORAGE",{labelId:"h2-dig.phases.storage",shortLabel:"h2-dig.phases.storageMini",className:"ccus-phase",icon:LEe,unit:fr.TONS}],["CCUS",{labelId:"h2-dig.phases.ccus",className:"ccus-phase",icon:MEe,unit:fr.TONS}],["GAS_POWER_PLANT_MW",{labelId:"h2-dig.phases.gasPowerPlantMW",shortLabel:"h2-dig.phases.gasPowerPlantMWMini",className:"ccus-phase",icon:DEe,unit:fr.MEGAWATTS}],["H2_TANKSTELLE_350_BAR",{labelId:"h2-dig.phases.H2Tankstelle350Bar",className:"other-phase",icon:EB}],["H2_TANKSTELLE_700_BAR",{labelId:"h2-dig.phases.H2Tankstelle700Bar",className:"other-phase",icon:EB}],["OTHER",{labelId:"h2-dig.phases.other",className:"other-phase",icon:HEe}]]),KQ=new Map([["MIN_POTENTIAL_TW_PER_HOUR",{labelId:"h2-dig.phases.minPotentialTWPerHour",shortLabel:"h2-dig.phases.minPotentialTWPerHourMini",className:"consumer-phase",icon:zf,unit:fr.TERAWATTHOUR}],["MIN_POTENTIAL_TONS_PER_YEAR",{labelId:"h2-dig.phases.minPotentialTonsPerYear",shortLabel:"h2-dig.phases.minPotentialTonsPerYearMini",className:"consumer-phase",icon:zf,unit:fr.TONS}],["MAX_POTENTIAL_TW_PER_HOUR",{labelId:"h2-dig.phases.maxPotentialTWPerHour",shortLabel:"h2-dig.phases.maxPotentialTWPerHourMini",className:"consumer-phase",icon:zf,unit:fr.TERAWATTHOUR}],["MAX_POTENTIAL_TONS_PER_YEAR",{labelId:"h2-dig.phases.maxPotentialTonsPerYear",shortLabel:"h2-dig.phases.maxPotentialTonsPerYearMini",className:"consumer-phase",icon:zf,unit:fr.TONS}]]),cdt=new Map([["H2CONSUMED_GRID_OFFTAKE_CAPACITY_MW_PER_HOUR",{labelId:"h2-dig.phases.gridOfftakeCapacity",shortLabel:"h2-dig.phases.gridOfftakeCapacityMini",className:"consumer-phase",icon:zf,unit:fr.TONS,group:"Consumer"}],["H2CONSUMED_GRID_OFFTAKE_CAPACITY_TONS_PER_YEAR",{labelId:"h2-dig.phases.gridOfftakeCapacityPerYear",shortLabel:"h2-dig.phases.gridOfftakeCapacityPerYearMini",className:"consumer-phase",icon:zf,unit:fr.TONS,group:"Consumer"}],["H2CONSUMED_TRANSPORTATION_CAPACITY_H2MED_CORRIDOR_MW_PER_HOUR",{labelId:"h2-dig.phases.transportationCapacityH2MedCorridor",shortLabel:"h2-dig.phases.transportationCapacityH2MedCorridorMini",className:"consumer-phase",icon:zf,unit:fr.TONS,group:"Consumer"}],["H2CONSUMED_TRANSPORTATION_CAPACITY_H2MED_CORRIDOR_TONS_PER_YEAR",{labelId:"h2-dig.phases.transportationCapacityH2MedCorridorPerYear",shortLabel:"h2-dig.phases.transportationCapacityH2MedCorridorPerYearMini",className:"consumer-phase",icon:zf,unit:fr.TONS,group:"Consumer"}],["H2CONSUMED_CALL_FOR_INTEREST_PEAK_TONS_PER_HOUR",{labelId:"h2-dig.phases.callForInterestConsumption",shortLabel:"h2-dig.phases.callForInterestConsumptionMini",className:"consumer-phase",icon:zf,unit:fr.TONS,group:"Consumer"}],["H2CONSUMED_CALL_FOR_INTEREST_ANNUAL_TONS_PER_YEAR",{labelId:"h2-dig.phases.callForInterestConsumptionPerYear",shortLabel:"h2-dig.phases.callForInterestConsumptionPerYearMini",className:"consumer-phase",icon:zf,unit:fr.TONS,group:"Consumer"}],["H2PRODUCED_TRANSPORTATION_CAPACITY_CELZA_MW_PER_HOUR",{labelId:"h2-dig.phases.transportationCapacityCelza",shortLabel:"h2-dig.phases.transportationCapacityCelzaMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_TRANSPORTATION_CAPACITY_CELZA_TONS_PER_YEAR",{labelId:"h2-dig.phases.transportationCapacityCelzaPerYear",shortLabel:"h2-dig.phases.transportationCapacityCelzaPerYearMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_EXIT_SPAIN_MW_PER_HOUR",{labelId:"h2-dig.phases.exitSpain",shortLabel:"h2-dig.phases.exitSpainMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_EXIT_SPAIN_TONS_PER_YEAR",{labelId:"h2-dig.phases.exitSpainPerYear",shortLabel:"h2-dig.phases.exitSpainPerYearMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_TRANSPORTATION_CAPACITY_BARMAR_MW_PER_HOUR",{labelId:"h2-dig.phases.transportationCapacityBarmar",shortLabel:"h2-dig.phases.transportationCapacityBarmarMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_TRANSPORTATION_CAPACITY_BARMAR_TONS_PER_YEAR",{labelId:"h2-dig.phases.transportationCapacityBarmarPerYear",shortLabel:"h2-dig.phases.transportationCapacityBarmarPerYearMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_EXIT_FRANCE_MW_PER_HOUR",{labelId:"h2-dig.phases.exitFrance",shortLabel:"h2-dig.phases.exitFranceMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_EXIT_FRANCE_TONS_PER_YEAR",{labelId:"h2-dig.phases.exitFrancePerYear",shortLabel:"h2-dig.phases.exitFrancePerYearMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_TRANSPORTATION_CAPACITY_FRANCE_GERMANY_MW_PER_HOUR",{labelId:"h2-dig.phases.transportationCapacityFranceGermany",shortLabel:"h2-dig.phases.transportationCapacityFranceGermanyMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_TRANSPORTATION_CAPACITY_FRANCE_GERMANY_TONS_PER_YEAR",{labelId:"h2-dig.phases.transportationCapacityFranceGermanyPerYear",shortLabel:"h2-dig.phases.transportationCapacityFranceGermanyPerYearMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_EXIT_HYFEN_HYINFRA_MED_MW_PER_HOUR",{labelId:"h2-dig.phases.exitHyfenHyinfraMed",shortLabel:"h2-dig.phases.exitHyfenHyinfraMedMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}
766],["H2PRODUCED_EXIT_HYFEN_HYINFRA_MED_TONS_PER_YEAR",{labelId:"h2-dig.phases.exitHyfenHyinfraMedPerYear",shortLabel:"h2-dig.phases.exitHyfenHyinfraMedPerYearMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_EXIT_HYFEN_MIDHY_HYSOW_MW_PER_HOUR",{labelId:"h2-dig.phases.exitHyfenMidhyHysow",shortLabel:"h2-dig.phases.exitHyfenMidhyHysowMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_EXIT_HYFEN_MIDHY_HYSOW_TONS_PER_YEAR",{labelId:"h2-dig.phases.exitHyfenMidhyHysowPerYear",shortLabel:"h2-dig.phases.exitHyfenMidhyHysowPerYearMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_EXIT_HYFEN_CHEMICAL_VALLEY_LYON_MW_PER_HOUR",{labelId:"h2-dig.phases.exitHyfenChemicalValleyLyon",shortLabel:"h2-dig.phases.exitHyfenChemicalValleyLyonMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_EXIT_HYFEN_CHEMICAL_VALLEY_LYON_TONS_PER_YEAR",{labelId:"h2-dig.phases.exitHyfenChemicalValleyLyonPerYear",shortLabel:"h2-dig.phases.exitHyfenChemicalValleyLyonPerYearMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_EXIT_HYFEN_MOSAHYC_MW_PER_HOUR",{labelId:"h2-dig.phases.exitHyfenMosahyc",shortLabel:"h2-dig.phases.exitHyfenMosahycMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_EXIT_HYFEN_MOSAHYC_TONS_PER_YEAR",{labelId:"h2-dig.phases.exitHyfenMosahycPerYear",shortLabel:"h2-dig.phases.exitHyfenMosahycPerYearMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_EXIT_HYFEN_HY4LINK_MW_PER_HOUR",{labelId:"h2-dig.phases.exitHyfenHy4link",shortLabel:"h2-dig.phases.exitHyfenHy4linkMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_EXIT_HYFEN_HY4LINK_TONS_PER_YEAR",{labelId:"h2-dig.phases.exitHyfenHy4linkPerYear",shortLabel:"h2-dig.phases.exitHyfenHy4linkPerYearMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_EXIT_HYFEN_RHYN_MW_PER_HOUR",{labelId:"h2-dig.phases.exitHyfenRhyn",shortLabel:"h2-dig.phases.exitHyfenRhynMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_EXIT_HYFEN_RHYN_TONS_PER_YEAR",{labelId:"h2-dig.phases.exitHyfenRhynPerYear",shortLabel:"h2-dig.phases.exitHyfenRhynPerYearMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_EXIT_HYFEN_OTHER_MW_PER_HOUR",{labelId:"h2-dig.phases.exitHyfenOther",shortLabel:"h2-dig.phases.exitHyfenOtherMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_EXIT_HYFEN_OTHER_TONS_PER_YEAR",{labelId:"h2-dig.phases.exitHyfenOtherPerYear",shortLabel:"h2-dig.phases.exitHyfenOtherPerYearMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_ENTRY_HYFEN_HYINFRA_MED_MW_PER_HOUR",{labelId:"h2-dig.phases.entryHyfenHyinfraMed",shortLabel:"h2-dig.phases.entryHyfenHyinfraMedMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_ENTRY_HYFEN_HYINFRA_MED_TONS_PER_YEAR",{labelId:"h2-dig.phases.entryHyfenHyinfraMedPerYear",shortLabel:"h2-dig.phases.entryHyfenHyinfraMedPerYearMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_ENTRY_HYFEN_MIDHY_HYSOW_MW_PER_HOUR",{labelId:"h2-dig.phases.entryHyfenMidhyHysow",shortLabel:"h2-dig.phases.entryHyfenMidhyHysowMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_ENTRY_HYFEN_MIDHY_HYSOW_TONS_PER_YEAR",{labelId:"h2-dig.phases.entryHyfenMidhyHysowPerYear",shortLabel:"h2-dig.phases.entryHyfenMidhyHysowPerYearMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_ENTRY_HYFEN_CHEMICAL_VALLEY_LYON_MW_PER_HOUR",{labelId:"h2-dig.phases.entryHyfenChemicalValleyLyon",shortLabel:"h2-dig.phases.entryHyfenChemicalValleyLyonMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_ENTRY_HYFEN_CHEMICAL_VALLEY_LYON_TONS_PER_YEAR",{labelId:"h2-dig.phases.entryHyfenChemicalValleyLyonPerYear",shortLabel:"h2-dig.phases.entryHyfenChemicalValleyLyonPerYearMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_ENTRY_HYFEN_MOSAHYC_MW_PER_HOUR",{labelId:"h2-dig.phases.entryHyfenMosahyc",shortLabel:"h2-dig.phases.entryHyfenMosahycMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}
766],["H2PRODUCED_ENTRY_HYFEN_MOSAHYC_TONS_PER_YEAR",{labelId:"h2-dig.phases.entryHyfenMosahycPerYear",shortLabel:"h2-dig.phases.entryHyfenMosahycPerYearMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_ENTRY_HYFEN_HY4LINK_MW_PER_HOUR",{labelId:"h2-dig.phases.entryHyfenHy4link",shortLabel:"h2-dig.phases.entryHyfenHy4linkMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_ENTRY_HYFEN_HY4LINK_TONS_PER_YEAR",{labelId:"h2-dig.phases.entryHyfenHy4linkPerYear",shortLabel:"h2-dig.phases.entryHyfenHy4linkPerYearMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_ENTRY_HYFEN_RHYN_MW_PER_HOUR",{labelId:"h2-dig.phases.entryHyfenRhyn",shortLabel:"h2-dig.phases.entryHyfenRhynMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_ENTRY_HYFEN_RHYN_TONS_PER_YEAR",{labelId:"h2-dig.phases.entryHyfenRhynPerYear",shortLabel:"h2-dig.phases.entryHyfenRhynPerYearMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_ENTRY_HYFEN_OTHER_MW_PER_HOUR",{labelId:"h2-dig.phases.entryHyfenOther",shortLabel:"h2-dig.phases.entryHyfenOtherMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_ENTRY_HYFEN_OTHER_TONS_PER_YEAR",{labelId:"h2-dig.phases.entryHyfenOtherPerYear",shortLabel:"h2-dig.phases.entryHyfenOtherPerYearMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_CALL_FOR_INTEREST_PEAK_TONS_PER_HOUR",{labelId:"h2-dig.phases.callForInterestProduction",shortLabel:"h2-dig.phases.callForInterestProductionMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2PRODUCED_CALL_FOR_INTEREST_ANNUAL_TONS_PER_YEAR",{labelId:"h2-dig.phases.callForInterestProductionPerYear",shortLabel:"h2-dig.phases.callForInterestProductionPerYearMini",className:"producer-phase",icon:Ti,unit:fr.TONS,group:"Producer"}],["H2TRADER_TRANSPORTATION_CAPACITY_CELZA_MW_PER_HOUR",{labelId:"h2-dig.phases.traderTransportationCapacityCelza",shortLabel:"h2-dig.phases.traderTransportationCapacityCelzaMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_TRANSPORTATION_CAPACITY_CELZA_TONS_PER_YEAR",{labelId:"h2-dig.phases.traderTransportationCapacityCelzaPerYear",shortLabel:"h2-dig.phases.traderTransportationCapacityCelzaPerYearMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_EXIT_SPAIN_MW_PER_HOUR",{labelId:"h2-dig.phases.traderExitSpain",shortLabel:"h2-dig.phases.traderExitSpainMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_EXIT_SPAIN_TONS_PER_YEAR",{labelId:"h2-dig.phases.traderExitSpainPerYear",shortLabel:"h2-dig.phases.traderExitSpainPerYearMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_TRANSPORTATION_CAPACITY_BARMAR_MW_PER_HOUR",{labelId:"h2-dig.phases.traderTransportationCapacityBarmar",shortLabel:"h2-dig.phases.traderTransportationCapacityBarmarMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_TRANSPORTATION_CAPACITY_BARMAR_TONS_PER_YEAR",{labelId:"h2-dig.phases.traderTransportationCapacityBarmarPerYear",shortLabel:"h2-dig.phases.traderTransportationCapacityBarmarPerYearMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_EXIT_FRANCE_HYNFRAMED_MW_PER_HOUR",{labelId:"h2-dig.phases.traderExitFranceHynframed",shortLabel:"h2-dig.phases.traderExitFranceHynframedMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_EXIT_FRANCE_HYNFRAMED_TONS_PER_YEAR",{labelId:"h2-dig.phases.traderExitFranceHynframedPerYear",shortLabel:"h2-dig.phases.traderExitFranceHynframedPerYearMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_EXIT_FRANCE_CHEMICAL_VALLEY_LYON_MW_PER_HOUR",{labelId:"h2-dig.phases.traderExitFranceChemicalValleyLyon",shortLabel:"h2-dig.phases.traderExitFranceChemicalValleyLyonMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_EXIT_FRANCE_CHEMICAL_VALLEY_LYON_TONS_PER_YEAR",{labelId:"h2-dig.phases.traderExitFranceChemicalValleyLyonPerYear",shortLabel:"h2-dig.phases.traderExitFranceChemicalValleyLyonPerYearMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_EXIT_FRANCE_MOSAHYC_MW_PER_HOUR",{labelId:"h2-dig.phases.traderExitFranceMosahyc",shortLabel:"h2-dig.phases.traderExitFranceMosahycMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}
766],["H2TRADER_EXIT_FRANCE_MOSAHYC_TONS_PER_YEAR",{labelId:"h2-dig.phases.traderExitFranceMosahycPerYear",shortLabel:"h2-dig.phases.traderExitFranceMosahycPerYearMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_EXIT_FRANCE_HY4LINK_MW_PER_HOUR",{labelId:"h2-dig.phases.traderExitFranceHy4link",shortLabel:"h2-dig.phases.traderExitFranceHy4linkMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_EXIT_FRANCE_HY4LINK_TONS_PER_YEAR",{labelId:"h2-dig.phases.traderExitFranceHy4linkPerYear",shortLabel:"h2-dig.phases.traderExitFranceHy4linkPerYearMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_EXIT_FRANCE_RHYN_MW_PER_HOUR",{labelId:"h2-dig.phases.traderExitFranceRhyn",shortLabel:"h2-dig.phases.traderExitFranceRhynMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_EXIT_FRANCE_RHYN_TONS_PER_YEAR",{labelId:"h2-dig.phases.traderExitFranceRhynPerYear",shortLabel:"h2-dig.phases.traderExitFranceRhynPerYearMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_ENTRY_FRANCE_HYNFRAMED_MW_PER_HOUR",{labelId:"h2-dig.phases.traderEntryFranceHynframed",shortLabel:"h2-dig.phases.traderEntryFranceHynframedMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_ENTRY_FRANCE_HYNFRAMED_TONS_PER_YEAR",{labelId:"h2-dig.phases.traderEntryFranceHynframedPerYear",shortLabel:"h2-dig.phases.traderEntryFranceHynframedPerYearMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_ENTRY_FRANCE_CHEMICAL_VALLEY_LYON_MW_PER_HOUR",{labelId:"h2-dig.phases.traderEntryFranceChemicalValleyLyon",shortLabel:"h2-dig.phases.traderEntryFranceChemicalValleyLyonMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_ENTRY_FRANCE_CHEMICAL_VALLEY_LYON_TONS_PER_YEAR",{labelId:"h2-dig.phases.traderEntryFranceChemicalValleyLyonPerYear",shortLabel:"h2-dig.phases.traderEntryFranceChemicalValleyLyonPerYearMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_ENTRY_FRANCE_MOSAHYC_MW_PER_HOUR",{labelId:"h2-dig.phases.traderEntryFranceMosahyc",shortLabel:"h2-dig.phases.traderEntryFranceMosahycMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_ENTRY_FRANCE_MOSAHYC_TONS_PER_YEAR",{labelId:"h2-dig.phases.traderEntryFranceMosahycPerYear",shortLabel:"h2-dig.phases.traderEntryFranceMosahycPerYearMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_ENTRY_FRANCE_HY4LINK_MW_PER_HOUR",{labelId:"h2-dig.phases.traderEntryFranceHy4link",shortLabel:"h2-dig.phases.traderEntryFranceHy4linkMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_ENTRY_FRANCE_HY4LINK_TONS_PER_YEAR",{labelId:"h2-dig.phases.traderEntryFranceHy4linkPerYear",shortLabel:"h2-dig.phases.traderEntryFranceHy4linkPerYearMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_ENTRY_FRANCE_RHYN_MW_PER_HOUR",{labelId:"h2-dig.phases.traderEntryFranceRhyn",shortLabel:"h2-dig.phases.traderEntryFranceRhynMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_ENTRY_FRANCE_RHYN_TONS_PER_YEAR",{labelId:"h2-dig.phases.traderEntryFranceRhynPerYear",shortLabel:"h2-dig.phases.traderEntryFranceRhynPerYearMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_TRANSPORTATION_CAPACITY_FRANCE_GERMANY_MW_PER_HOUR",{labelId:"h2-dig.phases.traderTransportationCapacityFranceGermany",shortLabel:"h2-dig.phases.traderTransportationCapacityFranceGermanyMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_TRANSPORTATION_CAPACITY_FRANCE_GERMANY_TONS_PER_YEAR",{labelId:"h2-dig.phases.traderTransportationCapacityFranceGermanyPerYear",shortLabel:"h2-dig.phases.traderTransportationCapacityFranceGermanyPerYearMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_EXIT_CAPACITY_HYFEN_NATIONAL_FRANCE_TONS_PER_HOUR",{labelId:"h2-dig.phases.traderExitFranceNational",shortLabel:"h2-dig.phases.traderExitFranceNationalMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_EXIT_CAPACITY_HYFEN_NATIONAL_FRANCE_TONS_PER_YEAR",{labelId:"h2-dig.phases.traderExitFranceNationalPerYear",shortLabel:"h2-dig.phases.traderExitFranceNationalPerYearMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_EXIT_CAPACITY_HYFEN_MIDHY_HYSOW_TONS_PER_HOUR",{labelId:"h2-dig.phases.traderExitFranceMidHyHYSOW",shortLabel:"h2-dig.phases.traderExitFranceMidHyHYSOWMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_EXIT_CAPACITY_HYFEN_MIDHY_HYSOW_TONS_PER_YEAR",{labelId:"h2-dig.phases.traderExitFranceMidHyHYSOWPerYear",shortLabel:"h2-dig.phases.traderExitFranceMidHyHYSOWPerYearMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_ENTRY_CAPACITY_HYFEN_ANOTHER_EXIT_TONS_PER_HOUR",{labelId:"h2-dig.phases.traderExitFranceAnother",shortLabel:"h2-dig.phases.traderExitFranceAnotherMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_ENTRY_CAPACITY_HYFEN_ANOTHER_EXIT_TONS_PER_YEAR",{labelId:"h2-dig.phases.traderExitFranceAnotherPerYear",shortLabel:"h2-dig.phases.traderExitFranceAnotherPerYearMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_ENTRY_CAPACITY_NATIONAL_FRANCE_HYFEN_TONS_PER_HOUR",{labelId:"h2-dig.phases.traderEntryFranceNational",shortLabel:"h2-dig.phases.traderEntryFranceNationalMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_ENTRY_CAPACITY_NATIONAL_FRANCE_HYFEN_TONS_PER_YEAR",{labelId:"h2-dig.phases.traderEntryFranceNationalPerYear",shortLabel:"h2-dig.phases.traderEntryFranceNationalPerYearMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_ENTRY_CAPACITY_HYFEN_MIDHY_HYSOW_TONS_PER_HOUR",{labelId:"h2-dig.phases.traderEntryFranceMidHyHYSOW",shortLabel:"h2-dig.phases.traderEntryFranceMidHyHYSOWMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_ENTRY_CAPACITY_HYFEN_MIDHY_HYSOW_TONS_PER_YEAR",{labelId:"h2-dig.phases.traderEntryFranceMidHyHYSOWPerYear",shortLabel:"h2-dig.phases.traderEntryFranceMidHyHYSOWPerYearMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_ENTRY_CAPACITY_HYFEN_ANOTHER_ENTRY_TONS_PER_HOUR",{labelId:"h2-dig.phases.traderEntryFranceAnother",shortLabel:"h2-dig.phases.traderEntryFranceAnotherMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}],["H2TRADER_ENTRY_CAPACITY_HYFEN_ANOTHER_ENTRY_TONS_PER_YEAR",{labelId:"h2-dig.phases.traderEntryFranceAnotherPerYear",shortLabel:"h2-dig.phases.traderEntryFranceAnotherPerYearMini",className:"trader-phase",icon:$i,unit:fr.TONS,group:"Trader"}]]),E2t=new Map([...ldt,...cdt,...KQ]),C2t={saveAsDraft:{icon:$.jsx(kut,{}),name:"h2-dig.edit-staging.saveAsDraft",title:"h2-dig.edit-staging.saveAsDraftTooltip"},saveAsPublic:{icon:$.jsx(PEe,{}),name:"h2-dig.edit-staging.saveAsPublic",title:"h2-dig.edit-staging.saveAsPublicTooltip"},saveAsHidden:{icon:$.jsx(kEe,{}),name:"h2-dig.edit-staging.saveAsHidden",title:"h2-dig.edit-staging.saveAsHiddenTooltip"},createDuplicateDraft:{icon:$.jsx(Tut,{}),name:"h2-dig.edit-staging.createDuplicateDraft",title:"h2-dig.edit-staging.createDuplicateDraftTooltip"},saveChanges:{icon:$.jsx(Lut,{}),name:"h2-dig.edit-staging.saveChanges",title:"h2-dig.edit-staging.saveChangesTooltip"},unlinkChild:{icon:$.jsx(Put,{}),name:"h2-dig.edit-staging.unlinkChild",title:"h2-dig.edit-staging.unlinkChildTooltip"}},$Ee={saveAsDraft:!1,saveAsPublic:!1,saveAsHidden:!1,createDuplicateDraft:!1,unlinkChild:!1,saveChanges:!1},x2t={...$Ee,unlinkChild:!0,saveChanges:!0}
766,T2t=["H2PRODUCEDPERHOUR","H2PRODUCED_TONS_PER_YEAR","H2CONSUMEDPERHOUR","H2CONSUMED_TONS_PER_YEAR","H2_TRADER_TONS_PER_YEAR","H2_STORAGE","CCUS","GAS_POWER_PLANT_MW","H2_TANKSTELLE_350_BAR","H2_TANKSTELLE_700_BAR","OTHER"];var udt=(r=>(r.PRODUCER="Producer",r.CONSUMER="Consumer",r.TRADER="Trader",r.STORAGE="Storage",r))(udt||{});const S2t=new Map([["Producer",{label:"h2-dig.project-type.producer",icon:FEe,id:"producer"}],["Consumer",{label:"h2-dig.project-type.consumer",icon:NEe,id:"consumer"}],["Trader",{label:"h2-dig.project-type.trader",icon:UEe,id:"trader"}],["Storage",{label:"h2-dig.project-type.storage",icon:BEe,id:"storage"}]]);var ddt=(r=>(r.startDate="startDate",r.type="type",r))(ddt||{});const H6={H2MED:Bo.H2MED,HYPORTAL:Bo.HYPORTAL,INNOVATION_AGENTUR_RLP:p_.INNOVATION_AGENTUR_RLP_SOURCE,DEFAULT:"default"},I2t=new Map([[H6.H2MED,{source:Bo.H2MED,titleKey:"partnerJoin.titleH2Med",subtitleKey:"partnerJoin.subheadingH2med"}],[H6.HYPORTAL,{source:Bo.HYPORTAL,titleKey:"partnerJoin.titleHyportal",subtitleKey:"partnerJoin.subheadingHyportal"}],[H6.INNOVATION_AGENTUR_RLP,{source:p_.INNOVATION_AGENTUR_RLP_SOURCE,titleKey:"partnerJoin.title",subtitleKey:"partnerJoin.subheadingInnovationsAgenturRLP"}],[H6.DEFAULT,{source:Bo.H2MED,titleKey:"partnerJoin.titleH2Digital",subtitleKey:"partnerJoin.subheading"}]]),zEe=["createdAt","deletedAt","updatedAt","id","locationId","isActive"],hdt=[...zEe,"status"],fdt=[...zEe,"H2DigitalType","requestType"],pdt=["createdAt","updatedAt","deletedAt","id"],jEe=["createdAt","updatedAt","deletedAt","locationId"],gdt=[...jEe,"id","phaseId"];var mdt=(r=>(r.LOCATION_STAGING_ONLY="locationStagingOnly",r.LOCATION_ONLY="locationOnly",r.COMPARISON_VIEW="comparisonView",r))(mdt||{}),rE=(r=>(r.CREATE="create",r.UPDATE="update",r))(rE||{}),ydt=(r=>(r.CHANGE_REQUEST="change-request",r.COMBINE="combine",r.HANDLE_PARENT_CHILD="handle-parent-child",r))(ydt||{});const A2t=r=>r==="OTHER"||r==="H2_TANKSTELLE_350_BAR"||r==="H2_TANKSTELLE_700_BAR";var VEe=(r=>(r.ENERGY_PLANNER_FULL_ACCESS="energy_planner_full_access",r))(VEe||{});function vdt(r){return Object.keys(r).length===0}function x9(r=null){const e=V.useContext(WE);return!e||vdt(e)?r:e}const _dt=BL();function T9(r=_dt){return x9(r)}function b3(r){const e=bB(r);return r!==e&&e.styles?(e.styles.match(/^@layer\s+[^{]*$/)||(e.styles=`@layer global{${e.styles}}`),e):r}function qEe({styles:r,themeId:e,defaultTheme:t={}}){const n=T9(t),i=e&&n[e]||n;let o=typeof r=="function"?r(i):r;return i.modularCssLayers&&(Array.isArray(o)?o=o.map(a=>b3(typeof a=="function"?a(i):a)):o=b3(o)),$.jsx(wEe,{styles:o})}const bdt=["className","component"];function wdt(r={}){const{themeId:e,defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:i}=r,o=zQ("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Dk);return V.forwardRef(function(u,h){const p=T9(t),m=$L(u),{className:_,component:C="div"}=m,T=Gt(m,bdt);return $.jsx(o,ce({as:C,ref:h,className:mr(_,i?i(n):n),theme:e&&p[e]||p},T))})}const Edt=["ownerState"],Cdt=["variants"],xdt=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Tdt(r){return Object.keys(r).length===0}function Sdt(r){return typeof r=="string"&&r.charCodeAt(0)>96}function w3(r){return r!=="ownerState"&&r!=="theme"&&r!=="sx"&&r!=="as"}function kle(r,e){return e&&r&&typeof r=="object"&&r.styles&&!r.styles.startsWith("@layer")&&(r.styles=`@layer ${e}{${String(r.styles)}}`),r}const Idt=BL(),Adt=r=>r&&r.charAt(0).toLowerCase()+r.slice(1);function F6({defaultTheme:r,theme:e,themeId:t}){return Tdt(e)?r:e[t]||e}function Rdt(r){return r?(e,t)=>t[r]:null}function _F(r,e,t){let{ownerState:n}=e,i=Gt(e,Edt);const o=typeof r=="function"?r(ce({ownerState:n},i)):r;if(Array.isArray(o))return o.flatMap(a=>_F(a,ce({ownerState:n},i),t));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let u=Gt(o,Cdt);return a.forEach(h=>{let p=!0;if(typeof h.props=="function"?p=h.props(ce({ownerState:n},i,n)):Object.keys(h.props).forEach(m=>{(n==null?void 0:n[m])!==h.props[m]&&i[m]!==h.props[m]&&(p=!1)}),p){Array.isArray(u)||(u=[u]);const m=typeof h.style=="function"?h.style(ce({ownerState:n},i,n)):h.style;u.push(t?kle(bB(m),t):m)}}),u}return t?kle(bB(o),t):o}function Pdt(r={}){const{themeId:e,defaultTheme:t=Idt,rootShouldForwardProp:n=w3,slotShouldForwardProp:i=w3}=r,o=a=>Dk(ce({},a,{theme:F6(ce({},a,{defaultTheme:t,themeId:e}))}));return o.__mui_systemSx=!0,(a,l={})=>{EEe(a,L=>
766L.filter(B=>!(B!=null&&B.__mui_systemSx)));const{name:u,slot:h,skipVariantsResolver:p,skipSx:m,overridesResolver:_=Rdt(Adt(h))}=l,C=Gt(l,xdt),T=u&&u.startsWith("Mui")||h?"components":"custom",S=p!==void 0?p:h&&h!=="Root"&&h!=="root"||!1,R=m||!1;let O,N=w3;h==="Root"||h==="root"?N=n:h?N=i:Sdt(a)&&(N=void 0);const H=zQ(a,ce({shouldForwardProp:N,label:O},C)),F=L=>typeof L=="function"&&L.__emotion_real!==L||D1(L)?B=>{const Q=F6({theme:B.theme,defaultTheme:t,themeId:e});return _F(L,ce({},B,{theme:Q}),Q.modularCssLayers?T:void 0)}:L,j=(L,...B)=>{let Q=F(L);const Z=B?B.map(F):[];u&&_&&Z.push(ne=>{const ue=F6(ce({},ne,{defaultTheme:t,themeId:e}));if(!ue.components||!ue.components[u]||!ue.components[u].styleOverrides)return null;const K=ue.components[u].styleOverrides,se={};return Object.entries(K).forEach(([be,de])=>{se[be]=_F(de,ce({},ne,{theme:ue}),ue.modularCssLayers?"theme":void 0)}),_(ne,se)}),u&&!S&&Z.push(ne=>{var ue;const K=F6(ce({},ne,{defaultTheme:t,themeId:e})),se=K==null||(ue=K.components)==null||(ue=ue[u])==null?void 0:ue.variants;return _F({variants:se},ce({},ne,{theme:K}),K.modularCssLayers?"theme":void 0)}),R||Z.push(o);const ie=Z.length-B.length;if(Array.isArray(L)&&ie>0){const ne=new Array(ie).fill("");Q=[...L,...ne],Q.raw=[...L.raw,...ne]}const J=H(Q,...Z);return a.muiName&&(J.muiName=a.muiName),J};return H.withConfig&&(j.withConfig=H.withConfig),j}}const kdt=Pdt();function GEe(r){const{theme:e,name:t,props:n}=r;return!e||!e.components||!e.components[t]||!e.components[t].defaultProps?n:XP(e.components[t].defaultProps,n)}function YEe({props:r,name:e,defaultTheme:t,themeId:n}){let i=T9(t);return n&&(i=i[n]||i),GEe({theme:i,name:e,props:r})}function Odt(r,e,t,n,i){const[o,a]=V.useState(()=>i&&t?t(r).matches:n?n(r).matches:e);return nl(()=>{let l=!0;if(!t)return;const u=t(r),h=()=>{l&&a(u.matches)};return h(),u.addListener(h),()=>{l=!1,u.removeListener(h)}},[r,t]),o}const WEe=V.useSyncExternalStore;function Mdt(r,e,t,n,i){const o=V.useCallback(()=>e,[e]),a=V.useMemo(()=>{if(i&&t)return()=>t(r).matches;if(n!==null){const{matches:p}=n(r);return()=>p}return o},[o,r,n,i,t]),[l,u]=V.useMemo(()=>{if(t===null)return[o,()=>()=>{}];const p=t(r);return[()=>p.matches,m=>(p.addListener(m),()=>{p.removeListener(m)})]},[o,t,r]);return WEe(u,l,a)}function Ndt(r,e={}){const t=x9(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:l=!1}=GEe({name:"MuiUseMediaQuery",props:e,theme:t});let u=typeof r=="function"?r(t):r;return u=u.replace(/^@media( ?)/m,""),(WEe!==void 0?Mdt:Odt)(u,i,o,a,l)}function ZQ(r,e=0,t=1){return nEe(r,e,t)}function Ddt(r){r=r.slice(1);const e=new RegExp(`.{1,${r.length>=6?2:1}}`,"g");let t=r.match(e);return t&&t[0].length===1&&(t=t.map(n=>n+n)),t?`rgb${t.length===4?"a":""}(${t.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Ldt(r){const e=r.toString(16);return e.length===1?`0${e}`:e}function KE(r){if(r.type)return r;if(r.charAt(0)==="#")return KE(Ddt(r));const e=r.indexOf("("),t=r.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(t)===-1)throw new Error(wb(9,r));let n=r.substring(e+1,r.length-1),i;if(t==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(wb(10,i))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:t,values:n,colorSpace:i}}function S9(r){const{type:e,colorSpace:t}=r;let{values:n}=r;return e.indexOf("rgb")!==-1?n=n.map((i,o)=>o<3?parseInt(i,10):i):e.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.indexOf("color")!==-1?n=`${t} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function R2t(r){if(r.indexOf("#")===0)return r;const{values:e}=KE(r);return`#${e.map((t,n)=>Ldt(n===3?Math.round(255*t):t)).join("")}`}function Hdt(r){r=KE(r);const{values:e}=r,t=e[0],n=e[1]/100,i=e[2]/100,o=n*Math.min(i,1-i),a=(h,p=(h+t/30)%12)=>i-o*Math.max(Math.min(p-3,9-p,1),-1);let l="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return r.type==="hsla"&&(l+="a",u.push(e[3])),S9({type:l,values:u})}function QY(r){r=KE(r);let e=r.type==="hsl"||r.type==="hsla"?KE(Hdt(r)).values:r.values;return e=e.map(t=>(r.type!=="color"&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function P2t(r,e){const t=QY(r),n=QY(e);return(Math.max(t,n)+.05)/(Math.min(t,n)+.05)}function ES(r,e){return r=KE(r),e=ZQ(e),(r.type==="rgb"||r.type==="hsl")&&(r.type+="a"),r.type==="color"?r.values[3]=`/${e}`:r.values[3]=e,S9(r)}function Fdt(r,e){if(r=KE(r),e=ZQ(e),r.type.indexOf("hsl")!==-1)r.values[2]*=1-e;else if(r.type.indexOf("rgb")!==-1||r.type.indexOf("color")!==-1)for(let t=0;t<3;t+=1)r.values[t]*=1-e;return S9(r)}function Udt(r,e){if(r=KE(r),e=ZQ(e),r.type.indexOf("hsl")!==-1)r.values[2]+=(100-r.values[2])*e;else if(r.type.indexOf("rgb")!==-1)for(let t=0;t<3;t+=1)r.values[t]+=(255-r.values[t])*e;else if(r.type.indexOf("color")!==-1)for(let t=0;t<3;t+=1)r.values[t]+=(1-r.values[t])*e;return S9(r)}function k2t(r,e=.15){return QY(r)>.5?Fdt(r,e):Udt(r,e)}const KEe=V.createContext(null);function ZEe(){return V.useContext(KEe)}const Bdt=typeof Symbol=="function"&&Symbol.for,$dt=Bdt?Symbol.for("mui.nested"):"__THEME_NESTED__";function zdt(r,e){return typeof e=="function"?e(r):ce({},r,e)}
766function jdt(r){const{children:e,theme:t}=r,n=ZEe(),i=V.useMemo(()=>{const o=n===null?t:zdt(n,t);return o!=null&&(o[$dt]=n!==null),o},[t,n]);return $.jsx(KEe.Provider,{value:i,children:e})}const Vdt=["value"],XEe=V.createContext();function qdt(r){let{value:e}=r,t=Gt(r,Vdt);return $.jsx(XEe.Provider,ce({value:e??!0},t))}const XQ=()=>{const r=V.useContext(XEe);return r??!1};function Gdt(r){const e=x9(),t=Jm()||"",{modularCssLayers:n}=r;let i="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!n||e!==null?i="":typeof n=="string"?i=n.replace(/mui(?!\.)/g,i):i=`@layer ${i};`,nl(()=>{const o=document.querySelector("head");if(!o)return;const a=o.firstChild;if(i){var l;if(a&&(l=a.hasAttribute)!=null&&l.call(a,"data-mui-layer-order")&&a.getAttribute("data-mui-layer-order")===t)return;const h=document.createElement("style");h.setAttribute("data-mui-layer-order",t),h.textContent=i,o.prepend(h)}else{var u;(u=o.querySelector(`style[data-mui-layer-order="${t}"]`))==null||u.remove()}},[i,t]),i?$.jsx(qEe,{styles:i}):null}const Ole={};function Mle(r,e,t,n=!1){return V.useMemo(()=>{const i=r&&e[r]||e;if(typeof t=="function"){const o=t(i),a=r?ce({},e,{[r]:o}):o;return n?()=>a:a}return r?ce({},e,{[r]:t}):ce({},e,t)},[r,e,t,n])}function Ydt(r){const{children:e,theme:t,themeId:n}=r,i=x9(Ole),o=ZEe()||Ole,a=Mle(n,i,t),l=Mle(n,o,t,!0),u=a.direction==="rtl",h=Gdt(a);return $.jsx(jdt,{theme:l,children:$.jsx(WE.Provider,{value:a,children:$.jsx(qdt,{value:u,children:$.jsxs(Mst,{value:a==null?void 0:a.components,children:[h,e]})})})})}const Wdt=["component","direction","spacing","divider","children","className","useFlexGap"],Kdt=BL(),Zdt=kdt("div",{name:"MuiStack",slot:"Root",overridesResolver:(r,e)=>e.root});function Xdt(r){return YEe({props:r,name:"MuiStack",defaultTheme:Kdt})}function Qdt(r,e){const t=V.Children.toArray(r).filter(Boolean);return t.reduce((n,i,o)=>(n.push(i),o<t.length-1&&n.push(V.cloneElement(e,{key:`separator-${o}`})),n),[])}const Jdt=r=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[r],eht=({ownerState:r,theme:e})=>{let t=ce({display:"flex",flexDirection:"column"},ap({theme:e},GT({values:r.direction,breakpoints:e.breakpoints.values}),n=>({flexDirection:n})));if(r.spacing){const n=GQ(e),i=Object.keys(e.breakpoints.values).reduce((u,h)=>((typeof r.spacing=="object"&&r.spacing[h]!=null||typeof r.direction=="object"&&r.direction[h]!=null)&&(u[h]=!0),u),{}),o=GT({values:r.direction,base:i}),a=GT({values:r.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((u,h,p)=>{if(!o[u]){const _=h>0?o[p[h-1]]:"column";o[u]=_}}),t=qh(t,ap({theme:e},a,(u,h)=>r.useFlexGap?{gap:_S(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Jdt(h?o[h]:r.direction)}`]:_S(n,u)}}))}return t=Wlt(e.breakpoints,t),t};function tht(r={}){const{createStyledComponent:e=Zdt,useThemeProps:t=Xdt,componentName:n="MuiStack"}=r,i=()=>Ur({root:["root"]},u=>Mr(n,u),{}),o=e(eht);return V.forwardRef(function(u,h){const p=t(u),m=$L(p),{component:_="div",direction:C="column",spacing:T=0,divider:S,children:R,className:O,useFlexGap:N=!1}=m,H=Gt(m,Wdt),F={direction:C,spacing:T,useFlexGap:N},j=i();return $.jsx(o,ce({as:_,ownerState:F,ref:h,className:mr(j.root,O)},H,{children:S?Qdt(R,S):R}))})}function O2t(r){return String(parseFloat(r)).length===String(r).length}function QEe(r){return String(r).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Uw(r){return parseFloat(r)}function M2t(r){return(e,t)=>{const n=QEe(e);if(n===t)return e;let i=Uw(e);n!=="px"&&(n==="em"||n==="rem")&&(i=Uw(e)*Uw(r));let o=i;if(t!=="px")if(t==="em")o=i/Uw(r);else if(t==="rem")o=i/Uw(r);else return e;return parseFloat(o.toFixed(5))+t}}function N2t({size:r,grid:e}){const t=r-r%e,n=t+e;return r-t<n-r?t:n}function D2t({lineHeight:r,pixels:e,htmlFontSize:t}){return e/(r*t)}function L2t({cssProperty:r,min:e,max:t,unit:n="rem",breakpoints:i=[600,900,1200],transform:o=null}){const a={[r]:`${e}${n}`},l=(t-e)/i[i.length-1];return i.forEach(u=>{let h=e+l*u;o!==null&&(h=o(h)),a[`@media (min-width:${u}px)`]={[r]:`${Math.round(h*1e4)/1e4}${n}`}}),a}function pC(){const r=T9(C9);return r[wS]||r}function qs({props:r,name:e}){return YEe({props:r,name:e,defaultTheme:C9,themeId:wS})}const rht=["theme"];function JY(r){let{theme:e}=r,t=Gt(r,rht);const n=e[wS];let i=n||e;return typeof e!="function"&&(n&&!n.vars?i=ce({},n,{vars:null}):e&&!e.vars&&(i=ce({},e,{vars:null}))),$.jsx(Ydt,ce({},t,{themeId:n?wS:void 0,theme:i}))}const Nle=r=>{let e;return r<1?e=5.11916*r**2:e=4.5*Math.log(r+1)+2,(e/100).toFixed(2)};function QQ(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,qY(r,e)}function nht(r,e){return r.classList?!!e&&r.classList.contains(e):(" "+(r.className.baseVal||r.className)+" ").indexOf(" "+e+" ")!==-1}function iht(r,e){r.classList?r.classList.add(e):nht(r,e)||(typeof r.className=="string"?r.className=r.className+" "+e:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+e))}function Dle(r,e){return r.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function oht(r,e){r.classList?r.classList.remove(e):typeof r.className=="string"?r.className=Dle(r.className,e):r.setAttribute("class",Dle(r.className&&r.className.baseVal||"",e))}var JEe=UB();const U6=ao(JEe),Lle={disabled:!1},xB=as.createContext(null);var eCe=function(e){return e.scrollTop},AM="unmounted",Ox="exited",Mx="entering",LA="entered",eW="exiting",Pv=(function(r){QQ(e,r);function e(n,i){var o;o=r.call(this,n,i)||this;var a=i,l=a&&!a.isMounting?n.enter:n.appear,u;return o.appearStatus=null,n.in?l?(u=Ox,o.appearStatus=Mx):u=LA:n.unmountOnExit||n.mountOnEnter?u=AM:u=Ox,o.state={status:u},o.nextCallback=null,o}e.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===AM?{status:Ox}:null};var t=e.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Mx&&a!==LA&&(o=Mx):(a===Mx||a===LA)&&(o=eW)}this.updateStatus(!1,o)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var i=this.props.timeout,o,a,l;return o=a=l=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,l=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:l}},t.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Mx){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:U6.findDOMNode(this);a&&eCe(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ox&&this.setState({status:AM})},t.performEnter=function(i){var o=this,a=this.props.enter,l=this.context?this.context.
vendor: 4,170 bytes, line 766
766isMounting:i,u=this.props.nodeRef?[l]:[U6.findDOMNode(this),l],h=u[0],p=u[1],m=this.getTimeouts(),_=l?m.appear:m.enter;if(!i&&!a||Lle.disabled){this.safeSetState({status:LA},function(){o.props.onEntered(h)});return}this.props.onEnter(h,p),this.safeSetState({status:Mx},function(){o.props.onEntering(h,p),o.onTransitionEnd(_,function(){o.safeSetState({status:LA},function(){o.props.onEntered(h,p)})})})},t.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:U6.findDOMNode(this);if(!o||Lle.disabled){this.safeSetState({status:Ox},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:eW},function(){i.props.onExiting(l),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Ox},function(){i.props.onExited(l)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},t.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,o.nextCallback=null,i(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},t.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:U6.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],h=u[0],p=u[1];this.props.addEndListener(h,p)}i!=null&&setTimeout(this.nextCallback,i)},t.render=function(){var i=this.state.status;if(i===AM)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var l=Gt(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return as.createElement(xB.Provider,{value:null},typeof a=="function"?a(i,l):as.cloneElement(as.Children.only(a),l))},e})(as.Component);Pv.contextType=xB;Pv.propTypes={};function nA(){}Pv.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:nA,onEntering:nA,onEntered:nA,onExit:nA,onExiting:nA,onExited:nA};Pv.UNMOUNTED=AM;Pv.EXITED=Ox;Pv.ENTERING=Mx;Pv.ENTERED=LA;Pv.EXITING=eW;var aht=function(e,t){return e&&t&&t.split(" ").forEach(function(n){return iht(e,n)})},E3=function(e,t){return e&&t&&t.split(" ").forEach(function(n){return oht(e,n)})},JQ=(function(r){QQ(e,r);function e(){for(var n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r.call.apply(r,[this].concat(o))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(l,u){var h=n.resolveArguments(l,u),p=h[0],m=h[1];n.removeClasses(p,"exit"),n.addClass(p,m?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(l,u)},n.onEntering=function(l,u){var h=n.resolveArguments(l,u),p=h[0],m=h[1],_=m?"appear":"enter";n.addClass(p,_,"active"),n.props.onEntering&&n.props.onEntering(l,u)},n.onEntered=function(l,u){var h=n.resolveArguments(l,u),p=h[0],m=h[1],_=m?"appear":"enter";n.removeClasses(p,_),n.addClass(p,_,"done"),n.props.onEntered&&n.props.onEntered(l,u)},n.onExit=function(l){var u=n.resolveArguments(l),h=u[0];n.removeClasses(h,"appear"),n.removeClasses(h,"enter"),n.addClass(h,"exit","base"),n.props.onExit&&n.props.onExit(l)},n.onExiting=function(l){var u=n.resolveArguments(l),h=u[0];n.addClass(h,"exit","active"),n.props.onExiting&&n.props.onExiting(l)},n.onExited=function(l){var u=n.resolveArguments(l),h=u[0];n.removeClasses(h,"exit"),n.addClass(h,"exit","done"),n.props.onExited&&n.props.onExited(l)},n.resolveArguments=function(l,u){return n.props.nodeRef?[n.props.nodeRef.current,l]:[l,u]},n.getClassNames=function(l){var u=n.props.classNames,h=typeof u=="string",p=h&&u?u+"-":"",m=h?""+p+l:u[l],_=h?m+"-active":u[l+"Active"],C=h?m+"-done":u[l+"Done"];return{baseClassName:m,activeClassName:_,doneClassName:C}},n}var t=e.prototype;return t.addClass=function(i,o,a){var l=this.getClassNames(o)[a+"
766ClassName"],u=this.getClassNames("enter"),h=u.doneClassName;o==="appear"&&a==="done"&&h&&(l+=" "+h),a==="active"&&i&&eCe(i),l&&(this.appliedClasses[o][a]=l,aht(i,l))},t.removeClasses=function(i,o){var a=this.appliedClasses[o],l=a.base,u=a.active,h=a.done;this.appliedClasses[o]={},l&&E3(i,l),u&&E3(i,u),h&&E3(i,h)},t.render=function(){var i=this.props;i.classNames;var o=Gt(i,["classNames"]);return as.createElement(Pv,ce({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e})(as.Component);JQ.defaultProps={classNames:""};JQ.propTypes={};function eJ(r,e){var t=function(o){return e&&V.isValidElement(o)?e(o):o},n=Object.create(null);return r&&V.Children.map(r,function(i){return i}).forEach(function(i){n[i.key]=t(i)}),n}function sht(r,e){r=r||{},e=e||{};function t(p){return p in e?e[p]:r[p]}var n=Object.create(null),i=[];for(var o in r)o in e?i.length&&(n[o]=i,i=[]):i.push(o);var a,l={};for(var u in e){if(n[u])for(a=0;a<n[u].length;a++){var h=n[u][a];l[n[u][a]]=t(h)}l[u]=t(u)}for(a=0;a<i.length;a++)l[i[a]]=t(i[a]);return l}function hT(r,e,t){return t[e]!=null?t[e]:r.props[e]}function lht(r,e){return eJ(r.children,function(t){return V.cloneElement(t,{onExited:e.bind(null,t),in:!0,appear:hT(t,"appear",r),enter:hT(t,"enter",r),exit:hT(t,"exit",r)})})}function cht(r,e,t){var n=eJ(r.children),i=sht(e,n);
vendor: 4,428 bytes, line 766
766return Object.keys(i).forEach(function(o){var a=i[o];if(V.isValidElement(a)){var l=o in e,u=o in n,h=e[o],p=V.isValidElement(h)&&!h.props.in;u&&(!l||p)?i[o]=V.cloneElement(a,{onExited:t.bind(null,a),in:!0,exit:hT(a,"exit",r),enter:hT(a,"enter",r)}):!u&&l&&!p?i[o]=V.cloneElement(a,{in:!1}):u&&l&&V.isValidElement(h)&&(i[o]=V.cloneElement(a,{onExited:t.bind(null,a),in:h.props.in,exit:hT(a,"exit",r),enter:hT(a,"enter",r)}))}}),i}var uht=Object.values||function(r){return Object.keys(r).map(function(e){return r[e]})},dht={component:"div",childFactory:function(e){return e}},zL=(function(r){QQ(e,r);function e(n,i){var o;o=r.call(this,n,i)||this;var a=o.handleExited.bind(rst(o));return o.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},o}var t=e.prototype;return t.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},t.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(i,o){var a=o.children,l=o.handleExited,u=o.firstRender;return{children:u?lht(i,l):cht(i,a,l),firstRender:!1}},t.handleExited=function(i,o){var a=eJ(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(o),this.mounted&&this.setState(function(l){var u=ce({},l.children);return delete u[i.key],{children:u}}))},t.render=function(){var i=this.props,o=i.component,a=i.childFactory,l=Gt(i,["component","childFactory"]),u=this.state.contextValue,h=uht(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,o===null?as.createElement(xB.Provider,{value:u},h):as.createElement(xB.Provider,{value:u},as.createElement(o,l,h))},e})(as.Component);zL.propTypes={};zL.defaultProps=dht;const tCe=r=>r.scrollTop;function TB(r,e){var t,n;const{timeout:i,easing:o,style:a={}}=r;return{duration:(t=a.transitionDuration)!=null?t:typeof i=="number"?i:i[e.mode]||0,easing:(n=a.transitionTimingFunction)!=null?n:typeof o=="object"?o[e.mode]:o,delay:a.transitionDelay}}function hht(r){return Mr("MuiPaper",r)}const H2t=Br("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"]),fht=["className","component","elevation","square","variant"],pht=r=>{const{square:e,elevation:t,variant:n,classes:i}=r,o={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${t}`]};return Ur(o,hht,i)},ght=Nt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,e[t.variant],!t.square&&e.rounded,t.variant==="elevation"&&e[`elevation${t.elevation}`]]}})(({theme:r,ownerState:e})=>{var t;return ce({backgroundColor:(r.vars||r).palette.background.paper,color:(r.vars||r).palette.text.primary,transition:r.transitions.create("box-shadow")},!e.square&&{borderRadius:r.shape.borderRadius},e.variant==="outlined"&&{border:`1px solid ${(r.vars||r).palette.divider}`},e.variant==="elevation"&&ce({boxShadow:(r.vars||r).shadows[e.elevation]},!r.vars&&r.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Qn.alpha("#fff",Nle(e.elevation))}, ${Qn.alpha("#fff",Nle(e.elevation))})`},r.vars&&{backgroundImage:(t=r.vars.overlays)==null?void 0:t[e.elevation]}))}),gC=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:l=!1,variant:u="elevation"}=n,h=Gt(n,fht),p=ce({},n,{component:o,elevation:a,square:l,variant:u}),m=pht(p);return $.jsx(ght,ce({as:o,ownerState:p,className:mr(m.root,i),ref:t},h))}),mht=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],yht=["component","slots","slotProps"],vht=["component"];function tW(r,e){const{className:t,elementType:n,ownerState:i,externalForwardedProps:o,getSlotOwnerState:a,internalForwardedProps:l}=e,u=Gt(e,mht),{component:h,slots:p={[r]:void 0},slotProps:m={[r]:void 0}}=o,_=Gt(o,yht),C=p[r]||n,T=NQ(m[r],i),S=oEe(ce({className:t},u,{externalForwardedProps:r==="root"?_:void 0,externalSlotProps:T})),{props:{component:R},internalRef:O}=S,N=Gt(S.props,vht),H=wo(O,T==null?void 0:T.ref,e.ref),F=a?a(N):{},j=ce({},i,F),L=r==="root"?R||h:R,B=fR(C,ce({},r==="root"&&!h&&!p[r]&&l,r!=="root"&&!p[r]&&l,N,L&&{as:L},{ref:H}),j);
766return Object.keys(F).forEach(Q=>{delete B[Q]}),[C,B]}function _ht(r){const{className:e,classes:t,pulsate:n=!1,rippleX:i,rippleY:o,rippleSize:a,in:l,onExited:u,timeout:h}=r,[p,m]=V.useState(!1),_=mr(e,t.ripple,t.rippleVisible,n&&t.ripplePulsate),C={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},T=mr(t.child,p&&t.childLeaving,n&&t.childPulsate);return!l&&!p&&m(!0),V.useEffect(()=>{if(!l&&u!=null){const S=setTimeout(u,h);return()=>{clearTimeout(S)}}},[u,l,h]),$.jsx("span",{className:_,style:C,children:$.jsx("span",{className:T})})}function F2t(r){return Mr("MuiTouchRipple",r)}const vm=Br("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),bht=["center","classes","className"];let I9=r=>r,Hle,Fle,Ule,Ble;const rW=550,wht=80,Eht=Rv(Hle||(Hle=I9`
767  0% {
768    transform: scale(0);
769    opacity: 0.1;
770  }
771
772  100% {
773    transform: scale(1);
774    opacity: 0.3;
775  }
776`)),Cht=Rv(Fle||(Fle=I9`
777  0% {
778    opacity: 1;
779  }
780
781  100% {
782    opacity: 0;
783  }
784`)),xht=Rv(Ule||(Ule=I9`
785  0% {
786    transform: scale(1);
787  }
788
789  50% {
790    transform: scale(0.92);
791  }
792
793  100% {
794    transform: scale(1);
795  }
796`)),Tht=Nt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Sht=Nt(_ht,{name:"MuiTouchRipple",slot:"Ripple"})(Ble||(Ble=I9`
797  opacity: 0;
798  position: absolute;
799
800  &.${0} {
801    opacity: 0.3;
802    transform: scale(1);
803    animation-name: ${0};
804    animation-duration: ${0}ms;
805    animation-timing-function: ${0};
806  }
807
808  &.${0} {
809    animation-duration: ${0}ms;
810  }
811
812  & .${0} {
813    opacity: 1;
814    display: block;
815    width: 100%;
816    height: 100%;
817    border-radius: 50%;
818    background-color: currentColor;
819  }
820
821  & .${0} {
822    opacity: 0;
823    animation-name: ${0};
824    animation-duration: ${0}ms;
825    animation-timing-function: ${0};
826  }
827
828  & .${0} {
829    position: absolute;
830    /* @noflip */
831    left: 0px;
832    top: 0;
833    animation-name: ${0};
834    animation-duration: 2500ms;
835    animation-timing-function: ${0};
836    animation-iteration-count: infinite;
837    animation-delay: 200ms;
838  }
839`),vm.rippleVisible,Eht,rW,({theme:r})=>r.transitions.easing.easeInOut,vm.ripplePulsate,({theme:r})=>r.transitions.duration.shorter,vm.child,vm.childLeaving,Cht,rW,({theme:r})=>r.transitions.easing.easeInOut,vm.childPulsate,xht,({theme:r})=>r.transitions.easing.easeInOut),Iht=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=n,l=Gt(n,bht),[u,h]=V.useState([]),p=V.useRef(0),m=V.useRef(null);V.useEffect(()=>{m.current&&(m.current(),m.current=null)},[u]);const _=V.useRef(!1),C=dT(),T=V.useRef(null),S=V.useRef(null),R=V.useCallback(F=>{const{pulsate:j,rippleX:L,rippleY:B,rippleSize:Q,cb:Z}=F;h(ie=>[...ie,$.jsx(Sht,{classes:{ripple:mr(o.ripple,vm.ripple),rippleVisible:mr(o.rippleVisible,vm.rippleVisible),ripplePulsate:mr(o.ripplePulsate,vm.ripplePulsate),child:mr(o.child,vm.child),childLeaving:mr(o.childLeaving,vm.childLeaving),childPulsate:mr(o.childPulsate,vm.childPulsate)},timeout:rW,pulsate:j,rippleX:L,rippleY:B,rippleSize:Q},p.current)]),p.current+=1,m.current=Z},[o]),O=V.useCallback((F={},j={},L=()=>{})=>{const{pulsate:B=!1,center:Q=i||j.pulsate,fakeElement:Z=!1}=j;if((F==null?void 0:F.type)==="mousedown"&&_.current){_.current=!1;return}(F==null?void 0:F.type)==="touchstart"&&(_.current=!0);const ie=Z?null:S.current,J=ie?ie.getBoundingClientRect():{width:0,height:0,left:0,top:0};let ne,ue,K;if(Q||F===void 0||F.clientX===0&&F.clientY===0||!F.clientX&&!F.touches)ne=Math.round(J.width/2),ue=Math.round(J.height/2);else{const{clientX:se,clientY:be}=F.touches&&F.touches.length>0?F.touches[0]:F;ne=Math.round(se-J.left),ue=Math.round(be-J.top)}if(Q)K=Math.sqrt((2*J.width**2+J.height**2)/3),K%2===0&&(K+=1);else{const se=Math.max(Math.abs((ie?ie.clientWidth:0)-ne),ne)*2+2,be=Math.max(Math.abs((ie?ie.clientHeight:0)-ue),ue)*2+2;K=Math.sqrt(se**2+be**2)}F!=null&&F.touches?T.current===null&&(T.current=()=>{R({pulsate:B,rippleX:ne,rippleY:ue,rippleSize:K,cb:L})},C.start(wht,()=>{T.current&&(T.current(),T.current=null)})):R({pulsate:B,rippleX:ne,rippleY:ue,rippleSize:K,cb:L})},[i,R,C]),N=V.useCallback(()=>{O({},{pulsate:!0})},[O]),H=V.useCallback((F,j)=>{if(C.clear(),(F==null?void 0:F.type)==="touchend"&&T.current){T.current(),T.current=null,C.start(0,()=>
vendor: 7,201 bytes, line 839
839{H(F,j)});return}T.current=null,h(L=>L.length>0?L.slice(1):L),m.current=j},[C]);return V.useImperativeHandle(t,()=>({pulsate:N,start:O,stop:H}),[N,O,H]),$.jsx(Tht,ce({className:mr(vm.root,o.root,a),ref:S},l,{children:$.jsx(zL,{component:null,exit:!0,children:u})}))});function Aht(r){return Mr("MuiButtonBase",r)}const Rht=Br("MuiButtonBase",["root","disabled","focusVisible"]),Pht=["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"],kht=r=>{const{disabled:e,focusVisible:t,focusVisibleClassName:n,classes:i}=r,a=Ur({root:["root",e&&"disabled",t&&"focusVisible"]},Aht,i);return t&&n&&(a.root+=` ${n}`),a},Oht=Nt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(r,e)=>e.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"},[`&.${Rht.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Cb=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:l,component:u="button",disabled:h=!1,disableRipple:p=!1,disableTouchRipple:m=!1,focusRipple:_=!1,LinkComponent:C="a",onBlur:T,onClick:S,onContextMenu:R,onDragLeave:O,onFocus:N,onFocusVisible:H,onKeyDown:F,onKeyUp:j,onMouseDown:L,onMouseLeave:B,onMouseUp:Q,onTouchEnd:Z,onTouchMove:ie,onTouchStart:J,tabIndex:ne=0,TouchRippleProps:ue,touchRippleRef:K,type:se}=n,be=Gt(n,Pht),de=V.useRef(null),ge=V.useRef(null),Ue=wo(ge,K),{isFocusVisibleRef:Qe,onFocus:ve,onBlur:pe,ref:He}=OQ(),[Re,$e]=V.useState(!1);h&&Re&&$e(!1),V.useImperativeHandle(i,()=>({focusVisible:()=>{$e(!0),de.current.focus()}}),[]);const[tt,ot]=V.useState(!1);V.useEffect(()=>{ot(!0)},[]);const qe=tt&&!p&&!h;V.useEffect(()=>{Re&&_&&!p&&tt&&ge.current.pulsate()},[p,_,Re,tt]);function lt(W,Se,Ke=m){return Zr(je=>(Se&&Se(je),!Ke&&ge.current&&ge.current[W](je),!0))}const Et=lt("start",L),Oe=lt("stop",R),le=lt("stop",O),re=lt("stop",Q),te=lt("stop",W=>{Re&&W.preventDefault(),B&&B(W)}),me=lt("start",J),Ae=lt("stop",Z),_e=lt("stop",ie),Ve=lt("stop",W=>{pe(W),Qe.current===!1&&$e(!1),T&&T(W)},!1),it=Zr(W=>{de.current||(de.current=W.currentTarget),ve(W),Qe.current===!0&&($e(!0),H&&H(W)),N&&N(W)}),vt=()=>{const W=de.current;return u&&u!=="button"&&!(W.tagName==="A"&&W.href)},kt=V.useRef(!1),rt=Zr(W=>{_&&!kt.current&&Re&&ge.current&&W.key===" "&&(kt.current=!0,ge.current.stop(W,()=>{ge.current.start(W)})),W.target===W.currentTarget&&vt()&&W.key===" "&&W.preventDefault(),F&&F(W),W.target===W.currentTarget&&vt()&&W.key==="Enter"&&!h&&(W.preventDefault(),S&&S(W))}),bt=Zr(W=>{_&&W.key===" "&&ge.current&&Re&&!W.defaultPrevented&&(kt.current=!1,ge.current.stop(W,()=>{ge.current.pulsate(W)})),j&&j(W),S&&W.target===W.currentTarget&&vt()&&W.key===" "&&!W.defaultPrevented&&S(W)});let Xe=u;Xe==="button"&&(be.href||be.to)&&(Xe=C);const ct={};Xe==="button"?(ct.type=se===void 0?"button":se,ct.disabled=h):(!be.href&&!be.to&&(ct.role="button"),h&&(ct["aria-disabled"]=h));const Me=wo(t,He,de),X=ce({},n,{centerRipple:o,component:u,disabled:h,disableRipple:p,disableTouchRipple:m,focusRipple:_,tabIndex:ne,focusVisible:Re}),z=kht(X);return $.jsxs(Oht,ce({as:Xe,className:mr(z.root,l),ownerState:X,onBlur:Ve,onClick:S,onContextMenu:Oe,onFocus:it,onKeyDown:rt,onKeyUp:bt,onMouseDown:Et,onMouseLeave:te,onMouseUp:re,onDragLeave:le,onTouchEnd:Ae,onTouchMove:_e,onTouchStart:me,ref:Me,tabIndex:h?-1:ne,type:se},ct,be,{children:[a,qe?$.jsx(Iht,ce({ref:Ue,center:o},ue)):null]}))});function Mht(r){return Mr("MuiAlert",r)}const $le=Br("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function Nht(r){return Mr("MuiIconButton",r)}const Dht=Br("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Lht=["edge","children","className","color","disabled","disableFocusRipple","size"],Hht=r=>{const{classes:e,disabled:t,color:n,edge:i,size:o}=r,a={root:["root",t&&"disabled",n!=="default"&&`color${nr(n)}`,i&&`edge${nr(i)}`,`size${nr(o)}`]};return Ur(a,Nht,e)},Fht=Nt(Cb,{name:"MuiIconButton",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,t.color!=="default"&&e[`color${nr(t.color)}`],t.edge&&e[`edge${nr(t.edge)}`],e[`size${nr(t.size)}`]]}})(({theme:r,ownerState:e})=>ce({textAlign:"center",flex:"0 0 auto",fontSize:r.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(r.vars||r).palette.action.active,transition:r.transitions.create("background-color",{duration:r.transitions.duration.shortest})},!e.disableRipple&&{"&:hover":{backgroundColor:r.vars?`rgba(${r.vars.palette.action.activeChannel} / ${r.vars.palette.action.hoverOpacity})`:Qn.alpha(r.palette.action.active,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12}),({theme:r,ownerState:e})=>{var t;const n=(t=(r.vars||r).palette)==null?void 0:t[e.color];return ce({},e.color==="inherit"&&{color:"inherit"},e.color!=="inherit"&&e.color!=="default"&&ce({color:n==null?void 0:n.main},!e.disableRipple&&{"&:hover":ce({},n&&{backgroundColor:r.vars?`rgba(${n.mainChannel} / ${r.vars.palette.action.hoverOpacity})`:Qn.alpha(n.main,r.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),e.size==="small"&&{padding:5,fontSize:r.typography.pxToRem(18)},e.size==="large"&&{padding:12,fontSize:r.typography.pxToRem(28)},{[`&.${Dht.disabled}`]:{backgroundColor:"transparent",color:(r.vars||r).palette.action.disabled}})}),pv=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:l="default",disabled:u=!1,disableFocusRipple:h=!1,size:p="medium"}=n,m=Gt(n,Lht),_=ce({},n,{edge:i,color:l,disabled:u,disableFocusRipple:h,size:p}),C=Hht(_);return $.jsx(Fht,ce({className:mr(C.root,a),centerRipple:!0,focusRipple:!h,disabled:u,ref:t},m,{ownerState:_,children:o}))}),Uht=zo($.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}
839),"SuccessOutlined"),Bht=zo($.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),$ht=zo($.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.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"}),"ErrorOutline"),zht=zo($.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),jht=zo($.jsx("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"}),"Close"),Vht=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],qht=r=>{const{variant:e,color:t,severity:n,classes:i}=r,o={root:["root",`color${nr(t||n)}`,`${e}${nr(t||n)}`,`${e}`],icon:["icon"],message:["message"],action:["action"]};return Ur(o,Mht,i)},Ght=Nt(gC,{name:"MuiAlert",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,e[t.variant],e[`${t.variant}${nr(t.color||t.severity)}`]]}})(({theme:r})=>{const e=r.palette.mode==="light"?Qn.darken:Qn.lighten,t=r.palette.mode==="light"?Qn.lighten:Qn.darken;return ce({},r.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(r.palette).filter(([,n])=>n.main&&n.light).map(([n])=>({props:{colorSeverity:n,variant:"standard"},style:{color:r.vars?r.vars.palette.Alert[`${n}Color`]:e(r.palette[n].light,.6),backgroundColor:r.vars?r.vars.palette.Alert[`${n}StandardBg`]:t(r.palette[n].light,.9),[`& .${$le.icon}`]:r.vars?{color:r.vars.palette.Alert[`${n}IconColor`]}:{color:r.palette[n].main}}})),...Object.entries(r.palette).filter(([,n])=>n.main&&n.light).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:r.vars?r.vars.palette.Alert[`${n}Color`]:e(r.palette[n].light,.6),border:`1px solid ${(r.vars||r).palette[n].light}`,[`& .${$le.icon}`]:r.vars?{color:r.vars.palette.Alert[`${n}IconColor`]}:{color:r.palette[n].main}}})),...Object.entries(r.palette).filter(([,n])=>n.main&&n.dark).map(([n])=>({props:{colorSeverity:n,variant:"filled"},style:ce({fontWeight:r.typography.fontWeightMedium},r.vars?{color:r.vars.palette.Alert[`${n}FilledColor`],backgroundColor:r.vars.palette.Alert[`${n}FilledBg`]}:{backgroundColor:r.palette.mode==="dark"?r.palette[n].dark:r.palette[n].main,color:r.palette.getContrastText(r.palette[n].main)})}))]})}),Yht=Nt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(r,e)=>e.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Wht=Nt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(r,e)=>e.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),zle=Nt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(r,e)=>e.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),jle={success:$.jsx(Uht,{fontSize:"inherit"}),warning:$.jsx(Bht,{fontSize:"inherit"}),error:$.jsx($ht,{fontSize:"inherit"}),info:$.jsx(zht,{fontSize:"inherit"})},Kht=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiAlert"}),{action:i,children:o,className:a,closeText:l="Close",color:u,components:h={},componentsProps:p={},icon:m,iconMapping:_=jle,onClose:C,role:T="alert",severity:S="success",slotProps:R={},slots:O={},variant:N="standard"}=n,H=Gt(n,Vht),F=ce({},n,{color:u,severity:S,variant:N,colorSeverity:u||S}),j=qht(F),L={slots:ce({closeButton:h.CloseButton,closeIcon:h.CloseIcon},O),slotProps:ce({},p,R)},[B,Q]=tW("closeButton",{elementType:pv,externalForwardedProps:L,ownerState:F}),[Z,ie]=tW("closeIcon",{elementType:jht,externalForwardedProps:L,ownerState:F});return $.jsxs(Ght,ce({role:T,elevation:0,ownerState:F,className:mr(j.root,a),ref:t},H,{children:[m!==!1?$.jsx(Yht,{ownerState:F,className:j.icon,children:m||_[S]||jle[S]}):null,$.jsx(Wht,{ownerState:F,className:j.message,children:o}),i!=null?$.jsx(zle,{ownerState:F,className:j.action,children:i}):null,i==null&&C?$.jsx(zle,{ownerState:F,className:j.action,children:$.jsx(B,ce({size:"small","aria-label":l,title:l,color:"inherit",onClick:C},Q,{children:$.jsx(Z,ce({fontSize:"small"},ie))}))}):null]}))});function Zht(r){return Mr("MuiTypography",r)}const U2t=Br("MuiTypography",["root","h1","h2","h3","h4","h5","h6","
839subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Xht=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Qht=r=>{const{align:e,gutterBottom:t,noWrap:n,paragraph:i,variant:o,classes:a}=r,l={root:["root",o,r.align!=="inherit"&&`align${nr(e)}`,t&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Ur(l,Zht,a)},Jht=Nt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,t.variant&&e[t.variant],t.align!=="inherit"&&e[`align${nr(t.align)}`],t.noWrap&&e.noWrap,t.gutterBottom&&e.gutterBottom,t.paragraph&&e.paragraph]}})(({theme:r,ownerState:e})=>ce({margin:0},e.variant==="inherit"&&{font:"inherit"},e.variant!=="inherit"&&r.typography[e.variant],e.align!=="inherit"&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16})),Vle={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},eft={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},tft=r=>eft[r]||r,Vd=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiTypography"}),i=tft(n.color),o=$L(ce({},n,{color:i})),{align:a="inherit",className:l,component:u,gutterBottom:h=!1,noWrap:p=!1,paragraph:m=!1,variant:_="body1",variantMapping:C=Vle}=o,T=Gt(o,Xht),S=ce({},o,{align:a,color:i,className:l,component:u,gutterBottom:h,noWrap:p,paragraph:m,variant:_,variantMapping:C}),R=u||(m?"p":C[_]||Vle[_])||"span",O=Qht(S);return $.jsx(Jht,ce({as:R,ref:t,ownerState:S,className:mr(O.root,l)},T))});function rft(r){return Mr("MuiAlertTitle",r)}const B2t=Br("MuiAlertTitle",["root"]),nft=["className"],ift=r=>{const{classes:e}=r;return Ur({root:["root"]},rft,e)},oft=Nt(Vd,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r})=>({fontWeight:r.typography.fontWeightMedium,marginTop:-2})),aft=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiAlertTitle"}),{className:i}=n,o=Gt(n,nft),a=n,l=ift(a);return $.jsx(oft,ce({gutterBottom:!0,component:"div",ownerState:a,ref:t,className:mr(l.root,i)},o))});var vO={},qle;function sft(){if(qle)return vO;qle=1,Object.defineProperty(vO,"__esModule",{value:!0}),vO.default=void 0;var r=n(b_()),e=CEe;function t(a){if(typeof WeakMap!="function")return null;var l=new WeakMap,u=new WeakMap;return(t=function(h){return h?u:l})(a)}function n(a,l){if(a&&a.__esModule)return a;
vendor: 1,701 bytes, line 839
839if(a===null||typeof a!="object"&&typeof a!="function")return{default:a};var u=t(l);if(u&&u.has(a))return u.get(a);var h={__proto__:null},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in a)if(m!=="default"&&Object.prototype.hasOwnProperty.call(a,m)){var _=p?Object.getOwnPropertyDescriptor(a,m):null;_&&(_.get||_.set)?Object.defineProperty(h,m,_):h[m]=a[m]}return h.default=a,u&&u.set(a,h),h}function i(a){return Object.keys(a).length===0}function o(a=null){const l=r.useContext(e.ThemeContext);return!l||i(l)?a:l}return vO.default=o,vO}var lft=sft();const cft=ao(lft);var Qf="top",Ym="bottom",Wm="right",Jf="left",tJ="auto",jL=[Qf,Ym,Wm,Jf],ek="start",PD="end",uft="clippingParents",rCe="viewport",_O="popper",dft="reference",Gle=jL.reduce(function(r,e){return r.concat([e+"-"+ek,e+"-"+PD])},[]),nCe=[].concat(jL,[tJ]).reduce(function(r,e){return r.concat([e,e+"-"+ek,e+"-"+PD])},[]),hft="beforeRead",fft="read",pft="afterRead",gft="beforeMain",mft="main",yft="afterMain",vft="beforeWrite",_ft="write",bft="afterWrite",wft=[hft,fft,pft,gft,mft,yft,vft,_ft,bft];function __(r){return r?(r.nodeName||"").toLowerCase():null}function fg(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var e=r.ownerDocument;return e&&e.defaultView||window}return r}function CS(r){var e=fg(r).Element;return r instanceof e||r instanceof Element}function Dm(r){var e=fg(r).HTMLElement;return r instanceof e||r instanceof HTMLElement}function rJ(r){if(typeof ShadowRoot>"u")return!1;var e=fg(r).ShadowRoot;return r instanceof e||r instanceof ShadowRoot}function Eft(r){var e=r.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];
vendor: 19,018 bytes, line 839
839!Dm(o)||!__(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(a){var l=i[a];l===!1?o.removeAttribute(a):o.setAttribute(a,l===!0?"":l)}))})}function Cft(r){var e=r.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(n){var i=e.elements[n],o=e.attributes[n]||{},a=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]),l=a.reduce(function(u,h){return u[h]="",u},{});!Dm(i)||!__(i)||(Object.assign(i.style,l),Object.keys(o).forEach(function(u){i.removeAttribute(u)}))})}}const xft={name:"applyStyles",enabled:!0,phase:"write",fn:Eft,effect:Cft,requires:["computeStyles"]};function s_(r){return r.split("-")[0]}var YT=Math.max,SB=Math.min,tk=Math.round;function nW(){var r=navigator.userAgentData;return r!=null&&r.brands&&Array.isArray(r.brands)?r.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function iCe(){return!/^((?!chrome|android).)*safari/i.test(nW())}function rk(r,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var n=r.getBoundingClientRect(),i=1,o=1;e&&Dm(r)&&(i=r.offsetWidth>0&&tk(n.width)/r.offsetWidth||1,o=r.offsetHeight>0&&tk(n.height)/r.offsetHeight||1);var a=CS(r)?fg(r):window,l=a.visualViewport,u=!iCe()&&t,h=(n.left+(u&&l?l.offsetLeft:0))/i,p=(n.top+(u&&l?l.offsetTop:0))/o,m=n.width/i,_=n.height/o;return{width:m,height:_,top:p,right:h+m,bottom:p+_,left:h,x:h,y:p}}function nJ(r){var e=rk(r),t=r.offsetWidth,n=r.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:r.offsetLeft,y:r.offsetTop,width:t,height:n}}function oCe(r,e){var t=e.getRootNode&&e.getRootNode();if(r.contains(e))return!0;if(t&&rJ(t)){var n=e;do{if(n&&r.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function xb(r){return fg(r).getComputedStyle(r)}function Tft(r){return["table","td","th"].indexOf(__(r))>=0}function mC(r){return((CS(r)?r.ownerDocument:r.document)||window.document).documentElement}function A9(r){return __(r)==="html"?r:r.assignedSlot||r.parentNode||(rJ(r)?r.host:null)||mC(r)}function Yle(r){return!Dm(r)||xb(r).position==="fixed"?null:r.offsetParent}function Sft(r){var e=/firefox/i.test(nW()),t=/Trident/i.test(nW());if(t&&Dm(r)){var n=xb(r);if(n.position==="fixed")return null}var i=A9(r);for(rJ(i)&&(i=i.host);Dm(i)&&["html","body"].indexOf(__(i))<0;){var o=xb(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function VL(r){for(var e=fg(r),t=Yle(r);t&&Tft(t)&&xb(t).position==="static";)t=Yle(t);return t&&(__(t)==="html"||__(t)==="body"&&xb(t).position==="static")?e:t||Sft(r)||e}function iJ(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function mN(r,e,t){return YT(r,SB(e,t))}function Ift(r,e,t){var n=mN(r,e,t);return n>t?t:n}function aCe(){return{top:0,right:0,bottom:0,left:0}}function sCe(r){return Object.assign({},aCe(),r)}function lCe(r,e){return e.reduce(function(t,n){return t[n]=r,t},{})}var Aft=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,sCe(typeof e!="number"?e:lCe(e,jL))};function Rft(r){var e,t=r.state,n=r.name,i=r.options,o=t.elements.arrow,a=t.modifiersData.popperOffsets,l=s_(t.placement),u=iJ(l),h=[Jf,Wm].indexOf(l)>=0,p=h?"height":"width";if(!(!o||!a)){var m=Aft(i.padding,t),_=nJ(o),C=u==="y"?Qf:Jf,T=u==="y"?Ym:Wm,S=t.rects.reference[p]+t.rects.reference[u]-a[u]-t.rects.popper[p],R=a[u]-t.rects.reference[u],O=VL(o),N=O?u==="y"?O.clientHeight||0:O.clientWidth||0:0,H=S/2-R/2,F=m[C],j=N-_[p]-m[T],L=N/2-_[p]/2+H,B=mN(F,L,j),Q=u;t.modifiersData[n]=(e={},e[Q]=B,e.centerOffset=B-L,e)}}function Pft(r){var e=r.state,t=r.options,n=t.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||oCe(e.elements.popper,i)&&(e.elements.arrow=i))}const kft={name:"arrow",enabled:!0,phase:"main",fn:Rft,effect:Pft,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nk(r){return r.split("-")[1]}var Oft={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Mft(r,e){var t=r.x,n=r.y,i=e.devicePixelRatio||1;return{x:tk(t*i)/i||0,y:tk(n*i)/i||0}}function Wle(r){var e,t=r.popper,n=r.popperRect,i=r.placement,o=r.variation,a=r.offsets,l=r.position,u=r.gpuAcceleration,h=r.adaptive,p=r.roundOffsets,m=r.isFixed,_=a.x,C=_===void 0?0:_,T=a.y,S=T===void 0?0:T,R=typeof p=="function"?p({x:C,y:S}):{x:C,y:S};C=R.x,S=R.y;var O=a.hasOwnProperty("x"),N=a.hasOwnProperty("y"),H=Jf,F=Qf,j=window;if(h){var L=VL(t),B="clientHeight",Q="clientWidth";if(L===fg(t)&&(L=mC(t),xb(L).position!=="static"&&l==="absolute"&&(B="scrollHeight",Q="scrollWidth")),L=L,i===Qf||(i===Jf||i===Wm)&&o===PD){F=Ym;var Z=m&&L===j&&j.visualViewport?j.visualViewport.height:L[B];S-=Z-n.height,S*=u?1:-1}if(i===Jf||(i===Qf||i===Ym)&&o===PD){H=Wm;var ie=m&&L===j&&j.visualViewport?j.visualViewport.width:L[Q];C-=ie-n.width,C*=u?1:-1}}var J=Object.assign({position:l},h&&Oft),ne=p===!0?Mft({x:C,y:S},fg(t)):{x:C,y:S};if(C=ne.x,S=ne.y,u){var ue;return Object.assign({},J,(ue={},ue[F]=N?"0":"",ue[H]=O?"0":"",ue.transform=(j.devicePixelRatio||1)<=1?"translate("+C+"px, "+S+"px)":"translate3d("+C+"px, "+S+"px, 0)",ue))}return Object.assign({},J,(e={},e[F]=N?S+"px":"",e[H]=O?C+"px":"",e.transform="",e))}function Nft(r){var e=r.state,t=r.options,n=t.gpuAcceleration,i=n===void 0?!0:n,o=t.adaptive,a=o===void 0?!0:o,l=t.roundOffsets,u=l===void 0?!0:l,h={placement:s_(e.placement),variation:nk(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Wle(Object.assign({},h,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Wle(Object.assign({},h,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Dft={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nft,data:{}};var B6={passive:!0};function Lft(r){var e=r.state,t=r.instance,n=r.options,i=n.scroll,o=i===void 0?!0:i,a=n.resize,l=a===void 0?!0:a,u=fg(e.elements.popper),h=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&h.forEach(function(p){p.addEventListener("scroll",t.update,B6)}),l&&u.addEventListener("resize",t.update,B6),function(){o&&h.forEach(function(p){p.removeEventListener("scroll",t.update,B6)}),l&&u.removeEventListener("resize",t.update,B6)}}const Hft={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Lft,data:{}};var Fft={left:"right",right:"left",bottom:"top",top:"bottom"};function bF(r){return r.replace(/left|right|bottom|top/g,function(e){return Fft[e]})}var Uft={start:"end",end:"start"};function Kle(r){return r.replace(/start|end/g,function(e){return Uft[e]})}function oJ(r){var e=fg(r),t=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:t,scrollTop:n}}function aJ(r){return rk(mC(r)).left+oJ(r).scrollLeft}function Bft(r,e){var t=fg(r),n=mC(r),i=t.visualViewport,o=n.clientWidth,a=n.clientHeight,l=0,u=0;if(i){o=i.width,a=i.height;var h=iCe();(h||!h&&e==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:l+aJ(r),y:u}}function $ft(r){var e,t=mC(r),n=oJ(r),i=(e=r.ownerDocument)==null?void 0:e.body,o=YT(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=YT(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-n.scrollLeft+aJ(r),u=-n.scrollTop;return xb(i||t).direction==="rtl"&&(l+=YT(t.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:l,y:u}}function sJ(r){var e=xb(r),t=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+i+n)}function cCe(r){return["html","body","#document"].indexOf(__(r))>=0?r.ownerDocument.body:Dm(r)&&sJ(r)?r:cCe(A9(r))}function yN(r,e){var t;e===void 0&&(e=[]);var n=cCe(r),i=n===((t=r.ownerDocument)==null?void 0:t.body),o=fg(n),a=i?[o].concat(o.visualViewport||[],sJ(n)?n:[]):n,l=e.concat(a);return i?l:l.concat(yN(A9(a)))}function iW(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function zft(r,e){var t=rk(r,!1,e==="fixed");return t.top=t.top+r.clientTop,t.left=t.left+r.clientLeft,t.bottom=t.top+r.clientHeight,t.right=t.left+r.clientWidth,t.width=r.clientWidth,t.height=r.clientHeight,t.x=t.left,t.y=t.top,t}function Zle(r,e,t){return e===rCe?iW(Bft(r,t)):CS(e)?zft(e,t):iW($ft(mC(r)))}function jft(r){var e=yN(A9(r)),t=["absolute","fixed"].indexOf(xb(r).position)>=0,n=t&&Dm(r)?VL(r):r;return CS(n)?e.filter(function(i){return CS(i)&&oCe(i,n)&&__(i)!=="body"}):[]}function Vft(r,e,t,n){var i=e==="clippingParents"?jft(r):[].concat(e),o=[].concat(i,[t]),a=o[0],l=o.reduce(function(u,h){var p=Zle(r,h,n);return u.top=YT(p.top,u.top),u.right=SB(p.right,u.right),u.bottom=SB(p.bottom,u.bottom),u.left=YT(p.left,u.left),u},Zle(r,a,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function uCe(r){var e=r.reference,t=r.element,n=r.placement,i=n?s_(n):null,o=n?nk(n):null,a=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,u;switch(i){case Qf:u={x:a,y:e.y-t.height};break;case Ym:u={x:a,y:e.y+e.height};break;case Wm:u={x:e.x+e.width,y:l};break;case Jf:u={x:e.x-t.width,y:l};break;default:u={x:e.x,y:e.y}}var h=i?iJ(i):null;if(h!=null){var p=h==="y"?"height":"width";switch(o){case ek:u[h]=u[h]-(e[p]/2-t[p]/2);break;case PD:u[h]=u[h]+(e[p]/2-t[p]/2);break}}return u}function kD(r,e){e===void 0&&(e={});var t=e,n=t.placement,i=n===void 0?r.placement:n,o=t.strategy,a=o===void 0?r.strategy:o,l=t.boundary,u=l===void 0?uft:l,h=t.rootBoundary,p=h===void 0?rCe:h,m=t.elementContext,_=m===void 0?_O:m,C=t.altBoundary,T=C===void 0?!1:C,S=t.padding,R=S===void 0?0:S,O=sCe(typeof R!="number"?R:lCe(R,jL)),N=_===_O?dft:_O,H=r.rects.popper,F=r.elements[T?N:_],j=Vft(CS(F)?F:F.contextElement||mC(r.elements.popper),u,p,a),L=rk(r.elements.reference),B=uCe({reference:L,element:H,placement:i}),Q=iW(Object.assign({},H,B)),Z=_===_O?Q:L,ie={top:j.top-Z.top+O.top,bottom:Z.bottom-j.bottom+O.bottom,left:j.left-Z.left+O.left,right:Z.right-j.right+O.right},J=r.modifiersData.offset;if(_===_O&&J){var ne=J[i];Object.keys(ie).forEach(function(ue){var K=[Wm,Ym].indexOf(ue)>=0?1:-1,se=[Qf,Ym].indexOf(ue)>=0?"y":"x";ie[ue]+=ne[se]*K})}return ie}function qft(r,e){e===void 0&&(e={});var t=e,n=t.placement,i=t.boundary,o=t.rootBoundary,a=t.padding,l=t.flipVariations,u=t.allowedAutoPlacements,h=u===void 0?nCe:u,p=nk(n),m=p?l?Gle:Gle.filter(function(T){return nk(T)===p}):jL,_=m.filter(function(T){return h.indexOf(T)>=0});_.length===0&&(_=m);var C=_.reduce(function(T,S){return T[S]=kD(r,{placement:S,boundary:i,rootBoundary:o,padding:a})[s_(S)],T},{});return Object.keys(C).sort(function(T,S){return C[T]-C[S]})}function Gft(r){if(s_(r)===tJ)return[];var e=bF(r);return[Kle(r),e,Kle(e)]}function Yft(r){var e=r.state,t=r.options,n=r.name;if(!e.modifiersData[n]._skip){for(var i=t.mainAxis,o=i===void 0?!0:i,a=t.altAxis,l=a===void 0?!0:a,u=t.fallbackPlacements,h=t.padding,p=t.boundary,m=t.rootBoundary,_=t.altBoundary,C=t.flipVariations,T=C===void 0?!0:C,S=t.allowedAutoPlacements,R=e.options.placement,O=s_(R),N=O===R,H=u||(N||!T?[bF(R)]:Gft(R)),F=[R].concat(H).reduce(function(Re,$e){return Re.concat(s_($e)===tJ?qft(e,{placement:$e,boundary:p,rootBoundary:m,padding:h,flipVariations:T,allowedAutoPlacements:S}):$e)},[]),j=e.rects.reference,L=e.rects.popper,B=new Map,Q=!0,Z=F[0],ie=0;ie<F.length;ie++){var J=F[ie],ne=s_(J),ue=nk(J)===ek,K=[Qf,Ym].indexOf(ne)>=0,se=K?"width":"height",be=kD(e,{placement:J,boundary:p,rootBoundary:m,altBoundary:_,padding:h}),de=K?ue?Wm:Jf:ue?Ym:Qf;j[se]>L[se]&&(de=bF(de));var ge=bF(de),Ue=[];if(o&&Ue.push(be[ne]<=0),l&&Ue.push(be[de]<=0,be[ge]<=0),Ue.every(function(Re){return Re})){Z=J,Q=!1;break}B.set(J,Ue)}if(Q)for(var Qe=T?3:1,ve=function($e){var tt=F.find(function(ot){var qe=B.get(ot);if(qe)return qe.slice(0,$e).every(function(lt){return lt})});if(tt)return Z=tt,"break"},pe=Qe;pe>0;pe--){var He=ve(pe);if(He==="break")break}e.placement!==Z&&(e.modifiersData[n]._skip=!0,e.placement=Z,e.reset=!0)}}const Wft={name:"flip",enabled:!0,phase:"main",fn:Yft,requiresIfExists:["offset"],data:{_skip:!1}};function Xle(r,e,t){return t===void 0&&(t={x:0,y:0}),{top:r.top-e.height-t.y,right:r.right-e.width+t.x,bottom:r.bottom-e.height+t.y,left:r.left-e.width-t.x}}function Qle(r){return[Qf,Wm,Ym,Jf].some(function(e){return r[e]>=0})}function Kft(r){var e=r.state,t=r.name,n=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,a=kD(e,{elementContext:"reference"}),l=kD(e,{altBoundary:!0}),u=Xle(a,n),h=Xle(l,i,o),p=Qle(u),m=Qle(h);e.modifiersData[t]={referenceClippingOffsets:u,popperEscapeOffsets:h,isReferenceHidden:p,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":m})}const Zft={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Kft};function Xft(r,e,t){var n=s_(r),i=[Jf,Qf].indexOf(n)>=0?-1:1,o=typeof t=="function"?t(Object.assign({},e,{placement:r})):t,a=o[0],l=o[1];return a=a||0,l=(l||0)*i,[Jf,Wm].indexOf(n)>=0?{x:l,y:a}:{x:a,y:l}}function Qft(r){var e=r.state,t=r.options,n=r.name,i=t.offset,o=i===void 0?[0,0]:i,a=nCe.reduce(function(p,m){return p[m]=Xft(m,e.rects,o),p},{}),l=a[e.placement],u=l.x,h=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=h),e.modifiersData[n]=a}const Jft={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Qft};function ept(r){var e=r.state,t=r.name;e.modifiersData[t]=uCe({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const tpt={name:"popperOffsets",enabled:!0,phase:"read",fn:ept,data:{}};function rpt(r){return r==="x"?"y":"x"}function npt(r){var e=r.state,t=r.options,n=r.name,i=t.mainAxis,o=i===void 0?!0:i,a=t.altAxis,l=a===void 0?!1:a,u=t.boundary,h=t.rootBoundary,p=t.altBoundary,m=t.padding,_=t.tether,C=_===void 0?!0:_,T=t.tetherOffset,S=T===void 0?0:T,R=kD(e,{boundary:u,rootBoundary:h,padding:m,altBoundary:p}),O=s_(e.placement),N=nk(e.placement),H=!N,F=iJ(O),j=rpt(F),L=e.modifiersData.popperOffsets,B=e.rects.reference,Q=e.rects.popper,Z=typeof S=="function"?S(Object.assign({},e.rects,{placement:e.placement})):S,ie=typeof Z=="number"?{mainAxis:Z,altAxis:Z}:Object.assign({mainAxis:0,altAxis:0},Z),J=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,ne={x:0,y:0};if(L){if(o){var ue,K=F==="y"?Qf:Jf,se=F==="y"?Ym:Wm,be=F==="y"?"height":"width",de=L[F],ge=de+R[K],Ue=de-R[se],Qe=C?-Q[be]/2:0,ve=N===ek?B[be]:Q[be],pe=N===ek?-Q[be]:-B[be],He=e.elements.arrow,Re=C&&He?nJ(He):{width:0,height:0},$e=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:aCe(),tt=$e[K],ot=$e[se],qe=mN(0,B[be],Re[be]),lt=H?B[be]/2-Qe-qe-tt-ie.mainAxis:ve-qe-tt-ie.mainAxis,Et=H?-B[be]/2+Qe+qe+ot+ie.mainAxis:pe+qe+ot+ie.mainAxis,Oe=e.elements.arrow&&VL(e.elements.arrow),le=Oe?F==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,re=(ue=J==null?void 0:J[F])!=null?ue:0,te=de+lt-re-le,me=de+Et-re,Ae=mN(C?SB(ge,te):ge,de,C?YT(Ue,me):Ue);L[F]=Ae,ne[F]=Ae-de}if(l){var _e,Ve=F==="x"?Qf:Jf,it=F==="x"?Ym:Wm,vt=L[j],kt=j==="y"?"height":"width",rt=vt+R[Ve],bt=vt-R[it],Xe=[Qf,Jf].indexOf(O)!==-1,ct=(_e=J==null?void 0:J[j])!=null?_e:0,Me=Xe?rt:vt-B[kt]-Q[kt]-ct+ie.altAxis,X=Xe?vt+B[kt]+Q[kt]-ct-ie.altAxis:bt,z=C&&Xe?Ift(Me,vt,X):mN(C?Me:rt,vt,C?X:bt);L[j]=z,ne[j]=z-vt}e.modifiersData[n]=ne}}const ipt={name:"preventOverflow",enabled:!0,phase:"main",fn:npt,requiresIfExists:["offset"]};function opt(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function apt(r){return r===fg(r)||!Dm(r)?oJ(r):opt(r)}function spt(r){var e=r.getBoundingClientRect(),t=tk(e.width)/r.offsetWidth||1,n=tk(e.height)/r.offsetHeight||1;return t!==1||n!==1}function lpt(r,e,t){t===void 0&&(t=!1);var n=Dm(e),i=Dm(e)&&spt(e),o=mC(e),a=rk(r,i,t),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!t)&&((__(e)!=="body"||sJ(o))&&(l=apt(e)),Dm(e)?(u=rk(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):o&&(u.x=aJ(o))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function cpt(r){var e=new Map,t=new Set,n=[];r.forEach(function(o){e.set(o.name,o)});function i(o){t.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(l){if(!t.has(l)){var u=e.get(l);u&&i(u)}}),n.push(o)}return r.forEach(function(o){t.has(o.name)||i(o)}),n}function upt(r){var e=cpt(r);return wft.reduce(function(t,n){return t.concat(e.filter(function(i){return i.phase===n}))},[])}function dpt(r){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(r())})})),e}}function hpt(r){var e=r.reduce(function(t,n){var i=t[n.name];return t[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,t},{});return Object.keys(e).map(function(t){return e[t]})}var Jle={placement:"bottom",modifiers:[],strategy:"absolute"};function ece(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function fpt(r){r===void 0&&(r={});var e=r,t=e.defaultModifiers,n=t===void 0?[]:t,i=e.defaultOptions,o=i===void 0?Jle:i;return function(l,u,h){h===void 0&&(h=o);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Jle,o),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},m=[],_=!1,C={state:p,setOptions:function(O){var N=typeof O=="function"?O(p.options):O;S(),p.options=Object.assign({},o,p.options,N),p.scrollParents={reference:CS(l)?yN(l):l.contextElement?yN(l.contextElement):[],popper:yN(u)};var H=upt(hpt([].concat(n,p.options.modifiers)));return p.orderedModifiers=H.filter(function(F){return F.enabled}),T(),C.update()},forceUpdate:function(){if(!_){var O=p.elements,N=O.reference,H=O.popper;if(ece(N,H)){p.rects={reference:lpt(N,VL(H),p.options.strategy==="fixed"),popper:nJ(H)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(ie){return p.modifiersData[ie.name]=Object.assign({},ie.data)});for(var F=0;F<p.orderedModifiers.length;F++){if(p.reset===!0){p.reset=!1,F=-1;continue}var j=p.orderedModifiers[F],L=j.fn,B=j.options,Q=B===void 0?{}:B,Z=j.name;typeof L=="function"&&(p=L({state:p,options:Q,name:Z,instance:C})||p)}}}},update:dpt(function(){return new Promise(function(R){C.forceUpdate(),R(p)})}),destroy:function(){S(),_=!0}};if(!ece(l,u))return C;C.setOptions(h).then(function(R){!_&&h.onFirstUpdate&&h.onFirstUpdate(R)});
839function T(){p.orderedModifiers.forEach(function(R){var O=R.name,N=R.options,H=N===void 0?{}:N,F=R.effect;if(typeof F=="function"){var j=F({state:p,name:O,instance:C,options:H}),L=function(){};m.push(j||L)}})}function S(){m.forEach(function(R){return R()}),m=[]}return C}}var ppt=[Hft,tpt,Dft,xft,Jft,Wft,ipt,kft,Zft],gpt=fpt({defaultModifiers:ppt});function mpt(r){return typeof r=="function"?r():r}const dCe=V.forwardRef(function(e,t){const{children:n,container:i,disablePortal:o=!1}=e,[a,l]=V.useState(null),u=wo(V.isValidElement(n)?qS(n):null,t);if(nl(()=>{o||l(mpt(i)||document.body)},[i,o]),nl(()=>{if(a&&!o)return mB(t,a),()=>{mB(t,null)}},[t,a,o]),o){if(V.isValidElement(n)){const h={ref:u};return V.cloneElement(n,h)}return $.jsx(V.Fragment,{children:n})}return $.jsx(V.Fragment,{children:a&&JEe.createPortal(n,a)})});function ypt(r){return Mr("MuiPopper",r)}Br("MuiPopper",["root"]);const vpt=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],_pt=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function bpt(r,e){if(e==="ltr")return r;switch(r){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 r}}function oW(r){return typeof r=="function"?r():r}function wpt(r){return r.nodeType!==void 0}const Ept=r=>{const{classes:e}=r;return Ur({root:["root"]},ypt,e)},Cpt={},xpt=V.forwardRef(function(e,t){var n;const{anchorEl:i,children:o,direction:a,disablePortal:l,modifiers:u,open:h,placement:p,popperOptions:m,popperRef:_,slotProps:C={},slots:T={},TransitionProps:S}=e,R=Gt(e,vpt),O=V.useRef(null),N=wo(O,t),H=V.useRef(null),F=wo(H,_),j=V.useRef(F);nl(()=>{j.current=F},[F]),V.useImperativeHandle(_,()=>H.current,[]);const L=bpt(p,a),[B,Q]=V.useState(L),[Z,ie]=V.useState(oW(i));V.useEffect(()=>{H.current&&H.current.forceUpdate()}),V.useEffect(()=>{i&&ie(oW(i))},[i]),nl(()=>{if(!Z||!h)return;const se=ge=>{Q(ge.placement)};let be=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:ge})=>{se(ge)}}];u!=null&&(be=be.concat(u)),m&&m.modifiers!=null&&(be=be.concat(m.modifiers));const de=gpt(Z,O.current,ce({placement:L},m,{modifiers:be}));return j.current(de),()=>{de.destroy(),j.current(null)}},[Z,l,u,h,m,L]);const J={placement:B};S!==null&&(J.TransitionProps=S);const ne=Ept(e),ue=(n=T.root)!=null?n:"div",K=bo({elementType:ue,externalSlotProps:C.root,externalForwardedProps:R,additionalProps:{role:"tooltip",ref:N},ownerState:e,className:ne.root});return $.jsx(ue,ce({},K,{children:typeof o=="function"?o(J):o}))}),Tpt=V.forwardRef(function(e,t){const{anchorEl:n,children:i,container:o,direction:a="ltr",disablePortal:l=!1,keepMounted:u=!1,modifiers:h,open:p,placement:m="bottom",popperOptions:_=Cpt,popperRef:C,style:T,transition:S=!1,slotProps:R={},slots:O={}}=e,N=Gt(e,_pt),[H,F]=V.useState(!0),j=()=>{F(!1)},L=()=>{F(!0)};if(!u&&!p&&(!S||H))return null;let B;if(o)B=o;else if(n){const ie=oW(n);B=ie&&wpt(ie)?Il(ie).body:Il(null).body}const Q=!p&&u&&(!S||H)?"none":void 0,Z=S?{in:p,onEnter:j,onExited:L}:void 0;return $.jsx(dCe,{disablePortal:l,container:B,children:$.jsx(xpt,ce({anchorEl:n,direction:a,disablePortal:l,modifiers:h,ref:t,open:S?!H:p,placement:m,popperOptions:_,popperRef:C,slotProps:R,slots:O},N,{style:ce({position:"fixed",top:0,left:0,display:Q},T),TransitionProps:Z,children:i}))})}),Spt=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Ipt=Nt(Tpt,{name:"MuiPopper",slot:"Root",overridesResolver:(r,e)=>e.root})({}),lJ=V.forwardRef(function(e,t){var n;const i=cft(),o=Pn({props:e,name:"MuiPopper"}),{anchorEl:a,component:l,components:u,componentsProps:h,container:p,disablePortal:m,keepMounted:_,modifiers:C,open:T,placement:S,popperOptions:R,popperRef:O,transition:N,slots:H,slotProps:F}=o,j=Gt(o,Spt),L=(n=H==null?void 0:H.root)!=null?n:u==null?void 0:u.Root,B=ce({anchorEl:a,container:p,disablePortal:m,keepMounted:_,modifiers:C,open:T,placement:S,popperOptions:R,popperRef:O,transition:N},j);return $.jsx(Ipt,ce({as:l,direction:i==null?void 0:i.direction,slots:{root:L},slotProps:F??h},B,{ref:t}))}),Apt=zo($.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");function Rpt(r){return Mr("MuiChip",r)}const Qo=Br("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"]),Ppt=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],kpt=r=>{const{classes:e,disabled:t,size:n,color:i,iconColor:o,onDelete:a,clickable:l,variant:u}=r,h={root:["root",u,t&&"disabled",`size${nr(n)}`,`color${nr(i)}`,l&&"clickable",l&&`clickableColor${nr(i)}`,a&&"deletable",a&&`deletableColor${nr(i)}`,`${u}${nr(i)}`],label:["label",`label${nr(n)}`],avatar:["avatar",`avatar${nr(n)}`,`avatarColor${nr(i)}`],icon:["icon",`icon${nr(n)}`,`iconColor${nr(o)}`],deleteIcon:["deleteIcon",`deleteIcon${nr(n)}`,`deleteIconColor${nr(i)}`,`deleteIcon${nr(u)}Color${nr(i)}`]};return Ur(h,Rpt,e)},Opt=Nt("div",{name:"MuiChip",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}
vendor: 4,931 bytes, line 839
839=r,{color:n,iconColor:i,clickable:o,onDelete:a,size:l,variant:u}=t;return[{[`& .${Qo.avatar}`]:e.avatar},{[`& .${Qo.avatar}`]:e[`avatar${nr(l)}`]},{[`& .${Qo.avatar}`]:e[`avatarColor${nr(n)}`]},{[`& .${Qo.icon}`]:e.icon},{[`& .${Qo.icon}`]:e[`icon${nr(l)}`]},{[`& .${Qo.icon}`]:e[`iconColor${nr(i)}`]},{[`& .${Qo.deleteIcon}`]:e.deleteIcon},{[`& .${Qo.deleteIcon}`]:e[`deleteIcon${nr(l)}`]},{[`& .${Qo.deleteIcon}`]:e[`deleteIconColor${nr(n)}`]},{[`& .${Qo.deleteIcon}`]:e[`deleteIcon${nr(u)}Color${nr(n)}`]},e.root,e[`size${nr(l)}`],e[`color${nr(n)}`],o&&e.clickable,o&&n!=="default"&&e[`clickableColor${nr(n)})`],a&&e.deletable,a&&n!=="default"&&e[`deletableColor${nr(n)}`],e[u],e[`${u}${nr(n)}`]]}})(({theme:r,ownerState:e})=>{const t=r.palette.mode==="light"?r.palette.grey[700]:r.palette.grey[300];return ce({maxWidth:"100%",fontFamily:r.typography.fontFamily,fontSize:r.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(r.vars||r).palette.text.primary,backgroundColor:(r.vars||r).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:r.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Qo.disabled}`]:{opacity:(r.vars||r).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Qo.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:r.vars?r.vars.palette.Chip.defaultAvatarColor:t,fontSize:r.typography.pxToRem(12)},[`& .${Qo.avatarColorPrimary}`]:{color:(r.vars||r).palette.primary.contrastText,backgroundColor:(r.vars||r).palette.primary.dark},[`& .${Qo.avatarColorSecondary}`]:{color:(r.vars||r).palette.secondary.contrastText,backgroundColor:(r.vars||r).palette.secondary.dark},[`& .${Qo.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:r.typography.pxToRem(10)},[`& .${Qo.icon}`]:ce({marginLeft:5,marginRight:-6},e.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},e.iconColor===e.color&&ce({color:r.vars?r.vars.palette.Chip.defaultIconColor:t},e.color!=="default"&&{color:"inherit"})),[`& .${Qo.deleteIcon}`]:ce({WebkitTapHighlightColor:"transparent",color:r.vars?`rgba(${r.vars.palette.text.primaryChannel} / 0.26)`:Qn.alpha(r.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:r.vars?`rgba(${r.vars.palette.text.primaryChannel} / 0.4)`:Qn.alpha(r.palette.text.primary,.4)}},e.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},e.color!=="default"&&{color:r.vars?`rgba(${r.vars.palette[e.color].contrastTextChannel} / 0.7)`:Qn.alpha(r.palette[e.color].contrastText,.7),"&:hover, &:active":{color:(r.vars||r).palette[e.color].contrastText}})},e.size==="small"&&{height:24},e.color!=="default"&&{backgroundColor:(r.vars||r).palette[e.color].main,color:(r.vars||r).palette[e.color].contrastText},e.onDelete&&{[`&.${Qo.focusVisible}`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.action.selectedChannel} / calc(${r.vars.palette.action.selectedOpacity} + ${r.vars.palette.action.focusOpacity}))`:Qn.alpha(r.palette.action.selected,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}},e.onDelete&&e.color!=="default"&&{[`&.${Qo.focusVisible}`]:{backgroundColor:(r.vars||r).palette[e.color].dark}})},({theme:r,ownerState:e})=>ce({},e.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:r.vars?`rgba(${r.vars.palette.action.selectedChannel} / calc(${r.vars.palette.action.selectedOpacity} + ${r.vars.palette.action.hoverOpacity}))`:Qn.alpha(r.palette.action.selected,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity)},[`&.${Qo.focusVisible}`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.action.selectedChannel} / calc(${r.vars.palette.action.selectedOpacity} + ${r.vars.palette.action.focusOpacity}))`:Qn.alpha(r.palette.action.selected,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)},"&:active":{boxShadow:(r.vars||r).shadows[1]}},e.clickable&&e.color!=="default"&&{[`&:hover, &.${Qo.focusVisible}`]:{backgroundColor:(r.vars||r).palette[e.color].dark}}),({theme:r,ownerState:e})=>ce({},e.variant==="outlined"&&{backgroundColor:"transparent",border:r.vars?`1px solid ${r.vars.palette.Chip.defaultBorder}`:`1px solid ${r.palette.mode==="light"?r.palette.grey[400]:r.palette.grey[700]}`,[`&.${Qo.clickable}:hover`]:{backgroundColor:(r.vars||r).palette.action.hover},[`&.${Qo.focusVisible}`]:{backgroundColor:(r.vars||r).palette.action.focus},[`& .${Qo.avatar}`]:{marginLeft:4},[`& .${Qo.avatarSmall}`]:{marginLeft:2},[`& .${Qo.icon}`]:{marginLeft:4},[`& .${Qo.iconSmall}`]:{marginLeft:2},[`& .${Qo.deleteIcon}`]:{marginRight:5},[`& .${Qo.deleteIconSmall}`]:{marginRight:3}},e.variant==="outlined"&&e.color!=="default"&&{color:(r.vars||r).palette[e.color].main,border:`1px solid ${r.vars?`rgba(${r.vars.palette[e.color].mainCh
839annel} / 0.7)`:Qn.alpha(r.palette[e.color].main,.7)}`,[`&.${Qo.clickable}:hover`]:{backgroundColor:r.vars?`rgba(${r.vars.palette[e.color].mainChannel} / ${r.vars.palette.action.hoverOpacity})`:Qn.alpha(r.palette[e.color].main,r.palette.action.hoverOpacity)},[`&.${Qo.focusVisible}`]:{backgroundColor:r.vars?`rgba(${r.vars.palette[e.color].mainChannel} / ${r.vars.palette.action.focusOpacity})`:Qn.alpha(r.palette[e.color].main,r.palette.action.focusOpacity)},[`& .${Qo.deleteIcon}`]:{color:r.vars?`rgba(${r.vars.palette[e.color].mainChannel} / 0.7)`:Qn.alpha(r.palette[e.color].main,.7),"&:hover, &:active":{color:(r.vars||r).palette[e.color].main}}})),Mpt=Nt("span",{name:"MuiChip",slot:"Label",overridesResolver:(r,e)=>{const{ownerState:t}=r,{size:n}=t;return[e.label,e[`label${nr(n)}`]]}})(({ownerState:r})=>ce({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},r.variant==="outlined"&&{paddingLeft:11,paddingRight:11},r.size==="small"&&{paddingLeft:8,paddingRight:8},r.size==="small"&&r.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function tce(r){return r.key==="Backspace"||r.key==="Delete"}const Npt=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:l="default",component:u,deleteIcon:h,disabled:p=!1,icon:m,label:_,onClick:C,onDelete:T,onKeyDown:S,onKeyUp:R,size:O="medium",variant:N="filled",tabIndex:H,skipFocusWhenDisabled:F=!1}=n,j=Gt(n,Ppt),L=V.useRef(null),B=wo(L,t),Q=Ue=>{Ue.stopPropagation(),T&&T(Ue)},Z=Ue=>{Ue.currentTarget===Ue.target&&tce(Ue)&&Ue.preventDefault(),S&&S(Ue)},ie=Ue=>{Ue.currentTarget===Ue.target&&(T&&tce(Ue)?T(Ue):Ue.key==="Escape"&&L.current&&L.current.blur()),R&&R(Ue)},J=a!==!1&&C?!0:a,ne=J||T?Cb:u||"div",ue=ce({},n,{component:ne,disabled:p,size:O,color:l,iconColor:V.isValidElement(m)&&m.props.color||l,onDelete:!!T,clickable:J,variant:N}),K=kpt(ue),se=ne===Cb?ce({component:u||"div",focusVisibleClassName:K.focusVisible},T&&{disableRipple:!0}):{};let be=null;T&&(be=h&&V.isValidElement(h)?V.cloneElement(h,{className:mr(h.props.className,K.deleteIcon),onClick:Q}):$.jsx(Apt,{className:mr(K.deleteIcon),onClick:Q}));let de=null;i&&V.isValidElement(i)&&(de=V.cloneElement(i,{className:mr(K.avatar,i.props.className)}));let ge=null;return m&&V.isValidElement(m)&&(ge=V.cloneElement(m,{className:mr(K.icon,m.props.className)})),$.jsxs(Opt,ce({as:ne,className:mr(K.root,o),disabled:J&&p?!0:void 0,onClick:C,onKeyDown:Z,onKeyUp:ie,ref:B,tabIndex:F&&p?-1:H,ownerState:ue},se,j,{children:[de||ge,$.jsx(Mpt,{className:mr(K.label),ownerState:ue,children:_}),be]}))}),Dpt=["onChange","maxRows","minRows","style","value"];function $6(r){return parseInt(r,10)||0}const Lpt={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Hpt(r){for(const e in r)return!1;return!0}function rce(r){return Hpt(r)||r.outerHeightStyle===0&&!r.overflowing}const Fpt=V.forwardRef(function(e,t){const{onChange:n,maxRows:i,minRows:o=1,style:a,value:l}=e,u=Gt(e,Dpt),{current:h}=V.useRef(l!=null),p=V.useRef(null),m=wo(t,p),_=V.useRef(null),C=V.useRef(null),T=V.useCallback(()=>{const H=p.current,F=C.current;if(!H||!F)return;const L=YE(H).getComputedStyle(H);if(L.width==="0px")return{outerHeightStyle:0,overflowing:!1};F.style.width=L.width,F.value=H.value||e.placeholder||"x",F.value.slice(-1)===`
840`&&(F.value+=" ");const B=L.boxSizing,Q=$6(L.paddingBottom)+$6(L.paddingTop),Z=$6(L.borderBottomWidth)+$6(L.borderTopWidth),ie=F.scrollHeight;F.value="x";const J=F.scrollHeight;let ne=ie;o&&(ne=Math.max(Number(o)*J,ne)),i&&(ne=Math.min(Number(i)*J,ne)),ne=Math.max(ne,J);const ue=ne+(B==="border-box"?Q+Z:0),K=Math.abs(ne-ie)<=1;return{outerHeightStyle:ue,overflowing:K}},[i,o,e.placeholder]),S=Zr(()=>{const H=p.current,F=T();if(!H||!F||rce(F))return!1;const j=F.outerHeightStyle;return _.current!=null&&_.current!==j}),R=V.useCallback(()=>{const H=p.current,F=T();if(!H||!F||rce(F))return;const j=F.outerHeightStyle;_.current!==j&&(_.current=j,H.style.height=`${j}px`),H.style.overflow=F.overflowing?"hidden":""},[T]),O=V.useRef(-1);nl(()=>{const H=kQ(R),F=p==null?void 0:p.current;if(!F)return;const j=YE(F);j.addEventListener("resize",H);let L;return typeof ResizeObserver<"u"&&(L=new ResizeObserver(()=>{S()&&(L.unobserve(F),cancelAnimationFrame(O.current),R(),O.current=requestAnimationFrame(()=>{L.observe(F)}))}),L.observe(F)),()=>{H.clear(),cancelAnimationFrame(O.current),j.removeEventListener("resize",H),L&&L.disconnect()}},[T,R,S]),nl(()=>{R()});const N=H=>{h||R(),n&&n(H)};return $.jsxs(V.Fragment,{children:[$.jsx("textarea",ce({value:l,onCh
840ange:N,ref:m,rows:o,style:a},u)),$.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:C,tabIndex:-1,style:ce({},Lpt.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function yC({props:r,states:e,muiFormControl:t}){return e.reduce((n,i)=>(n[i]=r[i],t&&typeof r[i]>"u"&&(n[i]=t[i]),n),{})}const R9=V.createContext(void 0);function cp(){return V.useContext(R9)}function Upt(r){return $.jsx(qEe,ce({},r,{defaultTheme:C9,themeId:wS}))}function nce(r){return r!=null&&!(Array.isArray(r)&&r.length===0)}function IB(r,e=!1){return r&&(nce(r.value)&&r.value!==""||e&&nce(r.defaultValue)&&r.defaultValue!=="")}function Bpt(r){return r.startAdornment}function $pt(r){return Mr("MuiInputBase",r)}const ik=Br("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),zpt=["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"],P9=(r,e)=>{const{ownerState:t}=r;return[e.root,t.formControl&&e.formControl,t.startAdornment&&e.adornedStart,t.endAdornment&&e.adornedEnd,t.error&&e.error,t.size==="small"&&e.sizeSmall,t.multiline&&e.multiline,t.color&&e[`color${nr(t.color)}`],t.fullWidth&&e.fullWidth,t.hiddenLabel&&e.hiddenLabel]},k9=(r,e)=>{const{ownerState:t}=r;return[e.input,t.size==="small"&&e.inputSizeSmall,t.multiline&&e.inputMultiline,t.type==="search"&&e.inputTypeSearch,t.startAdornment&&e.inputAdornedStart,t.endAdornment&&e.inputAdornedEnd,t.hiddenLabel&&e.inputHiddenLabel]},jpt=r=>{const{classes:e,color:t,disabled:n,error:i,endAdornment:o,focused:a,formControl:l,fullWidth:u,hiddenLabel:h,multiline:p,readOnly:m,size:_,startAdornment:C,type:T}=r,S={root:["root",`color${nr(t)}
840`,n&&"disabled",i&&"error",u&&"fullWidth",a&&"focused",l&&"formControl",_&&_!=="medium"&&`size${nr(_)}`,p&&"multiline",C&&"adornedStart",o&&"adornedEnd",h&&"hiddenLabel",m&&"readOnly"],input:["input",n&&"disabled",T==="search"&&"inputTypeSearch",p&&"inputMultiline",_==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",C&&"inputAdornedStart",o&&"inputAdornedEnd",m&&"readOnly"]};return Ur(S,$pt,e)},O9=Nt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:P9})(({theme:r,ownerState:e})=>ce({},r.typography.body1,{color:(r.vars||r).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ik.disabled}`]:{color:(r.vars||r).palette.text.disabled,cursor:"default"}},e.multiline&&ce({padding:"4px 0 5px"},e.size==="small"&&{paddingTop:1}),e.fullWidth&&{width:"100%"})),M9=Nt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:k9})(({theme:r,ownerState:e})=>{const t=r.palette.mode==="light",n=ce({color:"currentColor"},r.vars?{opacity:r.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},{transition:r.transitions.create("opacity",{duration:r.transitions.duration.shorter})}),i={opacity:"0 !important"},o=r.vars?{opacity:r.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return ce({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":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ik.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${ik.disabled}`]:{opacity:1,WebkitTextFillColor:(r.vars||r).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},e.size==="small"&&{paddingTop:1},e.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},e.type==="search"&&{MozAppearance:"textfield"})}),Vpt=$.jsx(Upt,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),cJ=V.forwardRef(function(e,t){var n;const i=Pn({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:l,className:u,components:h={},componentsProps:p={},defaultValue:m,disabled:_,disableInjectingGlobalStyles:C,endAdornment:T,fullWidth:S=!1,id:R,inputComponent:O="input",inputProps:N={},inputRef:H,maxRows:F,minRows:j,multiline:L=!1,name:B,onBlur:Q,onChange:Z,onClick:ie,onFocus:J,onKeyDown:ne,onKeyUp:ue,placeholder:K,readOnly:se,renderSuffix:be,rows:de,slotProps:ge={},slots:Ue={},startAdornment:Qe,type:ve="text",value:pe}=i,He=Gt(i,zpt),Re=N.value!=null?N.value:pe,{current:$e}=V.useRef(Re!=null),tt=V.useRef(),ot=V.useCallback(z=>{},[]),qe=wo(tt,H,N.ref,ot),[lt,Et]=V.useState(!1),Oe=cp(),le=yC({props:i,muiFormControl:Oe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});le.focused=Oe?Oe.focused:lt,V.useEffect(()=>{!Oe&&_&&lt&&(Et(!1),Q&&Q())},[Oe,_,lt,Q]);const re=Oe&&Oe.onFilled,te=Oe&&Oe.onEmpty,me=V.useCallback(z=>{IB(z)?re&&re():te&&te()},[re,te]);nl(()=>{$e&&me({value:Re})},[Re,me,$e]);const Ae=z=>{if(le.disabled){z.stopPropagation();return}J&&J(z),N.onFocus&&N.onFocus(z),Oe&&Oe.onFocus?Oe.onFocus(z):Et(!0)},_e=z=>{Q&&Q(z),N.onBlur&&N.onBlur(z),Oe&&Oe.onBlur?Oe.onBlur(z):Et(!1)},Ve=(z,...W)=>{if(!$e){const Se=z.target||tt.current;if(Se==null)throw new Error(wb(1));me({value:Se.value})}N.onChange&&N.onChange(z,...W),Z&&Z(z,...W)};V.useEffect(()=>{me(tt.current)},[]);const it=z=>{tt.current&&z.currentTarget===z.target&&tt.current.focus(),ie&&ie(z)};let vt=O,kt=N;L&&vt==="input"&&(de?kt=ce({type:void 0,minRows:de,maxRows:de},kt):kt=ce({type:void 0,maxRows:F,minRows:j},kt),vt=Fpt);const rt=z=>{me(z.animationName==="mui-auto-fill-cancel"?tt.current:{value:"x"})};V.useEffect(()=>{Oe&&Oe.setAdornedStart(!!Qe)},[Oe,Qe]);const bt=ce({},i,{color:le.color||"primary",disabled:le.disabled,endAdornment:T,error:le.error,focused:le.focused,formControl:Oe,fullWidth:S,hiddenLabel:le.hiddenLabel,multiline:L,size:le.size,startAdornment:Qe,type:ve}),Xe=jpt(bt),ct=Ue.root||h.Root||O9,Me=ge.root||p.root||{},X=Ue.input||h.Input||M9;return kt=ce({},kt,(n=ge.input)!=null?n:p.input),$.jsxs(V.Fragment,{children:[!C&&Vpt,$.jsxs(ct,ce({},Me,!QP(ct)&&{ownerState:ce({},bt,Me.ownerState)},{ref:t,onClick:it},He,{className:mr(Xe.root,Me.className,u,se&&"MuiInputBase-readOnly"),children:[Qe,$.jsx(R9.Provider,{value:null,children:$.jsx(X,ce({ownerState:bt,"aria-invalid":le.error,"aria-describedby":o,autoComplete:a,autoFocus:l,defaultValue:m,disabled:le.disabled,id:R,onAnimationStart:rt,name:B,placeholder:K,readOnly:se,required:le.required,rows:de,value:Re,onKeyDown:ne,onKeyUp:ue,type:ve},kt,!QP(X)&&{as:vt,ownerState:ce({},bt,kt.ownerState)},{ref:qe,className:mr(Xe.input,kt.className,se&&"MuiInputBase-readOnly"),onBlur:_e,onChange:Ve,onFocus:Ae}))}),T,be?be(ce({},le,{startAdornment:Qe})):null]}))]})});function qpt(r){return Mr("MuiInput",r)}const bO=ce({},ik,Br("MuiInput",["root","underline","input"]));function Gpt(r){return Mr("MuiOutlinedInput",r)}const Aw=ce({},ik,Br("MuiOutlinedInput",["root","notchedOutline","input"]));function Ypt(r){return Mr("MuiFilledInput",r)}const mx=ce({},ik,Br("MuiFilledInput",["root","underline","input"])),Wpt=zo($.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Kpt=zo($.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Zpt(r){return Mr("MuiAvatar",r)}const $2t=Br("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),Xpt=["alt","children","className","component","slots","slotProps","imgProps","
840sizes","src","srcSet","variant"],Qpt=r=>{const{classes:e,variant:t,colorDefault:n}=r;return Ur({root:["root",t,n&&"colorDefault"],img:["img"],fallback:["fallback"]},Zpt,e)},Jpt=Nt("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,e[t.variant],t.colorDefault&&e.colorDefault]}})(({theme:r})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:r.typography.fontFamily,fontSize:r.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(r.vars||r).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:ce({color:(r.vars||r).palette.background.default},r.vars?{backgroundColor:r.vars.palette.Avatar.defaultBg}:ce({backgroundColor:r.palette.grey[400]},r.applyStyles("dark",{backgroundColor:r.palette.grey[600]})))}]})),egt=Nt("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(r,e)=>e.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),tgt=Nt(Kpt,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(r,e)=>e.fallback})({width:"75%",height:"75%"});function rgt({crossOrigin:r,referrerPolicy:e,src:t,srcSet:n}){const[i,o]=V.useState(!1);return V.useEffect(()=>{if(!t&&!n)return;o(!1);let a=!0;const l=new Image;return l.onload=()=>{a&&o("loaded")},l.onerror=()=>{a&&o("error")},l.crossOrigin=r,l.referrerPolicy=e,l.src=t,n&&(l.srcset=n),()=>{a=!1}},[r,e,t,n]),i}const ngt=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiAvatar"}),{alt:i,children:o,className:a,component:l="div",slots:u={},slotProps:h={},imgProps:p,sizes:m,src:_,srcSet:C,variant:T="circular"}=n,S=Gt(n,Xpt);let R=null;const O=rgt(ce({},p,{src:_,srcSet:C})),N=_||C,H=N&&O!=="error",F=ce({},n,{colorDefault:!H,component:l,variant:T}),j=Qpt(F),[L,B]=tW("img",{className:j.img,elementType:egt,externalForwardedProps:{slots:u,slotProps:{img:ce({},p,h.img)}},additionalProps:{alt:i,src:_,srcSet:C,sizes:m},ownerState:F});return H?R=$.jsx(L,ce({},B)):o||o===0?R=o:N&&i?R=i[0]:R=$.jsx(tgt,{ownerState:F,className:j.fallback}),$.jsx(Jpt,ce({as:l,ownerState:F,className:mr(j.root,a),ref:t},S,{children:R}))}),igt=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ogt={entering:{opacity:1},entered:{opacity:1}},qL=V.forwardRef(function(e,t){const n=pC(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:l,easing:u,in:h,onEnter:p,onEntered:m,onEntering:_,onExit:C,onExited:T,onExiting:S,style:R,timeout:O=i,TransitionComponent:N=Pv}=e,H=Gt(e,igt),F=V.useRef(null),j=wo(F,qS(l),t),L=K=>se=>{if(K){const be=F.current;se===void 0?K(be):K(be,se)}},B=L(_),Q=L((K,se)=>{tCe(K);const be=TB({style:R,timeout:O,easing:u},{mode:"enter"});K.style.webkitTransition=n.transitions.create("opacity",be),K.style.transition=n.transitions.create("opacity",be),p&&p(K,se)}),Z=L(m),ie=L(S),J=L(K=>{const se=TB({style:R,timeout:O,easing:u},{mode:"exit"});K.style.webkitTransition=n.transitions.create("opacity",se),K.style.transition=n.transitions.create("opacity",se),C&&C(K)}),ne=L(T),ue=K=>{o&&o(F.current,K)};return $.jsx(N,ce({appear:a,in:h,nodeRef:F,onEnter:Q,onEntered:Z,onEntering:B,onExit:J,onExited:ne,onExiting:ie,addEndListener:ue,timeout:O},H,{children:(K,se)=>V.cloneElement(l,ce({style:ce({opacity:0,visibility:K==="exited"&&!h?"hidden":void 0},ogt[K],R,l.props.style),ref:j},se))}))});function agt(r){return Mr("MuiBackdrop",r)}const z2t=Br("MuiBackdrop",["root","invisible"]),sgt=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],lgt=r=>{const{classes:e,invisible:t}=r;return Ur({root:["root",t&&"invisible"]},agt,e)},cgt=Nt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,t.invisible&&e.invisible]}})(({ownerState:r})=>ce({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"},r.invisible&&{backgroundColor:"transparent"})),hCe=V.forwardRef(function(e,t){var n,i,o;const a=Pn({props:e,name:"MuiBackdrop"}),{children:l,className:u,component:h="div",components:p={},componentsProps:m={},invisible:_=!1,open:C,slotProps:T={},slots:S={},TransitionComponent:R=qL,transitionDuration:O}=a,N=Gt(a,sgt),H=ce({},a,{component:h,invisible:_}),F=lgt(H),j=(n=T.root)!=null?n:m.root;return $.jsx(R,ce({in:C,timeout:O},N,{children:$.jsx(cgt,ce({"aria-hidden":!0},j,{as:(i=(o=S.root)!=null?o:p.Root)!=null?i:h,className:mr(F.root,u,j==null?void 0:j.className),ownerState:ce({},H,j==null?void 0:j.ownerState),classes:F,ref:t,children:l}))}))}),ugt=Br("MuiBox",["root"]),dgt=bS(),fCe=wdt({themeId:wS,defaultTheme:dgt,defaultClassName:ugt.root,generateClassName:MQ.generate});function hgt(r){return Mr("MuiButton",r)}const z6=Br("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"]),pCe=V.createContext({}),fgt=V.createContext(void 0),pgt=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ggt=r=>{const{color:e,disableElevation:t,fullWidth:n,size:i,variant:o,classes:a}=r,l={root:["root",o,`${o}${nr(e)}`,`size${nr(i)}`,`${o}Size${nr(i)}`,`color${nr(e)}`,t&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${nr(i)}`],endIcon:["icon","endIcon",`iconSize${nr(i)}`]},u=Ur(l,hgt,a);return ce({},a,u)},gCe=r=>ce({},r.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},r.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},r.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),mgt=Nt(Cb,{shouldForwardProp:r=>Ru(r)||r==="classes",name:"MuiButton",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,e[t.variant],e[`${t.variant}${nr(t.color)}`],e[`size${nr(t.size)}`],e[`${t.variant}Size${nr(t.size)}`],t.color==="inherit"&&e.colorInherit,t.disableElevation&&e.disableElevation,t.fullWidth&&e.fullWidth]}})(({theme:r,ownerState:e})=>{var t,n;const i=r.palette.mode==="light"?r.palette.grey[300]:r.palette.grey[800],o=r.palette.mode==="light"?r.palette.grey.A100:r.palette.grey[700];return ce({},r.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(r.vars||r).shape.borderRadius,transition:r.transitions.create(["background-color","box-shadow","border-color","color"],{duration:r.transitions.duration.short}),"&:hover":ce({textDecoration:"none",backgroundColor:r.vars?`rgba(${r.vars.palette.text.primaryChannel} / ${r.vars.palette.action.hoverOpacity})`:Qn.alpha(r.palette.text.primary,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="text"&&e.color!=="inherit"&&{backgroundColor:r.vars?`rgba(${r.vars.palette[e.color].mainCh
840annel} / ${r.vars.palette.action.hoverOpacity})`:Qn.alpha(r.palette[e.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="outlined"&&e.color!=="inherit"&&{border:`1px solid ${(r.vars||r).palette[e.color].main}`,backgroundColor:r.vars?`rgba(${r.vars.palette[e.color].mainChannel} / ${r.vars.palette.action.hoverOpacity})`:Qn.alpha(r.palette[e.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="contained"&&{backgroundColor:r.vars?r.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(r.vars||r).shadows[4],"@media (hover: none)":{boxShadow:(r.vars||r).shadows[2],backgroundColor:(r.vars||r).palette.grey[300]}},e.variant==="contained"&&e.color!=="inherit"&&{backgroundColor:(r.vars||r).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(r.vars||r).palette[e.color].main}}),"&:active":ce({},e.variant==="contained"&&{boxShadow:(r.vars||r).shadows[8]}),[`&.${z6.focusVisible}`]:ce({},e.variant==="contained"&&{boxShadow:(r.vars||r).shadows[6]}),[`&.${z6.disabled}`]:ce({color:(r.vars||r).palette.action.disabled},e.variant==="outlined"&&{border:`1px solid ${(r.vars||r).palette.action.disabledBackground}`},e.variant==="contained"&&{color:(r.vars||r).palette.action.disabled,boxShadow:(r.vars||r).shadows[0],backgroundColor:(r.vars||r).palette.action.disabledBackground})},e.variant==="text"&&{padding:"6px 8px"},e.variant==="text"&&e.color!=="inherit"&&{color:(r.vars||r).palette[e.color].main},e.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},e.variant==="outlined"&&e.color!=="inherit"&&{color:(r.vars||r).palette[e.color].main,border:r.vars?`1px solid rgba(${r.vars.palette[e.color].mainChannel} / 0.5)`:`1px solid ${Qn.alpha(r.palette[e.color].main,.5)}`},e.variant==="contained"&&{color:r.vars?r.vars.palette.text.primary:(t=(n=r.palette).getContrastText)==null?void 0:t.call(n,r.palette.grey[300]),backgroundColor:r.vars?r.vars.palette.Button.inheritContainedBg:i,boxShadow:(r.vars||r).shadows[2]},e.variant==="contained"&&e.color!=="inherit"&&{color:(r.vars||r).palette[e.color].contrastText,backgroundColor:(r.vars||r).palette[e.color].main},e.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},e.size==="small"&&e.variant==="text"&&{padding:"4px 5px",fontSize:r.typography.pxToRem(13)},e.size==="large"&&e.variant==="text"&&{padding:"8px 11px",fontSize:r.typography.pxToRem(15)},e.size==="small"&&e.variant==="outlined"&&{padding:"3px 9px",fontSize:r.typography.pxToRem(13)},e.size==="large"&&e.variant==="outlined"&&{padding:"7px 21px",fontSize:r.typography.pxToRem(15)},e.size==="small"&&e.variant==="contained"&&{padding:"4px 10px",fontSize:r.typography.pxToRem(13)},e.size==="large"&&e.variant==="contained"&&{padding:"8px 22px",fontSize:r.typography.pxToRem(15)},e.fullWidth&&{width:"100%"})},({ownerState:r})=>r.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${z6.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${z6.disabled}`]:{boxShadow:"none"}}),ygt=Nt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.startIcon,e[`iconSize${nr(t.size)}`]]}})(({ownerState:r})=>ce({display:"inherit",marginRight:8,marginLeft:-4},r.size==="small"&&{marginLeft:-2},gCe(r))),vgt=Nt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.endIcon,e[`iconSize${nr(t.size)}`]]}})(({ownerState:r})=>ce({display:"inherit",marginRight:-4,marginLeft:8},r.size==="small"&&{marginRight:-2},gCe(r))),fT=V.forwardRef(function(e,t){const n=V.useContext(pCe),i=V.useContext(fgt),o=XP(n,e),a=Pn({props:o,name:"MuiButton"}),{children:l,color:u="primary",component:h="button",className:p,disabled:m=!1,disableElevation:_=!1,disableFocusRipple:C=!1,endIcon:T,focusVisibleClassName:S,fullWidth:R=!1,size:O="medium",startIcon:N,type:H,variant:F="text"}=a,j=Gt(a,pgt),L=ce({},a,{color:u,component:h,disabled:m,disableElevation:_,disableFocusRipple:C,fullWidth:R,size:O,type:H,variant:F}),B=ggt(L),Q=N&&$.jsx(ygt,{className:B.startIcon,ownerState:L,children:N}),Z=T&&$.jsx(vgt,{className:B.endIcon,ownerState:L,children:T}),ie=i||"";return $.jsxs(mgt,ce({ownerState:L,className:mr(n.className,B.root,p,ie),component:h,disabled:m,focusRipple:!C,focusVisibleClassName:mr(B.focusVisible,S),ref:t,type:H},j,{classes:B,children:[Q,l,Z]}))});function _gt(r){return Mr("MuiCard",r)}const j2t=Br("MuiCard",["root"]),bgt=["className","raised"],wgt=r=>{const{classes:e}=r;return Ur({root:["root"]},_gt,e)},Egt=Nt(gC,{name:"MuiCard",slot:"Root",overridesResolver:(r,e)=>e.root})(()=>({overflow:"hidden"})),Cgt=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiCard"}),{className:i,raised:o=!1}=n,a=Gt(n,bgt),l=ce({},n,{raised:o}),u=wgt(l);return $.jsx(Egt,ce({className:mr(u.root,i),elevation:o?8:void 0,ref:t,ownerState:l},a))});function xgt(r){return Mr("PrivateSwitchBase",r)}Br("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Tgt=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Sgt=r=>{const{classes:e,checked:t,disabled:n,edge:i}=r,o={root:["root",t&&"checked",n&&"disabled",i&&`edge${nr(i)}`],input:["input"]};return Ur(o,xgt,e)}
840,Igt=Nt(Cb,{name:"MuiSwitchBase"})(({ownerState:r})=>ce({padding:9,borderRadius:"50%"},r.edge==="start"&&{marginLeft:r.size==="small"?-3:-12},r.edge==="end"&&{marginRight:r.size==="small"?-3:-12})),Agt=Nt("input",{name:"MuiSwitchBase",shouldForwardProp:Ru})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),mCe=V.forwardRef(function(e,t){const{autoFocus:n,checked:i,checkedIcon:o,className:a,defaultChecked:l,disabled:u,disableFocusRipple:h=!1,edge:p=!1,icon:m,id:_,inputProps:C,inputRef:T,name:S,onBlur:R,onChange:O,onFocus:N,readOnly:H,required:F=!1,tabIndex:j,type:L,value:B}=e,Q=Gt(e,Tgt),[Z,ie]=hg({controlled:i,default:!!l,name:"SwitchBase",state:"checked"}),J=cp(),ne=Ue=>{N&&N(Ue),J&&J.onFocus&&J.onFocus(Ue)},ue=Ue=>{R&&R(Ue),J&&J.onBlur&&J.onBlur(Ue)},K=Ue=>{if(Ue.nativeEvent.defaultPrevented)return;const Qe=Ue.target.checked;ie(Qe),O&&O(Ue,Qe)};let se=u;J&&typeof se>"u"&&(se=J.disabled);const be=L==="checkbox"||L==="radio",de=ce({},e,{checked:Z,disabled:se,disableFocusRipple:h,edge:p}),ge=Sgt(de);return $.jsxs(Igt,ce({component:"span",className:mr(ge.root,a),centerRipple:!0,focusRipple:!h,disabled:se,tabIndex:null,role:void 0,onFocus:ne,onBlur:ue,ownerState:de,ref:t},Q,{children:[$.jsx(Agt,ce({autoFocus:n,checked:i,defaultChecked:l,className:ge.input,disabled:se,id:be?_:void 0,name:S,onChange:K,readOnly:H,ref:T,required:F,ownerState:de,tabIndex:j,type:L},L==="checkbox"&&B===void 0?{}:{value:B},C)),Z?o:m]}))}),Rgt=zo($.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Pgt=zo($.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),kgt=zo($.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Ogt(r){return Mr("MuiCheckbox",r)}const C3=Br("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Mgt=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Ngt=r=>{const{classes:e,indeterminate:t,color:n,size:i}=r,o={root:["root",t&&"indeterminate",`color${nr(n)}`,`size${nr(i)}`]},a=Ur(o,Ogt,e);return ce({},e,a)},Dgt=Nt(mCe,{shouldForwardProp:r=>Ru(r)||r==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,t.indeterminate&&e.indeterminate,e[`size${nr(t.size)}`],t.color!=="default"&&e[`color${nr(t.color)}`]]}})(({theme:r,ownerState:e})=>ce({color:(r.vars||r).palette.text.secondary},!e.disableRipple&&{"&:hover":{backgroundColor:r.vars?`rgba(${e.color==="default"?r.vars.palette.action.activeChannel:r.vars.palette[e.color].mainChannel} / ${r.vars.palette.action.hoverOpacity})`:Qn.alpha(e.color==="default"?r.palette.action.active:r.palette[e.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${C3.checked}, &.${C3.indeterminate}`]:{color:(r.vars||r).palette[e.color].main},[`&.${C3.disabled}`]:{color:(r.vars||r).palette.action.disabled}})),Lgt=$.jsx(Pgt,{}),Hgt=$.jsx(Rgt,{}),Fgt=$.jsx(kgt,{}),yCe=V.forwardRef(function(e,t){var n,i;const o=Pn({props:e,name:"MuiCheckbox"}),{checkedIcon:a=Lgt,color:l="primary",icon:u=Hgt,indeterminate:h=!1,indeterminateIcon:p=Fgt,inputProps:m,size:_="medium",className:C}=o,T=Gt(o,Mgt),S=h?p:u,R=h?p:a,O=ce({},o,{color:l,indeterminate:h,size:_}),N=Ngt(O);return $.jsx(Dgt,ce({type:"checkbox",inputProps:ce({"data-indeterminate":h},m),icon:V.cloneElement(S,{fontSize:(n=S.props.fontSize)!=null?n:_}),checkedIcon:V.cloneElement(R,{fontSize:(i=R.props.fontSize)!=null?i:_}),ownerState:O,ref:t,className:mr(N.root,C)},T,{classes:N}))});function Ugt(r){return Mr("MuiCircularProgress",r)}const V2t=Br("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]),Bgt=["className","color","disableShrink","size","style","thickness","value","variant"];let N9=r=>r,ice,oce,ace,sce;const Rw=44,$gt=Rv(ice||(ice=N9`
841  0% {
842    transform: rotate(0deg);
843  }
844
845  100% {
846    transform: rotate(360deg);
847  }
848`)),zgt=Rv(oce||(oce=N9`
849  0% {
850    stroke-dasharray: 1px, 200px;
851    stroke-dashoffset: 0;
852  }
853
854  50% {
855    stroke-dasharray: 100px, 200px;
856    stroke-dashoffset: -15px;
857  }
858
859  100% {
860    stroke-dasharray: 100px, 200px;
861    stroke-dashoffset: -125px;
862  }
863`)),jgt=r=>{const{classes:e,variant:t,color:n,disableShrink:i}=r,o={root:["root",t,`color${nr(n)}`],svg:["svg"],circle:["circle",`circle${nr(t)}`,i&&"circleDisableShrink"]};return Ur(o,Ugt,e)},Vgt=Nt("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,e[t.variant],e[`color${nr(t.color)}`]]}})(({ownerState:r,theme:e})=>ce({display:"inline-block"},r.variant==="determinate"&&{transition:e.transitions.create("transform")},r.color!=="inherit"&&{color:(e.vars||e).palette[r.color].main}),({ownerState:r})=>r.variant==="indeterminate"&&Eb(ace||(ace=N9`
864      animation: ${0} 1.4s linear infinite;
865    `),$gt)),qgt=Nt("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(r,e)=>e.svg})({display:"block"}),Ggt=Nt("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.circle,e[`circle${nr(t.variant)}`],t.disableShrink&&e.circleDisableShrink]}})(({ownerState:r,theme:e})=>ce({stroke:"currentColor"},r.variant==="determinate"&&{transition:e.transitions.create("stroke-dashoffset")},r.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:r})=>r.variant==="indeterminate"&&!r.disableShrink&&Eb(sce||(sce=N9`
866      animation: ${0} 1.4s ease-in-out infinite;
867    `),zgt)),vCe=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:a=!1,size:l=40,style:u,thickness:h=3.6,value:p=0,variant:m="indeterminate"}=n,_=Gt(n,Bgt),C=ce({},n,{color:o,disableShrink:a,size:l,thickness:h,value:p,variant:m}),T=jgt(C),S={},R={},O={};if(m==="determinate"){const N=2*Math.PI*((Rw-h)/2);S.strokeDasharray=N.toFixed(3),O["aria-valuenow"]=Math.round(p),S.strokeDashoffset=`${((100-p)/100*N).toFixed(3)}px`,R.transform="rotate(-90deg)"}return $.jsx(Vgt,ce({className:mr(T.root,i),style:ce({width:l,height:l},R,u),ownerState:C,ref:t,role:"progressbar"},O,_,{children:$.jsx(qgt,{className:T.svg,ownerState:C,viewBox:`${Rw/2} ${Rw/2} ${Rw} ${Rw}`,children:$.jsx(Ggt,{className:T.circle,style:S,ownerState:C,cx:Rw,cy:Rw,r:(Rw-h)/2,fill:"none",strokeWidth:h})})}))});function lce(r){return r.substring(2).toLowerCase()}function Ygt(r,e){return e.documentElement.clientWidth<r.clientX||e.documentElement.clientHeight<r.clientY}function Wgt(r){const{children:e,disableReactTree:t=!1,mouseEvent:n="onClick",onClickAway:i,touchEvent:o="onTouchEnd"}=r,a=V.useRef(!1),l=V.useRef(null),u=V.useRef(!1),h=V.useRef(!1);V.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const p=wo(qS(e),l),m=Zr(T=>{const S=h.current;h.current=!1;const R=Il(l.current);if(!u.current||!l.current||"clientX"in T&&Ygt(T,R))return;if(a.current){a.current=!1;return}let O;T.composedPath?O=T.composedPath().indexOf(l.current)>-1:O=!R.documentElement.contains(T.target)||l.current.contains(T.target),!O&&(t||!S)&&i(T)}),_=T=>S=>{h.current=!0;const R=e.props[T];R&&R(S)},C={ref:p};return o!==!1&&(C[o]=_(o)),V.useEffect(()=>{if(o!==!1){const T=lce(o),S=Il(l.current),R=()=>{a.current=!0};return S.addEventListener(T,m),S.addEventListener("touchmove",R),()=>{S.removeEventListener(T,m),S.removeEventListener("touchmove",R)}}},[m,o]),n!==!1&&(C[n]=_(n)),V.useEffect(()=>{if(n!==!1){const T=lce(n),S=Il(l.current);return S.addEventListener(T,m),()=>{S.removeEventListener(T,m)}}},[m,n]),$.jsx(V.Fragment,{children:V.cloneElement(e,C)})}function Kgt(r){const e=Il(r);return e.body===r?YE(r).innerWidth>e.documentElement.clientWidth:r.scrollHeight>r.clientHeight}function vN(r,e){e?r.setAttribute("aria-hidden","true"):r.removeAttribute("aria-hidden")}function cce(r){return parseInt(YE(r).getComputedStyle(r).paddingRight,10)||0}function Zgt(r){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(r.tagName)!==-1,n=r.tagName==="INPUT"&&r.getAttribute("type")==="hidden";return t||n}function uce(r,e,t,n,i){const o=[e,t,...n];[].forEach.call(r.children,a=>{const l=o.indexOf(a)===-1,u=!Zgt(a);l&&u&&vN(a,i)})}function x3(r,e){let t=-1;return r.some((n,i)=>e(n)?(t=i,!0):!1),t}function Xgt(r,e){const t=[],n=r.container;if(!e.disableScrollLock){if(Kgt(n)){const a=rEe(Il(n));t.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${cce(n)+a}px`;const l=Il(n).querySelectorAll(".mui-fixed");[].forEach.call(l,u=>{t.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${cce(u)+a}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=Il(n).body;else{const a=n.parentElement,l=YE(n);o=(a==null?void 0:a.nodeName)==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:n}t.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{t.forEach(({value:o,el:a,property:l})=>{o?a.style.setProperty(l,o):a.style.removeProperty(l)})}}function Qgt(r){const e=[];return[].forEach.call(r.children,t=>{t.getAttribute("aria-hidden")==="true"&&e.push(t)}),e}class Jgt{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&vN(e.modalRef,!1);const i=Qgt(t);uce(t,e.mount,e.modalRef,i,!0);const o=x3(this.containers,a=>a.container===t);return o!==-1?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:i}),n)}mount(e,t){const n=x3(this.containers,o=>o.modals.indexOf(e)!==-1),i=this.containers[n];i.restore||(i.restore=Xgt(i,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const i=x3(this.containers,a=>a.modals.indexOf(e)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(
867),e.modalRef&&vN(e.modalRef,t),uce(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&vN(a.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const emt=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function tmt(r){const e=parseInt(r.getAttribute("tabindex")||"",10);return Number.isNaN(e)?r.contentEditable==="true"||(r.nodeName==="AUDIO"||r.nodeName==="VIDEO"||r.nodeName==="DETAILS")&&r.getAttribute("tabindex")===null?0:r.tabIndex:e}function rmt(r){if(r.tagName!=="INPUT"||r.type!=="radio"||!r.name)return!1;const e=n=>r.ownerDocument.querySelector(`input[type="radio"]${n}`);let t=e(`[name="${r.name}"]:checked`);return t||(t=e(`[name="${r.name}"]`)),t!==r}function nmt(r){return!(r.disabled||r.tagName==="INPUT"&&r.type==="hidden"||rmt(r))}function imt(r){const e=[],t=[];return Array.from(r.querySelectorAll(emt)).forEach((n,i)=>{const o=tmt(n);o===-1||!nmt(n)||(o===0?e.push(n):t.push({documentOrder:i,tabIndex:o,node:n}))}),t.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(e)}function omt(){return!0}function _Ce(r){const{children:e,disableAutoFocus:t=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:o=imt,isEnabled:a=omt,open:l}=r,u=V.useRef(!1),h=V.useRef(null),p=V.useRef(null),m=V.useRef(null),_=V.useRef(null),C=V.useRef(!1),T=V.useRef(null),S=wo(qS(e),T),R=V.useRef(null);V.useEffect(()=>{!l||!T.current||(C.current=!t)},[t,l]),V.useEffect(()=>{if(!l||!T.current)return;const H=Il(T.current);return T.current.contains(H.activeElement)||(T.current.hasAttribute("tabIndex")||T.current.setAttribute("tabIndex","-1"),C.current&&T.current.focus()),()=>{i||(m.current&&m.current.focus&&(u.current=!0,m.current.focus()),m.current=null)}},[l]),V.useEffect(()=>{if(!l||!T.current)return;const H=Il(T.current),F=B=>{R.current=B,!(n||!a()||B.key!=="Tab")&&H.activeElement===T.current&&B.shiftKey&&(u.current=!0,p.current&&p.current.focus())},j=()=>{const B=T.current;if(B===null)return;if(!H.hasFocus()||!a()||u.current){u.current=!1;return}if(B.contains(H.activeElement)||n&&H.activeElement!==h.current&&H.activeElement!==p.current)return;if(H.activeElement!==_.current)_.current=null;else if(_.current!==null)return;if(!C.current)return;let Q=[];if((H.activeElement===h.current||H.activeElement===p.current)&&(Q=o(T.current)),Q.length>0){var Z,ie;const J=!!((Z=R.current)!=null&&Z.shiftKey&&((ie=R.current)==null?void 0:ie.key)==="Tab"),ne=Q[0],ue=Q[Q.length-1];typeof ne!="string"&&typeof ue!="string"&&(J?ue.focus():ne.focus())}else B.focus()};H.addEventListener("focusin",j),H.addEventListener("keydown",F,!0);const L=setInterval(()=>{H.activeElement&&H.activeElement.tagName==="BODY"&&j()},50);return()=>{clearInterval(L),H.removeEventListener("focusin",j),H.removeEventListener("keydown",F,!0)}},[t,n,i,a,l,o]);const O=H=>{m.current===null&&(m.current=H.relatedTarget),C.current=!0,_.current=H.target;const F=e.props.onFocus;F&&F(H)},N=H=>{m.current===null&&(m.current=H.relatedTarget),C.current=!0};return $.jsxs(V.Fragment,{children:[$.jsx("div",{tabIndex:l?0:-1,onFocus:N,ref:h,"data-testid":"sentinelStart"}),V.cloneElement(e,{ref:S,onFocus:O}),$.jsx("div",{tabIndex:l?0:-1,onFocus:N,ref:p,"data-testid":"sentinelEnd"})]})}function amt(r){return typeof r=="function"?r():r}function smt(r){return r?r.props.hasOwnProperty("in"):!1}const lmt=new Jgt;function cmt(r){const{container:e,disableEscapeKeyDown:t=!1,disableScrollLock:n=!1,manager:i=lmt,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:l,children:u,onClose:h,open:p,rootRef:m}=r,_=V.useRef({}),C=V.useRef(null),T=V.useRef(null),S=wo(T,m),[R,O]=V.useState(!p),N=smt(u);let H=!0;(r["aria-hidden"]==="false"||r["aria-hidden"]===!1)&&(H=!1);const F=()=>Il(C.current),j=()=>(_.current.modalRef=T.current,_.current.mount=C.current,_.current),L=()=>{i.mount(j(),{disableScrollLock:n}),T.current&&(T.current.scrollTop=0)},B=Zr(()=>{const be=amt(e)||F().body;i.add(j(),be),T.current&&L()}),Q=V.useCallback(()=>i.isTopModal(j()),[i]),Z=Zr(be=>{C.current=be,be&&(p&&Q()?L():T.current&&vN(T.current,H))}),ie=V.useCallback(()=>{i.remove(j(),H)},[H,i]);V.useEffect(()=>()=>{ie()},[ie]),V.useEffect(()=>{p?B():(!N||!o)&&ie()},[p,ie,N,o,B]);const J=be=>de=>{var ge;(ge=be.onKeyDown)==null||ge.call(be,de),!(de.key!=="Escape"||de.which===229||!Q())&&(t||(de.stopPropagation(),h&&h(de,"escapeKeyDown")))},ne=be=>de=>{var ge;(ge=be.onClick)==null||ge.call(be,de),de.target===de.currentTarget&&h&&h(de,"backdropClick")};return{getRootProps:(be={})=>{const de=yB(r);delete de.onTransitionEnter,delete de.onTransitionExited;const ge=ce({},de,be);return ce({role:"presentation"},ge,{onKeyDown:J(ge),ref:S})},getBackdropProps:(be={})=>{const de=be;return ce({"aria-hidden":!0},de,{onClick:ne(de),open:p})},getTransitionProps:()=>{const be=()=>{O(!1),a&&a()},de=()=>{O(!0),l&&l(),o&&ie()};return{onEnter:gB(be,u==null?void 0:u.props.onEnter),onExited:gB(de,u==null?void 0:u.props.onExited)}},rootRef:S,portalRef:Z,isTopModal:Q,exited:R,hasTransition:N}}function umt(r){return Mr("MuiModal",r)}const q2t=Br("MuiModal",["root","hidden","backdrop"]),dmt=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","
867slots","theme"],hmt=r=>{const{open:e,exited:t,classes:n}=r;return Ur({root:["root",!e&&t&&"hidden"],backdrop:["backdrop"]},umt,n)},fmt=Nt("div",{name:"MuiModal",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,!t.open&&t.exited&&e.hidden]}})(({theme:r,ownerState:e})=>ce({position:"fixed",zIndex:(r.vars||r).zIndex.modal,right:0,bottom:0,top:0,left:0},!e.open&&e.exited&&{visibility:"hidden"})),pmt=Nt(hCe,{name:"MuiModal",slot:"Backdrop",overridesResolver:(r,e)=>e.backdrop})({zIndex:-1}),bCe=V.forwardRef(function(e,t){var n,i,o,a,l,u;const h=Pn({name:"MuiModal",props:e}),{BackdropComponent:p=pmt,BackdropProps:m,className:_,closeAfterTransition:C=!1,children:T,container:S,component:R,components:O={},componentsProps:N={},disableAutoFocus:H=!1,disableEnforceFocus:F=!1,disableEscapeKeyDown:j=!1,disablePortal:L=!1,disableRestoreFocus:B=!1,disableScrollLock:Q=!1,hideBackdrop:Z=!1,keepMounted:ie=!1,onBackdropClick:J,open:ne,slotProps:ue,slots:K}=h,se=Gt(h,dmt),be=ce({},h,{closeAfterTransition:C,disableAutoFocus:H,disableEnforceFocus:F,disableEscapeKeyDown:j,disablePortal:L,disableRestoreFocus:B,disableScrollLock:Q,hideBackdrop:Z,keepMounted:ie}),{getRootProps:de,getBackdropProps:ge,getTransitionProps:Ue,portalRef:Qe,isTopModal:ve,exited:pe,hasTransition:He}=cmt(ce({},be,{rootRef:t})),Re=ce({},be,{exited:pe}),$e=hmt(Re),tt={};if(T.props.tabIndex===void 0&&(tt.tabIndex="-1"),He){const{onEnter:re,onExited:te}=Ue();tt.onEnter=re,tt.onExited=te}const ot=(n=(i=K==null?void 0:K.root)!=null?i:O.Root)!=null?n:fmt,qe=(o=(a=K==null?void 0:K.backdrop)!=null?a:O.Backdrop)!=null?o:p,lt=(l=ue==null?void 0:ue.root)!=null?l:N.root,Et=(u=ue==null?void 0:ue.backdrop)!=null?u:N.backdrop,Oe=bo({elementType:ot,externalSlotProps:lt,externalForwardedProps:se,getSlotProps:de,additionalProps:{ref:t,as:R},ownerState:Re,className:mr(_,lt==null?void 0:lt.className,$e==null?void 0:$e.root,!Re.open&&Re.exited&&($e==null?void 0:$e.hidden))}),le=bo({elementType:qe,externalSlotProps:Et,additionalProps:m,getSlotProps:re=>ge(ce({},re,{onClick:te=>{J&&J(te),re!=null&&re.onClick&&re.onClick(te)}})),className:mr(Et==null?void 0:Et.className,m==null?void 0:m.className,$e==null?void 0:$e.backdrop),ownerState:Re});return!ie&&!ne&&(!He||pe)?null:$.jsx(dCe,{ref:Qe,container:S,disablePortal:L,children:$.jsxs(ot,ce({},Oe,{children:[!Z&&p?$.jsx(qe,ce({},le)):null,$.jsx(_Ce,{disableEnforceFocus:F,disableAutoFocus:H,disableRestoreFocus:B,isEnabled:ve,open:ne,children:V.cloneElement(T,tt)})]}))})});function gmt(r){return Mr("MuiDialog",r)}const T3=Br("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),wCe=V.createContext({}),mmt=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],ymt=Nt(hCe,{name:"MuiDialog",slot:"Backdrop",overrides:(r,e)=>e.backdrop})({zIndex:-1}),vmt=r=>{const{classes:e,scroll:t,maxWidth:n,fullWidth:i,fullScreen:o}=r,a={root:["root"],container:["container",`scroll${nr(t)}`],paper:["paper",`paperScroll${nr(t)}`,`paperWidth${nr(String(n))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return Ur(a,gmt,e)},_mt=Nt(bCe,{name:"MuiDialog",slot:"Root",overridesResolver:(r,e)=>e.root})({"@media print":{position:"absolute !important"}}),bmt=Nt("div",{name:"MuiDialog",slot:"Container",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.container,e[`scroll${nr(t.scroll)}`]]}})(({ownerState:r})=>ce({height:"100%","@media print":{height:"auto"},outline:0},r.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},r.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),wmt=Nt(gC,{name:"MuiDialog",slot:"Paper",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.paper,e[`scrollPaper${nr(t.scroll)}`],e[`paperWidth${nr(String(t.maxWidth))}`],t.fullWidth&&e.paperFullWidth,t.fullScreen&&e.paperFullScreen]}})(({theme:r,ownerState:e})=>ce({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},e.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},e.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!e.maxWidth&&{maxWidth:"calc(100% - 64px)"},e.maxWidth==="xs"&&{maxWidth:r.breakpoints.unit==="px"?Math.max(r.breakpoints.values.xs,444):`max(${r.breakpoints.values.xs}${r.breakpoints.unit}, 444px)`,[`&.${T3.paperScrollBody}`]:{[r.breakpoints.down(Math.max(r.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},e.maxWidth&&e.maxWidth!=="xs"&&{maxWidth:`${r.breakpoints.values[e.maxWidth]}${r.breakpoints.unit}`,[`&.${T3.paperScrollBody}`]:{[r.breakpoints.down(r.breakpoints.values[e.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},e.fullWidth&&{width:"calc(100% - 64px)"},e.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${T3.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),ok=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiDialog"}),i=pC(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,BackdropComponent:u,BackdropProps:h,children:p,className:m,disableEscapeKeyDown:_=!1,fullScreen:C=!1,fullWidth:T=!1,maxWidth:S="sm",onBackdropClick:R,onClick:O,onClose:N,open:H,PaperComponent:F=gC,PaperProps:j={},scroll:L="paper",TransitionComponent:B=qL,transitionDuration:Q=o,TransitionProps:Z}=n,ie=Gt(n,mmt),J=ce({},n,{disableEscapeKeyDown:_,fullScreen:C,fullWidth:T,maxWidth:S,scroll:L}),ne=vmt(J),ue=V.useRef(),K=ge=>{ue.current=ge.target===ge.currentTarget},se=ge=>{O&&O(ge),ue.current&&(ue.current=null,R&&R(ge),N&&N(ge,"backdropClick"))},be=Jm(l),de=V.useMemo(()=>({titleId:be}),[be]);return $.jsx(_mt,ce({className:mr(ne.root,m),closeAfterTransition:!0,components:{Backdrop:ymt},componentsProps:{backdrop:ce({transitionDuration:Q,as:u},h)},disableEscapeKeyDown:_,onClose:N,open:H,ref:t,onClick:se,ownerState:J},ie,{children:$.jsx(B,ce({appear:!0,in:H,timeout:Q,role:"presentation"},Z,{children:$.jsx(bmt,{className:mr(ne.container),onMouseDown:K,ownerState:J,children:$.jsx(wmt,ce({as:F,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":be},j,{className:mr(ne.paper,j.className),ownerState:J,children:$.jsx(wCe.Provider,{value:de,children:p})}))})}))}))});function Emt(r){return Mr("MuiDialogActions",r)}const G2t=Br("MuiDialogActions",["root","spacing"]),Cmt=["className","disableSpacing"],xmt=r=>{const{classes:e,disableSpacing:t}=r;return Ur({root:["root",!t&&"spacing"]},Emt,e)},Tmt=Nt("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,!t.disableSpacing&&e.spacing]}})(({ownerState:r})=>ce({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!r.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),GL=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=n,a=Gt(n,Cmt),l=ce({},n,{disableSpacing:o}),u=xmt(l);return $.jsx(Tmt,ce({className:mr(u.root,i),ownerState:l,ref:t},a))});function Smt(r){return Mr("MuiDialogContent",r)}
vendor: 11,249 bytes, line 867
867const Y2t=Br("MuiDialogContent",["root","dividers"]);function Imt(r){return Mr("MuiDialogTitle",r)}const Amt=Br("MuiDialogTitle",["root"]),Rmt=["className","dividers"],Pmt=r=>{const{classes:e,dividers:t}=r;return Ur({root:["root",t&&"dividers"]},Smt,e)},kmt=Nt("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,t.dividers&&e.dividers]}})(({theme:r,ownerState:e})=>ce({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},e.dividers?{padding:"16px 24px",borderTop:`1px solid ${(r.vars||r).palette.divider}`,borderBottom:`1px solid ${(r.vars||r).palette.divider}`}:{[`.${Amt.root} + &`]:{paddingTop:0}})),YL=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=n,a=Gt(n,Rmt),l=ce({},n,{dividers:o}),u=Pmt(l);return $.jsx(kmt,ce({className:mr(u.root,i),ownerState:l,ref:t},a))});function Omt(r){return Mr("MuiDialogContentText",r)}const W2t=Br("MuiDialogContentText",["root"]),Mmt=["children","className"],Nmt=r=>{const{classes:e}=r,n=Ur({root:["root"]},Omt,e);return ce({},e,n)},Dmt=Nt(Vd,{shouldForwardProp:r=>Ru(r)||r==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(r,e)=>e.root})({}),Lmt=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiDialogContentText"}),{className:i}=n,o=Gt(n,Mmt),a=Nmt(o);return $.jsx(Dmt,ce({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:o,className:mr(a.root,i)},n,{classes:a}))}),Hmt=["className","id"],Fmt=r=>{const{classes:e}=r;return Ur({root:["root"]},Imt,e)},Umt=Nt(Vd,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(r,e)=>e.root})({padding:"16px 24px",flex:"0 0 auto"}),ECe=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiDialogTitle"}),{className:i,id:o}=n,a=Gt(n,Hmt),l=n,u=Fmt(l),{titleId:h=o}=V.useContext(wCe);return $.jsx(Umt,ce({component:"h2",className:mr(u.root,i),ownerState:l,ref:t,variant:"h6",id:o??h},a))});function Bmt(r){return Mr("MuiDivider",r)}const dce=Br("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),$mt=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],zmt=r=>{const{absolute:e,children:t,classes:n,flexItem:i,light:o,orientation:a,textAlign:l,variant:u}=r;return Ur({root:["root",e&&"absolute",u,o&&"light",a==="vertical"&&"vertical",i&&"flexItem",t&&"withChildren",t&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},Bmt,n)},jmt=Nt("div",{name:"MuiDivider",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,t.absolute&&e.absolute,e[t.variant],t.light&&e.light,t.orientation==="vertical"&&e.vertical,t.flexItem&&e.flexItem,t.children&&e.withChildren,t.children&&t.orientation==="vertical"&&e.withChildrenVertical,t.textAlign==="right"&&t.orientation!=="vertical"&&e.textAlignRight,t.textAlign==="left"&&t.orientation!=="vertical"&&e.textAlignLeft]}})(({theme:r,ownerState:e})=>ce({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(r.vars||r).palette.divider,borderBottomWidth:"thin"},e.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},e.light&&{borderColor:r.vars?`rgba(${r.vars.palette.dividerChannel} / 0.08)`:Qn.alpha(r.palette.divider,.08)},e.variant==="inset"&&{marginLeft:72},e.variant==="middle"&&e.orientation==="horizontal"&&{marginLeft:r.spacing(2),marginRight:r.spacing(2)},e.variant==="middle"&&e.orientation==="vertical"&&{marginTop:r.spacing(1),marginBottom:r.spacing(1)},e.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},e.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:r})=>ce({},r.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:r,ownerState:e})=>ce({},e.children&&e.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(r.vars||r).palette.divider}`,borderTopStyle:"inherit"}}),({theme:r,ownerState:e})=>ce({},e.children&&e.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(r.vars||r).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:r})=>ce({},r.textAlign==="right"&&r.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},r.textAlign==="left"&&r.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Vmt=Nt("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.wrapper,t.orientation==="vertical"&&e.wrapperVertical]}})(({theme:r,ownerState:e})=>ce({display:"inline-block",paddingLeft:`calc(${r.spacing(1)} * 1.2)`,paddingRight:`calc(${r.spacing(1)} * 1.2)`},e.orientation==="vertical"&&{paddingTop:`calc(${r.spacing(1)} * 1.2)`,paddingBottom:`calc(${r.spacing(1)} * 1.2)`})),AB=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiDivider"}),{absolute:i=!1,children:o,className:a,component:l=o?"div":"hr",flexItem:u=!1,light:h=!1,orientation:p="horizontal",role:m=l!=="hr"?"separator":void 0,textAlign:_="center",variant:C="fullWidth"}=n,T=Gt(n,$mt),S=ce({},n,{absolute:i,component:l,flexItem:u,light:h,orientation:p,role:m,textAlign:_,variant:C}),R=zmt(S);return $.jsx(jmt,ce({as:l,className:mr(R.root,a),role:m,ref:t,ownerState:S},T,{children:o?$.jsx(Vmt,{className:R.wrapper,ownerState:S,children:o}):null}))});AB.muiSkipListHighlight=!0;const qmt=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Gmt=r=>{const{classes:e,disableUnderline:t}=r,i=Ur({root:["root",!t&&"underline"],input:["input"]},Ypt,e);return ce({},e,i)},Ymt=Nt(O9,{shouldForwardProp:r=>Ru(r)||r==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[...P9(r,e),!t.disableUnderline&&e.underline]}})(({theme:r,ownerState:e})=>{var t;const n=r.palette.mode==="light",i=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return ce({position:"relative",backgroundColor:r.vars?r.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(r.vars||r).shape.borderRadius,borderTopRightRadius:(r.vars||r).shape.borderRadius,transition:r.transitions.create("background-color",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),"&:hover":{backgroundColor:r.vars?r.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:r.vars?r.vars.palette.FilledInput.bg:o}},[`&.${mx.focused}`]:{backgroundColor:r.vars?r.vars.palette.FilledInput.bg:o},[`&.${mx.disabled}`]:{backgroundColor:r.vars?r.vars.palette.FilledInput.disabledBg:l}},!e.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(t=(r.vars||r).palette[e.color||"primary"])==null?void 0:t.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:r.transitions.create("transform",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${mx.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${mx.error}`]:{"&::before, &::after":{borderBottomColor:(r.vars||r).palette.error.main}},"&::before":{borderBottom:`1px solid ${r.vars?`rgba(${r.vars.palette.common.onBackgroundChannel} / ${r.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:r.transitions.create("border-bottom-color",{duration:r.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${mx.disabled}, .${mx.error}):before`]:{borderBottom:`1px solid ${(r.vars||r).palette.text.primary}`},[`&.${mx.disabled}:before`]:{borderBottomStyle:"dotted"}},e.startAdornment&&{paddingLeft:12},e.endAdornment&&{paddingRight:12},e.multiline&&ce({padding:"25px 12px 8px"},e.size==="small"&&{paddingTop:21,paddingBottom:4},e.hiddenLabel&&{paddingTop:16,paddingBottom:17},e.hiddenLabel&&e.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Wmt=Nt(M9,{name:"MuiFilledInput",slot:"Input",overridesResolver:k9})(({theme:r,ownerState:e})=>ce({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!r.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:r.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:r.palette.mode==="light"?null:"#fff",caretColor:r.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},r.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[r.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},e.size==="small"&&{paddingTop:21,paddingBottom:4},e.hiddenLabel&&{paddingTop:16,paddingBottom:17},e.startAdornment&&{paddingLeft:0},e.endAdornment&&{paddingRight:0},e.hiddenLabel&&e.size==="small"&&{paddingTop:8,paddingBottom:9},e.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),uJ=V.forwardRef(function(e,t){var n,i,o,a;const l=Pn({props:e,name:"MuiFilledInput"}),{components:u={},componentsProps:h,fullWidth:p=!1,inputComponent:m="input",multiline:_=!1,slotProps:C,slots:T={},type:S="text"}=l,R=Gt(l,qmt),O=ce({},l,{fullWidth:p,inputComponent:m,multiline:_,type:S}),N=Gmt(l),H={root:{ownerState:O},input:{ownerState:O}},F=C??h?qh(H,C??h):H,j=(n=(i=T.root)!=null?i:u.Root)!=null?n:Ymt,L=(o=(a=T.input)!=null?a:u.Input)!=null?o:Wmt;return $.jsx(cJ,ce({slots:{root:j,input:L},componentsProps:F,fullWidth:p,inputComponent:m,multiline:_,ref:t,type:S},R,{classes:N}))});uJ.muiName="Input";function Kmt(r){return Mr("MuiFormControl",r)}const K2t=Br("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]),Zmt=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Xmt=r=>{const{classes:e,margin:t,fullWidth:n}=r,i={root:["root",t!=="none"&&`margin${nr(t)}`,n&&"fullWidth"]};return Ur(i,Kmt,e)},Qmt=Nt("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:r},e)=>ce({},e.root,e[`margin${nr(r.margin)}`],r.fullWidth&&e.fullWidth)})(({ownerState:r})=>ce({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},r.margin==="normal"&&{marginTop:16,marginBottom:8},r.margin==="dense"&&{marginTop:8,marginBottom:4},r.fullWidth&&{width:"100%"})),_N=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:l="div",disabled:u=!1,error:h=!1,focused:p,fullWidth:m=!1,hiddenLabel:_=!1,margin:C="none",required:T=!1,size:S="medium",variant:R="outlined"}=n,O=Gt(n,Zmt),N=ce({},n,{color:a,component:l,disabled:u,error:h,fullWidth:m,hiddenLabel:_,margin:C,required:T,size:S,variant:R}),H=Xmt(N),[F,j]=V.useState(()=>{let ue=!1;
867return i&&V.Children.forEach(i,K=>{if(!pN(K,["Input","Select"]))return;const se=pN(K,["Select"])?K.props.input:K;se&&Bpt(se.props)&&(ue=!0)}),ue}),[L,B]=V.useState(()=>{let ue=!1;return i&&V.Children.forEach(i,K=>{pN(K,["Input","Select"])&&(IB(K.props,!0)||IB(K.props.inputProps,!0))&&(ue=!0)}),ue}),[Q,Z]=V.useState(!1);u&&Q&&Z(!1);const ie=p!==void 0&&!u?p:Q;let J;const ne=V.useMemo(()=>({adornedStart:F,setAdornedStart:j,color:a,disabled:u,error:h,filled:L,focused:ie,fullWidth:m,hiddenLabel:_,size:S,onBlur:()=>{Z(!1)},onEmpty:()=>{B(!1)},onFilled:()=>{B(!0)},onFocus:()=>{Z(!0)},registerEffect:J,required:T,variant:R}),[F,a,u,h,L,ie,m,_,J,T,S,R]);return $.jsx(R9.Provider,{value:ne,children:$.jsx(Qmt,ce({as:l,ownerState:N,className:mr(H.root,o),ref:t},O,{children:i}))})}),Jmt=tht({createStyledComponent:Nt("div",{name:"MuiStack",slot:"Root",overridesResolver:(r,e)=>e.root}),useThemeProps:r=>Pn({props:r,name:"MuiStack"})});function eyt(r){return Mr("MuiFormControlLabel",r)}const RM=Br("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),tyt=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],ryt=r=>{const{classes:e,disabled:t,labelPlacement:n,error:i,required:o}=r,a={root:["root",t&&"disabled",`labelPlacement${nr(n)}`,i&&"error",o&&"required"],label:["label",t&&"disabled"],asterisk:["asterisk",i&&"error"]};return Ur(a,eyt,e)},nyt=Nt("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[{[`& .${RM.label}`]:e.label},e.root,e[`labelPlacement${nr(t.labelPlacement)}`]]}})(({theme:r,ownerState:e})=>ce({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${RM.disabled}`]:{cursor:"default"}},e.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},e.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},e.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${RM.label}`]:{[`&.${RM.disabled}`]:{color:(r.vars||r).palette.text.disabled}}})),iyt=Nt("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(r,e)=>e.asterisk})(({theme:r})=>({[`&.${RM.error}`]:{color:(r.vars||r).palette.error.main}})),aW=V.forwardRef(function(e,t){var n,i;const o=Pn({props:e,name:"MuiFormControlLabel"}),{className:a,componentsProps:l={},control:u,disabled:h,disableTypography:p,label:m,labelPlacement:_="end",required:C,slotProps:T={}}=o,S=Gt(o,tyt),R=cp(),O=(n=h??u.props.disabled)!=null?n:R==null?void 0:R.disabled,N=C??u.props.required,H={disabled:O,required:N};["checked","name","onChange","value","inputRef"].forEach(Z=>{typeof u.props[Z]>"u"&&typeof o[Z]<"u"&&(H[Z]=o[Z])});const F=yC({props:o,muiFormControl:R,states:["error"]}),j=ce({},o,{disabled:O,labelPlacement:_,required:N,error:F.error}),L=ryt(j),B=(i=T.typography)!=null?i:l.typography;let Q=m;return Q!=null&&Q.type!==Vd&&!p&&(Q=$.jsx(Vd,ce({component:"span"},B,{className:mr(L.label,B==null?void 0:B.className),children:Q}))),$.jsxs(nyt,ce({className:mr(L.root,a),ownerState:j,ref:t},S,{children:[V.cloneElement(u,H),N?$.jsxs(Jmt,{display:"block",children:[Q,$.jsxs(iyt,{ownerState:j,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]}):Q]}))});function oyt(r){return Mr("MuiFormGroup",r)}const Z2t=Br("MuiFormGroup",["root","row","error"]),ayt=["className","row"],syt=r=>{const{classes:e,row:t,error:n}=r;return Ur({root:["root",t&&"row",n&&"error"]},oyt,e)},lyt=Nt("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,t.row&&e.row]}})(({ownerState:r})=>ce({display:"flex",flexDirection:"column",flexWrap:"wrap"},r.row&&{flexDirection:"row"})),cyt=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiFormGroup"}),{className:i,row:o=!1}=n,a=Gt(n,ayt),l=cp(),u=yC({props:n,muiFormControl:l,states:["error"]}),h=ce({},n,{row:o,error:u.error}),p=syt(h);return $.jsx(lyt,ce({className:mr(p.root,i),ownerState:h,ref:t},a))});function uyt(r){return Mr("MuiFormHelperText",r)}const hce=Br("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var fce;const dyt=["children","className","component","disabled","error","filled","focused","margin","required","variant"],hyt=r=>{const{classes:e,contained:t,size:n,disabled:i,error:o,filled:a,focused:l,required:u}=r,h={root:["root",i&&"disabled",o&&"error",n&&`size${nr(n)}`,t&&"contained",l&&"focused",a&&"filled",u&&"required"]};return Ur(h,uyt,e)},fyt=Nt("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,t.size&&e[`size${nr(t.size)}`],t.contained&&e.contained,t.filled&&e.filled]}})(({theme:r,ownerState:e})=>ce({color:(r.vars||r).palette.text.secondary},r.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${hce.disabled}`]:{color:(r.vars||r).palette.text.disabled},[`&.${hce.error}`]:{color:(r.vars||r).palette.error.main}},e.size==="small"&&{marginTop:4},e.contained&&{marginLeft:14,marginRight:14})),CCe=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p"}=n,l=Gt(n,dyt),u=cp(),h=yC({props:n,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),p=ce({},n,{component:a,contained:h.variant==="filled"||h.variant==="outlined",variant:h.variant,size:h.size,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required}),m=hyt(p);return $.jsx(fyt,ce({as:a,ownerState:p,className:mr(m.root,o),ref:t},l,{children:i===" "?fce||(fce=$.jsx("span",{className:"notranslate",children:"​"})):i}))});function pyt(r){return Mr("MuiFormLabel",r)}const bN=Br("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),gyt=["children","className","color","component","disabled","error","filled","focused","required"],myt=r=>{const{classes:e,color:t,focused:n,disabled:i,error:o,filled:a,required:l}=r,u={root:["root",`color${nr(t)}
867`,i&&"disabled",o&&"error",a&&"filled",n&&"focused",l&&"required"],asterisk:["asterisk",o&&"error"]};return Ur(u,pyt,e)},yyt=Nt("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:r},e)=>ce({},e.root,r.color==="secondary"&&e.colorSecondary,r.filled&&e.filled)})(({theme:r,ownerState:e})=>ce({color:(r.vars||r).palette.text.secondary},r.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${bN.focused}`]:{color:(r.vars||r).palette[e.color].main},[`&.${bN.disabled}`]:{color:(r.vars||r).palette.text.disabled},[`&.${bN.error}`]:{color:(r.vars||r).palette.error.main}})),vyt=Nt("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(r,e)=>e.asterisk})(({theme:r})=>({[`&.${bN.error}`]:{color:(r.vars||r).palette.error.main}})),_yt=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiFormLabel"}),{children:i,className:o,component:a="label"}=n,l=Gt(n,gyt),u=cp(),h=yC({props:n,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),p=ce({},n,{color:h.color||"primary",component:a,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required}),m=myt(p);return $.jsxs(yyt,ce({as:a,ownerState:p,className:mr(m.root,o),ref:t},l,{children:[i,h.required&&$.jsxs(vyt,{ownerState:p,"aria-hidden":!0,className:m.asterisk,children:[" ","*"]})]}))}),pce=V.createContext();function byt(r){return Mr("MuiGrid",r)}const wyt=[0,1,2,3,4,5,6,7,8,9,10],Eyt=["column-reverse","column","row-reverse","row"],Cyt=["nowrap","wrap-reverse","wrap"],wO=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],OD=Br("MuiGrid",["root","container","item","zeroMinWidth",...wyt.map(r=>`spacing-xs-${r}`),...Eyt.map(r=>`direction-xs-${r}`),...Cyt.map(r=>`wrap-xs-${r}`),...wO.map(r=>`grid-xs-${r}`),...wO.map(r=>`grid-sm-${r}`),...wO.map(r=>`grid-md-${r}`),...wO.map(r=>`grid-lg-${r}`),...wO.map(r=>`grid-xl-${r}`)]),xyt=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function tP(r){const e=parseFloat(r);return`${e}${String(r).replace(String(e),"")||"px"}`}function Tyt({theme:r,ownerState:e}){let t;return r.breakpoints.keys.reduce((n,i)=>{let o={};if(e[i]&&(t=e[i]),!t)return n;if(t===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(t==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=GT({values:e.columns,breakpoints:r.breakpoints.values}),l=typeof a=="object"?a[i]:a;if(l==null)return n;const u=`${Math.round(t/l*1e8)/1e6}%`;let h={};if(e.container&&e.item&&e.columnSpacing!==0){const p=r.spacing(e.columnSpacing);if(p!=="0px"){const m=`calc(${u} + ${tP(p)})`;h={flexBasis:m,maxWidth:m}}}o=ce({flexBasis:u,flexGrow:0,maxWidth:u},h)}return r.breakpoints.values[i]===0?Object.assign(n,o):n[r.breakpoints.up(i)]=o,n},{})}function Syt({theme:r,ownerState:e}){const t=GT({values:e.direction,breakpoints:r.breakpoints.values});return ap({theme:r},t,n=>{const i={flexDirection:n};return n.indexOf("column")===0&&(i[`& > .${OD.item}`]={maxWidth:"none"}),i})}function xCe({breakpoints:r,values:e}){let t="";Object.keys(e).forEach(i=>{t===""&&e[i]!==0&&(t=i)});const n=Object.keys(r).sort((i,o)=>r[i]-r[o]);return n.slice(0,n.indexOf(t))}function Iyt({theme:r,ownerState:e}){const{container:t,rowSpacing:n}=e;let i={};if(t&&n!==0){const o=GT({values:n,breakpoints:r.breakpoints.values});let a;typeof o=="object"&&(a=xCe({breakpoints:r.breakpoints.values,values:o})),i=ap({theme:r},o,(l,u)=>{var h;const p=r.spacing(l);return p!=="0px"?{marginTop:`-${tP(p)}`,[`& > .${OD.item}`]:{paddingTop:tP(p)}}:(h=a)!=null&&h.includes(u)?{}:{marginTop:0,[`& > .${OD.item}`]:{paddingTop:0}}})}return i}function Ayt({theme:r,ownerState:e}){const{container:t,columnSpacing:n}=e;let i={};if(t&&n!==0){const o=GT({values:n,breakpoints:r.breakpoints.values});let a;typeof o=="object"&&(a=xCe({breakpoints:r.breakpoints.values,values:o})),i=ap({theme:r},o,(l,u)=>{var h;const p=r.spacing(l);return p!=="0px"?{width:`calc(100% + ${tP(p)})`,marginLeft:`-${tP(p)}`,[`& > .${OD.item}`]:{paddingLeft:tP(p)}}:(h=a)!=null&&h.includes(u)?{}:{width:"100%",marginLeft:0,[`& > .${OD.item}`]:{paddingLeft:0}}})}return i}function Ryt(r,e,t={}){if(!r||r<=0)return[];if(typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number")return[t[`spacing-xs-${String(r)}`]];const n=[];return e.forEach(i=>
867{const o=r[i];Number(o)>0&&n.push(t[`spacing-${i}-${String(o)}`])}),n}const Pyt=Nt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r,{container:n,direction:i,item:o,spacing:a,wrap:l,zeroMinWidth:u,breakpoints:h}=t;let p=[];n&&(p=Ryt(a,h,e));const m=[];return h.forEach(_=>{const C=t[_];C&&m.push(e[`grid-${_}-${String(C)}`])}),[e.root,n&&e.container,o&&e.item,u&&e.zeroMinWidth,...p,i!=="row"&&e[`direction-xs-${String(i)}`],l!=="wrap"&&e[`wrap-xs-${String(l)}`],...m]}})(({ownerState:r})=>ce({boxSizing:"border-box"},r.container&&{display:"flex",flexWrap:"wrap",width:"100%"},r.item&&{margin:0},r.zeroMinWidth&&{minWidth:0},r.wrap!=="wrap"&&{flexWrap:r.wrap}),Syt,Iyt,Ayt,Tyt);function kyt(r,e){if(!r||r<=0)return[];if(typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number")return[`spacing-xs-${String(r)}`];const t=[];return e.forEach(n=>{const i=r[n];if(Number(i)>0){const o=`spacing-${n}-${String(i)}`;t.push(o)}}),t}const Oyt=r=>{const{classes:e,container:t,direction:n,item:i,spacing:o,wrap:a,zeroMinWidth:l,breakpoints:u}=r;let h=[];t&&(h=kyt(o,u));const p=[];u.forEach(_=>{const C=r[_];C&&p.push(`grid-${_}-${String(C)}`)});const m={root:["root",t&&"container",i&&"item",l&&"zeroMinWidth",...h,n!=="row"&&`direction-xs-${String(n)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...p]};return Ur(m,byt,e)},Pw=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiGrid"}),{breakpoints:i}=pC(),o=$L(n),{className:a,columns:l,columnSpacing:u,component:h="div",container:p=!1,direction:m="row",item:_=!1,rowSpacing:C,spacing:T=0,wrap:S="wrap",zeroMinWidth:R=!1}=o,O=Gt(o,xyt),N=C||T,H=u||T,F=V.useContext(pce),j=p?l||12:F,L={},B=ce({},O);i.keys.forEach(ie=>{O[ie]!=null&&(L[ie]=O[ie],delete B[ie])});const Q=ce({},o,{columns:j,container:p,direction:m,item:_,rowSpacing:N,columnSpacing:H,wrap:S,zeroMinWidth:R,spacing:T},L,{breakpoints:i.keys}),Z=Oyt(Q);return $.jsx(pce.Provider,{value:j,children:$.jsx(Pyt,ce({ownerState:Q,className:mr(Z.root,a),as:h,ref:t},B))})}),Myt=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function sW(r){return`scale(${r}, ${r**2})`}const Nyt={entering:{opacity:1,transform:sW(1)},entered:{opacity:1,transform:"none"}},S3=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ak=V.forwardRef(function(e,t){const{addEndListener:n,appear:i=!0,children:o,easing:a,in:l,onEnter:u,onEntered:h,onEntering:p,onExit:m,onExited:_,onExiting:C,style:T,timeout:S="auto",TransitionComponent:R=Pv}=e,O=Gt(e,Myt),N=dT(),H=V.useRef(),F=pC(),j=V.useRef(null),L=wo(j,qS(o),t),B=se=>be=>{if(se){const de=j.current;be===void 0?se(de):se(de,be)}},Q=B(p),Z=B((se,be)=>{tCe(se);const{duration:de,delay:ge,easing:Ue}=TB({style:T,timeout:S,easing:a},{mode:"enter"});let Qe;S==="auto"?(Qe=F.transitions.getAutoHeightDuration(se.clientHeight),H.current=Qe):Qe=de,se.style.transition=[F.transitions.create("opacity",{duration:Qe,delay:ge}),F.transitions.create("transform",{duration:S3?Qe:Qe*.666,delay:ge,easing:Ue})].join(","),u&&u(se,be)}),ie=B(h),J=B(C),ne=B(se=>{const{duration:be,delay:de,easing:ge}=TB({style:T,timeout:S,easing:a},{mode:"exit"});let Ue;S==="auto"?(Ue=F.transitions.getAutoHeightDuration(se.clientHeight),H.current=Ue):Ue=be,se.style.transition=[F.transitions.create("opacity",{duration:Ue,delay:de}),F.transitions.create("transform",{duration:S3?Ue:Ue*.666,delay:S3?de:de||Ue*.333,easing:ge})].join(","),se.style.opacity=0,se.style.transform=sW(.75),m&&m(se)}),ue=B(_),K=se=>{S==="auto"&&N.start(H.current||0,se),n&&n(j.current,se)};return $.jsx(R,ce({appear:i,in:l,nodeRef:j,onEnter:Z,onEntered:ie,onEntering:Q,onExit:ne,onExited:ue,onExiting:J,addEndListener:K,timeout:S==="auto"?null:S},O,{children:(se,be)=>V.cloneElement(o,ce({style:ce({opacity:0,transform:sW(.75),visibility:se==="exited"&&!l?"hidden":void 0},Nyt[se],T,o.props.style),ref:L},be))}))});ak.muiSupportAuto=!0;const Dyt=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","
867slots","type"],Lyt=r=>{const{classes:e,disableUnderline:t}=r,i=Ur({root:["root",!t&&"underline"],input:["input"]},qpt,e);return ce({},e,i)},Hyt=Nt(O9,{shouldForwardProp:r=>Ru(r)||r==="classes",name:"MuiInput",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[...P9(r,e),!t.disableUnderline&&e.underline]}})(({theme:r,ownerState:e})=>{let n=r.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return r.vars&&(n=`rgba(${r.vars.palette.common.onBackgroundChannel} / ${r.vars.opacity.inputUnderline})`),ce({position:"relative"},e.formControl&&{"label + &":{marginTop:16}},!e.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r.vars||r).palette[e.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:r.transitions.create("transform",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${bO.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bO.error}`]:{"&::before, &::after":{borderBottomColor:(r.vars||r).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:r.transitions.create("border-bottom-color",{duration:r.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${bO.disabled}, .${bO.error}):before`]:{borderBottom:`2px solid ${(r.vars||r).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${bO.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Fyt=Nt(M9,{name:"MuiInput",slot:"Input",overridesResolver:k9})({}),dJ=V.forwardRef(function(e,t){var n,i,o,a;const l=Pn({props:e,name:"MuiInput"}),{disableUnderline:u,components:h={},componentsProps:p,fullWidth:m=!1,inputComponent:_="input",multiline:C=!1,slotProps:T,slots:S={},type:R="text"}=l,O=Gt(l,Dyt),N=Lyt(l),F={root:{ownerState:{disableUnderline:u}}},j=T??p?qh(T??p,F):F,L=(n=(i=S.root)!=null?i:h.Root)!=null?n:Hyt,B=(o=(a=S.input)!=null?a:h.Input)!=null?o:Fyt;return $.jsx(cJ,ce({slots:{root:L,input:B},slotProps:j,fullWidth:m,inputComponent:_,multiline:C,ref:t,type:R},O,{classes:N}))});dJ.muiName="Input";function Uyt(r){return Mr("MuiInputAdornment",r)}const gce=Br("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var mce;const Byt=["children","className","component","disablePointerEvents","disableTypography","position","variant"],$yt=(r,e)=>{const{ownerState:t}=r;return[e.root,e[`position${nr(t.position)}`],t.disablePointerEvents===!0&&e.disablePointerEvents,e[t.variant]]}
867,zyt=r=>{const{classes:e,disablePointerEvents:t,hiddenLabel:n,position:i,size:o,variant:a}=r,l={root:["root",t&&"disablePointerEvents",i&&`position${nr(i)}`,a,n&&"hiddenLabel",o&&`size${nr(o)}`]};return Ur(l,Uyt,e)},jyt=Nt("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:$yt})(({theme:r,ownerState:e})=>ce({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(r.vars||r).palette.action.active},e.variant==="filled"&&{[`&.${gce.positionStart}&:not(.${gce.hiddenLabel})`]:{marginTop:16}},e.position==="start"&&{marginRight:8},e.position==="end"&&{marginLeft:8},e.disablePointerEvents===!0&&{pointerEvents:"none"})),hJ=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:l=!1,disableTypography:u=!1,position:h,variant:p}=n,m=Gt(n,Byt),_=cp()||{};let C=p;p&&_.variant,_&&!C&&(C=_.variant);const T=ce({},n,{hiddenLabel:_.hiddenLabel,size:_.size,disablePointerEvents:l,position:h,variant:C}),S=zyt(T);return $.jsx(R9.Provider,{value:null,children:$.jsx(jyt,ce({as:a,ownerState:T,className:mr(S.root,o),ref:t},m,{children:typeof i=="string"&&!u?$.jsx(Vd,{color:"text.secondary",children:i}):$.jsxs(V.Fragment,{children:[h==="start"?mce||(mce=$.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})});function Vyt(r){return Mr("MuiInputLabel",r)}const X2t=Br("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]),qyt=["disableAnimation","margin","shrink","variant","className"],Gyt=r=>{const{classes:e,formControl:t,size:n,shrink:i,disableAnimation:o,variant:a,required:l}=r,u={root:["root",t&&"formControl",!o&&"animated",i&&"shrink",n&&n!=="normal"&&`size${nr(n)}`,a],asterisk:[l&&"asterisk"]},h=Ur(u,Vyt,e);return ce({},e,h)},Yyt=Nt(_yt,{shouldForwardProp:r=>Ru(r)||r==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[{[`& .${bN.asterisk}`]:e.asterisk},e.root,t.formControl&&e.formControl,t.size==="small"&&e.sizeSmall,t.shrink&&e.shrink,!t.disableAnimation&&e.animated,t.focused&&e.focused,e[t.variant]]}})(({theme:r,ownerState:e})=>ce({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},e.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},e.size==="small"&&{transform:"translate(0, 17px) scale(1)"},e.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!e.disableAnimation&&{transition:r.transitions.create(["color","transform","max-width"],{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut})},e.variant==="filled"&&ce({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},e.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},e.shrink&&ce({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},e.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),e.variant==="outlined"&&ce({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},e.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},e.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),wN=V.forwardRef(function(e,t){const n=Pn({name:"MuiInputLabel",props:e}),{disableAnimation:i=!1,shrink:o,className:a}=n,l=Gt(n,qyt),u=cp();let h=o;typeof h>"u"&&u&&(h=u.filled||u.focused||u.adornedStart);const p=yC({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),m=ce({},n,{disableAnimation:i,formControl:u,shrink:h,size:p.size,variant:p.variant,required:p.required,focused:p.focused}),_=Gyt(m);return $.jsx(Yyt,ce({"data-shrink":h,ownerState:m,ref:t,className:mr(_.root,a)},l,{classes:_}))});function Wyt(r){return Mr("MuiLinearProgress",r)}const Q2t=Br("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),Kyt=["className","color","value","valueBuffer","variant"];let Lk=r=>r,yce,vce,_ce,bce,wce,Ece;const lW=4,Zyt=Rv(yce||(yce=Lk`
868  0% {
869    left: -35%;
870    right: 100%;
871  }
872
873  60% {
874    left: 100%;
875    right: -90%;
876  }
877
878  100% {
879    left: 100%;
880    right: -90%;
881  }
882`)),Xyt=Rv(vce||(vce=Lk`
883  0% {
884    left: -200%;
885    right: 100%;
886  }
887
888  60% {
889    left: 107%;
890    right: -8%;
891  }
892
893  100% {
894    left: 107%;
895    right: -8%;
896  }
897`)),Qyt=Rv(_ce||(_ce=Lk`
898  0% {
899    opacity: 1;
900    background-position: 0 -23px;
901  }
902
903  60% {
904    opacity: 0;
905    background-position: 0 -23px;
906  }
907
908  100% {
909    opacity: 1;
910    background-position: -200px -23px;
911  }
912`)),Jyt=r=>{const{classes:e,variant:t,color:n}=r,i={root:["root",`color${nr(n)}`,t],dashed:["dashed",`dashedColor${nr(n)}`],bar1:["bar",`barColor${nr(n)}`,(t==="indeterminate"||t==="query")&&"bar1Indeterminate",t==="determinate"&&"bar1Determinate",t==="buffer"&&"bar1Buffer"],bar2:["bar",t!=="buffer"&&`barColor${nr(n)}`,t==="buffer"&&`color${nr(n)}`,(t==="indeterminate"||t==="query")&&"bar2Indeterminate",t==="buffer"&&"bar2Buffer"]};return Ur(i,Wyt,e)},fJ=(r,e)=>e==="inherit"?"currentColor":r.vars?r.vars.palette.LinearProgress[`${e}Bg`]:r.palette.mode==="light"?Qn.lighten(r.palette[e].main,.62):Qn.darken(r.palette[e].main,.5),evt=Nt("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,e[`color${nr(t.color)}`],e[t.variant]]}})(({ownerState:r,theme:e})=>ce({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:fJ(e,r.color)},r.color==="inherit"&&r.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},r.variant==="buffer"&&{backgroundColor:"transparent"},r.variant==="query"&&{transform:"rotate(180deg)"})),tvt=Nt("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.dashed,e[`dashedColor${nr(t.color)}`]]}})(({ownerState:r,theme:e})=>{const t=fJ(e,r.color);return ce({position:"absolute",marginTop:0,height:"100%",width:"100%"},r.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${t} 0%, ${t} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},Eb(bce||(bce=Lk`
913    animation: ${0} 3s infinite linear;
914  `),Qyt)),rvt=Nt("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.bar,e[`barColor${nr(t.color)}`],(t.variant==="indeterminate"||t.variant==="query")&&e.bar1Indeterminate,t.variant==="determinate"&&e.bar1Determinate,t.variant==="buffer"&&e.bar1Buffer]}})(({ownerState:r,theme:e})=>ce({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:r.color==="inherit"?"currentColor":(e.vars||e).palette[r.color].main},r.variant==="determinate"&&{transition:`transform .${lW}s linear`},r.variant==="buffer"&&{zIndex:1,transition:`transform .${lW}s linear`}),({ownerState:r})=>(r.variant==="indeterminate"||r.variant==="query")&&Eb(wce||(wce=Lk`
915      width: auto;
916      animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
917    `),Zyt)),nvt=Nt("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.bar,e[`barColor${nr(t.color)}`],(t.variant==="indeterminate"||t.variant==="query")&&e.bar2Indeterminate,t.variant==="buffer"&&e.bar2Buffer]}})(({ownerState:r,theme:e})=>ce({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},r.variant!=="buffer"&&{backgroundColor:r.color==="inherit"?"currentColor":(e.vars||e).palette[r.color].main},r.color==="inherit"&&{opacity:.3},r.variant==="buffer"&&{backgroundColor:fJ(e,r.color),transition:`transform .${lW}s linear`}),({ownerState:r})=>(r.variant==="indeterminate"||r.variant==="query")&&Eb(Ece||(Ece=Lk`
918      width: auto;
919      animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
920    `),Xyt)),ivt=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiLinearProgress"}),{className:i,color:o="primary",value:a,valueBuffer:l,variant:u="indeterminate"}=n,h=Gt(n,Kyt),p=ce({},n,{color:o,variant:u}),m=Jyt(p),_=XQ(),C={},T={bar1:{},bar2:{}};if((u==="determinate"||u==="buffer")&&a!==void 0){C["aria-valuenow"]=Math.round(a),C["aria-valuemin"]=0,C["aria-valuemax"]=100;let S=a-100;_&&(S=-S),T.bar1.transform=`translateX(${S}%)`}if(u==="buffer"&&l!==void 0){let S=(l||0)-100;_&&(S=-S),T.bar2.transform=`translateX(${S}%)`}return $.jsxs(evt,ce({className:mr(m.root,i),ownerState:p,role:"progressbar"},C,{ref:t},h,{children:[u==="buffer"?$.jsx(tvt,{className:m.dashed,ownerState:p}):null,$.jsx(rvt,{className:m.bar1,ownerState:p,style:T.bar1}),u==="determinate"?null:$.jsx(nvt,{className:m.bar2,ownerState:p,style:T.bar2})]}))}),gv=V.createContext({});function ovt(r){return Mr("MuiList",r)}const J2t=Br("MuiList",["root","padding","dense","subheader"]),avt=["children","className","component","dense","disablePadding","subheader"],svt=r=>{const{classes:e,disablePadding:t,dense:n,subheader:i}=r;return Ur({root:["root",!t&&"padding",n&&"dense",i&&"subheader"]},ovt,e)},lvt=Nt("ul",{name:"MuiList",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,!t.disablePadding&&e.padding,t.dense&&e.dense,t.subheader&&e.subheader]}})(({ownerState:r})=>ce({listStyle:"none",margin:0,padding:0,position:"relative"},!r.disablePadding&&{paddingTop:8,paddingBottom:8},r.subheader&&{paddingTop:0})),RB=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:l=!1,disablePadding:u=!1,subheader:h}=n,p=Gt(n,avt),m=V.useMemo(()=>({dense:l}),[l]),_=ce({},n,{component:a,dense:l,disablePadding:u}),C=svt(_);return $.jsx(gv.Provider,{value:m,children:$.jsxs(lvt,ce({as:a,className:mr(C.root,o),ref:t,ownerState:_},p,{children:[h,i]}))})});function cvt(r){return Mr("MuiListItem",r)}const HA=Br("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function uvt(r){return Mr("MuiListItemButton",r)}const FA=Br("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),dvt=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],hvt=(r,e)=>{const{ownerState:t}=r;return[e.root,t.dense&&e.dense,t.alignItems==="flex-start"&&e.alignItemsFlexStart,t.divi
vendor: 4,118 bytes, line 920
920der&&e.divider,!t.disableGutters&&e.gutters]},fvt=r=>{const{alignItems:e,classes:t,dense:n,disabled:i,disableGutters:o,divider:a,selected:l}=r,h=Ur({root:["root",n&&"dense",!o&&"gutters",a&&"divider",i&&"disabled",e==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},uvt,t);return ce({},t,h)},pvt=Nt(Cb,{shouldForwardProp:r=>Ru(r)||r==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:hvt})(({theme:r,ownerState:e})=>ce({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:r.transitions.create("background-color",{duration:r.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(r.vars||r).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${FA.selected}`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / ${r.vars.palette.action.selectedOpacity})`:Qn.alpha(r.palette.primary.main,r.palette.action.selectedOpacity),[`&.${FA.focusVisible}`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / calc(${r.vars.palette.action.selectedOpacity} + ${r.vars.palette.action.focusOpacity}))`:Qn.alpha(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}},[`&.${FA.selected}:hover`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / calc(${r.vars.palette.action.selectedOpacity} + ${r.vars.palette.action.hoverOpacity}))`:Qn.alpha(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / ${r.vars.palette.action.selectedOpacity})`:Qn.alpha(r.palette.primary.main,r.palette.action.selectedOpacity)}},[`&.${FA.focusVisible}`]:{backgroundColor:(r.vars||r).palette.action.focus},[`&.${FA.disabled}`]:{opacity:(r.vars||r).palette.action.disabledOpacity}},e.divider&&{borderBottom:`1px solid ${(r.vars||r).palette.divider}`,backgroundClip:"padding-box"},e.alignItems==="flex-start"&&{alignItems:"flex-start"},!e.disableGutters&&{paddingLeft:16,paddingRight:16},e.dense&&{paddingTop:4,paddingBottom:4})),gvt=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:a="div",children:l,dense:u=!1,disableGutters:h=!1,divider:p=!1,focusVisibleClassName:m,selected:_=!1,className:C}=n,T=Gt(n,dvt),S=V.useContext(gv),R=V.useMemo(()=>({dense:u||S.dense||!1,alignItems:i,disableGutters:h}),[i,S.dense,u,h]),O=V.useRef(null);nl(()=>{o&&O.current&&O.current.focus()},[o]);const N=ce({},n,{alignItems:i,dense:R.dense,disableGutters:h,divider:p,selected:_}),H=fvt(N),F=wo(O,t);return $.jsx(gv.Provider,{value:R,children:$.jsx(pvt,ce({ref:F,href:T.href||T.to,component:(T.href||T.to)&&a==="div"?"button":a,focusVisibleClassName:mr(H.focusVisible,m),ownerState:N,className:mr(H.root,C)},T,{classes:H,children:l}))})});function mvt(r){return Mr("MuiListItemSecondaryAction",r)}const eOt=Br("MuiListItemSecondaryAction",["root","disableGutters"]),yvt=["className"],vvt=r=>{const{disableGutters:e,classes:t}=r;return Ur({root:["root",e&&"disableGutters"]},mvt,t)},_vt=Nt("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,t.disableGutters&&e.disableGutters]}})(({ownerState:r})=>ce({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},r.disableGutters&&{right:0})),TCe=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiListItemSecondaryAction"}),{className:i}=n,o=Gt(n,yvt),a=V.useContext(gv),l=ce({},n,{disableGutters:a.disableGutters}),u=vvt(l);return $.jsx(_vt,ce({className:mr(u.root,i),ownerState:l,ref:t},o))});TCe.muiName="ListItemSecondaryAction";const bvt=["className"],wvt=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","
920slots"],Evt=(r,e)=>{const{ownerState:t}=r;return[e.root,t.dense&&e.dense,t.alignItems==="flex-start"&&e.alignItemsFlexStart,t.divider&&e.divider,!t.disableGutters&&e.gutters,!t.disablePadding&&e.padding,t.button&&e.button,t.hasSecondaryAction&&e.secondaryAction]},Cvt=r=>{const{alignItems:e,button:t,classes:n,dense:i,disabled:o,disableGutters:a,disablePadding:l,divider:u,hasSecondaryAction:h,selected:p}=r;return Ur({root:["root",i&&"dense",!a&&"gutters",!l&&"padding",u&&"divider",o&&"disabled",t&&"button",e==="flex-start"&&"alignItemsFlexStart",h&&"secondaryAction",p&&"selected"],container:["container"]},cvt,n)},xvt=Nt("div",{name:"MuiListItem",slot:"Root",overridesResolver:Evt})(({theme:r,ownerState:e})=>ce({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!e.disablePadding&&ce({paddingTop:8,paddingBottom:8},e.dense&&{paddingTop:4,paddingBottom:4},!e.disableGutters&&{paddingLeft:16,paddingRight:16},!!e.secondaryAction&&{paddingRight:48}),!!e.secondaryAction&&{[`& > .${FA.root}`]:{paddingRight:48}},{[`&.${HA.focusVisible}`]:{backgroundColor:(r.vars||r).palette.action.focus},[`&.${HA.selected}`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / ${r.vars.palette.action.selectedOpacity})`:Qn.alpha(r.palette.primary.main,r.palette.action.selectedOpacity),[`&.${HA.focusVisible}`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / calc(${r.vars.palette.action.selectedOpacity} + ${r.vars.palette.action.focusOpacity}))`:Qn.alpha(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}},[`&.${HA.disabled}`]:{opacity:(r.vars||r).palette.action.disabledOpacity}},e.alignItems==="flex-start"&&{alignItems:"flex-start"},e.divider&&{borderBottom:`1px solid ${(r.vars||r).palette.divider}`,backgroundClip:"padding-box"},e.button&&{transition:r.transitions.create("background-color",{duration:r.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(r.vars||r).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${HA.selected}:hover`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / calc(${r.vars.palette.action.selectedOpacity} + ${r.vars.palette.action.hoverOpacity}))`:Qn.alpha(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / ${r.vars.palette.action.selectedOpacity})`:Qn.alpha(r.palette.primary.main,r.palette.action.selectedOpacity)}}},e.hasSecondaryAction&&{paddingRight:48})),Tvt=Nt("li",{name:"MuiListItem",slot:"Container",overridesResolver:(r,e)=>e.container})({position:"relative"}),SCe=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:a=!1,children:l,className:u,component:h,components:p={},componentsProps:m={},ContainerComponent:_="li",ContainerProps:{className:C}={},dense:T=!1,disabled:S=!1,disableGutters:R=!1,disablePadding:O=!1,divider:N=!1,focusVisibleClassName:H,secondaryAction:F,selected:j=!1,slotProps:L={},slots:B={}}=n,Q=Gt(n.ContainerProps,bvt),Z=Gt(n,wvt),ie=V.useContext(gv),J=V.useMemo(()=>({dense:T||ie.dense||!1,alignItems:i,disableGutters:R}),[i,ie.dense,T,R]),ne=V.useRef(null);nl(()=>{o&&ne.current&&ne.current.focus()},[o]);const ue=V.Children.toArray(l),K=ue.length&&pN(ue[ue.length-1],["ListItemSecondaryAction"]),se=ce({},n,{alignItems:i,autoFocus:o,button:a,dense:J.dense,disabled:S,disableGutters:R,disablePadding:O,divider:N,hasSecondaryAction:K,selected:j}),be=Cvt(se),de=wo(ne,t),ge=B.root||p.Root||xvt,Ue=L.root||m.root||{},Qe=ce({className:mr(be.root,Ue.className,u),disabled:S},Z);let ve=h||"li";return a&&(Qe.component=h||"div",Qe.focusVisibleClassName=mr(HA.focusVisible,H),ve=Cb),K?(ve=!Qe.component&&!h?"div":ve,_==="li"&&(ve==="li"?ve="div":Qe.component==="li"&&(Qe.component="div")),$.jsx(gv.Provider,{value:J,children:$.jsxs(Tvt,ce({as:_,className:mr(be.container,C),ref:de,ownerState:se},Q,{children:[$.jsx(ge,ce({},Ue,!QP(ge)&&{as:ve,ownerState:ce({},se,Ue.ownerState)},Qe,{children:ue})),ue.pop()]}))})):$.jsx(gv.Provider,{value:J,children:$.jsxs(ge,ce({},Ue,{as:ve,ref:de},!QP(ge)&&{ownerState:ce({},se,Ue.ownerState)},Qe,{children:[ue,F&&$.jsx(TCe,{children:F})]}))})});function Svt(r){return Mr("MuiListItemIcon",r)}const Cce=Br("MuiListItemIcon",["root","alignItemsFlexStart"]),Ivt=["className"],Avt=r=>{const{alignItems:e,classes:t}=r;return Ur({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},Svt,t)},Rvt=Nt("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,t.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(({theme:r,ownerState:e})=>ce({minWidth:56,color:(r.vars||r).palette.action.active,flexShrink:0,display:"inline-flex"},e.alignItems==="flex-start"&&{marginTop:8})),Pvt=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiListItemIcon"}),{className:i}=n,o=Gt(n,Ivt),a=V.useContext(gv),l=ce({},n,{alignItems:a.alignItems}),u=Avt(l);return $.jsx(Rvt,ce({className:mr(u.root,i),ownerState:l,ref:t},o))});function kvt(r){return Mr("MuiListItemText",r)}const PB=Br("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Ovt=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Mvt=r=>{const{classes:e,inset:t,primary:n,secondary:i,dense:o}=r;return Ur({root:["root",t&&"inset",o&&"dense",n&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},kvt,e)},Nvt=Nt("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[{[`& .${PB.primary}`]:e.primary},{[`& .${PB.secondary}`]:e.secondary},e.root,t.inset&&e.inset,t.primary&&t.secondary&&e.multiline,t.dense&&e.dense]}
920})(({ownerState:r})=>ce({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},r.primary&&r.secondary&&{marginTop:6,marginBottom:6},r.inset&&{paddingLeft:56})),Dvt=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:l=!1,primary:u,primaryTypographyProps:h,secondary:p,secondaryTypographyProps:m}=n,_=Gt(n,Ovt),{dense:C}=V.useContext(gv);let T=u??i,S=p;const R=ce({},n,{disableTypography:a,inset:l,primary:!!T,secondary:!!S,dense:C}),O=Mvt(R);return T!=null&&T.type!==Vd&&!a&&(T=$.jsx(Vd,ce({variant:C?"body2":"body1",className:O.primary,component:h!=null&&h.variant?void 0:"span",display:"block"},h,{children:T}))),S!=null&&S.type!==Vd&&!a&&(S=$.jsx(Vd,ce({variant:"body2",className:O.secondary,color:"text.secondary",display:"block"},m,{children:S}))),$.jsxs(Nvt,ce({className:mr(O.root,o),ownerState:R,ref:t},_,{children:[T,S]}))}),Lvt=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function I3(r,e,t){return r===e?r.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t?null:r.firstChild}function xce(r,e,t){return r===e?t?r.firstChild:r.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t?null:r.lastChild}function ICe(r,e){if(e===void 0)return!0;let t=r.innerText;return t===void 0&&(t=r.textContent),t=t.trim().toLowerCase(),t.length===0?!1:e.repeating?t[0]===e.keys[0]:t.indexOf(e.keys.join(""))===0}function EO(r,e,t,n,i,o){let a=!1,l=i(r,e,e?t:!1);for(;l;){if(l===r.firstChild){if(a)return!1;a=!0}const u=n?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!ICe(l,o)||u)l=i(r,l,t);else return l.focus(),!0}return!1}const Hvt=V.forwardRef(function(e,t){const{actions:n,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:l,disabledItemsFocusable:u=!1,disableListWrap:h=!1,onKeyDown:p,variant:m="selectedMenu"}=e,_=Gt(e,Lvt),C=V.useRef(null),T=V.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});nl(()=>{i&&C.current.focus()},[i]),V.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(H,{direction:F})=>{const j=!C.current.style.width;if(H.clientHeight<C.current.clientHeight&&j){const L=`${rEe(Il(H))}px`;C.current.style[F==="rtl"?"paddingLeft":"paddingRight"]=L,C.current.style.width=`calc(100% + ${L})`}return C.current}}),[]);const S=H=>{const F=C.current,j=H.key,L=Il(F).activeElement;if(j==="ArrowDown")H.preventDefault(),EO(F,L,h,u,I3);else if(j==="ArrowUp")H.preventDefault(),EO(F,L,h,u,xce);else if(j==="Home")H.preventDefault(),EO(F,null,h,u,I3);else if(j==="End")H.preventDefault(),EO(F,null,h,u,xce);else if(j.length===1){const B=T.current,Q=j.toLowerCase(),Z=performance.now();B.keys.length>0&&(Z-B.lastTime>500?(B.keys=[],B.repeating=!0,B.previousKeyMatched=!0):B.repeating&&Q!==B.keys[0]&&(B.repeating=!1)),B.lastTime=Z,B.keys.push(Q);const ie=L&&!B.repeating&&ICe(L,B);B.previousKeyMatched&&(ie||EO(F,L,!1,u,I3,B))?H.preventDefault():B.previousKeyMatched=!1}p&&p(H)},R=wo(C,t);let O=-1;V.Children.forEach(a,(H,F)=>{if(!V.isValidElement(H)){O===F&&(O+=1,O>=a.length&&(O=-1));return}H.props.disabled||(m==="selectedMenu"&&H.props.selected||O===-1)&&(O=F),O===F&&(H.props.disabled||H.props.muiSkipListHighlight||H.type.muiSkipListHighlight)&&(O+=1,O>=a.length&&(O=-1))});const N=V.Children.map(a,(H,F)=>{if(F===O){const j={};return o&&(j.autoFocus=!0),H.props.tabIndex===void 0&&m==="selectedMenu"&&(j.tabIndex=0),V.cloneElement(H,j)}return H});return $.jsx(RB,ce({role:"menu",ref:R,className:l,onKeyDown:S,tabIndex:i?0:-1},_,{children:N}))});function Fvt(r){return Mr("MuiPopover",r)}const tOt=Br("MuiPopover",["root","paper"]),Uvt=["onEntering"],Bvt=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],$vt=["slotProps"];function Tce(r,e){let t=0;return typeof e=="number"?t=e:e==="center"?t=r.height/2:e==="bottom"&&(t=r.height),t}function Sce(r,e){let t=0;return typeof e=="number"?t=e:e==="center"?t=r.width/2:e==="right"&&(t=r.width),t}function Ice(r){return[r.horizontal,r.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function A3(r){return typeof r=="function"?r():r}const zvt=r=>{const{classes:e}=r;return Ur({root:["root"],paper:["paper"]},Fvt,e)},jvt=Nt(bCe,{name:"MuiPopover",slot:"Root",overridesResolver:(r,e)=>e.root})({}),ACe=Nt(gC,{name:"MuiPopover",slot:"Paper",overridesResolver:(r,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),D9=V.forwardRef(function(e,t){var n,i,o;const a=Pn({props:e,name:"MuiPopover"}),{action:l,anchorEl:u,anchorOrigin:h={vertical:"top",horizontal:"left"}
920,anchorPosition:p,anchorReference:m="anchorEl",children:_,className:C,container:T,elevation:S=8,marginThreshold:R=16,open:O,PaperProps:N={},slots:H,slotProps:F,transformOrigin:j={vertical:"top",horizontal:"left"},TransitionComponent:L=ak,transitionDuration:B="auto",TransitionProps:{onEntering:Q}={},disableScrollLock:Z=!1}=a,ie=Gt(a.TransitionProps,Uvt),J=Gt(a,Bvt),ne=(n=F==null?void 0:F.paper)!=null?n:N,ue=V.useRef(),K=wo(ue,ne.ref),se=ce({},a,{anchorOrigin:h,anchorReference:m,elevation:S,marginThreshold:R,externalPaperSlotProps:ne,transformOrigin:j,TransitionComponent:L,transitionDuration:B,TransitionProps:ie}),be=zvt(se),de=V.useCallback(()=>{if(m==="anchorPosition")return p;const re=A3(u),me=(re&&re.nodeType===1?re:Il(ue.current).body).getBoundingClientRect();return{top:me.top+Tce(me,h.vertical),left:me.left+Sce(me,h.horizontal)}},[u,h.horizontal,h.vertical,p,m]),ge=V.useCallback(re=>({vertical:Tce(re,j.vertical),horizontal:Sce(re,j.horizontal)}),[j.horizontal,j.vertical]),Ue=V.useCallback(re=>{const te={width:re.offsetWidth,height:re.offsetHeight},me=ge(te);if(m==="none")return{top:null,left:null,transformOrigin:Ice(me)};const Ae=de();let _e=Ae.top-me.vertical,Ve=Ae.left-me.horizontal;
920const it=_e+te.height,vt=Ve+te.width,kt=YE(A3(u)),rt=kt.innerHeight-R,bt=kt.innerWidth-R;if(R!==null&&_e<R){const Xe=_e-R;_e-=Xe,me.vertical+=Xe}else if(R!==null&&it>rt){const Xe=it-rt;_e-=Xe,me.vertical+=Xe}if(R!==null&&Ve<R){const Xe=Ve-R;Ve-=Xe,me.horizontal+=Xe}else if(vt>bt){const Xe=vt-bt;Ve-=Xe,me.horizontal+=Xe}return{top:`${Math.round(_e)}px`,left:`${Math.round(Ve)}px`,transformOrigin:Ice(me)}},[u,m,de,ge,R]),[Qe,ve]=V.useState(O),pe=V.useCallback(()=>{const re=ue.current;if(!re)return;const te=Ue(re);te.top!==null&&(re.style.top=te.top),te.left!==null&&(re.style.left=te.left),re.style.transformOrigin=te.transformOrigin,ve(!0)},[Ue]);V.useEffect(()=>(Z&&window.addEventListener("scroll",pe),()=>window.removeEventListener("scroll",pe)),[u,Z,pe]);const He=(re,te)=>{Q&&Q(re,te),pe()},Re=()=>{ve(!1)};V.useEffect(()=>{O&&pe()}),V.useImperativeHandle(l,()=>O?{updatePosition:()=>{pe()}}:null,[O,pe]),V.useEffect(()=>{if(!O)return;const re=kQ(()=>{pe()}),te=YE(u);return te.addEventListener("resize",re),()=>{re.clear(),te.removeEventListener("resize",re)}},[u,O,pe]);let $e=B;B==="auto"&&!L.muiSupportAuto&&($e=void 0);const tt=T||(u?Il(A3(u)).body:void 0),ot=(i=H==null?void 0:H.root)!=null?i:jvt,qe=(o=H==null?void 0:H.paper)!=null?o:ACe,lt=bo({elementType:qe,externalSlotProps:ce({},ne,{style:Qe?ne.style:ce({},ne.style,{opacity:0})}),additionalProps:{elevation:S,ref:K},ownerState:se,className:mr(be.paper,ne==null?void 0:ne.className)}),Et=bo({elementType:ot,externalSlotProps:(F==null?void 0:F.root)||{},externalForwardedProps:J,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:tt,open:O},ownerState:se,className:mr(be.root,C)}),{slotProps:Oe}=Et,le=Gt(Et,$vt);return $.jsx(ot,ce({},le,!QP(ot)&&{slotProps:Oe,disableScrollLock:Z},{children:$.jsx(L,ce({appear:!0,in:O,onEntering:He,onExited:Re,timeout:$e},ie,{children:$.jsx(qe,ce({},lt,{children:_}))}))}))});function Vvt(r){return Mr("MuiMenu",r)}const rOt=Br("MuiMenu",["root","paper","list"]),qvt=["onEntering"],Gvt=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Yvt={vertical:"top",horizontal:"right"},Wvt={vertical:"top",horizontal:"left"},Kvt=r=>{const{classes:e}=r;return Ur({root:["root"],paper:["paper"],list:["list"]},Vvt,e)},Zvt=Nt(D9,{shouldForwardProp:r=>Ru(r)||r==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(r,e)=>e.root})({}),Xvt=Nt(ACe,{name:"MuiMenu",slot:"Paper",overridesResolver:(r,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Qvt=Nt(Hvt,{name:"MuiMenu",slot:"List",overridesResolver:(r,e)=>e.list})({outline:0}),Jvt=V.forwardRef(function(e,t){var n,i;const o=Pn({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:u,disableAutoFocusItem:h=!1,MenuListProps:p={},onClose:m,open:_,PaperProps:C={},PopoverClasses:T,transitionDuration:S="auto",TransitionProps:{onEntering:R}={},variant:O="selectedMenu",slots:N={},slotProps:H={}}=o,F=Gt(o.TransitionProps,qvt),j=Gt(o,Gvt),L=XQ(),B=ce({},o,{autoFocus:a,disableAutoFocusItem:h,MenuListProps:p,onEntering:R,PaperProps:C,transitionDuration:S,TransitionProps:F,variant:O}),Q=Kvt(B),Z=a&&!h&&_,ie=V.useRef(null),J=(ge,Ue)=>{ie.current&&ie.current.adjustStyleForScrollbar(ge,{direction:L?"rtl":"ltr"}),R&&R(ge,Ue)},ne=ge=>{ge.key==="Tab"&&(ge.preventDefault(),m&&m(ge,"tabKeyDown"))};let ue=-1;V.Children.map(l,(ge,Ue)=>{V.isValidElement(ge)&&(ge.props.disabled||(O==="selectedMenu"&&ge.props.selected||ue===-1)&&(ue=Ue))});const K=(n=N.paper)!=null?n:Xvt,se=(i=H.paper)!=null?i:C,be=bo({elementType:N.root,externalSlotProps:H.root,ownerState:B,className:[Q.root,u]}),de=bo({elementType:K,externalSlotProps:se,ownerState:B,className:Q.paper});return $.jsx(Zvt,ce({onClose:m,anchorOrigin:{vertical:"bottom",horizontal:L?"right":"left"},transformOrigin:L?Yvt:Wvt,slots:{paper:K,root:N.root},slotProps:{root:be,paper:de},open:_,ref:t,transitionDuration:S,TransitionProps:ce({onEntering:J},F),ownerState:B},j,{classes:T,children:$.jsx(Qvt,ce({onKeyDown:ne,actions:ie,autoFocus:a&&(ue===-1||h),autoFocusItem:Z,variant:O},p,{className:mr(Q.list,p.className),children:l}))}))});function e0t(r){return Mr("MuiMenuItem",r)}const CO=Br("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),t0t=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],r0t=(r,e)=>{const{ownerState:t}=r;
vendor: 6,712 bytes, line 920
920return[e.root,t.dense&&e.dense,t.divider&&e.divider,!t.disableGutters&&e.gutters]},n0t=r=>{const{disabled:e,dense:t,divider:n,disableGutters:i,selected:o,classes:a}=r,u=Ur({root:["root",t&&"dense",e&&"disabled",!i&&"gutters",n&&"divider",o&&"selected"]},e0t,a);return ce({},a,u)},i0t=Nt(Cb,{shouldForwardProp:r=>Ru(r)||r==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:r0t})(({theme:r,ownerState:e})=>ce({},r.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!e.disableGutters&&{paddingLeft:16,paddingRight:16},e.divider&&{borderBottom:`1px solid ${(r.vars||r).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(r.vars||r).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${CO.selected}`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / ${r.vars.palette.action.selectedOpacity})`:Qn.alpha(r.palette.primary.main,r.palette.action.selectedOpacity),[`&.${CO.focusVisible}`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / calc(${r.vars.palette.action.selectedOpacity} + ${r.vars.palette.action.focusOpacity}))`:Qn.alpha(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}},[`&.${CO.selected}:hover`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / calc(${r.vars.palette.action.selectedOpacity} + ${r.vars.palette.action.hoverOpacity}))`:Qn.alpha(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / ${r.vars.palette.action.selectedOpacity})`:Qn.alpha(r.palette.primary.main,r.palette.action.selectedOpacity)}},[`&.${CO.focusVisible}`]:{backgroundColor:(r.vars||r).palette.action.focus},[`&.${CO.disabled}`]:{opacity:(r.vars||r).palette.action.disabledOpacity},[`& + .${dce.root}`]:{marginTop:r.spacing(1),marginBottom:r.spacing(1)},[`& + .${dce.inset}`]:{marginLeft:52},[`& .${PB.root}`]:{marginTop:0,marginBottom:0},[`& .${PB.inset}`]:{paddingLeft:36},[`& .${Cce.root}`]:{minWidth:36}},!e.dense&&{[r.breakpoints.up("sm")]:{minHeight:"auto"}},e.dense&&ce({minHeight:32,paddingTop:4,paddingBottom:4},r.typography.body2,{[`& .${Cce.root} svg`]:{fontSize:"1.25rem"}}))),PM=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:l=!1,disableGutters:u=!1,focusVisibleClassName:h,role:p="menuitem",tabIndex:m,className:_}=n,C=Gt(n,t0t),T=V.useContext(gv),S=V.useMemo(()=>({dense:a||T.dense||!1,disableGutters:u}),[T.dense,a,u]),R=V.useRef(null);nl(()=>{i&&R.current&&R.current.focus()},[i]);const O=ce({},n,{dense:S.dense,divider:l,disableGutters:u}),N=n0t(n),H=wo(R,t);let F;return n.disabled||(F=m!==void 0?m:-1),$.jsx(gv.Provider,{value:S,children:$.jsx(i0t,ce({ref:H,role:p,tabIndex:F,component:o,focusVisibleClassName:mr(N.focusVisible,h),className:mr(N.root,_)},C,{ownerState:O,classes:N}))})});function o0t(r){return Mr("MuiNativeSelect",r)}const pJ=Br("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),a0t=["className","disabled","error","IconComponent","inputRef","variant"],s0t=r=>{const{classes:e,variant:t,disabled:n,multiple:i,open:o,error:a}=r,l={select:["select",t,n&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${nr(t)}`,o&&"iconOpen",n&&"disabled"]};return Ur(l,o0t,e)},RCe=({ownerState:r,theme:e})=>ce({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":ce({},e.vars?{backgroundColor:`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:e.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${pJ.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},r.variant==="filled"&&{"&&&":{paddingRight:32}},r.variant==="outlined"&&{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}),l0t=Nt("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ru,overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.select,e[t.variant],t.error&&e.error,{[`&.${pJ.multiple}`]:e.multiple}]}})(RCe),PCe=({ownerState:r,theme:e})=>ce({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${pJ.disabled}`]:{color:(e.vars||e).palette.action.disabled}},r.open&&{transform:"rotate(180deg)"},r.variant==="filled"&&{right:7},r.variant==="outlined"&&{right:7}),c0t=Nt("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.icon,t.variant&&e[`icon${nr(t.variant)}`],t.open&&e.iconOpen]}})(PCe),u0t=V.forwardRef(function(e,t){const{className:n,disabled:i,error:o,IconComponent:a,inputRef:l,variant:u="standard"}=e,h=Gt(e,a0t),p=ce({},e,{disabled:i,variant:u,error:o}),m=s0t(p);return $.jsxs(V.Fragment,{children:[$.jsx(l0t,ce({ownerState:p,className:mr(m.select,n),disabled:i,ref:l||t},h)),e.multiple?null:$.jsx(c0t,{as:a,ownerState:p,className:m.icon})]})});var Ace;const d0t=["children","classes","className","label","notched"],h0t=Nt("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Ru})({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%"}),f0t=Nt("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Ru})(({ownerState:r,theme:e})=>ce({float:"unset",width:"auto",overflow:"hidden"},!r.withLabel&&{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},r.withLabel&&ce({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},r.notched&&{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})})));function p0t(r){const{className:e,label:t,notched:n}=r,i=Gt(r,d0t),o=t!=null&&t!=="",a=ce({},r,{notched:n,withLabel:o});
920return $.jsx(h0t,ce({"aria-hidden":!0,className:e,ownerState:a},i,{children:$.jsx(f0t,{ownerState:a,children:o?$.jsx("span",{children:t}):Ace||(Ace=$.jsx("span",{className:"notranslate",children:"​"}))})}))}const g0t=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],m0t=r=>{const{classes:e}=r,n=Ur({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Gpt,e);return ce({},e,n)},y0t=Nt(O9,{shouldForwardProp:r=>Ru(r)||r==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:P9})(({theme:r,ownerState:e})=>{const t=r.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return ce({position:"relative",borderRadius:(r.vars||r).shape.borderRadius,[`&:hover .${Aw.notchedOutline}`]:{borderColor:(r.vars||r).palette.text.primary},"@media (hover: none)":{[`&:hover .${Aw.notchedOutline}`]:{borderColor:r.vars?`rgba(${r.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Aw.focused} .${Aw.notchedOutline}`]:{borderColor:(r.vars||r).palette[e.color].main,borderWidth:2},[`&.${Aw.error} .${Aw.notchedOutline}`]:{borderColor:(r.vars||r).palette.error.main},[`&.${Aw.disabled} .${Aw.notchedOutline}`]:{borderColor:(r.vars||r).palette.action.disabled}},e.startAdornment&&{paddingLeft:14},e.endAdornment&&{paddingRight:14},e.multiline&&ce({padding:"16.5px 14px"},e.size==="small"&&{padding:"8.5px 14px"}))}),v0t=Nt(p0t,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(r,e)=>e.notchedOutline})(({theme:r})=>{const e=r.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:r.vars?`rgba(${r.vars.palette.common.onBackgroundChannel} / 0.23)`:e}}),_0t=Nt(M9,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:k9})(({theme:r,ownerState:e})=>ce({padding:"16.5px 14px"},!r.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:r.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:r.palette.mode==="light"?null:"#fff",caretColor:r.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},r.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[r.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},e.size==="small"&&{padding:"8.5px 14px"},e.multiline&&{padding:0},e.startAdornment&&{paddingLeft:0},e.endAdornment&&{paddingRight:0})),gJ=V.forwardRef(function(e,t){var n,i,o,a,l;const u=Pn({props:e,name:"MuiOutlinedInput"}),{components:h={},fullWidth:p=!1,inputComponent:m="input",label:_,multiline:C=!1,notched:T,slots:S={},type:R="text"}=u,O=Gt(u,g0t),N=m0t(u),H=cp(),F=yC({props:u,muiFormControl:H,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),j=ce({},u,{color:F.color||"primary",disabled:F.disabled,error:F.error,focused:F.focused,formControl:H,fullWidth:p,hiddenLabel:F.hiddenLabel,multiline:C,size:F.size,type:R}),L=(n=(i=S.root)!=null?i:h.Root)!=null?n:y0t,B=(o=(a=S.input)!=null?a:h.Input)!=null?o:_0t;return $.jsx(cJ,ce({slots:{root:L,input:B},renderSuffix:Q=>$.jsx(v0t,{ownerState:j,className:N.notchedOutline,label:_!=null&&_!==""&&F.required?l||(l=$.jsxs(V.Fragment,{children:[_," ","*"]})):_,notched:typeof T<"u"?T:!!(Q.startAdornment||Q.filled||Q.focused)}),fullWidth:p,inputComponent:m,multiline:C,ref:t,type:R},O,{classes:ce({},N,{notchedOutline:null})}))});gJ.muiName="Input";const b0t=zo($.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),w0t=zo($.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),E0t=Nt("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Ru})({position:"relative",display:"flex"}),C0t=Nt(b0t,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),x0t=Nt(w0t,{name:"MuiRadioButtonIcon"})(({theme:r,ownerState:e})=>ce({left:0,position:"absolute",transform:"scale(0)",transition:r.transitions.create("transform",{easing:r.transitions.easing.easeIn,duration:r.transitions.duration.shortest})},e.checked&&{transform:"scale(1)",transition:r.transitions.create("transform",{easing:r.transitions.easing.easeOut,duration:r.transitions.duration.shortest})}));function kCe(r){const{checked:e=!1,classes:t={},fontSize:n}=r,i=ce({},r,{checked:e});return $.jsxs(E0t,{className:t.root,ownerState:i,children:[$.jsx(C0t,{fontSize:n,className:t.background,ownerState:i}),$.jsx(x0t,{fontSize:n,className:t.dot,ownerState:i})]})}const OCe=V.createContext(void 0);function T0t(){return V.useContext(OCe)}function S0t(r){return Mr("MuiRadio",r)}
920const Rce=Br("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),I0t=["checked","checkedIcon","color","icon","name","onChange","size","className"],A0t=r=>{const{classes:e,color:t,size:n}=r,i={root:["root",`color${nr(t)}`,n!=="medium"&&`size${nr(n)}`]};return ce({},e,Ur(i,S0t,e))},R0t=Nt(mCe,{shouldForwardProp:r=>Ru(r)||r==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,t.size!=="medium"&&e[`size${nr(t.size)}`],e[`color${nr(t.color)}`]]}})(({theme:r,ownerState:e})=>ce({color:(r.vars||r).palette.text.secondary},!e.disableRipple&&{"&:hover":{backgroundColor:r.vars?`rgba(${e.color==="default"?r.vars.palette.action.activeChannel:r.vars.palette[e.color].mainChannel} / ${r.vars.palette.action.hoverOpacity})`:Qn.alpha(e.color==="default"?r.palette.action.active:r.palette[e.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${Rce.checked}`]:{color:(r.vars||r).palette[e.color].main}},{[`&.${Rce.disabled}`]:{color:(r.vars||r).palette.action.disabled}}));function P0t(r,e){return typeof e=="object"&&e!==null?r===e:String(r)===String(e)}const Pce=$.jsx(kCe,{checked:!0}),kce=$.jsx(kCe,{}),k0t=V.forwardRef(function(e,t){var n,i;const o=Pn({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:l=Pce,color:u="primary",icon:h=kce,name:p,onChange:m,size:_="medium",className:C}=o,T=Gt(o,I0t),S=ce({},o,{color:u,size:_}),R=A0t(S),O=T0t();let N=a;const H=gB(m,O&&O.onChange);let F=p;return O&&(typeof N>"u"&&(N=P0t(O.value,o.value)),typeof F>"u"&&(F=O.name)),$.jsx(R0t,ce({type:"radio",icon:V.cloneElement(h,{fontSize:(n=kce.props.fontSize)!=null?n:_}),checkedIcon:V.cloneElement(l,{fontSize:(i=Pce.props.fontSize)!=null?i:_}),ownerState:S,classes:R,name:F,checked:N,onChange:H,ref:t,className:mr(R.root,C)},T))});function O0t(r){return Mr("MuiRadioGroup",r)}
920const nOt=Br("MuiRadioGroup",["root","row","error"]),M0t=["actions","children","className","defaultValue","name","onChange","value"],N0t=r=>{const{classes:e,row:t,error:n}=r;return Ur({root:["root",t&&"row",n&&"error"]},O0t,e)},D0t=V.forwardRef(function(e,t){const{actions:n,children:i,className:o,defaultValue:a,name:l,onChange:u,value:h}=e,p=Gt(e,M0t),m=V.useRef(null),_=N0t(e),[C,T]=hg({controlled:h,default:a,name:"RadioGroup"});V.useImperativeHandle(n,()=>({focus:()=>{let N=m.current.querySelector("input:not(:disabled):checked");N||(N=m.current.querySelector("input:not(:disabled)")),N&&N.focus()}}),[]);const S=wo(t,m),R=Jm(l),O=V.useMemo(()=>({name:R,onChange(N){T(N.target.value),u&&u(N,N.target.value)},value:C}),[R,u,T,C]);return $.jsx(OCe.Provider,{value:O,children:$.jsx(cyt,ce({role:"radiogroup",ref:S,className:mr(_.root,o)},p,{children:i}))})});function L0t(r){return Mr("MuiSelect",r)}const xO=Br("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Oce;const H0t=["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"],F0t=Nt("div",{name:"MuiSelect",slot:"Select",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[{[`&.${xO.select}`]:e.select},{[`&.${xO.select}`]:e[t.variant]},{[`&.${xO.error}`]:e.error},{[`&.${xO.multiple}`]:e.multiple}]}})(RCe,{[`&.${xO.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),U0t=Nt("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.icon,t.variant&&e[`icon${nr(t.variant)}`],t.open&&e.iconOpen]}})(PCe),B0t=Nt("input",{shouldForwardProp:r=>REe(r)&&r!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(r,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Mce(r,e){return typeof e=="object"&&e!==null?r===e:String(r)===String(e)}function $0t(r){return r==null||typeof r=="string"&&!r.trim()}const z0t=r=>{const{classes:e,variant:t,disabled:n,multiple:i,open:o,error:a}=r,l={select:["select",t,n&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${nr(t)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ur(l,L0t,e)},j0t=V.forwardRef(function(e,t){var n;const{"aria-describedby":i,"aria-label":o,autoFocus:a,autoWidth:l,children:u,className:h,defaultOpen:p,defaultValue:m,disabled:_,displayEmpty:C,error:T=!1,IconComponent:S,inputRef:R,labelId:O,MenuProps:N={},multiple:H,name:F,onBlur:j,onChange:L,onClose:B,onFocus:Q,onOpen:Z,open:ie,readOnly:J,renderValue:ne,SelectDisplayProps:ue={},tabIndex:K,value:se,variant:be="standard"}=e,de=Gt(e,H0t),[ge,Ue]=hg({controlled:se,default:m,name:"Select"}
vendor: 14,314 bytes, lines 920-970
920),[Qe,ve]=hg({controlled:ie,default:p,name:"Select"}),pe=V.useRef(null),He=V.useRef(null),[Re,$e]=V.useState(null),{current:tt}=V.useRef(ie!=null),[ot,qe]=V.useState(),lt=wo(t,R),Et=V.useCallback(We=>{He.current=We,We&&$e(We)},[]),Oe=Re==null?void 0:Re.parentNode;V.useImperativeHandle(lt,()=>({focus:()=>{He.current.focus()},node:pe.current,value:ge}),[ge]),V.useEffect(()=>{p&&Qe&&Re&&!tt&&(qe(l?null:Oe.clientWidth),He.current.focus())},[Re,l]),V.useEffect(()=>{a&&He.current.focus()},[a]),V.useEffect(()=>{if(!O)return;const We=Il(He.current).getElementById(O);if(We){const Pt=()=>{getSelection().isCollapsed&&He.current.focus()};return We.addEventListener("click",Pt),()=>{We.removeEventListener("click",Pt)}}},[O]);const le=(We,Pt)=>{We?Z&&Z(Pt):B&&B(Pt),tt||(qe(l?null:Oe.clientWidth),ve(We))},re=We=>{We.button===0&&(We.preventDefault(),He.current.focus(),le(!0,We))},te=We=>{le(!1,We)},me=V.Children.toArray(u),Ae=We=>{const Pt=me.find(Jt=>Jt.props.value===We.target.value);Pt!==void 0&&(Ue(Pt.props.value),L&&L(We,Pt))},_e=We=>Pt=>{let Jt;if(Pt.currentTarget.hasAttribute("tabindex")){if(H){Jt=Array.isArray(ge)?ge.slice():[];const wr=ge.indexOf(We.props.value);wr===-1?Jt.push(We.props.value):Jt.splice(wr,1)}else Jt=We.props.value;if(We.props.onClick&&We.props.onClick(Pt),ge!==Jt&&(Ue(Jt),L)){const wr=Pt.nativeEvent||Pt,rr=new wr.constructor(wr.type,wr);Object.defineProperty(rr,"target",{writable:!0,value:{value:Jt,name:F}}),L(rr,We)}H||le(!1,Pt)}},Ve=We=>{J||[" ","ArrowUp","ArrowDown","Enter"].indexOf(We.key)!==-1&&(We.preventDefault(),le(!0,We))},it=Re!==null&&Qe,vt=We=>{!it&&j&&(Object.defineProperty(We,"target",{writable:!0,value:{value:ge,name:F}}),j(We))};delete de["aria-invalid"];let kt,rt;const bt=[];let Xe=!1;(IB({value:ge})||C)&&(ne?kt=ne(ge):Xe=!0);const ct=me.map(We=>{if(!V.isValidElement(We))return null;let Pt;if(H){if(!Array.isArray(ge))throw new Error(wb(2));Pt=ge.some(Jt=>Mce(Jt,We.props.value)),Pt&&Xe&&bt.push(We.props.children)}else Pt=Mce(ge,We.props.value),Pt&&Xe&&(rt=We.props.children);return V.cloneElement(We,{"aria-selected":Pt?"true":"false",onClick:_e(We),onKeyUp:Jt=>{Jt.key===" "&&Jt.preventDefault(),We.props.onKeyUp&&We.props.onKeyUp(Jt)},role:"option",selected:Pt,value:void 0,"data-value":We.props.value})});Xe&&(H?bt.length===0?kt=null:kt=bt.reduce((We,Pt,Jt)=>(We.push(Pt),Jt<bt.length-1&&We.push(", "),We),[]):kt=rt);let Me=ot;!l&&tt&&Re&&(Me=Oe.clientWidth);let X;typeof K<"u"?X=K:X=_?null:0;const z=ue.id||(F?`mui-component-select-${F}`:void 0),W=ce({},e,{variant:be,value:ge,open:it,error:T}),Se=z0t(W),Ke=ce({},N.PaperProps,(n=N.slotProps)==null?void 0:n.paper),je=Jm();return $.jsxs(V.Fragment,{children:[$.jsx(F0t,ce({ref:Et,tabIndex:X,role:"combobox","aria-controls":je,"aria-disabled":_?"true":void 0,"aria-expanded":it?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[O,z].filter(Boolean).join(" ")||void 0,"aria-describedby":i,onKeyDown:Ve,onMouseDown:_||J?null:re,onBlur:vt,onFocus:Q},ue,{ownerState:W,className:mr(ue.className,Se.select,h),id:z,children:$0t(kt)?Oce||(Oce=$.jsx("span",{className:"notranslate",children:"​"})):kt})),$.jsx(B0t,ce({"aria-invalid":T,value:Array.isArray(ge)?ge.join(","):ge,name:F,ref:pe,"aria-hidden":!0,onChange:Ae,tabIndex:-1,disabled:_,className:Se.nativeInput,autoFocus:a,ownerState:W},de)),$.jsx(U0t,{as:S,className:Se.icon,ownerState:W}),$.jsx(Jvt,ce({id:`menu-${F||""}`,anchorEl:Oe,open:it,onClose:te,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},N,{MenuListProps:ce({"aria-labelledby":O,role:"listbox","aria-multiselectable":H?"true":void 0,disableListWrap:!0,id:je},N.MenuListProps),slotProps:ce({},N.slotProps,{paper:ce({},Ke,{style:ce({minWidth:Me},Ke!=null?Ke.style:null)})}),children:ct}))]})}),V0t=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],q0t=["root"],G0t=r=>{const{classes:e}=r;return e},mJ={name:"MuiSelect",overridesResolver:(r,e)=>e.root,shouldForwardProp:r=>Ru(r)&&r!=="variant",slot:"Root"},Y0t=Nt(dJ,mJ)(""),W0t=Nt(gJ,mJ)(""),K0t=Nt(uJ,mJ)(""),rP=V.forwardRef(function(e,t){const n=Pn({name:"MuiSelect",props:e}),{autoWidth:i=!1,children:o,classes:a={},className:l,defaultOpen:u=!1,displayEmpty:h=!1,IconComponent:p=Wpt,id:m,input:_,inputProps:C,label:T,labelId:S,MenuProps:R,multiple:O=!1,native:N=!1,onClose:H,onOpen:F,open:j,renderValue:L,SelectDisplayProps:B,variant:Q="outlined"}=n,Z=Gt(n,V0t),ie=N?u0t:j0t,J=cp(),ne=yC({props:n,muiFormControl:J,states:["variant","error"]}),ue=ne.variant||Q,K=ce({},n,{variant:ue,classes:a}),se=G0t(K),be=Gt(se,q0t),de=_||{standard:$.jsx(Y0t,{ownerState:K}),outlined:$.jsx(W0t,{label:T,ownerState:K}),filled:$.jsx(K0t,{ownerState:K})}[ue],ge=wo(t,qS(de));return $.jsx(V.Fragment,{children:V.cloneElement(de,ce({inputComponent:ie,inputProps:ce({children:o,error:ne.error,IconComponent:p,variant:ue,type:void 0,multiple:O},N?{id:m}:{autoWidth:i,defaultOpen:u,displayEmpty:h,labelId:S,MenuProps:R,onClose:H,onOpen:F,open:j,renderValue:L,SelectDisplayProps:ce({id:m},B)},C,{classes:C?qh(be,C.classes):be},_?_.props.inputProps:{})},(O&&N||h)&&ue==="outlined"?{notched:!0}:{},{ref:ge,className:mr(de.props.className,l,se.root)},!_&&{variant:ue},Z))})});rP.muiName="Select";function Z0t(r){return Mr("MuiSkeleton",r)}const iOt=Br("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]),X0t=["animation","className","component","height","style","variant","width"];let kB=r=>r,Nce,Dce,Lce,Hce;const Q0t=r=>{const{classes:e,variant:t,animation:n,hasChildren:i,width:o,height:a}=r;return Ur({root:["root",t,n,i&&"withChildren",i&&!o&&"fitContent",i&&!a&&"heightAuto"]},Z0t,e)},J0t=Rv(Nce||(Nce=kB`
921  0% {
922    opacity: 1;
923  }
924
925  50% {
926    opacity: 0.4;
927  }
928
929  100% {
930    opacity: 1;
931  }
932`)),e_t=Rv(Dce||(Dce=kB`
933  0% {
934    transform: translateX(-100%);
935  }
936
937  50% {
938    /* +0.5s of delay between each loop */
939    transform: translateX(100%);
940  }
941
942  100% {
943    transform: translateX(100%);
944  }
945`)),t_t=Nt("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,e[t.variant],t.animation!==!1&&e[t.animation],t.hasChildren&&e.withChildren,t.hasChildren&&!t.width&&e.fitContent,t.hasChildren&&!t.height&&e.heightAuto]}})(({theme:r,ownerState:e})=>{const t=QEe(r.shape.borderRadius)||"px",n=Uw(r.shape.borderRadius);return ce({display:"block",backgroundColor:r.vars?r.vars.palette.Skeleton.bg:ES(r.palette.text.primary,r.palette.mode==="light"?.11:.13),height:"1.2em"},e.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}},e.variant==="circular"&&{borderRadius:"50%"},e.variant==="rounded"&&{borderRadius:(r.vars||r).shape.borderRadius},e.hasChildren&&{"& > *":{visibility:"hidden"}},e.hasChildren&&!e.width&&{maxWidth:"fit-content"},e.hasChildren&&!e.height&&{height:"auto"})},({ownerState:r})=>r.animation==="pulse"&&Eb(Lce||(Lce=kB`
946      animation: ${0} 2s ease-in-out 0.5s infinite;
947    `),J0t),({ownerState:r,theme:e})=>r.animation==="wave"&&Eb(Hce||(Hce=kB`
948      position: relative;
949      overflow: hidden;
950
951      /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
952      -webkit-mask-image: -webkit-radial-gradient(white, black);
953
954      &::after {
955        animation: ${0} 2s linear 0.5s infinite;
956        background: linear-gradient(
957          90deg,
958          transparent,
959          ${0},
960          transparent
961        );
962        content: '';
963        position: absolute;
964        transform: translateX(-100%); /* Avoid flash during server-side hydration */
965        bottom: 0;
966        left: 0;
967        right: 0;
968        top: 0;
969      }
970    `),e_t,(e.vars||e).palette.action.hover)),r_t=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiSkeleton"}),{animation:i="pulse",className:o,component:a="span",height:l,style:u,variant:h="text",width:p}=n,m=Gt(n,X0t),_=ce({},n,{animation:i,component:a,variant:h,hasChildren:!!m.children}),C=Q0t(_);return $.jsx(t_t,ce({as:a,ref:t,className:mr(C.root,o),ownerState:_},m,{style:ce({width:p,height:l},u)}))});function n_t(r={}){const{autoHideDuration:e=null,disableWindowBlurListener:t=!1,onClose:n,open:i,resumeHideDuration:o}=r,a=dT();V.useEffect(()=>{if(!i)return;function O(N){N.defaultPrevented||(N.key==="Escape"||N.key==="Esc")&&(n==null||n(N,"escapeKeyDown"))}return document.addEventListener("keydown",O),()=>{document.removeEventListener("keydown",O)}},[i,n]);const l=Zr((O,N)=>{n==null||n(O,N)}),u=Zr(O=>{!n||O==null||a.start(O,()=>{l(null,"timeout")})});V.useEffect(()=>(i&&u(e),a.clear),[i,e,u,a]);const h=O=>{n==null||n(O,"clickaway")},p=a.clear,m=V.useCallback(()=>{e!=null&&u(o??e*.5)},[e,o,u]),_=O=>N=>{const H=O.onBlur;H==null||H(N),m()},C=O=>N=>{const H=O.onFocus;H==null||H(N),p()},T=O=>N=>{const H=O.onMouseEnter;H==null||H(N),p()},S=O=>N=>{const H=O.onMouseLeave;H==null||H(N),m()};return V.useEffect(()=>{if(!t&&i)return window.addEventListener("focus",m),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",p)}},[t,i,m,p]),{getRootProps:(O={})=>{const N=ce({},yB(r),yB(O));return ce({role:"presentation"},O,N,{onBlur:_(N),onFocus:C(N),onMouseEnter:T(N),onMouseLeave:S(N)})},onClickAway:h}}function i_t(r){return Mr("MuiSnackbarContent",r)}const oOt=Br("MuiSnackbarContent",["root","message","action"]),o_t=["action","className","message","role"],a_t=r=>{const{classes:e}=r;return Ur({root:["root"],action:["action"],message:["message"]},i_t,e)},s_t=Nt(gC,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r})=>{const e=r.palette.mode==="light"?.8:.98,t=Qn.emphasize(r.palette.background.default,e);return ce({},r.typography.body2,{color:r.vars?r.vars.palette.SnackbarContent.color:r.palette.getContrastText(t),backgroundColor:r.vars?r.vars.palette.SnackbarContent.bg:t,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(r.vars||r).shape.borderRadius,flexGrow:1,[r.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),l_t=Nt("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(r,e)=>e.message})({padding:"8px 0"}),c_t=Nt("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(r,e)=>e.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),u_t=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiSnackbarContent"}),{action:i,className:o,message:a,role:l="alert"}=n,u=Gt(n,o_t),h=n,p=a_t(h);return $.jsxs(s_t,ce({role:l,square:!0,elevation:6,className:mr(p.root,o),ownerState:h,ref:t},u,{children:[$.jsx(l_t,{className:p.message,ownerState:h,children:a}),i?$.jsx(c_t,{className:p.action,ownerState:h,children:i}):null]}))});function d_t(r){return Mr("MuiSnackbar",r)}const aOt=Br("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]),h_t=["onEnter","onExited"],f_t=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],p_t=r=>{const{classes:e,anchorOrigin:t}=r,n={root:["root",`anchorOrigin${nr(t.vertical)}${nr(t.horizontal)}`]};return Ur(n,d_t,e)},Fce=Nt("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,e[`anchorOrigin${nr(t.anchorOrigin.vertical)}${nr(t.anchorOrigin.horizontal)}`]]}})(({theme:r,ownerState:e})=>{const t={left:"50%",right:"auto",transform:"translateX(-50%)"};return ce({zIndex:(r.vars||r).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},e.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},e.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},e.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[r.breakpoints.up("sm")]:ce({},e.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},e.anchorOrigin.horizontal==="center"&&t,e.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},e.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),g_t=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiSnackbar"}),i=pC(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:l,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:h=null,children:p,className:m,ClickAwayListenerProps:_,ContentProps:C,disableWindowBlurListener:T=!1,message:S,open:R,TransitionComponent:O=ak,transitionDuration:N=o,TransitionProps:{onEnter:H,onExited:F}={}}=n,j=Gt(n.TransitionProps,h_t),L=Gt(n,f_t),B=ce({},n,{anchorOrigin:{vertical:l,horizontal:u},autoHideDuration:h,disableWindowBlurListener:T,TransitionComponent:O,transitionDuration:N}),Q=p_t(B),{getRootProps:Z,onClickAway:ie}=n_t(ce({},B)),[J,ne]=V.useState(!0),ue=bo({elementType:Fce,getSlotProps:Z,externalForwardedProps:L,ownerState:B,additionalProps:{ref:t},className:[Q.root,m]}),K=be=>{ne(!0),F&&F(be)},se=(be,de)=>{ne(!1),H&&H(be,de)};return!R&&J?null:$.jsx(Wgt,ce({onClickAway:ie},_,{children:$.jsx(Fce,ce({},ue,{children:$.jsx(O,ce({appear:!0,in:R,timeout:N,direction:l==="top"?"down":"up",onEnter:se,onExited:K},j,{children:p||$.jsx(u_t,ce({message:S,action:a},C))}))}))}))});function m_t(r){return Mr("MuiTooltip",r)}const vE=Br("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),y_t=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","
970slotProps","slots","title","TransitionComponent","TransitionProps"];function v_t(r){return Math.round(r*1e5)/1e5}const __t=r=>{const{classes:e,disableInteractive:t,arrow:n,touch:i,placement:o}=r,a={popper:["popper",!t&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",i&&"touch",`tooltipPlacement${nr(o.split("-")[0])}`],arrow:["arrow"]};return Ur(a,m_t,e)},b_t=Nt(lJ,{name:"MuiTooltip",slot:"Popper",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.popper,!t.disableInteractive&&e.popperInteractive,t.arrow&&e.popperArrow,!t.open&&e.popperClose]}})(({theme:r,ownerState:e,open:t})=>ce({zIndex:(r.vars||r).zIndex.tooltip,pointerEvents:"none"},!e.disableInteractive&&{pointerEvents:"auto"},!t&&{pointerEvents:"none"},e.arrow&&{[`&[data-popper-placement*="bottom"] .${vE.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${vE.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${vE.arrow}`]:ce({},e.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${vE.arrow}`]:ce({},e.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),w_t=Nt("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.tooltip,t.touch&&e.touch,t.arrow&&e.tooltipArrow,e[`tooltipPlacement${nr(t.placement.split("-")[0])}`]]}})(({theme:r,ownerState:e})=>ce({backgroundColor:r.vars?r.vars.palette.Tooltip.bg:Qn.alpha(r.palette.grey[700],.92),borderRadius:(r.vars||r).shape.borderRadius,color:(r.vars||r).palette.common.white,fontFamily:r.typography.fontFamily,padding:"4px 8px",fontSize:r.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:r.typography.fontWeightMedium},e.arrow&&{position:"relative",margin:0},e.touch&&{padding:"8px 16px",fontSize:r.typography.pxToRem(14),lineHeight:`${v_t(16/14)}em`,fontWeight:r.typography.fontWeightRegular},{[`.${vE.popper}[data-popper-placement*="left"] &`]:ce({transformOrigin:"right center"},e.isRtl?ce({marginLeft:"14px"},e.touch&&{marginLeft:"24px"}):ce({marginRight:"14px"},e.touch&&{marginRight:"24px"})),[`.${vE.popper}[data-popper-placement*="right"] &`]:ce({transformOrigin:"left center"},e.isRtl?ce({marginRight:"14px"},e.touch&&{marginRight:"24px"}):ce({marginLeft:"14px"},e.touch&&{marginLeft:"24px"})),[`.${vE.popper}[data-popper-placement*="top"] &`]:ce({transformOrigin:"center bottom",marginBottom:"14px"},e.touch&&{marginBottom:"24px"}),[`.${vE.popper}[data-popper-placement*="bottom"] &`]:ce({transformOrigin:"center top",marginTop:"14px"},e.touch&&{marginTop:"24px"})})),E_t=Nt("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(r,e)=>e.arrow})(({theme:r})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:r.vars?r.vars.palette.Tooltip.bg:Qn.alpha(r.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let j6=!1;const Uce=new LL;let TO={x:0,y:0};function V6(r,e){return(t,...n)=>{e&&e(t,...n),r(t,...n)}}const Am=V.forwardRef(function(e,t){var n,i,o,a,l,u,h,p,m,_,C,T,S,R,O,N,H,F,j;const L=Pn({props:e,name:"MuiTooltip"}),{arrow:B=!1,children:Q,components:Z={},componentsProps:ie={},describeChild:J=!1,disableFocusListener:ne=!1,disableHoverListener:ue=!1,disableInteractive:K=!1,disableTouchListener:se=!1,enterDelay:be=100,enterNextDelay:de=0,enterTouchDelay:ge=700,followCursor:Ue=!1,id:Qe,leaveDelay:ve=0,leaveTouchDelay:pe=1500,onClose:He,onOpen:Re,open:$e,placement:tt="bottom",PopperComponent:ot,PopperProps:qe={},slotProps:lt={},slots:Et={},title:Oe,TransitionComponent:le=ak,TransitionProps:re}=L,te=Gt(L,y_t),me=V.isValidElement(Q)?Q:$.jsx("span",{children:Q}),Ae=pC(),_e=XQ(),[Ve,it]=V.useState(),[vt,kt]=V.useState(null),rt=V.useRef(!1),bt=K||Ue,Xe=dT(),ct=dT(),Me=
vendor: 10,605 bytes, lines 970-971
970dT(),X=dT(),[z,W]=hg({controlled:$e,default:!1,name:"Tooltip",state:"open"});let Se=z;const Ke=Jm(Qe),je=V.useRef(),We=Zr(()=>{je.current!==void 0&&(document.body.style.WebkitUserSelect=je.current,je.current=void 0),X.clear()});V.useEffect(()=>We,[We]);const Pt=Nn=>{Uce.clear(),j6=!0,W(!0),Re&&!Se&&Re(Nn)},Jt=Zr(Nn=>{Uce.start(800+ve,()=>{j6=!1}),W(!1),He&&Se&&He(Nn),Xe.start(Ae.transitions.duration.shortest,()=>{rt.current=!1})}),wr=Nn=>{rt.current&&Nn.type!=="touchstart"||(Ve&&Ve.removeAttribute("title"),ct.clear(),Me.clear(),be||j6&&de?ct.start(j6?de:be,()=>{Pt(Nn)}):Pt(Nn))},rr=Nn=>{ct.clear(),Me.start(ve,()=>{Jt(Nn)})},{isFocusVisibleRef:Nr,onBlur:mt,onFocus:Mt,ref:Te}=OQ(),[,fe]=V.useState(!1),Ee=Nn=>{mt(Nn),Nr.current===!1&&(fe(!1),rr(Nn))},xe=Nn=>{Ve||it(Nn.currentTarget),Mt(Nn),Nr.current===!0&&(fe(!0),wr(Nn))},et=Nn=>{rt.current=!0;const Yi=me.props;Yi.onTouchStart&&Yi.onTouchStart(Nn)},gt=Nn=>{et(Nn),Me.clear(),Xe.clear(),We(),je.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",X.start(ge,()=>{document.body.style.WebkitUserSelect=je.current,wr(Nn)})},Rt=Nn=>{me.props.onTouchEnd&&me.props.onTouchEnd(Nn),We(),Me.start(pe,()=>{Jt(Nn)})};V.useEffect(()=>{if(!Se)return;function Nn(Yi){(Yi.key==="Escape"||Yi.key==="Esc")&&Jt(Yi)}return document.addEventListener("keydown",Nn),()=>{document.removeEventListener("keydown",Nn)}},[Jt,Se]);const dt=wo(qS(me),Te,it,t);!Oe&&Oe!==0&&(Se=!1);const pt=V.useRef(),wt=Nn=>{const Yi=me.props;Yi.onMouseMove&&Yi.onMouseMove(Nn),TO={x:Nn.clientX,y:Nn.clientY},pt.current&&pt.current.update()},Yt={},Vt=typeof Oe=="string";J?(Yt.title=!Se&&Vt&&!ue?Oe:null,Yt["aria-describedby"]=Se?Ke:null):(Yt["aria-label"]=Vt?Oe:null,Yt["aria-labelledby"]=Se&&!Vt?Ke:null);const ar=ce({},Yt,te,me.props,{className:mr(te.className,me.props.className),onTouchStart:et,ref:dt},Ue?{onMouseMove:wt}:{}),kr={};se||(ar.onTouchStart=gt,ar.onTouchEnd=Rt),ue||(ar.onMouseOver=V6(wr,ar.onMouseOver),ar.onMouseLeave=V6(rr,ar.onMouseLeave),bt||(kr.onMouseOver=wr,kr.onMouseLeave=rr)),ne||(ar.onFocus=V6(xe,ar.onFocus),ar.onBlur=V6(Ee,ar.onBlur),bt||(kr.onFocus=xe,kr.onBlur=Ee));const qr=V.useMemo(()=>{var Nn;let Yi=[{name:"arrow",enabled:!!vt,options:{element:vt,padding:4}}];return(Nn=qe.popperOptions)!=null&&Nn.modifiers&&(Yi=Yi.concat(qe.popperOptions.modifiers)),ce({},qe.popperOptions,{modifiers:Yi})},[vt,qe]),Kr=ce({},L,{isRtl:_e,arrow:B,disableInteractive:bt,placement:tt,PopperComponentProp:ot,touch:rt.current}),zn=__t(Kr),Wn=(n=(i=Et.popper)!=null?i:Z.Popper)!=null?n:b_t,On=(o=(a=(l=Et.transition)!=null?l:Z.Transition)!=null?a:le)!=null?o:ak,Mn=(u=(h=Et.tooltip)!=null?h:Z.Tooltip)!=null?u:w_t,Yr=(p=(m=Et.arrow)!=null?m:Z.Arrow)!=null?p:E_t,rn=fR(Wn,ce({},qe,(_=lt.popper)!=null?_:ie.popper,{className:mr(zn.popper,qe==null?void 0:qe.className,(C=(T=lt.popper)!=null?T:ie.popper)==null?void 0:C.className)}),Kr),qn=fR(On,ce({},re,(S=lt.transition)!=null?S:ie.transition),Kr),ii=fR(Mn,ce({},(R=lt.tooltip)!=null?R:ie.tooltip,{className:mr(zn.tooltip,(O=(N=lt.tooltip)!=null?N:ie.tooltip)==null?void 0:O.className)}),Kr),mo=fR(Yr,ce({},(H=lt.arrow)!=null?H:ie.arrow,{className:mr(zn.arrow,(F=(j=lt.arrow)!=null?j:ie.arrow)==null?void 0:F.className)}),Kr);return $.jsxs(V.Fragment,{children:[V.cloneElement(me,ar),$.jsx(Wn,ce({as:ot??lJ,placement:tt,anchorEl:Ue?{getBoundingClientRect:()=>({top:TO.y,left:TO.x,right:TO.x,bottom:TO.y,width:0,height:0})}:Ve,popperRef:pt,open:Ve?Se:!1,id:Ke,transition:!0},kr,rn,{popperOptions:qr,children:({TransitionProps:Nn})=>$.jsx(On,ce({timeout:Ae.transitions.duration.shorter},Nn,qn,{children:$.jsxs(Mn,ce({},ii,{children:[Oe,B?$.jsx(Yr,ce({},mo,{ref:kt})):null]}))}))}))]})}),MCe=V.createContext();function C_t(r){return Mr("MuiTable",r)}const sOt=Br("MuiTable",["root","stickyHeader"]),x_t=["className","component","padding","size","stickyHeader"],T_t=r=>{const{classes:e,stickyHeader:t}=r;return Ur({root:["root",t&&"stickyHeader"]},C_t,e)},S_t=Nt("table",{name:"MuiTable",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,t.stickyHeader&&e.stickyHeader]}})(({theme:r,ownerState:e})=>ce({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":ce({},r.typography.body2,{padding:r.spacing(2),color:(r.vars||r).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},e.stickyHeader&&{borderCollapse:"separate"})),Bce="table",I_t=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiTable"}),{className:i,component:o=Bce,padding:a="normal",size:l="medium",stickyHeader:u=!1}=n,h=Gt(n,x_t),p=ce({},n,{component:o,padding:a,size:l,stickyHeader:u}),m=T_t(p),_=V.useMemo(()=>({padding:a,size:l,stickyHeader:u}),[a,l,u]);return $.jsx(MCe.Provider,{value:_,children:$.jsx(S_t,ce({as:o,role:o===Bce?null:"table",ref:t,className:mr(m.root,i),ownerState:p},h))})}),L9=V.createContext();function A_t(r){return Mr("MuiTableBody",r)}const lOt=Br("MuiTableBody",["root"]),R_t=["className","component"],P_t=r=>{const{classes:e}=r;return Ur({root:["root"]},A_t,e)},k_t=Nt("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(r,e)=>e.root})({display:"table-row-group"}),O_t={variant:"body"},$ce="tbody",M_t=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiTableBody"}),{className:i,component:o=$ce}=n,a=Gt(n,R_t),l=ce({},n,{component:o}),u=P_t(l);return $.jsx(L9.Provider,{value:O_t,children:$.jsx(k_t,ce({className:mr(u.root,i),as:o,ref:t,role:o===$ce?null:"rowgroup",ownerState:l},a))})});function N_t(r){return Mr("MuiTableCell",r)}const D_t=Br("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),L_t=["align","className","component","padding","scope","size","sortDirection","variant"],H_t=r=>{const{classes:e,variant:t,align:n,padding:i,size:o,stickyHeader:a}=r,l={root:["root",t,a&&"stickyHeader",n!=="inherit"&&`align${nr(n)}`,i!=="normal"&&`padding${nr(i)}`,`size${nr(o)}`]};return Ur(l,N_t,e)},F_t=Nt("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,e[t.variant],e[`size${nr(t.size)}`],t.padding!=="normal"&&e[`padding${nr(t.padding)}`],t.align!=="inherit"&&e[`align${nr(t.align)}`],t.stickyHeader&&e.stickyHeader]}})(({theme:r,ownerState:e})=>ce({},r.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:r.vars?`1px solid ${r.vars.palette.TableCell.border}`:`1px solid
971    ${r.palette.mode==="light"?Qn.lighten(Qn.alpha(r.palette.divider,1),.88):Qn.darken(Qn.alpha(r.palette.divider,1),.68)}`,textAlign:"left",padding:16},e.variant==="head"&&{color:(r.vars||r).palette.text.primary,lineHeight:r.typography.pxToRem(24),fontWeight:r.typography.fontWeightMedium},e.variant==="body"&&{color:(r.vars||r).palette.text.primary},e.variant==="footer"&&{color:(r.vars||r).palette.text.secondary,lineHeight:r.typography.pxToRem(21),fontSize:r.typography.pxToRem(12)},e.size==="small"&&{padding:"6px 16px",[`&.${D_t.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},e.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},e.padding==="none"&&{padding:0},e.align==="left"&&{textAlign:"left"},e.align==="center"&&{textAlign:"center"},e.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},e.align==="justify"&&{textAlign:"justify"},e.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(r.vars||r).palette.background.default})),yx=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiTableCell"}),{align:i="inherit",className:o,component:a,padding:l,scope:u,size:h,sortDirection:p,variant:m}=n,_=Gt(n,L_t),C=V.useContext(MCe),T=V.useContext(L9),S=T&&T.variant==="head";let R;a?R=a:R=S?"th":"td";let O=u;R==="td"?O=void 0:!O&&S&&(O="col");const N=m||T&&T.variant,H=ce({},n,{align:i,component:R,padding:l||(C&&C.padding?C.padding:"normal"),size:h||(C&&C.size?C.size:"medium"),sortDirection:p,stickyHeader:N==="head"&&C&&C.stickyHeader,variant:N}),F=H_t(H);let j=null;return p&&(j=p==="asc"?"ascending":"descending"),$.jsx(F_t,ce({as:R,ref:t,className:mr(F.root,o),"aria-sort":j,scope:O,ownerState:H},_))});function U_t(r){return Mr("MuiTableContainer",r)}const cOt=Br("MuiTableContainer",["root"]),B_t=["className","component"],$_t=r=>{const{classes:e}=r;return Ur({root:["root"]},U_t,e)},z_t=Nt("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(r,e)=>e.root})({width:"100%",overflowX:"auto"}),j_t=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiTableContainer"}),{className:i,component:o="div"}=n,a=Gt(n,B_t),l=ce({},n,{component:o}),u=$_t(l);return $.jsx(z_t,ce({ref:t,as:o,className:mr(u.root,i),ownerState:l},a))});function V_t(r){return Mr("MuiTableHead",r)}const uOt=Br("MuiTableHead",["root"]),q_t=["className","component"],G_t=r=>{const{classes:e}=r;return Ur({root:["root"]},V_t,e)},Y_t=Nt("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(r,e)=>e.root})({display:"table-header-group"}),W_t={variant:"head"},zce="thead",K_t=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiTableHead"}),{className:i,component:o=zce}=n,a=Gt(n,q_t),l=ce({},n,{component:o}),u=G_t(l);return $.jsx(L9.Provider,{value:W_t,children:$.jsx(Y_t,ce({as:o,className:mr(u.root,i),ref:t,role:o===zce?null:"rowgroup",ownerState:l},a))})});function Z_t(r){return Mr("MuiTableRow",r)}const jce=Br("MuiTableRow",["root","selected","hover","head","footer"]),X_t=["className","component","hover","selected"],Q_t=r=>{const{classes:e,selected:t,hover:n,head:i,footer:o}=r;return Ur({root:["root",t&&"selected",n&&"hover",i&&"head",o&&"footer"]},Z_t,e)},J_t=Nt("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,t.head&&e.head,t.footer&&e.footer]}})(({theme:r})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${jce.hover}:hover`]:{backgroundColor:(r.vars||r).palette.action.hover},[`&.${jce.selected}`]:{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / ${r.vars.palette.action.selectedOpacity})`:Qn.alpha(r.palette.primary.main,r.palette.action.selectedOpacity),"&:hover":{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / calc(${r.vars.palette.action.selectedOpacity} + ${r.vars.palette.action.hoverOpacity}))`:Qn.alpha(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity)}}})),Vce="tr",R3=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiTableRow"}),{className:i,component:o=Vce,hover:a=!1,selected:l=!1}=n,u=Gt(n,X_t),h=V.useContext(L9),p=ce({},n,{component:o,hover:a,selected:l,head:h&&h.variant==="head",footer
971:h&&h.variant==="footer"}),m=Q_t(p);return $.jsx(J_t,ce({as:o,ref:t,className:mr(m.root,i),role:o===Vce?null:"row",ownerState:p},u))});function e1t(r){return Mr("MuiTextField",r)}const dOt=Br("MuiTextField",["root"]),t1t=["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"],r1t={standard:dJ,filled:uJ,outlined:gJ},n1t=r=>{const{classes:e}=r;return Ur({root:["root"]},e1t,e)},i1t=Nt(_N,{name:"MuiTextField",slot:"Root",overridesResolver:(r,e)=>e.root})({}),MD=V.forwardRef(function(e,t){const n=Pn({props:e,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:l,color:u="primary",defaultValue:h,disabled:p=!1,error:m=!1,FormHelperTextProps:_,fullWidth:C=!1,helperText:T,id:S,InputLabelProps:R,inputProps:O,InputProps:N,inputRef:H,label:F,maxRows:j,minRows:L,multiline:B=!1,name:Q,onBlur:Z,onChange:ie,onFocus:J,placeholder:ne,required:ue=!1,rows:K,select:se=!1,SelectProps:be,type:de,value:ge,variant:Ue="outlined"}=n,Qe=Gt(n,t1t),ve=ce({},n,{autoFocus:o,color:u,disabled:p,error:m,fullWidth:C,multiline:B,required:ue,select:se,variant:Ue}),pe=n1t(ve),He={};Ue==="outlined"&&(R&&typeof R.shrink<"u"&&(He.notched=R.shrink),He.label=F),se&&((!be||!be.native)&&(He.id=void 0),He["aria-describedby"]=void 0);const Re=Jm(S),$e=T&&Re?`${Re}-helper-text`:void 0,tt=F&&Re?`${Re}-label`:void 0,ot=r1t[Ue],qe=$.jsx(ot,ce({"aria-describedby":$e,autoComplete:i,autoFocus:o,defaultValue:h,fullWidth:C,multiline:B,name:Q,rows:K,maxRows:j,minRows:L,type:de,value:ge,id:Re,inputRef:H,onBlur:Z,onChange:ie,onFocus:J,placeholder:ne,inputProps:O},He,N));return $.jsxs(i1t,ce({className:mr(pe.root,l),disabled:p,error:m,fullWidth:C,ref:t,required:ue,color:u,variant:Ue,ownerState:ve},Qe,{children:[F!=null&&F!==""&&$.jsx(wN,ce({htmlFor:Re,id:tt},R,{children:F})),se?$.jsx(rP,ce({"aria-describedby":$e,id:Re,labelId:tt,value:ge,input:qe},be,{children:a})):qe,T&&$.jsx(CCe,ce({id:$e},_,{children:T}))]}))}),o1t=["localeText"],cW=V.createContext(null),a1t=function(e){const{localeText:t}=e,n=Gt(e,o1t),{utils:i,localeText:o}=V.useContext(cW)??{utils:void 0,localeText:void 0},a=qs({props:n,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:u,dateFormats:h,dateLibInstance:p,adapterLocale:m,localeText:_}=a,C=V.useMemo(()=>ce({},_,o,t),[_,o,t]),T=V.useMemo(()=>{if(!u)return i||null;const O=new u({locale:m,formats:h,instance:p});if(!O.isMUIAdapter)throw new Error(["MUI X: 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(`
972`));return O},[u,m,h,p,i]),S=V.useMemo(()=>T?{minDate:T.date("1900-01-01T00:00:00.000"),maxDate:T.date("2099-12-31T00:00:00.000")}:null,[T]),R=V.useMemo(()=>({utils:T,defaultDates:S,localeText:C}),[S,T,C]);return $.jsx(cW.Provider,{value:R,children:l})},s1t=r=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:ce({},r)}}}}),l1t=r=>{const{utils:e,formatKey:t,contextTranslation:n,propsTranslation:i}=r;return o=>{const a=o!==null&&e.isValid(o)?e.format(o,t):null;return(i??n)(o,e,a)}},NCe={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:r=>r==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(r,e,t,n)=>`Select ${r}. ${!n&&(e===null||!t.isValid(e))?"No time selected":`Selected time is ${n??t.format(e,"fullTime")}`}`,hoursClockNumberText:r=>`${r} hours`,minutesClockNumberText:r=>`${r} minutes`,secondsClockNumberText:r=>`${r} seconds`,selectViewText:r=>`Select ${r}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:r=>`Week ${r}`,calendarWeekNumberText:r=>`${r}`,openDatePickerDialogue:(r,e,t)=>t||r!==null&&e.isValid(r)?`Choose date, selected date is ${t??e.format(r,"fullDate")}`:"Choose date",openTimePickerDialogue:(r,e,t)=>t||r!==null&&e.isValid(r)?`Choose time, selected time is ${t??e.format(r,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:r=>"Y".repeat(r.digitAmount),fieldMonthPlaceholder:r=>r.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:r=>r.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meri
972diem:"Meridiem",empty:"Empty"},c1t=NCe;s1t(NCe);const GS=()=>{const r=V.useContext(cW);if(r===null)throw new Error(["MUI X: 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(`
973`));if(r.utils===null)throw new Error(["MUI X: 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(`
974`));const e=V.useMemo(()=>ce({},c1t,r.localeText),[r.localeText]);return V.useMemo(()=>ce({},r,{localeText:e}),[r,e])},Gs=()=>GS().utils,WL=()=>GS().defaultDates,H9=r=>{const e=Gs(),t=V.useRef(void 0);return t.current===void 0&&(t.current=e.date(void 0,r)),t.current},vC=()=>GS().localeText,u1t=V.createContext(),Lb=()=>V.useContext(u1t)??!1,d1t=zo($.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),h1t=zo($.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),f1t=zo($.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),p1t=zo($.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");zo($.jsxs(V.Fragment,{children:[$.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"}),$.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");zo($.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");zo($.jsxs(V.Fragment,{children:[$.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"}),$.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const g1t=zo($.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");function m1t(r){return Mr("MuiPickersArrowSwitcher",r)}Br("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const y1t=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],v1t=["ownerState"],_1t=["ownerState"],b1t=Nt("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(r,e)=>e.root})({display:"flex"}),w1t=Nt("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(r,e)=>e.spacer})(({theme:r})=>({width:r.spacing(3)})),qce=Nt(pv,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(r,e)=>e.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),E1t=r=>{const{classes:e}=r;return Ur({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},m1t,e)},C1t=V.forwardRef(function(e,t){const n=Lb(),i=qs({props:e,name:"MuiPickersArrowSwitcher"}),{children:o,className:a,slots:l,slotProps:u,isNextDisabled:h,isNextHidden:p,onGoToNext:m,nextLabel:_,isPreviousDisabled:C,isPreviousHidden:T,onGoToPrevious:S,previousLabel:R,labelId:O}=i,N=Gt(i,y1t),H=i,F=E1t(H),j={isDisabled:h,isHidden:p,goTo:m,label:_},L={isDisabled:C,isHidden:T,goTo:S,label:R},B=(l==null?void 0:l.previousIconButton)??qce,Q=bo({elementType:B,externalSlotProps:u==null?void 0:u.previousIconButton,additionalProps:{size:"medium",title:L.label,"aria-label":L.label,disabled:L.isDisabled,edge:"end",onClick:L.goTo},ownerState:ce({},H,{hidden:L.isHidden}),className:mr(F.button,F.previousIconButton)}),Z=(l==null?void 0:l.nextIconButton)??qce,ie=bo({elementType:Z,externalSlotProps:u==null?void 0:u.nextIconButton,additionalProps:{size:"medium",title:j.label,"aria-label":j.label,disabled:j.isDisabled,edge:"start",onClick:j.goTo},ownerState:ce({},H,{hidden:j.isHidden}),className:mr(F.button,F.nextIconButton)}),J=(l==null?void 0:l.leftArrowIcon)??h1t,ne=bo({elementType:J,externalSlotProps:u==null?void 0:u.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:H,className:F.leftArrowIcon}),ue=Gt(ne,v1t),K=(l==null?void 0:l.rightArrowIcon)??f1t,se=bo({elementType:K,externalSlotProps:u==null?void 0:u.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:H,className:F.rightArrowIcon}),be=Gt(se,_1t);return $.jsxs(b1t,ce({ref:t,className:mr(F.root,a),ownerState:H},N,{children:[$.jsx(B,ce({},Q,{children:n?$.jsx(K,ce({},be)):$.jsx(J,ce({},ue))})),o?$.jsx(Vd,{variant:"subtitle1",component:"span",id:O,children:o}):$.jsx(w1t,{className:F.spacer,ownerState:H}),$.jsx(Z,ce({},ie,{children:n?$.jsx(J,ce({},ue)):$.jsx(K,ce({},be))}))]}))}),SO=(r,e)=>r.length!==e.length?!1:e.every(t=>r.includes(t)),x1t=({openTo:r,defaultOpenTo:e,views:t,defaultViews:n})=>{const i=t??n;let o;if(r!=null)o=r;else if(i.includes(e))o=e;else if(i.length>0)o=i[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:i,openTo:o}},T1t=["hours","minutes","seconds"],S1t=r=>T1t.includes(r),Gce=(r,e)=>e.getHours(r)*3600+e.getMinutes(r)*60+e.getSeconds(r),I1t=(r,e)=>(t,n)=>r?e.isAfter(t,n):Gce(t,e)>Gce(n,e);function DCe({onChange:r,onViewChange:e,openTo:t,view:n,views:i,autoFocus:o,focusedView:a,onFocusedViewChange:l}){const u=V.useRef(t),h=V.useRef(i),p=V.useRef(i.includes(t)?t:i[0]),[m,_]=hg({name:"useViews",state:"view",controlled:n,default:p.current}),C=V.useRef(o?m:null),[T,S]=hg({name:"useViews",state:"focusedView",controlled:a,default:C.current});V.useEffect(()=>{(u.current&&u.current!==t||h.current&&h.current.some(B=>!i.includes(B)))&&(_(i.includes(t)?t:i[0]),h.current=i,u.current=t)},[t,_,m,i]);const R=i.indexOf(m),O=i[R-1]??null,N=i[R+1]??null,H=Zr((B,Q)=>{S(Q?B:Z=>B===Z?null:Z),l==null||l(B,Q)}),F=Zr(B=>{H(B,!0),B!==m&&(_(B),e&&e(B))}),j=Zr(()=>{N&&F(N)}),L=Zr((B,Q,Z)=>{const ie=Q==="finish",J=Z?i.indexOf(Z)<i.length-1:!!N;if(r(B,ie&&J?"partial":Q,Z),Z&&Z!==m){const ue=i[i.indexOf(Z)+1];ue&&F(ue)}else ie&&j()});return{view:m,setView:F,focusedView:T,setFocusedView:H,nextView:N,previousView:O,defaultView:i.includes(t)?t:i[0],goToNextView:j,setValueAndGoToNextView:L}}function A1t(r,{disableFuture:e,maxDate:t,timezone:n}){const i=Gs();return V.useMemo(()=>{const o=i.date(void 0,n),a=i.startOfMonth(e&&i.isBefore(o,t)?o:t);return!i.isAfter(a,r)},[e,t,r,i,n])}function R1t(r,{disablePast:e,minDate:t,timezone:n}){const i=Gs();return V.useMemo(()=>{const o=i.date(void 0,n),a=i.startOfMonth(e&&i.isAfter(o,t)?o:t);return!i.isBefore(a,r)},[e,t,r,i,n])}const ND=36,F9=2,yJ=320,P1t=280,vJ=336,k1t=Nt("div")({overflow:"hidden",
974width:yJ,maxHeight:vJ,display:"flex",flexDirection:"column",margin:"0 auto"}),OB=(r,e,t)=>{let n=e;return n=r.setHours(n,r.getHours(t)),n=r.setMinutes(n,r.getMinutes(t)),n=r.setSeconds(n,r.getSeconds(t)),n=r.setMilliseconds(n,r.getMilliseconds(t)),n},EN=({date:r,disableFuture:e,disablePast:t,maxDate:n,minDate:i,isDateDisabled:o,utils:a,timezone:l})=>{const u=OB(a,a.date(void 0,l),r);t&&a.isBefore(i,u)&&(i=u),e&&a.isAfter(n,u)&&(n=u);let h=r,p=r;for(a.isBefore(r,i)&&(h=i,p=null),a.isAfter(r,n)&&(p&&(p=n),h=null);h||p;){if(h&&a.isAfter(h,n)&&(h=null),p&&a.isBefore(p,i)&&(p=null),h){if(!o(h))return h;h=a.addDays(h,1)}if(p){if(!o(p))return p;p=a.addDays(p,-1)}}return null},O1t=(r,e)=>e==null||!r.isValid(e)?null:e,Km=(r,e,t)=>e==null||!r.isValid(e)?t:e,M1t=(r,e,t)=>!r.isValid(e)&&e!=null&&!r.isValid(t)&&t!=null?!0:r.isEqual(e,t),_J=(r,e)=>{const n=[r.startOfYear(e)];for(;n.length<12;){const i=n[n.length-1];n.push(r.addMonths(i,1))}return n},LCe=(r,e,t)=>t==="date"?r.startOfDay(r.date(void 0,e)):r.date(void 0,e),N1t=["year","month","day"],Yce=r=>N1t.includes(r),HCe=(r,{format:e,views:t},n)=>{if(e!=null)return e;const i=r.formats;return SO(t,["year"])?i.year:SO(t,["month"])?i.month:SO(t,["day"])?i.dayOfMonth:SO(t,["month","year"])?`${i.month} ${i.year}`:SO(t,["day","month"])?`${i.month} ${i.dayOfMonth}`:n?/en/.test(r.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},D1t=(r,e)=>{const t=r.startOfWeek(e);return[0,1,2,3,4,5,6].map(n=>r.addDays(t,n))},bJ=({timezone:r,value:e,defaultValue:t,referenceDate:n,onChange:i,valueManager:o})=>{const a=Gs(),l=V.useRef(t),u=e??l.current??o.emptyValue,h=V.useMemo(()=>o.getTimezone(a,u),[a,o,u]),p=Zr(T=>h==null?T:o.setTimezone(a,h,T));let m;r?m=r:h?m=h:n?m=a.getTimezone(n):m="default";const _=V.useMemo(()=>o.setTimezone(a,m,u),[o,a,m,u]),C=Zr((T,...S)=>{const R=p(T);i==null||i(R,...S)});return{value:_,handleValueChange:C,timezone:m}},wJ=({name:r,timezone:e,value:t,defaultValue:n,referenceDate:i,onChange:o,valueManager:a})=>{const[l,u]=hg({name:r,state:"value",controlled:t,default:n??a.emptyValue}),h=Zr((p,...m)=>{u(p),o==null||o(p,...m)});return bJ({timezone:e,value:l,defaultValue:void 0,referenceDate:i,onChange:h,valueManager:a})},$0={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},L1t=r=>Math.max(...r.map(e=>$0[e.type]??1)),IO=(r,e,t)=>{if(e===$0.year)return r.startOfYear(t);if(e===$0.month)return r.startOfMonth(t);if(e===$0.day)return r.startOfDay(t);let n=t;return e<$0.minutes&&(n=r.setMinutes(n,0)),e<$0.seconds&&(n=r.setSeconds(n,0)),e<$0.milliseconds&&(n=r.setMilliseconds(n,0)),n},H1t=({props:r,utils:e,granularity:t,timezone:n,getTodayDate:i})=>{let o=i?i():IO(e,t,LCe(e,n));r.minDate!=null&&e.isAfterDay(r.minDate,o)&&(o=IO(e,t,r.minDate)),r.maxDate!=null&&e.isBeforeDay(r.maxDate,o)&&(o=IO(e,t,r.maxDate));const a=I1t(r.disableIgnoringDatePartForTimeValidation??!1,e);return r.minTime!=null&&a(r.minTime,o)&&(o=IO(e,t,r.disableIgnoringDatePartForTimeValidation?r.minTime:OB(e,o,r.minTime))),r.maxTime!=null&&a(o,r.maxTime)&&(o=IO(e,t,r.disableIgnoringDatePartForTimeValidation?r.maxTime:OB(e,o,r.maxTime))),o},FCe=(r,e)=>{const t=r.formatTokenMap[e];if(t==null)throw new Error([`MUI X: The token "${e}" 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(`
975`));return typeof t=="string"?{type:t,contentType:t==="meridiem"?"letter":"digit",maxLength:void 0}:{type:t.sectionType,contentType:t.contentType,maxLength:t.maxLength}},F1t=r=>{switch(r){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},U9=(r,e)=>{const t=[],n=r.date(void 0,"default"),i=r.startOfWeek(n),o=r.endOfWeek(n);let a=i;for(;r.isBefore(a,o);)t.push(a),a=r.addDays(a,1);return t.map(l=>r.formatByString(l,e))},UCe=(r,e,t,n)=>{switch(t){case"month":return _J(r,r.date(void 0,e)).map(i=>r.formatByString(i,n));case"weekDay":return U9(r,n);case"meridiem":{const i=r.date(void 0,e);return[r.startOfDay(i),r.endOfDay(i)].map(o=>r.formatByString(o,n))}default:return[]}},Wce="s",U1t=["0","1","2","3","4","5","6","7","8","9"],B1t=r=>{const e=r.date(void 0);return r.formatByString(r.setSeconds(e,0),Wce)==="0"?U1t:Array.from({length:10}).map((n,i)=>r.formatByString(r.setSeconds(e,i),Wce))},xS=(r,e)=>{if(e[0]==="0")return r;const t=[];let n="";for(let i=0;i<r.length;i+=1){n+=r[i];const o=e.indexOf(n);o>-1&&(t.push(o.toString()),n="")}return t.join("")},EJ=(r,e)=>e[0]==="0"?r:r.split("").map(t=>e[Number(t)]).join(""),Kce=(r,e)=>{const t=xS(r,e);return t!==" "&&!Number.isNaN(Number(t))},BCe=(r,e)=>{let t=r;for(t=Number(t).toString();t.length<e;)t=`0${t}`;return t},$Ce=(r,e,t,n,i)=>{if(i.type==="day"&&i.contentType==="digit-with-letter"){const a=r.setDate(t.longestMonth,e);return r.formatByString(a,i.format)}let o=e.toString();return i.hasLeadingZerosInInput&&(o=BCe(o,i.maxLength)),EJ(o,n)},$1t=(r,e,t,n,i,o,a,l)=>{const u=F1t(n),h=n==="Home",p=n==="End",m=t.value===""||h||p,_=()=>{const T=i[t.type]({currentDate:a,format:t.format,contentType:t.contentType}),S=N=>$Ce(r,N,T,o,t),R=t.type==="minutes"&&(l!=null&&l.minutesStep)?l.minutesStep:1;let O;
975if(m){if(t.type==="year"&&!p&&!h)return r.formatByString(r.date(void 0,e),t.format);u>0||h?O=T.minimum:O=T.maximum}else O=parseInt(xS(t.value,o),10)+u*R;return O%R!==0&&((u<0||h)&&(O+=R-(R+O)%R),(u>0||p)&&(O-=O%R)),O>T.maximum?S(T.minimum+(O-T.maximum-1)%(T.maximum-T.minimum+1)):O<T.minimum?S(T.maximum-(T.minimum-O-1)%(T.maximum-T.minimum+1)):S(O)},C=()=>{const T=UCe(r,e,t.type,t.format);if(T.length===0)return t.value;if(m)return u>0||h?T[0]:T[T.length-1];const O=((T.indexOf(t.value)+u)%T.length+T.length)%T.length;return T[O]};return t.contentType==="digit"||t.contentType==="digit-with-letter"?_():C()},CJ=(r,e,t)=>{let n=r.value||r.placeholder;const i=e==="non-input"?r.hasLeadingZerosInFormat:r.hasLeadingZerosInInput;return e==="non-input"&&r.hasLeadingZerosInInput&&!r.hasLeadingZerosInFormat&&(n=Number(xS(n,t)).toString()),["input-rtl","input-ltr"].includes(e)&&r.contentType==="digit"&&!i&&n.length===1&&(n=`${n}‎`),e==="input-rtl"&&(n=`⁨${n}⁩`),n},Zce=(r,e,t,n)=>r.formatByString(r.parse(e,t),n),z1t=(r,e)=>r.formatByString(r.date(void 0,"system"),e).length===4,zCe=(r,e,t,n)=>{if(e!=="digit")return!1;const i=r.date(void 0,"default");switch(t){case"year":return r.lib==="dayjs"&&n==="YY"?!0:r.formatByString(r.setYear(i,1),n).startsWith("0");case"month":return r.formatByString(r.startOfYear(i),n).length>1;case"day":return r.formatByString(r.startOfMonth(i),n).length>1;case"weekDay":return r.formatByString(r.startOfWeek(i),n).length>1;case"hours":return r.formatByString(r.setHours(i,1),n).length>1;case"minutes":return r.formatByString(r.setMinutes(i,1),n).length>1;case"seconds":return r.formatByString(r.setSeconds(i,1),n).length>1;default:throw new Error("Invalid section type")}},j1t=(r,e,t)=>{const n=e.some(u=>u.type==="day"),i=[],o=[];for(let u=0;u<e.length;u+=1){const h=e[u];n&&h.type==="weekDay"||(i.push(h.format),o.push(CJ(h,"non-input",t)))}const a=i.join(" "),l=o.join(" ");return r.parse(l,a)},V1t=r=>r.map(e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`).join(""),q1t=(r,e,t)=>{const i=r.map(o=>{const a=CJ(o,t?"input-rtl":"input-ltr",e);return`${o.startSeparator}${a}${o.endSeparator}`}).join("");return t?`⁦${i}⁩`:i},G1t=(r,e,t)=>{const n=r.date(void 0,t),i=r.endOfYear(n),o=r.endOfDay(n),{maxDaysInMonth:a,longestMonth:l}=_J(r,n).reduce((u,h)=>{const p=r.getDaysInMonth(h);return p>u.maxDaysInMonth?{maxDaysInMonth:p,longestMonth:h}:u},{maxDaysInMonth:0,longestMonth:null});return{year:({format:u})=>({minimum:0,maximum:z1t(r,u)?9999:99}),month:()=>({minimum:1,maximum:r.getMonth(i)+1}),day:({currentDate:u})=>({minimum:1,maximum:u!=null&&r.isValid(u)?r.getDaysInMonth(u):a,longestMonth:l}),weekDay:({format:u,contentType:h})=>{if(h==="digit"){const p=U9(r,u).map(Number);return{minimum:Math.min(...p),maximum:Math.max(...p)}}return{minimum:1,maximum:7}},hours:({format:u})=>{const h=r.getHours(o);return xS(r.formatByString(r.endOfDay(n),u),e)!==h.toString()?{minimum:1,maximum:Number(xS(r.formatByString(r.startOfDay(n),u),e))}:{minimum:0,maximum:h}},minutes:()=>({minimum:0,maximum:r.getMinutes(o)}),seconds:()=>({minimum:0,maximum:r.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},Y1t=(r,e,t,n)=>{switch(e.type){case"year":return r.setYear(n,r.getYear(t));case"month":return r.setMonth(n,r.getMonth(t));case"weekDay":{const i=U9(r,e.format),o=r.formatByString(t,e.format),a=i.indexOf(o),u=i.indexOf(e.value)-a;return r.addDays(t,u)}case"day":return r.setDate(n,r.getDate(t));case"meridiem":{const i=r.getHours(t)<12,o=r.getHours(n);return i&&o>=12?r.addHours(n,-12):!i&&o<12?r.addHours(n,12):n}case"hours":return r.setHours(n,r.getHours(t));case"minutes":return r.setMinutes(n,r.getMinutes(t));case"seconds":return r.setSeconds(n,r.getSeconds(t));default:return n}},Xce={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},Qce=(r,e,t,n,i)=>[...t].sort((o,a)=>Xce[o.type]-Xce[a.type]).reduce((o,a)=>!i||a.modified?Y1t(r,a,e,o):o,n),W1t=()=>navigator.userAgent.toLowerCase().includes("android"),K1t=(r,e)=>{const t={};if(!e)return r.forEach((u,h)=>{const p=h===0?null:h-1,m=h===r.length-1?null:h+1;t[h]={leftIndex:p,rightIndex:m}}),{neighbors:t,startIndex:0,endIndex:r.length-1};const n={},i={};let o=0,a=0,l=r.length-1;for(;l>=0;){a=r.findIndex((u,h)=>{var p;return h>=o&&((p=u.endSeparator)==null?void 0:p.includes(" "))&&u.endSeparator!==" / "}),a===-1&&(a=r.length-1);for(let u=a;u>=o;u-=1)i[u]=l,n[l]=u,l-=1;o=a+1}return r.forEach((u,h)=>{const p=i[h],m=p===0?null:n[p-1],_=p===r.length-1?null:n[p+1];t[h]={leftIndex:m,rightIndex:_}}),{neighbors:t,startIndex:n[0],endIndex:n[r.length-1]}},uW=(r,e)=>{if(r==null)return null;if(r==="all")return"all";if(typeof r=="string"){const t=e.findIndex(n=>n.type===r);return t===-1?null:t}return r},Z1t=(r,e)=>{if(r.value)switch(r.type){case"month":{if(r.contentType==="digit")return e.format(e.setMonth(e.date(),Number(r.value)-1),"month");const t=e.parse(r.value,r.format);return t?e.format(t,"month"):void 0}case"day":return r.contentType==="digit"?e.format(e.setDate(e.startOfYear(e.date()),Number(r.value)),"dayOfMonthFull"):r.value;case"weekDay":return;default:return}},X1t=(r,e)=>{if(r.value)switch(r.type){case"weekDay":return r.contentType==="letter"?void 0:Number(r.value);case"meridiem":{const t=e.parse(`01:00 ${r.value}`,`${e.formats.hours12h}:${e.formats.minutes} ${r.format}`);return t?e.getHours(t)>=12?1:0:void 0}case"day":return r.contentType==="digit-with-letter"?parseInt(r.value,10):Number(r.value);case"month":{if(r.contentType==="digit")return Number(r.value);const t=e.parse(r.value,r.format);return t?e.getMonth(t)+1:void 0}default:return r.contentType!=="letter"?Number(r.value):void 0}},Q1t=["value","referenceDate"],Tb={emptyValue:null,getTodayValue:LCe,getInitialReferenceValue:r=>{let{value:e,referenceDate:t}=r,n=Gt(r,Q1t);return e!=null&&n.utils.isValid(e)?e:t??H1t(n)},cleanValue:O1t,areValuesEqual:M1t,isSameError:(r,e)=>r===e,hasError:r=>r!=null,defaultErrorState:null,getTimezone:(r,e)=>e==null||!r.isValid(e)?null:r.getTimezone(e),setTimezone:(r,e,t)=>t==null?null:r.setTimezone(t,e)},J1t={updateReferenceValue:(r,e,t)=>e==null||!r.isValid(e)?t:e,getSectionsFromValue:(r,e,t,n)=>!r.isValid(e)&&!!t?t:n(e),getV7HiddenInputValueFromSections:V1t,getV6InputValueFromSections:q1t,getActiveDateManager:(r,e)=>({date:e.value,referenceDate:e.referenceValue,getSections:t=>t,getNewValuesFromNewActiveDate:t=>({value:t,referenceValue:t==null||!r.isValid(t)?e.referenceValue:t})}),parseValueStr:(r,e,t)=>t(r.trim(),e)};function ebt(r,e){return Array.isArray(e)?e.every(t=>r.indexOf(t)!==-1):r.indexOf(e)!==-1}const $f=(r=document)=>{const e=r.activeElement;return e?e.shadowRoot?$f(e.shadowRoot):e:null};function tbt(r){return Mr("MuiPickersDay",r)}const vx=Br("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),rbt=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onF
975ocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],nbt=r=>{const{selected:e,disableMargin:t,disableHighlightToday:n,today:i,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:l,classes:u}=r,h=a&&!l;return Ur({root:["root",e&&!h&&"selected",o&&"disabled",!t&&"dayWithMargin",!n&&i&&"today",a&&l&&"dayOutsideMonth",h&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},tbt,u)},jCe=({theme:r})=>ce({},r.typography.caption,{width:ND,height:ND,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:r.transitions.create("background-color",{duration:r.transitions.duration.short}),color:(r.vars||r).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / ${r.vars.palette.action.hoverOpacity})`:ES(r.palette.primary.main,r.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:r.vars?`rgba(${r.vars.palette.primary.mainChannel} / ${r.vars.palette.action.focusOpacity})`:ES(r.palette.primary.main,r.palette.action.focusOpacity),[`&.${vx.selected}`]:{willChange:"background-color",backgroundColor:(r.vars||r).palette.primary.dark}},[`&.${vx.selected}`]:{color:(r.vars||r).palette.primary.contrastText,backgroundColor:(r.vars||r).palette.primary.main,fontWeight:r.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(r.vars||r).palette.primary.dark}},[`&.${vx.disabled}:not(.${vx.selected})`]:{color:(r.vars||r).palette.text.disabled},[`&.${vx.disabled}&.${vx.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${F9}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(r.vars||r).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${vx.selected})`]:{border:`1px solid ${(r.vars||r).palette.text.secondary}`}}}]}),VCe=(r,e)=>{const{ownerState:t}=r;return[e.root,!t.disableMargin&&e.dayWithMargin,!t.disableHighlightToday&&t.today&&e.today,!t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&e.dayOutsideMonth,t.outsideCurrentMonth&&!t.showDaysOutsideCurrentMonth&&e.hiddenDaySpacingFiller]},ibt=Nt(Cb,{name:"MuiPickersDay",slot:"Root",overridesResolver:VCe})(jCe),obt=Nt("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:VCe})(({theme:r})=>ce({},jCe({theme:r}),{opacity:0,pointerEvents:"none"})),AO=()=>{},abt=V.forwardRef(function(e,t){const n=qs({props:e,name:"MuiPickersDay"}),{autoFocus:i=!1,className:o,day:a,disabled:l=!1,disableHighlightToday:u=!1,disableMargin:h=!1,isAnimating:p,onClick:m,onDaySelect:_,onFocus:C=AO,onBlur:T=AO,onKeyDown:S=AO,onMouseDown:R=AO,onMouseEnter:O=AO,outsideCurrentMonth:N,selected:H=!1,showDaysOutsideCurrentMonth:F=!1,children:j,today:L=!1}=n,B=Gt(n,rbt),Q=ce({},n,{autoFocus:i,disabled:l,disableHighlightToday:u,disableMargin:h,selected:H,showDaysOutsideCurrentMonth:F,today:L}),Z=nbt(Q),ie=Gs(),J=V.useRef(null),ne=wo(J,t);nl(()=>{i&&!l&&!p&&!N&&J.current.focus()},[i,l,p,N]);const ue=se=>{R(se),N&&se.preventDefault()},K=se=>{l||_(a),N&&se.currentTarget.focus(),m&&m(se)};return N&&!F?$.jsx(obt,{className:mr(Z.root,Z.hiddenDaySpacingFiller,o),ownerState:Q,role:B.role}):$.jsx(ibt,ce({className:mr(Z.root,o),ref:ne,centerRipple:!0,disabled:l,tabIndex:H?0:-1,onKeyDown:se=>S(se,a),onFocus:se=>C(se,a),onBlur:se=>T(se,a),onMouseEnter:se=>O(se,a),onClick:K,onMouseDown:ue},B,{ownerState:Q,children:j||ie.format(a,"dayOfMonth")}))}),sbt=V.memo(abt),B9=({props:r,value:e,timezone:t,adapter:n})=>{if(e===null)return null;const{shouldDisableDate:i,shouldDisableMonth:o,shouldDisableYear:a,disablePast:l,disableFuture:u}=r,h=n.utils.date(void 0,t),p=Km(n.utils,r.minDate,n.defaultDates.minDate),m=Km(n.utils,r.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(e):return"invalidDate";case!!(i&&i(e)):return"shouldDisableDate";case!!(o&&o(e)):return"shouldDisableMonth";case!!(a&&a(e)):return"shouldDisableYear";case!!(u&&n.utils.isAfterDay(e,h)):return"disableFuture";case!!(l&&n.utils.isBeforeDay(e,h)):return"disablePast";case!!(p&&n.utils.isBeforeDay(e,p)):return"minDate";case!!(m&&n.utils.isAfterDay(e,m)):return"maxDate";default:return null}};B9.valueManager=Tb;const qCe=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],lbt=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],cbt=["minDateTime","maxDateTime"],ubt=[...qCe,...lbt,...cbt],dbt=r=>ubt.reduce((e,t)=>
975(r.hasOwnProperty(t)&&(e[t]=r[t]),e),{});function GCe(r){const{props:e,validator:t,value:n,timezone:i,onError:o}=r,a=GS(),l=V.useRef(t.valueManager.defaultErrorState),u=t({adapter:a,value:n,timezone:i,props:e}),h=t.valueManager.hasError(u);V.useEffect(()=>{o&&!t.valueManager.isSameError(u,l.current)&&o(u,n),l.current=u},[t,o,u,n]);const p=Zr(m=>t({adapter:a,value:m,timezone:i,props:e}));return{validationError:u,hasValidationError:h,getValidationErrorForNewValue:p}}const hbt=({utils:r,format:e})=>{let t=10,n=e,i=r.expandFormat(e);for(;i!==n;)if(n=i,i=r.expandFormat(n),t-=1,t<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return i},fbt=({utils:r,expandedFormat:e})=>{const t=[],{start:n,end:i}=r.escapedCharacters,o=new RegExp(`(\\${n}[^\\${i}]*\\${i})+`,"g");let a=null;for(;a=o.exec(e);)t.push({start:a.index,end:o.lastIndex-1});return t},pbt=(r,e,t,n)=>{switch(t.type){case"year":return e.fieldYearPlaceholder({digitAmount:r.formatByString(r.date(void 0,"default"),n).length,format:n});case"month":return e.fieldMonthPlaceholder({contentType:t.contentType,format:n});case"day":return e.fieldDayPlaceholder({format:n});case"weekDay":return e.fieldWeekDayPlaceholder({contentType:t.contentType,format:n});case"hours":return e.fieldHoursPlaceholder({format:n});case"minutes":return e.fieldMinutesPlaceholder({format:n});case"seconds":return e.fieldSecondsPlaceholder({format:n});case"meridiem":return e.fieldMeridiemPlaceholder({format:n});default:return n}},gbt=({utils:r,date:e,shouldRespectLeadingZeros:t,localeText:n,localizedDigits:i,now:o,token:a,startSeparator:l})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const u=FCe(r,a),h=zCe(r,u.contentType,u.type,a),p=t?h:u.contentType==="digit",m=e!=null&&r.isValid(e);let _=m?r.formatByString(e,a):"",C=null;if(p)if(h)C=_===""?r.formatByString(o,a).length:_.length;else{if(u.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);C=u.maxLength,m&&(_=EJ(BCe(xS(_,i),C),i))}return ce({},u,{format:a,maxLength:C,value:_,placeholder:pbt(r,n,u,a),hasLeadingZerosInFormat:h,hasLeadingZerosInInput:p,startSeparator:l,endSeparator:"",modified:!1})},mbt=r=>{var C;const{utils:e,expandedFormat:t,escapedParts:n}=r,i=e.date(void 0),o=[];let a="";const l=Object.keys(e.formatTokenMap).sort((T,S)=>S.length-T.length),u=/^([a-zA-Z]+)/,h=new RegExp(`^(${l.join("|")})*$`),p=new RegExp(`^(${l.join("|")})`),m=T=>n.find(S=>S.start<=T&&S.end>=T);let _=0;for(;_<t.length;){const T=m(_),S=T!=null,R=(C=u.exec(t.slice(_)))==null?void 0:C[1];if(!S&&R!=null&&h.test(R)){let O=R;for(;O.length>0;){const N=p.exec(O)[1];O=O.slice(N.length),o.push(gbt(ce({},r,{now:i,token:N,startSeparator:a}))),a=""}_+=R.length}else{const O=t[_];S&&(T==null?void 0:T.start)===_||(T==null?void 0:T.end)===_||(o.length===0?a+=O:o[o.length-1].endSeparator+=O),_+=1}}return o.length===0&&a.length>0&&o.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),o},ybt=({isRtl:r,formatDensity:e,sections:t})=>t.map(n=>{const i=o=>{let a=o;return r&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),e==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return n.startSeparator=i(n.startSeparator),n.endSeparator=i(n.endSeparator),n}),Jce=r=>{let e=hbt(r);r.isRtl&&r.enableAccessibleFieldDOMStructure&&(e=e.split(" ").reverse().join(" "));const t=fbt(ce({},r,{expandedFormat:e})),n=mbt(ce({},r,{expandedFormat:e,escapedParts:t}));return ybt(ce({},r,{sections:n}))},vbt=r=>{const e=Gs(),t=vC(),n=GS(),i=Lb(),{valueManager:o,fieldValueManager:a,valueType:l,validator:u,internalProps:h,internalProps:{value:p,defaultValue:m,referenceDate:_,onChange:C,format:T,formatDensity:S="dense",selectedSections:R,onSelectedSectionsChange:O,shouldRespectLeadingZeros:N=!1,timezone:H,enableAccessibleFieldDOMStructure:F=!1}}=r,{timezone:j,value:L,handleValueChange:B}
975=bJ({timezone:H,value:p,defaultValue:m,referenceDate:_,onChange:C,valueManager:o}),Q=V.useMemo(()=>B1t(e),[e]),Z=V.useMemo(()=>G1t(e,Q,j),[e,Q,j]),ie=V.useCallback(($e,tt=null)=>a.getSectionsFromValue(e,$e,tt,ot=>Jce({utils:e,localeText:t,localizedDigits:Q,format:T,date:ot,formatDensity:S,shouldRespectLeadingZeros:N,enableAccessibleFieldDOMStructure:F,isRtl:i})),[a,T,t,Q,i,N,e,S,F]),[J,ne]=V.useState(()=>{const $e=ie(L),tt={sections:$e,value:L,referenceValue:o.emptyValue,tempValueStrAndroid:null},ot=L1t($e),qe=o.getInitialReferenceValue({referenceDate:_,value:L,utils:e,props:h,granularity:ot,timezone:j});return ce({},tt,{referenceValue:qe})}),[ue,K]=hg({controlled:R,default:null,name:"useField",state:"selectedSections"}),se=$e=>{K($e),O==null||O($e)},be=V.useMemo(()=>uW(ue,J.sections),[ue,J.sections]),de=be==="all"?0:be,ge=({value:$e,referenceValue:tt,sections:ot})=>{if(ne(lt=>ce({},lt,{sections:ot,value:$e,referenceValue:tt,tempValueStrAndroid:null})),o.areValuesEqual(e,J.value,$e))return;const qe={validationError:u({adapter:n,value:$e,timezone:j,props:h})};B($e,qe)},Ue=($e,tt)=>{const ot=[...J.sections];return ot[$e]=ce({},ot[$e],{value:tt,modified:!0}),ot},Qe=()=>{ge({value:o.emptyValue,referenceValue:J.referenceValue,sections:ie(o.emptyValue)})},ve=()=>{if(de==null)return;const $e=J.sections[de],tt=a.getActiveDateManager(e,J,$e),qe=tt.getSections(J.sections).filter(le=>le.value!=="").length===($e.value===""?0:1),lt=Ue(de,""),Et=qe?null:e.getInvalidDate(),Oe=tt.getNewValuesFromNewActiveDate(Et);ge(ce({},Oe,{sections:lt}))},pe=$e=>{const tt=(lt,Et)=>{const Oe=e.parse(lt,T);if(Oe==null||!e.isValid(Oe))return null;const le=Jce({utils:e,localeText:t,localizedDigits:Q,format:T,date:Oe,formatDensity:S,shouldRespectLeadingZeros:N,enableAccessibleFieldDOMStructure:F,isRtl:i});return Qce(e,Oe,le,Et,!1)},ot=a.parseValueStr($e,J.referenceValue,tt),qe=a.updateReferenceValue(e,ot,J.referenceValue);ge({value:ot,referenceValue:qe,sections:ie(ot,J.sections)})},He=({activeSection:$e,newSectionValue:tt,shouldGoToNextSection:ot})=>{ot&&de<J.sections.length-1&&se(de+1);const qe=a.getActiveDateManager(e,J,$e),lt=Ue(de,tt),Et=qe.getSections(lt),Oe=j1t(e,Et,Q);let le,re;if(Oe!=null&&e.isValid(Oe)){const te=Qce(e,Oe,Et,qe.referenceDate,!0);le=qe.getNewValuesFromNewActiveDate(te),re=!0}else le=qe.getNewValuesFromNewActiveDate(Oe),re=(Oe!=null&&!e.isValid(Oe))!=(qe.date!=null&&!e.isValid(qe.date));return re?ge(ce({},le,{sections:lt})):ne(te=>ce({},te,le,{sections:lt,tempValueStrAndroid:null}))},Re=$e=>ne(tt=>ce({},tt,{tempValueStrAndroid:$e}));return V.useEffect(()=>{const $e=ie(J.value);ne(tt=>ce({},tt,{sections:$e}))},[T,e.locale,i]),V.useEffect(()=>{let $e;o.areValuesEqual(e,J.value,L)?$e=o.getTimezone(e,J.value)!==o.getTimezone(e,L):$e=!0,$e&&ne(tt=>ce({},tt,{value:L,referenceValue:a.updateReferenceValue(e,L,tt.referenceValue),sections:ie(L)}))},[L]),{state:J,activeSectionIndex:de,parsedSelectedSections:be,setSelectedSections:se,clearValue:Qe,clearActiveSection:ve,updateSectionValue:He,updateValueFromValueStr:pe,setTempAndroidValueStr:Re,getSectionsFromValue:ie,sectionsValueBoundaries:Z,localizedDigits:Q,timezone:j}},_bt=5e3,iA=r=>r.saveQuery!=null,bbt=({sections:r,updateSectionValue:e,sectionsValueBoundaries:t,localizedDigits:n,setTempAndroidValueStr:i,timezone:o})=>{const a=Gs(),[l,u]=V.useState(null),h=Zr(()=>u(null));V.useEffect(()=>{var T;l!=null&&((T=r[l.sectionIndex])==null?void 0:T.type)!==l.sectionType&&h()},[r,l,h]),V.useEffect(()=>{if(l!=null){const T=setTimeout(()=>h(),_bt);return()=>{clearTimeout(T)}}return()=>{}},[l,h]);const p=({keyPressed:T,sectionIndex:S},R,O)=>{const N=T.toLowerCase(),H=r[S];if(l!=null&&(!O||O(l.value))&&l.sectionIndex===S){const j=`${l.value}${N}`,L=R(j,H);if(!iA(L))return u({sectionIndex:S,value:j,sectionType:H.type}),L}const F=R(N,H);return iA(F)&&!F.saveQuery?(h(),null):(u({sectionIndex:S,value:N,sectionType:H.type}),iA(F)?null:F)},m=T=>{const S=(N,H,F)=>{const j=H.filter(L=>L.toLowerCase().startsWith(F));return j.length===0?{saveQuery:!1}:{sectionValue:j[0],shouldGoToNextSection:j.length===1}},R=(N,H,F,j)=>{const L=B=>UCe(a,o,H.type,B);if(H.contentType==="letter")return S(H.format,L(H.format),N);if(F&&j!=null&&FCe(a,F).contentType==="letter"){const B=L(F),Q=S(F,B,N);return iA(Q)?{saveQuery:!1}:ce({},Q,{sectionValue:j(Q.sectionValue,B)})}return{saveQuery:!1}};return p(T,(N,H)=>{switch(H.type){case"month":{const F=j=>Zce(a,j,a.formats.month,H.format);return R(N,H,a.formats.month,F)}case"weekDay":{const F=(j,L)=>L.indexOf(j).toString();return R(N,H,a.formats.weekday,F)}case"meridiem":return R(N,H);default:return{saveQuery:!1}}})},_=T=>{const S=(O,N)=>{const H=xS(O,n),F=Number(H),j=t[N.type]({currentDate:null,format:N.format,contentType:N.contentType});if(F>j.maximum)return{saveQuery:!1};if(F<j.minimum)return{saveQuery:!0};const L=F*10>j.maximum||H.length===j.maximum.toString().length;return{sectionValue:$Ce(a,F,j,n,N),shouldGoToNextSection:L}};return p(T,(O,N)=>{if(N.contentType==="digit"||N.contentType==="digit-with-letter")return S(O,N);if(N.type==="month"){zCe(a,"digit","month","MM");
975const H=S(O,{type:N.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(iA(H))return H;const F=Zce(a,H.sectionValue,"MM",N.format);return ce({},H,{sectionValue:F})}if(N.type==="weekDay"){const H=S(O,N);if(iA(H))return H;const F=U9(a,N.format)[Number(H.sectionValue)-1];return ce({},H,{sectionValue:F})}return{saveQuery:!1}},O=>Kce(O,n))};return{applyCharacterEditing:Zr(T=>{const S=r[T.sectionIndex],O=Kce(T.keyPressed,n)?_(ce({},T,{keyPressed:EJ(T.keyPressed,n)})):m(T);if(O==null){i(null);return}e({activeSection:S,newSectionValue:O.sectionValue,shouldGoToNextSection:O.shouldGoToNextSection})}),resetCharacterQuery:h}},wbt=r=>{const{internalProps:{disabled:e,readOnly:t=!1},forwardedProps:{sectionListRef:n,onBlur:i,onClick:o,onFocus:a,onInput:l,onPaste:u,focused:h,autoFocus:p=!1},fieldValueManager:m,applyCharacterEditing:_,resetCharacterQuery:C,setSelectedSections:T,parsedSelectedSections:S,state:R,clearActiveSection:O,clearValue:N,updateSectionValue:H,updateValueFromValueStr:F,sectionOrder:j,areAllSectionsEmpty:L,sectionsValueBoundaries:B}=r,Q=V.useRef(null),Z=wo(n,Q),ie=vC(),J=Gs(),ne=Jm(),[ue,K]=V.useState(!1),se=V.useMemo(()=>({syncSelectionToDOM:()=>{if(!Q.current)return;const re=document.getSelection();if(!re)return;if(S==null){re.rangeCount>0&&Q.current.getRoot().contains(re.getRangeAt(0).startContainer)&&re.removeAllRanges(),ue&&Q.current.getRoot().blur();return}if(!Q.current.getRoot().contains($f(document)))return;const te=new window.Range;let me;S==="all"?me=Q.current.getRoot():R.sections[S].type==="empty"?me=Q.current.getSectionContainer(S):me=Q.current.getSectionContent(S),te.selectNodeContents(me),me.focus(),re.removeAllRanges(),re.addRange(te)},getActiveSectionIndexFromDOM:()=>{const re=$f(document);return!re||!Q.current||!Q.current.getRoot().contains(re)?null:Q.current.getSectionIndexFromDOMElement(re)},focusField:(re=0)=>{if(!Q.current||se.getActiveSectionIndexFromDOM()!=null)return;const te=uW(re,R.sections);K(!0),Q.current.getSectionContent(te).focus()},setSelectedSections:re=>{if(!Q.current)return;const te=uW(re,R.sections);K((te==="all"?0:te)!==null),T(re)},isFieldFocused:()=>{const re=$f(document);return!!Q.current&&Q.current.getRoot().contains(re)}}),[S,T,R.sections,ue]),be=Zr(re=>{if(!Q.current)return;const te=R.sections[re];Q.current.getSectionContent(re).innerHTML=te.value||te.placeholder,se.syncSelectionToDOM()}),de=Zr((re,...te)=>{re.isDefaultPrevented()||!Q.current||(K(!0),o==null||o(re,...te),S==="all"?setTimeout(()=>{const me=document.getSelection().getRangeAt(0).startOffset;if(me===0){T(j.startIndex);return}let Ae=0,_e=0;for(;_e<me&&Ae<R.sections.length;){const Ve=R.sections[Ae];Ae+=1,_e+=`${Ve.startSeparator}${Ve.value||Ve.placeholder}${Ve.endSeparator}`.length}T(Ae-1)}):ue?Q.current.getRoot().contains(re.target)||T(j.startIndex):(K(!0),T(j.startIndex)))}),ge=Zr(re=>{if(l==null||l(re),!Q.current||S!=="all")return;const me=re.target.textContent??"";Q.current.getRoot().innerHTML=R.sections.map(Ae=>`${Ae.startSeparator}${Ae.value||Ae.placeholder}${Ae.endSeparator}`).join(""),se.syncSelectionToDOM(),me.length===0||me.charCodeAt(0)===10?(C(),N(),T("all")):me.length>1?F(me):(S==="all"&&T(0),_({keyPressed:me,sectionIndex:0}))}),Ue=Zr(re=>{if(u==null||u(re),t||S!=="all"){re.preventDefault();return}const te=re.clipboardData.getData("text");re.preventDefault(),C(),F(te)}),Qe=Zr((...re)=>{if(a==null||a(...re),ue||!Q.current)return;K(!0),Q.current.getSectionIndexFromDOMElement($f(document))!=null||T(j.startIndex)}),ve=Zr((...re)=>{i==null||i(...re),setTimeout(()=>{if(!Q.current)return;const te=$f(document);!Q.current.getRoot().contains(te)&&(K(!1),T(null))})}),pe=Zr(re=>te=>{te.isDefaultPrevented()||T(re)}),He=Zr(re=>{re.preventDefault()}),Re=Zr(re=>()=>{T(re)}),$e=Zr(re=>{if(re.preventDefault(),t||e||typeof S!="number")return;const te=R.sections[S],me=re.clipboardData.getData("text"),Ae=/^[a-zA-Z]+$/.test(me),_e=/^[0-9]+$/.test(me),Ve=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(me);te.contentType==="letter"&&Ae||te.contentType==="digit"&&_e||te.contentType==="digit-with-letter"&&Ve?(C(),H({activeSection:te,newSectionValue:me,shouldGoToNextSection:!0}
975)):!Ae&&!_e&&(C(),F(me))}),tt=Zr(re=>{re.preventDefault(),re.dataTransfer.dropEffect="none"}),ot=Zr(re=>{if(!Q.current)return;const te=re.target,me=te.textContent??"",Ae=Q.current.getSectionIndexFromDOMElement(te),_e=R.sections[Ae];if(t||!Q.current){be(Ae);return}if(me.length===0){if(_e.value===""){be(Ae);return}const Ve=re.nativeEvent.inputType;if(Ve==="insertParagraph"||Ve==="insertLineBreak"){be(Ae);return}C(),O();return}_({keyPressed:me,sectionIndex:Ae}),be(Ae)});nl(()=>{if(!(!ue||!Q.current)){if(S==="all")Q.current.getRoot().focus();else if(typeof S=="number"){const re=Q.current.getSectionContent(S);re&&re.focus()}}},[S,ue]);const qe=V.useMemo(()=>R.sections.reduce((re,te)=>(re[te.type]=B[te.type]({currentDate:null,contentType:te.contentType,format:te.format}),re),{}),[B,R.sections]),lt=S==="all",Et=V.useMemo(()=>R.sections.map((re,te)=>{const me=!lt&&!e&&!t;return{container:{"data-sectionindex":te,onClick:pe(te)},content:{tabIndex:lt||te>0?-1:0,contentEditable:!lt&&!e&&!t,role:"spinbutton",id:`${ne}-${re.type}`,"aria-labelledby":`${ne}-${re.type}`,"aria-readonly":t,"aria-valuenow":X1t(re,J),"aria-valuemin":qe[re.type].minimum,"aria-valuemax":qe[re.type].maximum,"aria-valuetext":re.value?Z1t(re,J):ie.empty,"aria-label":ie[re.type],"aria-disabled":e,spellCheck:me?!1:void 0,autoCapitalize:me?"off":void 0,autoCorrect:me?"off":void 0,[parseInt(V.version,10)>=17?"enterKeyHint":"enterkeyhint"]:me?"next":void 0,children:re.value||re.placeholder,onInput:ot,onPaste:$e,onFocus:Re(te),onDragOver:tt,onMouseUp:He,inputMode:re.contentType==="letter"?"text":"numeric"},before:{children:re.startSeparator},after:{children:re.endSeparator}}}),[R.sections,Re,$e,tt,ot,pe,He,e,t,lt,ie,J,qe,ne]),Oe=Zr(re=>{F(re.target.value)}),le=V.useMemo(()=>L?"":m.getV7HiddenInputValueFromSections(R.sections),[L,R.sections,m]);return V.useEffect(()=>{if(Q.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
976`));p&&Q.current&&Q.current.getSectionContent(j.startIndex).focus()},[]),{interactions:se,returnedValue:{autoFocus:p,readOnly:t,focused:h??ue,sectionListRef:Z,onBlur:ve,onClick:de,onFocus:Qe,onInput:ge,onPaste:Ue,enableAccessibleFieldDOMStructure:!0,elements:Et,tabIndex:S===0?-1:0,contentEditable:lt,value:le,onChange:Oe,areAllSectionsEmpty:L}}},pR=r=>r.replace(/[\u2066\u2067\u2068\u2069]/g,""),Ebt=(r,e,t)=>{let n=0,i=t?1:0;const o=[];for(let a=0;a<r.length;a+=1){const l=r[a],u=CJ(l,t?"input-rtl":"input-ltr",e),h=`${l.startSeparator}${u}${l.endSeparator}`,p=pR(h).length,m=h.length,_=pR(u),C=i+(_===""?0:u.indexOf(_[0]))+l.startSeparator.length,T=C+_.length;o.push(ce({},l,{start:n,end:n+p,startInInput:C,endInInput:T})),n+=p,i+=m}return o},Cbt=r=>{const e=Lb(),t=V.useRef(void 0),n=V.useRef(void 0),{forwardedProps:{onFocus:i,onClick:o,onPaste:a,onBlur:l,inputRef:u,placeholder:h},internalProps:{readOnly:p=!1,disabled:m=!1},parsedSelectedSections:_,activeSectionIndex:C,state:T,fieldValueManager:S,valueManager:R,applyCharacterEditing:O,resetCharacterQuery:N,updateSectionValue:H,updateValueFromValueStr:F,clearActiveSection:j,clearValue:L,setTempAndroidValueStr:B,setSelectedSections:Q,getSectionsFromValue:Z,areAllSectionsEmpty:ie,localizedDigits:J}=r,ne=V.useRef(null),ue=wo(u,ne),K=V.useMemo(()=>Ebt(T.sections,J,e),[T.sections,J,e]),se=V.useMemo(()=>({syncSelectionToDOM:()=>{if(!ne.current)return;if(_==null){ne.current.scrollLeft&&(ne.current.scrollLeft=0);return}if(ne.current!==$f(document))return;const ot=ne.current.scrollTop;if(_==="all")ne.current.select();else{const qe=K[_],lt=qe.type==="empty"?qe.startInInput-qe.startSeparator.length:qe.startInInput,Et=qe.type==="empty"?qe.endInInput+qe.endSeparator.length:qe.endInInput;(lt!==ne.current.selectionStart||Et!==ne.current.selectionEnd)&&ne.current===$f(document)&&ne.current.setSelectionRange(lt,Et),clearTimeout(n.current),n.current=setTimeout(()=>{ne.current&&ne.current===$f(document)&&ne.current.selectionStart===ne.current.selectionEnd&&(ne.current.selectionStart!==lt||ne.current.selectionEnd!==Et)&&se.syncSelectionToDOM()})}ne.current.scrollTop=ot},getActiveSectionIndexFromDOM:()=>{const ot=ne.current.selectionStart??0,qe=ne.current.selectionEnd??0;if(ot===0&&qe===0)return null;const lt=ot<=K[0].startInInput?1:K.findIndex(Et=>Et.startInInput-Et.startSeparator.length>
976ot);return lt===-1?K.length-1:lt-1},focusField:(ot=0)=>{var qe;$f(document)!==ne.current&&((qe=ne.current)==null||qe.focus(),Q(ot))},setSelectedSections:ot=>Q(ot),isFieldFocused:()=>ne.current===$f(document)}),[ne,_,K,Q]),be=()=>{const ot=ne.current.selectionStart??0;let qe;ot<=K[0].startInInput||ot>=K[K.length-1].endInInput?qe=1:qe=K.findIndex(Et=>Et.startInInput-Et.startSeparator.length>ot);const lt=qe===-1?K.length-1:qe-1;Q(lt)},de=Zr((...ot)=>{i==null||i(...ot);const qe=ne.current;clearTimeout(t.current),t.current=setTimeout(()=>{!qe||qe!==ne.current||C==null&&(qe.value.length&&Number(qe.selectionEnd)-Number(qe.selectionStart)===qe.value.length?Q("all"):be())})}),ge=Zr((ot,...qe)=>{ot.isDefaultPrevented()||(o==null||o(ot,...qe),be())}),Ue=Zr(ot=>{if(a==null||a(ot),ot.preventDefault(),p||m)return;const qe=ot.clipboardData.getData("text");if(typeof _=="number"){const lt=T.sections[_],Et=/^[a-zA-Z]+$/.test(qe),Oe=/^[0-9]+$/.test(qe),le=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(qe);if(lt.contentType==="letter"&&Et||lt.contentType==="digit"&&Oe||lt.contentType==="digit-with-letter"&&le){N(),H({activeSection:lt,newSectionValue:qe,shouldGoToNextSection:!0});return}if(Et||Oe)return}N(),F(qe)}),Qe=Zr((...ot)=>{l==null||l(...ot),Q(null)}),ve=Zr(ot=>{if(p)return;const qe=ot.target.value;if(qe===""){N(),L();return}const lt=ot.nativeEvent.data,Et=lt&&lt.length>1,Oe=Et?lt:qe,le=pR(Oe);if(_==="all"&&Q(C),C==null||Et){F(Et?lt:le);return}let re;if(_==="all"&&le.length===1)re=le;else{const te=pR(S.getV6InputValueFromSections(K,J,e));let me=-1,Ae=-1;for(let vt=0;vt<te.length;vt+=1)me===-1&&te[vt]!==le[vt]&&(me=vt),Ae===-1&&te[te.length-vt-1]!==le[le.length-vt-1]&&(Ae=vt);const _e=K[C];if(me<_e.start||te.length-Ae-1>_e.end)return;const it=le.length-te.length+_e.end-pR(_e.endSeparator||"").length;re=le.slice(_e.start+pR(_e.startSeparator||"").length,it)}if(re.length===0){W1t()&&B(Oe),N(),j();return}O({keyPressed:re,sectionIndex:C})}),pe=V.useMemo(()=>h!==void 0?h:S.getV6InputValueFromSections(Z(R.emptyValue),J,e),[h,S,Z,R.emptyValue,J,e]),He=V.useMemo(()=>T.tempValueStrAndroid??S.getV6InputValueFromSections(T.sections,J,e),[T.sections,S,T.tempValueStrAndroid,J,e]);V.useEffect(()=>(ne.current&&ne.current===$f(document)&&Q("all"),()=>{clearTimeout(t.current),clearTimeout(n.current)}),[]);const Re=V.useMemo(()=>C==null||T.sections[C].contentType==="letter"?"text":"numeric",[C,T.sections]),tt=!(ne.current&&ne.current===$f(document))&&ie;return{interactions:se,returnedValue:{readOnly:p,onBlur:Qe,onClick:ge,onFocus:de,onPaste:Ue,inputRef:ue,enableAccessibleFieldDOMStructure:!1,placeholder:pe,inputMode:Re,autoComplete:"off",value:tt?"":He,onChange:ve}}},xbt=r=>{const e=Gs(),{internalProps:t,internalProps:{unstableFieldRef:n,minutesStep:i,enableAccessibleFieldDOMStructure:o=!1,disabled:a=!1,readOnly:l=!1},forwardedProps:{onKeyDown:u,error:h,clearable:p,onClear:m},fieldValueManager:_,valueManager:C,validator:T}=r,S=Lb(),R=vbt(r),{state:O,activeSectionIndex:N,parsedSelectedSections:H,setSelectedSections:F,clearValue:j,clearActiveSection:L,updateSectionValue:B,setTempAndroidValueStr:Q,sectionsValueBoundaries:Z,localizedDigits:ie,timezone:J}=R,ne=bbt({sections:O.sections,updateSectionValue:B,sectionsValueBoundaries:Z,localizedDigits:ie,setTempAndroidValueStr:Q,timezone:J}),{resetCharacterQuery:ue}=ne,K=C.areValuesEqual(e,O.value,C.emptyValue),se=o?wbt:Cbt,be=V.useMemo(()=>K1t(O.sections,S&&!o),[O.sections,S,o]),{returnedValue:de,interactions:ge}=se(ce({},r,R,ne,{areAllSectionsEmpty:K,sectionOrder:be})),Ue=Zr($e=>{if(u==null||u($e),!a)switch(!0){case(($e.ctrlKey||$e.metaKey)&&String.fromCharCode($e.keyCode)==="A"&&!$e.shiftKey&&!$e.altKey):{$e.preventDefault(),F("all");break}case $e.key==="ArrowRight":{if($e.preventDefault(),H==null)F(be.startIndex);else if(H==="all")F(be.endIndex);else{const tt=be.neighbors[H].rightIndex;tt!==null&&F(tt)}break}case $e.key==="ArrowLeft":{if($e.preventDefault(),H==null)F(be.endIndex);else if(H==="all")F(be.startIndex);else{const tt=be.neighbors[H].leftIndex;tt!==null&&F(tt)}break}case $e.key==="Delete":{if($e.preventDefault(),l)break;H==null||H==="all"?j():L(),ue();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes($e.key):{if($e.preventDefault(),l||N==null)break;H==="all"&&F(N);const tt=O.sections[N],ot=_.getActiveDateManager(e,O,tt),qe=$1t(e,J,tt,$e.key,Z,ie,ot.date,{minutesStep:i});B({activeSection:tt,newSectionValue:qe,shouldGoToNextSection:!1});break}}});nl(()=>{ge.syncSelectionToDOM()});const{hasValidationError:Qe}=GCe({props:t,validator:T,timezone:J,value:O.value,onError:t.onError}),ve=V.useMemo(()=>h!==void 0?h:Qe,[Qe,h]);V.useEffect(()=>{!ve&&N==null&&ue()},[O.referenceValue,N,ve]),V.useEffect(()=>{O.tempValueStrAndroid!=null&&N!=null&&(ue(),L())},[O.sections]),V.useImperativeHandle(n,()=>({getSections:()=>O.sections,getActiveSectionIndex:ge.getActiveSectionIndexFromDOM,setSelectedSections:ge.setSelectedSections,focusField:ge.focusField,isFieldFocused:ge.isFieldFocused}));const pe=Zr(($e,...tt)=>{$e.preventDefault(),m==null||m($e,...tt),j(),ge.isFieldFocused()?F(be.startIndex):ge.focusField(0)}),He={onKeyDown:Ue,onClear:pe,error:ve,clearable:!!(p&&!K&&!l&&!a)},Re={disabled:a,readOnly:l};return ce({},r.forwardedProps,He,Re,de)}
976,Tbt=["clearable","onClear","InputProps","sx","slots","slotProps"],Sbt=["ownerState"],Ibt=r=>{const e=vC(),{clearable:t,onClear:n,InputProps:i,sx:o,slots:a,slotProps:l}=r,u=Gt(r,Tbt),h=(a==null?void 0:a.clearButton)??pv,p=bo({elementType:h,externalSlotProps:l==null?void 0:l.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:e.fieldClearLabel}}),m=Gt(p,Sbt),_=(a==null?void 0:a.clearIcon)??g1t,C=bo({elementType:_,externalSlotProps:l==null?void 0:l.clearIcon,ownerState:{}});return ce({},u,{InputProps:ce({},i,{endAdornment:$.jsxs(V.Fragment,{children:[t&&$.jsx(hJ,{position:"end",sx:{marginRight:i!=null&&i.endAdornment?-1:-1.5},children:$.jsx(h,ce({},m,{onClick:n,children:$.jsx(_,ce({fontSize:"small"},C))}))}),i==null?void 0:i.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(o)?o:[o]]})},Abt=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],Rbt=(r,e)=>V.useMemo(()=>{const t=ce({},r),n={},i=o=>{t.hasOwnProperty(o)&&(n[o]=t[o],delete t[o])};return Abt.forEach(i),qCe.forEach(i),{forwardedProps:t,internalProps:n}},[r,e]),Pbt=V.createContext(null);function kbt(r){const{contextValue:e,localeText:t,children:n}=r;return $.jsx(Pbt.Provider,{value:e,children:$.jsx(a1t,{localeText:t,children:n})})}const Obt=r=>{const e=Gs(),t=WL();return ce({},r,{disablePast:r.disablePast??!1,disableFuture:r.disableFuture??!1,format:r.format??e.formats.keyboardDate,minDate:Km(e,r.minDate,t.minDate),maxDate:Km(e,r.maxDate,t.maxDate)})},Mbt=r=>{const e=Obt(r),{forwardedProps:t,internalProps:n}=Rbt(e,"date");return xbt({forwardedProps:t,internalProps:n,valueManager:Tb,fieldValueManager:J1t,validator:B9,valueType:"date"})};function Nbt(r){return Mr("MuiPickersTextField",r)}Br("MuiPickersTextField",["root","focused","disabled","error","required"]);function Dbt(r){return Mr("MuiPickersInputBase",r)}const nP=Br("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function Lbt(r){return Mr("MuiPickersSectionList",r)}const RO=Br("MuiPickersSectionList",["root","section","sectionContent"]),Hbt=["slots","slotProps","elements","sectionListRef"],YCe=Nt("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(r,e)=>e.root})({direction:"ltr /*! @noflip */",outline:"none"}),WCe=Nt("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(r,e)=>e.section})({}),KCe=Nt("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(r,e)=>e.sectionSeparator})({whiteSpace:"pre"}),ZCe=Nt("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(r,e)=>e.sectionContent})({outline:"none"}),Fbt=r=>{const{classes:e}=r;return Ur({root:["root"],section:["section"],sectionContent:["sectionContent"]},Lbt,e)};function Ubt(r){const{slots:e,slotProps:t,element:n,classes:i}=r,o=(e==null?void 0:e.section)??WCe,a=bo({elementType:o,externalSlotProps:t==null?void 0:t.section,externalForwardedProps:n.container,className:i.section,ownerState:{}}),l=(e==null?void 0:e.sectionContent)??ZCe,u=bo({elementType:l,externalSlotProps:t==null?void 0:t.sectionContent,externalForwardedProps:n.content,additionalProps:{suppressContentEditableWarning:!0},className:i.sectionContent,ownerState:{}}),h=(e==null?void 0:e.sectionSeparator)??KCe,p=bo({elementType:h,externalSlotProps:t==null?void 0:t.sectionSeparator,externalForwardedProps:n.before,ownerState:{position:"before"}}),m=bo({elementType:h,externalSlotProps:t==null?void 0:t.sectionSeparator,externalForwardedProps:n.after,ownerState:{position:"after"}});return $.jsxs(o,ce({},a,{children:[$.jsx(h,ce({},p)),$.jsx(l,ce({},u)),$.jsx(h,ce({},m))]}))}const Bbt=V.forwardRef(function(e,t){const n=qs({props:e,name:"MuiPickersSectionList"}),{slots:i,slotProps:o,elements:a,sectionListRef:l}=n,u=Gt(n,Hbt),h=Fbt(n),p=V.useRef(null),m=wo(t,p),_=S=>{if(!p.current)throw new Error(`MUI X: Cannot call sectionListRef.${S} before the mount of the component.`);return p.current};V.useImperativeHandle(l,()=>({getRoot(){return _("getRoot")},getSectionContainer(S){return _("getSectionContainer").querySelector(`.${RO.section}[data-sectionindex="${S}"]`)},getSectionContent(S){return _("getSectionContent").querySelector(`.${RO.section}[data-sectionindex="${S}"] .${RO.sectionContent}`)}
976,getSectionIndexFromDOMElement(S){const R=_("getSectionIndexFromDOMElement");if(S==null||!R.contains(S))return null;let O=null;return S.classList.contains(RO.section)?O=S:S.classList.contains(RO.sectionContent)&&(O=S.parentElement),O==null?null:Number(O.dataset.sectionindex)}}));const C=(i==null?void 0:i.root)??YCe,T=bo({elementType:C,externalSlotProps:o==null?void 0:o.root,externalForwardedProps:u,additionalProps:{ref:m,suppressContentEditableWarning:!0},className:h.root,ownerState:{}});return $.jsx(C,ce({},T,{children:T.contentEditable?a.map(({content:S,before:R,after:O})=>`${R.children}${S.children}${O.children}`).join(""):$.jsx(V.Fragment,{children:a.map((S,R)=>$.jsx(Ubt,{slots:i,slotProps:o,element:S,classes:h},R))})}))}),$bt=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],zbt=r=>Math.round(r*1e5)/1e5,$9=Nt("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r})=>ce({},r.typography.body1,{color:(r.vars||r).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${zbt(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),xJ=Nt(YCe,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(r,e)=>e.sectionsContainer})(({theme:r})=>({padding:"4px 0 5px",fontFamily:r.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:e,focused:t,filled:n,label:i})=>!e&&!t&&!n&&i==null,style:r.vars?{opacity:r.vars.opacity.inputPlaceholder}:{opacity:r.palette.mode==="light"?.42:.5}}]})),jbt=Nt(WCe,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(r,e)=>e.section})(({theme:r})=>({fontFamily:r.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),Vbt=Nt(ZCe,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(r,e)=>e.content})(({theme:r})=>({fontFamily:r.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),qbt=Nt(KCe,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(r,e)=>e.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),Gbt=Nt("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(r,e)=>e.hiddenInput})(ce({},Ast)),Ybt=r=>{const{focused:e,disabled:t,error:n,classes:i,fullWidth:o,readOnly:a,color:l,size:u,endAdornment:h,startAdornment:p}=r,m={root:["root",e&&!t&&"focused",t&&"disabled",a&&"readOnly",n&&"error",o&&"fullWidth",`color${nr(l)}`,u==="small"&&"inputSizeSmall",!!p&&"adornedStart",!!h&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return Ur(m,Dbt,i)},TJ=V.forwardRef(function(e,t){const n=qs({props:e,name:"MuiPickersInputBase"}),{elements:i,areAllSectionsEmpty:o,value:a,onChange:l,id:u,endAdornment:h,startAdornment:p,renderSuffix:m,slots:_,slotProps:C,contentEditable:T,tabIndex:S,onInput:R,onPaste:O,onKeyDown:N,name:H,readOnly:F,inputProps:j,inputRef:L,sectionListRef:B}=n,Q=Gt(n,$bt),Z=V.useRef(null),ie=wo(t,Z),J=wo(j==null?void 0:j.ref,L),ne=Lb(),ue=cp();if(!ue)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const K=Qe=>{var ve;if(ue.disabled){Qe.stopPropagation();return}(ve=ue.onFocus)==null||ve.call(ue,Qe)};V.useEffect(()=>{ue&&ue.setAdornedStart(!!p)},[ue,p]),V.useEffect(()=>{ue&&(o?ue.onEmpty():ue.onFilled())},[ue,o]);const se=ce({},n,ue,{isRtl:ne}),be=Ybt(se),de=(_==null?void 0:_.root)||$9,ge=bo({elementType:de,externalSlotProps:C==null?void 0:C.root,externalForwardedProps:Q,additionalProps:{"aria-invalid":ue.error,ref:ie},className:be.root,ownerState:se}),Ue=(_==null?void 0:_.input)||xJ;return $.jsxs(de,ce({},ge,{children:[p,$.jsx(Bbt,{sectionListRef:B,elements:i,contentEditable:T,tabIndex:S,className:be.sectionsContainer,onFocus:K,onBlur:ue.onBlur,onInput:R,onPaste:O,onKeyDown:N,slots:{root:Ue,section:jbt,sectionContent:Vbt,sectionSeparator:qbt},slotProps:{root:{ownerState:se},sectionContent:{className:nP.sectionContent},sectionSeparator:({position:Qe})=>({className:Qe==="before"?nP.sectionBefore:nP.sectionAfter})}}),h,m?m(ce({},ue)):null,$.jsx(Gbt,ce({name:H,className:be.input,value:a,onChange:l,id:u,"aria-hidden":"true",tabIndex:-1,readOnly:F,required:ue.required,disabled:ue.disabled},j,{ref:J}))]}))});function Wbt(r){return Mr("MuiPickersOutlinedInput",r)}const jy=ce({},nP,Br("MuiPickersOutlinedInput",["root","notchedOutline","input"])),Kbt=["children","className","label","notched","shrink"],Zbt=Nt("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(r,e)=>e.notchedOutline})(({theme:r})=>{const e=r.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{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%",borderColor:r.vars?`rgba(${r.vars.palette.common.onBackgroun
976dChannel} / 0.23)`:e}}),eue=Nt("span")(({theme:r})=>({fontFamily:r.typography.fontFamily,fontSize:"inherit"})),Xbt=Nt("legend")(({theme:r})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:r.transitions.create("width",{duration:150,easing:r.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:r.transitions.create("max-width",{duration:50,easing:r.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:r.transitions.create("max-width",{duration:100,easing:r.transitions.easing.easeOut,delay:50})}}]}));function Qbt(r){const{className:e,label:t}=r,n=Gt(r,Kbt),i=t!=null&&t!=="",o=ce({},r,{withLabel:i});return $.jsx(Zbt,ce({"aria-hidden":!0,className:e},n,{ownerState:o,children:$.jsx(Xbt,{ownerState:o,children:i?$.jsx(eue,{children:t}):$.jsx(eue,{className:"notranslate",children:"​"})})}))}const Jbt=["label","autoFocus","ownerState","notched"],ewt=Nt($9,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r})=>{const e=r.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(r.vars||r).shape.borderRadius,[`&:hover .${jy.notchedOutline}`]:{borderColor:(r.vars||r).palette.text.primary},"@media (hover: none)":{[`&:hover .${jy.notchedOutline}`]:{borderColor:r.vars?`rgba(${r.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${jy.focused} .${jy.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${jy.disabled}`]:{[`& .${jy.notchedOutline}`]:{borderColor:(r.vars||r).palette.action.disabled},"*":{color:(r.vars||r).palette.action.disabled}},[`&.${jy.error} .${jy.notchedOutline}`]:{borderColor:(r.vars||r).palette.error.main},variants:Object.keys((r.vars??r).palette).filter(t=>{var n;return((n=(r.vars??r).palette[t])==null?void 0:n.main)??!1}).map(t=>({props:{color:t},style:{[`&.${jy.focused}:not(.${jy.error}) .${jy.notchedOutline}`]:{borderColor:(r.vars||r).palette[t].main}}}))}}),twt=Nt(xJ,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(r,e)=>e.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),rwt=r=>{const{classes:e}=r,n=Ur({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Wbt,e);return ce({},e,n)},XCe=V.forwardRef(function(e,t){const n=qs({props:e,name:"MuiPickersOutlinedInput"}),{label:i,ownerState:o,notched:a}=n,l=Gt(n,Jbt),u=cp(),h=ce({},n,o,u,{color:(u==null?void 0:u.color)||"primary"}),p=rwt(h);return $.jsx(TJ,ce({slots:{root:ewt,input:twt},renderSuffix:m=>$.jsx(Qbt,{shrink:!!(a||m.adornedStart||m.focused||m.filled),notched:!!(a||m.adornedStart||m.focused||m.filled),className:p.notchedOutline,label:i!=null&&i!==""&&(u!=null&&u.required)?$.jsxs(V.Fragment,{children:[i," ","*"]}):i,ownerState:h})},l,{label:i,classes:p,ref:t}))});XCe.muiName="Input";function nwt(r,...e){const t=new URL(`https://mui.com/production-error/?code=${r}`);return e.forEach(n=>t.searchParams.append("args[]",n)),`Minified MUI error #${r}; visit ${t} for the full message.`}function iwt(r,e){return _B(r,e)}function owt(r,e){Array.isArray(r.__emotion_styles)&&(r.__emotion_styles=e(r.__emotion_styles))}const tue=[];function WT(r){return tue[0]=r,Nk(tue)}function Yx(r){if(typeof r!="object"||r===null)return!1;const e=Object.getPrototypeOf(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)}function QCe(r){if(V.isValidElement(r)||pB.isValidElementType(r)||!Yx(r))return r;const e={};return Object.keys(r).forEach(t=>{e[t]=QCe(r[t])}),e}function MB(r,e,t={clone:!0}){const n=t.clone?{...r}:r;return Yx(r)&&Yx(e)&&Object.keys(e).forEach(i=>{V.isValidElement(e[i])||pB.isValidElementType(e[i])?n[i]=e[i]:Yx(e[i])&&Object.prototype.hasOwnProperty.call(r,i)&&Yx(r[i])?n[i]=MB(r[i],e[i],t):t.clone?n[i]=Yx(e[i])?QCe(e[i]):e[i]:n[i]=e[i]}),n}const awt=r=>{const e=Object.keys(r).map(t=>({key:t,val:r[t]}))||[];return e.sort((t,n)=>t.val-n.val),e.reduce((t,n)=>({...t,[n.key]:n.val}),{})};function swt(r){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:t="px",step:n=5,...i}=r,o=awt(e),a=Object.keys(o);function l(_){return`@media (min-width:${typeof e[_]=="number"?e[_]:_}${t})`}function u(_){return`@media (max-width:${(typeof e[_]=="number"?e[_]:_)-n/100}${t})`}function h(_,C){const T=a.indexOf(C);return`@media (min-width:${typeof e[_]=="number"?e[_]:_}${t}) and (max-width:${(T!==-1&&typeof e[a[T]]=="number"?e[a[T]]:C)-n/100}${t})`}function p(_){return a.indexOf(_)+1<a.length?h(_,a[a.indexOf(_)+1]):l(_)}function m(_){const C=a.indexOf(_);return C===0?l(a[1]):C===a.length-1?u(a[C]):h(_,a[a.indexOf(_)+1]).replace("@media","@media not all and")}return{keys:a,values:o,up:l,down:u,between:h,only:p,not:m,unit:t,...i}}function rue(r,e){if(!r.containerQueries)return e;const t=Object.keys(e).filter(n=>n.startsWith("@container")).sort((n,i)=>{var a,l;const o=/min-width:\s*([0-9.]+)/;
976return+(((a=n.match(o))==null?void 0:a[1])||0)-+(((l=i.match(o))==null?void 0:l[1])||0)});return t.length?t.reduce((n,i)=>{const o=e[i];return delete n[i],n[i]=o,n},{...e}):e}function lwt(r,e){return e==="@"||e.startsWith("@")&&(r.some(t=>e.startsWith(`@${t}`))||!!e.match(/^@\d/))}function cwt(r,e){const t=e.match(/^@([^/]+)?\/?(.+)?$/);if(!t)return null;const[,n,i]=t,o=Number.isNaN(+n)?n||0:+n;return r.containerQueries(i).up(o)}function uwt(r){const e=(o,a)=>o.replace("@media",a?`@container ${a}`:"@container");function t(o,a){o.up=(...l)=>e(r.breakpoints.up(...l),a),o.down=(...l)=>e(r.breakpoints.down(...l),a),o.between=(...l)=>e(r.breakpoints.between(...l),a),o.only=(...l)=>e(r.breakpoints.only(...l),a),o.not=(...l)=>{const u=e(r.breakpoints.not(...l),a);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const n={},i=o=>(t(n,o),n);return t(i),{...r,containerQueries:i}}const dwt={borderRadius:4};function CN(r,e){return e?MB(r,e,{clone:!1}):r}const z9={xs:0,sm:600,md:900,lg:1200,xl:1536},nue={keys:["xs","sm","md","lg","xl"],up:r=>`@media (min-width:${z9[r]}px)`},hwt={containerQueries:r=>({up:e=>{let t=typeof e=="number"?e:z9[e]||e;return typeof t=="number"&&(t=`${t}px`),r?`@container ${r} (min-width:${t})`:`@container (min-width:${t})`}})};function Sb(r,e,t){const n=r.theme||{};if(Array.isArray(e)){const o=n.breakpoints||nue;return e.reduce((a,l,u)=>(a[o.up(o.keys[u])]=t(e[u]),a),{})}if(typeof e=="object"){const o=n.breakpoints||nue;return Object.keys(e).reduce((a,l)=>{if(lwt(o.keys,l)){const u=cwt(n.containerQueries?n:hwt,l);u&&(a[u]=t(e[l],l))}else if(Object.keys(o.values||z9).includes(l)){const u=o.up(l);a[u]=t(e[l],l)}else{const u=l;a[u]=e[u]}return a},{})}return t(e)}function fwt(r={}){var t;return((t=r.keys)==null?void 0:t.reduce((n,i)=>{const o=r.up(i);return n[o]={},n},{}))||{}}function iue(r,e){return r.reduce((t,n)=>{const i=t[n];return(!i||Object.keys(i).length===0)&&delete t[n],t},e)}function JCe(r){if(typeof r!="string")throw new Error(nwt(7));return r.charAt(0).toUpperCase()+r.slice(1)}function j9(r,e,t=!0){if(!e||typeof e!="string")return null;if(r&&r.vars&&t){const n=`vars.${e}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,r);if(n!=null)return n}return e.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,r)}function NB(r,e,t,n=t){let i;return typeof r=="function"?i=r(t):Array.isArray(r)?i=r[t]||n:i=j9(r,t)||n,e&&(i=e(i,n,r)),i}function Wl(r){const{prop:e,cssProperty:t=r.prop,themeKey:n,transform:i}=r,o=a=>{if(a[e]==null)return null;const l=a[e],u=a.theme,h=j9(u,n)||{};return Sb(a,l,m=>{let _=NB(h,i,m);return m===_&&typeof m=="string"&&(_=NB(h,i,`${e}${m==="default"?"":JCe(m)}`,m)),t===!1?_:{[t]:_}})};return o.propTypes={},o.filterProps=[e],o}function pwt(r){const e={};return t=>(e[t]===void 0&&(e[t]=r(t)),e[t])}const gwt={m:"margin",p:"padding"},mwt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},oue={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ywt=pwt(r=>{if(r.length>2)if(oue[r])r=oue[r];else return[r];const[e,t]=r.split(""),n=gwt[e],i=mwt[t]||"";return Array.isArray(i)?i.map(o=>n+o):[n+i]}),SJ=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],IJ=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...SJ,...IJ];function KL(r,e,t,n){const i=j9(r,e,!0)??t;return typeof i=="number"||typeof i=="string"?o=>typeof o=="string"?o:typeof i=="string"?i.startsWith("var(")&&o===0?0:i.startsWith("var(")&&o===1?i:`calc(${o} * ${i})`:i*o:Array.isArray(i)?o=>{if(typeof o=="string")return o;const a=Math.abs(o),l=i[a];return o>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof i=="function"?i:()=>{}}function exe(r){return KL(r,"spacing",8)}function ZL(r,e){return typeof e=="string"||e==null?e:r(e)}function vwt(r,e){return t=>r.reduce((n,i)=>(n[i]=ZL(e,t),n),{})}function _wt(r,e,t,n){if(!e.includes(t))return null;const i=ywt(t),o=vwt(i,n),a=r[t];return Sb(r,a,o)}function txe(r,e){const t=exe(r.theme);return Object.keys(r).map(n=>_wt(r,e,n,t)).reduce(CN,{})}function vl(r){return txe(r,SJ)}vl.propTypes={};vl.filterProps=SJ;function _l(r){return txe(r,IJ)}_l.propTypes={};_l.filterProps=IJ;function bwt(r=8,e=exe({spacing:r})){if(r.mui)return r;const t=(...n)=>(n.length===0?[1]:n).map(o=>{const a=e(o);return typeof a=="number"?`${a}px`:a}).join(" ");return t.mui=!0,t}function V9(...r){const e=r.reduce((n,i)=>(i.filterProps.forEach(o=>{n[o]=i}),n),{}),t=n=>Object.keys(n).reduce((i,o)=>e[o]?CN(i,e[o](n)):i,{});return t.propTypes={},t.filterProps=r.reduce((n,i)=>n.concat(i.filterProps),[]),t}function Em(r){return typeof r!="number"?r:`${r}px solid`}function ty(r,e){return Wl({prop:r,themeKey:"borders",transform:e})}const wwt=ty("border",Em),Ewt=ty("borderTop",Em),Cwt=ty("borderRight",Em),xwt=ty("borderBottom",Em),Twt=ty("borderLeft",Em),Swt=ty("borderColor"),Iwt=ty("borderTopColor"),Awt=ty("borderRightColor"),Rwt=ty("borderBottomColor"),Pwt=ty("borderLeftColor"),kwt=ty("outline",Em),Owt=ty("outlineColor"),q9=r=>{if(r.borderRadius!==void 0&&r.borderRadius!==null){const e=KL(r.theme,"shape.borderRadius",4),t=n=>({borderRadius:ZL(e,n)});return Sb(r,r.borderRadius,t)}return null};q9.propTypes={};q9.filterProps=["borderRadius"];V9(wwt,Ewt,Cwt,xwt,Twt,Swt,Iwt,Awt,Rwt,Pwt,q9,kwt,Owt);const G9=r=>{if(r.gap!==void 0&&r.gap!==null){const e=KL(r.theme,"spacing",8),t=n=>({gap:ZL(e,n)});return Sb(r,r.gap,t)}return null};G9.propTypes={};G9.filterProps=["gap"];const Y9=r=>{if(r.columnGap!==void 0&&r.columnGap!==null){const e=KL(r.theme,"spacing",8),t=n=>({columnGap:ZL(e,n)});return Sb(r,r.columnGap,t)}return null};Y9.propTypes={};Y9.filterProps=["columnGap"];const W9=r=>{if(r.rowGap!==void 0&&r.rowGap!==null){const e=KL(r.theme,"spacing",8),t=n=>({rowGap:ZL(e,n)});return Sb(r,r.rowGap,t)}return null};W9.propTypes={};W9.filterProps=["rowGap"];const Mwt=Wl({prop:"gridColumn"}),Nwt=Wl({prop:"gridRow"}),Dwt=Wl({prop:"gridAutoFlow"}),Lwt=Wl({prop:"gridAutoColumns"}),Hwt=Wl({prop:"gridAutoRows"}),Fwt=Wl({prop:"gridTemplateColumns"}),Uwt=Wl({prop:"gridTemplateRows"}),Bwt=Wl({prop:"gridTemplateAreas"}),$wt=Wl({prop:"gridArea"});
976V9(G9,Y9,W9,Mwt,Nwt,Dwt,Lwt,Hwt,Fwt,Uwt,Bwt,$wt);function iP(r,e){return e==="grey"?e:r}const zwt=Wl({prop:"color",themeKey:"palette",transform:iP}),jwt=Wl({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:iP}),Vwt=Wl({prop:"backgroundColor",themeKey:"palette",transform:iP});V9(zwt,jwt,Vwt);function eg(r){return r<=1&&r!==0?`${r*100}%`:r}const qwt=Wl({prop:"width",transform:eg}),AJ=r=>{if(r.maxWidth!==void 0&&r.maxWidth!==null){const e=t=>{var i,o,a,l,u;const n=((a=(o=(i=r.theme)==null?void 0:i.breakpoints)==null?void 0:o.values)==null?void 0:a[t])||z9[t];return n?((u=(l=r.theme)==null?void 0:l.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${n}${r.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:eg(t)}};return Sb(r,r.maxWidth,e)}return null};AJ.filterProps=["maxWidth"];const Gwt=Wl({prop:"minWidth",transform:eg}),Ywt=Wl({prop:"height",transform:eg}),Wwt=Wl({prop:"maxHeight",transform:eg}),Kwt=Wl({prop:"minHeight",transform:eg});Wl({prop:"size",cssProperty:"width",transform:eg});Wl({prop:"size",cssProperty:"height",transform:eg});const Zwt=Wl({prop:"boxSizing"});V9(qwt,AJ,Gwt,Ywt,Wwt,Kwt,Zwt);const rxe={border:{themeKey:"borders",transform:Em},borderTop:{themeKey:"borders",transform:Em},borderRight:{themeKey:"borders",transform:Em},borderBottom:{themeKey:"borders",transform:Em},borderLeft:{themeKey:"borders",transform:Em},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Em},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:q9},color:{themeKey:"palette",transform:iP},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:iP},backgroundColor:{themeKey:"palette",transform:iP},p:{style:_l},pt:{style:_l},pr:{style:_l},pb:{style:_l},pl:{style:_l},px:{style:_l},py:{style:_l},padding:{style:_l},paddingTop:{style:_l},paddingRight:{style:_l},paddingBottom:{style:_l},paddingLeft:{style:_l},paddingX:{style:_l},paddingY:{style:_l},paddingInline:{style:_l},paddingInlineStart:{style:_l},paddingInlineEnd:{style:_l},paddingBlock:{style:_l},paddingBlockStart:{style:_l},paddingBlockEnd:{style:_l},m:{style:vl},mt:{style:vl},mr:{style:vl},mb:{style:vl},ml:{style:vl},mx:{style:vl},my:{style:vl},margin:{style:vl},marginTop:{style:vl},marginRight:{style:vl},marginBottom:{style:vl},marginLeft:{style:vl},marginX:{style:vl},marginY:{style:vl},marginInline:{style:vl},marginInlineStart:{style:vl},marginInlineEnd:{style:vl},marginBlock:{style:vl},marginBlockStart:{style:vl},marginBlockEnd:{style:vl},displayPrint:{cssProperty:!1,transform:r=>({"@media print":{display:r}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:G9},rowGap:{style:W9},columnGap:{style:Y9},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:eg},maxWidth:{style:AJ},minWidth:{transform:eg},height:{transform:eg},maxHeight:{transform:eg},minHeight:{transform:eg},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Xwt(...r){const e=r.reduce((n,i)=>n.concat(Object.keys(i)),[]),t=new Set(e);return r.every(n=>t.size===Object.keys(n).length)}function Qwt(r,e){return typeof r=="function"?r(e):r}function Jwt(){function r(t,n,i,o){const a={[t]:n,theme:i},l=o[t];if(!l)return{[t]:n};const{cssProperty:u=t,themeKey:h,transform:p,style:m}=l;if(n==null)return null;if(h==="typography"&&n==="inherit")return{[t]:n};const _=j9(i,h)||{};return m?m(a):Sb(a,n,T=>{let S=NB(_,p,T);return T===S&&typeof T=="string"&&(S=NB(_,p,`${t}${T==="default"?"":JCe(T)}`,T)),u===!1?S:{[u]:S}})}function e(t){const{sx:n,theme:i={},nested:o}=t||{};if(!n)return null;const a=i.unstable_sxConfig??rxe;function l(u){let h=u;if(typeof u=="function")h=u(i);else if(typeof u!="object")return u;if(!h)return null;const p=fwt(i.breakpoints),m=Object.keys(p);let _=p;
976return Object.keys(h).forEach(C=>{const T=Qwt(h[C],i);if(T!=null)if(typeof T=="object")if(a[C])_=CN(_,r(C,T,i,a));else{const S=Sb({theme:i},T,R=>({[C]:R}));Xwt(S,T)?_[C]=e({sx:T,theme:i,nested:!0}):_=CN(_,S)}else _=CN(_,r(C,T,i,a))}),!o&&i.modularCssLayers?{"@layer sx":rue(i,iue(m,_))}:rue(i,iue(m,_))}return Array.isArray(n)?n.map(l):l(n)}return e}const DB=Jwt();DB.filterProps=["sx"];function eEt(r,e){var n;const t=this;if(t.vars){if(!((n=t.colorSchemes)!=null&&n[r])||typeof t.getColorSchemeSelector!="function")return{};let i=t.getColorSchemeSelector(r);return i==="&"?e:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:e})}return t.palette.mode===r?e:{}}function tEt(r={},...e){const{breakpoints:t={},palette:n={},spacing:i,shape:o={},...a}=r,l=swt(t),u=bwt(i);let h=MB({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:u,shape:{...dwt,...o}},a);return h=uwt(h),h.applyStyles=eEt,h=e.reduce((p,m)=>MB(p,m),h),h.unstable_sxConfig={...rxe,...a==null?void 0:a.unstable_sxConfig},h.unstable_sx=function(m){return DB({sx:m,theme:this})},h}function rEt(r){const{variants:e,...t}=r,n={variants:e,style:WT(t),isProcessed:!0};return n.style===t||e&&e.forEach(i=>{typeof i.style!="function"&&(i.style=WT(i.style))}),n}const nEt=tEt();function wF(r){return r!=="ownerState"&&r!=="theme"&&r!=="sx"&&r!=="as"}function pT(r,e){return e&&r&&typeof r=="object"&&r.styles&&!r.styles.startsWith("@layer")&&(r.styles=`@layer ${e}{${String(r.styles)}}`),r}function iEt(r){return r?(e,t)=>t[r]:null}function oEt(r,e,t){r.theme=sEt(r.theme)?t:r.theme[e]||r.theme}function EF(r,e,t){const n=typeof e=="function"?e(r):e;if(Array.isArray(n))return n.flatMap(i=>EF(r,i,t));if(Array.isArray(n==null?void 0:n.variants)){let i;if(n.isProcessed)i=t?pT(n.style,t):n.style;else{const{variants:o,...a}=n;i=t?pT(WT(a),t):a}return nxe(r,n.variants,[i],t)}return n!=null&&n.isProcessed?t?pT(WT(n.style),t):n.style:t?pT(WT(n),t):n}function nxe(r,e,t=[],n=void 0){var o;let i;e:for(let a=0;a<e.length;a+=1){const l=e[a];if(typeof l.props=="function"){if(i??(i={...r,...r.ownerState,ownerState:r.ownerState}),!l.props(i))continue}else for(const u in l.props)if(r[u]!==l.props[u]&&((o=r.ownerState)==null?void 0:o[u])!==l.props[u])continue e;typeof l.style=="function"?(i??(i={...r,...r.ownerState,ownerState:r.ownerState}),t.push(n?pT(WT(l.style(i)),n):l.style(i))):t.push(n?pT(WT(l.style),n):l.style)}return t}function hOt(r={}){const{themeId:e,defaultTheme:t=nEt,rootShouldForwardProp:n=wF,slotShouldForwardProp:i=wF}=r;function o(l){oEt(l,e,t)}return(l,u={})=>{owt(l,L=>L.filter(B=>B!==DB));const{name:h,slot:p,skipVariantsResolver:m,skipSx:_,overridesResolver:C=iEt(cEt(p)),...T}=u,S=h&&h.startsWith("Mui")||p?"components":"custom",R=m!==void 0?m:p&&p!=="Root"&&p!=="root"||!1,O=_||!1;let N=wF;p==="Root"||p==="root"?N=n:p?N=i:lEt(l)&&(N=void 0);const H=iwt(l,{shouldForwardProp:N,label:aEt(),...T}),F=L=>{if(L.__emotion_real===L)return L;if(typeof L=="function")return function(Q){return EF(Q,L,Q.theme.modularCssLayers?S:void 0)};if(Yx(L)){const B=rEt(L);return function(Z){return B.variants?EF(Z,B,Z.theme.modularCssLayers?S:void 0):Z.theme.modularCssLayers?pT(B.style,S):B.style}}return L},j=(...L)=>{const B=[],Q=L.map(F),Z=[];if(B.push(o),h&&C&&Z.push(function(ue){var de,ge;const se=(ge=(de=ue.theme.components)==null?void 0:de[h])==null?void 0:ge.styleOverrides;if(!se)return null;const be={};for(const Ue in se)be[Ue]=EF(ue,se[Ue],ue.theme.modularCssLayers?"theme":void 0);return C(ue,be)}),h&&!R&&Z.push(function(ue){var be,de;const K=ue.theme,se=(de=(be=K==null?void 0:K.components)==null?void 0:be[h])==null?void 0:de.variants;return se?nxe(ue,se,[],ue.theme.modularCssLayers?"theme":void 0):null}),O||Z.push(DB),Array.isArray(Q[0])){const ne=Q.shift(),ue=new Array(B.length).fill(""),K=new Array(Z.length).fill("");let se;se=[...ue,...ne,...K],se.raw=[...ue,...ne.raw,...K],B.unshift(se)}const ie=[...B,...Q,...Z],J=H(...ie);return l.muiName&&(J.muiName=l.muiName),J};return H.withConfig&&(j.withConfig=H.withConfig),j}}function aEt(r,e){return void 0}function sEt(r){for(const e in r)return!1;return!0}function lEt(r){return typeof r=="string"&&r.charCodeAt(0)>96}function cEt(r){return r&&r.charAt(0).toLowerCase()+r.slice(1)}function uEt(r){return Mr("MuiPickersFilledInput",r)}const _x=ce({},nP,Br("MuiPickersFilledInput",["root","underline","input"])),dEt=["label","autoF
976ocus","disableUnderline","ownerState"],hEt=Nt($9,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(r,e)=>e.root,shouldForwardProp:r=>wF(r)&&r!=="disableUnderline"})(({theme:r})=>{const e=r.palette.mode==="light",t=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:r.vars?r.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(r.vars||r).shape.borderRadius,borderTopRightRadius:(r.vars||r).shape.borderRadius,transition:r.transitions.create("background-color",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),"&:hover":{backgroundColor:r.vars?r.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:r.vars?r.vars.palette.FilledInput.bg:n}},[`&.${_x.focused}`]:{backgroundColor:r.vars?r.vars.palette.FilledInput.bg:n},[`&.${_x.disabled}`]:{backgroundColor:r.vars?r.vars.palette.FilledInput.disabledBg:o},variants:[...Object.keys((r.vars??r).palette).filter(a=>(r.vars??r).palette[a].main).map(a=>{var l;return{props:{color:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(l=(r.vars||r).palette[a])==null?void 0:l.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:r.transitions.create("transform",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${_x.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_x.error}`]:{"&:before, &:after":{borderBottomColor:(r.vars||r).palette.error.main}},"&::before":{borderBottom:`1px solid ${r.vars?`rgba(${r.vars.palette.common.onBackgroundChannel} / ${r.vars.opacity.inputUnderline})`:t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:r.transitions.create("border-bottom-color",{duration:r.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${_x.disabled}, .${_x.error}):before`]:{borderBottom:`1px solid ${(r.vars||r).palette.text.primary}`},[`&.${_x.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),fEt=Nt(xJ,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(r,e)=>e.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:r})=>!!r,style:{paddingLeft:0}},{props:({endAdornment:r})=>!!r,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),pEt=r=>{const{classes:e,disableUnderline:t}=r,i=Ur({root:["root",!t&&"underline"],input:["input"]},uEt,e);return ce({},e,i)},ixe=V.forwardRef(function(e,t){const n=qs({props:e,name:"MuiPickersFilledInput"}),{label:i,disableUnderline:o=!1,ownerState:a}=n,l=Gt(n,dEt),u=cp(),h=ce({},n,a,u,{color:(u==null?void 0:u.color)||"primary"}),p=pEt(h);return $.jsx(TJ,ce({slots:{root:hEt,input:fEt},slotProps:{root:{disableUnderline:o}}},l,{label:i,classes:p,ref:t}))});ixe.muiName="Input";function gEt(r){return Mr("MuiPickersFilledInput",r)}const PO=ce({},nP,Br("MuiPickersInput",["root","input"])),mEt=["label","autoFocus","disableUnderline","ownerState"],yEt=Nt($9,{name:"MuiPickersInput",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r})=>{let t=r.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return r.vars&&(t=`rgba(${r.vars.palette.common.onBackgroundChannel} / ${r.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((r.vars??r).palette).filter(n=>(r.vars??r).palette[n].main).map(n=>({props:{color:n},style:{"&::after":{borderBottom:`2px solid ${(r.vars||r).palette[n].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:r.transitions.create("transform",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),pointerEvents:"none"}
976,[`&.${PO.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${PO.error}`]:{"&:before, &:after":{borderBottomColor:(r.vars||r).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:r.transitions.create("border-bottom-color",{duration:r.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${PO.disabled}, .${PO.error}):before`]:{borderBottom:`2px solid ${(r.vars||r).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${PO.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),vEt=r=>{const{classes:e,disableUnderline:t}=r,i=Ur({root:["root",!t&&"underline"],input:["input"]},gEt,e);return ce({},e,i)},oxe=V.forwardRef(function(e,t){const n=qs({props:e,name:"MuiPickersInput"}),{label:i,disableUnderline:o=!1,ownerState:a}=n,l=Gt(n,mEt),u=cp(),h=ce({},n,a,u,{disableUnderline:o,color:(u==null?void 0:u.color)||"primary"}),p=vEt(h);return $.jsx(TJ,ce({slots:{root:yEt}},l,{label:i,classes:p,ref:t}))});oxe.muiName="Input";const _Et=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],bEt={standard:oxe,filled:ixe,outlined:XCe},wEt=Nt(_N,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(r,e)=>e.root})({maxWidth:"100%"}),EEt=r=>{const{focused:e,disabled:t,classes:n,required:i}=r;return Ur({root:["root",e&&!t&&"focused",t&&"disabled",i&&"required"]},Nbt,n)},CEt=V.forwardRef(function(e,t){const n=qs({props:e,name:"MuiPickersTextField"}),{onFocus:i,onBlur:o,className:a,color:l="primary",disabled:u=!1,error:h=!1,variant:p="outlined",required:m=!1,InputProps:_,inputProps:C,inputRef:T,sectionListRef:S,elements:R,areAllSectionsEmpty:O,onClick:N,onKeyDown:H,onKeyUp:F,onPaste:j,onInput:L,endAdornment:B,startAdornment:Q,tabIndex:Z,contentEditable:ie,focused:J,value:ne,onChange:ue,fullWidth:K,id:se,name:be,helperText:de,FormHelperTextProps:ge,label:Ue,InputLabelProps:Qe}=n,ve=Gt(n,_Et),pe=V.useRef(null),He=wo(t,pe),Re=Jm(se),$e=de&&Re?`${Re}-helper-text`:void 0,tt=Ue&&Re?`${Re}-label`:void 0,ot=ce({},n,{color:l,disabled:u,error:h,focused:J,required:m,variant:p}),qe=EEt(ot),lt=bEt[p];return $.jsxs(wEt,ce({className:mr(qe.root,a),ref:He,focused:J,onFocus:i,onBlur:o,disabled:u,variant:p,error:h,color:l,fullWidth:K,required:m,ownerState:ot},ve,{children:[$.jsx(wN,ce({htmlFor:Re,id:tt},Qe,{children:Ue})),$.jsx(lt,ce({elements:R,areAllSectionsEmpty:O,onClick:N,onKeyDown:H,onKeyUp:F,onInput:L,onPaste:j,endAdornment:B,startAdornment:Q,tabIndex:Z,contentEditable:ie,value:ne,onChange:ue,id:Re,fullWidth:K,inputProps:C,inputRef:T,sectionListRef:S,label:Ue,name:be,role:"group","aria-labelledby":tt,"aria-describedby":$e,"aria-live":$e?"polite":void 0},_)),de&&$.jsx(CCe,ce({id:$e},ge,{children:de}))]}))}),xEt=["enableAccessibleFieldDOMStructure"],TEt=["InputProps","readOnly"],SEt=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],IEt=r=>{let{enableAccessibleFieldDOMStructure:e}=r,t=Gt(r,xEt);if(e){const{InputProps:m,readOnly:_}=t,C=Gt(t,TEt);return ce({},C,{InputProps:ce({},m??{},{readOnly:_})})}const{onPaste:n,onKeyDown:i,inputMode:o,readOnly:a,InputProps:l,inputProps:u,inputRef:h}=t,p=Gt(t,SEt);return ce({},p,{InputProps:ce({},l??{},{readOnly:a}),inputProps:ce({},u??{},{inputMode:o,onPaste:n,onKeyDown:i,ref:h})})},AEt=["slots","slotProps","InputProps","inputProps"],REt=V.forwardRef(function(e,t){const n=qs({props:e,name:"MuiDateField"}),{slots:i,slotProps:o,InputProps:a,inputProps:l}=n,u=Gt(n,AEt),h=n,p=(i==null?void 0:i.textField)??(e.enableAccessibleFieldDOMStructure?CEt:MD),m=bo({elementType:p,externalSlotProps:o==null?void 0:o.textField,externalForwardedProps:u,additionalProps:{ref:t},ownerState:h});m.inputProps=ce({},l,m.inputProps),m.InputProps=ce({},a,m.InputProps);const _=Mbt(m),C=IEt(_),T=Ibt(ce({},C,{slots:i,slotProps:o}));return $.jsx(p,ce({},T))}),axe=({shouldDisableDate:r,shouldDisableMonth:e,shouldDisableYear:t,minDate:n,maxDate:i,disableFuture:o,disablePast:a,timezone:l})=>{const u=GS();return V.useCallback(h=>B9({adapter:u,value:h,timezone:l,props:{shouldDisableDate:r,shouldDisableMonth:e,shouldDisableYear:t,minDate:n,maxDate:i,disableFuture:o,disablePast:a}})!==null,[u,r,e,t,n,i,o,a,l])},PEt=(r,e,t)=>(n,i)=>{switch(i.type){case"changeMonth":return ce({},n,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!r});case"changeMonthTimezone":{const o=i.newTimezone;if(t.getTimezone(n.currentMonth)===o)return n;let a=t.setTimezone(n.currentMonth,o);return t.getMonth(a)!==t.getMonth(n.currentMonth)&&(a=t.setMonth(a,t.getMonth(n.currentMonth))),ce({},n,{currentMonth:a})}case"finishMonthSwitchingAnimation":return ce({},n,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(n.focusedDay!=null&&i.focusedDay!=null&&t.isSameDay(i.focusedDay,n.focusedDay))return n;const o=i.focusedDay!=null&&!e&&!t.isSameMonth(n.currentMonth,i.focusedDay);return ce({},n,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:o&&!r&&!i.withoutMonthSwitchingAnimation,currentMonth:o?t.startOfMonth(i.focusedDay):n.currentMonth,slideDirection:i.focusedDay!=null&&t.isAfterDay(i.focusedDay,n.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},kEt=r=>{const{value:e,referenceDate:t,disableFuture:n,disablePast:i,disableSwitchToMonthOnDayFocus:o=!1,maxDate:a,minDate:l,onMonthChange:u,reduceAnimations:h,shouldDisableDate:p,timezone:m}=r,_=Gs(),C=V.useRef(PEt(!!h,o,_)).current,T=V.useMemo(()=>Tb.getInitialReferenceValue({value:e,utils:_,timezone:m,props:r,referenceDate:t,granularity:$0.day}),[t,m]),[S,R]=V.useReducer(C,{isMonthSwitchingAnimating:!1,focusedDay:T,currentMonth:_.startOfMonth(T),slideDirection:"left"});V.useEffect(()=>{R({type:"changeMonthTimezone",newTimezone:_.getTimezone(T)})},[T,_]);const O=V.useCallback(L=>{R(ce({type:"changeMonth"}
976,L)),u&&u(L.newMonth)},[u]),N=V.useCallback(L=>{const B=L;_.isSameMonth(B,S.currentMonth)||O({newMonth:_.startOfMonth(B),direction:_.isAfterDay(B,S.currentMonth)?"left":"right"})},[S.currentMonth,O,_]),H=axe({shouldDisableDate:p,minDate:l,maxDate:a,disableFuture:n,disablePast:i,timezone:m}),F=V.useCallback(()=>{R({type:"finishMonthSwitchingAnimation"})},[]),j=Zr((L,B)=>{H(L)||R({type:"changeFocusedDay",focusedDay:L,withoutMonthSwitchingAnimation:B})});return{referenceDate:T,calendarState:S,changeMonth:N,changeFocusedDay:j,isDateDisabled:H,onMonthSwitchingAnimationEnd:F,handleChangeMonth:O}},OEt=r=>Mr("MuiPickersFadeTransitionGroup",r);Br("MuiPickersFadeTransitionGroup",["root"]);const MEt=r=>{const{classes:e}=r;return Ur({root:["root"]},OEt,e)},NEt=Nt(zL,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(r,e)=>e.root})({display:"block",position:"relative"});function sxe(r){const e=qs({props:r,name:"MuiPickersFadeTransitionGroup"}),{children:t,className:n,reduceAnimations:i,transKey:o}=e,a=MEt(e),l=pC();return i?t:$.jsx(NEt,{className:mr(a.root,n),children:$.jsx(qL,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:t},o)})}const DEt=r=>Mr("MuiPickersSlideTransition",r),cm=Br("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),LEt=["children","className","reduceAnimations","slideDirection","transKey","classes"],HEt=r=>{const{classes:e,slideDirection:t}=r,n={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${t}`],exitActive:[`slideExitActiveLeft-${t}`]};return Ur(n,DEt,e)},FEt=Nt(zL,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(r,e)=>[e.root,{[`.${cm["slideEnter-left"]}`]:e["slideEnter-left"]},{[`.${cm["slideEnter-right"]}`]:e["slideEnter-right"]},{[`.${cm.slideEnterActive}`]:e.slideEnterActive},{[`.${cm.slideExit}`]:e.slideExit},{[`.${cm["slideExitActiveLeft-left"]}`]:e["slideExitActiveLeft-left"]},{[`.${cm["slideExitActiveLeft-right"]}`]:e["slideExitActiveLeft-right"]}]})(({theme:r})=>{const e=r.transitions.create("transform",{duration:r.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},[`& .${cm["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${cm["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${cm.slideEnterActive}`]:{transform:"translate(0%)",transition:e},[`& .${cm.slideExit}`]:{transform:"translate(0%)"},[`& .${cm["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:e,zIndex:0},[`& .${cm["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:e,zIndex:0}}});function UEt(r){const e=qs({props:r,name:"MuiPickersSlideTransition"}),{children:t,className:n,reduceAnimations:i,transKey:o}=e,a=Gt(e,LEt),l=HEt(e),u=pC();if(i)return $.jsx("div",{className:mr(l.root,n),children:t});const h={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return $.jsx(FEt,{className:mr(l.root,n),childFactory:p=>V.cloneElement(p,{classNames:h}),role:"presentation",children:$.jsx(JQ,ce({mountOnEnter:!0,unmountOnExit:!0,timeout:u.transitions.duration.complex,classNames:h},a,{children:t}),o)})}const BEt=r=>Mr("MuiDayCalendar",r);Br("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const $Et=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],zEt=["ownerState"],jEt=r=>{const{classes:e}=r;return Ur({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},BEt,e)},lxe=(ND+F9*2)*6,VEt=Nt("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(r,e)=>e.root})({}),qEt=Nt("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(r,e)=>e.header})({display:"flex",justifyContent:"center",alignItems:"center"}),GEt=Nt(Vd,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(r,e)=>e.weekDayLabel})(({theme:r})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(r.vars||r).palette.text.secondary})),YEt=Nt(Vd,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(r,e)=>e.weekNumberLabel})(({theme:r})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:r.palette.text.disabled})),WEt=Nt(Vd,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(r,e)=>e.weekNumber})(({theme:r})=>ce({},r.typography.caption,{width:ND,height:ND,padding:0,margin:`0 ${F9}px`,color:r.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),KEt=Nt("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(r,e)=>e.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:lxe}),ZEt=Nt(UEt,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(r,e)=>e.slideTransition})({minHeight:lxe}),XEt=Nt("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(r,e)=>e.monthContainer})({overflow:"hidden"}),QEt=Nt("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(r,e)=>e.weekContainer})({margin:`${F9}px 0`,display:"flex",justifyContent:"center"});function JEt(r){let{parentProps:e,day:t,focusableDay:n,selectedDays:i,isDateDisabled:o,currentMonthNumber:a,isViewFocused:l}=r,u=Gt(r,$Et);const{disabled:h,disableHighlightToday:p,isMonthSwitchingAnimating:m,showDaysOutsideCurrentMonth:_,slots:C,slotProps:T,timezone:S}=e,R=Gs(),O=H9(S),N=n!==null&&R.isSameDay(t,n),H=i.some(ne=>R.isSameDay(ne,t)),F=R.isSameDay(t,O),j=(C==null?void 0:C.day)??sbt,L=bo({elementType:j,externalSlotProps:T==null?void 0:T.day,additionalProps:ce({disableHighlightToday:p,showDaysOutsideCurrentMonth:_,role:"gridcell",isAnimating:m,"data-timestamp":R.toJsDate(t).valueOf()},u),ownerState:ce({},e,{day:t,selected:H})}),B=Gt(L,zEt),Q=V.useMemo(()=>h||o(t),[h,o,t]),Z=V.useMemo(()=>R.getMonth(t)!==a,[R,t,a]),ie=V.useMemo(()=>{const ne=R.startOfMonth(R.setMonth(t,a));return _?R.isSameDay(t,R.startOfWeek(ne)):R.isSameDay(t,ne)},[a,t,_,R]),J=V.useMemo(()=>{const ne=R.endOfMonth(R.setMonth(t,a));return _?R.isSameDay(t,R.endOfWeek(ne)):R.isSameDay(t,ne)},[a,t,_,R]);return $.jsx(j,ce({},B,{day:t,disabled:Q,autoFocus:l&&N,today:F,outsideCurrentMonth:Z,isFirstVisibleCell:ie,isLastVisibleCell:J,selected:H,tabIndex:N?0:-1,"aria-selected":H,"aria-current":F?"date":void 0}))}function eCt(r){const e=qs({props:r,name:"MuiDayCalendar"}),t=Gs(),{onFocusedDayChange:n,className:i,currentMonth:o,selectedDays:a,focusedDay:l,loading:u,onSelectedDaysChange:h,onMonthSwitchingAnimationEnd:p,readOnly:m,reduceAnimations:_,renderLoading:C=()=>$.jsx("span",{children:"..."}),slideDirection:T,TransitionProps:S,disablePast:R,disableFuture:O,minDate:N,maxDate:H,shouldDisableDate:F,shouldDisableMonth:j,shouldDisableYear:L,dayOfWeekFormatter:B=Ae=>t.format(Ae,"weekdayShort").charAt(0).toUpperCase(),hasFocus:Q,onFocusedViewChange:Z,gridLabelId:ie,displayWeekNumber:J,f
976ixedWeekNumber:ne,autoFocus:ue,timezone:K}=e,se=H9(K),be=jEt(e),de=Lb(),ge=axe({shouldDisableDate:F,shouldDisableMonth:j,shouldDisableYear:L,minDate:N,maxDate:H,disablePast:R,disableFuture:O,timezone:K}),Ue=vC(),[Qe,ve]=hg({name:"DayCalendar",state:"hasFocus",controlled:Q,default:ue??!1}),[pe,He]=V.useState(()=>l||se),Re=Zr(Ae=>{m||h(Ae)}),$e=Ae=>{ge(Ae)||(n(Ae),He(Ae),Z==null||Z(!0),ve(!0))},tt=Zr((Ae,_e)=>{switch(Ae.key){case"ArrowUp":$e(t.addDays(_e,-7)),Ae.preventDefault();break;case"ArrowDown":$e(t.addDays(_e,7)),Ae.preventDefault();break;case"ArrowLeft":{const Ve=t.addDays(_e,de?1:-1),it=t.addMonths(_e,de?1:-1),vt=EN({utils:t,date:Ve,minDate:de?Ve:t.startOfMonth(it),maxDate:de?t.endOfMonth(it):Ve,isDateDisabled:ge,timezone:K});$e(vt||Ve),Ae.preventDefault();break}case"ArrowRight":{const Ve=t.addDays(_e,de?-1:1),it=t.addMonths(_e,de?-1:1),vt=EN({utils:t,date:Ve,minDate:de?t.startOfMonth(it):Ve,maxDate:de?Ve:t.endOfMonth(it),isDateDisabled:ge,timezone:K});$e(vt||Ve),Ae.preventDefault();break}case"Home":$e(t.startOfWeek(_e)),Ae.preventDefault();break;case"End":$e(t.endOfWeek(_e)),Ae.preventDefault();break;case"PageUp":$e(t.addMonths(_e,1)),Ae.preventDefault();break;case"PageDown":$e(t.addMonths(_e,-1)),Ae.preventDefault();break}}),ot=Zr((Ae,_e)=>$e(_e)),qe=Zr((Ae,_e)=>{Qe&&t.isSameDay(pe,_e)&&(Z==null||Z(!1))}),lt=t.getMonth(o),Et=t.getYear(o),Oe=V.useMemo(()=>a.filter(Ae=>!!Ae).map(Ae=>t.startOfDay(Ae)),[t,a]),le=`${Et}-${lt}`,re=V.useMemo(()=>V.createRef(),[le]),te=V.useMemo(()=>{const Ae=t.startOfMonth(o),_e=t.endOfMonth(o);return ge(pe)||t.isAfterDay(pe,_e)||t.isBeforeDay(pe,Ae)?EN({utils:t,date:pe,minDate:Ae,maxDate:_e,disablePast:R,disableFuture:O,isDateDisabled:ge,timezone:K}):pe},[o,O,R,pe,ge,t,K]),me=V.useMemo(()=>{const Ae=t.getWeekArray(o);let _e=t.addMonths(o,1);for(;ne&&Ae.length<ne;){const Ve=t.getWeekArray(_e),it=t.isSameDay(Ae[Ae.length-1][0],Ve[0][0]);Ve.slice(it?1:0).forEach(vt=>{Ae.length<ne&&Ae.push(vt)}),_e=t.addMonths(_e,1)}return Ae},[o,ne,t]);return $.jsxs(VEt,{role:"grid","aria-labelledby":ie,className:be.root,children:[$.jsxs(qEt,{role:"row",className:be.header,children:[J&&$.jsx(YEt,{variant:"caption",role:"columnheader","aria-label":Ue.calendarWeekNumberHeaderLabel,className:be.weekNumberLabel,children:Ue.calendarWeekNumberHeaderText}),D1t(t,se).map((Ae,_e)=>$.jsx(GEt,{variant:"caption",role:"columnheader","aria-label":t.format(Ae,"weekday"),className:be.weekDayLabel,children:B(Ae)},_e.toString()))]}),u?$.jsx(KEt,{className:be.loadingContainer,children:C()}):$.jsx(ZEt,ce({transKey:le,onExited:p,reduceAnimations:_,slideDirection:T,className:mr(i,be.slideTransition)},S,{nodeRef:re,children:$.jsx(XEt,{ref:re,role:"rowgroup",className:be.monthContainer,children:me.map((Ae,_e)=>$.jsxs(QEt,{role:"row",className:be.weekContainer,"aria-rowindex":_e+1,children:[J&&$.jsx(WEt,{className:be.weekNumber,role:"rowheader","aria-label":Ue.calendarWeekNumberAriaLabelText(t.getWeekNumber(Ae[0])),children:Ue.calendarWeekNumberText(t.getWeekNumber(Ae[0]))}),Ae.map((Ve,it)=>$.jsx(JEt,{parentProps:e,day:Ve,selectedDays:Oe,focusableDay:te,onKeyDown:tt,onFocus:ot,onBlur:qe,onDaySelect:Re,isDateDisabled:ge,currentMonthNumber:lt,isViewFocused:Qe,"aria-colindex":it+1},Ve.toString()))]},`week-${Ae[0]}`))})}))]})}function tCt(r){return Mr("MuiPickersMonth",r)}const q6=Br("MuiPickersMonth",["root","monthButton","disabled","selected"]),rCt=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],nCt=r=>{const{disabled:e,selected:t,classes:n}=r;return Ur({root:["root"],monthButton:["monthButton",e&&"disabled",t&&"selected"]},tCt,n)},iCt=Nt("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(r,e)=>[e.root]}
976)({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),oCt=Nt("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(r,e)=>[e.monthButton,{[`&.${q6.disabled}`]:e.disabled},{[`&.${q6.selected}`]:e.selected}]})(({theme:r})=>ce({color:"unset",backgroundColor:"transparent",border:0,outline:0},r.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:r.vars?`rgba(${r.vars.palette.action.activeChannel} / ${r.vars.palette.action.hoverOpacity})`:ES(r.palette.action.active,r.palette.action.hoverOpacity)},"&:hover":{backgroundColor:r.vars?`rgba(${r.vars.palette.action.activeChannel} / ${r.vars.palette.action.hoverOpacity})`:ES(r.palette.action.active,r.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${q6.disabled}`]:{color:(r.vars||r).palette.text.secondary},[`&.${q6.selected}`]:{color:(r.vars||r).palette.primary.contrastText,backgroundColor:(r.vars||r).palette.primary.main,"&:focus, &:hover":{backgroundColor:(r.vars||r).palette.primary.dark}}})),aCt=V.memo(function(e){const t=qs({props:e,name:"MuiPickersMonth"}),{autoFocus:n,className:i,children:o,disabled:a,selected:l,value:u,tabIndex:h,onClick:p,onKeyDown:m,onFocus:_,onBlur:C,"aria-current":T,"aria-label":S,slots:R,slotProps:O}=t,N=Gt(t,rCt),H=V.useRef(null),F=nCt(t);nl(()=>{var B;n&&((B=H.current)==null||B.focus())},[n]);const j=(R==null?void 0:R.monthButton)??oCt,L=bo({elementType:j,externalSlotProps:O==null?void 0:O.monthButton,additionalProps:{children:o,disabled:a,tabIndex:h,ref:H,type:"button",role:"radio","aria-current":T,"aria-checked":l,"aria-label":S,onClick:B=>p(B,u),onKeyDown:B=>m(B,u),onFocus:B=>_(B,u),onBlur:B=>C(B,u)},ownerState:t,className:F.monthButton});return $.jsx(iCt,ce({className:mr(F.root,i),ownerState:t},N,{children:$.jsx(j,ce({},L))}))});function sCt(r){return Mr("MuiMonthCalendar",r)}Br("MuiMonthCalendar",["root"]);const lCt=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],cCt=r=>{const{classes:e}=r;return Ur({root:["root"]},sCt,e)};function uCt(r,e){const t=Gs(),n=WL(),i=qs({props:r,name:e});return ce({disableFuture:!1,disablePast:!1},i,{minDate:Km(t,i.minDate,n.minDate),maxDate:Km(t,i.maxDate,n.maxDate)})}const dCt=Nt("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(r,e)=>e.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:yJ,boxSizing:"border-box"}),hCt=V.forwardRef(function(e,t){const n=uCt(e,"MuiMonthCalendar"),{className:i,value:o,defaultValue:a,referenceDate:l,disabled:u,disableFuture:h,disablePast:p,maxDate:m,minDate:_,onChange:C,shouldDisableMonth:T,readOnly:S,autoFocus:R=!1,onMonthFocus:O,hasFocus:N,onFocusedViewChange:H,monthsPerRow:F=3,timezone:j,gridLabelId:L,slots:B,slotProps:Q}=n,Z=Gt(n,lCt),{value:ie,handleValueChange:J,timezone:ne}=wJ({name:"MonthCalendar",timezone:j,value:o,defaultValue:a,referenceDate:l,onChange:C,valueManager:Tb}),ue=H9(ne),K=Lb(),se=Gs(),be=V.useMemo(()=>Tb.getInitialReferenceValue({value:ie,utils:se,props:n,timezone:ne,referenceDate:l,granularity:$0.month}),[]),de=n,ge=cCt(de),Ue=V.useMemo(()=>se.getMonth(ue),[se,ue]),Qe=V.useMemo(()=>ie!=null?se.getMonth(ie):null,[ie,se]),[ve,pe]=V.useState(()=>Qe||se.getMonth(be)),[He,Re]=hg({name:"MonthCalendar",state:"hasFocus",controlled:N,default:R??!1}),$e=Zr(le=>{Re(le),H&&H(le)}),tt=V.useCallback(le=>{const re=se.startOfMonth(p&&se.isAfter(ue,_)?ue:_),te=se.startOfMonth(h&&se.isBefore(ue,m)?ue:m),me=se.startOfMonth(le);return se.isBefore(me,re)||se.isAfter(me,te)?!0:T?T(me):!1},[h,p,m,_,ue,T,se]),ot=Zr((le,re)=>{if(S)return;const te=se.setMonth(ie??be,re);J(te)}),qe=Zr(le=>{tt(se.setMonth(ie??be,le))||(pe(le),$e(!0),O&&O(le))});V.useEffect(()=>{pe(le=>Qe!==null&&le!==Qe?Qe:le)},[Qe]);const lt=Zr((le,re)=>{switch(le.key){case"ArrowUp":qe((12+re-3)%12),le.preventDefault();break;case"ArrowDown":qe((12+re+3)%12),le.preventDefault();break;case"ArrowLeft":qe((12+re+(K?1:-1))%12),le.preventDefault();break;case"ArrowRight":qe((12+re+(K?-1:1))%12),le.preventDefault();break}}),Et=Zr((le,re)=>{qe(re)}),Oe=Zr((le,re)=>{ve===re&&$e(!1)});return $.jsx(dCt,ce({ref:t,className:mr(ge.root,i),ownerState:de,role:"radiogroup","aria-labelledby":L},Z,{children:_J(se,ie??be).map(le=>{const re=se.getMonth(le),te=se.format(le,"monthShort"),me=se.format(le,"month"),Ae=re===Qe,_e=u||tt(le);return $.jsx(aCt,{selected:Ae,value:re,onClick:ot,onKeyDown:lt,autoFocus:He&&re===ve,disabled:_e,tabIndex:re===ve&&!_e?0:-1,onFocus:Et,onBlur:Oe,"aria-current":Ue===re?"date":void 0,"aria-label":me,monthsPerRow:F,slots:B,slotProps:Q,children:te},te)})}))});function fCt(r){return Mr("MuiPickersYear",r)}const G6=Br("MuiPickersYear",["root","yearButton","selected","disabled"]),pCt=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],gCt=r=>{const{disabled:e,selected:t,classes:n}=r;return Ur({root:["root"],yearButton:["yearButton",e&&"disabled",t&&"selected"]},fCt,n)},mCt=Nt("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(r,e)=>[e.root]}
976)({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),yCt=Nt("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(r,e)=>[e.yearButton,{[`&.${G6.disabled}`]:e.disabled},{[`&.${G6.selected}`]:e.selected}]})(({theme:r})=>ce({color:"unset",backgroundColor:"transparent",border:0,outline:0},r.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:r.vars?`rgba(${r.vars.palette.action.activeChannel} / ${r.vars.palette.action.focusOpacity})`:ES(r.palette.action.active,r.palette.action.focusOpacity)},"&:hover":{backgroundColor:r.vars?`rgba(${r.vars.palette.action.activeChannel} / ${r.vars.palette.action.hoverOpacity})`:ES(r.palette.action.active,r.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${G6.disabled}`]:{color:(r.vars||r).palette.text.secondary},[`&.${G6.selected}`]:{color:(r.vars||r).palette.primary.contrastText,backgroundColor:(r.vars||r).palette.primary.main,"&:focus, &:hover":{backgroundColor:(r.vars||r).palette.primary.dark}}})),vCt=V.memo(function(e){const t=qs({props:e,name:"MuiPickersYear"}),{autoFocus:n,className:i,children:o,disabled:a,selected:l,value:u,tabIndex:h,onClick:p,onKeyDown:m,onFocus:_,onBlur:C,"aria-current":T,slots:S,slotProps:R}=t,O=Gt(t,pCt),N=V.useRef(null),H=gCt(t);nl(()=>{var L;n&&((L=N.current)==null||L.focus())},[n]);const F=(S==null?void 0:S.yearButton)??yCt,j=bo({elementType:F,externalSlotProps:R==null?void 0:R.yearButton,additionalProps:{children:o,disabled:a,tabIndex:h,ref:N,type:"button",role:"radio","aria-current":T,"aria-checked":l,onClick:L=>p(L,u),onKeyDown:L=>m(L,u),onFocus:L=>_(L,u),onBlur:L=>C(L,u)},ownerState:t,className:H.yearButton});return $.jsx(mCt,ce({className:mr(H.root,i),ownerState:t},O,{children:$.jsx(F,ce({},j))}))});function _Ct(r){return Mr("MuiYearCalendar",r)}Br("MuiYearCalendar",["root"]);const bCt=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],wCt=r=>{const{classes:e}=r;return Ur({root:["root"]},_Ct,e)};function ECt(r,e){const t=Gs(),n=WL(),i=qs({props:r,name:e});return ce({disablePast:!1,disableFuture:!1},i,{yearsPerRow:i.yearsPerRow??3,minDate:Km(t,i.minDate,n.minDate),maxDate:Km(t,i.maxDate,n.maxDate)})}const CCt=Nt("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(r,e)=>e.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:yJ,maxHeight:P1t,boxSizing:"border-box",position:"relative"}),xCt=V.forwardRef(function(e,t){const n=ECt(e,"MuiYearCalendar"),{autoFocus:i,className:o,value:a,defaultValue:l,referenceDate:u,disabled:h,disableFuture:p,disablePast:m,maxDate:_,minDate:C,onChange:T,readOnly:S,shouldDisableYear:R,onYearFocus:O,hasFocus:N,onFocusedViewChange:H,yearsOrder:F="asc",yearsPerRow:j,timezone:L,gridLabelId:B,slots:Q,slotProps:Z}=n,ie=Gt(n,bCt),{value:J,handleValueChange:ne,timezone:ue}=wJ({name:"YearCalendar",timezone:L,value:a,defaultValue:l,referenceDate:u,onChange:T,valueManager:Tb}),K=H9(ue),se=Lb(),be=Gs(),de=V.useMemo(()=>Tb.getInitialReferenceValue({value:J,utils:be,props:n,timezone:ue,referenceDate:u,granularity:$0.year}),[]),ge=n,Ue=wCt(ge),Qe=V.useMemo(()=>be.getYear(K),[be,K]),ve=V.useMemo(()=>J!=null?be.getYear(J):null,[J,be]),[pe,He]=V.useState(()=>ve||be.getYear(de)),[Re,$e]=hg({name:"YearCalendar",state:"hasFocus",controlled:N,default:i??!1}),tt=Zr(Ve=>{$e(Ve),H&&H(Ve)}),ot=V.useCallback(Ve=>{if(m&&be.isBeforeYear(Ve,K)||p&&be.isAfterYear(Ve,K)||C&&be.isBeforeYear(Ve,C)||_&&be.isAfterYear(Ve,_))return!0;if(!R)return!1;const it=be.startOfYear(Ve);return R(it)},[p,m,_,C,K,R,be]),qe=Zr((Ve,it)=>{if(S)return;const vt=be.setYear(J??de,it);ne(vt)}),lt=Zr(Ve=>{ot(be.setYear(J??de,Ve))||(He(Ve),tt(!0),O==null||O(Ve))});V.useEffect(()=>{He(Ve=>ve!==null&&Ve!==ve?ve:Ve)},[ve]);const Et=F!=="desc"?j*1:j*-1,Oe=se&&F==="asc"||!se&&F==="desc"?-1:1,le=Zr((Ve,it)=>
976{switch(Ve.key){case"ArrowUp":lt(it-Et),Ve.preventDefault();break;case"ArrowDown":lt(it+Et),Ve.preventDefault();break;case"ArrowLeft":lt(it-Oe),Ve.preventDefault();break;case"ArrowRight":lt(it+Oe),Ve.preventDefault();break}}),re=Zr((Ve,it)=>{lt(it)}),te=Zr((Ve,it)=>{pe===it&&tt(!1)}),me=V.useRef(null),Ae=wo(t,me);V.useEffect(()=>{if(i||me.current===null)return;const Ve=me.current.querySelector('[tabindex="0"]');if(!Ve)return;const it=Ve.offsetHeight,vt=Ve.offsetTop,kt=me.current.clientHeight,rt=me.current.scrollTop,bt=vt+it;it>kt||vt<rt||(me.current.scrollTop=bt-kt/2-it/2)},[i]);const _e=be.getYearRange([C,_]);return F==="desc"&&_e.reverse(),$.jsx(CCt,ce({ref:Ae,className:mr(Ue.root,o),ownerState:ge,role:"radiogroup","aria-labelledby":B},ie,{children:_e.map(Ve=>{const it=be.getYear(Ve),vt=it===ve,kt=h||ot(Ve);return $.jsx(vCt,{selected:vt,value:it,onClick:qe,onKeyDown:le,autoFocus:Re&&it===pe,disabled:kt,tabIndex:it===pe&&!kt?0:-1,onFocus:re,onBlur:te,"aria-current":Qe===it?"date":void 0,yearsPerRow:j,slots:Q,slotProps:Z,children:be.format(Ve,"year")},be.format(Ve,"year"))})}))}),TCt=r=>Mr("MuiPickersCalendarHeader",r),SCt=Br("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),ICt=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],ACt=["ownerState"],RCt=r=>{const{classes:e}=r;return Ur({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},TCt,e)},PCt=Nt("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(r,e)=>e.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),kCt=Nt("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(r,e)=>e.labelContainer})(({theme:r})=>ce({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},r.typography.body1,{fontWeight:r.typography.fontWeightMedium})),OCt=Nt("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(r,e)=>e.label})({marginRight:6}),MCt=Nt(pv,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(r,e)=>e.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${SCt.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),NCt=Nt(d1t,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(r,e)=>e.switchViewIcon})(({theme:r})=>({willChange:"transform",transition:r.transitions.create("transform"),transform:"rotate(0deg)"})),DCt=V.forwardRef(function(e,t){const n=vC(),i=Gs(),o=qs({props:e,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:u,disabled:h,disableFuture:p,disablePast:m,maxDate:_,minDate:C,onMonthChange:T,onViewChange:S,view:R,reduceAnimations:O,views:N,labelId:H,className:F,timezone:j,format:L=`${i.formats.month} ${i.formats.year}`}=o,B=Gt(o,ICt),Q=o,Z=RCt(o),ie=(a==null?void 0:a.switchViewButton)??MCt,J=bo({elementType:ie,externalSlotProps:l==null?void 0:l.switchViewButton,additionalProps:{size:"small","aria-label":n.calendarViewSwitchingButtonAriaLabel(R)},ownerState:Q,className:Z.switchViewButton}),ne=(a==null?void 0:a.switchViewIcon)??NCt,ue=bo({elementType:ne,externalSlotProps:l==null?void 0:l.switchViewIcon,ownerState:Q,className:Z.switchViewIcon}),K=Gt(ue,ACt),se=()=>T(i.addMonths(u,1),"left"),be=()=>T(i.addMonths(u,-1),"right"),de=A1t(u,{disableFuture:p,maxDate:_,timezone:j}),ge=R1t(u,{disablePast:m,minDate:C,timezone:j}),Ue=()=>{if(!(N.length===1||!S||h))if(N.length===2)S(N.find(ve=>ve!==R)||N[0]);else{const ve=N.indexOf(R)!==0?0:1;S(N[ve])}};if(N.length===1&&N[0]==="year")return null;const Qe=i.formatByString(u,L);return $.jsxs(PCt,ce({},B,{ownerState:Q,className:mr(Z.root,F),ref:t,children:[$.jsxs(kCt,{role:"presentation",onClick:Ue,ownerState:Q,"aria-live":"polite",className:Z.labelContainer,children:[$.jsx(sxe,{reduceAnimations:O,transKey:
976Qe,children:$.jsx(OCt,{id:H,ownerState:Q,className:Z.label,children:Qe})}),N.length>1&&!h&&$.jsx(ie,ce({},J,{children:$.jsx(ne,ce({},K))}))]}),$.jsx(qL,{in:R==="day",appear:!O,enter:!O,children:$.jsx(C1t,{slots:a,slotProps:l,onGoToPrevious:be,isPreviousDisabled:ge,previousLabel:n.previousMonth,onGoToNext:se,isNextDisabled:de,nextLabel:n.nextMonth})})]}))}),LCt="@media (prefers-reduced-motion: reduce)",oP=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),aue=oP&&oP[1]?parseInt(oP[1],10):null,sue=oP&&oP[2]?parseInt(oP[2],10):null,HCt=aue&&aue<10||sue&&sue<13||!1,cxe=()=>Ndt(LCt,{defaultMatches:!1})||HCt,FCt=r=>Mr("MuiDateCalendar",r);Br("MuiDateCalendar",["root","viewTransitionContainer"]);const UCt=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],BCt=r=>{const{classes:e}=r;return Ur({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},FCt,e)};function $Ct(r,e){const t=Gs(),n=WL(),i=cxe(),o=qs({props:r,name:e});return ce({},o,{loading:o.loading??!1,disablePast:o.disablePast??!1,disableFuture:o.disableFuture??!1,openTo:o.openTo??"day",views:o.views??["year","day"],reduceAnimations:o.reduceAnimations??i,renderLoading:o.renderLoading??(()=>$.jsx("span",{children:"..."})),minDate:Km(t,o.minDate,n.minDate),maxDate:Km(t,o.maxDate,n.maxDate)})}const zCt=Nt(k1t,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(r,e)=>e.root})({display:"flex",flexDirection:"column",height:vJ}),jCt=Nt(sxe,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(r,e)=>e.viewTransitionContainer})({}),VCt=V.forwardRef(function(e,t){const n=Gs(),i=Jm(),o=$Ct(e,"MuiDateCalendar"),{autoFocus:a,onViewChange:l,value:u,defaultValue:h,referenceDate:p,disableFuture:m,disablePast:_,onChange:C,onYearChange:T,onMonthChange:S,reduceAnimations:R,shouldDisableDate:O,shouldDisableMonth:N,shouldDisableYear:H,view:F,views:j,openTo:L,className:B,disabled:Q,readOnly:Z,minDate:ie,maxDate:J,disableHighlightToday:ne,focusedView:ue,onFocusedViewChange:K,showDaysOutsideCurrentMonth:se,fixedWeekNumber:be,dayOfWeekFormatter:de,slots:ge,slotProps:Ue,loading:Qe,renderLoading:ve,displayWeekNumber:pe,yearsOrder:He,yearsPerRow:Re,monthsPerRow:$e,timezone:tt}=o,ot=Gt(o,UCt),{value:qe,handleValueChange:lt,timezone:Et}=wJ({name:"DateCalendar",timezone:tt,value:u,defaultValue:h,referenceDate:p,onChange:C,valueManager:Tb}),{view:Oe,setView:le,focusedView:re,setFocusedView:te,goToNextView:me,setValueAndGoToNextView:Ae}=DCe({view:F,views:j,openTo:L,onChange:lt,onViewChange:l,autoFocus:a,focusedView:ue,onFocusedViewChange:K}),{referenceDate:_e,calendarState:Ve,changeFocusedDay:it,changeMonth:vt,handleChangeMonth:kt,isDateDisabled:rt,onMonthSwitchingAnimationEnd:bt}=kEt({value:qe,referenceDate:p,reduceAnimations:R,onMonthChange:S,minDate:ie,maxDate:J,shouldDisableDate:O,disablePast:_,disableFuture:m,timezone:Et}),Xe=Q&&qe||ie,ct=Q&&qe||J,Me=`${i}-grid-label`,X=re!==null,z=(ge==null?void 0:ge.calendarHeader)??DCt,W=bo({elementType:z,externalSlotProps:Ue==null?void 0:Ue.calendarHeader,additionalProps:{views:j,view:Oe,currentMonth:Ve.currentMonth,onViewChange:le,onMonthChange:(mt,Mt)=>kt({newMonth:mt,direction:Mt}),minDate:Xe,maxDate:ct,disabled:Q,disablePast:_,disableFuture:m,reduceAnimations:R,timezone:Et,labelId:Me},ownerState:o}),Se=Zr(mt=>{const Mt=n.startOfMonth(mt),Te=n.endOfMonth(mt),fe=rt(mt)?EN({utils:n,date:mt,minDate:n.isBefore(ie,Mt)?Mt:ie,maxDate:n.isAfter(J,Te)?Te:J,disablePast:_,disableFuture:m,isDateDisabled:rt,timezone:Et}):mt;fe?(Ae(fe,"finish"),S==null||S(Mt)):(me(),vt(Mt)),it(fe,!0)}),Ke=Zr(mt=>{const Mt=n.startOfYear(mt),Te=n.endOfYear(mt),fe=rt(mt)?EN({utils:n,date:mt,minDate:n.isBefore(ie,Mt)?Mt:ie,maxDate:n.isAfter(J,Te)?Te:J,disablePast:_,disableFuture:m,isDateDisabled:rt,timezone:Et}):mt;fe?(Ae(fe,"finish"),T==null||T(fe)):(me(),vt(Mt)),it(fe,!0)}),je=Zr(mt=>lt(mt&&OB(n,mt,qe??_e),"finish",Oe));V.useEffect(()=>{qe!=null&&n.isValid(qe)&&vt(qe)},[qe]);const We=o,Pt=BCt(We),Jt={disablePast:_,disableFuture:m,maxDate:J,minDate:ie},wr={disableHighlightToday:ne,readOnly:Z,disabled:Q,timezone:Et,gridLabelId:Me,slots:ge,slotProps:Ue},rr=V.useRef(Oe);V.useEffect(()=>{rr.current!==Oe&&(re===rr.current&&te(Oe,!0),rr.current=Oe)},[re,te,Oe]);const Nr=V.useMemo(()=>[qe],[qe]);return $.jsxs(zCt,ce({ref:t,className:mr(Pt.root,B),ownerState:We},ot,{children:[$.jsx(z,ce({},W,{slots:ge,slotProps:Ue})),$.jsx(jCt,{reduceAnimations:R,className:Pt.viewTransitionContainer,transKey:Oe,ownerState:We,children:$.jsxs("div",{children:[Oe==="year"&&$.jsx(xCt,ce({},Jt,wr,{value:qe,onChange:Ke,shouldDisableYear:H,hasFocus:X,onFocusedViewChange:mt=>te("year",mt),yearsOrder:He,yearsPerRow:Re,referenceDate:_e})),Oe==="month"&&$.jsx(hCt,ce({},Jt,wr,{hasFocus:X,className:B,value:qe,onChange:Se,shouldDisableMonth:N,onFocusedViewChange:mt=>te("month",mt),monthsPerRow:$e,referenceDate:_e})),Oe==="day"&&$.jsx(eCt,ce({},Ve,Jt,wr,{onMonthSwitchingAnimationEnd:bt,onFocusedDayChange:it,reduceAnimations:R,selectedDays:Nr,onSelectedDaysChange:je,shouldDisableDate:O,shouldDisableMonth:N,shouldDisableYear:H,hasFocus:X,onFocusedViewChange:mt=>te("day",mt),showDaysOutsideCurrentMonth:se,fixedWeekNumber:be,dayOfWeekFormatter:de,displayWeekNumber:pe,loading:Qe,renderLoading:ve}))]})})]}))});function qCt(r){return Mr("MuiPickersToolbar",r)}Br("MuiPickersToolbar",["root","content"]);const GCt=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],YCt=r=>{const{classes:e}=r;
976return Ur({root:["root"],content:["content"]},qCt,e)},WCt=Nt("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:r.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),KCt=Nt("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(r,e)=>e.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),ZCt=V.forwardRef(function(e,t){const n=qs({props:e,name:"MuiPickersToolbar"}),{children:i,className:o,toolbarTitle:a,hidden:l,titleId:u}=n,h=Gt(n,GCt),p=n,m=YCt(p);return l?null:$.jsxs(WCt,ce({ref:t,className:mr(m.root,o),ownerState:p},h,{children:[$.jsx(Vd,{color:"text.secondary",variant:"overline",id:u,children:a}),$.jsx(KCt,{className:m.content,ownerState:p,children:i})]}))});function XCt(r){return Mr("MuiDatePickerToolbar",r)}Br("MuiDatePickerToolbar",["root","title"]);const QCt=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],JCt=r=>{const{classes:e}=r;return Ur({root:["root"],title:["title"]},XCt,e)},ext=Nt(ZCt,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(r,e)=>e.root})({}),txt=Nt(Vd,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(r,e)=>e.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),rxt=V.forwardRef(function(e,t){const n=qs({props:e,name:"MuiDatePickerToolbar"}),{value:i,isLandscape:o,toolbarFormat:a,toolbarPlaceholder:l="––",views:u,className:h}=n,p=Gt(n,QCt),m=Gs(),_=vC(),C=JCt(n),T=V.useMemo(()=>{if(!i)return l;const R=HCe(m,{format:a,views:u},!0);return m.formatByString(i,R)},[i,a,l,m,u]),S=n;return $.jsx(ext,ce({ref:t,toolbarTitle:_.datePickerToolbarTitle,isLandscape:o,className:mr(C.root,h)},p,{children:$.jsx(txt,{variant:"h4",align:o?"left":"center",ownerState:S,className:C.title,children:T})}))});function nxt(r,e){const t=Gs(),n=WL(),i=qs({props:r,name:e}),o=V.useMemo(()=>{var a;return((a=i.localeText)==null?void 0:a.toolbarTitle)==null?i.localeText:ce({},i.localeText,{datePickerToolbarTitle:i.localeText.toolbarTitle})},[i.localeText]);return ce({},i,{localeText:o},x1t({views:i.views,openTo:i.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:i.disableFuture??!1,disablePast:i.disablePast??!1,minDate:Km(t,i.minDate,n.minDate),maxDate:Km(t,i.maxDate,n.maxDate),slots:ce({toolbar:rxt},i.slots)})}function ixt(r){return Mr("MuiPickersPopper",r)}Br("MuiPickersPopper",["root","paper"]);const oxt=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],axt=r=>{const{classes:e}=r;return Ur({root:["root"],paper:["paper"]},ixt,e)},sxt=Nt(lJ,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r})=>({zIndex:r.zIndex.modal})),lxt=Nt(gC,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(r,e)=>e.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:r})=>["top","top-start","top-end"].includes(r),style:{transformOrigin:"bottom center"}}]});function cxt(r,e){return e.documentElement.clientWidth<r.clientX||e.documentElement.clientHeight<r.clientY}function uxt(r,e){const t=V.useRef(!1),n=V.useRef(!1),i=V.useRef(null),o=V.useRef(!1);V.useEffect(()=>{if(!r)return;function u(){o.current=!0}return document.addEventListener("mousedown",u,!0),document.addEventListener("touchstart",u,!0),()=>{document.removeEventListener("mousedown",u,!0),document.removeEventListener("touchstart",u,!0),o.current=!1}},[r]);const a=Zr(u=>{if(!o.current)return;const h=n.current;n.current=!1;const p=Il(i.current);if(!i.current||"clientX"in u&&cxt(u,p))return;if(t.current){t.current=!1;return}let m;u.composedPath?m=u.composedPath().indexOf(i.current)>-1:m=!p.documentElement.contains(u.target)||i.current.contains(u.target),!m&&!h&&e(u)}),l=()=>{n.current=!0};return V.useEffect(()=>{if(r){const u=Il(i.current),h=()=>{t.current=!0};return u.addEventListener("touchstart",a),u.addEventListener("touchmove",h),()=>{u.removeEventListener("touchstart",a),u.removeEventListener("touchmove",h)}}},[r,a]),V.useEffect(()=>{if(r){const u=Il(i.current);return u.addEventListener("click",a),()=>{u.removeEventListener("click",a),n.current=!1}}},[r,a]),[i,l,l]}const dxt=V.forwardRef((r,e)=>{const{PaperComponent:t,popperPlacement:n,ownerState:i,children:o,paperSlotProps:a,paperClasses:l,onPaperClick:u,onPaperTouchStart:h}=r,p=Gt(r,oxt),m=ce({},i,{placement:n}),_=bo({elementType:t,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:e},className:l,ownerState:m});return $.jsx(t,ce({},p,_,{onClick:C=>{var T;u(C),(T=_.onClick)==null||T.call(_,C)},onTouchStart:C=>{var T;h(C),(T=_.onTouchStart)==null||T.call(_,C)},ownerState:m,children:o}))});function hxt(r){const e=qs({props:r,name:"MuiPickersPopper"}),{anchorEl:t,children:n,containerRef:i=null,shouldRestoreFocus:o,onBlur:a,onDismiss:l,open:u,role:h,placement:p,slots:m,slotProps:_,reduceAnimations:C}=e;V.useEffect(()=>{function se(be){u&&be.key==="Escape"&&l()}return document.addEventListener("keydown",se),()=>{document.removeEventListener("keydown",se)}},[l,u]);const T=V.useRef(null);V.useEffect(()=>{h==="tooltip"||o&&!o()||(u?T.current=$f(document):T.current&&T.current instanceof HTMLElement&&setTimeout(()=>{T.current instanceof HTMLElement&&T.current.focus()}))},[u,h,o]);const[S,R,O]=uxt(u,a??l),N=V.useRef(null),H=wo(N,i),F=wo(H,S),j=e,L=axt(j),B=cxe(),Q=C??B,Z=se=>{se.key==="Escape"&&(se.stopPropagation(),l())},ie=(m==null?void 0:m.desktopTransition)??Q?qL:ak,J=(m==null?void 0:m.desktopTrapFocus)??_Ce,ne=(m==null?void 0:m.desktopPaper)??lxt,ue=(m==null?void 0:m.popper)??sxt,K=bo({elementType:ue,externalSlotProps:_==null?void 0:_.popper,additionalProps:{transition:!0,role:h,open:u,anchorEl:t,placement:p,onKeyDown:Z},className:L.root,ownerState:e});return $.jsx(ue,ce({},K,{children:({TransitionProps:se,placement:be})=>$.jsx(J,ce({open:u,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:h==="tooltip",isEnabled:()=>!0},_==null?void 0:_.desktopTrapFocus,{children:$.jsx(ie,ce({},se,_==null?void 0:_.desktopTransition,{children:$.jsx(dxt,{PaperComponent:ne,ownerState:j,popperPlacement:be,ref:F,onPaperClick:R,onPaperTouchStart:O,paperClasses:L.paper,paperSlotProps:_==null?void 0:_.desktopPaper,children:n})}))}))}))}const fxt=({open:r,onOpen:e,onClose:t})=>{const n=V.useRef(typeof r=="boolean").current,[i,o]=V.useState(!1);V.useEffect(()=>{if(n){if(typeof r!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(r)}},[n,r]);const a=V.useCallback(l=>{n||o(l),l&&e&&e(),!l&&t&&t()},[n,e,t]);return{isOpen:i,setIsOpen:a}},pxt=r=>{const{action:e,hasChanged:t,dateState:n,isControlled:i}=r,o=!i&&!n.hasBeenModifiedSinceMount;return e.name==="setValueFromField"?!0:e.name==="setValueFromAction"?o&&["accept","today","clear"].includes(e.pickerAction)?!0:t(n.lastPublishedValue):e.name==="setValueFromVie
976w"&&e.selectionState!=="shallow"||e.name==="setValueFromShortcut"?o?!0:t(n.lastPublishedValue):!1},gxt=r=>{const{action:e,hasChanged:t,dateState:n,isControlled:i,closeOnSelect:o}=r,a=!i&&!n.hasBeenModifiedSinceMount;return e.name==="setValueFromAction"?a&&["accept","today","clear"].includes(e.pickerAction)?!0:t(n.lastCommittedValue):e.name==="setValueFromView"&&e.selectionState==="finish"&&o?a?!0:t(n.lastCommittedValue):e.name==="setValueFromShortcut"?e.changeImportance==="accept"&&t(n.lastCommittedValue):!1},mxt=r=>{const{action:e,closeOnSelect:t}=r;return e.name==="setValueFromAction"?!0:e.name==="setValueFromView"?e.selectionState==="finish"&&t:e.name==="setValueFromShortcut"?e.changeImportance==="accept":!1},yxt=({props:r,valueManager:e,valueType:t,wrapperVariant:n,validator:i})=>{const{onAccept:o,onChange:a,value:l,defaultValue:u,closeOnSelect:h=n==="desktop",timezone:p,referenceDate:m}=r,{current:_}=V.useRef(u),{current:C}=V.useRef(l!==void 0),[T,S]=V.useState(p),R=Gs(),O=GS(),{isOpen:N,setIsOpen:H}=fxt(r),{timezone:F,value:j,handleValueChange:L}=bJ({timezone:p,value:l,defaultValue:_,referenceDate:m,onChange:a,valueManager:e}),[B,Q]=V.useState(()=>{let lt;return j!==void 0?lt=j:_!==void 0?lt=_:lt=e.emptyValue,{draft:lt,lastPublishedValue:lt,lastCommittedValue:lt,lastControlledValue:l,hasBeenModifiedSinceMount:!1}}),Z=e.getTimezone(R,B.draft);T!==p&&(S(p),p&&Z&&p!==Z&&Q(lt=>ce({},lt,{draft:e.setTimezone(R,p,lt.draft)})));const{getValidationErrorForNewValue:ie}=GCe({props:r,validator:i,timezone:F,value:B.draft,onError:r.onError}),J=Zr(lt=>{const Et={action:lt,dateState:B,hasChanged:Ae=>!e.areValuesEqual(R,lt.value,Ae),isControlled:C,closeOnSelect:h},Oe=pxt(Et),le=gxt(Et),re=mxt(Et);Q(Ae=>ce({},Ae,{draft:lt.value,lastPublishedValue:Oe?lt.value:Ae.lastPublishedValue,lastCommittedValue:le?lt.value:Ae.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let te=null;const me=()=>(te||(te={validationError:lt.name==="setValueFromField"?lt.context.validationError:ie(lt.value)},lt.name==="setValueFromShortcut"&&(te.shortcut=lt.shortcut)),te);Oe&&L(lt.value,me()),le&&o&&o(lt.value,me()),re&&H(!1)});if(B.lastControlledValue!==l){const lt=e.areValuesEqual(R,B.draft,j);Q(Et=>ce({},Et,{lastControlledValue:l},lt?{}:{lastCommittedValue:j,lastPublishedValue:j,draft:j,hasBeenModifiedSinceMount:!0}))}const ne=Zr(()=>{J({value:e.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),ue=Zr(()=>{J({value:B.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),K=Zr(()=>{J({value:B.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),se=Zr(()=>{J({value:B.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),be=Zr(()=>{J({value:e.getTodayValue(R,F,t),name:"setValueFromAction",pickerAction:"today"})}),de=Zr(lt=>{lt.preventDefault(),H(!0)}),ge=Zr(lt=>{lt==null||lt.preventDefault(),H(!1)}),Ue=Zr((lt,Et="partial")=>J({name:"setValueFromView",value:lt,selectionState:Et})),Qe=Zr((lt,Et,Oe)=>J({name:"setValueFromShortcut",value:lt,changeImportance:Et,shortcut:Oe})),ve=Zr((lt,Et)=>J({name:"setValueFromField",value:lt,context:Et})),pe={onClear:ne,onAccept:ue,onDismiss:K,onCancel:se,onSetToday:be,onOpen:de,onClose:ge},He={value:B.draft,onChange:ve},Re=V.useMemo(()=>e.cleanValue(R,B.draft),[R,e,B.draft]),$e={value:Re,onChange:Ue,onClose:ge,open:N},ot=ce({},pe,{value:Re,onChange:Ue,onSelectShortcut:Qe,isValid:lt=>{const Et=i({adapter:O,value:lt,timezone:F,props:r});return!e.hasError(Et)}}),qe=V.useMemo(()=>({onOpen:de,onClose:ge,open:N}),[N,ge,de]);return{open:N,fieldProps:He,viewProps:$e,layoutProps:ot,actions:pe,contextValue:qe}},vxt=["className","sx"],_xt=({props:r,propsFromPickerValue:e,additionalViewProps:t,autoFocusView:n,rendererInterceptor:i,fieldRef:o})=>{const{onChange:a,open:l,onClose:u}=e,{view:h,views:p,openTo:m,onViewChange:_,viewRenderers:C,timezone:T}=r,S=Gt(r,vxt),{view:R,setView:O,defaultView:N,focusedView:H,setFocusedView:F,setValueAndGoToNextView:j}=DCe({view:h,views:p,openTo:m,onChange:a,onViewChange:_,autoFocus:n}),{hasUIView:L,viewModeLookup:B}=V.useMemo(()=>p.reduce((K,se)=>{let be;return C[se]!=null?be="UI":be="field",K.viewModeLookup[se]=be,be==="UI"&&(K.hasUIView=!0),K},{hasUIView:!1,viewModeLookup:{}}),[C,p]),Q=V.useMemo(()=>p.reduce((K,se)=>C[se]!=null&&S1t(se)?K+1:K,0),[C,p]),Z=B[R],ie=Zr(()=>Z==="UI"),[J,ne]=V.useState(Z==="UI"?R:null);return J!==R&&B[R]==="UI"&&ne(R),nl(()=>{Z==="field"&&l&&(u(),setTimeout(()=>{var K,se;(K=o==null?void 0:o.current)==null||K.setSelectedSections(R),(se=o==null?void 0:o.current)==null||se.focu
976sField(R)}))},[R]),nl(()=>{if(!l)return;let K=R;Z==="field"&&J!=null&&(K=J),K!==N&&B[K]==="UI"&&B[N]==="UI"&&(K=N),K!==R&&O(K),F(K,!0)},[l]),{hasUIView:L,shouldRestoreFocus:ie,layoutProps:{views:p,view:J,onViewChange:O},renderCurrentView:()=>{if(J==null)return null;const K=C[J];if(K==null)return null;const se=ce({},S,t,e,{views:p,timezone:T,onChange:j,view:J,onViewChange:O,focusedView:H,onFocusedViewChange:F,showViewSwitcher:Q>1,timeViewsCount:Q});return i?i(C,J,se):K(se)}}};function lue(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const bxt=(r,e)=>{const[t,n]=V.useState(lue);return nl(()=>{const o=()=>{n(lue())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),ebt(r,["hours","minutes","seconds"])?!1:(e||t)==="landscape"},wxt=({props:r,propsFromPickerValue:e,propsFromPickerViews:t,wrapperVariant:n})=>{const{orientation:i}=r,o=bxt(t.views,i),a=Lb();return{layoutProps:ce({},t,e,{isLandscape:o,isRtl:a,wrapperVariant:n,disabled:r.disabled,readOnly:r.readOnly})}};function Ext(r){const{props:e,pickerValueResponse:t}=r;return V.useMemo(()=>({value:t.viewProps.value,open:t.open,disabled:e.disabled??!1,readOnly:e.readOnly??!1}),[t.viewProps.value,t.open,e.disabled,e.readOnly])}const Cxt=({props:r,valueManager:e,valueType:t,wrapperVariant:n,additionalViewProps:i,validator:o,autoFocusView:a,rendererInterceptor:l,fieldRef:u})=>{const h=yxt({props:r,valueManager:e,valueType:t,wrapperVariant:n,validator:o}),p=_xt({props:r,additionalViewProps:i,autoFocusView:a,fieldRef:u,propsFromPickerValue:h.viewProps,rendererInterceptor:l}),m=wxt({props:r,wrapperVariant:n,propsFromPickerValue:h.layoutProps,propsFromPickerViews:p.layoutProps}),_=Ext({props:r,pickerValueResponse:h});return{open:h.open,actions:h.actions,fieldProps:h.fieldProps,renderCurrentView:p.renderCurrentView,hasUIView:p.hasUIView,shouldRestoreFocus:p.shouldRestoreFocus,layoutProps:m.layoutProps,contextValue:h.contextValue,ownerState:_}};function uxe(r){return Mr("MuiPickersLayout",r)}const bx=Br("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),xxt=["onAccept","onClear","onCancel","onSetToday","actions"];function Txt(r){const{onAccept:e,onClear:t,onCancel:n,onSetToday:i,actions:o}=r,a=Gt(r,xxt),l=vC();if(o==null||o.length===0)return null;const u=o==null?void 0:o.map(h=>{switch(h){case"clear":return $.jsx(fT,{onClick:t,children:l.clearButtonLabel},h);case"cancel":return $.jsx(fT,{onClick:n,children:l.cancelButtonLabel},h);case"accept":return $.jsx(fT,{onClick:e,children:l.okButtonLabel},h);case"today":return $.jsx(fT,{onClick:i,children:l.todayButtonLabel},h);default:return null}});return $.jsx(GL,ce({},a,{children:u}))}const Sxt=["items","changeImportance","isLandscape","onChange","isValid"],Ixt=["getValue"];function Axt(r){const{items:e,changeImportance:t="accept",onChange:n,isValid:i}=r,o=Gt(r,Sxt);if(e==null||e.length===0)return null;const a=e.map(l=>{let{getValue:u}=l,h=Gt(l,Ixt);const p=u({isValid:i});return ce({},h,{label:h.label,onClick:()=>{n(p,t,h)},disabled:!i(p)})});return $.jsx(RB,ce({dense:!0,sx:[{maxHeight:vJ,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(l=>$.jsx(SCe,{children:$.jsx(Npt,ce({},l))},l.id??l.label))}))}function Rxt(r){return r.view!==null}const Pxt=r=>{const{classes:e,isLandscape:t}=r;return Ur({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},uxe,e)},kxt=r=>{const{wrapperVariant:e,onAccept:t,onClear:n,onCancel:i,onSetToday:o,view:a,views:l,onViewChange:u,value:h,onChange:p,onSelectShortcut:m,isValid:_,isLandscape:C,disabled:T,readOnly:S,children:R,slots:O,slotProps:N}=r,H=Pxt(r),F=(O==null?void 0:O.actionBar)??Txt,j=bo({elementType:F,externalSlotProps:N==null?void 0:N.actionBar,additionalProps:{onAccept:t,onClear:n,onCancel:i,onSetToday:o,actions:e==="desktop"?[]:["cancel","accept"]},className:H.actionBar,ownerState:ce({},r,{wrapperVariant:e})}),L=$.jsx(F,ce({},j)),B=O==null?void 0:O.toolbar,Q=bo({elementType:B,externalSlotProps:N==null?void 0:N.toolbar,additionalProps:{isLandscape:C,onChange:p,value:h,view:a,onViewChange:u,views:l,disabled:T,readOnly:S},className:H.toolbar,ownerState:ce({},r,{wrapperVariant:e})}),Z=Rxt(Q)&&B?$.jsx(B,ce({},Q)):null,ie=R,J=O==null?void 0:O.tabs,ne=a&&J?$.jsx(J,ce({view:a,onViewChange:u,className:H.tabs}
976,N==null?void 0:N.tabs)):null,ue=(O==null?void 0:O.shortcuts)??Axt,K=bo({elementType:ue,externalSlotProps:N==null?void 0:N.shortcuts,additionalProps:{isValid:_,isLandscape:C,onChange:m},className:H.shortcuts,ownerState:{isValid:_,isLandscape:C,onChange:m,wrapperVariant:e}}),se=a&&ue?$.jsx(ue,ce({},K)):null;return{toolbar:Z,content:ie,tabs:ne,actionBar:L,shortcuts:se}},Oxt=r=>{const{isLandscape:e,classes:t}=r;return Ur({root:["root",e&&"landscape"],contentWrapper:["contentWrapper"]},uxe,t)},Mxt=Nt("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(r,e)=>e.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${bx.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${bx.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${bx.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${bx.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${bx.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${bx.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${bx.shortcuts}`]:{gridColumn:3}}}]}),Nxt=Nt("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(r,e)=>e.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Dxt=V.forwardRef(function(e,t){const n=qs({props:e,name:"MuiPickersLayout"}),{toolbar:i,content:o,tabs:a,actionBar:l,shortcuts:u}=kxt(n),{sx:h,className:p,isLandscape:m,wrapperVariant:_}=n,C=Oxt(n);return $.jsxs(Mxt,{ref:t,sx:h,className:mr(C.root,p),ownerState:n,children:[m?u:i,m?i:u,$.jsx(Nxt,{className:C.contentWrapper,children:_==="desktop"?$.jsxs(V.Fragment,{children:[o,a]}):$.jsxs(V.Fragment,{children:[a,o]})}),l]})}),Lxt=["props","getOpenDialogAriaText"],Hxt=["ownerState"],Fxt=["ownerState"],Uxt=r=>{var me;let{props:e,getOpenDialogAriaText:t}=r,n=Gt(r,Lxt);const{slots:i,slotProps:o,className:a,sx:l,format:u,formatDensity:h,enableAccessibleFieldDOMStructure:p,selectedSections:m,onSelectedSectionsChange:_,timezone:C,name:T,label:S,inputRef:R,readOnly:O,disabled:N,autoFocus:H,localeText:F,reduceAnimations:j}=e,L=V.useRef(null),B=V.useRef(null),Q=Jm(),Z=((me=o==null?void 0:o.toolbar)==null?void 0:me.hidden)??!1,{open:ie,actions:J,hasUIView:ne,layoutProps:ue,renderCurrentView:K,shouldRestoreFocus:se,fieldProps:be,contextValue:de,ownerState:ge}=Cxt(ce({},n,{props:e,fieldRef:B,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),Ue=i.inputAdornment??hJ,Qe=bo({elementType:Ue,externalSlotProps:o==null?void 0:o.inputAdornment,additionalProps:{position:"end"},ownerState:e}),ve=Gt(Qe,Hxt),pe=i.openPickerButton??pv,He=bo({elementType:pe,externalSlotProps:o==null?void 0:o.openPickerButton,additionalProps:{disabled:N||O,onClick:ie?J.onClose:J.onOpen,"aria-label":t(be.value),edge:ve.position},ownerState:e}),Re=Gt(He,Fxt),$e=i.openPickerIcon,tt=bo({elementType:$e,externalSlotProps:o==null?void 0:o.openPickerIcon,ownerState:ge}),ot=i.field,qe=bo({elementType:ot,externalSlotProps:o==null?void 0:o.field,additionalProps:ce({},be,Z&&{id:Q},{readOnly:O,disabled:N,className:a,sx:l,format:u,formatDensity:h,enableAccessibleFieldDOMStructure:p,selectedSections:m,onSelectedSectionsChange:_,timezone:C,label:S,name:T,autoFocus:H&&!e.open,focused:ie?!0:void 0},R?{inputRef:R}:{}),ownerState:e});ne&&(qe.InputProps=ce({},qe.InputProps,{ref:L},!e.disableOpenPicker&&{[`${ve.position}Adornment`]:$.jsx(Ue,ce({},ve,{children:$.jsx(pe,ce({},Re,{children:$.jsx($e,ce({},tt))}))}))}));const lt=ce({textField:i.textField,clearIcon:i.clearIcon,clearButton:i.clearButton},qe.slots),Et=i.layout??Dxt;let Oe=Q;Z&&(S?Oe=`${Q}-label`:Oe=void 0);const le=ce({},o,{toolbar:ce({},o==null?void 0:o.toolbar,{titleId:Q}),popper:ce({"aria-labelledby":Oe},o==null?void 0:o.popper)}),re=wo(B,qe.unstableFieldRef);return{renderPicker:()=>$.jsxs(kbt,{contextValue:de,localeText:F,children:[$.jsx(ot,ce({},qe,{slots:lt,slotProps:le,unstableFieldRef:re})),$.jsx(hxt,ce({role:"dialog",placement:"bottom-start",anchorEl:L.current},J,{open:ie,slots:i,slotProps:le,shouldRestoreFocus:se,reduceAnimations:j,children:$.jsx(Et,ce({},ue,le==null?void 0:le.layout,{slots:i,slotProps:le,children:K()}))}))]})}},P3=({view:r,onViewChange:e,views:t,focusedView:n,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:l,onCh
976ange:u,className:h,classes:p,disableFuture:m,disablePast:_,minDate:C,maxDate:T,shouldDisableDate:S,shouldDisableMonth:R,shouldDisableYear:O,reduceAnimations:N,onMonthChange:H,monthsPerRow:F,onYearChange:j,yearsOrder:L,yearsPerRow:B,slots:Q,slotProps:Z,loading:ie,renderLoading:J,disableHighlightToday:ne,readOnly:ue,disabled:K,showDaysOutsideCurrentMonth:se,dayOfWeekFormatter:be,sx:de,autoFocus:ge,fixedWeekNumber:Ue,displayWeekNumber:Qe,timezone:ve})=>$.jsx(VCt,{view:r,onViewChange:e,views:t.filter(Yce),focusedView:n&&Yce(n)?n:null,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:l,onChange:u,className:h,classes:p,disableFuture:m,disablePast:_,minDate:C,maxDate:T,shouldDisableDate:S,shouldDisableMonth:R,shouldDisableYear:O,reduceAnimations:N,onMonthChange:H,monthsPerRow:F,onYearChange:j,yearsOrder:L,yearsPerRow:B,slots:Q,slotProps:Z,loading:ie,renderLoading:J,disableHighlightToday:ne,readOnly:ue,disabled:K,showDaysOutsideCurrentMonth:se,dayOfWeekFormatter:be,sx:de,autoFocus:ge,fixedWeekNumber:Ue,displayWeekNumber:Qe,timezone:ve}),dxe=V.forwardRef(function(e,t){var h,p;const n=vC(),i=Gs(),o=nxt(e,"MuiDesktopDatePicker"),a=ce({day:P3,month:P3,year:P3},o.viewRenderers),l=ce({},o,{viewRenderers:a,format:HCe(i,o,!1),yearsPerRow:o.yearsPerRow??4,slots:ce({openPickerIcon:p1t,field:REt},o.slots),slotProps:ce({},o.slotProps,{field:m=>{var _;return ce({},NQ((_=o.slotProps)==null?void 0:_.field,m),dbt(o),{ref:t})},toolbar:ce({hidden:!0},(h=o.slotProps)==null?void 0:h.toolbar)})}),{renderPicker:u}=Uxt({props:l,valueManager:Tb,valueType:"date",getOpenDialogAriaText:l1t({utils:i,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:(p=l.localeText)==null?void 0:p.openDatePickerDialogue}),validator:B9});return u()});dxe.propTypes={autoFocus:br.bool,className:br.string,closeOnSelect:br.bool,dayOfWeekFormatter:br.func,defaultValue:br.object,disabled:br.bool,disableFuture:br.bool,disableHighlightToday:br.bool,disableOpenPicker:br.bool,disablePast:br.bool,displayWeekNumber:br.bool,enableAccessibleFieldDOMStructure:br.any,fixedWeekNumber:br.number,format:br.string,formatDensity:br.oneOf(["dense","spacious"]),inputRef:hst,label:br.node,loading:br.bool,localeText:br.object,maxDate:br.object,minDate:br.object,monthsPerRow:br.oneOf([3,4]),name:br.string,onAccept:br.func,onChange:br.func,onClose:br.func,onError:br.func,onMonthChange:br.func,onOpen:br.func,onSelectedSectionsChange:br.func,onViewChange:br.func,onYearChange:br.func,open:br.bool,openTo:br.oneOf(["day","month","year"]),orientation:br.oneOf(["landscape","portrait"]),readOnly:br.bool,reduceAnimations:br.bool,referenceDate:br.object,renderLoading:br.func,selectedSections:br.oneOfType([br.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),br.number]),shouldDisableDate:br.func,shouldDisableMonth:br.func,shouldDisableYear:br.func,showDaysOutsideCurrentMonth:br.bool,slotProps:br.object,slots:br.object,sx:br.oneOfType([br.arrayOf(br.oneOfType([br.func,br.object,br.bool])),br.func,br.object]),timezone:br.string,value:br.object,view:br.oneOf(["day","month","year"]),viewRenderers:br.shape({day:br.func,month:br.func,year:br.func}),views:br.arrayOf(br.oneOf(["day","month","year"]).isRequired),yearsOrder:br.oneOf(["asc","desc"]),yearsPerRow:br.oneOf([3,4])};const Bxt=Nt(MD)({"& label":{color:ti.h2DigitalBlue},"& input:-internal-autofill-selected":{color:"fieldText !important"},"& .MuiOutlinedInput-root":{height:"3rem",color:ti.h2DigitalBlue,"& fieldset":{border:`1px solid ${ti.h2DigitalBlue}`,borderRadius:"10px"},"&:hover fieldset":{borderColor:"black"},"&.Mui-focused fieldset":{borderColor:ti.h2DigitalBlue}},"& .MuiInputBase-multiline":{height:"fit-content",color:ti.h2DigitalBlue},"& input":{color:ti.h2DigitalBlue},"& .MuiTypography-root":{color:ti.h2DigitalBlue,width:"-webkit-fill-available"}}),fOt=Nt(dxe)({"& label":{color:ti.h2DigitalBlue},"& .MuiOutlinedInput-root":{height:"3rem","& fieldset":{border:`1px solid ${ti.h2DigitalBlue}`,borderRadius:"10px"},"&:hover fieldset":{borderColor:"black"},"&.Mui-focused fieldset":{borderColor:ti.h2DigitalBlue},"& .MuiIconButton-edgeEnd":{"&:not(.Mui-disabled)":{color:ti.h2DigitalBlue}},"& .clearButton":{"&:not(.Mui-disabled)":{color:ti.h2DigitalBlue}}},"& .MuiInputBase-multiline":{height:"fit-content",color:ti.h2DigitalBlue},"& input":{color:ti.h2DigitalBlue},"& .MuiTypography-root":{color:ti.h2DigitalBlue,width:"-webkit-fill-available"}}),pOt=[{id:ka.Consumer,key:"Type",value:ka.Consumer,icon:NEe},{id:ka.Producer,key:"Type",value:ka.Producer,icon:FEe},{id:ka.Trader,key:"Type",value:ka.Trader,icon:UEe},{id:ka.Storage,key:"Type",value:ka.Storage,icon:BEe}];var Qu=(r=>(r.Provider="Provider",r.Source="Source",r.Type="Type",r.Kreis="Kreis",r))(Qu||{}),$xt=(r=>(r.KREISFREI="Kreisfreie Stadt",r.KREIS="Kreis",r.LANDKREIS="Landkreis",r.STADTKREIS="Stadtkreis",r))($xt||{}),ry=(r=>(r.FULL_PROJECTS_VIEW="FULL_PROJECTS_VIEW",r.MOBILE_MINI_FULL_PROJECTS_VIEW="MOBILE_MINI_FULL_PROJECTS_VIEW",r.LAST_BROWSED="LAST_BROWSED",r.PROVIDER_SPECIFIC="PROVIDER_SPECIFIC",r.GREATER_GERMANY="GREATER_GERMANY",r.GERMANY="GERMANY",r.FIRST_PROJECT_LOCATION="FIRST_PROJECT_LOCATION",r))(ry||{});
976const gOt=new Set(["h2-dig.map.legend.gasPowerPlant","h2-dig.map.legend.H2Tankstelle"]),zxt={map:!0,initialZoomInMap:ry.GREATER_GERMANY,list:!0,demandView:!1,analytics:!0,stagingEditTags:!0,stagingEditPhases:!0,stagingEditMatchmakingCheck:!1,sizingProviderLogo:!0,homePages:!1,goToFirstTabOnLogin:!0,providerLogoInHeader:!0,sizingAndCostingFullAccess:!0,sizingAndCostingSelfService:!0,userManagement:!0,isInvitationEnabled:!0,contentManagement:!0,showDatatypeDropdownInMapFilters:!1,allowedToCreateChild:!1,isAIEnabled:!1},jxt={map:!0,initialZoomInMap:ry.FIRST_PROJECT_LOCATION,list:!0,demandView:!1,analytics:!1,stagingEditTags:!0,stagingEditPhases:!0,stagingEditMatchmakingCheck:!1,sizingProviderLogo:!0,homePages:!1,goToFirstTabOnLogin:!0,providerLogoInHeader:!0,sizingAndCostingFullAccess:!1,sizingAndCostingSelfService:!0,userManagement:!1,isInvitationEnabled:!1,contentManagement:!1,showDatatypeDropdownInMapFilters:!1,allowedToCreateChild:!1,isAIEnabled:!1},Vxt={map:!0,initialZoomInMap:ry.PROVIDER_SPECIFIC,list:!0,demandView:!1,analytics:!0,stagingEditTags:!0,stagingEditPhases:!0,stagingEditMatchmakingCheck:!0,sizingProviderLogo:!1,homePages:!1,goToFirstTabOnLogin:!0,providerLogoInHeader:!1,sizingAndCostingFullAccess:!1,sizingAndCostingSelfService:!1,userManagement:!0,isInvitationEnabled:!1,contentManagement:!0,showDatatypeDropdownInMapFilters:!1,allowedToCreateChild:!1,isAIEnabled:!1},qxt={map:!0,initialZoomInMap:ry.FIRST_PROJECT_LOCATION,list:!0,demandView:!1,analytics:!1,stagingEditTags:!0,stagingEditPhases:!0,stagingEditMatchmakingCheck:!0,sizingProviderLogo:!1,homePages:!1,goToFirstTabOnLogin:!0,providerLogoInHeader:!1,sizingAndCostingFullAccess:!1,sizingAndCostingSelfService:!0,userManagement:!1,isInvitationEnabled:!1,contentManagement:!1,showDatatypeDropdownInMapFilters:!1,allowedToCreateChild:!1,isAIEnabled:!1},Gxt={map:!0,initialZoomInMap:ry.GERMANY,list:!0,demandView:!0,analytics:!0,stagingEditTags:!0,stagingEditPhases:!0,stagingEditMatchmakingCheck:!0,sizingProviderLogo:!1,homePages:!1,goToFirstTabOnLogin:!0,providerLogoInHeader:!0,sizingAndCostingFullAccess:!1,sizingAndCostingSelfService:!1,userManagement:!0,isInvitationEnabled:!0,contentManagement:!0,showDatatypeDropdownInMapFilters:!0,allowedToCreateChild:!1,isAIEnabled:!1},Yxt={map:!0,initialZoomInMap:ry.FIRST_PROJECT_LOCATION,list:!0,demandView:!1,analytics:!1,stagingEditTags:!0,stagingEditPhases:!0,stagingEditMatchmakingCheck:!0,sizingProviderLogo:!1,homePages:!1,goToFirstTabOnLogin:!0,providerLogoInHeader:!1,sizingAndCostingFullAccess:!1,sizingAndCostingSelfService:!0,userManagement:!1,isInvitationEnabled:!1,contentManagement:!1,showDatatypeDropdownInMapFilters:!1,allowedToCreateChild:!1,isAIEnabled:!1},Wxt={map:!0,initialZoomInMap:ry.GERMANY,list:!0,demandView:!0,analytics:!1,stagingEditTags:!0,stagingEditPhases:!0,stagingEditMatchmakingCheck:!1,sizingProviderLogo:!1,homePages:!1,goToFirstTabOnLogin:!0,providerLogoInHeader:!0,sizingAndCostingFullAccess:!1,sizingAndCostingSelfService:!1,userManagement:!0,isInvitationEnabled:!0,contentManagement:!0,showDatatypeDropdownInMapFilters:!0,allowedToCreateChild:!1,isAIEnabled:!1},Kxt={map:!0,initialZoomInMap:ry.FULL_PROJECTS_VIEW,list:!0,demandView:!0,analytics:!0,stagingEditTags:!0,stagingEditPhases:!0,stagingEditMatchmakingCheck:!0,sizingProviderLogo:!1,homePages:!0,goToFirstTabOnLogin:!1,providerLogoInHeader:!1,sizingAndCostingFullAccess:!0,sizingAndCostingSelfService:!0,userManagement:!0,isInvitationEnabled:!1,contentManagement:!0,showDatatypeDropdownInMapFilters:!0,allowedToCreateChild:!0,isAIEnabled:!0},Zxt={map:!0,initialZoomInMap:ry.FULL_PROJECTS_VIEW,list:!0,demandView:!1,analytics:!0,stagingEditTags:!0,stagingEditPhases:!0,stagingEditMatchmakingCheck:!1,sizingProviderLogo:!1,homePages:!0,goToFirstTabOnLogin:!1,providerLogoInHeader:!0,sizingAndCostingFullAccess:!1,sizingAndCostingSelfService:!1,userManagement:!1,isInvitationEnabled:!1,contentManagement:!0,showDatatypeDropdownInMapFilters:!1,allowedToCreateChild:!1,isAIEnabled:!1},Xxt={map:!0,initialZoomInMap:ry.FIRST_PROJECT_LOCATION,list:!0,demandView:!1,analytics:!0,stagingEditTags:!0,stagingEditPhases:!0,stagingEditMatchmakingCheck:!1,sizingProviderLogo:!1,homePages:!0,goToFirstTabOnLogin:!1,providerLogoInHeader:!1,sizingAndCostingFullAccess:!1,sizingAndCostingSelfService:!0,userManagement:!1,isInvitationEnabled:!1,contentManagement:!1,showDatatypeDropdownInMapFilters:!1,allowedToCreateChild:!1,isAIEnabled:!0},dW={map:!0,initialZoomInMap:ry.LAST_BROWSED,list:!0,analytics:!0,demandView:!1,stagingEditTags:!1,stagingEditPhases:!1,stagingEditMatchmakingCheck:!1,sizingProviderLogo:!1,homePages:!0,goToFirstTabOnLogin:!1,providerLogoInHeader:!1,sizingAndCostingFullAccess:!1,sizingAndCostingSelfService:!0,userManagement:!1,isInvitationEnabled:!1,contentManagement:!1,showDatatypeDropdownInMapFilters:!1,allowedToCreateChild:!1,isAIEnabled:!0};var Ch=(r=>(r.PRIVATE="PRIVATE",r.PUBLIC="PUBLIC",r))(Ch||{}),Va=(r=>(r.H2DIGITAL_USER="H2DIGITAL_USER",r.PROVIDER_USER="PROVIDER_USER",r.PROJECT_USER="PROJECT_USER",r.OGE_CRM_USER="OGE_CRM_USER",r.H2MED_PROVIDER_USER="H2MED_PROVIDER_USER",r.H2MED_PROJECT_USER="H2MED_PROJECT_USER",r.HYPORTAL_PROVIDER_USER="HYPORTAL_PROVIDER_USER",r.HYPORTAL_PROJECT_USER="HYPORTAL_PROJECT_USER",r.HYPORTAL_SUPERVISOR_USER="HYPORTAL_SUPERVISOR_USER",r.SIZING_PROVIDER_USER="SIZING_PROVIDER_USER",r.SIZING_PROJECT_USER="SIZING_PROJECT_USER",r.DEFAULT="DEFAULT",r))(Va||{});const DD=new Map([[tT.Germany,[{key:Qu.Provider,value:nd.OGE,accessType:Ch.PRIVATE}]],[tT.France,[{key:Qu.Provider,value:nd.GRTgaz,accessType:Ch.PRIVATE},{key:Qu.Provider,value:nd.Terega,accessType:Ch.PRIVATE}]],[tT.Spain,[{key:Qu.Provider,value:nd.Enagas,accessType:Ch.PRIVATE}]],[tT.Portugal,[{key:Qu.Provider,value:nd.REN,accessType:Ch.PRIVATE}]],[ka.Producer,[{key:Qu.Type,value:ka.Producer,accessType:Ch.PRIVATE}]],[ka.Consumer,[{key:Qu.Type,value:ka.Consumer,accessType:Ch.PRIVATE}]],[ka.Trader,[{key:Qu.Type,value:ka.Trader,accessType:Ch.PRIVATE}]],[ka.Storage,[{key:Qu.Type,value:ka.Storage,accessType:Ch.PRIVATE}]],[Bo.H2MED,[{key:Qu.Source,value:Bo.H2MED,accessType:Ch.PRIVATE}]],[Bo.HYPORTAL,[{key:Qu.Source,value:Bo.HYPORTAL,accessType:Ch.PRIVATE}]],[p_.INNOVATION_AGENTUR_RLP_SOURCE,[{key:Qu.Source,value:p_.INNOVATION_AGENTUR_RLP_SOURCE,accessType:Ch.PRIVATE}]],[Bo.INNOVATION_AGENTUR_RLP_PROVIDER,[{key:Qu.Provider,value:Bo.INNOVATION_AGENTUR_RLP_PROVIDER,accessType:Ch.PRIVATE}]]]);
976Object.entries(RZ).forEach(([r,e])=>{DD.set(r,[{key:Qu.Provider,value:e,accessType:Ch.PRIVATE}])});var hW=(r=>(r[r.KREIS=0]="KREIS",r[r.NON_KREIS=1]="NON_KREIS",r))(hW||{}),Qxt=(r=>(r.PUBLIC="public",r.HIDDEN="hidden",r))(Qxt||{});const mOt=(r,e)=>{const t=r&&new Set(r.map(o=>o.id))||new Set,n=e&&new Set(e.map(o=>o.id))||new Set;return[...Array.from(t).filter(o=>!n.has(o)),...Array.from(n).filter(o=>!t.has(o))]},RJ=r=>(r==null?void 0:r.tags)&&dd(r==null?void 0:r.tags,Oi.PROVIDER),Jxt=(r,e)=>{var n,i;return r&&((i=(n=RJ(r))==null?void 0:n.value)==null?void 0:i.toLowerCase())===Bo.CIBUSCELL||e?"sizingAndCosting.investmentPlanning":"sizingAndCosting.sizingAndCosting"},yOt=(r,e,t)=>{const n=Jxt(r,e);return t(n).replace(/\s+/g,"")},eTt=r=>{var i,o;const e=r&&((o=(i=RJ(r))==null?void 0:i.value)==null?void 0:o.toLowerCase());return e===Bo.INNOVATION_AGENTUR_RLP_PROVIDER?"":e&&hxe().includes(e.toLowerCase())?"h2-dig.h2SizingTitle":"h2-dig.title"},dd=(r,e,t)=>t?r.find(n=>n.key.toLowerCase().trim()===e.toLowerCase().trim()&&n.value.toLowerCase().trim()===t.toLowerCase().trim()):r.find(n=>n.key.toLowerCase().trim()===e.toLowerCase().trim()),cue=(r,e)=>r.filter(t=>t.key.toLowerCase().trim()===e.toLowerCase().trim()),tTt=(r,e)=>{if(!(r!=null&&r.length))return 0;const t=e.toLowerCase().trim();return r.filter(n=>n.key&&n.key.toLowerCase().trim()===t).length},vOt=r=>{let e;if(r.country){const t=DD.get(r.country);t&&(r.country===tT.France&&r.countrySecondarySubdivision?_ve.includes(r.countrySecondarySubdivision)?e=t.find(n=>n.value===nd.Terega):e=t.find(n=>n.value===nd.GRTgaz):e=t[0])}return e},rTt=new Map([[Uo.H2CONSUMEDPERHOUR,ka.Consumer],[Uo.H2CONSUMED_TONS_PER_YEAR,ka.Consumer],[Uo.H2PRODUCEDPERHOUR,ka.Producer],[Uo.H2PRODUCED_TONS_P
976ER_YEAR,ka.Producer],[Uo.H2_TRADER_TONS_PER_YEAR,ka.Trader],[Uo.H2_STORAGE,ka.Storage],[Uo.CCUS,ka.CCUS],[Uo.GAS_POWER_PLANT_MW,ka.GasPowerPlant],[Uo.H2_TANKSTELLE_350_BAR,ka.H2Tankstelle],[Uo.H2_TANKSTELLE_700_BAR,ka.H2Tankstelle],[Uo.OTHER,ka.Other]]),nTt=r=>(r.phasesStaging.forEach(t=>{const n=rTt.get(t.parameter);n&&(r.tags.find(o=>o.value.toLowerCase()===n.toLowerCase()&&o.key.toLowerCase()===Qu.Type.toLowerCase())||r.tags.push({key:Qu.Type,value:n}))}),r.tags),hxe=()=>"cibuscell,kpmg,energyplanner,PowerH2,Innovationsagentur RLP".split(",").map(r=>r.trim().toLowerCase())||[],iTt=()=>"hyportal".split(",").map(r=>r.trim().toLowerCase())||[],oTt=r=>{var e,t;if(!r)return dW;if(r.userType===si.H2DIGITAL)return Kxt;{const n=(t=(e=dd(r==null?void 0:r.tags,Oi.SOURCE))==null?void 0:e.value)==null?void 0:t.toLowerCase(),i=r.userType;if(i===si.PROVIDER){let o=Zxt;return fW(r==null?void 0:r.tags)?o=zxt:n===Bo.H2MED.toLowerCase()?o=Vxt:n===Bo.HYPORTAL.toLowerCase()&&(o=Gxt),r.isAdmin||(o={...o,userManagement:!1,contentManagement:!1}),o}else{if(i==si.SUPERVISOR)return Wxt;if(i==si.PROJECT)switch(!0){case fW(r==null?void 0:r.tags):return jxt;case n==Bo.H2MED.toLowerCase():return qxt;case n==Bo.HYPORTAL.toLowerCase():return Yxt;default:return Xxt}}}return dW},aTt=(r,e)=>e!=null&&e.includes(VEe.ENERGY_PLANNER_FULL_ACCESS)?{...r,sizingAndCostingFullAccess:!0}:r,uue=r=>aTt(oTt(r),r==null?void 0:r.features),sTt=r=>{var i;const e=dd(r,Oi.SOURCE),t=(i=e==null?void 0:e.value)==null?void 0:i.toLowerCase();return t&&mve.has(t)?t:null},_Ot=r=>(r==null?void 0:r.H2DigitalType)==IZ.KREIS?hW.KREIS:hW.NON_KREIS,bOt=(r,e)=>{const t=e!=null&&e.includes(Bo.H2MED)?nd:RZ;return r.filter(n=>Object.values(t).map(i=>i.toLowerCase()).includes(n.toLowerCase()))},wOt=(r,e)=>{if(!r)return;if(!e||e.userType===si.H2DIGITAL)return r;const t=cue(e.tags,Oi.PROVIDER);if(cue(r,Oi.PROVIDER).length==1)return r;const i=r.filter(o=>o.key.toLowerCase()===Oi.PROVIDER.toLowerCase()&&!t.some(a=>a.key.toLowerCase()===o.key.toLowerCase()&&a.value===o.value));return r.filter(o=>!i.some(a=>a.id===o.id))},EOt=r=>r.tags.filter(e=>e.key.toLowerCase()===Oi.PROVIDER&&e.value.toLowerCase()!==Bo.H2_DIGITAL_PROVIDER||e.key.toLowerCase()===Oi.SOURCE&&e.value.toLowerCase()!==p_.H2_DIGITAL_SOURCE).map(e=>({key:e.key,value:e.value})),COt=r=>{var t;let e=DD.get(r);if(e&&((t=e[0])==null?void 0:t.value)===p_.INNOVATION_AGENTUR_RLP_SOURCE){const n=DD.get(Bo.INNOVATION_AGENTUR_RLP_PROVIDER);n&&(e=[...e,...n])}return e},lTt={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_INSIGHTS_CONN:"InstrumentationKey=add6fa15-e3a3-4d3a-8a25-ed958c1c0c92;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/",VITE_BOT_WEBSOCKET_URL:"wss://chatbot.h2-digital.com",VITE_COPILOT_ENABLED:"0",VITE_DASHBOARD_API_URL:"https://api.h2-digital.com",VITE_DISABLE_CFI:"1",VITE_ENVIRONMENT:"production",VITE_IS_PUBLIC:"1",VITE_MAINTENANCE_MODE:"",VITE_MAP_SUBSCRIPTION_KEY:"6Y3578dLVFqxBEqFYRTCJwoQCoPY2gRnS2f59cB5RCEImMgL46fvJQQJ99ALAC5RqLJXwCKhAAAgAZMP44cy",VITE_OGE_CRM_MSTEAMS_CHANNEL:"19:[email protected]",VITE_OGE_CRM_MSTEAMS_ID:"0f1d9fa5-32f9-4d56-b820-0d0d04480d55",VITE_PROGRESS_VIEW_ACCESS:"0,5,10,20",VITE_PROGRESS_VIEW_SOURCE_TAGS:"hyportal",VITE_PUBLIC_KEY:"-----BEGIN PUBLIC KEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDHJM7CtoiP2QbRtesU5nGuhowkITgJ1wW0aijeftsbtyjz3QBYs+HYAH3lU+GiGpGSbSAh7DlZz9Q9jfueB991j/cIIfKyQ3rz/sm6OLQCKP1p3HdzrJosznC47IJnK+VlCMD9ue/1lk+dRFwZXqQnS8Cit2RHPxvtxZwHJg0BjQIDAQAB-----END PUBLIC KEY-----",VITE_SIZING_PROVIDERS:"cibuscell,kpmg,energyplanner,PowerH2,Innovationsagentur RLP",VITE_SPEECH_API_KEY:"GAUM5nxFKlvYCDitg72b3UJkQ1lVE5SPTJ9dfGJc6Nj3Iswo5AcLJQQJ99BCAC5RqLJXJ3w3AAAYACOGzNCz",VITE_STORAGE_URL:"https://h2digitalstorageprod.blob.core.windows.net/",VITE_SUPPORT_EMAIL:"[email protected]",VITE_VECTOR_TILED_MAP:"1"},xOt=(r,e)=>{var i,o,a,l;const t=dd(r.tags,Oi.PROVIDER),n=dd(r.tags,Oi.SOURCE);switch(r.userType){case si.H2DIGITAL:return!0;case si.PROVIDER:return!!(r.isAdmin&&((i=e.tags)!=null&&i.some(u=>u.id===(t==null?void 0:t.id))));case si.SUPERVISOR:return!!(r.isAdmin&&((o=e.tags)!=null&&o.some(u=>u.id===(t==null?void 0:t.id)))&&((a=e.tags)!=null&&a.some(u=>u.id===(n==null?void 0:n.id))));case si.PROJECT:return r.isAdmin&&!!((l=r==null?void 0:r.locations)!=null&&l.find(u=>u.id===(e==null?void 0:e.id)));default:return!1}},TOt=(r,e,t)=>{if(!r)return!1;switch(e){case si.PROJECT:return!!(t!=null&&t.find(n=>n.id===(r==null?void 0:r.id)));default:return!1}},SOt=r=>{if(r){const e=dd(r.tags,Oi.PROVIDER);return r.userType===si.H2DIGITAL?!0:r.isAdmin&&(r.userType===si.PROVIDER||r.userType===si.SUPERVISOR)&&e}else return!1},IOt=(r,e)=>{if(r){const t=dd(r.tags,Oi.PROVIDER);if(r.userType===si.H2DIGITAL)return!0;const i=r.isAdmin,o=r.userType===si.PROVIDER,a=r.userType===si.SUPERVISOR,l=t&&t.id===(e==null?void 0:e.modifiedByProviderTagId);return!!(i&&t&&(o&&l||a))}else return!1},AOt=r=>{const e=CF(r.tags),t=KT(r.tags);return!!(e&&r.isAdmin&&!t||(r==null?void 0:r.userType)===si.H2DIGITAL)},ROt=(r,e)=>{const t=e&&KT(e.tags),n=r&&KT(r.tags);return!!(t||n)},cTt=(r,e)=>{var o;const n=r?r.userType:0;return(((o=lTt[e])==null?void 0:o.split(",").map(Number))||[]).includes(n)},POt=r=>{if(!cTt(r,"VITE_PROGRESS_VIEW_ACCESS"))return!1;if(!r||r.userType===si.H2DIGITAL)return!0;
976if(r.userType===si.PROVIDER||r.userType===si.PROJECT){const t=iTt();if(!t.length)return!1;const n=dd(r.tags,Oi.SOURCE);return n?t.includes(n.value.toLowerCase()):!1}return!0},CF=r=>!!dd(r,Oi.PROVIDER,Bo.OGE),KT=r=>!!dd(r,Oi.SOURCE,Bo.H2MED),kOt=r=>!!dd(r,Oi.SOURCE,Bo.NEP),xF=r=>!!dd(r,Oi.SOURCE,Bo.HYPORTAL),OOt=(r,e)=>KT(r)&&e===si.PROVIDER,MOt=(r,e)=>xF(r)&&e===si.PROVIDER,fW=r=>{var t;const e=r&&((t=dd(r,Oi.PROVIDER))==null?void 0:t.value.toLowerCase());return e?hxe().includes(e):!1},NOt=r=>{if(!r)return Va.DEFAULT;if((r==null?void 0:r.userType)===si.H2DIGITAL)return Va.H2DIGITAL_USER;if(KT(r==null?void 0:r.tags))return r.userType===si.PROVIDER?Va.H2MED_PROVIDER_USER:Va.H2MED_PROJECT_USER;if(xF(r==null?void 0:r.tags))switch(r.userType){case si.PROVIDER:return Va.HYPORTAL_PROVIDER_USER;case si.SUPERVISOR:return Va.HYPORTAL_SUPERVISOR_USER;case si.PROJECT:return Va.HYPORTAL_PROJECT_USER;default:return Va.DEFAULT}return CF(r==null?void 0:r.tags)?Va.OGE_CRM_USER:fW(r==null?void 0:r.tags)?r.userType===si.PROVIDER?Va.SIZING_PROVIDER_USER:Va.SIZING_PROJECT_USER:r.userType===si.PROVIDER&&!KT(r==null?void 0:r.tags)&&!xF(r==null?void 0:r.tags)&&!CF(r==null?void 0:r.tags)?Va.PROVIDER_USER:r.userType===si.PROJECT&&!KT(r==null?void 0:r.tags)&&!xF(r==null?void 0:r.tags)&&!CF(r==null?void 0:r.tags)?Va.PROJECT_USER:Va.DEFAULT},uTt=(r,e)=>!e||!!e.find(t=>(t.key||t.value)&&(!t.key||t.key.toLowerCase()===r.key.toLowerCase())&&(!t.value||t.value.toLowerCase()===r.value.toLowerCase())),DOt=(r,e)=>e?r.filter(t=>uTt(t,e)):r,dTt=(r,e)=>r!==null?`${r} ${e||""}`:"",LOt=r=>Number(r)*39.4,hTt=()=>{const r=XL();return r?`/${r}`:""},XL=()=>{var t;const r=wP("/:sourceSegment?/*",location.pathname);return(t=r==null?void 0:r.params)!=null&&t.sourceSegment&&mve.has(r.params.sourceSegment.toLowerCase())?r.params.sourceSegment:void 0},PJ=r=>r.toLowerCase().replace(/\s+/g,"-"),HOt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),fTt=r=>r?est(new Date(r),"dd.MM.yyyy"):"",FOt=(r,e,t,n)=>e&&e.length&&(!t||e.length>=t)&&(!n||e.length<=n)?{[r]:e.join(",")}:void 0,UOt=r=>vve.test(r),BOt=r=>wBe.test(r),$Ot=r=>vBe.test(r),pTt=r=>bBe.test(r),zOt=r=>_Be.test(r),jOt=r=>{const e=new Date(r);return isNaN(e.getTime())},gTt=r=>localStorage.getItem(r),due=r=>r&&!pTt(r)?"https://"+r:r,mTt=()=>{const r=["/impressum","/data-privacy","/terms"];let e=!1;for(const t of r)e=e||location.pathname.includes(t);return e},yTt=()=>location.pathname.includes("/ai-assist"),VOt=(r,e)=>r!==e?"updated-field":"",qOt=r=>yE.orderBy(r,["key","value"],["asc"]),vTt=r=>{if(r==null)return"";const e=Number(r);return isNaN(e)?"":Math.floor(e)===e?hue(e):hue(Number(e.toFixed(3)))},GOt=r=>{const e=new Date(r);return new Intl.DateTimeFormat("en-GB",{year:"numeric",month:"numeric",day:"numeric"}).format(e)},_Tt=r=>{if(!r)return"";const e=new Date(r),t=new Date;let n="";return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()?e.getDate()===t.getDate()?n="Today "+e.getHours()+":"+e.getMinutes().toString().padStart(2,"0"):e.getDate()===t.getDate()-1?n="yesterday":n=("0"+(e.getDate()+1)).slice(-2)+"."+("0"+(e.getMonth()+1)).slice(-2)+"."+e.getFullYear():n=("0"+(e.getDate()+1)).slice(-2)+"."+("0"+(e.getMonth()+1)).slice(-2)+"."+e.getFullYear(),n},YOt=r=>{const e=String(r.getDate()).padStart(2,"0"),t=String(r.getMonth()+1).padStart(2,"0"),n=r.getFullYear();return`${e}/${t}/${n}`},WOt=(r,e="date&time")=>{if(!r)return"";const t=new Date(r),n=t.getDate().toString().padStart(2,"0"),i=(t.getMonth()+1).toString().padStart(2,"0"),o=t.getFullYear();if(e==="date")return`${n}.${i}.${o}`;const a=t.getHours().toString().padStart(2,"0"),l=t.getMinutes().toString().padStart(2,"0");return`${n}.${i}.${o}  ${a}:${l}`},KOt=r=>{const e={};for(const t in r){const n=r[t];typeof n=="string"?e[t]=n.trim():e[t]=n}return e},ZOt=r=>EBe.test(r),XOt=(r,e=!1,t=!0)=>{const{ctrlKey:n,altKey:i,key:o,currentTarget:a}=r;let l="";if(!(n||i||typeof o!="string"||o.length!==1)){if(a instanceof HTMLInputElement?l=a.value:r.target instanceof HTMLDivElement&&(l=r.target.ariaValueText),!/\d/.test(o)&&(o!=="."||o=="."&&(l!=null&&l.includes("."))||o==="."&&!t)){r.preventDefault();return}if(e){const u=l+o,h=parseFloat(u);(isNaN(h)||h>100)&&r.preventDefault()}}},hue=r=>r.toString().replace(".",","),bTt=(r,e)=>r.some(t=>e.includes(t.url)),wTt=(r,e)=>r.accessProp?e[r.accessProp]:!0,fxe=(r,e)=>typeof e=="string"&&Object.values(r).includes(e);function QOt(r){var t,n,i;const e=(i=(n=(t=r==null?void 0:r.response)==null?void 0:t.data)==null?void 0:n.message)==null?void 0:i.error;return fxe(AZ,e)?e:null}const JOt=(r=>{var e,t,n,i,o,a;return r&&(r==null?void 0:r.status)===400&&((n=(t=(e=r.response)==null?void 0:e.data)==null?void 0:t.message)==null?void 0:n.message)instanceof Array&&((a=(o=(i=r.response)==null?void 0:i.data)==null?void 0:o.message)==null?void 0:a.message).every(l=>typeof l=="string")&&r instanceof Wot}),eMt=r=>{const e=Math.round(r/50)*50,t=Math.round(r/100)*100;return Math.abs(r-e)<=Math.abs(r-t)?e:t},ETt=(r,e)=>(bTt(xve,location.pathname)||(r==null?void 0:r.some(t=>location.pathname.includes(`/${PJ(t.name)}`))))&&!e,CTt=(r,e)=>{for(const t of xve)if(t.url!=="/ai-assist"){if(wTt(t,r))return t.url;if(t.url==="/analytics"&&e.length)return`/private-report/${PJ(e[0].name)}`}return null},k3=(r,e)=>{const n=Object.entries(r).filter(([i])=>!e.includes(i));return Object.fromEntries(n)};function tMt(r,e){return t=>{e(n=>{const i=n[r],o=typeof t=="function"?t(i):t;return{...n,[r]:o}})}}function rMt(r,e){return t=>{e(n=>({...n,[r]:t(n[r])}))}}const xTt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20aria-hidden='true'%3e%3c!--%20pole%20--%3e%3cpath%20d='M6%203v18'/%3e%3c!--%20flag%20--%3e%3cpath%20d='M6%205h8l1%202h5v8h-5l-1-2H8V5z'/%3e%3c/svg%3e",TTt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20viewBox='0%200%2024%2024'%20fill='%23fff'%3e%3cpath%20d='M9%2021c0%20.55.45%201%201%201h4c.55%200%201-.45%201-1v-1H9zm3-19C8.14%202%205%205.14%205%209c0%202.38
976%201.19%204.47%203%205.74V17c0%20.55.45%201%201%201h6c.55%200%201-.45%201-1v-2.26c1.81-1.27%203-3.36%203-5.74%200-3.86-3.14-7-7-7m2.85%2011.1-.85.6V16h-4v-2.3l-.85-.6C7.8%2012.16%207%2010.63%207%209c0-2.76%202.24-5%205-5s5%202.24%205%205c0%201.63-.8%203.16-2.15%204.1'/%3e%3c/svg%3e",STt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20viewBox='0%200%2024%2024'%20fill='%23fff'%3e%3cpath%20d='m13.7826%2015.1719%202.1213-2.1213%205.9963%205.9962-2.1213%202.1213zM17.5%2010c1.93%200%203.5-1.57%203.5-3.5%200-.58-.16-1.12-.41-1.6l-2.7%202.7-1.49-1.49%202.7-2.7c-.48-.25-1.02-.41-1.6-.41C15.57%203%2014%204.57%2014%206.5c0%20.41.08.8.21%201.16l-1.85%201.85-1.78-1.78.71-.71-1.41-1.41L12%203.49c-1.17-1.17-3.07-1.17-4.24%200L4.22%207.03l1.41%201.41H2.81l-.71.71%203.54%203.54.71-.71V9.15l1.41%201.41.71-.71%201.78%201.78-7.41%207.41%202.12%202.12L16.34%209.79c.36.13.75.21%201.16.21'/%3e%3c/svg%3e",ITt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='2'%3e%3cpath%20d='M19.43%2012.98c.04-.32.07-.66.07-1s-.03-.68-.07-1l2.11-1.65a.5.5%200%200%200%20.12-.65l-2-3.46a.5.5%200%200%200-.6-.22l-2.49%201a7.03%207.03%200%200%200-1.7-.99l-.38-2.65A.5.5%200%200%200%2014%202h-4a.5.5%200%200%200-.5.42l-.38%202.65c-.63.24-1.2.56-1.7.99l-2.49-1a.5.5%200%200%200-.6.22l-2%203.46a.5.5%200%200%200%20.12.65L4.57%2011c-.05.33-.07.66-.07%201s.02.68.07%201l-2.11%201.65a.5.5%200%200%200-.12.65l2%203.46a.5.5%200%200%200%20.6.22l2.49-1c.5.43%201.07.75%201.7.99l.38%202.65A.5.5%200%200%200%2010%2022h4c.25%200%20.46-.18.5-.42l.38-2.65c.63-.24%201.2-.56%201.7-.99l2.49%201a.5.5%200%200%200%20.6-.22l2-3.46a.5.5%200%200%200-.12-.65L19.43%2012.98zM12%2015.5a3.5%203.5%200%201%201%200-7%203.5%203.5%200%200%201%200%207z'/%3e%3c/svg%3e",ATt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20viewBox='0%200%2024%2024'%20fill='%23fff'%3e%3cpath%20d='M7%2015h7v2H7zm0-4h10v2H7zm0-4h10v2H7zm12-4h-4.18C14.4%201.84%2013.3%201%2012%201s-2.4.84-2.82%202H5c-.14%200-.27.01-.4.04-.39.08-.74.28-1.01.55-.18.18-.33.4-.43.64-.1.23-.16.49-.16.77v14c0%20.27.06.54.16.78s.25.45.43.64c.27.27.62.47%201.01.55.13.02.26.03.4.03h14c1.1%200%202-.9%202-2V5c0-1.1-.9-2-2-2m-7-.25c.41%200%20.75.34.75.75s-.34.75-.75.75-.75-.34-.75-.75.34-.75.75-.75M19%2019H5V5h14z'/%3e%3c/svg%3e",RTt={candidate:xTt,concept:TTt,planning:ATt,construction:STt,operational:ITt},PTt="/assets/H2Trader-radio-BAEVNkq7.svg",kTt=[{key:es.PRODUCED_PER_YEAR,id:es.PRODUCED_PER_YEAR,imgSrc:Ti,label:"h2-dig.map.producerPerYearMini",unit:fr.TONS,condition:r=>(r==null?void 0:r.h2Producedperyear)!=null&&r.h2Producedperyear>
976=0,phaseType:Uo.H2PRODUCED_TONS_PER_YEAR},{key:es.PRODUCED,id:es.PRODUCED,imgSrc:Ti,label:"h2-dig.phases.producerMini",unit:fr.MEGAWATTS,condition:r=>(r==null?void 0:r.h2Produced)!=null&&r.h2Produced>=0,phaseType:Uo.H2PRODUCEDPERHOUR},{key:es.CONSUMED_PER_YEAR,id:es.CONSUMED_PER_YEAR,imgSrc:zf,label:"h2-dig.map.consumerPerYearMini",unit:fr.TONS,condition:r=>(r==null?void 0:r.h2Consumedperyear)!=null&&r.h2Consumedperyear>=0,phaseType:Uo.H2CONSUMED_TONS_PER_YEAR},{key:es.CONSUMED,id:es.CONSUMED,imgSrc:zf,label:"h2-dig.phases.consumerMini",unit:fr.MEGAWATTS,condition:r=>(r==null?void 0:r.h2Consumed)!=null&&r.h2Consumed>=0,phaseType:Uo.H2CONSUMEDPERHOUR},{key:es.STORED,id:es.STORED,imgSrc:LEe,label:"h2-dig.map.storage",unit:fr.TONS,condition:r=>(r==null?void 0:r.h2Stored)!=null&&r.h2Stored>=0,phaseType:Uo.H2_STORAGE},{key:es.TRADED,id:es.TRADED,imgSrc:PTt,label:"h2-dig.phases.traderMini",unit:fr.TONS,condition:r=>(r==null?void 0:r.h2Traded)!=null&&r.h2Traded>=0,phaseType:Uo.H2_TRADER_TONS_PER_YEAR},{key:es.CCUS,id:es.CCUS,imgSrc:MEe,label:"h2-dig.phases.ccus",unit:fr.TONS,condition:r=>(r==null?void 0:r.ccus)!=null&&r.ccus>=0,phaseType:Uo.CCUS},{key:es.GAS_POWER_PLANT_MW,id:es.GAS_POWER_PLANT_MW,imgSrc:DEe,label:"h2-dig.phases.gasPowerPlantMW",unit:fr.MEGAWATTS,condition:r=>(r==null?void 0:r.gasPowerPlantMw)!=null&&r.gasPowerPlantMw>=0,phaseType:Uo.GAS_POWER_PLANT_MW},{key:es.H2_TANKSTELLE_350_BAR,id:es.H2_TANKSTELLE_350_BAR,imgSrc:EB,label:"h2-dig.phases.H2Tankstelle350Bar",condition:r=>(r==null?void 0:r.h2Tankstelle350Bar)!=null,phaseType:Uo.H2_TANKSTELLE_350_BAR},{key:es.H2_TANKSTELLE_700_BAR,id:es.H2_TANKSTELLE_700_BAR,imgSrc:EB,label:"h2-dig.phases.H2Tankstelle700Bar",condition:r=>(r==null?void 0:r.h2Tankstelle700Bar)!=null,phaseType:Uo.H2_TANKSTELLE_700_BAR},{key:es.OTHER,id:es.OTHER,imgSrc:HEe,label:"h2-dig.phases.other",condition:r=>(r==null?void 0:r.other)!=null,phaseType:Uo.OTHER}],pxe=[2030,2045],OTt={country:[],states:[],districts:[],year:2045,phaseType:CB.MAX_POTENTIAL_TONS_PER_YEAR},K9=[CB.MIN_POTENTIAL_TONS_PER_YEAR,CB.MAX_POTENTIAL_TONS_PER_YEAR],MTt=[...pxe.flatMap(r=>K9.map(e=>{var t;return{labelPhase:`${((t=KQ.get(e))==null?void 0:t.shortLabel)??""}`,phaseType:e,year:r}}))],pW=MTt.map(r=>({label:`${r.labelPhase}`,value:{phaseType:r.phaseType,year:r.year}})),NTt=[10.451526,51.165691],DTt=22;var gxe=(r=>(r.TERRA="road_shaded_relief",r.ROAD="road",r.GRAYSCALE_lIGHT="grayscale_light",r.GRAYSCALE_DARK="grayscale_dark",r.NIGHT="night",r.HYBRID="satellite_road_labels",r))(gxe||{});const xm={Germany:[5.8663,47.2701,15.0419,55.0556],Portugal:[-9.5008,36.9613,-6.1892,42.1543],Spain:[-9.3015,36,3.3283,43.7914],France:[-5.15,41.3,9.56,51.12]},nMt="Vector-projects-source",LTt=new Map([[nd.OGE,xm.Germany],[nd.REN,xm.Portugal],[nd.Enagas,xm.Spain],[nd.GRTgaz,xm.France],[nd.Terega,xm.France]]);var kJ=(r=>(r.PROJECTS="PROJECTS",r.CONSUMPTION_HEATMAP="CONSUMPTION_HEATMAP",r.PRODUCTION_HEATMAP="PRODUCTION_HEATMAP",r))(kJ||{}),mxe=(r=>(r.Projects="projects",r.Demand="demand",r))(mxe||{}),HTt=(r=>(r.DEFAULT="DEFAULT",r.PIECHART="PIECHART",r))(HTt||{}),FTt=(r=>(r.StatesLayer="statesLayer",r.DistrictsLayer="districtsLayer",r.StatesOutlineLayer="statesOutlineLayer",r.DistrictsOutlineLayer="districtsOutlineLayer",r.Districts3DLayer="districts3DLayer",r.Districts2DLayer="districts2DLayer",r.DistrictsPolygonLayer="districtsPolygonLayer",r.ProductionHeatmapLayer="productionHeatmapLayer",r.ConsumptionHeatmapLayer="consumptionHeatmapLayer",r.ProducerSymbolLayer="producerSymbolLayer",r.VectorSymbolLayer="vectorSymbolLayer",r.ProjectSelectedLayer="projectSelectedLayer",r.ClusterBubbleLayer="clusterBubbleLayer",r.LocationCountLayer="locationCountLayer",r))(FTt||{});const iMt=new Map([["PROJECTS",["producerSymbolLayer","clusterBubbleLayer","locationCountLayer"]],["PRODUCTION_HEATMAP",["productionHeatmapLayer"]],["CONSUMPTION_HEATMAP",["consumptionHeatmapLayer"]]]),oMt=["districts3DLayer"],aMt=["districts2DLayer","districtsPolygonLayer"],UTt={center:NTt,view:"Auto",zoom:6,maxZoom:DTt,language:Kf.EN,authOptions:{authType:_a.subscriptionKey,subscriptionKey:Zn.mapSubscriptionKey},showFeedbackLink:!1,showLogo:!1,style:"road",light:{intensity:2},boxZoomInteraction:!1,dblClickZoomInteraction:!1,dragPanInteraction:!0,dragRotateInteraction:!1,interactive:!1,keyboardInteraction:!1,scrollZoomInteraction:!1,touchInteraction:!1,renderWorldCopies:!1},BTt=(r,e)=>[{value:0,color:"rgba(251, 227, 209, 0.7)"},{value:r,color:"rgba(241, 177, 131, 0.8)"},{value:r*2,color:"rgba(222, 146, 98, 0.8)"},{value:Math.round(e),color:"rgba(197, 118, 73, 0.8)"},{value:r*4,color:"rgba(179, 119, 75, 0.85)"},{value:r*5,color:"rgba(138, 84, 51, 0.95)"}],$Tt=["any",["==",["geometry-type"],"Polygon"],["==",["geometry-type"],"MultiPolygon"]],zTt=(r,e)=>({fillColor:["interpolate",["linear"],["get","demand"],...BTt(r,e).flatMap(({value:t,color:n})=>[t,n])],fillOpacity:1,filter:$Tt}),sMt=(r,e)=>({...zTt(r,e),height:["interpolate",["linear"],["get","demand"],0,10,r,1e3,r*2,1e4,Math.round(e),25e3,r*4,5e4,r*5,1e5]}),lMt=r=>({...UTt,...r}),jTt={candidate:ti.projectCandidatePale,concept:ti.projectConceptPale,planning:ti.projectPlanningPale,construction:ti.projectConstructionPale,operational:ti.projectOperationalPale,unknown:"transparent"};
976var VTt=(r=>(r.H2Produced="h2Produced",r.H2Consumed="h2Consumed",r))(VTt||{});const cMt=["step",["get","point_count"],"rgba(95, 156, 217, 0.75)",20,"rgba(61, 104, 170, 0.75)",50,"rgba(35, 76, 138, 0.8)"],uMt=["step",["get","point_count"],"rgba(95, 156, 217, 0.01)",20,"rgba(61, 104, 170, 0.01)",50,"rgba(35, 76, 138, 0.01)"],dMt=13;var OJ=(r=>(r.nameAsc="name-ASC",r.nameDesc="name-DESC",r.goLiveDateAsc="goLiveDate-ASC",r.goLiveDateDesc="goLiveDate-DESC",r))(OJ||{});function hMt(r){return Object.values(OJ).includes(r)}const fMt=(r,e)=>{if(r!==Va.H2DIGITAL_USER){{if(r===Va.DEFAULT)return[];if(e)switch(r){case Va.OGE_CRM_USER:return[{key:Oi.PIPELINE},{key:Oi.PROVIDER,value:e.value},{key:Oi.ORIGIN,value:Bo.NEP}];case Va.H2MED_PROJECT_USER:case Va.H2MED_PROVIDER_USER:return[{key:Oi.TYPE},{key:Oi.PROVIDER,value:e.value},{key:Oi.HYDROGEN_CORRIDOR}];case Va.HYPORTAL_SUPERVISOR_USER:return[{key:Oi.TYPE},{key:Oi.PARTNERUNTERNEHMEN},{key:Oi.HYPOTENTIAL_GRUPPE}];case Va.HYPORTAL_PROVIDER_USER:return[{key:Oi.TYPE},{key:Oi.PROVIDER,value:e.value},{key:Oi.HYPOTENTIAL_GRUPPE}];case Va.HYPORTAL_PROJECT_USER:return[{key:Oi.TYPE}];case Va.PROJECT_USER:return[{key:Oi.TYPE}];case Va.PROVIDER_USER:return[{key:Oi.TYPE},{key:Oi.PROVIDER,value:e.value}];case Va.SIZING_PROVIDER_USER:return[{key:Oi.TYPE}];case Va.SIZING_PROJECT_USER:return[];default:return[]}}return[]}},pMt=r=>{const e=[r==null?void 0:r.h2Producedperyear,r==null?void 0:r.h2Produced,r==null?void 0:r.h2Consumedperyear,r==null?void 0:r.h2Consumed,r==null?void 0:r.h2Stored,r==null?void 0:r.h2Traded,r==null?void 0:r.ccus,r==null?void 0:r.gasPowerPlantMw,r==null?void 0:r.h2Tankstelle350Bar,r==null?void 0:r.h2Tankstelle700Bar,r==null?void 0:r.other];
976return[Uo.H2PRODUCED_TONS_PER_YEAR,Uo.H2PRODUCEDPERHOUR,Uo.H2CONSUMED_TONS_PER_YEAR,Uo.H2CONSUMEDPERHOUR,Uo.H2_STORAGE,Uo.H2_TRADER_TONS_PER_YEAR,Uo.CCUS,Uo.GAS_POWER_PLANT_MW,Uo.H2_TANKSTELLE_350_BAR,Uo.H2_TANKSTELLE_700_BAR,Uo.OTHER].filter((o,a)=>e[a]!==null).slice(0,2)},gMt=(r,e,t,n,i,o,a)=>{const l=r.point_count||0,u=r.CANDIDATE,h=r.CONCEPT,p=r.PLANNING,m=r.CONSTRUCTION,_=r.OPERATIONAL,C=r.UNKNOWN,T={candidate:u,concept:h,planning:p,construction:m,operational:_,unknown:C},S={candidate:ti.projectCandidatePale,concept:ti.projectConceptPale,planning:ti.projectPlanningPale,construction:ti.projectConstructionPale,operational:ti.projectOperationalPale,unknown:"transparent"},R=25,O=[],N=Object.values(T).reduce((Q,Z)=>Q+Z,0);if(N<l){for(const Q of Object.keys(T))if(T[Q]>0){T[Q]+=l-N;break}}const H=Object.entries(T).filter(([,Q])=>Q>0);if(H.length===1){const[Q]=H[0];O.push(`
977      <circle cx="${R}" cy="${R}" r="${R}" fill="${S[Q]}" />
978    `)}else{let Q=0;for(const[Z,ie]of Object.entries(T)){if(ie===0)continue;const J=ie/l*360,ne=J>180?1:0,ue=R+R*Math.cos(Math.PI*Q/180),K=R+R*Math.sin(Math.PI*Q/180);Q+=J;const se=R+R*Math.cos(Math.PI*Q/180),be=R+R*Math.sin(Math.PI*Q/180);O.push(`
979        <path d="M${R},${R} L${ue},${K} A${R},${R} 0 ${ne} 1 ${se},${be} Z" 
980              fill="${S[Z]}" stroke="#fff" stroke-width="1"/>
981      `)}}O.push(`
982    <circle cx="${R}" cy="${R}" r="${R-.5}" fill="none" stroke="#fff" stroke-width="2"/>
983  `);const F=`
984      <svg width="${R*2}" class="pie-markers" height="${R*2}" xmlns="http://www.w3.org/2000/svg">
985          ${O.join(`
986`)}
987          <circle cx="${R}" cy="${R}" r="${R*.6}" fill="white" />
988          <text x="${R}" y="${R+4}" font-size="12" font-weight="bold" text-anchor="middle" fill="#333">
989              ${yxe(l)}
990          </text>
991      </svg>
992    `,j=document.createElement("div");j.innerHTML=F;const L=4;j.style.width=`${R*2+L}px`,j.style.height=`${R*2+L}px`,j.style.overflow="visible",j.onclick=()=>{i(t)};const B=new Xp.HtmlMarker({position:e,htmlContent:j,pixelOffset:[0,R]});return j.addEventListener("mouseenter",()=>{if(!a)return;const Q=Object.entries(T).map(([Z,ie])=>{if(ie>0){if(Z==="unknown")return`
993<div class="category ${Z}" style="display: flex; justify-content: space-between; align-items: center; gap: 4px; margin-bottom: 6px;">
994  <span style="display: flex; align-items: center;">
995    <span style="
996      background: ${ti.lightGray};
997      border-radius: 50%;
998      padding: 6px;
999      width: 30px;
1000      height: 30px;
1001      display: flex;
1002      align-items: center;
1003      justify-content: center;
1004      flex-shrink: 0;
1005      font-weight: bold;
1006      color: ${ti.darkerGray};
1007    ">?</span>
1008    <span style="color: ${ti.blue600}; white-space: nowrap; margin-left: 6px;">${bm("h2-dig.edit-staging.lifeCycleStages."+Z)}</span>
1009  </span>
1010  <span class="value" style="color: ${ti.blue600}; white-space: nowrap;">${ie}</span>
1011</div>
1012`;const J=RTt[Z]||"",ne=bm("h2-dig.edit-staging.lifeCycleStages."+Z);return`
1013  <div class="category ${Z}" style="display: flex; justify-content: space-between; align-items: center; gap: 4px; margin-bottom: 6px;">
1014    <span style="display: flex; align-items: center;">
1015      <span class="popup-icon" style="
1016        background: ${jTt[Z]};
1017        border-radius: 50%;
1018        padding: 6px;
1019        width: 30px;
1020        height: 30px;
1021        display: flex;
1022        align-items: center;
1023        justify-content: center;
1024        flex-shrink: 0;
1025      "><img src="${J}"/></span>
1026      <span style="color: ${ti.blue600}; white-space: nowrap; margin-left: 6px;">${ne}</span>
1027    </span>
1028    <span class="value" style="color: ${ti.blue600}; white-space: nowrap;">${ie}</span>
1029  </div>
1030`}return""}).join("");o&&Q&&(n.current.setOptions({position:e,content:`<div class="pie-chart-popup" style="padding:4px 8px; background:#fff; border-radius:4px; font-size:12px;">${Q}</div>`,pixelOffset:[0,-R-5]}),n.current.open(o),qTt(n.current))}),B},qTt=r=>{const e=r.getOptions().content,t=typeof e=="string"?document.querySelector(".pie-chart-popup"):e,n=o=>{const a=o.target;t&&t.contains(a)||(r.close(),i())},i=()=>{document.removeEventListener("click",n),document.removeEventListener("keydown",n),document.removeEventListener("touchstart",n)};setTimeout(()=>{document.addEventListener("click",n),document.addEventListener("keydown",n),document.addEventListener("touchstart",n)},50)},yxe=r=>r>=1e3?(r/1e3).toFixed(1)+"k":Math.round(r).toString(),mMt=(r,e)=>{const t=(r==null?void 0:r.filter(a=>{const l=e.country.length===0||(a==null?void 0:a.country)&&e.country.includes(a.country),u=e.states.length===0||a.state&&e.states.includes(a.state),h=e.districts.length===0||a.District&&e.districts.includes(a.District);return l&&u&&h}))||[],n=[],i=[];return t.forEach(a=>
1030{a.phases&&a.phases.forEach(l=>{var p,m;const u=(p=new Date(l==null?void 0:l.startDate))==null?void 0:p.getFullYear(),h=`${bm(((m=KQ.get(l.type))==null?void 0:m.shortLabel)||"")} ${u}`;K9.includes(l.type)&&pxe.includes(u)&&!i.includes(h)&&(i.push(h),n.push({label:h,value:{phaseType:l.type,year:u}}))})}),n.length===0?GTt():n.slice().sort((a,l)=>{const u=pW.findIndex(p=>p.value.phaseType===a.value.phaseType&&p.value.year===a.value.year),h=pW.findIndex(p=>p.value.phaseType===l.value.phaseType&&p.value.year===l.value.year);return u-h})},GTt=()=>{const r=pW.slice(0,1),e=[];return r.length>0&&e.push({label:`${bm(r[0].label)} ${r[0].value.year}`,value:r[0].value}),e},yMt=r=>{let e=0,t=0;return r.forEach(n=>{var i;(i=n.phases)==null||i.forEach(o=>{o.type&&K9.includes(o.type)&&typeof o.size=="number"&&(e+=o.size,t+=1)})}),t>0?e/t:null},vMt=r=>{if(Array.isArray(r.phases)){const e={};r.phases.filter(i=>K9.includes(i.type)).forEach(i=>{const o=new Date(i.startDate).getFullYear();e[o]||(e[o]=[]),e[o].push(i)});const t=Object.keys(e).map(Number).sort((i,o)=>i-o),n=[];t.forEach(i=>{const o=e[i].slice().sort((a,l)=>a.type>l.type?-1:a.type<l.type?1:0);n.push(...o)}),r.phases=n}},_Mt=(r,e)=>r.length===1?r:e.get("project")?[kJ.PROJECTS]:[],bMt=r=>{window.open(`${location.origin}/map${r?`?project=${r}`:""}`,"_blank","noopener,noreferrer")},YTt=r=>{const e=kTt.filter(({condition:i})=>i(r))[0],t=e.id===es.OTHER||e.id===es.H2_TANKSTELLE_350_BAR||e.id===es.H2_TANKSTELLE_700_BAR;return`<div class="project-type ${t?'class="other"':""}">
1031        <span class='project-type-label'>
1032          <img
1033            src="${e.imgSrc}"
1034            ${t?'class="other"':""}"
1035          />
1036          ${bm(e.label)}
1037        </span>
1038        ${t?"":`<span class="value">
1039              ${dTt(vTt(Wut(r).get(e.id)),e.unit)}
1040            </span>`}
1041      </div>`},wMt=(r,e)=>{if(r){const t=[r.District,r.country].filter(Boolean).join(", ");return`<div class='projectInfo-popup' id='project-popup-${r.id}'>
1042      <div class='upper-layout'>
1043        <img src="${r.logo??Ple}" alt="Project" class="project-logo" onerror="this.onerror=null; this.src='${Ple}'" loading="lazy" />
1044        <div class="project-detail">
1045          <div class='project-title'>${r.name}</div>
1046          <div class='location-details'>
1047          <img src="${zut}" alt="Location" class="location-icon">
1048            ${t}
1049           </div>
1050          <div class='golive-date'>
1051            <img src="${Uut}" alt="Go-Live" class="popup-icon">
1052            <span class='label'> Go-Live: </span>
1053            ${fTt(r.goLiveDate)}
1054          </div>
1055           <div class='projecttype-container'>
1056             ${YTt(r)}
1057           </div>
1058        </div>
1059        </div>
1060        ${e&&r.description?`<p class='description'>${r.description}</>`:""}
1061         ${e?`<div class='footer'>
1062        <a href="${location.origin}/map?project=${r.id}" target="_blank" rel="noopener noreferrer"> ${bm("h2-dig.map.moremini")}</a>
1063         </div>`:""}
1064      </div>`}else return`
1065      <div class='projectInfo-popup popup-loader-project'>
1066        <div class="loader"></div>
1067      </div>
1068    `},fue=(r,e,t)=>{if(t.paint&&Object.keys(t.paint).forEach(n=>{try{r.setPaintProperty(e,n,t.paint[n])}catch{}}),t.layout&&Object.keys(t.layout).forEach(n=>{try{r.setLayoutProperty(e,n,t.layout[n])}catch{}}),t.zoomRange)try{r.setLayerZoomRange(e,t.zoomRange.minzoom,t.zoomRange.maxzoom)}catch{}},EMt=(r,e)=>{const t=[];r==null||r.controls.remove(t);const n=Xp.ControlPosition.TopRight,i=Xp.ControlPosition.TopLeft,o=Xp.ControlStyle.light;t.push(new Xp.control.ZoomControl({zoomDelta:1,style:o})),e||t.push(new Xp.control.PitchControl({pitchDegreesDelta:20,style:o})),e||t.push(new Xp.control.StyleControl({style:o,mapStyles:Object.values(gxe)})),r==null||r.controls.add(t,{position:e?i:n})},CMt=r=>{var i;const e=r==null?void 0:r.map,t=XTt;t.backgroundColor&&r&&(r.getMapContainer().style.backgroundColor=t.backgroundColor);const n=(i=e==null?void 0:e.getStyle())==null?void 0:i.layers;for(let o=0;o<(n==null?void 0:n.length);o++){const a=n[o],l=t.layerStyles[a.id];l&&fue(e,a.id,l);const u=a["source-layer"];if(u){const h=t.sourceLayerStyles[u];h&&fue(e,a.id,h)}}},xMt=(r,e)=>{const t=[];let n=0;for(const i of r)i[e]&&(n+=i[e],t.push(i));if(t.length){const i=n/t.length;return t.map(a=>({...a[e]&&{[e]:a[e]/(i/7),lat:a.lat,lng:a.lng}}))}return[]},TMt=(r,e,t,n)=>{var i;if(!r&&t||n)return xm.Germany;if(si.PROJECT===(r==null?void 0:r.userType)){if((i=r==null?void 0:r.locations)!=null&&i.length){const o=r.locations[0];return _xe(o.lng,o.lat,8)}return xm.Germany}else if(si.PROVIDER==(r==null?void 0:r.userType)){const o=dd(r==null?void 0:r.tags,Oi.PROVIDER),a=(o==null?void 0:o.value)&&vxe(o.value);if(a)return a}else if(t)return xm.Germany;return Xp.data.BoundingBox.fromLatLngs(e)},SMt=(r,e,t,n)=>{var i;if(!r&&t||n)return xm.Germany;if(si.PROJECT===(r==null?void 0:r.userType)){if((i=r==null?void 0:r.locations)!=null&&i.length){const o=r.locations[0];return _xe(o.lng,o.lat,8)}return xm.Germany}else if(si.PROVIDER==(r==null?void 0:r.userType)){const o=dd(r==null?void 0:r.tags,Oi.PROVIDER),a=(o==null?void 0:o.value)&&vxe(o.value);if(a)return a}else if(t)return xm.Germany;return e},vxe=r=>{if(Object.values(RZ).map(t=>t.toLowerCase()).includes(r.toLowerCase()))return xm.Germany;if(fxe(nd,r))return LTt.get(r)},_xe=(r,e,t)=>{const i=1/Math.pow(2,t)*360/2;return new Xp.data.BoundingBox(new Xp.data.Position(r-i,e-i),new Xp.data.Position(r+i,e+i))},WTt=r=>r.toLowerCase()===GM.GROSSABNEHMER_NEUWIRTH_2022.toLowerCase()?pBe:r,IMt=(r,e)=>{const t=new Set(Object.values(GM).map(o=>o.toLowerCase())),n=r.filter(o=>t.has(o.value.toLowerCase())).map(o=>({value:o.id,name:WTt(o.value)})).sort((o,a)=>{var h,p;const l=(h=o.name)==null?void 0:h.toLowerCase().includes(GM.HYPOTENTIALS.toLowerCase()),u=(p=a.name)==null?void 0:p.toLowerCase().includes(GM.HYPOTENTIALS.toLowerCase());return l&&!u?-1:!l&&u?1:0});return[...e===si.PROVIDER&&[{value:A7.OWN_PROJECTS,name:gve.OWN_PROJECTS}]||[],...n]},AMt=r=>(r||[]).map(e=>Number(e)).filter(e=>!isNaN(e)),RMt=(r,e,t)=>{let n=[0,0];switch(r){case aP.DRAWER:{e?n=[0,window.innerHeight*.23]:t?n=[0,300]:n=[100,0];break}case aP.IN_MAP:n=[0,-100];break}return n},KTt=r=>{var e;return r instanceof Xp.Shape?r.getCoordinates():(e=r.geometry)==null?void 0:e.coordinates},PMt=(r,e)=>{var o;const t=KTt(r);
1068if(!t)return;const n=((o=r.getProperties)==null?void 0:o.call(r))||r.properties,i=n==null?void 0:n.cluster;e.setCamera({center:t,zoom:i&&(n!=null&&n.cluster_id)?8:6,duration:600})};var aP=(r=>(r[r.DRAWER=0]="DRAWER",r[r.IN_MAP=1]="IN_MAP",r[r.DIALOG=2]="DIALOG",r))(aP||{});const kMt={radius:["step",["get","point_count"],15,10,20,150,25,300,30],strokeWidth:0,filter:["has","point_count"]},ZTt={from:2010,to:2050},gW={from:2010,to:2050},TF=["match",["get","projectType"],"Producer","h2-producer","Consumer","h2-consumer","Producer-active","h2-producer-active","Consumer-active","h2-consumer-active","Storage","storage-icon","Storage-active","storage-icon-active","TraderPerYear","shipper-icon","TraderPerYear-active","shipper-icon-active","CCUS","ccus-icon","CCUS-active","ccus-icon-active","GasPowerPlantMW","gas-power-plant-icon","GasPowerPlantMW-active","gas-power-plant-icon-active","Other","other-icon","Other-active","other-icon-active","H2Tankstelle","H2Tankstelle-icon","H2Tankstelle-active","H2Tankstelle-icon-active","Producer-own","h2-producer-own","Consumer-own","h2-consumer-own","Storage-own","storage-icon-own","TraderPerYear-own","shipper-icon-own","CCUS-own","ccus-icon-own","GasPowerPlantMW-own","gas-power-plant-icon-own","Other-own","other-icon-own","H2Tankstelle-own","H2Tankstelle-icon-own","Producer-own-active","h2-producer-active","Consumer-own-active","h2-consumer-active","Storage-own-active","storage-icon-active","TraderPerYear-own-active","shipper-icon-active","CCUS-own-active","ccus-icon-active","GasPowerPlantMW-own-active","gas-power-plant-icon-active","Other-own-active","other-icon-active","Producer-h2med","h2-producer-h2med","Consumer-h2med","h2-consumer-h2med","Storage-h2med","storage-icon-h2med","TraderPerYear-h2med","shipper-icon-h2med","CCUS-h2med","ccus-icon-h2med","GasPowerPlantMW-h2med","gas-power-plant-icon-h2med","Other-h2med","other-icon-h2med","H2Tankstelle-h2med","H2Tankstelle-icon-h2med","Producer-h2med-active","h2-producer-active","Consumer-h2med-active","h2-consumer-active","Storage-h2med-active","storage-icon-active","TraderPerYear-h2med-active","shipper-icon-active","CCUS-h2med-active","ccus-icon-active","GasPowerPlantMW-h2med-active","gas-power-plant-icon-active","Other-h2med-active","other-icon-active","H2Tankstelle-h2med-active","H2Tankstelle-icon-active","Producer-hyportal-active","h2-producer-active","Consumer-hyportal-active","h2-consumer-active","Storage-hyportal-active","storage-icon-active","TraderPerYear-hyportal-active","shipper-icon-active","CCUS-hyportal-active","ccus-icon-active","GasPowerPlantMW-hyportal-active","gas-power-plant-icon-active","Other-hyportal-active","other-icon-active","H2Tankstelle-hyportal-active","H2Tankstelle-icon-active","Producer-hyportal","h2-producer-hyportal","Consumer-hyportal","h2-consumer-hyportal","Storage-hyportal","storage-icon-hyportal","TraderPerYear-hyportal","shipper-icon-hyportal","CCUS-hyportal","ccus-icon-hyportal","GasPowerPlantMW-hyportal","gas-power-plant-icon-hyportal","Other-hyportal","other-icon-hyportal","H2Tankstelle-hyportal","H2Tankstelle-icon-hyportal","h2-icon-default"],OMt=r=>{const e=TF[TF.length-1],t=TF.slice(2,-1);for(let n=0;n<t.length;n+=2){const i=t[n],o=t[n+1];if(i===r)return String(o)}return String(e)},MMt={iconOptions:{image:TF,size:.4,opacity:1,allowOverlap:!0,ignorePlacement:!0},textOptions:{textField:["get","point_count_abbreviated"],offset:[0,.4]},filter:["!",["has","point_count"]]},NMt={weight:["interpolate",["linear"],["get","h2Produced"],0,0,13.5,1,100,5,447,15,1150,30,5e3,45],radius:["interpolate",["linear"],["zoom"],4,20,6,35,8,55,10,80,12,120,14,180],opacity:.9,color:["interpolate",["linear"],["heatmap-density"],0,"rgba(33, 172, 59, 0)",.2,"rgb(143, 197, 129)",.4,"rgb(128, 186, 115)",.6,"rgb(110, 173, 94)",.8,"rgb(92, 156, 79)",1,"rgb(86, 137, 73)"]},DMt={radius:["interpolate",["linear"],["zoom"],0,5,4,10,8,20,12,40,16,60],weight:["interpolate",["linear"],["get","h2Consumed"],0,0,10,1,42.6,3,154.95,8,295.74,13],opacity:.9,color:["interpolate",["linear"],["heatmap-density"],0,"rgba(33,102,172,0)",.1,"rgb(241, 177, 131)",.3,"rgb(241, 177, 131)",.6,"rgb(201, 139, 95)",1,"rgb(179, 118, 75)"]},XTt={layerStyles:{"microsoft.bing.maps.baseFeature.generic_water_pattern_fill":{paint:{"fill-color":"hsl(208, 90%, 85%)"}},"microsoft.bing.maps.baseFeature.generic_water_fill":{paint:{"fill-color":"hsl(208, 90%, 85%)"}},"microsoft.bing.maps.baseFeature.road_shield":{layout:{"icon-image":"","text-field":"",visibility:"none"}},"microsoft.bing.maps.baseFeature.road_label":{layout:{visibility:"none"}}},sourceLayerStyles:{road:{paint:{"line-color":"#e6e6e6"}}}},LMt=["any",["==",["geometry-type"],"Polygon"],["==",["geometry-type"],"MultiPolygon"]],HMt={CANDIDATE:["+",["case",["==",["get","life
1068CycleStage"],Nd.CANDIDATE],1,0]],CONCEPT:["+",["case",["==",["get","lifeCycleStage"],Nd.CONCEPT],1,0]],PLANNING:["+",["case",["==",["get","lifeCycleStage"],Nd.PLANNING],1,0]],CONSTRUCTION:["+",["case",["==",["get","lifeCycleStage"],Nd.CONSTRUCTION],1,0]],OPERATIONAL:["+",["case",["==",["get","lifeCycleStage"],Nd.OPERATIONAL],1,0]],UNKNOWN:["+",["case",["all",["!=",["get","lifeCycleStage"],Nd.CANDIDATE],["!=",["get","lifeCycleStage"],Nd.CONCEPT],["!=",["get","lifeCycleStage"],Nd.PLANNING],["!=",["get","lifeCycleStage"],Nd.CONSTRUCTION],["!=",["get","lifeCycleStage"],Nd.OPERATIONAL]],1,0]]},FMt=r=>`<div style="width: 62px; height: 50px; position: relative; display: flex; flex-direction: column; align-items: center;">
1069                      <svg xmlns="http://www.w3.org/2000/svg" width="62" height="50" viewBox="0 0 62 50">
1070                        <rect x="4" y="0" rx="8" ry="8" width="54" height="30" fill="#234c8a" />
1071                        <polygon fill="#234c8a" points="22,30 40,30 31,40 22,30" />
1072                        <text x="31" y="19" style="font-size:14px; font-family:Arial; fill:#ffffff; font-weight:700;" text-anchor="middle">
1073                          ${yxe(r)} t/a
1074                        </text>
1075                      </svg>
1076                    </div>`;var bxe=(r=>(r[r.allTime=0]="allTime",r[r.week=1]="week",r[r.month=2]="month",r[r.quarter=3]="quarter",r[r.year=4]="year",r[r.hour=5]="hour",r))(bxe||{});class UMt{getStartOfWeek(e){const t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),n=t.getDate()-(t.getDay()===0?6:t.getDay()-1);return new Date(t.setDate(n))}getStartOfMonth(e){return new Date(e.getFullYear(),e.getMonth(),1)}getStartOfQuarter(e){switch(e.getMonth()){case 0:case 1:case 2:return new Date(e.getFullYear(),0,1);case 3:case 4:case 5:return new Date(e.getFullYear(),3,1);case 6:case 7:case 8:return new Date(e.getFullYear(),6,1);case 9:case 10:case 11:return new Date(e.getFullYear(),9,1);default:return new Date(e.getFullYear(),e.getMonth(),1)}}getStartOfYear(e){return new Date(e.getFullYear(),0,1)}getLastHour(){const e=new Date;return[new Date(e.getTime()-3600*1e3),e]}getCurrentWeek(){const e=new Date;return[this.getStartOfWeek(e),e]}getCurrentMonth(){const e=new Date;return[this.getStartOfMonth(e),e]}getCurrentQuarter(){const e=new Date;return[this.getStartOfQuarter(e),e]}getCurrentYear(){const e=new Date;return[this.getStartOfYear(e),e]}getTimeFrameFilter(e){switch(e){case 0:return[];case 5:return this.getLastHour();case 1:return this.getCurrentWeek();case 2:return this.getCurrentMonth();case 3:return this.getCurrentQuarter();case 4:return this.getCurrentYear()}}getTimeFrameString(e){switch(e){case 0:return bm("Content-Management.AllTime");case 1:return bm("Content-Management.CurrentWeek");case 2:return bm("Content-Management.CurrentMonth");case 3:return bm("Content-Management.CurrentQuarter");case 4:return bm("Content-Management.CurrentYear");case 5:return bm("Content-Management.LastHour")}}}const BMt=(r,e,t=!1)=>{var o,a,l;const n=pve.getState().isMapResetEnabled,i=t&&(e===si.PROVIDER?!(((o=r==null?void 0:r.includeDatasetTypes)==null?void 0:o.length)==1&&r.includeDatasetTypes[0]===A7.OWN_PROJECTS):!!((a=r==null?void 0:r.includeDatasetTypes)!=null&&a.length&&((l=r==null?void 0:r.includeDatasetTypes)==null?void 0:l.length)>0));return n||r.districts.length>0||r.states.length>0||r.country.length>0||Number(r.year[0])!==gW.from||Number(r.year[1])<ZTt.to||r.tags.length>0||r.lifeCycleStages.length>0||i},$Mt=r=>r.districts.length>0||r.states.length>0||r.country.length>0,QTt=(r,e)=>{const t=[];return yE.isEqual(r.country,e.country)||t.push("country"),yE.isEqual(r.states,e.states)||t.push("states"),yE.isEqual(r.districts,e.districts)||t.push("districts"),yE.isEqual(r.year,e.year)||t.push("year"),t};function zMt(r,e){return[...r].sort((t,n)=>{const i=e.some(a=>a.id===t.id),o=e.some(a=>a.id===n.id);return i&&!o?-1:!i&&o?1:t.name&&n.name?t.name.localeCompare(n.name):t.name&&!n.name?-1:!t.name&&n.name?1:0})}const SF={country:[],states:[],districts:[],year:[gW.from,gW.to],timeFrame:bxe.allTime,tags:[],lifeCycleStages:[],includeDatasetTypes:void 0,excludeDatasetTypes:void 0},JTt=(r,e)=>{switch(r){case si.PROVIDER:return e==Bo.HYPORTAL?{...SF,includeDatasetTypes:[A7.OWN_PROJECTS],excludeDatasetTypes:void 0}:SF;default:return SF}},eSt=()=>
1076{const r=new URLSearchParams(window.location.search),e={...SF};for(const t in e){const n=r.get(t);switch(t){case"tags":n&&(e[t]=Array.from(new Set(n==null?void 0:n.split(","))).map(i=>({id:Number(i),key:"",value:""})));break;case"includeDatasetTypes":n&&(e.includeDatasetTypes=n.split(",").map(i=>Number(i)).filter(i=>Number.isFinite(i)));break;case"excludeDatasetTypes":n&&(e.excludeDatasetTypes=n.split(",").map(i=>Number(i)).filter(i=>Number.isFinite(i)));break;default:n&&(e[t]=n==null?void 0:n.split(","));break}}return e},tSt=()=>new URLSearchParams(window.location.search).get("progressView")==="true",rSt=()=>hve((r,e)=>({selectedLocation:void 0,clusteredLocations:null,openFilterDrawer:!1,allProjects:null,appliedFilters:eSt(),viewType:[kJ.PROJECTS],showPipeline:!1,dashboardViewType:"minimize",sortProjectsBy:OJ.nameAsc,changedFilters:[],rePositionMap:!0,isCreateTargetGroupEnabled:!1,mapType:mxe.Projects,showMapTypeSelect:!1,demandViewAppliedFilters:OTt,aiMapStoreInstance:!1,selectedShapeIdState:null,layerRegistry:new Map,debounceSearchText:"",clusterIdList:null,setDemandViewAppliedFilters:t=>{r(()=>({demandViewAppliedFilters:t}))},setShowMapTypeSelect:t=>{r(()=>({showMapTypeSelect:t}))},setMapType:t=>{r(()=>({mapType:t}))},setCreateTargetGroupEnabled:t=>{r(()=>({isCreateTargetGroupEnabled:t}))},setSelectedLocation:t=>{r(()=>({selectedLocation:t}))},setOpenFilterDrawer:t=>{r(()=>({openFilterDrawer:t}))},setClusteredLocations:t=>{r(()=>({clusteredLocations:t}))},setAppliedFilters:t=>{const n=QTt(e().appliedFilters,t);r(()=>({appliedFilters:t})),r(()=>({changedFilters:n}))},resetAppliedFilters:(t,n)=>{const i=pve.getState().setMapResetEnabled;r(()=>({appliedFilters:JTt(t,n)})),i(!1)},setViewType:t=>{r(()=>({viewType:t}))},setAllProjects:t=>{r(()=>({allProjects:t}))},setShowPipeline:t=>{r(()=>({showPipeline:t}))},setDashboardViewType:t=>{r(()=>({dashboardViewType:t}))},setSortProjectsBy:t=>{r(()=>({sortProjectsBy:t}))},setRePositionMap:t=>{r(()=>({rePositionMap:t}))},setAiMapStoreInstance:t=>{r(()=>({aiMapStoreInstance:t}))},isViewTypeDropdownExpanded:!1,setViewTypeDropdownExpanded:t=>{r(()=>({isViewTypeDropdownExpanded:t}))},setSelectedShapeIdState:t=>{r(()=>({selectedShapeIdState:t}))},progressView:tSt(),setProgressView:t=>{r(()=>({progressView:t}))},setDebounceSearchText:t=>{r(()=>({debounceSearchText:t}))},setClusterIdList:t=>{r(()=>({clusterIdList:t}))}})),wxe=V.createContext(null),Exe=({children:r})=>{const e=V.useMemo(()=>rSt(),[]);return $.jsx(wxe.Provider,{value:e,children:r})},nSt=r=>{const e=V.useContext(wxe);if(!e)throw new Error("useMapStore must be used within a MapStoreProvider");return fve(e,r)},pue="/assets/h2-digital-Cv9I_RYC.svg",iSt=()=>{let r=document.querySelector("link[rel~='icon']"),e=document.querySelector("link[rel~='apple-touch-icon']");r||(r=document.createElement("link"),r.rel="icon",document.getElementsByTagName("head")[0].appendChild(r)),e||(e=document.createElement("link"),e.rel="apple-touch-icon",document.getElementsByTagName("head")[0].appendChild(e)),r.href=pue,e.href=pue},Cxe="/assets/h2-digital-logo-zwLgba9F.png",oSt="/assets/cibuscell_logo-BaejuUTl.svg",Hh=fL(r=>({showMobileNavBar:!1,languageSelected:JSON.parse(localStorage.getItem("language"))||Kf.EN,showSearchBar:!1,showMap:!1,hostIframe:!1,locationSelected:void 0,privateReports:void 0,listSearchTerm:"",setShowMobileNavBar:e=>{r(()=>({showMobileNavBar:e}))},setLanguageSelected:e=>{r(()=>({languageSelected:e}))},setLocationSelected:e=>{r(()=>({locationSelected:e}))},setShowSearchBar:e=>{r(()=>({showSearchBar:e}))},setShowMap:e=>{r(()=>({showMap:e}))},sethostIframe:e=>{r(()=>({hostIframe:e}))},setPrivateReports:e=>{r(()=>({privateReports:e}))},setListSearchTerm:e=>{r(()=>({listSearchTerm:e}))}})),mW=()=>{const r=Hh(e=>e.hostIframe);return $.jsxs("div",{className:"full-page-loader",children:[$.jsx("img",{className:"app-logo",src:r?oSt:Cxe,id:"full-page-loader"}),$.jsx(fCe,{sx:{width:"10%",minWidth:"5rem"},children:$.jsx(ivt,{})})]})},xxe=V.createContext({mainRef:null}),aSt=({children:r})=>{const e=V.useRef(null);return $.jsx(xxe.Provider,{value:{mainRef:e},children:$.jsx("div",{className:"route-container",id:"scroll-container",ref:e,children:r})})},jMt=()=>V.useContext(xxe),yW=r=>$.jsx("img",{className:`select-arrow-icon ${r.className??""}`,src:OEe});var kO={},gue;function sSt(){if(gue)return kO;gue=1;var r=Wa();
1076Object.defineProperty(kO,"__esModule",{value:!0}),kO.default=void 0;var e=r(Ts()),t=ls();return kO.default=(0,e.default)((0,t.jsx)("path",{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z"}),"AutoAwesome"),kO}var lSt=sSt();const cSt=ao(lSt);var OO={},mue;function uSt(){if(mue)return OO;mue=1;var r=Wa();Object.defineProperty(OO,"__esModule",{value:!0}),OO.default=void 0;var e=r(Ts()),t=ls();return OO.default=(0,e.default)((0,t.jsx)("path",{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4M11 20v-5.5H9L13 7v5.5h2z"}),"BatteryChargingFull"),OO}var dSt=uSt();const hSt=ao(dSt);var MO={},yue;function fSt(){if(yue)return MO;yue=1;var r=Wa();Object.defineProperty(MO,"__esModule",{value:!0}),MO.default=void 0;var e=r(Ts()),t=ls();return MO.default=(0,e.default)((0,t.jsx)("path",{d:"M11 21h-1l1-7H7.5c-.58 0-.57-.32-.38-.66.19-.34.05-.08.07-.12C8.48 10.94 10.42 7.54 13 3h1l-1 7h3.5c.49 0 .56.33.47.51l-.07.15C12.96 17.55 11 21 11 21"}),"Bolt"),MO}var pSt=fSt();const gSt=ao(pSt);var NO={},vue;function mSt(){if(vue)return NO;vue=1;var r=Wa();Object.defineProperty(NO,"__esModule",{value:!0}),NO.default=void 0;var e=r(Ts()),t=ls();return NO.default=(0,e.default)((0,t.jsx)("path",{fillRule:"evenodd",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m4.9 13.49-1.4 1.4c-.2.2-.51.2-.71 0l-3.41-3.41c-1.22.43-2.64.17-3.62-.81-1.11-1.11-1.3-2.79-.59-4.1l2.35 2.35 1.41-1.41-2.35-2.34c1.32-.71 2.99-.52 4.1.59.98.98 1.24 2.4.81 3.62l3.41 3.41c.19.19.19.51 0 .7"}),"BuildCircle"),NO}var ySt=mSt();const vSt=ao(ySt);var DO={},_ue;function _St(){if(_ue)return DO;_ue=1;var r=Wa();Object.defineProperty(DO,"__esModule",{value:!0}),DO.default=void 0;var e=r(Ts()),t=ls();return DO.default=(0,e.default)((0,t.jsx)("path",{d:"M12 3c-4.8 0-9 3.86-9 9 0 2.12.74 4.07 1.97 5.61L3 19.59 4.41 21l1.97-1.97C7.93 20.26 9.88 21 12 21c2.3 0 4.61-.88 6.36-2.64C20.12 16.61 21 14.3 21 12V3zm3.83 9.26-5.16 4.63c-.16.15-.41.14-.56-.01-.14-.14-.16-.36-.04-.52l2.44-3.33-4.05-.4c-.44-.04-.63-.59-.3-.89l5.16-4.63c.16-.15.41-.14.56.01.14.14.16.36.04.52l-2.44 3.33 4.05.4c.45.04.63.59.3.89"}),"EnergySavingsLeaf"),DO}var bSt=_St();const wSt=ao(bSt);var LO={},bue;function ESt(){if(bue)return LO;bue=1;var r=Wa();
1076Object.defineProperty(LO,"__esModule",{value:!0}),LO.default=void 0;var e=r(Ts()),t=ls();return LO.default=(0,e.default)((0,t.jsx)("path",{d:"m5.2494 8.0688 2.83-2.8269 14.1343 14.15-2.83 2.8269zm4.2363-4.2415 2.828-2.8289 5.6577 5.656-2.828 2.8289zM.9989 12.3147l2.8284-2.8285 5.6569 5.6569-2.8285 2.8284zM1 21h12v2H1z"}),"Gavel"),LO}var CSt=ESt();const xSt=ao(CSt);var HO={},wue;function TSt(){if(wue)return HO;wue=1;var r=Wa();Object.defineProperty(HO,"__esModule",{value:!0}),HO.default=void 0;var e=r(Ts()),t=ls();return HO.default=(0,e.default)((0,t.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"),HO}var SSt=TSt();const ISt=ao(SSt);var FO={},Eue;function ASt(){if(Eue)return FO;Eue=1;var r=Wa();Object.defineProperty(FO,"__esModule",{value:!0}),FO.default=void 0;var e=r(Ts()),t=ls();return FO.default=(0,e.default)((0,t.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public"),FO}var RSt=ASt();const PSt=ao(RSt);var UO={},Cue;function kSt(){if(Cue)return UO;Cue=1;var r=Wa();Object.defineProperty(UO,"__esModule",{value:!0}),UO.default=void 0;var e=r(Ts()),t=ls();return UO.default=(0,e.default)((0,t.jsx)("path",{d:"m21.41 11.41-8.83-8.83c-.37-.37-.88-.58-1.41-.58H4c-1.1 0-2 .9-2 2v7.17c0 .53.21 1.04.59 1.41l8.83 8.83c.78.78 2.05.78 2.83 0l7.17-7.17c.78-.78.78-2.04-.01-2.83M6.5 8C5.67 8 5 7.33 5 6.5S5.67 5 6.5 5 8 5.67 8 6.5 7.33 8 6.5 8"}),"Sell"),UO}var OSt=kSt();const MSt=ao(OSt);var BO={},xue;function NSt(){if(xue)return BO;xue=1;var r=Wa();Object.defineProperty(BO,"__esModule",{value:!0}),BO.default=void 0;var e=r(Ts()),t=ls();return BO.default=(0,e.default)((0,t.jsx)("path",{d:"M3.33 16H11v-3H4zM13 16h7.67L20 13h-7zm8.11 2H13v4h9zM2 22h9v-4H2.89zm9-14h2v3h-2zm4.7644-.7948 1.4143-1.4142L19.3 7.9123l-1.4142 1.4142zm-11.0596.7076 2.1213-2.1213 1.4143 1.4142L6.119 9.327zM3 2h3v2H3zm15 0h3v2h-3zm-6 5c2.76 0 5-2.24 5-5H7c0 2.76 2.24 5 5 5"}),"SolarPower"),BO}var DSt=NSt();const LSt=ao(DSt);var $O={},Tue;function HSt(){if(Tue)return $O;Tue=1;var r=Wa();Object.defineProperty($O,"__esModule",{value:!0}),$O.default=void 0;var e=r(Ts()),t=ls();return $O.default=(0,e.default)((0,t.jsx)("path",{d:"M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.41 3.8 13.5.67M11.71 19c-1.78 0-3.22-1.4-3.22-3.14 0-1.62 1.05-2.76 2.81-3.12 1.77-.36 3.6-1.21 4.62-2.58.39 1.29.59 2.65.59 4.04 0 2.65-2.15 4.8-4.8 4.8"}),"Whatshot"),$O}var FSt=HSt();const USt=ao(FSt),UA=[{id:1,question:"What's involved in building a green hydrogen plant (1-10 MW) in Germany?",icon:"🏭",action:{description:"How to build a Green Hydrogen Plant?",icon:LSt},tags:["Project Development"],detailedAnswer:{summary:[{text:"This report outlines the key considerations for establishing a green hydrogen production plant (electrolyzer capacity~1-10 MW) in southern Germany for industrial use. It covers suitable electrolyzer suppliers and reference projects (with cost indications), hydrogen storage solutions (and their costs), expected project timeline including permitting, available public funding sources, experienced engineering firms for project execution, and current green hydrogen price levels in the region."}],sections:[{title:"Electrolyzer Hardware Providers (1-10 MW) and Reference Projects",blocks:[{text:"Several companies offer electrolyzers in the 1-10 MW range, with proven projects in Europe. Typical capital costs have been in the range of €1,200-€1,400 per kW for Western-made alkaline and PEM (proton exchange membrane) electrolyzers, though newer containerized solutions are driving costs lower (even approaching ~$1,000/kW). Below is a list of notable electrolyzer providers, example projects, and cost insights:"},{subtitle:"ITM Power (UK)",blocks:[{text:"Specializes in PEM electrolyzers. Supplied the 10 MW Refhyne PEM electrolyzer at Shell's Rhineland refinery (Wesseling, Germany), which began operation in 2021. The plant produces ~1,300 tons H₂ per year and cost about €20 million for 10 MW (≈€2M per MW), with 50% co-funding by the EU. This project demonstrated one of Europe's largest PEM electrolyzers and helped establish ITM's technology at scale.",faqLinks:[{text:"ITM Power",message:"Tell me more about ITM Power and its projects."},{text:"Refhyne PEM electrolyzer",message:"What is the Refhyne PEM electrolyzer?"}]}]},{subtitle:"Siemens Energy (Germany)",blocks:[{text:"Provides PEM electrolyzers under the 'Silyzer' brand. Delivered an 8.75 MW PEM plant in Wunsiedel, Bavaria (commissioned 2023), producing ~1,350 tons H₂ annually from solar/wind power. While specific costs weren't disclosed, industry data suggests Western PEM systems around €1,400/kW. Siemens acted as EPC contractor for Wunsiedel, indicating capability to deliver turnkey solutions. An earlier Siemens project, the 6 MW PEM H2Future plant in Austr
1076ia (2019), and new projects (e.g. a 17.5 MW expansion at Wunsiedel) further demonstrate their experience.",faqLinks:[{text:"Siemens Energy",message:"Tell me more about Siemens Energy and its role as an electrolyzer provider."},{text:"Wunsiedel plant",message:"What is the Wunsiedel green hydrogen plant?"}]}]},{subtitle:"Nel Hydrogen (Norway)",blocks:[{text:"A leading alkaline electrolyzer manufacturer with multiple >5 MW references. Nel supplied alkaline stacks for projects like the 20 MW electrolyzer at a Yara fertilizer plant in Norway and a 4x5 MW (20 MW total) system for the HYBRIT iron project in Sweden. Western alkaline electrolyzers average around €1,200/kW CAPEX. Nel's systems are modular, and they have a factory in Herøya targeting cost reductions. Nel does not yet have a flagship project in south Germany, but their technology is considered for many EU green H₂ projects.",faqLinks:[{text:"Nel Hydrogen",message:"Tell me more about Nel Hydrogen and its projects."}]}]},{subtitle:"Thyssenkrupp Nucera (Germany)",blocks:[{text:"Joint venture of Thyssenkrupp and De Nora, offering large-scale alkaline electrolyzers. They are slated to supply 100+ MW systems to several projects (e.g. a 2 GW project in Saudi Arabia) at quoted economies of scale (~€521/kW for 2 GW, though that excludes some balance-of-plant costs). For 10 MW-class deployments, typical costs are higher (in line with the €1,000-1,400/kW range). Thyssenkrupp's engineering pedigree (chemical plants) means Nucera can deliver full plant design. Domestically, Nucera is involved in the 100 MW electrolyzer planned at Rostock (HyTechHafen project) which received significant public funding.",faqLinks:[{text:"Thyssenkrupp Nucera",message:"Tell me more about Thyssenkrupp Nucera and its role as an electrolyzer provider."}]}]},{subtitle:"Sunfire (Germany)",blocks:[{text:"Developer of both pressurized alkaline and solid-oxide (SOEC) electrolyzers. Sunfire has a 10 MW alkaline unit on order for RWE's Lingen project (part of a 300 MW plant), expected operational by 2027. The 10 MW system is expected to produce ~2 tonnes H₂ per hour. Sunfire's SOEC technology (higher efficiency at high temperature) is being piloted (e.g. 2.5 MW in Salzgitter), though SOEC is nascent compared to alkaline/PEM.",faqLinks:[{text:"Sunfire",message:"Tell me more about Sunfire and its electrolyzer technologies."}]}]},{subtitle:"H-Tec Systems (Germany)",blocks:[{text:"Offers modular PEM electrolyzers in the 1-2 MW range. For example, H-Tec's 1 MW containerized unit produces ~450 kg H₂ per day. Such prefabricated container solutions have been quoted at around $1,000/kW turnkey, significantly reducing on-site installation effort. H-Tec (based in Bavaria, owned by MAN) focuses on smaller-scale industrial and mobility H₂ projects and is a potential supplier for the 1-5 MW range with robust German support.",faqLinks:[{text:"H-Tec Systems",message:"Tell me more about H-Tec Systems and its modular electrolyzers."}]}]},{subtitle:"McPhy (France)",blocks:[{text:"Supplies alkaline electrolyzers up to 20 MW scale. McPhy is building a 20 MW plant in Normandy and has several 1-4 MW reference projects in Europe. Costs are comparable to other Western alkaline systems (~€1-1.3M per MW). While not a German company, McPhy's technology could be sourced, and they are expanding with a factory in Italy to serve the European market.",faqLinks:[{text:"McPhy",message:"Tell me more about McPhy and its alkaline electrolyzers."}]}]},{subtitle:"Plug Power (USA)",blocks:[{text:"Through acquisitions (e.g. of Giner ELX and Netherlands-based Frames), Plug offers PEM electrolyzer solutions in Europe. They are establishing a gigafactory for stacks in Germany and have delivered systems like a 5 MW PEM for a refinery project. Plug's target pricing is aggressive (aiming for <$1,000/kW); however, their larger references are in North America. They could be an option for a German project, especially if integrated via local partners.",faqLinks:[{text:"Plug Power",message:"Tell me more about Plug Power's role in the European market."}]}]},{title:"Cost Considerations",text:"Current CAPEX for Western electrolyzers is roughly €1–1.5 million per MW installed. For a 1 MW system this might be on the order of €1–2 million, and a 10 MW plant ~€10–15 million, including stacks, power electronics, gas purification, and plant balance-of-plant. For instance, the 10 MW Shell/ITM project at €20 million included full installation and some first-of-a-kind overheads. Chinese manufacturers can offer far lower stack prices (e.g. ~$300/kW) but these quotes often exclude many system costs and are not directly comparable. Additionally, using non-European equipment may complicate subsidies/financing. The trend toward factory-built modular electrolyzers is expected to reduce costs ~3
10760% by 2025. In summary, for budgeting a 1–10 MW green H₂ project in Germany, one should anticipate roughly €1,000–€1,500 per kW in capital cost in 2025, with the lower end achievable using containerized or highly standardized systems."}]},{title:"Hydrogen Storage Providers and Solutions (with Costs)",blocks:[{text:"Producing hydrogen at scale necessitates safe storage to buffer production and meet demand cycles. Storage can be in gaseous form (compressed tanks or underground vessels), liquid form (cryogenic liquid H₂), or via chemical carriers. Below are common storage solutions and providers, along with cost indications:"},{subtitle:"Compressed Gas Storage (Pressurized Tanks)",blocks:[{text:"For 1–10 MW electrolyzer outputs, hydrogen is typically stored in steel or composite cylinders at pressures from ~30 bar up to 500 bar, depending on use. Hexagon Purus (Wystrach) in Germany is a leading supplier of Type IV composite cylinder systems. They provide turnkey high-pressure storage modules and trailers – for example, 500 bar container units that can hold ~1.1 tons H₂ each. NPROXX (Germany/Netherlands) similarly produces composite pressure vessels (350–700 bar) for stationary and mobile storage. High-pressure storage is expensive per unit of H₂ capacity: analyses estimate ~$400–700 per kg H₂ capacity for compressed gas tanks (this range corresponds to 350–700 bar systems used in transport). Lower-pressure steel tanks (e.g. 30–80 bar buffered storage at an industrial site) can be cheaper per kg but require larger volume. As a rule, expect several hundred Euros per kg of H₂ stored for typical pressurized storage solutions. Suppliers like Rheinmetall and Voith are also developing advanced 700 bar tanks (mostly aimed at vehicles), but for an industrial plant, storage at 100–300 bar in tube skids or spheres may suffice.",faqLinks:[{text:"Compressed Gas Storage",message:"Tell me more about compressed gas storage for hydrogen."}]}]},{subtitle:"Cryogenic Liquid Hydrogen (LH₂) Storage",blocks:[{text:"Cooling H₂ to -253°C yields liquid hydrogen with much higher energy density. Chart Industries is a market leader in cryogenic LH₂ tanks. A liquid tank is suitable if large volumes (many tons) must be stored or transported off-site, but it introduces boil-off losses and high energy consumption for liquefaction. For a 10 MW project (producing <2 t/day), on-site liquefaction may not be economical unless serving a broader distribution network.",faqLinks:[{text:"Cryogenic Liquid Hydrogen (LH₂) Storage",message:"What is cryogenic liquid hydrogen storage?"}]}]},{subtitle:"Hydrogen Cylinders and Packs",blocks:[{text:"Standard industrial H₂ cylinders (e.g. 50 L at 200 bar) are widely available (supplied by gas companies like Linde, Air Liquide, Messer). These are convenient for small quantities but impractical for large volumes due to manual handling. Cylinder packs or tube trailers (typically 200–500 bar) are better for daily production scale. Luxfer Gas Cylinders and MAHYTEC (France) provide various cylinder types (including metal and composite) and small-scale storage solutions. Wystrach (Hexagon Purus) offers stationary rack systems that can serve as on-site storage banks or be used as mobile modules delivered by truck. For planning purposes, a 40-foot trailer at 500 bar can carry ~1,000 kg H₂; such a unit would cost on the order of €1–2 million (including high-pressure cylinders, frame, valves). Stationary installations using multiple cylinders might be on par per kg stored.",faqLinks:[{text:"Hydrogen Cylinders and Packs",message:"What are hydrogen cylinders and packs for storage?"}]}]},{subtitle:"Liquid Organic Hydrogen Carriers (LOHC)",blocks:[{text:"An alternative is to chemically bind H₂ to a liquid carrier (such as benzyltoluene) for ambient-condition storage. Hydrogenious LOHC Technologies (Erlangen, Germany) is a pioneer in LOHC systems. LOHC allows hydrogen to be stored and transported like a diesel fuel (no high pressure, no extreme cooling). The trade-off is the need for hydrogenation/de-hydrogenation units and the energy penalty in releasing H₂. LOHC could be attractive if the project needs to store large quantities for long durations or transport H₂ off-site without tankers. Hydrogenious has demonstrated LOHC storage in >1 t H₂ batches. Cost-wise, the LOHC fluid can be reused many times and costs maybe €4–5 per kg H₂ throughput in operational expense, plus the capital cost of reactors. Typically, an LOHC storage plant involves a significant CAPEX for the processor units (tens of millions for large scale), so this is usually considered for >100 MW projects or import/export terminals rather than a 10 MW local plant.",faqLinks:[{text:"LOHC",message:"What is Liquid Organic Hydrogen Carriers (LOHC) technology?"}]}]},{subtitle:"Metal Hydride and Novel Storage",blocks:[{text:"Companies like GKN Hydrogen (Germany) offer metal hydride storage modules, where H₂ is absorbed in metal alloys at low pressure. GKN’s HY2 storage systems can store a few hundred kilograms at ~30 bar in containerized units. This method is very safe and compact volume-wise, but the weight and cost are high (the alloys are expensive, and one might see >€1,000 per kg stored capacity). Metal hydride storage also requires heat input to release hydrogen. For niche applications (backup power, remote storage with waste heat integration) this can work, but for an industrial H₂ hub, compressed gas is more common.",faqLinks:[{text:"Metal Hydride Storage",message:"How does metal hydride storage work?"}]}]},{subtitle:"Industrial Gas Companies (Turnkey Storage Solutions)",blocks:[{text:"Major industrial gas firms (Linde, Air Liquide, Air Products) not only supply hydrogen but also provide engineering of storage and trailer systems. For example, Linde can engineer a storage yard with multiple high-pressure vessels and the required safety systems. These companies can act as one-stop providers for storage and even operation services (through leasing models). While they may not publicize costs, their offerings will reflect the market prices noted above. Partnering with such a company could shift upfront costs to an OPEX model (by buying hydrogen supply contract including on-site storage), but this depends on the project structure.",faqLinks:[{text:"Linde",message:"Tell me more about Linde and its hydrogen storage solutions."}]}]},{title:"Summary of Storage Costs",text:"As a rough guideline, compressed hydrogen storage infrastru
1076cture might add on the order of €0.5–1 million per ton of H₂ capacity for a stationary system (e.g. a 500 kg storage at 300 bar could cost a few hundred thousand Euros). Lower pressures and simple steel tanks are cheaper but store less hydrogen per volume. For daily buffering of a 10 MW electrolyzer (~2,000–4,000 kg H₂/day), one might use ~8–12 tube trailers worth of storage to hold a full day’s production. The project should budget for this accordingly. It’s worth noting that hydrogen storage is an area of active R&D, aiming to cut costs. DOE targets, for instance, seek to reduce storage tank costs to <$300 per kg by late 2020. In Germany, if larger storage is needed, one could even explore underground salt caverns (as planned in Gronau-Epe for RWE), which offer massive capacity at very low per-kg cost – but caverns are viable only at very large scale and specific geology."}]},{title:"Project Timeline and Regulatory Approvals in Germany",blocks:[{text:"Implementing a green hydrogen plant involves several phases: planning, permitting, procurement, construction, and commissioning. For a 1–10 MW project in Germany, a realistic timeline from project start to H₂ production is ~1.5 to 3 years, assuming no major delays. Below is an estimated schedule and discussion of the regulatory approval process:"},{subtitle:"Project Development & Design (3-9 months)",blocks:[{text:"This includes feasibility studies, securing a site (industrial-zoned land is ideal), conceptual design, and engaging with technology suppliers. Early stakeholder engagement (e.g. local authorities, fire department) can smooth later permitting. For instance, addressing safety concerns upfront and educating the community about hydrogen helps prevent objections that could slow approvals."}]},{subtitle:"Permitting & Approvals (6-12 months, potentially concurrent)",blocks:[{text:"Historically, hydrogen electrolyzers in Germany fell under BImSchG (Federal Immission Control Act) permitting as “industrial-scale chemical installations” requiring an emissions permit. This process can be lengthy, often involving an environmental impact assessment (EIA) and public consultation for larger projects. In 2022–2023, obtaining a full permit for MW-scale electrolyzers could take around a year or more. However, new regulatory changes are expediting this: Germany’s proposed “Hydrogen Acceleration Act” will ease and shorten permits for H₂ projects. Draft amendments suggest electrolyzers up to 5 MW will be exempt from BImSchG permits entirely, and even larger units up to ~50 t H₂/day (~60 MW) may only require a simplified procedure. This means a 10 MW plant would likely undergo a simpler, faster process (no mandatory public hearing if below certain thresholds). As of mid-2025, the law is expected to come into force by end of 2024. In practical terms, one should plan for permitting to take on the order of 6–9 months for a ~10 MW project under the new rules, versus possibly 12–18 months under old rules. Local building permits (Bauamt approval) are still needed for structures, but these can run in parallel. Note that if the project includes large hydrogen storage (above certain quantities), it could trigger the EU Seveso directive classification, adding safety report requirements – but at 1–2 tons on site, this is likely below lower-tier Seveso thresholds.",faqLinks:[{text:"BlmSchG permitting",message:"What is BlmSchG permitting for hydrogen projects?"},{text:"Hydrogen Acceleration Act",message:"What is the Hydrogen Acceleration Act?"}]}]},{subtitle:"Equipment Procurement & Construction (9-15 months)",blocks:[{text:"Once permits are in hand (or conditionally in progress), ordering the electrolyzer and other equipment is critical. Lead times for electrolyzers in 2024–2025 are significant; many manufacturers have backlogs. Project developers have warned of long lead-times for stacks and components (pumps, valves, transformers), sometimes causing delays. For example, projects <10 MW have taken up to three years from design through commissioning in part due to equipment lead times, though often much of this overlaps with permitting. The civil construction and installation of a 1–10 MW plant is relatively straightforward (concrete pad, a small hall or container units, compression and cooling systems, etc.) – this can be done in a matter of months. For instance, the Shell 10 MW Refhyne took ~2 years of construction and commissioning, but that included delays from being first-of-kind. The Wunsiedel 8.75 MW plant broke ground in mid-2021 and opened in Sep 2022 (~15 months). A timeline published by DOE indicates >10 MW projects can take longer (up to 5 years) due to complexity, but sub-10 MW projects can be realized in ~2 years if well-managed. In summary, expect roughly 6–12 months for equipment manufacturing and delivery (could be faster for containerized 1 MW units, but likely ~1 year for a 10 MW system), and ~6 months for on-site construction and integration. This can overlap partially with final permit approval and grid connection works."}]},{subtitle:"Commissioning & Start-up (2-3 months)",blocks:[{text:"After construction, the system will undergo testing, safety checks, and initial operations ramp-up. Authorities will verify compliance with permit conditions. Training staff and integrating with the industrial off-taker processes also occur here. Expect ~8–12 weeks for a smooth commissioning phase before full commercial operation."}]},{title:"Summary",text:"In total, a well-planned project launched in 2025 could potentially produce hydrogen by late 2026 or 2027. If pursuing aggressive timelines (and if the new law exempts small electrolyzers from permits), a <5 MW project might even be operational within 12–18 months from go-ahead. It’s advisable to factor in some contingency for permitting delays or supply chain issues. The German government is keen to accelerate hydrogen infrastru
1076cture – labeling such projects as being of “overriding public interest” to prioritize them – which should help avoid protracted delays. As a real-world data point, RWE’s 100 MW Lingen project (comprised of three electrolysis trains of ~30–50 MW each) aims to commission the first 100 MW by 2025, having started development around 2020 – this suggests ~4–5 years for a much larger project, implying a smaller 10 MW one is feasible in ~2 years if streamlined."},{title:"Regulatory Compliance",text:"Even with easier permitting, the plant must comply with all safety codes (pressure equipment directive, ATEX zoning for H₂, etc.). Early engagement with a notified body (e.g. TÜV) for the pressure system and with local fire authorities is recommended. The new hydrogen law will also likely simplify environmental requirements (electrolyzers have no emissions except oxygen and some vented hydrogen, so environmental impact is minor compared to traditional chemical plants). If the project connects to the electric grid, securing a grid connection agreement and ensuring the ability to source renewable power (to qualify as “green” hydrogen) is another track to manage in parallel."}]},{title:"Public Funding and Subsidies for Hydrogen Projects",blocks:[{text:"Building a green hydrogen facility in Germany can benefit from substantial public funding, as both the EU and German governments have prioritized hydrogen in climate policy. Below is a list of potential funding sources and programs:",faqLinks:[]},{subtitle:"Important Projects of Common European Interest (IPCEI Hydrogen)",blocks:[{text:"Germany, along with EU, launched large funding waves under IPCEI to kick-start the hydrogen economy. In 2021 and 2022, dozens of German H₂ projects were selected. In July 2024, the German federal and state governments granted €4.6 billion to 23 hydrogen projects as part of the “Hy2Infra” IPCEI wave. These include production (total ~1.4 GW electrolyzers), storage, and pipeline projects. IPCEI funding often covers 30–50% of project capex, with federal covering 70% of the grant and state 30%. For example, RWE’s 300 MW Lingen electrolyzer plus storage received €619 million (combined federal/state), and a 100 MW Rostock project got €199 million. Relevance: A 1–10 MW plant might be too small to be its own IPCEI project, but it could be part of a larger cluster or “Hydrogen Valley” concept. It’s worth checking if the project can join a regional IPCEI consortium or if new calls will include smaller projects (so far, IPCEI tends to focus on bigger, transformative schemes).",faqLinks:[{text:"IPCEI Hydrogen",message:"What is the IPCEI Hydrogen funding program?"}]}]},{subtitle:"EU Innovation Fund / Hydrogen Bank",blocks:[{text:"The EU’s Innovation Fund (financed by ETS revenues) supports first-of-a-kind commercial projects that significantly reduce GHGs. Green hydrogen production is a prime category. In 2023, the EU launched the “Hydrogen Bank” auction system, which awards operating subsidies to H₂ producers. In May 2025, 15 projects from 5 countries won the second Hydrogen Bank auction (total €992 million), including one in Lubmin (Mecklenburg-Vorpommern) that won €112 million spread over 10 years for a renewable H₂ project. This subsidy (~€11.2M/yr) effectively bridges the gap between production cost and market price. Relevance: A new 10 MW plant could aim to secure such an EU operating subsidy. The Hydrogen Bank is essentially paying a fixed premium per kg H₂ produced (the Lubmin project likely bid around €4–5 per kg). Future auction rounds are expected, and having a project fully permitted and “shovel-ready” improves chances to win those competitive bids.",faqLinks:[{text:"EU Innovation Fund",message:"What is the EU Innovation Fund?"},{text:"Hydrogen Bank",message:"What is the Hydrogen Bank auction system?"}]}]},{subtitle:"German Federal Funding Programs",blocks:[{list:["The National Hydrogen Strategy (Nationale Wasserstoffstrategie) includes funding for domestic electrolyzer deployment. One scheme, approved by the EU in 2022, is a €350 million state aid program to supp
1076ort renewable H₂ production. This may take the form of investment grants or operating support (e.g. contracts for difference).","Decarbonization of Industry (Dekarbonisierungsprogramm): The BMWK (Ministry for Economic Affairs and Climate Action) has programs to fund industrial decarbonization projects, often via the BEW (Federal funding for efficient heating networks) or carbon contracts. If the H₂ will directly abate emissions in industry (e.g. replacing fossil hydrogen or natural gas in a process), the project might qualify for such funding.","NIP (National Innovation Programme Hydrogen and Fuel Cell Technology): Earlier NIP phases mainly funded R&D and hydrogen mobility infrastructure. Currently, NIP II (managed by NOW GmbH) does provide some grants for hydrogen production insofar as it ties into mobility (for example, H₂ hubs that supply fuel for trucks/buses). If your project includes a refueling station or vehicle fleet usage, NIP funding could be tapped.","KfW and Financing Programs: KfW (the national development bank) offers low-interest loans and support for hydrogen projects. In 2023, KfW also invested in the H₂Global initiative (which is more about importing hydrogen). While KfW loans are not grants, the favorable terms improve project economics, especially combined with guarantees."],faqLinks:[{text:"National Hydrogen Strategy",message:"What is the National Hydrogen Strategy in Germany?"},{text:"KfW",message:"What is the role of KfW in hydrogen project financing?"}]}]},{subtitle:"State-Level Grants",blocks:[{list:["Bavaria (BayFELI Program): The Free State of Bavaria launched the Electrolyzer Infrastructure Funding Program in 2023 with a budget of €150 million. The program covers 45% of the electrolyzer investment costs (and directly related equipment) for plants ≥1 MW. Bavaria plans to support up to 50 electrolyzer projects, and the first call (late 2023) allocated €45 million, with a second call in 2024. This means if your project is in Bavaria, you could receive nearly half of the CAPEX as a grant, which is substantial. For example, if you install a 5 MW electrolyzer costing ~€6 million, the program might grant ~€2.7 million. (Note: competition is high – numerous proposals were submitted – so a strong application demonstrating renewable integration and regional impact is needed.)","Baden-Württemberg (ELY Programme): In Feb 2025, Baden-Württemberg (neighboring state in Southwest Germany) launched a €100 million hydrogen production subsidy scheme. Electrolyzer projects in BW can apply by May 2025, with grants up to €10 million per project. The funding covers up to 45% of eligible costs (and even more for SMEs – an extra 10–20% for medium/small companies). Essentially, BW is mirroring Bavaria’s approach. The program, called “Funding for Electrolysers (ELY)”, is backed by the state’s Environment Ministry and BMWK. Each project can get up to €10M, so a project of ~10–20 MW might get full 45%, whereas a 2–5 MW project might be capped by that €10M limit (which still likely covers >45%). If your project is in Baden-Württemberg, this is a prime opportunity – it aims to ensure ample hydrogen supply for local industry.","Other States: Many German states have hydrogen initiatives. For example, North Rhine-Westphalia, Lower Saxony, and Mecklenburg-Vorpommern all co-fund projects (often via IPCEI as noted). Saxony-Anhalt recently offered grants up to €2M per MW for green H₂ projects. While our focus is South Germany, note that regional funding can be significant if the project borders another supportive state (e.g. if in Upper Franconia, Bavaria covers it as noted)."],faqLinks:[{text:"BayFELI Program",message:"Tell me more about Bavaria's BayFELI Program."},{text:"ELY Programme",message:"Tell me more about Baden-Württemberg's ELY Programme."}]}]},{subtitle:"EU Regional Funds / Recovery Funds",blocks:[{text:"The EU’s post-COVID recovery fund (NextGenerationEU) allocated money to members for green projects. Part of Germany’s plan (DARP) is used to support hydrogen IPCEIs. There are also Interreg programs and Horizon Europe calls focusing on hydrogen valleys – these are more geared to consortia, but if the project can be part of a larger regional innovation ecosystem, additional smaller grants (for studies, training, etc.) could be available.",faqLinks:[]}]},{subtitle:"H2Global Contracts",blocks:[{text:"H2Global is a mechanism where Germany subsidizes the import of green hydrogen or its derivatives by bridging price gaps for ten years. It doesn’t directly fund domestic production, but by establishing price benchmarks it indirectly supports the market. Domestically, a similar concept is being tried with carbon contracts for difference (CCfDs) for industries that switch to green hydrogen – essentially guaranteeing a carbon price that makes H₂ competitive. Keep an eye on BMWK’s “Klimaschutzverträge” if your hydrogen will be used in a carbon-heavy industry; winning such a contract could ensure a premium payment per ton CO₂ saved, effectively funding part of your OPEX difference.",faqLinks:[{text:"H2Global",message:"What is the H2Global mechanism?"}]}]},{subtitle:"Summary",blocks:[{text:"For a 1–10 MW green hydrogen project in southern Germany, public funding can potentially cover 30% to 50% (or more) of capital costs. Bavaria and B-W have specific grant programs targeting roughly 45% CAPEX funding. Federal programs and EU funds can further stack support, especially for operational subsidies to make green H₂ viable against cheaper gray H₂. It will be crucial to align the project timeline with funding calls (e.g. prepare applications for state programs and be ready for upcoming EU auctions). Engaging with platforms like NOW GmbH (which coordinates national H₂ funding) and state energy agencies (e.g. Bayern Innovativ for Bavaria, or Umweltministerium in B-W) can provide guidance. The positive news is that Germany is actively providing financial support to meet its goal of 10 GW of electrolyzers by 2030, so well-prepared projects have a good chance of receiving public funding."}]}]},{title:"Engineering and EPC Firms for Hydrogen Plant Construction",blocks:[{text:"Designing and building a hydrogen production facility requires expertise in system integration, compliance, and project execution. Several engineering, procurement, and construction (EPC) companies and specialist engineering office
1076s in Germany have successfully delivered green hydrogen projects. Below is a list of notable firms with relevant track records:"},{subtitle:"Bilfinger SE (Germany)",blocks:[{text:"An industrial services and engineering company with extensive chemical/process plant experience. Bilfinger is emerging as a key EPC for hydrogen. For example, RWE contracted Bilfinger as the integration partner for its 100 MW electrolyzer (third unit of the GET H2 Nukleus project in Lingen). Bilfinger’s scope includes engineering design, installation of balance-of-plant (water treatment, compression, controls), and integration of the Sunfire alkaline stacks into the existing plant. Bilfinger also engages in H₂ storage projects (they built a pilot hydrogen cavern with Uniper and have a partnership with H-TEC for efficient green H₂ solutions). They advertise offering full EPCM services “from consulting, engineering and construction to maintenance” for hydrogen plants. With headquarters in Mannheim (B-W), Bilfinger is a strong candidate to manage a southern Germany H₂ project end-to-end.",faqLinks:[{text:"Bilfinger SE",message:"Tell me more about Bilfinger SE and its role as an EPC contractor."}]}]},{subtitle:"Linde Engineering (Germany)",blocks:[{text:"Part of Linde plc, this engineering unit has decades of hydrogen plant experience (traditionally steam reformers, now electrolyzers and liquefiers). Linde was the integrator for Shell’s Refhyne I (10 MW) and is currently building Shell’s 100 MW Refhyne II at the Rhineland site. Linde provides complete solutions including compression, purification, storage, and even liquefaction if needed. They also produce some electrolyzer components and have their own small PEM line (although for large PEM they partnered with ITM, and for alkaline with Nucera). Linde’s breadth (from design to constructing the plant on-site) makes them a top-tier EPC choice. As an example of competence: Linde is also involved in a 24 MW electrolyzer in Leuna and numerous H₂ fueling infrastructure projects. Being based in Munich for engineering, they are local to South Germany.",faqLinks:[{text:"Linde Engineering",message:"Tell me more about Linde Engineering and its hydrogen projects."}]}]},{subtitle:"Siemens Energy / Siemens Large Drives",blocks:[{text:"Siemens not only supplies electrolyzer units (as discussed) but also acted as general contractor for the Wunsiedel projects. Siemens Smart Infrastructure led that project’s construction consortiums. For new projects using Siemens Silyzer technology, Siemens can provide project management, grid integration, and digital simulation know-how (the Wunsiedel plant was planned and optimized using digital twin models). Moreover, Siemens has a dedicated hydrogen division that can tap into the company’s expertise in electrical systems (transformers, rectifiers), automation (control systems for H₂ plants), and safety. They may involve sub-contractors for civil works, but as the main contractor they ensure the pieces come together. Siemens’s track record in Bavaria and their financing arm (SFS, which co-invested in Wunsiedel) could be advantageous if project financing is needed.",faqLinks:[{text:"Siemens Energy",message:"Tell me more about Siemens Energy's EPC capabilities."}]}]},{subtitle:"Thyssenkrupp Uhde Chlorine Engineers / Nucera",blocks:[{text:"Thyssenkrupp’s engineering arm (Uhde) has built large chemical plants worldwide and is now active in hydrogen via Nucera. For a smaller project, Thyssenkrupp could supply the electrolyzer and perform engineering, especially if alkaline technology is preferred. They bring process integration expertise (e.g. for integration with chemical factories or refineries). Notably, Thyssenkrupp is engineering a 88 MW water electrolysis plant for Hydro in Canada and working on large H₂ hubs in the EU. Their Dortmund-based engineering office can execute projects in Germany and ensure compliance with all industrial codes (they are used to handling BImSchG permits and complex projects).",faqLinks:[{text:"Thyssenkrupp Nucera",message:"Tell me more about Thyssenkrupp Nucera's engineering expertise."}]}]},{subtitle:"Air Liquide Engineering & Construction",blocks:[{text:"Air Liquide has an engineering center in Frankfurt and has delivered H₂ projects (the 20 MW PEM electrolyzer in Bécancour, Canada, and a 8 MW PEM in Nevada, for example). In Germany, Air Liquide is investing in hydrogen hubs (like the Rhineland area) and can act as EPC or co-EPC, leveraging their own Cryocap and storage technologies. If the project involves industrial gas 
1076supply to a client, Air Liquide might even propose a “over-the-fence” solution where they build/own the electrolyzer and sell hydrogen. They have experience building hydrogen liquefiers as well (useful if down the line liquefaction is needed). Similarly, Air Products (though more US-focused) is building a 10 MW electrolyzer in the Netherlands and could bring know-how, but Air Liquide has a stronger presence in the German market.",faqLinks:[{text:"Air Liquide Engineering & Construction",message:"Tell me more about Air Liquide's EPC services for hydrogen."}]}]},{subtitle:"Specialist Engineering Consultancies",blocks:[{text:"There are many mid-sized engineering firms in Germany experienced in renewable gases:",list:["ILF Consulting Engineers (HQ in Munich): has worked on power-to-gas and hydrogen pipeline studies. They could do feasibility, permitting documentation, and basic engineering, then help manage EPC tenders.","TÜV SÜD and TÜV Rheinland: not EPCs, but they offer engineering services around safety, risk assessments, and certification for hydrogen systems. Engaging TÜV early can ensure your design meets all standards (pressure vessel approvals, ATEX zoning, etc.) without rework.","NOW GmbH / Projektträger Jülich: again not builders, but these organizations manage hydrogen R&D and demonstration programs and can often recommend competent contractors or partners from their network.","EBNER & Stolz, Otto-von-Guericke-Universität, etc. : Germany also has engineering consortiums and research institutes (Fraunhofer IEE, ZSW in Baden-Württemberg) that, while not EPCs, can support design and innovation aspects."],faqLinks:[{text:"ILF Consulting Engineers",message:"What is the role of ILF Consulting Engineers in hydrogen projects?"},{text:"TÜV SÜD",message:"Tell me more about TÜV SÜD's services for hydrogen projects."},{text:"NOW GmbH",message:"What is NOW GmbH?"}]}]},{subtitle:"Renewable Project Developers with H₂ Focus",blocks:[{text:"Companies that traditionally developed renewable energy projects are moving into hydrogen:",list:["GP JOULE (based in Northern Germany): developed the eFarm project (Nord Friesland) with 2 MW of electrolysis and multiple H₂ end-uses. They can act as a project integrator/owner’s engineer, though they often sub-contract actual construction. If your project involves coupling with new solar/wind assets, such developers can be valuable partners.","Apex Group (Rostock): built a 2 MW electrolysis combined with fuel cell backup to run a business park on green hydrogen (project “APEX Energy”). They market turnkey container electrolyzer and fuel cell systems up to a few MW. Apex could supply a smaller plant (1–2 MW) including integration and even O&M, which might be useful for a phased approach or pilot within a larger plan.","ENERTRAG: a renewable company with experience in power-to-hydrogen (their 6 MW hybrid plant in Brandenburg has run for years, supplying H₂ for fuel stations). They might consult or partner on an H₂ project tied to wind farms."],faqLinks:[{text:"GP JOULE",message:"Tell me more about GP JOULE and the eFarm project."},{text:"Apex Group",message:"What kind of hydrogen projects does Apex Group develop?"},{text:"ENERTRAG",message:"What is ENERTRAG's experience with power-to-hydrogen?"}]}]},{subtitle:"Construction Firms and Industrial Integrators",blocks:[{text:"Traditional construction companies (Hochtief, etc.) are less specialized in hydrogen, but firms like NovaWind / MAN Energy Solutions (for compression) or ABB/Emerson (for electrical and control integration) often team up in hydrogen projects. For example, MAN’s subsidiary H-TEC provides electrolyzers and MAN can integrate compressors and gas engines if needed. Wärtsilä is another integrator eyeing power-to-gas solutions."}]},{subtitle:"Summary",blocks:[{text:"In summary, if you are seeking a turnkey EPC contractor, Bilfinger and Linde Engineering stand out in Germany for mid-scale hydrogen plants, given their active projects and comprehensive services. Siemens Energy can deliver a project especially if using their tech, ensuring all electrical and control aspects are optimized. For project management with local know-how, involving an experienced engineering consultancy like ILF or a Fraunhofer institute partner can help navigate permitting and technical challenges, even if the build itself is by a larger EPC. It’s advisable to issue a Request for Proposal (RFP) to a few shortlisted EPCs – many companies (including international ones like Worley, Technip Energies, or McDermott) are hungry for green hydrogen reference projects in Europe, so you may get competitive offers.",faqLinks:[]}]}]},{title:"Current Green Hydrogen Prices (South Germany, Industrial Market)",blocks:[{text:"The ec
1076onomics of your hydrogen production will depend on the price you can obtain per kilogram of green H₂ sold. As of 2025, green hydrogen in Europe commands significantly higher prices than fossil-derived (“grey”) hydrogen, reflecting its higher production cost and the still-limited supply. Here is an overview of current H₂ price levels relevant to an industrial project in southern Germany:"},{subtitle:"Production Cost vs Market Price",blocks:[{text:"The cost to produce green hydrogen via electrolysis (given European electricity prices) in 2023 was estimated around €5–8 per kg on average. A Clean Hydrogen Observatory report put the average at ~€6.6/kg in 2023 for renewables-connected electrolysis. By early 2025, improvements and energy prices have slightly lowered this in some cases, but we are still in the upper single digits without subsidies. BloombergNEF/Montel analysis suggests green H₂ typically costs €3–7/kg in current conditions, depending on renewable power cost and electrolyzer efficiency. The wide range reflects that if one has very cheap electricity (e.g. dedicated wind/solar at <€0.03/kWh and high utilization), costs can approach €3–4, but if using grid electricity with taxes it easily hits €6–7+. In contrast, grey hydrogen (from unabated natural gas via SMR) costs only about €1.5–2.5 per kg at pre-crisis gas prices; even with higher gas prices or carbon costs, grey H₂ is usually <€3. Blue hydrogen (SMR + CCS) is ~€2–3.5. So there is a gap that policy mechanisms aim to close."}]},{subtitle:"Industrial H₂ Price in Germany",blocks:[{text:"Industrial consumers currently buying hydrogen (for refineries, ammonia, etc.) usually get it from onsite production or pipeline supply. In regions like the Rhine-Ruhr with hydrogen pipelines, bulk prices for hydrogen (grey) might be in the €2–3/kg range (linked to gas). Green hydrogen, being scarce, often sells via contracts that include subsidy or premium. In southern Germany, where no H₂ pipeline network exists yet, any supplied hydrogen is likely via cylinders or onsite production. As a benchmark, Hydrogen Europe’s price index for green hydrogen in Europe was about $6.91/kg in May 2025 (≈ €6.3/kg), and trending slightly upward. This is an index of production cost, but in effect, it suggests that if you produce green H₂, a buyer would need to pay on the order of 6–7 €/kg to cover costs at current levels.",faqLinks:[{text:"Hydrogen Europe’s price index",message:"What is the Hydrogen Europe’s price index?"},{text:"Hydrogen pipelines in Germany",message:"Where are the main hydrogen pipelines in Germany?"}]}]},{subtitle:"Fueling Station Prices (as reference)",blocks:[{text:"Hydrogen at public refueling stations in Germany (used by fuel cell vehicles) is sold around €9–10 per kg (including taxes) historically. In 2024, some reports indicated hydrogen at stations was about €7/kg due to temporary adjustments, but it’s expected to stabilize around €10–13/kg as new production comes online and subsidies phase out. This retail price is high because it includes compression to 700 bar, logistics, and low volume – not directly what an industrial user would pay, but it shows the upper end of the market. Industrial bulk hydrogen will be cheaper than transport fuel hydrogen.",faqLinks:[{text:"Fuel cell vehicles",message:"What are the benefits of hydrogen fuel cell vehicles?"},{text:"Hydrogen fueling stations",message:"How do hydrogen fueling stations work?"}]}]},{subtitle:"Current Offers and Trends in South Germany",blocks:[{text:"In southern Germany, green hydrogen supply is nascent. The Wunsiedel plant, for instance, is supplying local industries and fueling stations. While exact prices are confidential, one can infer that initial offtake agreements might be around €8/kg with a view to drop towards €5 as scale increases and as buyers get carbon credits. The Bavarian Hydrogen roadmap expects costs to fall and aims for locally produced H₂ to become competitive by late 2020s, targeting €5/kg or below by 2030. A PwC analysis noted green H₂ in some regions costs €3–8 present, and global projections (e.g. IEA) see possibly ~€5/kg in 2025 in best cases.",faqLinks:[{text:"Wunsiedel plant",message:"Tell me more about the Wunsiedel hydrogen plant."},{text:"Bavarian Hydrogen roadmap",message:"What are the key goals of the Bavarian Hydrogen roadmap?"}]}]},{subtitle:"Long-term Contracts",blocks:[{text:"Many industrial players (steel, chemicals) are signing long-term contracts for future hydrogen at agreed prices tied to indices or to natural gas prices plus a premium. For example, a chemical company might agree to pay the producer the equivalent of €50/MWh for H₂ energy (which is ~€1.67/kg H₂ per 10 MJ, obviously far below current cost) plus some green premium, with the rest c
1076overed by government support. If your project aligns with such a consumer, securing a long-term offtake contract (possibly with government underwriting via CCfD) could guarantee revenue. Without that, you might sell hydrogen on a spot or short-term basis to multiple users (like local SMEs for furnace or vehicle fuel), likely at the €6–7/kg range initially to recover costs.",faqLinks:[{text:"CCfD",message:"What are Contracts for Difference (CCfD) in the context of hydrogen?"}]}]},{subtitle:"Summary of Price Outlook",blocks:[{text:"In 2025, green hydrogen in Germany is roughly €6–7 per kg on average in wholesale terms. Southern Germany might be at the higher end if transport from north is needed, but producing locally avoids trucking cost (transporting H₂ by trailer adds about €1–2/kg for 300 km distance). If your project comes online quickly (“as soon as possible”), you’d be entering a market where early adopters are paying a premium, but numerous subsidies are available to offset that. Over the next few years, we expect prices to gradually decline to around €5/kg by the later 2020s as more capacity comes online and renewable electricity costs drop. Importantly, fossil fuel price fluctuations also matter: if natural gas prices rise or carbon prices increase, grey hydrogen could become more expensive, effectively raising the floor and making green H₂ relatively more competitive. For a business case: assume you can sell your green hydrogen at ~€7/kg in 2025, and aim for <€5/kg cost with subsidies, the project can be viable. Additionally, industries may assign extra value to green hydrogen in terms of CO₂ reduction (each kg H₂ used can avoid ~10 kg CO₂ if it replaces SMR hydrogen). In Europe’s carbon market, 10 kg CO₂ is worth about €8 (with CO₂ at ~€80/ton), so an industrial off-taker might rationalize paying a few euros more per kg for green H₂ knowing it helps meet emissions targets and avoid future penalties. Government instruments like the Hydrogen Bank essentially monetize that carbon value for the producer."}]}]},{title:"Conclusion",blocks:[{text:"You can expect to fetch on the order of €6–8 per kg for green hydrogen in the current market (industry, southern Germany), unless offset by contracts or subsidies that normalize it to ~€3/kg for the buyer. Staying informed on funding (which often includes price support) and building relationships with potential off-takers (e.g. local chemical companies, glass manufacturers, or logistics companies with hydrogen trucks) will be key to securing a favorable and stable price for your green hydrogen."}]}]}},{id:2,question:"How should I buy electricity for a 24/7 green hydrogen plant in Europe?",icon:"⚡",action:{description:"How to buy electricity for a Hydrogen Plant?",icon:gSt},tags:["Energy Procurement","Popular"],detailedAnswer:{summary:[{text:"Producing ~1 ton/day of hydrogen (≈55 MWh/day, 20 GWh/yr) requires a continuous 24/7 power supply. We compare three models – long-term renewable PPAs, wholesale spot market purchases, and onsite wind/solar – on cost, reliability, certification compliance, grid integration, and risk. Recent data (2024–2025) are used, with Europe-wide context."}],sections:[{title:"Cost Comparison",blocks:[{subtitle:"Long-term PPAs",blocks:[{text:"Recent European corporate PPAs for solar/wind average ~€60–65/MWh. PPA contracts usually include an escalating fixed price over 10–15 years.",faqLinks:[{text:"PPA",message:"What is a long-term renewable PPA?"}]}]},{subtitle:"Wholesale spot market",blocks:[{text:"EU day-ahead electricity prices averaged ~€80–82/MWh in 2024. Spot prices fluctuate hourly; negative-price events were common (∼17% of hours in 2024). Over a year, expect ~€70–90/MWh on average, but with spikes (e.g. >€100/MWh during high demand).",faqLinks:[{text:"Spot market",message:"How does the wholesale spot electricity market work?"}]}]},{subtitle:"Onsite renewables (own wind/solar)",blocks:[{text:"Utility-scale LCOE in Europe is falling. A 2024 German study finds onshore wind LCOE ≈€43–92/MWh and large PV LCOE ≈€41–144/MWh. In practice, new wind/solar plus financing/battery might yield ~€40–60/MWh marginal cost. Onsite power avoids retail and transmission fees, but requires high upfront CAPEX.",faqLinks:[{text:"Onsite wind/solar",message:"What are the pros and cons of onsite wind and s
1076olar for hydrogen projects?"}]}]},{table:{headers:["Metric","Long-Term PPA","Spot Market","Onsite Wind/Solar"],rows:[["Electricity price","~€60–65/MWh, fixed/escalator.","~€80 /MWh average (2024 EU day-ahead), highly volatile.","≈€40–60/MWh (new wind/solar LCOE), but CAPEX needed."],["Price risk","Low (fixed price), but locked in. Risk if market falls or developer defaults.","High (market volatility). Requires active hedging.","Fuel price “fixed” (free sun/wind), but interest/capex risk."],["Capital/Investment","OPEX model (no capex). May need credit/guarantees for term.","No capex; pay-as-you-go.","High CAPEX (€700–1,900/kW wind, €700–2,000/kW PV). Financing risk."],["Typical contract","10–15 yr PPA. PPA price may escalate or include bonuses.","Continuous market purchase, possibly via retailer or aggregator.","Self-owned asset or co-located IPP. Investment recouped via avoided power bills."],["Example reference","Solar PPA ~€63/MWh.","EU avg Day-Ahead ~€82/MWh.","Wind 43–92 €/MWh, PV 41–144 €/MWh."]]}}]},{title:"24/7 Availability & Reliability",blocks:[{subtitle:"PPAs",blocks:[{text:"PPAs typically procure output from intermittent renewables. They do not guarantee 24/7 on-demand power – the electrolyser must either be flexible or rely on the grid when wind/solar are low. If the electrolyser runs at steady full capacity, the PPA power would be injected to the grid first and the plant would draw from the grid for shortfalls. Thus, a PPA-based plan often requires either flexible electrolyser operation (ramping up on cheap, high-renewable hours) or additional storage/back-up."}]},{subtitle:"Spot market",blocks:[{text:"The grid can supply power anytime, so 24/7 operation is assured. However, running continuously means sometimes buying at high spot prices. The plant could curtail output during price spikes if it has tolerance, but true baseload hydrogen generally needs constant power. Some operators hedge by forward contracts or caps, but true spot-only supply carries high price risk for around-the-clock demand."}]},{subtitle:"Onsite renewables",blocks:[{text:"A standalone solar or wind array cannot provide 24/7 power without storage or grid tie. For example, solar yields nothing at night; wind fluctuates. To run 24/7, the plant must either (a) include batteries (very large, adding cost), (b) oversize capacity and sell excess when windy, or (c) grid-connect the site to import when generation is low. In practice, “onsite” often means a hybrid: the electrolyser takes onsite power first, then draws from the grid as needed. Onsite plants can directly feed the electrolyser when available, but require buffering (storage or grid) to smooth supply."}]},{subtitle:"Reliability",blocks:[{text:"Spot/grid ensures power always available but at variable price. PPA+grid mixes fixed supply with grid backup. Onsite alone would be unreliable without storage/grid tie."}]}]},{title:"Certification & Regulatory Compliance",blocks:[{text:"The EU’s Renewable Energy Directive II (RED II) and related Delegated Acts set strict rules for “renewable” hydrogen (RFNBO). Key points:",faqLinks:[{text:"RED II overview",message:"What are the key hydrogen rules in the EU Renewable Energy Directive II (RED II)?"},{text:"Delegated Acts",message:"What are the EU Delegated Acts on renewable hydrogen?"}]},{subtitle:"Additionality",blocks:[{text:"Electricity must come from newly built renewable capacity (no older, subsidized plants) to count as renewable hydrogen. The Delegated Act requires PPA-linked renewables built within 36 months of the electrolyser."}]},{subtitle:"Transitional grace",blocks:[{text:"Hydrogen projects can use PPAs with existing renewables only until 1 Jan 2028. After that, PPAs must be with new “additional” capacity. Onsite generation obviously creates new capacity and meets additionality."}]},{subtitle:"Temporal/Geographic Correlation",blocks:[{text:"Until end-2029, “same calendar month” matching between production and renewable generation suffices. From 2030 onward, stricter “same-hour” matching is required. (I.e., hydrogen must be produced at times when the contracted renewable is generating, unless prices are extremely low.) Geographically, the wind/solar asset must be in the same bidding zone (or highly correlated zone) as the electrolyser.",faqLinks:[{text:"Temporal correlation",message:"What is temporal correlation in hydrogen certification and how does it change after 2030?"},{text:"Geographic correlation",message:"What is geographic correlation in hydrogen certification under RED II?"}]}]},{subtitle:"Guarantees of Origin (GO) & Schemes",blocks:[{text:"EU-member schemes (like CertifHy) issue renewable hydrogen GOs. CertifHy’s EU RFNBO Scheme, now Commission-recognized, certifies that hydrogen meets RED II criteria. Using a GO/ certificate is mandatory for auditability. However, simple “book-and-claim” (buying grid energy + retiring GO) is insufficient to prove additionality under RED II after 2028. In practice:",list:["PPA-based hydrogen: If the PPA is with new wind/solar, the hydrogen can qualify as green (via GO + tracking). If with existing renewables (permitted only before 2028), it qualifies only until the 2028 cutoff.","Spot-market hydrogen: Buying grid power and retiring standard GOs generally does not meet the RED II “additionality” test. This means hydrogen produced purely from grid electricity (even with GOs) may not count as RFNBO under the new rules. Some reports note the EU explicitly “only allow renew
1076able energy developed onsite or through a PPA and recently constructed and unsubsidized to count” towards RFNBO","Onsite renewables: If the electrolyser is directly connected to new on-site wind/solar (and no other aid), its output fully qualifies as renewable hydrogen. This is the most straightforward way to meet certification (an islanded renewable-plus-electrolyser is inherently “additional”)."],faqLinks:[{text:"RED II",message:"What is the EU Renewable Energy Directive II (RED II) and how does it affect hydrogen?"},{text:"Guarantees of Origin",message:"What role do Guarantees of Origin play in renewable hydrogen certification?"},{text:"CertifHy scheme",message:"What is the CertifHy RFNBO certification scheme?"}]}]},{text:"Certification thus strongly favors PPAs with new projects or on-site new build. Traditional grid or spot purchases lack the “cause new RE” element and will not earn the RFNBO label under CertifHy/RED II. In practical terms, to claim green hydrogen status one needs either: (a) onsite dedicated renewables, or (b) long-term PPA from a new renewable project."}]},{title:"Grid Connection & Balancing",blocks:[{subtitle:"PPAs",blocks:[{text:"The electrolyser remains grid-connected like any industrial load. The renewable generator injects into the grid. In low-generation periods, the electrolyser draws from the grid as usual. If generation exceeds electrolyser demand, the excess goes to the grid (as with any RES offtake). No special balancing is needed on the electrolyser’s side, but the off-taker typically monitors generation vs consumption to meet CertifHy rules (e.g. producing H₂ in the same months the wind/solar ran).",faqLinks:[{text:"CertifHy compliance",message:"How do PPAs ensure hydrogen certification compliance under CertifHy rules?"},{text:"Grid-connected electrolyser",message:"How does a grid-connected electrolyser work under a PPA model?"}]}]},{subtitle:"Spot",blocks:[{text:"The grid supplies 100% of power. Balancing is handled by the market/TSOs. A hydrogen plant could help grid by ramping up in low-price/high-renewable periods and down (or off) in peak-price periods – potentially even earning from negative prices. But continuous 24/7 operation limits flexibility. Without storage, the plant would usually take whichever power the grid has, providing little balancing assistance.",faqLinks:[{text:"TSOs and balancing",message:"What role do Transmission System Operators (TSOs) play in hydrogen grid balancing?"},{text:"Negative prices",message:"How can hydrogen plants benefit from negative electricity prices?"}]}]},{subtitle:"Onsite",blocks:[{text:"If “behind the meter” (direct connection), the electrolyser uses onsite power first. Excess generation can either be curtailed or sold to the grid. When onsite generation falls, the electrolyser may draw from the grid if grid-tied (but those imports are not “renewable-certified”). Onsite projects may require grid interconnection for two-way flow (inject and import), increasing complexity. Building a micro-grid (isolated island) would avoid this but needs large storage. In any case, onsite systems must ensure grid stability (e.g. ride-through) per regulations.",faqLinks:[{text:"Behind-the-meter",message:"What does behind-the-meter mean for hydrogen electrolysers?"},{text:"Micro-grids",message:"What role can micro-grids play in onsite hydrogen production?"},{text:"Grid stability",message:"What grid stability requirements apply to onsite hydrogen systems?"}]}]},{title:"Grid impacts",text:"All models likely require a point of connection and compliance with transmission charges/regulations. Onsite-plus-grid hybrids might need separate metering. Large electrolyzers (>MW) also introduce ramping patterns; if run inflexibly they act as a base load, but flexible operation (to soak up renewable surplus) can aid system balancing."}]},{title:"Risk Exposure & Financing",blocks:[{subtitle:"Price Risk",blocks:[{text:"Spot-market buying bears high volatility – extraordinary price spikes (e.g. during winter peaks) can blow budgets. Hedging instruments (forwards, caps) may mitigate but add cost. PPAs hedge against volatility (fixed price), but if wholesale prices crash below the PPA rate, the buyer overpays. Onsite built capacity insulates the plant from commodity price swings (fuel is “free”), but depends on future permitting costs and market support changes.",faqLinks:[{text:"Spot market volatility",message:"Why is the spot electricity market r
1076isky for hydrogen projects?"},{text:"Hedging instruments",message:"What hedging instruments (forwards, caps) are used in hydrogen power procurement?"},{text:"PPAs and volatility",message:"How do PPAs protect hydrogen projects from price volatility?"}]}]},{subtitle:"Regulatory Risk",blocks:[{text:"The evolving RED II rules mean that, post-2028, only certain procurement counts. A hydrogen project buying on the spot without a compliant scheme may find its product not legally “renewable,” potentially losing subsidies or market access. Long-term PPAs signed today with existing capacity would fail for new projects after 2028. Changes in renewable subsidy or grid access rules could also impact new onsite projects.",faqLinks:[{text:"RED II rules",message:"What does the EU RED II directive mean for hydrogen certification after 2028?"},{text:"Subsidy eligibility",message:"How do changing subsidy rules affect hydrogen projects?"},{text:"Grid access regulations",message:"What grid access rules could impact hydrogen projects in Europe?"}]}]},{subtitle:"Counterparty/Credit Risk",blocks:[{text:"PPAs require a creditworthy developer and offtaker credit (bank guarantees, etc.). Large utilities or corporations typically stand behind PPAs, but project delays or defaults are possible. Spot market purchases depend on the retailer’s reliability and on-grid stability (though wholesale markets are mature). Onsite build involves contractor and technology risk; delays or cost overruns can be substantial. However, owning the asset avoids external supplier risk.",faqLinks:[{text:"Utilities as counterparties",message:"How do utilities or corporations back hydrogen PPAs?"},{text:"Contractor risk",message:"What contractor or technology risks exist in onsite hydrogen projects?"}]}]},{subtitle:"Financing",blocks:[{text:"PPAs are often attractive because the electrolyser can be financed on a balance sheet while the PPA is treated as an operating expense. Lenders may favor the stable contracted revenue stream of a PPA-backed electrolyzer. Spot-based projects lack this revenue certainty (unless linked to hydrogen sales contracts) and may face higher debt costs. Onsite generation means securing project finance for the renewable asset + electrolyzer. Such projects often need equity and long-term power/hydrogen sale contracts to be bankable. Grants or auctions (e.g. under EU schemes) may also influence financing.",faqLinks:[{text:"Lender requirements",message:"Why do lenders prefer PPA-backed hydrogen projects?"},{text:"EU hydrogen auctions",message:"What EU grant and auction schemes support hydrogen financing?"}]}]},{title:"Summary",text:"PPAs shift price risk to the supplier and simplify project finance, but tie the offtaker long-term. Spot purchasing is flexible but increases exposure to market swings. Onsite renewables reduce OPEX but require large upfront investment and carry build/permitting risk."}]},{title:"Comparison Table",blocks:[{table:{headers:["Factor","PPA (renewables)","Spot Market","Onsite Wind/Solar"],rows:[["Electricity cost","~€60–65/MWh fixed.","~€80–82/MWh avg. (2024).","~~€40–60/MWh LCOE for new wind/solar (after CAPEX)."],["Price volatility","Low (contract-fixed).","High. Variable hourly prices.","Low. No fuel cost, only capex/maintenance risk."],["Availability","Intermittent; needs grid backup.","Always available (24/7).","Variable; requires storage or grid-link."],["Certification","Qualifies if new renewable; existing only until 2028.","Does not meet new RED II additionality.","Easily qualifies; onsite capacity is additional."],["Grid connection","Standard on-grid connection.","Standard industrial 
1076connection.","May need dual connections or behind-the-meter."],["Balancing need","Depends on electrolyser flexibility.","Grid handles all balancing.","May require batteries or curtailment rules."],["CAPEX","None (only electrolyser).","None (only electrolyser).","High (renewable plant + electrolyser)."],["Financing","OPEX model; easier to finance.","OPEX; harder to bank debt.","Debt/equity project finance; qualifies as RE."],["Risk","Counterparty risk; locked rate vs market.","Market price/regulatory risk.","Construction/delay risk; lower market risk."],["Example","10–15 yr wind/solar PPA.","Market sales via utility.","Build 5 MW wind + 5 MW solar onsite."]]}}]},{title:"Recommendations & Hybrid Strategies",blocks:[{text:"A hybrid approach often makes sense. For example:"},{subtitle:"PPA + Spot",blocks:[{text:"Contract a baseline PPA (e.g. 50–75% of annual demand) from a new wind farm to secure low-rate, certified renewable energy. Meet remaining load via spot purchases. The PPA provides certificate-grade green supply; the spot component offers flexibility. On peak-price days, the electrolyzer could curtail or rely on the PPA share."}]},{subtitle:"PPA + Onsite",blocks:[{text:"Sign a long-term PPA and build some on-site capacity. Onsite renewables can supply a portion (especially daytime), reducing PPA volume needed. Excess onsite power (when renewable output > electrolyzer demand) could even be sold under the PPA or injected for GOs."}]},{subtitle:"Onsite + Spot",blocks:[{text:"If a PPA is hard to secure, build an on-site plant (e.g. wind farm). Run the electrolyzer on this and draw from the grid/spot as backup. Use the onsite output (with dedicated GO) for certification and count only the self-supply portion as “green” hydrogen. This minimizes dependence on the market but still provides 24/7 power via grid backup."}]},{title:"Key factors for any strategy",text:"Ensure certification compliance by meeting additionality and correlation rules. For example, if using spot, one could pair it with retirements of hourly renewable certificates (if such granular GOs become available) – though RED II currently mandates new capacity. Monitoring and documentation (e.g. via CertifHy registries) are essential.",faqLinks:[{text:"RED II compliance",message:"How does RED II affect hybrid hydrogen procurement strategies?"},{text:"CertifHy registries",message:"What role do CertifHy registries play in hydrogen certification?"}]},{text:"According to industry analysis, “hybrid PPAs with battery” are growing, allowing projects to mitigate negative prices and curtailment. Buyers are advised to “leverage a variety of forward curves” and consider solutions like accelerated PPAs or auctions. Also, large hydrogen consumers (e.g. tech companies) often prefer wind PPAs for their night-time profile.",faqLinks:[{text:"Hybrid PPAs",message:"What are hybrid PPAs and why are they used for hydrogen projects?"}]}]},{title:"Summary",blocks:[{text:"For the lowest guaranteed renewable qualification, onsite generation (new wind/solar) is strongest. PPAs offer an immediate route to green power (especially pre-2028) with moderate cost. Spot purchases offer flexibility and wide availability but will likely require supplementary measures to claim full “green” status. A blend (e.g. PPA covering base load + onsite/spot for peak) often balances cost and compliance. Stakeholders should align procurement strategy with RED II requirements (CertifHy or other recognized scheme) and consider financing trade-offs: e.g. using a PPA-backed electrolyzer loan vs. capital outlay for renewables."}]}]}},{id:3,question:"How can I find buyers and set a price for my hydrogen in Germany?",icon:"💶",action:{description:"How to find hydrogen buyers & set price?",icon:MSt},tags:["Market","Pricing"],detailedAnswer:{summary:[{title:"Hydrogen Off-takers and Market Overview (Germany, 2025)",text:"Industrial and power-sector companies actively seeking hydrogen in Germany include steelmakers, chemicals & refineries, utilities & power producers, and transport/mobility operators. These examples illustrate Germany’s emerging hydrogen customer base across chemicals, steel, refining and power."}],sections:[{title:"Potential Off-takers (Industry & Power)",blocks:[{subtitle:"Steelmakers",blocks:[{text:"Germany’s steel industry plans major H₂ demand (≈850 kt/yr by 2030). Key firms issuing hydrogen tenders include Salzgitter AG, Stahl-Holding-Saar, Thyssenkrupp Steel Europe and ArcelorMittal 
1076(Duisburg). They aim to use H₂ in direct reduced iron (DRI) or blast-furnace conversion.",faqLinks:[{text:"Steelmakers",message:"Which German steelmakers are planning hydrogen demand?"},{text:"DRI",message:"What is direct reduced iron (DRI) and how does it use hydrogen?"}]}]},{subtitle:"Chemicals & Refinery: ",blocks:[{text:"Major chemical complexes use hydrogen as feedstock. For example, BASF (Ludwigshafen) – the world’s largest chemical site – is commissioning a 54 MW electrolyser producing ~1 t H₂/hr for its plant. Evonik, Covestro, Wacker Chemie and Bayer are also hydrogen consumers. German refineries and petrochemical sites (e.g. TotalEnergies in Leuna, BP in Gelsenkirchen, Shell in Hamburg) use hydrogen for processing and are transitioning to low-carbon H₂. Notably, RWE will supply TotalEnergies (Leuna) with 30,000 t/yr of green H₂ under a 15-year offtake agreement. Contacts: refinery or site managers; or media relations (e.g. BASF Media Relations).",faqLinks:[{text:"BASF",message:"What is BASF’s hydrogen strategy in Ludwigshafen?"},{text:"TotalEnergies Leuna",message:"What hydrogen deal does TotalEnergies Leuna have with RWE?"}]}]},{subtitle:"Utilities & Power",blocks:[{text:"Power producers plan H₂-blending and storage. Uniper and RWE (also hydrogen producers) have signalled interest: e.g. RWE’s Lingen electrolyser will feed Total’s refinery. Stadtwerke (municipal utilities) and gas turbine operators (EnBW, E.ON, VNG) are exploring H₂ co-firing. H2 MOBILITY (fleet refueling network) is a major offtaker of low-carbon H₂ for transport, via multi-year supply contracts.",faqLinks:[{text:"Uniper",message:"What role does Uniper play in hydrogen power generation?"},{text:"H2 MOBILITY",message:"What is H2 MOBILITY’s role in Germany’s hydrogen market?"}]}]},{text:"These examples illustrate Germany’s emerging hydrogen customer base across chemicals, steel, refining and power. (See Table below for a summary.)"},{table:{headers:["Company","Sector","Hydrogen Use / Offtake (Examples)","Engagement Channel"],rows:[["Salzgitter AG","Steel (Kassel)","Planning large-scale H₂ for DRI (sourced via pipeline)","Procurement / Sustainability team"],["Thyssenkrupp Steel Europe","Steel (Duisburg)","Trialing H₂ direct reduction; issued H₂ supply tenders","Procurement / Press"],["Stahl-Holding-Saar","Steel (Völklingen)","Working on H₂-ready blast furnace (SALCOS project); H₂ sourcing needed","Corporate contacts"],["ArcelorMittal (D) GmbH","Steel (Duisburg)","Steelmaker seeking low-carbon H₂ for DRI and blast furnaces","Communications department"],["BASF SE (Ludwigshafen)","Chemicals","Largest chemical complex; producing 1 t/hr green H₂ on-site; needs H₂ feedstock","Media Relations / Procurement"],["Evonik Industries AG","Chemicals","Specialty chemicals; connected to H₂ pipelines; wants low-carbon H₂ for operations","Procurement"],["Covestro AG","Polymers/Chemicals","Plastics producer exploring H₂ for feedstock (CCU)","Procurement"],["Wacker Chemie AG","Chemicals (silicones)","Uses hydrogen in production; pursuing decarbonization","Sustainability team"],["TotalEnergies (Leuna)","Refining/Petrochem","Refinery needing ~30,000 t/yr green H₂ (15-yr contract with RWE)","Procurement"],["BP Europa SE","Refining (Gelsenk.)","Refinery transitioning to green H₂ (own electrolyser in development)","Procurement"],["Shell Deutschland","Refining (Hamburg)","Operates hydrogen electrolysers (Refhyne projects) for refinery and e-fuels","Procurement"],["Uniper SE","Power Generation","Power producer converting plants to H₂ (Wilhelmshaven); trade of H₂","Procurement"],["RWE AG","Power Generation","Producing green H₂ (Lingen); long-term offtake to Total","Procurement"],["H2 MOBILITY Deutschland","Transport / Mobility","Hydrogen fueling network; buys low-carbon H₂ for ~100 HRS (stations)","Partner Relations"],["HeidelbergCement AG","Cement (Heidelberg)","Pilot H₂ for cement kilns; seeks low-carbon H₂ / H₂-blended fuels","Procurement"]]}}]},{title:"Pricing Benchmarks (€/kg)",blocks:[{subtitle:"Grey Hydrogen",blocks:[{text:"Produced by steam methane reforming (SMR) without CCS; current European spot market or merchant prices are roughly €1–2/kg, mirroring natural gas prices (US $1–2/kg equivalent).",faqLinks:[{text:"Grey hydrogen",message:"What is grey hydrogen and its price in Europe?"}]}]},{subtitle:"Blue Hydrogen",blocks:[{text:"SMR with carbon capture (SMR+CCS). Production costs are higher (~€1.5–3/kg) due to capture and storage. Levelized cost analysis shows SMR+CCS at ~€4.4/kg in Europe (2023), reflecting current gas and CO₂ prices. Actual sale prices may be similar to grey but slightly higher, depending on CCS costs. The IEA notes blue H₂ costs in Europe “around €1.50 per kilo” (with policy supp
1076ort needed).",faqLinks:[{text:"Blue hydrogen",message:"What is blue hydrogen and how much does it cost?"}]}]},{subtitle:"Green Hydrogen",blocks:[{text:"Produced by electrolysis with renewables. Costs are currently higher, roughly €3–7/kg (depending on electricity price, electrolyzer efficiency and capacity factor). Clean-Hydrogen-Observatory data show average electrolytic H₂ costs ~€7.9/kg (range €4.1–17.4) using grid power. Offshore wind or solar projects can reduce this; ongoing auctions (EU Hydrogen Bank) saw winning bids implying support needed below €4.50/kg. By 2030, domestic green H₂ in Germany may approach €2–4/kg as scale and cheap renewables improve.",faqLinks:[{text:"Green hydrogen",message:"What is green hydrogen and what are its current and future costs?"}]}]},{text:"Regionally, piped H₂ imports (e.g. from Scandinavia or Benelux) could be <€1/kg due to low-cost power, while shipping (liquid H₂, ammonia, e-methane) often implies higher delivered costs (green ammonia or methane ~€2–5/kg H₂ equivalent). In summary, expect ~€1–3/kg for low-carbon hydrogen in Germany’s market today (blue around €2–3, green €4–6), falling over time with scale and subsidies."}]},{title:"Contractual Structures and Pricing Models",blocks:[{subtitle:"Fixed-price Long-term Offtake",blocks:[{text:"A fixed €/kg price is agreed for the contract term (often 10–15 years). Example: RWE’s 15-year deal to sell 30,000 t/yr of green H₂ to TotalEnergies. Pros: revenue certainty for both parties, easier financing; Cons: if production costs fall or energy prices drop, seller may be undercompensated and buyer overpays. Locking in early is risky, but a first-mover may accept this for stable returns.",faqLinks:[{text:"Fixed-price offtake",message:"What is a fixed-price hydrogen offtake contract?"},{text:"RWE–TotalEnergies deal",message:"What are the details of RWE’s long-term green hydrogen deal with TotalEnergies?"}]}]},{subtitle:"Indexed/Variable-price Offtake",blocks:[{text:"Price is tied to an index (e.g. natural gas, electricity, CPI or an industry fuel). This shares market risk. For example, a contract could index H₂ to the regional gas price (common if H₂ replaces NG) or to an emissions allowance price. Pros: adapts to cost and demand changes; Cons: introduces price volatility and complexity in contract.",faqLinks:[{text:"Indexed pricing",message:"What does an indexed or variable-price hydrogen contract mean?"},{text:"Gas-linked contracts",message:"How are hydrogen prices linked to natural gas or electricity indexes?"}]}]},{subtitle:"Hybrid Cost-plus Models",blocks:[{text:"A floor price plus variable component (e.g. covering producer’s OPEX/CAPEX plus a margin). This can include pass-through of input costs (water, power). It balances risk-sharing but requires transparent cost data.",faqLinks:[{text:"Cost-plus model",message:"What is a hybrid cost-plus hydrogen contract?"},{text:"Risk-sharing",message:"How do cost-plus models balance risk between buyer and seller?"},{text:"Transparency requirement",message:"Why do cost-plus hydrogen contracts require cost transparency?"}]}]},{subtitle:"Premium/Subsidized (CfD-like) Contracts",blocks:[{text:"Used when government support bridges the gap. Under Germany’s H₂Global or EU Hydrogen Bank schemes, producers receive a subsidy premium per kg. The buyer essentially pays a fixed price, while an intermediary (government) tops up to a strike price. Pros: greatly reduces buyer cost/risk, enabling green H₂ uptake; Cons: depends on public funding and complex tender processes.",faqLinks:[{text:"CfD contracts",message:"What are premium or CfD-like hydrogen contracts?"},{text:"H2Global scheme",message:"How does Germany’s H2Global scheme support hydrogen contracts?"},{text:"EU Hydrogen Bank",message:"What role does the EU Hydrogen Bank play in subsidizing hydrogen offtake?"}]}]},{subtitle:"Short-term/Spot Contracts (Hydrogen Service Agreements)",blocks:[{text:"For flexibility, some offtakers use shorter deals (1–2 years) or spot purchases on emerging H₂ trading platforms. Germany’s H2Global even uses short-term “Hydrogen Service Agreements” to resell H₂. Pros: flexible volume/price, no long commitment; Cons: harder to secure supply or finance production, and prices can swing.",faqLinks:[{text:"Short-term contracts",message:"What are short-term hydrogen service agreements (HSAs)?"},{text:"Spot trading",message:"How does spot trading of hydrogen work in Germany?"}]}]},{table:{headers:["Contract Structure","Pricing Mechanism","Term","Pros","Cons"],rows:[["Fixed-price PPA (HPA)","Fixed €/kg over full term","~10–15 yrs","Certainty of revenue/costs; bankable finance","Price/risk mismatch if market shifts; inflation risk"],["Indexed/Dynamic PPA","Price linked to index (gas, electricity, CPI)","~10 yrs","Follows market costs (fuel price parity)","Volatile prices; complex indexing formula"],["Cost-plus / Hybrid PPA","Fixed + variable (covers CAPEX+OPEX)","~10 yrs","Covers producer costs; adapts to input changes","Requires cost transparency; less upside if prices rise much"],["Subsidy-bridged (CfD/Premium)","Buyer pays market price; govt. pays gap","~10 yrs","Low buyer price;
1076 supports green H₂ rollout","Dependent on limited public funds; regulatory complexity"],["Short-term Contract (HSA)","Spot or short-term market price","1–3 yrs","Flexibility; no long commitment","Supply uncertainty; price risk; hard to finance projects"]]}}]},{title:"Regulations, Subsidies & Certification",blocks:[{subtitle:"Hydrogen Definitions & Certification",blocks:[{text:"Green hydrogen (RFNBO) must meet EU RED II sustainability criteria (≥70% GHG reduction). Germany is implementing EU delegated acts and recognizing voluntary certification schemes (e.g. CertifHy, ISCC, Redcert) via the Umweltbundesamt. Certified producers can issue “Proof of Sustainability” certificates and earn incentives. Blue hydrogen (with CCS) is not classified as renewable under RED II; it is treated as “low-carbon hydrogen” but currently gets no special premium.",faqLinks:[{text:"Green hydrogen certification",message:"What are the EU RED II certification rules for green hydrogen?"},{text:"Proof of Sustainability",message:"What is a Proof of Sustainability certificate for hydrogen producers?"},{text:"Blue hydrogen classification",message:"Why is blue hydrogen not considered renewable under RED II?"}]}]},{subtitle:"Incentives & Subsidies",blocks:[{text:"Germany offers several support schemes: the H2Global program awards long-term purchase subsidies for green H₂ (via auctioned tender, €3.5 bn funding). The EU’s Hydrogen Bank similarly provides up to €4.5/kg premium on contracts. For industrial users, Germany has introduced Carbon Contracts for Difference (CCfD): 15-year contracts where the government pays the difference between clean H₂ costs and grey H₂ costs, focusing on steel and chemicals. Under the fuel emissions quota law, suppliers using RFNBO hydrogen can earn credits (e.g. €3/kg bonus under the THG-Quota), incentivizing renewable H₂ uptake.",faqLinks:[{text:"H2Global program",message:"What is Germany’s H2Global program for hydrogen subsidies?"},{text:"EU Hydrogen Bank",message:"How does the EU Hydrogen Bank support hydrogen contracts?"},{text:"Carbon Contracts for Difference",message:"What are Carbon Contracts for Difference (CCfDs) in Germany?"}]}]},{subtitle:"Network Access & Permitting",blocks:[{text:"Recent legal updates accelerate hydrogen infrastructure. Amendments to the Energy Industry Act (End 2023) created a designated national H₂ “core network” with priority connection for major producers/consumers. The Hydrogen Acceleration Act (2024) and related regulations are streamlining permitting for production, storage and pipeline projects. All new electrolyzers and pipelines require regulatory approval; many existing gas TSOs must adapt for H₂. H₂-ready requirements were added to LNG terminal permits, ensuring imported hydrogen can be handled.",faqLinks:[{text:"Hydrogen core network",message:"What is Germany’s hydrogen core network under the Energy Industry Act?"},{text:"Hydrogen Acceleration Act",message:"What does the Hydrogen Acceleration Act of 2024 include?"},{text:"Permitting rules",message:"What are the permitting requirements for new hydrogen infrastructure in Germany?"}]}]},{subtitle:"Carbon Pricing",blocks:[{text:"Hydrogen production and use in industry is indirectly regulated by the EU Emissions Trading System (ETS). Grey H₂ producers currently pay full CO₂ prices (no free allowances for hydrogen). Germany is also developing its own national CCfD auctions (March 2024 start) to fund H₂ in heavy industry, covering CAPEX/OPEX gaps.",faqLinks:[{text:"EU ETS",message:"How does the EU Emissions Trading System (ETS) affect hydrogen production?"},{text:"CO₂ costs for grey hydrogen",message:"Why do grey hydrogen producers pay full CO₂ prices?"},{text:"Germany CCfD auctions",message:"What are Germany’s national CCfD auctions for hydrogen?"}]}]}]},{title:"Off-taker Discovery & Networking Channels",blocks:[{subtitle:"Government Platforms",blocks:[{text:"The EU’s new Energy & Raw Materials Platform (launched July 2025) will match H₂ suppliers and buyers across Europe. Germany’s NOW GmbH (national H₂ agency) and BMWK (economics ministry) host newsletters, project databases and matchmaking events. The H2Global auction portal (via Hint.Co) publishes tender calls and selected offtakers.",faqLinks:[{text:"EU Energy & Raw Materials Platform",message:"What is the EU Energy & Raw Materials Platform for hydrogen matchmaking?"},{text:"NOW GmbH",message:"What role does NOW GmbH play in Germany’s hydrogen industry?"},{text:"BMWK",message:"How does Germany’s BMWK support hydrogen projects and matchmaking?"}]}]},{subtitle:"Industry Associations & Alliances",blocks:[{text:"German and EU 
1076industry groups provide networking: DWV (Deutscher Wasserstoff-Verband), Hydrogen Europe, VDMA Fuel Cell & Hydrogen, BDEW (energy utilities), H2 Mobility, NOW GmbH and regional H₂ clusters (e.g. H2.NRW, H2.BW, Renewable Energy Hamburg Cluster). These organizations hold conferences and facilitate partner searches (e.g. via working groups and directories). The EU’s Clean Hydrogen Alliance and emerging “Hydrogen Valley” networks also connect producers and consumers.",faqLinks:[{text:"DWV",message:"What is the Deutscher Wasserstoff-Verband (DWV)?"},{text:"VDMA Fuel Cell & Hydrogen",message:"What is the VDMA Fuel Cell & Hydrogen initiative?"},{text:"BDEW",message:"How is BDEW involved in hydrogen and energy utilities?"},{text:"H2 Mobility",message:"What is H2 Mobility and what does it do?"},{text:"EU Clean Hydrogen Alliance",message:"What is the EU Clean Hydrogen Alliance?"}]}]},{subtitle:"Trade Fairs & Conferences",blocks:[{text:"Major events include Hannover Messe (Hydrogen Technology Hall), HyFcell / Fuel Cells + H2 (Stuttgart), Hydrogen Technology World Expo (Hamburg, Oct 2025), European Hydrogen Week (Brussels), WindEnergy Hamburg, and industry forums (e.g. H2 Global Summit). These gatherings draw stakeholders across the value chain and often have matchmaking sessions.",faqLinks:[{text:"HyFcell",message:"What is the HyFcell / Fuel Cells + H2 conference about?"},{text:"Hydrogen Technology World Expo",message:"What happens at the Hydrogen Technology World Expo in Hamburg?"},{text:"European Hydrogen Week",message:"What is European Hydrogen Week in Brussels?"},{text:"WindEnergy Hamburg",message:"What is WindEnergy Hamburg and how does it cover hydrogen?"},{text:"H2 Global Summit",message:"What is the H2 Global Summit?"}]}]},{subtitle:"Online Platforms",blocks:[{text:"Several digital hubs list projects and allow outreach: e.g., H2Valleys Map (h2v.eu) and hydrogen business networks. EEX and other exchanges are developing H₂ trading platforms. Companies also use professional networks (LinkedIn groups, Clean Energy Wire) to announce projects and seek partners.",faqLinks:[{text:"EEX trading",message:"What is the European Energy Exchange (EEX) doing with hydrogen trading?"},{text:"Clean Energy Wire",message:"What is Clean Energy Wire and how does it support hydrogen outreach?"}]}]},{subtitle:"Consortia and Local Initiatives",blocks:[{text:"Regional clean energy agencies often sponsor H₂ matchmakings. For example, Agora Energiewende, Fraunhofer Institute, or FNR (renewables agency) organize B2B events. Also monitor R&D clusters and bilateral corridors (Nordic, UK-Germany) as potential leads.",faqLinks:[{text:"Agora Energiewende",message:"What is Agora Energiewende and how does it support hydrogen projects?"},{text:"Fraunhofer Institute",message:"How is the Fraunhofer Institute involved in hydrogen research and networking?"},{text:"FNR",message:"What is the role of FNR (renewables agency) in hydrogen initiatives?"},{text:"Nordic–Germany corridor",message:"What hydrogen cooperation exists between Nordic countries and Germany?"},{text:"UK–Germany corridor",message:"What hydrogen cooperation exists between the UK and Germany?"}]}]}]}]}},{id:4,question:"How can I design and size an optimal green hydrogen project using wind, solar, and electrolyzer integration?",icon:"💧",action:{description:"What are the key steps to plan and develop a green hydrogen project?",icon:wSt},tags:["Sustainability","Green Hydrogen","Renewables"],detailedAnswer:{summary:[{text:"This guide supports project teams in optimizing electrolyzer sizing relative to wind and solar portfolios at four reference locations: Amarillo (Texas), Larissa (Greece), Rajkot (India), and Fraserburgh (Scotland). It provides a structured, Q&A-style workflow to gather inputs, quantify hydrogen production, evaluate grid exports, and assess contract-compliance (minimum guaranteed supply) and shortfalls requiring external purchases. Templates and tables are included to capture inputs (single values and time series) and to document results suitable for engineering review.",faqLinks:[{text:"Electrolyzer sizing",message:"How can project teams optimize electrolyzer sizing for different wind and s
1076olar sites?"}]}],sections:[{title:"Project Context and Objectives",blocks:[{text:"Purpose: Establish the project setting, constraints, and integration needs. Capture whether the project is greenfield or must fit into an existing energy scheme (e.g., step-wise replacement of fossil power). "},{subtitle:"Template: Project Basics ",blocks:[{table:{headers:["Input Parameter ","Details / Guidance "],rows:[["Location ","City, country, resource context (wind/solar), proximity to load/offtaker"],["Project Type","New-build or integration into existing scheme"],["Existing Infrastructure","Grid connection capacity, retiring fossil units, local loads"],["Water Availability","Source, treatment needs, volume for electrolysis"],["Land & Permits ","Land status, permits, environmental constraints"]]}}]},{subtitle:"",blocks:[{text:"The location dictates seasonal/diurnal patterns and complementarity of wind and solar."}]}]},{title:"Renewable Resource Assessment",blocks:[{text:"Collect site-specific wind and solar data (hourly preferred). Estimate capacity factors (CF) and examine the correlation between wind and solar to understand complementarity.",faqLinks:[{text:"Wind-solar correlation",message:"Why is understanding the correlation between wind and solar important for optimizing electrolyzer operation?"}]},{subtitle:"Template: Renewable Resource Inputs",blocks:[{table:{headers:["Renewable Resource","Site Estimate / Data","Notes"],rows:[["Wind CF (annual)","e.g., 0.40 ","High winds spring/fall, often nocturnal peaks"],["Solar CF (annual)","e.g., 0.20 ","High summer output, winter reduction"],["Wind–Solar Correlation","Low/Negative/High","Complementarity improves electrolyzer utilization"],["Historical Generation","MWh/yr per MW (wind & PV)","Based on reanalysis or met mast"],["Data Sources","e.g., NREL, ECMWF, national TSO datasets","Provide years, resolution, anomalies"]]}}]}]},{title:"Electrolyzer Sizing and Operation",blocks:[{text:"Define electrolyzer capacity and technology (PEM/Alkaline), efficiency (kWh/kg H₂), and operational strategy. Consider batteries or short-term storage only where cost-effective to raise utilization or meet guaranteed minima.",faqLinks:[{text:"Electrolyzer efficiency",message:"How does efficiency (kWh/kg H₂) influence overall hydrogen production economics?"}]},{subtitle:"Template: Electrolyzer Specifications",blocks:[{table:{headers:["Electrolyzer Spec ","Project Input","Notes"],rows:[["Nameplate Capacity (MW)","-","Peak DC power"],["Technology ","-","PEM (fast ramp) or Alkaline (lower CAPEX)"],["Efficiency (kWh/kg H₂)","e.g., 50–55","Include BoP and water treatment loads"],["Operation Mode","Flexible/Continuous","Ramp strategy vs. baseload"],["Auxiliary Storage","Battery, Yes/No, MWh","Charging rules and set-points"]]}}]}]},{title:"Offtake and Market Considerations",blocks:[{text:"Document the buyer(s), delivery profile, and commercial constraints (minimum guaranteed supply, maximum off-take caps, pricing). These terms directly impact sizing and the need for backup supply or curtailment.",faqLinks:[{text:"Hydrogen market constraints",message:"How do minimum guaranteed supply and maximum off-take caps influence project planning?"}]},{subtitle:"Template: Offtake Terms",blocks:[{table:{headers:["Offtake Term","Notes"],rows:[["Primary Offtaker","Refinery, steel, ammonia, mobility, etc."],["Contract Duration (years)","Target long-term"],["Minimum Commitment (t/day or t/yr)","Take-or-pay "],["Maximum Cap (t/day or t/yr) ","If applicable "],["Pricing Structure","Fixed/indexed, escalation, penalties "],["Backup Options","Third-party H₂, pipeline, LOHC, ammonia"]]}}]}]},{title:"Hydrogen Production, Grid Export, and Guarantees",blocks:[{text:"Using hourly wind/solar inputs and electrolyzer constraints, simulate H₂ production, residual power export, and shortfalls. Evaluate minimum daily/weekly output and compare against contractual guarantees",faqLinks:[{text:"Renewable simulation",message:"How do wind and solar variations impact hydrogen production and grid export modeling?"}]},{subtitle:"Key Metrics & Calculations ",blocks:[{table:{headers:["Metric","Definition / Calculation"],rows:[["Annual H₂ Production (t/yr) ","Σ hourly_H₂_kg / 1000 "],["Average Utilization (%) ","(Annual kWh to H₂) / (Elec MW × 8760) × 100% "],["Residual Electricity (MWh/yr) ","Σ max(P_renew – ElecCap, 0)"],["Min Daily H₂ (kg/day)","Minimum 24h rolling H₂ (or 5th percentile) "],["Guaranteed Supply (t/day)","Contract minimum vs. simulated minimum"],["Curtailed H₂ (t/yr) ","Potential H₂ constrained by offtake cap "],["H₂ to Purchase (t/yr)","Required – Actual when Actual < Required"]]}}]}]},{title:"Region-Specific Notes",blocks:[{text:"Amarillo, Texas: Strong wind (often 30–50% CF) and good solar (~20% CF). Night-time wind sustains H₂ production; watch winter solar lulls.",faqLinks:[{text:"Texas H₂",message:"How suitable is Amarillo, Texas for renewable-powered hydrogen projects?"},{text:"Amarillo",message:"What advantages does Amarillo’s strong wind and moderate solar mix offer for continuous hydrogen generation?"}]},{text:"Larissa, Greece: Excellent solar; wind often complements solar (negative correlation), smoothing overall generation and improving electrolyzer utilization.",faqLinks:[{text:"Larissa solar-wind synergy",message:"How does the negative correlation between wind and s
1076olar in Larissa enhance renewable hydrogen reliability?"},{text:"Greece H₂ potential",message:"Why is Larissa, Greece well-suited for solar-driven hydrogen projects?"}]},{text:"Rajkot, India (Gujarat): High solar with monsoon season winds; proximity to very large refinery implies strong, potentially uncapped hydrogen demand. ",faqLinks:[{text:"Gujarat H₂ demand",message:"How does proximity to a large refinery affect hydrogen demand and electrolyzer sizing?"},{text:"Rajkot solar + monsoon wind",message:"How do solar and seasonal wind patterns impact continuous hydrogen generation?"}]},{text:"Fraserburgh, Scotland: Exceptional wind resource; solar weak. Expect wind-dominated profiles with storm-driven surpluses and occasional calm spells. ",faqLinks:[{text:"Scotland wind H₂",message:"How can hydrogen production be optimized in wind-dominated regions like Fraserburgh?"},{text:"Wind surplus management",message:"How should storm-driven surpluses and calm spells be managed for continuous hydrogen generation?"}]}]}]}},{id:5,question:"What are factors to identify good locations for a hydrogen production plant?",icon:"🗺️",action:{description:"What factors determine a good location for a hydrogen plant?",icon:ISt},tags:["Location Analysis","Exploration"],detailedAnswer:{summary:[{text:"You can find below a scoring approach using three representative projects with publicly known characteristics: REFHYNE (Shell, Germany), H2H Saltend (Equinor, UK), and HyDeal (Pan-European solar-to-hydrogen ambition). The goal is a sanity check: apply the same factor groups and weights and estimate a composite score. The scores below are illustrative approximations based on published project facts.",faqLinks:[{text:"H₂ project scoring",message:"How can a scoring approach using REFHYNE, H2H Saltend, and HyDeal help evaluate and compare hydrogen projects?"},{text:"Reference project comparison",message:"What factors and weights are used to compare hydrogen projects like REFHYNE, H2H Saltend, and HyDeal?"}]}],sections:[{title:"Project 1 — REFHYNE (Rheinland refinery, Germany): ",blocks:[{text:"REFHYNE I was a 10 MW PEM electrolyser at Shell’s Rheinland refinery (operational from 2021) and REFHYNE II (planned 100 MW) follows refinery sites give strong industrial offtake and pipeline connectivity, good water supply and grid access.",faqLinks:[{text:"REFHYNE electrolyzer",message:"What are the key features and advantages of REFHYNE I and II PEM electrolyzers at Shell’s Rheinland refinery?"}]},{subtitle:"",blocks:[{text:"Estimated composite score (using the tool’s scheme): ≈72.3 /100 → 7.2 /10."}]}]},{title:"Project 2 — H2H Saltend (Saltend Chemicals Park, UK): ",blocks:[{text:"H2H Saltend is a planned large-scale (up to 600 MW low-carbon H₂ with CCS) project located in a major industrial cluster at Saltend, granted planning permission and sited beside strong off-taker demand and existing industrial infrastructure. The facility emphasizes low-carbon hydrogen with CCS rather than purely electrolytic green H₂, but the site characteristics are comparable for siting exercises (industrial zoning, pipeline & port access, grid connection).",faqLinks:[{text:"H2H Saltend project",message:"What are the key features and site advantages of the H2H Saltend low-carbon hydrogen project?"}]},{subtitle:"",blocks:[{text:"Estimated composite score: ≈71.1 /100 → 7.1 /10."}]}]},{title:"Project 3 — HyDeal Ambition (Spain / multi-country): ",blocks:[{text:"HyDeal aims to develop very large-scale solar PV + electrolysis in Spain and nearby regions, with very strong solar resource and large planned electrolyser capacity but with challenges in transport/pipeline infrastructure and local offtake concentration.",faqLinks:[{text:"HyDeal solar H₂",message:"What are the main strengths and challenges of the HyDeal large-scale solar-to-hydrogen project in Spain?"}]},{subtitle:"",blocks:[{text:"Estimated composite score: ≈60.8 /100 → 6.1 /10."},{text:"Interpretation: The validation suggests that the scoring engine produces plausible relative outcomes: industrial refinery/hub sites with existing hydrogen networks (REFHYNE, Saltend) score strongly in infrastru
1076cture and demand even if their renewable resource scores are moderate; resource-dominant projects (HyDeal) score high on renewable potential but face larger infrastructure/demand penalties that reduce the overall composite score. "},{text:"Limitations: These are approximate validations based on public project summaries and not on exhaustive technical due diligence. The tool should allow tuneable weights and be validated further against more projects and measured project economics. "}]}]}]}},{id:6,question:"How to design a 10 MW Hydrogen Plant in Europe?",icon:"🏗️",action:{description:"How to design a 10 MW Green Hydrogen Plant in Europe?",icon:vSt},tags:["Solar Hydrogen","Renewables","Project Design"],detailedAnswer:{summary:[{text:"A 10 MW electrolytic hydrogen plant sized for Europe must align renewable generation (PV, wind) with hydrogen demand. A simple approach is to equate average renewable power to electrolyzer needs.",faqLinks:[{text:"Electrolyzer sizing Europe",message:"How should a 10 MW electrolytic hydrogen plant in Europe be sized to align renewable generation with hydrogen demand?"}]},{text:"E=1/2 S+ 1/2 W (MW)"},{text:"where S and W are PV and wind. This implies, e.g. roughly 20 MW of solar (with no wind) to run a 10 MW electrolyzer. In practice, designers often oversize generation relative to the electrolyzer so as to maximize operating hours and then curtail peak power. For instance, simulations paired a 10 MW PV array with an 8.2 MW electrolyzer and found that shaving ~15% of PV peaks cost only ~3% of the hydrogen. Battery storage can also be added to buffer intermittent output one design guideline was to size storage around 12× the electrolyzer capacity (in MWh) to smooth. In summary, use detailed hourly solar/wind yield data to match generation and electrolyzer size, possibly oversizing renewables and adding batteries to raise the electrolyzer capacity.",faqLinks:[{text:"Electrolyzer-gen matching",message:"How should PV and wind generation be sized relative to an electrolyzer, and what role can battery storage play in smoothing output?"},{text:"zentech",message:"What design recommendations have been reported by Zentech and Griffith for hydrogen production systems?"}]}],sections:[{title:"",blocks:[{text:"The site selection should prioritize existing industrial locations with strong renewable resources and infrastructure. Most hydrogen today is produced very near its point of use – transported only by trailer or pipeline when needed – so co‐locating the plant at a large consumer of hydrogen (e.g. a refinery, steel mill or chemical site) minimizes costly transport. Critical factors include abundant wind or sun (to maximize generation capacity factor), a reliable high-capacity grid connection (for importing/exporting power and ensuring continuous operation), and ample ultrapure water (electrolysis requires ~9–10 L of water per kg, about 9 kg H₂O/kg H₂ stoichiometric). Building at an existing site often provides grid hookups, cooling water, and logistics infrastructure.",faqLinks:[{text:"H₂ plant site selection",message:"What are the key factors in selecting an industrial site for a hydrogen plant, including renewable resources, grid access, and water supply?"},{text:"Industrial co-location",message:"Why is it advantageous to co-locate hydrogen production near large consumers like refineries or steel mills?"}]},{subtitle:"Dynamic operation.",blocks:[{text:"Modern electrolyzers (especially PEM) can handle variable power fairly well. Studies report that the electrical ramp‐rate of PEM stacks is fast and has only minor impact. However, thermal and pressure dynamics are slower. Each electrolyzer has operational limits: for example, a minimum load for safety. Frequent cycling (on/off) introduces issues. If a stack sits idle with residual H₂/O₂, it can act as a fuel cell on restart, accelerating degradation. Catalyst oxidation during shutdown and reverse current can also wear cells. In practice, careful control (e.g. applying a small purge current or keeping stacks pressurized with protective loops) is needed during shutdown and restart. Proper operation is key: research f
1076inds no inherent harm from variability if done correctly, but misuse (high current spikes, leaving stacks at open-circuit, etc.) causes degradation. Many large plants remain grid-tied so they can draw firm power and avoid deep cycling, smaller off-grid systems may use batteries or supervisory controls to smooth the input. In summary, PEM (and alkaline) systems can run dynamically with solar/wind, but designers must respect operational ranges, provide safe shutdown procedures, and possibly add storage buffers to mitigate intermittency. ",faqLinks:[{text:"Electrolyzer dynamic operation",message:"How do modern PEM electrolyzers handle variable power from solar and wind, and what operational precautions are needed to avoid degradation?"},{text:"Shutdown and restart issues",message:"Why do shutdowns and residual H₂/O₂ pose risks to electrolyzer stacks, and how are they mitigated?"}]}]}]},{title:"Production Routes: Pure H₂ VS Hydrogen Derivatives ",blocks:[{text:"Green hydrogen can be used directly in many industrial and transport applications, or converted into “derivatives” for harder-to-electrify sectors. For on-site industrial uses (heat, process gas, fuel-cell vehicles) pure H₂ is typically most efficient – burning or reacting H₂ directly avoids the losses of additional synthesis steps. However, in sectors like shipping or aviation, liquid fuels are preferred. In those cases H₂ is often converted: for example, green ammonia is made by combining H₂ with N₂ via Haber–Bosch, yielding a zero-carbon fuel/chemical feedstock for shipping and fertilizers. E-methanol (from H₂ + CO₂) and e-kerosene (sustainable aviation fuel) similarly provide energy-dense, easily stored liquids. Green methanol stores energy at ambient conditions and is already used in marine engines. Green e-kerosene (derived from H₂+CO₂ via Fischer–Tropsch or methanol pathways) can drop in as a jet fuel without fleet changes. In short, Europe’s strategy sees expanding demand for H₂ as both an industrial feedstock and for derivative fuels: “a third area for use of H₂ will be production of ammonia and ‘e-fuels’ (synthetic hydrocarbons from H₂ and carbon)”. ",faqLinks:[{text:"Green H₂ applications",message:"What are the main industrial uses of green hydrogen and how is it converted into derivatives like ammonia, e-methanol, and e-kerosene?"},{text:"Hydrogen for transport",message:"How is green hydrogen used in shipping and aviation via derivative fuels?"}]},{subtitle:"",blocks:[{text:"For the described plant, the choice depends on off-take markets. Direct H₂ suits on-site heat, hydrogenating processes and fork‐lift or fleet vehicles. If excess H₂ is abundant, converting some to ammonia (for export or fertilizer) or to synthetic methane/methanol (using captured CO₂) could open additional revenue streams. Each route carries trade-offs (efficiency, cost, infrastructure). Ammonia requires a cracker to regain H₂, and methanol needs CO₂ supply. But these derivatives leverage existing fuel infrastructure. In summary, focus first on pure H₂ for in-scope applications, consider derivatives like NH₃ or e-fuels primarily for markets (shipping, aviation, long-term storage) where H₂ can’t be used directly. ",faqLinks:[{text:"H₂ vs derivatives",message:"How should a hydrogen plant decide between supplying pure H₂ directly or converting it into derivatives like ammonia or e-fuels based on off-take markets?"},{text:"Derivative trade-offs",message:"What are the efficiency, cost, and infrastructure trade-offs when producing ammonia or e-fuels from hydrogen?"}]}]}]},{title:"Financial Case and Investment Considerations ",blocks:[{text:"A compelling business case must balance capex/opex against savings and revenues. Key metrics include the levelized cost of hydrogen (LCOH) and payback period. Current industrial H₂ costs (grey from NG) are on the order of €1–3/kg, whereas green electrolytic hydrogen is higher today (often >€5/kg). However, cost trends are favorable: industry forecasts 60–80% electrolyzer CAPEX reductions by 2030. On the revenue side, one can compute the value of the hydrogen output. For example, each 1 MW·day of surplus electricity (24 MWh) produces about 475 kg H₂ and, at a market price of $1.50–3.15/kg, yields roughly $700–1,500 of values. If local hydrogen off-takers pay above ~$3/kg, on-site production can pay back in the order of 10–15 years. A cited case showed a 2×1,000 MW nuclear plant (producing ~30 tonnes H₂/yr) could retrofit a 1 MW PEM electrolyzer and meet its own needs with ~15-year payback.",faqLinks:[{text:"Green H₂ economics",message:"What factors determine the business case for green hydrogen, including LCOH, capex/opex, and potential payback periods?"},{text:"Hydrogen cost trends",message:"How are green hydrogen costs expected to change over the coming decade compared to grey hydrogen?"}]},{subtitle:"",blocks:[{text:"For this MNC’s project, the case will involve: capital costs (electrolyzer, PV/Wind farm, transformers, storage), O&M costs, and avoided costs (natural gas no longer purchased). Financing could leverage EU incentives (IPCEI grants, c
1076arbon pricing, renewable subsidies) and revenue from selling excess H₂ or green certificates. The transition timeline also matters: over 2023–2030, electricity and carbon prices may change. Investors will expect sensitivity analyses (e.g. varying electricity price, carbon tax, H₂ price). In presenting to management, emphasize the avoided carbon emissions from replacing fossil gas, projected cost trends (lower CAPEX and rising CO₂ prices improve returns), and strategic benefits (energy independence, green branding). In sum, show LCOH under different scenarios, comparison to current NG costs, and clear payback projections (e.g. 10–20 year NPV), highlighting that on-site green H₂ can hedge future fuel volatility and meet decarbonization targets. ",faqLinks:[{text:"H₂ project financing",message:"What financial factors, incentives, and sensitivity analyses should be considered when evaluating a multinational green hydrogen project?"},{text:"LCOH and payback",message:"How can levelized cost of hydrogen and payback periods be analyzed under different electricity and carbon price scenarios?"}]}]}]}]}},{id:7,question:"What are the key benefits and economic justifications for integrating a battery energy storage system (BESS) with a 2 MW hydrogen electrolyzer?",icon:"🌱",action:{description:"What are the benefits of integrating BESS with 2 MW hydrogen electrolyzers?",icon:hSt},tags:["Battery Storage","Green Hydrogen","LCOH Reduction"],detailedAnswer:{summary:[{text:"Using Batteries to Cut Hydrogen Costs: Adding a battery to a 2 MW electrolyzer allows “time-shifting” of electricity use – storing power when it’s cheap (e.g. during surplus renewable periods) and using it later. This reduces the average electricity cost for hydrogen production, lowering hydrogen’s cost per kilogram by roughly 10–20% in favorable scenario. "},{text:"A battery lets the electrolyzer run at a steady optimal rate even when grid power is variable. It can supply power during peaks or outages, avoiding frequent stops/starts. This improves overall utilization and can slightly increase electrolyzer efficiency by keeping it closer to its ideal operating point. ",faqLinks:[{text:"Batteries for H₂",message:"How can integrating a battery with a 2 MW electrolyzer reduce hydrogen costs and improve operational efficiency?"},{text:"Time-shifting electricity",message:"How does time-shifting electricity with a battery lower the cost of hydrogen production?"}]},{text:" By charging with low-cost energy (say €20/MWh) and discharging during expensive peak hours (say €100/MWh), a battery (~90% round-trip efficient) can save on the order of €100k–€200k per year for a 2 MW system (shifting 2–4 hours of operation daily). This translates to significantly cheaper hydrogen. Studies confirm that battery integration can minimize the Levelized Cost of Hydrogen (LCOH) in volatile electricity markets. ",faqLinks:[{text:"Battery cost savings",message:"How does integrating a battery with a 2 MW electrolyzer reduce annual electricity costs and lower the Levelized Cost of Hydrogen (LCOH)?"}]},{text:"Large-scale battery prices in 2025 range around $200–$400 per kWh installed. For a 2 MW electrolyzer, a few MWh of storage (to shift a couple of hours of run-time) might cost on the order of $1 million. For example, Tesla’s Megapack (3.9 MWh) costs about $1.04 million (≈$266/kWh). Major battery providers include Tesla, CATL, BYD, Fluence, and others – all seeing rapid cost declines. ",faqLinks:[{text:"Battery pricing",message:"What are the estimated costs for large-scale batteries (like Tesla Megapack) to support a 2 MW electrolyzer?"}]},{text:"Multiple projects are already combining batteries with hydrogen production. In Europe, Siemens Gamesa’s Wind-to-Hydrogen pilot in Denmark integrates a battery with a wind farm and electrolyzer to maximize use of cheap wind power and provide grid services. In the Netherlands, RWE is testing a Battolyser system (an integrated battery+electrolyzer) that produces H₂ when power prices are low and can sell electricity back to the grid when prices spike. Such projects demonstrate how batteries make green hydrogen more affordable and grid-friendly. ",faqLinks:[{text:"RWE Battolyser",message:"What is the RWE Battolyser system and how does it use batteries for hydrogen production?"}]}],sections:[{title:"Benefits of Adding Battery Storage to Hydrogen Production ",blocks:[{text:"Using a battery alongside a 2 MW water electrolyzer yields several key benefits: "},{subtitle:"Time-Shifting to Lower-Cost Electricity ",blocks:[{text:"The primary benefit is the ability to perform energy time-shifting. The battery can charge using electricity when prices are low (for example, during sunny mid-day hours or windy nights with excess generation) and later discharge to run the electrolyzer when electricity would otherwise be expensive. By avoiding high-tariff power and only using stored cheap energy, the effective electricity cost per kilogram of hydrogen drops substantially. Researchers have found that integrating a Battery Energy Storage System (BESS) is highly beneficial for reducing hydrogen costs when power price volatility is high. In fact, an integrated battery can leverage a renewable power purchase agreement with variable output to minimize the LCOH of green hydrogen. Essentially, the electrolyzer can run more hours on inexpensive power, improving its capacity factor while dodging peak prices – a direct boost to economic efficie
1076ncy. ",faqLinks:[{text:"BESS time-shifting",message:"How does time-shifting with a BESS help reduce electricity costs for hydrogen production?"}]}]},{subtitle:"Smoother Operation and Efficiency Gains ",blocks:[{text:"A battery also buffers the electrolyzer from abrupt power fluctuations. This enables steadier operation of the 2 MW electrolyzer at its optimal set-point. Steady operation can improve the electrolyzer’s electrical efficiency, since many electrolyzers have slightly lower efficiency at partial loads or during frequent ramping. By using the battery to absorb short-term swings (for example, a drop in solar output or a spike in facility load), the electrolyzer can continue running near 100% power without interruption. This not only maximizes hydrogen output but also avoids energy wasted during shutdowns or low-efficiency standby modes. Additionally, reducing on-off cycling can extend the electrolyzer’s lifetime and reduce maintenance needs. In summary, the battery acts as a buffer and “shock absorber,” ensuring the H₂ production stays efficient and the 2 MW electrolyzer operates under favorable conditions as much as possible. ",faqLinks:[{text:"BESS buffering",message:"How does a BESS buffer help maintain steady operation and improve electrolyzer efficiency?"}]}]},{subtitle:"Grid Services and Flexibility (Other Benefits) ",blocks:[{text:"An often-overlooked benefit is that a coupled battery-electrolyzer system can provide ancillary services to the grid. The battery (and even the flexible electrolyzer load) can help balance the grid by responding to frequency deviations or providing reserve power. For instance, when hydrogen production is not urgent, the battery could perform frequency regulation or peak shaving for the facility, earning additional revenue. In integrated setups like the Siemens Gamesa demonstrator, the system is capable of services like Frequency Containment Reserve and even black-start support for the grid. Moreover, having a battery allows an electrolyzer plant to operate in island mode or off-grid, as demonstrated by some remote pilots. This improves resiliency: the battery can keep the electrolyzer running through short grid outages or can help form a microgrid with the electrolyzer and renewable sources. All these added capabilities (“load shifting, grid support, and backup power”) make the hydrogen production site more flexible and potentially more profitable beyond just selling H₂.  "}]}]},{title:"Example Calculation: Economic Impact of Battery Integration ",blocks:[{text:"To illustrate the benefits, consider a simplified scenario for the 2 MW electrolyzer: "},{subtitle:"Baseline (No Battery)",blocks:[{text:"The electrolyzer draws directly from the grid. Suppose during 2 hours of the day, electricity prices spike to €100 per MWh, and at other times cheap renewable energy is available at €20 per MWh. Without a battery, if the electrolyzer runs through those 2 expensive hours at full power (2 MW), it would consume 4 MWh and incur about €400 in electricity cost for those 2 hours (4 MWh × €100/MWh). This greatly increases the average cost of hydrogen produced during that period. ",faqLinks:[{text:"No battery baseline",message:"How does running an electrolyzer directly on the grid without a battery affect electricity costs and hydrogen production?"}]}]},{subtitle:"With Battery Time-Shifting",blocks:[{text:"Now assume we add a battery that can supply the 2 MW electrolyzer for those 2 peak hours. The battery is charged earlier when power costs €20/MWh. To later output 4 MWh (for the 2 hours at 2 MW) and account for ~10% round-trip losses, the battery would need about 4.4 MWh of charging input. That costs roughly €88 (4.4 MWh × €20). During the peak hours, the battery discharges 4 MWh to run the electrolyzer, avoiding the €400 cost it would have paid drawing from the grid. The net saving is approximately €312 per day for those 2 hours (avoiding €400 cost minus €88 spent on cheap energy).",faqLinks:[{text:"Battery time-shift savings",message:"How does using a battery for time-shifting reduce electricity costs and lower green hydrogen production costs?"}]}]},{subtitle:"",blocks:[{text:"Over a year, this example 2-hour shift could save on the order of €110,000+ in electricity costs (312 × 365 ≈ 114,000). If the battery allows shifting 4 hours of operation daily away from high-price periods, the savings double to around €0.2 million per year. This is a significant reduction in operating cost – potentially cutting the electricity portion of hydrogen cost by ~15–25% (exact figures depend on price patterns). For context, analyses of battery usage in renewable-powered electrolysis show that such shifting of energy can reduce green hydrogen LCOH by roughly 10–20%. One integrated system even claims a ~20% hydrogen cost reduction via its built-in battery function. In favorable locations with very cheap surplus power, overall hydrogen production costs can drop toward €2 per kg range with the help of storage – a level that makes green H₂ far more competitive. "}]},{subtitle:"",blocks:[{text:"It’s worth noting the battery itself has efficie
1076ncy losses and capital cost, which must be considered. The above example’s ~€110k/year savings can be weighed against the battery’s cost. If a suitable battery system costs on the order of €800k (for a few MWh capacity), the simple payback would be around 7–8 years, not accounting for battery degradation and financing. However, if power price volatility increases or if the battery also earns income from grid services, the economic case improves further. Overall, even this rough calculation demonstrates substantial economic benefits for hydrogen producers who strategically use a battery to source the lowest-cost electrons."}]}]},{title:"Battery Manufacturers and Cost Estimates for a 2 MW System ",blocks:[{text:"When implementing a battery for a 2 MW electrolyzer, one would typically look at industrial-scale battery energy storage systems (BESS). These are often containerized lithium-ion battery solutions. Below is a list of major BESS manufacturers/providers and relevant cost info: "},{subtitle:"Tesla (USA)",blocks:[{text:"Tesla’s Megapack is a popular turn-key BESS. As of mid-2024, a Megapack unit with 3.9 MWh capacity (1.9 MW power) costs about $1.04 million (≈$266 per kWh). This reflects a sharp price drop (44% in ~1 year) from ~$480/kWh in 2023. For a 2 MW electrolyzer, one or tw
1076o Megapacks could be deployed to provide a few hours of storage. Tesla leads the global BESS market, with record deployments (9.6 GWh in Q2 2025 alone) and continues to scale manufacturing.",faqLinks:[{text:"Megapack",message:"Tell me more about Tesla Megapack"},{text:"Tesla Megapack vs BESS",message:"How does Tesla Megapack compare to other BESS systems?"}]}]},{subtitle:"CATL (China)",blocks:[{text:"CATL is the world’s largest battery maker, known for lithium-iron-phosphate (LFP) cells. It supplies many BESS integrators and also offers containerized systems. China enjoys some of the lowest battery prices – average ~$100–150 per kWh at the pack level in 2025. CATL’s systems leverage economies of scale and even new chemistries (they are pioneering sodium-ion batteries). CATL’s products are widely used in grid storage projects across Europe and Asia. .",faqLinks:[{text:"CATL BESS",message:"How do CATL’s BESS systems compare to Tesla Megapack and other grid-scale storage solutions?"},{text:"CATL batteries",message:"What types of batteries does CATL produce for large-scale storage?"}]}]},{subtitle:"BYD (China)",blocks:[{text:"BYD is another top-tier LFP battery producer with integrated energy storage offerings. BYD’s containerized BESS (often branded as “Battery-Box” or similar for grid projects) are known for safety and durability (LFP chemistry). Costs are competitive; by 2025 many systems are in the $200–300/kWh installed cost range. BYD has delivered large-scale storage projects globally and often partners with developers for solar + storage + hydrogen projects (for example, providing batteries to stabilize renewable inputs before electrolysis).",faqLinks:[{text:"BYD BESS",message:"How do BYD’s BESS solutions compare to Tesla Megapack and CATL systems for large-scale energy storage?"},{text:"BYD Battery-Box",message:"What features make BYD’s Battery-Box BESS suitable for grid storage?"}]}]},{subtitle:"Fluence (USA/Germany)",blocks:[{text:"Fluence (a joint venture of AES and Siemens) is a leading BESS integrator, especially in Europe and North America. They provide complete storage solutions (like Gridstack systems) including power conversion and controls. While exact pricing is project-specific, Fluence systems historically ranged around $300–400/kWh (with expectations of costs falling as battery prices drop). Fluence has deployed or contracted over 22 GWh of storage worldwide. As a system integrator, they source cells from various manufacturers (including CATL, LG, etc.) and focus on optimized performance and 20-year service life guarantees. ",faqLinks:[{text:"Fluence BESS",message:"Tell me more about Fluence BESS systems?"},{text:"Fluence energy storage",message:"How does Fluence optimize performance across different battery suppliers?"},{text:"Fluence Gridstack",message:"What are the main features of Fluence’s Gridstack BESS systems?"}]}]},{subtitle:"LG Energy Solution & Samsung SDI (South Korea)",blocks:[{text:"These are major battery cell manufacturers that also supply BESS modules. They emphasize high performance and safety. For example, LG’s lithium-ion batteries (NMC and emerging solid-state tech) power many third-party storage systems. They typically don’t sell turnkey containers directly under their name (instead, they partner with integrators), but their cell pricing contributes to overall system cost. Ballpark costs for systems using Korean cells in 2025 also fall in the few hundred $/kWh range, converging with the global trend. ",faqLinks:[{text:"LG BESS cells",message:"How do LG’s lithium-ion and solid-state cells impact the performance and cost of BESS systems?"},{text:"LG solid-state batteries",message:"What advantages do LG’s emerging solid-state batteries offer for energy storage?"},{text:"Battery cell manufacturers",message:"Which major battery cell manufacturers supply BESS modules and how do they differ?"}]}]},{subtitle:"Others (Europe)",blocks:[{text:"European companies like Saft (France, a TotalEnergies subsidiary) and Northvolt (Sweden) are notable. Saft offers containerized lithium-ion solutions and has experience in industrial backup and grid storage (costs broadly similar to other Western suppliers). Northvolt, primarily a cell manufacturer, aims to 
1076supply greener European-made batteries which could be used in future BESS for hydrogen projects. Additionally, startups like Battolyser Systems (Netherlands) deserve mention: rather than a pure battery, their product is a hybrid that integrates a battery with an electrolyzer. The Battolyser can function as a normal battery and then produce hydrogen when charged – effectively a two-in-one system. They claim this can cut hydrogen costs ~20% and have units (2.5 MW size and up) coming to market in 2025. ",faqLinks:[{text:"Saft BESS",message:"What are Saft’s containerized lithium-ion BESS solutions and how do they compare to other European suppliers?"},{text:"Northvolt batteries",message:"How does Northvolt’s greener European-made battery approach impact future BESS projects?"},{text:"Battolyser hybrid",message:"How does Battolyser’s hybrid battery-electrolyzer system work and what are its advantages for hydrogen production?"}]}]},{subtitle:"",blocks:[{text:"In summary, battery costs have fallen drastically and continue to drop. In 2015, utility-scale batteries were often >$700/kWh; by 2025 many are near or below $300/kWh. For a 2 MW / 4 MWh battery (enough to run a 2 MW electrolyzer for ~2 hours), current pricing implies perhaps $1–1.2 million total capital cost (not including integration and power electronics which could add some cost). This investment, when weighed against the operational savings (potentially six-figure €/year as shown above), can be justified in hydrogen projects, especially as battery lifetimes reach 15+ years. "}]}]},{title:"Case Studies: Projects Combining Batteries and Hydrogen Production ",blocks:[{text:"Several projects (in Europe and globally) have already implemented the battery + electrolyzer concept to improve efficiency and economics: "},{subtitle:"Siemens Gamesa “Renewable Hydrogen Demonstrator” (Denmark)",blocks:[{text:"In 2023, Siemens Gamesa deployed a pilot that integrates a wind farm with a PEM electrolyzer and a battery on-site. The project, supported by the EU, uses a battery storage system to buffer wind power and ensure the electrolyzer operates optimally. The battery and smart controls allow the plant to either produce hydrogen or supply electricity to support the grid. This demonstrates a dual revenue approach: when wind power is abundant and cheap, make hydrogen; when the grid is in need (or hydrogen tanks are full), use the battery to deliver services like frequency regulation. The Danish pilot produces on the order of 15 GWh of hydrogen energy per year (700–900 tonnes of H₂) while providing grid reserve capacity, showcasing the feasibility of large-scale integration.",faqLinks:[{text:"Siemens Gamesa H2 demo",message:"How does the Siemens Gamesa renewable hydrogen demonstrator integrate wind, electrolyzers, and batteries for dual revenue?"}]}]},{subtitle:"RWE & Battolyser Systems Pilot (Netherlands)",blocks:[{text:"In May 2023, RWE installed the world’s first industrial-scale Battolyser at its Magnum power plant in Eemshaven. The Battolyser is a novel device that acts as a battery (nickel-iron chemistry) up to a certain state of charge and then automatically switches to water electrolysis to generate hydrogen. In operation, when renewable power is plentiful and prices are low, the Battolyser charges and produces green hydrogen. When power prices spike or the grid needs energy, the device can discharge like a battery, feeding electricity to the grid instead of making H₂. This pilot is used to cool the power plant’s generators with hydrogen and validate the tech. The project partners (including Battolyser Systems, RWE, Ørsted, Yara, and others) report that this highly flexible system makes hydrogen “greener and more affordable” by effectively arbitraging energy prices. After successful tests through 2024, the results are informing scale-up plans. Battolyser Systems is now planning a factory in Rotterdam (1 GW/yr production capacity) to commercialize these units, offering 2.5 MW, 5 MW, and 25 MW versions by 2025–2026. ",faqLinks:[{text:"RWE Battolyser",message:"How does RWE’s Battolyser 
1076combine battery storage and electrolysis to optimize hydrogen production and grid services?"}]}]},{subtitle:"Off-Grid Solar Hydrogen Plant (India)",blocks:[{text:"Outside Europe, a noteworthy example is Adani’s 5 MW green hydrogen pilot in Gujarat, India. Commissioned in 2025, it is 100% powered by solar PV and a battery (BESS), with no grid connection. The battery provides stability to the electrolyzer, handling the intermittency of solar so that hydrogen production can continue smoothly off-grid. This project proved the technical feasibility of an independent renewable-powered H₂ facility. The battery’s role is crucial in a tropical solar-only setup: it stores excess midday solar power and covers for cloud passages and evening hours, enabling a continuous hydrogen output. The electrolyzer dynamically responds to real-time solar input, and the BESS ensures efficiency and safety are maintained in the off-grid scenario. This plant serves as a model for remote or self-sufficient green hydrogen systems, and it validates how a battery can make purely renewables-driven hydrogen production reliable. ",faqLinks:[{text:"Adani H2 pilot",message:"How does Adani’s 5 MW solar-powered green hydrogen pilot use a battery to enable continuous off-grid hydrogen production?"}]}]},{subtitle:"Lead-Acid “Battery-Electrolyzer” in Africa (Research Demo)",blocks:[{text:"Researchers at Loughborough University (UK) have developed an innovative twist by converting lead-acid battery technology into a combined battery-electrolyzer unit. Demonstrator systems are being deployed in Malawi, Zambia, and Côte d’Ivoire to provide reliable clean energy for communities. These units operate in three modes: charging from excess solar, discharging as a battery, and producing hydrogen via electrolysis when overcharged. The hydrogen can be used for cooking or power (via fuel cells) in off-grid areas. While small in scale, these pilots address energy access and illustrate the versatility of battery-integrated hydrogen tech. By using abundant, cheap materials (lead, common acids) and repurposing them for hydrogen production, the system offers a low-cost solution suitable for developing regions. It’s another example of how coupling energy storage with electrolysis can increase utilization of renewables and provide clean fuel even at micro-scale. ",faqLinks:[{text:"Lead-acid H2 demo",message:"How does Loughborough University’s lead-acid battery-electrolyzer system provide off-grid hydrogen and energy access?"}]}]},{subtitle:"",blocks:[{text:"Each of the above projects showcases a different angle: grid-connected industrial plants, novel integrated devices, off-grid systems, and experimental tech. All share the common theme that batteries make hydrogen production more efficient, flexible, and cost-effective. By smoothing out the mismatch between renewable supply and hydrogen demand, batteries help maximize the use of green power for H₂ generation and minimize reliance on costly grid electricity or idling of the electrolyzer. This synergy is driving the next generation of power-to-hydrogen installations. "}]}]},{title:"Conclusion ",blocks:[{text:"In the push for greener and cheaper hydrogen, integrating battery storage with electrolyzers is emerging as a smart strategy. For a 2 MW electrolyzer, a properly sized battery can significantly lower operating costs by enabling time-shifting to low-cost energy and reducing downtime. While adding a battery is an upfront investment, the rapidly falling battery costs and multiple value streams (energy arbitrage, grid services, improved efficiency) often yield a strong business case. Real-world deployments in Europe and beyond have validated that batteries can cut hydrogen costs (on the order of 10–20%) and facilitate around-the-clock production of green H₂. In Europe especially, where renewable generation can be volatile and electricity markets complex, this battery-electrolyzer synergy helps operators comply with strict renewable sourcing rules while keeping hydrogen affordable. "},{subtitle:"",blocks:[{text:"Overall, pairing a battery with hydrogen production is about optimizing energy use: store excess renewable electrons when they’re abundant, and deploy them for hydrogen when they are most needed or valuable. This leads to better electrolyzer utilization, more consistent hydrogen output, and a lower cost per kilogram of H₂. As battery and electrolyzer technologies continue to advance and scale up, we can expect such hybrid systems to become standard in green hydrogen projects – driving higher efficiency and accelerating the transition to clean energy. "}]},{subtitle:"",blocks:[{text:"Sources: The information and data above were synthesized from recent research and industry reports, including journal studies on battery-integrated electrolysis, c
1076ost analyses by NREL and others, industry news on battery pricing, and project case studies from Europe (Siemens Gamesa, RWE) and beyond. These sources are cited in-line to provide detailed backing for the statements made. "}]}]}]}},{id:8,question:"How can I produce and sell biogas or biomethane in Europe?",icon:"♻️",action:{description:"How to Produce and Sell Biogas in Europe? ",icon:PSt},tags:["Biogas","Biomethane","Europe"],detailedAnswer:{summary:[{text:"Biogas (raw gas) and biomethane (upgraded for grid) are expanding quickly across Europe, driven by renewables targets and gas security. Commercial viability depends on reliable feedstock, efficient operations, and monetization via power, grid injection, transport fuel, or certificates. Typical total production costs for biomethane today fall around €55–90/MWh depending on scale and feedstock. Returns are strongest where support schemes or premium certificate markets exist (France, Italy, Denmark, Germany, UK, Nordics)."}],sections:[{title:"Viable Sizing & Storage",blocks:[{text:"Sweet spot: a few hundred kWₑ CHP or 300–1,500 Nm³/h biogas (≈170–850 Nm³/h biomethane). Smaller plants can work with strong support or free/negative-cost feedstock; larger plants benefit from economies of scale.",faqLinks:[{text:"Biomethane",message:"What are the current costs of producing biomethane in Europe, and which factors most affect its commercial viability?"}]},{subtitle:"Storage",blocks:[{text:"Most plants size gas storage for hours to ~1 day to buffer operations; longer storage raises CAPEX. Aim for steady injection or steady CHP run-time (>8,000 h/year).",faqLinks:[{text:"Gas Storage",message:"How should biogas or biomethane plants size gas storage, and what are the trade-offs between storage duration and cost?"}]}]}]},{title:"Typical CAPEX & OPEX (order-of-magnitude)",blocks:[{subtitle:"",blocks:[{table:{headers:["Item","Farm / Small-Mid","Mid-Large (upgrading)"],rows:[["Digester & civil works","â
1076‚¬1.0–2.5m ","€2–5m "],["Gas cleaning / CHP","€0.3–1.0m (CHP) ","-"],["Upgrading to biomethane ","-","€1.5–4m"],["Grid injection & metering","€0.2–0.8m","€0.5–1.5m"],["Balance of plant (feed/controls)","€0.4–1.0m","€0.6–1.5m"],["Total installed (indicative)","€2–6m (≈€3k–6k/kWₑ)","€5–12m+ "],["Fixed O&M ","≈2–7% of CAPEX/yr","≈2–6% of CAPEX/yr "],["Feedstock cost ","Negative (gate fees) to positive (silage)","Ditto; logistics dominate"],["Upgrading OPEX ","-","≈€0.5–1.5 per Nm³ biomethane"]]}}]}]},{title:"Operating Requirements",blocks:[{subtitle:"Skills",blocks:[{text:"Process biology (loading rate, pH, temperature), mechanical/electrical O&M, safety (H₂S, methane), quality control for gas injection. Formal training recommended; many countries offer biogas operator courses.",faqLinks:[{text:"Biogas Operations",message:"What skills and training are required to safely operate a biogas or biomethane plant?"}]}]},{subtitle:"Staffing & support",blocks:[{text:"External service contracts for engines/upgraders are common."}]}]},{title:"Sales Channels",blocks:[{text:"CHP (power + heat): viable where feed-in tariffs or strong local heat use exist. ",faqLinks:[{text:"CHP",message:"When is combined heat and power (CHP) a viable option for biogas or biomethane plants?"}]},{text:"Grid-injected biomethane: main route for medium+ plants; sell gas at hub price plus green premium.",faqLinks:[{text:"Grid Injection",message:"How can biomethane be injected into the gas grid and monetized?"}]},{text:"Virtual pipeline (CNG/bio-LNG trailers): for remote sites or vehicle fuel markets.",faqLinks:[{text:"Virtual Pipeline",message:"What is a virtual pipeline for biomethane, and when is it used?"}]},{text:"Third-party aggregators/BPAs: long-term offtake with utilities or corporates to de-risk revenues.",faqLinks:[{text:"Offtake Agreements",message:"How do third-party aggregators or BPAs help de-risk biomethane revenues?"}]}]},{title:"Prices, Premiums & Returns",blocks:[{text:"Production cost (biomethane): ≈€55–90/MWh; lower at scale/with cheap residues. Wholesale gas adds market volatility; certificates (GOs/transport credits) add a green premium that varies by country.",faqLinks:[{text:"Biomethane Economics",message:"What are the typical production costs, premiums, and returns for biomethane plants in Europe?"}]},{text:"Returns: IRR often high single-digits to mid-teens under supportive schemes or strong certificate demand; payback ≈7–12 years with solid uptime and secured feedstock/offtake.",faqLinks:[{text:"IPCEI Hydrogen",message:"What is the IPCEI Hydrogen funding program?"}]}]},{title:"Regulation & Certification (Europe-wide view)",blocks:[{text:"EU RED II/III underpin sustainability rules; crop-based expansion is constrained, residues/wastes prioritized. Environmental permits and gas quality compliance are required nationally.",faqLinks:[{text:"Regulation",message:"What EU and national regulations govern biomethane production and certification?"}]}]},{title:"Country Landscape",blocks:[{subtitle:"",blocks:[{table:{headers:["Market","Maturity / Focus","Notes"],rows:[["Germany","Very mature","Thousands of plants; repowering/biomethane growth; strict sustainability rules. "],["France ","High growth","Attractive biomethane injection tariffs; many small-mid plants."],["Italy","High growth","Strong transport-focused incentives; auctions for biomethane."],["Denmark","Advanced","High grid share of biomethane; large centralized plants; manure focus."],["UK","Established","RHI legacy; Green Gas Support Scheme; many AD/biomethane sites."],["Nordics","Niche/transport ","Bio-CNG/LNG for heavy transport; tax incentives; fish/forest residues. "],["CEE (PL, CZ, RO)","Emerging","Good feedstock base; support schemes evolving; rising pipeline access. "]]},faqLinks:[{text:"Country Landscape",message:"How does the biomethane market and support landscape vary across European countries?"}]}]}]},{title:"Feedstock – common types & shares",blocks:[{text:"Common inputs: manure/slurry, agricultural residues, food/organic waste (municipal & industrial), sewage sludge. Historically some energy crops were used;
1076 new projects increasingly waste/residue-based due to policy."}]},{title:"Location Factors – concrete checklist",blocks:[{text:"Feedstock within ~10–15 km; secure ≥80% via long-term contracts/own supply; plan seasonal storage (silage clamps)."},{text:"Gas grid proximity for injection (ideally ≤0.5–1 km) or clear CHP heat sink nearby (district heating/industry/greenhouse)."},{text:" Road access for substrate deliveries and (if needed) CNG/bio-LNG trailer swaps; avoid residential traffic routes."},{text:"Sufficient land: ~4,000 m²+ for ~500 kWₑ plus storage; consider setbacks, odor control, flood/soil conditions.",faqLinks:[{text:"Site Selection",message:"What key factors should be considered when selecting a location for a biogas or biomethane plant?"}]},{text:"Digestate offtake: nearby farmland and nutrient management plan; dewatering if urban/waste-based."},{text:"Permitting: favorable zoning, early engagement with municipality/community; odor and noise mitigation in design.",faqLinks:[{text:"Operator Skills",message:"What technical and safety skills are required for biogas or biomethane plant operators?"}]},{text:"Utilities: water, grid capacity, telemetry for gas metering/odorization; winterization needs by climate."}]},{title:"Quick Start Plan",blocks:[{text:"Map feedstock catchment and shortlist 2–3 sites (GIS + on-the-ground contracts).",faqLinks:[{text:"Project Launch",message:"What are the key steps to initiate and fast-track a biogas or biomethane project?"}]},{text:"Parallel tracks: permits, grid connection studies, and term-sheet for offtake (BPA) with certificates."},{text:"Tech concept: pick CHP vs upgrading;
1076 run mass-energy & cost model at 3 capacities (small/mid/large)."},{text:"Finance: sensitivity on gas price, certificates, and feedstock; include maintenance & outages; line up grants."},{text:"Certification setup: select GO registry, PoS scheme (ISCC/REDcert), and traceability software; define audit cadence."}]}]}},{id:9,question:"What are hydrogen certificates and how does the THG quota system work in Germany?",icon:"📜",action:{description:"How do hydrogen certificates and THG quotas work?",icon:xSt},tags:["Hydrogen Certification","Regulations","THG Quota"],detailedAnswer:{summary:[{text:"Hydrogen (H2) is increasingly recognized as a central pillar of global decarbonization strategies. Certification schemes are essential for ensuring transparency, traceability, and compliance with regulatory requirements across production, transport, and consumption."}],sections:[{title:"Overview of Hydrogen Certification",blocks:[{text:"Hydrogen certification ensures that the production pathway, emissions footprint, and sustainability criteria of hydrogen meet predefined standards. These certificates are critical for market transparency, regulatory compliance, trading, and eligibility for subsidies.",faqLinks:[{text:"Hydrogen Certification",message:"What are hydrogen certificates, and how do they ensure sustainability, compliance, and market transparency?"},{text:"Sustainability Criteria",message:"Which sustainability standards must hydrogen meet to qualify for certification and subsidies?"}]},{subtitle:"Key Certification Schemes in Europe",blocks:[{text:"CertifHy: The first EU-wide voluntary Guarantees of Origin (GO) scheme for hydrogen. It distinguishes between “green” (renewable) and “low-carbon” hydrogen. ",faqLinks:[{text:"CertifHy",message:"What is the CertifHy scheme, and how does it certify green and low-carbon hydrogen across the EU?"}]},{text:"Guarantees of Origin (GO) under the Renewable Energy Directive RED II and RED III: Framework for documenting renewable energy attributes, now extended to renewable hydrogen.",faqLinks:[{text:"Hydrogen GO",message:"How do Guarantees of Origin (GO) under RED II/III document renewable hydrogen attributes?"}]},{text:"ISCC EU / ISCC PLUS: Widely used sustainability certification for bio-based and renewable fuels. Required for compliance with RED II for renewable fuels of non-biological origin (RFNBOs), including green hydrogen.",faqLinks:[{text:"ISCC Certification",message:"What is ISCC EU/PLUS certification, and how does it ensure sustainability for renewable hydrogen?"}]},{text:"TÜV SÜD / TÜV Rheinland / TÜV Nord Schemes: National schemes evaluating carbon intensity and sustainability criteria.",faqLinks:[{text:"TÜV Hydrogen",message:"How do TÜV SÜD, TÜV Rheinland, and TÜV Nord certify carbon intensity and sustainability for hydrogen?"}]}]},{subtitle:"Certification Requirements",blocks:[{text:"Certification depends on: - Feedstock origin - Energy source used for electrolysis - Emission intensity calculations (LCA methodology) - Chain-of-custody requirements (mass balance, book & claim, or physical tracking) - Regular audits and documentation "}]}]},{title:"Reference Projects and Authorities",blocks:[{text:"Hydrogen-related projects typically involve collaboration between producers, off-takers, regulatory auditors, and verification bodies."},{subtitle:"Typical Reference Project Structure",blocks:[{text:"A complete hydrogen certification project includes:"},{text:"Production Site Assessment – Storage, electrolysis units, and energy sourcing.",faqLinks:[{text:"Production Assessment",message:"How are hydrogen production sites assessed for certification, including storage, electrolysis, and energy sourcing?"}]},{text:"Emissions Accounting – LCA-compliant carbon intensity calculations.",faqLinks:[{text:"Emissions Accounting",message:"How is the carbon intensity of hydrogen calculated and verified for certification purposes?"}]},{text:"Verification & Audit – Independent verification bodies (e.g., DNV, TÜV SÜD).",faqLinks:[{text:"Verification",message:"Which independent verification bodies perform audits for hydrogen certification?"}]},{text:"Certification Issuance – Under a scheme such as CertifHy or ISCC.",faqLinks:[{text:"Certification",message:"How are hydrogen certificates issued under schemes like CertifHy or ISCC?"}]},{text:"Registration in National/EU Databases – Linking certificate attributes to operators.",faqLinks:[{text:"Registry",message:"How are hydrogen certificates registered in national or EU databases?"}]},{text:"Reporting to Authorities – Required for quota allocation (THG quota in Germany)."}]},{subtitle:"Relevant Government Agencies & Regulatory Bodies",blocks:[{text:"BAFA (Bundesamt für Wirtschaft und Ausfuhrkontrolle) – Responsible for energy-related certifications and some hydrogen classification aspects. ",faqLinks:[{text:"BAFA",message:"What role does BAFA play in hydrogen certification and energy-related approvals in Germany?"}]},{text:"Umweltbundesamt (UBA) – Oversees emissions reporting and THG quota registry for electric mobility and renewable fuels.",faqLinks:[{text:"UBA",message:"How does the UBA oversee emissions reporting and THG quota registration for hydrogen and renewable fuels?"}]},{text:"Bundesnetzagentur (BNetzA) – Responsible for Guarantees of Origin for electricity;
1076 interacts with hydrogen GOs when linked to renewable electricity sources.",faqLinks:[{text:"BNetzA",message:"What is BNetzA’s role in managing Guarantees of Origin for electricity and hydrogen-linked renewable electricity?"}]},{text:"European Commission – DG ENER – Issues Delegated Acts (e.g., RFNBO rules under RED II/III).",faqLinks:[{text:"DG ENER",message:"How does the European Commission DG ENER regulate renewable hydrogen through Delegated Acts under RED II/III?"}]},{text:"European Union Agency for the Cooperation of Energy Regulators (ACER) – GO market oversight.",faqLinks:[{text:"ACER",message:"What role does ACER play in oversight of the EU Guarantees of Origin market, including hydrogen GOs?"}]}]}]},{title:"THG Quote (GHG Reduction Quota)",blocks:[{text:"The German THG-Quote mechanism incentivizes reductions in greenhouse gas emissions in the transport sector. Companies supplying fuels are obligated to reduce emissions, and they can fulfil obligations by purchasing quotas generated from renewable technologies."},{subtitle:"What is the THG Quota?",blocks:[{text:"The THG Quota is a legally mandated emissions reduction target for fuel suppliers in Germany. Operators that can demonstrate emissions savings—such as producers of renewable hydrogen, electricity for EVs, or biofuels—can generate THG certificates and sell them to obligated parties.",faqLinks:[{text:"THG Quota",message:"What is the German THG Quota, and how can renewable hydrogen or biofuel producers generate and trade THG certificates?"}]}]},{subtitle:" Who Can Receive a THG Quota?",blocks:[{text:"Hydrogen producers can receive THG quota credits when:"},{text:"Their hydrogen qualifies as renewable fuel of non-biological origin (RFNBO).",faqLinks:[{text:"RFNBO",message:"How must renewable fuels of non-biological origin meet RED II criteria for THG credits?"}]},{text:"The production pathway meets RED II sustainability and GHG reduction targets."},{text:"The hydrogen is used in the transport sector, e.g.: - hydrogen refuelling stations (HRS) - hydrogen-powered trucks, buses, cars - industrial hydrogen that replaces fossil fuels in transport-related supply chains.",faqLinks:[{text:"GHG Reduction",message:"What sustainability and emission reduction requirements must hydrogen meet for THG eligibility?"}]}]},{subtitle:"Which Authority Issues THG Quota Certifications?",blocks:[{text:"In Germany, the Umweltbundesamt (UBA) is responsible for: - Registration of eligible operators - Validation of emissions savings - Issuance of THG quota certificates - Management of the national THG quota registry",faqLinks:[{text:"THG Authority",message:"Which authority issues THG quota certificates in Germany, and what are its responsibilities?"}]}]},{subtitle:"When Do You Receive a THG Quota?",blocks:[{text:"The process typically follows these steps:"},{text:"Certification (ISCC EU or equivalent) to verify hydrogen qualifies as RFNBO.",faqLinks:[{text:"Certification",message:"Which certifications verify that hydrogen qualifies as RFNBO for THG quota?"}]},{text:"Submission of documentation to UBA",faqLinks:[{text:"Submission",message:"How does UBA review documentation and validate emissions savings?"}]},{text:"Verification period: UBA reviews LCA, sustainability proofs, and usage evidence."},{text:"Approval and issuance of THG certificates."},{text:"Transfer to obligated fuel suppliers via trading platforms or bilateral contracts. "},{text:"Most quota issuances occur annually, after a reporting period, though interim submissions are possible depending on the project structure."}]}]},{title:"Regulatory Frameworks",blocks:[{subtitle:" RED II and RED III",blocks:[{text:"The Renewable Energy Directive defines: - Sustainability criteria for renewable fuels - Emission methodology for RFNBO hydrogen - Criteria for electricity sourcing and additionality requirements.",faqLinks:[{text:"RED II/III",message:"What sustainability and emission criteria do RED II and RED III set for renewable hydrogen (RFNBOs)?"}]}]},{subtitle:"German Implementation",blocks:[{text:"Germany implements RED II/III rules via: - Biokraftstoffquotengesetz (Biofuel Quota Act) - THG Quote Regulation - National databases managed by UBA ",faqLinks:[{text:"Germany RED",message:"How does Germany implement RED II/III rules for renewable hydrogen through national legislation and databases?"}]}]}]},{title:"Case Studies",blocks:[{subtitle:"Case Study: Green Hydrogen Production for Mobility Sector",blocks:[{text:"A mid-sized electrolysis operator in Germany installs a 20 MW PEM electrolyser powered by a nearby wind farm. Using ISCC EU certification, the operator demonstrates RFNBO compliance and supplies hydrogen to a regional hydrogen refueling station (HRS). The company submits operational data to the UBA, including electrolyser running hours, electricity sourcing documentation, and H2 delivery logs. After verification, THG quota credits are issued annually and s
1076old to obligated fuel suppliers.",faqLinks:[{text:"Green Hydrogen",message:"How does a mid-sized electrolysis operator produce and certify green hydrogen for the mobility sector in Germany?"}]}]},{subtitle:"Case Study: Industrial By-Product Hydrogen Converted into Low-Carbon Hydrogen",blocks:[{text:"A chemical company producing by-product hydrogen from chlor-alkali processes conducts LCA analysis to certify the hydrogen under CertifHy as “low-carbon”. The hydrogen is used in logistics and forklift fleets on-site, enabling the company to claim specific emission reductions. Although not RFNBO-qualified, the low-carbon certification allows trading of attributes in voluntary markets.",faqLinks:[{text:"Low-Carbon Hydrogen",message:"How can industrial by-product hydrogen be converted into low-carbon hydrogen and traded in voluntary markets?"}]}]}]},{title:"Emissions and THG Reduction Calculations",blocks:[{subtitle:"LCA-Based Emission Accounting",blocks:[{text:"Hydrogen producers must calculate emissions using lifecycle assessment (LCA) methodologies defined in RED II/III Delegated Acts. Key components include: - Upstream energy emissions - Electrolyser efficiency - Electricity source emission factor - Compression, storage, and transport emissions. ",faqLinks:[{text:"Hydrogen LCA",message:"How do hydrogen producers calculate lifecycle emissions for certification under RED II/III, including energy sourcing and electrolyser efficiency?"}]}]},{subtitle:"RFNBO Thresholds",blocks:[{text:"RED II mandates a minimum of 70% GHG reduction compared to fossil reference fuel values. "}]}]},{title:"German Authorities and Processes for THG Quota",blocks:[{subtitle:" Registration at UBA",blocks:[{text:"Hydrogen producers register their installation and provide: - ISCC EU or equivalent certificate - LCA calculations - Ele
1076ctricity procurement documentation - Usage documentation (e.g., HRS transaction records) ",faqLinks:[{text:"UBA Registration",message:"How do hydrogen producers register their installations with UBA for THG quota eligibility?"}]}]},{subtitle:"Verification and Issuance Process",blocks:[{text:"Submit annual dataset to UBA. "},{text:"UBA verification of sustainability data and emission calculations.",faqLinks:[{text:"THG Verification",message:"What is the process for UBA verification and issuance of THG quota certificates, and how long does it take?"}]},{text:"Issuance of quota certificates into the national registry. "},{text:"Transfer to obligated parties or intermediaries. "}]},{text:"Typical processing time: 8–16 weeks depending on completeness. "}]},{title:"Where to Sell THG Quotas and Hydrogen Certificates ",blocks:[{text:"Hydrogen certificates and THG quotas can be monetized in several markets: "},{subtitle:"Selling THG Quotas (Germany)",blocks:[{text:"You can sell THG quotas to: - Obligated fuel suppliers (mineral oil companies) - Energy traders specializing in quotas - Aggregators such as: - eQuota traders - Emission reduction brokers - Major utilities (e.g., EnBW, RWE traders). ",faqLinks:[{text:"THG Trading",message:"How can hydrogen producers sell THG quotas in Germany, and who are the typical buyers and intermediaries?"}]},{text:"These aggregators bundle certificates and negotiate with large obligated buyers. "}]},{subtitle:"Selling Hydrogen Guarantees of Origin (GO)",blocks:[{text:"Voluntary hydrogen GOs can be traded through: - Market platforms such as European GO marketplaces - Direct bilateral contracts with industrial 
1076consumers - Hydrogen trading platforms emerging with EU-wide implementation of Guarantees of Origin systems. ",faqLinks:[{text:"Hydrogen GO Trading",message:"How can producers trade voluntary hydrogen Guarantees of Origin (GOs), and through which platforms or contracts?"}]}]},{subtitle:"Selling ISCC or CertifHy Credits",blocks:[{text:"These are typically sold: - Directly to hydrogen off-takers - To companies needing to prove sustainability compliance - Via brokers active in voluntary low-carbon markets. ",faqLinks:[{text:"Credits Trading",message:"How can producers sell ISCC or CertifHy hydrogen credits, and who are the typical buyers or intermediaries?"}]}]}]},{title:"Executive Summary",blocks:[{text:"Hydrogen certification ensures regulatory compliance and monetization opportunities."},{text:"ISCC EU is mandatory for RFNBO classification and THG quota eligibility. "},{text:"UBA controls verification and issuance of THG credits in Germany. "},{text:"Revenue potential from THG + GOs can add €1–€5 per kg H₂."},{text:"Flowcharts and playbooks help simplify complex regulatory pathways. "},{text:"Case studies demonstrate practical applications and market value. "}]},{title:"Conclusion",blocks:[{text:"Expanding hydrogen production in Europe requires a solid understanding of certification requirements, regulatory authorities, and market mechanisms for monetization. By following ISCC or CertifHy pathways, complying with UBA processes, and participating in emerging GO and THG markets, hydrogen producers can both ensure compliance and unlock additional revenue streams. Further scaling will benefit from streamlined certification systems, cross-border registry harmonization, and growing demand for renewable fuels. "}]}]}},{id:10,question:"How can industrial waste heat be produced, recovered, and monetized in Europe?",icon:"🔥",action:{description:"What is industrial waste heat recovery?",icon:USt},tags:["Industrial Heat","Energy Recovery","Decarbonization"],detailedAnswer:{summary:[{text:"Industrial heat recovery using process or excess heat from industrial operations is gaining momentum across Europe as a cost-saving and emission-reduction solution. Business viability depends on consistent heat output, technical integration, and grid or customer connectivity. Revenue comes from heat sales, avoided fuel use, and often from subsidies or certifications. "}],sections:[{title:"Viable Supply and Delivery Models",blocks:[{text:"Typical supply scale: 0.5–100+ MWth depending on industry. Continuous flows (e.g. steel, glass, chemicals) preferred.",faqLinks:[{text:"Heat Supply Models",message:"What are the viable supply and delivery models for industrial heat recovery projects in Europe, including scale, temperature needs, and connection distances?"}]},{text:"Temperature range: Generally >60 °C for district heating; lower temps viable with heat pumps.",faqLinks:[{text:"Temperature Requirements",message:"How does temperature influence the use of excess heat in district heating?"}]},{text:"Delivery route: Direct pipe to offtaker or integration into DH network. ≤5 km is typically viable.",faqLinks:[{text:"Connection Distance",message:"What pipeline distances are considered economically viable for delivering industrial excess heat?"}]},{text:"Storage: hourly-to-daily buffer tanks can help integrate intermittent supply.",faqLinks:[{text:"Heat Scale",message:"What supply capacities are typical for industrial heat recovery?"}]}]},{title:"Typical CAPEX & OPEX (order-of-magnitude)",blocks:[{subtitle:"",blocks:[{table:{headers:["Item","Small/Medium","Large"],rows:[["Heat exchanger & interface","€100–300k ","€0.5–2m"],["Pipeline (per km)","€0.2–0.5m","€0.5–1.5m"],["Pumps, monitoring, controls","€0.1–0.4m","€0.4–1.0m"],["Operational (electricity, service)","€1–2/MWh","€1–3/MWh"]]}}]},{text:"Examples: Dunkirk heat recovery pipeline (~€20m, 40 km); Meta data center in Odense exporting >100 GWh/year.",faqLinks:[{text:"Heat Recovery Costs",message:"What are the typical CAPEX and OPEX ranges for industrial heat recovery systems, including heat exchangers, pipelines, and operational expenses?"}]}]},{title:"Operating Requirements",blocks:[{text:"Must match delivery temp and flow to demand profile.",faqLinks:[{text:"Heat Ops Requirements",message:"What operating requirements must industrial heat recovery projects meet, including monitoring, temperature matching, and contractual reliability?"}]},{text:"Continuous monitoring (flow, temp, pressure, faults).",faqLinks:[{text:"System Monitoring",message:"What monitoring parameters are essential for industrial heat recovery operations?"}]},{text:"Operator training in thermal systems, backup design.",faqLinks:[{text:"Operator Skills",message:"What training is needed for operators managing heat recovery systems?"}]},{text:"Contracts to specify reliability, pricing, ramp-up, maintenance.",faqLinks:[{text:"Heat Supply Contracts",message:"What reliability and maintenance terms should be included in heat delivery agreements?"}]}]},{title:" Sales Channels & Pricing",blocks:[{text:"Sell to district heating operator or direct industrial/offtaker.",faqLinks:[{text:"DH Offtake",message:"How do district heating operators purchase recovered industrial heat?"}]},{text:"Spot pricing (e.g. Sweden Open DH): dynamic €/MWh based on system load.",faqLinks:[{text:"Spot Heat Pricing",message:"How does dynamic spot pricing (e.g., Open DH Sweden) work for excess heat?"}]},{text:"Baseload contracts: €15–50/MWh typical range.",faqLinks:[{text:"Baseload Contracts",message:"What are typical baseload heat contract prices for industrial heat recovery?"}]},{text:"Additional value: CO₂ savings, avoided fossil use, green certification (GO/RED II). "}]},{title:"Incentives, Premiums & Returns",blocks:[{text:"Grants: Fonds Chaleur (France), EEW (Germany), Horizon Europe, Innovation Fund.",faqLinks:[{text:"Grants & Funding",message:"Which European grant programs support industrial heat recovery projects?"}]},{text:"CO₂ credit schemes and tax benefits in DK, SE, NL.",faqLinks:[{text:"CO₂ Credits",message:"How can CO₂ credit schemes and tax incentives improve project economics?"}]},{text:"Premiums via Guarantees of Origin (waste heat = renewable under some regimes).",faqLinks:[{text:"Origin",message:"How do renewable heat certifications (GOs) add value to re
1076covered heat?"}]},{text:"IRR ranges from 5–15% under strong offtake and funding.",faqLinks:[{text:"Project IRR",message:"What internal rates of return are typical for well-supported industrial heat recovery projects?"}]}]},{title:"Regulation & Certification (Europe-wide view)",blocks:[{text:"RED II/III: prioritizes recovery of waste heat as eligible renewable.",faqLinks:[{text:"RED II/III Heat",message:"How does RED II/III classify recovered industrial heat as renewable energy?"}]},{text:"National laws vary: some mandate grid access, others offer tax breaks.",faqLinks:[{text:"National Laws",message:"Which countries mandate grid access or provide tax breaks for industrial heat recovery?"}]},{text:"Certifying bodies: ISCC EU (PoS), local Guarantee of Origin registries. "},{text:"Planning, zoning, and environmental impact rules apply locally.",faqLinks:[{text:"Planning",message:"What planning, zoning, and environmental requirements apply to heat recovery projects?"}]}]},{title:"Country Landscape (Snapshot)",blocks:[{subtitle:"",blocks:[{table:{headers:["Market","Maturity","Highlights"],rows:[["Denmark","Advanced","Waste heat widely integrated; tax incentives."],["France","High growth","Fonds Chaleur; new mandates for DH."],["Germany","Growing","BAFA incentives; heat cadastres."],["Sweden","Mature","Open DH markets; strong DH penetration"],["Netherlands","Pilot-stage","WarmtelinQ and industrial 
1076cluster links."]]}}]}]},{title:"Site Factors – Concrete Checklist",blocks:[{text:"Continuous waste heat >60 °C",faqLinks:[{text:"Heat Availability",message:"What minimum temperature and continuous flow are required for viable heat recovery?"}]},{text:"Demand sink nearby (industry or DH)",faqLinks:[{text:"Demand",message:"How does distance to district heating or industrial sinks affect project CAPEX?"}]},{text:" ≤5 km to connect (longer = higher CAPEX)"},{text:"Access to public energy programs or heat map zones"},{text:"Local permitting pathway and community engagement",faqLinks:[{text:"Community",message:"What local permits and community engagement steps are needed?"}]},{text:"Reliable O&M and measurement systems"}]},{title:"Quick Start Plan (Near-term)",blocks:[{text:" Audit waste heat flow (profile, temp, duration)"},{text:"Check offtake options nearby (DH map, industry)"},{text:"Cost model: heat supply vs. CAPEX/OPEX/revenue"},{text:"Apply for grants and contact DH operator"},{text:"Contractual term sheet: delivery volume, duration, penalties"}]}]}},{id:11,question:"What are my options for managing renewable energy assets after subsidies and under rising curtailment?",icon:"🔄",action:{description:"What are my options for my renewable energy assets?",icon:cSt},tags:["Renewable Energy","Post-Subsidy","Energy Strategy"],detailedAnswer:{summary:[{text:"Renewable energy asset owners face challenges such as increasing curtailment, market volatility, and ageing infrastructure once subsidies end. Several strategies can help maintain revenue, optimize operations, or exit assets",faqLinks:[{text:"Renewable Asset Strategies",message:"What challenges do renewable energy asset owners face after subsidies end, and what strategies can help maintain revenue or optimize operations?"}]}],sections:[{title:"Continue Operating Under Direct Marketing or Aggregator",blocks:[{text:"Operators can extend post-subsidy operation by selling electricity on the wholesale market through a direct marketer or aggregator. This allows hands-off trading but leaves revenue exposed to price volatility.",faqLinks:[{text:"Direct Marketing Strategy",message:"How can renewable energy operators continue post-subsidy operations using direct marketing or aggregators?"}]},{subtitle:"Pros",blocks:[{text:"Continuity without reinvestment"},{text:"Compensation for grid curtailment still applies in some countries (e.g., Germany) ",faqLinks:[{text:"Wholesale Market Sales",message:"How does selling electricity on the wholesale market work for post-subsidy assets?"}]},{text:"Aggregators handle forecasting and balancing",faqLinks:[{text:"Aggregator Services",message:"What forecasting and balancing services do aggregators provide to renewable operators?"}]}]},{subtitle:"Cons",blocks:[{text:"Market risk remains (volatile or negative prices)",faqLinks:[{text:"Market Risk",message:"What revenue risks exist due to price volatility or negative electricity prices?"}]},{text:"Asset ageing increases O&M costs",faqLinks:[{text:"O&M Costs",message:"How does asset ageing affect operations and maintenance after subsidies end?"}]},{text:"Small operators may get less favorable contracts"}]}]},{title:"Power Purchase Agreements (PPAs) ",blocks:[{text:"PPAs offer fixed or floor-price contracts with corporate buyers or utilities. They provide predictable revenues, often with long-term durations (5–15 years). ",faqLinks:[{text:"Renewable PPAs",message:"How can renewable energy operators use Power Purchase Agreements (PPAs) to secure predictable revenue?"}]},{subtitle:"Pros",blocks:[{text:"Reduces market risk and provides bankable revenue",faqLinks:[{text:"Revenue Predictability",message:"How do PPAs reduce market risk and provide bankable revenue streams?"}]},{text:"Attractive to corporates with sustainability goals"},{text:"Aggregators can bundle smaller assets into PPAs"}]},{subtitle:"Cons",blocks:[{text:"Complex to negotiate",faqLinks:[{text:"PPA Negotiation",message:"What complexities exist when negotiating PPAs for renewable assets?"}]},{text:"May exclude negative price periods or curtailment hours"},{text:"No upside in high-price scenarios"}]}]},{title:" Lease or Transfer to Developer ",blocks:[{text:"Asset owners can lease out or sell their plants to experienced developers or investors, reducing operational responsibilities.",faqLinks:[{text:"Asset Lease/Transfer",message:"How can renewable energy asset owners lease or sell their plants to developers?"}]},{subtitle:"Pros",blocks:[{text:"Transfers market and technical risk",faqLinks:[{text:"Risk Transfer",message:"How does leasing or selling a plant shift market and technical risks to the developer?"}]},{text:"Can unlock value via repowering or hybridization "},{text:"Landowners can receive steady lease payments"}]},{subtitle:"Cons",blocks:[{text:"Relinquishes control and future upside"},{text:"Requires valuation and due diligence",faqLinks:[{text:"Due Diligence",message:"What valuation and community considerations are needed before transferring ownership?"}]},{text:"Community expectations must be managed"}]}]},{title:"Repowering or Upgrading Assets",blocks:[{text:"Modernizing older installations (e.g., taller wind turbines, more efficient PV panels) can extend life and boost yield significantly. ",faqLinks:[{text:"Asset Repowering",message:"How can renewable energy operators extend asset life and boost yield through repowering or upgrading"}]},{subtitle:"Pros",blocks:[{text:"Higher energy output per hectare",faqLinks:[{text:"Output Increase",message:"How does repowering improve energy yield per hectare for wind or solar assets?"}]},{text:"Potential eligibility for new subsidies or PPAs"},{text:"Lower O&M per MWh"}]},{subtitle:"Cons",blocks:[{text:"Permitting barriers for newer turbines (e.g., distance rules)",faqLinks:[{text:"Permitting",message:"What regulatory and financial barriers exist for repowering projects?"}]},{text:"Requires high upfront capital"},{text:"Possible downtime during construction"}]}]},{title:"Add Storage (Batteries) ",blocks:[{text:"Adding co-located battery storage allows for energy shifting and participation in ancillary services, helping to mitigate curtailment. ",faqLinks:[{text:"Renewable Storage",message:"How can co-locating battery storage with renew
1076able assets reduce curtailment, create new revenue stream?"}]},{subtitle:"Pros",blocks:[{text:"Reduces losses from curtailment",faqLinks:[{text:"Curtailment Mitigation",message:"How does battery storage reduce losses from renewable energy curtailment?"}]},{text:"Creates new value from balancing/flexibility markets"},{text:"Improves PPA attractiveness"}]},{subtitle:"Cons",blocks:[{text:"High cost, especially for multi-hour systems",faqLinks:[{text:"Storage Costs & Complexity",message:"What are the financial and technical challenges of multi-hour battery systems?"}]},{text:"Technical and operational complexity"},{text:"Value depends on regulatory support and price spreads"}]}]},{title:"Develop Power-to-X (PtX) Projects",blocks:[{text:"Using excess electricity for hydrogen, ammonia, or heat enables sector coupling. Particularly useful where curtailment is frequent. ",faqLinks:[{text:"Power-to-X Projects",message:"How can renewable energy operators use excess electricity for Power-to-X (PtX) applications?"}]},{subtitle:"Pros",blocks:[{text:"New revenue streams (fuel, fertilizer, heat)",faqLinks:[{text:"Revenue Streams",message:"How do PtX applications create new local revenue opportunities?"}]},{text:"Absorbs overproduction locally"},{text:"Strong policy support in hydrogen roadmaps"}]},{subtitle:"Cons",blocks:[{text:"Expensive and low efficiency"}
1076,{text:"Limited local offtake or infrastructure"},{text:"Complex permitting and safety standards",faqLinks:[{text:"Permitting",message:"What technical, safety, and regulatory challenges exist for PtX deployment?"}]}]}]},{title:"Direct Supply to Local Consumers or Communities",blocks:[{text:"Electricity can be sold to nearby users or energy cooperatives, often using private wire or local energy community frameworks.",faqLinks:[{text:"Local Energy Supply",message:"How can renewable energy operators sell electricity directly to local consumers or communities?"}]},{subtitle:"Pros",blocks:[{text:"Captures more value than wholesale prices",faqLinks:[{text:"Value Capture",message:"How does local supply increase revenue compared to wholesale market sales?"}]},{text:"Builds local goodwill"},{text:"Aligns with EU energy sharing policies"}]},{subtitle:"Cons",blocks:[{text:"Administrative effort",faqLinks:[{text:"Administrative & Regulatory",message:"What administrative and regulatory hurdles exist for direct local supply?"}]},{text:"Regulatory fees still apply in some markets"},{text:"Limited scale for excess production"}]}]},{title:"Decommission or Mothball",blocks:[{text:"If continued operation is uneconomic and repowering is not viable, decommissioning is the fallback. ",faqLinks:[{text:"Asset Decommissioning",message:"When should renewable energy assets be decommissioned or mothballed?"}]},{subtitle:"Pros",blocks:[{text:"Halts further losses",faqLinks:[{text:"Stop Losses",message:"How does decommissioning prevent further financial losses?"}]},{text:"Meets permit obligations"},{text:"Restores land to other uses"}]},{subtitle:"Cons",blocks:[{text:"Loss of future earnings"},{text:"Decommissioning costs (especially for wind)",faqLinks:[{text:"Costs",message:"What are typical costs associated with decommissioning, especially for wind farms?"}]}]}]}]}}];var MJ=(r=>(r.JOIN_US="JoinUs",r.H2_DIGITAL_HOME="H2DigitalHome",r.H2_MED_PUBLICFORM="H2med PublicForm",r.HY_PORTAL_PUBLICFORM="Hyportal PublicForm",r.PUBLIC_FORM="PublicForm",r.MAP="Map",r.NEW_PROJECT_REQUEST_INITIATED="NewProjectRequestInitiated",r.BULK_UPLOAD_INITIATED="BulkUploadInititated",r.DUPLICATE_CHECK_INITIATED="DuplicateCheckInitiated",r.SAVE_AS_PUBLIC_INITIATED="SaveAsPublicInitiated",r.SAVE_AS_HIDDEN_INITIATED="SaveAsHiddenInitiated",r.SAVE_AS_DRAFT_INITIATED="SaveAsDraftInitiated",r.CHATBOT_INVOKED="ChatbotInvoked",r.CHATBOT_START_OVER="ChatbotStartOverClicked",r.CHATBOT_OPTION_SELECTED="ChatbotOptionSelected",r.CHATBOT_CUSTOM_BUTTON_CLICKED="ChatbotCustomButtonClicked",r.CHATBOT_AUIDO_MODE_TOGGLED="ChatbotAudioModeToggled",r.CHATBOT_AUDIO_INPUT="ChatbotAudioInput",r))(MJ||{}),BSt=(r=>(r.SAVE_AS_PUBLIC="Save as Public",r.SAVE_AS_HIDDEN="Save as Hidden",r.SAVE_AS_DRAFT="Save as Draft",r))(BSt||{}),$St=(r=>(r.MAP="Map",r.LIST="List",r.CMS="Cms",r.EDIT_STAGING_FORM="Edit Staging Form",r.AI_ASSIST_HOME="AI Assist Home",r.AI_ASSIST_CHAT="AI Assist Chat",r.HOME_PAGE="Home Page",r.NAV_BAR="Nav Bar",r.PUBLIC_FROM="Public Form",r))($St||{});const js=fL(r=>({userDetails:void 0,error:!1,errorStatus:null,user:null,userAccessConfig:dW,userSourcePathSegment:void 0,setUserDetails:e=>{r(()=>({userDetails:e}))},setUser:e=>{r(()=>({user:e}))},setError:e=>{r(()=>({error:e}))},setErrorStatus:e=>{r(()=>({errorStatus:e}))},setUserAccessConfig:e=>{r(()=>({userAccessConfig:e}))},setUserSourcePathSegment:e=>{r(()=>({userSourcePathSegment:e}))}})),Txe=()=>{const r=TK(),e=js(u=>u.userDetails),t=e!=null&&e.tags?(()=>{var p,m;const u=((p=dd(e.tags,Oi.PROVIDER))==null?void 0:p.value)??null,h=((m=dd(e.tags,Oi.SOURCE))==null?void 0:m.value)??null;return u||h?{...u&&{Provider:u},...h&&{Source:h}}:null})():null,n=e?{userId:String(e.id),userType:si[e.userType],userTags:t,aadObjectId:e.aadObjectId}:{},i=!r||!!(e!=null&&e.aadObjectId),o=(u,h)=>{i&&(Hf==null||Hf.trackEvent({name:u},{...h,...n}))},a=(u,h)=>{i&&(Hf==null||Hf.trackPageView({name:u||document.title,...h,properties:{...n}}))},l=V.useCallback(()=>{Hf==null||Hf.flush()},[]);return{trackEvent:o,flushEvents:l,trackPageView:a}},O3=()=>({});class zSt{constructor(e){eo(this,"log");eo(this,"warn");eo(this,"error");const{level:t}=e||{},n=Zn.environment===yve.LOCAL;if(this.error=(...i)=>{n&&console.error.call(console,...i)},t==="error"){this.warn=O3,this.log=O3;return}if(this.warn=(...i)=>{n&&console.warn.call(console,...i)},t==="warn"){this.log=O3;return}this.log=(...i)=>{n&&console.log.call(console,...i)}}}const Bd=new zSt,Z9=(r,e)=>{const[t,n]=V.useState(()=>{try{const o=window.localStorage.getItem(r);return o?JSON.parse(o):e}catch(o){return Bd.error("Error when getting an item from local storage",o),e}});return[t,o=>{try{n(o),window.localStorage.setItem(r,JSON.stringify(o))}catch(a){Bd.error("Error when setting an item to local storage",a)}}]};var M3,Sue;function jSt(){return Sue||(Sue=1,M3={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),M3}var VSt=jSt();const qSt=ao(VSt);var GSt=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function Iue(r){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},t=r.match(/<\/?([^\s]+?)[/\s>]/);if(t&&(e.name=t[1],(qSt[t[1]]||r.charAt(r.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var n=r.indexOf("-->");return{type:"comment",comment:n!==-1?r.slice(4,n):""}}for(var i=new RegExp(GSt),o=null;(o=i.exec(r))!==null;)if(o[0].trim())if(o[1]){var a=o[1].trim(),l=[a,""];a.indexOf("=")>-1&&(l=a.split("=")),e.attrs[l[0]]=l[1],i.lastIndex--}else o[2]&&(e.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return e}var YSt=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,WSt=/^\s*$/,KSt=Object.create(null);function Sxe(r,e){switch(e.type){case"text":return r+e.content;case"tag":return r+="<"+e.name+(e.attrs?(function(t){var n=[];for(var i in t)n.push(i+'="'+t[i]+'"');return n.length?" "+n.join(" "):""})(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?r:r+e.children.reduce(Sxe,"")+"</"+e.name+">";
1076case"comment":return r+"<!--"+e.comment+"-->"}}var ZSt={parse:function(r,e){e||(e={}),e.components||(e.components=KSt);var t,n=[],i=[],o=-1,a=!1;if(r.indexOf("<")!==0){var l=r.indexOf("<");n.push({type:"text",content:l===-1?r:r.substring(0,l)})}return r.replace(YSt,function(u,h){if(a){if(u!=="</"+t.name+">")return;a=!1}var p,m=u.charAt(1)!=="/",_=u.startsWith("<!--"),C=h+u.length,T=r.charAt(C);if(_){var S=Iue(u);return o<0?(n.push(S),n):((p=i[o]).children.push(S),n)}if(m&&(o++,(t=Iue(u)).type==="tag"&&e.components[t.name]&&(t.type="component",a=!0),t.voidElement||a||!T||T==="<"||t.children.push({type:"text",content:r.slice(C,r.indexOf("<",C))}),o===0&&n.push(t),(p=i[o-1])&&p.children.push(t),i[o]=t),(!m||t.voidElement)&&(o>-1&&(t.voidElement||t.name===u.slice(2,-1))&&(o--,t=o===-1?n:i[o]),!a&&T!=="<"&&T)){p=o===-1?n:i[o].children;var R=r.indexOf("<",C),O=r.slice(C,R===-1?void 0:R);WSt.test(O)&&(O=" "),(R>-1&&o+p.length>=0||O!==" ")&&p.push({type:"text",content:O})}}),n},stringify:function(r){return r.reduce(function(e,t){return e+Sxe("",t)},"")}};function IF(){if(console&&console.warn){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];Lm(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e)}}const Aue={};function LB(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];Lm(e[0])&&Aue[e[0]]||(Lm(e[0])&&(Aue[e[0]]=new Date),IF(...e))}const Ixe=(r,e)=>()=>{if(r.isInitialized)e();else{const t=()=>{setTimeout(()=>{r.off("initialized",t)},0),e()};r.on("initialized",t)}},Rue=(r,e,t)=>{r.loadNamespaces(e,Ixe(r,t))},Pue=(r,e,t,n)=>{Lm(t)&&(t=[t]),t.forEach(i=>{r.options.ns.indexOf(i)<0&&r.options.ns.push(i)}),r.loadLanguages(e,Ixe(r,n))},XSt=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=e.languages[0],i=e.options?e.options.fallbackLng:!1,o=e.languages[e.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const a=(l,u)=>{const h=e.services.backendConnector.state[`${l}|${u}`];return h===-1||h===2};return t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!a(e.isLanguageChangingTo,r)?!1:!!(e.hasResourceBundle(n,r)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||a(n,r)&&(!i||a(o,r)))},QSt=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(LB("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(r,{lng:t.lng,precheck:(i,o)=>{if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!o(i.isLanguageChangingTo,r))return!1}}):XSt(r,e,t)},Lm=r=>typeof r=="string",gR=r=>typeof r=="object"&&r!==null,JSt=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,eIt={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},tIt=r=>eIt[r],rIt=r=>r.replace(JSt,tIt);let vW={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:rIt};const nIt=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vW={...vW,...r}},Axe=()=>vW;let Rxe;const iIt=r=>{Rxe=r},NJ=()=>Rxe,N3=(r,e)=>{if(!r)return!1;const t=r.props?r.props.children:r.children;return e?t.length>0:!!t},D3=r=>{if(!r)return[];const e=r.props?r.props.children:r.children;return r.props&&r.props.i18nIsDynamicList?mR(e):e},oIt=r=>Array.isArray(r)&&r.every(V.isValidElement),mR=r=>Array.isArray(r)?r:[r],aIt=(r,e)=>{const t={...e};return t.props=Object.assign(r.props,e.props),t},Pxe=(r,e)=>{if(!r)return"";let t="";const n=mR(r),i=e.transSupportBasicHtmlNodes&&e.transKeepBasicHtmlNodesFor?e.transKeepBasicHtmlNodesFor:[];
1076return n.forEach((o,a)=>{if(Lm(o))t+=`${o}`;else if(V.isValidElement(o)){const{props:l,type:u}=o,h=Object.keys(l).length,p=i.indexOf(u)>-1,m=l.children;if(!m&&p&&!h)t+=`<${u}/>`;else if(!m&&(!p||h)||l.i18nIsDynamicList)t+=`<${a}></${a}>`;else if(p&&h===1&&Lm(m))t+=`<${u}>${m}</${u}>`;else{const _=Pxe(m,e);t+=`<${a}>${_}</${a}>`}}else if(o===null)IF("Trans: the passed in value is invalid - seems you passed in a null child.");else if(gR(o)){const{format:l,...u}=o,h=Object.keys(u);if(h.length===1){const p=l?`${h[0]}, ${l}`:h[0];t+=`{{${p}}}`}else IF("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",o)}else IF("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",o)}),t},sIt=(r,e,t,n,i,o)=>{if(e==="")return[];const a=n.transKeepBasicHtmlNodesFor||[],l=e&&new RegExp(a.map(R=>`<${R}`).join("|")).test(e);if(!r&&!l&&!o)return[e];const u={},h=R=>{mR(R).forEach(N=>{Lm(N)||(N3(N)?h(D3(N)):gR(N)&&!V.isValidElement(N)&&Object.assign(u,N))})};h(r);const p=ZSt.parse(`<0>${e}</0>`),m={...u,...i},_=(R,O,N)=>{const H=D3(R),F=T(H,O.children,N);return oIt(H)&&F.length===0||R.props&&R.props.i18nIsDynamicList?H:F},C=(R,O,N,H,F)=>{R.dummy?(R.children=O,N.push(V.cloneElement(R,{key:H},F?void 0:O))):N.push(...V.Children.map([R],j=>{const L={...j.props};return delete L.i18nIsDynamicList,V.createElement(j.type,{...L,key:H,ref:j.ref},F?null:O)}))},T=(R,O,N)=>{const H=mR(R);return mR(O).reduce((j,L,B)=>{const Q=L.children&&L.children[0]&&L.children[0].content&&t.services.interpolator.interpolate(L.children[0].content,m,t.language);if(L.type==="tag"){let Z=H[parseInt(L.name,10)];N.length===1&&!Z&&(Z=N[0][L.name]),Z||(Z={});const ie=Object.keys(L.attrs).length!==0?aIt({props:L.attrs},Z):Z,J=V.isValidElement(ie),ne=J&&N3(L,!0)&&!L.voidElement,ue=l&&gR(ie)&&ie.dummy&&!J,K=gR(r)&&Object.hasOwnProperty.call(r,L.name);if(Lm(ie)){const se=t.services.interpolator.interpolate(ie,m,t.language);j.push(se)}else if(N3(ie)||ne){const se=_(ie,L,N);C(ie,se,j,B)}else if(ue){const se=T(H,L.children,N);C(ie,se,j,B)}else if(Number.isNaN(parseFloat(L.name)))if(K){const se=_(ie,L,N);C(ie,se,j,B,L.voidElement)}else if(n.transSupportBasicHtmlNodes&&a.indexOf(L.name)>-1)if(L.voidElement)j.push(V.createElement(L.name,{key:`${L.name}-${B}`}));else{const se=T(H,L.children,N);j.push(V.createElement(L.name,{key:`${L.name}-${B}`},se))}else if(L.voidElement)j.push(`<${L.name} />`);else{const se=T(H,L.children,N);j.push(`<${L.name}>${se}</${L.name}>`)}else if(gR(ie)&&!J){const se=L.children[0]?Q:null;se&&j.push(se)}else C(ie,Q,j,B,L.children.length!==1||!Q)}else if(L.type==="text"){const Z=n.transWrapTextNodes,ie=o?n.unescape(t.services.interpolator.interpolate(L.content,m,t.language)):t.services.interpolator.interpolate(L.content,m,t.language);Z?j.push(V.createElement(Z,{key:`${L.name}-${B}`},ie)):j.push(ie)}return j},[])},S=T([{dummy:!0,children:r||[]}],p,mR(r||[]));return D3(S[0])};function lIt(r){let{children:e,count:t,parent:n,i18nKey:i,context:o,tOptions:a={},values:l,defaults:u,components:h,ns:p,i18n:m,t:_,shouldUnescape:C,...T}=r;const S=m||NJ();if(!S)return LB("You will need to pass in an i18next instance by using i18nextReactModule"),e;const R=_||S.t.bind(S)||(ne=>ne),O={...Axe(),...S.options&&S.options.react};let N=p||R.ns||S.options&&S.options.defaultNS;N=Lm(N)?[N]:N||["translation"];const H=Pxe(e,O),F=u||H||O.transEmptyNodeValue||i,{hashTransKey:j}=O,L=i||(j?j(H||F):H||F);S.options&&S.options.interpolation&&S.options.interpolation.defaultVariables&&(l=l&&Object.keys(l).length>0?{...l,...S.options.interpolation.defaultVariables}:{...S.options.interpolation.defaultVariables});const B=l||t!==void 0||!e?a.interpolation:{interpolation:{...a.interpolation,prefix:"#$?",suffix:"?$#"}},Q={...a,context:o||a.context,count:t,...l,...B,defaultValue:F,ns:N},Z=L?R(L,Q):F;h&&Object.keys(h).forEach(ne=>{const ue=h[ne];if(typeof ue.type=="function"||!ue.props||!ue.props.children||Z.indexOf(`${ne}/>`)<0&&Z.indexOf(`${ne} />`)<0)return;function K(){return V.createElement(V.Fragment,null,ue)}h[ne]=V.createElement(K)});const ie=sIt(h||e,Z,S,O,Q,C),J=n!==void 0?n:O.defaultTransParent;return J?V.createElement(J,T,ie):ie}const cIt={type:"3rdParty",init(r){nIt(r.options.react),iIt(r)}},kxe=V.createContext();class uIt{constructor(){eo(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(t=>{this.usedNamespaces[t]||(this.usedNamespaces[t]=!0)})}}function dIt(r){let{children:e,count:t,parent:n,i18nKey:i,context:o,tOptions:a={}
1076,values:l,defaults:u,components:h,ns:p,i18n:m,t:_,shouldUnescape:C,...T}=r;const{i18n:S,defaultNS:R}=V.useContext(kxe)||{},O=m||S||NJ(),N=_||O&&O.t.bind(O);return lIt({children:e,count:t,parent:n,i18nKey:i,context:o,tOptions:a,values:l,defaults:u,components:h,ns:p||N&&N.ns||R||O&&O.options&&O.options.defaultNS,i18n:O,t:_,shouldUnescape:C,...T})}const hIt=(r,e)=>{const t=V.useRef();return V.useEffect(()=>{t.current=r},[r,e]),t.current},Oxe=(r,e,t,n)=>r.getFixedT(e,t,n),fIt=(r,e,t,n)=>V.useCallback(Oxe(r,e,t,n),[r,e,t,n]),Tc=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:t}=e,{i18n:n,defaultNS:i}=V.useContext(kxe)||{},o=t||n||NJ();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new uIt),!o){LB("You will need to pass in an i18next instance by using initReactI18next");const F=(L,B)=>Lm(B)?B:gR(B)&&Lm(B.defaultValue)?B.defaultValue:Array.isArray(L)?L[L.length-1]:L,j=[F,{},!1];return j.t=F,j.i18n={},j.ready=!1,j}o.options.react&&o.options.react.wait!==void 0&&LB("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...Axe(),...o.options.react,...e},{useSuspense:l,keyPrefix:u}=a;let h=i||o.options&&o.options.defaultNS;h=Lm(h)?[h]:h||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(h);const p=(o.isInitialized||o.initializedStoreOnce)&&h.every(F=>QSt(F,o,a)),m=fIt(o,e.lng||null,a.nsMode==="fallback"?h:h[0],u),_=()=>m,C=()=>Oxe(o,e.lng||null,a.nsMode==="fallback"?h:h[0],u),[T,S]=V.useState(_);let R=h.join();e.lng&&(R=`${e.lng}${R}`);const O=hIt(R),N=V.useRef(!0);V.useEffect(()=>{const{bindI18n:F,bindI18nStore:j}=a;N.current=!0,!p&&!l&&(e.lng?Pue(o,e.lng,h,()=>{N.current&&S(C)}):Rue(o,h,()=>{N.current&&S(C)})),p&&O&&O!==R&&N.current&&S(C);const L=()=>{N.current&&S(C)};return F&&o&&o.on(F,L),j&&o&&o.store.on(j,L),()=>{N.current=!1,F&&o&&F.split(" ").forEach(B=>o.off(B,L)),j&&o&&j.split(" ").forEach(B=>o.store.off(B,L))}},[o,R]),V.useEffect(()=>{N.current&&p&&S(_)},[o,u,p]);const H=[T,o,p];if(H.t=T,H.i18n=o,H.ready=p,p||!p&&!l)return H;throw new Promise(F=>{e.lng?Pue(o,e.lng,h,()=>F()):Rue(o,h,()=>F())})},pIt={auth:{clientId:"ce086bbd-ee03-4eb2-832b-25de57cd1ac4",authority:"https://login.microsoftonline.com/31e01f9b-01af-4b3a-a0c4-0ae3193fcbe3",redirectUri:"/"},cache:{cacheLocation:"sessionStorage",storeAuthStateInCookie:!1}},kue={graphMeEndpoint:"https://graph.microsoft.com/"};class gIt{constructor(){eo(this,"msalInstance",new gOe(pIt));eo(this,"account",null);eo(this,"setAccount",e=>{this.account=e});eo(this,"getAccount",()=>this.account);eo(this,"loggout",()=>{this.msalInstance.logoutRedirect().then()});eo(this,"getAccessToken",e=>new Promise((t,n)=>{try{this.account&&this.msalInstance.acquireTokenSilent({account:this.account,scopes:[e]}).then(i=>{i.accessToken?t(i.accessToken):n(Error("Failed to acquire an access token"))})}catch(i){Bd.error("acquireTokenSilent on MSAL instance failed",i)}}))}}const YS=new gIt,mIt=({customErrorMessage:r,customErrorTitle:e,buttonLabel:t,hideButton:n=!1})=>{const{t:i}=Tc(),o=()=>{YS.loggout()},a=()=>{window.history.back()};return $.jsx("div",{id:"notfound",className:"not-found-container",children:$.jsxs("div",{className:"not-found",children:[$.jsxs("h2",{children:[e||i("fallback.weAreSorry")," "]}),$.jsx("p",{children:r||i("fallback.defaultMessage")}),n?$.jsx($.Fragment,{}):$.jsx("button",{onClick:t?a:o,children:t||i("fallback.backToLogin")})]})})},yIt=()=>{const{t:r}=Tc(),e=()=>{YS.loggout()};return $.jsx("div",{className:"network-fallback-container",children:$.jsxs("div",{className:"network-fallback",children:[$.jsx("img",{className:"access-blocked-img",src:Hut}),$.jsx("h2",{children:r("fallback.noAccessTitle")}),$.jsxs("div",{className:"reason-box",children:[$.jsxs("p",{children:[$.jsx("b",{children:"https://api.h2-digital.com"})," ",r("fallback.refusedToConnect")]}),$.jsxs("p",{children:[r("fallback.tryWithIT"),$.jsxs("ul",{children:[$.jsx("li",{children:r("fallback.checkFirewall")}),$.jsx("li",{children:r("fallback.checkWithOrganization")}),$.jsx("li",{children:r("fallback.noNetwork")})]})]})]}),$.jsxs("button",{onClick:e,children:[" ",r("fallback.backToLogin")]})]})})},Mxe=({errorStatus:r,customErrorMessage:e,customErrorTitle:t,buttonLabel:n,hideButton:i=!1})=>{var h,p,m;const o=js(_=>_.user),{t:a}=Tc(),l=(r==null?void 0:r.code)===wve.ERR_NETWORK,u=((m=(p=(h=r==null?void 0:r.response)==null?void 0:h.data)==null?void 0:p.message)==null?void 0:m.error)===AZ.USER_NOT_FOUND;return r&&Bd.error("Resided to fallback component because:",r),l?$.jsx(yIt,{}):$.jsx(mIt,{customErrorMessage:u?a("fallback.userNotAuthorized",{user:o==null?void 0:o.userPrincipalName}):e,customErrorTitle:t,buttonLabel:n,hideButton:i})};var zO={},Oue;function vIt(){if(Oue)return zO;Oue=1;var r=Wa();
1076Object.defineProperty(zO,"__esModule",{value:!0}),zO.default=void 0;var e=r(Ts()),t=ls();return zO.default=(0,e.default)((0,t.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-7 12h-2v-2h2zm0-4h-2V6h2z"}),"Feedback"),zO}var _It=vIt();const bIt=ao(_It);var jO={},Mue;function wIt(){if(Mue)return jO;Mue=1;var r=Wa();Object.defineProperty(jO,"__esModule",{value:!0}),jO.default=void 0;var e=r(Ts()),t=ls();return jO.default=(0,e.default)((0,t.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),jO}var EIt=wIt();const Nxe=ao(EIt);var Us={},Y6={},W6={},K6={},L3,Nue;function CIt(){if(Nue)return L3;Nue=1;var r="Expected a function",e=NaN,t="[object Symbol]",n=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt,u=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,h=typeof self=="object"&&self&&self.Object===Object&&self,p=u||h||Function("return this")(),m=Object.prototype,_=m.toString,C=Math.max,T=Math.min,S=function(){return p.Date.now()};function R(L,B,Q){var Z,ie,J,ne,ue,K,se=0,be=!1,de=!1,ge=!0;if(typeof L!="function")throw new TypeError(r);B=j(B)||0,N(Q)&&(be=!!Q.leading,de="maxWait"in Q,J=de?C(j(Q.maxWait)||0,B):J,ge="trailing"in Q?!!Q.trailing:ge);function Ue(qe){var lt=Z,Et=ie;return Z=ie=void 0,se=qe,ne=L.apply(Et,lt),ne}function Qe(qe){return se=qe,ue=setTimeout(He,B),be?Ue(qe):ne}function ve(qe){var lt=qe-K,Et=qe-se,Oe=B-lt;return de?T(Oe,J-Et):Oe}function pe(qe){var lt=qe-K,Et=qe-se;return K===void 0||lt>=B||lt<0||de&&Et>=J}function He(){var qe=S();if(pe(qe))return Re(qe);ue=setTimeout(He,ve(qe))}function Re(qe){return ue=void 0,ge&&Z?Ue(qe):(Z=ie=void 0,ne)}function $e(){ue!==void 0&&clearTimeout(ue),se=0,Z=K=ie=ue=void 0}function tt(){return ue===void 0?ne:Re(S())}function ot(){var qe=S(),lt=pe(qe);if(Z=arguments,ie=this,K=qe,lt){if(ue===void 0)return Qe(K);if(de)return ue=setTimeout(He,B),Ue(K)}return ue===void 0&&(ue=setTimeout(He,B)),ne}return ot.cancel=$e,ot.flush=tt,ot}function O(L,B,Q){var Z=!0,ie=!0;if(typeof L!="function")throw new TypeError(r);return N(Q)&&(Z="leading"in Q?!!Q.leading:Z,ie="trailing"in Q?!!Q.trailing:ie),R(L,B,{leading:Z,maxWait:B,trailing:ie})}function N(L){var B=typeof L;return!!L&&(B=="object"||B=="function")}function H(L){return!!L&&typeof L=="object"}function F(L){return typeof L=="symbol"||H(L)&&_.call(L)==t}function j(L){if(typeof L=="number")return L;if(F(L))return e;if(N(L)){var B=typeof L.valueOf=="function"?L.valueOf():L;L=N(B)?B+"":B}if(typeof L!="string")return L===0?L:+L;L=L.replace(n,"");var Q=o.test(L);return Q||a.test(L)?l(L.slice(2),Q?2:8):i.test(L)?e:+L}return L3=O,L3}var VO={},Due;function DJ(){if(Due)return VO;Due=1,Object.defineProperty(VO,"__esModule",{value:!0}),VO.addPassiveEventListener=function(t,n,i){var o=i.name;o||(o=n,console.warn("Listener must be a named function.")),r.has(n)||r.set(n,new Set);var a=r.get(n);if(!a.has(o)){var l=(function(){var u=!1;try{var h=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("test",null,h)}catch{}return u})();t.addEventListener(n,i,l?{passive:!0}:!1),a.add(o)}},VO.removePassiveEventListener=function(t,n,i){t.removeEventListener(n,i),r.get(n).delete(i.name||n)};var r=new Map;return VO}var Lue;function LJ(){if(Lue)return K6;Lue=1,Object.defineProperty(K6,"__esModule",{value:!0});var r=CIt(),e=n(r),t=DJ();function n(a){return a&&a.__esModule?a:{default:a}}var i=function(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:66;return(0,e.default)(l,u)},o={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(l,u){if(l){var h=i(function(p){o.scrollHandler(l)},u);return o.scrollSpyContainers.push(l),(0,t.addPassiveEventListener)(l,"scroll",h),function(){(0,t.removePassiveEventListener)(l,"scroll",h),o.scrollSpyContainers.splice(o.scrollSpyContainers.indexOf(l),1)}}return function(){}},isMounted:function(l){return o.scrollSpyContainers.indexOf(l)!==-1},currentPositionX:function(l){if(l===document){var u=window.scrollY!==void 0,h=(document.compatMode||"")==="CSS1Compat";return u?window.scrollX:h?document.documentElement.scrollLeft:document.body.scrollLeft}else return l.scrollLeft},currentPositionY:function(l){if(l===document){var u=window.scrollX!==void 0,h=(document.compatMode||"")==="CSS1Compat";return u?window.scrollY:h?document.documentElement.scrollTop:document.body.scrollTop}else return l.scrollTop},scrollHandler:function(l){var u=o.scrollSpyContainers[o.scrollSpyContainers.indexOf(l)].spyCallbacks||[];u.forEach(function(h){return h(o.currentPositionX(l),o.currentPositionY(l))})},addStateHandler:function(l){o.spySetState.push(l)},addSpyHandler:function(l,u){var h=o.scrollSpyContainers[o.scrollSpyContainers.indexOf(u)];h.spyCallbacks||(h.spyCallbacks=[]),h.spyCallbacks.push(l)},updateStates:function(){o.spySetState.forEach(function(l){return l()})}
1076,unmount:function(l,u){o.scrollSpyContainers.forEach(function(h){return h.spyCallbacks&&h.spyCallbacks.length&&h.spyCallbacks.indexOf(u)>-1&&h.spyCallbacks.splice(h.spyCallbacks.indexOf(u),1)}),o.spySetState&&o.spySetState.length&&o.spySetState.indexOf(l)>-1&&o.spySetState.splice(o.spySetState.indexOf(l),1),document.removeEventListener("scroll",o.scrollHandler)},update:function(){return o.scrollSpyContainers.forEach(function(l){return o.scrollHandler(l)})}};return K6.default=o,K6}var Z6={},X6={},Hue;function X9(){if(Hue)return X6;Hue=1,Object.defineProperty(X6,"__esModule",{value:!0});var r=function(l,u){var h=l.indexOf("#")===0?l.substring(1):l,p=h?"#"+h:"",m=window&&window.location,_=p?m.pathname+m.search+p:m.pathname+m.search;u?history.pushState(history.state,"",_):history.replaceState(history.state,"",_)},e=function(){return window.location.hash.replace(/^#/,"")},t=function(l){return function(u){return l.contains?l!=u&&l.contains(u):!!(l.compareDocumentPosition(u)&16)}},n=function(l){return getComputedStyle(l).position!=="static"},i=function(l,u){for(var h=l.offsetTop,p=l.offsetParent;p&&!u(p);)h+=p.offsetTop,p=p.offsetParent;return{offsetTop:h,offsetParent:p}},o=function(l,u,h){if(h)return l===document?u.getBoundingClientRect().left+(window.scrollX||window.pageXOffset):getComputedStyle(l).position!=="static"?u.offsetLeft:u.offsetLeft-l.offsetLeft;if(l===document)return u.getBoundingClientRect().top+(window.scrollY||window.pageYOffset);
1076if(n(l)){if(u.offsetParent!==l){var p=function(R){return R===l||R===document},m=i(u,p),_=m.offsetTop,C=m.offsetParent;if(C!==l)throw new Error("Seems containerElement is not an ancestor of the Element");return _}return u.offsetTop}if(u.offsetParent===l.offsetParent)return u.offsetTop-l.offsetTop;var T=function(R){return R===document};return i(u,T).offsetTop-i(l,T).offsetTop};return X6.default={updateHash:r,getHash:e,filterElementInContainer:t,scrollOffset:o},X6}var Q6={},J6={},Fue;function xIt(){return Fue||(Fue=1,Object.defineProperty(J6,"__esModule",{value:!0}),J6.default={defaultEasing:function(e){return e<.5?Math.pow(e*2,2)/2:1-Math.pow((1-e)*2,2)/2},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:-1+(4-2*e)*e},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}}),J6}var eH={},Uue;function TIt(){if(Uue)return eH;Uue=1,Object.defineProperty(eH,"__esModule",{value:!0});var r=DJ(),e=["mousedown","wheel","touchmove","keydown"];return eH.default={subscribe:function(n){return typeof document<"u"&&e.forEach(function(i){return(0,r.addPassiveEventListener)(document,i,n)})}},eH}var tH={},Bue;function HJ(){if(Bue)return tH;Bue=1,Object.defineProperty(tH,"__esModule",{value:!0});var r={registered:{},scrollEvent:{register:function(t,n){r.registered[t]=n},remove:function(t){r.registered[t]=null}}};return tH.default=r,tH}var $ue;function Dxe(){if($ue)return Q6;$ue=1,Object.defineProperty(Q6,"__esModule",{value:!0});var r=Object.assign||function(ie){for(var J=1;J<arguments.length;J++){var ne=arguments[J];for(var ue in ne)Object.prototype.hasOwnProperty.call(ne,ue)&&(ie[ue]=ne[ue])}return ie},e=X9();u(e);var t=xIt(),n=u(t),i=TIt(),o=u(i),a=HJ(),l=u(a);function u(ie){return ie&&ie.__esModule?ie:{default:ie}}var h=function(J){return n.default[J.smooth]||n.default.defaultEasing},p=function(J){return typeof J=="function"?J:function(){return J}},m=function(){if(typeof window<"u")return window.requestAnimationFrame||window.webkitRequestAnimationFrame},_=(function(){return m()||function(ie,J,ne){window.setTimeout(ie,ne||1e3/60,new Date().getTime())}})(),C=function(){return{currentPosition:0,startPosition:0,targetPosition:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,delta:null,percent:null,delayTimeout:null}},T=function(J){var ne=J.data.containerElement;if(ne&&ne!==document&&ne!==document.body)return ne.scrollLeft;var ue=window.pageXOffset!==void 0,K=(document.compatMode||"")==="CSS1Compat";return ue?window.pageXOffset:K?document.documentElement.scrollLeft:document.body.scrollLeft},S=function(J){var ne=J.data.containerElement;if(ne&&ne!==document&&ne!==document.body)return ne.scrollTop;var ue=window.pageXOffset!==void 0,K=(document.compatMode||"")==="CSS1Compat";return ue?window.pageYOffset:K?document.documentElement.scrollTop:document.body.scrollTop},R=function(J){var ne=J.data.containerElement;if(ne&&ne!==document&&ne!==document.body)return ne.scrollWidth-ne.offsetWidth;var ue=document.body,K=document.documentElement;return Math.max(ue.scrollWidth,ue.offsetWidth,K.clientWidth,K.scrollWidth,K.offsetWidth)},O=function(J){var ne=J.data.containerElement;if(ne&&ne!==document&&ne!==document.body)return ne.scrollHeight-ne.offsetHeight;var ue=document.body,K=document.documentElement;return Math.max(ue.scrollHeight,ue.offsetHeight,K.clientHeight,K.scrollHeight,K.offsetHeight)},N=function ie(J,ne,ue){var K=ne.data;if(!ne.ignoreCancelEvents&&K.cancel){l.default.registered.end&&l.default.registered.end(K.to,K.target,K.currentPositionY);return}if(K.delta=Math.round(K.targetPosition-K.startPosition),K.start===null&&(K.start=ue),K.progress=ue-K.start,K.percent=K.progress>=K.duration?1:J(K.progress/K.duration),K.currentPosition=K.startPosition+Math.ceil(K.delta*K.percent),K.containerElement&&K.containerElement!==document&&K.containerElement!==document.body?ne.horizontal?K.containerElement.scrollLeft=K.currentPosition:K.containerElement.scrollTop=K.currentPosition:ne.horizontal?window.scrollTo(K.currentPosition,0):window.scrollTo(0,K.currentPosition),K.percent<1){var se=ie.bind(null,J,ne);_.call(window,se);return}l.default.registered.end&&l.default.registered.end(K.to,K.target,K.currentPosition)},H=function(J){J.data.containerElement=J?J.containerId?document.getElementById(J.containerId):J.container&&J.container.nodeType?J.container:document:null},F=function(J,ne,ue,K){ne.data=ne.data||C(),window.clearTimeout(ne.data.delayTimeout);var se=function(){ne.data.cancel=!0};if(o.default.subscribe(se),H(ne),ne.data.start=null,ne.data.cancel=!1,ne.data.startPosition=ne.horizontal?T(ne):S(ne),ne.data.targetPosition=ne.absolute?J:J+ne.data.startPosition,ne.data.startPosition===ne.data.targetPosition){l.default.registered.end&&l.default.registered.end(ne.data.to,ne.data.target,ne.data.currentPosition);return}ne.data.delta=Math.round(ne.data.targetPosition-ne.data.startPosition),ne.data.duration=p(ne.duration)(ne.data.delta),ne.data.duration=isNaN(parseFloat(ne.data.duration))?1e3:parseFloat(ne.data.duration),ne.data.to=ue,ne.data.target=K;var be=h(ne),de=N.bind(null,be,ne);
1076if(ne&&ne.delay>0){ne.data.delayTimeout=window.setTimeout(function(){l.default.registered.begin&&l.default.registered.begin(ne.data.to,ne.data.target),_.call(window,de)},ne.delay);return}l.default.registered.begin&&l.default.registered.begin(ne.data.to,ne.data.target),_.call(window,de)},j=function(J){return J=r({},J),J.data=J.data||C(),J.absolute=!0,J},L=function(J){F(0,j(J))},B=function(J,ne){F(J,j(ne))},Q=function(J){J=j(J),H(J),F(J.horizontal?R(J):O(J),J)},Z=function(J,ne){ne=j(ne),H(ne);var ue=ne.horizontal?T(ne):S(ne);F(J+ue,ne)};return Q6.default={animateTopScroll:F,getAnimationType:h,scrollToTop:L,scrollToBottom:Q,scrollTo:B,scrollMore:Z},Q6}var zue;function Q9(){if(zue)return Z6;zue=1,Object.defineProperty(Z6,"__esModule",{value:!0});var r=Object.assign||function(p){for(var m=1;m<arguments.length;m++){var _=arguments[m];for(var C in _)Object.prototype.hasOwnProperty.call(_,C)&&(p[C]=_[C])}return p},e=X9(),t=l(e),n=Dxe(),i=l(n),o=HJ(),a=l(o);function l(p){return p&&p.__esModule?p:{default:p}}var u={},h=void 0;return Z6.default={unmount:function(){u={}},register:function(m,_){u[m]=_},unregister:function(m){delete u[m]},get:function(m){return u[m]||document.getElementById(m)||document.getElementsByName(m)[0]||document.getElementsByClassName(m)[0]},setActiveLink:function(m){return h=m},getActiveLink:function(){return h},scrollTo:function(m,_){var C=this.get(m);if(!C){console.warn("target Element not found");return}_=r({},_,{absolute:!1});var T=_.containerId,S=_.container,R=void 0;T?R=document.getElementById(T):S&&S.nodeType?R=S:R=document,_.absolute=!0;var O=_.horizontal,N=t.default.scrollOffset(R,C,O)+(_.offset||0);if(!_.smooth){a.default.registered.begin&&a.default.registered.begin(m,C),R===document?_.horizontal?window.scrollTo(N,0):window.scrollTo(0,N):R.scrollTop=N,a.default.registered.end&&a.default.registered.end(m,C);return}i.default.animateTopScroll(N,_,m,C)}},Z6}var rH={},jue;function Lxe(){if(jue)return rH;jue=1,Object.defineProperty(rH,"__esModule",{value:!0}),DJ();var r=X9(),e=t(r);function t(i){return i&&i.__esModule?i:{default:i}}var n={mountFlag:!1,initialized:!1,scroller:null,containers:{},mount:function(o){this.scroller=o,this.handleHashChange=this.handleHashChange.bind(this),window.addEventListener("hashchange",this.handleHashChange),this.initStateFromHash(),this.mountFlag=!0},mapContainer:function(o,a){this.containers[o]=a},isMounted:function(){return this.mountFlag},isInitialized:function(){return this.initialized},initStateFromHash:function(){var o=this,a=this.getHash();a?window.setTimeout(function(){o.scrollTo(a,!0),o.initialized=!0},10):this.initialized=!0},scrollTo:function(o,a){var l=this.scroller,u=l.get(o);if(u&&(a||o!==l.getActiveLink())){var h=this.containers[o]||document;l.scrollTo(o,{container:h})}},getHash:function(){return e.default.getHash()},changeHash:function(o,a){this.isInitialized()&&e.default.getHash()!==o&&e.default.updateHash(o,a)},handleHashChange:function(){this.scrollTo(this.getHash())},unmount:function(){this.scroller=null,this.containers=null,window.removeEventListener("hashchange",this.handleHashChange)}};return rH.default=n,rH}var Vue;function FJ(){if(Vue)return W6;Vue=1,Object.defineProperty(W6,"__esModule",{value:!0});var r=Object.assign||function(O){for(var N=1;N<arguments.length;N++){var H=arguments[N];for(var F in H)Object.prototype.hasOwnProperty.call(H,F)&&(O[F]=H[F])}return O},e=(function(){function O(N,H){for(var F=0;F<H.length;F++){var j=H[F];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(N,j.key,j)}}return function(N,H,F){return H&&O(N.prototype,H),F&&O(N,F),N}})(),t=b_(),n=_(t),i=LJ(),o=_(i),a=Q9(),l=_(a),u=WD(),h=_(u),p=Lxe(),m=_(p);function _(O){return O&&O.__esModule?O:{default:O}}function C(O,N){if(!(O instanceof N))throw new TypeError("Cannot call a class as a function")}function T(O,N){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:O}function S(O,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);O.prototype=Object.create(N&&N.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(O,N):O.__proto__=N)}var R={to:h.default.string.isRequired,containerId:h.default.string,container:h.default.object,activeClass:h.default.string,activeStyle:h.default.object,spy:h.default.bool,horizontal:h.default.bool,smooth:h.default.oneOfType([h.default.bool,h.default.string]),offset:h.default.number,delay:h.default.number,isDynamic:h.default.bool,onClick:h.default.func,duration:h.default.oneOfType([h.default.number,h.default.func]),absolute:h.default.bool,onSetActive:h.default.func,onSetInactive:h.default.func,ignoreCancelEvents:h.default.bool,hashSpy:h.default.bool,saveHashHistory:h.default.bool,spyThrottle:h.default.number};return W6.default=function(O,N){var H=N||l.default,F=(function(L){S(B,L);function B(Q){C(this,B);
1076var Z=T(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,Q));return j.call(Z),Z.state={active:!1},Z.beforeUnmountCallbacks=[],Z}return e(B,[{key:"getScrollSpyContainer",value:function(){var Z=this.props.containerId,ie=this.props.container;return Z&&!ie?document.getElementById(Z):ie&&ie.nodeType?ie:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var Z=this.getScrollSpyContainer();if(!o.default.isMounted(Z)){var ie=o.default.mount(Z,this.props.spyThrottle);this.beforeUnmountCallbacks.push(ie)}this.props.hashSpy&&(m.default.isMounted()||m.default.mount(H),m.default.mapContainer(this.props.to,Z)),o.default.addSpyHandler(this.spyHandler,Z),this.setState({container:Z})}}},{key:"componentWillUnmount",value:function(){o.default.unmount(this.stateHandler,this.spyHandler),this.beforeUnmountCallbacks.forEach(function(Z){return Z()})}},{key:"render",value:function(){var Z="";this.state&&this.state.active?Z=((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():Z=this.props.className;var ie={};this.state&&this.state.active?ie=r({},this.props.style,this.props.activeStyle):ie=r({},this.props.style);var J=r({},this.props);for(var ne in R)J.hasOwnProperty(ne)&&delete J[ne];return J.className=Z,J.style=ie,J.onClick=this.handleClick,n.default.createElement(O,J)}}]),B})(n.default.PureComponent),j=function(){var B=this;this.scrollTo=function(Q,Z){H.scrollTo(Q,r({},B.state,Z))},this.handleClick=function(Q){B.props.onClick&&B.props.onClick(Q),Q.stopPropagation&&Q.stopPropagation(),Q.preventDefault&&Q.preventDefault(),B.scrollTo(B.props.to,B.props)},this.spyHandler=function(Q,Z){var ie=B.getScrollSpyContainer();if(!(m.default.isMounted()&&!m.default.isInitialized())){var J=B.props.horizontal,ne=B.props.to,ue=null,K=void 0,se=void 0;if(J){var be=0,de=0,ge=0;if(ie.getBoundingClientRect){var Ue=ie.getBoundingClientRect();ge=Ue.left}if(!ue||B.props.isDynamic){if(ue=H.get(ne),!ue)return;var Qe=ue.getBoundingClientRect();be=Qe.left-ge+Q,de=be+Qe.width}var ve=Q-B.props.offset;K=ve>=Math.floor(be)&&ve<Math.floor(de),se=ve<Math.floor(be)||ve>=Math.floor(de)}else{var pe=0,He=0,Re=0;if(ie.getBoundingClientRect){var $e=ie.getBoundingClientRect();Re=$e.top}if(!ue||B.props.isDynamic){if(ue=H.get(ne),!ue)return;var tt=ue.getBoundingClientRect();pe=tt.top-Re+Z,He=pe+tt.height}var ot=Z-B.props.offset;K=ot>=Math.floor(pe)&&ot<Math.floor(He),se=ot<Math.floor(pe)||ot>=Math.floor(He)}var qe=H.getActiveLink();if(se){if(ne===qe&&H.setActiveLink(void 0),B.props.hashSpy&&m.default.getHash()===ne){var lt=B.props.saveHashHistory,Et=lt===void 0?!1:lt;m.default.changeHash("",Et)}B.props.spy&&B.state.active&&(B.setState({active:!1}),B.props.onSetInactive&&B.props.onSetInactive(ne,ue))}if(K&&(qe!==ne||B.state.active===!1)){H.setActiveLink(ne);var Oe=B.props.saveHashHistory,le=Oe===void 0?!1:Oe;B.props.hashSpy&&m.default.changeHash(ne,le),B.props.spy&&(B.setState({active:!0}),B.props.onSetActive&&B.props.onSetActive(ne,ue))}}}};return F.propTypes=R,F.defaultProps={offset:0},F},W6}var que;function SIt(){if(que)return Y6;que=1,Object.defineProperty(Y6,"__esModule",{value:!0});var r=b_(),e=i(r),t=FJ(),n=i(t);function i(h){return h&&h.__esModule?h:{default:h}}function o(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function a(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function l(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var u=(function(h){l(p,h);function p(){var m,_,C,T;o(this,p);for(var S=arguments.length,R=Array(S),O=0;O<S;O++)R[O]=arguments[O];return T=(_=(C=a(this,(m=p.__proto__||Object.getPrototypeOf(p)).call.apply(m,[this].concat(R))),C),C.render=function(){return e.default.createElement("a",C.props,C.props.children)},_),a(C,T)}return p})(e.default.Component);return Y6.default=(0,n.default)(u),Y6}var nH={},Gue;function IIt(){if(Gue)return nH;Gue=1,Object.defineProperty(nH,"__esModule",{value:!0});var r=(function(){function p(m,_){for(var C=0;C<_.length;C++){var T=_[C];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(m,T.key,T)}}return function(m,_,C){return _&&p(m.prototype,_),C&&p(m,C),m}})(),e=b_(),t=o(e),n=FJ(),i=o(n);function o(p){return p&&p.__esModule?p:{default:p}}function a(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function l(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:p}function u(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(p,m):p.__proto__=m)}var h=(function(p){u(m,p);function m(){return a(this,m),l(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return r(m,[{key:"render",value:function(){return t.default.createElement("button",this.props,this.props.children)}}]),m})(t.default.Component);return nH.default=(0,i.default)(h),nH}var iH={},oH={},Yue;
1076function Hxe(){if(Yue)return oH;Yue=1,Object.defineProperty(oH,"__esModule",{value:!0});var r=Object.assign||function(C){for(var T=1;T<arguments.length;T++){var S=arguments[T];for(var R in S)Object.prototype.hasOwnProperty.call(S,R)&&(C[R]=S[R])}return C},e=(function(){function C(T,S){for(var R=0;R<S.length;R++){var O=S[R];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(T,O.key,O)}}return function(T,S,R){return S&&C(T.prototype,S),R&&C(T,R),T}})(),t=b_(),n=h(t),i=UB();h(i);var o=Q9(),a=h(o),l=WD(),u=h(l);function h(C){return C&&C.__esModule?C:{default:C}}function p(C,T){if(!(C instanceof T))throw new TypeError("Cannot call a class as a function")}function m(C,T){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:C}function _(C,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);C.prototype=Object.create(T&&T.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(C,T):C.__proto__=T)}return oH.default=function(C){var T=(function(S){_(R,S);function R(O){p(this,R);var N=m(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,O));return N.childBindings={domNode:null},N}return e(R,[{key:"componentDidMount",value:function(){if(typeof window>"u")return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(N){this.props.name!==N.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if(typeof window>"u")return!1;a.default.unregister(this.props.name)}},{key:"registerElems",value:function(N){a.default.register(N,this.childBindings.domNode)}},{key:"render",value:function(){return n.default.createElement(C,r({},this.props,{parentBindings:this.childBindings}))}}]),R})(n.default.Component);return T.propTypes={name:u.default.string,id:u.default.string},T},oH}var Wue;function AIt(){if(Wue)return iH;Wue=1,Object.defineProperty(iH,"__esModule",{value:!0});var r=Object.assign||function(C){for(var T=1;T<arguments.length;T++){var S=arguments[T];for(var R in S)Object.prototype.hasOwnProperty.call(S,R)&&(C[R]=S[R])}return C},e=(function(){function C(T,S){for(var R=0;R<S.length;R++){var O=S[R];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(T,O.key,O)}}return function(T,S,R){return S&&C(T.prototype,S),R&&C(T,R),T}})(),t=b_(),n=u(t),i=Hxe(),o=u(i),a=WD(),l=u(a);function u(C){return C&&C.__esModule?C:{default:C}}function h(C,T){if(!(C instanceof T))throw new TypeError("Cannot call a class as a function")}function p(C,T){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:C}function m(C,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);C.prototype=Object.create(T&&T.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(C,T):C.__proto__=T)}var _=(function(C){m(T,C);function T(){return h(this,T),p(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return e(T,[{key:"render",value:function(){var R=this,O=r({},this.props);return delete O.name,O.parentBindings&&delete O.parentBindings,n.default.createElement("div",r({},O,{ref:function(H){R.props.parentBindings.domNode=H}}),this.props.children)}}]),T})(n.default.Component);return _.propTypes={name:l.default.string,id:l.default.string},iH.default=(0,o.default)(_),iH}var H3,Kue;function RIt(){if(Kue)return H3;Kue=1;var r=Object.assign||function(_){for(var C=1;C<arguments.length;C++){var T=arguments[C];for(var S in T)Object.prototype.hasOwnProperty.call(T,S)&&(_[S]=T[S])}return _},e=(function(){function _(C,T){for(var S=0;S<T.length;S++){var R=T[S];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(C,R.key,R)}}return function(C,T,S){return T&&_(C.prototype,T),S&&_(C,S),C}})();function t(_,C){if(!(_ instanceof C))throw new TypeError("Cannot call a class as a function")}function n(_,C){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:_}function i(_,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);_.prototype=Object.create(C&&C.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(_,C):_.__proto__=C)}var o=b_();UB(),X9();var a=LJ(),l=Q9(),u=WD(),h=Lxe(),p={to:u.string.isRequired,containerId:u.string,container:u.object,activeClass:u.string,spy:u.bool,smooth:u.oneOfType([u.bool,u.string]),offset:u.number,delay:u.number,isDynamic:u.bool,onClick:u.func,duration:u.oneOfType([u.number,u.func]),absolute:u.bool,onSetActive:u.func,onSetInactive:u.func,ignoreCancelEvents:u.bool,hashSpy:u.bool,spyThrottle:u.number},m={Scroll:function(C,T){console.warn("Helpers.Scroll is deprecated since v1.7.0");var S=T||l,R=(function(N){i(H,N);function H(F){t(this,H);var j=n(this,(H.__proto__||Object.getPrototypeOf(H)).call(this,F));return O.call(j),j.state={active:!1},j}return e(H,[{key:"getScrollSpyContainer",value:function(){var j=this.props.containerId,L=this.props.container;return j?document.getElementById(j):L&&L.nodeType?L:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var j=this.getScrollSpyContainer();a.isMounted(j)||a.mount(j,this.props.spyThrottle),this.props.hashSpy&&(h.isMounted()||h.mount(S),h.mapContainer(this.props.to,j)),this.props.spy&&a.addStateHandler(this.stateHandler),a.addSpyHandler(this.spyHandler,j),this.setState({container:j})}}},{key:"componentWillUnmount",value:function(){a.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var j="";this.state&&this.state.active?j=((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():j=this.props.className;var L=r({},this.props);for(var B in p)L.hasOwnProperty(B)&&delete L[B];return L.className=j,L.onClick=this.handleClick,o.createElement(C,L)}}]),H})(o.Component),O=function(){var H=this;this.scrollTo=function(F,j){S.scrollTo(F,r({},H.state,j))},this.handleClick=function(F){H.props.onClick&&H.props.onClick(F),F.stopPropagation&&F.stopPropagation(),F.preventDefault&&F.preventDefault(),H.scrollTo(H.props.to,H.props)},this.stateHandler=function(){S.getActiveLink()!==H.props.to&&(H.state!==null&&H.state.active&&H.props.onSetInactive&&H.props.onSetInactive(),H.setState({active:!1}))},this.spyHandler=function(F){var j=H.getScrollSpyContainer();if(!(h.isMounted()&&!h.isInitialized())){var L=H.props.to,B=null,Q=0,Z=0,ie=0;if(j.getBoundingClientRect){var J=j.getBoundingClientRect();ie=J.top}if(!B||H.props.isDynamic){if(B=S.get(L),!B)return;var ne=B.getBoundingClientRect();Q=ne.top-ie+F,Z=Q+ne.height}var ue=F-H.props.offset,K=ue>=Math.floor(Q)&&ue<Math.floor(Z),se=ue<Math.floor(Q)||ue>=Math.floor(Z),be=S.getActiveLink();if(se)return L===be&&S.setActiveLink(void 0),H.props.hashSpy&&h.getHash()===L&&h.changeHash(),H.props.spy&&H.state.active&&(H.setState({active:!1}),H.props.onSetInactive&&H.props.onSetInactive()),a.updateStates();
1076if(K&&be!==L)return S.setActiveLink(L),H.props.hashSpy&&h.changeHash(L),H.props.spy&&(H.setState({active:!0}),H.props.onSetActive&&H.props.onSetActive(L)),a.updateStates()}}};return R.propTypes=p,R.defaultProps={offset:0},R},Element:function(C){console.warn("Helpers.Element is deprecated since v1.7.0");var T=(function(S){i(R,S);function R(O){t(this,R);var N=n(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,O));return N.childBindings={domNode:null},N}return e(R,[{key:"componentDidMount",value:function(){if(typeof window>"u")return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(N){this.props.name!==N.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if(typeof window>"u")return!1;l.unregister(this.props.name)}},{key:"registerElems",value:function(N){l.register(N,this.childBindings.domNode)}},{key:"render",value:function(){return o.createElement(C,r({},this.props,{parentBindings:this.childBindings}))}}]),R})(o.Component);return T.propTypes={name:u.string,id:u.string},T}};return H3=m,H3}var Zue;function PIt(){if(Zue)return Us;Zue=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.Helpers=Us.ScrollElement=Us.ScrollLink=Us.animateScroll=Us.scrollSpy=Us.Events=Us.scroller=Us.Element=Us.Button=Us.Link=void 0;var r=SIt(),e=F(r),t=IIt(),n=F(t),i=AIt(),o=F(i),a=Q9(),l=F(a),u=HJ(),h=F(u),p=LJ(),m=F(p),_=Dxe(),C=F(_),T=FJ(),S=F(T),R=Hxe(),O=F(R),N=RIt(),H=F(N);function F(j){return j&&j.__esModule?j:{default:j}}return Us.Link=e.default,Us.Button=n.default,Us.Element=o.default,Us.scroller=l.default,Us.Events=h.default,Us.scrollSpy=m.default,Us.animateScroll=C.default,Us.ScrollLink=S.default,Us.ScrollElement=O.default,Us.Helpers=H.default,Us.default={Link:e.default,Button:n.default,Element:o.default,scroller:l.default,Events:h.default,scrollSpy:m.default,animateScroll:C.default,ScrollLink:S.default,ScrollElement:O.default,Helpers:H.default},Us}var Nx=PIt();function kIt(r){return Mr("MuiLoadingButton",r)}const v1=Br("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),OIt=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],MIt=r=>{const{loading:e,loadingPosition:t,classes:n}=r,i={root:["root",e&&"loading"],startIcon:[e&&`startIconLoading${nr(t)}`],endIcon:[e&&`endIconLoading${nr(t)}`],loadingIndicator:["loadingIndicator",e&&`loadingIndicator${nr(t)}`]},o=Ur(i,kIt,n);return ce({},n,o)},NIt=r=>r!=="ownerState"&&r!=="theme"&&r!=="sx"&&r!=="as"&&r!=="classes",DIt=Nt(fT,{shouldForwardProp:r=>NIt(r)||r==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(r,e)=>[e.root,e.startIconLoadingStart&&{[`& .${v1.startIconLoadingStart}`]:e.startIconLoadingStart},e.endIconLoadingEnd&&{[`& .${v1.endIconLoadingEnd}`]:e.endIconLoadingEnd}]})(({ownerState:r,theme:e})=>ce({[`& .${v1.startIconLoadingStart}, & .${v1.endIconLoadingEnd}`]:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},r.loadingPosition==="center"&&{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${v1.loading}`]:{color:"transparent"}},r.loadingPosition==="start"&&r.fullWidth&&{[`& .${v1.startIconLoadingStart}, & .${v1.endIconLoadingEnd}`]:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0,marginRight:-8}},r.loadingPosition==="end"&&r.fullWidth&&{[`& .${v1.startIconLoadingStart}, & .${v1.endIconLoadingEnd}`]:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0,marginLeft:-8}})),LIt=Nt("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.loadingIndicator,e[`loadingIndicator${nr(t.loadingPosition)}`]]}})(({theme:r,ownerState:e})=>ce({position:"absolute",visibility:"visible",display:"flex"},e.loadingPosition==="start"&&(e.variant==="outlined"||e.variant==="contained")&&{left:e.size==="small"?10:14},e.loadingPosition==="start"&&e.variant==="text"&&{left:6},e.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(r.vars||r).palette.action.disabled},e.loadingPosition==="end"&&(e.variant==="outlined"||e.variant==="contained")&&{right:e.size==="small"?10:14},e.loadingPosition==="end"&&e.variant==="text"&&{right:6},e.loadingPosition==="start"&&e.fullWidth&&{position:"relative",left:-10},e.loadingPosition==="end"&&e.fullWidth&&{position:"relative",right:-10})),HIt=V.forwardRef(function(e,t){const n=V.useContext(pCe),i=XP(n,e),o=Pn({props:i,name:"MuiLoadingButton"}),{children:a,disabled:l=!1,id:u,loading:h=!1,loadingIndicator:p,loadingPosition:m="center",variant:_="text"}=o,C=Gt(o,OIt),T=Jm(u),S=p??$.jsx(vCe,{"aria-labelledby":T,color:"inherit",size:16}),R=ce({},o,{disabled:l,loading:h,loadingIndicator:S,loadingPosition:m,variant:_}
1076),O=MIt(R),N=h?$.jsx(LIt,{className:O.loadingIndicator,ownerState:R,children:S}):null;return $.jsxs(DIt,ce({disabled:l||h,id:T,ref:t},C,{variant:_,classes:O,ownerState:R,children:[R.loadingPosition==="end"?a:N,R.loadingPosition==="end"?N:a]}))}),Ib=r=>{const{isSecondary:e,customClass:t}=r,n={...r};return delete n.isSecondary,delete n.customClass,$.jsx(HIt,{...n,className:`cibuscell-button ${e?"secondary":""} ${t}`})};var qO={},Xue;function FIt(){if(Xue)return qO;Xue=1;var r=Wa();Object.defineProperty(qO,"__esModule",{value:!0}),qO.default=void 0;var e=r(Ts()),t=ls();return qO.default=(0,e.default)((0,t.jsx)("path",{d:"M16 4h-1V2h-2v2h-2V2H9v2H8C5.79 4 4 5.79 4 8v10c0 2.21 1.79 4 4 4h8c2.21 0 4-1.79 4-4V8c0-2.21-1.79-4-4-4m-4 14c-1.38 0-2.5-1.1-2.5-2.46 0-1.09.43-1.39 2.5-3.79 2.05 2.38 2.5 2.7 2.5 3.79C14.5 16.9 13.38 18 12 18m4-8H8V8h8z"}),"GasMeter"),qO}var UIt=FIt();const BIt=ao(UIt);var GO={},Que;function $It(){if(Que)return GO;Que=1;var r=Wa();Object.defineProperty(GO,"__esModule",{value:!0}),GO.default=void 0;var e=r(Ts()),t=ls();return GO.default=(0,e.default)((0,t.jsx)("path",{d:"M16.48 10.41c-.39.39-1.04.39-1.43 0l-4.47-4.46-7.05 7.04-.66-.63c-1.17-1.17-1.17-3.07 0-4.24l4.24-4.24c1.17-1.17 3.07-1.17 4.24 0L16.48 9c.39.39.39 1.02 0 1.41m.7-2.12c.78.78.78 2.05 0 2.83-1.27 1.27-2.61.22-2.83 0l-3.76-3.76-5.57 5.57c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.42 0l4.62-4.62.71.71-4.62 4.62c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.42 0l4.62-4.62.71.71-4.62 4.62c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l4.62-4.62.71.71-4.62 4.62c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l8.32-8.34c1.17-1.17 1.17-3.07 0-4.24l-4.24-4.24c-1.15-1.15-3.01-1.17-4.18-.06z"}),"Handshake"),GO}var zIt=$It();const jIt=ao(zIt);var YO={},Jue;function VIt(){if(Jue)return YO;Jue=1;var r=Wa();Object.defineProperty(YO,"__esModule",{value:!0}),YO.default=void 0;var e=r(Ts()),t=ls();return YO.default=(0,e.default)((0,t.jsx)("path",{d:"M15 11V5l-3-3-3 3v2H3v14h18V11zm-8 8H5v-2h2zm0-4H5v-2h2zm0-4H5V9h2zm6 8h-2v-2h2zm0-4h-2v-2h2zm0-4h-2V9h2zm0-4h-2V5h2zm6 12h-2v-2h2zm0-4h-2v-2h2z"}),"LocationCity"),YO}var qIt=VIt();const GIt=ao(qIt),YIt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='17.718'%20height='16.276'%20viewBox='0%200%2017.718%2016.276'%3e%3cpath%20id='thumb_up_FILL0_wght400_GRAD0_opsz24'%20d='M93.5-902.941H84.219v-10.968s2.917-3.071,4.552-4.561,2.409-.29,2.409-.29a1.107,1.107,0,0,1,.243.4,1.382,1.382,0,0,1,.095.485v.3l-.928,3.67h5.442a1.618,1.618,0,0,1,1.181.506,1.619,1.619,0,0,1,.506,1.181v1.687a1.306,1.306,0,0,1-.042.316q-.042.169-.084.316l-2.531,5.948a1.7,1.7,0,0,1-.633.717A1.646,1.646,0,0,1,93.5-902.941Zm-7.593-1.687H93.5l2.531-5.906v-1.687H88.437l1.139-4.64-3.67,3.67Zm0-8.564v0Zm-1.687-.717v1.687H81.687v7.593h2.531v1.687H80v-10.968Z'%20transform='translate(-80%20919.218)'%20fill='%23fcfcfc'/%3e%3c/svg%3e",ede=r=>{const{className:e,imageSrc:t,textId:n}=r,{t:i}=Tc();return $.jsx("div",{className:`free-label-component ${e??""}`,children:$.jsxs("div",{className:"trapezoid",children:[$.jsx("img",{className:"free-label-thumb",src:t||YIt}),i(n||"freeLabel.free")]})})},WIt=r=>{const{setformdetails:e,formdetails:t}=r,[n,i]=V.useState(t.requestType.toString()),{t:o}=Tc(),a=[{value:1,label:o("joinUs.option1"),tag:$.jsx(ede,{}),icon:$.jsx(jIt,{className:"join-us-options-icon icon-one"})},{value:2,label:o("joinUs.option2"),tag:$.jsx(ede,{}),icon:$.jsx(GIt,{className:"join-us-options-icon icon-two",fontSize:"medium"})},{value:3,label:o("joinUs.option3"),icon:$.jsx(BIt,{className:"join-us-options-icon icon-three",fontSize:"medium"})}],l=(u,h)=>{i(h),e(p=>({...p,requestType:Number(h)}))};return $.jsxs($.Fragment,{children:[$.jsx(AB,{className:"divider"}),$.jsx(D0t,{className:"radio-buttons-wrapper",defaultValue:"1",name:"radio-buttons-group",value:t.requestType,onChange:l,children:a.map((u,h)=>$.jsxs(V.Fragment,{children:[$.jsx(aW,{id:"label",className:`radio-buttons-options ${u.value.toString()===n&&"active"}`,value:u.value,control:$.jsx(k0t,{sx:{"&, &.Mui-checked":{color:"#5f9cd9",fontSize:"10px"},"& .MuiSvgIcon-root":{height:"1rem",width:"1rem"}},className:"radio-buttons"}),label:$.jsxs("div",{className:"container",children:[u.tag&&$.jsx("div",{className:"free-label-container",children:u.tag}),u.icon,$.jsx("p",{className:"radio-buttons-text",dangerouslySetInnerHTML:{__html:u.label}})]})},h),$.jsx(AB,{className:"divider"})]},h))})]})},KIt="/assets/thank_you-Cak5Dr-0.svg",Wx=r=>{const{type:e="text",variant:t="outlined",size:n="small",customClass:i,disabled:o,maxLength:a,inputMode:l,pattern:u}=r;return $.jsx(MD,{disabled:o,variant:t,type:e,size:n,className:`cibuscell-input-field ${i}`,inputProps:{maxLength:a,inputMode:l,pattern:u},...r})},ZIt=({disabled:r,handleChange:e,phoneNumber:t,className:n,errorText:i})=>{const[o,a]=V.useState(!1),{t:l}=Tc(),u=o||!!t;return $.jsx(Bxt,{id:"phone-number",label:l("h2-dig.edit-staging.phoneNumber"),fullWidth:!0,disabled:r,onChange:h=>{e(h.target.value.replace(/[^\d\s]/g,""),"phoneNumber")},value:(t==null?void 0:t.replace("+",""))||"",variant:"outlined",className:n,error:!!i&&!r,helperText:r?"":l(i||""),InputProps:{startAdornment:u&&$.jsx(hJ,{position:"start",disablePointerEvents:!0,sx:h=>({color:r?h.palette.text.disabled:h.palette.text.primary,opacity:r?.38:1}),children:"+"})},inputProps:{autoComplete:"off"},onFocus:()=>a(!0),onBlur:()=>a(!1)})};var WO={},tde;function XIt(){if(tde)return WO;tde=1;var r=Wa();
1076Object.defineProperty(WO,"__esModule",{value:!0}),WO.default=void 0;var e=r(Ts()),t=ls();return WO.default=(0,e.default)((0,t.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done"),WO}var QIt=XIt();const JIt=ao(QIt);var KO={},rde;function eAt(){if(rde)return KO;rde=1;var r=Wa();Object.defineProperty(KO,"__esModule",{value:!0}),KO.default=void 0;var e=r(Ts()),t=ls();return KO.default=(0,e.default)((0,t.jsx)("path",{d:"M12 5V2.21c0-.45-.54-.67-.85-.35l-3.8 3.79c-.2.2-.2.51 0 .71l3.79 3.79c.32.31.86.09.86-.36V7c3.73 0 6.68 3.42 5.86 7.29-.47 2.27-2.31 4.1-4.57 4.57-3.57.75-6.75-1.7-7.23-5.01-.07-.48-.49-.85-.98-.85-.6 0-1.08.53-1 1.13.62 4.39 4.8 7.64 9.53 6.72 3.12-.61 5.63-3.12 6.24-6.24C20.84 9.48 16.94 5 12 5"}),"ReplayRounded"),KO}var tAt=eAt();const rAt=ao(tAt),nde=()=>{let r=Math.floor(Math.random()*10)+1,e=Math.floor(Math.random()*10)+1;const t=["+","-","*"][Math.floor(Math.random()*3)];let n,i;switch(t){case"+":n=`${r} + ${e}`,i=r+e;break;case"-":r<e&&([r,e]=[e,r]),n=`${r} - ${e}`,i=r-e;break;case"*":n=`${r} * ${e}`,i=r*e;break;default:throw new Error("Invalid operator")}return{question:n,answer:i}},nAt=({handleRecaptchaChange:r})=>{const[e,t]=V.useState(nde()),[n,i]=V.useState(!1),[o,a]=V.useState(""),[l,u]=V.useState(!1),[h,p]=V.useState(!1),{t:m}=Tc(),_=O=>{O.target.checked?i(!0):i(!1)},C=bS({components:{MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{"& > fieldset":{borderColor:ti.h2DigitalBlue,opacity:"30%"},"&:hover":{"& > fieldset":{borderColor:ti.h2DigitalBlue,opacity:"80%"}},"& input":{fontSize:"12px",color:ti.h2DigitalBlue}}}}}}}),T=()=>{const O=o===e.answer;u(O),p(!O),r(O),O&&R()},S=()=>{p(!1),t(nde()),a("")},R=()=>{i(!1)};return $.jsx(JY,{theme:C,children:$.jsxs("div",{className:"reCAPTCHA-container reCAPTCHA-inner-container",children:[$.jsxs(ok,{onClose:R,open:n,className:"reCAPTCHA-dialog-container",children:[$.jsx(ECe,{}),$.jsx(YL,{children:$.jsxs(Lmt,{id:"alert-dialog-description",children:[$.jsx("h3",{className:"challenge-header",children:m("joinUs.challenge")}),h&&$.jsx("h5",{style:{color:"red"},children:m("joinUs.incorrect")}),$.jsx(MD,{id:"outlined-basic",label:m("joinUs.quest"),variant:"outlined",disabled:!0,className:"reCAPTCHA-question-container",value:e.question}),$.jsx("br",{}),$.jsx(MD,{id:"outlined-basic",label:m("joinUs.answer"),variant:"outlined",value:o,focused:!0,className:"reCAPTCHA-question-container",onChange:O=>{a(parseInt(O.target.value)===0?0:parseInt(O.target.value)||"")}})]})}),$.jsxs(GL,{children:[$.jsx("div",{className:"reCAPTCHA-button-container ",children:$.jsx(Am,{title:m("joinUs.resetQuestion"),placement:"top",children:$.jsx(pv,{onClick:S,children:$.jsx(rAt,{className:"reset-reCAPTCHA",color:"info"})})})}),$.jsx("div",{className:"reCAPTCHA-button-container ",children:$.jsx(Ib,{variant:"contained",customClass:"reCAPTCHA-submit-button",color:"success",onClick:T,children:$.jsx("span",{children:m("joinUs.verify")})})})]})]}),l?$.jsx(aW,{sx:{"& .MuiFormControlLabel-label":{fontSize:"0.75rem"}},label:m("joinUs.NotRobot"),control:$.jsx("div",{children:$.jsx(JIt,{className:"verified-icon-container"})})}):$.jsx(aW,{sx:{"& .MuiFormControlLabel-label":{fontSize:"0.75rem"}},label:`${m("joinUs.NotRobot")||""} *`,control:$.jsx(yCe,{checked:l,color:"success",onChange:_,sx:{"& .MuiSvgIcon-root":{fontSize:28}}})})]})})},iAt=({open:r,onClose:e,autoHideDuration:t=2e3,children:n,vertical:i="top",horizontal:o="center"})=>$.jsx(g_t,{open:r,autoHideDuration:t,onClose:e,anchorOrigin:{vertical:i,horizontal:o},children:$.jsxs("div",{children:[" ",n]})}),LD=({message:r,onClose:e,severity:t,title:n,variant:i})=>$.jsxs(Kht,{severity:t,onClose:e,variant:i,children:[$.jsx(aft,{children:n}),r]}),Fxe=V.createContext({showSnackbar:(r,e,t)=>{},hideSnackbar:()=>{}});function oAt({children:r}){const[e,t]=V.useState(!1),[n,i]=V.useState(""),[o,a]=V.useState(),[l,u]=V.useState("info"),h=(m,_,C)=>{_&&u(_),i(m),t(!0),a(C)},p=()=>{t(!1)};return $.jsxs(Fxe.Provider,{value:{showSnackbar:h,hideSnackbar:p},children:[r,$.jsx(iAt,{autoHideDuration:o,open:e,onClose:p,children:$.jsx(LD,{onClose:p,severity:l,message:n,variant:"filled"})})]})}function UJ(){return V.useContext(Fxe)}var AF={exports:{}},aAt=AF.exports,ide;function sAt(){return ide||(ide=1,(function(r,e){(function(t,n){n()})(aAt,function(){function t(h,p){return typeof p>"u"?p={autoBom:!1}:typeof p!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),p={autoBom:!p}),p.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(h.type)?new Blob(["\uFEFF",h],{type:h.type}):h}function n(h,p,m){var _=new XMLHttpRequest;_.open("GET",h),_.responseType="blob",_.onload=function(){u(_.response,p,m)},_.onerror=function(){console.error("could not download file")},_.send()}function i(h){var p=new XMLHttpRequest;p.open("HEAD",h,!1);try{p.send()}catch{}return 200<=p.status&&299>=p.status}function o(h){try{h.dispatchEvent(new MouseEvent("click"))}catch{var p=document.createEvent("MouseEvents");
vendor: 1,960 bytes, line 1076
1076p.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),h.dispatchEvent(p)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof globalThis=="object"&&globalThis.global===globalThis?globalThis:void 0,l=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!l?function(h,p,m){var _=a.URL||a.webkitURL,C=document.createElement("a");p=p||h.name||"download",C.download=p,C.rel="noopener",typeof h=="string"?(C.href=h,C.origin===location.origin?o(C):i(C.href)?n(h,p,m):o(C,C.target="_blank")):(C.href=_.createObjectURL(h),setTimeout(function(){_.revokeObjectURL(C.href)},4e4),setTimeout(function(){o(C)},0))}:"msSaveOrOpenBlob"in navigator?function(h,p,m){if(p=p||h.name||"download",typeof h!="string")navigator.msSaveOrOpenBlob(t(h,m),p);else if(i(h))n(h,p,m);else{var _=document.createElement("a");_.href=h,_.target="_blank",setTimeout(function(){o(_)})}}:function(h,p,m,_){if(_=_||open("","_blank"),_&&(_.document.title=_.document.body.innerText="downloading..."),typeof h=="string")return n(h,p,m);var C=h.type==="application/octet-stream",T=/constructor/i.test(a.HTMLElement)||a.safari,S=/CriOS\/[\d]+/.test(navigator.userAgent);if((S||C&&T||l)&&typeof FileReader<"u"){var R=new FileReader;R.onloadend=function(){var H=R.result;H=S?H:H.replace(/^data:[^;]*;/,"data:attachment/file;"),_?_.location.href=H:location=H,_=null},R.readAsDataURL(h)}else{var O=a.URL||a.webkitURL,N=O.createObjectURL(h);_?_.location=N:location.href=N,_=null,setTimeout(function(){O.revokeObjectURL(N)},4e4)}});a.saveAs=u.saveAs=u,r.exports=u})})(AF)),AF.exports}var lAt=sAt();const cAt=ao(lAt),{slice:uAt,forEach:dAt}=[];function hAt(r){return dAt.call(uAt.call(arguments,1),e=>{if(e)for(const t in e)r[t]===void 0&&(r[t]=e[t])}),r}
1076function fAt(r){return typeof r!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(t=>t.test(r))}const ode=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,pAt=function(r,e){const n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(e);let o=`${r}=${i}`;if(n.maxAge>0){const a=n.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(a)}`}if(n.domain){if(!ode.test(n.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${n.domain}`}if(n.path){if(!ode.test(n.path))throw new TypeError("option path is invalid");o+=`; Path=${n.path}`}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(o+="; HttpOnly"),n.secure&&(o+="; Secure"),n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return n.partitioned&&(o+="; Partitioned"),o},ade={create(r,e,t,n){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};t&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+t*60*1e3)),n&&(i.domain=n),document.cookie=pAt(r,e,i)},read(r){const e=`${r}=`,t=document.cookie.split(";");for(let n=0;n<t.length;n++){let i=t[n];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(e)===0)return i.substring(e.length,i.length)}return null},remove(r,e){this.create(r,"",-1,e)}};var gAt={name:"cookie",lookup(r){let{lookupCookie:e}=r;if(e&&typeof document<"u")return ade.read(e)||void 0},cacheUserLanguage(r,e){let{lookupCookie:t,cookieMinutes:n,cookieDomain:i,cookieOptions:o}=e;t&&typeof document<"u"&&ade.create(t,r,n,i,o)}},mAt={name:"querystring",lookup(r){var n;let{lookupQuerystring:e}=r,t;if(typeof window<"u"){let{search:i}=window.location;!window.location.search&&((n=window.location.hash)==null?void 0:n.indexOf("?"))>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));const a=i.substring(1).split("&");for(let l=0;l<a.length;l++){const u=a[l].indexOf("=");u>0&&a[l].substring(0,u)===e&&(t=a[l].substring(u+1))}}return t}},yAt={name:"hash",lookup(r){var i;let{lookupHash:e,lookupFromHashIndex:t}=r,n;if(typeof window<"u"){const{hash:o}=window.location;if(o&&o.length>2){const a=o.substring(1);if(e){const l=a.split("&");for(let u=0;u<l.length;u++){const h=l[u].indexOf("=");h>0&&l[u].substring(0,h)===e&&(n=l[u].substring(h+1))}}if(n)return n;if(!n&&t>-1){const l=o.match(/\/([a-zA-Z-]*)/g);return Array.isArray(l)?(i=l[typeof t=="number"?t:0])==null?void 0:i.replace("/",""):void 0}}}return n}};let oA=null;const sde=()=>{if(oA!==null)return oA;try{if(oA=typeof window<"u"&&window.localStorage!==null,!oA)return!1;const r="i18next.translate.boo";window.localStorage.setItem(r,"foo"),window.localStorage.removeItem(r)}catch{oA=!1}return oA};var vAt={name:"localStorage",lookup(r){let{lookupLocalStorage:e}=r;if(e&&sde())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(r,e){let{lookupLocalStorage:t}=e;t&&sde()&&window.localStorage.setItem(t,r)}};let aA=null;const lde=()=>{if(aA!==null)return aA;try{if(aA=typeof window<"u"&&window.sessionStorage!==null,!aA)return!1;const r="i18next.translate.boo";window.sessionStorage.setItem(r,"foo"),window.sessionStorage.removeItem(r)}catch{aA=!1}return aA};var _At={name:"sessionStorage",lookup(r){let{lookupSessionStorage:e}=r;if(e&&lde())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(r,e){let{lookupSessionStorage:t}=e;t&&lde()&&window.sessionStorage.setItem(t,r)}},bAt={name:"navigator",lookup(r){const e=[];if(typeof navigator<"u"){const{languages:t,userLanguage:n,language:i}=navigator;if(t)for(let o=0;o<t.length;
1076o++)e.push(t[o]);n&&e.push(n),i&&e.push(i)}return e.length>0?e:void 0}},wAt={name:"htmlTag",lookup(r){let{htmlTag:e}=r,t;const n=e||(typeof document<"u"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(t=n.getAttribute("lang")),t}},EAt={name:"path",lookup(r){var i;let{lookupFromPathIndex:e}=r;if(typeof window>"u")return;const t=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(t)?(i=t[typeof e=="number"?e:0])==null?void 0:i.replace("/",""):void 0}},CAt={name:"subdomain",lookup(r){var i,o;let{lookupFromSubdomainIndex:e}=r;const t=typeof e=="number"?e+1:1,n=typeof window<"u"&&((o=(i=window.location)==null?void 0:i.hostname)==null?void 0:o.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(n)return n[t]}};let Uxe=!1;try{document.cookie,Uxe=!0}catch{}const Bxe=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Uxe||Bxe.splice(1,1);const xAt=()=>({order:Bxe,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:r=>r});class $xe{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=hAt(t,this.options||{},xAt()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(gAt),this.addDetector(mAt),this.addDetector(vAt),this.addDetector(_At),this.addDetector(bAt),this.addDetector(wAt),this.addDetector(EAt),this.addDetector(CAt),this.addDetector(yAt)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,t=[];return e.forEach(n=>{if(this.detectors[n]){let i=this.detectors[n].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(t=t.concat(i))}}),t=t.filter(n=>n!=null&&!fAt(n)).map(n=>this.options.convertDetectedLanguage(n)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}cacheUserLanguage(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(n=>{this.detectors[n]&&this.detectors[n].cacheUserLanguage(e,this.options)}))}}$xe.type="languageDetector";function TAt(r,e){var t=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=SAt(r))||e){t&&(r=t);var n=0,i=function(){};return{s:i,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(h){throw h},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1077In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,l=!1;return{s:function(){t=t.call(r)},n:function(){var h=t.next();return a=h.done,h},e:function(h){l=!0,o=h},f:function(){try{a||t.return==null||t.return()}finally{if(l)throw o}}}}function SAt(r,e){if(r){if(typeof r=="string")return cde(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?cde(r,e):void 0}}function cde(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t<e;t++)n[t]=r[t];return n}function _W(r){"@babel/helpers - typeof";return _W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_W(r)}var zxe=["__proto__","constructor","prototype"];function jxe(r){return!(typeof r!="string"||r.length===0||r.length>128||zxe.indexOf(r)>-1||r.indexOf("..")>-1||r.indexOf("\\")>-1||/[?#%\s@]/.test(r)||/[\x00-\x1F\x7F]/.test(r))}function Vxe(r){return!(!jxe(r)||r.indexOf("/")>-1)}function IAt(r){return jxe(r)}var AAt={lng:Vxe,ns:IAt};function aH(r){return typeof r!="string"?r:r.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function RAt(r){if(typeof r!="string"||r.length===0)return r;try{var e=new URL(r);return e.username||e.password?(e.username="",e.password="",e.toString()):r}catch{return r.replace(/(\/\/)[^/@\s]+@/g,"$1")}}function qxe(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":_W(XMLHttpRequest))==="object"}function PAt(r){return!!r&&typeof r.then=="function"}function kAt(r){return PAt(r)?r:Promise.resolve(r)}var OAt=/\{\{(.+?)\}\}/g;function ude(r,e){var t=!1,n=r.replace(OAt,function(i,o){var a=o.trim();if(zxe.indexOf(a)>-1)return i;var l=e[a];if(l==null)return i;var u=AAt[a]||Vxe,h=String(l).split("+"),p=TAt(h),m;try{for(p.s();!(m=p.n()).done;){var _=m.value;if(!u(_))return t=!0,i}}catch(C){p.e(C)}finally{p.f()}return h.join("+")});return t?null:n}function dde(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function hde(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};
vendor: 6,844 bytes, line 1077
1077e%2?dde(Object(t),!0).forEach(function(n){MAt(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):dde(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function MAt(r,e,t){return(e=NAt(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function NAt(r){var e=DAt(r,"string");return TS(e)=="symbol"?e:e+""}function DAt(r,e){if(TS(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(TS(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function TS(r){"@babel/helpers - typeof";return TS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},TS(r)}var ZE=typeof fetch=="function"?fetch:void 0;typeof globalThis<"u"&&globalThis.fetch?ZE=globalThis.fetch:typeof window<"u"&&window.fetch&&(ZE=window.fetch);var HD;qxe()&&(typeof globalThis<"u"&&globalThis.XMLHttpRequest?HD=globalThis.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(HD=window.XMLHttpRequest));var HB;typeof ActiveXObject=="function"&&(typeof globalThis<"u"&&globalThis.ActiveXObject?HB=globalThis.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(HB=window.ActiveXObject));typeof ZE!="function"&&(ZE=void 0);if(!ZE&&!HD&&!HB)try{Ea(()=>import("./browser-ponyfill-BafinFAf.js").then(r=>r.b),[]).then(function(r){ZE=r.default}).catch(function(){})}catch{}var Gxe=["__proto__","constructor","prototype"],bW=function(e,t){if(t&&TS(t)==="object"){for(var n="",i=0,o=Object.keys(t);i<o.length;i++){var a=o[i];Gxe.indexOf(a)>-1||(n+="&"+encodeURIComponent(a)+"="+encodeURIComponent(t[a]))}if(!n)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+n.slice(1)}return e},fde=function(e,t,n,i){var o=function(u){if(!u.ok)return n(u.statusText||"Error",{status:u.status});u.text().then(function(h){n(null,{status:u.status,data:h})}).catch(n)};if(i){var a=i(e,t);if(a instanceof Promise){a.then(o).catch(n);return}}typeof fetch=="function"?fetch(e,t).then(o).catch(n):ZE(e,t).then(o).catch(n)},LAt=function(e,t,n,i){e.queryStringParams&&(t=bW(t,e.queryStringParams));var o=hde({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof globalThis<"u"&&typeof globalThis.process<"u"&&globalThis.process.versions&&globalThis.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(globalThis.process.version,"; ").concat(globalThis.process.platform," ").concat(globalThis.process.arch,")")),n&&(o["Content-Type"]="application/json");var a=typeof e.requestOptions=="function"?e.requestOptions(n):e.requestOptions,l=hde({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:o},e._omitFetchOptions?{}:a),u=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{fde(t,l,i,u)}catch(h){if(!a||Object.keys(a).length===0||!h.message||h.message.indexOf("not implemented")<0)return i(h);try{Object.keys(a).forEach(function(p){delete l[p]}),fde(t,l,i,u),e._omitFetchOptions=!0}catch(p){i(p)}}},HAt=function(e,t,n,i){n&&TS(n)==="object"&&(n=bW("",n).slice(1)),e.queryStringParams&&(t=bW(t,e.queryStringParams));try{var o=HD?new HD:new HB("MSXML2.XMLHTTP.3.0");o.open(n?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var a=e.customHeaders;if(a=typeof a=="function"?a():a,a)for(var l=0,u=Object.keys(a);l<u.length;l++){var h=u[l];Gxe.indexOf(h)>-1||o.setRequestHeader(h,a[h])}o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(p){console&&console.log(p)}},FAt=function(e,t,n,i){if(typeof n=="function"&&(i=n,n=void 0),i=i||function(){},ZE&&t.indexOf("file:")!==0)return LAt(e,t,n,i);if(qxe()||typeof ActiveXObject=="function")return HAt(e,t,n,i);i(new Error("No fetch and no xhr implementation found!"))};function sk(r){"@babel/helpers - typeof";return sk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sk(r)}function pde(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function F3(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?pde(Object(t),!0).forEach(function(n){Yxe(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):pde(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function UAt(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function BAt(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,Wxe(n.key),n)}}function $At(r,e,t){return e&&BAt(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function Yxe(r,e,t){return(e=Wxe(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Wxe(r){var e=zAt(r,"string");return sk(e)=="symbol"?e:e+""}function zAt(r,e){if(sk(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(sk(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}var jAt=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(t){return JSON.parse(t)},stringify:JSON.stringify,parsePayload:function(t,n,i){return Yxe({},n,i||"")},parseLoadPayload:function(t,n){},request:FAt,reloadInterval:typeof window<"u"?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Kxe=(function(){function r(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};UAt(this,r),this.services=e,this.options=t,this.allOptions=n,this.type="backend",this.init(e,t,n)}return $At(r,[{key:"init",value:function(t){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=t,this.options=F3(F3(F3({}
1077,jAt()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var a=setInterval(function(){return n.reload()},this.options.reloadInterval);sk(a)==="object"&&typeof a.unref=="function"&&a.unref()}}},{key:"readMulti",value:function(t,n,i){this._readAny(t,t,n,n,i)}},{key:"read",value:function(t,n,i){this._readAny([t],t,[n],n,i)}},{key:"_readAny",value:function(t,n,i,o,a){var l=this,u=this.options.loadPath;typeof this.options.loadPath=="function"&&(u=this.options.loadPath(t,i)),u=kAt(u),u.then(function(h){if(!h)return a(null,{});var p=ude(h,{lng:t.join("+"),ns:i.join("+")});if(p==null){var m=t.map(aH).join(", "),_=i.map(aH).join(", ");return a(new Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+m+"] namespaces=["+_+"]"),!1)}l.loadUrl(p,a,n,o)})}},{key:"loadUrl",value:function(t,n,i,o){var a=this,l=typeof i=="string"?[i]:i,u=typeof o=="string"?[o]:o,h=this.options.parseLoadPayload(l,u),p=aH(RAt(t));this.options.request(this.options,t,h,function(m,_){if(_&&(_.status>=500&&_.status<600||!_.status))return n("failed loading "+p+"; status code: "+_.status,!0);if(_&&_.status>=400&&_.status<500)return n("failed loading "+p+"; status code: "+_.status,!1);if(!_&&m&&m.message){var C=m.message.toLowerCase(),T=["failed","fetch","network","load"].find(function(O){return C.indexOf(O)>-1});if(T)return n("failed loading "+p+": "+aH(m.message),!0)}if(m)return n(m,!1);var S,R;try{typeof _.data=="string"?S=a.options.parse(_.data,i,o):S=_.data}catch{R="failed parsing "+p+" to json"}if(R)return n(R,!1);n(null,S)})}},{key:"create",value:function(t,n,i,o,a){var l=this;if(this.options.addPath){typeof t=="string"&&(t=[t]);var u=this.options.parsePayload(n,i,o),h=0,p=[],m=[];t.forEach(function(_){var C=l.options.addPath;typeof l.options.addPath=="function"&&(C=l.options.addPath(_,n));var T=ude(C,{lng:_,ns:n});if(T==null){h+=1,a&&h===t.length&&a(p,m);return}l.options.request(l.options,T,u,function(S,R){h+=1,p.push(S),m.push(R),h===t.length&&typeof a=="function"&&a(p,m)})})}}},{key:"reload",value:function(){var t=this,n=this.services,i=n.backendConnector,o=n.languageUtils,a=n.logger,l=i.language;if(!(l&&l.toLowerCase()==="cimode")){var u=[],h=function(m){var _=o.toResolveHierarchy(m);_.forEach(function(C){u.indexOf(C)<0&&u.push(C)})};h(l),this.allOptions.preload&&this.allOptions.preload.forEach(function(p){return h(p)}),u.forEach(function(p){t.allOptions.ns.forEach(function(m){i.read(p,m,"read",null,null,function(_,C){_&&a.warn("loading namespace ".concat(m," for language ").concat(p," failed"),_),!_&&C&&a.log("loaded namespace ".concat(m," for language ").concat(p),C),i.loaded("".concat(p,"|").concat(m),_,C)})})})}}}])})();Kxe.type="backend";Au.use(Kxe).use($xe).use(cIt).init({fallbackLng:"en-US",lng:"en-US",load:"currentOnly",debug:!1,interpolation:{escapeValue:!1},react:{useSuspense:!1}});class ob{constructor(e){eo(this,"azureAdScope");eo(this,"client");e?(this.azureAdScope=e,this.client=Al.create(),this.client.interceptors.request.use(t=>this.addAccessToken(t),t=>Promise.reject(t))):(this.client=Al.create(),this.client.interceptors.request.use(t=>this.addLanguageHeader(t),t=>Promise.reject(t)))}async addAccessToken(e){if(this.azureAdScope){const t=await YS.getAccessToken(this.azureAdScope);e.headers.Authorization="Bearer "+t,e=this.addLanguageHeader(e)}return e}async addLanguageHeader(e){return e.headers["Accept-Language"]=Au.language,e.headers["X-Platform-Domain"]=bve.replace("@",""),e}}const VMt=(r,e,t)=>{const n={...$Ee};if(r)if(r.userType===si.H2DIGITAL)Object.entries(n).forEach(([o])=>{n[o]=!0}),n.unlinkChild=!1,n.saveChanges=!1,n.createDuplicateDraft=!!(t.status&&t.locationId&&t.H2DigitalType!=IZ.KREIS);else if(r.userType===si.SUPERVISOR)n.saveAsDraft=!0,n.saveAsHidden=!0;else{const a=tTt(e?e.tags:t.tags,Oi.PROVIDER)===1,l=(r==null?void 0:r.userType)===si.PROVIDER&&a;n.saveAsDraft=!(t!=null&&t.status)||a,n.saveAsHidden=!(e!=null&&e.active)&&l}return n},qMt=(r,e)=>{var a;const t=r.country;if(!t||!e)return!1;const n=DD.get(t);if(!n)return!1;const i=t===tT.France&&r.district?_ve.includes(r.district)?nd.Terega:nd.GRTgaz:n[0].value,o=(a=e.tags.find(l=>l.key.toLowerCase()===Oi.PROVIDER))==null?void 0:a.value;return o?i===o:!1},ZO=(r,e)=>{const t=new FormData,{logoFile:n,imageFile:i,...o}=r,a=k3(o,e===rE.CREATE?hdt:fdt);
vendor: 30,760 bytes, lines 1077-1084
1077return Array.isArray(a.tags)&&(a.tags=a.tags.map(l=>k3(l,pdt))),Array.isArray(a.phasesStaging)&&(a.phasesStaging=a.phasesStaging.map(l=>k3(l,e===rE.CREATE?gdt:jEe))),n&&t.append("logoFile",n),i&&t.append("imageFile",i),t.append("body",JSON.stringify(a)),t},GMt=(r,e,t=!1)=>(r.website=due(r.website),r.linkedInUrl=due(r.linkedInUrl),r.tags=nTt(r),t&&r.userId&&delete r.userId,r);var VAt="0123456789abcdefghijklmnopqrstuvwxyz";function S1(r){return VAt.charAt(r)}function qAt(r,e){return r&e}function sH(r,e){return r|e}function gde(r,e){return r^e}function mde(r,e){return r&~e}function GAt(r){if(r==0)return-1;var e=0;return(r&65535)==0&&(r>>=16,e+=16),(r&255)==0&&(r>>=8,e+=8),(r&15)==0&&(r>>=4,e+=4),(r&3)==0&&(r>>=2,e+=2),(r&1)==0&&++e,e}function YAt(r){for(var e=0;r!=0;)r&=r-1,++e;return e}var BA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zxe="=";function xN(r){var e,t,n="";for(e=0;e+3<=r.length;e+=3)t=parseInt(r.substring(e,e+3),16),n+=BA.charAt(t>>6)+BA.charAt(t&63);for(e+1==r.length?(t=parseInt(r.substring(e,e+1),16),n+=BA.charAt(t<<2)):e+2==r.length&&(t=parseInt(r.substring(e,e+2),16),n+=BA.charAt(t>>2)+BA.charAt((t&3)<<4));(n.length&3)>0;)n+=Zxe;return n}function yde(r){var e="",t,n=0,i=0;for(t=0;t<r.length&&r.charAt(t)!=Zxe;++t){var o=BA.indexOf(r.charAt(t));o<0||(n==0?(e+=S1(o>>2),i=o&3,n=1):n==1?(e+=S1(i<<2|o>>4),i=o&15,n=2):n==2?(e+=S1(i),e+=S1(o>>2),i=o&3,n=3):(e+=S1(i<<2|o>>4),e+=S1(o&15),n=0))}return n==1&&(e+=S1(i<<2)),e}var sA,WAt={decode:function(r){var e;if(sA===void 0){var t="0123456789ABCDEF",n=` \f
1078\r	 \u2028\u2029`;for(sA={},e=0;e<16;++e)sA[t.charAt(e)]=e;for(t=t.toLowerCase(),e=10;e<16;++e)sA[t.charAt(e)]=e;for(e=0;e<n.length;++e)sA[n.charAt(e)]=-1}var i=[],o=0,a=0;for(e=0;e<r.length;++e){var l=r.charAt(e);if(l=="=")break;if(l=sA[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+e);o|=l,++a>=2?(i[i.length]=o,o=0,a=0):o<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},wx,wW={decode:function(r){var e;if(wx===void 0){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
1079\r	 \u2028\u2029`;for(wx=Object.create(null),e=0;e<64;++e)wx[t.charAt(e)]=e;for(wx["-"]=62,wx._=63,e=0;e<n.length;++e)wx[n.charAt(e)]=-1}var i=[],o=0,a=0;for(e=0;e<r.length;++e){var l=r.charAt(e);if(l=="=")break;if(l=wx[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+e);o|=l,++a>=4?(i[i.length]=o>>16,i[i.length]=o>>8&255,i[i.length]=o&255,o=0,a=0):o<<=6}}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=o>>10;break;case 3:i[i.length]=o>>16,i[i.length]=o>>8&255;break}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(r){var e=wW.re.exec(r);if(e)if(e[1])r=e[1];else if(e[2])r=e[2];else throw new Error("RegExp out of sync");return wW.decode(r)}},lA=1e13,kM=(function(){function r(e){this.buf=[+e||0]}return r.prototype.mulAdd=function(e,t){var n=this.buf,i=n.length,o,a;for(o=0;o<i;++o)a=n[o]*e+t,a<lA?t=0:(t=0|a/lA,a-=t*lA),n[o]=a;t>0&&(n[o]=t)},r.prototype.sub=function(e){var t=this.buf,n=t.length,i,o;for(i=0;i<n;++i)o=t[i]-e,o<0?(o+=lA,e=1):e=0,t[i]=o;for(;t[t.length-1]===0;)t.pop()},r.prototype.toString=function(e){if((e||10)!=10)throw new Error("only base 10 is supported");for(var t=this.buf,n=t[t.length-1].toString(),i=t.length-2;i>=0;--i)n+=(lA+t[i]).toString().substring(1);return n},r.prototype.valueOf=function(){for(var e=this.buf,t=0,n=e.length-1;n>=0;--n)t=t*lA+e[n];return t},r.prototype.simplify=function(){var e=this.buf;return e.length==1?e[0]:this},r})(),Xxe="…",KAt=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,ZAt=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function sP(r,e){return r.length>e&&(r=r.substring(0,e)+Xxe),r}var U3=(function(){function r(e,t){this.hexDigits="0123456789ABCDEF",e instanceof r?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=t)}return r.prototype.get=function(e){if(e===void 0&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(e):this.enc[e]},r.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(e&15)},r.prototype.hexDump=function(e,t,n){for(var i="",o=e;o<t;++o)if(i+=this.hexByte(this.get(o)),n!==!0)switch(o&15){case 7:i+="  ";break;case 15:i+=`
1080`;break;default:i+=" "}return i},r.prototype.isASCII=function(e,t){for(var n=e;n<t;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},r.prototype.parseStringISO=function(e,t){for(var n="",i=e;i<t;++i)n+=String.fromCharCode(this.get(i));return n},r.prototype.parseStringUTF=function(e,t){for(var n="",i=e;i<t;){var o=this.get(i++);o<128?n+=String.fromCharCode(o):o>191&&o<224?n+=String.fromCharCode((o&31)<<6|this.get(i++)&63):n+=String.fromCharCode((o&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return n},r.prototype.parseStringBMP=function(e,t){for(var n="",i,o,a=e;a<t;)i=this.get(a++),o=this.get(a++),n+=String.fromCharCode(i<<8|o);return n},r.prototype.parseTime=function(e,t,n){var i=this.parseStringISO(e,t),o=(n?KAt:ZAt).exec(i);return o?(n&&(o[1]=+o[1],o[1]+=+o[1]<70?2e3:1900),i=o[1]+"-"+o[2]+"-"+o[3]+" "+o[4],o[5]&&(i+=":"+o[5],o[6]&&(i+=":"+o[6],o[7]&&(i+="."+o[7]))),o[8]&&(i+=" UTC",o[8]!="Z"&&(i+=o[8],o[9]&&(i+=":"+o[9]))),i):"Unrecognized time: "+i},r.prototype.parseInteger=function(e,t){for(var n=this.get(e),i=n>127,o=i?255:0,a,l="";n==o&&++e<t;)n=this.get(e);if(a=t-e,a===0)return i?-1:0;if(a>4){for(l=n,a<<=3;((+l^o)&128)==0;)l=+l<<1,--a;l="("+a+` bit)
1081`}i&&(n=n-256);for(var u=new kM(n),h=e+1;h<t;++h)u.mulAdd(256,this.get(h));return l+u.toString()},r.prototype.parseBitString=function(e,t,n){for(var i=this.get(e),o=(t-e-1<<3)-i,a="("+o+` bit)
1082`,l="",u=e+1;u<t;++u){for(var h=this.get(u),p=u==t-1?i:0,m=7;m>=p;--m)l+=h>>m&1?"1":"0";if(l.length>n)return a+sP(l,n)}return a+l},r.prototype.parseOctetString=function(e,t,n){if(this.isASCII(e,t))return sP(this.parseStringISO(e,t),n);var i=t-e,o="("+i+` byte)
1083`;n/=2,i>n&&(t=e+n);for(var a=e;a<t;++a)o+=this.hexByte(this.get(a));return i>n&&(o+=Xxe),o},r.prototype.parseOID=function(e,t,n){for(var i="",o=new kM,a=0,l=e;l<t;++l){var u=this.get(l);if(o.mulAdd(128,u&127),a+=7,!(u&128)){if(i==="")if(o=o.simplify(),o instanceof kM)o.sub(80),i="2."+o.toString();else{var h=o<80?o<40?0:1:2;i=h+"."+(o-h*40)}else i+="."+o.toString();if(i.length>n)return sP(i,n);o=new kM,a=0}}return a>0&&(i+=".incomplete"),i},r})(),XAt=(function(){function r(e,t,n,i,o){if(!(i instanceof vde))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=n,this.tag=i,this.sub=o}return r.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},r.prototype.content=function(e){if(this.tag===void 0)return null;e===void 0&&(e=1/0);var t=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);switch(this.tag.tagNumber){case 1:return this.stream.get(t)===0?"false":"true";case 2:return this.stream.parseInteger(t,t+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);case 6:return this.stream.parseOID(t,t+n,e);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return sP(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return sP(this.stream.parseStringISO(t,t+n),e);case 30:return sP(this.stream.parseStringBMP(t,t+n),e);case 23:case 24:return this.stream.parseTime(t,t+n,this.tag.tagNumber==23)}return null},r.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},r.prototype.toPrettyString=function(e){e===void 0&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(t+=" (encapsulates)"),t+=`
1084`,this.sub!==null){e+="  ";for(var n=0,i=this.sub.length;n<i;++n)t+=this.sub[n].toPrettyString(e)}return t},r.prototype.posStart=function(){return this.stream.pos},r.prototype.posContent=function(){return this.stream.pos+this.header},r.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},r.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},r.decodeLength=function(e){var t=e.get(),n=t&127;if(n==t)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(n===0)return null;t=0;for(var i=0;i<n;++i)t=t*256+e.get();return t},r.prototype.getHexStringValue=function(){var e=this.toHexString(),t=this.header*2,n=this.length*2;return e.substring(t,t+n)},r.decode=function(e){var t;e instanceof U3?t=e:t=new U3(e,0);var n=new U3(t),i=new vde(t),o=r.decodeLength(t),a=t.pos,l=a-n.pos,u=null,h=function(){var m=[];if(o!==null){for(var _=a+o;t.pos<_;)m[m.length]=r.decode(t);if(t.pos!=_)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var C=r.decode(t);if(C.tag.isEOC())break;m[m.length]=C}o=a-t.pos}catch(T){throw new Error("Exception while decoding undefined length content: "+T)}return m};if(i.tagConstructed)u=h();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&t.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=h();for(var p=0;p<u.length;++p)if(u[p].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{u=null}if(u===null){if(o===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);t.pos=a+Math.abs(o)}return new r(n,l,o,i,u)},r})(),vde=(function(){function r(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=(t&32)!==0,this.tagNumber=t&31,this.tagNumber==31){var n=new kM;do t=e.get(),n.mulAdd(128,t&127);while(t&128);this.tagNumber=n.simplify()}}return r.prototype.isUniversal=function(){return this.tagClass===0},r.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},r})(),FE,QAt=0xdeadbeefcafe,_de=(QAt&16777215)==15715070,xh=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],JAt=(1<<26)/xh[xh.length-1],ki=(function(){function r(e,t,n){e!=null&&(typeof e=="number"?this.fromNumber(e,t,n):t==null&&typeof e!="string"?this.fromString(e,256):this.fromString(e,t))}return r.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else return this.toRadix(e);var n=(1<<t)-1,i,o=!1,a="",l=this.t,u=this.DB-l*this.DB%t;if(l-- >0)for(u<this.DB&&(i=this[l]>>u)>0&&(o=!0,a=S1(i));l>=0;)u<t?(i=(this[l]&(1<<u)-1)<<t-u,i|=this[--l]>>(u+=this.DB-t)):(i=this[l]>>(u-=t)&n,u<=0&&(u+=this.DB,--l)),i>0&&(o=!0),o&&(a+=S1(i));return o?a:"0"},r.prototype.negate=function(){var e=go();return r.ZERO.subTo(this,e),e},r.prototype.abs=function(){return this.s<0?this.negate():this},r.prototype.compareTo=function(e){var t=this.s-e.s;if(t!=0)return t;var n=this.t;if(t=n-e.t,t!=0)return this.s<0?-t:t;for(;--n>=0;)if((t=this[n]-e[n])!=0)return t;return 0},r.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+lH(this[this.t-1]^this.s&this.DM)},r.prototype.mod=function(e){var t=go();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(r.ZERO)>0&&e.subTo(t,t),t},r.prototype.modPowInt=function(e,t){var n;return e<256||t.isEven()?n=new bde(t):n=new wde(t),this.exp(e,n)},r.prototype.clone=function(){var e=go();return this.copyTo(e),e},r.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},r.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},r.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},r.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},r.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var n=this.DB-e*this.DB%8,i,o=0;if(e-- >0)for(n<this.DB&&(i=this[e]>>n)!=(this.s&this.DM)>>n&&(t[o++]=i|this.s<<this.DB-n);e>=0;)n<8?(i=(this[e]&(1<<n)-1)<<8-n,i|=this[--e]>>(n+=this.DB-8)):(i=this[e]>>(n-=8)&255,n<=0&&(n+=this.DB,--e)),(i&128)!=0&&(i|=-256),o==0&&(this.s&128)!=(i&128)&&++o,(o>0||i!=this.s)&&(t[o++]=i);return t},r.prototype.equals=function(e){return this.compareTo(e)==0},r.prototype.min=function(e){return this.compareTo(e)<0?this:e},r.prototype.max=function(e){return this.compareTo(e)>0?this:e},r.prototype.and=function(e){var t=go();return this.bitwiseTo(e,qAt,t),t},r.prototype.or=function(e){var t=go();return this.bitwiseTo(e,sH,t),t},r.prototype.xor=function(e){var t=go();return this.bitwiseTo(e,gde,t),t},r.prototype.andNot=function(e){var t=go();return this.bitwiseTo(e,mde,t),t},r.prototype.not=function(){for(var e=go(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},r.prototype.shiftLeft=function(e){var t=go();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},r.prototype.shiftRight=function(e){var t=go();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},r.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(this[e]!=0)return e*this.DB+GAt(this[e]);return this.s<0?this.t*this.DB:-1},r.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=YAt(this[n]^t);return e},r.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?this.s!=0:(this[t]&1<<e%this.DB)!=0},r.prototype.setBit=function(e){return this.changeBit(e,sH)},r.prototype.clearBit=function(e){return this.changeBit(e,mde)},r.prototype.flipBit=function(e){return this.changeBit(e,gde)},r.prototype.add=function(e){var t=go();return this.addTo(e,t),t},r.prototype.subtract=function(e){var t=go();return this.subTo(e,t),t},r.prototype.multiply=function(e){var t=go();return this.multiplyTo(e,t),t},r.prototype.divide=function(e){var t=go();return this.divRemTo(e,t,null),t},r.prototype.remainder=function(e){var t=go();return this.divRemTo(e,null,t),t},r.prototype.divideAndRemainder=function(e){var t=go(),n=go();return this.divRemTo(e,t,n),[t,n]},r.prototype.modPow=function(e,t){var n=e.bitLength(),i,o=qw(1),a;if(n<=0)return o;n<18?i=1:n<48?i=3:n<144?i=4:n<768?i=5:i=6,n<8?a=new bde(t):t.isEven()?a=new tRt(t):a=new wde(t);var l=[],u=3,h=i-1,p=(1<<i)-1;if(l[1]=a.convert(this),i>1){var m=go();for(a.sqrTo(l[1],m);u<=p;)l[u]=go(),a.mulTo(m,l[u-2],l[u]),u+=2}var _=e.t-1,C,T=!0,S=go(),R;for(n=lH(e[_])-1;_>=0;){for(n>=h?C=e[_]>>n-h&p:(C=(e[_]&(1<<n+1)-1)<<h-n,_>0&&(C|=e[_-1]>>this.DB+n-h)),u=i;(C&1)==0;)C>>=1,--u;if((n-=u)<0&&(n+=this.DB,--_),T)l[C].copyTo(o),T=!1;else{for(;u>1;)a.sqrTo(o,S),a.sqrTo(S,o),u-=2;u>0?a.sqrTo(o,S):(R=o,o=S,S=R),a.mulTo(S,l[C],o)}for(;_>=0&&(e[_]&1<<n)==0;)a.sqrTo(o,S),R=o,o=S,S=R,--n<0&&(n=this.DB-1,--_)}return a.revert(o)},r.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||e.signum()==0)return r.ZERO;for(var n=e.clone(),i=this.clone(),o=qw(1),a=qw(0),l=qw(0),u=qw(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),t?((!o.isEven()||!a.isEven())&&(o.addTo(this,o),a.subTo(e,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),t?((!l.isEven()||!u.isEven())&&(l.addTo(this,l),u.subTo(e,u)),l.rShiftTo(1,l)):u.isEven()||u.subTo(e,u),u.rShiftTo(1,u);n.compareTo(i)>=0?(n.subTo(i,n),t&&o.subTo(l,o),a.subTo(u,a)):(i.subTo(n,i),t&&l.subTo(o,l),u.subTo(a,u))}if(i.compareTo(r.ONE)!=0)return r.ZERO;if(u.compareTo(e)>=0)return u.subtract(e);if(u.signum()<0)u.addTo(e,u);else return u;return u.signum()<0?u.add(e):u},r.prototype.pow=function(e){return this.exp(e,new eRt)},r.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var i=t;t=n,n=i}var o=t.getLowestSetBit(),a=n.getLowestSetBit();if(a<0)return t;for(o<a&&(a=o),a>0&&(t.rShiftTo(a,t),n.rShiftTo(a,n));t.signum()>0;)(o=t.getLowestSetBit())>0&&t.rShiftTo(o,t),(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return a>0&&n.lShiftTo(a,n),n},r.prototype.isProbablePrime=function(e){var t,n=this.abs();if(n.t==1&&n[0]<=xh[xh.length-1]){for(t=0;t<xh.length;++t)if(n[0]==xh[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<xh.length;){for(var i=xh[t],o=t+1;o<xh.length&&i<JAt;)i*=xh[o++];for(i=n.modInt(i);t<o;)if(i%xh[t++]==0)return!1}return n.millerRabin(e)},r.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},r.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},r.prototype.fromString=function(e,t){var n;if(t==16)n=4;else if(t==8)n=3;else if(t==256)n=8;else if(t==2)n=1;else if(t==32)n=5;else if(t==4)n=2;else{this.fromRadix(e,t);return}this.t=0,this.s=0;for(var i=e.length,o=!1,a=0;--i>=0;){var l=n==8?+e[i]&255:Cde(e,i);if(l<0){e.charAt(i)=="-"&&(o=!0);continue}o=!1,a==0?this[this.t++]=l:a+n>this.DB?(this[this.t-1]|=(l&(1<<this.DB-a)-1)<<a,this[this.t++]=l>>this.DB-a):this[this.t-1]|=l<<a,a+=n,a>=this.DB&&(a-=this.DB)}n==8&&(+e[0]&128)!=0&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&r.ZERO.subTo(this,this)},r.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},r.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},r.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},r.prototype.lShiftTo=function(e,t){for(var n=e%this.DB,i=this.DB-n,o=(1<<i)-1,a=Math.floor(e/this.DB),l=this.s<<n&this.DM,u=this.t-1;u>=0;--u)t[u+a+1]=this[u]>>i|l,l=(this[u]&o)<<n;for(var u=a-1;u>=0;--u)t[u]=0;t[a]=l,t.t=this.t+a+1,t.s=this.s,t.clamp()},r.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t){t.t=0;return}var i=e%this.DB,o=this.DB-i,a=(1<<i)-1;t[0]=this[n]>>i;for(var l=n+1;l<this.t;++l)t[l-n-1]|=(this[l]&a)<<o,t[l-n]=this[l]>>i;i>0&&(t[this.t-n-1]|=(this.s&a)<<o),t.t=this.t-n,t.clamp()},r.prototype.subTo=function(e,t){for(var n=0,i=0,o=Math.min(e.t,this.t);n<o;)i+=this[n]-e[n],t[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i-=e.s;n<this.t;)i+=this[n],t[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<e.t;)i-=e[n],t[n++]=i&this.DM,i>>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[n++]=this.DV+i:i>0&&(t[n++]=i),t.t=n,t.clamp()},r.prototype.multiplyTo=function(e,t){var n=this.abs(),i=e.abs(),o=n.t;for(t.t=o+i.t;--o>=0;)t[o]=0;for(o=0;o<i.t;++o)t[o+n.t]=n.am(0,i[o],t,o,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&r.ZERO.subTo(t,t)},r.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var i=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,i,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},r.prototype.divRemTo=function(e,t,n){var i=e.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t){t!=null&&t.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=go());var a=go(),l=this.s,u=e.s,h=this.DB-lH(i[i.t-1]);h>0?(i.lShiftTo(h,a),o.lShiftTo(h,n)):(i.copyTo(a),o.copyTo(n));var p=a.t,m=a[p-1];if(m!=0){var _=m*(1<<this.F1)+(p>1?a[p-2]>>this.F2:0),C=this.FV/_,T=(1<<this.F1)/_,S=1<<this.F2,R=n.t,O=R-p,N=t??go();for(a.dlShiftTo(O,N),n.compareTo(N)>=0&&(n[n.t++]=1,n.subTo(N,n)),r.ONE.dlShiftTo(p,N),N.subTo(a,a);a.t<p;)a[a.t++]=0;for(;--O>=0;){var H=n[--R]==m?this.DM:Math.floor(n[R]*C+(n[R-1]+S)*T);if((n[R]+=a.am(0,H,n,O,0,p))<H)for(a.dlShiftTo(O,N),n.subTo(N,n);n[R]<--H;)n.subTo(N,n)}t!=null&&(n.drShiftTo(p,t),l!=u&&r.ZERO.subTo(t,t)),n.t=p,n.clamp(),h>0&&n.rShiftTo(h,n),l<0&&r.ZERO.subTo(n,n)}}},r.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if((e&1)==0)return 0;var t=e&3;return t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t},r.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},r.prototype.exp=function(e,t){if(e>4294967295||e<1)return r.ONE;var n=go(),i=go(),o=t.convert(this),a=lH(e)-1;for(o.copyTo(n);--a>=0;)if(t.sqrTo(n,i),(e&1<<a)>0)t.mulTo(i,o,n);else{var l=n;n=i,i=l}return t.revert(n)},r.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},r.prototype.toRadix=function(e){if(e==null&&(e=10),this.signum()==0||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),i=qw(n),o=go(),a=go(),l="";for(this.divRemTo(i,o,a);o.signum()>0;)l=(n+a.intValue()).toString(e).substring(1)+l,o.divRemTo(i,o,a);return a.intValue().toString(e)+l},r.prototype.fromRadix=function(e,t){this.fromInt(0),t==null&&(t=10);for(var n=this.chunkSize(t),i=Math.pow(t,n),o=!1,a=0,l=0,u=0;u<e.length;++u){var h=Cde(e,u);if(h<0){e.charAt(u)=="-"&&this.signum()==0&&(o=!0);continue}l=t*l+h,++a>=n&&(this.dMultiply(i),this.dAddOffset(l,0),a=0,l=0)}a>0&&(this.dMultiply(Math.pow(t,a)),this.dAddOffset(l,0)),o&&r.ZERO.subTo(this,this)},r.prototype.fromNumber=function(e,t,n){if(typeof t=="number")if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(r.ONE.shiftLeft(e-1),sH,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(r.ONE.shiftLeft(e-1),this);else{var i=[],o=e&7;i.length=(e>>3)+1,t.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},r.prototype.bitwiseTo=function(e,t,n){var i,o,a=Math.min(e.t,this.t);for(i=0;i<a;++i)n[i]=t(this[i],e[i]);if(e.t<this.t){for(o=e.s&this.DM,i=a;i<this.t;++i)n[i]=t(this[i],o);n.t=this.t}else{for(o=this.s&this.DM,i=a;i<e.t;++i)n[i]=t(o,e[i]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},r.prototype.changeBit=function(e,t){var n=r.ONE.shiftLeft(e);return this.bitwiseTo(n,t,n),n},r.prototype.addTo=function(e,t){for(var n=0,i=0,o=Math.min(e.t,this.t);n<o;)i+=this[n]+e[n],t[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i+=e.s;n<this.t;)i+=this[n],t[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<e.t;)i+=e[n],t[n++]=i&this.DM,i>>=this.DB;i+=e.s}t.s=i<0?-1:0,i>0?t[n++]=i:i<-1&&(t[n++]=this.DV+i),t.t=n,t.clamp()},r.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},r.prototype.dAddOffset=function(e,t){if(e!=0){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},r.prototype.multiplyLowerTo=function(e,t,n){var i=Math.min(this.t+e.t,t);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(var o=n.t-this.t;i<o;++i)n[i+this.t]=this.am(0,e[i],n,i,0,this.t);for(var o=Math.min(e.t,t);i<o;++i)this.am(0,e[i],n,i,0,t-i);n.clamp()},r.prototype.multiplyUpperTo=function(e,t,n){--t;var i=n.t=this.t+e.t-t;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(t-this.t,0);i<e.t;++i)n[this.t+i-t]=this.am(t-i,e[i],n,0,0,this.t+i-t);n.clamp(),n.drShiftTo(1,n)},r.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(t==0)n=this[0]%e;else for(var i=this.t-1;i>=0;--i)n=(t*n+this[i])%e;return n},r.prototype.millerRabin=function(e){var t=this.subtract(r.ONE),n=t.getLowestSetBit();if(n<=0)return!1;var i=t.shiftRight(n);e=e+1>>1,e>xh.length&&(e=xh.length);for(var o=go(),a=0;a<e;++a){o.fromInt(xh[Math.floor(Math.random()*xh.length)]);var l=o.modPow(i,this);if(l.compareTo(r.ONE)!=0&&l.compareTo(t)!=0){for(var u=1;u++<n&&l.compareTo(t)!=0;)if(l=l.modPowInt(2,this),l.compareTo(r.ONE)==0)return!1;if(l.compareTo(t)!=0)return!1}}return!0},r.prototype.square=function(){var e=go();return this.squareTo(e),e},r.prototype.gcda=function(e,t){var n=this.s<0?this.negate():this.clone(),i=e.s<0?e.negate():e.clone();if(n.compareTo(i)<0){var o=n;n=i,i=o}var a=n.getLowestSetBit(),l=i.getLowestSetBit();if(l<0){t(n);return}a<l&&(l=a),l>0&&(n.rShiftTo(l,n),i.rShiftTo(l,i));var u=function(){(a=n.getLowestSetBit())>0&&n.rShiftTo(a,n),(a=i.getLowestSetBit())>0&&i.rShiftTo(a,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(u,0):(l>0&&i.lShiftTo(l,i),setTimeout(function(){t(i)},0))};setTimeout(u,10)},r.prototype.fromNumberAsync=function(e,t,n,i){if(typeof t=="number")if(e<2)this.fromInt(1);else{this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(r.ONE.shiftLeft(e-1),sH,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function(){o.dAddOffset(2,0),o.bitLength()>e&&o.subTo(r.ONE.shiftLeft(e-1),o),o.isProbablePrime(t)?setTimeout(function(){i()},0):setTimeout(a,0)};setTimeout(a,0)}else{var l=[],u=e&7;l.length=(e>>3)+1,t.nextBytes(l),u>0?l[0]&=(1<<u)-1:l[0]=0,this.fromString(l,256)}},r})(),eRt=(function(){function r(){}return r.prototype.convert=function(e){return e},r.prototype.revert=function(e){return e},r.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},r.prototype.sqrTo=function(e,t){e.squareTo(t)},r})(),bde=(function(){function r(e){this.m=e}return r.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},r.prototype.revert=function(e){return e},r.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},r.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},r.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},r})(),wde=(function(){function r(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return r.prototype.convert=function(e){var t=go();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(ki.ZERO)>0&&this.m.subTo(t,t),t},r.prototype.revert=function(e){var t=go();return e.copyTo(t),this.reduce(t),t},r.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=e[t]&32767,i=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(n=t+this.m.t,e[n]+=this.m.am(0,i,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},r.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},r.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},r})(),tRt=(function(){function r(e){this.m=e,this.r2=go(),this.q3=go(),ki.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return r.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=go();return e.copyTo(t),this.reduce(t),t},r.prototype.revert=function(e){return e},r.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},r.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},r.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},r})();function go(){return new ki(null)}function El(r,e){return new ki(r,e)}var Ede=typeof navigator<"u";Ede&&_de&&navigator.appName=="Microsoft Internet Explorer"?(ki.prototype.am=function(e,t,n,i,o,a){for(var l=t&32767,u=t>>15;--a>=0;){var h=this[e]&32767,p=this[e++]>>15,m=u*h+p*l;h=l*h+((m&32767)<<15)+n[i]+(o&1073741823),o=(h>>>30)+(m>>>15)+u*p+(o>>>30),n[i++]=h&1073741823}return o},FE=30):Ede&&_de&&navigator.appName!="Netscape"?(ki.prototype.am=function(e,t,n,i,o,a){for(;--a>=0;){var l=t*this[e++]+n[i]+o;o=Math.floor(l/67108864),n[i++]=l&67108863}return o},FE=26):(ki.prototype.am=function(e,t,n,i,o,a){for(var l=t&16383,u=t>>14;--a>=0;){var h=this[e]&16383,p=this[e++]>>14,m=u*h+p*l;h=l*h+((m&16383)<<14)+n[i]+o,o=(h>>28)+(m>>14)+u*p,n[i++]=h&268435455}return o},FE=28);ki.prototype.DB=FE;ki.prototype.DM=(1<<FE)-1;ki.prototype.DV=1<<FE;var BJ=52;ki.prototype.FV=Math.pow(2,BJ);ki.prototype.F1=BJ-FE;ki.prototype.F2=2*FE-BJ;var J9=[],Hk,Rm;Hk=48;for(Rm=0;Rm<=9;++Rm)J9[Hk++]=Rm;Hk=97;for(Rm=10;Rm<36;++Rm)J9[Hk++]=Rm;Hk=65;for(Rm=10;Rm<36;++Rm)J9[Hk++]=Rm;function Cde(r,e){var t=J9[r.charCodeAt(e)];return t??-1}function qw(r){var e=go();return e.fromInt(r),e}function lH(r){var e=1,t;return(t=r>>>16)!=0&&(r=t,e+=16),(t=r>>8)!=0&&(r=t,e+=8),(t=r>>4)!=0&&(r=t,e+=4),(t=r>>2)!=0&&(r=t,e+=2),(t=r>>1)!=0&&(r=t,e+=1),e}ki.ZERO=qw(0);ki.ONE=qw(1);var rRt=(function(){function r(){this.i=0,this.j=0,this.S=[]}return r.prototype.init=function(e){var t,n,i;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,i=this.S[t],this.S[t]=this.S[n],this.S[n]=i;this.i=0,this.j=0},r.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},r})();function nRt(){return new rRt}
1084var Qxe=256,cH,_E=null,Qy;if(_E==null){_E=[],Qy=0;var uH=void 0;if(typeof window<"u"&&self.crypto&&self.crypto.getRandomValues){var B3=new Uint32Array(256);for(self.crypto.getRandomValues(B3),uH=0;uH<B3.length;++uH)_E[Qy++]=B3[uH]&255}var dH=0,hH=function(r){if(dH=dH||0,dH>=256||Qy>=Qxe){self.removeEventListener?self.removeEventListener("mousemove",hH,!1):self.detachEvent&&self.detachEvent("onmousemove",hH);return}try{var e=r.x+r.y;_E[Qy++]=e&255,dH+=1}catch{}};typeof window<"u"&&(self.addEventListener?self.addEventListener("mousemove",hH,!1):self.attachEvent&&self.attachEvent("onmousemove",hH))}function iRt(){if(cH==null){for(cH=nRt();Qy<Qxe;){var r=Math.floor(65536*Math.random());_E[Qy++]=r&255}for(cH.init(_E),Qy=0;Qy<_E.length;++Qy)_E[Qy]=0;Qy=0}return cH.next()}var FB=(function(){function r(){}return r.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=iRt()},r})();function EW(r){return aRt(pRt(oRt(r),r.length*8))}function xde(r){for(var e="0123456789abcdef",t="",n=0;n<r.length;n++){var i=r.charCodeAt(n);t+=e.charAt(i>>>4&15)+e.charAt(i&15)}return t}function oRt(r){for(var e=Array(r.length>>2),t=0;t<e.length;t++)e[t]=0;for(var t=0;t<r.length*8;t+=8)e[t>>5]|=(r.charCodeAt(t/8)&255)<<24-t%32;return e}function aRt(r){for(var e="",t=0;t<r.length*32;t+=8)e+=String.fromCharCode(r[t>>5]>>>24-t%32&255);return e}function l_(r,e){return r>>>e|r<<32-e}function Jxe(r,e){return r>>>e}function sRt(r,e,t){return r&e^~r&t}function lRt(r,e,t){return r&e^r&t^e&t}function cRt(r){return l_(r,2)^l_(r,13)^l_(r,22)}function uRt(r){return l_(r,6)^l_(r,11)^l_(r,25)}function dRt(r){return l_(r,7)^l_(r,18)^Jxe(r,3)}function hRt(r){return l_(r,17)^l_(r,19)^Jxe(r,10)}var fRt=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function pRt(r,e){var t=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),n=new Array(64),i,o,a,l,u,h,p,m,_,C,T,S;for(r[e>>5]|=128<<24-e%32,r[(e+64>>9<<4)+15]=e,_=0;_<r.length;_+=16){for(i=t[0],o=t[1],a=t[2],l=t[3],u=t[4],h=t[5],p=t[6],m=t[7],C=0;C<64;C++)C<16?n[C]=r[C+_]:n[C]=fu(fu(fu(hRt(n[C-2]),n[C-7]),dRt(n[C-15])),n[C-16]),T=fu(fu(fu(fu(m,uRt(u)),sRt(u,h,p)),fRt[C]),n[C]),S=fu(cRt(i),lRt(i,o,a)),m=p,p=h,h=u,u=fu(l,T),l=a,a=o,o=i,i=fu(T,S);t[0]=fu(i,t[0]),t[1]=fu(o,t[1]),t[2]=fu(a,t[2]),t[3]=fu(l,t[3]),t[4]=fu(u,t[4]),t[5]=fu(h,t[5]),t[6]=fu(p,t[6]),t[7]=fu(m,t[7])}return t}function fu(r,e){var t=(r&65535)+(e&65535),n=(r>>16)+(e>>16)+(t>>16);return n<<16|t&65535}function gRt(r,e){if(e<r.length+22)return console.error("Message too long for RSA"),null;for(var t=e-r.length-6,n="",i=0;i<t;i+=2)n+="ff";var o="0001"+n+"00"+r;return El(o,16)}function mRt(r,e){if(e<r.length+11)return console.error("Message too long for RSA"),null;for(var t=[],n=r.length-1;n>=0&&e>0;){var i=r.charCodeAt(n--);i<128?t[--e]=i:i>127&&i<2048?(t[--e]=i&63|128,t[--e]=i>>6|192):(t[--e]=i&63|128,t[--e]=i>>6&63|128,t[--e]=i>>12|224)}t[--e]=0;for(var o=new FB,a=[];e>2;){for(a[0]=0;a[0]==0;)o.nextBytes(a);t[--e]=a[0]}return t[--e]=2,t[--e]=0,new ki(t)}function Tde(r,e,t){for(var n="",i=0;n.length<e;)n+=t(String.fromCharCode.apply(String,r.concat([(i&4278190080)>>24,(i&16711680)>>16,(i&65280)>>8,i&255]))),i+=1;return n}var yRt=32;function vRt(r,e){var t=yRt,n=EW;if(r.length+2*t+2>e)throw"Message too long for RSA";var i="",o;for(o=0;o<e-r.length-2*t-2;o+=1)i+="\0";var a=n("")+i+"�"+r,l=new Array(t);new FB().nextBytes(l);var u=Tde(l,a.length,n),h=[];for(o=0;o<a.length;
vendor: 21,675 bytes, lines 1084-1091
1084o+=1)h[o]=a.charCodeAt(o)^u.charCodeAt(o);var p=Tde(h,l.length,n),m=[0];for(o=0;o<l.length;o+=1)m[o+1]=l[o]^p.charCodeAt(o);return new ki(m.concat(h))}var _Rt=(function(){function r(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return r.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},r.prototype.doPrivate=function(e){if(this.p==null||this.q==null)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(n)<0;)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},r.prototype.setPublic=function(e,t){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=El(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},r.prototype.encrypt=function(e,t){typeof t>"u"&&(t=mRt);var n=this.n.bitLength()+7>>3,i=t(e,n);if(i==null)return null;var o=this.doPublic(i);if(o==null)return null;for(var a=o.toString(16),l=a.length,u=0;u<n*2-l;u++)a="0"+a;return a},r.prototype.setPrivate=function(e,t,n){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=El(e,16),this.e=parseInt(t,16),this.d=El(n,16)):console.error("Invalid RSA private key")},r.prototype.setPrivateEx=function(e,t,n,i,o,a,l,u){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=El(e,16),this.e=parseInt(t,16),this.d=El(n,16),this.p=El(i,16),this.q=El(o,16),this.dmp1=El(a,16),this.dmq1=El(l,16),this.coeff=El(u,16)):console.error("Invalid RSA private key")},r.prototype.generate=function(e,t){var n=new FB,i=e>>1;this.e=parseInt(t,16);for(var o=new ki(t,16);;){for(;this.p=new ki(e-i,1,n),!(this.p.subtract(ki.ONE).gcd(o).compareTo(ki.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new ki(i,1,n),!(this.q.subtract(ki.ONE).gcd(o).compareTo(ki.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var l=this.p.subtract(ki.ONE),u=this.q.subtract(ki.ONE),h=l.multiply(u);if(h.gcd(o).compareTo(ki.ONE)==0){this.n=this.p.multiply(this.q),this.d=o.modInverse(h),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(u),this.coeff=this.q.modInverse(this.p);break}}},r.prototype.decrypt=function(e){var t=El(e,16),n=this.doPrivate(t);return n==null?null:bRt(n,this.n.bitLength()+7>>3)},r.prototype.generateAsync=function(e,t,n){var i=new FB,o=e>>1;this.e=parseInt(t,16);var a=new ki(t,16),l=this,u=function(){var h=function(){if(l.p.compareTo(l.q)<=0){var _=l.p;l.p=l.q,l.q=_}var C=l.p.subtract(ki.ONE),T=l.q.subtract(ki.ONE),S=C.multiply(T);S.gcd(a).compareTo(ki.ONE)==0?(l.n=l.p.multiply(l.q),l.d=a.modInverse(S),l.dmp1=l.d.mod(C),l.dmq1=l.d.mod(T),l.coeff=l.q.modInverse(l.p),setTimeout(function(){n()},0)):setTimeout(u,0)},p=function(){l.q=go(),l.q.fromNumberAsync(o,1,i,function(){l.q.subtract(ki.ONE).gcda(a,function(_){_.compareTo(ki.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(h,0):setTimeout(p,0)})})},m=function(){l.p=go(),l.p.fromNumberAsync(e-o,1,i,function(){l.p.subtract(ki.ONE).gcda(a,function(_){_.compareTo(ki.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(p,0):setTimeout(m,0)})})};setTimeout(m,0)};setTimeout(u,0)},r.prototype.sign=function(e,t,n){var i=wRt(n),o=i+t(e).toString(),a=this.n.bitLength()/4,l=gRt(o,a);if(l==null)return null;var u=this.doPrivate(l);if(u==null)return null;for(var h=u.toString(16),p=h.length,m=0;m<a-p;m++)h="0"+h;return h},r.prototype.verify=function(e,t,n){var i=El(t,16),o=this.doPublic(i);if(o==null)return null;var a=o.toString(16).replace(/^1f+00/,""),l=ERt(a);return l==n(e).toString()},r})();function bRt(r,e){for(var t=r.toByteArray(),n=0;n<t.length&&t[n]==0;)++n;if(t.length-n!=e-1||t[n]!=2)return null;for(++n;t[n]!=0;)if(++n>=t.length)return null;for(var i="";++n<t.length;){var o=t[n]&255;o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((o&31)<<6|t[n+1]&63),++n):(i+=String.fromCharCode((o&15)<<12|(t[n+1]&63)<<6|t[n+2]&63),n+=2)}return i}var RF={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function wRt(r){return RF[r]||""}function ERt(r){for(var e in RF)if(RF.hasOwnProperty(e)){var t=RF[e],n=t.length;if(r.substring(0,n)==t)return r.substring(n)}return r}function Sc(r,e,t){if(!e||!r)throw new Error("extend failed, please check that all dependencies are included.");var n=function(){};n.prototype=e.prototype,r.prototype=new n,r.prototype.constructor=r,r.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e)}/**
1085 * @fileOverview
1086 * @name asn1-1.0.js
1087 * @author Kenji Urushima [email protected]
1088 * @version asn1 1.0.13 (2017-Jun-02)
1089 * @since jsrsasign 2.1
1090 * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
1091 */var ur={};(typeof ur.asn1>"u"||!ur.asn1)&&(ur.asn1={});ur.asn1.ASN1Util=new function(){this.integerToByteHex=function(r){var e=r.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(r){var e=r.toString(16);if(e.substring(0,1)!="-")e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var t=e.substring(1),n=t.length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var i="",o=0;o<n;o++)i+="f";var a=new ki(i,16),l=a.xor(r).add(ki.ONE);e=l.toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(r,e){return hextopem(r,e)},this.newObject=function(r){var e=ur,t=e.asn1,n=t.DERBoolean,i=t.DERInteger,o=t.DERBitString,a=t.DEROctetString,l=t.DERNull,u=t.DERObjectIdentifier,h=t.DEREnumerated,p=t.DERUTF8String,m=t.DERNumericString,_=t.DERPrintableString,C=t.DERTeletexString,T=t.DERIA5String,S=t.DERUTCTime,R=t.DERGeneralizedTime,O=t.DERSequence,N=t.DERSet,H=t.DERTaggedObject,F=t.ASN1Util.newObject,j=Object.keys(r);if(j.length!=1)throw"key of param shall be only one.";var L=j[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+L+":")==-1)throw"undefined key: "+L;if(L=="bool")return new n(r[L]);if(L=="int")return new i(r[L]);if(L=="bitstr")return new o(r[L]);if(L=="octstr")return new a(r[L]);if(L=="null")return new l(r[L]);if(L=="oid")return new u(r[L]);if(L=="enum")return new h(r[L]);if(L=="utf8str")return new p(r[L]);if(L=="numstr")return new m(r[L]);if(L=="prnstr")return new _(r[L]);if(L=="telstr")return new C(r[L]);if(L=="ia5str")return new T(r[L]);if(L=="utctime")return new S(r[L]);if(L=="gentime")return new R(r[L]);if(L=="seq"){for(var B=r[L],Q=[],Z=0;Z<B.length;Z++){var ie=F(B[Z]);Q.push(ie)}return new O({array:Q})}if(L=="set"){for(var B=r[L],Q=[],Z=0;Z<B.length;Z++){var ie=F(B[Z]);Q.push(ie)}return new N({array:Q})}if(L=="tag"){var J=r[L];if(Object.prototype.toString.call(J)==="[object Array]"&&J.length==3){var ne=F(J[2]);return new H({tag:J[0],explicit:J[1],obj:ne})}else{var ue={};if(J.explicit!==void 0&&(ue.explicit=J.explicit),J.tag!==void 0&&(ue.tag=J.tag),J.obj===void 0)throw"obj shall be specified for 'tag'.";return ue.obj=F(J.obj),new H(ue)}}},this.jsonToASN1HEX=function(r){var e=this.newObject(r);return e.getEncodedHex()}};ur.asn1.ASN1Util.oidHexToInt=function(r){for(var i="",e=parseInt(r.substring(0,2),16),t=Math.floor(e/40),n=e%40,i=t+"."+n,o="",a=2;a<r.length;a+=2){var l=parseInt(r.substring(a,a+2),16),u=("00000000"+l.toString(2)).slice(-8);if(o=o+u.substring(1,8),u.substring(0,1)=="0"){var h=new ki(o,2);i=i+"."+h.toString(10),o=""}}return i};ur.asn1.ASN1Util.oidIntToHex=function(r){var e=function(l){var u=l.toString(16);return u.length==1&&(u="0"+u),u},t=function(l){var u="",h=new ki(l,10),p=h.toString(2),m=7-p.length%7;m==7&&(m=0);for(var _="",C=0;C<m;C++)_+="0";p=_+p;for(var C=0;C<p.length-1;C+=7){var T=p.substring(C,C+7);C!=p.length-7&&(T="1"+T),u+=e(parseInt(T,2))}return u};if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var n="",i=r.split("."),o=parseInt(i[0])*40+parseInt(i[1]);n+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)n+=t(i[a]);return n};ur.asn1.ASN1Object=function(){var r="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+r.length+",v="+this.hV;var e=this.hV.length/2,t=e.toString(16);if(t.length%2==1&&(t="0"+t),e<128)return t;var n=t.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);var i=128+n;return i.toString(16)+t},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}};ur.asn1.DERAbstractString=function(r){ur.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r=="string"?this.setString(r):typeof r.str<"u"?this.setString(r.str):typeof r.hex<"u"&&this.setStringHex(r.hex))};Sc(ur.asn1.DERAbstractString,ur.asn1.ASN1Object);ur.asn1.DERAbstractTime=function(r){ur.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){utc=e.getTime()+e.getTimezoneOffset()*6e4;var t=new Date(utc);return t},this.formatDate=function(e,t,n){var i=this.zeroPadding,o=this.localDateToUTC(e),a=String(o.getFullYear());t=="utc"&&(a=a.substring(2,4));var l=i(String(o.getMonth()+1),2),u=i(String(o.getDate()),2),h=i(String(o.getHours()),2),p=i(String(o.getMinutes()),2),m=i(String(o.getSeconds()),2),_=a+l+u+h+p+m;if(n===!0){var C=o.getMilliseconds();if(C!=0){var T=i(String(C),3);T=T.replace(/[0]+$/,""),_=_+"."+T}}return _+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,t,n,i,o,a){var l=new Date(Date.UTC(e,t-1,n,i,o,a,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}};Sc(ur.asn1.DERAbstractTime,ur.asn1.ASN1Object);ur.asn1.DERAbstractStructured=function(r){ur.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,typeof r<"u"&&typeof r.array<"u"&&(this.asn1Array=r.array)};Sc(ur.asn1.DERAbstractStructured,ur.asn1.ASN1Object);ur.asn1.DERBoolean=function(){ur.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};Sc(ur.asn1.DERBoolean,ur.asn1.ASN1Object);ur.asn1.DERInteger=function(r){ur.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=ur.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new ki(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r.bigint<"u"?this.setByBigInteger(r.bigint):typeof r.int<"u"?this.setByInteger(r.int):typeof r=="number"?this.setByInteger(r):typeof r.hex<"u"&&this.setValueHex(r.hex))};Sc(ur.asn1.DERInteger,ur.asn1.ASN1Object);ur.asn1.DERBitString=function(r){if(r!==void 0&&typeof r.obj<"u"){var e=ur.asn1.ASN1Util.newObject(r.obj);r.hex="00"+e.getEncodedHex()}ur.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,n){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var i="0"+t;this.hTLV=null,this.isModified=!0,this.hV=i+n},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var n=8-t.length%8;n==8&&(n=0);for(var i=0;i<=n;i++)t+="0";for(var o="",i=0;i<t.length-1;i+=8){var a=t.substring(i,i+8),l=parseInt(a,2).toString(16);l.length==1&&(l="0"+l),o+=l}this.hTLV=null,this.isModified=!0,this.hV="0"+n+o},this.setByBooleanArray=function(t){for(var n="",i=0;i<t.length;i++)t[i]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(t){for(var n=new Array(t),i=0;i<t;i++)n[i]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r=="string"&&r.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(r):typeof r.hex<"u"?this.setHexValueIncludingUnusedBits(r.hex):typeof r.bin<"u"?this.setByBinaryString(r.bin):typeof r.array<"u"&&this.setByBooleanArray(r.array))};Sc(ur.asn1.DERBitString,ur.asn1.ASN1Object);ur.asn1.DEROctetString=function(r){if(r!==void 0&&typeof r.obj<"u"){var e=ur.asn1.ASN1Util.newObject(r.obj);r.hex=e.getEncodedHex()}ur.asn1.DEROctetString.superclass.constructor.call(this,r),this.hT="04"};Sc(ur.asn1.DEROctetString,ur.asn1.DERAbstractString);ur.asn1.DERNull=function(){ur.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};Sc(ur.asn1.DERNull,ur.asn1.ASN1Object);ur.asn1.DERObjectIdentifier=function(r){var e=function(n){var i=n.toString(16);return i.length==1&&(i="0"+i),i},t=function(n){var i="",o=new ki(n,10),a=o.toString(2),l=7-a.length%7;l==7&&(l=0);for(var u="",h=0;h<l;h++)u+="0";a=u+a;for(var h=0;h<a.length-1;h+=7){var p=a.substring(h,h+7);h!=a.length-7&&(p="1"+p),i+=e(parseInt(p,2))}return i};ur.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueOidString=function(n){if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var i="",o=n.split("."),a=parseInt(o[0])*40+parseInt(o[1]);i+=e(a),o.splice(0,2);for(var l=0;l<o.length;l++)i+=t(o[l]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=ur.asn1.x509.OID.name2oid(n);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+n},this.getFreshValueHex=function(){return this.hV},r!==void 0&&(typeof r=="string"?r.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(r):this.setValueName(r):r.oid!==void 0?this.setValueOidString(r.oid):r.hex!==void 0?this.setValueHex(r.hex):r.name!==void 0&&this.setValueName(r.name))};Sc(ur.asn1.DERObjectIdentifier,ur.asn1.ASN1Object);ur.asn1.DEREnumerated=function(r){ur.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=ur.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new ki(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r.int<"u"?this.setByInteger(r.int):typeof r=="number"?this.setByInteger(r):typeof r.hex<"u"&&this.setValueHex(r.hex))};Sc(ur.asn1.DEREnumerated,ur.asn1.ASN1Object);ur.asn1.DERUTF8String=function(r){ur.asn1.DERUTF8String.superclass.constructor.call(this,r),this.hT="0c"};Sc(ur.asn1.DERUTF8String,ur.asn1.DERAbstractString);ur.asn1.DERNumericString=function(r){ur.asn1.DERNumericString.superclass.constructor.call(this,r),this.hT="12"};Sc(ur.asn1.DERNumericString,ur.asn1.DERAbstractString);ur.asn1.DERPrintableString=function(r){ur.asn1.DERPrintableString.superclass.constructor.call(this,r),this.hT="13"};Sc(ur.asn1.DERPrintableString,ur.asn1.DERAbstractString);ur.asn1.DERTeletexString=function(r){ur.asn1.DERTeletexString.superclass.constructor.call(this,r),this.hT="14"};Sc(ur.asn1.DERTeletexString,ur.asn1.DERAbstractString);ur.asn1.DERIA5String=function(r){ur.asn1.DERIA5String.superclass.constructor.call(this,r),this.hT="16"};Sc(ur.asn1.DERIA5String,ur.asn1.DERAbstractString);ur.asn1.DERUTCTime=function(r){ur.asn1.DERUTCTime.superclass.constructor.call(this,r),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},r!==void 0&&(r.str!==void 0?this.setString(r.str):typeof r=="string"&&r.match(/^[0-9]{12}Z$/)?this.setString(r):r.hex!==void 0?this.setStringHex(r.hex):r.date!==void 0&&this.setByDate(r.date))};Sc(ur.asn1.DERUTCTime,ur.asn1.DERAbstractTime);ur.asn1.DERGeneralizedTime=function(r){ur.asn1.DERGeneralizedTime.superclass.constructor.call(this,r),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},r!==void 0&&(r.str!==void 0?this.setString(r.str):typeof r=="string"&&r.match(/^[0-9]{14}Z$/)?this.setString(r):r.hex!==void 0?this.setStringHex(r.hex):r.date!==void 0&&this.setByDate(r.date),r.millis===!0&&(this.withMillis=!0))};Sc(ur.asn1.DERGeneralizedTime,ur.asn1.DERAbstractTime);ur.asn1.DERSequence=function(r){ur.asn1.DERSequence.superclass.constructor.call(this,r),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e+=n.getEncodedHex()}return this.hV=e,this.hV}};Sc(ur.asn1.DERSequence,ur.asn1.DERAbstractStructured);ur.asn1.DERSet=function(r){ur.asn1.DERSet.superclass.constructor.call(this,r),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e.push(n.getEncodedHex())}return this.sortFlag==!0&&e.sort(),this.hV=e.join(""),this.hV},typeof r<"u"&&typeof r.sortflag<"u"&&r.sortflag==!1&&(this.sortFlag=!1)};Sc(ur.asn1.DERSet,ur.asn1.DERAbstractStructured);ur.asn1.DERTaggedObject=function(r){ur.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,t,n){this.hT=t,this.isExplicit=e,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r.tag<"u"&&(this.hT=r.tag),typeof r.explicit<"u"&&(this.isExplicit=r.explicit),typeof r.obj<"u"&&(this.asn1Object=r.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))};Sc(ur.asn1.DERTaggedObject,ur.asn1.ASN1Object);var CRt=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})(),Sde=(function(r){CRt(e,r);function e(t){var n=r.call(this)||this;return t&&(typeof t=="string"?n.parseKey(t):(e.hasPrivateKeyProperty(t)||e.hasPublicKeyProperty(t))&&n.parsePropertiesFrom(t)),n}return e.prototype.parseKey=function(t){try{var n=0,i=0,o=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,a=o.test(t)?WAt.decode(t):wW.unarmor(t),l=XAt.decode(a);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){n=l.sub[1].getHexStringValue(),this.n=El(n,16),i=l.sub[2].getHexStringValue(),this.e=parseInt(i,16);var u=l.sub[3].getHexStringValue();this.d=El(u,16);var h=l.sub[4].getHexStringValue();this.p=El(h,16);var p=l.sub[5].getHexStringValue();this.q=El(p,16);var m=l.sub[6].getHexStringValue();this.dmp1=El(m,16);var _=l.sub[7].getHexStringValue();this.dmq1=El(_,16);var C=l.sub[8].getHexStringValue();this.coeff=El(C,16)}else if(l.sub.length===2)if(l.sub[0].sub){var T=l.sub[1],S=T.sub[0];n=S.sub[0].getHexStringValue(),this.n=El(n,16),i=S.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=l.sub[0].getHexStringValue(),this.n=El(n,16),i=l.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch{return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new ur.asn1.DERInteger({int:0}),new ur.asn1.DERInteger({bigint:this.n}),new ur.asn1.DERInteger({int:this.e}),new ur.asn1.DERInteger({bigint:this.d}),new ur.asn1.DERInteger({bigint:this.p}),new ur.asn1.DERInteger({bigint:this.q}),new ur.asn1.DERInteger({bigint:this.dmp1}),new ur.asn1.DERInteger({bigint:this.dmq1}),new ur.asn1.DERInteger({bigint:this.coeff})]},n=new ur.asn1.DERSequence(t);return n.getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return xN(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new ur.asn1.DERSequence({array:[new ur.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new ur.asn1.DERNull]}),n=new ur.asn1.DERSequence({array:[new ur.asn1.DERInteger({bigint:this.n}),new ur.asn1.DERInteger({int:this.e})]}),i=new ur.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),o=new ur.asn1.DERSequence({array:[t,i]});return o.getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return xN(this.getPublicBaseKey())},e.wordwrap=function(t,n){if(n=n||64,!t)return t;var i="(.{1,"+n+`})( +|$
1092?)|(.{1,`+n+"})";return t.match(RegExp(i,"g")).join(`
1093`)},e.prototype.getPrivateKey=function(){var t=`-----BEGIN RSA PRIVATE KEY-----
1094`;return t+=e.wordwrap(this.getPrivateBaseKeyB64())+`
1095`,t+="-----END RSA PRIVATE KEY-----",t},e.prototype.getPublicKey=function(){var t=`-----BEGIN PUBLIC KEY-----
1096`;return t+=e.wordwrap(this.getPublicBaseKeyB64())+`
1097`,t+="-----END PUBLIC KEY-----",t},e.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e})(_Rt),xRt={},$3,TRt=typeof process<"u"?($3=xRt)===null||$3===void 0?void 0:$3.npm_package_version:void 0,SRt=(function(){function r(e){e===void 0&&(e={}),this.default_key_size=e.default_key_size?parseInt(e.default_key_size,10):1024,this.default_public_exponent=e.default_public_exponent||"010001",this.log=e.log||!1,this.key=e.key||null}return r.prototype.setKey=function(e){e?(this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Sde(e)):!this.key&&this.log&&console.error("A key was not set.")},r.prototype.setPrivateKey=function(e){this.setKey(e)},r.prototype.setPublicKey=function(e){this.setKey(e)},r.prototype.decrypt=function(e){try{return this.getKey().decrypt(yde(e))}catch{return!1}},r.prototype.encrypt=function(e){try{return xN(this.getKey().encrypt(e))}catch{return!1}},r.prototype.encryptOAEP=function(e){try{return xN(this.getKey().encrypt(e,vRt))}catch{return!1}},r.prototype.sign=function(e,t,n){t===void 0&&(t=function(i){return i}),n===void 0&&(n="");try{return xN(this.getKey().sign(e,t,n))}catch{return!1}},r.prototype.signSha256=function(e){return this.sign(e,function(t){return xde(EW(t))},"sha256")},r.prototype.verify=function(e,t,n){n===void 0&&(n=function(i){return i});try{return this.getKey().verify(e,yde(t),n)}catch{return!1}},r.prototype.verifySha256=function(e,t){return this.verify(e,t,function(n){return xde(EW(n))})},r.prototype.getKey=function(e){if(!this.key){if(this.key=new Sde,e&&{}.toString.call(e)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,e);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},r.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},r.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},r.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},r.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},r.version=TRt,r})();const IRt=r=>{const e=new SRt;return e.setPublicKey(Zn.publicKey),e.encrypt(r).toString()},ARt=new ob(Xy.AZURE_AD_SCOPE).client;class RRt{constructor(){eo(this,"httpClient");eo(this,"openHttpClient");eo(this,"useCheckKreisExists",(e,t)=>Ld({queryKey:["kreis-exists",e],queryFn:async({signal:n})=>(await this.httpClient.get(`${Zn.apiBaseUrl}/location-staging/kreis-exists/${e}`,{signal:n})).data,enabled:!!e&&t}));this.httpClient=new ob(Xy.AZURE_AD_SCOPE).client,this.openHttpClient=new ob().client}useCreateNewJoinUsRequest(){const e=Wy();return Ky({mutationFn:async t=>{const n=ZO(t,rE.CREATE),i=new Date().getTime().toString(),o=IRt(i),a=encodeURIComponent(o);return(await this.openHttpClient.post(`${Zn.apiBaseUrl}/location-staging?requestSignature=${a}`,n,{headers:{"Content-Type":"multipart/form-data"}})).data},onSuccess:()=>{e.invalidateQueries({queryKey:["location-staging/summary"]}),e.invalidateQueries({queryKey:["location-staging/duplicates"]})}})}async updateLocationStaging(e,t){const n=ZO(t,rE.UPDATE);return(await this.httpClient.patch(`${Zn.apiBaseUrl}/location-staging/${e}`,n,{headers:{"Content-Type":"multipart/form-data"}})).data}async publishNewLocationStaging(e,t){const n=ZO(e,rE.CREATE);return(await this.httpClient.post(`${Zn.apiBaseUrl}/location-staging/publish/${t}`,n,{headers:{"Content-Type":"multipart/form-data"}})).data}async publishExistingLocationStaging(e,t,n){const i=ZO(t,rE.UPDATE);return(await this.httpClient.patch(`${Zn.apiBaseUrl}/location-staging/publish/${n}?id=${e}`,i,{headers:{"Content-Type":"multipart/form-data"}})).data}getLocationStagingDetails(e,t){return this.httpClient.get(`${Zn.apiBaseUrl}/location-staging/${e}`,{signal:t})}useGetLocationStagingDataUsingLocationId(e,t){return Ld({queryKey:["location-staging/details",e],queryFn:async({signal:n})=>e?(await this.httpClient.get(`${Zn.apiBaseUrl}/location-staging/details/${e}`,{signal:n})).data:null,enabled:t??!0})}deleteRequest(e){return this.httpClient.delete(`${Zn.apiBaseUrl}/location-staging/delete/${e}`)}deleteChangeRequest(e){return this.httpClient.patch(`${Zn.apiBaseUrl}/location-staging/delete-change-request/${e}`)}deleteRequestList(e){return this.httpClient.delete(`${Zn.apiBaseUrl}/location-staging/`,{data:{locationStagingList:e}})}deleteChangeRequestList(e){return this.httpClient.patch(`${Zn.apiBaseUrl}/location-staging/`,{locationStagingList:e})}async updateProviderTag(e){return(await this.httpClient.patch(`${Zn.apiBaseUrl}/location-staging/provider-tag/update`,e)).data}async unlinkParent(e){return this.httpClient.patch(`${Zn.apiBaseUrl}/location-staging/unlink-parent/${e}`)}getAllLocations(e){return this.httpClient.get(`${Zn.apiBaseUrl}/location-staging/locations`,{params:e})}useGetSummary(e){return Ld({queryKey:["location-staging/summary",e],queryFn:async({signal:t})=>(await this.httpClient.get(`${Zn.apiBaseUrl}/location-staging/summary`,{params:e,signal:t})).data})}checkAddressExists(e,t,n,i){return this.httpClient.get(`${Zn.apiBaseUrl}/location-staging/address-exists`,{params:{lat:e,lng:t,id:n,tagId:i}})}async downloadCMSReport(e){return this.httpClient.get(`${Zn.apiBaseUrl}/location-staging/download-report`,{params:e}).then(t=>{if(t.status===202)return!0;throw new Error(`Response status: ${t.status}`)}).catch(t=>(Bd.error("Failed while downloading CMS report",t),!1))}getLocationStagingFilterCount(e,t){return this.httpClient.get(`${Zn.apiBaseUrl}/location-staging/filters/`,{params:e,cancelToken:t})}getImage(e,t){return this.httpClient.get(`${Zn.apiBaseUrl}/location-staging/image/${e}/${t}`)}async uploadFromExcelForCompare(e,t){const n=new FormData;n.append("file",e);const i=JSON.stringify({criteria:t});return n.append("data",i),ARt.post(`${Zn.apiBaseUrl}/location-staging/compare-data`,n,{headers:{Accept:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","Content-Type":"multipart/form-data"},responseType:"blob"}).then(o=>{if(o.status===201)return cAt(o.data,"comparison.xlsx"),!0;throw new Error(`Response status: ${o.status}`)}).catch(o=>{throw Bd.error("Failed while comparing uploaded excel",o),new Error("Failed")})}useGetDuplicateLocationsUsingId(e,t){return Ld({queryKey:["location-staging/duplicates",e],queryFn:async({signal:n})=>e?(await this.httpClient.get(`${Zn.apiBaseUrl}/location-staging/duplicates/${e}`,{signal:n})).data:null,enabled:t??!0})}deletePublisedLocation(e){return this.httpClient.delete(`${Zn.apiBaseUrl}/location-staging/published-project/delete/${e}`)}mergeLocations(e,t,n){const i=ZO(n,rE.UPDATE);return this.httpClient.patch(`${Zn.apiBaseUrl}/location-staging/merge/${e}?mergeLocationId=${t}`,i,{headers:{"Content-Type":"multipart/form-data"}})}useGetTagsDataset(){return Ld({queryKey:["/location-staging/tags/dataset"],queryFn:async({signal:e})=>(await this.httpClient.get(`${Zn.apiBaseUrl}/location-staging/tags/dataset`,{signal:e})).data})}}const PRt=new RRt,Ide={firstName:"",lastName:"",email:"",company:"",phoneNumber:"",comment:"",requestType:QA.ADD_PROJECT_CMS},YMt={name:"",description:"",address:"",lat:null,lng:null,goLiveDate:null,district:"",state:"",website:"",canPublish:!1,phasesStaging:[],tags:[],matchMaking:!1},WMt=r=>r&&typeof r=="object"&&"freeformAddress"in r&&"lat"in r&&"lng"in r&&"country"in r,KMt=r=>Array.isArray(r)&&r.every(e=>
1097typeof e=="object"&&"key"in e&&"value"in e&&"accessType"in e),ZMt=r=>Object.values(Tve).find(t=>t.toLowerCase()===r.toLowerCase())||null,XMt=r=>r.trim().toLowerCase()===p_.INNOVATION_AGENTUR_RLP_SOURCE?`${r}-registration`:r,kRt=({handleContactFormClose:r,open:e,isStartPlan:t,selectedLicense:n,requestType:i,customSubheading:o,customComment:a})=>{const l=bS({components:{MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{color:ti.h2DigitalBlue,fontSize:"smaller","& > fieldset":{borderColor:ti.h2DigitalBlue,opacity:"80%"},"&:hover":{"& > fieldset":{borderColor:ti.h2DigitalBlue,opacity:"40%"}},"& input":{fontSize:"12px",color:ti.h2DigitalBlue}}}}}}}),u=bS({components:{MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{"& > fieldset":{borderColor:ti.h2DigitalBlue,opacity:"30%"},"&:hover":{"& > fieldset":{borderColor:ti.h2DigitalBlue,opacity:"80%"}},"& input":{fontSize:"12px",color:ti.h2DigitalBlue}}}}}}}),h=V.useMemo(()=>n||i?{comment:a??"",requestType:i??QA.JOIN_US_FORM,...n?{H2DigitalLicense:n}:{}}:{},[n,i,a]),[p,m]=V.useState("iconOne"),[_,C]=V.useState(Object.assign({},Ide,h)),[T,S]=V.useState(t?1:0),R=V.useRef(null),[O,N]=V.useState(!1),[H,F]=V.useState(!0),j=js(He=>He.userDetails),{mutateAsync:L,isPending:B}=PRt.useCreateNewJoinUsRequest();V.useEffect(()=>{C({..._,...h})},[h]);const Q=()=>{const He=vve.test(_.email);F(He)},{t:Z}=Tc(),{showSnackbar:ie}=UJ(),J=async()=>{if(!B)try{await L({..._,userId:j==null?void 0:j.id,requestSource:"PUBLIC",tags:[]}),setTimeout(()=>{se()},5*1e3),S(He=>He+1),N(!1)}catch{ie(Z("partnerJoin.confirmFailed"),"error"),se()}},ne=()=>{var He;if(T!=1){const{requestType:Re}=_;if(Re===QA.ADD_PROJECT_CMS){se(),window.open("/join","_blank");return}else if(Re===QA.JOIN_US_FORM){se(),window.open("/join?onlyUser=true","_blank");return}S($e=>$e+1),N(!1)}else(He=R==null?void 0:R.current)!=null&&He.reportValidity()&&J()},ue=()=>{S(t?1:0),N(!1),F(!0),C(Object.assign({},Ide,h))},K=()=>{T===1&&!t?S(He=>He-1):se()},se=()=>{r(),ue()},be=He=>{N(He)},de=(He,Re)=>
1097{const $e=(He??"").replace(/[^\d+\s]/g,"");C(tt=>({...tt,[Re]:$e}))},ge=(He,Re)=>{const{value:$e}=Re.target;C(tt=>({...tt,[He]:$e}))},Ue=He=>{const Re=[{subHeading:Z("contactUs.subtitleone"),isFree:!0},{subHeading:Z("contactUs.subtitletwo"),isFree:!0},{subHeading:Z("contactUs.subtitlethree"),isFree:!1},{subHeading:Z("contactUs.subtitlefour"),isFree:!1}];return $.jsxs("div",{className:"contact-us-content-title-container",children:[!t&&$.jsx("div",{className:"contact-us-content-title",children:Re[He].subHeading}),Re[He].isFree&&!t&&$.jsx("div",{className:"contact-us-content-free-tag",children:Z("contactUs.freeService")})]})},Qe=$.jsxs($.Fragment,{children:[$.jsx(WIt,{setformdetails:C,formdetails:_,iconstate:p,seticonstate:m}),_.requestType===QA.SIZING_AND_COSTING_REQUEST&&$.jsx(JY,{theme:l,children:$.jsx(Pw,{item:!0,xs:12,sx:{paddingTop:"2rem"},children:$.jsx(Wx,{id:"message",placeholder:Z("contactUs.additionalinfo")||"",multiline:!0,rows:4,value:_==null?void 0:_.comment,onChange:He=>ge("comment",He),fullWidth:!0})})})]}),ve=$.jsx("div",{className:"contact-form-container",children:$.jsx("form",{ref:R,children:$.jsx(JY,{theme:u,children:$.jsxs(Pw,{container:!0,spacing:2,children:[$.jsxs("span",{className:"header-fields",children:[Z("joinUs.contactName"),":"]}),$.jsx(Pw,{item:!0,xs:12,sm:6,className:"form-field-grid-container",children:$.jsx(Wx,{required:!0,id:"firstName",placeholder:`${Z("joinUs.firstName")||""} *`,value:_==null?void 0:_.firstName,onChange:He=>ge("firstName",He),fullWidth:!0})}),$.jsx(Pw,{item:!0,xs:12,sm:6,className:"form-field-grid-container mb-10",children:$.jsx(Wx,{required:!0,id:"lastName",placeholder:`${Z("joinUs.lastName")||""} *`,value:_==null?void 0:_.lastName,onChange:He=>ge("lastName",He),fullWidth:!0})}),$.jsxs("span",{className:"header-fields",children:[Z("joinUs.companyName"),":"]})," ",$.jsx(Pw,{item:!0,xs:12,className:"form-field-grid-container mb-10",children:$.jsx(Wx,{required:!0,id:"company-name",placeholder:`${Z("joinUs.name")||""} *`,value:_==null?void 0:_.company,onChange:He=>ge("company",He),fullWidth:!0})}),$.jsxs("span",{className:"header-fields",children:[Z("joinUs.contactInformation"),":"]}),$.jsx(Pw,{item:!0,xs:12,sm:7,className:"form-field-grid-container",children:$.jsx(Wx,{required:!0,id:"email",placeholder:`${Z("joinUs.email")||""} *`,type:"email",onBlur:Q,error:!H,helperText:H?"":`${Z("partnerJoin.helperText.email")}`,value:_==null?void 0:_.email,onChange:He=>(F(!0),ge("email",He)),fullWidth:!0})}),$.jsx(Pw,{item:!0,xs:12,sm:5,className:"form-field-grid-container",children:$.jsx(ZIt,{className:"phone-number-field",handleChange:de,phoneNumber:_==null?void 0:_.phoneNumber})}),$.jsx(Pw,{item:!0,xs:12,className:"reCAPTCHA-outer-container",children:$.jsx("div",{className:"reCAPTCHA-container",children:$.jsx(nAt,{handleRecaptchaChange:be})})})]})})})}),pe=$.jsxs("div",{children:[ve,$.jsxs(ok,{open:!0,className:"fragment-3-container",onClose:se,children:[$.jsx(ECe,{className:"fragment-3-header",children:Z("contactUs.ThankYouMessage")}),Z("contactUs.ThankYouSubMessage"),$.jsx("img",{src:KIt,className:"thankyou-image"})]})]});return $.jsxs(ok,{className:"contact-form",open:e,onClose:se,children:[$.jsxs("div",{className:`contact-us-title-wrapper ${t?"is-start-plan":""}`,children:[$.jsx("span",{className:"contact-us-header",children:Z(t?"contactUs.subheading":"contactUs.title")}),T===1?$.jsx("span",{className:"contact-us-subtitle",children:o??Z("contactUs.subheading")}):T===2?$.jsx("span",{className:"contact-us-subtitle",children:Z("contactUs.subheadingFragment3")}):$.jsx("span",{className:"contact-us-subtitle",children:Z("contactUs.subtitle")})]}),$.jsxs(YL,{className:"join-us-body",children:[T===1&&Ue(_.requestType),$.jsxs(V.Fragment,{children:[T==0&&Qe,T==1&&ve,T==2&&pe,(T===0||T===1)&&$.jsxs(fCe,{sx:{display:"flex",flexDirection:"row",pt:2},className:"button-container",children:[$.jsx(Ib,{customClass:"cancel-btn",isSecondary:!0,onClick:K,children:$.jsx("span",{children:Z(T===1&&!t?"back":"cancel")})}),$.jsx(Ib,{id:"submit-btn",customClass:"submit-btn",onClick:ne,variant:"contained",loading:B,disabled:T===0?!1:!(O&&H&&_.email&&_.firstName&&_.lastName&&_.company),children:$.jsx("span",{children:Z(T===1?"submit":"next")})})]})]})]})]})},Ade=()=>{const[r,e]=V.useState(!1),{trackEvent:t}=Txe(),n=()=>{t(MJ.JOIN_US),e(!0)},i=()=>{e(!1)},{t:o}=Tc();return $.jsxs($.Fragment,{children:[$.jsx(Ib,{onClick:n,customClass:"join-us-btn",children:$.jsxs("p",{children:[o("joinUs.titlePart1"),$.jsx("br",{}),$.jsx("strong",{children:o("joinUs.titlePart2")})]})}),$.jsx(kRt,{open:r,handleContactFormClose:i})]})},eTe=r=>{const{avatar:e,userName:t,firstName:n,lastName:i,showIconOnly:o=!1}=r,a=r.width||40,l=r.height||40,u=()=>{var h;return n&&i?n.charAt(0)+i.charAt(0):t?(h=t==null?void 0:t.match(new RegExp("(?<=\\b|_)\\w","g")))==null?void 0:h.join(""):""};return $.jsx("span",{children:t?$.jsxs("span",{className:"avatar-name-container",children:[$.jsx(ngt,{className:"avatar",src:e??"",children:u()}),n&&!o&&$.jsxs("span",{className:"name",children:[$.jsx("b",{className:"first-name",children:n}),$.jsx("span",{className:"last-name",children:i})]})]}):$.jsx(r_t,{variant:"circular",width:a,height:l})})};class ORt{constructor(){eo(this,"user",null);eo(this,"userPhoto",null);eo(this,"azureAdScope","User.Read");eo(this,"httpClient");this.httpClient=new ob(this.azureAdScope).client}getUserFromApi(){return this.httpClient.get(kue.graphMeEndpoint+"v1.0/me")}getUser(){return new Promise(e=>{yE.isEmpty(this.user)?this.getUserFromApi().then(({data:t})=>{this.user=t,e(t)}):e(this.user)})}async getPhoto(){if(this.userPhoto)return this.userPhoto;try{const e=await this.httpClient.get(kue.graphMeEndpoint+"v1.0/me/photo/$value",{responseType:"arraybuffer"}),t=btoa(new Uint8Array(e.data).reduce((n,i)=>n+String.fromCharCode(i),""));this.userPhoto=`data:image/jpeg;base64,${t}`}catch{this.userPhoto=null}return this.userPhoto}}const Rde=new ORt;class MRt{constructor(){eo(this,"userDetails",{});eo(this,"apiUrl",Zn.apiBaseUrl);eo(this,"openHttpClient");eo(this,"httpClient");this.httpClient=new ob(Xy.AZURE_AD_SCOPE).client,this.openHttpClient=new ob().client}useCreateProviderUser(){const e=Wy();return Ky({mutationFn:async t=>(await this.httpClient.post(`${Zn.apiBaseUrl}/user-details/provider/`,t)).data,onSuccess:()=>
1097{e.invalidateQueries({queryKey:["user-management-tables","user-details/providers"]})}})}useCreateProjectUser(){const e=Wy();return Ky({mutationFn:async t=>(await this.httpClient.post(`${Zn.apiBaseUrl}/user-details/project-user/`,t)).data,onSuccess:()=>{e.invalidateQueries({queryKey:["user-management-tables","user-details/project-users"]})}})}useCreateSupervisorUser(){const e=Wy();return Ky({mutationFn:async t=>(await this.httpClient.post(`${Zn.apiBaseUrl}/user-details/supervisor-user`,t)).data,onSuccess:()=>{e.invalidateQueries({queryKey:["user-management-tables","user-details/supervisor-users"]})}})}useInviteProviderUser(){const e=Wy();return Ky({mutationFn:async t=>(await this.httpClient.post(`${Zn.apiBaseUrl}/user-details/provider/invite`,t)).data,onSuccess:()=>{e.invalidateQueries({queryKey:["user-management-tables","user-details/providers"]})}})}useInviteProjectUser(){const e=Wy();return Ky({mutationFn:async t=>(await this.httpClient.post(`${Zn.apiBaseUrl}/user-details/project-user/invite`,t)).data,onSuccess:()=>{e.invalidateQueries({queryKey:["user-management-tables","user-details/project-users"]})}})}useInviteSupervisorUser(){const e=Wy();return Ky({mutationFn:async t=>(await this.httpClient.post(`${Zn.apiBaseUrl}/user-details/supervisor-user/invite`,t)).data,onSuccess:()=>{e.invalidateQueries({queryKey:["user-management-tables","user-details/supervisor-users"]})}})}useUpdateUser(){const e=Wy();return Ky({mutationFn:async t=>(await this.httpClient.patch(`${Zn.apiBaseUrl}/user-details/update-user/${t.userId}`,t.userData)).data,onSuccess:()=>{e.invalidateQueries({queryKey:["user-management-tables"]})}})}useGetProviderUsers(){return Ld({queryKey:["user-management-tables","user-details/providers"],queryFn:async({signal:e})=>(await this.httpClient.get(`${Zn.apiBaseUrl}/user-details/providers`,{signal:e})).data})}useGetSupervisorUsers(){return Ld({queryKey:["user-management-tables","user-details/supervisor-users"],queryFn:async({signal:e})=>(await this.httpClient.get(`${Zn.apiBaseUrl}/user-details/supervisor-users`,{signal:e})).data})}useGetSupportUsers(){return Ld({queryKey:["user-management-tables","user-details/support-users"],queryFn:async({signal:e})=>(await this.httpClient.get(`${Zn.apiBaseUrl}/user-details/support-users`,{signal:e})).data})}async deleteUser(e){return(await this.httpClient.delete(`${Zn.apiBaseUrl}/user-details/${e}`)).data}async assignLocationsToProjectUser(e){return(await this.httpClient.put(`${Zn.apiBaseUrl}/user-details/project-user/assign-locations`,e)).data}useGetProjectUsers(e){return Ld({queryKey:["user-management-tables","user-details/project-users",e],queryFn:async({signal:t})=>(await this.httpClient.get(`${Zn.apiBaseUrl}/user-details/project-users`,{params:e,signal:t})).data})}useCheckIsEmailMicrosoftDomain(e,t){return Ld({queryKey:["user-details/is-microsoft-domain"],queryFn:async()=>{if(!e)return!1;const n=await this.httpClient.get(`${Zn.apiBaseUrl}/user-details/is-microsoft-domain?email=${e}`);return n==null?void 0:n.data},enabled:t})}async getUserDetails(){return(await this.httpClient.get(`${Zn.apiBaseUrl}/user-details`)).data}async uploadAvatar(e){const t=new FormData;t.append("file",e);const n=await this.httpClient.post(this.apiUrl+"/user-details/avatar",t,{headers:{"Content-Type":"multipart/form-data"}});return this.userDetails.avatar=n.data.avatar,n.data.avatar}useCheckUserNameExists(e,t=!0){return Ld({gcTime:0,enabled:t,queryKey:["user-details/user-exists",e],queryFn:async({signal:n})=>{const i=e==null?void 0:e.trim();if(!i)return null;const o=i.toLowerCase()+bve,a=encodeURIComponent(o);return(await this.openHttpClient.get(`${Zn.apiBaseUrl}/user-details/user-exists?email=${a}`,{signal:n})).data}})}handleCreateUserFromStagingEditForm(e,t){return this.httpClient.post(`${Zn.apiBaseUrl}/location-staging/h2-digital-user/${e}?username=${t}`)}getExistingUserEmail(e){return this.httpClient.get(`${Zn.apiBaseUrl}/user-details/project-user-existing/${e}`)}}const tTe=new MRt,Q0=fL(r=>({isMobile:!1,isTablet:!1,isSmallLaptop:!1,deviceWidth:0,updateMobile:e=>{r(()=>({isMobile:e}))},updateTablet:e=>{r(()=>({isTablet:e}))},updateSmallLaptop:e=>{r(()=>({isSmallLaptop:e}))},updateDeviceWidth:e=>{r(()=>({deviceWidth:e}))}}));var XO={},Pde;function NRt(){if(Pde)return XO;Pde=1;var r=Wa();
1097Object.defineProperty(XO,"__esModule",{value:!0}),XO.default=void 0;var e=r(Ts()),t=ls();return XO.default=(0,e.default)((0,t.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout"),XO}var DRt=NRt();const LRt=ao(DRt),HRt=r=>{var m,_;const{open:e,anchorEl:t,userDetails:n,user:i,handleClose:o,openFileUpload:a,userPhoto:l}=r,{t:u}=Tc(),[,h]=Z9("mapSettings"),p=()=>{YS.loggout(),h({})};return $.jsx(D9,{id:"profile-popover",elevation:0,open:e,anchorEl:t,onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:$.jsxs(Cgt,{className:"profile-popover-container",children:[$.jsx("div",{className:"top-container",children:((m=n==null?void 0:n.locations)==null?void 0:m.length)==1&&$.jsx("span",{className:"company",children:n==null?void 0:n.locations[0].name})}),$.jsx("span",{className:"avatar-upload",onClick:a,children:i?$.jsx(eTe,{width:75,height:75,userName:(i==null?void 0:i.displayName)??"",avatar:(n==null?void 0:n.avatar)||l}):""}),$.jsx(Am,{title:i==null?void 0:i.displayName,disableInteractive:!0,children:$.jsxs("span",{className:"name",children:[" ",i==null?void 0:i.displayName]})}),$.jsx(Am,{title:i==null?void 0:i.mail,disableInteractive:!0,children:$.jsx("span",{className:"mail",children:i==null?void 0:i.mail})}),(_=i==null?void 0:i.userPrincipalName)!=null&&_.trim().includes("#EXT#")?void 0:$.jsx(Am,{title:"https://myaccount.microsoft.com",disableInteractive:!0,children:$.jsx("a",{className:"profile-edit",href:"https://myaccount.microsoft.com/",target:"_blank",rel:"noopener noreferrer",children:u("Profile.EditProfile")})}),$.jsx(RB,{className:"user-details"}),$.jsx(AB,{}),$.jsx(RB,{className:"actions",children:$.jsx(SCe,{disablePadding:!0,children:$.jsxs(gvt,{onClick:p,children:[$.jsx(Pvt,{children:$.jsx(LRt,{})}),$.jsx(Dvt,{className:"text",children:u("signOut")})]})})})]})})},kde=r=>{const{showName:e,showIconOnly:t}=r,[n,i]=V.useState(null),[o,a]=V.useState(null),l=js(H=>H.user),u=js(H=>H.setUser),[h,p]=V.useState(!1),m=V.useRef(null),_=Q0(H=>H.isMobile),C=js(H=>H.userDetails),T=js(H=>H.setUserDetails);V.useEffect(()=>{!l&&Rde.getUser().then(H=>{u(H)}),Rde.getPhoto().then(H=>{a(H)})},[]);const S=()=>{p(!1)},R=H=>{i(H.currentTarget),p(!0)},O=()=>{var H;(H=m==null?void 0:m.current)==null||H.click()},N=H=>{if(!H.target.files)return;const F=H.target.files[0];tTe.uploadAvatar(F).then(j=>{j&&C&&T({...C,avatar:j})})};return $.jsxs("span",{children:[!_||e?$.jsx(pv,{id:"profile-details-btn",style:{borderRadius:"4px"},"aria-describedby":"profile-details",onClick:R,children:$.jsx(eTe,{userName:(l==null?void 0:l.displayName)??"",firstName:(C==null?void 0:C.firstName)||(l==null?void 0:l.givenName)||"",lastName:(C==null?void 0:C.lastName)||(l==null?void 0:l.surname)||"",avatar:(C==null?void 0:C.avatar)||o,showIconOnly:t})}):$.jsx(Ib,{onClick:R,style:{border:"none",color:"#3d68aa",padding:"0",minWidth:"1rem"},children:$.jsx(Nxe,{className:"toggle-mobile-menu",fontSize:"medium"})}),l&&C&&$.jsx(HRt,{openFileUpload:O,anchorEl:n,handleClose:S,open:h,userDetails:C,userPhoto:o,user:l}
1097),$.jsx("input",{type:"file",ref:m,onChange:N,style:{display:"none"},accept:"image/png, image/jpeg"})]})},FRt="/assets/poweredby_h2%20digital-DxK4UUfn.svg",URt=({className:r,enableRedirection:e=!1,selfPosition:t="right",showToolTip:n=!1})=>{const{t:i}=Tc(),o=Hh(l=>l.hostIframe),[a]=UW();return a.get("host")||o?$.jsx($.Fragment,{}):$.jsx(Am,{title:n?i("h2-dig.goToH2Digital"):"",children:$.jsx("button",{"data-custom":t,className:`h2digital-trademark ${e?"cursorPointer":""} ${r}`,onClick:()=>{e&&window.open(location.origin,"_blank","noopener,noreferrer")},children:$.jsx("img",{alt:"H2digital",src:FRt})})})},BRt={isBlocked:!1,attemptedNavigation:null,attemptedNavigationOptions:void 0,attemptedNavigationCallback:void 0},$Rt=fL(r=>({...BRt,setIsBlocked:e=>{r(()=>({isBlocked:e}))},setAttemptedNavigation:e=>{r(()=>({attemptedNavigation:e}))},setAttemptedNavigationOptions:e=>{r(()=>({attemptedNavigationOptions:e}))},setAttemptedNavigationCallback:e=>{r(()=>({attemptedNavigationCallback:e}))}})),zRt=()=>{const r=dk(),{setIsBlocked:e,isBlocked:t,setAttemptedNavigation:n,attemptedNavigation:i,setAttemptedNavigationOptions:o,attemptedNavigationOptions:a,setAttemptedNavigationCallback:l,attemptedNavigationCallback:u}=$Rt(),h=(m,_,C)=>{typeof m=="number"?r(m):r(m,_),C&&C()},p=()=>{n(null),o(void 0),l(void 0)};return{navigateOrBlock:(m,_,C)=>{t?(n(m),o(_),l(C)):h(m,_,C)},isBlocked:t,setIsBlocked:e,nextLocation:i,proceed:()=>{i&&(e(!1),h(i,a,u),p())},reset:p}},jRt=()=>{var _,C,T;const r=js(S=>S.userAccessConfig),e=js(S=>S.userDetails),t=e&&((_=RJ(e))==null?void 0:_.value.toLowerCase()),{navigateOrBlock:n}=zRt(),i=XL(),o=ld(),a=Cve.includes(o.pathname),l=i&&gBe.has(i),u=(i||(r==null?void 0:r.providerLogoInHeader))&&!a,h=a||!l&&!i&&!(r!=null&&r.providerLogoInHeader),p=(T=(C=e==null?void 0:e.locations)==null?void 0:C[0])==null?void 0:T.logo,m=()=>e&&[si.PROVIDER,si.SUPERVISOR].includes(e.userType)&&(!i||i===Bo.HYPORTAL)&&p?$.jsx("img",{className:"provider-logo",src:p,alt:t,onClick:()=>{n("/")}}):i?$.jsx("img",{className:`provider-logo ${[Bo.HYPORTAL].includes(i)?"hyportal":""}`,"data-custom":i,src:`${Zn.blobStorageUrl}h2-digital/${i}-logo.svg`,alt:i,onClick:()=>{n("/")}}):$.jsx($.Fragment,{});return $.jsxs("div",{className:"header-logo",children:[u&&$.jsxs($.Fragment,{children:[$.jsx("div",{className:"provider-logo-container",children:m()}),!l&&$.jsx(URt,{className:"trademark",enableRedirection:!0})]}),h&&$.jsx(pv,{className:"default-icon",onClick:()=>{n("/",void 0,()=>Nx.animateScroll.scrollToTop())},children:$.jsx("img",{src:Cxe,alt:"H2Digital",className:"img-header"})})]})};var QO={},Ode;function VRt(){if(Ode)return QO;Ode=1;var r=Wa();Object.defineProperty(QO,"__esModule",{value:!0}),QO.default=void 0;var e=r(Ts()),t=ls();return QO.default=(0,e.default)((0,t.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 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"}),"Language"),QO}var qRt=VRt();const GRt=ao(qRt),YRt="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='8.445'%20cy='8.445'%20r='7.695'%20stroke='white'%20stroke-width='0.5'/%3e%3cmask%20id='mask0_3_939'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='1'%20y='1'%20width='15'%20height='15'%3e%3ccircle%20cx='8.44267'%20cy='8.44267'%20r='7.44268'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_3_939)'%3e%3cpath%20d='M-2.63057%201H19.5159V15.8855H-2.63057V1Z'%20fill='%23D80027'/%3e%3cpath%20d='M-2.63057%201H19.5159V5.96167H-2.63057V1Z'%20fill='black'/%3e%3cpath%20d='M-2.63057%2010.9234H19.5159V15.8851H-2.63057V10.9234Z'%20fill='%23FFDA44'/%3e%3c/g%3e%3ccircle%20cx='8.445'%20cy='8.445'%20r='7.695'%20stroke='white'%20stroke-width='0.5'/%3e%3c/svg%3e",WRt="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_3_910'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='1'%20y='1'%20width='15'%20height='15'%3e%3ccircle%20cx='8.44267'%20cy='8.44267'%20r='7.44268'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_3_910)'%3e%3cpath%20d='M-2.63057%201.00008H19.5159V15.8856H-2.63057V1.00008Z'%20fill='white'/%3e%3cpath%20d='M9.82684%200.999794H7.05852V7.04694H-2.63057V9.83795H7.05852V15.8851H9.82684V9.83795H19.5159V7.04694H9.82684V0.999794Z'%20fill='%23D80027'/%3e%3cpath%20d='M14.4026%2011.0313L19.5159%2013.8954V11.0313H14.4026ZM10.8499%2011.0313L19.5159%2015.8852V14.5126L13.3005%2011.0313H10.8499ZM17.2076%2015.8852L10.8499%2012.3238V15.8852H17.2076Z'%20fill='%230052B4'/%3e%3cpath%20d='M10.8499%2011.0313L19.5159%2015.8852V14.5126L13.3005%2011.0313H10.8499Z'%20fill='white'/%3e%3cpath%20d='M10.8499%2011.0313L19.5159%2015.8852V14.5126L13.3005%2011.0313H10.8499Z'%20fill='%23D80027'/%3e%3cpath%20d='M1.27712%2011.0312L-2.63057%2013.2199V11.0312H1.27712ZM6.03546%2011.6484V15.8851H-1.52796L6.03546%2011.6484Z'%2
10970fill='%230052B4'/%3e%3cpath%20d='M3.58485%2011.0313L-2.63057%2014.5126V15.8852L6.03546%2011.0313H3.58485Z'%20fill='%23D80027'/%3e%3cpath%20d='M2.48281%205.8537L-2.63057%202.98961V5.8537H2.48281ZM6.03546%205.8537L-2.63057%200.999794V2.37236L3.58485%205.8537H6.03546ZM-0.32223%200.999794L6.03546%204.56112V0.999794H-0.32223Z'%20fill='%230052B4'/%3e%3cpath%20d='M6.03546%205.8537L-2.63057%200.999794V2.37236L3.58485%205.8537H6.03546Z'%20fill='white'/%3e%3cpath%20d='M6.03546%205.8537L-2.63057%200.999794V2.37236L3.58485%205.8537H6.03546Z'%20fill='%23D80027'/%3e%3cpath%20d='M15.6082%205.85386L19.5159%203.6651V5.85386H15.6082ZM10.8499%205.23661V0.999908H18.4133L10.8499%205.23661Z'%20fill='%230052B4'/%3e%3cpath%20d='M13.3005%205.85377L19.5159%202.37243V0.999863L10.8499%205.85377H13.3005Z'%20fill='%23D80027'/%3e%3c/g%3e%3ccircle%20cx='8.445'%20cy='8.445'%20r='7.695'%20stroke='white'%20stroke-width='0.5'/%3e%3c/svg%3e",KRt="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_3_931'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='1'%20y='1'%20width='15'%20height='15'%3e%3ccircle%20cx='8.44267'%20cy='8.44267'%20r='7.44268'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_3_931)'%3e%3cpath%20d='M-2.63057%200.999832H19.5159V15.8854H-2.63057V0.999832Z'%20fill='white'/%3e%3cpath%20d='M-2.63057%200.999832H4.75144V15.8854H-2.63057V0.999832Z'%20fill='%230052B4'/%3e%3cpath%20d='M12.1339%200.999908H19.5159V15.8854H12.1339V0.999908Z'%20fill='%23D80027'/%3e%3c/g%3e%3ccircle%20cx='8.445'%20cy='8.445'%20r='7.695'%20stroke='white'%20stroke-width='0.5'/%3e%3c/svg%3e",ZRt={[Kf.DE]:YRt,[Kf.EN]:WRt,[Kf.FR]:KRt},XRt={[Kf.DE]:"Deutsch",[Kf.EN]:"English",[Kf.FR]:"Français"},QRt=()=>{const r=Hh(o=>o.languageSelected),e=Hh(o=>o.setLanguageSelected),t=Q0(o=>o.isMobile),[,n]=Z9("language"),i=XL();return V.useEffect(()=>{(async()=>{await Au.changeLanguage(r),n(r)})()},[r]),!i&&!mTt()&&!yTt()?$.jsx("div",{className:"language-component",children:$.jsx(rP,{value:r,onChange:o=>{e(o.target.value)},variant:"standard",displayEmpty:!0,MenuProps:{anchorOrigin:t?{vertical:"top",horizontal:"center"}:{vertical:"bottom",horizontal:"center"},transformOrigin:t?{vertical:"bottom",horizontal:"center"}:{vertical:"top",horizontal:"center"},slotProps:{root:{sx:{".MuiList-root":{padding:0},".Mui-selected":{backgroundColor:ti.h2DigitalBlue+" !important",color:"white"},".Mui-selected:hover":{backgroundColor:ti.h2DigitalBlue+" !important",color:"white"},".MuiMenuItem-root":{display:"flex",justifyContent:"center",padding:0}}},paper:{style:{width:90,minWidth:"unset",border:"0.5px solid "+ti.blue600,paddingTop:0,paddingBottom:0}}}},onClose:()=>{setTimeout(()=>{var o;(o=document.activeElement)==null||o.blur()},0)},renderValue:o=>$.jsxs("div",{className:"select-value",children:[$.jsx(GRt,{className:"language-icon"}),XRt[o]]}),children:Object.keys(Kf).sort().map((o,a)=>$.jsx(PM,{className:"language-option",value:Kf[o],children:$.jsxs("div",{className:`language-option-content ${a!==0?"not-first-child":""}`,children:[$.jsx("img",{src:ZRt[Kf[o]],className:"language-flag-icon"}),o]})},o))})}):$.jsx($.Fragment,{})};var JO={},Mde;function JRt(){if(Mde)return JO;Mde=1;var r=Wa();Object.defineProperty(JO,"__esModule",{value:!0}),JO.default=void 0;var e=r(Ts()),t=ls();return JO.default=(0,e.default)((0,t.jsx)("path",{d:"M15 4v7H5.17l-.59.59-.58.58V4zm1-2H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1m5 4h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1"}),"QuestionAnswerOutlined"),JO}var ePt=JRt();const tPt=ao(ePt),rPt="https://teams.microsoft.com/";var rTe=(r=>(r[r.URGENT=1]="URGENT",r[r.IMPORTANT=2]="IMPORTANT",r[r.MEDIUM=5]="MEDIUM",r[r.LOW=8]="LOW",r))(rTe||{});const nTe=[{value:1,icon:Yut,text:"urgent"},{value:2,icon:$ut,text:"important"},{value:5,icon:Vut,text:"medium"},{value:8,icon:jut,text:"low"}],iTe=[{type:"category2",key:"alert",textColor:"#7D1827",backgroundColor:"#E9C7CD"},{type:"category3",key:"healthChecks",textColor:"#796419",backgroundColor:"#F6EDCE"},{type:"category4",key:"earlyWarning",textColor:"#386304",backgroundColor:"#DBEAC7"}];function CW(r){const{t:e}=Tc(),t=nTe.find(n=>n.value===r.value);return t?$.jsxs("div",{className:`priority-badge ${r.className??""}`,children:[$.jsx("div",{className:"icon-container",children:$.jsx("img",{src:t.icon})}),$.jsx("span",{children:e(`teams.priority.${t.text}`)})]}):null}const Nde=r=>{const e=iTe.find(n=>n.type===r.categoryId),{t}=Tc();return e?$.jsx("div",{className:"task-label-badge",style:{color:e.textColor,backgroundColor:e.backgroundColor},children:t(`teams.labels.${e.key}`)}):$.jsx($.Fragment,{})},oTe=()=>$.jsx(vCe,{size:20,color:"inherit"});
1097class nPt{constructor(){eo(this,"azureAdScope","ChatMessage.Send");eo(this,"azureAdScopeForClaims","Tasks.ReadWrite");eo(this,"azureScopesForTeamsList","Directory.Read.All");eo(this,"httpClient");eo(this,"httpClientClaims");eo(this,"httpClientTeamsList");this.httpClient=new ob(this.azureAdScope).client,this.httpClientClaims=new ob(this.azureAdScopeForClaims).client,this.httpClientTeamsList=new ob(this.azureScopesForTeamsList).client}useGetTeamsList(){return Ld({queryKey:["joinedTeams"],queryFn:({signal:e})=>this.httpClientTeamsList.get(`${Xy.GRAPH_MICROSOFT}/me/joinedTeams`,{signal:e}).then(t=>t.data)})}useGetChannelsOfTeam(e){return Ld({queryKey:["/teams/channels"],queryFn:async({signal:t})=>this.httpClientTeamsList.get(`${Xy.GRAPH_MICROSOFT}/teams/${e}/channels`,{signal:t}).then(n=>n.data),enabled:()=>!!e})}useGetTasksDetailsByPlanId(e){const t=`${Xy.GRAPH_MICROSOFT}/planner/plans/${e}/tasks`;return Ld({queryKey:["planner/plans/tasks",e],queryFn:({signal:n})=>this.httpClientClaims.get(t,{signal:n}).then(i=>i.data),enabled:()=>!!e})}useGetBucketsDetailsByPlanId(e){const t=`${Xy.GRAPH_MICROSOFT}/planner/plans/${e}/buckets`;return Ld({queryKey:["planner/plans/buckets",e],queryFn:({signal:n})=>this.httpClientClaims.get(t,{signal:n}).then(i=>i.data),enabled:()=>!!e})}useGetChannelPlannerTabs(e){const t=`${Xy.GRAPH_MICROSOFT}/teams/${e.teamsId}/channels/${e.channelId}/tabs?$expand=teamsApp&$filter=endswith(teamsApp/id, 'planner')`;return Ld({queryKey:["teams/channels/tabs/planners",e.teamsId,e.channelId],queryFn:({signal:n})=>this.httpClientClaims.get(t,{signal:n}).then(i=>i.data),enabled:()=>!!e.teamsId&&!!e.channelId})}sendNotificationInTeams(e,t){return this.httpClient.post(e,{body:{content:t}}).then(n=>n.data)}createDefaultBuckets(e,t){return this.httpClientClaims.post(`${Xy.GRAPH_MICROSOFT}/planner/buckets`,{id:t,name:t,orderHint:"ab !",planId:e})}createNewClaimsInTeams(e){return this.httpClientClaims.post(`${Xy.GRAPH_MICROSOFT}/planner/tasks`,e)}}const nE=new nPt,iPt=r=>{const{handleClose:e,open:t,hasNoPlannerError:n,planId:i,bucketList:o}=r,{t:a}=Tc(),l=Wy(),{showSnackbar:u}=UJ(),h=js(ue=>ue.userDetails),[p,m]=V.useState(""),[_,C]=V.useState(rTe.URGENT),[T,S]=V.useState(void 0),[R,O]=V.useState([]),N="To do",H=!p||o&&(o==null?void 0:o.length)>0&&!T||n,{mutateAsync:F,isPending:j,isError:L}=Ky({mutationFn:([ue,K])=>nE.createDefaultBuckets(ue,K)}),{mutateAsync:B,isPending:Q,isError:Z}=Ky({mutationFn:([ue])=>nE.createNewClaimsInTeams(ue)});V.useEffect(()=>{var ue,K;m((ue=h==null?void 0:h.locations[0])!=null&&ue.name?a("teams.createTask.defaultTaskText")+((K=h==null?void 0:h.locations[0])==null?void 0:K.name):"")},[a,h]),V.useEffect(()=>{o&&o.length>0&&S(o[0].id)},[o]);const ie=async()=>{let ue=T;if(!ue&&i){const K=await F([i,N]);l.invalidateQueries({queryKey:["planner/plans/buckets"]}),ue=K.data.id}if(!j&&!Q&&i&&ue&&p){const K={};for(const be of R)K[be]=!0;await B([{planId:i,title:p,priority:_,bucketId:ue,appliedCategories:K}]),u(a("teams.createTask.createTaskSuccess"),"success"),setTimeout(()=>l.invalidateQueries({queryKey:["planner/plans/tasks"]}),1e3),e()}},J=ue=>{const K=ue.target.value;O(typeof K=="string"?K.split(","):K)},ne=V.useCallback(()=>$.jsx("div",{className:"bucket-dropdown-icon",children:!o||!o.length?$.jsx(Am,{title:a("teams.createTask.noBucketsMessage"),children:$.jsx(Aut,{})}):$.jsx(yW,{})}),[o,o==null?void 0:o.length]);return $.jsxs(ok,{open:t,fullWidth:!0,className:"claims-dialog-container",onClose:e,id:"claims-dialog-container",children:[$.jsxs("div",{className:"notifications-popup-header",id:"notifications-popup-header",children:[a("teams.createTask.title"),$.jsx("img",{className:"close-button",src:WQ,onClick:e,id:"close-button"})]}),(L||Z)&&$.jsx(LD,{message:a("teams.actionError"),severity:"error",title:a("error")??"Error"}),!(L||Z)&&n&&$.jsx(LD,{message:a("teams.hasNoPlannerActionError"),severity:"error",title:a("error")??"Error"}),$.jsxs(YL,{children:[$.jsxs(_N,{sx:{m:1},className:"label-field-form",disabled:n,children:[$.jsx(wN,{className:"label-field-label",children:a("teams.createTask.label")}),$.jsx(rP,{label:a("teams.createTask.label"),multiple:!0,value:R,className:"label-select",onChange:J,renderValue:ue=>$.jsx("div",{className:"labels-box",children:ue.map(K=>$.jsx(Nde,{categoryId:K},K))}),children:iTe.map(ue=>$.jsxs(PM,{value:ue.type,children:[$.jsx(yCe,{checked:R.includes(ue.type)}),$.jsx(Nde,{categoryId:ue.type})]},ue.type))})]}),$.jsxs("div",{className:"second-row",children:[$.jsxs(_N,{disabled:n,sx:{m:1},className:"dropdown-box-priority",children:[$.jsx(wN,{children:a("teams.createTask.priority")}),$.jsx(rP,{value:_,variant:"outlined",label:a("teams.createTask.priority"),onChange:ue=>C(Number(ue.target.value)),className:"priority-select",renderValue:ue=>$.jsx(CW,{value:ue,className:"priority-select-value"}),children:nTe.map((ue,K)=>$.jsx(PM,{value:ue.value,children:$.jsx(CW,{value:ue.value})},K))})]}),$.jsxs(_N,{disabled:n||!(o!=null&&o.length),sx:{m:1},className:"dropdown-box-bucket-form",children:[$.jsx(wN,{children:a("teams.createTask.bucket")}),$.jsxs(rP,{variant:"outlined",value:T??N,label:a("teams.createTask.bucket"),onChange:ue=>S(ue.target.value),className:"bucket-select",displayEmpty:!0,IconComponent:ne,renderValue:ue=>{var K;return $.jsx("span",{className:"selected-bucket-name",children:o!=null&&o.length&&T?(K=o.find(se=>se.id===ue))==null?void 0:K.name:N})},children:[o&&o.length&&o.map(ue=>$.jsx(PM,{value:ue.id,children:ue.name},ue.id)),o&&!o.length&&$.jsx(PM,{value:N,children:N})]})]})]}),$.jsx(Wx,{disabled:n,className:"claim-content-textfield",value:p,autoFocus:!0,margin:"dense",type:"textArea",fullWidth:!0,variant:"standard",placeholder:a("teams.createTask.placeholder")??"",multiline:!0,onChange:ue=>m(ue.target.value),InputProps:{disableUnderline:!0}})]}),$.jsx(GL,{className:"dialog-action-container",children:$.jsx(Ib,{variant:"contained",onClick:ie,disabled:H,customClass:"create-button",children:j||Q?$.jsx(oTe,{}):a("teams.createTask.submit")})})]})},oPt=({open:r,setOpen:e,confirmAction:t})=>{const{t:n}=Tc(),i=js(o=>o.userDetails);return $.jsxs(ok,{open:r,onClose:()=>e(!1),className:"go-to-teams",id:"go-to-teams-dialog",children:[$.jsxs(YL,{className:"dialog-content",children:[$.jsxs("span",{className:"prompt",children:[n("teams.note")," "]}),$.jsx(dIt,{i18nKey:"teams.goToTeamsNote",values:{email:i==null?void 0:i.emailAddress},components:{strong:$.jsx("strong",{})}})]}),$.jsxs(GL,{className:"dialog-actions",children:[$.jsx(fT,{variant:"outlined",onClick:()=>e(!1),id:"close-button",children:$.jsx("span",{children:n("close")})}),$.jsx(fT,{onClick:t,variant:"contained",children:$.jsx("span",{children:n("teams.goToTeams")})})]})]})},aPt=r=>{const{t:e}=Tc(),{newTasks:t,handleClose:n,open:i,navigateToTeams:o}=r;return $.jsxs(D9,{open:i,className:"notification-popover",onClose:n,anchorReference:"none",id:"notification-popover",children:[$.jsxs("div",{className:"notifications-popup-header",id:"notification-popup-header",children:[e("teams.notifications.title"),$.jsx("img",{className:"close-button",src:WQ,onClick:n,id:"close-button"})]}),$.jsx(j_t,{component:gC,className:"table-container",children:$.jsxs(I_t,{stickyHeader:!0,children:[$.jsx(K_t,{children:$.jsxs(R3,{children:[$.jsx(yx,{width:"25%",children:$.jsx("div",{className:"th-content",children:e("teams.notifications.createdTime")})}),$.jsx(yx,{width:"50%",children:$.jsx("div",{className:"th-content",children:e("teams.notifications.taskName")})}),$.jsx(yx,{width:"25%",children:$.jsx("div",{className:"th-content",children:e("teams.notifications.priority")})})]})}),$.jsxs(M_t,{children:[t.length===0?$.jsx(R3,{children:$.jsx(yx,{colSpan:3,children:e("teams.notifications.noNotifications")})}):$.jsx($.Fragment,{}),t.map(a=>$.jsxs(R3,{children:[$.jsx(yx,{children:_Tt(a.createdDateTime)}),$.jsx(yx,{onClick:o,className:"task-name",children:a.title}),$.jsx(yx,{children:$.jsx(CW,{value:a.priority})})]},a.id))]})]})})]})},sPt=(r,e)=>`${Xy.GRAPH_MICROSOFT}/teams/${r}/channels/${e}/messages`,lPt=r=>{const{t:e}=Tc(),{handleClose:t,open:n,hasNoTeamsError:i,MSTeamsID:o,MSTeamsChannel:a}=r,l=js(R=>R.userDetails),[u,h]=V.useState(""),{showSnackbar:p}=UJ();V.useEffect(()=>{var R,O;h((R=l==null?void 0:l.locations[0])!=null&&R.name?((O=l==null?void 0:l.locations[0])==null?void 0:O.name)+e("teams.sendMessage.defaultMessageText"):"")},[e,l]);const m=()=>{!T&&u&&o&&a&&C({notificationLink:sPt(o,a),message:u})},_=()=>{p(e("teams.sendMessage.sendMessageSuccess"),"success"),t()},{mutate:C,isPending:T,isError:S}=Ky({mutationFn:R=>nE.sendNotificationInTeams(R.notificationLink,R.message),onSuccess:_});return $.jsxs(ok,{open:n,fullWidth:!0,className:"notify-dialog-container",onClose:t,id:"notify-dialog-container",children:[$.jsxs("div",{className:"notifications-popup-header",id:"notifications-popup-header",children:[e("teams.sendMessage.title"),$.jsx("img",{className:"close-button",src:WQ,onClick:t,id:"close-button"})]}),S?$.jsx(LD,{message:e("teams.actionError"),title:e("error")??"Error",severity:"error"}):i?$.jsx(LD,{message:e("teams.hasNoTeamsActionError"),title:e("error")??"Error",severity:"error"}):"",$.jsx(YL,{children:$.jsx(Wx,{disabled:i,className:"notify-content-textfield",onChange:R=>h(R.target.value),autoFocus:!0,margin:"dense",type:"textArea",fullWidth:!0,variant:"standard",placeholder:e("teams.sendMessage.placeholder")??"",multiline:!0,rows:4,value:u,InputProps:{disableUnderline:!0}})}),$.jsx(GL,{className:"notify-action-container",children:$.jsx(Ib,{variant:"contained",onClick:m,disabled:!u||i,customClass:"send-button",children:T?$.jsx(oTe,{}):e("teams.sendMessage.submit")})})]})},cPt=()=>{const{t:r}=Tc(),[e,t]=V.useState(!1),n=V.useRef(null),i=js(le=>le.userDetails),[o,a]=V.useState(void 0),[l,u]=V.useState(!0),[h,p]=V.useState(!0),[m,_]=V.useState(!0),[C,T]=V.useState(void 0),[S,R]=V.useState(void 0),[O,N]=V.useState([]),H=V.useRef(null),[F,j]=V.useState(!1),[L,B]=V.useState(!1),[Q,Z]=V.useState(!1),[ie,J]=V.useState(!1),ne=V.useMemo(()=>{const le=i==null?void 0:i.locations[0],re=le==null?void 0:le.MSTeamsID,te=le==null?void 0:le.MSTeamsChannel;return re&&te?{teamsId:re,channelId:te}
1097:{teamsId:null,channelId:null}},[i==null?void 0:i.locations]),{data:ue}=nE.useGetTeamsList(),{data:K,refetch:se}=nE.useGetChannelsOfTeam(C==null?void 0:C.id),{data:be,error:de,refetch:ge}=nE.useGetChannelPlannerTabs(ne),{data:Ue,error:Qe,refetch:ve}=nE.useGetTasksDetailsByPlanId(o),{data:pe,error:He}=nE.useGetBucketsDetailsByPlanId(o),Re=le=>{if(le.startsWith("https://planner.cloud.microsoft")){const re=le.indexOf("plan/")+5;return le.substring(re)}else if(le.startsWith("https://tasks.office.com")){const re=le.indexOf("PlanViews/")+10,te=le.indexOf("?");return le.substring(re,te)}};V.useEffect(()=>{C!=null&&C.id&&se()},[C]),V.useEffect(()=>{o&&ve(),ne&&ne.channelId&&ne.teamsId&&ge()},[o,ne]);const $e=()=>{H.current=setTimeout(()=>{o&&ve(),$e()},6e4)};V.useEffect(()=>($e(),()=>{H.current&&clearTimeout(H.current)}),[]),V.useEffect(()=>{Qe&&(u(!0),Bd.error("Error fetching the list of tasks in Teams planner",Qe))},[Qe]),V.useEffect(()=>{He&&(u(!0),Bd.error("Error fetching the list of buckets in Teams planner",He))},[He]),V.useEffect(()=>{var le;if(be){const re=((le=be==null?void 0:be.value)==null?void 0:le.length)&&be.value[0].configuration.websiteUrl;if(re){const te=Re(re);a(te),u(!1)}else u(!0),a(void 0),Bd.error("Not able to determine planId for Teams details fetching")}},[be]),V.useEffect(()=>{de&&(u(!0),a(void 0),Bd.error("Error fetching the planner tab in Teams",de))},[de]),V.useEffect(()=>{if(K){const le=ne.channelId,re=K.value.find(te=>te.id===le);re?(R(re),_(!1)):_(!0)}},[K,ne]),V.useEffect(()=>{var re;const le=ne.teamsId;if(le&&ue){const te=(re=ue.value)==null?void 0:re.find(me=>me.id===le);T(te),te?p(!1):(p(!0),Bd.warn("Notification link is invalid or the Teams of this location is inaccessible for the logged in user."))}},[i==null?void 0:i.locations,ue,ne]),V.useEffect(()=>{if(Ue){const le=Ue.value,re=new Date,te=new Date;te.setDate(re.getDate()-7);const me=le.filter(Ae=>new Date(Ae.createdDateTime||"")>=te&&yE.isEmpty(Ae.assignments)&&(!Ae.percentComplete||Ae.percentComplete<100));N(me)}},[Ue]);const tt=()=>{t(!1)},ot=()=>{t(le=>!le)},qe=V.useCallback(()=>{ne?window.open(`https://teams.microsoft.com/l/channel/${ne.channelId}/`,"_blank"):window.open(rPt,"_blank")},[ne]),lt=h||m,Et=h||m||l,Oe=h||m||l;return C&&!m?$.jsxs($.Fragment,{children:[$.jsx("div",{ref:n,className:"teams-operations-anchor",id:"teams-header-div",children:$.jsxs(Ib,{id:"teams-header-button",size:"small","aria-label":"teams operations",customClass:"show-button",onClick:ot,children:[$.jsx("img",{className:"teams-icon",src:Gut,id:"teams-icon-image"}),$.jsx("div",{className:"arrow-icon-container",id:"teams-arrow-icon",children:$.jsx("img",{className:"arrow-icon",src:e?Fut:OEe})})]})}),$.jsx(D9,{id:"teams-content-popover",open:e,anchorEl:n.current,disablePortal:!0,onClose:tt,style:{zIndex:"1000",transformOrigin:"left top",transform:"translate(0, 2rem)"},children:$.jsxs("div",{className:"teams-operations",children:[$.jsx(Am,{title:`${C==null?void 0:C.displayName} -> ${S==null?void 0:S.displayName}`,children:$.jsx("div",{id:"channel-name",className:"go-to-channel teams-dropdown-button",onClick:()=>{J(!0),tt()},children:$.jsx(tPt,{fontSize:"small"})})}),$.jsx("div",{className:"icon-delimiter"}),$.jsx(Am,{title:r(lt?"teams.hasNoTeamsError":"teams.sendMessage.tooltip"),children:$.jsx("div",{id:"send-teams-message",className:`teams-dropdown-button send-teams-notification ${lt?"disabled":""}`,onClick:()=>{lt||(B(!0),tt())}})}),$.jsx("div",{className:"icon-delimiter"}),$.jsx(Am,{title:r(l?"teams.hasNoPlannerError":Et?"teams.hasNoTeamsError":"teams.createTask.tooltip"),children:$.jsx("div",{id:"create-new-task",className:`teams-dropdown-button create-new-tasks ${Et?"disabled":""}`,onClick:()=>{Et||(Z(!0),tt())}})}),$.jsx("div",{className:"icon-delimiter"}),$.jsx(Am,{title:r(l?"teams.hasNoPlannerError":Oe?"teams.hasNoTeamsError":"teams.notifications.tooltip"),children:$.jsx("div",{id:"teams-notifications",className:`teams-dropdown-button tasks-notifications ${Oe?"disabled":""}`,onClick:()=>{Oe||(j(!0),tt())}})})]})}),$.jsx(lPt,{handleClose:()=>B(!1),open:L,hasNoTeamsError:h||m,MSTeamsChannel:S==null?void 0:S.id,MSTeamsID:C.id}),$.jsx(iPt,{handleClose:()=>Z(!1),open:Q,hasNoPlannerError:l,planId:o,bucketList:pe==null?void 0:pe.value}),$.jsx(aPt,{handleClose:()=>j(!1),open:F,navigateToTeams:qe,newTasks:O}),$.jsx(oPt,{open:ie,setOpen:J,confirmAction:qe})]}):$.jsx($.Fragment,{})},uPt=r=>{const{instance:e}=r,t=js(K=>K.setErrorStatus),n=js(K=>K.setError),i=js(K=>K.setUserDetails),o=js(K=>
1097K.userDetails),a=js(K=>K.setUserAccessConfig),l=Hh(K=>K.setShowMobileNavBar),u=Hh(K=>K.showMobileNavBar),h=Hh(K=>K.hostIframe),p=Hh(K=>K.sethostIframe),m=Hh(K=>K.privateReports),_=nSt(K=>K.setOpenFilterDrawer),C=Q0(K=>K.isMobile),T=Q0(K=>K.isTablet),S=dk(),R=ld(),[O]=UW(),{t:N}=Tc(),{accounts:H}=YD(),F=TK(),j=XL(),[,L]=Z9("mapSettings"),B=R.pathname.includes("edit-staging"),Q=()=>{const K=R.pathname.includes("list")?"list":"map";S(`${hTt()}/edit-staging/new-project?source=${K}`)};V.useEffect(()=>{F&&H.length>0?(YS.setAccount(H[0]),Z()):a(uue(null)),O.get("host")?p(!0):p(!1)},[F,H]);const Z=()=>{F&&tTe.getUserDetails().then(K=>{K&&(i(K),a(uue(K)))}).catch(K=>{t(K),n(!0)})},ie=async()=>{try{L({}),await e.loginRedirect({scopes:["User.Read"],prompt:"select_account"})}catch(K){Bd.error("Error occurred during MSAL login:",K)}},J=()=>!(R.pathname.includes("terms")||R.pathname.includes("data-privacy"));if(O.get("host")||h)return $.jsx($.Fragment,{});const ne=K=>{let se=K;switch(K){case"analytics":se="analytics";break;case"sizing-and-costing":return N("h2-dig.h2SizingTitle");case"edit-staging":return"";case"ai-assist":se=N("ai-assist.headerTitle");break;case"private-report":{const be=R.pathname.split("/")[(j?2:1)+1],de=m==null?void 0:m.find(ge=>PJ(ge.name)===be);return(de==null?void 0:de.displayName)||(de==null?void 0:de.name)||""}}return se==null?void 0:se.replace(/-/g," ").replace(/\b\w/g,be=>be.toUpperCase())},ue=()=>{const K=["/","/platform","/services","/our-network","/about-us","/for-energy-providers"],se=["map","list"],{pathname:be}=R;if(K.includes(be))return null;const ge=se.some(Ue=>be.includes(Ue))?N(eTt(o)):ne(be.split("/")[j?2:1]);return $.jsx("h1",{className:"h2-dig-tagline",children:ge})};return $.jsxs("div",{className:"H2-digital-header",style:{borderBottom:R.pathname==="/"?"none":"1px solid #e2e2e2"},onClick:()=>C&&_(!1),children:[$.jsxs(Nx.Link,{to:"home",smooth:!0,containerId:"scroll-container",duration:500,onSetActive:()=>{S("/")},className:"title-h2",onClick:()=>l(!1),children:[$.jsx(jRt,{}),ue()]}),!C&&!T&&["/","/platform","/services","/our-network","/about-us","/for-energy-providers"].includes(R.pathname)&&$.jsx("nav",{className:"nav-bar",children:$.jsxs("ul",{children:[$.jsx("li",{style:{display:"none"},children:$.jsx(Nx.Link,{activeClass:"active",to:"home",spy:!0,smooth:!0,containerId:"scroll-container",duration:500,onSetActive:()=>{S("/")}})}),$.jsx("li",{className:`home-scroll-link  ${["/for-energy-providers"].includes(R.pathname)?"has-left-homepage":""}`,children:$.jsx(Nx.Link,{activeClass:"active",to:"platform",spy:!0,smooth:!0,containerId:"scroll-container",duration:500,onClick:()=>{["/for-energy-providers"].includes(R.pathname)&&S("/platform")},onSetActive:()=>{S("/platform")},children:N("h2-dig.home.navLinks.platform")})}),$.jsx("li",{className:`home-scroll-link  ${["/for-energy-providers"].includes(R.pathname)?"has-left-homepage":""}`,children:$.jsx(Nx.Link,{activeClass:"active",to:"services",spy:!0,containerId:"scroll-container",smooth:!0,duration:500,onClick:()=>{R.pathname==="/for-energy-providers"&&S("/services")},onSetActive:()=>{S("/services")},children:N("h2-dig.home.navLinks.services")})}),$.jsx("li",{className:`home-scroll-link  ${["/for-energy-providers"].includes(R.pathname)?"has-left-homepage":""}`,children:$.jsx(Nx.Link,{activeClass:"active",to:"our-network",spy:!0,containerId:"scroll-container",smooth:!0,duration:500,onClick:()=>{R.pathname==="/for-energy-providers"&&S("/our-network")},onSetActive:()=>{S("/our-network")},children:N("h2-dig.home.navLinks.ourNetwork")})}),$.jsx("li",{className:`home-scroll-link  ${["/for-energy-providers"].includes(R.pathname)?"has-left-homepage":""}`,children:$.jsx(Nx.Link,{activeClass:"active",to:"aboutus",spy:!0,containerId:"scroll-container",smooth:!0,duration:500,onClick:()=>{R.pathname==="/for-energy-providers"&&S("/about-us")},onSetActive:()=>{S("/about-us")},children:N("h2-dig.home.navLinks.aboutUs")})}),$.jsx("li",{className:"other-page-link",children:$.jsx(Lhe,{className:"for-energy-providers",to:"/for-energy-providers",children:N("h2-dig.home.navLinks.forEnergyProviders")})})]})}),!C&&!T&&$.jsx($.Fragment,{children:$.jsx("div",{className:"part-header-container",children:$.jsxs("div",{className:"header-right",children:[(o==null?void 0:o.userType)===si.PROJECT&&$.jsx(Am,{title:N("Content-Management.CreateNewProjectAsProjectUser"),children:$.jsx("span",{className:"nav-icon",children:$.jsx(pv,{disabled:B,className:"admin-icon",onClick:Q,children:$.jsx("img",{id:"new-project-button",className:`new-project-button ${B?"disabled":""}`,src:qut})})})}),$.jsx(QRt,{}),(o==null?void 0:o.userType)&&$.jsx(cPt,{}),$.jsx("a",{href:"mailto:"+Zn.supportEMail,children:$.jsx(Am,{title:N("feedback"),children:$.jsx(pv,{className:"admin-icon",children:$.jsx(bIt,{})})})}),$.jsxs("span",{className:"icon-item",children:[!F&&J()&&$.jsx(Ib,{onClick:ie,customClass:"login-btn",id:"login-btn-id",children:$.jsx("span",{children:"Login"})}),!F&&!j&&$.jsx(Ade,{}),$.jsx("span",{className:"icon-item",children:F&&$.jsx(FV,{instance:e,children:$.jsx(kde,{})})})]})]})})}),(C||T)&&$.jsx($.Fragment,{children:$.jsxs("div",{className:"mobile-icons",children:[!F&&!j&&$.jsx("div",{className:"join-us",onClick:()=>l(!1),children:$.jsx(Ade,{})}),F&&$.jsx("span",{className:"icon-item",children:$.jsx(FV,{instance:e,children:$.jsx("div",{className:"profile",children:$.jsx(kde,{showName:!0,showIconOnly:!0})})})}),$.jsx(pv,{onClick:()=>{l(!u)},children:$.jsx(Nxe,{className:"toggle-mobile-menu",fontSize:"medium"})})]})})]})};var eM={},Dde;function dPt(){if(Dde)return eM;Dde=1;var r=Wa();Object.defineProperty(eM,"__esModule",{value:!0}),eM.default=void 0;var e=r(Ts()),t=ls();return eM.default=(0,e.default)((0,t.jsx)("path",{d:"M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z"}),"BarChart"),eM}var hPt=dPt();
1097const fPt=ao(hPt);var tM={},Lde;function pPt(){if(Lde)return tM;Lde=1;var r=Wa();Object.defineProperty(tM,"__esModule",{value:!0}),tM.default=void 0;var e=r(Ts()),t=ls();return tM.default=(0,e.default)((0,t.jsx)("path",{d:"M15 18.5c-2.51 0-4.68-1.42-5.76-3.5H15l1-2H8.58c-.05-.33-.08-.66-.08-1s.03-.67.08-1H15l1-2H9.24C10.32 6.92 12.5 5.5 15 5.5c1.61 0 3.09.59 4.23 1.57L21 5.3C19.41 3.87 17.3 3 15 3c-3.92 0-7.24 2.51-8.48 6H3l-1 2h4.06c-.04.33-.06.66-.06 1s.02.67.06 1H3l-1 2h4.52c1.24 3.49 4.56 6 8.48 6 2.31 0 4.41-.87 6-2.3l-1.78-1.77c-1.13.98-2.6 1.57-4.22 1.57"}),"Euro"),tM}var gPt=pPt();const mPt=ao(gPt);var rM={},Hde;function yPt(){if(Hde)return rM;Hde=1;var r=Wa();Object.defineProperty(rM,"__esModule",{value:!0}),rM.default=void 0;var e=r(Ts()),t=ls();return rM.default=(0,e.default)((0,t.jsx)("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2m-2-1h8v-2H5zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5m4.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94z"}),"TipsAndUpdates"),rM}var vPt=yPt();const _Pt=ao(vPt);var yR=(r=>(r.CHATBOT_MESSAGE="chatbot_message",r.CHATBOT_FAQ="chatbot-faq",r.NAVIGATE="navigate",r))(yR||{});const Fde={DE:"Germany",FR:"France",ES:"Spain",NL:"Netherlands"},bPt=r=>{let e=null;return r&&Fde[r.country]&&(e={name:r.city,country:Fde[r.country]}),e},wPt=r=>{if(r.length===0)return null;const e=Math.floor(Math.random()*r.length);return r[e]},EPt=(r,e=3)=>r.length===0?[]:[...r].sort(()=>.5-Math.random()).slice(0,Math.min(e,r.length)).map(n=>n.id),QMt=()=>{var a;if(!UA||UA.length===0)return null;let r=[],e=0;const t=gTt("dailyQuestion");if(t){const l=JSON.parse(t);((a=l==null?void 0:l.faqIds)==null?void 0:a.length)>0&&(e=l.faqIds[0],r=l.faqIds)}if((r==null?void 0:r.length)===0)return null;let n=wPt(r);n===null&&(n=e);const i=UA==null?void 0:UA.filter(l=>l.id==n)[0];if(!i||!i.action)return null;const o=i.action.icon;return{description:i.action.description,imageOrIcon:$.jsx(o,{fontSize:"small"}),data:{action:yR.CHATBOT_FAQ,message:i.action.description,faqId:i.id}}},JMt=(r,e)=>{const t=bPt(r),n=t?`Connect me with Hydrogen consumers in ${t.name}`:"Connect me with Hydrogen consumers in Munich",i=t?`Which are the top 5 H2 producers in ${t.country}`:"Which are the top 5 H2 producers in Germany";return[{description:i,imageOrIcon:$.jsx(fPt,{fontSize:"small"}),data:{action:yR.CHATBOT_MESSAGE,message:i}},{description:"Help me calculate Capex & Opex for my H2 Plant",imageOrIcon:$.jsx(mPt,{fontSize:"small"}),data:{action:yR.CHATBOT_MESSAGE,message:"Help me calculate Capex & Opex for my H2 Plant"}},{description:"I would like to publish my hydrogen project on H2 Digital",imageOrIcon:$.jsx(_Pt,{fontSize:"small"}),data:{action:yR.CHATBOT_MESSAGE,message:"I would like to publish my hydrogen project on H2 Digital"}},{description:n,imageOrIcon:$.jsx("img",{src:But,className:"icon",alt:"Consumers"}),data:{action:yR.CHATBOT_MESSAGE,message:n}},...e?[e]:[]]},CPt=V.createContext(null),z3={didCatch:!1,error:null};class xPt extends V.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=z3}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var t,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];(t=(n=this.props).onReset)===null||t===void 0||t.call(n,{args:o,reason:"imperative-api"}),this.setState(z3)}}componentDidCatch(e,t){var n,i;(n=(i=this.props).onError)===null||n===void 0||n.call(i,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:i}=this.props;if(n&&t.error!==null&&TPt(e.resetKeys,i)){var o,a;(o=(a=this.props).onReset)===null||o===void 0||o.call(a,{next:i,prev:e.resetKeys,reason:"keys"}),this.setState(z3)}}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:i}=this.props,{didCatch:o,error:a}=this.state;let l=e;if(o){const u={error:a,resetErrorBoundary:this.resetErrorBoundary};if(typeof t=="function")l=t(u);else if(n)l=V.createElement(n,u);else if(i!==void 0)l=i;else throw a}return V.createElement(CPt.Provider,{value:{didCatch:o,error:a,resetErrorBoundary:this.resetErrorBoundary}},l)}}function TPt(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return r.length!==e.length||r.some((t,n)=>!Object.is(t,e[n]))}const um=({children:r})=>{const[e,t]=V.useState(!0),{sourceSegment:n}=qAe(),i=TK(),{inProgress:o,instance:a,accounts:l}=YD(),u=Hh(_=>_.hostIframe),h=!RBe.includes(location.pathname),p=(_,C)=>{Bd.error("errorHandler: ",_,C)},m={scopes:["User.Read"],prompt:"select_account"};return V.useEffect(()=>{n||h||u?(o===mc.None&&!i&&setTimeout(()=>{if(l.length===0)try{u?a.loginPopup(m).catch(_=>{Bd.error("Failed to login with popup on MSAL instance",_)}):a.loginRedirect(m).catch(_=>{Bd.error("Failed to login with redirect on MSAL instance",_)})}catch(_){Bd.error("Failed to initiate login on MSAL instance",_)}},500),i&&(YS.setAccount(l[0]),t(!1))):t(!1)},[e,i,o,l,a,u,n,h]),$.jsx($.Fragment,{children:e?$.jsx(mW,{}):$.jsx(xPt,{fallback:$.jsx(Mxe,{}),onError:p,children:r})})},SPt={home:{title:"H2 Digital",description:"The platform to connect green hydrogen projects across Europe. We help you with market surveys and sizing of your renewable energy plants including CAPEX and OPEX.",thumbnail:"src/assets/img/map_thumbnail.png"},map:{title:"Map - H2 Digital",description:"We power hydrogen transformation, supporting the European Green Deal. Making secure energy supply with hydrogen possible.",thumbnail:"src/assets/img/map_thumbnail.png"}
1097,platform:{title:"Platform - H2 Digital",description:"Open, Value Creating and Secure. Easy onboarding of your H2 projects enabling digitalization of the growing green hydrogen market in Europe.",thumbnail:"src/assets/img/platform_thumbnail.png"},services:{title:"Services - H2 Digital",description:"Are you planning to switch to hydrogen and don't know how yet? We help you with the design of your planned H2 plants, including all relevant factors of energy supply.",thumbnail:"src/assets/img/services_thumbnail.png"},"our-network":{title:"Our Network - H2 Digital",description:"Discover our network of partners helping to advance hydrogen technology and build sustainable energy solutions across Europe.",thumbnail:"src/assets/img/map_thumbnail.png"},"about-us":{title:"About Us - H2 Digital",description:"From Essen. For our world. For the energy transition. Digitalization for hydrogen helps fighting climate change. Based on CibusCell cloud technologies, H2 Digital makes economic optimization of H2 plants with renewable energies (RE) a reality.",thumbnail:"src/assets/img/aboutus_thumbnail.png"},faq:{title:"FAQ - H2 Digital",description:"",thumbnail:""},impressum:{title:"Impressum - H2 Digital",description:"",thumbnail:""},"data-privacy":{title:"Data privacy - H2 Digital",description:"",thumbnail:""},terms:{title:"Terms of service - H2 Digital",description:"",thumbnail:""},"content-management":{title:"Content management - H2 Digital",description:"",thumbnail:""},"user-management":{title:"User management - H2 Digital",description:"",thumbnail:""},"edit-staging":{title:"Manage Project - H2 Digital",description:"",thumbnail:""},"sizing-and-costing":{title:"EnergyPlanner - H2 Digital",description:"",thumbnail:""},"for-energy-providers":{title:"For Energy Providers - H2 Digital",description:"",thumbnail:""},join:{title:"Register Your Project - H2 Digital",description:"",thumbnail:""},"ai-assist":{title:"EnergyCopilot - H2 Digital",description:"",thumbnail:""},chat:{title:"EnergyCopilot Chat - H2 Digital",description:"",thumbnail:""},hyportal:{title:"Jetzt registrieren - HyPortal",description:"",thumbnail:""}},PF=r=>{var l;const e=r,t=location.pathname.split("/")[1],n=location.pathname.split("/")[2],i=SPt,o=new Set(["hyportal/join"]);if(location.pathname==="/")return i.home[e];const a=`${t}/${n}`;return o.has(a)?((l=i[t])==null?void 0:l[e])||"":n?i[n]?i[n][e]:"":i[t]?i[t][e]:""},j3=V.lazy(()=>Ea(()=>import("./pipelineMap.page-Ducif4mz.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44]))),IPt=V.lazy(()=>Ea(()=>import("./editProjectForm.page-P9GLx7TC.js"),__vite__mapDeps([45,46,47,12,48,1,49,23,42,21,9,10,11,50,17,51,37,52,53,54,55,20,32,33,56,4,57,13,58,36,6,38,39,40,41,19,59]))),APt=V.lazy(()=>Ea(()=>import("./ContentManagement.component-C3bVejts.js"),__vite__mapDeps([60,61,10,51,37,52,1,53,54,48,46,47,49,23,42,21,9,11,50,17,55,20,32,33,56,4,12,57,62,25,26,63,24,39,40,64]))),RPt=V.lazy(()=>Ea(()=>import("./PrivateReport.component-DIF4HYM2.js"),__vite__mapDeps([65,34,66]))),Ude=V.lazy(()=>Ea(()=>import("./SizingAndCosting.page-Dzhn7ikx.js"),__vite__mapDeps([67,46,47,12,68,69,2,4,70]))),PPt=V.lazy(()=>Ea(()=>import("./SizingAndCostingList.page-BVuLbXTB.js"),__vite__mapDeps([71,49,10,46,47,69,72,73,74]))),V3=V.lazy(()=>Ea(()=>import("./SizingAndCostingReport.Page-DD_KAFcU.js"),__vite__mapDeps([75,2,69,5,6,7,35,34,31,72,73,76]))),kPt=V.lazy(()=>Ea(()=>import("./TermsAndConditions.page-BSBC2X8E.js"),__vite__mapDeps([77,78,79]))),OPt=V.lazy(()=>Ea(()=>import("./DataPrivacy.component-C1XthK8z.js"),__vite__mapDeps([80,78,81,82]))),MPt=V.lazy(()=>Ea(()=>import("./LegalImprint.component-D1ZP4ky1.js"),__vite__mapDeps([83,78,84]))),q3=V.lazy(()=>Ea(()=>import("./FaqSubpages.component-B53JSNE0.js"),__vite__mapDeps([85,86,82,87]))),NPt=V.lazy(()=>Ea(()=>import("./H2DigitalEmbeddMap-BsbiqW4V.js"),__vite__mapDeps([88,15,16,12,9,10,11,13,17,18,19,20,1,21,22]))),DPt=V.lazy(()=>Ea(()=>import("./ConfirmSubscribe.component-BJCSfjXw.js"),__vite__mapDeps([89,90,91]))),LPt=V.lazy(()=>Ea(()=>import("./EditFormPublic.component-519FYHwJ.js"),__vite__mapDeps([92,51,37,52,1,53,54,63,50,17,21,90,58,93])));V.lazy(()=>Ea(()=>import("./Maintenance.component-DV1_sQ1t.js"),__vite__mapDeps([94,95])));const HPt=V.lazy(()=>Ea(()=>import("./user-management.component-7JoAn1Xp.js"),__vite__mapDeps([96,50,17,21,16,58,12,29,56,23,61,97]))),FPt=V.lazy(()=>Ea(()=>import("./NavMenu.component-bOIwqr-m.js"),__vite__mapDeps([98,30,99]))),UPt=V.lazy(()=>Ea(()=>import("./Faq.component-CZXw4gEk.js"),__vite__mapDeps([100,78,82,87]))),BPt=V.lazy(()=>Ea(()=>import("./AIChatPage.component-tMSeNovN.js"),__vite__mapDeps([101,4,3,5,6,7,8,102,34,103,104,105,106,24,27,28,107,1,33,108])));V.lazy(()=>Ea(()=>import("./AICustomChat.component-D84V2I5j.js"),__vite__mapDeps([109,110,105,106,27,28,12,111])));const $Pt=V.lazy(()=>Ea(()=>import("./ForEnergyProviders.component-oT2VMzsI.js"),__vite__mapDeps([112,53,110,107,21,38,43,55,20,113,32,33,39,40,102,56,41,62,19,18,37,106,114]))),zPt=V.lazy(()=>Ea(()=>import("./H2DigitalHome.page-ael-ekkR.js"),__vite__mapDeps([115,103,104,46,47,14,113,12,116,82]))),jPt=V.lazy(()=>Ea(()=>import("./EmbeddedMap-3awPz830.js"),__vite__mapDeps([117,41,40]))),VPt=V.lazy(()=>Ea(()=>import("./DataPrivacyH2med.component-C_oY_MT2.js"),__vite__mapDeps([118,81,82]))),qPt=V.lazy(()=>Ea(()=>import("./TermsAndConditionsH2med.page-DA8nUIao.js"),__vite__mapDeps([119,79]))),G3=V.lazy(()=>Ea(()=>import("./Accordian.component-BUBYxw07.js"),__vite__mapDeps([120,69,1,24,4,107,5,6,7,35,34,68,72,73,113,121]))),GPt=V.lazy(()=>Ea(()=>import("./SmallScreenMenu.component-Yvdw68Wx.js"),__vite__mapDeps([122,32,33,123]))),YPt=V.lazy(()=>Ea(()=>import("./Footer.component-CFX9xay3.js"),__vite__mapDeps([124,125]))),WPt=r=>{const{msalInstance:e}=r,t=dk(),{search:n}=ld(),[i,o]=V.useState(""),[a,l]=Z9("dailyQuestion"),u=js(de=>de.error),h=js(de=>de.errorStatus),p=js(de=>de.userSourcePathSegment),m=js(de=>de.setUserSourcePathSegment),_=js(de=>de.userDetails),C=js(de=>de.userAccessConfig),T=Hh(de=>de.sethostIframe),S=Hh(de=>de.hostIframe),R=Hh(de=>de.setLanguageSelected),O=Hh(de=>de.setPrivateReports),N=Hh(de=>de.privateReports),H=Q0(de=>de.isMobile),F=Q0(de=>de.isTablet),{trackEvent:j,trackPageView:L}=Txe(),B=ld(),{inProgress:Q}=YD(),[Z]=UW(),ie=V.useRef(!1),J=kBe.includes(B.pathname),ne=PBe.includes(B.pathname),ue=C==null?void 0:C.isAIEnabled,K=Cve.includes(B.pathname),se=void 0,be=bS({typography:{fontFamily:["Inria Sans","sans-serif"].join(",")},components:{MuiSelect:{defaultProps:{IconComponent:yW}},MuiAutocomplete:{defaultProps:{popupIcon:$.jsx(yW,{})}}}});return V.useEffect(()=>{const de=new Date().toISOString().split("T")[0];if((a==null?void 0:a.date)!==de){const ge=EPt(UA);l({date:de,faqIds:ge})}ie.current||(j(MJ.H2_DIGITAL_HOME),ie.current=!0),B.pathname=="/"&&o("home"),Z.get("host")?T(!0):T(!1)},[]),V.useEffect(()=>{_&&O(_.reports)},[_]),V.useEffect(()=>{Q==="none"&&L(PF("title")||document.title)},[B.pathname,_==null?void 0:_.aadObjectId,Q]),V.useEffect(()=>{var de,ge;if(_&&_.userType!==si.H2DIGITAL){const Ue=(de=_==null?void 0:_.tags)!=null&&de.length?_==null?void 0:_.tags:(ge=_==null?void 0:_.locations)==null?void 0:ge.map(ve=>ve.tags).flat(),Qe=sTt(Ue);m(Qe),Qe&&(OBe.includes(Qe)?R(Kf.EN):(MBe.includes(Qe)||(_==null?void 0:_.userType)===si.SUPERVISOR)&&R(Kf.DE))}},[_]),V.useEffect(()=>{var de;if(C&&p!==void 0&&N){const ge=CTt(C,N);if(!ge)return;const Ue=p&&XL()===p;if(p&&!Ue){const Qe=`/${p}${ge}`;let ve;if(window.location.pathname.startsWith(ge)||window.location.pathname.startsWith(Qe)?ve=new URLSearchParams(n):ve=ne
1097w URLSearchParams,(_==null?void 0:_.userType)==si.PROJECT&&((de=_==null?void 0:_.locations)==null?void 0:de.length)==1&&["/map","/list"].includes(ge)){const pe=_==null?void 0:_.locations[0].id;ve.set("project",String(pe))}t(Qe+"?"+ve.toString(),{replace:!0})}else(!C.homePages||C!=null&&C.goToFirstTabOnLogin)&&K&&t(ge)}},[p,window.location.pathname,C,N]),$.jsx(Tlt,{theme:be,children:$.jsx("div",{className:"h2-digital wrapper-container",children:u?$.jsx(Mxe,{errorStatus:h}):Q==="none"?$.jsxs("div",{className:"h2-digital-main",children:[!ne&&$.jsx(uPt,{instance:e}),(H||F)&&$.jsx(GPt,{activeLink:i,setActiveLink:o,msalInstance:e}),$.jsxs("div",{className:"menu-router",children:[ETt(N,S)&&$.jsx(V.Suspense,{children:$.jsx(FPt,{})}),$.jsx("div",{className:`${ne?"route-container-header-hidden":"route-container-header-visible"}`,children:$.jsxs(aSt,{children:[$.jsx(V.Suspense,{fallback:$.jsx(mW,{}),children:$.jsxs(aRe,{children:[Eve.map(de=>$.jsx(ro,{path:de,element:$.jsx(um,{children:$.jsx(zPt,{})})},de)),$.jsx(ro,{path:":sourceSegment?/map",element:$.jsx(um,{children:$.jsx(j3,{view:"map",selectedProjectPopupType:aP.DRAWER,tileMap:!!Number(Zn.enableVectorTileMap)})})}),$.jsx(ro,{path:":sourceSegment?/list",element:$.jsx(um,{children:$.jsx(j3,{view:"list",selectedProjectPopupType:aP.DRAWER})})}),(C==null?void 0:C.analytics)&&$.jsx(ro,{path:":sourceSegment?/analytics",element:$.jsx(um,{children:$.jsx(j3,{view:"analytics",selectedProjectPopupType:aP.DRAWER})})}),$.jsx(ro,{path:":sourceSegment?/edit-staging/:id",element:$.jsx(um,{children:$.jsx(IPt,{})})}),$.jsx(ro,{path:":sourceSegment?/content-management",element:$.jsx(um,{children:$.jsx(APt,{})})}),$.jsx(ro,{path:":sourceSegment?/user-management",element:$.jsx(um,{children:$.jsx(HPt,{})})}),$.jsxs(ro,{path:":sourceSegment?/sizing-and-costing/:id",element:$.jsx(um,{children:$.jsx(Ude,{})}),children:[$.jsx(ro,{index:!0,element:$.jsx(PPt,{})}),$.jsx(ro,{path:"new",element:$.jsx(G3,{})}),$.jsx(ro,{path:"edit/:reportId",element:$.jsx(G3,{})}),$.jsx(ro,{path:"report",element:$.jsx(V3,{})}),$.jsx(ro,{path:"report/:reportId",element:$.jsx(V3,{})}),$.jsx(ro,{path:"*",element:$.jsx(Jk,{to:""})})]}),$.jsxs(ro,{path:":sourceSegment?/sizing-and-costing",element:$.jsx(um,{children:$.jsx(Ude,{})}),children:[$.jsx(ro,{index:!0,element:$.jsx(Jk,{to:"new"})}),$.jsx(ro,{path:"new",element:$.jsx(G3,{})}),$.jsx(ro,{path:"report",element:$.jsx(V3,{})}),$.jsx(ro,{path:"*",element:$.jsx(Jk,{to:"new"})})]}),$.jsx(ro,{path:":sourceSegment?/private-report/:reportName",element:$.jsx(um,{children:$.jsx(RPt,{})})}),ue&&$.jsx(ro,{path:":sourceSegment?/ai-assist",element:$.jsx(um,{children:$.jsx(Exe,{children:$.jsx(BPt,{})})})}),se,$.jsx(ro,{path:":sourceSegment?",element:$.jsx(um,{children:$.jsx(Jk,{to:"/"})})}),$.jsx(ro,{path:":sourceSegment?/*",element:$.jsx(Jk,{to:B.pathname.split("/").slice(0,2).join("/"),replace:!0})}),$.jsx(ro,{path:"h2med/terms",element:$.jsx(qPt,{})}),$.jsx(ro,{path:"h2med/data-privacy",element:$.jsx(VPt,{})}),$.jsx(ro,{path:"/impressum",element:$.jsx(MPt,{})}),$.jsx(ro,{path:"/data-privacy",element:$.jsx(OPt,{})}),$.jsx(ro,{path:"/terms",element:$.jsx(kPt,{})}),$.jsx(ro,{path:"/for-energy-providers",element:$.jsx($Pt,{})}),$.jsx(ro,{path:"/faq",element:$.jsx(UPt,{})}),$.jsx(ro,{path:"/faq/sizing",element:$.jsx(q3,{})}),$.jsx(ro,{path:"/faq/h2-supply-plan",element:$.jsx(q3,{})}),$.jsx(ro,{path:"/faq/market-survey",element:$.jsx(q3,{})}),$.jsx(ro,{path:"/embed-map",element:$.jsx(NPt,{})}),["",...NBe].map(de=>$.jsx(ro,{path:de?`/${de}/join`:"/join",element:$.jsx(LPt,{})},de||"root-join")),$.jsx(ro,{path:"/confirm-subscribe",element:$.jsx(DPt,{})}),$.jsx(ro,{path:"/test-embeddings",element:$.jsx(jPt,{})})]})}),J&&$.jsx(YPt,{})]})})]})]}):$.jsx(mW,{})})})},KPt=new e8e;let Hf;window.location.pathname!=="/embed-map"&&(Hf=new uBe({config:{connectionString:Zn.appInsightsConnectionString,extensions:[KPt],maxBatchInterval:12e4,disableExceptionTracking:!0}}),Hf.loadAppInsights());const ZPt=r=>{var i,o;const{msalInstance:e}=r,{accounts:t}=YD(),n=(o=(i=t[0])==null?void 0:i.username)==null?void 0:o.replace(/[,;=| ]+/g,"_");return n&&(Hf==null||Hf.setAuthenticatedUserContext(n)),iSt(),$.jsx(Exe,{children:$.jsx(WPt,{msalInstance:e})})},XPt=({msalInstance:r})=>{const e=M$({query:"(max-width: 768px)"}),t=M$({query:"(max-width: 1024px)"}),n=M$({query:"(max-width:1320px)"}),i=Q0(h=>h.updateMobile),o=Q0(h=>h.updateTablet),a=Q0(h=>h.updateSmallLaptop),l=Q0(h=>h.updateDeviceWidth),u=ld();return V.useEffect(()=>{i(e)},[e]),V.useEffect(()=>{o(t)},[t]),V.useEffect(()=>{a(n)},[n]),V.useEffect(()=>{const h=document.getElementById("root");
1097if(!h)return;l(h.getBoundingClientRect().width);const p=new ResizeObserver(m=>{for(const _ of m)_.contentRect&&l(_.contentRect.width)});return p.observe(h),()=>{p.disconnect()}},[]),$.jsxs($.Fragment,{children:[(u==null?void 0:u.pathname)&&$.jsxs(sAe,{children:[$.jsx("title",{children:PF("title")}),$.jsx("meta",{name:"description",content:PF("description")}),$.jsx("meta",{name:"thumbnail",content:PF("thumbnail")})]}),$.jsx(FV,{instance:r,children:$.jsx(oAt,{children:$.jsx(ZPt,{msalInstance:r})})})]})},aTe="h2digital_testing_protection_password",QPt=()=>{if(typeof window>"u")return null;try{return window.localStorage.getItem(aTe)}catch{return null}},JPt=r=>{if(!(typeof window>"u"))try{window.localStorage.setItem(aTe,r)}catch{}},ekt=(r,e)=>!r||e===r,tkt=({children:r})=>{const{t:e}=Tc(),t=Zn.testingProtectionPassword,[n,i]=V.useState(()=>ekt(t,QPt())),[o,a]=V.useState(""),[l,u]=V.useState(!1);if(n)return $.jsx($.Fragment,{children:r});const h=p=>{if(p.preventDefault(),o===t){JPt(o),i(!0);return}u(!0)};return $.jsx("div",{className:"testing-protection-backdrop",children:$.jsxs("form",{className:"testing-protection-form",onSubmit:h,"aria-labelledby":"testing-protection-title",children:[$.jsx("h1",{id:"testing-protection-title",children:e("testingProtection.title")}),$.jsx("p",{children:e("testingProtection.description")}),$.jsx("label",{htmlFor:"testing-protection-password",children:e("testingProtection.passwordLabel")}),$.jsx("input",{id:"testing-protection-password",type:"password",autoComplete:"off",autoFocus:!0,value:o,onChange:p=>{a(p.target.value),u(!1)},"aria-invalid":l,"aria-describedby":l?"testing-protection-error":void 0}),l&&$.jsx("p",{id:"testing-protection-error",role:"alert",className:"testing-protection-error",children:e("testingProtection.error")}),$.jsx("button",{type:"submit",disabled:!o,children:e("testingProtection.submit")})]})})},rkt=NIe.createRoot(document.getElementById("root")),nkt=new mIe({defaultOptions:{queries:{staleTime:5e3}}});rkt.render($.jsx(as.StrictMode,{children:$.jsx(tkt,{children:$.jsx(kRe,{children:$.jsx(ghe,{children:$.jsx(yIe,{client:nkt,children:$.jsx(XPt,{msalInstance:YS.msalInstance})})})})})}));export{FOt as $,dd as A,Bo as B,Wgt as C,wOt as D,uTt as E,js as F,dk as G,es as H,pv as I,UJ as J,UW as K,YD as L,TK as M,si as N,xOt as O,kTt as P,w2t as Q,Ple as R,PRt as S,j_t as T,Va as U,hTt as V,PEe as W,Ib as X,jkt as Y,Jxt as Z,mW as _,Ts as a,Mxe as a$,Ky as a0,AOt as a1,MD as a2,_N as a3,wN as a4,BMt as a5,rP as a6,PM as a7,OJ as a8,OOt as a9,gxe as aA,_Mt as aB,bL as aC,mxe as aD,oMt as aE,xQ as aF,lMt as aG,Zn as aH,yve as aI,TMt as aJ,Al as aK,EMt as aL,xMt as aM,VTt as aN,aP as aO,wMt as aP,MMt as aQ,cMt as aR,kMt as aS,Bd as aT,u_e as aU,bMt as aV,iMt as aW,fT as aX,Cgt as aY,WOt as aZ,Ab as a_,MOt as aa,Wot as ab,yE as ac,fCe as ad,vCe as ae,Hh as af,sAe as ag,pW as ah,mMt as ai,GTt as aj,yW as ak,OTt as al,$Mt as am,Vkt as an,IMt as ao,Gkt as ap,AMt as aq,ZTt as ar,POt as as,XL as at,w_e as au,FTt as av,DMt as aw,kJ as ax,NMt as ay,Z9 as az,ls as b,Pvt as b$,ld as b0,Txe as b1,MJ as b2,SF as b3,hMt as b4,fMt as b5,DOt as b6,JTt as b7,qkt as b8,fPt as b9,aW as bA,AB as bB,IOt as bC,Wy as bD,KT as bE,b2t as bF,EOt as bG,QA as bH,ydt as bI,qMt as bJ,vOt as bK,IZ as bL,BSt as bM,GMt as bN,$St as bO,g2t as bP,hOt as bQ,mr as bR,W3 as bS,Gt as bT,ce as bU,pC as bV,ES as bW,Udt as bX,Fdt as bY,r_t as bZ,lJ as b_,ok as ba,YL as bb,GL as bc,URt as bd,Jk as be,ISt as bf,ivt as bg,ob as bh,Xy as bi,Ld as bj,ddt as bk,cdt as bl,udt as bm,Vd as bn,S2t as bo,Pw as bp,Bxt as bq,hJ as br,bve as bs,tTe as bt,ZOt as bu,gC as bv,qAe as bw,mdt as bx,ROt as by,bm as bz,zo as c,C2t as c$,Hvt as c0,Fpt as c1,cJ as c2,Npt as c3,RM as c4,Dvt as c5,PB as c6,yCe as c7,_Ce as c8,gce as c9,Au as cA,E2t as cB,zkt as cC,jOt as cD,GOt as cE,cue as cF,tTt as cG,UOt as cH,zOt as cI,$Ot as cJ,BOt as cK,CB as cL,bOt as cM,Lmt as cN,mOt as cO,qOt as cP,xF as cQ,VOt as cR,ZIt as cS,hue as cT,fr as cU,LOt as cV,Uo as cW,p_ as cX,KQ as cY,ldt as cZ,VMt as c_,Dht as ca,ak as cb,Lb as cc,JEe as cd,Rv as ce,ik as cf,wF as cg,br as ch,as as ci,Jvt as cj,ti as ck,v2t as cl,ECe as cm,_2t as cn,CBe as co,bxe as cp,UMt as cq,D0t as cr,k0t as cs,RJ as ct,SOt as cu,Qxt as cv,u2t as cw,Ast as cx,OEe as cy,fL as cz,I_t as d,DD as d$,kOt as d0,CF as d1,_Ot as d2,$xt as d3,Qu as d4,hW as d5,CCe as d6,x2t as d
10977,oTe as d8,PJ as d9,z7 as dA,eMt as dB,yMt as dC,sMt as dD,zTt as dE,BTt as dF,uMt as dG,rs as dH,gMt as dI,Kkt as dJ,Ti as dK,zf as dL,gOt as dM,nd as dN,nMt as dO,Xp as dP,OMt as dQ,dMt as dR,HTt as dS,xm as dT,SMt as dU,PMt as dV,KTt as dW,YS as dX,aMt as dY,Cxe as dZ,Tve as d_,zRt as da,skt as db,yOt as dc,kRt as dd,ckt as de,lkt as df,dB as dg,Ea as dh,jRt as di,dIt as dj,Lut as dk,bIt as dl,Kf as dm,pve as dn,But as dp,y_e as dq,HMt as dr,RMt as ds,DTt as dt,LMt as du,TOt as dv,l_e as dw,CMt as dx,vMt as dy,FMt as dz,K_t as e,DEe as e$,fW as e0,Ykt as e1,Dhe as e2,tT as e3,RZ as e4,nAt as e5,KOt as e6,pOt as e7,Ch as e8,YMt as e9,Xot as eA,Jot as eB,est as eC,a1t as eD,fOt as eE,tMt as eF,rMt as eG,IBe as eH,Wx as eI,vve as eJ,zMt as eK,QOt as eL,AZ as eM,U6 as eN,JQ as eO,IRt as eP,mPt as eQ,QQ as eR,QMt as eS,JMt as eT,fBe as eU,yR as eV,gJ as eW,UA as eX,LEe as eY,PTt as eZ,MEe as e_,ZMt as ea,COt as eb,XMt as ec,QRt as ed,I2t as ee,H6 as ef,WMt as eg,KMt as eh,Zh as ei,A_ as ej,vS as ek,Kot as el,h9 as em,qY as en,rst as eo,Xwe as ep,fB as eq,hB as er,lat as es,oat as et,Wat as eu,dat as ev,gat as ew,Vse as ex,pat as ey,eat as ez,R3 as f,Jm as f$,pMt as f0,HEe as f1,EB as f2,eA as f3,RD as f4,rA as f5,Kct as f6,tA as f7,gO as f8,QI as f9,Nle as fA,wS as fB,aut as fC,Br as fD,Pn as fE,ngt as fF,$2t as fG,Cb as fH,bo as fI,Upt as fJ,Ru as fK,GEe as fL,nl as fM,Ndt as fN,y9 as fO,OQ as fP,wo as fQ,gv as fR,REe as fS,Wpt as fT,cp as fU,yC as fV,u0t as fW,dJ as fX,o0t as fY,hg as fZ,XQ as f_,JI as fa,wb as fb,ZEe as fc,qh as fd,wEe as fe,Ydt as ff,kdt as fg,nr as fh,YEe as fi,Ur as fj,BL as fk,Mr as fl,T9 as fm,$L as fn,pN as fo,rct as fp,xEe as fq,bS as fr,M2t as fs,O2t as ft,L2t as fu,N2t as fv,D2t as fw,Qn as fx,UL as fy,Dk as fz,ao as g,Z2t as g$,nEe as g0,Pv as g1,qS as g2,tCe as g3,TB as g4,dT as g5,Zr as g6,Il as g7,YE as g8,L9 as g9,$le as gA,B2t as gB,z2t as gC,ugt as gD,Rht as gE,z6 as gF,j2t as gG,C3 as gH,Qo as gI,V2t as gJ,gB as gK,m2t as gL,Eb as gM,kQ as gN,KE as gO,pst as gP,G2t as gQ,T3 as gR,Y2t as gS,W2t as gT,Amt as gU,dce as gV,fut as gW,hut as gX,k2t as gY,mx as gZ,K2t as g_,Kht as ga,aft as gb,hCe as gc,fgt as gd,pCe as ge,qL as gf,uJ as gg,cyt as gh,_yt as gi,yyt as gj,RB as gk,SCe as gl,gvt as gm,TCe as gn,bCe as go,Jgt as gp,D9 as gq,ACe as gr,jvt as gs,dCe as gt,g_t as gu,u_t as gv,Jmt as gw,Ult as gx,XY as gy,JY as gz,yx as h,F2t as h$,hce as h0,bN as h1,rft as h2,Mht as h3,Zpt as h4,agt as h5,Aht as h6,hgt as h7,_gt as h8,Ogt as h9,cvt as hA,ovt as hB,QY as hC,e0t as hD,Vvt as hE,umt as hF,Sce as hG,Tce as hH,Gpt as hI,hht as hJ,Fvt as hK,ypt as hL,O0t as hM,S0t as hN,L0t as hO,Z0t as hP,i_t as hQ,d_t as hR,vut as hS,A_t as hT,N_t as hU,U_t as hV,V_t as hW,Z_t as hX,C_t as hY,e1t as hZ,m_t as h_,Rpt as ha,Ugt as hb,P2t as hc,Emt as hd,Omt as he,Smt as hf,Imt as hg,gmt as hh,Bmt as hi,Ypt as hj,eyt as hk,Kmt as hl,oyt as hm,uyt as hn,pyt as ho,byt as hp,Nht as hq,Uyt as hr,$pt as hs,Vyt as ht,qpt as hu,Wyt as hv,uvt as hw,Svt as hx,mvt as hy,kvt as hz,M_t as i,XOt as i$,Zht as i0,OD as i1,Ddt as i2,Hdt as i3,bO as i4,X2t as i5,Q2t as i6,J2t as i7,FA as i8,HA as i9,cOt as iA,uOt as iB,jce as iC,dOt as iD,vm as iE,U2t as iF,Eut as iG,QEe as iH,Uw as iI,yst as iJ,T0t as iK,qs as iL,b_ as iM,LSt as iN,jIt as iO,Lst as iP,jMt as iQ,mCe as iR,QP as iS,XP as iT,jht as iU,yB as iV,HOt as iW,Nx as iX,YOt as iY,ABe as iZ,Lhe as i_,Cce as ia,eOt as ib,rOt as ic,CO as id,q2t as ie,pJ as ig,Aw as ih,H2t as ii,tOt as ij,qct as ik,Rce as il,nOt as im,S9 as io,gst as ip,R2t as iq,xO as ir,mB as is,iOt as it,aOt as iu,oOt as iv,y2t as iw,lOt as ix,D_t as iy,sOt as iz,$ as j,JOt as j0,pB as j1,tW as j2,Wkt as j3,mTt as j4,A2t as k,dTt as l,vTt as m,fTt as n,V as o,nSt as p,Q0 as q,Wa as r,T2t as s,Am as t,Tc as u,Wut as v,Nt as w,vE as x,NOt as y,Oi as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.