This commit is contained in:
birkskyum committed 2025-09-14 09:49:28 +00:00
1 parent bc8f9fd685
commit 59cf0fc47c
3 files changed
+111 -111

No files matched your search

@@ -6,7 +6,7 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var KI;function NY(){if(KI)return FC;KI=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(i,r,o){var s=null;if(o!==void 0&&(s=""+o),r.key!==void 0&&(s=""+r.key),"key"in r){o={};for(var a in r)a!=="key"&&(o[a]=r[a])}else o=r;return r=o.ref,{$$typeof:n,type:i,key:s,ref:r!==void 0?r:null,props:o}}return FC.Fragment=e,FC.jsx=t,FC.jsxs=t,FC}var UI;function GY(){return UI||(UI=1,H4.exports=NY()),H4.exports}var Ae=GY(),V4={exports:{}},la={};/**
*/var UI;function NY(){if(UI)return FC;UI=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(i,r,o){var s=null;if(o!==void 0&&(s=""+o),r.key!==void 0&&(s=""+r.key),"key"in r){o={};for(var a in r)a!=="key"&&(o[a]=r[a])}else o=r;return r=o.ref,{$$typeof:n,type:i,key:s,ref:r!==void 0?r:null,props:o}}return FC.Fragment=e,FC.jsx=t,FC.jsxs=t,FC}var KI;function GY(){return KI||(KI=1,H4.exports=NY()),H4.exports}var Ae=GY(),V4={exports:{}},la={};/**
* @license React
* react.production.js
*
@@ -14,7 +14,7 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var LI;function WY(){if(LI)return la;LI=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),E=Symbol.iterator;function O(ue){return ue===null||typeof ue!="object"?null:(ue=E&&ue[E]||ue["@@iterator"],typeof ue=="function"?ue:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,N={};function Q(ue,We,tt){this.props=ue,this.context=We,this.refs=N,this.updater=tt||B}Q.prototype.isReactComponent={},Q.prototype.setState=function(ue,We){if(typeof ue!="object"&&typeof ue!="function"&&ue!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,ue,We,"setState")},Q.prototype.forceUpdate=function(ue){this.updater.enqueueForceUpdate(this,ue,"forceUpdate")};function $(){}$.prototype=Q.prototype;function X(ue,We,tt){this.props=ue,this.context=We,this.refs=N,this.updater=tt||B}var re=X.prototype=new $;re.constructor=X,z(re,Q.prototype),re.isPureReactComponent=!0;var ne=Array.isArray,V={H:null,A:null,T:null,S:null,V:null},J=Object.prototype.hasOwnProperty;function W(ue,We,tt,ke,Et,gt){return tt=gt.ref,{$$typeof:n,type:ue,key:We,ref:tt!==void 0?tt:null,props:gt}}function he(ue,We){return W(ue.type,We,void 0,void 0,void 0,ue.props)}function ge(ue){return typeof ue=="object"&&ue!==null&&ue.$$typeof===n}function ve(ue){var We={"=":"=0",":":"=2"};return"$"+ue.replace(/[=:]/g,function(tt){return We[tt]})}var _e=/\/+/g;function Me(ue,We){return typeof ue=="object"&&ue!==null&&ue.key!=null?ve(""+ue.key):We.toString(36)}function be(){}function ze(ue){switch(ue.status){case"fulfilled":return ue.value;case"rejected":throw ue.reason;default:switch(typeof ue.status=="string"?ue.then(be,be):(ue.status="pending",ue.then(function(We){ue.status==="pending"&&(ue.status="fulfilled",ue.value=We)},function(We){ue.status==="pending"&&(ue.status="rejected",ue.reason=We)})),ue.status){case"fulfilled":return ue.value;case"rejected":throw ue.reason}}throw ue}function Ce(ue,We,tt,ke,Et){var gt=typeof ue;(gt==="undefined"||gt==="boolean")&&(ue=null);var xt=!1;if(ue===null)xt=!0;else switch(gt){case"bigint":case"string":case"number":xt=!0;break;case"object":switch(ue.$$typeof){case n:case e:xt=!0;break;case _:return xt=ue._init,Ce(xt(ue._payload),We,tt,ke,Et)}}if(xt)return Et=Et(ue),xt=ke===""?"."+Me(ue,0):ke,ne(Et)?(tt="",xt!=null&&(tt=xt.replace(_e,"$&/")+"/"),Ce(Et,We,tt,"",function(Ue){return Ue})):Et!=null&&(ge(Et)&&(Et=he(Et,tt+(Et.key==null||ue&&ue.key===Et.key?"":(""+Et.key).replace(_e,"$&/")+"/")+xt)),We.push(Et)),1;xt=0;var Ut=ke===""?".":ke+":";if(ne(ue))for(var je=0;je<ue.length;je++)ke=ue[je],gt=Ut+Me(ke,je),xt+=Ce(ke,We,tt,gt,Et);else if(je=O(ue),typeof je=="function")for(ue=je.call(ue),je=0;!(ke=ue.next()).done;)ke=ke.value,gt=Ut+Me(ke,je++),xt+=Ce(ke,We,tt,gt,Et);else if(gt==="object"){if(typeof ue.then=="function")return Ce(ze(ue),We,tt,ke,Et);throw We=String(ue),Error("Objects are not valid as a React child (found: "+(We==="[object Object]"?"object with keys {"+Object.keys(ue).join(", ")+"}":We)+"). If you meant to render a collection of children, use an array instead.")}return xt}function Fe(ue,We,tt){if(ue==null)return ue;var ke=[],Et=0;return Ce(ue,ke,"","",function(gt){return We.call(tt,gt,Et++)}),ke}function ot(ue){if(ue._status===-1){var We=ue._result;We=We(),We.then(function(tt){(ue._status===0||ue._status===-1)&&(ue._status=1,ue._result=tt)},function(tt){(ue._status===0||ue._status===-1)&&(ue._status=2,ue._result=tt)}),ue._status===-1&&(ue._status=0,ue._result=We)}if(ue._status===1)return ue._result.default;throw ue._result}var mt=typeof reportError=="function"?reportError:function(ue){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var We=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof ue=="object"&&ue!==null&&typeof ue.message=="string"?String(ue.message):String(ue),error:ue});if(!window.dispatchEvent(We))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",ue);return}console.error(ue)};function it(){}return la.Children={map:Fe,forEach:function(ue,We,tt){Fe(ue,function(){We.apply(this,arguments)},tt)},count:function(ue){var We=0;return Fe(ue,function(){We++}),We},toArray:function(ue){return Fe(ue,function(We){return We})||[]},only:function(ue){if(!ge(ue))throw Error("React.Children.only expected to receive a single React element child.");return ue}},la.Component=Q,la.Fragment=t,la.Profiler=r,la.PureComponent=X,la.StrictMode=i,la.Suspense=p,la.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,la.__COMPILER_RUNTIME={__Line truncated
*/var LI;function WY(){if(LI)return la;LI=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),E=Symbol.iterator;function O(ue){return ue===null||typeof ue!="object"?null:(ue=E&&ue[E]||ue["@@iterator"],typeof ue=="function"?ue:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,N={};function Q(ue,We,tt){this.props=ue,this.context=We,this.refs=N,this.updater=tt||B}Q.prototype.isReactComponent={},Q.prototype.setState=function(ue,We){if(typeof ue!="object"&&typeof ue!="function"&&ue!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,ue,We,"setState")},Q.prototype.forceUpdate=function(ue){this.updater.enqueueForceUpdate(this,ue,"forceUpdate")};function $(){}$.prototype=Q.prototype;function X(ue,We,tt){this.props=ue,this.context=We,this.refs=N,this.updater=tt||B}var re=X.prototype=new $;re.constructor=X,z(re,Q.prototype),re.isPureReactComponent=!0;var ne=Array.isArray,V={H:null,A:null,T:null,S:null,V:null},J=Object.prototype.hasOwnProperty;function W(ue,We,tt,ke,Et,gt){return tt=gt.ref,{$$typeof:n,type:ue,key:We,ref:tt!==void 0?tt:null,props:gt}}function he(ue,We){return W(ue.type,We,void 0,void 0,void 0,ue.props)}function ge(ue){return typeof ue=="object"&&ue!==null&&ue.$$typeof===n}function ve(ue){var We={"=":"=0",":":"=2"};return"$"+ue.replace(/[=:]/g,function(tt){return We[tt]})}var _e=/\/+/g;function Me(ue,We){return typeof ue=="object"&&ue!==null&&ue.key!=null?ve(""+ue.key):We.toString(36)}function be(){}function ze(ue){switch(ue.status){case"fulfilled":return ue.value;case"rejected":throw ue.reason;default:switch(typeof ue.status=="string"?ue.then(be,be):(ue.status="pending",ue.then(function(We){ue.status==="pending"&&(ue.status="fulfilled",ue.value=We)},function(We){ue.status==="pending"&&(ue.status="rejected",ue.reason=We)})),ue.status){case"fulfilled":return ue.value;case"rejected":throw ue.reason}}throw ue}function Ce(ue,We,tt,ke,Et){var gt=typeof ue;(gt==="undefined"||gt==="boolean")&&(ue=null);var xt=!1;if(ue===null)xt=!0;else switch(gt){case"bigint":case"string":case"number":xt=!0;break;case"object":switch(ue.$$typeof){case n:case e:xt=!0;break;case _:return xt=ue._init,Ce(xt(ue._payload),We,tt,ke,Et)}}if(xt)return Et=Et(ue),xt=ke===""?"."+Me(ue,0):ke,ne(Et)?(tt="",xt!=null&&(tt=xt.replace(_e,"$&/")+"/"),Ce(Et,We,tt,"",function(Ke){return Ke})):Et!=null&&(ge(Et)&&(Et=he(Et,tt+(Et.key==null||ue&&ue.key===Et.key?"":(""+Et.key).replace(_e,"$&/")+"/")+xt)),We.push(Et)),1;xt=0;var Kt=ke===""?".":ke+":";if(ne(ue))for(var je=0;je<ue.length;je++)ke=ue[je],gt=Kt+Me(ke,je),xt+=Ce(ke,We,tt,gt,Et);else if(je=O(ue),typeof je=="function")for(ue=je.call(ue),je=0;!(ke=ue.next()).done;)ke=ke.value,gt=Kt+Me(ke,je++),xt+=Ce(ke,We,tt,gt,Et);else if(gt==="object"){if(typeof ue.then=="function")return Ce(ze(ue),We,tt,ke,Et);throw We=String(ue),Error("Objects are not valid as a React child (found: "+(We==="[object Object]"?"object with keys {"+Object.keys(ue).join(", ")+"}":We)+"). If you meant to render a collection of children, use an array instead.")}return xt}function Fe(ue,We,tt){if(ue==null)return ue;var ke=[],Et=0;return Ce(ue,ke,"","",function(gt){return We.call(tt,gt,Et++)}),ke}function ot(ue){if(ue._status===-1){var We=ue._result;We=We(),We.then(function(tt){(ue._status===0||ue._status===-1)&&(ue._status=1,ue._result=tt)},function(tt){(ue._status===0||ue._status===-1)&&(ue._status=2,ue._result=tt)}),ue._status===-1&&(ue._status=0,ue._result=We)}if(ue._status===1)return ue._result.default;throw ue._result}var mt=typeof reportError=="function"?reportError:function(ue){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var We=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof ue=="object"&&ue!==null&&typeof ue.message=="string"?String(ue.message):String(ue),error:ue});if(!window.dispatchEvent(We))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",ue);return}console.error(ue)};function it(){}return la.Children={map:Fe,forEach:function(ue,We,tt){Fe(ue,function(){We.apply(this,arguments)},tt)},count:function(ue){var We=0;return Fe(ue,function(){We++}),We},toArray:function(ue){return Fe(ue,function(We){return We})||[]},only:function(ue){if(!ge(ue))throw Error("React.Children.only expected to receive a single React element child.");return ue}},la.Component=Q,la.Fragment=t,la.Profiler=r,la.PureComponent=X,la.StrictMode=i,la.Suspense=p,la.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,la.__COMPILER_RUNTIME={__Line truncated
* @license React
* scheduler.production.js
*
@@ -30,7 +30,7 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var GI;function eq(){if(GI)return Gh;GI=1;var n=Rl();function e(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)g+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var i={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},r=Symbol.for("react.portal");function o(p,g,_){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:E==null?null:""+E,children:p,containerInfo:g,implementation:_}}var s=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Gh.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Gh.createPortal=function(p,g){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(e(299));return o(p,g,null,_)},Gh.flushSync=function(p){var g=s.T,_=i.p;try{if(s.T=null,i.p=2,p)return p()}finally{s.T=g,i.p=_,i.d.f()}},Gh.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,i.d.C(p,g))},Gh.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},Gh.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var _=g.as,E=a(_,g.crossOrigin),O=typeof g.integrity=="string"?g.integrity:void 0,B=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;_==="style"?i.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:E,integrity:O,fetchPriority:B}):_==="script"&&i.d.X(p,{crossOrigin:E,integrity:O,fetchPriority:B,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Gh.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var _=a(g.as,g.crossOrigin);i.d.M(p,{crossOrigin:_,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&i.d.M(p)},Gh.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var _=g.as,E=a(_,g.crossOrigin);i.d.L(p,_,{crossOrigin:E,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Gh.preloadModule=function(p,g){if(typeof p=="string")if(g){var _=a(g.as,g.crossOrigin);i.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:_,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else i.d.m(p)},Gh.requestFormReset=function(p){i.d.r(p)},Gh.unstable_batchedUpdates=function(p,g){return p(g)},Gh.useFormState=function(p,g,_){return s.H.useFormState(p,g,_)},Gh.useFormStatus=function(){return s.H.useHostTransitionStatus()},Gh.version="19.1.1",Gh}var WI;function y2(){if(WI)return J4.exports;WI=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),J4.exports=eq(),J4.exports}var QI;function tq(){if(QI)return zC;QI=1;/**
*/var GI;function eq(){if(GI)return Gh;GI=1;var n=Rl();function e(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)g+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var i={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},r=Symbol.for("react.portal");function o(p,g,_){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:E==null?null:""+E,children:p,containerInfo:g,implementation:_}}var s=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Gh.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Gh.createPortal=function(p,g){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(e(299));return o(p,g,null,_)},Gh.flushSync=function(p){var g=s.T,_=i.p;try{if(s.T=null,i.p=2,p)return p()}finally{s.T=g,i.p=_,i.d.f()}},Gh.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,i.d.C(p,g))},Gh.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},Gh.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var _=g.as,E=a(_,g.crossOrigin),O=typeof g.integrity=="string"?g.integrity:void 0,B=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;_==="style"?i.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:E,integrity:O,fetchPriority:B}):_==="script"&&i.d.X(p,{crossOrigin:E,integrity:O,fetchPriority:B,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Gh.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var _=a(g.as,g.crossOrigin);i.d.M(p,{crossOrigin:_,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&i.d.M(p)},Gh.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var _=g.as,E=a(_,g.crossOrigin);i.d.L(p,_,{crossOrigin:E,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Gh.preloadModule=function(p,g){if(typeof p=="string")if(g){var _=a(g.as,g.crossOrigin);i.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:_,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else i.d.m(p)},Gh.requestFormReset=function(p){i.d.r(p)},Gh.unstable_batchedUpdates=function(p,g){return p(g)},Gh.useFormState=function(p,g,_){return s.H.useFormState(p,g,_)},Gh.useFormStatus=function(){return s.H.useHostTransitionStatus()},Gh.version="19.1.1",Gh}var WI;function v2(){if(WI)return J4.exports;WI=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),J4.exports=eq(),J4.exports}var QI;function tq(){if(QI)return zC;QI=1;/**
* @license React
* react-dom-client.production.js
*
@@ -38,49 +38,49 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var n=JY(),e=Rl(),t=y2();function i(A){var m="https://react.dev/errors/"+A;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)m+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+A+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(A){return!(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)}function o(A){var m=A,x=A;if(A.alternate)for(;m.return;)m=m.return;else{A=m;do m=A,(m.flags&4098)!==0&&(x=m.return),A=m.return;while(A)}return m.tag===3?x:null}function s(A){if(A.tag===13){var m=A.memoizedState;if(m===null&&(A=A.alternate,A!==null&&(m=A.memoizedState)),m!==null)return m.dehydrated}return null}function a(A){if(o(A)!==A)throw Error(i(188))}function p(A){var m=A.alternate;if(!m){if(m=o(A),m===null)throw Error(i(188));return m!==A?null:A}for(var x=A,D=m;;){var Y=x.return;if(Y===null)break;var se=Y.alternate;if(se===null){if(D=Y.return,D!==null){x=D;continue}break}if(Y.child===se.child){for(se=Y.child;se;){if(se===x)return a(Y),A;if(se===D)return a(Y),m;se=se.sibling}throw Error(i(188))}if(x.return!==D.return)x=Y,D=se;else{for(var Ye=!1,st=Y.child;st;){if(st===x){Ye=!0,x=Y,D=se;break}if(st===D){Ye=!0,D=Y,x=se;break}st=st.sibling}if(!Ye){for(st=se.child;st;){if(st===x){Ye=!0,x=se,D=Y;break}if(st===D){Ye=!0,D=se,x=Y;break}st=st.sibling}if(!Ye)throw Error(i(189))}}if(x.alternate!==D)throw Error(i(190))}if(x.tag!==3)throw Error(i(188));return x.stateNode.current===x?A:m}function g(A){var m=A.tag;if(m===5||m===26||m===27||m===6)return A;for(A=A.child;A!==null;){if(m=g(A),m!==null)return m;A=A.sibling}return null}var _=Object.assign,E=Symbol.for("react.element"),O=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),$=Symbol.for("react.provider"),X=Symbol.for("react.consumer"),re=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),he=Symbol.for("react.lazy"),ge=Symbol.for("react.activity"),ve=Symbol.for("react.memo_cache_sentinel"),_e=Symbol.iterator;function Me(A){return A===null||typeof A!="object"?null:(A=_e&&A[_e]||A["@@iterator"],typeof A=="function"?A:null)}var be=Symbol.for("react.client.reference");function ze(A){if(A==null)return null;if(typeof A=="function")return A.$$typeof===be?null:A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case z:return"Fragment";case Q:return"Profiler";case N:return"StrictMode";case V:return"Suspense";case J:return"SuspenseList";case ge:return"Activity"}if(typeof A=="object")switch(A.$$typeof){case B:return"Portal";case re:return(A.displayName||"Context")+".Provider";case X:return(A._context.displayName||"Context")+".Consumer";case ne:var m=A.render;return A=A.displayName,A||(A=m.displayName||m.name||"",A=A!==""?"ForwardRef("+A+")":"ForwardRef"),A;case W:return m=A.displayName||null,m!==null?m:ze(A.type)||"Memo";case he:m=A._payload,A=A._init;try{return ze(A(m))}catch{}}return null}var Ce=Array.isArray,Fe=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ot=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,mt={pending:!1,data:null,method:null,action:null},it=[],ue=-1;function We(A){return{current:A}}function tt(A){0>ue||(A.current=it[ue],it[ue]=null,ue--)}function ke(A,m){ue++,it[ue]=A.current,A.current=m}var Et=We(null),gt=We(null),xt=We(null),Ut=We(null);function je(A,m){switch(ke(xt,m),ke(gt,A),ke(Et,null),m.nodeType){case 9:case 11:A=(A=m.documentElement)&&(A=A.namespaceURI)?dl(A):0;break;default:if(A=m.tagName,m=m.namespaceURI)m=dl(m),A=fl(m,A);else switch(A){case"svg":A=1;break;case"math":A=2;break;default:A=0}}tt(Et),ke(Et,A)}function Ue(){tt(Et),tt(gt),tt(xt)}function Ke(A){A.memoizedState!==null&&ke(Ut,A);var m=Et.current,x=fl(m,A.type);m!==x&&(ke(gt,A),ke(Et,x))}function Ve(A){gt.current===A&&(tt(Et),tt(gt)),Ut.current===A&&(tt(Ut),qt._currentValue=mt)}var bt=Object.prototype.hasOwnProperty,vt=n.unstable_scheduleCallback,It=n.unstable_cancelCallback,Yt=n.unstable_shouldYield,Kt=n.unstable_requestPaint,on=n.unstable_now,Hn=n.unstable_getCurrentPriorityLevel,Wt=n.unstable_ImmediatePriority,Gn=n.unstable_UserBlockingPriority,On=n.unstable_NormalPriority,Bn=n.unstable_LowPriority,Tn=n.unstable_IdlePriority,Bi=n.log,Vn=n.unstable_setDisableYieldValue,Lt=null,De=null;function de(A){if(typeof Bi=="function"&&Vn(A),De&&typeof De.setStrictMode=="function")try{De.setStrictMode(Lt,A)}catch{}}var oe=Math.clz32?Math.clz32:Ie,le=Math.log,me=Math.LN2;function Ie(A){return A>>>=0,A===0?32:31-(le(A)/me|0)|0}var Qe=256,At=4194304;function He(A){var m=A&42;if(m!==0)return m;switch(A&-A){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:return 64;case 128:return 128;case 256:case 512:case 1024:case Line truncated
*/var n=JY(),e=Rl(),t=v2();function i(A){var m="https://react.dev/errors/"+A;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)m+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+A+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(A){return!(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)}function o(A){var m=A,x=A;if(A.alternate)for(;m.return;)m=m.return;else{A=m;do m=A,(m.flags&4098)!==0&&(x=m.return),A=m.return;while(A)}return m.tag===3?x:null}function s(A){if(A.tag===13){var m=A.memoizedState;if(m===null&&(A=A.alternate,A!==null&&(m=A.memoizedState)),m!==null)return m.dehydrated}return null}function a(A){if(o(A)!==A)throw Error(i(188))}function p(A){var m=A.alternate;if(!m){if(m=o(A),m===null)throw Error(i(188));return m!==A?null:A}for(var x=A,D=m;;){var Y=x.return;if(Y===null)break;var se=Y.alternate;if(se===null){if(D=Y.return,D!==null){x=D;continue}break}if(Y.child===se.child){for(se=Y.child;se;){if(se===x)return a(Y),A;if(se===D)return a(Y),m;se=se.sibling}throw Error(i(188))}if(x.return!==D.return)x=Y,D=se;else{for(var Ye=!1,st=Y.child;st;){if(st===x){Ye=!0,x=Y,D=se;break}if(st===D){Ye=!0,D=Y,x=se;break}st=st.sibling}if(!Ye){for(st=se.child;st;){if(st===x){Ye=!0,x=se,D=Y;break}if(st===D){Ye=!0,D=se,x=Y;break}st=st.sibling}if(!Ye)throw Error(i(189))}}if(x.alternate!==D)throw Error(i(190))}if(x.tag!==3)throw Error(i(188));return x.stateNode.current===x?A:m}function g(A){var m=A.tag;if(m===5||m===26||m===27||m===6)return A;for(A=A.child;A!==null;){if(m=g(A),m!==null)return m;A=A.sibling}return null}var _=Object.assign,E=Symbol.for("react.element"),O=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),$=Symbol.for("react.provider"),X=Symbol.for("react.consumer"),re=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),he=Symbol.for("react.lazy"),ge=Symbol.for("react.activity"),ve=Symbol.for("react.memo_cache_sentinel"),_e=Symbol.iterator;function Me(A){return A===null||typeof A!="object"?null:(A=_e&&A[_e]||A["@@iterator"],typeof A=="function"?A:null)}var be=Symbol.for("react.client.reference");function ze(A){if(A==null)return null;if(typeof A=="function")return A.$$typeof===be?null:A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case z:return"Fragment";case Q:return"Profiler";case N:return"StrictMode";case V:return"Suspense";case J:return"SuspenseList";case ge:return"Activity"}if(typeof A=="object")switch(A.$$typeof){case B:return"Portal";case re:return(A.displayName||"Context")+".Provider";case X:return(A._context.displayName||"Context")+".Consumer";case ne:var m=A.render;return A=A.displayName,A||(A=m.displayName||m.name||"",A=A!==""?"ForwardRef("+A+")":"ForwardRef"),A;case W:return m=A.displayName||null,m!==null?m:ze(A.type)||"Memo";case he:m=A._payload,A=A._init;try{return ze(A(m))}catch{}}return null}var Ce=Array.isArray,Fe=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ot=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,mt={pending:!1,data:null,method:null,action:null},it=[],ue=-1;function We(A){return{current:A}}function tt(A){0>ue||(A.current=it[ue],it[ue]=null,ue--)}function ke(A,m){ue++,it[ue]=A.current,A.current=m}var Et=We(null),gt=We(null),xt=We(null),Kt=We(null);function je(A,m){switch(ke(xt,m),ke(gt,A),ke(Et,null),m.nodeType){case 9:case 11:A=(A=m.documentElement)&&(A=A.namespaceURI)?dl(A):0;break;default:if(A=m.tagName,m=m.namespaceURI)m=dl(m),A=fl(m,A);else switch(A){case"svg":A=1;break;case"math":A=2;break;default:A=0}}tt(Et),ke(Et,A)}function Ke(){tt(Et),tt(gt),tt(xt)}function Ue(A){A.memoizedState!==null&&ke(Kt,A);var m=Et.current,x=fl(m,A.type);m!==x&&(ke(gt,A),ke(Et,x))}function Ve(A){gt.current===A&&(tt(Et),tt(gt)),Kt.current===A&&(tt(Kt),qt._currentValue=mt)}var bt=Object.prototype.hasOwnProperty,vt=n.unstable_scheduleCallback,It=n.unstable_cancelCallback,Yt=n.unstable_shouldYield,Ut=n.unstable_requestPaint,on=n.unstable_now,Hn=n.unstable_getCurrentPriorityLevel,Wt=n.unstable_ImmediatePriority,Gn=n.unstable_UserBlockingPriority,On=n.unstable_NormalPriority,Bn=n.unstable_LowPriority,Tn=n.unstable_IdlePriority,Oi=n.log,Vn=n.unstable_setDisableYieldValue,Lt=null,De=null;function de(A){if(typeof Oi=="function"&&Vn(A),De&&typeof De.setStrictMode=="function")try{De.setStrictMode(Lt,A)}catch{}}var oe=Math.clz32?Math.clz32:Ie,le=Math.log,me=Math.LN2;function Ie(A){return A>>>=0,A===0?32:31-(le(A)/me|0)|0}var Qe=256,At=4194304;function He(A){var m=A&42;if(m!==0)return m;switch(A&-A){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:return 64;case 128:return 128;case 256:case 512:case 1024:case Line truncated
at`)?" (<anonymous>)":-1<x.stack.indexOf("@")?"@unknown:0:0":""}return`
`+fs+A+Oa}var Xe=!1;function Bt(A,m){if(!A||Xe)return"";Xe=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var D={DetermineComponentFrameRoot:function(){try{if(m){var Nn=function(){throw Error()};if(Object.defineProperty(Nn.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Nn,[])}catch(pn){var mn=pn}Reflect.construct(A,[],Nn)}else{try{Nn.call()}catch(pn){mn=pn}A.call(Nn.prototype)}}else{try{throw Error()}catch(pn){mn=pn}(Nn=A())&&typeof Nn.catch=="function"&&Nn.catch(function(){})}}catch(pn){if(pn&&mn&&typeof pn.stack=="string")return[pn.stack,mn.stack]}return[null,null]}};D.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var Y=Object.getOwnPropertyDescriptor(D.DetermineComponentFrameRoot,"name");Y&&Y.configurable&&Object.defineProperty(D.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var se=D.DetermineComponentFrameRoot(),Ye=se[0],st=se[1];if(Ye&&st){var jt=Ye.split(`
`),dn=st.split(`
`);for(Y=D=0;D<jt.length&&!jt[D].includes("DetermineComponentFrameRoot");)D++;for(;Y<dn.length&&!dn[Y].includes("DetermineComponentFrameRoot");)Y++;if(D===jt.length||Y===dn.length)for(D=jt.length-1,Y=dn.length-1;1<=D&&0<=Y&&jt[D]!==dn[Y];)Y--;for(;1<=D&&0<=Y;D--,Y--)if(jt[D]!==dn[Y]){if(D!==1||Y!==1)do if(D--,Y--,0>Y||jt[D]!==dn[Y]){var Dn=`
`+jt[D].replace(" at new "," at ");return A.displayName&&Dn.includes("<anonymous>")&&(Dn=Dn.replace("<anonymous>",A.displayName)),Dn}while(1<=D&&0<=Y);break}}}finally{Xe=!1,Error.prepareStackTrace=x}return(x=A?A.displayName||A.name:"")?ea(x):""}function Mn(A){switch(A.tag){case 26:case 27:case 5:return ea(A.type);case 16:return ea("Lazy");case 13:return ea("Suspense");case 19:return ea("SuspenseList");case 0:case 15:return Bt(A.type,!1);case 11:return Bt(A.type.render,!1);case 1:return Bt(A.type,!0);case 31:return ea("Activity");default:return""}}function Wn(A){try{var m="";do m+=Mn(A),A=A.return;while(A);return m}catch(x){return`
Error generating stack: `+x.message+`
`+x.stack}}function an(A){switch(typeof A){case"bigint":case"boolean":case"number":case"string":case"undefined":return A;case"object":return A;default:return""}}function si(A){var m=A.type;return(A=A.nodeName)&&A.toLowerCase()==="input"&&(m==="checkbox"||m==="radio")}function no(A){var m=si(A)?"checked":"value",x=Object.getOwnPropertyDescriptor(A.constructor.prototype,m),D=""+A[m];if(!A.hasOwnProperty(m)&&typeof x<"u"&&typeof x.get=="function"&&typeof x.set=="function"){var Y=x.get,se=x.set;return Object.defineProperty(A,m,{configurable:!0,get:function(){return Y.call(this)},set:function(Ye){D=""+Ye,se.call(this,Ye)}}),Object.defineProperty(A,m,{enumerable:x.enumerable}),{getValue:function(){return D},setValue:function(Ye){D=""+Ye},stopTracking:function(){A._valueTracker=null,delete A[m]}}}}function Oo(A){A._valueTracker||(A._valueTracker=no(A))}function ps(A){if(!A)return!1;var m=A._valueTracker;if(!m)return!0;var x=m.getValue(),D="";return A&&(D=si(A)?A.checked?"true":"false":A.value),A=D,A!==x?(m.setValue(A),!0):!1}function Ws(A){if(A=A||(typeof document<"u"?document:void 0),typeof A>"u")return null;try{return A.activeElement||A.body}catch{return A.body}}var Ju=/[\n"\\]/g;function qi(A){return A.replace(Ju,function(m){return"\\"+m.charCodeAt(0).toString(16)+" "})}function jA(A,m,x,D,Y,se,Ye,st){A.name="",Ye!=null&&typeof Ye!="function"&&typeof Ye!="symbol"&&typeof Ye!="boolean"?A.type=Ye:A.removeAttribute("type"),m!=null?Ye==="number"?(m===0&&A.value===""||A.value!=m)&&(A.value=""+an(m)):A.value!==""+an(m)&&(A.value=""+an(m)):Ye!=="submit"&&Ye!=="reset"||A.removeAttribute("value"),m!=null?xl(A,Ye,an(m)):x!=null?xl(A,Ye,an(x)):D!=null&&A.removeAttribute("value"),Y==null&&se!=null&&(A.defaultChecked=!!se),Y!=null&&(A.checked=Y&&typeof Y!="function"&&typeof Y!="symbol"),st!=null&&typeof st!="function"&&typeof st!="symbol"&&typeof st!="boolean"?A.name=""+an(st):A.removeAttribute("name")}function Ou(A,m,x,D,Y,se,Ye,st){if(se!=null&&typeof se!="function"&&typeof se!="symbol"&&typeof se!="boolean"&&(A.type=se),m!=null||x!=null){if(!(se!=="submit"&&se!=="reset"||m!=null))return;x=x!=null?""+an(x):"",m=m!=null?""+an(m):x,st||m===A.value||(A.value=m),A.defaultValue=m}D=D??Y,D=typeof D!="function"&&typeof D!="symbol"&&!!D,A.checked=st?A.checked:!!D,A.defaultChecked=!!D,Ye!=null&&typeof Ye!="function"&&typeof Ye!="symbol"&&typeof Ye!="boolean"&&(A.name=Ye)}function xl(A,m,x){m==="number"&&Ws(A.ownerDocument)===A||A.defaultValue===""+x||(A.defaultValue=""+x)}function Is(A,m,x,D){if(A=A.options,m){m={};for(var Y=0;Y<x.length;Y++)m["$"+x[Y]]=!0;for(x=0;x<A.length;x++)Y=m.hasOwnProperty("$"+A[x].value),A[x].selected!==Y&&(A[x].selected=Y),Y&&D&&(A[x].defaultSelected=!0)}else{for(x=""+an(x),m=null,Y=0;Y<A.length;Y++){if(A[Y].value===x){A[Y].selected=!0,D&&(A[Y].defaultSelected=!0);return}m!==null||A[Y].disabled||(m=A[Y])}m!==null&&(m.selected=!0)}}function Tc(A,m,x){if(m!=null&&(m=""+an(m),m!==A.value&&(A.value=m),x==null)){A.defaultValue!==m&&(A.defaultValue=m);return}A.defaultValue=x!=null?""+an(x):""}function Xs(A,m,x,D){if(m==null){if(D!=null){if(x!=null)throw Error(i(92));if(Ce(D)){if(1<D.length)throw Error(i(93));D=D[0]}x=D}x==null&&(x=""),m=x}x=an(m),A.defaultValue=x,D=A.textContent,D===x&&D!==""&&D!==null&&(A.value=D)}function ta(A,m){if(m){var x=A.firstChild;if(x&&x===A.lastChild&&x.nodeType===3){x.nodeValue=m;return}}A.textContent=m}var Po=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function pr(A,m,x){var D=m.indexOf("--")===0;x==null||typeof x=="boolean"||x===""?D?A.setProperty(m,""):m==="float"?A.cssFloat="":A[m]="":D?A.setProperty(m,x):typeof x!="number"||x===0||Po.has(m)?m==="float"?A.cssFloat=x:A[m]=(""+x).trim():A[m]=x+"px"}function Gl(A,m,x){if(m!=null&&typeof m!="object")throw Error(i(62));if(A=A.style,x!=null){for(var D in x)!x.hasOwnProperty(D)||m!=null&&m.hasOwnProperty(D)||(D.indexOf("--")===0?A.setProperty(D,""):D==="float"?A.cssFloat="":A[D]="");for(var Y in m)D=m[Y],m.hasOwnProperty(Y)&&x[Y]!==D&&pr(A,Y,D)}else for(var se in m)m.hasOwnProperty(se)&&pr(A,se,m[se])}function ba(A){if(A.indexOf("-")=== Line truncated
`).replace(Ef,"")}function S1(A,m){return m=_g(m),_g(A)===m}function oc(){}function Da(A,m,x,D,Y,se){switch(x){case"children":typeof D=="string"?m==="body"||m==="textarea"&&D===""||ta(A,D):(typeof D=="number"||typeof D=="bigint")&&m!=="body"&&ta(A,""+D);break;case"className":Zi(A,"class",D);break;case"tabIndex":Zi(A,"tabindex",D);break;case"dir":case"role":case"viewBox":case"width":case"height":Zi(A,x,D);break;case"style":Gl(A,D,se);break;case"data":if(m!=="object"){Zi(A,"data",D);break}case"src":case"href":if(D===""&&(m!=="a"||x!=="href")){A.removeAttribute(x);break}if(D==null||typeof D=="function"||typeof D=="symbol"||typeof D=="boolean"){A.removeAttribute(x);break}D=wr(""+D),A.setAttribute(x,D);break;case"action":case"formAction":if(typeof D=="function"){A.setAttribute(x,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof se=="function"&&(x==="formAction"?(m!=="input"&&Da(A,m,"name",Y.name,Y,null),Da(A,m,"formEncType",Y.formEncType,Y,null),Da(A,m,"formMethod",Y.formMethod,Y,null),Da(A,m,"formTarget",Y.formTarget,Y,null)):(Da(A,m,"encType",Y.encType,Y,null),Da(A,m,"method",Y.method,Y,null),Da(A,m,"target",Y.target,Y,null)));if(D==null||typeof D=="symbol"||typeof D=="boolean"){A.removeAttribute(x);break}D=wr(""+D),A.setAttribute(x,D);break;case"onClick":D!=null&&(A.onclick=oc);break;case"onScroll":D!=null&&sa("scroll",A);break;case"onScrollEnd":D!=null&&sa("scrollend",A);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!="object"||!("__html"in D))throw Error(i(61));if(x=D.__html,x!=null){if(Y.children!=null)throw Error(i(60));A.innerHTML=x}}break;case"multiple":A.multiple=D&&typeof D!="function"&&typeof D!="symbol";break;case"muted":A.muted=D&&typeof D!="function"&&typeof D!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(D==null||typeof D=="function"||typeof D=="boolean"||typeof D=="symbol"){A.removeAttribute("xlink:href");break}x=wr(""+D),A.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",x);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":D!=null&&typeof D!="function"&&typeof D!="symbol"?A.setAttribute(x,""+D):A.removeAttribute(x);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":D&&typeof D!="function"&&typeof D!="symbol"?A.setAttribute(x,""):A.removeAttribute(x);break;case"capture":case"download":D===!0?A.setAttribute(x,""):D!==!1&&D!=null&&typeof D!="function"&&typeof D!="symbol"?A.setAttribute(x,D):A.removeAttribute(x);break;case"cols":case"rows":case"size":case"span":D!=null&&typeof D!="function"&&typeof D!="symbol"&&!isNaN(D)&&1<=D?A.setAttribute(x,D):A.removeAttribute(x);break;case"rowSpan":case"start":D==null||typeof D=="function"||typeof D=="symbol"||isNaN(D)?A.removeAttribute(x):A.setAttribute(x,D);break;case"popover":sa("beforetoggle",A),sa("toggle",A),Fa(A,"popover",D);break;case"xlinkActuate":wi(A,"http://www.w3.org/1999/xlink","xlink:actuate",D);break;case"xlinkArcrole":wi(A,"http://www.w3.org/1999/xlink","xlink:arcrole",D);break;case"xlinkRole":wi(A,"http://www.w3.org/1999/xlink","xlink:role",D);break;case"xlinkShow":wi(A,"http://www.w3.org/1999/xlink","xlink:show",D);break;case"xlinkTitle":wi(A,"http://www.w3.org/1999/xlink","xlink:title",D);break;case"xlinkType":wi(A,"http://www.w3.org/1999/xlink","xlink:type",D);break;case"xmlBase":wi(A,"http://www.w3.org/XML/1998/namespace","xml:base",D);break;case"xmlLang":wi(A,"http://www.w3.org/XML/1998/namespace","xml:lang",D);break;case"xmlSpace":wi(A,"http://www.w3.org/XML/1998/namespace","xml:space",D);break;case"is":Fa(A,"is",D);break;case"innerText":case"textContent":break;default:(!(2<x.length)||x[0]!=="o"&&x[0]!=="O"||x[1]!=="n"&&x[1]!=="N")&&(x=Wl.get(x)||x,Fa(A,x,D))}}function $p(A,m,x,D,Y,se){switch(x){case"style":Gl(A,D,se);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!="object"||!("__html"in D))throw Error(i(61));if(x=D.__html,x!=null){if(Y.children!=null)throw Error(i(60));A.innerHTML=x}}break;case"children":typeof D=="string"?ta(A,D):(typeof D=="number"||typeof D=="bigint")&&ta(A,""+D);break;case"onScroll":D!=null&&sa("scroll",A);break;case"onScrollEnd":D!=null&&sa("scrollend",A);break;case"onClick":D!=null&&(A.onclick=oc);break;case"suppressContentEditableWarning":case"suppressHydrati Line truncated
`+x.stack}}function an(A){switch(typeof A){case"bigint":case"boolean":case"number":case"string":case"undefined":return A;case"object":return A;default:return""}}function li(A){var m=A.type;return(A=A.nodeName)&&A.toLowerCase()==="input"&&(m==="checkbox"||m==="radio")}function no(A){var m=li(A)?"checked":"value",x=Object.getOwnPropertyDescriptor(A.constructor.prototype,m),D=""+A[m];if(!A.hasOwnProperty(m)&&typeof x<"u"&&typeof x.get=="function"&&typeof x.set=="function"){var Y=x.get,se=x.set;return Object.defineProperty(A,m,{configurable:!0,get:function(){return Y.call(this)},set:function(Ye){D=""+Ye,se.call(this,Ye)}}),Object.defineProperty(A,m,{enumerable:x.enumerable}),{getValue:function(){return D},setValue:function(Ye){D=""+Ye},stopTracking:function(){A._valueTracker=null,delete A[m]}}}}function Oo(A){A._valueTracker||(A._valueTracker=no(A))}function ps(A){if(!A)return!1;var m=A._valueTracker;if(!m)return!0;var x=m.getValue(),D="";return A&&(D=li(A)?A.checked?"true":"false":A.value),A=D,A!==x?(m.setValue(A),!0):!1}function Ws(A){if(A=A||(typeof document<"u"?document:void 0),typeof A>"u")return null;try{return A.activeElement||A.body}catch{return A.body}}var Ju=/[\n"\\]/g;function Hi(A){return A.replace(Ju,function(m){return"\\"+m.charCodeAt(0).toString(16)+" "})}function jA(A,m,x,D,Y,se,Ye,st){A.name="",Ye!=null&&typeof Ye!="function"&&typeof Ye!="symbol"&&typeof Ye!="boolean"?A.type=Ye:A.removeAttribute("type"),m!=null?Ye==="number"?(m===0&&A.value===""||A.value!=m)&&(A.value=""+an(m)):A.value!==""+an(m)&&(A.value=""+an(m)):Ye!=="submit"&&Ye!=="reset"||A.removeAttribute("value"),m!=null?xl(A,Ye,an(m)):x!=null?xl(A,Ye,an(x)):D!=null&&A.removeAttribute("value"),Y==null&&se!=null&&(A.defaultChecked=!!se),Y!=null&&(A.checked=Y&&typeof Y!="function"&&typeof Y!="symbol"),st!=null&&typeof st!="function"&&typeof st!="symbol"&&typeof st!="boolean"?A.name=""+an(st):A.removeAttribute("name")}function Ou(A,m,x,D,Y,se,Ye,st){if(se!=null&&typeof se!="function"&&typeof se!="symbol"&&typeof se!="boolean"&&(A.type=se),m!=null||x!=null){if(!(se!=="submit"&&se!=="reset"||m!=null))return;x=x!=null?""+an(x):"",m=m!=null?""+an(m):x,st||m===A.value||(A.value=m),A.defaultValue=m}D=D??Y,D=typeof D!="function"&&typeof D!="symbol"&&!!D,A.checked=st?A.checked:!!D,A.defaultChecked=!!D,Ye!=null&&typeof Ye!="function"&&typeof Ye!="symbol"&&typeof Ye!="boolean"&&(A.name=Ye)}function xl(A,m,x){m==="number"&&Ws(A.ownerDocument)===A||A.defaultValue===""+x||(A.defaultValue=""+x)}function Is(A,m,x,D){if(A=A.options,m){m={};for(var Y=0;Y<x.length;Y++)m["$"+x[Y]]=!0;for(x=0;x<A.length;x++)Y=m.hasOwnProperty("$"+A[x].value),A[x].selected!==Y&&(A[x].selected=Y),Y&&D&&(A[x].defaultSelected=!0)}else{for(x=""+an(x),m=null,Y=0;Y<A.length;Y++){if(A[Y].value===x){A[Y].selected=!0,D&&(A[Y].defaultSelected=!0);return}m!==null||A[Y].disabled||(m=A[Y])}m!==null&&(m.selected=!0)}}function Tc(A,m,x){if(m!=null&&(m=""+an(m),m!==A.value&&(A.value=m),x==null)){A.defaultValue!==m&&(A.defaultValue=m);return}A.defaultValue=x!=null?""+an(x):""}function Xs(A,m,x,D){if(m==null){if(D!=null){if(x!=null)throw Error(i(92));if(Ce(D)){if(1<D.length)throw Error(i(93));D=D[0]}x=D}x==null&&(x=""),m=x}x=an(m),A.defaultValue=x,D=A.textContent,D===x&&D!==""&&D!==null&&(A.value=D)}function ta(A,m){if(m){var x=A.firstChild;if(x&&x===A.lastChild&&x.nodeType===3){x.nodeValue=m;return}}A.textContent=m}var Po=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function mr(A,m,x){var D=m.indexOf("--")===0;x==null||typeof x=="boolean"||x===""?D?A.setProperty(m,""):m==="float"?A.cssFloat="":A[m]="":D?A.setProperty(m,x):typeof x!="number"||x===0||Po.has(m)?m==="float"?A.cssFloat=x:A[m]=(""+x).trim():A[m]=x+"px"}function Gl(A,m,x){if(m!=null&&typeof m!="object")throw Error(i(62));if(A=A.style,x!=null){for(var D in x)!x.hasOwnProperty(D)||m!=null&&m.hasOwnProperty(D)||(D.indexOf("--")===0?A.setProperty(D,""):D==="float"?A.cssFloat="":A[D]="");for(var Y in m)D=m[Y],m.hasOwnProperty(Y)&&x[Y]!==D&&mr(A,Y,D)}else for(var se in m)m.hasOwnProperty(se)&&mr(A,se,m[se])}function ba(A){if(A.indexOf("-")=== Line truncated
`).replace(Ef,"")}function S1(A,m){return m=_g(m),_g(A)===m}function oc(){}function Da(A,m,x,D,Y,se){switch(x){case"children":typeof D=="string"?m==="body"||m==="textarea"&&D===""||ta(A,D):(typeof D=="number"||typeof D=="bigint")&&m!=="body"&&ta(A,""+D);break;case"className":Xi(A,"class",D);break;case"tabIndex":Xi(A,"tabindex",D);break;case"dir":case"role":case"viewBox":case"width":case"height":Xi(A,x,D);break;case"style":Gl(A,D,se);break;case"data":if(m!=="object"){Xi(A,"data",D);break}case"src":case"href":if(D===""&&(m!=="a"||x!=="href")){A.removeAttribute(x);break}if(D==null||typeof D=="function"||typeof D=="symbol"||typeof D=="boolean"){A.removeAttribute(x);break}D=Sr(""+D),A.setAttribute(x,D);break;case"action":case"formAction":if(typeof D=="function"){A.setAttribute(x,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof se=="function"&&(x==="formAction"?(m!=="input"&&Da(A,m,"name",Y.name,Y,null),Da(A,m,"formEncType",Y.formEncType,Y,null),Da(A,m,"formMethod",Y.formMethod,Y,null),Da(A,m,"formTarget",Y.formTarget,Y,null)):(Da(A,m,"encType",Y.encType,Y,null),Da(A,m,"method",Y.method,Y,null),Da(A,m,"target",Y.target,Y,null)));if(D==null||typeof D=="symbol"||typeof D=="boolean"){A.removeAttribute(x);break}D=Sr(""+D),A.setAttribute(x,D);break;case"onClick":D!=null&&(A.onclick=oc);break;case"onScroll":D!=null&&sa("scroll",A);break;case"onScrollEnd":D!=null&&sa("scrollend",A);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!="object"||!("__html"in D))throw Error(i(61));if(x=D.__html,x!=null){if(Y.children!=null)throw Error(i(60));A.innerHTML=x}}break;case"multiple":A.multiple=D&&typeof D!="function"&&typeof D!="symbol";break;case"muted":A.muted=D&&typeof D!="function"&&typeof D!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(D==null||typeof D=="function"||typeof D=="boolean"||typeof D=="symbol"){A.removeAttribute("xlink:href");break}x=Sr(""+D),A.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",x);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":D!=null&&typeof D!="function"&&typeof D!="symbol"?A.setAttribute(x,""+D):A.removeAttribute(x);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":D&&typeof D!="function"&&typeof D!="symbol"?A.setAttribute(x,""):A.removeAttribute(x);break;case"capture":case"download":D===!0?A.setAttribute(x,""):D!==!1&&D!=null&&typeof D!="function"&&typeof D!="symbol"?A.setAttribute(x,D):A.removeAttribute(x);break;case"cols":case"rows":case"size":case"span":D!=null&&typeof D!="function"&&typeof D!="symbol"&&!isNaN(D)&&1<=D?A.setAttribute(x,D):A.removeAttribute(x);break;case"rowSpan":case"start":D==null||typeof D=="function"||typeof D=="symbol"||isNaN(D)?A.removeAttribute(x):A.setAttribute(x,D);break;case"popover":sa("beforetoggle",A),sa("toggle",A),Fa(A,"popover",D);break;case"xlinkActuate":Si(A,"http://www.w3.org/1999/xlink","xlink:actuate",D);break;case"xlinkArcrole":Si(A,"http://www.w3.org/1999/xlink","xlink:arcrole",D);break;case"xlinkRole":Si(A,"http://www.w3.org/1999/xlink","xlink:role",D);break;case"xlinkShow":Si(A,"http://www.w3.org/1999/xlink","xlink:show",D);break;case"xlinkTitle":Si(A,"http://www.w3.org/1999/xlink","xlink:title",D);break;case"xlinkType":Si(A,"http://www.w3.org/1999/xlink","xlink:type",D);break;case"xmlBase":Si(A,"http://www.w3.org/XML/1998/namespace","xml:base",D);break;case"xmlLang":Si(A,"http://www.w3.org/XML/1998/namespace","xml:lang",D);break;case"xmlSpace":Si(A,"http://www.w3.org/XML/1998/namespace","xml:space",D);break;case"is":Fa(A,"is",D);break;case"innerText":case"textContent":break;default:(!(2<x.length)||x[0]!=="o"&&x[0]!=="O"||x[1]!=="n"&&x[1]!=="N")&&(x=Wl.get(x)||x,Fa(A,x,D))}}function $p(A,m,x,D,Y,se){switch(x){case"style":Gl(A,D,se);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!="object"||!("__html"in D))throw Error(i(61));if(x=D.__html,x!=null){if(Y.children!=null)throw Error(i(60));A.innerHTML=x}}break;case"children":typeof D=="string"?ta(A,D):(typeof D=="number"||typeof D=="bigint")&&ta(A,""+D);break;case"onScroll":D!=null&&sa("scroll",A);break;case"onScrollEnd":D!=null&&sa("scrollend",A);break;case"onClick":D!=null&&(A.onclick=oc);break;case"suppressContentEditableWarning":case"suppressHydrati Line truncated
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var b9;function xH(){return b9||(b9=1,function(n){const e=_H(),t=bH(),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=a,n.SlowBuffer=X,n.INSPECT_MAX_BYTES=50;const r=2147483647;n.kMaxLength=r,a.TYPED_ARRAY_SUPPORT=o(),!a.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 De=new Uint8Array(1),de={foo:function(){return 42}};return Object.setPrototypeOf(de,Uint8Array.prototype),Object.setPrototypeOf(De,de),De.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(De){if(De>r)throw new RangeError('The value "'+De+'" is invalid for option "size"');const de=new Uint8Array(De);return Object.setPrototypeOf(de,a.prototype),de}function a(De,de,oe){if(typeof De=="number"){if(typeof de=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return E(De)}return p(De,de,oe)}a.poolSize=8192;function p(De,de,oe){if(typeof De=="string")return O(De,de);if(ArrayBuffer.isView(De))return z(De);if(De==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof De);if(Bn(De,ArrayBuffer)||De&&Bn(De.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Bn(De,SharedArrayBuffer)||De&&Bn(De.buffer,SharedArrayBuffer)))return N(De,de,oe);if(typeof De=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const le=De.valueOf&&De.valueOf();if(le!=null&&le!==De)return a.from(le,de,oe);const me=Q(De);if(me)return me;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof De[Symbol.toPrimitive]=="function")return a.from(De[Symbol.toPrimitive]("string"),de,oe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof De)}a.from=function(De,de,oe){return p(De,de,oe)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function g(De){if(typeof De!="number")throw new TypeError('"size" argument must be of type number');if(De<0)throw new RangeError('The value "'+De+'" is invalid for option "size"')}function _(De,de,oe){return g(De),De<=0?s(De):de!==void 0?typeof oe=="string"?s(De).fill(de,oe):s(De).fill(de):s(De)}a.alloc=function(De,de,oe){return _(De,de,oe)};function E(De){return g(De),s(De<0?0:$(De)|0)}a.allocUnsafe=function(De){return E(De)},a.allocUnsafeSlow=function(De){return E(De)};function O(De,de){if((typeof de!="string"||de==="")&&(de="utf8"),!a.isEncoding(de))throw new TypeError("Unknown encoding: "+de);const oe=re(De,de)|0;let le=s(oe);const me=le.write(De,de);return me!==oe&&(le=le.slice(0,me)),le}function B(De){const de=De.length<0?0:$(De.length)|0,oe=s(de);for(let le=0;le<de;le+=1)oe[le]=De[le]&255;return oe}function z(De){if(Bn(De,Uint8Array)){const de=new Uint8Array(De);return N(de.buffer,de.byteOffset,de.byteLength)}return B(De)}function N(De,de,oe){if(de<0||De.byteLength<de)throw new RangeError('"offset" is outside of buffer bounds');if(De.byteLength<de+(oe||0))throw new RangeError('"length" is outside of buffer bounds');let le;return de===void 0&&oe===void 0?le=new Uint8Array(De):oe===void 0?le=new Uint8Array(De,de):le=new Uint8Array(De,de,oe),Object.setPrototypeOf(le,a.prototype),le}function Q(De){if(a.isBuffer(De)){const de=$(De.length)|0,oe=s(de);return oe.length===0||De.copy(oe,0,0,de),oe}if(De.length!==void 0)return typeof De.length!="number"||Tn(De.length)?s(0):B(De);if(De.type==="Buffer"&&Array.isArray(De.data))return B(De.data)}function $(De){if(De>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return De|0}function X(De){return+De!=De&&(De=0),a.alloc(+De)}a.isBuffer=function(de){return de!=null&&de._isBuffer===!0&&de!==a.prototype},a.compare=function(de,oe){if(Bn(de,Uint8Array)&&(de=a.from(de,de.offset,de.byteLength)),Bn(oe,Uint8Array)&&(oe=a.from(oe,oe.offset,oe.byteLength)),!a.isBuffer(de)||!a.isBuffer(oe))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(de===oe)return 0;let le=de.length,me=oe.length;for(let Ie=0,Qe=Math.min(le,me);Ie<Qe;++Ie)if(de[Ie]!==oe[Ie]){le=de[Ie],me=oe[Ie];break}return le<me?-1:me<le?1:0},a.isEncoding=function(de){switch(String(de).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}},a.concat=function(de,oe){if(!Array.isArray(de))throw new TypeError('"list" argument must be an Array of BuLine truncated
*/var b9;function xH(){return b9||(b9=1,function(n){const e=_H(),t=bH(),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=a,n.SlowBuffer=X,n.INSPECT_MAX_BYTES=50;const r=2147483647;n.kMaxLength=r,a.TYPED_ARRAY_SUPPORT=o(),!a.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 De=new Uint8Array(1),de={foo:function(){return 42}};return Object.setPrototypeOf(de,Uint8Array.prototype),Object.setPrototypeOf(De,de),De.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(De){if(De>r)throw new RangeError('The value "'+De+'" is invalid for option "size"');const de=new Uint8Array(De);return Object.setPrototypeOf(de,a.prototype),de}function a(De,de,oe){if(typeof De=="number"){if(typeof de=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return E(De)}return p(De,de,oe)}a.poolSize=8192;function p(De,de,oe){if(typeof De=="string")return O(De,de);if(ArrayBuffer.isView(De))return z(De);if(De==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof De);if(Bn(De,ArrayBuffer)||De&&Bn(De.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Bn(De,SharedArrayBuffer)||De&&Bn(De.buffer,SharedArrayBuffer)))return N(De,de,oe);if(typeof De=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const le=De.valueOf&&De.valueOf();if(le!=null&&le!==De)return a.from(le,de,oe);const me=Q(De);if(me)return me;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof De[Symbol.toPrimitive]=="function")return a.from(De[Symbol.toPrimitive]("string"),de,oe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof De)}a.from=function(De,de,oe){return p(De,de,oe)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function g(De){if(typeof De!="number")throw new TypeError('"size" argument must be of type number');if(De<0)throw new RangeError('The value "'+De+'" is invalid for option "size"')}function _(De,de,oe){return g(De),De<=0?s(De):de!==void 0?typeof oe=="string"?s(De).fill(de,oe):s(De).fill(de):s(De)}a.alloc=function(De,de,oe){return _(De,de,oe)};function E(De){return g(De),s(De<0?0:$(De)|0)}a.allocUnsafe=function(De){return E(De)},a.allocUnsafeSlow=function(De){return E(De)};function O(De,de){if((typeof de!="string"||de==="")&&(de="utf8"),!a.isEncoding(de))throw new TypeError("Unknown encoding: "+de);const oe=re(De,de)|0;let le=s(oe);const me=le.write(De,de);return me!==oe&&(le=le.slice(0,me)),le}function B(De){const de=De.length<0?0:$(De.length)|0,oe=s(de);for(let le=0;le<de;le+=1)oe[le]=De[le]&255;return oe}function z(De){if(Bn(De,Uint8Array)){const de=new Uint8Array(De);return N(de.buffer,de.byteOffset,de.byteLength)}return B(De)}function N(De,de,oe){if(de<0||De.byteLength<de)throw new RangeError('"offset" is outside of buffer bounds');if(De.byteLength<de+(oe||0))throw new RangeError('"length" is outside of buffer bounds');let le;return de===void 0&&oe===void 0?le=new Uint8Array(De):oe===void 0?le=new Uint8Array(De,de):le=new Uint8Array(De,de,oe),Object.setPrototypeOf(le,a.prototype),le}function Q(De){if(a.isBuffer(De)){const de=$(De.length)|0,oe=s(de);return oe.length===0||De.copy(oe,0,0,de),oe}if(De.length!==void 0)return typeof De.length!="number"||Tn(De.length)?s(0):B(De);if(De.type==="Buffer"&&Array.isArray(De.data))return B(De.data)}function $(De){if(De>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return De|0}function X(De){return+De!=De&&(De=0),a.alloc(+De)}a.isBuffer=function(de){return de!=null&&de._isBuffer===!0&&de!==a.prototype},a.compare=function(de,oe){if(Bn(de,Uint8Array)&&(de=a.from(de,de.offset,de.byteLength)),Bn(oe,Uint8Array)&&(oe=a.from(oe,oe.offset,oe.byteLength)),!a.isBuffer(de)||!a.isBuffer(oe))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(de===oe)return 0;let le=de.length,me=oe.length;for(let Ie=0,Qe=Math.min(le,me);Ie<Qe;++Ie)if(de[Ie]!==oe[Ie]){le=de[Ie],me=oe[Ie];break}return le<me?-1:me<le?1:0},a.isEncoding=function(de){switch(String(de).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}},a.concat=function(de,oe){if(!Array.isArray(de))throw new TypeError('"list" argument must be an Array of BuLine truncated
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/var OH=s_.exports,M9;function IH(){return M9||(M9=1,function(n,e){(function(){var t,i="4.17.21",r=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",g=500,_="__lodash_placeholder__",E=1,O=2,B=4,z=1,N=2,Q=1,$=2,X=4,re=8,ne=16,V=32,J=64,W=128,he=256,ge=512,ve=30,_e="...",Me=800,be=16,ze=1,Ce=2,Fe=3,ot=1/0,mt=9007199254740991,it=17976931348623157e292,ue=NaN,We=4294967295,tt=We-1,ke=We>>>1,Et=[["ary",W],["bind",Q],["bindKey",$],["curry",re],["curryRight",ne],["flip",ge],["partial",V],["partialRight",J],["rearg",he]],gt="[object Arguments]",xt="[object Array]",Ut="[object AsyncFunction]",je="[object Boolean]",Ue="[object Date]",Ke="[object DOMException]",Ve="[object Error]",bt="[object Function]",vt="[object GeneratorFunction]",It="[object Map]",Yt="[object Number]",Kt="[object Null]",on="[object Object]",Hn="[object Promise]",Wt="[object Proxy]",Gn="[object RegExp]",On="[object Set]",Bn="[object String]",Tn="[object Symbol]",Bi="[object Undefined]",Vn="[object WeakMap]",Lt="[object WeakSet]",De="[object ArrayBuffer]",de="[object DataView]",oe="[object Float32Array]",le="[object Float64Array]",me="[object Int8Array]",Ie="[object Int16Array]",Qe="[object Int32Array]",At="[object Uint8Array]",He="[object Uint8ClampedArray]",Re="[object Uint16Array]",Ze="[object Uint32Array]",y=/\b__p \+= '';/g,yt=/\b(__p \+=) '' \+/g,dt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kt=/&(?:amp|lt|gt|quot|#39);/g,rt=/[&<>"']/g,tn=RegExp(kt.source),Rn=RegExp(rt.source),wn=/<%-([\s\S]+?)%>/g,ii=/<%([\s\S]+?)%>/g,Qn=/<%=([\s\S]+?)%>/g,Vi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nr=/^\w*$/,Oi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hi=/[\\^$.*+?()[\]{}|]/g,ti=RegExp(hi.source),Yi=/^\s+/,Sn=/\s/,co=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$i=/\{\n\/\* \[wrapped with (.+)\] \*/,_a=/,? & /,Ro=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Jn=/[()=,{}\[\]\/\s]/,Ar=/\\(\\)?/g,ji=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_r=/\w*$/,Wa=/^[-+]0x[0-9a-f]+$/i,Dr=/^0b[01]+$/i,Ni=/^\[object .+?Constructor\]$/,bl=/^0o[0-7]+$/i,La=/^(?:0|[1-9]\d*)$/,Bo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rs=/($^)/,Pl=/['\n\r\u2028\u2029\\]/g,ho="\\ud800-\\udfff",Xu="\\u0300-\\u036f",Fa="\\ufe20-\\ufe2f",Zi="\\u20d0-\\u20ff",wi=Xu+Fa+Zi,fs="\\u2700-\\u27bf",Oa="a-z\\xdf-\\xf6\\xf8-\\xff",ea="\\xac\\xb1\\xd7\\xf7",Xe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Bt="\\u2000-\\u206f",Mn=" \\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",Wn="A-Z\\xc0-\\xd6\\xd8-\\xde",an="\\ufe0e\\ufe0f",si=ea+Xe+Bt+Mn,no="['’]",Oo="["+ho+"]",ps="["+si+"]",Ws="["+wi+"]",Ju="\\d+",qi="["+fs+"]",jA="["+Oa+"]",Ou="[^"+ho+si+Ju+fs+Oa+Wn+"]",xl="\\ud83c[\\udffb-\\udfff]",Is="(?:"+Ws+"|"+xl+")",Tc="[^"+ho+"]",Xs="(?:\\ud83c[\\udde6-\\uddff]){2}",ta="[\\ud800-\\udbff][\\udc00-\\udfff]",Po="["+Wn+"]",pr="\\u200d",Gl="(?:"+jA+"|"+Ou+")",ba="(?:"+Po+"|"+Ou+")",Wl="(?:"+no+"(?:d|ll|m|re|s|t|ve))?",Iu="(?:"+no+"(?:D|LL|M|RE|S|T|VE))?",wr=Is+"?",Au="["+an+"]?",yA="(?:"+pr+"(?:"+[Tc,Xs,ta].join("|")+")"+Au+wr+")*",Wo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Io="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qa=Au+wr+yA,Ia="(?:"+[qi,Xs,ta].join("|")+")"+Qa,ca="(?:"+[Tc+Ws+"?",Ws,Xs,ta,Oo].join("|")+")",Pr=RegExp(no,"g"),cu=RegExp(Ws,"g"),Ya=RegExp(xl+"(?="+xl+")|"+ca+Qa,"g"),os=RegExp([Po+"?"+jA+"+"+Wl+"(?="+[ps,Po,"$"].join("|")+")",ba+"+"+Iu+"(?="+[ps,Po+Gl,"$"].join("|")+")",Po+"?"+Gl+"+"+Wl,Po+"+"+Iu,Io,Wo,Ju,Ia].join("|"),"g"),xa=RegExp("["+pr+ho+wi+an+"]"),Kr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ml=["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"],Ji=-1,Si={};Si[oe]=Si[le]=Si[me]=Si[Ie]=Si[Qe]=Si[At]=Si[He]=Si[Re]=Si[Ze]=!0,Si[gt]=Si[xt]=Si[De]=Si[je]=Si[de]=Si[Ue]=Si[Ve]=Si[bt]=Si[It]=Si[Yt]=Si[on]=Si[Gn]=Si[On]=Si[Bn]=Si[Vn]=!1;var Hr={};Hr[gt]=Hr[xt]=Hr[De]=Hr[de]=Hr[je]=Hr[Ue]=Hr[oe]=Hr[le]=Hr[me]=Hr[Ie]=Hr[Qe]=Hr[It]=Hr[Yt]=Hr[on]=Hr[Gn]=Hr[On]=Hr[Bn]=Hr[Tn]=Hr[At]=Hr[He]=Hr[Re]=Hr[Ze]=!0,Hr[Ve]=Hr[bt]=Hr[Vn]=!1;var ie={À:"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",ăLine truncated
*/var OH=s_.exports,M9;function IH(){return M9||(M9=1,function(n,e){(function(){var t,i="4.17.21",r=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",g=500,_="__lodash_placeholder__",E=1,O=2,B=4,z=1,N=2,Q=1,$=2,X=4,re=8,ne=16,V=32,J=64,W=128,he=256,ge=512,ve=30,_e="...",Me=800,be=16,ze=1,Ce=2,Fe=3,ot=1/0,mt=9007199254740991,it=17976931348623157e292,ue=NaN,We=4294967295,tt=We-1,ke=We>>>1,Et=[["ary",W],["bind",Q],["bindKey",$],["curry",re],["curryRight",ne],["flip",ge],["partial",V],["partialRight",J],["rearg",he]],gt="[object Arguments]",xt="[object Array]",Kt="[object AsyncFunction]",je="[object Boolean]",Ke="[object Date]",Ue="[object DOMException]",Ve="[object Error]",bt="[object Function]",vt="[object GeneratorFunction]",It="[object Map]",Yt="[object Number]",Ut="[object Null]",on="[object Object]",Hn="[object Promise]",Wt="[object Proxy]",Gn="[object RegExp]",On="[object Set]",Bn="[object String]",Tn="[object Symbol]",Oi="[object Undefined]",Vn="[object WeakMap]",Lt="[object WeakSet]",De="[object ArrayBuffer]",de="[object DataView]",oe="[object Float32Array]",le="[object Float64Array]",me="[object Int8Array]",Ie="[object Int16Array]",Qe="[object Int32Array]",At="[object Uint8Array]",He="[object Uint8ClampedArray]",Re="[object Uint16Array]",Ze="[object Uint32Array]",y=/\b__p \+= '';/g,yt=/\b(__p \+=) '' \+/g,dt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kt=/&(?:amp|lt|gt|quot|#39);/g,rt=/[&<>"']/g,tn=RegExp(kt.source),Rn=RegExp(rt.source),wn=/<%-([\s\S]+?)%>/g,ri=/<%([\s\S]+?)%>/g,Qn=/<%=([\s\S]+?)%>/g,$i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/,Ii=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,di=/[\\^$.*+?()[\]{}|]/g,ti=RegExp(di.source),qi=/^\s+/,Sn=/\s/,co=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Zi=/\{\n\/\* \[wrapped with (.+)\] \*/,_a=/,? & /,Ro=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Jn=/[()=,{}\[\]\/\s]/,cr=/\\(\\)?/g,Ni=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,br=/\w*$/,Wa=/^[-+]0x[0-9a-f]+$/i,Rr=/^0b[01]+$/i,Gi=/^\[object .+?Constructor\]$/,bl=/^0o[0-7]+$/i,La=/^(?:0|[1-9]\d*)$/,Bo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rs=/($^)/,Pl=/['\n\r\u2028\u2029\\]/g,ho="\\ud800-\\udfff",Xu="\\u0300-\\u036f",Fa="\\ufe20-\\ufe2f",Xi="\\u20d0-\\u20ff",Si=Xu+Fa+Xi,fs="\\u2700-\\u27bf",Oa="a-z\\xdf-\\xf6\\xf8-\\xff",ea="\\xac\\xb1\\xd7\\xf7",Xe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Bt="\\u2000-\\u206f",Mn=" \\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",Wn="A-Z\\xc0-\\xd6\\xd8-\\xde",an="\\ufe0e\\ufe0f",li=ea+Xe+Bt+Mn,no="['’]",Oo="["+ho+"]",ps="["+li+"]",Ws="["+Si+"]",Ju="\\d+",Hi="["+fs+"]",jA="["+Oa+"]",Ou="[^"+ho+li+Ju+fs+Oa+Wn+"]",xl="\\ud83c[\\udffb-\\udfff]",Is="(?:"+Ws+"|"+xl+")",Tc="[^"+ho+"]",Xs="(?:\\ud83c[\\udde6-\\uddff]){2}",ta="[\\ud800-\\udbff][\\udc00-\\udfff]",Po="["+Wn+"]",mr="\\u200d",Gl="(?:"+jA+"|"+Ou+")",ba="(?:"+Po+"|"+Ou+")",Wl="(?:"+no+"(?:d|ll|m|re|s|t|ve))?",Iu="(?:"+no+"(?:D|LL|M|RE|S|T|VE))?",Sr=Is+"?",Au="["+an+"]?",yA="(?:"+mr+"(?:"+[Tc,Xs,ta].join("|")+")"+Au+Sr+")*",Wo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Io="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qa=Au+Sr+yA,Ia="(?:"+[Hi,Xs,ta].join("|")+")"+Qa,ca="(?:"+[Tc+Ws+"?",Ws,Xs,ta,Oo].join("|")+")",Ur=RegExp(no,"g"),cu=RegExp(Ws,"g"),Ya=RegExp(xl+"(?="+xl+")|"+ca+Qa,"g"),os=RegExp([Po+"?"+jA+"+"+Wl+"(?="+[ps,Po,"$"].join("|")+")",ba+"+"+Iu+"(?="+[ps,Po+Gl,"$"].join("|")+")",Po+"?"+Gl+"+"+Wl,Po+"+"+Iu,Io,Wo,Ju,Ia].join("|"),"g"),xa=RegExp("["+mr+ho+Si+an+"]"),Kr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ml=["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"],er=-1,Ei={};Ei[oe]=Ei[le]=Ei[me]=Ei[Ie]=Ei[Qe]=Ei[At]=Ei[He]=Ei[Re]=Ei[Ze]=!0,Ei[gt]=Ei[xt]=Ei[De]=Ei[je]=Ei[de]=Ei[Ke]=Ei[Ve]=Ei[bt]=Ei[It]=Ei[Yt]=Ei[on]=Ei[Gn]=Ei[On]=Ei[Bn]=Ei[Vn]=!1;var Hr={};Hr[gt]=Hr[xt]=Hr[De]=Hr[de]=Hr[je]=Hr[Ke]=Hr[oe]=Hr[le]=Hr[me]=Hr[Ie]=Hr[Qe]=Hr[It]=Hr[Yt]=Hr[on]=Hr[Gn]=Hr[On]=Hr[Bn]=Hr[Tn]=Hr[At]=Hr[He]=Hr[Re]=Hr[Ze]=!0,Hr[Ve]=Hr[bt]=Hr[Vn]=!1;var ie={À:"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",ăLine truncated
/* [wrapped with `+P+`] */
`)}function C(M){return $r(M)||Yd(M)||!!(aA&&M&&M[aA])}function T(M,P){var Z=typeof M;return P=P??mt,!!P&&(Z=="number"||Z!="symbol"&&La.test(M))&&M>-1&&M%1==0&&M<P}function I(M,P,Z){if(!dl(Z))return!1;var we=typeof P;return(we=="number"?ou(Z)&&T(P,Z.length):we=="string"&&P in Z)?ru(Z[P],M):!1}function F(M,P){if($r(M))return!1;var Z=typeof M;return Z=="number"||Z=="symbol"||Z=="boolean"||M==null||hA(M)?!0:nr.test(M)||!Vi.test(M)||P!=null&&M in Ko(P)}function ee(M){var P=typeof M;return P=="string"||P=="number"||P=="symbol"||P=="boolean"?M!=="__proto__":M===null}function pe(M){var P=Cf(M),Z=at[P];if(typeof Z!="function"||!(P in vr.prototype))return!1;if(M===Z)return!0;var we=sp(Z);return!!we&&M===we[0]}function Se(M){return!!nd&&nd in M}var Pe=Ru?jh:nm;function Ge(M){var P=M&&M.constructor,Z=typeof P=="function"&&P.prototype||Du;return M===Z}function _t(M){return M===M&&!dl(M)}function Tt(M,P){return function(Z){return Z==null?!1:Z[M]===P&&(P!==t||M in Ko(Z))}}function en(M){var P=qp(M,function(we){return Z.size===g&&Z.clear(),we}),Z=P.cache;return P}function Vt(M,P){var Z=M[1],we=P[1],et=Z|we,pt=et<(Q|$|W),Ft=we==W&&Z==re||we==W&&Z==he&&M[7].length<=P[8]||we==(W|he)&&P[7].length<=P[8]&&Z==re;if(!(pt||Ft))return M;we&Q&&(M[2]=P[2],et|=Z&Q?0:X);var $t=P[3];if($t){var ln=M[3];M[3]=ln?Bl(ln,$t,P[4]):$t,M[4]=ln?vA(M[3],_):P[4]}return $t=P[5],$t&&(ln=M[5],M[5]=ln?Wc(ln,$t,P[6]):$t,M[6]=ln?vA(M[5],_):P[6]),$t=P[7],$t&&(M[7]=$t),we&W&&(M[8]=M[8]==null?P[8]:ha(M[8],P[8])),M[9]==null&&(M[9]=P[9]),M[0]=P[0],M[1]=et,M}function bn(M){var P=[];if(M!=null)for(var Z in Ko(M))P.push(Z);return P}function Pn(M){return qa.call(M)}function oi(M,P,Z){return P=qo(P===t?M.length-1:P,0),function(){for(var we=arguments,et=-1,pt=qo(we.length-P,0),Ft=Cn(pt);++et<pt;)Ft[et]=we[P+et];et=-1;for(var $t=Cn(P+1);++et<P;)$t[et]=we[et];return $t[P]=Z(Ft),Cs(M,this,$t)}}function mi(M,P){return P.length<2?M:gu(M,Jt(P,0,-1))}function Ci(M,P){for(var Z=M.length,we=ha(P.length,Z),et=Mo(M);we--;){var pt=P[we];M[we]=T(pt,Z)?et[pt]:t}return M}function gi(M,P){if(!(P==="constructor"&&typeof M[P]=="function")&&P!="__proto__")return M[P]}var Ri=Sr(Ot),lr=Ud||function(M,P){return Pi.setTimeout(M,P)},Hi=Sr(Ht);function to(M,P,Z){var we=P+"";return Hi(M,d(we,ws(qs(we),Z)))}function Sr(M){var P=0,Z=0;return function(){var we=YA(),et=be-(we-Z);if(Z=we,et>0){if(++P>=Me)return arguments[0]}else P=0;return M.apply(t,arguments)}}function As(M,P){var Z=-1,we=M.length,et=we-1;for(P=P===t?we:P;++Z<P;){var pt=ht(Z,et),Ft=M[pt];M[pt]=M[Z],M[Z]=Ft}return M.length=P,M}var ma=en(function(M){var P=[];return M.charCodeAt(0)===46&&P.push(""),M.replace(Oi,function(Z,we,et,pt){P.push(et?pt.replace(Ar,"$1"):we||Z)}),P});function Vr(M){if(typeof M=="string"||hA(M))return M;var P=M+"";return P=="0"&&1/M==-ot?"-0":P}function Ms(M){if(M!=null){try{return Kl.call(M)}catch{}try{return M+""}catch{}}return""}function ws(M,P){return za(Et,function(Z){var we="_."+Z[0];P&Z[1]&&!wh(M,we)&&M.push(we)}),M.sort()}function ga(M){if(M instanceof vr)return M.clone();var P=new na(M.__wrapped__,M.__chain__);return P.__actions__=Mo(M.__actions__),P.__index__=M.__index__,P.__values__=M.__values__,P}function nu(M,P,Z){(Z?I(M,P,Z):P===t)?P=1:P=qo(ao(P),0);var we=M==null?0:M.length;if(!we||P<1)return[];for(var et=0,pt=0,Ft=Cn(rh(we/P));et<we;)Ft[pt++]=Jt(M,et,et+=P);return Ft}function Ps(M){for(var P=-1,Z=M==null?0:M.length,we=0,et=[];++P<Z;){var pt=M[P];pt&&(et[we++]=pt)}return et}function Hs(){var M=arguments.length;if(!M)return[];for(var P=Cn(M-1),Z=arguments[0],we=M;we--;)P[we-1]=arguments[we];return hc($r(Z)?Mo(Z):[Z],Ur(P,1))}var Tr=Ct(function(M,P){return Tl(M)?Lo(M,Ur(P,1,Tl,!0)):[]}),ka=Ct(function(M,P){var Z=DA(P);return Tl(Z)&&(Z=t),Tl(M)?Lo(M,Ur(P,1,Tl,!0),gr(Z,2)):[]}),iu=Ct(function(M,P){var Z=DA(P);return Tl(Z)&&(Z=t),Tl(M)?Lo(M,Ur(P,1,Tl,!0),t,Z):[]});function xc(M,P,Z){var we=M==null?0:M.length;return we?(P=Z||P===t?1:ao(P),Jt(M,P<0?0:P,we)):[]}function bu(M,P,Z){var we=M==null?0:M.length;return we?(P=Z||P===t?1:ao(P),P=we-P,Jt(M,0,P<0?0:P)):[]}function dh(M,P){return M&&M.length?jo(M,gr(P,3),!0,!0):[]}function gs(M,P){return M&&M.length?jo(M,gr(P,3),!0):[]}function kA(M,P,Z,we){var et=M==null?0:M.length;return et?(Z&&typeof Z!="number"&&I(M,P,Z)&&(Z=0,we=et),oo(M,P,Z,we)):[]}function Ol(M,P,Z){var we=M==null?0:M.length;if(!we)return-1;var et=Z==null?0:ao(Z);return et<0&&(et=qo(we+et,0)),nA(M,gr(P,3),et)}function Mc(M,P,Z){var we=M==null?0:M.length;if(!we)return-1;var et=we-1;return Z!==t&&(et=ao(Z),et=Z<0?qo(we+et,0):ha(et,we-1)),nA(M,gr(P,3),et,!0)}function hl(M){var P=M==null?0:M.length;return P?Ur(M,1):[]}function xu(M){var P=M==null?0:M.length;return P?Ur(M,ot):[]}function ic(M,P){var Z=M==null?0:M.length;return Z?(P=P===t?1:ao(P),Ur(M,P)):[]}function fd(M){for(var P=-1,Z=M==null?0:M.length,we={};++P<Z;){var et=M[P];we[et[0]]=et[1]}return we}function xf(M){return M&&M.length?M[0]:t}function u1(M,P,Z){var we=M==null?0:M.length;if(!we)return-1;var et=Z==null?0:ao(Z);return et<0&&( Line truncated
`;M.replace(Gi,function(lo,Pa,Ja,Of,vd,If){return Ja||(Ja=Of),Ai+=M.slice(qn,If).replace(Pl,iA),Pa&&($t=!0,Ai+=`' +
`)}function C(M){return $r(M)||Yd(M)||!!(aA&&M&&M[aA])}function T(M,P){var Z=typeof M;return P=P??mt,!!P&&(Z=="number"||Z!="symbol"&&La.test(M))&&M>-1&&M%1==0&&M<P}function I(M,P,Z){if(!dl(Z))return!1;var we=typeof P;return(we=="number"?ou(Z)&&T(P,Z.length):we=="string"&&P in Z)?ru(Z[P],M):!1}function F(M,P){if($r(M))return!1;var Z=typeof M;return Z=="number"||Z=="symbol"||Z=="boolean"||M==null||hA(M)?!0:ir.test(M)||!$i.test(M)||P!=null&&M in Uo(P)}function ee(M){var P=typeof M;return P=="string"||P=="number"||P=="symbol"||P=="boolean"?M!=="__proto__":M===null}function pe(M){var P=Cf(M),Z=at[P];if(typeof Z!="function"||!(P in Cr.prototype))return!1;if(M===Z)return!0;var we=sp(Z);return!!we&&M===we[0]}function Se(M){return!!nd&&nd in M}var Pe=Ru?jh:nm;function Ge(M){var P=M&&M.constructor,Z=typeof P=="function"&&P.prototype||Du;return M===Z}function _t(M){return M===M&&!dl(M)}function Tt(M,P){return function(Z){return Z==null?!1:Z[M]===P&&(P!==t||M in Uo(Z))}}function en(M){var P=qp(M,function(we){return Z.size===g&&Z.clear(),we}),Z=P.cache;return P}function Vt(M,P){var Z=M[1],we=P[1],et=Z|we,pt=et<(Q|$|W),Ft=we==W&&Z==re||we==W&&Z==he&&M[7].length<=P[8]||we==(W|he)&&P[7].length<=P[8]&&Z==re;if(!(pt||Ft))return M;we&Q&&(M[2]=P[2],et|=Z&Q?0:X);var $t=P[3];if($t){var ln=M[3];M[3]=ln?Bl(ln,$t,P[4]):$t,M[4]=ln?vA(M[3],_):P[4]}return $t=P[5],$t&&(ln=M[5],M[5]=ln?Wc(ln,$t,P[6]):$t,M[6]=ln?vA(M[5],_):P[6]),$t=P[7],$t&&(M[7]=$t),we&W&&(M[8]=M[8]==null?P[8]:ha(M[8],P[8])),M[9]==null&&(M[9]=P[9]),M[0]=P[0],M[1]=et,M}function bn(M){var P=[];if(M!=null)for(var Z in Uo(M))P.push(Z);return P}function Pn(M){return qa.call(M)}function ai(M,P,Z){return P=qo(P===t?M.length-1:P,0),function(){for(var we=arguments,et=-1,pt=qo(we.length-P,0),Ft=Cn(pt);++et<pt;)Ft[et]=we[P+et];et=-1;for(var $t=Cn(P+1);++et<P;)$t[et]=we[et];return $t[P]=Z(Ft),Cs(M,this,$t)}}function gi(M,P){return P.length<2?M:gu(M,Jt(P,0,-1))}function _i(M,P){for(var Z=M.length,we=ha(P.length,Z),et=Mo(M);we--;){var pt=P[we];M[we]=T(pt,Z)?et[pt]:t}return M}function yi(M,P){if(!(P==="constructor"&&typeof M[P]=="function")&&P!="__proto__")return M[P]}var Pi=Er(Ot),ur=Kd||function(M,P){return Ui.setTimeout(M,P)},Vi=Er(Ht);function to(M,P,Z){var we=P+"";return Vi(M,d(we,ws(qs(we),Z)))}function Er(M){var P=0,Z=0;return function(){var we=YA(),et=be-(we-Z);if(Z=we,et>0){if(++P>=Me)return arguments[0]}else P=0;return M.apply(t,arguments)}}function As(M,P){var Z=-1,we=M.length,et=we-1;for(P=P===t?we:P;++Z<P;){var pt=ht(Z,et),Ft=M[pt];M[pt]=M[Z],M[Z]=Ft}return M.length=P,M}var ma=en(function(M){var P=[];return M.charCodeAt(0)===46&&P.push(""),M.replace(Ii,function(Z,we,et,pt){P.push(et?pt.replace(cr,"$1"):we||Z)}),P});function Vr(M){if(typeof M=="string"||hA(M))return M;var P=M+"";return P=="0"&&1/M==-ot?"-0":P}function Ms(M){if(M!=null){try{return Ul.call(M)}catch{}try{return M+""}catch{}}return""}function ws(M,P){return za(Et,function(Z){var we="_."+Z[0];P&Z[1]&&!wh(M,we)&&M.push(we)}),M.sort()}function ga(M){if(M instanceof Cr)return M.clone();var P=new na(M.__wrapped__,M.__chain__);return P.__actions__=Mo(M.__actions__),P.__index__=M.__index__,P.__values__=M.__values__,P}function nu(M,P,Z){(Z?I(M,P,Z):P===t)?P=1:P=qo(ao(P),0);var we=M==null?0:M.length;if(!we||P<1)return[];for(var et=0,pt=0,Ft=Cn(rh(we/P));et<we;)Ft[pt++]=Jt(M,et,et+=P);return Ft}function Ps(M){for(var P=-1,Z=M==null?0:M.length,we=0,et=[];++P<Z;){var pt=M[P];pt&&(et[we++]=pt)}return et}function Hs(){var M=arguments.length;if(!M)return[];for(var P=Cn(M-1),Z=arguments[0],we=M;we--;)P[we-1]=arguments[we];return hc($r(Z)?Mo(Z):[Z],Lr(P,1))}var kr=Ct(function(M,P){return Tl(M)?Lo(M,Lr(P,1,Tl,!0)):[]}),ka=Ct(function(M,P){var Z=DA(P);return Tl(Z)&&(Z=t),Tl(M)?Lo(M,Lr(P,1,Tl,!0),yr(Z,2)):[]}),iu=Ct(function(M,P){var Z=DA(P);return Tl(Z)&&(Z=t),Tl(M)?Lo(M,Lr(P,1,Tl,!0),t,Z):[]});function xc(M,P,Z){var we=M==null?0:M.length;return we?(P=Z||P===t?1:ao(P),Jt(M,P<0?0:P,we)):[]}function bu(M,P,Z){var we=M==null?0:M.length;return we?(P=Z||P===t?1:ao(P),P=we-P,Jt(M,0,P<0?0:P)):[]}function dh(M,P){return M&&M.length?jo(M,yr(P,3),!0,!0):[]}function gs(M,P){return M&&M.length?jo(M,yr(P,3),!0):[]}function kA(M,P,Z,we){var et=M==null?0:M.length;return et?(Z&&typeof Z!="number"&&I(M,P,Z)&&(Z=0,we=et),oo(M,P,Z,we)):[]}function Ol(M,P,Z){var we=M==null?0:M.length;if(!we)return-1;var et=Z==null?0:ao(Z);return et<0&&(et=qo(we+et,0)),nA(M,yr(P,3),et)}function Mc(M,P,Z){var we=M==null?0:M.length;if(!we)return-1;var et=we-1;return Z!==t&&(et=ao(Z),et=Z<0?qo(we+et,0):ha(et,we-1)),nA(M,yr(P,3),et,!0)}function hl(M){var P=M==null?0:M.length;return P?Lr(M,1):[]}function xu(M){var P=M==null?0:M.length;return P?Lr(M,ot):[]}function ic(M,P){var Z=M==null?0:M.length;return Z?(P=P===t?1:ao(P),Lr(M,P)):[]}function fd(M){for(var P=-1,Z=M==null?0:M.length,we={};++P<Z;){var et=M[P];we[et[0]]=et[1]}return we}function xf(M){return M&&M.length?M[0]:t}function u1(M,P,Z){var we=M==null?0:M.length;if(!we)return-1;var et=Z==null?0:ao(Z);return et<0&&( Line truncated
`;M.replace(Wi,function(lo,Pa,Ja,Of,vd,If){return Ja||(Ja=Of),ci+=M.slice(qn,If).replace(Pl,iA),Pa&&($t=!0,ci+=`' +
__e(`+Pa+`) +
'`),vd&&(ln=!0,Ai+=`';
'`),vd&&(ln=!0,ci+=`';
`+vd+`;
__p += '`),Ja&&(Ai+=`' +
__p += '`),Ja&&(ci+=`' +
((__t = (`+Ja+`)) == null ? '' : __t) +
'`),qn=If+lo.length,lo}),Ai+=`';
`;var so=Yo.call(P,"variable")&&P.variable;if(!so)Ai=`with (obj) {
`+Ai+`
'`),qn=If+lo.length,lo}),ci+=`';
`;var so=Yo.call(P,"variable")&&P.variable;if(!so)ci=`with (obj) {
`+ci+`
}
`;else if(Jn.test(so))throw new Br(a);Ai=(ln?Ai.replace(y,""):Ai).replace(yt,"$1").replace(dt,"$1;"),Ai="function("+(so||"obj")+`) {
`;else if(Jn.test(so))throw new Or(a);ci=(ln?ci.replace(y,""):ci).replace(yt,"$1").replace(dt,"$1;"),ci="function("+(so||"obj")+`) {
`+(so?"":`obj || (obj = {});
`)+"var __t, __p = ''"+($t?", __e = _.escape":"")+(ln?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Ai+`return __p
}`;var ya=se(function(){return ko(pt,Er+"return "+Ai).apply(t,Ft)});if(ya.source=Ai,al(ya))throw ya;return ya}function yl(M){return Na(M).toLowerCase()}function Xa(M){return Na(M).toUpperCase()}function Nh(M,P,Z){if(M=Na(M),M&&(Z||P===t))return Vf(M);if(!M||!(P=Mi(P)))return M;var we=ku(M),et=ku(P),pt=du(we,et),Ft=kc(we,et)+1;return Rs(we,pt,Ft).join("")}function Zm(M,P,Z){if(M=Na(M),M&&(Z||P===t))return M.slice(0,WA(M)+1);if(!M||!(P=Mi(P)))return M;var we=ku(M),et=kc(we,ku(P))+1;return Rs(we,0,et).join("")}function Vc(M,P,Z){if(M=Na(M),M&&(Z||P===t))return M.replace(Yi,"");if(!M||!(P=Mi(P)))return M;var we=ku(M),et=du(we,ku(P));return Rs(we,et).join("")}function A(M,P){var Z=ve,we=_e;if(dl(P)){var et="separator"in P?P.separator:et;Z="length"in P?ao(P.length):Z,we="omission"in P?Mi(P.omission):we}M=Na(M);var pt=M.length;if(Dc(M)){var Ft=ku(M);pt=Ft.length}if(Z>=pt)return M;var $t=Z-fc(we);if($t<1)return we;var ln=Ft?Rs(Ft,0,$t).join(""):M.slice(0,$t);if(et===t)return ln+we;if(Ft&&($t+=ln.length-$t),Zp(et)){if(M.slice($t).search(et)){var qn,Zn=ln;for(et.global||(et=ih(et.source,Na(_r.exec(et))+"g")),et.lastIndex=0;qn=et.exec(Zn);)var Ai=qn.index;ln=ln.slice(0,Ai===t?$t:Ai)}}else if(M.indexOf(Mi(et),$t)!=$t){var Gi=ln.lastIndexOf(et);Gi>-1&&(ln=ln.slice(0,Gi))}return ln+we}function m(M){return M=Na(M),M&&tn.test(M)?M.replace(kt,To):M}var x=Za(function(M,P,Z){return M+(Z?" ":"")+P.toUpperCase()}),D=uA("toUpperCase");function Y(M,P,Z){return M=Na(M),P=Z?t:P,P===t?td(M)?zp(M):Yf(M):M.match(P)||[]}var se=Ct(function(M,P){try{return Cs(M,t,P)}catch(Z){return al(Z)?Z:new Br(Z)}}),Ye=ms(function(M,P){return za(P,function(Z){Z=Vr(Z),wA(M,Z,rc(M[Z],M))}),M});function st(M){var P=M==null?0:M.length,Z=gr();return M=P?go(M,function(we){if(typeof we[1]!="function")throw new fu(s);return[Z(we[0]),we[1]]}):[],Ct(function(we){for(var et=-1;++et<P;){var pt=M[et];if(Cs(pt[0],this,we))return Cs(pt[1],this,we)}})}function jt(M){return Np(Sl(M,E))}function dn(M){return function(){return M}}function Dn(M,P){return M==null||M!==M?P:M}var Nn=TA(),mn=TA(!0);function pn(M){return M}function Lr(M){return k(typeof M=="function"?M:Sl(M,E))}function Fr(M){return R(Sl(M,E))}function Bs(M,P){return j(M,Sl(P,E))}var nn=Ct(function(M,P){return function(Z){return EA(Z,M,P)}}),Zt=Ct(function(M,P){return function(Z){return EA(M,Z,P)}});function cn(M,P,Z){var we=ae(P),et=ju(P,we);Z==null&&!(dl(P)&&(et.length||!we.length))&&(Z=P,P=M,M=this,et=ju(P,ae(P)));var pt=!(dl(Z)&&"chain"in Z)||!!Z.chain,Ft=jh(M);return za(et,function($t){var ln=P[$t];M[$t]=ln,Ft&&(M.prototype[$t]=function(){var qn=this.__chain__;if(pt||qn){var Zn=M(this.__wrapped__),Ai=Zn.__actions__=Mo(this.__actions__);return Ai.push({func:ln,args:arguments,thisArg:M}),Zn.__chain__=qn,Zn}return ln.apply(M,hc([this.value()],arguments))})}),M}function Ln(){return Pi._===this&&(Pi._=Ts),this}function or(){}function $o(M){return M=ao(M),Ct(function(P){return fe(P,M)})}var rr=np(go),kr=np(NA),qu=np(Sh);function Ra(M){return F(M)?Zh(Vr(M)):Ne(M)}function _p(M){return function(P){return M==null?t:gu(M,P)}}var LC=bc(),wc=bc(!0);function Ch(){return[]}function nm(){return!1}function Bf(){return{}}function z0(){return""}function bp(){return!0}function MY(M,P){if(M=ao(M),M<1||M>mt)return[];var Z=We,we=ha(M,We);P=gr(P),M-=We;for(var et=Bh(we,P);++Z<M;)P(Z);return et}function wY(M){return $r(M)?go(M,Vr):hA(M)?[M]:Mo(ma(Na(M)))}function SY(M){var P=++_A;return Na(M)+P}var EY=hd(function(M,P){return M+P},0),BY=rp("ceil"),OY=hd(function(M,P){return M/P},1),IY=rp("floor");function TY(M){return M&&M.length?SA(M,pn,Xl):t}function kY(M,P){return M&&M.length?SA(M,gr(P,2),Xl):t}function DY(M){return Td(M,pn)}function RY(M,P){return Td(M,gr(P,2))}function PY(M){return M&&M.length?SA(M,pn,b):t}function KY(M,P){return M&&M.length?SA(M,gr(P,2),b):t}var UY=hd(function(M,P){return M*P},1),LY=rp("round"),FY=hd(function(M,P){return M-P},0);function zY(M){return M&&M.length?Eh(M,pn):0}function jY(M,P){return M&&M.length?Eh(M,gr(P,2)):0}return at.after=DC,at.ary=C1,at.assign=T1,at.assignIn=Mg,at.assignInWith=U0,at.assignWith=L0,at.at=k1,at.before=Wm,at.bind=rc,at.bindAll=Ye,at.bindKey=pd,at.castArray=PC,at.chain=fp,at.chunk=nu,at.compact=Ps,at.concat=Hs,at.cond=st,at.conforms=jt,at.constant=dn,at.countBy=zm,at.create=Yy,at.curry=Qm,at.curryRight=Ym,at.debounce=vp,at.defaults=D1,at.defaultsDeep=F0,at.defer=gh,at.delay=Yp,at.difference=Tr,at.differenceBy=ka,at.differenceWith=iu,at.drop=xc,at.dropRight=bu,at.dropRightWhile=dh,at.dropWhile=gs,at.fill=kA,at.filter=ky,at.flatMap=B0,at.flatMapDeep=Ry,at.flatMapDepth=gp,at.flatten=hl,at.flattenDeep=xu,at.flattenDepth=ic,at.flip=RC,at.flow=Nn,at.flowRight=mn,at.fromPairs=fd,at.functions=u,at.functionsIn=c,at.groupBy=O0,at.initial=A1,at.intersection=Gd,at.intersectionBy=Qp,at.intersectionWith=Dm,at.invert=U,at.invertBy=G,at.invokeMap=mg,at.iteratee=Lr,at.keyBy=Py,at.keys=ae,at.keysIn=ce,at.map=Nm,at.mapKeys=xe,at.mapValues=Le,at.matches=Fr,at.matchesProperty=Bs,at.memoize=qp,at Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(E[1])} }\`.`)];const O=[];return n.layerType==="symbol"&&(a==="text-field"&&r&&!r.glyphs&&O.push(new _i(t,s,'use of "text-field" requires a style "glyphs" property')),a==="text-font"&&mC(ly(s))&&mA(s.type)==="identity"&&O.push(new _i(t,s,'"text-font" does not support identity functions'))),O.concat(i({key:n.key,value:s,valueSpec:_,style:r,styleSpec:o,expressionContext:"property",propertyType:e,propertyKey:a}))}function tj(n){return ej(n,"paint")}function nj(n){return ej(n,"layout")}function ij(n){let e=[];const t=n.value,i=n.key,r=n.style,o=n.styleSpec;if(Ca(t)!=="object")return[new _i(i,t,`object expected, ${Ca(t)} found`)];!t.type&&!t.ref&&e.push(new _i(i,t,'either "type" or "ref" is required'));let s=mA(t.type);const a=mA(t.ref);if(t.id){const p=mA(t.id);for(let g=0;g<n.arrayIndex;g++){const _=r.layers[g];mA(_.id)===p&&e.push(new _i(i,t.id,`duplicate layer id "${t.id}", previously used at line ${_.id.__line__}`))}}if("ref"in t){["type","source","source-layer","filter","layout"].forEach(g=>{g in t&&e.push(new _i(i,t[g],`"${g}" is prohibited for ref layers`))});let p;r.layers.forEach(g=>{mA(g.id)===a&&(p=g)}),p?p.ref?e.push(new _i(i,t.ref,"ref cannot reference another ref layer")):s=mA(p.type):e.push(new _i(i,t.ref,`ref layer "${a}" not found`))}else if(s!=="background")if(!t.source)e.push(new _i(i,t,'missing required property "source"'));else{const p=r.sources&&r.sources[t.source],g=p&&mA(p.type);p?g==="vector"&&s==="raster"?e.push(new _i(i,t.source,`layer "${t.id}" requires a raster source`)):g!=="raster-dem"&&s==="hillshade"?e.push(new _i(i,t.source,`layer "${t.id}" requires a raster-dem source`)):g!=="raster-dem"&&s==="color-relief"?e.push(new _i(i,t.source,`layer "${t.id}" requires a raster-dem source`)):g==="raster"&&s!=="raster"?e.push(new _i(i,t.source,`layer "${t.id}" requires a vector source`)):g==="vector"&&!t["source-layer"]?e.push(new _i(i,t,`layer "${t.id}" must specify a "source-layer"`)):g==="raster-dem"&&s!=="hillshade"&&s!=="color-relief"?e.push(new _i(i,t.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):s==="line"&&t.paint&&t.paint["line-gradient"]&&(g!=="geojson"||!p.lineMetrics)&&e.push(new _i(i,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new _i(i,t.source,`source "${t.source}" not found`))}return e=e.concat(Tp({key:i,value:t,valueSpec:o.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${i}.type`,value:t.type,valueSpec:o.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:_8,layout(p){return Tp({layer:t,key:p.key,value:p.value,style:p.style,styleSpec:p.styleSpec,validateSpec:p.validateSpec,objectElementValidators:{"*"(g){return nj(Jv({layerType:s},g))}}})},paint(p){return Tp({layer:t,key:p.key,value:p.value,style:p.style,styleSpec:p.styleSpec,validateSpec:p.validateSpec,objectElementValidators:{"*"(g){return tj(Jv({layerType:s},g))}}})}}})),e}function uy(n){const e=n.value,t=n.key,i=Ca(e);return i!=="string"?[new _i(t,e,`string expected, ${i} found`)]:[]}function FZ(n){var e;const t=(e=n.sourceName)!==null&&e!==void 0?e:"",i=n.value,r=n.styleSpec,o=r.source_raster_dem,s=n.style;let a=[];const p=Ca(i);if(i===void 0)return a;if(p!=="object")return a.push(new _i("source_raster_dem",i,`object expected, ${p} found`)),a;const _=mA(i.encoding)==="custom",E=["redFactor","greenFactor","blueFactor","baseShift"],O=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const B in i)!_&&E.includes(B)?a.push(new _i(B,i[B],`In "${t}": "${B}" is only valid when "encoding" is set to "custom". ${O} encoding found`)):o[B]?a=a.concat(n.validateSpec({key:B,value:i[B],valueSpec:o[B],validateSpec:n.validateSpec,style:s,styleSpec:r})):a.push(new _i(B,i[B],`unknown property "${B}"`));return a}const $9={promoteId:zZ};function rj(n){const e=n.value,t=n.key,i=n.styleSpec,r=n.style,o=n.validateSpec;if(!e.type)return[new _i(t,e,'"type" is required')];const s=mA(e.type);let a;switch(s){case"vector":case"raster":return a=Tp({key:t,value:e,valueSpec:i[`source_${s.replace("-","_")}`],style:n.style,styleSpec:i,objectElementValidators:$9,validateSpec:o}),a;case"raster-dem":return a=FZ({sourceName:t,value:e,style:n.style,styleSpec:i,validateSpec:o}),a;case"geojson":if(a=Tp({key:t,value:e,valueSpec:i.source_geojson,style:r,styleSpec:i,validateSpec:o,objectElementValidators:$9}),e.cluster)for(const p in e.clusterProperties){const[g,_]=e.clusterProperties[p],E=typeof g=="string"?[g,["accumulated"],["get",p]]:g;a.push(...nC({key:`${t}.${p}.map`,value:_,expressionContext:"cluster-map"})),a.push(...nC({key:`${t}.${p}.reduce`,value:E,expressionContext:"cluster-reduce"}))}return a;case"video":return Tp({key:t,value:e,valueSpec:i.source_video,style:r,validateSpec:o,sLine truncated
`)+ci+`return __p
}`;var ya=se(function(){return ko(pt,Br+"return "+ci).apply(t,Ft)});if(ya.source=ci,al(ya))throw ya;return ya}function yl(M){return Na(M).toLowerCase()}function Xa(M){return Na(M).toUpperCase()}function Nh(M,P,Z){if(M=Na(M),M&&(Z||P===t))return Vf(M);if(!M||!(P=wi(P)))return M;var we=ku(M),et=ku(P),pt=du(we,et),Ft=kc(we,et)+1;return Rs(we,pt,Ft).join("")}function Zm(M,P,Z){if(M=Na(M),M&&(Z||P===t))return M.slice(0,WA(M)+1);if(!M||!(P=wi(P)))return M;var we=ku(M),et=kc(we,ku(P))+1;return Rs(we,0,et).join("")}function Vc(M,P,Z){if(M=Na(M),M&&(Z||P===t))return M.replace(qi,"");if(!M||!(P=wi(P)))return M;var we=ku(M),et=du(we,ku(P));return Rs(we,et).join("")}function A(M,P){var Z=ve,we=_e;if(dl(P)){var et="separator"in P?P.separator:et;Z="length"in P?ao(P.length):Z,we="omission"in P?wi(P.omission):we}M=Na(M);var pt=M.length;if(Dc(M)){var Ft=ku(M);pt=Ft.length}if(Z>=pt)return M;var $t=Z-fc(we);if($t<1)return we;var ln=Ft?Rs(Ft,0,$t).join(""):M.slice(0,$t);if(et===t)return ln+we;if(Ft&&($t+=ln.length-$t),Zp(et)){if(M.slice($t).search(et)){var qn,Zn=ln;for(et.global||(et=ih(et.source,Na(br.exec(et))+"g")),et.lastIndex=0;qn=et.exec(Zn);)var ci=qn.index;ln=ln.slice(0,ci===t?$t:ci)}}else if(M.indexOf(wi(et),$t)!=$t){var Wi=ln.lastIndexOf(et);Wi>-1&&(ln=ln.slice(0,Wi))}return ln+we}function m(M){return M=Na(M),M&&tn.test(M)?M.replace(kt,To):M}var x=Za(function(M,P,Z){return M+(Z?" ":"")+P.toUpperCase()}),D=uA("toUpperCase");function Y(M,P,Z){return M=Na(M),P=Z?t:P,P===t?td(M)?zp(M):Yf(M):M.match(P)||[]}var se=Ct(function(M,P){try{return Cs(M,t,P)}catch(Z){return al(Z)?Z:new Or(Z)}}),Ye=ms(function(M,P){return za(P,function(Z){Z=Vr(Z),wA(M,Z,rc(M[Z],M))}),M});function st(M){var P=M==null?0:M.length,Z=yr();return M=P?go(M,function(we){if(typeof we[1]!="function")throw new fu(s);return[Z(we[0]),we[1]]}):[],Ct(function(we){for(var et=-1;++et<P;){var pt=M[et];if(Cs(pt[0],this,we))return Cs(pt[1],this,we)}})}function jt(M){return Np(Sl(M,E))}function dn(M){return function(){return M}}function Dn(M,P){return M==null||M!==M?P:M}var Nn=TA(),mn=TA(!0);function pn(M){return M}function Fr(M){return k(typeof M=="function"?M:Sl(M,E))}function zr(M){return R(Sl(M,E))}function Bs(M,P){return j(M,Sl(P,E))}var nn=Ct(function(M,P){return function(Z){return EA(Z,M,P)}}),Zt=Ct(function(M,P){return function(Z){return EA(M,Z,P)}});function cn(M,P,Z){var we=ae(P),et=ju(P,we);Z==null&&!(dl(P)&&(et.length||!we.length))&&(Z=P,P=M,M=this,et=ju(P,ae(P)));var pt=!(dl(Z)&&"chain"in Z)||!!Z.chain,Ft=jh(M);return za(et,function($t){var ln=P[$t];M[$t]=ln,Ft&&(M.prototype[$t]=function(){var qn=this.__chain__;if(pt||qn){var Zn=M(this.__wrapped__),ci=Zn.__actions__=Mo(this.__actions__);return ci.push({func:ln,args:arguments,thisArg:M}),Zn.__chain__=qn,Zn}return ln.apply(M,hc([this.value()],arguments))})}),M}function Ln(){return Ui._===this&&(Ui._=Ts),this}function ar(){}function $o(M){return M=ao(M),Ct(function(P){return fe(P,M)})}var or=np(go),Dr=np(NA),qu=np(Sh);function Ra(M){return F(M)?Zh(Vr(M)):Ne(M)}function _p(M){return function(P){return M==null?t:gu(M,P)}}var LC=bc(),wc=bc(!0);function Ch(){return[]}function nm(){return!1}function Bf(){return{}}function z0(){return""}function bp(){return!0}function MY(M,P){if(M=ao(M),M<1||M>mt)return[];var Z=We,we=ha(M,We);P=yr(P),M-=We;for(var et=Bh(we,P);++Z<M;)P(Z);return et}function wY(M){return $r(M)?go(M,Vr):hA(M)?[M]:Mo(ma(Na(M)))}function SY(M){var P=++_A;return Na(M)+P}var EY=hd(function(M,P){return M+P},0),BY=rp("ceil"),OY=hd(function(M,P){return M/P},1),IY=rp("floor");function TY(M){return M&&M.length?SA(M,pn,Xl):t}function kY(M,P){return M&&M.length?SA(M,yr(P,2),Xl):t}function DY(M){return Td(M,pn)}function RY(M,P){return Td(M,yr(P,2))}function PY(M){return M&&M.length?SA(M,pn,b):t}function UY(M,P){return M&&M.length?SA(M,yr(P,2),b):t}var KY=hd(function(M,P){return M*P},1),LY=rp("round"),FY=hd(function(M,P){return M-P},0);function zY(M){return M&&M.length?Eh(M,pn):0}function jY(M,P){return M&&M.length?Eh(M,yr(P,2)):0}return at.after=DC,at.ary=C1,at.assign=T1,at.assignIn=Mg,at.assignInWith=K0,at.assignWith=L0,at.at=k1,at.before=Wm,at.bind=rc,at.bindAll=Ye,at.bindKey=pd,at.castArray=PC,at.chain=fp,at.chunk=nu,at.compact=Ps,at.concat=Hs,at.cond=st,at.conforms=jt,at.constant=dn,at.countBy=zm,at.create=Yy,at.curry=Qm,at.curryRight=Ym,at.debounce=vp,at.defaults=D1,at.defaultsDeep=F0,at.defer=gh,at.delay=Yp,at.difference=kr,at.differenceBy=ka,at.differenceWith=iu,at.drop=xc,at.dropRight=bu,at.dropRightWhile=dh,at.dropWhile=gs,at.fill=kA,at.filter=ky,at.flatMap=B0,at.flatMapDeep=Ry,at.flatMapDepth=gp,at.flatten=hl,at.flattenDeep=xu,at.flattenDepth=ic,at.flip=RC,at.flow=Nn,at.flowRight=mn,at.fromPairs=fd,at.functions=u,at.functionsIn=c,at.groupBy=O0,at.initial=A1,at.intersection=Gd,at.intersectionBy=Qp,at.intersectionWith=Dm,at.invert=K,at.invertBy=G,at.invokeMap=mg,at.iteratee=Fr,at.keyBy=Py,at.keys=ae,at.keysIn=ce,at.map=Nm,at.mapKeys=xe,at.mapValues=Le,at.matches=zr,at.matchesProperty=Bs,at.memoize=qp,at Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(E[1])} }\`.`)];const O=[];return n.layerType==="symbol"&&(a==="text-field"&&r&&!r.glyphs&&O.push(new bi(t,s,'use of "text-field" requires a style "glyphs" property')),a==="text-font"&&mC(ly(s))&&mA(s.type)==="identity"&&O.push(new bi(t,s,'"text-font" does not support identity functions'))),O.concat(i({key:n.key,value:s,valueSpec:_,style:r,styleSpec:o,expressionContext:"property",propertyType:e,propertyKey:a}))}function tj(n){return ej(n,"paint")}function nj(n){return ej(n,"layout")}function ij(n){let e=[];const t=n.value,i=n.key,r=n.style,o=n.styleSpec;if(Ca(t)!=="object")return[new bi(i,t,`object expected, ${Ca(t)} found`)];!t.type&&!t.ref&&e.push(new bi(i,t,'either "type" or "ref" is required'));let s=mA(t.type);const a=mA(t.ref);if(t.id){const p=mA(t.id);for(let g=0;g<n.arrayIndex;g++){const _=r.layers[g];mA(_.id)===p&&e.push(new bi(i,t.id,`duplicate layer id "${t.id}", previously used at line ${_.id.__line__}`))}}if("ref"in t){["type","source","source-layer","filter","layout"].forEach(g=>{g in t&&e.push(new bi(i,t[g],`"${g}" is prohibited for ref layers`))});let p;r.layers.forEach(g=>{mA(g.id)===a&&(p=g)}),p?p.ref?e.push(new bi(i,t.ref,"ref cannot reference another ref layer")):s=mA(p.type):e.push(new bi(i,t.ref,`ref layer "${a}" not found`))}else if(s!=="background")if(!t.source)e.push(new bi(i,t,'missing required property "source"'));else{const p=r.sources&&r.sources[t.source],g=p&&mA(p.type);p?g==="vector"&&s==="raster"?e.push(new bi(i,t.source,`layer "${t.id}" requires a raster source`)):g!=="raster-dem"&&s==="hillshade"?e.push(new bi(i,t.source,`layer "${t.id}" requires a raster-dem source`)):g!=="raster-dem"&&s==="color-relief"?e.push(new bi(i,t.source,`layer "${t.id}" requires a raster-dem source`)):g==="raster"&&s!=="raster"?e.push(new bi(i,t.source,`layer "${t.id}" requires a vector source`)):g==="vector"&&!t["source-layer"]?e.push(new bi(i,t,`layer "${t.id}" must specify a "source-layer"`)):g==="raster-dem"&&s!=="hillshade"&&s!=="color-relief"?e.push(new bi(i,t.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):s==="line"&&t.paint&&t.paint["line-gradient"]&&(g!=="geojson"||!p.lineMetrics)&&e.push(new bi(i,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new bi(i,t.source,`source "${t.source}" not found`))}return e=e.concat(Tp({key:i,value:t,valueSpec:o.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${i}.type`,value:t.type,valueSpec:o.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:_8,layout(p){return Tp({layer:t,key:p.key,value:p.value,style:p.style,styleSpec:p.styleSpec,validateSpec:p.validateSpec,objectElementValidators:{"*"(g){return nj(Jv({layerType:s},g))}}})},paint(p){return Tp({layer:t,key:p.key,value:p.value,style:p.style,styleSpec:p.styleSpec,validateSpec:p.validateSpec,objectElementValidators:{"*"(g){return tj(Jv({layerType:s},g))}}})}}})),e}function uy(n){const e=n.value,t=n.key,i=Ca(e);return i!=="string"?[new bi(t,e,`string expected, ${i} found`)]:[]}function FZ(n){var e;const t=(e=n.sourceName)!==null&&e!==void 0?e:"",i=n.value,r=n.styleSpec,o=r.source_raster_dem,s=n.style;let a=[];const p=Ca(i);if(i===void 0)return a;if(p!=="object")return a.push(new bi("source_raster_dem",i,`object expected, ${p} found`)),a;const _=mA(i.encoding)==="custom",E=["redFactor","greenFactor","blueFactor","baseShift"],O=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const B in i)!_&&E.includes(B)?a.push(new bi(B,i[B],`In "${t}": "${B}" is only valid when "encoding" is set to "custom". ${O} encoding found`)):o[B]?a=a.concat(n.validateSpec({key:B,value:i[B],valueSpec:o[B],validateSpec:n.validateSpec,style:s,styleSpec:r})):a.push(new bi(B,i[B],`unknown property "${B}"`));return a}const $9={promoteId:zZ};function rj(n){const e=n.value,t=n.key,i=n.styleSpec,r=n.style,o=n.validateSpec;if(!e.type)return[new bi(t,e,'"type" is required')];const s=mA(e.type);let a;switch(s){case"vector":case"raster":return a=Tp({key:t,value:e,valueSpec:i[`source_${s.replace("-","_")}`],style:n.style,styleSpec:i,objectElementValidators:$9,validateSpec:o}),a;case"raster-dem":return a=FZ({sourceName:t,value:e,style:n.style,styleSpec:i,validateSpec:o}),a;case"geojson":if(a=Tp({key:t,value:e,valueSpec:i.source_geojson,style:r,styleSpec:i,validateSpec:o,objectElementValidators:$9}),e.cluster)for(const p in e.clusterProperties){const[g,_]=e.clusterProperties[p],E=typeof g=="string"?[g,["accumulated"],["get",p]]:g;a.push(...nC({key:`${t}.${p}.map`,value:_,expressionContext:"cluster-map"})),a.push(...nC({key:`${t}.${p}.reduce`,value:E,expressionContext:"cluster-reduce"}))}return a;case"video":return Tp({key:t,value:e,valueSpec:i.source_video,style:r,validateSpec:o,sLine truncated
${E}`),N].join(`
${a}`)}return g}(n,"",0)}function X9(n,e){const t={};for(const i in e)n[i]!==void 0&&(t[i]=n[i]);for(const i in n)t[i]===void 0&&(t[i]=n[i]);return t}function eX(n,e=2){return n=X9(n,ts.$root),n.layers&&(n.layers=n.layers.map(t=>X9(t,ts.layer))),JZ(n,{indent:e})}function vM(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function J9(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function IB(n,e){return typeof e=="string"&&e[0]==="@"?IB(n,n.constants[e]):e}function tX(n){return Array.isArray(n.stops)}function GC(n,e,t){n[t]=n[e],delete n[e]}function nX(n){n.version=8,UZ(n,r=>{r.type==="video"&&r.url!==void 0&&GC(r,"url","urls"),r.type==="video"&&r.coordinates.forEach(o=>o.reverse())}),T_(n,r=>{vM(r,o=>{o["symbol-min-distance"]!==void 0&&GC(o,"symbol-min-distance","symbol-spacing")}),J9(r,o=>{o["background-image"]!==void 0&&GC(o,"background-image","background-pattern"),o["line-image"]!==void 0&&GC(o,"line-image","line-pattern"),o["fill-image"]!==void 0&&GC(o,"fill-image","fill-pattern")})}),v8(n,{paint:!0,layout:!0},r=>{const o=IB(n,r.value);tX(o)&&o.stops.forEach(s=>{s[1]=IB(n,s[1])}),r.set(o)}),delete n.constants,T_(n,r=>{vM(r,o=>{delete o["text-max-size"],delete o["icon-max-size"]}),J9(r,o=>{o["text-size"]&&(r.layout||(r.layout={}),r.layout["text-size"]=o["text-size"],delete o["text-size"]),o["icon-size"]&&(r.layout||(r.layout={}),r.layout["icon-size"]=o["icon-size"],delete o["icon-size"])})});function e(r){function o(s){return s.split(",").map(a=>a.trim())}if(Array.isArray(r))return r;if(typeof r=="string")return o(r);if(typeof r=="object")return r.stops.forEach(s=>{s[1]=o(s[1])}),r;throw new Error("unexpected font value")}T_(n,r=>{vM(r,o=>{o["text-font"]&&(o["text-font"]=e(o["text-font"]))})});let t=0;for(let r=n.layers.length-1;r>=0;r--)if(n.layers[r].type!=="symbol"){t=r+1;break}const i=n.layers.splice(t);return i.reverse(),n.layers=n.layers.concat(i),n}function iX(n){const e=[];return T_(n,t=>{t.filter&&(t.filter=I_(t.filter))}),v8(n,{paint:!0,layout:!0},({path:t,value:i,reference:r,set:o})=>{gC(i)||(typeof i=="object"&&!Array.isArray(i)?(o(p8(i,r)),e.push(t.join("."))):r.tokens&&typeof i=="string"&&o($z(i)))}),n}function rX(n){return JSON.parse(oX(JSON.stringify(n)))}function oX(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const i=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(i){let[r,o,s,a]=i.slice(1);return[o,s]=[o,s].map(p=>p.endsWith("%")?p:`${parseFloat(p)*100}%`),`"hsl${typeof a=="string"?"a":""}(${[r,o,s,a].filter(Boolean).join(",")})"`}return e})}function aX(n){let e=!1;if(n.version===7&&(n=nX(n),e=!0),n.version===8&&(e=!!iX(n),e=!0),v8(n,{paint:!0,layout:!0},({value:t,reference:i,set:r})=>{i.type==="color"&&r(rX(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const Uf=ts,sX={StyleExpression:Hz,StylePropertyFunction:z2,ZoomConstantExpression:SB,ZoomDependentExpression:EB,createExpression:L2,createPropertyExpression:F2,isExpression:gC,isExpressionFilter:Nb,isZoomExpression:bZ,normalizePropertyExpression:xZ},lX={convertFunction:p8,createFunction:f8,isFunction:mC},uX=8,AX={version:{required:!0,type:"enum",values:[8],doc:"Style specification version number. Must be 8.",example:8},name:{type:"string",doc:"A human-readable name for the style.",example:"Bright"},metadata:{type:"*",doc:"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'maplibre:'.",example:{"styleeditor:slimmode":!0,"styleeditor:comment":"Style generated 1677776383","styleeditor:version":"3.14.159265","example:object":{String:"one",Number:2,Boolean:!1}}},center:{type:"array",value:"number",doc:"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:[-73.9749,40.7736]},centerAltitude:{type:"number",doc:"Default map center altitude in meters above sea level. The style center altitude defines the altitude where the camera is looking at and will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:123.4,"sdk-support":{"basic functionality":{js:"5.0.0",android:"https://github.com/maplibre/maplibre-native/issues/2980",ios:"https://github.com/maplibre/maplibre-native/issues/2980"}}},zoom:{type:"number",doc:"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:12.5},bearing:{type:"number",default:0,period:360,units:"degrees",doc:'Default bearing, in degrees. The bearing is the compass direction that is "up"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been positioned by other means (e.g. map options or user interaction).',example:29},pitch:{type:"number",default:0,units:"degrees",doc:"Default pitch, in degrees. Zero is perpendicular to Line truncated
${a}`)}return g}(n,"",0)}function X9(n,e){const t={};for(const i in e)n[i]!==void 0&&(t[i]=n[i]);for(const i in n)t[i]===void 0&&(t[i]=n[i]);return t}function eX(n,e=2){return n=X9(n,ts.$root),n.layers&&(n.layers=n.layers.map(t=>X9(t,ts.layer))),JZ(n,{indent:e})}function v5(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function J9(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function IB(n,e){return typeof e=="string"&&e[0]==="@"?IB(n,n.constants[e]):e}function tX(n){return Array.isArray(n.stops)}function GC(n,e,t){n[t]=n[e],delete n[e]}function nX(n){n.version=8,KZ(n,r=>{r.type==="video"&&r.url!==void 0&&GC(r,"url","urls"),r.type==="video"&&r.coordinates.forEach(o=>o.reverse())}),T_(n,r=>{v5(r,o=>{o["symbol-min-distance"]!==void 0&&GC(o,"symbol-min-distance","symbol-spacing")}),J9(r,o=>{o["background-image"]!==void 0&&GC(o,"background-image","background-pattern"),o["line-image"]!==void 0&&GC(o,"line-image","line-pattern"),o["fill-image"]!==void 0&&GC(o,"fill-image","fill-pattern")})}),v8(n,{paint:!0,layout:!0},r=>{const o=IB(n,r.value);tX(o)&&o.stops.forEach(s=>{s[1]=IB(n,s[1])}),r.set(o)}),delete n.constants,T_(n,r=>{v5(r,o=>{delete o["text-max-size"],delete o["icon-max-size"]}),J9(r,o=>{o["text-size"]&&(r.layout||(r.layout={}),r.layout["text-size"]=o["text-size"],delete o["text-size"]),o["icon-size"]&&(r.layout||(r.layout={}),r.layout["icon-size"]=o["icon-size"],delete o["icon-size"])})});function e(r){function o(s){return s.split(",").map(a=>a.trim())}if(Array.isArray(r))return r;if(typeof r=="string")return o(r);if(typeof r=="object")return r.stops.forEach(s=>{s[1]=o(s[1])}),r;throw new Error("unexpected font value")}T_(n,r=>{v5(r,o=>{o["text-font"]&&(o["text-font"]=e(o["text-font"]))})});let t=0;for(let r=n.layers.length-1;r>=0;r--)if(n.layers[r].type!=="symbol"){t=r+1;break}const i=n.layers.splice(t);return i.reverse(),n.layers=n.layers.concat(i),n}function iX(n){const e=[];return T_(n,t=>{t.filter&&(t.filter=I_(t.filter))}),v8(n,{paint:!0,layout:!0},({path:t,value:i,reference:r,set:o})=>{gC(i)||(typeof i=="object"&&!Array.isArray(i)?(o(p8(i,r)),e.push(t.join("."))):r.tokens&&typeof i=="string"&&o($z(i)))}),n}function rX(n){return JSON.parse(oX(JSON.stringify(n)))}function oX(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const i=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(i){let[r,o,s,a]=i.slice(1);return[o,s]=[o,s].map(p=>p.endsWith("%")?p:`${parseFloat(p)*100}%`),`"hsl${typeof a=="string"?"a":""}(${[r,o,s,a].filter(Boolean).join(",")})"`}return e})}function aX(n){let e=!1;if(n.version===7&&(n=nX(n),e=!0),n.version===8&&(e=!!iX(n),e=!0),v8(n,{paint:!0,layout:!0},({value:t,reference:i,set:r})=>{i.type==="color"&&r(rX(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const Kf=ts,sX={StyleExpression:Hz,StylePropertyFunction:j2,ZoomConstantExpression:SB,ZoomDependentExpression:EB,createExpression:F2,createPropertyExpression:z2,isExpression:gC,isExpressionFilter:Gb,isZoomExpression:bZ,normalizePropertyExpression:xZ},lX={convertFunction:p8,createFunction:f8,isFunction:mC},uX=8,AX={version:{required:!0,type:"enum",values:[8],doc:"Style specification version number. Must be 8.",example:8},name:{type:"string",doc:"A human-readable name for the style.",example:"Bright"},metadata:{type:"*",doc:"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'maplibre:'.",example:{"styleeditor:slimmode":!0,"styleeditor:comment":"Style generated 1677776383","styleeditor:version":"3.14.159265","example:object":{String:"one",Number:2,Boolean:!1}}},center:{type:"array",value:"number",doc:"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:[-73.9749,40.7736]},centerAltitude:{type:"number",doc:"Default map center altitude in meters above sea level. The style center altitude defines the altitude where the camera is looking at and will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:123.4,"sdk-support":{"basic functionality":{js:"5.0.0",android:"https://github.com/maplibre/maplibre-native/issues/2980",ios:"https://github.com/maplibre/maplibre-native/issues/2980"}}},zoom:{type:"number",doc:"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:12.5},bearing:{type:"number",default:0,period:360,units:"degrees",doc:'Default bearing, in degrees. The bearing is the compass direction that is "up"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been positioned by other means (e.g. map options or user interaction).',example:29},pitch:{type:"number",default:0,units:"degrees",doc:"Default pitch, in degrees. Zero is perpendicular to Line truncated
* In categorical functions, when the feature value does not match any of the stop domain values.
@@ -90,11 +90,11 @@ ${a}`)}return g}(n,"",0)}function X9(n,e){const t={};for(const i in e)n[i]!==voi
* In interval or exponential property and zoom-and-property functions, when the feature value is not numeric.
If no default is provided, the style property's default is used in these circumstances.`}},function_stop:kX,expression:DX,expression_name:RX,light:PX,sky:KX,terrain:UX,projection:LX,paint:FX,paint_fill:zX,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",doc:"The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},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",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{doc:"The fill extrusion is translated relative to the map."},viewport:{doc:"The fill extrusion is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-extrusion-translate`.",default:"map",requires:["fill-extrusion-translate"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude this layer.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.",transition:!0,requires:["fill-extrusion-height"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,doc:"Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.",transition:!1,"sdk-support":{"basic functionality":{js:"0.50.0",ios:"4.7.0",android:"7.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:jX,paint_circle:NX,paint_heatmap:GX,paint_symbol:WX,paint_raster:QX,paint_hillshade:YX,"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity at which the color-relief will be drawn.",transition:!0,"sdk-support":{"basic functionality":{js:"https://github.com/maplibre/maplibre-gl-js/issues/5666",android:"https://github.com/maplibre/maplibre-native/issues/3408",ios:"https://github.com/maplibre/maplibre-native/issues/3408"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",doc:'Defines the color of each pixel based on its elevation. Should be an expression that uses `["elevation"]` as input.',example:["interpolate",["linear"],["elevation"],0,"black",8849,"white"],transition:!1,"sdk-support":{"basic functionality":{js:"https://github.com/maplibre/maplibre-gl-js/issues/5666",android:"https://github.com/maplibre/maplibre-native/issues/3408",ios:"https://github.com/maplibre Line truncated
If no default is provided, the style property's default is used in these circumstances.`}},function_stop:kX,expression:DX,expression_name:RX,light:PX,sky:UX,terrain:KX,projection:LX,paint:FX,paint_fill:zX,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",doc:"The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},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",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{doc:"The fill extrusion is translated relative to the map."},viewport:{doc:"The fill extrusion is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-extrusion-translate`.",default:"map",requires:["fill-extrusion-translate"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude this layer.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.",transition:!0,requires:["fill-extrusion-height"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,doc:"Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.",transition:!1,"sdk-support":{"basic functionality":{js:"0.50.0",ios:"4.7.0",android:"7.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:jX,paint_circle:NX,paint_heatmap:GX,paint_symbol:WX,paint_raster:QX,paint_hillshade:YX,"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity at which the color-relief will be drawn.",transition:!0,"sdk-support":{"basic functionality":{js:"https://github.com/maplibre/maplibre-gl-js/issues/5666",android:"https://github.com/maplibre/maplibre-native/issues/3408",ios:"https://github.com/maplibre/maplibre-native/issues/3408"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",doc:'Defines the color of each pixel based on its elevation. Should be an expression that uses `["elevation"]` as input.',example:["interpolate",["linear"],["elevation"],0,"black",8849,"white"],transition:!1,"sdk-support":{"basic functionality":{js:"https://github.com/maplibre/maplibre-gl-js/issues/5666",android:"https://github.com/maplibre/maplibre-native/issues/3408",ios:"https://github.com/maplibre Line truncated
* MapLibre GL JS
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v5.7.1/LICENSE.txt
*/var $X=u3.exports,eT;function ZX(){return eT||(eT=1,function(n,e){(function(t,i){n.exports=i()})($X,function(){var t={},i={};function r(s,a,p){if(i[s]=p,s==="index"){var g="var sharedModule = {}; ("+i.shared+")(sharedModule); ("+i.worker+")(sharedModule);",_={};return i.shared(_),i.index(t,_),typeof window<"u"&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([g],{type:"text/javascript"}))),t}}r("shared",["exports"],function(s){function a(h,u,c,v){return new(c||(c=Promise))(function(w,K){function U(ae){try{H(v.next(ae))}catch(ce){K(ce)}}function G(ae){try{H(v.throw(ae))}catch(ce){K(ce)}}function H(ae){var ce;ae.done?w(ae.value):(ce=ae.value,ce instanceof c?ce:new c(function(xe){xe(ce)})).then(U,G)}H((v=v.apply(h,u||[])).next())})}function p(h,u){this.x=h,this.y=u}function g(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}var _,E;typeof SuppressedError=="function"&&SuppressedError,p.prototype={clone(){return new p(this.x,this.y)},add(h){return this.clone()._add(h)},sub(h){return this.clone()._sub(h)},multByPoint(h){return this.clone()._multByPoint(h)},divByPoint(h){return this.clone()._divByPoint(h)},mult(h){return this.clone()._mult(h)},div(h){return this.clone()._div(h)},rotate(h){return this.clone()._rotate(h)},rotateAround(h,u){return this.clone()._rotateAround(h,u)},matMult(h){return this.clone()._matMult(h)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(h){return this.x===h.x&&this.y===h.y},dist(h){return Math.sqrt(this.distSqr(h))},distSqr(h){const u=h.x-this.x,c=h.y-this.y;return u*u+c*c},angle(){return Math.atan2(this.y,this.x)},angleTo(h){return Math.atan2(this.y-h.y,this.x-h.x)},angleWith(h){return this.angleWithSep(h.x,h.y)},angleWithSep(h,u){return Math.atan2(this.x*u-this.y*h,this.x*h+this.y*u)},_matMult(h){const u=h[2]*this.x+h[3]*this.y;return this.x=h[0]*this.x+h[1]*this.y,this.y=u,this},_add(h){return this.x+=h.x,this.y+=h.y,this},_sub(h){return this.x-=h.x,this.y-=h.y,this},_mult(h){return this.x*=h,this.y*=h,this},_div(h){return this.x/=h,this.y/=h,this},_multByPoint(h){return this.x*=h.x,this.y*=h.y,this},_divByPoint(h){return this.x/=h.x,this.y/=h.y,this},_unit(){return this._div(this.mag()),this},_perp(){const h=this.y;return this.y=this.x,this.x=-h,this},_rotate(h){const u=Math.cos(h),c=Math.sin(h),v=c*this.x+u*this.y;return this.x=u*this.x-c*this.y,this.y=v,this},_rotateAround(h,u){const c=Math.cos(h),v=Math.sin(h),w=u.y+v*(this.x-u.x)+c*(this.y-u.y);return this.x=u.x+c*(this.x-u.x)-v*(this.y-u.y),this.y=w,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:p},p.convert=function(h){if(h instanceof p)return h;if(Array.isArray(h))return new p(+h[0],+h[1]);if(h.x!==void 0&&h.y!==void 0)return new p(+h.x,+h.y);throw new Error("Expected [x, y] or {x, y} point format")};var O=function(){if(E)return _;function h(u,c,v,w){this.cx=3*u,this.bx=3*(v-u)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*c,this.by=3*(w-c)-this.cy,this.ay=1-this.cy-this.by,this.p1x=u,this.p1y=c,this.p2x=v,this.p2y=w}return E=1,_=h,h.prototype={sampleCurveX:function(u){return((this.ax*u+this.bx)*u+this.cx)*u},sampleCurveY:function(u){return((this.ay*u+this.by)*u+this.cy)*u},sampleCurveDerivativeX:function(u){return(3*this.ax*u+2*this.bx)*u+this.cx},solveCurveX:function(u,c){if(c===void 0&&(c=1e-6),u<0)return 0;if(u>1)return 1;for(var v=u,w=0;w<8;w++){var K=this.sampleCurveX(v)-u;if(Math.abs(K)<c)return v;var U=this.sampleCurveDerivativeX(v);if(Math.abs(U)<1e-6)break;v-=K/U}var G=0,H=1;for(v=u,w=0;w<20&&(K=this.sampleCurveX(v),!(Math.abs(K-u)<c));w++)u>K?G=v:H=v,v=.5*(H-G)+G;return v},solve:function(u,c){return this.sampleCurveY(this.solveCurveX(u,c))}},_}(),B=g(O);let z,N;function Q(){return z==null&&(z=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),z}function $(){if(N==null&&(N=!1,Q())){const u=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(u){for(let v=0;v<5*5;v++){const w=4*v;u.fillStyle=`rgb(${w},${w+1},${w+2})`,u.fillRect(v%5,Math.floor(v/5),1,1)}const c=u.getImageData(0,0,5,5).data;for(let v=0;v<5*5*4;v++)if(v%4!=3&&c[v]!==v){N=!0;break}}}return N||!1}var X=1e-6,re=typeof Float32Array<"u"?Float32Array:Array;function ne(){var h=new re(9);return re!=Float32Array&&(h[1]=0,h[2]=0,h[3]=0,h[5]=0,h[6]=0,h[7]=0),h[0]=1,h[4]=1,h[8]=1,h}function V(h){return h[0]=1,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=1,h[6]=0,h[7]=0,h[8]=0,h[9]=0,h[10]=1,h[11]=0,h[12]=0,h[13]=0,h[14]=0,h[15]=1,h}function J(){var h=new re(3);return re!=Float32Array&&(h[0]=0,h[1]=0,h[2]=0),h}function W(h){var u=h[0],c=h[1],v=h[2];return Math.sqrt(u*u+c*c+v*v)}function he(h,u,c){var v=new re(3);return v[0]=h,v[1]=u,v[2]=c,v}function ge(h,u,c){return h[0]=u[0]+c[0],h[1]=u[1]+c[1],h[2]=u[2]+c[2],h}function ve(h,u,c){return h[0]=u[0]*c,h[1]=u[1]*c,h[2]=u[2]*c,h}function _e(h,u,c)Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(xe[1])} }\`.`)];const Le=[];return h.layerType==="symbol"&&(G==="text-field"&&w&&!w.glyphs&&Le.push(new Sn(c,U,'use of "text-field" requires a style "glyphs" property')),G==="text-font"&&mc(ul(U))&&_s(U.type)==="identity"&&Le.push(new Sn(c,U,'"text-font" does not support identity functions'))),Le.concat(v({key:h.key,value:U,valueSpec:ce,style:w,styleSpec:K,expressionContext:"property",propertyType:u,propertyKey:G}))}function bs(h){return vr(h,"paint")}function lh(h){return vr(h,"layout")}function Rh(h){let u=[];const c=h.value,v=h.key,w=h.style,K=h.styleSpec;if(Rr(c)!=="object")return[new Sn(v,c,`object expected, ${Rr(c)} found`)];c.type||c.ref||u.push(new Sn(v,c,'either "type" or "ref" is required'));let U=_s(c.type);const G=_s(c.ref);if(c.id){const H=_s(c.id);for(let ae=0;ae<h.arrayIndex;ae++){const ce=w.layers[ae];_s(ce.id)===H&&u.push(new Sn(v,c.id,`duplicate layer id "${c.id}", previously used at line ${ce.id.__line__}`))}}if("ref"in c){let H;["type","source","source-layer","filter","layout"].forEach(ae=>{ae in c&&u.push(new Sn(v,c[ae],`"${ae}" is prohibited for ref layers`))}),w.layers.forEach(ae=>{_s(ae.id)===G&&(H=ae)}),H?H.ref?u.push(new Sn(v,c.ref,"ref cannot reference another ref layer")):U=_s(H.type):u.push(new Sn(v,c.ref,`ref layer "${G}" not found`))}else if(U!=="background")if(c.source){const H=w.sources&&w.sources[c.source],ae=H&&_s(H.type);H?ae==="vector"&&U==="raster"?u.push(new Sn(v,c.source,`layer "${c.id}" requires a raster source`)):ae!=="raster-dem"&&U==="hillshade"||ae!=="raster-dem"&&U==="color-relief"?u.push(new Sn(v,c.source,`layer "${c.id}" requires a raster-dem source`)):ae==="raster"&&U!=="raster"?u.push(new Sn(v,c.source,`layer "${c.id}" requires a vector source`)):ae!=="vector"||c["source-layer"]?ae==="raster-dem"&&U!=="hillshade"&&U!=="color-relief"?u.push(new Sn(v,c.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):U!=="line"||!c.paint||!c.paint["line-gradient"]||ae==="geojson"&&H.lineMetrics||u.push(new Sn(v,c,`layer "${c.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):u.push(new Sn(v,c,`layer "${c.id}" must specify a "source-layer"`)):u.push(new Sn(v,c.source,`source "${c.source}" not found`))}else u.push(new Sn(v,c,'missing required property "source"'));return u=u.concat(Ys({key:v,value:c,valueSpec:K.layer,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*":()=>[],type:()=>h.validateSpec({key:`${v}.type`,value:c.type,valueSpec:K.layer.type,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,object:c,objectKey:"type"}),filter:Ha,layout:H=>Ys({layer:c,key:H.key,value:H.value,style:H.style,styleSpec:H.styleSpec,validateSpec:H.validateSpec,objectElementValidators:{"*":ae=>lh(co({layerType:U},ae))}}),paint:H=>Ys({layer:c,key:H.key,value:H.value,style:H.style,styleSpec:H.styleSpec,validateSpec:H.validateSpec,objectElementValidators:{"*":ae=>bs(co({layerType:U},ae))}})}})),u}function Uo(h){const u=h.value,c=h.key,v=Rr(u);return v!=="string"?[new Sn(c,u,`string expected, ${v} found`)]:[]}const uh={promoteId:function({key:h,value:u}){if(Rr(u)==="string")return Uo({key:h,value:u});{const c=[];for(const v in u)c.push(...Uo({key:`${h}.${v}`,value:u[v]}));return c}}};function Fu(h){const u=h.value,c=h.key,v=h.styleSpec,w=h.style,K=h.validateSpec;if(!u.type)return[new Sn(c,u,'"type" is required')];const U=_s(u.type);let G;switch(U){case"vector":case"raster":return G=Ys({key:c,value:u,valueSpec:v[`source_${U.replace("-","_")}`],style:h.style,styleSpec:v,objectElementValidators:uh,validateSpec:K}),G;case"raster-dem":return G=function(H){var ae;const ce=(ae=H.sourceName)!==null&&ae!==void 0?ae:"",xe=H.value,Le=H.styleSpec,qe=Le.source_raster_dem,$e=H.style;let nt=[];const ct=Rr(xe);if(xe===void 0)return nt;if(ct!=="object")return nt.push(new Sn("source_raster_dem",xe,`object expected, ${ct} found`)),nt;const wt=_s(xe.encoding)==="custom",qt=["redFactor","greenFactor","blueFactor","baseShift"],Dt=H.value.encoding?`"${H.value.encoding}"`:"Default";for(const Nt in xe)!wt&&qt.includes(Nt)?nt.push(new Sn(Nt,xe[Nt],`In "${ce}": "${Nt}" is only valid when "encoding" is set to "custom". ${Dt} encoding found`)):qe[Nt]?nt=nt.concat(H.validateSpec({key:Nt,value:xe[Nt],valueSpec:qe[Nt],validateSpec:H.validateSpec,style:$e,styleSpec:Le})):nt.push(new Sn(Nt,xe[Nt],`unknown property "${Nt}"`));return nt}({sourceName:c,value:u,style:h.style,styleSpec:v,validateSpec:K}),G;case"geojson":if(G=Ys({key:c,value:u,valueSpec:v.source_geojson,style:w,styleSpec:v,validateSpec:K,objectElementValidators:uh}),u.cluster)for(const H in u.clusterProperties){const[ae,ce]=u.clusterProperties[H],xe=typeof ae=="string"?[ae,["accumulated"],["get",H]]:ae;G.push(...sA({key:`${c}.${H}.map`,value:ce,expressionContext:"cluster-map"})),G.push(...sA({key:`${c}.${H}.reduce`,value:xe,expressionCLine truncated
*/var $X=A3.exports,eT;function ZX(){return eT||(eT=1,function(n,e){(function(t,i){n.exports=i()})($X,function(){var t={},i={};function r(s,a,p){if(i[s]=p,s==="index"){var g="var sharedModule = {}; ("+i.shared+")(sharedModule); ("+i.worker+")(sharedModule);",_={};return i.shared(_),i.index(t,_),typeof window<"u"&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([g],{type:"text/javascript"}))),t}}r("shared",["exports"],function(s){function a(h,u,c,v){return new(c||(c=Promise))(function(w,U){function K(ae){try{H(v.next(ae))}catch(ce){U(ce)}}function G(ae){try{H(v.throw(ae))}catch(ce){U(ce)}}function H(ae){var ce;ae.done?w(ae.value):(ce=ae.value,ce instanceof c?ce:new c(function(xe){xe(ce)})).then(K,G)}H((v=v.apply(h,u||[])).next())})}function p(h,u){this.x=h,this.y=u}function g(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}var _,E;typeof SuppressedError=="function"&&SuppressedError,p.prototype={clone(){return new p(this.x,this.y)},add(h){return this.clone()._add(h)},sub(h){return this.clone()._sub(h)},multByPoint(h){return this.clone()._multByPoint(h)},divByPoint(h){return this.clone()._divByPoint(h)},mult(h){return this.clone()._mult(h)},div(h){return this.clone()._div(h)},rotate(h){return this.clone()._rotate(h)},rotateAround(h,u){return this.clone()._rotateAround(h,u)},matMult(h){return this.clone()._matMult(h)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(h){return this.x===h.x&&this.y===h.y},dist(h){return Math.sqrt(this.distSqr(h))},distSqr(h){const u=h.x-this.x,c=h.y-this.y;return u*u+c*c},angle(){return Math.atan2(this.y,this.x)},angleTo(h){return Math.atan2(this.y-h.y,this.x-h.x)},angleWith(h){return this.angleWithSep(h.x,h.y)},angleWithSep(h,u){return Math.atan2(this.x*u-this.y*h,this.x*h+this.y*u)},_matMult(h){const u=h[2]*this.x+h[3]*this.y;return this.x=h[0]*this.x+h[1]*this.y,this.y=u,this},_add(h){return this.x+=h.x,this.y+=h.y,this},_sub(h){return this.x-=h.x,this.y-=h.y,this},_mult(h){return this.x*=h,this.y*=h,this},_div(h){return this.x/=h,this.y/=h,this},_multByPoint(h){return this.x*=h.x,this.y*=h.y,this},_divByPoint(h){return this.x/=h.x,this.y/=h.y,this},_unit(){return this._div(this.mag()),this},_perp(){const h=this.y;return this.y=this.x,this.x=-h,this},_rotate(h){const u=Math.cos(h),c=Math.sin(h),v=c*this.x+u*this.y;return this.x=u*this.x-c*this.y,this.y=v,this},_rotateAround(h,u){const c=Math.cos(h),v=Math.sin(h),w=u.y+v*(this.x-u.x)+c*(this.y-u.y);return this.x=u.x+c*(this.x-u.x)-v*(this.y-u.y),this.y=w,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:p},p.convert=function(h){if(h instanceof p)return h;if(Array.isArray(h))return new p(+h[0],+h[1]);if(h.x!==void 0&&h.y!==void 0)return new p(+h.x,+h.y);throw new Error("Expected [x, y] or {x, y} point format")};var O=function(){if(E)return _;function h(u,c,v,w){this.cx=3*u,this.bx=3*(v-u)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*c,this.by=3*(w-c)-this.cy,this.ay=1-this.cy-this.by,this.p1x=u,this.p1y=c,this.p2x=v,this.p2y=w}return E=1,_=h,h.prototype={sampleCurveX:function(u){return((this.ax*u+this.bx)*u+this.cx)*u},sampleCurveY:function(u){return((this.ay*u+this.by)*u+this.cy)*u},sampleCurveDerivativeX:function(u){return(3*this.ax*u+2*this.bx)*u+this.cx},solveCurveX:function(u,c){if(c===void 0&&(c=1e-6),u<0)return 0;if(u>1)return 1;for(var v=u,w=0;w<8;w++){var U=this.sampleCurveX(v)-u;if(Math.abs(U)<c)return v;var K=this.sampleCurveDerivativeX(v);if(Math.abs(K)<1e-6)break;v-=U/K}var G=0,H=1;for(v=u,w=0;w<20&&(U=this.sampleCurveX(v),!(Math.abs(U-u)<c));w++)u>U?G=v:H=v,v=.5*(H-G)+G;return v},solve:function(u,c){return this.sampleCurveY(this.solveCurveX(u,c))}},_}(),B=g(O);let z,N;function Q(){return z==null&&(z=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),z}function $(){if(N==null&&(N=!1,Q())){const u=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(u){for(let v=0;v<5*5;v++){const w=4*v;u.fillStyle=`rgb(${w},${w+1},${w+2})`,u.fillRect(v%5,Math.floor(v/5),1,1)}const c=u.getImageData(0,0,5,5).data;for(let v=0;v<5*5*4;v++)if(v%4!=3&&c[v]!==v){N=!0;break}}}return N||!1}var X=1e-6,re=typeof Float32Array<"u"?Float32Array:Array;function ne(){var h=new re(9);return re!=Float32Array&&(h[1]=0,h[2]=0,h[3]=0,h[5]=0,h[6]=0,h[7]=0),h[0]=1,h[4]=1,h[8]=1,h}function V(h){return h[0]=1,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=1,h[6]=0,h[7]=0,h[8]=0,h[9]=0,h[10]=1,h[11]=0,h[12]=0,h[13]=0,h[14]=0,h[15]=1,h}function J(){var h=new re(3);return re!=Float32Array&&(h[0]=0,h[1]=0,h[2]=0),h}function W(h){var u=h[0],c=h[1],v=h[2];return Math.sqrt(u*u+c*c+v*v)}function he(h,u,c){var v=new re(3);return v[0]=h,v[1]=u,v[2]=c,v}function ge(h,u,c){return h[0]=u[0]+c[0],h[1]=u[1]+c[1],h[2]=u[2]+c[2],h}function ve(h,u,c){return h[0]=u[0]*c,h[1]=u[1]*c,h[2]=u[2]*c,h}function _e(h,u,c)Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(xe[1])} }\`.`)];const Le=[];return h.layerType==="symbol"&&(G==="text-field"&&w&&!w.glyphs&&Le.push(new Sn(c,K,'use of "text-field" requires a style "glyphs" property')),G==="text-font"&&mc(ul(K))&&_s(K.type)==="identity"&&Le.push(new Sn(c,K,'"text-font" does not support identity functions'))),Le.concat(v({key:h.key,value:K,valueSpec:ce,style:w,styleSpec:U,expressionContext:"property",propertyType:u,propertyKey:G}))}function bs(h){return Cr(h,"paint")}function lh(h){return Cr(h,"layout")}function Rh(h){let u=[];const c=h.value,v=h.key,w=h.style,U=h.styleSpec;if(Pr(c)!=="object")return[new Sn(v,c,`object expected, ${Pr(c)} found`)];c.type||c.ref||u.push(new Sn(v,c,'either "type" or "ref" is required'));let K=_s(c.type);const G=_s(c.ref);if(c.id){const H=_s(c.id);for(let ae=0;ae<h.arrayIndex;ae++){const ce=w.layers[ae];_s(ce.id)===H&&u.push(new Sn(v,c.id,`duplicate layer id "${c.id}", previously used at line ${ce.id.__line__}`))}}if("ref"in c){let H;["type","source","source-layer","filter","layout"].forEach(ae=>{ae in c&&u.push(new Sn(v,c[ae],`"${ae}" is prohibited for ref layers`))}),w.layers.forEach(ae=>{_s(ae.id)===G&&(H=ae)}),H?H.ref?u.push(new Sn(v,c.ref,"ref cannot reference another ref layer")):K=_s(H.type):u.push(new Sn(v,c.ref,`ref layer "${G}" not found`))}else if(K!=="background")if(c.source){const H=w.sources&&w.sources[c.source],ae=H&&_s(H.type);H?ae==="vector"&&K==="raster"?u.push(new Sn(v,c.source,`layer "${c.id}" requires a raster source`)):ae!=="raster-dem"&&K==="hillshade"||ae!=="raster-dem"&&K==="color-relief"?u.push(new Sn(v,c.source,`layer "${c.id}" requires a raster-dem source`)):ae==="raster"&&K!=="raster"?u.push(new Sn(v,c.source,`layer "${c.id}" requires a vector source`)):ae!=="vector"||c["source-layer"]?ae==="raster-dem"&&K!=="hillshade"&&K!=="color-relief"?u.push(new Sn(v,c.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):K!=="line"||!c.paint||!c.paint["line-gradient"]||ae==="geojson"&&H.lineMetrics||u.push(new Sn(v,c,`layer "${c.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):u.push(new Sn(v,c,`layer "${c.id}" must specify a "source-layer"`)):u.push(new Sn(v,c.source,`source "${c.source}" not found`))}else u.push(new Sn(v,c,'missing required property "source"'));return u=u.concat(Ys({key:v,value:c,valueSpec:U.layer,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*":()=>[],type:()=>h.validateSpec({key:`${v}.type`,value:c.type,valueSpec:U.layer.type,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,object:c,objectKey:"type"}),filter:Ha,layout:H=>Ys({layer:c,key:H.key,value:H.value,style:H.style,styleSpec:H.styleSpec,validateSpec:H.validateSpec,objectElementValidators:{"*":ae=>lh(co({layerType:K},ae))}}),paint:H=>Ys({layer:c,key:H.key,value:H.value,style:H.style,styleSpec:H.styleSpec,validateSpec:H.validateSpec,objectElementValidators:{"*":ae=>bs(co({layerType:K},ae))}})}})),u}function Ko(h){const u=h.value,c=h.key,v=Pr(u);return v!=="string"?[new Sn(c,u,`string expected, ${v} found`)]:[]}const uh={promoteId:function({key:h,value:u}){if(Pr(u)==="string")return Ko({key:h,value:u});{const c=[];for(const v in u)c.push(...Ko({key:`${h}.${v}`,value:u[v]}));return c}}};function Fu(h){const u=h.value,c=h.key,v=h.styleSpec,w=h.style,U=h.validateSpec;if(!u.type)return[new Sn(c,u,'"type" is required')];const K=_s(u.type);let G;switch(K){case"vector":case"raster":return G=Ys({key:c,value:u,valueSpec:v[`source_${K.replace("-","_")}`],style:h.style,styleSpec:v,objectElementValidators:uh,validateSpec:U}),G;case"raster-dem":return G=function(H){var ae;const ce=(ae=H.sourceName)!==null&&ae!==void 0?ae:"",xe=H.value,Le=H.styleSpec,qe=Le.source_raster_dem,$e=H.style;let nt=[];const ct=Pr(xe);if(xe===void 0)return nt;if(ct!=="object")return nt.push(new Sn("source_raster_dem",xe,`object expected, ${ct} found`)),nt;const wt=_s(xe.encoding)==="custom",qt=["redFactor","greenFactor","blueFactor","baseShift"],Dt=H.value.encoding?`"${H.value.encoding}"`:"Default";for(const Nt in xe)!wt&&qt.includes(Nt)?nt.push(new Sn(Nt,xe[Nt],`In "${ce}": "${Nt}" is only valid when "encoding" is set to "custom". ${Dt} encoding found`)):qe[Nt]?nt=nt.concat(H.validateSpec({key:Nt,value:xe[Nt],valueSpec:qe[Nt],validateSpec:H.validateSpec,style:$e,styleSpec:Le})):nt.push(new Sn(Nt,xe[Nt],`unknown property "${Nt}"`));return nt}({sourceName:c,value:u,style:h.style,styleSpec:v,validateSpec:U}),G;case"geojson":if(G=Ys({key:c,value:u,valueSpec:v.source_geojson,style:w,styleSpec:v,validateSpec:U,objectElementValidators:uh}),u.cluster)for(const H in u.clusterProperties){const[ae,ce]=u.clusterProperties[H],xe=typeof ae=="string"?[ae,["accumulated"],["get",H]]:ae;G.push(...sA({key:`${c}.${H}.map`,value:ce,expressionContext:"cluster-map"})),G.push(...sA({key:`${c}.${H}.reduce`,value:xe,expressionCLine truncated
precision mediump float;
#else
#if !defined(lowp)
@@ -153,19 +153,19 @@ vec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=frac
#else
return 0.0;
#endif
}const float PI=3.141592653589793;uniform mat4 u_projection_matrix;`),projectionMercator:pr("","float projectLineThickness(float tileY) {return 1.0;}float projectCircleRadius(float tileY) {return 1.0;}vec4 projectTile(vec2 p) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);return result;}vec4 projectTile(vec2 p,vec2 rawPos) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);if (rawPos.y <-32767.5 || rawPos.y > 32766.5) {result.z=-10000000.0;}return result;}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_projection_matrix*vec4(posInTile,elevation,1.0);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {return projectTileWithElevation(posInTile,elevation);}"),projectionGlobe:pr("",`#define GLOBE_RADIUS 6371008.8
}const float PI=3.141592653589793;uniform mat4 u_projection_matrix;`),projectionMercator:mr("","float projectLineThickness(float tileY) {return 1.0;}float projectCircleRadius(float tileY) {return 1.0;}vec4 projectTile(vec2 p) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);return result;}vec4 projectTile(vec2 p,vec2 rawPos) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);if (rawPos.y <-32767.5 || rawPos.y > 32766.5) {result.z=-10000000.0;}return result;}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_projection_matrix*vec4(posInTile,elevation,1.0);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {return projectTileWithElevation(posInTile,elevation);}"),projectionGlobe:mr("",`#define GLOBE_RADIUS 6371008.8
uniform highp vec4 u_projection_tile_mercator_coords;uniform highp vec4 u_projection_clipping_plane;uniform highp float u_projection_transition;uniform mat4 u_projection_fallback_matrix;vec3 globeRotateVector(vec3 vec,vec2 angles) {vec3 axisRight=vec3(vec.z,0.0,-vec.x);vec3 axisUp=cross(axisRight,vec);axisRight=normalize(axisRight);axisUp=normalize(axisUp);vec2 t=tan(angles);return normalize(vec+axisRight*t.x+axisUp*t.y);}mat3 globeGetRotationMatrix(vec3 spherePos) {vec3 axisRight=vec3(spherePos.z,0.0,-spherePos.x);vec3 axisDown=cross(axisRight,spherePos);axisRight=normalize(axisRight);axisDown=normalize(axisDown);return mat3(axisRight,axisDown,spherePos
);}float circumferenceRatioAtTileY(float tileY) {float mercator_pos_y=u_projection_tile_mercator_coords.y+u_projection_tile_mercator_coords.w*tileY;float spherical_y=2.0*atan(exp(PI-(mercator_pos_y*PI*2.0)))-PI*0.5;return cos(spherical_y);}float projectLineThickness(float tileY) {float thickness=1.0/circumferenceRatioAtTileY(tileY);
if (u_projection_transition < 0.999) {return mix(1.0,thickness,u_projection_transition);} else {return thickness;}}vec3 projectToSphere(vec2 translatedPos,vec2 rawPos) {vec2 mercator_pos=u_projection_tile_mercator_coords.xy+u_projection_tile_mercator_coords.zw*translatedPos;vec2 spherical;spherical.x=mercator_pos.x*PI*2.0+PI;spherical.y=2.0*atan(exp(PI-(mercator_pos.y*PI*2.0)))-PI*0.5;float len=cos(spherical.y);vec3 pos=vec3(sin(spherical.x)*len,sin(spherical.y),cos(spherical.x)*len
);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float globeComputeClippingZ(vec3 spherePos) {return (1.0-(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);globePosition.z=globeComputeClippingZ(elevatedPos)*globePosition.w;if (u_projection_transition > 0.999) {return globePosition;}vec4 flatPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);const float z_globeness_threshold=0.2;vec4 result=globePosition;result.z=mix(0.0,globePosition.z,clamp((u_projection_transition-z_globeness_threshold)/(1.0-z_globeness_threshold),0.0,1.0));result.xyw=mix(flatPosition.xyw,globePosition.xyw,u_projection_transition);if ((posInTile.y <-32767.5) || (posInTile.y > 32766.5)) {result=globePosition;const float poles_hidden_anim_percentage=0.02;result.z=mix(globePosition.z,100.0,pow(max((1.0-u_projection_transition)/poles_hidden_anim_percentage,0.0),8.0));}return result;}vec4 interpolateProjectionFor3D(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);if (u_projection_transition > 0.999) {return globePosition;}vec4 fallbackPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);return mix(fallbackPosition,globePosition,u_projection_transition);}vec4 projectTile(vec2 posInTile) {return interpolateProjection(posInTile,projectToSphere(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphere(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphere(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphere(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:pr(`uniform vec4 u_color;uniform float u_opacity;void main() {fragColor=u_color*u_opacity;
);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float globeComputeClippingZ(vec3 spherePos) {return (1.0-(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);globePosition.z=globeComputeClippingZ(elevatedPos)*globePosition.w;if (u_projection_transition > 0.999) {return globePosition;}vec4 flatPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);const float z_globeness_threshold=0.2;vec4 result=globePosition;result.z=mix(0.0,globePosition.z,clamp((u_projection_transition-z_globeness_threshold)/(1.0-z_globeness_threshold),0.0,1.0));result.xyw=mix(flatPosition.xyw,globePosition.xyw,u_projection_transition);if ((posInTile.y <-32767.5) || (posInTile.y > 32766.5)) {result=globePosition;const float poles_hidden_anim_percentage=0.02;result.z=mix(globePosition.z,100.0,pow(max((1.0-u_projection_transition)/poles_hidden_anim_percentage,0.0),8.0));}return result;}vec4 interpolateProjectionFor3D(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);if (u_projection_transition > 0.999) {return globePosition;}vec4 fallbackPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);return mix(fallbackPosition,globePosition,u_projection_transition);}vec4 projectTile(vec2 posInTile) {return interpolateProjection(posInTile,projectToSphere(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphere(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphere(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphere(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:mr(`uniform vec4 u_color;uniform float u_opacity;void main() {fragColor=u_color*u_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),backgroundPattern:pr(`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;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;in vec2 v_pos_a;in 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=texture(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=texture(u_image,pos2);fragColor=mix(color1,color2,u_mix)*u_opacity;
}`,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),backgroundPattern:mr(`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;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;in vec2 v_pos_a;in 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=texture(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=texture(u_image,pos2);fragColor=mix(color1,color2,u_mix)*u_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"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;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;void main() {gl_Position=projectTile(a_pos);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:pr(`in vec3 v_data;in float v_visibility;
}`,"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;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;void main() {gl_Position=projectTile(a_pos);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:mr(`in vec3 v_data;in float v_visibility;
#pragma mapbox: define highp vec4 color
#pragma mapbox: define mediump float radius
#pragma mapbox: define lowp float blur
@@ -217,7 +217,7 @@ vec2 angles=extrude*angle_scale;vec3 corner_vector=globeRotateVector(center_vect
#else
gl_Position=projectTileWithElevation(corner_position,ele);
#endif
} else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}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;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:pr(ta,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:pr(`uniform highp float u_intensity;in vec2 v_extrude;
} else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}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;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:mr(ta,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:mr(`uniform highp float u_intensity;in vec2 v_extrude;
#pragma mapbox: define highp float weight
#define GAUSS_COEF 0.3989422804014327
void main() {
@@ -240,11 +240,11 @@ vec2 angles=v_extrude*radius*u_globe_extrude_scale;vec3 center_vector=projectToS
#else
gl_Position=projectTileFor3D(circle_center+extrude,get_elevation(circle_center));
#endif
}`),heatmapTexture:pr(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));fragColor=color*u_opacity;
}`),heatmapTexture:mr(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));fragColor=color*u_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(0.0);
#endif
}`,"uniform mat4 u_matrix;uniform vec2 u_world;in vec2 a_pos;out 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:pr("in float v_placed;in float v_notUsed;void main() {float alpha=0.5;fragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {fragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {fragColor*=.1;}}","in vec2 a_anchor_pos;in vec2 a_placed;in vec2 a_box_real;uniform vec2 u_pixel_extrude_scale;out float v_placed;out float v_notUsed;void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:pr("in float v_radius;in vec2 v_extrude;in float v_collision;void main() {float alpha=0.5;float stroke_radius=0.9;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);fragColor=color*alpha*opacity_t;}","in vec2 a_pos;in float a_radius;in vec2 a_flags;uniform vec2 u_viewport_size;out float v_radius;out vec2 v_extrude;out float v_collision;void main() {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;float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_collision=collision;gl_Position=vec4((a_pos/u_viewport_size*2.0-1.0)*vec2(1.0,-1.0),0.0,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),colorRelief:pr(`#ifdef GL_ES
}`,"uniform mat4 u_matrix;uniform vec2 u_world;in vec2 a_pos;out 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:mr("in float v_placed;in float v_notUsed;void main() {float alpha=0.5;fragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {fragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {fragColor*=.1;}}","in vec2 a_anchor_pos;in vec2 a_placed;in vec2 a_box_real;uniform vec2 u_pixel_extrude_scale;out float v_placed;out float v_notUsed;void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:mr("in float v_radius;in vec2 v_extrude;in float v_collision;void main() {float alpha=0.5;float stroke_radius=0.9;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);fragColor=color*alpha*opacity_t;}","in vec2 a_pos;in float a_radius;in vec2 a_flags;uniform vec2 u_viewport_size;out float v_radius;out vec2 v_extrude;out float v_collision;void main() {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;float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_collision=collision;gl_Position=vec4((a_pos/u_viewport_size*2.0-1.0)*vec2(1.0,-1.0),0.0,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),colorRelief:mr(`#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D u_image;uniform vec4 u_unpack;uniform sampler2D u_elevation_stops;uniform sampler2D u_color_stops;uniform int u_color_ramp_size;uniform float u_opacity;in vec2 v_pos;float getElevation(vec2 coord) {vec4 data=texture(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack);}float getElevationStop(int stop) {float x=(float(stop)+0.5)/float(u_color_ramp_size);vec4 data=texture(u_elevation_stops,vec2(x,0))*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {float el=getElevation(v_pos);int r=(u_color_ramp_size-1);int l=0;float el_l=getElevationStop(l);float el_r=getElevationStop(r);while(r-l > 1){int m=(r+l)/2;float el_m=getElevationStop(m);if(el < el_m){r=m;el_r=el_m;}else
@@ -252,13 +252,13 @@ uniform sampler2D u_image;uniform vec4 u_unpack;uniform sampler2D u_elevation_st
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"uniform vec2 u_dimension;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),debug:pr("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}","in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}"),depth:pr(ta,`in vec2 a_pos;void main() {
}`,"uniform vec2 u_dimension;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),debug:mr("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}","in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}"),depth:mr(ta,`in vec2 a_pos;void main() {
#ifdef GLOBE
gl_Position=projectTileFor3D(a_pos,0.0);
#else
gl_Position=u_projection_matrix*vec4(a_pos,0.0,1.0);
#endif
}`),fill:pr(`#pragma mapbox: define highp vec4 color
}`),fill:mr(`#pragma mapbox: define highp vec4 color
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize highp vec4 color
@@ -273,7 +273,7 @@ fragColor=vec4(1.0);
void main() {
#pragma mapbox: initialize highp vec4 color
#pragma mapbox: initialize lowp float opacity
gl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:pr(`in vec2 v_pos;
gl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:mr(`in vec2 v_pos;
#ifdef GLOBE
in float v_depth;
#endif
@@ -302,7 +302,7 @@ gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos=(gl_Position.xy/gl_P
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
}`),fillOutlinePattern:pr(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos;
}`),fillOutlinePattern:mr(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos;
#ifdef GLOBE
in float v_depth;
#endif
@@ -339,7 +339,7 @@ vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
}`),fillPattern:pr(`#ifdef GL_ES
}`),fillPattern:mr(`#ifdef GL_ES
precision highp float;
#endif
uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;
@@ -366,7 +366,7 @@ void main() {
#pragma mapbox: initialize mediump vec4 pattern_to
#pragma mapbox: initialize lowp float pixel_ratio_from
#pragma mapbox: initialize lowp float pixel_ratio_to
vec2 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=projectTile(a_pos+u_fill_translate,a_pos);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:pr(`in vec4 v_color;void main() {fragColor=v_color;
vec2 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=projectTile(a_pos+u_fill_translate,a_pos);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:mr(`in vec4 v_color;void main() {fragColor=v_color;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
@@ -398,7 +398,7 @@ float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0
#ifdef GLOBE
mat3 rotMatrix=globeGetRotationMatrix(spherePos);normalForLighting=rotMatrix*normalForLighting;directional=mix(directional,clamp(dot(normalForLighting,u_lightpos_globe),0.0,1.0),u_projection_transition);
#endif
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:pr(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;in vec4 v_lighting;
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:mr(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;in vec4 v_lighting;
#pragma mapbox: define lowp float base
#pragma mapbox: define lowp float height
#pragma mapbox: define lowp vec4 pattern_from
@@ -451,14 +451,14 @@ gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);
#endif
vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0
? a_pos
: vec2(edgedistance,elevation*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:pr(`#ifdef GL_ES
: vec2(edgedistance,elevation*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:mr(`#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {vec2 epsilon=1.0/u_dimension;float tileSize=u_dimension.x-2.0;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))*tileSize/pow(2.0,exaggeration+(28.2562-u_zoom));fragColor=clamp(vec4(deriv.x/8.0+0.5,deriv.y/8.0+0.5,1.0,1.0),0.0,1.0);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;in vec2 a_pos;in vec2 a_texture_pos;out 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:pr(`uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_latrange;uniform float u_exaggeration;uniform vec4 u_accent;uniform int u_method;uniform float u_altitudes[NUM_ILLUMINATION_SOURCES];uniform float u_azimuths[NUM_ILLUMINATION_SOURCES];uniform vec4 u_shadows[NUM_ILLUMINATION_SOURCES];uniform vec4 u_highlights[NUM_ILLUMINATION_SOURCES];
}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;in vec2 a_pos;in vec2 a_texture_pos;out 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:mr(`uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_latrange;uniform float u_exaggeration;uniform vec4 u_accent;uniform int u_method;uniform float u_altitudes[NUM_ILLUMINATION_SOURCES];uniform float u_azimuths[NUM_ILLUMINATION_SOURCES];uniform vec4 u_shadows[NUM_ILLUMINATION_SOURCES];uniform vec4 u_highlights[NUM_ILLUMINATION_SOURCES];
#define PI 3.141592653589793
#define STANDARD 0
#define COMBINED 1
@@ -471,7 +471,7 @@ float get_aspect(vec2 deriv){return deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"uniform mat4 u_matrix;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);v_pos=a_pos/8192.0;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),line:pr(`uniform lowp float u_device_pixel_ratio;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;
}`,"uniform mat4 u_matrix;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);v_pos=a_pos/8192.0;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),line:mr(`uniform lowp float u_device_pixel_ratio;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;
#ifdef GLOBE
in float v_depth;
#endif
@@ -517,7 +517,7 @@ v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
v_width2=vec2(outset,inset);}`),lineGradient:pr(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv;
v_width2=vec2(outset,inset);}`),lineGradient:mr(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv;
#ifdef GLOBE
in float v_depth;
#endif
@@ -559,7 +559,7 @@ v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
v_width2=vec2(outset,inset);}`),linePattern:pr(`#ifdef GL_ES
v_width2=vec2(outset,inset);}`),linePattern:mr(`#ifdef GL_ES
precision highp float;
#endif
uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;in vec2 v_normal;in vec2 v_width2;in float v_linesofar;in float v_gamma_scale;in float v_width;
@@ -623,7 +623,7 @@ v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:pr(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;in vec2 v_normal;in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;
v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:mr(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;in vec2 v_normal;in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;
#ifdef GLOBE
in float v_depth;
#endif
@@ -676,7 +676,7 @@ v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
v_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:pr(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec2 v_pos0;in 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=texture(u_image0,v_pos0);vec4 color1=texture(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);fragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);
v_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:mr(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec2 v_pos0;in 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=texture(u_image0,v_pos0);vec4 color1=texture(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);fragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
@@ -684,7 +684,7 @@ fragColor=vec4(1.0);
#ifdef GLOBE
if (a_pos.y <-32767.5) {v_pos0.y=0.0;}if (a_pos.y > 32766.5) {v_pos0.y=1.0;}
#endif
v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}`),symbolIcon:pr(`uniform sampler2D u_texture;in vec2 v_tex;in float v_fade_opacity;
v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}`),symbolIcon:mr(`uniform sampler2D u_texture;in vec2 v_tex;in float v_fade_opacity;
#pragma mapbox: define lowp float opacity
void main() {
#pragma mapbox: initialize lowp float opacity
@@ -702,7 +702,7 @@ u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ra
#ifdef GLOBE
if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
#endif
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;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:pr(`#define SDF_PX 8.0
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;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:mr(`#define SDF_PX 8.0
uniform 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;in vec2 v_data0;in vec3 v_data1;
#pragma mapbox: define highp vec4 fill_color
#pragma mapbox: define highp vec4 halo_color
@@ -737,7 +737,7 @@ u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ra
#ifdef GLOBE
if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
#endif
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;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:pr(`#define SDF_PX 8.0
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;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:mr(`#define SDF_PX 8.0
#define SDF 1.0
#define ICON 0.0
uniform 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;in vec4 v_data0;in vec4 v_data1;
@@ -778,8 +778,8 @@ u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ra
#ifdef GLOBE
if(u_pitch_with_map && !u_is_along_line) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
#endif
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;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:pr("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}","in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,get_elevation(a_pos3d.xy)-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:pr("in 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() {fragColor=pack(v_depth);}","in vec3 a_pos3d;uniform float u_ele_delta;out float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:pr("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;in vec2 v_texture_pos;void main() {vec4 rgba=texture(u_texture,v_texture_pos);fragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","in vec3 a_pos3d;uniform float u_ele_delta;out vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);}"),projectionErrorMeasurement:pr("in vec4 v_output_error_encoded;void main() {fragColor=v_output_error_encoded;}","in vec2 a_pos;uniform highp float u_input;uniform highp float u_output_expected;out vec4 v_output_error_encoded;void main() {float real_output=2.0*atan(exp(PI-(u_input*PI*2.0)))-PI*0.5;float error=real_output-u_output_expected;float abs_error=abs(error)*128.0;v_output_error_encoded.x=min(floor(abs_error*256.0),255.0)/255.0;abs_error-=v_output_error_encoded.x;v_output_error_encoded.y=min(floor(abs_error*65536.0),255.0)/255.0;abs_error-=v_output_error_encoded.x/255.0;v_output_error_encoded.z=min(floor(abs_error*16777216.0),255.0)/255.0;v_output_error_encoded.w=error >=0.0 ? 1.0 : 0.0;gl_Position=vec4(a_pos,0.0,1.0);}"),atmosphere:pr(`in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;/**Shader use from https:*Made some change to adapt to MapLibre Globe geometry*/const float PI=3.141592653589793;const int iSteps=5;const int jSteps=3;/*radius of the planet*/const float EARTH_RADIUS=6371e3;/*radius of the atmosphere*/const float ATMOS_RADIUS=6471e3;vec2 rsi(vec3 r0,vec3 rd,float sr) {float a=dot(rd,rd);float b=2.0*dot(rd,r0);float c=dot(r0,r0)-(sr*sr);float d=(b*b)-4.0*a*c;if (d < 0.0) return vec2(1e5,-1e5);return vec2((-b-sqrt(d))/(2.0*a),(-b+sqrt(d))/(2.0*a));}vec4 atmosphere(vec3 r,vec3 r0,vec3 pSun,float iSun,float rPlanet,float rAtmos,vec3 kRlh,float kMie,float shRlh,float shMie,float g) {pSun=normalize(pSun);r=normalize(r);vec2 p=rsi(r0,r,rAtmos);if (p.x > p.y) {return vec4(0.0,0.0,0.0,1.0);}if (p.x < 0.0) {p.x=0.0;}vec3 pos=r0+r*p.x;vec2 p2=rsi(r0,r,rPlanet);if (p2.x <=p2.y && p2.x > 0.0) {p.y=min(p.y,p2.x);}float iStepSize=(p.y-p.x)/float(iSteps);float iTime=p.x+iStepSize*0.5;vec3Line truncated
);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,"in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}"),sky:pr("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform vec2 u_horizon;uniform vec2 u_horizon_normal;uniform float u_sky_horizon_blend;uniform float u_sky_blend;void main() {float x=gl_FragCoord.x;float y=gl_FragCoord.y;float blend=(y-u_horizon.y)*u_horizon_normal.y+(x-u_horizon.x)*u_horizon_normal.x;if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor=mix(fragColor,vec4(vec3(0.0),0.0),u_sky_blend);}","in vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function pr(k,l){const f=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,b=l.match(/in ([\w]+) ([\w]+)/g),S=k.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),R=l.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),j=R?R.concat(S):S,q={};return{fragmentSource:k=k.replace(f,(te,fe,ye,Oe,Ee)=>(q[Ee]=!0,fe==="define"?`
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;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:mr("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}","in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,get_elevation(a_pos3d.xy)-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:mr("in 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() {fragColor=pack(v_depth);}","in vec3 a_pos3d;uniform float u_ele_delta;out float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:mr("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;in vec2 v_texture_pos;void main() {vec4 rgba=texture(u_texture,v_texture_pos);fragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","in vec3 a_pos3d;uniform float u_ele_delta;out vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);}"),projectionErrorMeasurement:mr("in vec4 v_output_error_encoded;void main() {fragColor=v_output_error_encoded;}","in vec2 a_pos;uniform highp float u_input;uniform highp float u_output_expected;out vec4 v_output_error_encoded;void main() {float real_output=2.0*atan(exp(PI-(u_input*PI*2.0)))-PI*0.5;float error=real_output-u_output_expected;float abs_error=abs(error)*128.0;v_output_error_encoded.x=min(floor(abs_error*256.0),255.0)/255.0;abs_error-=v_output_error_encoded.x;v_output_error_encoded.y=min(floor(abs_error*65536.0),255.0)/255.0;abs_error-=v_output_error_encoded.x/255.0;v_output_error_encoded.z=min(floor(abs_error*16777216.0),255.0)/255.0;v_output_error_encoded.w=error >=0.0 ? 1.0 : 0.0;gl_Position=vec4(a_pos,0.0,1.0);}"),atmosphere:mr(`in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;/**Shader use from https:*Made some change to adapt to MapLibre Globe geometry*/const float PI=3.141592653589793;const int iSteps=5;const int jSteps=3;/*radius of the planet*/const float EARTH_RADIUS=6371e3;/*radius of the atmosphere*/const float ATMOS_RADIUS=6471e3;vec2 rsi(vec3 r0,vec3 rd,float sr) {float a=dot(rd,rd);float b=2.0*dot(rd,r0);float c=dot(r0,r0)-(sr*sr);float d=(b*b)-4.0*a*c;if (d < 0.0) return vec2(1e5,-1e5);return vec2((-b-sqrt(d))/(2.0*a),(-b+sqrt(d))/(2.0*a));}vec4 atmosphere(vec3 r,vec3 r0,vec3 pSun,float iSun,float rPlanet,float rAtmos,vec3 kRlh,float kMie,float shRlh,float shMie,float g) {pSun=normalize(pSun);r=normalize(r);vec2 p=rsi(r0,r,rAtmos);if (p.x > p.y) {return vec4(0.0,0.0,0.0,1.0);}if (p.x < 0.0) {p.x=0.0;}vec3 pos=r0+r*p.x;vec2 p2=rsi(r0,r,rPlanet);if (p2.x <=p2.y && p2.x > 0.0) {p.y=min(p.y,p2.x);}float iStepSize=(p.y-p.x)/float(iSteps);float iTime=p.x+iStepSize*0.5;vec3Line truncated
);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,"in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}"),sky:mr("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform vec2 u_horizon;uniform vec2 u_horizon_normal;uniform float u_sky_horizon_blend;uniform float u_sky_blend;void main() {float x=gl_FragCoord.x;float y=gl_FragCoord.y;float blend=(y-u_horizon.y)*u_horizon_normal.y+(x-u_horizon.x)*u_horizon_normal.x;if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor=mix(fragColor,vec4(vec3(0.0),0.0),u_sky_blend);}","in vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function mr(k,l){const f=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,b=l.match(/in ([\w]+) ([\w]+)/g),S=k.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),R=l.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),j=R?R.concat(S):S,q={};return{fragmentSource:k=k.replace(f,(te,fe,ye,Oe,Ee)=>(q[Ee]=!0,fe==="define"?`
#ifndef HAS_UNIFORM_u_${Ee}
in ${ye} ${Oe} ${Ee};
#else
@@ -828,58 +828,58 @@ uniform ${ye} ${Oe} u_${Ee};
#else
${ye} ${Oe} ${Ee} = u_${Ee};
#endif
`}),staticAttributes:b,staticUniforms:j}}class Gl{constructor(l,f,b){this.vertexBuffer=l,this.indexBuffer=f,this.segments=b}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var ba=a.aJ([{name:"a_pos",type:"Int16",components:2}]);const Wl="#define PROJECTION_MERCATOR",Iu="mercator";class wr{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return Iu}get shaderDefine(){return Wl}get shaderPreludeCode(){return Po.projectionMercator}get vertexShaderPreludeCode(){return Po.projectionMercator.vertexSource}get subdivisionGranularity(){return a.aK.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(l){}getMeshFromTileID(l,f,b,S,R){if(this._cachedMesh)return this._cachedMesh;const j=new a.aL;j.emplaceBack(0,0),j.emplaceBack(a.$,0),j.emplaceBack(0,a.$),j.emplaceBack(a.$,a.$);const q=l.createVertexBuffer(j,ba.members),te=a.aM.simpleSegment(0,0,4,2),fe=new a.aN;fe.emplaceBack(1,0,2),fe.emplaceBack(1,2,3);const ye=l.createIndexBuffer(fe);return this._cachedMesh=new Gl(q,ye,te),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(l){}}class Au{constructor(l=0,f=0,b=0,S=0){if(isNaN(l)||l<0||isNaN(f)||f<0||isNaN(b)||b<0||isNaN(S)||S<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=l,this.bottom=f,this.left=b,this.right=S}interpolate(l,f,b){return f.top!=null&&l.top!=null&&(this.top=a.C.number(l.top,f.top,b)),f.bottom!=null&&l.bottom!=null&&(this.bottom=a.C.number(l.bottom,f.bottom,b)),f.left!=null&&l.left!=null&&(this.left=a.C.number(l.left,f.left,b)),f.right!=null&&l.right!=null&&(this.right=a.C.number(l.right,f.right,b)),this}getCenter(l,f){const b=a.ah((this.left+l-this.right)/2,0,l),S=a.ah((this.top+f-this.bottom)/2,0,f);return new a.P(b,S)}equals(l){return this.top===l.top&&this.bottom===l.bottom&&this.left===l.left&&this.right===l.right}clone(){return new Au(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function yA(k,l){if(!k.renderWorldCopies||k.lngRange)return;const f=l.lng-k.center.lng;l.lng+=f>180?-360:f<-180?360:0}function Wo(k){return Math.max(0,Math.floor(k))}class Io{constructor(l,f,b,S,R,j){this._callbacks=l,this._tileSize=512,this._renderWorldCopies=j===void 0||!!j,this._minZoom=f||0,this._maxZoom=b||22,this._minPitch=S??0,this._maxPitch=R??60,this.setMaxBounds(),this._width=0,this._height=0,this._center=new a.S(0,0),this._elevation=0,this._zoom=0,this._tileZoom=Wo(this._zoom),this._scale=a.af(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new Au,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(l,f,b){this._latRange=l.latRange,this._lngRange=l.lngRange,this._width=l.width,this._height=l.height,this._center=l.center,this._elevation=l.elevation,this._minElevationForCurrentTile=l.minElevationForCurrentTile,this._zoom=l.zoom,this._tileZoom=Wo(this._zoom),this._scale=a.af(this._zoom),this._bearingInRadians=l.bearingInRadians,this._fovInRadians=l.fovInRadians,this._pitchInRadians=l.pitchInRadians,this._rollInRadians=l.rollInRadians,this._unmodified=l.unmodified,this._edgeInsets=new Au(l.padding.top,l.padding.bottom,l.padding.left,l.padding.right),this._minZoom=l.minZoom,this._maxZoom=l.maxZoom,this._minPitch=l.minPitch,this._maxPitch=l.maxPitch,this._renderWorldCopies=l.renderWorldCopies,this._cameraToCenterDistance=l.cameraToCenterDistance,this._nearZ=l.nearZ,this._farZ=l.farZ,this._autoCalculateNearFarZ=!b&&l.autoCalculateNearFarZ,f&&this._constrain(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(l){this._minElevationForCurrentTile=l}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(l){this._minZoom!==l&&(this._minZoom=l,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get maxZoom(){return this._maxZoom}setMaxZoom(l){this._maxZoom!==l&&(this._maxZoom=l,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get minPitch(){return this._minPitch}setMinPitch(l){this._minPitch!==l&&(this._minPitch=l,this.setPitch(Math.max(this.pitch,l)))}get maxPitch(){return this._maxPitch}setMax Line truncated
`}),staticAttributes:b,staticUniforms:j}}class Gl{constructor(l,f,b){this.vertexBuffer=l,this.indexBuffer=f,this.segments=b}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var ba=a.aJ([{name:"a_pos",type:"Int16",components:2}]);const Wl="#define PROJECTION_MERCATOR",Iu="mercator";class Sr{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return Iu}get shaderDefine(){return Wl}get shaderPreludeCode(){return Po.projectionMercator}get vertexShaderPreludeCode(){return Po.projectionMercator.vertexSource}get subdivisionGranularity(){return a.aK.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(l){}getMeshFromTileID(l,f,b,S,R){if(this._cachedMesh)return this._cachedMesh;const j=new a.aL;j.emplaceBack(0,0),j.emplaceBack(a.$,0),j.emplaceBack(0,a.$),j.emplaceBack(a.$,a.$);const q=l.createVertexBuffer(j,ba.members),te=a.aM.simpleSegment(0,0,4,2),fe=new a.aN;fe.emplaceBack(1,0,2),fe.emplaceBack(1,2,3);const ye=l.createIndexBuffer(fe);return this._cachedMesh=new Gl(q,ye,te),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(l){}}class Au{constructor(l=0,f=0,b=0,S=0){if(isNaN(l)||l<0||isNaN(f)||f<0||isNaN(b)||b<0||isNaN(S)||S<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=l,this.bottom=f,this.left=b,this.right=S}interpolate(l,f,b){return f.top!=null&&l.top!=null&&(this.top=a.C.number(l.top,f.top,b)),f.bottom!=null&&l.bottom!=null&&(this.bottom=a.C.number(l.bottom,f.bottom,b)),f.left!=null&&l.left!=null&&(this.left=a.C.number(l.left,f.left,b)),f.right!=null&&l.right!=null&&(this.right=a.C.number(l.right,f.right,b)),this}getCenter(l,f){const b=a.ah((this.left+l-this.right)/2,0,l),S=a.ah((this.top+f-this.bottom)/2,0,f);return new a.P(b,S)}equals(l){return this.top===l.top&&this.bottom===l.bottom&&this.left===l.left&&this.right===l.right}clone(){return new Au(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function yA(k,l){if(!k.renderWorldCopies||k.lngRange)return;const f=l.lng-k.center.lng;l.lng+=f>180?-360:f<-180?360:0}function Wo(k){return Math.max(0,Math.floor(k))}class Io{constructor(l,f,b,S,R,j){this._callbacks=l,this._tileSize=512,this._renderWorldCopies=j===void 0||!!j,this._minZoom=f||0,this._maxZoom=b||22,this._minPitch=S??0,this._maxPitch=R??60,this.setMaxBounds(),this._width=0,this._height=0,this._center=new a.S(0,0),this._elevation=0,this._zoom=0,this._tileZoom=Wo(this._zoom),this._scale=a.af(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new Au,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(l,f,b){this._latRange=l.latRange,this._lngRange=l.lngRange,this._width=l.width,this._height=l.height,this._center=l.center,this._elevation=l.elevation,this._minElevationForCurrentTile=l.minElevationForCurrentTile,this._zoom=l.zoom,this._tileZoom=Wo(this._zoom),this._scale=a.af(this._zoom),this._bearingInRadians=l.bearingInRadians,this._fovInRadians=l.fovInRadians,this._pitchInRadians=l.pitchInRadians,this._rollInRadians=l.rollInRadians,this._unmodified=l.unmodified,this._edgeInsets=new Au(l.padding.top,l.padding.bottom,l.padding.left,l.padding.right),this._minZoom=l.minZoom,this._maxZoom=l.maxZoom,this._minPitch=l.minPitch,this._maxPitch=l.maxPitch,this._renderWorldCopies=l.renderWorldCopies,this._cameraToCenterDistance=l.cameraToCenterDistance,this._nearZ=l.nearZ,this._farZ=l.farZ,this._autoCalculateNearFarZ=!b&&l.autoCalculateNearFarZ,f&&this._constrain(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(l){this._minElevationForCurrentTile=l}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(l){this._minZoom!==l&&(this._minZoom=l,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get maxZoom(){return this._maxZoom}setMaxZoom(l){this._maxZoom!==l&&(this._maxZoom=l,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get minPitch(){return this._minPitch}setMinPitch(l){this._minPitch!==l&&(this._minPitch=l,this.setPitch(Math.max(this.pitch,l)))}get maxPitch(){return this._maxPitch}setMax Line truncated
`),zt=St.concat(Po.prelude.vertexSource,q.vertexSource,f.vertexSource).join(`
`);lt(ye)||(Pt=function(Jt){return Jt.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")}(Pt),zt=function(Jt){return Jt.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")}(zt));const Ot=ye.createShader(ye.FRAGMENT_SHADER);if(ye.isContextLost())return void(this.failedToCreate=!0);if(ye.shaderSource(Ot,Pt),ye.compileShader(Ot),!ye.getShaderParameter(Ot,ye.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${ye.getShaderInfoLog(Ot)}`);ye.attachShader(this.program,Ot);const Ht=ye.createShader(ye.VERTEX_SHADER);if(ye.isContextLost())return void(this.failedToCreate=!0);if(ye.shaderSource(Ht,zt),ye.compileShader(Ht),!ye.getShaderParameter(Ht,ye.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${ye.getShaderInfoLog(Ht)}`);ye.attachShader(this.program,Ht),this.attributes={};const fn={};this.numAttributes=Ne.length;for(let Jt=0;Jt<this.numAttributes;Jt++)Ne[Jt]&&(ye.bindAttribLocation(this.program,Jt,Ne[Jt]),this.attributes[Ne[Jt]]=Jt);if(ye.linkProgram(this.program),!ye.getProgramParameter(this.program,ye.LINK_STATUS))throw new Error(`Program failed to link: ${ye.getProgramInfoLog(this.program)}`);ye.deleteShader(Ht),ye.deleteShader(Ot);for(let Jt=0;Jt<Ct.length;Jt++){const rn=Ct[Jt];if(rn&&!fn[rn]){const An=ye.getUniformLocation(this.program,rn);An&&(fn[rn]=An)}}this.fixedUniforms=S(l,fn),this.terrainUniforms=((Jt,rn)=>({u_depth:new a.bP(Jt,rn.u_depth),u_terrain:new a.bP(Jt,rn.u_terrain),u_terrain_dim:new a.bg(Jt,rn.u_terrain_dim),u_terrain_matrix:new a.bR(Jt,rn.u_terrain_matrix),u_terrain_unpack:new a.bS(Jt,rn.u_terrain_unpack),u_terrain_exaggeration:new a.bg(Jt,rn.u_terrain_exaggeration)}))(l,fn),this.projectionUniforms=((Jt,rn)=>({u_projection_matrix:new a.bR(Jt,rn.u_projection_matrix),u_projection_tile_mercator_coords:new a.bS(Jt,rn.u_projection_tile_mercator_coords),u_projection_clipping_plane:new a.bS(Jt,rn.u_projection_clipping_plane),u_projection_transition:new a.bg(Jt,rn.u_projection_transition),u_projection_fallback_matrix:new a.bR(Jt,rn.u_projection_fallback_matrix)}))(l,fn),this.binderUniforms=b?b.getUniforms(l,fn):[]}draw(l,f,b,S,R,j,q,te,fe,ye,Oe,Ee,Ne,Je,ut,ht,ft,Mt,Ct){const St=l.gl;if(this.failedToCreate)return;if(l.program.set(this.program),l.setDepthMode(b),l.setStencilMode(S),l.setColorMode(R),l.setCullFace(j),te){l.activeTexture.set(St.TEXTURE2),St.bindTexture(St.TEXTURE_2D,te.depthTexture),l.activeTexture.set(St.TEXTURE3),St.bindTexture(St.TEXTURE_2D,te.texture);for(const zt in this.terrainUniforms)this.terrainUniforms[zt].set(te[zt])}if(fe)for(const zt in fe)this.projectionUniforms[qf[zt]].set(fe[zt]);if(q)for(const zt in this.fixedUniforms)this.fixedUniforms[zt].set(q[zt]);ht&&ht.setUniforms(l,this.binderUniforms,Je,{zoom:ut});let Pt=0;switch(f){case St.LINES:Pt=2;break;case St.TRIANGLES:Pt=3;break;case St.LINE_STRIP:Pt=1}for(const zt of Ne.get()){const Ot=zt.vaos||(zt.vaos={});(Ot[ye]||(Ot[ye]=new b0)).bind(l,this,Oe,ht?ht.getPaintVertexBuffers():[],Ee,zt.vertexOffset,ft,Mt,Ct),St.drawElements(f,zt.primitiveLength*Pt,St.UNSIGNED_SHORT,zt.primitiveOffset*Pt*2)}}}function Id(k,l,f){const b=1/a.aC(f,1,l.transform.tileZoom),S=Math.pow(2,f.tileID.overscaledZ),R=f.tileSize*Math.pow(2,l.transform.tileZoom)/S,j=R*(f.tileID.canonical.x+f.tileID.wrap*S),q=R*f.tileID.canonical.y;return{u_image:0,u_texsize:f.imageAtlasTexture.size,u_scale:[b,k.fromScale,k.toScale],u_fade:k.t,u_pixel_coord_upper:[j>>16,q>>16],u_pixel_coord_lower:[65535&j,65535&q]}}const Yl=(k,l,f,b)=>{const S=k.style.light,R=S.properties.get("position"),j=[R.x,R.y,R.z],q=a.bV();S.properties.get("anchor")==="viewport"&&a.bW(q,k.transform.bearingInRadians),a.bX(j,j,q);const te=k.transform.transformLightDirection(j),fe=S.properties.get("color");return{u_lightpos:j,u_lightpos_globe:te,u_lightintensity:S.properties.get("intensity"),u_lightcolor:[fe.r,fe.g,fe.b],u_vertical_gradient:+l,u_opacity:f,u_fill_translate:b}},Td=(k,l,f,b,S,R,j)=>a.e(Yl(k,l,f,b),Id(R,k,j),{u_height_factor:-Math.pow(2,S.overscaledZ)/j.tileSize/8}),Zh=(k,l,f,b)=>a.e(Id(l,k,f),{u_fill_translate:b}),th=(k,l)=>({u_world:k,u_fill_translate:l}),Xh=(k,l,f,b,S)=>a.e(Zh(k,l,f,S),{u_world:b}),Hf=(k,l,f,b,S)=>{const R=k.transform;let j,q,te=0;if(f.paint.get("circle-pitch-alignment")==="map"){const fe=a.aC(l,1,R.zoom);j=!0,q=[fe,fe],te=fe/(a.$*Math.pow(2,l.tileID.overscaledZ))*2*Math.PI*S}else j=!1,q=R.pixelsToGLUnits;return{u_camera_to_center_distance:R.cameraToCenterDistance,u_scale_with_map:+(f.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+j,u_device_pixel_ratio:k.pixelRatio,u_extrude_scale:q,u_globe_extrude_scale:te,u_translate:b}},Eh=k=>({u_pixel_extrude_scale:[1/k.width,1/k.height]}),Bh=k=>({u_viewport_size:[k.width,k.height]}),Jh=(k,l=1)=>({u_color:k,u_overlay:0,u_overlay_scale:l}),Vf=(k,l,f,b)=>{const S=a.aC(k,1,l)/(a.$*Math.pow(2,k.tileID.overscaledZ))*2*Math.PI*b;return{u_extrude_scale:a.a Line truncated
`);lt(ye)||(Pt=function(Jt){return Jt.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")}(Pt),zt=function(Jt){return Jt.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")}(zt));const Ot=ye.createShader(ye.FRAGMENT_SHADER);if(ye.isContextLost())return void(this.failedToCreate=!0);if(ye.shaderSource(Ot,Pt),ye.compileShader(Ot),!ye.getShaderParameter(Ot,ye.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${ye.getShaderInfoLog(Ot)}`);ye.attachShader(this.program,Ot);const Ht=ye.createShader(ye.VERTEX_SHADER);if(ye.isContextLost())return void(this.failedToCreate=!0);if(ye.shaderSource(Ht,zt),ye.compileShader(Ht),!ye.getShaderParameter(Ht,ye.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${ye.getShaderInfoLog(Ht)}`);ye.attachShader(this.program,Ht),this.attributes={};const fn={};this.numAttributes=Ne.length;for(let Jt=0;Jt<this.numAttributes;Jt++)Ne[Jt]&&(ye.bindAttribLocation(this.program,Jt,Ne[Jt]),this.attributes[Ne[Jt]]=Jt);if(ye.linkProgram(this.program),!ye.getProgramParameter(this.program,ye.LINK_STATUS))throw new Error(`Program failed to link: ${ye.getProgramInfoLog(this.program)}`);ye.deleteShader(Ht),ye.deleteShader(Ot);for(let Jt=0;Jt<Ct.length;Jt++){const rn=Ct[Jt];if(rn&&!fn[rn]){const An=ye.getUniformLocation(this.program,rn);An&&(fn[rn]=An)}}this.fixedUniforms=S(l,fn),this.terrainUniforms=((Jt,rn)=>({u_depth:new a.bP(Jt,rn.u_depth),u_terrain:new a.bP(Jt,rn.u_terrain),u_terrain_dim:new a.bg(Jt,rn.u_terrain_dim),u_terrain_matrix:new a.bR(Jt,rn.u_terrain_matrix),u_terrain_unpack:new a.bS(Jt,rn.u_terrain_unpack),u_terrain_exaggeration:new a.bg(Jt,rn.u_terrain_exaggeration)}))(l,fn),this.projectionUniforms=((Jt,rn)=>({u_projection_matrix:new a.bR(Jt,rn.u_projection_matrix),u_projection_tile_mercator_coords:new a.bS(Jt,rn.u_projection_tile_mercator_coords),u_projection_clipping_plane:new a.bS(Jt,rn.u_projection_clipping_plane),u_projection_transition:new a.bg(Jt,rn.u_projection_transition),u_projection_fallback_matrix:new a.bR(Jt,rn.u_projection_fallback_matrix)}))(l,fn),this.binderUniforms=b?b.getUniforms(l,fn):[]}draw(l,f,b,S,R,j,q,te,fe,ye,Oe,Ee,Ne,Je,ut,ht,ft,Mt,Ct){const St=l.gl;if(this.failedToCreate)return;if(l.program.set(this.program),l.setDepthMode(b),l.setStencilMode(S),l.setColorMode(R),l.setCullFace(j),te){l.activeTexture.set(St.TEXTURE2),St.bindTexture(St.TEXTURE_2D,te.depthTexture),l.activeTexture.set(St.TEXTURE3),St.bindTexture(St.TEXTURE_2D,te.texture);for(const zt in this.terrainUniforms)this.terrainUniforms[zt].set(te[zt])}if(fe)for(const zt in fe)this.projectionUniforms[qf[zt]].set(fe[zt]);if(q)for(const zt in this.fixedUniforms)this.fixedUniforms[zt].set(q[zt]);ht&&ht.setUniforms(l,this.binderUniforms,Je,{zoom:ut});let Pt=0;switch(f){case St.LINES:Pt=2;break;case St.TRIANGLES:Pt=3;break;case St.LINE_STRIP:Pt=1}for(const zt of Ne.get()){const Ot=zt.vaos||(zt.vaos={});(Ot[ye]||(Ot[ye]=new b0)).bind(l,this,Oe,ht?ht.getPaintVertexBuffers():[],Ee,zt.vertexOffset,ft,Mt,Ct),St.drawElements(f,zt.primitiveLength*Pt,St.UNSIGNED_SHORT,zt.primitiveOffset*Pt*2)}}}function Id(k,l,f){const b=1/a.aC(f,1,l.transform.tileZoom),S=Math.pow(2,f.tileID.overscaledZ),R=f.tileSize*Math.pow(2,l.transform.tileZoom)/S,j=R*(f.tileID.canonical.x+f.tileID.wrap*S),q=R*f.tileID.canonical.y;return{u_image:0,u_texsize:f.imageAtlasTexture.size,u_scale:[b,k.fromScale,k.toScale],u_fade:k.t,u_pixel_coord_upper:[j>>16,q>>16],u_pixel_coord_lower:[65535&j,65535&q]}}const Yl=(k,l,f,b)=>{const S=k.style.light,R=S.properties.get("position"),j=[R.x,R.y,R.z],q=a.bV();S.properties.get("anchor")==="viewport"&&a.bW(q,k.transform.bearingInRadians),a.bX(j,j,q);const te=k.transform.transformLightDirection(j),fe=S.properties.get("color");return{u_lightpos:j,u_lightpos_globe:te,u_lightintensity:S.properties.get("intensity"),u_lightcolor:[fe.r,fe.g,fe.b],u_vertical_gradient:+l,u_opacity:f,u_fill_translate:b}},Td=(k,l,f,b,S,R,j)=>a.e(Yl(k,l,f,b),Id(R,k,j),{u_height_factor:-Math.pow(2,S.overscaledZ)/j.tileSize/8}),Zh=(k,l,f,b)=>a.e(Id(l,k,f),{u_fill_translate:b}),th=(k,l)=>({u_world:k,u_fill_translate:l}),Xh=(k,l,f,b,S)=>a.e(Zh(k,l,f,S),{u_world:b}),Hf=(k,l,f,b,S)=>{const R=k.transform;let j,q,te=0;if(f.paint.get("circle-pitch-alignment")==="map"){const fe=a.aC(l,1,R.zoom);j=!0,q=[fe,fe],te=fe/(a.$*Math.pow(2,l.tileID.overscaledZ))*2*Math.PI*S}else j=!1,q=R.pixelsToGLUnits;return{u_camera_to_center_distance:R.cameraToCenterDistance,u_scale_with_map:+(f.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+j,u_device_pixel_ratio:k.pixelRatio,u_extrude_scale:q,u_globe_extrude_scale:te,u_translate:b}},Eh=k=>({u_pixel_extrude_scale:[1/k.width,1/k.height]}),Bh=k=>({u_viewport_size:[k.width,k.height]}),Jh=(k,l=1)=>({u_color:k,u_overlay:0,u_overlay_scale:l}),Vf=(k,l,f,b)=>{const S=a.aC(k,1,l)/(a.$*Math.pow(2,k.tileID.overscaledZ))*2*Math.PI*b;return{u_extrude_scale:a.a Line truncated
uniform mat4 u_projection_matrix;
${Ne.shaderPreludeCode.vertexSource}`,define:Ne.shaderDefine},defaultProjectionData:ut},ft=Ee.renderingMode?Ee.renderingMode:"2d";if(j.renderPass==="offscreen"){const Mt=Ee.prerender;Mt&&(j.setCustomLayerDefaults(),Oe.setColorMode(j.colorModeForRenderPass()),Mt.call(Ee,Oe.gl,ht),Oe.setDirty(),j.setBaseState())}else if(j.renderPass==="translucent"){j.setCustomLayerDefaults(),Oe.setColorMode(j.colorModeForRenderPass()),Oe.setStencilMode(ie.disabled);const Mt=ft==="3d"?j.getDepthModeFor3D():j.getDepthModeForSublayer(0,Si.ReadOnly);Oe.setDepthMode(Mt),Ee.render(Oe.gl,ht),Oe.setDirty(),j.setBaseState(),Oe.bindFramebuffer.set(null)}}(l,0,b,R))}saveTileTexture(l){const f=this._tileTextures[l.size[0]];f?f.push(l):this._tileTextures[l.size[0]]=[l]}getTileTexture(l){const f=this._tileTextures[l];return f&&f.length>0?f.pop():null}isPatternMissing(l){if(!l)return!1;if(!l.from||!l.to)return!0;const f=this.imageManager.getPattern(l.from.toString()),b=this.imageManager.getPattern(l.to.toString());return!f||!b}useProgram(l,f,b=!1,S=[]){this.cache=this.cache||{};const R=!!this.style.map.terrain,j=this.style.projection,q=b?Po.projectionMercator:j.shaderPreludeCode,te=b?Wl:j.shaderDefine,fe=l+(f?f.cacheKey:"")+`/${b?Iu:j.shaderVariantName}`+(this._showOverdrawInspector?"/overdraw":"")+(R?"/terrain":"")+(S?`/${S.join("/")}`:"");return this.cache[fe]||(this.cache[fe]=new as(this.context,Po[l],f,Tu[l],this._showOverdrawInspector,R,q,te,S)),this.cache[fe]}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(){const l=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(l.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new a.T(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:l,drawingBufferHeight:f}=this.context.gl;return this.width!==l||this.height!==f}}function sA(k,l){let f,b=!1,S=null,R=null;const j=()=>{S=null,b&&(k.apply(R,f),S=setTimeout(j,l),b=!1)};return(...q)=>(b=!0,R=this,f=q,S||j(),S)}class at{constructor(l){this._getCurrentHash=()=>{const f=window.location.hash.replace("#","");if(this._hashName){let b;return f.split("&").map(S=>S.split("=")).forEach(S=>{S[0]===this._hashName&&(b=S)}),(b&&b[1]||"").split("/")}return f.split("/")},this._onHashChange=()=>{const f=this._getCurrentHash();if(!this._isValidHash(f))return!1;const b=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(f[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+f[2],+f[1]],zoom:+f[0],bearing:b,pitch:+(f[4]||0)}),!0},this._updateHashUnthrottled=()=>{const f=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,f)},this._removeHash=()=>{const f=this._getCurrentHash();if(f.length===0)return;const b=f.join("/");let S=b;S.split("&").length>0&&(S=S.split("&")[0]),this._hashName&&(S=`${this._hashName}=${b}`);let R=window.location.hash.replace(S,"");R.startsWith("#&")?R=R.slice(0,1)+R.slice(2):R==="#"&&(R="");let j=window.location.href.replace(/(#.+)?$/,R);j=j.replace("&&","&"),window.history.replaceState(window.history.state,null,j)},this._updateHash=sA(this._updateHashUnthrottled,300),this._hashName=l&&encodeURIComponent(l)}addTo(l){return this._map=l,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()),this._removeHash(),delete this._map,this}getHashString(l){const f=this._map.getCenter(),b=Math.round(100*this._map.getZoom())/100,S=Math.ceil((b*Math.LN2+Math.log(512/360/.5))/Math.LN10),R=Math.pow(10,S),j=Math.round(f.lng*R)/R,q=Math.round(f.lat*R)/R,te=this._map.getBearing(),fe=this._map.getPitch();let ye="";if(ye+=l?`/${j}/${q}/${b}`:`${b}/${q}/${j}`,(te||fe)&&(ye+="/"+Math.round(10*te)/10),fe&&(ye+=`/${Math.round(fe)}`),this._hashName){const Oe=this._hashName;let Ee=!1;const Ne=window.location.hash.slice(1).split("&").map(Je=>{const ut=Je.split("=")[0];return ut===Oe?(Ee=!0,`${ut}=${ye}`):Je}).filter(Je=>Je);return Ee||Ne.push(`${Oe}=${ye}`),`#${Ne.join("&")}`}return`#${ye}`}_isValidHash(l){if(l.length<3||l.some(isNaN))return!1;try{new a.S(+l[2],+l[1])}catch{return!1}const f=+l[0],b=+(l[3]||0),S=+(l[4]||0);return f>=this._map.getMinZoom()&&f<=this._map.getMaxZoom()&&b>=-180&&b<=180&&S>=this._map.getMinPitch()&&S<=this._map.getMaxPitch()}}const nl={linearity:.3,easing:a.cm(0,0,.3 Line truncated
${Ne.shaderPreludeCode.vertexSource}`,define:Ne.shaderDefine},defaultProjectionData:ut},ft=Ee.renderingMode?Ee.renderingMode:"2d";if(j.renderPass==="offscreen"){const Mt=Ee.prerender;Mt&&(j.setCustomLayerDefaults(),Oe.setColorMode(j.colorModeForRenderPass()),Mt.call(Ee,Oe.gl,ht),Oe.setDirty(),j.setBaseState())}else if(j.renderPass==="translucent"){j.setCustomLayerDefaults(),Oe.setColorMode(j.colorModeForRenderPass()),Oe.setStencilMode(ie.disabled);const Mt=ft==="3d"?j.getDepthModeFor3D():j.getDepthModeForSublayer(0,Ei.ReadOnly);Oe.setDepthMode(Mt),Ee.render(Oe.gl,ht),Oe.setDirty(),j.setBaseState(),Oe.bindFramebuffer.set(null)}}(l,0,b,R))}saveTileTexture(l){const f=this._tileTextures[l.size[0]];f?f.push(l):this._tileTextures[l.size[0]]=[l]}getTileTexture(l){const f=this._tileTextures[l];return f&&f.length>0?f.pop():null}isPatternMissing(l){if(!l)return!1;if(!l.from||!l.to)return!0;const f=this.imageManager.getPattern(l.from.toString()),b=this.imageManager.getPattern(l.to.toString());return!f||!b}useProgram(l,f,b=!1,S=[]){this.cache=this.cache||{};const R=!!this.style.map.terrain,j=this.style.projection,q=b?Po.projectionMercator:j.shaderPreludeCode,te=b?Wl:j.shaderDefine,fe=l+(f?f.cacheKey:"")+`/${b?Iu:j.shaderVariantName}`+(this._showOverdrawInspector?"/overdraw":"")+(R?"/terrain":"")+(S?`/${S.join("/")}`:"");return this.cache[fe]||(this.cache[fe]=new as(this.context,Po[l],f,Tu[l],this._showOverdrawInspector,R,q,te,S)),this.cache[fe]}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(){const l=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(l.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new a.T(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:l,drawingBufferHeight:f}=this.context.gl;return this.width!==l||this.height!==f}}function sA(k,l){let f,b=!1,S=null,R=null;const j=()=>{S=null,b&&(k.apply(R,f),S=setTimeout(j,l),b=!1)};return(...q)=>(b=!0,R=this,f=q,S||j(),S)}class at{constructor(l){this._getCurrentHash=()=>{const f=window.location.hash.replace("#","");if(this._hashName){let b;return f.split("&").map(S=>S.split("=")).forEach(S=>{S[0]===this._hashName&&(b=S)}),(b&&b[1]||"").split("/")}return f.split("/")},this._onHashChange=()=>{const f=this._getCurrentHash();if(!this._isValidHash(f))return!1;const b=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(f[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+f[2],+f[1]],zoom:+f[0],bearing:b,pitch:+(f[4]||0)}),!0},this._updateHashUnthrottled=()=>{const f=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,f)},this._removeHash=()=>{const f=this._getCurrentHash();if(f.length===0)return;const b=f.join("/");let S=b;S.split("&").length>0&&(S=S.split("&")[0]),this._hashName&&(S=`${this._hashName}=${b}`);let R=window.location.hash.replace(S,"");R.startsWith("#&")?R=R.slice(0,1)+R.slice(2):R==="#"&&(R="");let j=window.location.href.replace(/(#.+)?$/,R);j=j.replace("&&","&"),window.history.replaceState(window.history.state,null,j)},this._updateHash=sA(this._updateHashUnthrottled,300),this._hashName=l&&encodeURIComponent(l)}addTo(l){return this._map=l,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()),this._removeHash(),delete this._map,this}getHashString(l){const f=this._map.getCenter(),b=Math.round(100*this._map.getZoom())/100,S=Math.ceil((b*Math.LN2+Math.log(512/360/.5))/Math.LN10),R=Math.pow(10,S),j=Math.round(f.lng*R)/R,q=Math.round(f.lat*R)/R,te=this._map.getBearing(),fe=this._map.getPitch();let ye="";if(ye+=l?`/${j}/${q}/${b}`:`${b}/${q}/${j}`,(te||fe)&&(ye+="/"+Math.round(10*te)/10),fe&&(ye+=`/${Math.round(fe)}`),this._hashName){const Oe=this._hashName;let Ee=!1;const Ne=window.location.hash.slice(1).split("&").map(Je=>{const ut=Je.split("=")[0];return ut===Oe?(Ee=!0,`${ut}=${ye}`):Je}).filter(Je=>Je);return Ee||Ne.push(`${Oe}=${ye}`),`#${Ne.join("&")}`}return`#${ye}`}_isValidHash(l){if(l.length<3||l.some(isNaN))return!1;try{new a.S(+l[2],+l[1])}catch{return!1}const f=+l[0],b=+(l[3]||0),S=+(l[4]||0);return f>=this._map.getMinZoom()&&f<=this._map.getMaxZoom()&&b>=-180&&b<=180&&S>=this._map.getMinPitch()&&S<=this._map.getMaxPitch()}}const nl={linearity:.3,easing:a.cm(0,0,.3 Line truncated
${e} <span></span>
`,ys().s[12]++,this._textEl=this._container.querySelector("span"),ys().s[13]++,this.updateZoomLevel()}addEventListeners(){ys().f[4]++,ys().s[14]++,this._map.on("render",()=>(ys().f[5]++,ys().s[15]++,this.updateZoomLevel())),ys().s[16]++,this._map.on("zoomIn",()=>(ys().f[6]++,ys().s[17]++,this.updateZoomLevel())),ys().s[18]++,this._map.on("zoomOut",()=>(ys().f[7]++,ys().s[19]++,this.updateZoomLevel()))}onRemove(){ys().f[8]++,ys().s[20]++,this._container.parentNode.removeChild(this._container),ys().s[21]++,this._map=void 0}}function LB(n,e,t){const i={id:[e,t,"circle"].join("_"),source:e,type:"circle",paint:{"circle-color":n,"circle-radius":2},filter:["==","$type","Point"]};return t&&(i["source-layer"]=t),i}function FB(n,e,t,i){const r={id:[t,i,"polygon"].join("_"),source:t,type:"fill",paint:{"fill-color":n,"fill-antialias":!0,"fill-outline-color":n},filter:["==","$type","Polygon"]};return i&&(r["source-layer"]=i),r}function zB(n,e,t){const i={id:[e,t,"line"].join("_"),source:e,layout:{"line-join":"round","line-cap":"round"},type:"line",paint:{"line-color":n},filter:["==","$type","LineString"]};return t&&(i["source-layer"]=t),i}function fee(n,e){const t=[],i=[],r=[];function o(s){return{circle:e(s,.8),line:e(s,.6),polygon:e(s,.3),polygonOutline:e(s,.6),default:e(s,1)}}return Object.keys(n).forEach(s=>{const a=n[s];if(!a||a.length===0){const p=o(s);i.push(LB(p.circle,s)),r.push(zB(p.line,s)),t.push(FB(p.polygon,p.polygonOutline,s))}else a.forEach(p=>{const g=o(p);i.push(LB(g.circle,s,p)),r.push(zB(g.line,s,p)),t.push(FB(g.polygon,g.polygonOutline,s,p))})}),t.concat(r).concat(i)}function pee(n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const i={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},r={};return Object.keys(n.sources).forEach(o=>{const s=n.sources[o];(s.type==="vector"||s.type==="geojson")&&(r[o]=s)}),Object.assign(n,{layers:[i].concat(e),sources:r})}const bM={polygonLayer:FB,lineLayer:zB,circleLayer:LB,generateInspectStyle:pee,generateColoredLayers:fee};function Co(){var n="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",e="aec0f701e803624fae461cc89b5fc887ff556587",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",statementMap:{0:{start:{line:4,column:2},end:{line:8,column:3}},1:{start:{line:5,column:4},end:{line:5,column:33}},2:{start:{line:6,column:9},end:{line:8,column:3}},3:{start:{line:7,column:4},end:{line:7,column:30}},4:{start:{line:9,column:2},end:{line:13,column:3}},5:{start:{line:10,column:4},end:{line:10,column:28}},6:{start:{line:12,column:4},end:{line:12,column:23}},7:{start:{line:14,column:2},end:{line:14,column:29}},8:{start:{line:15,column:2},end:{line:15,column:11}},9:{start:{line:18,column:2},end:{line:18,column:84}},10:{start:{line:18,column:72},end:{line:18,column:84}},11:{start:{line:19,column:24},end:{line:19,column:51}},12:{start:{line:20,column:16},end:{line:20,column:52}},13:{start:{line:21,column:2},end:{line:23,column:3}},14:{start:{line:22,column:4},end:{line:22,column:104}},15:{start:{line:24,column:2},end:{line:26,column:3}},16:{start:{line:25,column:4},end:{line:25,column:96}},17:{start:{line:27,column:2},end:{line:29,column:3}},18:{start:{line:28,column:4},end:{line:28,column:94}},19:{start:{line:30,column:2},end:{line:30,column:14}}},fnMap:{0:{name:"changeLayer",decl:{start:{line:3,column:9},end:{line:3,column:20}},loc:{start:{line:3,column:31},end:{line:16,column:1}},line:3},1:{name:"colorHighlightedLayer",decl:{start:{line:17,column:16},end:{line:17,column:37}},loc:{start:{line:17,column:45},end:{line:31,column:1}},line:17}},branchMap:{0:{loc:{start:{line:4,column:2},end:{line:8,column:3}},type:"if",locations:[{start:{line:4,column:2},end:{line:8,column:3}},{start:{line:6,column:9},end:{line:8,column:3}}],line:4},1:{loc:{start:{line:6,column:9},end:{line:8,column:3}},type:"if",locations:[{start:{line:6,column:9},end:{line:8,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},2:{loc:{start:{line:9,column:2},end:{line:13,column:3}},type:"if",locations:[{start:{line:9,column:2},end:{line:13,column:3}},{start:{line:11,column:9},end:{line:13,column:3}}],line:9},3:{loc:{start:{line:18,column:2},end:{line:18,column:84}},type:"if",locations:[{start:{line:18,column:2},end:{line:18,column:84}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},4:{loc:{start:{line:18,column:6},end:{line:18,column:70}},type:"binary-expr",locations:[{start:{line:18,column:6},end:{line:18,column:12}},{start:{line:18,column:16},end:{line:18,column:43}},{start:{line:18,column:47},end:{line:18,column:70}}],line:18},5:{loc:{start:{line:19,column:24},end:{line:19,column:51}},type:"binary-expr",locations:[{start:{line:19,column:24},end:{line:19,column:45}},{start:{line:19,column:49},end:{line:19,column:51}}],line:19},6:{loc:{start:{line:21,column:2},end:{line:23,column:3}},type:"if",locations:[{start:{line:21,column:2},end:{line:23,column:3} Line truncated
${this._localize("errorNoResults")}</div>`;this._renderMessage(e)}_renderMessage(e){this._typeahead.update([]),this._typeahead.selected=null,this._typeahead.clear(),this._typeahead.renderError(e)}_localize(e){const t=See.language(this.options.language.split(",")[0]);return this.options.language&&WC?.[e][t]?WC[e][t]:WC[e].en}_fitBoundsForMarkers(){if(this._typeahead.data.length<1)return;const e=this._typeahead.data.filter(t=>typeof t!="string").slice(0,this.options.limit);if(this._clearEl.style.display="none",this.options.flyTo&&this._maplibregl&&this._map){const i=om({},{padding:100},this.options.flyTo),r=new this._maplibregl.LngLatBounds;for(const o of e)r.extend(o.geometry.coordinates);this._map.fitBounds(r,i)}return e.length>0&&this._maplibregl&&this._handleResultMarkers(e),this}setInput(e){return this._inputEl.value=e,this._typeahead.selected=null,this._typeahead.clear(),e.length>=this.options.minLength&&this.options.showResultsWhileTyping&&this._geocode(e),this}setProximity(e){return this.options.proximity=e,this}getProximity(){return this.options.proximity}setRenderFunction(e){return e&&typeof e=="function"&&(this._typeahead.render=e),this}getRenderFunction(){return this._typeahead.render}setLanguage(e){return this.options.language=e||this.options.language||navigator.language,this}getLanguage(){return this.options.language}getZoom(){return this.options.zoom}setZoom(e){return this.options.zoom=e,this}getFlyTo(){return this.options.flyTo}setFlyTo(e){return this.options.flyTo=e,this}getPlaceholder(){return this.options.placeholder}setPlaceholder(e){return this.placeholder=e||this.options.placeholder||this._localize("placeholder"),this._inputEl.placeholder=this.placeholder,this._inputEl.setAttribute("aria-label",this.placeholder),this}getBbox(){return this.options.bbox}setBbox(e){return this.options.bbox=e,this}getCountries(){return this.options.countries}setCountries(e){return this.options.countries=e,this}getTypes(){return this.options.types}setTypes(e){return this.options.types=e,this}getMinLength(){return this.options.minLength}setMinLength(e){return this.options.minLength=e,this._typeahead&&(this._typeahead.options.minLength=e),this}getLimit(){return this.options.limit}setLimit(e){return this.options.limit=e,this._typeahead&&(this._typeahead.options.limit=e),this}getFilter(){return this.options.filter}setFilter(e){return this.options.filter=e,this}setGeocoderApi(e){return this.geocoderApi=e,this}getGeocoderApi(){return this.geocoderApi}_handleMarker(e){if(!this._map)return;this._removeMarker();const i=om({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(i);let r;if(this.options.popup){const s=om({},{},this.options.popup);r=new this._maplibregl.Popup(s).setHTML(this.options.popupRender(e))}return e.center?(this.mapMarker.setLngLat(e.center).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(r)):e.geometry&&e.geometry.type&&e.geometry.type==="Point"&&e.geometry.coordinates&&(this.mapMarker.setLngLat(e.geometry.coordinates).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(r)),this}_removeMarker(){this.mapMarker&&(this.mapMarker.remove(),this.mapMarker=null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let i=om({},{color:"#4668F2"},this.options.showResultMarkers);for(const r of e){let o;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(o=this.options.showResultMarkers.element.cloneNode(!0),i=om(i,{element:o}));const s=new this._maplibregl.Marker(om({},i,{element:o}));let a;if(this.options.popup){const g=om({},{},this.options.popup);a=new this._maplibregl.Popup(g).setHTML(this.options.popupRender(r))}r.center?(s.setLngLat(r.center).addTo(this._map),this.options.popup&&s.setPopup(a)):r.geometry&&r.geometry.type&&r.geometry.type==="Point"&&r.geometry.coordinates&&(s.setLngLat(r.geometry.coordinates).addTo(this._map),this.options.popup&&s.setPopup(a)),this.resultMarkers.push(s)}}return this}_removeResultMarkers(){this.resultMarkers&&this.resultMarkers.length>0&&(this.resultMarkers.forEach(function(e){e.remove()}),this.resultMarkers=[])}on(e,t){return this._eventEmitter.on(e,t),this}once(e){return new Promise(t=>{this._eventEmitter.once(e,t)})}off(e,t){return this._eventEmitter.removeListener(e,t),this}}function xn(){var n="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",e="1655c5d10102378b1e2627d777374c6f3c3f21a7",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",statementMap:{0:{start:{line:21,column:26},end:{line:27,column:3}},1:{start:{line:28,column:16},end:{line:28,column:55}},2:{start:{line:29,column:2},end:{line:31,column:3}},3:{start:{line:30,column:4},end:{line:30,column:30}},4:{start:{line:32,column:18},end:{line:32,column:20}},5:{start:{line:33,column:2},end:{line:38,column:5}},6:{start:{line:34,column:19},end:{line:34,column:53}},7:{start:{line:35,column:4},end:{line:Line truncated
`,ys().s[12]++,this._textEl=this._container.querySelector("span"),ys().s[13]++,this.updateZoomLevel()}addEventListeners(){ys().f[4]++,ys().s[14]++,this._map.on("render",()=>(ys().f[5]++,ys().s[15]++,this.updateZoomLevel())),ys().s[16]++,this._map.on("zoomIn",()=>(ys().f[6]++,ys().s[17]++,this.updateZoomLevel())),ys().s[18]++,this._map.on("zoomOut",()=>(ys().f[7]++,ys().s[19]++,this.updateZoomLevel()))}onRemove(){ys().f[8]++,ys().s[20]++,this._container.parentNode.removeChild(this._container),ys().s[21]++,this._map=void 0}}function LB(n,e,t){const i={id:[e,t,"circle"].join("_"),source:e,type:"circle",paint:{"circle-color":n,"circle-radius":2},filter:["==","$type","Point"]};return t&&(i["source-layer"]=t),i}function FB(n,e,t,i){const r={id:[t,i,"polygon"].join("_"),source:t,type:"fill",paint:{"fill-color":n,"fill-antialias":!0,"fill-outline-color":n},filter:["==","$type","Polygon"]};return i&&(r["source-layer"]=i),r}function zB(n,e,t){const i={id:[e,t,"line"].join("_"),source:e,layout:{"line-join":"round","line-cap":"round"},type:"line",paint:{"line-color":n},filter:["==","$type","LineString"]};return t&&(i["source-layer"]=t),i}function fee(n,e){const t=[],i=[],r=[];function o(s){return{circle:e(s,.8),line:e(s,.6),polygon:e(s,.3),polygonOutline:e(s,.6),default:e(s,1)}}return Object.keys(n).forEach(s=>{const a=n[s];if(!a||a.length===0){const p=o(s);i.push(LB(p.circle,s)),r.push(zB(p.line,s)),t.push(FB(p.polygon,p.polygonOutline,s))}else a.forEach(p=>{const g=o(p);i.push(LB(g.circle,s,p)),r.push(zB(g.line,s,p)),t.push(FB(g.polygon,g.polygonOutline,s,p))})}),t.concat(r).concat(i)}function pee(n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const i={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},r={};return Object.keys(n.sources).forEach(o=>{const s=n.sources[o];(s.type==="vector"||s.type==="geojson")&&(r[o]=s)}),Object.assign(n,{layers:[i].concat(e),sources:r})}const b5={polygonLayer:FB,lineLayer:zB,circleLayer:LB,generateInspectStyle:pee,generateColoredLayers:fee};function Co(){var n="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",e="aec0f701e803624fae461cc89b5fc887ff556587",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",statementMap:{0:{start:{line:4,column:2},end:{line:8,column:3}},1:{start:{line:5,column:4},end:{line:5,column:33}},2:{start:{line:6,column:9},end:{line:8,column:3}},3:{start:{line:7,column:4},end:{line:7,column:30}},4:{start:{line:9,column:2},end:{line:13,column:3}},5:{start:{line:10,column:4},end:{line:10,column:28}},6:{start:{line:12,column:4},end:{line:12,column:23}},7:{start:{line:14,column:2},end:{line:14,column:29}},8:{start:{line:15,column:2},end:{line:15,column:11}},9:{start:{line:18,column:2},end:{line:18,column:84}},10:{start:{line:18,column:72},end:{line:18,column:84}},11:{start:{line:19,column:24},end:{line:19,column:51}},12:{start:{line:20,column:16},end:{line:20,column:52}},13:{start:{line:21,column:2},end:{line:23,column:3}},14:{start:{line:22,column:4},end:{line:22,column:104}},15:{start:{line:24,column:2},end:{line:26,column:3}},16:{start:{line:25,column:4},end:{line:25,column:96}},17:{start:{line:27,column:2},end:{line:29,column:3}},18:{start:{line:28,column:4},end:{line:28,column:94}},19:{start:{line:30,column:2},end:{line:30,column:14}}},fnMap:{0:{name:"changeLayer",decl:{start:{line:3,column:9},end:{line:3,column:20}},loc:{start:{line:3,column:31},end:{line:16,column:1}},line:3},1:{name:"colorHighlightedLayer",decl:{start:{line:17,column:16},end:{line:17,column:37}},loc:{start:{line:17,column:45},end:{line:31,column:1}},line:17}},branchMap:{0:{loc:{start:{line:4,column:2},end:{line:8,column:3}},type:"if",locations:[{start:{line:4,column:2},end:{line:8,column:3}},{start:{line:6,column:9},end:{line:8,column:3}}],line:4},1:{loc:{start:{line:6,column:9},end:{line:8,column:3}},type:"if",locations:[{start:{line:6,column:9},end:{line:8,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},2:{loc:{start:{line:9,column:2},end:{line:13,column:3}},type:"if",locations:[{start:{line:9,column:2},end:{line:13,column:3}},{start:{line:11,column:9},end:{line:13,column:3}}],line:9},3:{loc:{start:{line:18,column:2},end:{line:18,column:84}},type:"if",locations:[{start:{line:18,column:2},end:{line:18,column:84}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},4:{loc:{start:{line:18,column:6},end:{line:18,column:70}},type:"binary-expr",locations:[{start:{line:18,column:6},end:{line:18,column:12}},{start:{line:18,column:16},end:{line:18,column:43}},{start:{line:18,column:47},end:{line:18,column:70}}],line:18},5:{loc:{start:{line:19,column:24},end:{line:19,column:51}},type:"binary-expr",locations:[{start:{line:19,column:24},end:{line:19,column:45}},{start:{line:19,column:49},end:{line:19,column:51}}],line:19},6:{loc:{start:{line:21,column:2},end:{line:23,column:3}},type:"if",locations:[{start:{line:21,column:2},end:{line:23,column:3} Line truncated
${this._localize("errorNoResults")}</div>`;this._renderMessage(e)}_renderMessage(e){this._typeahead.update([]),this._typeahead.selected=null,this._typeahead.clear(),this._typeahead.renderError(e)}_localize(e){const t=See.language(this.options.language.split(",")[0]);return this.options.language&&WC?.[e][t]?WC[e][t]:WC[e].en}_fitBoundsForMarkers(){if(this._typeahead.data.length<1)return;const e=this._typeahead.data.filter(t=>typeof t!="string").slice(0,this.options.limit);if(this._clearEl.style.display="none",this.options.flyTo&&this._maplibregl&&this._map){const i=om({},{padding:100},this.options.flyTo),r=new this._maplibregl.LngLatBounds;for(const o of e)r.extend(o.geometry.coordinates);this._map.fitBounds(r,i)}return e.length>0&&this._maplibregl&&this._handleResultMarkers(e),this}setInput(e){return this._inputEl.value=e,this._typeahead.selected=null,this._typeahead.clear(),e.length>=this.options.minLength&&this.options.showResultsWhileTyping&&this._geocode(e),this}setProximity(e){return this.options.proximity=e,this}getProximity(){return this.options.proximity}setRenderFunction(e){return e&&typeof e=="function"&&(this._typeahead.render=e),this}getRenderFunction(){return this._typeahead.render}setLanguage(e){return this.options.language=e||this.options.language||navigator.language,this}getLanguage(){return this.options.language}getZoom(){return this.options.zoom}setZoom(e){return this.options.zoom=e,this}getFlyTo(){return this.options.flyTo}setFlyTo(e){return this.options.flyTo=e,this}getPlaceholder(){return this.options.placeholder}setPlaceholder(e){return this.placeholder=e||this.options.placeholder||this._localize("placeholder"),this._inputEl.placeholder=this.placeholder,this._inputEl.setAttribute("aria-label",this.placeholder),this}getBbox(){return this.options.bbox}setBbox(e){return this.options.bbox=e,this}getCountries(){return this.options.countries}setCountries(e){return this.options.countries=e,this}getTypes(){return this.options.types}setTypes(e){return this.options.types=e,this}getMinLength(){return this.options.minLength}setMinLength(e){return this.options.minLength=e,this._typeahead&&(this._typeahead.options.minLength=e),this}getLimit(){return this.options.limit}setLimit(e){return this.options.limit=e,this._typeahead&&(this._typeahead.options.limit=e),this}getFilter(){return this.options.filter}setFilter(e){return this.options.filter=e,this}setGeocoderApi(e){return this.geocoderApi=e,this}getGeocoderApi(){return this.geocoderApi}_handleMarker(e){if(!this._map)return;this._removeMarker();const i=om({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(i);let r;if(this.options.popup){const s=om({},{},this.options.popup);r=new this._maplibregl.Popup(s).setHTML(this.options.popupRender(e))}return e.center?(this.mapMarker.setLngLat(e.center).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(r)):e.geometry&&e.geometry.type&&e.geometry.type==="Point"&&e.geometry.coordinates&&(this.mapMarker.setLngLat(e.geometry.coordinates).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(r)),this}_removeMarker(){this.mapMarker&&(this.mapMarker.remove(),this.mapMarker=null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let i=om({},{color:"#4668F2"},this.options.showResultMarkers);for(const r of e){let o;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(o=this.options.showResultMarkers.element.cloneNode(!0),i=om(i,{element:o}));const s=new this._maplibregl.Marker(om({},i,{element:o}));let a;if(this.options.popup){const g=om({},{},this.options.popup);a=new this._maplibregl.Popup(g).setHTML(this.options.popupRender(r))}r.center?(s.setLngLat(r.center).addTo(this._map),this.options.popup&&s.setPopup(a)):r.geometry&&r.geometry.type&&r.geometry.type==="Point"&&r.geometry.coordinates&&(s.setLngLat(r.geometry.coordinates).addTo(this._map),this.options.popup&&s.setPopup(a)),this.resultMarkers.push(s)}}return this}_removeResultMarkers(){this.resultMarkers&&this.resultMarkers.length>0&&(this.resultMarkers.forEach(function(e){e.remove()}),this.resultMarkers=[])}on(e,t){return this._eventEmitter.on(e,t),this}once(e){return new Promise(t=>{this._eventEmitter.once(e,t)})}off(e,t){return this._eventEmitter.removeListener(e,t),this}}function xn(){var n="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",e="1655c5d10102378b1e2627d777374c6f3c3f21a7",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",statementMap:{0:{start:{line:21,column:26},end:{line:27,column:3}},1:{start:{line:28,column:16},end:{line:28,column:55}},2:{start:{line:29,column:2},end:{line:31,column:3}},3:{start:{line:30,column:4},end:{line:30,column:30}},4:{start:{line:32,column:18},end:{line:32,column:20}},5:{start:{line:33,column:2},end:{line:38,column:5}},6:{start:{line:34,column:19},end:{line:34,column:53}},7:{start:{line:35,column:4},end:{line:Line truncated
`).reduce((r,o)=>Math.max(r,_N(n,o)),0);return t[e]=i,i}function Hie(n,e){const t=[],i=[],r=[];let o=0,s=0,a=0,p=0;for(let g=0,_=e.length;g<=_;g+=2){const E=e[g];if(E===`
`||g===_){o=Math.max(o,s),r.push(s),s=0,a+=p,p=0;continue}const O=e[g+1]||n.font,B=_N(O,E);t.push(B),s+=B;const z=qie(O);i.push(z),p=Math.max(p,z)}return{width:o,height:a,widths:t,heights:i,lineWidths:r}}function Vie(n,e,t,i,r,o,s,a,p,g,_){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=E=>E.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),i.contextInstructions?(n.translate(p,g),n.scale(_[0],_[1]),$ie(i,n)):_[0]<0||_[1]<0?(n.translate(p,g),n.scale(_[0],_[1]),n.drawImage(i,r,o,s,a,0,0,s,a)):n.drawImage(i,r,o,s,a,p,g,s*_[0],a*_[1]),n.restore()}function $ie(n,e){const t=n.contextInstructions;for(let i=0,r=t.length;i<r;i+=2)Array.isArray(t[i+1])?e[t[i]].apply(e,t[i+1]):e[t[i]]=t[i+1]}class r4{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=Hh(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new r4({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return _o()}getImage(e){return _o()}getHitDetectionImage(){return _o()}getPixelRatio(e){return 1}getImageState(){return _o()}getImageSize(){return _o()}getOrigin(){return _o()}getSize(){return _o()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=Hh(e)}listenImageChange(e){_o()}load(){_o()}unlistenImageChange(e){_o()}ready(){return Promise.resolve()}}class o4 extends r4{constructor(e){super({opacity:1,rotateWithView:e.rotateWithView!==void 0?e.rotateWithView:!1,rotation:e.rotation!==void 0?e.rotation:0,scale:e.scale!==void 0?e.scale:1,displacement:e.displacement!==void 0?e.displacement:[0,0],declutterMode:e.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=e.fill!==void 0?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=e.angle!==void 0?e.angle:0,this.stroke_=e.stroke!==void 0?e.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?fr.LOADING:fr.LOADED,this.imageState_===fr.LOADING&&this.ready().then(()=>this.imageState_=fr.LOADED),this.render()}clone(){const e=this.getScale(),t=new o4({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_,t=this.getDisplacement(),i=this.getScaleArray();return[e[0]/2-t[0]/i[0],e[1]/2+t[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){const t=this.fill_?.getKey(),i=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(",");let r=Dp.get(i,null,null)?.getImage(1);if(!r){const o=this.renderOptions_,s=Math.ceil(o.size*e),a=Zu(s,s);this.draw_(o,a,e),r=a.canvas,Dp.set(i,null,null,new yN(r,void 0,null,fr.LOADED,null))}return r}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,i){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let r=this.radius,o=this.radius2_===void 0?r:this.radius2_;if(r<o){const J=r;r=o,o=J}const s=this.radius2_===void 0?this.points_:this.points_*2,a=2*Math.PI/s,p=o*Math.sin(a),g=Math.sqrt(o*o-p*p),_=r-g,E=Math.sqrt(p*p+_*_),O=E/p;if(e==="miter"&&O<=i)return O*t;const B=t/2/O,z=t/2*(_/E),Q=Math.sqrt((r+B)*(r+B)+z*z)-r;if(this.radius2_===void 0||e==="bevel")return Q*2;const $=r*Math.sin(a),X=Math.sqrt(r*r-$*$),re=o-X,V=Math.sqrt($*$+re*re)/$;if(V<=i){const J=V*t/2-o-r;return 2*Math.max(Q,J)}return Q*2}createRenderOptions(){let e=sC,t=lC,i=0,r=null,o=0,s,a=0;this.stroke_&&(s=u0(this.stroke_.getColor()??cb),a=this Line truncated
`,""),n.push(e,""),n}function Gre(n,e,t){return t%2===0&&(n+=e),n}class Wre{constructor(e,t,i,r,o){this.overlaps=i,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=rf(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=o?new u7:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,i,r){const o=e+t+i+r;if(this.labels_[o])return this.labels_[o];const s=r?this.strokeStates[r]:null,a=i?this.fillStates[i]:null,p=this.textStates[t],g=this.pixelRatio,_=[p.scale[0]*g,p.scale[1]*g],E=p.justify?Z3[p.justify]:XM(Array.isArray(e)?e[0]:e,p.textAlign||hb),O=r&&s.lineWidth?s.lineWidth:0,B=Array.isArray(e)?e:String(e).split(`
`||g===_){o=Math.max(o,s),r.push(s),s=0,a+=p,p=0;continue}const O=e[g+1]||n.font,B=_N(O,E);t.push(B),s+=B;const z=qie(O);i.push(z),p=Math.max(p,z)}return{width:o,height:a,widths:t,heights:i,lineWidths:r}}function Vie(n,e,t,i,r,o,s,a,p,g,_){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=E=>E.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),i.contextInstructions?(n.translate(p,g),n.scale(_[0],_[1]),$ie(i,n)):_[0]<0||_[1]<0?(n.translate(p,g),n.scale(_[0],_[1]),n.drawImage(i,r,o,s,a,0,0,s,a)):n.drawImage(i,r,o,s,a,p,g,s*_[0],a*_[1]),n.restore()}function $ie(n,e){const t=n.contextInstructions;for(let i=0,r=t.length;i<r;i+=2)Array.isArray(t[i+1])?e[t[i]].apply(e,t[i+1]):e[t[i]]=t[i+1]}class o4{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=Hh(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new o4({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return _o()}getImage(e){return _o()}getHitDetectionImage(){return _o()}getPixelRatio(e){return 1}getImageState(){return _o()}getImageSize(){return _o()}getOrigin(){return _o()}getSize(){return _o()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=Hh(e)}listenImageChange(e){_o()}load(){_o()}unlistenImageChange(e){_o()}ready(){return Promise.resolve()}}class a4 extends o4{constructor(e){super({opacity:1,rotateWithView:e.rotateWithView!==void 0?e.rotateWithView:!1,rotation:e.rotation!==void 0?e.rotation:0,scale:e.scale!==void 0?e.scale:1,displacement:e.displacement!==void 0?e.displacement:[0,0],declutterMode:e.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=e.fill!==void 0?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=e.angle!==void 0?e.angle:0,this.stroke_=e.stroke!==void 0?e.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?pr.LOADING:pr.LOADED,this.imageState_===pr.LOADING&&this.ready().then(()=>this.imageState_=pr.LOADED),this.render()}clone(){const e=this.getScale(),t=new a4({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_,t=this.getDisplacement(),i=this.getScaleArray();return[e[0]/2-t[0]/i[0],e[1]/2+t[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){const t=this.fill_?.getKey(),i=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(",");let r=Dp.get(i,null,null)?.getImage(1);if(!r){const o=this.renderOptions_,s=Math.ceil(o.size*e),a=Zu(s,s);this.draw_(o,a,e),r=a.canvas,Dp.set(i,null,null,new yN(r,void 0,null,pr.LOADED,null))}return r}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,i){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let r=this.radius,o=this.radius2_===void 0?r:this.radius2_;if(r<o){const J=r;r=o,o=J}const s=this.radius2_===void 0?this.points_:this.points_*2,a=2*Math.PI/s,p=o*Math.sin(a),g=Math.sqrt(o*o-p*p),_=r-g,E=Math.sqrt(p*p+_*_),O=E/p;if(e==="miter"&&O<=i)return O*t;const B=t/2/O,z=t/2*(_/E),Q=Math.sqrt((r+B)*(r+B)+z*z)-r;if(this.radius2_===void 0||e==="bevel")return Q*2;const $=r*Math.sin(a),X=Math.sqrt(r*r-$*$),re=o-X,V=Math.sqrt($*$+re*re)/$;if(V<=i){const J=V*t/2-o-r;return 2*Math.max(Q,J)}return Q*2}createRenderOptions(){let e=sC,t=lC,i=0,r=null,o=0,s,a=0;this.stroke_&&(s=u0(this.stroke_.getColor()??cb),a=this Line truncated
`,""),n.push(e,""),n}function Gre(n,e,t){return t%2===0&&(n+=e),n}class Wre{constructor(e,t,i,r,o){this.overlaps=i,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=rf(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=o?new u7:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,i,r){const o=e+t+i+r;if(this.labels_[o])return this.labels_[o];const s=r?this.strokeStates[r]:null,a=i?this.fillStates[i]:null,p=this.textStates[t],g=this.pixelRatio,_=[p.scale[0]*g,p.scale[1]*g],E=p.justify?X3[p.justify]:X5(Array.isArray(e)?e[0]:e,p.textAlign||hb),O=r&&s.lineWidth?s.lineWidth:0,B=Array.isArray(e)?e:String(e).split(`
`).reduce(Nre,[]),{width:z,height:N,widths:Q,heights:$,lineWidths:X}=Hie(p,B),re=z+O,ne=[],V=(re+2)*_[0],J=(N+O)*_[1],W={width:V<0?Math.floor(V):Math.ceil(V),height:J<0?Math.floor(J):Math.ceil(J),contextInstructions:ne};(_[0]!=1||_[1]!=1)&&ne.push("scale",_),r&&(ne.push("strokeStyle",s.strokeStyle),ne.push("lineWidth",O),ne.push("lineCap",s.lineCap),ne.push("lineJoin",s.lineJoin),ne.push("miterLimit",s.miterLimit),ne.push("setLineDash",[s.lineDash]),ne.push("lineDashOffset",s.lineDashOffset)),i&&ne.push("fillStyle",a.fillStyle),ne.push("textBaseline","middle"),ne.push("textAlign","center");const he=.5-E;let ge=E*re+he*O;const ve=[],_e=[];let Me=0,be=0,ze=0,Ce=0,Fe;for(let ot=0,mt=B.length;ot<mt;ot+=2){const it=B[ot];if(it===`
`){be+=Me,Me=0,ge=E*re+he*O,++Ce;continue}const ue=B[ot+1]||p.font;ue!==Fe&&(r&&ve.push("font",ue),i&&_e.push("font",ue),Fe=ue),Me=Math.max(Me,$[ze]);const We=[it,ge+he*Q[ze]+E*(Q[ze]-X[Ce]),.5*(O+Me)+be];ge+=Q[ze],r&&ve.push("strokeText",We),i&&_e.push("fillText",We),++ze}return Array.prototype.push.apply(ne,ve),Array.prototype.push.apply(ne,_e),this.labels_[o]=W,W}replayTextBackground_(e,t,i,r,o,s,a){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,i),e.lineTo.apply(e,r),e.lineTo.apply(e,o),e.lineTo.apply(e,t),s&&(this.alignAndScaleFill_=s[2],e.fillStyle=s[1],this.fill_(e)),a&&(this.setStrokeStyle_(e,a),e.stroke())}calculateImageOrLabelDimensions_(e,t,i,r,o,s,a,p,g,_,E,O,B,z,N,Q){a*=O[0],p*=O[1];let $=i-a,X=r-p;const re=o+g>e?e-g:o,ne=s+_>t?t-_:s,V=z[3]+re*O[0]+z[1],J=z[0]+ne*O[1]+z[2],W=$-z[3],he=X-z[0];(N||E!==0)&&(Ig[0]=W,Tg[0]=W,Ig[1]=he,N0[1]=he,N0[0]=W+V,G0[0]=N0[0],G0[1]=he+J,Tg[1]=G0[1]);let ge;return E!==0?(ge=m0(rf(),i,r,1,1,E,-i,-r),uc(ge,Ig),uc(ge,N0),uc(ge,G0),uc(ge,Tg),eg(Math.min(Ig[0],N0[0],G0[0],Tg[0]),Math.min(Ig[1],N0[1],G0[1],Tg[1]),Math.max(Ig[0],N0[0],G0[0],Tg[0]),Math.max(Ig[1],N0[1],G0[1],Tg[1]),tv)):eg(Math.min(W,W+V),Math.min(he,he+J),Math.max(W,W+V),Math.max(he,he+J),tv),B&&($=Math.round($),X=Math.round(X)),{drawImageX:$,drawImageY:X,drawImageW:re,drawImageH:ne,originX:g,originY:_,declutterBox:{minX:tv[0],minY:tv[1],maxX:tv[2],maxY:tv[3],value:Q},canvasTransform:ge,scale:O}}replayImageOrLabel_(e,t,i,r,o,s,a){const p=!!(s||a),g=r.declutterBox,_=a?a[2]*r.scale[0]/2:0;return g.minX-_<=t[0]&&g.maxX+_>=0&&g.minY-_<=t[1]&&g.maxY+_>=0&&(p&&this.replayTextBackground_(e,Ig,N0,G0,Tg,s,a),Vie(e,r.canvasTransform,o,i,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const i=uc(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(i[0]%r,i[1]%r),t!==1&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],t[1]&&(e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6]))}drawLabelWithPointPlacement_(e,t,i,r){const o=this.textStates[t],s=this.createLabel(e,t,r,i),a=this.strokeStates[i],p=this.pixelRatio,g=XM(Array.isArray(e)?e[0]:e,o.textAlign||hb),_=Z3[o.textBaseline||Q3],E=a&&a.lineWidth?a.lineWidth:0,O=s.width/p-2*o.scale[0],B=g*O+2*(.5-g)*E,z=_*s.height/p+2*(.5-_)*E;return{label:s,anchorX:B,anchorY:z}}execute_(e,t,i,r,o,s,a,p){const g=this.zIndexContext_;let _;this.pixelCoordinates_&&s1(i,this.renderedTransform_)?_=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),_=i1(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),qte(this.renderedTransform_,i));let E=0;const O=r.length;let B=0,z,N,Q,$,X,re,ne,V,J,W,he,ge,ve,_e=0,Me=0;const be=this.coordinateCache_,ze=this.viewRotation_,Ce=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,Fe={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:ze},ot=this.instructions!=r||this.overlaps?0:200;let mt,it,ue,We;for(;E<O;){const tt=r[E];switch(tt[0]){case qr.BEGIN_GEOMETRY:mt=tt[1],We=tt[3],mt.getGeometry()?a!==void 0&&!gA(a,We.getExtent())?E=tt[2]+1:++E:E=tt[2],g&&(g.zIndex=tt[4]);break;case qr.BEGIN_PATH:_e>ot&&(this.fill_(e),_e=0),Me>ot&&(e.stroke(),Me=0),!_e&&!Me&&(e.beginPath(),X=NaN,re=NaN),++E;break;case qr.CIRCLE:B=tt[1];const Et=_[B],gt=_[B+1],xt=_[B+2],Ut=_[B+3],je=xt-Et,Ue=Ut-gt,Ke=Math.sqrt(je*je+Ue*Ue);e.moveTo(Et+Ke,gt),e.arc(Et,gt,Ke,0,2*Math.PI,!0),++E;break;case qr.CLOSE_PATH:e.closePath(),++E;break;case qr.CUSTOM:B=tt[1],z=tt[2];const Ve=tt[3],bt=tt[4],vt=tt[5];Fe.geometry=Ve,Fe.feature=mt,E in be||(be[E]=[]);const It=be[E];vt?vt(_,B,z,2,It):(It[0]=_[B],It[1]=_[B+1],It.length=2),g&&(g.zIndex=tt[6]),bt(It,Fe),++E;break;case qr.DRAW_IMAGE:B=tt[1],z=tt[2],J=tt[3],N=tt[4],Q=tt[5];let Yt=tt[6];const Kt=tt[7],on=tt[8],Hn=tt[9],Wt=tt[10];let Gn=tt[11];const On=tt[12];let Bn=tt[13];$=tt[14]||"declutter";const Tn=tt[15];if(!J&&tt.length>=20){W=tt[19],he=tt[20],ge=tt[21],ve=tt[22];const wn=this.drawLabelWithPointPlacement_(W,he,ge,ve);J=wn.label,tt[3]=J;const ii=tt[23];N=(wn.anchorX-ii)*this.pixelRatio,tt[4]=N;const Qn=tt[24];Q=(wn.anchorY-Qn)*this.pixelRatio,tt[5]=Q,Yt=J.height,tt[6]=Yt,Bn=J.width,tt[13]=Bn}let Bi;tt.length>25&&(Bi=tt[25]);let Vn,Lt,De;tt.length>17?(Vn=tt[16],Lt=tt[17],De=tt[18]):(Vn=$1,Lt=null,De=null),Wt&&Ce?Gn+=ze:!Wt&&!Ce&&(Gn-=ze);let de=0;for(;B<z;B+=2){if(Bi&&Bi[de++]<Bn/this.pixelRatio)continue;const wn=this.calculateImageOrLabelDimensions_(J.width,J.height,_[B],_[B+1],Bn,Yt,N,Q,on,Hn,Gn,On,o,Vn,!!Lt||!!De,mt),ii=[e,t,J,wn,Kt,Lt,De];if(p){let Qn,Vi,nr;if(Tn){const ti=z-B;if(!Tn[ti]){Tn[ti]={args:ii,declutterMode:$};continue}const Yi=Tn[ti];Qn=Yi.args,Vi=Yi.declutterMode,delete Tn[ti],nr=hk(Qn)}let Oi,hi;if(Qn&&(Vi!=="declutter"||!p.collides(nr))&&(Oi=!0),($!=="declutter"||!p.collides(wn.declutterBox))&&(hi=!0),Vi==="declutter"&&$==="declutter"){const ti=Oi&&h Line truncated
`){be+=Me,Me=0,ge=E*re+he*O,++Ce;continue}const ue=B[ot+1]||p.font;ue!==Fe&&(r&&ve.push("font",ue),i&&_e.push("font",ue),Fe=ue),Me=Math.max(Me,$[ze]);const We=[it,ge+he*Q[ze]+E*(Q[ze]-X[Ce]),.5*(O+Me)+be];ge+=Q[ze],r&&ve.push("strokeText",We),i&&_e.push("fillText",We),++ze}return Array.prototype.push.apply(ne,ve),Array.prototype.push.apply(ne,_e),this.labels_[o]=W,W}replayTextBackground_(e,t,i,r,o,s,a){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,i),e.lineTo.apply(e,r),e.lineTo.apply(e,o),e.lineTo.apply(e,t),s&&(this.alignAndScaleFill_=s[2],e.fillStyle=s[1],this.fill_(e)),a&&(this.setStrokeStyle_(e,a),e.stroke())}calculateImageOrLabelDimensions_(e,t,i,r,o,s,a,p,g,_,E,O,B,z,N,Q){a*=O[0],p*=O[1];let $=i-a,X=r-p;const re=o+g>e?e-g:o,ne=s+_>t?t-_:s,V=z[3]+re*O[0]+z[1],J=z[0]+ne*O[1]+z[2],W=$-z[3],he=X-z[0];(N||E!==0)&&(Ig[0]=W,Tg[0]=W,Ig[1]=he,N0[1]=he,N0[0]=W+V,G0[0]=N0[0],G0[1]=he+J,Tg[1]=G0[1]);let ge;return E!==0?(ge=m0(rf(),i,r,1,1,E,-i,-r),uc(ge,Ig),uc(ge,N0),uc(ge,G0),uc(ge,Tg),eg(Math.min(Ig[0],N0[0],G0[0],Tg[0]),Math.min(Ig[1],N0[1],G0[1],Tg[1]),Math.max(Ig[0],N0[0],G0[0],Tg[0]),Math.max(Ig[1],N0[1],G0[1],Tg[1]),tv)):eg(Math.min(W,W+V),Math.min(he,he+J),Math.max(W,W+V),Math.max(he,he+J),tv),B&&($=Math.round($),X=Math.round(X)),{drawImageX:$,drawImageY:X,drawImageW:re,drawImageH:ne,originX:g,originY:_,declutterBox:{minX:tv[0],minY:tv[1],maxX:tv[2],maxY:tv[3],value:Q},canvasTransform:ge,scale:O}}replayImageOrLabel_(e,t,i,r,o,s,a){const p=!!(s||a),g=r.declutterBox,_=a?a[2]*r.scale[0]/2:0;return g.minX-_<=t[0]&&g.maxX+_>=0&&g.minY-_<=t[1]&&g.maxY+_>=0&&(p&&this.replayTextBackground_(e,Ig,N0,G0,Tg,s,a),Vie(e,r.canvasTransform,o,i,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const i=uc(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(i[0]%r,i[1]%r),t!==1&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],t[1]&&(e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6]))}drawLabelWithPointPlacement_(e,t,i,r){const o=this.textStates[t],s=this.createLabel(e,t,r,i),a=this.strokeStates[i],p=this.pixelRatio,g=X5(Array.isArray(e)?e[0]:e,o.textAlign||hb),_=X3[o.textBaseline||Y3],E=a&&a.lineWidth?a.lineWidth:0,O=s.width/p-2*o.scale[0],B=g*O+2*(.5-g)*E,z=_*s.height/p+2*(.5-_)*E;return{label:s,anchorX:B,anchorY:z}}execute_(e,t,i,r,o,s,a,p){const g=this.zIndexContext_;let _;this.pixelCoordinates_&&s1(i,this.renderedTransform_)?_=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),_=i1(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),qte(this.renderedTransform_,i));let E=0;const O=r.length;let B=0,z,N,Q,$,X,re,ne,V,J,W,he,ge,ve,_e=0,Me=0;const be=this.coordinateCache_,ze=this.viewRotation_,Ce=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,Fe={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:ze},ot=this.instructions!=r||this.overlaps?0:200;let mt,it,ue,We;for(;E<O;){const tt=r[E];switch(tt[0]){case qr.BEGIN_GEOMETRY:mt=tt[1],We=tt[3],mt.getGeometry()?a!==void 0&&!gA(a,We.getExtent())?E=tt[2]+1:++E:E=tt[2],g&&(g.zIndex=tt[4]);break;case qr.BEGIN_PATH:_e>ot&&(this.fill_(e),_e=0),Me>ot&&(e.stroke(),Me=0),!_e&&!Me&&(e.beginPath(),X=NaN,re=NaN),++E;break;case qr.CIRCLE:B=tt[1];const Et=_[B],gt=_[B+1],xt=_[B+2],Kt=_[B+3],je=xt-Et,Ke=Kt-gt,Ue=Math.sqrt(je*je+Ke*Ke);e.moveTo(Et+Ue,gt),e.arc(Et,gt,Ue,0,2*Math.PI,!0),++E;break;case qr.CLOSE_PATH:e.closePath(),++E;break;case qr.CUSTOM:B=tt[1],z=tt[2];const Ve=tt[3],bt=tt[4],vt=tt[5];Fe.geometry=Ve,Fe.feature=mt,E in be||(be[E]=[]);const It=be[E];vt?vt(_,B,z,2,It):(It[0]=_[B],It[1]=_[B+1],It.length=2),g&&(g.zIndex=tt[6]),bt(It,Fe),++E;break;case qr.DRAW_IMAGE:B=tt[1],z=tt[2],J=tt[3],N=tt[4],Q=tt[5];let Yt=tt[6];const Ut=tt[7],on=tt[8],Hn=tt[9],Wt=tt[10];let Gn=tt[11];const On=tt[12];let Bn=tt[13];$=tt[14]||"declutter";const Tn=tt[15];if(!J&&tt.length>=20){W=tt[19],he=tt[20],ge=tt[21],ve=tt[22];const wn=this.drawLabelWithPointPlacement_(W,he,ge,ve);J=wn.label,tt[3]=J;const ri=tt[23];N=(wn.anchorX-ri)*this.pixelRatio,tt[4]=N;const Qn=tt[24];Q=(wn.anchorY-Qn)*this.pixelRatio,tt[5]=Q,Yt=J.height,tt[6]=Yt,Bn=J.width,tt[13]=Bn}let Oi;tt.length>25&&(Oi=tt[25]);let Vn,Lt,De;tt.length>17?(Vn=tt[16],Lt=tt[17],De=tt[18]):(Vn=$1,Lt=null,De=null),Wt&&Ce?Gn+=ze:!Wt&&!Ce&&(Gn-=ze);let de=0;for(;B<z;B+=2){if(Oi&&Oi[de++]<Bn/this.pixelRatio)continue;const wn=this.calculateImageOrLabelDimensions_(J.width,J.height,_[B],_[B+1],Bn,Yt,N,Q,on,Hn,Gn,On,o,Vn,!!Lt||!!De,mt),ri=[e,t,J,wn,Ut,Lt,De];if(p){let Qn,$i,ir;if(Tn){const ti=z-B;if(!Tn[ti]){Tn[ti]={args:ri,declutterMode:$};continue}const qi=Tn[ti];Qn=qi.args,$i=qi.declutterMode,delete Tn[ti],ir=hk(Qn)}let Ii,di;if(Qn&&($i!=="declutter"||!p.collides(ir))&&(Ii=!0),($!=="declutter"||!p.collides(wn.declutterBox))&&(di=!0),$i==="declutter"&&$==="declutter"){const ti=Ii&&d Line truncated
`),r=soe.slice(0,Math.round(e/.1));for(let o=0,s=i.length;o<s;++o)o>0&&(t+=`
`),t+=i[o].split("").join(r);return t}return n}let t5;function YN(){return t5||(t5=c4(1,1).getContext("2d")),t5}function L1(n,e){return YN().measureText(n).width+(n.length-1)*e}const e2={};W1.on("propertychange",()=>{for(const n in e2)delete e2[n]});function AO(n,e,t,i){if(n.indexOf(`
`),t+=i[o].split("").join(r);return t}return n}let tM;function YN(){return tM||(tM=h4(1,1).getContext("2d")),tM}function L1(n,e){return YN().measureText(n).width+(n.length-1)*e}const t2={};W1.on("propertychange",()=>{for(const n in t2)delete t2[n]});function AO(n,e,t,i){if(n.indexOf(`
`)!==-1){const s=n.split(`
`),a=[];for(let p=0,g=s.length;p<g;++p)a.push(AO(s[p],e,t,i));return a.join(`
`)}const r=t+","+e+","+n+","+i;let o=e2[r];if(!o){const s=n.split(" ");if(s.length>1){const a=YN();a.font=e;const g=a.measureText("M").width*t;let _="";const E=[];for(let O=0,B=s.length;O<B;++O){const z=s[O],N=_+(_?" ":"")+z;L1(N,i)<=g?_=N:(_&&E.push(_),_=z)}_&&E.push(_);for(let O=0,B=E.length;O<B&&B>1;++O){const z=E[O];if(L1(z,i)<g*.35){const N=O>0?L1(E[O-1],i):1/0,Q=O<B-1?L1(E[O+1],i):1/0;E.splice(O,1),B-=1,N<Q?(E[O-1]+=" "+z,O-=1):E[O]=z+" "+E[O]}}for(let O=0,B=E.length-1;O<B;++O){const z=E[O],N=E[O+1];if(L1(z,i)>g*.7&&L1(N,i)<g*.6){const Q=z.split(" "),$=Q.pop();L1($,i)<g*.2&&(E[O]=Q.join(" "),E[O+1]=$+" "+N),B-=1}}o=E.join(`
`)}else o=n;o=uO(o,i),e2[r]=o}return o}const loe=["Arial","Courier New","Times New Roman","Verdana","sans-serif","serif","monospace","cursive","fantasy"],bk={};function uoe(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){let t;for(let i=0,r=n.length;i<r;++i){const o=n[i];if(o in bk)continue;bk[o]=!0;const a=jB(o,16).split(" ");t||(t=[]),t.push([a.slice(3).join(" ").replace(/"/g,""),a[1],a[0]])}return t&&(async()=>{await document.fonts.ready;for(let i=0,r=t.length;i<r;++i){const o=t[i],s=o[0];if(loe.includes(s))continue;const a=o[1],p=o[2];if(!(await document.fonts.load(`${p} ${a} 16px "${s}"`)).some(_=>_.family.replace(/^['"]|['"]$/g,"").toLowerCase()===s.toLowerCase()&&_.weight==a&&_.style===p)){const _=e.replace("{font-family}",s.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",s.replace(/ /g,"+")).replace("{fontweight}",a).replace("{-fontstyle}",p.replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",p);if(!document.querySelector('link[href="'+_+'"]')){const E=document.createElement("link");E.href=_,E.rel="stylesheet",document.head.appendChild(E)}}}})(),n}const Aoe={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},coe={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},hoe=function(n,e){const t=F2(n,e);if(t.result==="error")throw new Error(t.value.map(i=>`${i.key}: ${i.message}`).join(", "));return t.value},Nf={zoom:0,distanceFromCenter:0};Ff.register(P2,{...Ff.definitions,pitch:[{kind:"number"},[],n=>Nf.pitch||90],"distance-from-center":[{kind:"number"},[],n=>Nf.distanceFromCenter||0]});let Kx,n5;function xr(n,e,t,i,r,o){const s=n.id;r||(r={},console.warn("No functionCache provided to getValue()")),r[s]||(r[s]={});const a=r[s];if(!a[t]){let p=(n[e]||pm)[t];const g=Uf[`${e}_${n.type}`][t];p===void 0&&(p=g.default);let _=gC(p);if(!_&&mC(p)&&(p=p8(p,g),_=!0),_){const E=hoe(p,g);a[t]=E.evaluate.bind(E)}else g.type=="color"&&(p=ll.parse(p)),a[t]=function(){return p}}return a[t](Nf,i,o)}function xk(n,e,t,i){return xr(n,"layout",`${t}-allow-overlap`,e,i)?xr(n,"layout",`${t}-ignore-placement`,e,i)?"none":"obstacle":"declutter"}function doe(n,e,t,i){if(i||console.warn("No filterCache provided to evaluateFilter()"),!(n in i))try{i[n]=EZ(e).filter}catch(r){console.warn("Filter will evaluate to false: "+r.message),i[n]=function(){return!1}}return i[n](Nf,t)}function Ug(n,e){if(n){if(n.a===0||e===0)return;const t=n.a;return e=e===void 0?1:e,t===0?"transparent":"rgba("+Math.round(n.r*255/t)+","+Math.round(n.g*255/t)+","+Math.round(n.b*255/t)+","+t*e+")"}return n}const foe=/\{[^{}}]*\}/g;function i5(n,e){return n.replace(foe,function(t){return e[t.slice(1,-1)]||""})}function Mk(n,e){let t=n.split(":")[0];return t===n&&(t="default"),e[t]}const poe={};function moe(n,e,t,i=p0,r=void 0,o=void 0,s=void 0,a=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.version!=8)throw new Error("glStyle version 8 required.");poe[roe(e,n)]=Array.from(arguments);const p={};(typeof o=="string"||o instanceof Request||o instanceof Response||o instanceof Promise)&&(o={default:o});for(const V in o){const J=o[V];rC(()=>J).then(async W=>{let he;if(typeof Image<"u"){const ge=new Image;if(typeof W=="string")ge.crossOrigin="anonymous",ge.src=W;else{let ve;W instanceof Request?ve=await fetch(W):W instanceof Response&&(ve=W);const _e=await ve.blob();he=URL.createObjectURL(_e),ge.src=he}ge.addEventListener("load",function ve(){ge.removeEventListener("load",ve),p[V]={image:ge,size:[ge.width,ge.height]},n.changed(),he&&URL.revokeObjectURL(he)}),ge.addEventListener("error",function ve(){URL.revokeObjectURL(he),ge.removeEventListener("error",ve)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const ge=self;ge.postMessage({action:"loadImage",src:W}),ge.addEventListener("message",function(_e){_e.data.action==="imageLoaded"&&_e.data.src===W&&(p[V]={image:_e.data.image,size:[_e.data.image.width,_e.data.image.height]})})}})}const g=$O(e.layers),_={},E=[],O={},B={},z=GN(e),N=ooe(e);let Q;for(let V=0,J=g.length;V<J;++V){const W=g[V],he=W.id;if(typeof t=="string"&&W.source==t||Array.isArray(t)&&t.indexOf(he)!==-1){const ge=W["source-layer"];if(Q){if(W.source!==Q)throw new Error(`Layer "${he}" does not use source "${Q}`)}else{Q=W.source;const _e=e.sources[Q];if(!_e)throw new Error(`Source "${Q}" is not defined`);const Me=_e.type;if(Me!=="vector"&&Me!=="geojson")throw new Error(`Source "${Q}" is not of type "vector" or "geojson", but "${Me}"`)}let ve=_[ge];ve||(ve=[],_[ge]=ve),ve.push({layer:W,index:V}),E.push(he)}}const $=new qg,X=new V0,re=[],ne=function(V,J,W){const he=n.getSource?.()?.format_?.layerName_??"mvt:layer",ge=V.getProperties(),ve=_[ge[he]];if(!ve)return;let _e=i.indexOf(J);_e==-1&&(_e=p7(J,i)),Nf.zoom=_e,Nf.distanceFromCenter=0;const Me=V.getGeometry(),be=Aoe[Me.getType()],ze=n.get("map");if(ze&&ze instanceof u4&&be===1){const mt=ze.getSize(Line truncated
`)}const r=t+","+e+","+n+","+i;let o=t2[r];if(!o){const s=n.split(" ");if(s.length>1){const a=YN();a.font=e;const g=a.measureText("M").width*t;let _="";const E=[];for(let O=0,B=s.length;O<B;++O){const z=s[O],N=_+(_?" ":"")+z;L1(N,i)<=g?_=N:(_&&E.push(_),_=z)}_&&E.push(_);for(let O=0,B=E.length;O<B&&B>1;++O){const z=E[O];if(L1(z,i)<g*.35){const N=O>0?L1(E[O-1],i):1/0,Q=O<B-1?L1(E[O+1],i):1/0;E.splice(O,1),B-=1,N<Q?(E[O-1]+=" "+z,O-=1):E[O]=z+" "+E[O]}}for(let O=0,B=E.length-1;O<B;++O){const z=E[O],N=E[O+1];if(L1(z,i)>g*.7&&L1(N,i)<g*.6){const Q=z.split(" "),$=Q.pop();L1($,i)<g*.2&&(E[O]=Q.join(" "),E[O+1]=$+" "+N),B-=1}}o=E.join(`
`)}else o=n;o=uO(o,i),t2[r]=o}return o}const loe=["Arial","Courier New","Times New Roman","Verdana","sans-serif","serif","monospace","cursive","fantasy"],bk={};function uoe(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){let t;for(let i=0,r=n.length;i<r;++i){const o=n[i];if(o in bk)continue;bk[o]=!0;const a=jB(o,16).split(" ");t||(t=[]),t.push([a.slice(3).join(" ").replace(/"/g,""),a[1],a[0]])}return t&&(async()=>{await document.fonts.ready;for(let i=0,r=t.length;i<r;++i){const o=t[i],s=o[0];if(loe.includes(s))continue;const a=o[1],p=o[2];if(!(await document.fonts.load(`${p} ${a} 16px "${s}"`)).some(_=>_.family.replace(/^['"]|['"]$/g,"").toLowerCase()===s.toLowerCase()&&_.weight==a&&_.style===p)){const _=e.replace("{font-family}",s.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",s.replace(/ /g,"+")).replace("{fontweight}",a).replace("{-fontstyle}",p.replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",p);if(!document.querySelector('link[href="'+_+'"]')){const E=document.createElement("link");E.href=_,E.rel="stylesheet",document.head.appendChild(E)}}}})(),n}const Aoe={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},coe={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},hoe=function(n,e){const t=z2(n,e);if(t.result==="error")throw new Error(t.value.map(i=>`${i.key}: ${i.message}`).join(", "));return t.value},Nf={zoom:0,distanceFromCenter:0};Ff.register(U2,{...Ff.definitions,pitch:[{kind:"number"},[],n=>Nf.pitch||90],"distance-from-center":[{kind:"number"},[],n=>Nf.distanceFromCenter||0]});let Kx,nM;function Mr(n,e,t,i,r,o){const s=n.id;r||(r={},console.warn("No functionCache provided to getValue()")),r[s]||(r[s]={});const a=r[s];if(!a[t]){let p=(n[e]||pm)[t];const g=Kf[`${e}_${n.type}`][t];p===void 0&&(p=g.default);let _=gC(p);if(!_&&mC(p)&&(p=p8(p,g),_=!0),_){const E=hoe(p,g);a[t]=E.evaluate.bind(E)}else g.type=="color"&&(p=ll.parse(p)),a[t]=function(){return p}}return a[t](Nf,i,o)}function xk(n,e,t,i){return Mr(n,"layout",`${t}-allow-overlap`,e,i)?Mr(n,"layout",`${t}-ignore-placement`,e,i)?"none":"obstacle":"declutter"}function doe(n,e,t,i){if(i||console.warn("No filterCache provided to evaluateFilter()"),!(n in i))try{i[n]=EZ(e).filter}catch(r){console.warn("Filter will evaluate to false: "+r.message),i[n]=function(){return!1}}return i[n](Nf,t)}function Kg(n,e){if(n){if(n.a===0||e===0)return;const t=n.a;return e=e===void 0?1:e,t===0?"transparent":"rgba("+Math.round(n.r*255/t)+","+Math.round(n.g*255/t)+","+Math.round(n.b*255/t)+","+t*e+")"}return n}const foe=/\{[^{}}]*\}/g;function iM(n,e){return n.replace(foe,function(t){return e[t.slice(1,-1)]||""})}function Mk(n,e){let t=n.split(":")[0];return t===n&&(t="default"),e[t]}const poe={};function moe(n,e,t,i=p0,r=void 0,o=void 0,s=void 0,a=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.version!=8)throw new Error("glStyle version 8 required.");poe[roe(e,n)]=Array.from(arguments);const p={};(typeof o=="string"||o instanceof Request||o instanceof Response||o instanceof Promise)&&(o={default:o});for(const V in o){const J=o[V];rC(()=>J).then(async W=>{let he;if(typeof Image<"u"){const ge=new Image;if(typeof W=="string")ge.crossOrigin="anonymous",ge.src=W;else{let ve;W instanceof Request?ve=await fetch(W):W instanceof Response&&(ve=W);const _e=await ve.blob();he=URL.createObjectURL(_e),ge.src=he}ge.addEventListener("load",function ve(){ge.removeEventListener("load",ve),p[V]={image:ge,size:[ge.width,ge.height]},n.changed(),he&&URL.revokeObjectURL(he)}),ge.addEventListener("error",function ve(){URL.revokeObjectURL(he),ge.removeEventListener("error",ve)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const ge=self;ge.postMessage({action:"loadImage",src:W}),ge.addEventListener("message",function(_e){_e.data.action==="imageLoaded"&&_e.data.src===W&&(p[V]={image:_e.data.image,size:[_e.data.image.width,_e.data.image.height]})})}})}const g=$O(e.layers),_={},E=[],O={},B={},z=GN(e),N=ooe(e);let Q;for(let V=0,J=g.length;V<J;++V){const W=g[V],he=W.id;if(typeof t=="string"&&W.source==t||Array.isArray(t)&&t.indexOf(he)!==-1){const ge=W["source-layer"];if(Q){if(W.source!==Q)throw new Error(`Layer "${he}" does not use source "${Q}`)}else{Q=W.source;const _e=e.sources[Q];if(!_e)throw new Error(`Source "${Q}" is not defined`);const Me=_e.type;if(Me!=="vector"&&Me!=="geojson")throw new Error(`Source "${Q}" is not of type "vector" or "geojson", but "${Me}"`)}let ve=_[ge];ve||(ve=[],_[ge]=ve),ve.push({layer:W,index:V}),E.push(he)}}const $=new qg,X=new V0,re=[],ne=function(V,J,W){const he=n.getSource?.()?.format_?.layerName_??"mvt:layer",ge=V.getProperties(),ve=_[ge[he]];if(!ve)return;let _e=i.indexOf(J);_e==-1&&(_e=p7(J,i)),Nf.zoom=_e,Nf.distanceFromCenter=0;const Me=V.getGeometry(),be=Aoe[Me.getType()],ze=n.get("map");if(ze&&ze instanceof A4&&be===1){const mt=ze.getSize(Line truncated
`)return De.push(`
`,""),De;if(be==2)return De.push(uO(Ie,Tn),me),De;Ie=AO(Ie,me,Bi,Tn).split(`
`,""),De;if(be==2)return De.push(uO(Ie,Tn),me),De;Ie=AO(Ie,me,Oi,Tn).split(`
`);for(let Qe=0,At=Ie.length;Qe<At;++Qe)Qe>0&&De.push(`
`,""),De.push(Ie[Qe],me);return De},[]):Wt=i5(Lt,ge).trim(),Ut=xr(We,"paint","text-opacity",Ce,z,Fe)}if(Wt&&Ut&&!Hn){vt||(++ot,Ve=re[ot],(!Ve||!Ve.getText()||Ve.getFill()||Ve.getStroke())&&(Ve=new Rf,re[ot]=Ve),Ve.setImage(void 0),Ve.setGeometry(void 0));const Vn=xk(We,Ce,"text",z);Ve.getText()||Ve.setText(It),It=Ve.getText(),(!It||"getDeclutterMode"in It&&It.getDeclutterMode()!==Vn)&&(It=new a4({padding:[2,2,2,2],declutterMode:Vn}),Ve.setText(It));const Lt=xr(We,"layout","text-transform",Ce,z,Fe);Lt=="uppercase"?Wt=Array.isArray(Wt)?Wt.map((kt,rt)=>rt%2?kt:kt.toUpperCase()):Wt.toUpperCase():Lt=="lowercase"&&(Wt=Array.isArray(Wt)?Wt.map((kt,rt)=>rt%2?kt:kt.toLowerCase()):Wt.toLowerCase());const De=Array.isArray(Wt)?Wt:be==2?uO(Wt,Tn):AO(Wt,Gn,Bi,Tn);if(It.setText(De),It.setFont(Gn),It.setRotation(e5(xr(We,"layout","text-rotate",Ce,z,Fe))),typeof It.setKeepUpright=="function"){const kt=xr(We,"layout","text-keep-upright",Ce,z,Fe);It.setKeepUpright(kt)}const de=xr(We,"layout","text-anchor",Ce,z,Fe),oe=vt||be==1?"point":xr(We,"layout","symbol-placement",Ce,z,Fe);let le;if(oe==="line-center"?(It.setPlacement("line"),le="center"):It.setPlacement(oe),oe==="line"&&typeof It.setRepeat=="function"){const kt=xr(We,"layout","symbol-spacing",Ce,z,Fe);It.setRepeat(kt*2)}It.setOverflow(oe==="point");let me=xr(We,"paint","text-halo-width",Ce,z,Fe);const Ie=xr(We,"layout","text-offset",Ce,z,Fe),Qe=xr(We,"paint","text-translate",Ce,z,Fe);let At=0,He=0;if(oe=="point"){le="center",de.indexOf("left")!==-1?(le="left",He=me):de.indexOf("right")!==-1&&(le="right",He=-me);const kt=xr(We,"layout","text-rotation-alignment",Ce,z,Fe);It.setRotateWithView(kt=="map")}else It.setMaxAngle(e5(xr(We,"layout","text-max-angle",Ce,z,Fe))*Wt.length/De.length),It.setRotateWithView(!1);It.setTextAlign(le);let Re="middle";de.indexOf("bottom")==0?(Re="bottom",At=-me-.5*(On-1)*Bn):de.indexOf("top")==0&&(Re="top",At=me+.5*(On-1)*Bn),It.setTextBaseline(Re);const Ze=xr(We,"layout","text-justify",Ce,z,Fe);It.setJustify(Ze==="auto"?void 0:Ze),It.setOffsetX(Ie[0]*Bn+He+Qe[0]),It.setOffsetY(Ie[1]*Bn+At+Qe[1]),X.setColor(Ug(xr(We,"paint","text-color",Ce,z,Fe),Ut)),It.setFill(X);const y=Ug(xr(We,"paint","text-halo-color",Ce,z,Fe),Ut);if(y&&me>0){$.setColor(y),me*=2;const kt=.5*Bn;$.setWidth(me<=kt?me:kt),It.setStroke($)}else It.setStroke(void 0);const yt=xr(We,"layout","text-padding",Ce,z,Fe),dt=It.getPadding();yt!==dt[0]&&(dt[0]=yt,dt[1]=yt,dt[2]=yt,dt[3]=yt),Ve.setZIndex(bt)}}}if(ot>-1)return re.length=ot+1,re};return n.setStyle(ne),n.set("mapbox-layers",E),n.set("mapbox-source",Q),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),ne}class qN{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=A4,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let i=t.dataProjection?Zs(t.dataProjection):this.readProjection(e);t.extent&&i&&i.getUnits()==="tile-pixels"&&(i=Zs(i),i.setWorldExtent(t.extent)),t={dataProjection:i,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return _o()}readFeature(e,t){return _o()}readFeatures(e,t){return _o()}readGeometry(e,t){return _o()}readProjection(e){return _o()}writeFeature(e,t){return _o()}writeFeatures(e,t){return _o()}writeGeometry(e,t){return _o()}}function h4(n,e,t){const i=t?Zs(t.featureProjection):null,r=t?Zs(t.dataProjection):null;let o=n;if(i&&r&&!n1(i,r)){e&&(o=n.clone());const s=e?i:r,a=e?r:i;s.getUnits()==="tile-pixels"?o.transform(s,a):o.applyTransform(sb(s,a))}if(e&&t&&t.decimals!==void 0){const s=Math.pow(10,t.decimals),a=function(p){for(let g=0,_=p.length;g<_;++g)p[g]=Math.round(p[g]*s)/s;return p};o===n&&(o=n.clone()),o.applyTransform(a)}return o}const goe={Point:hy,LineString:fy,Polygon:ng,MultiPoint:tx,MultiLineString:mb,MultiPolygon:gb};function yoe(n,e,t){return Array.isArray(e[0])?(iN(n,0,e,t)||(n=n.slice(),eO(n,0,e,t)),n):(W8(n,0,e,t)||(n=n.slice(),G3(n,0,e,t)),n)}function HN(n,e){const t=n.geometry;if(!t)return[];if(Array.isArray(t))return t.map(o=>HN({...n,geometry:o})).flat();const i=t.type==="MultiPolygon"?"Polygon":t.type;if(i==="GeometryCollection"||i==="Circle")throw new Error("Unsupported geometry type: "+i);const r=t.layout.length;return h4(new qh(i,i==="Polygon"?yoe(t.flatCoordinates,t.ends,r):t.flatCoordinates,t.ends?.flat(),r,n.properties||{},n.id).enableSimplifyTransformed(),!1,e)}function m7(n,e){if(!n)return null;if(Array.isArray(n)){const i=n.map(r=>m7(r,e));return new V3(i)}const t=goe[n.type];return h4(new t(n.flatCoordinates,n.layout||"XY",n.ends),!1,e)}class voe extends qN{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(Ux(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(Ux(e),this.getReadOptions(e,t))}readFeatureFromObject(e,t){return _o()}readFeaturesFromObject(e,t){ Line truncated
`),"binary").toString("base64"):URL.createObjectURL(new Blob(i,{type:"text/javascript"})));return r.addEventListener("message",e),r}function Eae(n,e){const t=sG(n.operation);let i=!1;return{postMessage:function(r){setTimeout(function(){i||e({data:{buffer:t(r),meta:r.meta}})},0)},terminate:function(){i=!0}}}let Bae=class extends Gb{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;e.threads===0?t=0:this.imageOps_?t=1:t=e.threads||1;const i=new Array(t);if(t)for(let r=0;r<t;++r)i[r]=Sae(e,this.onWorkerMessage_.bind(this,r));else i[0]=Eae(e,this.onWorkerMessage_.bind(this,0));this.workers_=i,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,i){this.enqueue_({inputs:e,meta:t,callback:i}),this.dispatch_()}enqueue_(e){for(this.queue_.push(e);this.queue_.length>this.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const e=this.queue_.shift();this.job_=e;const t=e.inputs[0].width,i=e.inputs[0].height,r=e.inputs.map(function(p){return p.data.buffer}),o=this.workers_.length;if(this.running_=o,o===1){this.workers_[0].postMessage({buffers:r,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},r);return}const s=e.inputs[0].data.length,a=4*Math.ceil(s/4/o);for(let p=0;p<o;++p){const g=p*a,_=[];for(let E=0,O=r.length;E<O;++E)_.push(r[E].slice(g,g+a));this.workers_[p].postMessage({buffers:_,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},_)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){const e=this.job_,t=this.workers_.length;let i,r;if(t===1)i=new Uint8ClampedArray(this.dataLookup_[0].buffer),r=this.dataLookup_[0].meta;else{const o=e.inputs[0].data.length;i=new Uint8ClampedArray(o),r=new Array(t);const s=4*Math.ceil(o/4/t);for(let a=0;a<t;++a){const p=this.dataLookup_[a].buffer,g=a*s;i.set(new Uint8ClampedArray(p),g),r[a]=this.dataLookup_[a].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(i,e.inputs[0].width,e.inputs[0].height),r),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}};const Rk={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class Pk extends Mm{constructor(e,t,i){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=i}}class lG extends iG{constructor(e){super({projection:null}),this.on,this.once,this.un,this.processor_=null,this.operationType_=e.operationType!==void 0?e.operationType:"pixel",this.threads_=e.threads!==void 0?e.threads:1,this.layers_=Tae(e.sources);const t=this.changed.bind(this);for(let i=0,r=this.layers_.length;i<r;++i)this.layers_[i].addEventListener(mo.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new Bj(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:rf(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:Iae(this.layers_),pixelRatio:1,pixelToCoordinateTransform:rf(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Do(this),renderTargets:{}},this.setAttributions(function(i){const r=[];for(let o=0,s=e.sources.length;o<s;++o){const a=e.sources[o],p=a instanceof bC?a:a.getSource();if(!p)continue;const g=p.getAttributions()?.(i);typeof g=="string"?r.push(g):g!==void 0&&r.push(...g)}return r}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new Bae({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,i){const r=Object.assign({},this.frameState_);r.viewState=Object.assign({},r.viewState);const o=Gf(e);r.size[0]=Math.ceil(ds(e)/t),r.size[1]=Math.ceil(cc(e)/t),r.extent=[o[0]-r.size[0]*t/2,o[1]-r.size[1]*t/2,o[0]+r.size[0]*t/2,o[1]+r.size[1]*t/2],r.time=Date.now();const s=r.viewState;return s.center=o,s.projection=i,s.resolution=t,r}allSourcesReady_(){let e=!0,t;for(let i=0,r=this.layers_.length;i<r;++i)if(t=this.layers_[i].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,i,r){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const o=this.updateFrameState_(e,t,r);if(this.requestedFrameState_=o,this.renderedImageCanvas_){const s=this.renderedImageCanvas_.getResolution(),a=this.renderedImageCanvas_.getExtent();(t!==s||!tg(o.extent,a))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),o.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.requestedFrameState_ Line truncated
`);this.generateTileUrlFunction_?this.setTileUrlFunction(uG(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,i){}}class Nae extends p4{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:Gae,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate!==void 0?e.interpolate:!0,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin!==void 0?e.crossOrigin:null,this.tileClass=e.tileClass!==void 0?e.tileClass:zN,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!n1(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=":disable-interpolation"),e}getTileGridForProjection(e){const t=this.getProjection();if(this.tileGrid&&(!t||n1(t,e)))return this.tileGrid;const i=Do(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=rG(e)),this.tileGridForProjection[i]}createTile_(e,t,i,r,o,s){const a=[e,t,i],p=this.getTileCoordForTileUrlFunction(a,o),g=p?this.tileUrlFunction(p,r,o):void 0,_=new this.tileClass(a,g!==void 0?Ki.IDLE:Ki.EMPTY,g!==void 0?g:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return _.key=s,_.addEventListener(mo.CHANGE,this.handleTileChange.bind(this)),_}getTile(e,t,i,r,o){const s=this.getProjection();if(!s||!o||n1(s,o))return this.getTileInternal(e,t,i,r,s||o);const a=[e,t,i],p=this.getKey(),g=this.getTileGridForProjection(s),_=this.getTileGridForProjection(o),E=this.getTileCoordForTileUrlFunction(a,o),O=new eG(s,g,o,_,a,E,this.getTilePixelRatio(r),this.getGutter(),(B,z,N,Q)=>this.getTileInternal(B,z,N,Q,s),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return O.key=p,O}getTileInternal(e,t,i,r,o){const s=this.getKey();return this.createTile_(e,t,i,r,o,s)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const i=Zs(e);if(i){const r=Do(i);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}}function Gae(n,e){n.getImage().src=e}class AG extends Nae{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Zs("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,zDirection:e.zDirection}),this.tileJSON_=null,this.tileSize_=e.tileSize,e.url)if(e.jsonp)Dae(e.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",e.url),t.send()}else if(e.tileJSON)this.handleTileJSONResponse(e.tileJSON);else throw new Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(e){const t=e.target;if(!t.status||t.status>=200&&t.status<300){let i;try{i=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(i)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=Zs("EPSG:4326"),i=this.getProjection();let r;if(e.bounds!==void 0){const g=Hb(t,i);r=lte(e.bounds,g)}const o=f4(i),s=e.minzoom||0,a=e.maxzoom||22,p=y7({extent:o,maxZoom:a,minZoom:s,tileSize:this.tileSize_});if(this.tileGrid=p,this.tileUrlFunction=uG(e.tiles,p),e.attribution&&!this.getAttributions()){const g=r!==void 0?r:o;this.setAttributions(function(_){return gA(g,_.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}class v7 extends p4{constructor(e){const t=e.projection||"EPSG:3857",i=e.extent||f4(t),r=e.tileGrid||y7({extent:i,maxResolution:e.maxResolution,maxZoom:e.maxZoom!==void 0?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,projection:t,state:e.state,tileGrid:r,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:cG,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX===void 0?!0:e.wrapX,transition:e.transition,zDirection:e.zDirection===void 0?1:e.zDirection}),this.format_=e.format?e.format:null,this.tileKeysBySourceTileUrl_={},this.sourceTiles_={},this.overlaps_=e.overlaps==null?!0:e.overlaps,this.tileClass=e.tileClass?e.tileClass:jN,this.tileGrids_={}}getOverlaps(){return this.overlaps_}getSourceTiles(e,t,i){if(i.getState()===Ki.IDLE){i.setState(Ki.LOADING);const r=i.w Line truncated
`,""),De.push(Ie[Qe],me);return De},[]):Wt=iM(Lt,ge).trim(),Kt=Mr(We,"paint","text-opacity",Ce,z,Fe)}if(Wt&&Kt&&!Hn){vt||(++ot,Ve=re[ot],(!Ve||!Ve.getText()||Ve.getFill()||Ve.getStroke())&&(Ve=new Rf,re[ot]=Ve),Ve.setImage(void 0),Ve.setGeometry(void 0));const Vn=xk(We,Ce,"text",z);Ve.getText()||Ve.setText(It),It=Ve.getText(),(!It||"getDeclutterMode"in It&&It.getDeclutterMode()!==Vn)&&(It=new s4({padding:[2,2,2,2],declutterMode:Vn}),Ve.setText(It));const Lt=Mr(We,"layout","text-transform",Ce,z,Fe);Lt=="uppercase"?Wt=Array.isArray(Wt)?Wt.map((kt,rt)=>rt%2?kt:kt.toUpperCase()):Wt.toUpperCase():Lt=="lowercase"&&(Wt=Array.isArray(Wt)?Wt.map((kt,rt)=>rt%2?kt:kt.toLowerCase()):Wt.toLowerCase());const De=Array.isArray(Wt)?Wt:be==2?uO(Wt,Tn):AO(Wt,Gn,Oi,Tn);if(It.setText(De),It.setFont(Gn),It.setRotation(eM(Mr(We,"layout","text-rotate",Ce,z,Fe))),typeof It.setKeepUpright=="function"){const kt=Mr(We,"layout","text-keep-upright",Ce,z,Fe);It.setKeepUpright(kt)}const de=Mr(We,"layout","text-anchor",Ce,z,Fe),oe=vt||be==1?"point":Mr(We,"layout","symbol-placement",Ce,z,Fe);let le;if(oe==="line-center"?(It.setPlacement("line"),le="center"):It.setPlacement(oe),oe==="line"&&typeof It.setRepeat=="function"){const kt=Mr(We,"layout","symbol-spacing",Ce,z,Fe);It.setRepeat(kt*2)}It.setOverflow(oe==="point");let me=Mr(We,"paint","text-halo-width",Ce,z,Fe);const Ie=Mr(We,"layout","text-offset",Ce,z,Fe),Qe=Mr(We,"paint","text-translate",Ce,z,Fe);let At=0,He=0;if(oe=="point"){le="center",de.indexOf("left")!==-1?(le="left",He=me):de.indexOf("right")!==-1&&(le="right",He=-me);const kt=Mr(We,"layout","text-rotation-alignment",Ce,z,Fe);It.setRotateWithView(kt=="map")}else It.setMaxAngle(eM(Mr(We,"layout","text-max-angle",Ce,z,Fe))*Wt.length/De.length),It.setRotateWithView(!1);It.setTextAlign(le);let Re="middle";de.indexOf("bottom")==0?(Re="bottom",At=-me-.5*(On-1)*Bn):de.indexOf("top")==0&&(Re="top",At=me+.5*(On-1)*Bn),It.setTextBaseline(Re);const Ze=Mr(We,"layout","text-justify",Ce,z,Fe);It.setJustify(Ze==="auto"?void 0:Ze),It.setOffsetX(Ie[0]*Bn+He+Qe[0]),It.setOffsetY(Ie[1]*Bn+At+Qe[1]),X.setColor(Kg(Mr(We,"paint","text-color",Ce,z,Fe),Kt)),It.setFill(X);const y=Kg(Mr(We,"paint","text-halo-color",Ce,z,Fe),Kt);if(y&&me>0){$.setColor(y),me*=2;const kt=.5*Bn;$.setWidth(me<=kt?me:kt),It.setStroke($)}else It.setStroke(void 0);const yt=Mr(We,"layout","text-padding",Ce,z,Fe),dt=It.getPadding();yt!==dt[0]&&(dt[0]=yt,dt[1]=yt,dt[2]=yt,dt[3]=yt),Ve.setZIndex(bt)}}}if(ot>-1)return re.length=ot+1,re};return n.setStyle(ne),n.set("mapbox-layers",E),n.set("mapbox-source",Q),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),ne}class qN{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=c4,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let i=t.dataProjection?Zs(t.dataProjection):this.readProjection(e);t.extent&&i&&i.getUnits()==="tile-pixels"&&(i=Zs(i),i.setWorldExtent(t.extent)),t={dataProjection:i,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return _o()}readFeature(e,t){return _o()}readFeatures(e,t){return _o()}readGeometry(e,t){return _o()}readProjection(e){return _o()}writeFeature(e,t){return _o()}writeFeatures(e,t){return _o()}writeGeometry(e,t){return _o()}}function d4(n,e,t){const i=t?Zs(t.featureProjection):null,r=t?Zs(t.dataProjection):null;let o=n;if(i&&r&&!n1(i,r)){e&&(o=n.clone());const s=e?i:r,a=e?r:i;s.getUnits()==="tile-pixels"?o.transform(s,a):o.applyTransform(sb(s,a))}if(e&&t&&t.decimals!==void 0){const s=Math.pow(10,t.decimals),a=function(p){for(let g=0,_=p.length;g<_;++g)p[g]=Math.round(p[g]*s)/s;return p};o===n&&(o=n.clone()),o.applyTransform(a)}return o}const goe={Point:hy,LineString:fy,Polygon:ng,MultiPoint:nx,MultiLineString:mb,MultiPolygon:gb};function yoe(n,e,t){return Array.isArray(e[0])?(iN(n,0,e,t)||(n=n.slice(),eO(n,0,e,t)),n):(W8(n,0,e,t)||(n=n.slice(),W3(n,0,e,t)),n)}function HN(n,e){const t=n.geometry;if(!t)return[];if(Array.isArray(t))return t.map(o=>HN({...n,geometry:o})).flat();const i=t.type==="MultiPolygon"?"Polygon":t.type;if(i==="GeometryCollection"||i==="Circle")throw new Error("Unsupported geometry type: "+i);const r=t.layout.length;return d4(new qh(i,i==="Polygon"?yoe(t.flatCoordinates,t.ends,r):t.flatCoordinates,t.ends?.flat(),r,n.properties||{},n.id).enableSimplifyTransformed(),!1,e)}function m7(n,e){if(!n)return null;if(Array.isArray(n)){const i=n.map(r=>m7(r,e));return new $3(i)}const t=goe[n.type];return d4(new t(n.flatCoordinates,n.layout||"XY",n.ends),!1,e)}class voe extends qN{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(Lx(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(Lx(e),this.getReadOptions(e,t))}readFeatureFromObject(e,t){return _o()}readFeaturesFromObject(e,t){ Line truncated
`),"binary").toString("base64"):URL.createObjectURL(new Blob(i,{type:"text/javascript"})));return r.addEventListener("message",e),r}function Eae(n,e){const t=sG(n.operation);let i=!1;return{postMessage:function(r){setTimeout(function(){i||e({data:{buffer:t(r),meta:r.meta}})},0)},terminate:function(){i=!0}}}let Bae=class extends Wb{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;e.threads===0?t=0:this.imageOps_?t=1:t=e.threads||1;const i=new Array(t);if(t)for(let r=0;r<t;++r)i[r]=Sae(e,this.onWorkerMessage_.bind(this,r));else i[0]=Eae(e,this.onWorkerMessage_.bind(this,0));this.workers_=i,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,i){this.enqueue_({inputs:e,meta:t,callback:i}),this.dispatch_()}enqueue_(e){for(this.queue_.push(e);this.queue_.length>this.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const e=this.queue_.shift();this.job_=e;const t=e.inputs[0].width,i=e.inputs[0].height,r=e.inputs.map(function(p){return p.data.buffer}),o=this.workers_.length;if(this.running_=o,o===1){this.workers_[0].postMessage({buffers:r,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},r);return}const s=e.inputs[0].data.length,a=4*Math.ceil(s/4/o);for(let p=0;p<o;++p){const g=p*a,_=[];for(let E=0,O=r.length;E<O;++E)_.push(r[E].slice(g,g+a));this.workers_[p].postMessage({buffers:_,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},_)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){const e=this.job_,t=this.workers_.length;let i,r;if(t===1)i=new Uint8ClampedArray(this.dataLookup_[0].buffer),r=this.dataLookup_[0].meta;else{const o=e.inputs[0].data.length;i=new Uint8ClampedArray(o),r=new Array(t);const s=4*Math.ceil(o/4/t);for(let a=0;a<t;++a){const p=this.dataLookup_[a].buffer,g=a*s;i.set(new Uint8ClampedArray(p),g),r[a]=this.dataLookup_[a].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(i,e.inputs[0].width,e.inputs[0].height),r),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}};const Rk={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class Pk extends Mm{constructor(e,t,i){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=i}}class lG extends iG{constructor(e){super({projection:null}),this.on,this.once,this.un,this.processor_=null,this.operationType_=e.operationType!==void 0?e.operationType:"pixel",this.threads_=e.threads!==void 0?e.threads:1,this.layers_=Tae(e.sources);const t=this.changed.bind(this);for(let i=0,r=this.layers_.length;i<r;++i)this.layers_[i].addEventListener(mo.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new Bj(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:rf(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:Iae(this.layers_),pixelRatio:1,pixelToCoordinateTransform:rf(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Do(this),renderTargets:{}},this.setAttributions(function(i){const r=[];for(let o=0,s=e.sources.length;o<s;++o){const a=e.sources[o],p=a instanceof bC?a:a.getSource();if(!p)continue;const g=p.getAttributions()?.(i);typeof g=="string"?r.push(g):g!==void 0&&r.push(...g)}return r}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new Bae({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,i){const r=Object.assign({},this.frameState_);r.viewState=Object.assign({},r.viewState);const o=Gf(e);r.size[0]=Math.ceil(ds(e)/t),r.size[1]=Math.ceil(cc(e)/t),r.extent=[o[0]-r.size[0]*t/2,o[1]-r.size[1]*t/2,o[0]+r.size[0]*t/2,o[1]+r.size[1]*t/2],r.time=Date.now();const s=r.viewState;return s.center=o,s.projection=i,s.resolution=t,r}allSourcesReady_(){let e=!0,t;for(let i=0,r=this.layers_.length;i<r;++i)if(t=this.layers_[i].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,i,r){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const o=this.updateFrameState_(e,t,r);if(this.requestedFrameState_=o,this.renderedImageCanvas_){const s=this.renderedImageCanvas_.getResolution(),a=this.renderedImageCanvas_.getExtent();(t!==s||!tg(o.extent,a))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),o.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.requestedFrameState_ Line truncated
`);this.generateTileUrlFunction_?this.setTileUrlFunction(uG(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,i){}}class Nae extends m4{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:Gae,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate!==void 0?e.interpolate:!0,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin!==void 0?e.crossOrigin:null,this.tileClass=e.tileClass!==void 0?e.tileClass:zN,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!n1(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=":disable-interpolation"),e}getTileGridForProjection(e){const t=this.getProjection();if(this.tileGrid&&(!t||n1(t,e)))return this.tileGrid;const i=Do(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=rG(e)),this.tileGridForProjection[i]}createTile_(e,t,i,r,o,s){const a=[e,t,i],p=this.getTileCoordForTileUrlFunction(a,o),g=p?this.tileUrlFunction(p,r,o):void 0,_=new this.tileClass(a,g!==void 0?Ki.IDLE:Ki.EMPTY,g!==void 0?g:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return _.key=s,_.addEventListener(mo.CHANGE,this.handleTileChange.bind(this)),_}getTile(e,t,i,r,o){const s=this.getProjection();if(!s||!o||n1(s,o))return this.getTileInternal(e,t,i,r,s||o);const a=[e,t,i],p=this.getKey(),g=this.getTileGridForProjection(s),_=this.getTileGridForProjection(o),E=this.getTileCoordForTileUrlFunction(a,o),O=new eG(s,g,o,_,a,E,this.getTilePixelRatio(r),this.getGutter(),(B,z,N,Q)=>this.getTileInternal(B,z,N,Q,s),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return O.key=p,O}getTileInternal(e,t,i,r,o){const s=this.getKey();return this.createTile_(e,t,i,r,o,s)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const i=Zs(e);if(i){const r=Do(i);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}}function Gae(n,e){n.getImage().src=e}class AG extends Nae{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Zs("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,zDirection:e.zDirection}),this.tileJSON_=null,this.tileSize_=e.tileSize,e.url)if(e.jsonp)Dae(e.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",e.url),t.send()}else if(e.tileJSON)this.handleTileJSONResponse(e.tileJSON);else throw new Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(e){const t=e.target;if(!t.status||t.status>=200&&t.status<300){let i;try{i=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(i)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=Zs("EPSG:4326"),i=this.getProjection();let r;if(e.bounds!==void 0){const g=Vb(t,i);r=lte(e.bounds,g)}const o=p4(i),s=e.minzoom||0,a=e.maxzoom||22,p=y7({extent:o,maxZoom:a,minZoom:s,tileSize:this.tileSize_});if(this.tileGrid=p,this.tileUrlFunction=uG(e.tiles,p),e.attribution&&!this.getAttributions()){const g=r!==void 0?r:o;this.setAttributions(function(_){return gA(g,_.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}class v7 extends m4{constructor(e){const t=e.projection||"EPSG:3857",i=e.extent||p4(t),r=e.tileGrid||y7({extent:i,maxResolution:e.maxResolution,maxZoom:e.maxZoom!==void 0?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,projection:t,state:e.state,tileGrid:r,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:cG,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX===void 0?!0:e.wrapX,transition:e.transition,zDirection:e.zDirection===void 0?1:e.zDirection}),this.format_=e.format?e.format:null,this.tileKeysBySourceTileUrl_={},this.sourceTiles_={},this.overlaps_=e.overlaps==null?!0:e.overlaps,this.tileClass=e.tileClass?e.tileClass:jN,this.tileGrids_={}}getOverlaps(){return this.overlaps_}getSourceTiles(e,t,i){if(i.getState()===Ki.IDLE){i.setState(Ki.LOADING);const r=i.w Line truncated
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/var Fk;function sse(){return Fk||(Fk=1,function(n){(function(){var e={}.hasOwnProperty;function t(){for(var o="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(o=r(o,i(a)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var a in o)e.call(o,a)&&o[a]&&(s=r(s,a));return s}function r(o,s){return s?o?o+" "+s:o+s:o}n.exports?(t.default=t,n.exports=t):window.classNames=t})()}(c5)),c5.exports}var lse=sse();const g0=Bu(lse);var y_=y2();function use(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return Gt.useMemo(()=>i=>{e.forEach(r=>r(i))},e)}const m4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function xC(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function C7(n){return"nodeType"in n}function sf(n){var e,t;return n?xC(n)?n:C7(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function _7(n){const{Document:e}=sf(n);return n instanceof e}function rx(n){return xC(n)?!1:n instanceof sf(n).HTMLElement}function vG(n){return n instanceof sf(n).SVGElement}function MC(n){return n?xC(n)?n.document:C7(n)?_7(n)?n:rx(n)||vG(n)?n.ownerDocument:document:document:document}const y0=m4?Gt.useLayoutEffect:Gt.useEffect;function b7(n){const e=Gt.useRef(n);return y0(()=>{e.current=n}),Gt.useCallback(function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];return e.current==null?void 0:e.current(...i)},[])}function Ase(){const n=Gt.useRef(null),e=Gt.useCallback((i,r)=>{n.current=setInterval(i,r)},[]),t=Gt.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function yb(n,e){e===void 0&&(e=[n]);const t=Gt.useRef(n);return y0(()=>{t.current!==n&&(t.current=n)},e),t}function ox(n,e){const t=Gt.useRef();return Gt.useMemo(()=>{const i=n(t.current);return t.current=i,i},[...e])}function n2(n){const e=b7(n),t=Gt.useRef(null),i=Gt.useCallback(r=>{r!==t.current&&e?.(r,t.current),t.current=r},[]);return[t,i]}function mO(n){const e=Gt.useRef();return Gt.useEffect(()=>{e.current=n},[n]),e.current}let h5={};function ax(n,e){return Gt.useMemo(()=>{if(e)return e;const t=h5[n]==null?0:h5[n]+1;return h5[n]=t,n+"-"+t},[n,e])}function CG(n){return function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return i.reduce((o,s)=>{const a=Object.entries(s);for(const[p,g]of a){const _=o[p];_!=null&&(o[p]=_+n*g)}return o},{...e})}}const Qv=CG(1),i2=CG(-1);function cse(n){return"clientX"in n&&"clientY"in n}function x7(n){if(!n)return!1;const{KeyboardEvent:e}=sf(n.target);return e&&n instanceof e}function hse(n){if(!n)return!1;const{TouchEvent:e}=sf(n.target);return e&&n instanceof e}function gO(n){if(hse(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return cse(n)?{x:n.clientX,y:n.clientY}:null}const vb=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[vb.Translate.toString(n),vb.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:i}=n;return e+" "+t+"ms "+i}}}),zk="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function dse(n){return n.matches(zk)?n:n.querySelector(zk)}const fse={display:"none"};function pse(n){let{id:e,value:t}=n;return ni.createElement("div",{id:e,style:fse},t)}function mse(n){let{id:e,announcement:t,ariaLiveType:i="assertive"}=n;const r={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return ni.createElement("div",{id:e,style:r,role:"status","aria-live":i,"aria-atomic":!0},t)}function gse(){const[n,e]=Gt.useState("");return{announce:Gt.useCallback(i=>{i!=null&&e(i)},[]),announcement:n}}const _G=Gt.createContext(null);function yse(n){const e=Gt.useContext(_G);Gt.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(n)},[n,e])}function vse(){const[n]=Gt.useState(()=>new Set),e=Gt.useCallback(i=>(n.add(i),()=>n.delete(i)),[n]);return[Gt.useCallback(i=>{let{type:r,event:o}=i;n.forEach(s=>{var a;return(a=s[r])==null?void 0:a.call(s,o)})},[n]),e]}const Cse={draggable:`
*/var Fk;function sse(){return Fk||(Fk=1,function(n){(function(){var e={}.hasOwnProperty;function t(){for(var o="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(o=r(o,i(a)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var a in o)e.call(o,a)&&o[a]&&(s=r(s,a));return s}function r(o,s){return s?o?o+" "+s:o+s:o}n.exports?(t.default=t,n.exports=t):window.classNames=t})()}(cM)),cM.exports}var lse=sse();const g0=Bu(lse);var y_=v2();function use(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return Gt.useMemo(()=>i=>{e.forEach(r=>r(i))},e)}const g4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function xC(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function C7(n){return"nodeType"in n}function sf(n){var e,t;return n?xC(n)?n:C7(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function _7(n){const{Document:e}=sf(n);return n instanceof e}function ox(n){return xC(n)?!1:n instanceof sf(n).HTMLElement}function vG(n){return n instanceof sf(n).SVGElement}function MC(n){return n?xC(n)?n.document:C7(n)?_7(n)?n:ox(n)||vG(n)?n.ownerDocument:document:document:document}const y0=g4?Gt.useLayoutEffect:Gt.useEffect;function b7(n){const e=Gt.useRef(n);return y0(()=>{e.current=n}),Gt.useCallback(function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];return e.current==null?void 0:e.current(...i)},[])}function Ase(){const n=Gt.useRef(null),e=Gt.useCallback((i,r)=>{n.current=setInterval(i,r)},[]),t=Gt.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function yb(n,e){e===void 0&&(e=[n]);const t=Gt.useRef(n);return y0(()=>{t.current!==n&&(t.current=n)},e),t}function ax(n,e){const t=Gt.useRef();return Gt.useMemo(()=>{const i=n(t.current);return t.current=i,i},[...e])}function i2(n){const e=b7(n),t=Gt.useRef(null),i=Gt.useCallback(r=>{r!==t.current&&e?.(r,t.current),t.current=r},[]);return[t,i]}function mO(n){const e=Gt.useRef();return Gt.useEffect(()=>{e.current=n},[n]),e.current}let hM={};function sx(n,e){return Gt.useMemo(()=>{if(e)return e;const t=hM[n]==null?0:hM[n]+1;return hM[n]=t,n+"-"+t},[n,e])}function CG(n){return function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return i.reduce((o,s)=>{const a=Object.entries(s);for(const[p,g]of a){const _=o[p];_!=null&&(o[p]=_+n*g)}return o},{...e})}}const Qv=CG(1),r2=CG(-1);function cse(n){return"clientX"in n&&"clientY"in n}function x7(n){if(!n)return!1;const{KeyboardEvent:e}=sf(n.target);return e&&n instanceof e}function hse(n){if(!n)return!1;const{TouchEvent:e}=sf(n.target);return e&&n instanceof e}function gO(n){if(hse(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return cse(n)?{x:n.clientX,y:n.clientY}:null}const vb=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[vb.Translate.toString(n),vb.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:i}=n;return e+" "+t+"ms "+i}}}),zk="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function dse(n){return n.matches(zk)?n:n.querySelector(zk)}const fse={display:"none"};function pse(n){let{id:e,value:t}=n;return ii.createElement("div",{id:e,style:fse},t)}function mse(n){let{id:e,announcement:t,ariaLiveType:i="assertive"}=n;const r={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return ii.createElement("div",{id:e,style:r,role:"status","aria-live":i,"aria-atomic":!0},t)}function gse(){const[n,e]=Gt.useState("");return{announce:Gt.useCallback(i=>{i!=null&&e(i)},[]),announcement:n}}const _G=Gt.createContext(null);function yse(n){const e=Gt.useContext(_G);Gt.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(n)},[n,e])}function vse(){const[n]=Gt.useState(()=>new Set),e=Gt.useCallback(i=>(n.add(i),()=>n.delete(i)),[n]);return[Gt.useCallback(i=>{let{type:r,event:o}=i;n.forEach(s=>{var a;return(a=s[r])==null?void 0:a.call(s,o)})},[n]),e]}const Cse={draggable:`
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
`},_se={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function bse(n){let{announcements:e=_se,container:t,hiddenTextDescribedById:i,screenReaderInstructions:r=Cse}=n;const{announce:o,announcement:s}=gse(),a=ax("DndLiveRegion"),[p,g]=Gt.useState(!1);if(Gt.useEffect(()=>{g(!0)},[]),yse(Gt.useMemo(()=>({onDragStart(E){let{active:O}=E;o(e.onDragStart({active:O}))},onDragMove(E){let{active:O,over:B}=E;e.onDragMove&&o(e.onDragMove({active:O,over:B}))},onDragOver(E){let{active:O,over:B}=E;o(e.onDragOver({active:O,over:B}))},onDragEnd(E){let{active:O,over:B}=E;o(e.onDragEnd({active:O,over:B}))},onDragCancel(E){let{active:O,over:B}=E;o(e.onDragCancel({active:O,over:B}))}}),[o,e])),!p)return null;const _=ni.createElement(ni.Fragment,null,ni.createElement(pse,{id:i,value:r.draggable}),ni.createElement(mse,{id:a,announcement:s}));return t?y_.createPortal(_,t):_}var Oc;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(Oc||(Oc={}));function r2(){}function xse(n,e){return Gt.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function Mse(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return Gt.useMemo(()=>[...e].filter(i=>i!=null),[...e])}const Cm=Object.freeze({x:0,y:0});function wse(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function Sse(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return t-i}function Ese(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return i-t}function Bse(n,e){if(!n||n.length===0)return null;const[t]=n;return t[e]}function jk(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const Ose=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=jk(e,e.left,e.top),o=[];for(const s of i){const{id:a}=s,p=t.get(a);if(p){const g=wse(jk(p),r);o.push({id:a,data:{droppableContainer:s,value:g}})}}return o.sort(Sse)};function Ise(n,e){const t=Math.max(e.top,n.top),i=Math.max(e.left,n.left),r=Math.min(e.left+e.width,n.left+n.width),o=Math.min(e.top+e.height,n.top+n.height),s=r-i,a=o-t;if(i<r&&t<o){const p=e.width*e.height,g=n.width*n.height,_=s*a,E=_/(p+g-_);return Number(E.toFixed(4))}return 0}const Tse=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=[];for(const o of i){const{id:s}=o,a=t.get(s);if(a){const p=Ise(a,e);p>0&&r.push({id:s,data:{droppableContainer:o,value:p}})}}return r.sort(Ese)};function kse(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function bG(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:Cm}function Dse(n){return function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return r.reduce((s,a)=>({...s,top:s.top+n*a.y,bottom:s.bottom+n*a.y,left:s.left+n*a.x,right:s.right+n*a.x}),{...t})}}const Rse=Dse(1);function Pse(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function Kse(n,e,t){const i=Pse(e);if(!i)return n;const{scaleX:r,scaleY:o,x:s,y:a}=i,p=n.left-s-(1-r)*parseFloat(t),g=n.top-a-(1-o)*parseFloat(t.slice(t.indexOf(" ")+1)),_=r?n.width/r:n.width,E=o?n.height/o:n.height;return{width:_,height:E,top:g,right:p+_,bottom:g+E,left:p}}const Use={ignoreTransform:!1};function wC(n,e){e===void 0&&(e=Use);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:g,transformOrigin:_}=sf(n).getComputedStyle(n);g&&(t=Kse(t,g,_))}const{top:i,left:r,width:o,height:s,bottom:a,right:p}=t;return{top:i,left:r,width:o,height:s,bottom:a,right:p}}function Nk(n){return wC(n,{ignoreTransform:!0})}function Lse(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function Fse(n,e){return e===void 0&&(e=sf(n).getComputedStyle(n)),e.position==="fixed"}function zse(n,e){e===void 0&&(e=sf(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const o=e[r];return typeof o=="string"?t.test(o):!1})}function M7(n,e){const t=[];function i(r){if(e!=null&&t.length>=e||!r)return t;if(_7(r)&&r.scrollingElement!=null&&!t.includes(r.scrollingElement))return t.push(r.scrollingElement),t;if(!rx(r)||vG(r)||t.includes(r))return t;const o=sf(n).getComputedStyle(r);return r!==n&&zse( Line truncated
`},_se={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function bse(n){let{announcements:e=_se,container:t,hiddenTextDescribedById:i,screenReaderInstructions:r=Cse}=n;const{announce:o,announcement:s}=gse(),a=sx("DndLiveRegion"),[p,g]=Gt.useState(!1);if(Gt.useEffect(()=>{g(!0)},[]),yse(Gt.useMemo(()=>({onDragStart(E){let{active:O}=E;o(e.onDragStart({active:O}))},onDragMove(E){let{active:O,over:B}=E;e.onDragMove&&o(e.onDragMove({active:O,over:B}))},onDragOver(E){let{active:O,over:B}=E;o(e.onDragOver({active:O,over:B}))},onDragEnd(E){let{active:O,over:B}=E;o(e.onDragEnd({active:O,over:B}))},onDragCancel(E){let{active:O,over:B}=E;o(e.onDragCancel({active:O,over:B}))}}),[o,e])),!p)return null;const _=ii.createElement(ii.Fragment,null,ii.createElement(pse,{id:i,value:r.draggable}),ii.createElement(mse,{id:a,announcement:s}));return t?y_.createPortal(_,t):_}var Oc;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(Oc||(Oc={}));function o2(){}function xse(n,e){return Gt.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function Mse(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return Gt.useMemo(()=>[...e].filter(i=>i!=null),[...e])}const Cm=Object.freeze({x:0,y:0});function wse(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function Sse(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return t-i}function Ese(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return i-t}function Bse(n,e){if(!n||n.length===0)return null;const[t]=n;return t[e]}function jk(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const Ose=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=jk(e,e.left,e.top),o=[];for(const s of i){const{id:a}=s,p=t.get(a);if(p){const g=wse(jk(p),r);o.push({id:a,data:{droppableContainer:s,value:g}})}}return o.sort(Sse)};function Ise(n,e){const t=Math.max(e.top,n.top),i=Math.max(e.left,n.left),r=Math.min(e.left+e.width,n.left+n.width),o=Math.min(e.top+e.height,n.top+n.height),s=r-i,a=o-t;if(i<r&&t<o){const p=e.width*e.height,g=n.width*n.height,_=s*a,E=_/(p+g-_);return Number(E.toFixed(4))}return 0}const Tse=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=[];for(const o of i){const{id:s}=o,a=t.get(s);if(a){const p=Ise(a,e);p>0&&r.push({id:s,data:{droppableContainer:o,value:p}})}}return r.sort(Ese)};function kse(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function bG(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:Cm}function Dse(n){return function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return r.reduce((s,a)=>({...s,top:s.top+n*a.y,bottom:s.bottom+n*a.y,left:s.left+n*a.x,right:s.right+n*a.x}),{...t})}}const Rse=Dse(1);function Pse(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function Use(n,e,t){const i=Pse(e);if(!i)return n;const{scaleX:r,scaleY:o,x:s,y:a}=i,p=n.left-s-(1-r)*parseFloat(t),g=n.top-a-(1-o)*parseFloat(t.slice(t.indexOf(" ")+1)),_=r?n.width/r:n.width,E=o?n.height/o:n.height;return{width:_,height:E,top:g,right:p+_,bottom:g+E,left:p}}const Kse={ignoreTransform:!1};function wC(n,e){e===void 0&&(e=Kse);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:g,transformOrigin:_}=sf(n).getComputedStyle(n);g&&(t=Use(t,g,_))}const{top:i,left:r,width:o,height:s,bottom:a,right:p}=t;return{top:i,left:r,width:o,height:s,bottom:a,right:p}}function Nk(n){return wC(n,{ignoreTransform:!0})}function Lse(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function Fse(n,e){return e===void 0&&(e=sf(n).getComputedStyle(n)),e.position==="fixed"}function zse(n,e){e===void 0&&(e=sf(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const o=e[r];return typeof o=="string"?t.test(o):!1})}function M7(n,e){const t=[];function i(r){if(e!=null&&t.length>=e||!r)return t;if(_7(r)&&r.scrollingElement!=null&&!t.includes(r.scrollingElement))return t.push(r.scrollingElement),t;if(!ox(r)||vG(r)||t.includes(r))return t;const o=sf(n).getComputedStyle(r);return r!==n&&zse( Line truncated
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var zG=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],s2=zG.join(","),jG=typeof Element>"u",py=jG?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,l2=!jG&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n?.ownerDocument},u2=function n(e,t){var i;t===void 0&&(t=!0);var r=e==null||(i=e.getAttribute)===null||i===void 0?void 0:i.call(e,"inert"),o=r===""||r==="true",s=o||t&&e&&n(e.parentNode);return s},nue=function(e){var t,i=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return i===""||i==="true"},NG=function(e,t,i){if(u2(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(s2));return t&&py.call(e,s2)&&r.unshift(e),r=r.filter(i),r},GG=function n(e,t,i){for(var r=[],o=Array.from(e);o.length;){var s=o.shift();if(!u2(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),p=a.length?a:s.children,g=n(p,!0,i);i.flatten?r.push.apply(r,g):r.push({scopeParent:s,candidates:g})}else{var _=py.call(s,s2);_&&i.filter(s)&&(t||!e.includes(s))&&r.push(s);var E=s.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(s),O=!u2(E,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(s));if(E&&O){var B=n(E===!0?s.children:E.children,!0,i);i.flatten?r.push.apply(r,B):r.push({scopeParent:s,candidates:B})}else o.unshift.apply(o,s.children)}}return r},WG=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},zg=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||nue(e))&&!WG(e)?0:e.tabIndex},iue=function(e,t){var i=zg(e);return i<0&&t&&!WG(e)?0:i},rue=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},QG=function(e){return e.tagName==="INPUT"},oue=function(e){return QG(e)&&e.type==="hidden"},aue=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(i){return i.tagName==="SUMMARY"});return t},sue=function(e,t){for(var i=0;i<e.length;i++)if(e[i].checked&&e[i].form===t)return e[i]},lue=function(e){if(!e.name)return!0;var t=e.form||l2(e),i=function(a){return t.querySelectorAll('input[type="radio"][name="'+a+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=i(window.CSS.escape(e.name));else try{r=i(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var o=sue(r,e.form);return!o||o===e},uue=function(e){return QG(e)&&e.type==="radio"},Aue=function(e){return uue(e)&&!lue(e)},cue=function(e){var t,i=e&&l2(e),r=(t=i)===null||t===void 0?void 0:t.host,o=!1;if(i&&i!==e){var s,a,p;for(o=!!((s=r)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(r)||e!=null&&(p=e.ownerDocument)!==null&&p!==void 0&&p.contains(e));!o&&r;){var g,_,E;i=l2(r),r=(g=i)===null||g===void 0?void 0:g.host,o=!!((_=r)!==null&&_!==void 0&&(E=_.ownerDocument)!==null&&E!==void 0&&E.contains(r))}}return o},tD=function(e){var t=e.getBoundingClientRect(),i=t.width,r=t.height;return i===0&&r===0},hue=function(e,t){var i=t.displayCheck,r=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var o=py.call(e,"details>summary:first-of-type"),s=o?e.parentElement:e;if(py.call(s,"details:not([open]) *"))return!0;if(!i||i==="full"||i==="legacy-full"){if(typeof r=="function"){for(var a=e;e;){var p=e.parentElement,g=l2(e);if(p&&!p.shadowRoot&&r(p)===!0)return tD(e);e.assignedSlot?e=e.assignedSlot:!p&&g!==e.ownerDocument?e=g.host:e=p}e=a}if(cue(e))return!e.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-area")return tD(e);return!1},due=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var i=0;i<t.children.length;i++){var r=t.children.item(i);if(r.tagName==="LEGEND")return py.call(t,"fieldset[disabled] *")?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},A2=function(e,t){return!(t.disabled||u2(t)||oue(t)||hue(t,e)||aue(t)||due(t))},_O=function(e,t){return!(Aue(t)||zg(t)<0||!A2(e,t))},fue=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},pue=function n(e){var t=[],i=[];return e.forEach(function(r,o){var s=!!r.scopeParent,a=s?r.scopeParent:r,p=iue(a,s),g=s?n(r.candidates):a;p===0?s?t.push.apply(t,g):t.push(a):i.push({documentOrder:o,tabIndex:p,item:r,isScope:s,content:g})}),i.sort(rue).reduce(function(r,o){return o.isScope?r.push.apply(r,o.content):r.push(o.content),rLine truncated
*/var zG=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],l2=zG.join(","),jG=typeof Element>"u",py=jG?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,u2=!jG&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n?.ownerDocument},A2=function n(e,t){var i;t===void 0&&(t=!0);var r=e==null||(i=e.getAttribute)===null||i===void 0?void 0:i.call(e,"inert"),o=r===""||r==="true",s=o||t&&e&&n(e.parentNode);return s},nue=function(e){var t,i=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return i===""||i==="true"},NG=function(e,t,i){if(A2(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(l2));return t&&py.call(e,l2)&&r.unshift(e),r=r.filter(i),r},GG=function n(e,t,i){for(var r=[],o=Array.from(e);o.length;){var s=o.shift();if(!A2(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),p=a.length?a:s.children,g=n(p,!0,i);i.flatten?r.push.apply(r,g):r.push({scopeParent:s,candidates:g})}else{var _=py.call(s,l2);_&&i.filter(s)&&(t||!e.includes(s))&&r.push(s);var E=s.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(s),O=!A2(E,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(s));if(E&&O){var B=n(E===!0?s.children:E.children,!0,i);i.flatten?r.push.apply(r,B):r.push({scopeParent:s,candidates:B})}else o.unshift.apply(o,s.children)}}return r},WG=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},zg=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||nue(e))&&!WG(e)?0:e.tabIndex},iue=function(e,t){var i=zg(e);return i<0&&t&&!WG(e)?0:i},rue=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},QG=function(e){return e.tagName==="INPUT"},oue=function(e){return QG(e)&&e.type==="hidden"},aue=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(i){return i.tagName==="SUMMARY"});return t},sue=function(e,t){for(var i=0;i<e.length;i++)if(e[i].checked&&e[i].form===t)return e[i]},lue=function(e){if(!e.name)return!0;var t=e.form||u2(e),i=function(a){return t.querySelectorAll('input[type="radio"][name="'+a+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=i(window.CSS.escape(e.name));else try{r=i(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var o=sue(r,e.form);return!o||o===e},uue=function(e){return QG(e)&&e.type==="radio"},Aue=function(e){return uue(e)&&!lue(e)},cue=function(e){var t,i=e&&u2(e),r=(t=i)===null||t===void 0?void 0:t.host,o=!1;if(i&&i!==e){var s,a,p;for(o=!!((s=r)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(r)||e!=null&&(p=e.ownerDocument)!==null&&p!==void 0&&p.contains(e));!o&&r;){var g,_,E;i=u2(r),r=(g=i)===null||g===void 0?void 0:g.host,o=!!((_=r)!==null&&_!==void 0&&(E=_.ownerDocument)!==null&&E!==void 0&&E.contains(r))}}return o},tD=function(e){var t=e.getBoundingClientRect(),i=t.width,r=t.height;return i===0&&r===0},hue=function(e,t){var i=t.displayCheck,r=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var o=py.call(e,"details>summary:first-of-type"),s=o?e.parentElement:e;if(py.call(s,"details:not([open]) *"))return!0;if(!i||i==="full"||i==="legacy-full"){if(typeof r=="function"){for(var a=e;e;){var p=e.parentElement,g=u2(e);if(p&&!p.shadowRoot&&r(p)===!0)return tD(e);e.assignedSlot?e=e.assignedSlot:!p&&g!==e.ownerDocument?e=g.host:e=p}e=a}if(cue(e))return!e.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-area")return tD(e);return!1},due=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var i=0;i<t.children.length;i++){var r=t.children.item(i);if(r.tagName==="LEGEND")return py.call(t,"fieldset[disabled] *")?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},c2=function(e,t){return!(t.disabled||A2(t)||oue(t)||hue(t,e)||aue(t)||due(t))},_O=function(e,t){return!(Aue(t)||zg(t)<0||!c2(e,t))},fue=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},pue=function n(e){var t=[],i=[];return e.forEach(function(r,o){var s=!!r.scopeParent,a=s?r.scopeParent:r,p=iue(a,s),g=s?n(r.candidates):a;p===0?s?t.push.apply(t,g):t.push(a):i.push({documentOrder:o,tabIndex:p,item:r,isScope:s,content:g})}),i.sort(rue).reduce(function(r,o){return o.isScope?r.push.apply(r,o.content):r.push(o.content),rLine truncated
* focus-trap 7.5.4
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*/function nD(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function iD(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?nD(Object(t),!0).forEach(function(i){yue(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):nD(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function yue(n,e,t){return e=Cue(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function vue(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var i=t.call(n,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Cue(n){var e=vue(n,"string");return typeof e=="symbol"?e:String(e)}var rD={activateTrap:function(e,t){if(e.length>0){var i=e[e.length-1];i!==t&&i.pause()}var r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var i=e.indexOf(t);i!==-1&&e.splice(i,1),e.length>0&&e[e.length-1].unpause()}},_ue=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},bue=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},F_=function(e){return e?.key==="Tab"||e?.keyCode===9},xue=function(e){return F_(e)&&!e.shiftKey},Mue=function(e){return F_(e)&&e.shiftKey},oD=function(e){return setTimeout(e,0)},aD=function(e,t){var i=-1;return e.every(function(r,o){return t(r)?(i=o,!1):!0}),i},XC=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return typeof e=="function"?e.apply(void 0,i):e},Gx=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},wue=[],Sue=function(e,t){var i=t?.document||document,r=t?.trapStack||wue,o=iD({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:xue,isKeyBackward:Mue},t),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a,p=function(Me,be,ze){return Me&&Me[be]!==void 0?Me[be]:o[ze||be]},g=function(Me,be){var ze=typeof be?.composedPath=="function"?be.composedPath():void 0;return s.containerGroups.findIndex(function(Ce){var Fe=Ce.container,ot=Ce.tabbableNodes;return Fe.contains(Me)||ze?.includes(Fe)||ot.find(function(mt){return mt===Me})})},_=function(Me){var be=o[Me];if(typeof be=="function"){for(var ze=arguments.length,Ce=new Array(ze>1?ze-1:0),Fe=1;Fe<ze;Fe++)Ce[Fe-1]=arguments[Fe];be=be.apply(void 0,Ce)}if(be===!0&&(be=void 0),!be){if(be===void 0||be===!1)return be;throw new Error("`".concat(Me,"` was specified but was not a node, or did not return a node"))}var ot=be;if(typeof be=="string"&&(ot=i.querySelector(be),!ot))throw new Error("`".concat(Me,"` as selector refers to no known node"));return ot},E=function(){var Me=_("initialFocus");if(Me===!1)return!1;if(Me===void 0||!f3(Me,o.tabbableOptions))if(g(i.activeElement)>=0)Me=i.activeElement;else{var be=s.tabbableGroups[0],ze=be&&be.firstTabbableNode;Me=ze||_("fallbackFocus")}if(!Me)throw new Error("Your focus-trap needs to have at least one focusable element");return Me},O=function(){if(s.containerGroups=s.containers.map(function(Me){var be=YG(Me,o.tabbableOptions),ze=qG(Me,o.tabbableOptions),Ce=be.length>0?be[0]:void 0,Fe=be.length>0?be[be.length-1]:void 0,ot=ze.find(function(ue){return G1(ue)}),mt=ze.slice().reverse().find(function(ue){return G1(ue)}),it=!!be.find(function(ue){return zg(ue)>0});return{container:Me,tabbableNodes:be,focusableNodes:ze,posTabIndexesFound:it,firstTabbableNode:Ce,lastTabbableNode:Fe,firstDomTabbableNode:ot,lastDomTabbableNode:mt,nextTabbableNode:function(We){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,ke=be.indexOf(We);return ke<0?tt?ze.slice(ze.indexOf(We)+1).find(function(Et){return G1(Et)}):ze.slice(0,ze.indexOf(We)).reverse().find(function(Et){return G1(Et)}):be[ke+(tt?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(Me){return Me.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!_("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find(function(Me){return Me.posTabIndexesFound})&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},B=function _e(Me){var be=Me.activeElement;if(be)return be.shadowRoot&&be.shadowRoot.activeElement!==null?_e(be.shadowRoot):be},z=function _e(Me){if(Me!==!1&&Me!==B(document)){if(!Me||!Me.focus)Line truncated
`,g="/",_="*",E="",O="comment",B="declaration";M5=function(N,Q){if(typeof N!="string")throw new TypeError("First argument must be a string");if(!N)return[];Q=Q||{};var $=1,X=1;function re(be){var ze=be.match(e);ze&&($+=ze.length);var Ce=be.lastIndexOf(p);X=~Ce?be.length-Ce:X+be.length}function ne(){var be={line:$,column:X};return function(ze){return ze.position=new V(be),he(),ze}}function V(be){this.start=be,this.end={line:$,column:X},this.source=Q.source}V.prototype.content=N;function J(be){var ze=new Error(Q.source+":"+$+":"+X+": "+be);if(ze.reason=be,ze.filename=Q.source,ze.line=$,ze.column=X,ze.source=N,!Q.silent)throw ze}function W(be){var ze=be.exec(N);if(ze){var Ce=ze[0];return re(Ce),N=N.slice(Ce.length),ze}}function he(){W(t)}function ge(be){var ze;for(be=be||[];ze=ve();)ze!==!1&&be.push(ze);return be}function ve(){var be=ne();if(!(g!=N.charAt(0)||_!=N.charAt(1))){for(var ze=2;E!=N.charAt(ze)&&(_!=N.charAt(ze)||g!=N.charAt(ze+1));)++ze;if(ze+=2,E===N.charAt(ze-1))return J("End of comment missing");var Ce=N.slice(2,ze-2);return X+=2,re(Ce),N=N.slice(ze),X+=2,be({type:O,comment:Ce})}}function _e(){var be=ne(),ze=W(i);if(ze){if(ve(),!W(r))return J("property missing ':'");var Ce=W(o),Fe=be({type:B,property:z(ze[0].replace(n,E)),value:Ce?z(Ce[0].replace(n,E)):E});return W(s),Fe}}function Me(){var be=[];ge(be);for(var ze;ze=_e();)ze!==!1&&(be.push(ze),ge(be));return be}return he(),Me()};function z(N){return N?N.replace(a,E):E}return M5}var pD;function eAe(){if(pD)return av;pD=1;var n=av&&av.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(av,"__esModule",{value:!0}),av.default=t;var e=n(Jue());function t(i,r){var o=null;if(!i||typeof i!="string")return o;var s=(0,e.default)(i),a=typeof r=="function";return s.forEach(function(p){if(p.type==="declaration"){var g=p.property,_=p.value;a?r(g,_,p):_&&(o=o||{},o[g]=_)}}),o}return av}var JC={},mD;function tAe(){if(mD)return JC;mD=1,Object.defineProperty(JC,"__esModule",{value:!0}),JC.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,t=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,o=function(g){return!g||t.test(g)||n.test(g)},s=function(g,_){return _.toUpperCase()},a=function(g,_){return"".concat(_,"-")},p=function(g,_){return _===void 0&&(_={}),o(g)?g:(g=g.toLowerCase(),_.reactCompat?g=g.replace(r,a):g=g.replace(i,a),g.replace(e,s))};return JC.camelCase=p,JC}var e_,gD;function nAe(){if(gD)return e_;gD=1;var n=e_&&e_.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},e=n(eAe()),t=tAe();function i(r,o){var s={};return!r||typeof r!="string"||(0,e.default)(r,function(a,p){a&&p&&(s[(0,t.camelCase)(a,o)]=p)}),s}return i.default=i,e_=i,e_}var iAe=nAe();const rAe=Bu(iAe),tW=nW("end"),T7=nW("start");function nW(n){return e;function e(t){const i=t&&t.position&&t.position[n]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function oAe(n){const e=T7(n),t=tW(n);if(e&&t)return{start:e,end:t}}function z_(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?yD(n.position):"start"in n||"end"in n?yD(n):"line"in n||"column"in n?wO(n):""}function wO(n){return vD(n&&n.line)+":"+vD(n&&n.column)}function yD(n){return wO(n&&n.start)+"-"+wO(n&&n.end)}function vD(n){return n&&typeof n=="number"?n:1}class Vh extends Error{constructor(e,t,i){super(),typeof t=="string"&&(i=t,t=void 0);let r="",o={},s=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof e=="string"?r=e:!o.cause&&e&&(s=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&typeof i=="string"){const p=i.indexOf(":");p===-1?o.ruleId=i:(o.source=i.slice(0,p),o.ruleId=i.slice(p+1))}if(!o.place&&o.ancestors&&o.ancestors){const p=o.ancestors[o.ancestors.length-1];p&&(o.place=p.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=z_(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Vh.prototype.file="";Vh.prototype.name="";Vh.prototype.reason="";Vh.prototype.message="";Vh.prototype.stack="";Vh.prototype.column=void 0;Vh.prototype.line=void 0;Vh.prototype.ancestors=void 0;Vh.prototype.cause=void 0;Vh.prototype.fatal=void 0;Vh.prototype.place=void 0;Vh.prototype.ruleId=void 0;Vh.prototype.source=void 0;const k7={}.hasOwnProperty,aAe=new Map,sAe=/[A-Z]/g,lAe=new Set(["table","tbody","thead","tfoot","tr"]),uAe=new Set(["td","th"]),iW="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function AAe(n,e){if(!e||e.Fragment===void 0)throw new Line truncated
*/function nD(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function iD(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?nD(Object(t),!0).forEach(function(i){yue(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):nD(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function yue(n,e,t){return e=Cue(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function vue(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var i=t.call(n,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Cue(n){var e=vue(n,"string");return typeof e=="symbol"?e:String(e)}var rD={activateTrap:function(e,t){if(e.length>0){var i=e[e.length-1];i!==t&&i.pause()}var r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var i=e.indexOf(t);i!==-1&&e.splice(i,1),e.length>0&&e[e.length-1].unpause()}},_ue=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},bue=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},F_=function(e){return e?.key==="Tab"||e?.keyCode===9},xue=function(e){return F_(e)&&!e.shiftKey},Mue=function(e){return F_(e)&&e.shiftKey},oD=function(e){return setTimeout(e,0)},aD=function(e,t){var i=-1;return e.every(function(r,o){return t(r)?(i=o,!1):!0}),i},XC=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return typeof e=="function"?e.apply(void 0,i):e},Wx=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},wue=[],Sue=function(e,t){var i=t?.document||document,r=t?.trapStack||wue,o=iD({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:xue,isKeyBackward:Mue},t),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a,p=function(Me,be,ze){return Me&&Me[be]!==void 0?Me[be]:o[ze||be]},g=function(Me,be){var ze=typeof be?.composedPath=="function"?be.composedPath():void 0;return s.containerGroups.findIndex(function(Ce){var Fe=Ce.container,ot=Ce.tabbableNodes;return Fe.contains(Me)||ze?.includes(Fe)||ot.find(function(mt){return mt===Me})})},_=function(Me){var be=o[Me];if(typeof be=="function"){for(var ze=arguments.length,Ce=new Array(ze>1?ze-1:0),Fe=1;Fe<ze;Fe++)Ce[Fe-1]=arguments[Fe];be=be.apply(void 0,Ce)}if(be===!0&&(be=void 0),!be){if(be===void 0||be===!1)return be;throw new Error("`".concat(Me,"` was specified but was not a node, or did not return a node"))}var ot=be;if(typeof be=="string"&&(ot=i.querySelector(be),!ot))throw new Error("`".concat(Me,"` as selector refers to no known node"));return ot},E=function(){var Me=_("initialFocus");if(Me===!1)return!1;if(Me===void 0||!p3(Me,o.tabbableOptions))if(g(i.activeElement)>=0)Me=i.activeElement;else{var be=s.tabbableGroups[0],ze=be&&be.firstTabbableNode;Me=ze||_("fallbackFocus")}if(!Me)throw new Error("Your focus-trap needs to have at least one focusable element");return Me},O=function(){if(s.containerGroups=s.containers.map(function(Me){var be=YG(Me,o.tabbableOptions),ze=qG(Me,o.tabbableOptions),Ce=be.length>0?be[0]:void 0,Fe=be.length>0?be[be.length-1]:void 0,ot=ze.find(function(ue){return G1(ue)}),mt=ze.slice().reverse().find(function(ue){return G1(ue)}),it=!!be.find(function(ue){return zg(ue)>0});return{container:Me,tabbableNodes:be,focusableNodes:ze,posTabIndexesFound:it,firstTabbableNode:Ce,lastTabbableNode:Fe,firstDomTabbableNode:ot,lastDomTabbableNode:mt,nextTabbableNode:function(We){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,ke=be.indexOf(We);return ke<0?tt?ze.slice(ze.indexOf(We)+1).find(function(Et){return G1(Et)}):ze.slice(0,ze.indexOf(We)).reverse().find(function(Et){return G1(Et)}):be[ke+(tt?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(Me){return Me.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!_("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find(function(Me){return Me.posTabIndexesFound})&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},B=function _e(Me){var be=Me.activeElement;if(be)return be.shadowRoot&&be.shadowRoot.activeElement!==null?_e(be.shadowRoot):be},z=function _e(Me){if(Me!==!1&&Me!==B(document)){if(!Me||!Me.focus)Line truncated
`,g="/",_="*",E="",O="comment",B="declaration";MM=function(N,Q){if(typeof N!="string")throw new TypeError("First argument must be a string");if(!N)return[];Q=Q||{};var $=1,X=1;function re(be){var ze=be.match(e);ze&&($+=ze.length);var Ce=be.lastIndexOf(p);X=~Ce?be.length-Ce:X+be.length}function ne(){var be={line:$,column:X};return function(ze){return ze.position=new V(be),he(),ze}}function V(be){this.start=be,this.end={line:$,column:X},this.source=Q.source}V.prototype.content=N;function J(be){var ze=new Error(Q.source+":"+$+":"+X+": "+be);if(ze.reason=be,ze.filename=Q.source,ze.line=$,ze.column=X,ze.source=N,!Q.silent)throw ze}function W(be){var ze=be.exec(N);if(ze){var Ce=ze[0];return re(Ce),N=N.slice(Ce.length),ze}}function he(){W(t)}function ge(be){var ze;for(be=be||[];ze=ve();)ze!==!1&&be.push(ze);return be}function ve(){var be=ne();if(!(g!=N.charAt(0)||_!=N.charAt(1))){for(var ze=2;E!=N.charAt(ze)&&(_!=N.charAt(ze)||g!=N.charAt(ze+1));)++ze;if(ze+=2,E===N.charAt(ze-1))return J("End of comment missing");var Ce=N.slice(2,ze-2);return X+=2,re(Ce),N=N.slice(ze),X+=2,be({type:O,comment:Ce})}}function _e(){var be=ne(),ze=W(i);if(ze){if(ve(),!W(r))return J("property missing ':'");var Ce=W(o),Fe=be({type:B,property:z(ze[0].replace(n,E)),value:Ce?z(Ce[0].replace(n,E)):E});return W(s),Fe}}function Me(){var be=[];ge(be);for(var ze;ze=_e();)ze!==!1&&(be.push(ze),ge(be));return be}return he(),Me()};function z(N){return N?N.replace(a,E):E}return MM}var pD;function eAe(){if(pD)return av;pD=1;var n=av&&av.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(av,"__esModule",{value:!0}),av.default=t;var e=n(Jue());function t(i,r){var o=null;if(!i||typeof i!="string")return o;var s=(0,e.default)(i),a=typeof r=="function";return s.forEach(function(p){if(p.type==="declaration"){var g=p.property,_=p.value;a?r(g,_,p):_&&(o=o||{},o[g]=_)}}),o}return av}var JC={},mD;function tAe(){if(mD)return JC;mD=1,Object.defineProperty(JC,"__esModule",{value:!0}),JC.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,t=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,o=function(g){return!g||t.test(g)||n.test(g)},s=function(g,_){return _.toUpperCase()},a=function(g,_){return"".concat(_,"-")},p=function(g,_){return _===void 0&&(_={}),o(g)?g:(g=g.toLowerCase(),_.reactCompat?g=g.replace(r,a):g=g.replace(i,a),g.replace(e,s))};return JC.camelCase=p,JC}var e_,gD;function nAe(){if(gD)return e_;gD=1;var n=e_&&e_.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},e=n(eAe()),t=tAe();function i(r,o){var s={};return!r||typeof r!="string"||(0,e.default)(r,function(a,p){a&&p&&(s[(0,t.camelCase)(a,o)]=p)}),s}return i.default=i,e_=i,e_}var iAe=nAe();const rAe=Bu(iAe),tW=nW("end"),T7=nW("start");function nW(n){return e;function e(t){const i=t&&t.position&&t.position[n]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function oAe(n){const e=T7(n),t=tW(n);if(e&&t)return{start:e,end:t}}function z_(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?yD(n.position):"start"in n||"end"in n?yD(n):"line"in n||"column"in n?wO(n):""}function wO(n){return vD(n&&n.line)+":"+vD(n&&n.column)}function yD(n){return wO(n&&n.start)+"-"+wO(n&&n.end)}function vD(n){return n&&typeof n=="number"?n:1}class Vh extends Error{constructor(e,t,i){super(),typeof t=="string"&&(i=t,t=void 0);let r="",o={},s=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof e=="string"?r=e:!o.cause&&e&&(s=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&typeof i=="string"){const p=i.indexOf(":");p===-1?o.ruleId=i:(o.source=i.slice(0,p),o.ruleId=i.slice(p+1))}if(!o.place&&o.ancestors&&o.ancestors){const p=o.ancestors[o.ancestors.length-1];p&&(o.place=p.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=z_(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Vh.prototype.file="";Vh.prototype.name="";Vh.prototype.reason="";Vh.prototype.message="";Vh.prototype.stack="";Vh.prototype.column=void 0;Vh.prototype.line=void 0;Vh.prototype.ancestors=void 0;Vh.prototype.cause=void 0;Vh.prototype.fatal=void 0;Vh.prototype.place=void 0;Vh.prototype.ruleId=void 0;Vh.prototype.source=void 0;const k7={}.hasOwnProperty,aAe=new Map,sAe=/[A-Z]/g,lAe=new Set(["table","tbody","thead","tfoot","tr"]),uAe=new Set(["td","th"]),iW="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function AAe(n,e){if(!e||e.Fragment===void 0)throw new Line truncated
`;break}case-3:{s=`\r
`;break}case-2:{s=e?" ":" ";break}case-1:{if(!e&&r)continue;s=" ";break}default:s=String.fromCharCode(o)}r=o===-2,i.push(s)}return i.join("")}function bhe(n){const i={constructs:OAe([yhe,...(n||{}).extensions||[]]),content:r(UAe),defined:[],document:r(FAe),flow:r(ihe),lazy:{},string:r(ahe),text:r(she)};return i;function r(o){return s;function s(a){return vhe(i,o,a)}}}function xhe(n){for(;!hW(n););return n}const ID=/[\0\t\n\r]/g;function Mhe(){let n=1,e="",t=!0,i;return r;function r(o,s,a){const p=[];let g,_,E,O,B;for(o=e+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),E=0,e="",t&&(o.charCodeAt(0)===65279&&E++,t=void 0);E<o.length;){if(ID.lastIndex=E,g=ID.exec(o),O=g&&g.index!==void 0?g.index:o.length,B=o.charCodeAt(O),!g){e=o.slice(E);break}if(B===10&&E===O&&i)p.push(-3),i=void 0;else switch(i&&(p.push(-5),i=void 0),E<O&&(p.push(o.slice(E,O)),n+=O-E),B){case 0:{p.push(65533),n++;break}case 9:{for(_=Math.ceil(n/4)*4,p.push(-2);n++<_;)p.push(-1);break}case 10:{p.push(-4),n=1;break}default:i=!0,n=1}E=O+1}return a&&(i&&p.push(-5),e&&p.push(e),p.push(null)),p}}const whe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function She(n){return n.replace(whe,Ehe)}function Ehe(n,e,t){if(e)return e;if(t.charCodeAt(0)===35){const r=t.charCodeAt(1),o=r===120||r===88;return lW(t.slice(o?2:1),o?16:10)}return P7(t)||n}const yW={}.hasOwnProperty;function Bhe(n,e,t){return typeof e!="string"&&(t=e,e=void 0),Ohe(t)(xhe(bhe(t).document().write(Mhe()(n,e,!0))))}function Ohe(n){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Wt),autolinkProtocol:ge,autolinkEmail:ge,atxHeading:o(Yt),blockQuote:o(Ke),characterEscape:ge,characterReference:ge,codeFenced:o(Ve),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(Ve,s),codeText:o(bt,s),codeTextData:ge,data:ge,codeFlowValue:ge,definition:o(vt),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(It),hardBreakEscape:o(Kt),hardBreakTrailing:o(Kt),htmlFlow:o(on,s),htmlFlowData:ge,htmlText:o(on,s),htmlTextData:ge,image:o(Hn),label:s,link:o(Wt),listItem:o(On),listItemValue:O,listOrdered:o(Gn,E),listUnordered:o(Gn),paragraph:o(Bn),reference:ke,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Yt),strong:o(Tn),thematicBreak:o(Vn)},exit:{atxHeading:p(),atxHeadingSequence:V,autolink:p(),autolinkEmail:Ue,autolinkProtocol:je,blockQuote:p(),characterEscapeValue:ve,characterReferenceMarkerHexadecimal:gt,characterReferenceMarkerNumeric:gt,characterReferenceValue:xt,characterReference:Ut,codeFenced:p(Q),codeFencedFence:N,codeFencedFenceInfo:B,codeFencedFenceMeta:z,codeFlowValue:ve,codeIndented:p($),codeText:p(Ce),codeTextData:ve,data:ve,definition:p(),definitionDestinationString:ne,definitionLabelString:X,definitionTitleString:re,emphasis:p(),hardBreakEscape:p(Me),hardBreakTrailing:p(Me),htmlFlow:p(be),htmlFlowData:ve,htmlText:p(ze),htmlTextData:ve,image:p(ot),label:it,labelText:mt,lineEnding:_e,link:p(Fe),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:Et,resourceDestinationString:ue,resourceTitleString:We,resource:tt,setextHeading:p(he),setextHeadingLineSequence:W,setextHeadingText:J,strong:p(),thematicBreak:p()}};vW(e,(n||{}).mdastExtensions||[]);const t={};return i;function i(Lt){let De={type:"root",children:[]};const de={stack:[De],tokenStack:[],config:e,enter:a,exit:g,buffer:s,resume:_,data:t},oe=[];let le=-1;for(;++le<Lt.length;)if(Lt[le][1].type==="listOrdered"||Lt[le][1].type==="listUnordered")if(Lt[le][0]==="enter")oe.push(le);else{const me=oe.pop();le=r(Lt,me,le)}for(le=-1;++le<Lt.length;){const me=e[Lt[le][0]];yW.call(me,Lt[le][1].type)&&me[Lt[le][1].type].call(Object.assign({sliceSerialize:Lt[le][2].sliceSerialize},de),Lt[le][1])}if(de.tokenStack.length>0){const me=de.tokenStack[de.tokenStack.length-1];(me[1]||TD).call(de,void 0,me[0])}for(De.position={start:Dg(Lt.length>0?Lt[0][1].start:{line:1,column:1,offset:0}),end:Dg(Lt.length>0?Lt[Lt.length-2][1].end:{line:1,column:1,offset:0})},le=-1;++le<e.transforms.length;)De=e.transforms[le](De)||De;return De}function r(Lt,De,de){let oe=De-1,le=-1,me=!1,Ie,Qe,At,He;for(;++oe<=de;){const Re=Lt[oe];switch(Re[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Re[0]==="enter"?le++:le--,He=void 0;break}case"lineEndingBlank":{Re[0]==="enter"&&(Ie&&!He&&!le&&!At&&(At=oe),He=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:He=void 0}if(!le&&Re[0]==="enter"&&Re[1].type==="listItemPrefix"||le===-1&&Re[0]==="exit"&&(Re[1].type==="listUnordered"||Re[1].type==="listOrdered")){if(Ie){let Ze=oe;for(Qe=void 0;Ze--;){const y=Lt[Ze];if(y[1].type==="lineEnding"||y[1].type==="lineEndingBlank"){if(y[0]==="exit")continue;Qe&&(Lt[Qe][1].type="lineEndingBlank",me=!0),y[1].type="lineEnding",Qe=Ze}else if(!(y[1].type==="linePrefix"||y[1].type==="blockQuotePrefiLine truncated
`;break}case-2:{s=e?" ":" ";break}case-1:{if(!e&&r)continue;s=" ";break}default:s=String.fromCharCode(o)}r=o===-2,i.push(s)}return i.join("")}function bhe(n){const i={constructs:OAe([yhe,...(n||{}).extensions||[]]),content:r(KAe),defined:[],document:r(FAe),flow:r(ihe),lazy:{},string:r(ahe),text:r(she)};return i;function r(o){return s;function s(a){return vhe(i,o,a)}}}function xhe(n){for(;!hW(n););return n}const ID=/[\0\t\n\r]/g;function Mhe(){let n=1,e="",t=!0,i;return r;function r(o,s,a){const p=[];let g,_,E,O,B;for(o=e+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),E=0,e="",t&&(o.charCodeAt(0)===65279&&E++,t=void 0);E<o.length;){if(ID.lastIndex=E,g=ID.exec(o),O=g&&g.index!==void 0?g.index:o.length,B=o.charCodeAt(O),!g){e=o.slice(E);break}if(B===10&&E===O&&i)p.push(-3),i=void 0;else switch(i&&(p.push(-5),i=void 0),E<O&&(p.push(o.slice(E,O)),n+=O-E),B){case 0:{p.push(65533),n++;break}case 9:{for(_=Math.ceil(n/4)*4,p.push(-2);n++<_;)p.push(-1);break}case 10:{p.push(-4),n=1;break}default:i=!0,n=1}E=O+1}return a&&(i&&p.push(-5),e&&p.push(e),p.push(null)),p}}const whe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function She(n){return n.replace(whe,Ehe)}function Ehe(n,e,t){if(e)return e;if(t.charCodeAt(0)===35){const r=t.charCodeAt(1),o=r===120||r===88;return lW(t.slice(o?2:1),o?16:10)}return P7(t)||n}const yW={}.hasOwnProperty;function Bhe(n,e,t){return typeof e!="string"&&(t=e,e=void 0),Ohe(t)(xhe(bhe(t).document().write(Mhe()(n,e,!0))))}function Ohe(n){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Wt),autolinkProtocol:ge,autolinkEmail:ge,atxHeading:o(Yt),blockQuote:o(Ue),characterEscape:ge,characterReference:ge,codeFenced:o(Ve),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(Ve,s),codeText:o(bt,s),codeTextData:ge,data:ge,codeFlowValue:ge,definition:o(vt),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(It),hardBreakEscape:o(Ut),hardBreakTrailing:o(Ut),htmlFlow:o(on,s),htmlFlowData:ge,htmlText:o(on,s),htmlTextData:ge,image:o(Hn),label:s,link:o(Wt),listItem:o(On),listItemValue:O,listOrdered:o(Gn,E),listUnordered:o(Gn),paragraph:o(Bn),reference:ke,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Yt),strong:o(Tn),thematicBreak:o(Vn)},exit:{atxHeading:p(),atxHeadingSequence:V,autolink:p(),autolinkEmail:Ke,autolinkProtocol:je,blockQuote:p(),characterEscapeValue:ve,characterReferenceMarkerHexadecimal:gt,characterReferenceMarkerNumeric:gt,characterReferenceValue:xt,characterReference:Kt,codeFenced:p(Q),codeFencedFence:N,codeFencedFenceInfo:B,codeFencedFenceMeta:z,codeFlowValue:ve,codeIndented:p($),codeText:p(Ce),codeTextData:ve,data:ve,definition:p(),definitionDestinationString:ne,definitionLabelString:X,definitionTitleString:re,emphasis:p(),hardBreakEscape:p(Me),hardBreakTrailing:p(Me),htmlFlow:p(be),htmlFlowData:ve,htmlText:p(ze),htmlTextData:ve,image:p(ot),label:it,labelText:mt,lineEnding:_e,link:p(Fe),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:Et,resourceDestinationString:ue,resourceTitleString:We,resource:tt,setextHeading:p(he),setextHeadingLineSequence:W,setextHeadingText:J,strong:p(),thematicBreak:p()}};vW(e,(n||{}).mdastExtensions||[]);const t={};return i;function i(Lt){let De={type:"root",children:[]};const de={stack:[De],tokenStack:[],config:e,enter:a,exit:g,buffer:s,resume:_,data:t},oe=[];let le=-1;for(;++le<Lt.length;)if(Lt[le][1].type==="listOrdered"||Lt[le][1].type==="listUnordered")if(Lt[le][0]==="enter")oe.push(le);else{const me=oe.pop();le=r(Lt,me,le)}for(le=-1;++le<Lt.length;){const me=e[Lt[le][0]];yW.call(me,Lt[le][1].type)&&me[Lt[le][1].type].call(Object.assign({sliceSerialize:Lt[le][2].sliceSerialize},de),Lt[le][1])}if(de.tokenStack.length>0){const me=de.tokenStack[de.tokenStack.length-1];(me[1]||TD).call(de,void 0,me[0])}for(De.position={start:Dg(Lt.length>0?Lt[0][1].start:{line:1,column:1,offset:0}),end:Dg(Lt.length>0?Lt[Lt.length-2][1].end:{line:1,column:1,offset:0})},le=-1;++le<e.transforms.length;)De=e.transforms[le](De)||De;return De}function r(Lt,De,de){let oe=De-1,le=-1,me=!1,Ie,Qe,At,He;for(;++oe<=de;){const Re=Lt[oe];switch(Re[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Re[0]==="enter"?le++:le--,He=void 0;break}case"lineEndingBlank":{Re[0]==="enter"&&(Ie&&!He&&!le&&!At&&(At=oe),He=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:He=void 0}if(!le&&Re[0]==="enter"&&Re[1].type==="listItemPrefix"||le===-1&&Re[0]==="exit"&&(Re[1].type==="listUnordered"||Re[1].type==="listOrdered")){if(Ie){let Ze=oe;for(Qe=void 0;Ze--;){const y=Lt[Ze];if(y[1].type==="lineEnding"||y[1].type==="lineEndingBlank"){if(y[0]==="exit")continue;Qe&&(Lt[Qe][1].type="lineEndingBlank",me=!0),y[1].type="lineEnding",Qe=Ze}else if(!(y[1].type==="linePrefix"||y[1].type==="blockQuotePrefiLine truncated
`}]}function Rhe(n,e){const t=e.value?e.value+`
`:"",i={};e.lang&&(i.className=["language-"+e.lang]);let r={type:"element",tagName:"code",properties:i,children:[{type:"text",value:t}]};return e.meta&&(r.data={meta:e.meta}),n.patch(e,r),r=n.applyData(e,r),r={type:"element",tagName:"pre",properties:{},children:[r]},n.patch(e,r),r}function Phe(n,e){const t={type:"element",tagName:"del",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function Khe(n,e){const t={type:"element",tagName:"em",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function Uhe(n,e){const t=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",i=String(e.identifier).toUpperCase(),r=EC(i.toLowerCase()),o=n.footnoteOrder.indexOf(i);let s,a=n.footnoteCounts.get(i);a===void 0?(a=0,n.footnoteOrder.push(i),s=n.footnoteOrder.length):s=o+1,a+=1,n.footnoteCounts.set(i,a);const p={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+r,id:t+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};n.patch(e,p);const g={type:"element",tagName:"sup",properties:{},children:[p]};return n.patch(e,g),n.applyData(e,g)}function Lhe(n,e){const t={type:"element",tagName:"h"+e.depth,properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function Fhe(n,e){if(n.options.allowDangerousHtml){const t={type:"raw",value:e.value};return n.patch(e,t),n.applyData(e,t)}}function CW(n,e){const t=e.referenceType;let i="]";if(t==="collapsed"?i+="[]":t==="full"&&(i+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+i}];const r=n.all(e),o=r[0];o&&o.type==="text"?o.value="["+o.value:r.unshift({type:"text",value:"["});const s=r[r.length-1];return s&&s.type==="text"?s.value+=i:r.push({type:"text",value:i}),r}function zhe(n,e){const t=String(e.identifier).toUpperCase(),i=n.definitionById.get(t);if(!i)return CW(n,e);const r={src:EC(i.url||""),alt:e.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"img",properties:r,children:[]};return n.patch(e,o),n.applyData(e,o)}function jhe(n,e){const t={src:EC(e.url)};e.alt!==null&&e.alt!==void 0&&(t.alt=e.alt),e.title!==null&&e.title!==void 0&&(t.title=e.title);const i={type:"element",tagName:"img",properties:t,children:[]};return n.patch(e,i),n.applyData(e,i)}function Nhe(n,e){const t={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};n.patch(e,t);const i={type:"element",tagName:"code",properties:{},children:[t]};return n.patch(e,i),n.applyData(e,i)}function Ghe(n,e){const t=String(e.identifier).toUpperCase(),i=n.definitionById.get(t);if(!i)return CW(n,e);const r={href:EC(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"a",properties:r,children:n.all(e)};return n.patch(e,o),n.applyData(e,o)}function Whe(n,e){const t={href:EC(e.url)};e.title!==null&&e.title!==void 0&&(t.title=e.title);const i={type:"element",tagName:"a",properties:t,children:n.all(e)};return n.patch(e,i),n.applyData(e,i)}function Qhe(n,e,t){const i=n.all(e),r=t?Yhe(t):_W(e),o={},s=[];if(typeof e.checked=="boolean"){const _=i[0];let E;_&&_.type==="element"&&_.tagName==="p"?E=_:(E={type:"element",tagName:"p",properties:{},children:[]},i.unshift(E)),E.children.length>0&&E.children.unshift({type:"text",value:" "}),E.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<i.length;){const _=i[a];(r||a!==0||_.type!=="element"||_.tagName!=="p")&&s.push({type:"text",value:`
`:"",i={};e.lang&&(i.className=["language-"+e.lang]);let r={type:"element",tagName:"code",properties:i,children:[{type:"text",value:t}]};return e.meta&&(r.data={meta:e.meta}),n.patch(e,r),r=n.applyData(e,r),r={type:"element",tagName:"pre",properties:{},children:[r]},n.patch(e,r),r}function Phe(n,e){const t={type:"element",tagName:"del",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function Uhe(n,e){const t={type:"element",tagName:"em",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function Khe(n,e){const t=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",i=String(e.identifier).toUpperCase(),r=EC(i.toLowerCase()),o=n.footnoteOrder.indexOf(i);let s,a=n.footnoteCounts.get(i);a===void 0?(a=0,n.footnoteOrder.push(i),s=n.footnoteOrder.length):s=o+1,a+=1,n.footnoteCounts.set(i,a);const p={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+r,id:t+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};n.patch(e,p);const g={type:"element",tagName:"sup",properties:{},children:[p]};return n.patch(e,g),n.applyData(e,g)}function Lhe(n,e){const t={type:"element",tagName:"h"+e.depth,properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function Fhe(n,e){if(n.options.allowDangerousHtml){const t={type:"raw",value:e.value};return n.patch(e,t),n.applyData(e,t)}}function CW(n,e){const t=e.referenceType;let i="]";if(t==="collapsed"?i+="[]":t==="full"&&(i+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+i}];const r=n.all(e),o=r[0];o&&o.type==="text"?o.value="["+o.value:r.unshift({type:"text",value:"["});const s=r[r.length-1];return s&&s.type==="text"?s.value+=i:r.push({type:"text",value:i}),r}function zhe(n,e){const t=String(e.identifier).toUpperCase(),i=n.definitionById.get(t);if(!i)return CW(n,e);const r={src:EC(i.url||""),alt:e.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"img",properties:r,children:[]};return n.patch(e,o),n.applyData(e,o)}function jhe(n,e){const t={src:EC(e.url)};e.alt!==null&&e.alt!==void 0&&(t.alt=e.alt),e.title!==null&&e.title!==void 0&&(t.title=e.title);const i={type:"element",tagName:"img",properties:t,children:[]};return n.patch(e,i),n.applyData(e,i)}function Nhe(n,e){const t={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};n.patch(e,t);const i={type:"element",tagName:"code",properties:{},children:[t]};return n.patch(e,i),n.applyData(e,i)}function Ghe(n,e){const t=String(e.identifier).toUpperCase(),i=n.definitionById.get(t);if(!i)return CW(n,e);const r={href:EC(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"a",properties:r,children:n.all(e)};return n.patch(e,o),n.applyData(e,o)}function Whe(n,e){const t={href:EC(e.url)};e.title!==null&&e.title!==void 0&&(t.title=e.title);const i={type:"element",tagName:"a",properties:t,children:n.all(e)};return n.patch(e,i),n.applyData(e,i)}function Qhe(n,e,t){const i=n.all(e),r=t?Yhe(t):_W(e),o={},s=[];if(typeof e.checked=="boolean"){const _=i[0];let E;_&&_.type==="element"&&_.tagName==="p"?E=_:(E={type:"element",tagName:"p",properties:{},children:[]},i.unshift(E)),E.children.length>0&&E.children.unshift({type:"text",value:" "}),E.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<i.length;){const _=i[a];(r||a!==0||_.type!=="element"||_.tagName!=="p")&&s.push({type:"text",value:`
`}),_.type==="element"&&_.tagName==="p"&&!r?s.push(..._.children):s.push(_)}const p=i[i.length-1];p&&(r||p.type!=="element"||p.tagName!=="p")&&s.push({type:"text",value:`
`});const g={type:"element",tagName:"li",properties:o,children:s};return n.patch(e,g),n.applyData(e,g)}function Yhe(n){let e=!1;if(n.type==="list"){e=n.spread||!1;const t=n.children;let i=-1;for(;!e&&++i<t.length;)e=_W(t[i])}return e}function _W(n){const e=n.spread;return e??n.children.length>1}function qhe(n,e){const t={},i=n.all(e);let r=-1;for(typeof e.start=="number"&&e.start!==1&&(t.start=e.start);++r<i.length;){const s=i[r];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const o={type:"element",tagName:e.ordered?"ol":"ul",properties:t,children:n.wrap(i,!0)};return n.patch(e,o),n.applyData(e,o)}function Hhe(n,e){const t={type:"element",tagName:"p",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function Vhe(n,e){const t={type:"root",children:n.wrap(n.all(e))};return n.patch(e,t),n.applyData(e,t)}function $he(n,e){const t={type:"element",tagName:"strong",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function Zhe(n,e){const t=n.all(e),i=t.shift(),r=[];if(i){const s={type:"element",tagName:"thead",properties:{},children:n.wrap([i],!0)};n.patch(e.children[0],s),r.push(s)}if(t.length>0){const s={type:"element",tagName:"tbody",properties:{},children:n.wrap(t,!0)},a=T7(e.children[1]),p=tW(e.children[e.children.length-1]);a&&p&&(s.position={start:a,end:p}),r.push(s)}const o={type:"element",tagName:"table",properties:{},children:n.wrap(r,!0)};return n.patch(e,o),n.applyData(e,o)}function Xhe(n,e,t){const i=t?t.children:void 0,o=(i?i.indexOf(e):1)===0?"th":"td",s=t&&t.type==="table"?t.align:void 0,a=s?s.length:e.children.length;let p=-1;const g=[];for(;++p<a;){const E=e.children[p],O={},B=s?s[p]:void 0;B&&(O.align=B);let z={type:"element",tagName:o,properties:O,children:[]};E&&(z.children=n.all(E),n.patch(E,z),z=n.applyData(E,z)),g.push(z)}const _={type:"element",tagName:"tr",properties:{},children:n.wrap(g,!0)};return n.patch(e,_),n.applyData(e,_)}function Jhe(n,e){const t={type:"element",tagName:"td",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}const kD=9,DD=32;function ede(n){const e=String(n),t=/\r?\n|\r/g;let i=t.exec(e),r=0;const o=[];for(;i;)o.push(RD(e.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=t.exec(e);return o.push(RD(e.slice(r),r>0,!1)),o.join("")}function RD(n,e,t){let i=0,r=n.length;if(e){let o=n.codePointAt(i);for(;o===kD||o===DD;)i++,o=n.codePointAt(i)}if(t){let o=n.codePointAt(r-1);for(;o===kD||o===DD;)r--,o=n.codePointAt(r-1)}return r>i?n.slice(i,r):""}function tde(n,e){const t={type:"text",value:ede(String(e.value))};return n.patch(e,t),n.applyData(e,t)}function nde(n,e){const t={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(e,t),n.applyData(e,t)}const ide={blockquote:khe,break:Dhe,code:Rhe,delete:Phe,emphasis:Khe,footnoteReference:Uhe,heading:Lhe,html:Fhe,imageReference:zhe,image:jhe,inlineCode:Nhe,linkReference:Ghe,link:Whe,listItem:Qhe,list:qhe,paragraph:Hhe,root:Vhe,strong:$he,table:Zhe,tableCell:Jhe,tableRow:Xhe,text:tde,thematicBreak:nde,toml:Wx,yaml:Wx,definition:Wx,footnoteDefinition:Wx};function Wx(){}const bW=-1,C4=0,N_=1,c2=2,L7=3,F7=4,z7=5,j7=6,xW=7,MW=8,PD=typeof self=="object"?self:globalThis,rde=(n,e)=>{const t=(r,o)=>(n.set(o,r),r),i=r=>{if(n.has(r))return n.get(r);const[o,s]=e[r];switch(o){case C4:case bW:return t(s,r);case N_:{const a=t([],r);for(const p of s)a.push(i(p));return a}case c2:{const a=t({},r);for(const[p,g]of s)a[i(p)]=i(g);return a}case L7:return t(new Date(s),r);case F7:{const{source:a,flags:p}=s;return t(new RegExp(a,p),r)}case z7:{const a=t(new Map,r);for(const[p,g]of s)a.set(i(p),i(g));return a}case j7:{const a=t(new Set,r);for(const p of s)a.add(i(p));return a}case xW:{const{name:a,message:p}=s;return t(new PD[a](p),r)}case MW:return t(BigInt(s),r);case"BigInt":return t(Object(BigInt(s)),r);case"ArrayBuffer":return t(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:a}=new Uint8Array(s);return t(new DataView(a),s)}}return t(new PD[o](s),r)};return i},KD=n=>rde(new Map,n)(0),sv="",{toString:ode}={},{keys:ade}=Object,n_=n=>{const e=typeof n;if(e!=="object"||!n)return[C4,e];const t=ode.call(n).slice(8,-1);switch(t){case"Array":return[N_,sv];case"Object":return[c2,sv];case"Date":return[L7,sv];case"RegExp":return[F7,sv];case"Map":return[z7,sv];case"Set":return[j7,sv];case"DataView":return[N_,t]}return t.includes("Array")?[N_,t]:t.includes("Error")?[xW,t]:[c2,t]},Qx=([n,e])=>n===C4&&(e==="function"||e==="symbol"),sde=(n,e,t,i)=>{const r=(s,a)=>{const p=i.push(s)-1;return t.set(a,p),p},o=s=>{if(t.has(s))return t.get(s);let[a,p]=n_(s);switch(a){case C4:{let _=s;switch(p){case"bigint":a=MW,_=s.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+p);_=null;break;case"undefined":return r([bW],s)}return r([a,_],s)}case N_:{if(p){let O=s;return p==="DataView"?O=new Uint8Array(s.buf Line truncated
`});const g={type:"element",tagName:"li",properties:o,children:s};return n.patch(e,g),n.applyData(e,g)}function Yhe(n){let e=!1;if(n.type==="list"){e=n.spread||!1;const t=n.children;let i=-1;for(;!e&&++i<t.length;)e=_W(t[i])}return e}function _W(n){const e=n.spread;return e??n.children.length>1}function qhe(n,e){const t={},i=n.all(e);let r=-1;for(typeof e.start=="number"&&e.start!==1&&(t.start=e.start);++r<i.length;){const s=i[r];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const o={type:"element",tagName:e.ordered?"ol":"ul",properties:t,children:n.wrap(i,!0)};return n.patch(e,o),n.applyData(e,o)}function Hhe(n,e){const t={type:"element",tagName:"p",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function Vhe(n,e){const t={type:"root",children:n.wrap(n.all(e))};return n.patch(e,t),n.applyData(e,t)}function $he(n,e){const t={type:"element",tagName:"strong",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function Zhe(n,e){const t=n.all(e),i=t.shift(),r=[];if(i){const s={type:"element",tagName:"thead",properties:{},children:n.wrap([i],!0)};n.patch(e.children[0],s),r.push(s)}if(t.length>0){const s={type:"element",tagName:"tbody",properties:{},children:n.wrap(t,!0)},a=T7(e.children[1]),p=tW(e.children[e.children.length-1]);a&&p&&(s.position={start:a,end:p}),r.push(s)}const o={type:"element",tagName:"table",properties:{},children:n.wrap(r,!0)};return n.patch(e,o),n.applyData(e,o)}function Xhe(n,e,t){const i=t?t.children:void 0,o=(i?i.indexOf(e):1)===0?"th":"td",s=t&&t.type==="table"?t.align:void 0,a=s?s.length:e.children.length;let p=-1;const g=[];for(;++p<a;){const E=e.children[p],O={},B=s?s[p]:void 0;B&&(O.align=B);let z={type:"element",tagName:o,properties:O,children:[]};E&&(z.children=n.all(E),n.patch(E,z),z=n.applyData(E,z)),g.push(z)}const _={type:"element",tagName:"tr",properties:{},children:n.wrap(g,!0)};return n.patch(e,_),n.applyData(e,_)}function Jhe(n,e){const t={type:"element",tagName:"td",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}const kD=9,DD=32;function ede(n){const e=String(n),t=/\r?\n|\r/g;let i=t.exec(e),r=0;const o=[];for(;i;)o.push(RD(e.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=t.exec(e);return o.push(RD(e.slice(r),r>0,!1)),o.join("")}function RD(n,e,t){let i=0,r=n.length;if(e){let o=n.codePointAt(i);for(;o===kD||o===DD;)i++,o=n.codePointAt(i)}if(t){let o=n.codePointAt(r-1);for(;o===kD||o===DD;)r--,o=n.codePointAt(r-1)}return r>i?n.slice(i,r):""}function tde(n,e){const t={type:"text",value:ede(String(e.value))};return n.patch(e,t),n.applyData(e,t)}function nde(n,e){const t={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(e,t),n.applyData(e,t)}const ide={blockquote:khe,break:Dhe,code:Rhe,delete:Phe,emphasis:Uhe,footnoteReference:Khe,heading:Lhe,html:Fhe,imageReference:zhe,image:jhe,inlineCode:Nhe,linkReference:Ghe,link:Whe,listItem:Qhe,list:qhe,paragraph:Hhe,root:Vhe,strong:$he,table:Zhe,tableCell:Jhe,tableRow:Xhe,text:tde,thematicBreak:nde,toml:Qx,yaml:Qx,definition:Qx,footnoteDefinition:Qx};function Qx(){}const bW=-1,_4=0,N_=1,h2=2,L7=3,F7=4,z7=5,j7=6,xW=7,MW=8,PD=typeof self=="object"?self:globalThis,rde=(n,e)=>{const t=(r,o)=>(n.set(o,r),r),i=r=>{if(n.has(r))return n.get(r);const[o,s]=e[r];switch(o){case _4:case bW:return t(s,r);case N_:{const a=t([],r);for(const p of s)a.push(i(p));return a}case h2:{const a=t({},r);for(const[p,g]of s)a[i(p)]=i(g);return a}case L7:return t(new Date(s),r);case F7:{const{source:a,flags:p}=s;return t(new RegExp(a,p),r)}case z7:{const a=t(new Map,r);for(const[p,g]of s)a.set(i(p),i(g));return a}case j7:{const a=t(new Set,r);for(const p of s)a.add(i(p));return a}case xW:{const{name:a,message:p}=s;return t(new PD[a](p),r)}case MW:return t(BigInt(s),r);case"BigInt":return t(Object(BigInt(s)),r);case"ArrayBuffer":return t(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:a}=new Uint8Array(s);return t(new DataView(a),s)}}return t(new PD[o](s),r)};return i},UD=n=>rde(new Map,n)(0),sv="",{toString:ode}={},{keys:ade}=Object,n_=n=>{const e=typeof n;if(e!=="object"||!n)return[_4,e];const t=ode.call(n).slice(8,-1);switch(t){case"Array":return[N_,sv];case"Object":return[h2,sv];case"Date":return[L7,sv];case"RegExp":return[F7,sv];case"Map":return[z7,sv];case"Set":return[j7,sv];case"DataView":return[N_,t]}return t.includes("Array")?[N_,t]:t.includes("Error")?[xW,t]:[h2,t]},Yx=([n,e])=>n===_4&&(e==="function"||e==="symbol"),sde=(n,e,t,i)=>{const r=(s,a)=>{const p=i.push(s)-1;return t.set(a,p),p},o=s=>{if(t.has(s))return t.get(s);let[a,p]=n_(s);switch(a){case _4:{let _=s;switch(p){case"bigint":a=MW,_=s.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+p);_=null;break;case"undefined":return r([bW],s)}return r([a,_],s)}case N_:{if(p){let O=s;return p==="DataView"?O=new Uint8Array(s.buf Line truncated
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(a,!0)},{type:"text",value:`
`}]}}const wW=function(n){if(n==null)return fde;if(typeof n=="function")return _4(n);if(typeof n=="object")return Array.isArray(n)?cde(n):hde(n);if(typeof n=="string")return dde(n);throw new Error("Expected function, string, or object as test")};function cde(n){const e=[];let t=-1;for(;++t<n.length;)e[t]=wW(n[t]);return _4(i);function i(...r){let o=-1;for(;++o<e.length;)if(e[o].apply(this,r))return!0;return!1}}function hde(n){const e=n;return _4(t);function t(i){const r=i;let o;for(o in n)if(r[o]!==e[o])return!1;return!0}}function dde(n){return _4(e);function e(t){return t&&t.type===n}}function _4(n){return e;function e(t,i,r){return!!(pde(t)&&n.call(this,t,typeof i=="number"?i:void 0,r||void 0))}}function fde(){return!0}function pde(n){return n!==null&&typeof n=="object"&&"type"in n}const SW=[],mde=!0,LD=!1,gde="skip";function yde(n,e,t,i){let r;typeof e=="function"&&typeof t!="function"?(i=t,t=e):r=e;const o=wW(r),s=i?-1:1;a(n,void 0,[])();function a(p,g,_){const E=p&&typeof p=="object"?p:{};if(typeof E.type=="string"){const B=typeof E.tagName=="string"?E.tagName:typeof E.name=="string"?E.name:void 0;Object.defineProperty(O,"name",{value:"node ("+(p.type+(B?"<"+B+">":""))+")"})}return O;function O(){let B=SW,z,N,Q;if((!e||o(p,g,_[_.length-1]||void 0))&&(B=vde(t(p,_)),B[0]===LD))return B;if("children"in p&&p.children){const $=p;if($.children&&B[0]!==gde)for(N=(i?$.children.length:-1)+s,Q=_.concat($);N>-1&&N<$.children.length;){const X=$.children[N];if(z=a(X,N,Q)(),z[0]===LD)return z;N=typeof z[1]=="number"?z[1]:N+s}}return B}}}function vde(n){return Array.isArray(n)?n:typeof n=="number"?[mde,n]:n==null?SW:[n]}function EW(n,e,t,i){let r,o,s;typeof e=="function"&&typeof t!="function"?(o=void 0,s=e,r=t):(o=e,s=t,r=i),yde(n,o,a,r);function a(p,g){const _=g[g.length-1],E=_?_.children.indexOf(p):void 0;return s(p,E,_)}}const OO={}.hasOwnProperty,Cde={};function _de(n,e){const t=e||Cde,i=new Map,r=new Map,o=new Map,s={...ide,...t.handlers},a={all:g,applyData:xde,definitionById:i,footnoteById:r,footnoteCounts:o,footnoteOrder:[],handlers:s,one:p,options:t,patch:bde,wrap:wde};return EW(n,function(_){if(_.type==="definition"||_.type==="footnoteDefinition"){const E=_.type==="definition"?i:r,O=String(_.identifier).toUpperCase();E.has(O)||E.set(O,_)}}),a;function p(_,E){const O=_.type,B=a.handlers[O];if(OO.call(a.handlers,O)&&B)return B(a,_,E);if(a.options.passThrough&&a.options.passThrough.includes(O)){if("children"in _){const{children:N,...Q}=_,$=h2(Q);return $.children=a.all(_),$}return h2(_)}return(a.options.unknownHandler||Mde)(a,_,E)}function g(_){const E=[];if("children"in _){const O=_.children;let B=-1;for(;++B<O.length;){const z=a.one(O[B],_);if(z){if(B&&O[B-1].type==="break"&&(!Array.isArray(z)&&z.type==="text"&&(z.value=FD(z.value)),!Array.isArray(z)&&z.type==="element")){const N=z.children[0];N&&N.type==="text"&&(N.value=FD(N.value))}Array.isArray(z)?E.push(...z):E.push(z)}}}return E}}function bde(n,e){n.position&&(e.position=oAe(n))}function xde(n,e){let t=e;if(n&&n.data){const i=n.data.hName,r=n.data.hChildren,o=n.data.hProperties;if(typeof i=="string")if(t.type==="element")t.tagName=i;else{const s="children"in t?t.children:[t];t={type:"element",tagName:i,properties:{},children:s}}t.type==="element"&&o&&Object.assign(t.properties,h2(o)),"children"in t&&t.children&&r!==null&&r!==void 0&&(t.children=r)}return t}function Mde(n,e){const t=e.data||{},i="value"in e&&!(OO.call(t,"hProperties")||OO.call(t,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:n.all(e)};return n.patch(e,i),n.applyData(e,i)}function wde(n,e){const t=[];let i=-1;for(e&&t.push({type:"text",value:`
`}]}}const wW=function(n){if(n==null)return fde;if(typeof n=="function")return b4(n);if(typeof n=="object")return Array.isArray(n)?cde(n):hde(n);if(typeof n=="string")return dde(n);throw new Error("Expected function, string, or object as test")};function cde(n){const e=[];let t=-1;for(;++t<n.length;)e[t]=wW(n[t]);return b4(i);function i(...r){let o=-1;for(;++o<e.length;)if(e[o].apply(this,r))return!0;return!1}}function hde(n){const e=n;return b4(t);function t(i){const r=i;let o;for(o in n)if(r[o]!==e[o])return!1;return!0}}function dde(n){return b4(e);function e(t){return t&&t.type===n}}function b4(n){return e;function e(t,i,r){return!!(pde(t)&&n.call(this,t,typeof i=="number"?i:void 0,r||void 0))}}function fde(){return!0}function pde(n){return n!==null&&typeof n=="object"&&"type"in n}const SW=[],mde=!0,LD=!1,gde="skip";function yde(n,e,t,i){let r;typeof e=="function"&&typeof t!="function"?(i=t,t=e):r=e;const o=wW(r),s=i?-1:1;a(n,void 0,[])();function a(p,g,_){const E=p&&typeof p=="object"?p:{};if(typeof E.type=="string"){const B=typeof E.tagName=="string"?E.tagName:typeof E.name=="string"?E.name:void 0;Object.defineProperty(O,"name",{value:"node ("+(p.type+(B?"<"+B+">":""))+")"})}return O;function O(){let B=SW,z,N,Q;if((!e||o(p,g,_[_.length-1]||void 0))&&(B=vde(t(p,_)),B[0]===LD))return B;if("children"in p&&p.children){const $=p;if($.children&&B[0]!==gde)for(N=(i?$.children.length:-1)+s,Q=_.concat($);N>-1&&N<$.children.length;){const X=$.children[N];if(z=a(X,N,Q)(),z[0]===LD)return z;N=typeof z[1]=="number"?z[1]:N+s}}return B}}}function vde(n){return Array.isArray(n)?n:typeof n=="number"?[mde,n]:n==null?SW:[n]}function EW(n,e,t,i){let r,o,s;typeof e=="function"&&typeof t!="function"?(o=void 0,s=e,r=t):(o=e,s=t,r=i),yde(n,o,a,r);function a(p,g){const _=g[g.length-1],E=_?_.children.indexOf(p):void 0;return s(p,E,_)}}const OO={}.hasOwnProperty,Cde={};function _de(n,e){const t=e||Cde,i=new Map,r=new Map,o=new Map,s={...ide,...t.handlers},a={all:g,applyData:xde,definitionById:i,footnoteById:r,footnoteCounts:o,footnoteOrder:[],handlers:s,one:p,options:t,patch:bde,wrap:wde};return EW(n,function(_){if(_.type==="definition"||_.type==="footnoteDefinition"){const E=_.type==="definition"?i:r,O=String(_.identifier).toUpperCase();E.has(O)||E.set(O,_)}}),a;function p(_,E){const O=_.type,B=a.handlers[O];if(OO.call(a.handlers,O)&&B)return B(a,_,E);if(a.options.passThrough&&a.options.passThrough.includes(O)){if("children"in _){const{children:N,...Q}=_,$=d2(Q);return $.children=a.all(_),$}return d2(_)}return(a.options.unknownHandler||Mde)(a,_,E)}function g(_){const E=[];if("children"in _){const O=_.children;let B=-1;for(;++B<O.length;){const z=a.one(O[B],_);if(z){if(B&&O[B-1].type==="break"&&(!Array.isArray(z)&&z.type==="text"&&(z.value=FD(z.value)),!Array.isArray(z)&&z.type==="element")){const N=z.children[0];N&&N.type==="text"&&(N.value=FD(N.value))}Array.isArray(z)?E.push(...z):E.push(z)}}}return E}}function bde(n,e){n.position&&(e.position=oAe(n))}function xde(n,e){let t=e;if(n&&n.data){const i=n.data.hName,r=n.data.hChildren,o=n.data.hProperties;if(typeof i=="string")if(t.type==="element")t.tagName=i;else{const s="children"in t?t.children:[t];t={type:"element",tagName:i,properties:{},children:s}}t.type==="element"&&o&&Object.assign(t.properties,d2(o)),"children"in t&&t.children&&r!==null&&r!==void 0&&(t.children=r)}return t}function Mde(n,e){const t=e.data||{},i="value"in e&&!(OO.call(t,"hProperties")||OO.call(t,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:n.all(e)};return n.patch(e,i),n.applyData(e,i)}function wde(n,e){const t=[];let i=-1;for(e&&t.push({type:"text",value:`
`});++i<n.length;)i&&t.push({type:"text",value:`
`}),t.push(n[i]);return e&&n.length>0&&t.push({type:"text",value:`
`}),t}function FD(n){let e=0,t=n.charCodeAt(e);for(;t===9||t===32;)e++,t=n.charCodeAt(e);return n.slice(e)}function zD(n,e){const t=_de(n,e),i=t.one(n,void 0),r=Ade(t),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&o.children.push({type:"text",value:`
`},r),o}function Sde(n,e){return n&&"run"in n?async function(t,i){const r=zD(t,{file:i,...e});await n.run(r,i)}:function(t,i){return zD(t,{file:i,...n||e})}}function jD(n){if(n)throw n}var B5,ND;function Ede(){if(ND)return B5;ND=1;var n=Object.prototype.hasOwnProperty,e=Object.prototype.toString,t=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(g){return typeof Array.isArray=="function"?Array.isArray(g):e.call(g)==="[object Array]"},o=function(g){if(!g||e.call(g)!=="[object Object]")return!1;var _=n.call(g,"constructor"),E=g.constructor&&g.constructor.prototype&&n.call(g.constructor.prototype,"isPrototypeOf");if(g.constructor&&!_&&!E)return!1;var O;for(O in g);return typeof O>"u"||n.call(g,O)},s=function(g,_){t&&_.name==="__proto__"?t(g,_.name,{enumerable:!0,configurable:!0,value:_.newValue,writable:!0}):g[_.name]=_.newValue},a=function(g,_){if(_==="__proto__")if(n.call(g,_)){if(i)return i(g,_).value}else return;return g[_]};return B5=function p(){var g,_,E,O,B,z,N=arguments[0],Q=1,$=arguments.length,X=!1;for(typeof N=="boolean"&&(X=N,N=arguments[1]||{},Q=2),(N==null||typeof N!="object"&&typeof N!="function")&&(N={});Q<$;++Q)if(g=arguments[Q],g!=null)for(_ in g)E=a(N,_),O=a(g,_),N!==O&&(X&&O&&(o(O)||(B=r(O)))?(B?(B=!1,z=E&&r(E)?E:[]):z=E&&o(E)?E:{},s(N,{name:_,newValue:p(X,z,O)})):typeof O<"u"&&s(N,{name:_,newValue:O}));return N},B5}var Bde=Ede();const O5=Bu(Bde);function IO(n){if(typeof n!="object"||n===null)return!1;const e=Object.getPrototypeOf(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function Ode(){const n=[],e={run:t,use:i};return e;function t(...r){let o=-1;const s=r.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...r);function a(p,...g){const _=n[++o];let E=-1;if(p){s(p);return}for(;++E<r.length;)(g[E]===null||g[E]===void 0)&&(g[E]=r[E]);r=g,_?Ide(_,a)(...g):s(null,...g)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return n.push(r),e}}function Ide(n,e){let t;return i;function i(...s){const a=n.length>s.length;let p;a&&s.push(r);try{p=n.apply(this,s)}catch(g){const _=g;if(a&&t)throw _;return r(_)}a||(p&&p.then&&typeof p.then=="function"?p.then(o,r):p instanceof Error?r(p):o(p))}function r(s,...a){t||(t=!0,e(s,...a))}function o(s){r(null,s)}}const Xm={basename:Tde,dirname:kde,extname:Dde,join:Rde,sep:"/"};function Tde(n,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');lx(n);let t=0,i=-1,r=n.length,o;if(e===void 0||e.length===0||e.length>n.length){for(;r--;)if(n.codePointAt(r)===47){if(o){t=r+1;break}}else i<0&&(o=!0,i=r+1);return i<0?"":n.slice(t,i)}if(e===n)return"";let s=-1,a=e.length-1;for(;r--;)if(n.codePointAt(r)===47){if(o){t=r+1;break}}else s<0&&(o=!0,s=r+1),a>-1&&(n.codePointAt(r)===e.codePointAt(a--)?a<0&&(i=r):(a=-1,i=s));return t===i?i=s:i<0&&(i=n.length),n.slice(t,i)}function kde(n){if(lx(n),n.length===0)return".";let e=-1,t=n.length,i;for(;--t;)if(n.codePointAt(t)===47){if(i){e=t;break}}else i||(i=!0);return e<0?n.codePointAt(0)===47?"/":".":e===1&&n.codePointAt(0)===47?"//":n.slice(0,e)}function Dde(n){lx(n);let e=n.length,t=-1,i=0,r=-1,o=0,s;for(;e--;){const a=n.codePointAt(e);if(a===47){if(s){i=e+1;break}continue}t<0&&(s=!0,t=e+1),a===46?r<0?r=e:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||t<0||o===0||o===1&&r===t-1&&r===i+1?"":n.slice(r,t)}function Rde(...n){let e=-1,t;for(;++e<n.length;)lx(n[e]),n[e]&&(t=t===void 0?n[e]:t+"/"+n[e]);return t===void 0?".":Pde(t)}function Pde(n){lx(n);const e=n.codePointAt(0)===47;let t=Kde(n,!e);return t.length===0&&!e&&(t="."),t.length>0&&n.codePointAt(n.length-1)===47&&(t+="/"),e?"/"+t:t}function Kde(n,e){let t="",i=0,r=-1,o=0,s=-1,a,p;for(;++s<=n.length;){if(s<n.length)a=n.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(r===s-1||o===1))if(r!==s-1&&o===2){if(t.length<2||i!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(p=t.lastIndexOf("/"),p!==t.length-1){p<0?(t="",i=0):(t=t.slice(0,p),i=t.length-1-t.lastIndexOf("/")),r=s,o=0;continue}}else if(t.length>0){t="",i=0,r=s,o=0;continue}}e&&(t=t.length>0?t+"/..":"..",i=2)}else t.length>0?t+="/"+n.slice(r+1,s):t=n.slice(r+1,s),i=s-r-1;r=s,o=0}else a===46&&o>-1?o++:o=-1}return t}function lx(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const Ude={cwd:Lde};function Lde(){return"/"}function TO(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function Fde(n){if(typeof n=="string")n=new URL(n);else if(!TO(n)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(n.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return zde(n)}function zde(nLine truncated
`},r),o}function Sde(n,e){return n&&"run"in n?async function(t,i){const r=zD(t,{file:i,...e});await n.run(r,i)}:function(t,i){return zD(t,{file:i,...n||e})}}function jD(n){if(n)throw n}var BM,ND;function Ede(){if(ND)return BM;ND=1;var n=Object.prototype.hasOwnProperty,e=Object.prototype.toString,t=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(g){return typeof Array.isArray=="function"?Array.isArray(g):e.call(g)==="[object Array]"},o=function(g){if(!g||e.call(g)!=="[object Object]")return!1;var _=n.call(g,"constructor"),E=g.constructor&&g.constructor.prototype&&n.call(g.constructor.prototype,"isPrototypeOf");if(g.constructor&&!_&&!E)return!1;var O;for(O in g);return typeof O>"u"||n.call(g,O)},s=function(g,_){t&&_.name==="__proto__"?t(g,_.name,{enumerable:!0,configurable:!0,value:_.newValue,writable:!0}):g[_.name]=_.newValue},a=function(g,_){if(_==="__proto__")if(n.call(g,_)){if(i)return i(g,_).value}else return;return g[_]};return BM=function p(){var g,_,E,O,B,z,N=arguments[0],Q=1,$=arguments.length,X=!1;for(typeof N=="boolean"&&(X=N,N=arguments[1]||{},Q=2),(N==null||typeof N!="object"&&typeof N!="function")&&(N={});Q<$;++Q)if(g=arguments[Q],g!=null)for(_ in g)E=a(N,_),O=a(g,_),N!==O&&(X&&O&&(o(O)||(B=r(O)))?(B?(B=!1,z=E&&r(E)?E:[]):z=E&&o(E)?E:{},s(N,{name:_,newValue:p(X,z,O)})):typeof O<"u"&&s(N,{name:_,newValue:O}));return N},BM}var Bde=Ede();const OM=Bu(Bde);function IO(n){if(typeof n!="object"||n===null)return!1;const e=Object.getPrototypeOf(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function Ode(){const n=[],e={run:t,use:i};return e;function t(...r){let o=-1;const s=r.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...r);function a(p,...g){const _=n[++o];let E=-1;if(p){s(p);return}for(;++E<r.length;)(g[E]===null||g[E]===void 0)&&(g[E]=r[E]);r=g,_?Ide(_,a)(...g):s(null,...g)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return n.push(r),e}}function Ide(n,e){let t;return i;function i(...s){const a=n.length>s.length;let p;a&&s.push(r);try{p=n.apply(this,s)}catch(g){const _=g;if(a&&t)throw _;return r(_)}a||(p&&p.then&&typeof p.then=="function"?p.then(o,r):p instanceof Error?r(p):o(p))}function r(s,...a){t||(t=!0,e(s,...a))}function o(s){r(null,s)}}const Xm={basename:Tde,dirname:kde,extname:Dde,join:Rde,sep:"/"};function Tde(n,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');ux(n);let t=0,i=-1,r=n.length,o;if(e===void 0||e.length===0||e.length>n.length){for(;r--;)if(n.codePointAt(r)===47){if(o){t=r+1;break}}else i<0&&(o=!0,i=r+1);return i<0?"":n.slice(t,i)}if(e===n)return"";let s=-1,a=e.length-1;for(;r--;)if(n.codePointAt(r)===47){if(o){t=r+1;break}}else s<0&&(o=!0,s=r+1),a>-1&&(n.codePointAt(r)===e.codePointAt(a--)?a<0&&(i=r):(a=-1,i=s));return t===i?i=s:i<0&&(i=n.length),n.slice(t,i)}function kde(n){if(ux(n),n.length===0)return".";let e=-1,t=n.length,i;for(;--t;)if(n.codePointAt(t)===47){if(i){e=t;break}}else i||(i=!0);return e<0?n.codePointAt(0)===47?"/":".":e===1&&n.codePointAt(0)===47?"//":n.slice(0,e)}function Dde(n){ux(n);let e=n.length,t=-1,i=0,r=-1,o=0,s;for(;e--;){const a=n.codePointAt(e);if(a===47){if(s){i=e+1;break}continue}t<0&&(s=!0,t=e+1),a===46?r<0?r=e:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||t<0||o===0||o===1&&r===t-1&&r===i+1?"":n.slice(r,t)}function Rde(...n){let e=-1,t;for(;++e<n.length;)ux(n[e]),n[e]&&(t=t===void 0?n[e]:t+"/"+n[e]);return t===void 0?".":Pde(t)}function Pde(n){ux(n);const e=n.codePointAt(0)===47;let t=Ude(n,!e);return t.length===0&&!e&&(t="."),t.length>0&&n.codePointAt(n.length-1)===47&&(t+="/"),e?"/"+t:t}function Ude(n,e){let t="",i=0,r=-1,o=0,s=-1,a,p;for(;++s<=n.length;){if(s<n.length)a=n.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(r===s-1||o===1))if(r!==s-1&&o===2){if(t.length<2||i!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(p=t.lastIndexOf("/"),p!==t.length-1){p<0?(t="",i=0):(t=t.slice(0,p),i=t.length-1-t.lastIndexOf("/")),r=s,o=0;continue}}else if(t.length>0){t="",i=0,r=s,o=0;continue}}e&&(t=t.length>0?t+"/..":"..",i=2)}else t.length>0?t+="/"+n.slice(r+1,s):t=n.slice(r+1,s),i=s-r-1;r=s,o=0}else a===46&&o>-1?o++:o=-1}return t}function ux(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const Kde={cwd:Lde};function Lde(){return"/"}function TO(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function Fde(n){if(typeof n=="string")n=new URL(n);else if(!TO(n)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(n.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return zde(n)}function zde(nLine truncated
* @license React
* react-is.production.min.js
*
@@ -887,59 +887,59 @@ ${Ne.shaderPreludeCode.vertexSource}`,define:Ne.shaderDefine},defaultProjectionD
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var VD;function rfe(){if(VD)return $s;VD=1;var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),z;z=Symbol.for("react.module.reference");function N(Q){if(typeof Q=="object"&&Q!==null){var $=Q.$$typeof;switch($){case n:switch(Q=Q.type,Q){case t:case r:case i:case g:case _:return Q;default:switch(Q=Q&&Q.$$typeof,Q){case a:case s:case p:case O:case E:case o:return Q;default:return $}}case e:return $}}}return $s.ContextConsumer=s,$s.ContextProvider=o,$s.Element=n,$s.ForwardRef=p,$s.Fragment=t,$s.Lazy=O,$s.Memo=E,$s.Portal=e,$s.Profiler=r,$s.StrictMode=i,$s.Suspense=g,$s.SuspenseList=_,$s.isAsyncMode=function(){return!1},$s.isConcurrentMode=function(){return!1},$s.isContextConsumer=function(Q){return N(Q)===s},$s.isContextProvider=function(Q){return N(Q)===o},$s.isElement=function(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===n},$s.isForwardRef=function(Q){return N(Q)===p},$s.isFragment=function(Q){return N(Q)===t},$s.isLazy=function(Q){return N(Q)===O},$s.isMemo=function(Q){return N(Q)===E},$s.isPortal=function(Q){return N(Q)===e},$s.isProfiler=function(Q){return N(Q)===r},$s.isStrictMode=function(Q){return N(Q)===i},$s.isSuspense=function(Q){return N(Q)===g},$s.isSuspenseList=function(Q){return N(Q)===_},$s.isValidElementType=function(Q){return typeof Q=="string"||typeof Q=="function"||Q===t||Q===r||Q===i||Q===g||Q===_||Q===B||typeof Q=="object"&&Q!==null&&(Q.$$typeof===O||Q.$$typeof===E||Q.$$typeof===o||Q.$$typeof===s||Q.$$typeof===p||Q.$$typeof===z||Q.getModuleId!==void 0)},$s.typeOf=N,$s}var $D;function ofe(){return $D||($D=1,K5.exports=rfe()),K5.exports}ofe();const ZD=n=>typeof n=="object"&&n!=null&&n.nodeType===1,XD=(n,e)=>(!e||n!=="hidden")&&n!=="visible"&&n!=="clip",Hx=(n,e)=>{if(n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth){const t=getComputedStyle(n,null);return XD(t.overflowY,e)||XD(t.overflowX,e)||(i=>{const r=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!r&&(r.clientHeight<i.scrollHeight||r.clientWidth<i.scrollWidth)})(n)}return!1},Vx=(n,e,t,i,r,o,s,a)=>o<n&&s>e||o>n&&s<e?0:o<=n&&a<=t||s>=e&&a>=t?o-n-i:s>e&&a<t||o<n&&a>t?s-e+r:0,afe=n=>{const e=n.parentElement;return e??(n.getRootNode().host||null)},sfe=(n,e)=>{var t,i,r,o;if(typeof document>"u")return[];const{inline:s,boundary:a,skipOverflowHiddenElements:p}=e,g=typeof a=="function"?a:be=>be!==a;if(!ZD(n))throw new TypeError("Invalid target");const _=document.scrollingElement||document.documentElement,E=[];let O=n;for(;ZD(O)&&g(O);){if(O=afe(O),O===_){E.push(O);break}O!=null&&O===document.body&&Hx(O)&&!Hx(document.documentElement)||O!=null&&Hx(O,p)&&E.push(O)}const B=(i=(t=window.visualViewport)==null?void 0:t.width)!=null?i:innerWidth,z=(o=(r=window.visualViewport)==null?void 0:r.height)!=null?o:innerHeight,{scrollX:N,scrollY:Q}=window,{height:$,width:X,top:re,right:ne,bottom:V,left:J}=n.getBoundingClientRect(),{top:W,right:he,left:ge}=(be=>{const ze=window.getComputedStyle(be);return{top:parseFloat(ze.scrollMarginTop)||0,right:parseFloat(ze.scrollMarginRight)||0,bottom:parseFloat(ze.scrollMarginBottom)||0,left:parseFloat(ze.scrollMarginLeft)||0}})(n);let ve=re-W,_e=s==="center"?J+X/2-ge+he:s==="end"?ne+he:J-ge;const Me=[];for(let be=0;be<E.length;be++){const ze=E[be],{height:Ce,width:Fe,top:ot,right:mt,bottom:it,left:ue}=ze.getBoundingClientRect();if(re>=0&&J>=0&&V<=z&&ne<=B&&(ze===_&&!Hx(ze)||re>=ot&&V<=it&&J>=ue&&ne<=mt))return Me;const We=getComputedStyle(ze),tt=parseInt(We.borderLeftWidth,10),ke=parseInt(We.borderTopWidth,10),Et=parseInt(We.borderRightWidth,10),gt=parseInt(We.borderBottomWidth,10);let xt=0,Ut=0;const je="offsetWidth"in ze?ze.offsetWidth-ze.clientWidth-tt-Et:0,Ue="offsetHeight"in ze?ze.offsetHeight-ze.clientHeight-ke-gt:0,Ke="offsetWidth"in ze?ze.offsetWidth===0?0:Fe/ze.offsetWidth:0,Ve="offsetHeight"in ze?ze.offsetHeight===0?0:Ce/ze.offsetHeight:0;if(_===ze)xt=Vx(Q,Q+z,z,ke,gt,Q+ve,Q+ve+$,$),Ut=s==="start"?_e:s==="center"?_e-B/2:s==="end"?_e-B:Vx(N,N+B,B,tt,Et,N+_e,N+_e+X,X),xt=Math.max(0,xt+Q),Ut=Math.max(0,Ut+N);else{xt=Vx(ot,it,Ce,ke,gt+Ue,ve,ve+$,$),Ut=s==="start"?_e-ue-tt:s==="center"?_e-(ue+Fe/2)+je/2:s==="end"?_e-mt+Et+je:Vx(ue,mt,Fe,tt,Et+je,_e,_e+X,X);const{scrollLeft:bt,scrollTop:vt}=ze;xt=Ve===0?0:Math.max(0,Math.min(vt+xt/Ve,ze.scrollHeight-Ce/Ve+Ue)),Ut=Ke===0?0:Math.max(0,Math.min(bt+Ut/Ke,ze.scrollWidth-Fe/Ke+je)),ve+=vt-xt,_e+=bt-Ut}Me.push({el:ze,top:xt,left:Ut})}return Me};var cC=function(){return cC=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var o in Line truncated
*/var VD;function rfe(){if(VD)return $s;VD=1;var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),z;z=Symbol.for("react.module.reference");function N(Q){if(typeof Q=="object"&&Q!==null){var $=Q.$$typeof;switch($){case n:switch(Q=Q.type,Q){case t:case r:case i:case g:case _:return Q;default:switch(Q=Q&&Q.$$typeof,Q){case a:case s:case p:case O:case E:case o:return Q;default:return $}}case e:return $}}}return $s.ContextConsumer=s,$s.ContextProvider=o,$s.Element=n,$s.ForwardRef=p,$s.Fragment=t,$s.Lazy=O,$s.Memo=E,$s.Portal=e,$s.Profiler=r,$s.StrictMode=i,$s.Suspense=g,$s.SuspenseList=_,$s.isAsyncMode=function(){return!1},$s.isConcurrentMode=function(){return!1},$s.isContextConsumer=function(Q){return N(Q)===s},$s.isContextProvider=function(Q){return N(Q)===o},$s.isElement=function(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===n},$s.isForwardRef=function(Q){return N(Q)===p},$s.isFragment=function(Q){return N(Q)===t},$s.isLazy=function(Q){return N(Q)===O},$s.isMemo=function(Q){return N(Q)===E},$s.isPortal=function(Q){return N(Q)===e},$s.isProfiler=function(Q){return N(Q)===r},$s.isStrictMode=function(Q){return N(Q)===i},$s.isSuspense=function(Q){return N(Q)===g},$s.isSuspenseList=function(Q){return N(Q)===_},$s.isValidElementType=function(Q){return typeof Q=="string"||typeof Q=="function"||Q===t||Q===r||Q===i||Q===g||Q===_||Q===B||typeof Q=="object"&&Q!==null&&(Q.$$typeof===O||Q.$$typeof===E||Q.$$typeof===o||Q.$$typeof===s||Q.$$typeof===p||Q.$$typeof===z||Q.getModuleId!==void 0)},$s.typeOf=N,$s}var $D;function ofe(){return $D||($D=1,UM.exports=rfe()),UM.exports}ofe();const ZD=n=>typeof n=="object"&&n!=null&&n.nodeType===1,XD=(n,e)=>(!e||n!=="hidden")&&n!=="visible"&&n!=="clip",Vx=(n,e)=>{if(n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth){const t=getComputedStyle(n,null);return XD(t.overflowY,e)||XD(t.overflowX,e)||(i=>{const r=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!r&&(r.clientHeight<i.scrollHeight||r.clientWidth<i.scrollWidth)})(n)}return!1},$x=(n,e,t,i,r,o,s,a)=>o<n&&s>e||o>n&&s<e?0:o<=n&&a<=t||s>=e&&a>=t?o-n-i:s>e&&a<t||o<n&&a>t?s-e+r:0,afe=n=>{const e=n.parentElement;return e??(n.getRootNode().host||null)},sfe=(n,e)=>{var t,i,r,o;if(typeof document>"u")return[];const{inline:s,boundary:a,skipOverflowHiddenElements:p}=e,g=typeof a=="function"?a:be=>be!==a;if(!ZD(n))throw new TypeError("Invalid target");const _=document.scrollingElement||document.documentElement,E=[];let O=n;for(;ZD(O)&&g(O);){if(O=afe(O),O===_){E.push(O);break}O!=null&&O===document.body&&Vx(O)&&!Vx(document.documentElement)||O!=null&&Vx(O,p)&&E.push(O)}const B=(i=(t=window.visualViewport)==null?void 0:t.width)!=null?i:innerWidth,z=(o=(r=window.visualViewport)==null?void 0:r.height)!=null?o:innerHeight,{scrollX:N,scrollY:Q}=window,{height:$,width:X,top:re,right:ne,bottom:V,left:J}=n.getBoundingClientRect(),{top:W,right:he,left:ge}=(be=>{const ze=window.getComputedStyle(be);return{top:parseFloat(ze.scrollMarginTop)||0,right:parseFloat(ze.scrollMarginRight)||0,bottom:parseFloat(ze.scrollMarginBottom)||0,left:parseFloat(ze.scrollMarginLeft)||0}})(n);let ve=re-W,_e=s==="center"?J+X/2-ge+he:s==="end"?ne+he:J-ge;const Me=[];for(let be=0;be<E.length;be++){const ze=E[be],{height:Ce,width:Fe,top:ot,right:mt,bottom:it,left:ue}=ze.getBoundingClientRect();if(re>=0&&J>=0&&V<=z&&ne<=B&&(ze===_&&!Vx(ze)||re>=ot&&V<=it&&J>=ue&&ne<=mt))return Me;const We=getComputedStyle(ze),tt=parseInt(We.borderLeftWidth,10),ke=parseInt(We.borderTopWidth,10),Et=parseInt(We.borderRightWidth,10),gt=parseInt(We.borderBottomWidth,10);let xt=0,Kt=0;const je="offsetWidth"in ze?ze.offsetWidth-ze.clientWidth-tt-Et:0,Ke="offsetHeight"in ze?ze.offsetHeight-ze.clientHeight-ke-gt:0,Ue="offsetWidth"in ze?ze.offsetWidth===0?0:Fe/ze.offsetWidth:0,Ve="offsetHeight"in ze?ze.offsetHeight===0?0:Ce/ze.offsetHeight:0;if(_===ze)xt=$x(Q,Q+z,z,ke,gt,Q+ve,Q+ve+$,$),Kt=s==="start"?_e:s==="center"?_e-B/2:s==="end"?_e-B:$x(N,N+B,B,tt,Et,N+_e,N+_e+X,X),xt=Math.max(0,xt+Q),Kt=Math.max(0,Kt+N);else{xt=$x(ot,it,Ce,ke,gt+Ke,ve,ve+$,$),Kt=s==="start"?_e-ue-tt:s==="center"?_e-(ue+Fe/2)+je/2:s==="end"?_e-mt+Et+je:$x(ue,mt,Fe,tt,Et+je,_e,_e+X,X);const{scrollLeft:bt,scrollTop:vt}=ze;xt=Ve===0?0:Math.max(0,Math.min(vt+xt/Ve,ze.scrollHeight-Ce/Ve+Ke)),Kt=Ue===0?0:Math.max(0,Math.min(bt+Kt/Ue,ze.scrollWidth-Fe/Ue+je)),ve+=vt-xt,_e+=bt-Kt}Me.push({el:ze,top:xt,left:Kt})}return Me};var cC=function(){return cC=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var o in Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hpe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var dpe=E4(function n(e){var t=this,i=e.expanded,r=i===void 0?[]:i,o=e.allowMultipleExpanded,s=o===void 0?!1:o,a=e.allowZeroExpanded,p=a===void 0?!1:a;S4(this,n),lu(this,"expanded",void 0),lu(this,"allowMultipleExpanded",void 0),lu(this,"allowZeroExpanded",void 0),lu(this,"toggleExpanded",function(g){if(t.isItemDisabled(g))return t;var _=t.isItemExpanded(g);return _?t.augment({expanded:t.expanded.filter(function(E){return E!==g})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(ape(t.expanded),[g]):[g]})}),lu(this,"isItemDisabled",function(g){var _=t.isItemExpanded(g),E=t.expanded.length===1;return!!(_&&!t.allowZeroExpanded&&E)}),lu(this,"isItemExpanded",function(g){return t.expanded.indexOf(g)!==-1}),lu(this,"getPanelAttributes",function(g,_){var E=_??t.isItemExpanded(g);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!E:void 0,"aria-labelledby":t.getButtonId(g),id:t.getPanelId(g),hidden:E?void 0:!0}}),lu(this,"getHeadingAttributes",function(){return{role:"heading"}}),lu(this,"getButtonAttributes",function(g,_){var E=_??t.isItemExpanded(g),O=t.isItemDisabled(g);return{id:t.getButtonId(g),"aria-disabled":O,"aria-expanded":E,"aria-controls":t.getPanelId(g),role:"button",tabIndex:0}}),lu(this,"getPanelId",function(g){return"accordion__panel-".concat(g)}),lu(this,"getButtonId",function(g){return"accordion__heading-".concat(g)}),lu(this,"augment",function(g){return new n(KO({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},g))}),this.expanded=r,this.allowMultipleExpanded=s,this.allowZeroExpanded=p}),XW=Gt.createContext(null),JW=function(n){oI(t,n);var e=aI(t);function t(){var i;S4(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),lu(Am(i),"state",new dpe({expanded:i.props.preExpanded,allowMultipleExpanded:i.props.allowMultipleExpanded,allowZeroExpanded:i.props.allowZeroExpanded})),lu(Am(i),"toggleExpanded",function(a){i.setState(function(p){return p.toggleExpanded(a)},function(){i.props.onChange&&i.props.onChange(i.state.expanded)})}),lu(Am(i),"isItemDisabled",function(a){return i.state.isItemDisabled(a)}),lu(Am(i),"isItemExpanded",function(a){return i.state.isItemExpanded(a)}),lu(Am(i),"getPanelAttributes",function(a,p){return i.state.getPanelAttributes(a,p)}),lu(Am(i),"getHeadingAttributes",function(){return i.state.getHeadingAttributes()}),lu(Am(i),"getButtonAttributes",function(a,p){return i.state.getButtonAttributes(a,p)}),i}return E4(t,[{key:"render",value:function(){var r=this.state,o=r.allowZeroExpanded,s=r.allowMultipleExpanded;return Gt.createElement(XW.Provider,{value:{allowMultipleExpanded:s,allowZeroExpanded:o,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t}(Gt.PureComponent);lu(JW,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var eQ=function(n){oI(t,n);var e=aI(t);function t(){var i;S4(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),lu(Am(i),"renderChildren",function(a){return a?i.props.children(a):null}),i}return E4(t,[{key:"render",value:function(){return Gt.createElement(XW.Consumer,null,this.renderChildren)}}]),t}(Gt.PureComponent),fpe=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],ppe=function(e){var t=e.className,i=t===void 0?"accordion":t,r=e.allowMultipleExpanded,o=e.allowZeroExpanded,s=e.onChange,a=e.preExpanded,p=B4(e,fpe);return Gt.createElement(JW,{preExpanded:a,allowMultipleExpanded:r,allowZeroExpanded:o,onChange:s},Gt.createElement("div",C0({"data-accordion-component":"Accordion",className:i},p)))},FO;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(FO||(FO={}));var tQ=FO,V5=0;function mpe(){var n=V5;return V5=V5+1,"raa-".concat(n)}var gpe=Gt.useId||mpe,ype=/[\u0009\u000a\u000c\u000d\u0020]/g;function xb(n){return n===""||ype.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var nQ=Gt.createContext(null),vpe=function(e){var t=e.children,i=e.uuid,r=e.accordionContext,o=e.dangerouslySetExpanded,s=function(){r.toggleExpanded(i)},a=function(g){var _=o??g.isItemExpanded(i),E=g.isItemDisabled(i),O=g.getPanelAttributes(i,o),B=g.getHeadingAttributes(i),z=g.getButtonAttributes(i,o);return Gt.createElement(nQ.Provider,{value:{uuid:i,expanded:_,disabled:E,toggleExpanded:s,panelAttributes:O,headingAttributes:B,buttonAttributes:z}},t)};return Gt.createElement(eQ,nu Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var dpe=B4(function n(e){var t=this,i=e.expanded,r=i===void 0?[]:i,o=e.allowMultipleExpanded,s=o===void 0?!1:o,a=e.allowZeroExpanded,p=a===void 0?!1:a;E4(this,n),lu(this,"expanded",void 0),lu(this,"allowMultipleExpanded",void 0),lu(this,"allowZeroExpanded",void 0),lu(this,"toggleExpanded",function(g){if(t.isItemDisabled(g))return t;var _=t.isItemExpanded(g);return _?t.augment({expanded:t.expanded.filter(function(E){return E!==g})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(ape(t.expanded),[g]):[g]})}),lu(this,"isItemDisabled",function(g){var _=t.isItemExpanded(g),E=t.expanded.length===1;return!!(_&&!t.allowZeroExpanded&&E)}),lu(this,"isItemExpanded",function(g){return t.expanded.indexOf(g)!==-1}),lu(this,"getPanelAttributes",function(g,_){var E=_??t.isItemExpanded(g);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!E:void 0,"aria-labelledby":t.getButtonId(g),id:t.getPanelId(g),hidden:E?void 0:!0}}),lu(this,"getHeadingAttributes",function(){return{role:"heading"}}),lu(this,"getButtonAttributes",function(g,_){var E=_??t.isItemExpanded(g),O=t.isItemDisabled(g);return{id:t.getButtonId(g),"aria-disabled":O,"aria-expanded":E,"aria-controls":t.getPanelId(g),role:"button",tabIndex:0}}),lu(this,"getPanelId",function(g){return"accordion__panel-".concat(g)}),lu(this,"getButtonId",function(g){return"accordion__heading-".concat(g)}),lu(this,"augment",function(g){return new n(UO({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},g))}),this.expanded=r,this.allowMultipleExpanded=s,this.allowZeroExpanded=p}),XW=Gt.createContext(null),JW=function(n){oI(t,n);var e=aI(t);function t(){var i;E4(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),lu(Am(i),"state",new dpe({expanded:i.props.preExpanded,allowMultipleExpanded:i.props.allowMultipleExpanded,allowZeroExpanded:i.props.allowZeroExpanded})),lu(Am(i),"toggleExpanded",function(a){i.setState(function(p){return p.toggleExpanded(a)},function(){i.props.onChange&&i.props.onChange(i.state.expanded)})}),lu(Am(i),"isItemDisabled",function(a){return i.state.isItemDisabled(a)}),lu(Am(i),"isItemExpanded",function(a){return i.state.isItemExpanded(a)}),lu(Am(i),"getPanelAttributes",function(a,p){return i.state.getPanelAttributes(a,p)}),lu(Am(i),"getHeadingAttributes",function(){return i.state.getHeadingAttributes()}),lu(Am(i),"getButtonAttributes",function(a,p){return i.state.getButtonAttributes(a,p)}),i}return B4(t,[{key:"render",value:function(){var r=this.state,o=r.allowZeroExpanded,s=r.allowMultipleExpanded;return Gt.createElement(XW.Provider,{value:{allowMultipleExpanded:s,allowZeroExpanded:o,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t}(Gt.PureComponent);lu(JW,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var eQ=function(n){oI(t,n);var e=aI(t);function t(){var i;E4(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),lu(Am(i),"renderChildren",function(a){return a?i.props.children(a):null}),i}return B4(t,[{key:"render",value:function(){return Gt.createElement(XW.Consumer,null,this.renderChildren)}}]),t}(Gt.PureComponent),fpe=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],ppe=function(e){var t=e.className,i=t===void 0?"accordion":t,r=e.allowMultipleExpanded,o=e.allowZeroExpanded,s=e.onChange,a=e.preExpanded,p=O4(e,fpe);return Gt.createElement(JW,{preExpanded:a,allowMultipleExpanded:r,allowZeroExpanded:o,onChange:s},Gt.createElement("div",C0({"data-accordion-component":"Accordion",className:i},p)))},FO;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(FO||(FO={}));var tQ=FO,VM=0;function mpe(){var n=VM;return VM=VM+1,"raa-".concat(n)}var gpe=Gt.useId||mpe,ype=/[\u0009\u000a\u000c\u000d\u0020]/g;function xb(n){return n===""||ype.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var nQ=Gt.createContext(null),vpe=function(e){var t=e.children,i=e.uuid,r=e.accordionContext,o=e.dangerouslySetExpanded,s=function(){r.toggleExpanded(i)},a=function(g){var _=o??g.isItemExpanded(i),E=g.isItemDisabled(i),O=g.getPanelAttributes(i,o),B=g.getHeadingAttributes(i),z=g.getButtonAttributes(i,o);return Gt.createElement(nQ.Provider,{value:{uuid:i,expanded:_,disabled:E,toggleExpanded:s,panelAttributes:O,headingAttributes:B,buttonAttributes:z}},t)};return Gt.createElement(eQ,nu Line truncated
From the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion):
“The button element is the only element inside the heading element. That is, if there are other visually persistent elements, they are not included inside the heading element.”
`,oQ=function(n){oI(t,n);var e=aI(t);function t(){var i;S4(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),lu(Am(i),"ref",void 0),lu(Am(i),"setRef",function(a){i.ref=a}),i}return E4(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return Gt.createElement("div",C0({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(r){if(r===void 0)throw new Error("ref is undefined");if(!(r.childElementCount===1&&r.firstElementChild&&r.firstElementChild.getAttribute("data-accordion-component")==="AccordionItemButton"))throw new Error(Ipe)}}]),t}(Gt.PureComponent);lu(oQ,"defaultProps",Ope);var aQ=function(e){return Gt.createElement(O4,null,function(t){var i=t.headingAttributes;return e.id&&xb(e.id),Gt.createElement(oQ,C0({},e,i))})};aQ.displayName=tQ.AccordionItemHeading;var Tpe=["className","region","id"],kpe=function(e){var t=e.className,i=t===void 0?"accordion__panel":t,r=e.region,o=e.id,s=B4(e,Tpe),a=function(g){var _=g.panelAttributes;o&&xb(o);var E=KO(KO({},_),{},{"aria-labelledby":r?_["aria-labelledby"]:void 0});return Gt.createElement("div",C0({"data-accordion-component":"AccordionItemPanel",className:i},s,E,{role:r?"region":void 0}))};return Gt.createElement(O4,null,a)},g3={exports:{}},Dpe=g3.exports,vR;function T4(){return vR||(vR=1,function(n,e){(function(t,i){n.exports=i()})(Dpe,function(){var t=navigator.userAgent,i=navigator.platform,r=/gecko\/\d/i.test(t),o=/MSIE \d/.test(t),s=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),a=/Edge\/(\d+)/.exec(t),p=o||s||a,g=p&&(o?document.documentMode||6:+(a||s)[1]),_=!a&&/WebKit\//.test(t),E=_&&/Qt\/\d+\.\d+/.test(t),O=!a&&/Chrome\/(\d+)/.exec(t),B=O&&+O[1],z=/Opera\//.test(t),N=/Apple Computer/.test(navigator.vendor),Q=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),$=/PhantomJS/.test(t),X=N&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),re=/Android/.test(t),ne=X||re||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),V=X||/Mac/.test(i),J=/\bCrOS\b/.test(t),W=/win/i.test(i),he=z&&t.match(/Version\/(\d*\.\d*)/);he&&(he=Number(he[1])),he&&he>=15&&(z=!1,_=!0);var ge=V&&(E||z&&(he==null||he<12.11)),ve=r||p&&g>=9;function _e(d){return new RegExp("(^|\\s)"+d+"(?:$|\\s)\\s*")}var Me=function(d,C){var T=d.className,I=_e(C).exec(T);if(I){var F=T.slice(I.index+I[0].length);d.className=T.slice(0,I.index)+(F?I[1]+F:"")}};function be(d){for(var C=d.childNodes.length;C>0;--C)d.removeChild(d.firstChild);return d}function ze(d,C){return be(d).appendChild(C)}function Ce(d,C,T,I){var F=document.createElement(d);if(T&&(F.className=T),I&&(F.style.cssText=I),typeof C=="string")F.appendChild(document.createTextNode(C));else if(C)for(var ee=0;ee<C.length;++ee)F.appendChild(C[ee]);return F}function Fe(d,C,T,I){var F=Ce(d,C,T,I);return F.setAttribute("role","presentation"),F}var ot;document.createRange?ot=function(d,C,T,I){var F=document.createRange();return F.setEnd(I||d,T),F.setStart(d,C),F}:ot=function(d,C,T){var I=document.body.createTextRange();try{I.moveToElementText(d.parentNode)}catch{return I}return I.collapse(!0),I.moveEnd("character",T),I.moveStart("character",C),I};function mt(d,C){if(C.nodeType==3&&(C=C.parentNode),d.contains)return d.contains(C);do if(C.nodeType==11&&(C=C.host),C==d)return!0;while(C=C.parentNode)}function it(d){var C=d.ownerDocument||d,T;try{T=d.activeElement}catch{T=C.body||null}for(;T&&T.shadowRoot&&T.shadowRoot.activeElement;)T=T.shadowRoot.activeElement;return T}function ue(d,C){var T=d.className;_e(C).test(T)||(d.className+=(T?" ":"")+C)}function We(d,C){for(var T=d.split(" "),I=0;I<T.length;I++)T[I]&&!_e(T[I]).test(C)&&(C+=" "+T[I]);return C}var tt=function(d){d.select()};X?tt=function(d){d.selectionStart=0,d.selectionEnd=d.value.length}:p&&(tt=function(d){try{d.select()}catch{}});function ke(d){return d.display.wrapper.ownerDocument}function Et(d){return gt(d.display.wrapper)}function gt(d){return d.getRootNode?d.getRootNode():d.ownerDocument}function xt(d){return ke(d).defaultView}function Ut(d){var C=Array.prototype.slice.call(arguments,1);return function(){return d.apply(null,C)}}function je(d,C,T){C||(C={});for(var I in d)d.hasOwnProperty(I)&&(T!==!1||!C.hasOwnProperty(I))&&(C[I]=d[I]);return C}function Ue(d,C,T,I,F){C==null&&(C=d.search(/[^\s\u00a0]/),C==-1&&(C=d.length));for(var ee=I||0,pe=F||0;;){var Se=d.indexOf(" ",ee);if(Se<0||Se>=C)return pe+(C-ee);pe+=Se-ee,pe+=T-pe%T,ee=Se+1}}var Ke=function(){this.id=null,this.f=null,this.time=0,this.handler=Ut(this.onTimeout,this)};Ke.prototype.onTimeout=function(d){d.id=0,d.time<=+new Date?d.f():setTimeout(d.handler,d.time-+new Date)},Ke.prototype.set=function(d,C){this.f=C;var T=+new Date+d;(!this.id||T<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,d),this.time=T)};function Ve(d,C){for(var T=0;T<d.length;++T)if(d[T]==C)return T;retur Line truncated
`,oQ=function(n){oI(t,n);var e=aI(t);function t(){var i;E4(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),lu(Am(i),"ref",void 0),lu(Am(i),"setRef",function(a){i.ref=a}),i}return B4(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return Gt.createElement("div",C0({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(r){if(r===void 0)throw new Error("ref is undefined");if(!(r.childElementCount===1&&r.firstElementChild&&r.firstElementChild.getAttribute("data-accordion-component")==="AccordionItemButton"))throw new Error(Ipe)}}]),t}(Gt.PureComponent);lu(oQ,"defaultProps",Ope);var aQ=function(e){return Gt.createElement(I4,null,function(t){var i=t.headingAttributes;return e.id&&xb(e.id),Gt.createElement(oQ,C0({},e,i))})};aQ.displayName=tQ.AccordionItemHeading;var Tpe=["className","region","id"],kpe=function(e){var t=e.className,i=t===void 0?"accordion__panel":t,r=e.region,o=e.id,s=O4(e,Tpe),a=function(g){var _=g.panelAttributes;o&&xb(o);var E=UO(UO({},_),{},{"aria-labelledby":r?_["aria-labelledby"]:void 0});return Gt.createElement("div",C0({"data-accordion-component":"AccordionItemPanel",className:i},s,E,{role:r?"region":void 0}))};return Gt.createElement(I4,null,a)},y3={exports:{}},Dpe=y3.exports,vR;function k4(){return vR||(vR=1,function(n,e){(function(t,i){n.exports=i()})(Dpe,function(){var t=navigator.userAgent,i=navigator.platform,r=/gecko\/\d/i.test(t),o=/MSIE \d/.test(t),s=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),a=/Edge\/(\d+)/.exec(t),p=o||s||a,g=p&&(o?document.documentMode||6:+(a||s)[1]),_=!a&&/WebKit\//.test(t),E=_&&/Qt\/\d+\.\d+/.test(t),O=!a&&/Chrome\/(\d+)/.exec(t),B=O&&+O[1],z=/Opera\//.test(t),N=/Apple Computer/.test(navigator.vendor),Q=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),$=/PhantomJS/.test(t),X=N&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),re=/Android/.test(t),ne=X||re||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),V=X||/Mac/.test(i),J=/\bCrOS\b/.test(t),W=/win/i.test(i),he=z&&t.match(/Version\/(\d*\.\d*)/);he&&(he=Number(he[1])),he&&he>=15&&(z=!1,_=!0);var ge=V&&(E||z&&(he==null||he<12.11)),ve=r||p&&g>=9;function _e(d){return new RegExp("(^|\\s)"+d+"(?:$|\\s)\\s*")}var Me=function(d,C){var T=d.className,I=_e(C).exec(T);if(I){var F=T.slice(I.index+I[0].length);d.className=T.slice(0,I.index)+(F?I[1]+F:"")}};function be(d){for(var C=d.childNodes.length;C>0;--C)d.removeChild(d.firstChild);return d}function ze(d,C){return be(d).appendChild(C)}function Ce(d,C,T,I){var F=document.createElement(d);if(T&&(F.className=T),I&&(F.style.cssText=I),typeof C=="string")F.appendChild(document.createTextNode(C));else if(C)for(var ee=0;ee<C.length;++ee)F.appendChild(C[ee]);return F}function Fe(d,C,T,I){var F=Ce(d,C,T,I);return F.setAttribute("role","presentation"),F}var ot;document.createRange?ot=function(d,C,T,I){var F=document.createRange();return F.setEnd(I||d,T),F.setStart(d,C),F}:ot=function(d,C,T){var I=document.body.createTextRange();try{I.moveToElementText(d.parentNode)}catch{return I}return I.collapse(!0),I.moveEnd("character",T),I.moveStart("character",C),I};function mt(d,C){if(C.nodeType==3&&(C=C.parentNode),d.contains)return d.contains(C);do if(C.nodeType==11&&(C=C.host),C==d)return!0;while(C=C.parentNode)}function it(d){var C=d.ownerDocument||d,T;try{T=d.activeElement}catch{T=C.body||null}for(;T&&T.shadowRoot&&T.shadowRoot.activeElement;)T=T.shadowRoot.activeElement;return T}function ue(d,C){var T=d.className;_e(C).test(T)||(d.className+=(T?" ":"")+C)}function We(d,C){for(var T=d.split(" "),I=0;I<T.length;I++)T[I]&&!_e(T[I]).test(C)&&(C+=" "+T[I]);return C}var tt=function(d){d.select()};X?tt=function(d){d.selectionStart=0,d.selectionEnd=d.value.length}:p&&(tt=function(d){try{d.select()}catch{}});function ke(d){return d.display.wrapper.ownerDocument}function Et(d){return gt(d.display.wrapper)}function gt(d){return d.getRootNode?d.getRootNode():d.ownerDocument}function xt(d){return ke(d).defaultView}function Kt(d){var C=Array.prototype.slice.call(arguments,1);return function(){return d.apply(null,C)}}function je(d,C,T){C||(C={});for(var I in d)d.hasOwnProperty(I)&&(T!==!1||!C.hasOwnProperty(I))&&(C[I]=d[I]);return C}function Ke(d,C,T,I,F){C==null&&(C=d.search(/[^\s\u00a0]/),C==-1&&(C=d.length));for(var ee=I||0,pe=F||0;;){var Se=d.indexOf(" ",ee);if(Se<0||Se>=C)return pe+(C-ee);pe+=Se-ee,pe+=T-pe%T,ee=Se+1}}var Ue=function(){this.id=null,this.f=null,this.time=0,this.handler=Kt(this.onTimeout,this)};Ue.prototype.onTimeout=function(d){d.id=0,d.time<=+new Date?d.f():setTimeout(d.handler,d.time-+new Date)},Ue.prototype.set=function(d,C){this.f=C;var T=+new Date+d;(!this.id||T<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,d),this.time=T)};function Ve(d,C){for(var T=0;T<d.length;++T)if(d[T]==C)return T;retur Line truncated
b`.split(/\n/).length!=3?function(d){for(var C=0,T=[],I=d.length;C<=I;){var F=d.indexOf(`
`,C);F==-1&&(F=d.length);var ee=d.slice(C,d.charAt(F-1)=="\r"?F-1:F),pe=ee.indexOf("\r");pe!=-1?(T.push(ee.slice(0,pe)),C+=pe+1):(T.push(ee),C=F+1)}return T}:function(d){return d.split(/\r\n?|\n/)},Jn=window.getSelection?function(d){try{return d.selectionStart!=d.selectionEnd}catch{return!1}}:function(d){var C;try{C=d.ownerDocument.selection.createRange()}catch{}return!C||C.parentElement()!=d?!1:C.compareEndPoints("StartToEnd",C)!=0},Ar=function(){var d=Ce("div");return"oncopy"in d?!0:(d.setAttribute("oncopy","return;"),typeof d.oncopy=="function")}(),ji=null;function _r(d){if(ji!=null)return ji;var C=ze(d,Ce("span","x")),T=C.getBoundingClientRect(),I=ot(C,0,1).getBoundingClientRect();return ji=Math.abs(T.left-I.left)>1}var Wa={},Dr={};function Ni(d,C){arguments.length>2&&(C.dependencies=Array.prototype.slice.call(arguments,2)),Wa[d]=C}function bl(d,C){Dr[d]=C}function La(d){if(typeof d=="string"&&Dr.hasOwnProperty(d))d=Dr[d];else if(d&&typeof d.name=="string"&&Dr.hasOwnProperty(d.name)){var C=Dr[d.name];typeof C=="string"&&(C={name:C}),d=Bi(C,d),d.name=C.name}else{if(typeof d=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(d))return La("application/xml");if(typeof d=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(d))return La("application/json")}return typeof d=="string"?{name:d}:d||{name:"null"}}function Bo(d,C){C=La(C);var T=Wa[C.name];if(!T)return Bo(d,"text/plain");var I=T(d,C);if(rs.hasOwnProperty(C.name)){var F=rs[C.name];for(var ee in F)F.hasOwnProperty(ee)&&(I.hasOwnProperty(ee)&&(I["_"+ee]=I[ee]),I[ee]=F[ee])}if(I.name=C.name,C.helperType&&(I.helperType=C.helperType),C.modeProps)for(var pe in C.modeProps)I[pe]=C.modeProps[pe];return I}var rs={};function Pl(d,C){var T=rs.hasOwnProperty(d)?rs[d]:rs[d]={};je(C,T)}function ho(d,C){if(C===!0)return C;if(d.copyState)return d.copyState(C);var T={};for(var I in C){var F=C[I];F instanceof Array&&(F=F.concat([])),T[I]=F}return T}function Xu(d,C){for(var T;d.innerMode&&(T=d.innerMode(C),!(!T||T.mode==d));)C=T.state,d=T.mode;return T||{mode:d,state:C}}function Fa(d,C,T){return d.startState?d.startState(C,T):!0}var Zi=function(d,C,T){this.pos=this.start=0,this.string=d,this.tabSize=C||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=T};Zi.prototype.eol=function(){return this.pos>=this.string.length},Zi.prototype.sol=function(){return this.pos==this.lineStart},Zi.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Zi.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Zi.prototype.eat=function(d){var C=this.string.charAt(this.pos),T;if(typeof d=="string"?T=C==d:T=C&&(d.test?d.test(C):d(C)),T)return++this.pos,C},Zi.prototype.eatWhile=function(d){for(var C=this.pos;this.eat(d););return this.pos>C},Zi.prototype.eatSpace=function(){for(var d=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>d},Zi.prototype.skipToEnd=function(){this.pos=this.string.length},Zi.prototype.skipTo=function(d){var C=this.string.indexOf(d,this.pos);if(C>-1)return this.pos=C,!0},Zi.prototype.backUp=function(d){this.pos-=d},Zi.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ue(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ue(this.string,this.lineStart,this.tabSize):0)},Zi.prototype.indentation=function(){return Ue(this.string,null,this.tabSize)-(this.lineStart?Ue(this.string,this.lineStart,this.tabSize):0)},Zi.prototype.match=function(d,C,T){if(typeof d=="string"){var I=function(pe){return T?pe.toLowerCase():pe},F=this.string.substr(this.pos,d.length);if(I(F)==I(d))return C!==!1&&(this.pos+=d.length),!0}else{var ee=this.string.slice(this.pos).match(d);return ee&&ee.index>0?null:(ee&&C!==!1&&(this.pos+=ee[0].length),ee)}},Zi.prototype.current=function(){return this.string.slice(this.start,this.pos)},Zi.prototype.hideFirstChars=function(d,C){this.lineStart+=d;try{return C()}finally{this.lineStart-=d}},Zi.prototype.lookAhead=function(d){var C=this.lineOracle;return C&&C.lookAhead(d)},Zi.prototype.baseToken=function(){var d=this.lineOracle;return d&&d.baseToken(this.pos)};function wi(d,C){if(C-=d.first,C<0||C>=d.size)throw new Error("There is no line "+(C+d.first)+" in the document.");for(var T=d;!T.lines;)for(var I=0;;++I){var F=T.children[I],ee=F.chunkSize();if(C<ee){T=F;break}C-=ee}return T.lines[C]}function fs(d,C,T){var I=[],F=C.line;return d.iter(C.line,T.line+1,function(ee){var pe=ee.text;F==T.line&&(pe=pe.slice(0,T.ch)),F==C.line&&(pe=pe.slice(C.ch)),I.push(pe),++F}),I}function Oa(d,C,T){var I=[];return d.iter(C,T,function(F){I.push(F.text)}),I}function ea(d,C){var T=C-d.height;if(T)for(var I=d;I;I=I.parent)I.height+=T}function Xe(d){if(d.parent==null)return null;for(var C=d.parent,T=Ve(C.lines,d),I=C.parent;I;C=I,I=I.parent)for(var F=0;I.children[F]!=C;++F)T+=I.children[F].chunkSize();return T+C.first}function Bt(d,C){var T=d.first;e:do Line truncated
`?(Pn=_t.appendChild(Ce("span",en[0]=="\r"?"␍":"␤","cm-invalidchar")),Pn.setAttribute("cm-text",en[0]),d.col+=1):(Pn=d.cm.options.specialCharPlaceholder(en[0]),Pn.setAttribute("cm-text",en[0]),p&&g<9?_t.appendChild(Ce("span",[Pn])):_t.appendChild(Pn),d.col+=1);d.map.push(d.pos,d.pos+1,Pn),d.pos++}}if(d.trailingSpace=Se.charCodeAt(C.length-1)==32,T||I||F||Ge||ee||pe){var Ci=T||"";I&&(Ci+=I),F&&(Ci+=F);var gi=Ce("span",[_t],Ci,ee);if(pe)for(var Ri in pe)pe.hasOwnProperty(Ri)&&Ri!="style"&&Ri!="class"&&gi.setAttribute(Ri,pe[Ri]);return d.content.appendChild(gi)}d.content.appendChild(_t)}}function $h(d,C){if(d.length>1&&!/ /.test(d))return d;for(var T=C,I="",F=0;F<d.length;F++){var ee=d.charAt(F);ee==" "&&T&&(F==d.length-1||d.charCodeAt(F+1)==32)&&(ee=" "),I+=ee,T=ee==" "}return I}function go(d,C){return function(T,I,F,ee,pe,Se,Pe){F=F?F+" cm-force-border":"cm-force-border";for(var Ge=T.pos,_t=Ge+I.length;;){for(var Tt=void 0,en=0;en<C.length&&(Tt=C[en],!(Tt.to>Ge&&Tt.from<=Ge));en++);if(Tt.to>=_t)return d(T,I,F,ee,pe,Se,Pe);d(T,I.slice(0,Tt.to-Ge),F,ee,null,Se,Pe),ee=null,I=I.slice(Tt.to-Ge),Ge=Tt.to}}}function hc(d,C,T,I){var F=!I&&T.widgetNode;F&&d.map.push(d.pos,d.pos+C,F),!I&&d.cm.display.input.needsContentAttribute&&(F||(F=d.content.appendChild(document.createElement("span"))),F.setAttribute("cm-marker",T.id)),F&&(d.cm.display.input.setUneditable(F),d.content.appendChild(F)),d.pos+=C,d.trailingSpace=!1}function Bd(d,C,T){var I=d.markedSpans,F=d.text,ee=0;if(!I){for(var pe=1;pe<T.length;pe+=2)C.addToken(C,F.slice(ee,ee=T[pe]),Ed(T[pe+1],C.cm.options));return}for(var Se=F.length,Pe=0,Ge=1,_t="",Tt,en,Vt=0,bn,Pn,oi,mi,Ci;;){if(Vt==Pe){bn=Pn=oi=en="",Ci=null,mi=null,Vt=1/0;for(var gi=[],Ri=void 0,lr=0;lr<I.length;++lr){var Hi=I[lr],to=Hi.marker;if(to.type=="bookmark"&&Hi.from==Pe&&to.widgetNode)gi.push(to);else if(Hi.from<=Pe&&(Hi.to==null||Hi.to>Pe||to.collapsed&&Hi.to==Pe&&Hi.from==Pe)){if(Hi.to!=null&&Hi.to!=Pe&&Vt>Hi.to&&(Vt=Hi.to,Pn=""),to.className&&(bn+=" "+to.className),to.css&&(en=(en?en+";":"")+to.css),to.startStyle&&Hi.from==Pe&&(oi+=" "+to.startStyle),to.endStyle&&Hi.to==Vt&&(Ri||(Ri=[])).push(to.endStyle,Hi.to),to.title&&((Ci||(Ci={})).title=to.title),to.attributes)for(var Sr in to.attributes)(Ci||(Ci={}))[Sr]=to.attributes[Sr];to.collapsed&&(!mi||lt(mi.marker,to)<0)&&(mi=Hi)}else Hi.from>Pe&&Vt>Hi.from&&(Vt=Hi.from)}if(Ri)for(var As=0;As<Ri.length;As+=2)Ri[As+1]==Vt&&(Pn+=" "+Ri[As]);if(!mi||mi.from==Pe)for(var ma=0;ma<gi.length;++ma)hc(C,0,gi[ma]);if(mi&&(mi.from||0)==Pe){if(hc(C,(mi.to==null?Se+1:mi.to)-Pe,mi.marker,mi.from==null),mi.to==null)return;mi.to==Pe&&(mi=!1)}}if(Pe>=Se)break;for(var Vr=Math.min(Se,Vt);;){if(_t){var Ms=Pe+_t.length;if(!mi){var ws=Ms>Vr?_t.slice(0,Vr-Pe):_t;C.addToken(C,ws,Tt?Tt+bn:bn,oi,Pe+ws.length==Vt?Pn:"",en,Ci)}if(Ms>=Vr){_t=_t.slice(Vr-Pe),Pe=Vr;break}Pe=Ms,oi=""}_t=F.slice(ee,ee=T[Ge++]),Tt=Ed(T[Ge++],C.cm.options)}}}function Bm(d,C,T){this.line=C,this.rest=io(C),this.size=this.rest?Xe(Gn(this.rest))-T+1:1,this.node=this.text=null,this.hidden=yr(d,C)}function Sh(d,C,T){for(var I=[],F,ee=C;ee<T;ee=F){var pe=new Bm(d.doc,wi(d.doc,ee),ee);F=ee+pe.size,I.push(pe)}return I}var Od=null;function b0(d){Od?Od.ops.push(d):d.ownsGroup=Od={ops:[d],delayedCallbacks:[]}}function Yf(d){var C=d.delayedCallbacks,T=0;do{for(;T<C.length;T++)C[T].call(null);for(var I=0;I<d.ops.length;I++){var F=d.ops[I];if(F.cursorActivityHandlers)for(;F.cursorActivityCalled<F.cursorActivityHandlers.length;)F.cursorActivityHandlers[F.cursorActivityCalled++].call(null,F.cm)}}while(T<C.length)}function qf(d,C){var T=d.ownsGroup;if(T)try{Yf(T)}finally{Od=null,C(T)}}var nA=null;function as(d,C){var T=dt(d,C);if(T.length){var I=Array.prototype.slice.call(arguments,2),F;Od?F=Od.delayedCallbacks:nA?F=nA:(F=nA=[],setTimeout(Id,0));for(var ee=function(Se){F.push(function(){return T[Se].apply(null,I)})},pe=0;pe<T.length;++pe)ee(pe)}}function Id(){var d=nA;nA=null;for(var C=0;C<d.length;++C)d[C]()}function Yl(d,C,T,I){for(var F=0;F<C.changes.length;F++){var ee=C.changes[F];ee=="text"?Xh(d,C):ee=="gutter"?Eh(d,C,T,I):ee=="class"?Hf(d,C):ee=="widget"&&Bh(d,C,I)}C.changes=null}function Td(d){return d.node==d.text&&(d.node=Ce("div",null,null,"position: relative"),d.text.parentNode&&d.text.parentNode.replaceChild(d.node,d.text),d.node.appendChild(d.text),p&&g<8&&(d.node.style.zIndex=2)),d.node}function Zh(d,C){var T=C.bgClass?C.bgClass+" "+(C.line.bgClass||""):C.line.bgClass;if(T&&(T+=" CodeMirror-linebackground"),C.background)T?C.background.className=T:(C.background.parentNode.removeChild(C.background),C.background=null);else if(T){var I=Td(C);C.background=I.insertBefore(Ce("div",null,T),I.firstChild),d.display.input.setUneditable(C.background)}}function th(d,C){var T=d.display.externalMeasured;return T&&T.line==C.line?(d.display.externalMeasured=null,C.measure=T.measure,T.built):NA(d,C)}function Xh(d,C){var T=C.text.className,I=th(d,C);C.text==C.node&&(C.node=I.pre),C.text.parentNode.replaceChild(I.pre,C Line truncated
top: `+Ri+"px; width: "+(lr??Pe-gi)+`px;
height: `+(Hi-Ri)+"px"))}function Tt(gi,Ri,lr){var Hi=wi(F,gi),to=Hi.text.length,Sr,As;function ma(ws,ga){return En(d,an(gi,ws),"div",Hi,ga)}function Vr(ws,ga,nu){var Ps=Ko(d,Hi,null,ws),Hs=ga=="ltr"==(nu=="after")?"left":"right",Tr=nu=="after"?Ps.begin:Ps.end-(/\s/.test(Hi.text.charAt(Ps.end-1))?2:1);return ma(Tr,Hs)[Hs]}var Ms=Ze(Hi,F.direction);return Qe(Ms,Ri||0,lr??to,function(ws,ga,nu,Ps){var Hs=nu=="ltr",Tr=ma(ws,Hs?"left":"right"),ka=ma(ga-1,Hs?"right":"left"),iu=Ri==null&&ws==0,xc=lr==null&&ga==to,bu=Ps==0,dh=!Ms||Ps==Ms.length-1;if(ka.top-Tr.top<=3){var gs=(Ge?iu:xc)&&bu,kA=(Ge?xc:iu)&&dh,Ol=gs?Se:(Hs?Tr:ka).left,Mc=kA?Pe:(Hs?ka:Tr).right;_t(Ol,Tr.top,Mc-Ol,Tr.bottom)}else{var hl,xu,ic,fd;Hs?(hl=Ge&&iu&&bu?Se:Tr.left,xu=Ge?Pe:Vr(ws,nu,"before"),ic=Ge?Se:Vr(ga,nu,"after"),fd=Ge&&xc&&dh?Pe:ka.right):(hl=Ge?Vr(ws,nu,"before"):Se,xu=!Ge&&iu&&bu?Pe:Tr.right,ic=!Ge&&xc&&dh?Se:ka.left,fd=Ge?Vr(ga,nu,"after"):Pe),_t(hl,Tr.top,xu-hl,Tr.bottom),Tr.bottom<ka.top&&_t(Se,Tr.bottom,null,ka.top),_t(ic,ka.top,fd-ic,ka.bottom)}(!Sr||mc(Tr,Sr)<0)&&(Sr=Tr),mc(ka,Sr)<0&&(Sr=ka),(!As||mc(Tr,As)<0)&&(As=Tr),mc(ka,As)<0&&(As=ka)}),{start:Sr,end:As}}var en=C.from(),Vt=C.to();if(en.line==Vt.line)Tt(en.line,en.ch,Vt.ch);else{var bn=wi(F,en.line),Pn=wi(F,Vt.line),oi=Pi(bn)==Pi(Pn),mi=Tt(en.line,en.ch,oi?bn.text.length+1:null).end,Ci=Tt(Vt.line,oi?0:null,Vt.ch).start;oi&&(mi.top<Ci.top-2?(_t(mi.right,mi.top,null,mi.bottom),_t(Se,Ci.top,Ci.left,Ci.bottom)):_t(mi.right,mi.top,Ci.left-mi.right,mi.bottom)),mi.bottom<Ci.top&&_t(Se,mi.bottom,null,Ci.top)}T.appendChild(ee)}function Kc(d){if(d.state.focused){var C=d.display;clearInterval(C.blinker);var T=!0;C.cursorDiv.style.visibility="",d.options.cursorBlinkRate>0?C.blinker=setInterval(function(){d.hasFocus()||bA(d),C.cursorDiv.style.visibility=(T=!T)?"":"hidden"},d.options.cursorBlinkRate):d.options.cursorBlinkRate<0&&(C.cursorDiv.style.visibility="hidden")}}function ks(d){d.hasFocus()||(d.display.input.focus(),d.state.focused||Kd(d))}function Th(d){d.state.delayingBlurEvent=!0,setTimeout(function(){d.state.delayingBlurEvent&&(d.state.delayingBlurEvent=!1,d.state.focused&&bA(d))},100)}function Kd(d,C){d.state.delayingBlurEvent&&!d.state.draggingText&&(d.state.delayingBlurEvent=!1),d.options.readOnly!="nocursor"&&(d.state.focused||(rt(d,"focus",d,C),d.state.focused=!0,ue(d.display.wrapper,"CodeMirror-focused"),!d.curOp&&d.display.selForContextMenu!=d.doc.sel&&(d.display.input.reset(),_&&setTimeout(function(){return d.display.input.reset(!0)},20)),d.display.input.receivedFocus()),Kc(d))}function bA(d,C){d.state.delayingBlurEvent||(d.state.focused&&(rt(d,"blur",d,C),d.state.focused=!1,Me(d.display.wrapper,"CodeMirror-focused")),clearInterval(d.display.blinker),setTimeout(function(){d.state.focused||(d.display.shift=!1)},150))}function Ud(d){for(var C=d.display,T=C.lineDiv.offsetTop,I=Math.max(0,C.scroller.getBoundingClientRect().top),F=C.lineDiv.getBoundingClientRect().top,ee=0,pe=0;pe<C.view.length;pe++){var Se=C.view[pe],Pe=d.options.lineWrapping,Ge=void 0,_t=0;if(!Se.hidden){if(F+=Se.line.height,p&&g<8){var Tt=Se.node.offsetTop+Se.node.offsetHeight;Ge=Tt-T,T=Tt}else{var en=Se.node.getBoundingClientRect();Ge=en.bottom-en.top,!Pe&&Se.text.firstChild&&(_t=Se.text.firstChild.getBoundingClientRect().right-en.left-1)}var Vt=Se.line.height-Ge;if((Vt>.005||Vt<-.005)&&(F<I&&(ee-=Vt),ea(Se.line,Ge),rh(Se.line),Se.rest))for(var bn=0;bn<Se.rest.length;bn++)rh(Se.rest[bn]);if(_t>d.display.sizerWidth){var Pn=Math.ceil(_t/Ru(d.display));Pn>d.display.maxLineLength&&(d.display.maxLineLength=Pn,d.display.maxLine=Se.line,d.display.maxLineChanged=!0)}}}Math.abs(ee)>2&&(C.scroller.scrollTop+=ee)}function rh(d){if(d.widgets)for(var C=0;C<d.widgets.length;++C){var T=d.widgets[C],I=T.node.parentNode;I&&(T.height=I.offsetHeight)}}function Uu(d,C,T){var I=T&&T.top!=null?Math.max(0,T.top):d.scroller.scrollTop;I=Math.floor(I-kc(d));var F=T&&T.bottom!=null?T.bottom:I+d.wrapper.clientHeight,ee=Bt(C,I),pe=Bt(C,F);if(T&&T.ensure){var Se=T.ensure.from.line,Pe=T.ensure.to.line;Se<ee?(ee=Se,pe=Bt(C,Qo(wi(C,Se))+d.wrapper.clientHeight)):Math.min(Pe,C.lastLine())>=pe&&(ee=Bt(C,Qo(wi(C,Pe))-d.wrapper.clientHeight),pe=Pe)}return{from:ee,to:Math.max(pe,ee+1)}}function QA(d,C){if(!tn(d,"scrollCursorIntoView")){var T=d.display,I=T.sizer.getBoundingClientRect(),F=null,ee=T.wrapper.ownerDocument;if(C.top+I.top<0?F=!0:C.bottom+I.top>(ee.defaultView.innerHeight||ee.documentElement.clientHeight)&&(F=!1),F!=null&&!$){var pe=Ce("div","​",null,`position: absolute;
`,C);F==-1&&(F=d.length);var ee=d.slice(C,d.charAt(F-1)=="\r"?F-1:F),pe=ee.indexOf("\r");pe!=-1?(T.push(ee.slice(0,pe)),C+=pe+1):(T.push(ee),C=F+1)}return T}:function(d){return d.split(/\r\n?|\n/)},Jn=window.getSelection?function(d){try{return d.selectionStart!=d.selectionEnd}catch{return!1}}:function(d){var C;try{C=d.ownerDocument.selection.createRange()}catch{}return!C||C.parentElement()!=d?!1:C.compareEndPoints("StartToEnd",C)!=0},cr=function(){var d=Ce("div");return"oncopy"in d?!0:(d.setAttribute("oncopy","return;"),typeof d.oncopy=="function")}(),Ni=null;function br(d){if(Ni!=null)return Ni;var C=ze(d,Ce("span","x")),T=C.getBoundingClientRect(),I=ot(C,0,1).getBoundingClientRect();return Ni=Math.abs(T.left-I.left)>1}var Wa={},Rr={};function Gi(d,C){arguments.length>2&&(C.dependencies=Array.prototype.slice.call(arguments,2)),Wa[d]=C}function bl(d,C){Rr[d]=C}function La(d){if(typeof d=="string"&&Rr.hasOwnProperty(d))d=Rr[d];else if(d&&typeof d.name=="string"&&Rr.hasOwnProperty(d.name)){var C=Rr[d.name];typeof C=="string"&&(C={name:C}),d=Oi(C,d),d.name=C.name}else{if(typeof d=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(d))return La("application/xml");if(typeof d=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(d))return La("application/json")}return typeof d=="string"?{name:d}:d||{name:"null"}}function Bo(d,C){C=La(C);var T=Wa[C.name];if(!T)return Bo(d,"text/plain");var I=T(d,C);if(rs.hasOwnProperty(C.name)){var F=rs[C.name];for(var ee in F)F.hasOwnProperty(ee)&&(I.hasOwnProperty(ee)&&(I["_"+ee]=I[ee]),I[ee]=F[ee])}if(I.name=C.name,C.helperType&&(I.helperType=C.helperType),C.modeProps)for(var pe in C.modeProps)I[pe]=C.modeProps[pe];return I}var rs={};function Pl(d,C){var T=rs.hasOwnProperty(d)?rs[d]:rs[d]={};je(C,T)}function ho(d,C){if(C===!0)return C;if(d.copyState)return d.copyState(C);var T={};for(var I in C){var F=C[I];F instanceof Array&&(F=F.concat([])),T[I]=F}return T}function Xu(d,C){for(var T;d.innerMode&&(T=d.innerMode(C),!(!T||T.mode==d));)C=T.state,d=T.mode;return T||{mode:d,state:C}}function Fa(d,C,T){return d.startState?d.startState(C,T):!0}var Xi=function(d,C,T){this.pos=this.start=0,this.string=d,this.tabSize=C||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=T};Xi.prototype.eol=function(){return this.pos>=this.string.length},Xi.prototype.sol=function(){return this.pos==this.lineStart},Xi.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Xi.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Xi.prototype.eat=function(d){var C=this.string.charAt(this.pos),T;if(typeof d=="string"?T=C==d:T=C&&(d.test?d.test(C):d(C)),T)return++this.pos,C},Xi.prototype.eatWhile=function(d){for(var C=this.pos;this.eat(d););return this.pos>C},Xi.prototype.eatSpace=function(){for(var d=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>d},Xi.prototype.skipToEnd=function(){this.pos=this.string.length},Xi.prototype.skipTo=function(d){var C=this.string.indexOf(d,this.pos);if(C>-1)return this.pos=C,!0},Xi.prototype.backUp=function(d){this.pos-=d},Xi.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ke(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ke(this.string,this.lineStart,this.tabSize):0)},Xi.prototype.indentation=function(){return Ke(this.string,null,this.tabSize)-(this.lineStart?Ke(this.string,this.lineStart,this.tabSize):0)},Xi.prototype.match=function(d,C,T){if(typeof d=="string"){var I=function(pe){return T?pe.toLowerCase():pe},F=this.string.substr(this.pos,d.length);if(I(F)==I(d))return C!==!1&&(this.pos+=d.length),!0}else{var ee=this.string.slice(this.pos).match(d);return ee&&ee.index>0?null:(ee&&C!==!1&&(this.pos+=ee[0].length),ee)}},Xi.prototype.current=function(){return this.string.slice(this.start,this.pos)},Xi.prototype.hideFirstChars=function(d,C){this.lineStart+=d;try{return C()}finally{this.lineStart-=d}},Xi.prototype.lookAhead=function(d){var C=this.lineOracle;return C&&C.lookAhead(d)},Xi.prototype.baseToken=function(){var d=this.lineOracle;return d&&d.baseToken(this.pos)};function Si(d,C){if(C-=d.first,C<0||C>=d.size)throw new Error("There is no line "+(C+d.first)+" in the document.");for(var T=d;!T.lines;)for(var I=0;;++I){var F=T.children[I],ee=F.chunkSize();if(C<ee){T=F;break}C-=ee}return T.lines[C]}function fs(d,C,T){var I=[],F=C.line;return d.iter(C.line,T.line+1,function(ee){var pe=ee.text;F==T.line&&(pe=pe.slice(0,T.ch)),F==C.line&&(pe=pe.slice(C.ch)),I.push(pe),++F}),I}function Oa(d,C,T){var I=[];return d.iter(C,T,function(F){I.push(F.text)}),I}function ea(d,C){var T=C-d.height;if(T)for(var I=d;I;I=I.parent)I.height+=T}function Xe(d){if(d.parent==null)return null;for(var C=d.parent,T=Ve(C.lines,d),I=C.parent;I;C=I,I=I.parent)for(var F=0;I.children[F]!=C;++F)T+=I.children[F].chunkSize();return T+C.first}function Bt(d,C){var T=d.first;e:do Line truncated
`?(Pn=_t.appendChild(Ce("span",en[0]=="\r"?"␍":"␤","cm-invalidchar")),Pn.setAttribute("cm-text",en[0]),d.col+=1):(Pn=d.cm.options.specialCharPlaceholder(en[0]),Pn.setAttribute("cm-text",en[0]),p&&g<9?_t.appendChild(Ce("span",[Pn])):_t.appendChild(Pn),d.col+=1);d.map.push(d.pos,d.pos+1,Pn),d.pos++}}if(d.trailingSpace=Se.charCodeAt(C.length-1)==32,T||I||F||Ge||ee||pe){var _i=T||"";I&&(_i+=I),F&&(_i+=F);var yi=Ce("span",[_t],_i,ee);if(pe)for(var Pi in pe)pe.hasOwnProperty(Pi)&&Pi!="style"&&Pi!="class"&&yi.setAttribute(Pi,pe[Pi]);return d.content.appendChild(yi)}d.content.appendChild(_t)}}function $h(d,C){if(d.length>1&&!/ /.test(d))return d;for(var T=C,I="",F=0;F<d.length;F++){var ee=d.charAt(F);ee==" "&&T&&(F==d.length-1||d.charCodeAt(F+1)==32)&&(ee=" "),I+=ee,T=ee==" "}return I}function go(d,C){return function(T,I,F,ee,pe,Se,Pe){F=F?F+" cm-force-border":"cm-force-border";for(var Ge=T.pos,_t=Ge+I.length;;){for(var Tt=void 0,en=0;en<C.length&&(Tt=C[en],!(Tt.to>Ge&&Tt.from<=Ge));en++);if(Tt.to>=_t)return d(T,I,F,ee,pe,Se,Pe);d(T,I.slice(0,Tt.to-Ge),F,ee,null,Se,Pe),ee=null,I=I.slice(Tt.to-Ge),Ge=Tt.to}}}function hc(d,C,T,I){var F=!I&&T.widgetNode;F&&d.map.push(d.pos,d.pos+C,F),!I&&d.cm.display.input.needsContentAttribute&&(F||(F=d.content.appendChild(document.createElement("span"))),F.setAttribute("cm-marker",T.id)),F&&(d.cm.display.input.setUneditable(F),d.content.appendChild(F)),d.pos+=C,d.trailingSpace=!1}function Bd(d,C,T){var I=d.markedSpans,F=d.text,ee=0;if(!I){for(var pe=1;pe<T.length;pe+=2)C.addToken(C,F.slice(ee,ee=T[pe]),Ed(T[pe+1],C.cm.options));return}for(var Se=F.length,Pe=0,Ge=1,_t="",Tt,en,Vt=0,bn,Pn,ai,gi,_i;;){if(Vt==Pe){bn=Pn=ai=en="",_i=null,gi=null,Vt=1/0;for(var yi=[],Pi=void 0,ur=0;ur<I.length;++ur){var Vi=I[ur],to=Vi.marker;if(to.type=="bookmark"&&Vi.from==Pe&&to.widgetNode)yi.push(to);else if(Vi.from<=Pe&&(Vi.to==null||Vi.to>Pe||to.collapsed&&Vi.to==Pe&&Vi.from==Pe)){if(Vi.to!=null&&Vi.to!=Pe&&Vt>Vi.to&&(Vt=Vi.to,Pn=""),to.className&&(bn+=" "+to.className),to.css&&(en=(en?en+";":"")+to.css),to.startStyle&&Vi.from==Pe&&(ai+=" "+to.startStyle),to.endStyle&&Vi.to==Vt&&(Pi||(Pi=[])).push(to.endStyle,Vi.to),to.title&&((_i||(_i={})).title=to.title),to.attributes)for(var Er in to.attributes)(_i||(_i={}))[Er]=to.attributes[Er];to.collapsed&&(!gi||lt(gi.marker,to)<0)&&(gi=Vi)}else Vi.from>Pe&&Vt>Vi.from&&(Vt=Vi.from)}if(Pi)for(var As=0;As<Pi.length;As+=2)Pi[As+1]==Vt&&(Pn+=" "+Pi[As]);if(!gi||gi.from==Pe)for(var ma=0;ma<yi.length;++ma)hc(C,0,yi[ma]);if(gi&&(gi.from||0)==Pe){if(hc(C,(gi.to==null?Se+1:gi.to)-Pe,gi.marker,gi.from==null),gi.to==null)return;gi.to==Pe&&(gi=!1)}}if(Pe>=Se)break;for(var Vr=Math.min(Se,Vt);;){if(_t){var Ms=Pe+_t.length;if(!gi){var ws=Ms>Vr?_t.slice(0,Vr-Pe):_t;C.addToken(C,ws,Tt?Tt+bn:bn,ai,Pe+ws.length==Vt?Pn:"",en,_i)}if(Ms>=Vr){_t=_t.slice(Vr-Pe),Pe=Vr;break}Pe=Ms,ai=""}_t=F.slice(ee,ee=T[Ge++]),Tt=Ed(T[Ge++],C.cm.options)}}}function Bm(d,C,T){this.line=C,this.rest=io(C),this.size=this.rest?Xe(Gn(this.rest))-T+1:1,this.node=this.text=null,this.hidden=vr(d,C)}function Sh(d,C,T){for(var I=[],F,ee=C;ee<T;ee=F){var pe=new Bm(d.doc,Si(d.doc,ee),ee);F=ee+pe.size,I.push(pe)}return I}var Od=null;function b0(d){Od?Od.ops.push(d):d.ownsGroup=Od={ops:[d],delayedCallbacks:[]}}function Yf(d){var C=d.delayedCallbacks,T=0;do{for(;T<C.length;T++)C[T].call(null);for(var I=0;I<d.ops.length;I++){var F=d.ops[I];if(F.cursorActivityHandlers)for(;F.cursorActivityCalled<F.cursorActivityHandlers.length;)F.cursorActivityHandlers[F.cursorActivityCalled++].call(null,F.cm)}}while(T<C.length)}function qf(d,C){var T=d.ownsGroup;if(T)try{Yf(T)}finally{Od=null,C(T)}}var nA=null;function as(d,C){var T=dt(d,C);if(T.length){var I=Array.prototype.slice.call(arguments,2),F;Od?F=Od.delayedCallbacks:nA?F=nA:(F=nA=[],setTimeout(Id,0));for(var ee=function(Se){F.push(function(){return T[Se].apply(null,I)})},pe=0;pe<T.length;++pe)ee(pe)}}function Id(){var d=nA;nA=null;for(var C=0;C<d.length;++C)d[C]()}function Yl(d,C,T,I){for(var F=0;F<C.changes.length;F++){var ee=C.changes[F];ee=="text"?Xh(d,C):ee=="gutter"?Eh(d,C,T,I):ee=="class"?Hf(d,C):ee=="widget"&&Bh(d,C,I)}C.changes=null}function Td(d){return d.node==d.text&&(d.node=Ce("div",null,null,"position: relative"),d.text.parentNode&&d.text.parentNode.replaceChild(d.node,d.text),d.node.appendChild(d.text),p&&g<8&&(d.node.style.zIndex=2)),d.node}function Zh(d,C){var T=C.bgClass?C.bgClass+" "+(C.line.bgClass||""):C.line.bgClass;if(T&&(T+=" CodeMirror-linebackground"),C.background)T?C.background.className=T:(C.background.parentNode.removeChild(C.background),C.background=null);else if(T){var I=Td(C);C.background=I.insertBefore(Ce("div",null,T),I.firstChild),d.display.input.setUneditable(C.background)}}function th(d,C){var T=d.display.externalMeasured;return T&&T.line==C.line?(d.display.externalMeasured=null,C.measure=T.measure,T.built):NA(d,C)}function Xh(d,C){var T=C.text.className,I=th(d,C);C.text==C.node&&(C.node=I.pre),C.text.parentNode.replaceChild(I.pre,C Line truncated
top: `+Pi+"px; width: "+(ur??Pe-yi)+`px;
height: `+(Vi-Pi)+"px"))}function Tt(yi,Pi,ur){var Vi=Si(F,yi),to=Vi.text.length,Er,As;function ma(ws,ga){return En(d,an(yi,ws),"div",Vi,ga)}function Vr(ws,ga,nu){var Ps=Uo(d,Vi,null,ws),Hs=ga=="ltr"==(nu=="after")?"left":"right",kr=nu=="after"?Ps.begin:Ps.end-(/\s/.test(Vi.text.charAt(Ps.end-1))?2:1);return ma(kr,Hs)[Hs]}var Ms=Ze(Vi,F.direction);return Qe(Ms,Pi||0,ur??to,function(ws,ga,nu,Ps){var Hs=nu=="ltr",kr=ma(ws,Hs?"left":"right"),ka=ma(ga-1,Hs?"right":"left"),iu=Pi==null&&ws==0,xc=ur==null&&ga==to,bu=Ps==0,dh=!Ms||Ps==Ms.length-1;if(ka.top-kr.top<=3){var gs=(Ge?iu:xc)&&bu,kA=(Ge?xc:iu)&&dh,Ol=gs?Se:(Hs?kr:ka).left,Mc=kA?Pe:(Hs?ka:kr).right;_t(Ol,kr.top,Mc-Ol,kr.bottom)}else{var hl,xu,ic,fd;Hs?(hl=Ge&&iu&&bu?Se:kr.left,xu=Ge?Pe:Vr(ws,nu,"before"),ic=Ge?Se:Vr(ga,nu,"after"),fd=Ge&&xc&&dh?Pe:ka.right):(hl=Ge?Vr(ws,nu,"before"):Se,xu=!Ge&&iu&&bu?Pe:kr.right,ic=!Ge&&xc&&dh?Se:ka.left,fd=Ge?Vr(ga,nu,"after"):Pe),_t(hl,kr.top,xu-hl,kr.bottom),kr.bottom<ka.top&&_t(Se,kr.bottom,null,ka.top),_t(ic,ka.top,fd-ic,ka.bottom)}(!Er||mc(kr,Er)<0)&&(Er=kr),mc(ka,Er)<0&&(Er=ka),(!As||mc(kr,As)<0)&&(As=kr),mc(ka,As)<0&&(As=ka)}),{start:Er,end:As}}var en=C.from(),Vt=C.to();if(en.line==Vt.line)Tt(en.line,en.ch,Vt.ch);else{var bn=Si(F,en.line),Pn=Si(F,Vt.line),ai=Ui(bn)==Ui(Pn),gi=Tt(en.line,en.ch,ai?bn.text.length+1:null).end,_i=Tt(Vt.line,ai?0:null,Vt.ch).start;ai&&(gi.top<_i.top-2?(_t(gi.right,gi.top,null,gi.bottom),_t(Se,_i.top,_i.left,_i.bottom)):_t(gi.right,gi.top,_i.left-gi.right,gi.bottom)),gi.bottom<_i.top&&_t(Se,gi.bottom,null,_i.top)}T.appendChild(ee)}function Uc(d){if(d.state.focused){var C=d.display;clearInterval(C.blinker);var T=!0;C.cursorDiv.style.visibility="",d.options.cursorBlinkRate>0?C.blinker=setInterval(function(){d.hasFocus()||bA(d),C.cursorDiv.style.visibility=(T=!T)?"":"hidden"},d.options.cursorBlinkRate):d.options.cursorBlinkRate<0&&(C.cursorDiv.style.visibility="hidden")}}function ks(d){d.hasFocus()||(d.display.input.focus(),d.state.focused||Ud(d))}function Th(d){d.state.delayingBlurEvent=!0,setTimeout(function(){d.state.delayingBlurEvent&&(d.state.delayingBlurEvent=!1,d.state.focused&&bA(d))},100)}function Ud(d,C){d.state.delayingBlurEvent&&!d.state.draggingText&&(d.state.delayingBlurEvent=!1),d.options.readOnly!="nocursor"&&(d.state.focused||(rt(d,"focus",d,C),d.state.focused=!0,ue(d.display.wrapper,"CodeMirror-focused"),!d.curOp&&d.display.selForContextMenu!=d.doc.sel&&(d.display.input.reset(),_&&setTimeout(function(){return d.display.input.reset(!0)},20)),d.display.input.receivedFocus()),Uc(d))}function bA(d,C){d.state.delayingBlurEvent||(d.state.focused&&(rt(d,"blur",d,C),d.state.focused=!1,Me(d.display.wrapper,"CodeMirror-focused")),clearInterval(d.display.blinker),setTimeout(function(){d.state.focused||(d.display.shift=!1)},150))}function Kd(d){for(var C=d.display,T=C.lineDiv.offsetTop,I=Math.max(0,C.scroller.getBoundingClientRect().top),F=C.lineDiv.getBoundingClientRect().top,ee=0,pe=0;pe<C.view.length;pe++){var Se=C.view[pe],Pe=d.options.lineWrapping,Ge=void 0,_t=0;if(!Se.hidden){if(F+=Se.line.height,p&&g<8){var Tt=Se.node.offsetTop+Se.node.offsetHeight;Ge=Tt-T,T=Tt}else{var en=Se.node.getBoundingClientRect();Ge=en.bottom-en.top,!Pe&&Se.text.firstChild&&(_t=Se.text.firstChild.getBoundingClientRect().right-en.left-1)}var Vt=Se.line.height-Ge;if((Vt>.005||Vt<-.005)&&(F<I&&(ee-=Vt),ea(Se.line,Ge),rh(Se.line),Se.rest))for(var bn=0;bn<Se.rest.length;bn++)rh(Se.rest[bn]);if(_t>d.display.sizerWidth){var Pn=Math.ceil(_t/Ru(d.display));Pn>d.display.maxLineLength&&(d.display.maxLineLength=Pn,d.display.maxLine=Se.line,d.display.maxLineChanged=!0)}}}Math.abs(ee)>2&&(C.scroller.scrollTop+=ee)}function rh(d){if(d.widgets)for(var C=0;C<d.widgets.length;++C){var T=d.widgets[C],I=T.node.parentNode;I&&(T.height=I.offsetHeight)}}function Ku(d,C,T){var I=T&&T.top!=null?Math.max(0,T.top):d.scroller.scrollTop;I=Math.floor(I-kc(d));var F=T&&T.bottom!=null?T.bottom:I+d.wrapper.clientHeight,ee=Bt(C,I),pe=Bt(C,F);if(T&&T.ensure){var Se=T.ensure.from.line,Pe=T.ensure.to.line;Se<ee?(ee=Se,pe=Bt(C,Qo(Si(C,Se))+d.wrapper.clientHeight)):Math.min(Pe,C.lastLine())>=pe&&(ee=Bt(C,Qo(Si(C,Pe))-d.wrapper.clientHeight),pe=Pe)}return{from:ee,to:Math.max(pe,ee+1)}}function QA(d,C){if(!tn(d,"scrollCursorIntoView")){var T=d.display,I=T.sizer.getBoundingClientRect(),F=null,ee=T.wrapper.ownerDocument;if(C.top+I.top<0?F=!0:C.bottom+I.top>(ee.defaultView.innerHeight||ee.documentElement.clientHeight)&&(F=!1),F!=null&&!$){var pe=Ce("div","​",null,`position: absolute;
top: `+(C.top-T.viewOffset-kc(d.display))+`px;
height: `+(C.bottom-C.top+GA(d)+T.barHeight)+`px;
left: `+C.left+"px; width: "+Math.max(2,C.right-C.left)+"px;");d.display.lineSpace.appendChild(pe),pe.scrollIntoView(F),d.display.lineSpace.removeChild(pe)}}}function kh(d,C,T,I){I==null&&(I=0);var F;!d.options.lineWrapping&&C==T&&(T=C.sticky=="before"?an(C.line,C.ch+1,"before"):C,C=C.ch?an(C.line,C.sticky=="before"?C.ch-1:C.ch,"after"):C);for(var ee=0;ee<5;ee++){var pe=!1,Se=Cn(d,C),Pe=!T||T==C?Se:Cn(d,T);F={left:Math.min(Se.left,Pe.left),top:Math.min(Se.top,Pe.top)-I,right:Math.max(Se.left,Pe.left),bottom:Math.max(Se.bottom,Pe.bottom)+I};var Ge=Lu(d,F),_t=d.doc.scrollTop,Tt=d.doc.scrollLeft;if(Ge.scrollTop!=null&&(oh(d,Ge.scrollTop),Math.abs(d.doc.scrollTop-_t)>1&&(pe=!0)),Ge.scrollLeft!=null&&(Ma(d,Ge.scrollLeft),Math.abs(d.doc.scrollLeft-Tt)>1&&(pe=!0)),!pe)break}return F}function id(d,C){var T=Lu(d,C);T.scrollTop!=null&&oh(d,T.scrollTop),T.scrollLeft!=null&&Ma(d,T.scrollLeft)}function Lu(d,C){var T=d.display,I=Du(d.display);C.top<0&&(C.top=0);var F=d.curOp&&d.curOp.scrollTop!=null?d.curOp.scrollTop:T.scroller.scrollTop,ee=ed(d),pe={};C.bottom-C.top>ee&&(C.bottom=C.top+ee);var Se=d.doc.height+kd(T),Pe=C.top<I,Ge=C.bottom>Se-I;if(C.top<F)pe.scrollTop=Pe?0:C.top;else if(C.bottom>F+ee){var _t=Math.min(C.top,(Ge?Se:C.bottom)-ee);_t!=F&&(pe.scrollTop=_t)}var Tt=d.options.fixedGutter?0:T.gutters.offsetWidth,en=d.curOp&&d.curOp.scrollLeft!=null?d.curOp.scrollLeft:T.scroller.scrollLeft-Tt,Vt=iA(d)-T.gutters.offsetWidth,bn=C.right-C.left>Vt;return bn&&(C.right=C.left+Vt),C.left<10?pe.scrollLeft=0:C.left<en?pe.scrollLeft=Math.max(0,C.left+Tt-(bn?0:10)):C.right>Vt+en-3&&(pe.scrollLeft=C.right+(bn?0:10)-Vt),pe}function Ul(d,C){C!=null&&(qA(d),d.curOp.scrollTop=(d.curOp.scrollTop==null?d.doc.scrollTop:d.curOp.scrollTop)+C)}function qo(d){qA(d);var C=d.getCursor();d.curOp.scrollToPos={from:C,to:C,margin:d.options.cursorScrollMargin}}function ha(d,C,T){(C!=null||T!=null)&&qA(d),C!=null&&(d.curOp.scrollLeft=C),T!=null&&(d.curOp.scrollTop=T)}function YA(d,C){qA(d),d.curOp.scrollToPos=C}function qA(d){var C=d.curOp.scrollToPos;if(C){d.curOp.scrollToPos=null;var T=ki(d,C.from),I=ki(d,C.to);Uc(d,T,I,C.margin)}}function Uc(d,C,T,I){var F=Lu(d,{left:Math.min(C.left,T.left),top:Math.min(C.top,T.top)-I,right:Math.max(C.right,T.right),bottom:Math.max(C.bottom,T.bottom)+I});ha(d,F.scrollLeft,F.scrollTop)}function oh(d,C){Math.abs(d.doc.scrollTop-C)<2||(r||Ea(d,{top:C}),ah(d,C,!0),r&&Ea(d),lh(d,100))}function ah(d,C,T){C=Math.max(0,Math.min(d.display.scroller.scrollHeight-d.display.scroller.clientHeight,C)),!(d.display.scroller.scrollTop==C&&!T)&&(d.doc.scrollTop=C,d.display.scrollbars.setScrollTop(C),d.display.scroller.scrollTop!=C&&(d.display.scroller.scrollTop=C))}function Ma(d,C,T,I){C=Math.max(0,Math.min(C,d.display.scroller.scrollWidth-d.display.scroller.clientWidth)),!((T?C==d.doc.scrollLeft:Math.abs(d.doc.scrollLeft-C)<2)&&!I)&&(d.doc.scrollLeft=C,ff(d),d.display.scroller.scrollLeft!=C&&(d.display.scroller.scrollLeft=C),d.display.scrollbars.setScrollLeft(C))}function Sa(d){var C=d.display,T=C.gutters.offsetWidth,I=Math.round(d.doc.height+kd(d.display));return{clientHeight:C.scroller.clientHeight,viewHeight:C.wrapper.clientHeight,scrollWidth:C.scroller.scrollWidth,clientWidth:C.scroller.clientWidth,viewWidth:C.wrapper.clientWidth,barLeft:d.options.fixedGutter?T:0,docHeight:I,scrollHeight:I+GA(d)+C.barHeight,nativeBarWidth:C.nativeBarWidth,gutterWidth:T}}var Jr=function(d,C,T){this.cm=T;var I=this.vert=Ce("div",[Ce("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),F=this.horiz=Ce("div",[Ce("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");I.tabIndex=F.tabIndex=-1,d(I),d(F),yt(I,"scroll",function(){I.clientHeight&&C(I.scrollTop,"vertical")}),yt(F,"scroll",function(){F.clientWidth&&C(F.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Jr.prototype.update=function(d){var C=d.scrollWidth>d.clientWidth+1,T=d.scrollHeight>d.clientHeight+1,I=d.nativeBarWidth;if(T){this.vert.style.display="block",this.vert.style.bottom=C?I+"px":"0";var F=d.viewHeight-(C?I:0);this.vert.firstChild.style.height=Math.max(0,d.scrollHeight-d.clientHeight+F)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(C){this.horiz.style.display="block",this.horiz.style.right=T?I+"px":"0",this.horiz.style.left=d.barLeft+"px";var ee=d.viewWidth-d.barLeft-(T?I:0);this.horiz.firstChild.style.width=Math.max(0,d.scrollWidth-d.clientWidth+ee)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&d.clientHeight>0&&(I==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:T?I:0,bottom:C?I:0}},Jr.prototype.setScrollLeft=function(d){this.horiz.scrollLeft!=d&&(this.horiz.scrollLeft=d),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Jr.prototype.setScrollTop=function(d){this.vert.scrollTop!=d&&(this.vert.scroll Line truncated
`},setDirection:bs(function(d){d!="rtl"&&(d="ltr"),d!=this.direction&&(this.direction=d,this.iter(function(C){return C.order=null}),this.cm&&wA(this.cm))})}),ut.prototype.eachLine=ut.prototype.iter;var ht=0;function ft(d){var C=this;if(St(C),!(tn(C,d)||du(C.display,d))){Qn(d),p&&(ht=+new Date);var T=qa(C,d,!0),I=d.dataTransfer.files;if(!(!T||C.isReadOnly()))if(I&&I.length&&window.FileReader&&window.File)for(var F=I.length,ee=Array(F),pe=0,Se=function(){++pe==F&&na(C,function(){T=qi(C.doc,T);var Vt={from:T,to:T,text:C.doc.splitLines(ee.filter(function(bn){return bn!=null}).join(C.doc.lineSeparator())),origin:"paste"};il(C.doc,Vt),gu(C.doc,$A(qi(C.doc,T),qi(C.doc,ZA(Vt))))})()},Pe=function(Vt,bn){if(C.options.allowDropFileTypes&&Ve(C.options.allowDropFileTypes,Vt.type)==-1){Se();return}var Pn=new FileReader;Pn.onerror=function(){return Se()},Pn.onload=function(){var oi=Pn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(oi)){Se();return}ee[bn]=oi,Se()},Pn.readAsText(Vt)},Ge=0;Ge<I.length;Ge++)Pe(I[Ge],Ge);else{if(C.state.draggingText&&C.doc.sel.contains(T)>-1){C.state.draggingText(d),setTimeout(function(){return C.display.input.focus()},20);return}try{var _t=d.dataTransfer.getData("Text");if(_t){var Tt;if(C.state.draggingText&&!C.state.draggingText.copy&&(Tt=C.listSelections()),yo(C.doc,$A(T,T)),Tt)for(var en=0;en<Tt.length;++en)Jl(C.doc,"",Tt[en].anchor,Tt[en].head,"drag");C.replaceSelection(_t,"around","paste"),C.display.input.focus()}}catch{}}}}function Mt(d,C){if(p&&(!d.state.draggingText||+new Date-ht<100)){Oi(C);return}if(!(tn(d,C)||du(d.display,C))&&(C.dataTransfer.setData("Text",d.getSelection()),C.dataTransfer.effectAllowed="copyMove",C.dataTransfer.setDragImage&&!N)){var T=Ce("img",null,null,"position: fixed; left: 0; top: 0;");T.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",z&&(T.width=T.height=1,d.display.wrapper.appendChild(T),T._top=T.offsetTop),C.dataTransfer.setDragImage(T,0,0),z&&T.parentNode.removeChild(T)}}function Ct(d,C){var T=qa(d,C);if(T){var I=document.createDocumentFragment();Rr(d,T,I),d.display.dragCursor||(d.display.dragCursor=Ce("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),d.display.lineSpace.insertBefore(d.display.dragCursor,d.display.cursorDiv)),ze(d.display.dragCursor,I)}}function St(d){d.display.dragCursor&&(d.display.lineSpace.removeChild(d.display.dragCursor),d.display.dragCursor=null)}function Pt(d){if(document.getElementsByClassName){for(var C=document.getElementsByClassName("CodeMirror"),T=[],I=0;I<C.length;I++){var F=C[I].CodeMirror;F&&T.push(F)}T.length&&T[0].operation(function(){for(var ee=0;ee<T.length;ee++)d(T[ee])})}}var zt=!1;function Ot(){zt||(Ht(),zt=!0)}function Ht(){var d;yt(window,"resize",function(){d==null&&(d=setTimeout(function(){d=null,Pt(fn)},100))}),yt(window,"blur",function(){return Pt(bA)})}function fn(d){var C=d.display;C.cachedCharWidth=C.cachedTextHeight=C.cachedPaddingH=null,C.scrollbarsClipped=!1,d.setSize()}for(var Jt={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},rn=0;rn<10;rn++)Jt[rn+48]=Jt[rn+96]=String(rn);for(var An=65;An<=90;An++)Jt[An]=String.fromCharCode(An);for(var $n=1;$n<=12;$n++)Jt[$n+111]=Jt[$n+63235]="F"+$n;var Yn={};Yn.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Yn.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Yn.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBeforeLine truncated
`,"start")},toggleOverwrite:function(d){return d.toggleOverwrite()}};function Rs(d,C){var T=wi(d.doc,C),I=Pi(T);return I!=T&&(C=Xe(I)),us(!0,d,I,C,1)}function JA(d,C){var T=wi(d.doc,C),I=er(T);return I!=T&&(C=Xe(I)),us(!0,d,T,C,-1)}function _c(d,C){var T=Rs(d,C.line),I=wi(d.doc,T.line),F=Ze(I,d.doc.direction);if(!F||F[0].level==0){var ee=Math.max(T.ch,I.text.search(/\S/)),pe=C.line==T.line&&C.ch<=ee&&C.ch;return an(T.line,pe?0:ee,T.sticky)}return T}function eu(d,C,T){if(typeof C=="string"&&(C=Ds[C],!C))return!1;d.display.input.ensurePolled();var I=d.display.shift,F=!1;try{d.isReadOnly()&&(d.state.suppressEdits=!0),T&&(d.display.shift=!1),F=C(d)!=vt}finally{d.display.shift=I,d.state.suppressEdits=!1}return F}function Lh(d,C,T){for(var I=0;I<d.state.keyMaps.length;I++){var F=dr(C,d.state.keyMaps[I],T,d);if(F)return F}return d.options.extraKeys&&dr(C,d.options.extraKeys,T,d)||dr(C,d.options.keyMap,T,d)}var hh=new Ke;function ec(d,C,T,I){var F=d.state.keySeq;if(F){if(xo(C))return"handled";if(/\'$/.test(C)?d.state.keySeq=null:hh.set(50,function(){d.state.keySeq==F&&(d.state.keySeq=null,d.display.input.reset())}),Gc(d,F+" "+C,T,I))return!0}return Gc(d,C,T,I)}function Gc(d,C,T,I){var F=Lh(d,C,I);return F=="multi"&&(d.state.keySeq=C),F=="handled"&&as(d,"keyHandled",d,C,T),(F=="handled"||F=="multi")&&(Qn(T),Kc(d)),!!F}function El(d,C){var T=jo(C,!0);return T?C.shiftKey&&!d.state.keySeq?ec(d,"Shift-"+T,C,function(I){return eu(d,I,!0)})||ec(d,T,C,function(I){if(typeof I=="string"?/^go[A-Z]/.test(I):I.motion)return eu(d,I)}):ec(d,T,C,function(I){return eu(d,I)}):!1}function tc(d,C,T){return ec(d,"'"+T+"'",C,function(I){return eu(d,I,!0)})}var Bl=null;function Wc(d){var C=this;if(!(d.target&&d.target!=C.display.input.getField())&&(C.curOp.focus=it(Et(C)),!tn(C,d))){p&&g<11&&d.keyCode==27&&(d.returnValue=!1);var T=d.keyCode;C.display.shift=T==16||d.shiftKey;var I=El(C,d);z&&(Bl=I?T:null,!I&&T==88&&!Ar&&(V?d.metaKey:d.ctrlKey)&&C.replaceSelection("",null,"cut")),r&&!V&&!I&&T==46&&d.shiftKey&&!d.ctrlKey&&document.execCommand&&document.execCommand("cut"),T==18&&!/\bCodeMirror-crosshair\b/.test(C.display.lineDiv.className)&&Mo(C)}}function Mo(d){var C=d.display.lineDiv;ue(C,"CodeMirror-crosshair");function T(I){(I.keyCode==18||!I.altKey)&&(Me(C,"CodeMirror-crosshair"),kt(document,"keyup",T),kt(document,"mouseover",T))}yt(document,"keyup",T),yt(document,"mouseover",T)}function ia(d){d.keyCode==16&&(this.doc.sel.shift=!1),tn(this,d)}function vu(d){var C=this;if(!(d.target&&d.target!=C.display.input.getField())&&!(du(C.display,d)||tn(C,d)||d.ctrlKey&&!d.altKey||V&&d.metaKey)){var T=d.keyCode,I=d.charCode;if(z&&T==Bl){Bl=null,Qn(d);return}if(!(z&&(!d.which||d.which<10)&&El(C,d))){var F=String.fromCharCode(I??T);F!="\b"&&(tc(C,d,F)||C.display.input.onKeyPress(d))}}}var xs=400,BA=function(d,C,T){this.time=d,this.pos=C,this.button=T};BA.prototype.compare=function(d,C,T){return this.time+xs>d&&si(C,this.pos)==0&&T==this.button};var Cu,Nu;function tu(d,C){var T=+new Date;return Nu&&Nu.compare(T,d,C)?(Cu=Nu=null,"triple"):Cu&&Cu.compare(T,d,C)?(Nu=new BA(T,d,C),Cu=null,"double"):(Cu=new BA(T,d,C),Nu=null,"single")}function Qc(d){var C=this,T=C.display;if(!(tn(C,d)||T.activeTouch&&T.input.supportsTouch())){if(T.input.ensurePolled(),T.shift=d.shiftKey,du(T,d)){_||(T.scroller.draggable=!1,setTimeout(function(){return T.scroller.draggable=!0},100));return}if(!hd(C,d)){var I=qa(C,d),F=ti(d),ee=I?tu(I,F):"single";xt(C).focus(),F==1&&C.state.selectingText&&C.state.selectingText(d),!(I&&uA(C,F,I,ee,d))&&(F==1?I?OA(C,I,ee,d):hi(d)==T.scroller&&Qn(d):F==2?(I&&XA(C.doc,I),setTimeout(function(){return T.input.focus()},20)):F==3&&(ve?C.display.input.onContextMenu(d):Th(C)))}}}function uA(d,C,T,I,F){var ee="Click";return I=="double"?ee="Double"+ee:I=="triple"&&(ee="Triple"+ee),ee=(C==1?"Left":C==2?"Middle":"Right")+ee,ec(d,fa(ee,F),F,function(pe){if(typeof pe=="string"&&(pe=Ds[pe]),!pe)return!1;var Se=!1;try{d.isReadOnly()&&(d.state.suppressEdits=!0),Se=pe(d,T)!=vt}finally{d.state.suppressEdits=!1}return Se})}function Za(d,C,T){var I=d.getOption("configureMouse"),F=I?I(d,C,T):{};if(F.unit==null){var ee=J?T.shiftKey&&T.metaKey:T.altKey;F.unit=ee?"rectangle":C=="single"?"char":C=="double"?"word":"line"}return(F.extend==null||d.doc.extend)&&(F.extend=d.doc.extend||T.shiftKey),F.addNew==null&&(F.addNew=V?T.metaKey:T.ctrlKey),F.moveOnDrag==null&&(F.moveOnDrag=!(V?T.altKey:T.ctrlKey)),F}function OA(d,C,T,I){p?setTimeout(Ut(ks,d),0):d.curOp.focus=it(Et(d));var F=Za(d,T,I),ee=d.doc.sel,pe;d.options.dragDrop&&Yi&&!d.isReadOnly()&&T=="single"&&(pe=ee.contains(C))>-1&&(si((pe=ee.ranges[pe]).from(),C)<0||C.xRel>0)&&(si(pe.to(),C)>0||C.xRel<0)?tp(d,I,C,F):TA(d,I,C,F)}function tp(d,C,T,I){var F=d.display,ee=!1,pe=na(d,function(Ge){_&&(F.scroller.draggable=!1),d.state.draggingText=!1,d.state.delayingBlurEvent&&(d.hasFocus()?d.state.delayingBlurEvent=!1:Th(d)),kt(F.wrapper.ownerDocument,"mouseup",pe),kt(F.wrapper.ownerDocument,"mousemove",Se),kt(F.scroller,"drags Line truncated
`)==C){if(I.ranges.length%cA.text.length==0){Ge=[];for(var _t=0;_t<cA.text.length;_t++)Ge.push(ee.splitLines(cA.text[_t]))}}else Pe.length==I.ranges.length&&d.options.pasteLinesPerSelection&&(Ge=On(Pe,function(mi){return[mi]}));for(var Tt=d.curOp.updateInput,en=I.ranges.length-1;en>=0;en--){var Vt=I.ranges[en],bn=Vt.from(),Pn=Vt.to();Vt.empty()&&(T&&T>0?bn=an(bn.line,bn.ch-T):d.state.overwrite&&!Se?Pn=an(Pn.line,Math.min(wi(ee,Pn.line).text.length,Pn.ch+Gn(Pe).length)):Se&&cA&&cA.lineWise&&cA.text.join(`
left: `+C.left+"px; width: "+Math.max(2,C.right-C.left)+"px;");d.display.lineSpace.appendChild(pe),pe.scrollIntoView(F),d.display.lineSpace.removeChild(pe)}}}function kh(d,C,T,I){I==null&&(I=0);var F;!d.options.lineWrapping&&C==T&&(T=C.sticky=="before"?an(C.line,C.ch+1,"before"):C,C=C.ch?an(C.line,C.sticky=="before"?C.ch-1:C.ch,"after"):C);for(var ee=0;ee<5;ee++){var pe=!1,Se=Cn(d,C),Pe=!T||T==C?Se:Cn(d,T);F={left:Math.min(Se.left,Pe.left),top:Math.min(Se.top,Pe.top)-I,right:Math.max(Se.left,Pe.left),bottom:Math.max(Se.bottom,Pe.bottom)+I};var Ge=Lu(d,F),_t=d.doc.scrollTop,Tt=d.doc.scrollLeft;if(Ge.scrollTop!=null&&(oh(d,Ge.scrollTop),Math.abs(d.doc.scrollTop-_t)>1&&(pe=!0)),Ge.scrollLeft!=null&&(Ma(d,Ge.scrollLeft),Math.abs(d.doc.scrollLeft-Tt)>1&&(pe=!0)),!pe)break}return F}function id(d,C){var T=Lu(d,C);T.scrollTop!=null&&oh(d,T.scrollTop),T.scrollLeft!=null&&Ma(d,T.scrollLeft)}function Lu(d,C){var T=d.display,I=Du(d.display);C.top<0&&(C.top=0);var F=d.curOp&&d.curOp.scrollTop!=null?d.curOp.scrollTop:T.scroller.scrollTop,ee=ed(d),pe={};C.bottom-C.top>ee&&(C.bottom=C.top+ee);var Se=d.doc.height+kd(T),Pe=C.top<I,Ge=C.bottom>Se-I;if(C.top<F)pe.scrollTop=Pe?0:C.top;else if(C.bottom>F+ee){var _t=Math.min(C.top,(Ge?Se:C.bottom)-ee);_t!=F&&(pe.scrollTop=_t)}var Tt=d.options.fixedGutter?0:T.gutters.offsetWidth,en=d.curOp&&d.curOp.scrollLeft!=null?d.curOp.scrollLeft:T.scroller.scrollLeft-Tt,Vt=iA(d)-T.gutters.offsetWidth,bn=C.right-C.left>Vt;return bn&&(C.right=C.left+Vt),C.left<10?pe.scrollLeft=0:C.left<en?pe.scrollLeft=Math.max(0,C.left+Tt-(bn?0:10)):C.right>Vt+en-3&&(pe.scrollLeft=C.right+(bn?0:10)-Vt),pe}function Kl(d,C){C!=null&&(qA(d),d.curOp.scrollTop=(d.curOp.scrollTop==null?d.doc.scrollTop:d.curOp.scrollTop)+C)}function qo(d){qA(d);var C=d.getCursor();d.curOp.scrollToPos={from:C,to:C,margin:d.options.cursorScrollMargin}}function ha(d,C,T){(C!=null||T!=null)&&qA(d),C!=null&&(d.curOp.scrollLeft=C),T!=null&&(d.curOp.scrollTop=T)}function YA(d,C){qA(d),d.curOp.scrollToPos=C}function qA(d){var C=d.curOp.scrollToPos;if(C){d.curOp.scrollToPos=null;var T=Di(d,C.from),I=Di(d,C.to);Kc(d,T,I,C.margin)}}function Kc(d,C,T,I){var F=Lu(d,{left:Math.min(C.left,T.left),top:Math.min(C.top,T.top)-I,right:Math.max(C.right,T.right),bottom:Math.max(C.bottom,T.bottom)+I});ha(d,F.scrollLeft,F.scrollTop)}function oh(d,C){Math.abs(d.doc.scrollTop-C)<2||(r||Ea(d,{top:C}),ah(d,C,!0),r&&Ea(d),lh(d,100))}function ah(d,C,T){C=Math.max(0,Math.min(d.display.scroller.scrollHeight-d.display.scroller.clientHeight,C)),!(d.display.scroller.scrollTop==C&&!T)&&(d.doc.scrollTop=C,d.display.scrollbars.setScrollTop(C),d.display.scroller.scrollTop!=C&&(d.display.scroller.scrollTop=C))}function Ma(d,C,T,I){C=Math.max(0,Math.min(C,d.display.scroller.scrollWidth-d.display.scroller.clientWidth)),!((T?C==d.doc.scrollLeft:Math.abs(d.doc.scrollLeft-C)<2)&&!I)&&(d.doc.scrollLeft=C,ff(d),d.display.scroller.scrollLeft!=C&&(d.display.scroller.scrollLeft=C),d.display.scrollbars.setScrollLeft(C))}function Sa(d){var C=d.display,T=C.gutters.offsetWidth,I=Math.round(d.doc.height+kd(d.display));return{clientHeight:C.scroller.clientHeight,viewHeight:C.wrapper.clientHeight,scrollWidth:C.scroller.scrollWidth,clientWidth:C.scroller.clientWidth,viewWidth:C.wrapper.clientWidth,barLeft:d.options.fixedGutter?T:0,docHeight:I,scrollHeight:I+GA(d)+C.barHeight,nativeBarWidth:C.nativeBarWidth,gutterWidth:T}}var Jr=function(d,C,T){this.cm=T;var I=this.vert=Ce("div",[Ce("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),F=this.horiz=Ce("div",[Ce("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");I.tabIndex=F.tabIndex=-1,d(I),d(F),yt(I,"scroll",function(){I.clientHeight&&C(I.scrollTop,"vertical")}),yt(F,"scroll",function(){F.clientWidth&&C(F.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Jr.prototype.update=function(d){var C=d.scrollWidth>d.clientWidth+1,T=d.scrollHeight>d.clientHeight+1,I=d.nativeBarWidth;if(T){this.vert.style.display="block",this.vert.style.bottom=C?I+"px":"0";var F=d.viewHeight-(C?I:0);this.vert.firstChild.style.height=Math.max(0,d.scrollHeight-d.clientHeight+F)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(C){this.horiz.style.display="block",this.horiz.style.right=T?I+"px":"0",this.horiz.style.left=d.barLeft+"px";var ee=d.viewWidth-d.barLeft-(T?I:0);this.horiz.firstChild.style.width=Math.max(0,d.scrollWidth-d.clientWidth+ee)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&d.clientHeight>0&&(I==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:T?I:0,bottom:C?I:0}},Jr.prototype.setScrollLeft=function(d){this.horiz.scrollLeft!=d&&(this.horiz.scrollLeft=d),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Jr.prototype.setScrollTop=function(d){this.vert.scrollTop!=d&&(this.vert.scroll Line truncated
`},setDirection:bs(function(d){d!="rtl"&&(d="ltr"),d!=this.direction&&(this.direction=d,this.iter(function(C){return C.order=null}),this.cm&&wA(this.cm))})}),ut.prototype.eachLine=ut.prototype.iter;var ht=0;function ft(d){var C=this;if(St(C),!(tn(C,d)||du(C.display,d))){Qn(d),p&&(ht=+new Date);var T=qa(C,d,!0),I=d.dataTransfer.files;if(!(!T||C.isReadOnly()))if(I&&I.length&&window.FileReader&&window.File)for(var F=I.length,ee=Array(F),pe=0,Se=function(){++pe==F&&na(C,function(){T=Hi(C.doc,T);var Vt={from:T,to:T,text:C.doc.splitLines(ee.filter(function(bn){return bn!=null}).join(C.doc.lineSeparator())),origin:"paste"};il(C.doc,Vt),gu(C.doc,$A(Hi(C.doc,T),Hi(C.doc,ZA(Vt))))})()},Pe=function(Vt,bn){if(C.options.allowDropFileTypes&&Ve(C.options.allowDropFileTypes,Vt.type)==-1){Se();return}var Pn=new FileReader;Pn.onerror=function(){return Se()},Pn.onload=function(){var ai=Pn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ai)){Se();return}ee[bn]=ai,Se()},Pn.readAsText(Vt)},Ge=0;Ge<I.length;Ge++)Pe(I[Ge],Ge);else{if(C.state.draggingText&&C.doc.sel.contains(T)>-1){C.state.draggingText(d),setTimeout(function(){return C.display.input.focus()},20);return}try{var _t=d.dataTransfer.getData("Text");if(_t){var Tt;if(C.state.draggingText&&!C.state.draggingText.copy&&(Tt=C.listSelections()),yo(C.doc,$A(T,T)),Tt)for(var en=0;en<Tt.length;++en)Jl(C.doc,"",Tt[en].anchor,Tt[en].head,"drag");C.replaceSelection(_t,"around","paste"),C.display.input.focus()}}catch{}}}}function Mt(d,C){if(p&&(!d.state.draggingText||+new Date-ht<100)){Ii(C);return}if(!(tn(d,C)||du(d.display,C))&&(C.dataTransfer.setData("Text",d.getSelection()),C.dataTransfer.effectAllowed="copyMove",C.dataTransfer.setDragImage&&!N)){var T=Ce("img",null,null,"position: fixed; left: 0; top: 0;");T.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",z&&(T.width=T.height=1,d.display.wrapper.appendChild(T),T._top=T.offsetTop),C.dataTransfer.setDragImage(T,0,0),z&&T.parentNode.removeChild(T)}}function Ct(d,C){var T=qa(d,C);if(T){var I=document.createDocumentFragment();Pr(d,T,I),d.display.dragCursor||(d.display.dragCursor=Ce("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),d.display.lineSpace.insertBefore(d.display.dragCursor,d.display.cursorDiv)),ze(d.display.dragCursor,I)}}function St(d){d.display.dragCursor&&(d.display.lineSpace.removeChild(d.display.dragCursor),d.display.dragCursor=null)}function Pt(d){if(document.getElementsByClassName){for(var C=document.getElementsByClassName("CodeMirror"),T=[],I=0;I<C.length;I++){var F=C[I].CodeMirror;F&&T.push(F)}T.length&&T[0].operation(function(){for(var ee=0;ee<T.length;ee++)d(T[ee])})}}var zt=!1;function Ot(){zt||(Ht(),zt=!0)}function Ht(){var d;yt(window,"resize",function(){d==null&&(d=setTimeout(function(){d=null,Pt(fn)},100))}),yt(window,"blur",function(){return Pt(bA)})}function fn(d){var C=d.display;C.cachedCharWidth=C.cachedTextHeight=C.cachedPaddingH=null,C.scrollbarsClipped=!1,d.setSize()}for(var Jt={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},rn=0;rn<10;rn++)Jt[rn+48]=Jt[rn+96]=String(rn);for(var An=65;An<=90;An++)Jt[An]=String.fromCharCode(An);for(var $n=1;$n<=12;$n++)Jt[$n+111]=Jt[$n+63235]="F"+$n;var Yn={};Yn.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Yn.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Yn.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBeforeLine truncated
`,"start")},toggleOverwrite:function(d){return d.toggleOverwrite()}};function Rs(d,C){var T=Si(d.doc,C),I=Ui(T);return I!=T&&(C=Xe(I)),us(!0,d,I,C,1)}function JA(d,C){var T=Si(d.doc,C),I=tr(T);return I!=T&&(C=Xe(I)),us(!0,d,T,C,-1)}function _c(d,C){var T=Rs(d,C.line),I=Si(d.doc,T.line),F=Ze(I,d.doc.direction);if(!F||F[0].level==0){var ee=Math.max(T.ch,I.text.search(/\S/)),pe=C.line==T.line&&C.ch<=ee&&C.ch;return an(T.line,pe?0:ee,T.sticky)}return T}function eu(d,C,T){if(typeof C=="string"&&(C=Ds[C],!C))return!1;d.display.input.ensurePolled();var I=d.display.shift,F=!1;try{d.isReadOnly()&&(d.state.suppressEdits=!0),T&&(d.display.shift=!1),F=C(d)!=vt}finally{d.display.shift=I,d.state.suppressEdits=!1}return F}function Lh(d,C,T){for(var I=0;I<d.state.keyMaps.length;I++){var F=fr(C,d.state.keyMaps[I],T,d);if(F)return F}return d.options.extraKeys&&fr(C,d.options.extraKeys,T,d)||fr(C,d.options.keyMap,T,d)}var hh=new Ue;function ec(d,C,T,I){var F=d.state.keySeq;if(F){if(xo(C))return"handled";if(/\'$/.test(C)?d.state.keySeq=null:hh.set(50,function(){d.state.keySeq==F&&(d.state.keySeq=null,d.display.input.reset())}),Gc(d,F+" "+C,T,I))return!0}return Gc(d,C,T,I)}function Gc(d,C,T,I){var F=Lh(d,C,I);return F=="multi"&&(d.state.keySeq=C),F=="handled"&&as(d,"keyHandled",d,C,T),(F=="handled"||F=="multi")&&(Qn(T),Uc(d)),!!F}function El(d,C){var T=jo(C,!0);return T?C.shiftKey&&!d.state.keySeq?ec(d,"Shift-"+T,C,function(I){return eu(d,I,!0)})||ec(d,T,C,function(I){if(typeof I=="string"?/^go[A-Z]/.test(I):I.motion)return eu(d,I)}):ec(d,T,C,function(I){return eu(d,I)}):!1}function tc(d,C,T){return ec(d,"'"+T+"'",C,function(I){return eu(d,I,!0)})}var Bl=null;function Wc(d){var C=this;if(!(d.target&&d.target!=C.display.input.getField())&&(C.curOp.focus=it(Et(C)),!tn(C,d))){p&&g<11&&d.keyCode==27&&(d.returnValue=!1);var T=d.keyCode;C.display.shift=T==16||d.shiftKey;var I=El(C,d);z&&(Bl=I?T:null,!I&&T==88&&!cr&&(V?d.metaKey:d.ctrlKey)&&C.replaceSelection("",null,"cut")),r&&!V&&!I&&T==46&&d.shiftKey&&!d.ctrlKey&&document.execCommand&&document.execCommand("cut"),T==18&&!/\bCodeMirror-crosshair\b/.test(C.display.lineDiv.className)&&Mo(C)}}function Mo(d){var C=d.display.lineDiv;ue(C,"CodeMirror-crosshair");function T(I){(I.keyCode==18||!I.altKey)&&(Me(C,"CodeMirror-crosshair"),kt(document,"keyup",T),kt(document,"mouseover",T))}yt(document,"keyup",T),yt(document,"mouseover",T)}function ia(d){d.keyCode==16&&(this.doc.sel.shift=!1),tn(this,d)}function vu(d){var C=this;if(!(d.target&&d.target!=C.display.input.getField())&&!(du(C.display,d)||tn(C,d)||d.ctrlKey&&!d.altKey||V&&d.metaKey)){var T=d.keyCode,I=d.charCode;if(z&&T==Bl){Bl=null,Qn(d);return}if(!(z&&(!d.which||d.which<10)&&El(C,d))){var F=String.fromCharCode(I??T);F!="\b"&&(tc(C,d,F)||C.display.input.onKeyPress(d))}}}var xs=400,BA=function(d,C,T){this.time=d,this.pos=C,this.button=T};BA.prototype.compare=function(d,C,T){return this.time+xs>d&&li(C,this.pos)==0&&T==this.button};var Cu,Nu;function tu(d,C){var T=+new Date;return Nu&&Nu.compare(T,d,C)?(Cu=Nu=null,"triple"):Cu&&Cu.compare(T,d,C)?(Nu=new BA(T,d,C),Cu=null,"double"):(Cu=new BA(T,d,C),Nu=null,"single")}function Qc(d){var C=this,T=C.display;if(!(tn(C,d)||T.activeTouch&&T.input.supportsTouch())){if(T.input.ensurePolled(),T.shift=d.shiftKey,du(T,d)){_||(T.scroller.draggable=!1,setTimeout(function(){return T.scroller.draggable=!0},100));return}if(!hd(C,d)){var I=qa(C,d),F=ti(d),ee=I?tu(I,F):"single";xt(C).focus(),F==1&&C.state.selectingText&&C.state.selectingText(d),!(I&&uA(C,F,I,ee,d))&&(F==1?I?OA(C,I,ee,d):di(d)==T.scroller&&Qn(d):F==2?(I&&XA(C.doc,I),setTimeout(function(){return T.input.focus()},20)):F==3&&(ve?C.display.input.onContextMenu(d):Th(C)))}}}function uA(d,C,T,I,F){var ee="Click";return I=="double"?ee="Double"+ee:I=="triple"&&(ee="Triple"+ee),ee=(C==1?"Left":C==2?"Middle":"Right")+ee,ec(d,fa(ee,F),F,function(pe){if(typeof pe=="string"&&(pe=Ds[pe]),!pe)return!1;var Se=!1;try{d.isReadOnly()&&(d.state.suppressEdits=!0),Se=pe(d,T)!=vt}finally{d.state.suppressEdits=!1}return Se})}function Za(d,C,T){var I=d.getOption("configureMouse"),F=I?I(d,C,T):{};if(F.unit==null){var ee=J?T.shiftKey&&T.metaKey:T.altKey;F.unit=ee?"rectangle":C=="single"?"char":C=="double"?"word":"line"}return(F.extend==null||d.doc.extend)&&(F.extend=d.doc.extend||T.shiftKey),F.addNew==null&&(F.addNew=V?T.metaKey:T.ctrlKey),F.moveOnDrag==null&&(F.moveOnDrag=!(V?T.altKey:T.ctrlKey)),F}function OA(d,C,T,I){p?setTimeout(Kt(ks,d),0):d.curOp.focus=it(Et(d));var F=Za(d,T,I),ee=d.doc.sel,pe;d.options.dragDrop&&qi&&!d.isReadOnly()&&T=="single"&&(pe=ee.contains(C))>-1&&(li((pe=ee.ranges[pe]).from(),C)<0||C.xRel>0)&&(li(pe.to(),C)>0||C.xRel<0)?tp(d,I,C,F):TA(d,I,C,F)}function tp(d,C,T,I){var F=d.display,ee=!1,pe=na(d,function(Ge){_&&(F.scroller.draggable=!1),d.state.draggingText=!1,d.state.delayingBlurEvent&&(d.hasFocus()?d.state.delayingBlurEvent=!1:Th(d)),kt(F.wrapper.ownerDocument,"mouseup",pe),kt(F.wrapper.ownerDocument,"mousemove",Se),kt(F.scroller,"drags Line truncated
`)==C){if(I.ranges.length%cA.text.length==0){Ge=[];for(var _t=0;_t<cA.text.length;_t++)Ge.push(ee.splitLines(cA.text[_t]))}}else Pe.length==I.ranges.length&&d.options.pasteLinesPerSelection&&(Ge=On(Pe,function(gi){return[gi]}));for(var Tt=d.curOp.updateInput,en=I.ranges.length-1;en>=0;en--){var Vt=I.ranges[en],bn=Vt.from(),Pn=Vt.to();Vt.empty()&&(T&&T>0?bn=an(bn.line,bn.ch-T):d.state.overwrite&&!Se?Pn=an(Pn.line,Math.min(Si(ee,Pn.line).text.length,Pn.ch+Gn(Pe).length)):Se&&cA&&cA.lineWise&&cA.text.join(`
`)==Pe.join(`
`)&&(bn=Pn=an(bn.line,0)));var oi={from:bn,to:Pn,text:Ge?Ge[en%Ge.length]:Pe,origin:F||(Se?"paste":d.state.cutIncoming>pe?"cut":"+input")};il(d.doc,oi),as(d,"inputRead",d,oi)}C&&!Se&&ap(d,C),qo(d),d.curOp.updateInput<2&&(d.curOp.updateInput=Tt),d.curOp.typing=!0,d.state.pasteIncoming=d.state.cutIncoming=-1}function ms(d,C){var T=d.clipboardData&&d.clipboardData.getData("Text");if(T)return d.preventDefault(),!C.isReadOnly()&&!C.options.disableInput&&C.hasFocus()&&Ha(C,function(){return rl(C,T,0,null,"paste")}),!0}function ap(d,C){if(!(!d.options.electricChars||!d.options.smartIndent))for(var T=d.doc.sel,I=T.ranges.length-1;I>=0;I--){var F=T.ranges[I];if(!(F.head.ch>100||I&&T.ranges[I-1].head.line==F.head.line)){var ee=d.getModeAt(F.head),pe=!1;if(ee.electricChars){for(var Se=0;Se<ee.electricChars.length;Se++)if(C.indexOf(ee.electricChars.charAt(Se))>-1){pe=op(d,F.head.line,"smart");break}}else ee.electricInput&&ee.electricInput.test(wi(d.doc,F.head.line).text.slice(0,F.head.ch))&&(pe=op(d,F.head.line,"smart"));pe&&as(d,"electricInput",d,F.head.line)}}}function Wp(d){for(var C=[],T=[],I=0;I<d.doc.sel.ranges.length;I++){var F=d.doc.sel.ranges[I].head.line,ee={anchor:an(F,0),head:an(F+1,0)};T.push(ee),C.push(d.getRange(ee.anchor,ee.head))}return{text:C,ranges:T}}function sp(d,C,T,I){d.setAttribute("autocorrect",T?"on":"off"),d.setAttribute("autocapitalize",I?"on":"off"),d.setAttribute("spellcheck",!!C)}function Cf(){var d=Ce("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),C=Ce("div",[d],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return _?d.style.width="1000px":d.setAttribute("wrap","off"),X&&(d.style.border="1px solid black"),C}function Nd(d){var C=d.optionHandlers,T=d.helpers={};d.prototype={constructor:d,focus:function(){xt(this).focus(),this.display.input.focus()},setOption:function(I,F){var ee=this.options,pe=ee[I];ee[I]==F&&I!="mode"||(ee[I]=F,C.hasOwnProperty(I)&&na(this,C[I])(this,F,pe),rt(this,"optionChange",this,I))},getOption:function(I){return this.options[I]},getDoc:function(){return this.doc},addKeyMap:function(I,F){this.state.keyMaps[F?"push":"unshift"](ja(I))},removeKeyMap:function(I){for(var F=this.state.keyMaps,ee=0;ee<F.length;++ee)if(F[ee]==I||F[ee].name==I)return F.splice(ee,1),!0},addOverlay:vr(function(I,F){var ee=I.token?I:d.getMode(this.options,I);if(ee.startState)throw new Error("Overlays may not be stateful.");Bn(this.state.overlays,{mode:ee,modeSpec:I,opaque:F&&F.opaque,priority:F&&F.priority||0},function(pe){return pe.priority}),this.state.modeGen++,Ts(this)}),removeOverlay:vr(function(I){for(var F=this.state.overlays,ee=0;ee<F.length;++ee){var pe=F[ee].modeSpec;if(pe==I||typeof I=="string"&&pe.name==I){F.splice(ee,1),this.state.modeGen++,Ts(this);return}}}),indentLine:vr(function(I,F,ee){typeof F!="string"&&typeof F!="number"&&(F==null?F=this.options.smartIndent?"smart":"prev":F=F?"add":"subtract"),Mn(this.doc,I)&&op(this,I,F,ee)}),indentSelection:vr(function(I){for(var F=this.doc.sel.ranges,ee=-1,pe=0;pe<F.length;pe++){var Se=F[pe];if(Se.empty())Se.head.line>ee&&(op(this,Se.head.line,I,!0),ee=Se.head.line,pe==this.doc.sel.primIndex&&qo(this));else{var Pe=Se.from(),Ge=Se.to(),_t=Math.max(ee,Pe.line);ee=Math.min(this.lastLine(),Ge.line-(Ge.ch?0:1))+1;for(var Tt=_t;Tt<ee;++Tt)op(this,Tt,I);var en=this.doc.sel.ranges;Pe.ch==0&&F.length==en.length&&en[pe].from().ch>0&&Di(this.doc,pe,new eo(Pe,en[pe].to()),It)}}}),getTokenAt:function(I,F){return Wl(this,I,F)},getLineTokens:function(I,F){return Wl(this,an(I),F,!0)},getTokenTypeAt:function(I){I=qi(this.doc,I);var F=Xs(this,wi(this.doc,I.line)),ee=0,pe=(F.length-1)/2,Se=I.ch,Pe;if(Se==0)Pe=F[2];else for(;;){var Ge=ee+pe>>1;if((Ge?F[Ge*2-1]:0)>=Se)pe=Ge;else if(F[Ge*2+1]<Se)ee=Ge+1;else{Pe=F[Ge*2+2];break}}var _t=Pe?Pe.indexOf("overlay "):-1;return _t<0?Pe:_t==0?null:Pe.slice(0,_t-1)},getModeAt:function(I){var F=this.doc.mode;return F.innerMode?d.innerMode(F,this.getTokenAt(I).state).mode:F},getHelper:function(I,F){return this.getHelpers(I,F)[0]},getHelpers:function(I,F){var ee=[];if(!T.hasOwnProperty(F))return ee;var pe=T[F],Se=this.getModeAt(I);if(typeof Se[F]=="string")pe[Se[F]]&&ee.push(pe[Se[F]]);else if(Se[F])for(var Pe=0;Pe<Se[F].length;Pe++){var Ge=pe[Se[F][Pe]];Ge&&ee.push(Ge)}else Se.helperType&&pe[Se.helperType]?ee.push(pe[Se.helperType]):pe[Se.name]&&ee.push(pe[Se.name]);for(var _t=0;_t<pe._global.length;_t++){var Tt=pe._global[_t];Tt.pred(Se,this)&&Ve(ee,Tt.val)==-1&&ee.push(Tt.val)}return ee},getStateAfter:function(I,F){var ee=this.doc;return I=Ju(ee,I??ee.first+ee.size-1),ta(this,I+1,F).state},cursorCoords:function(I,F){var ee,pe=this.doc.sel.primary();return I==null?ee=pe.head:typeof I=="object"?ee=qi(this.doc,I):ee=I?pe.from():pe.to(),Cn(this,ee,F||"page")},charCoords:function(I,F){return En(this,qi(this.doc,I),F||"page")},coordsChar:function(I,F){return I=Xt(this,I,F||"page"),ko(this,I.left,I.top)},lineAtHeight:functio Line truncated
`,oi=De(Pn,Vt)?"w":en&&Pn==`
`?"n":!en||/\s/.test(Pn)?null:"p";if(en&&!bn&&!oi&&(oi="s"),Tt&&Tt!=oi){T<0&&(T=1,_t(),C.sticky="after");break}if(oi&&(Tt=oi),T>0&&!_t(!bn))break}var mi=Va(d,C,ee,pe,!0);return no(ee,mi)&&(mi.hitSide=!0),mi}function _f(d,C,T,I){var F=d.doc,ee=C.left,pe;if(I=="page"){var Se=Math.min(d.display.wrapper.clientHeight,xt(d).innerHeight||F(d).documentElement.clientHeight),Pe=Math.max(Se-.5*Du(d.display),3);pe=(T>0?C.bottom:C.top)+T*Pe}else I=="line"&&(pe=T>0?C.bottom+3:C.top-3);for(var Ge;Ge=ko(d,ee,pe),!!Ge.outside;){if(T<0?pe<=0:pe>=F.height){Ge.hitSide=!0;break}pe+=T*5}return Ge}var oa=function(d){this.cm=d,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ke,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};oa.prototype.init=function(d){var C=this,T=this,I=T.cm,F=T.div=d.lineDiv;F.contentEditable=!0,sp(F,I.options.spellcheck,I.options.autocorrect,I.options.autocapitalize);function ee(Se){for(var Pe=Se.target;Pe;Pe=Pe.parentNode){if(Pe==F)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Pe.className))break}return!1}yt(F,"paste",function(Se){!ee(Se)||tn(I,Se)||ms(Se,I)||g<=11&&setTimeout(na(I,function(){return C.updateFromDOM()}),20)}),yt(F,"compositionstart",function(Se){C.composing={data:Se.data,done:!1}}),yt(F,"compositionupdate",function(Se){C.composing||(C.composing={data:Se.data,done:!1})}),yt(F,"compositionend",function(Se){C.composing&&(Se.data!=C.composing.data&&C.readFromDOMSoon(),C.composing.done=!0)}),yt(F,"touchstart",function(){return T.forceCompositionEnd()}),yt(F,"input",function(){C.composing||C.readFromDOMSoon()});function pe(Se){if(!(!ee(Se)||tn(I,Se))){if(I.somethingSelected())jd({lineWise:!1,text:I.getSelections()}),Se.type=="cut"&&I.replaceSelection("",null,"cut");else if(I.options.lineWiseCopyCut){var Pe=Wp(I);jd({lineWise:!0,text:Pe.text}),Se.type=="cut"&&I.operation(function(){I.setSelections(Pe.ranges,0,It),I.replaceSelection("",null,"cut")})}else return;if(Se.clipboardData){Se.clipboardData.clearData();var Ge=cA.text.join(`
`)&&(bn=Pn=an(bn.line,0)));var ai={from:bn,to:Pn,text:Ge?Ge[en%Ge.length]:Pe,origin:F||(Se?"paste":d.state.cutIncoming>pe?"cut":"+input")};il(d.doc,ai),as(d,"inputRead",d,ai)}C&&!Se&&ap(d,C),qo(d),d.curOp.updateInput<2&&(d.curOp.updateInput=Tt),d.curOp.typing=!0,d.state.pasteIncoming=d.state.cutIncoming=-1}function ms(d,C){var T=d.clipboardData&&d.clipboardData.getData("Text");if(T)return d.preventDefault(),!C.isReadOnly()&&!C.options.disableInput&&C.hasFocus()&&Ha(C,function(){return rl(C,T,0,null,"paste")}),!0}function ap(d,C){if(!(!d.options.electricChars||!d.options.smartIndent))for(var T=d.doc.sel,I=T.ranges.length-1;I>=0;I--){var F=T.ranges[I];if(!(F.head.ch>100||I&&T.ranges[I-1].head.line==F.head.line)){var ee=d.getModeAt(F.head),pe=!1;if(ee.electricChars){for(var Se=0;Se<ee.electricChars.length;Se++)if(C.indexOf(ee.electricChars.charAt(Se))>-1){pe=op(d,F.head.line,"smart");break}}else ee.electricInput&&ee.electricInput.test(Si(d.doc,F.head.line).text.slice(0,F.head.ch))&&(pe=op(d,F.head.line,"smart"));pe&&as(d,"electricInput",d,F.head.line)}}}function Wp(d){for(var C=[],T=[],I=0;I<d.doc.sel.ranges.length;I++){var F=d.doc.sel.ranges[I].head.line,ee={anchor:an(F,0),head:an(F+1,0)};T.push(ee),C.push(d.getRange(ee.anchor,ee.head))}return{text:C,ranges:T}}function sp(d,C,T,I){d.setAttribute("autocorrect",T?"on":"off"),d.setAttribute("autocapitalize",I?"on":"off"),d.setAttribute("spellcheck",!!C)}function Cf(){var d=Ce("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),C=Ce("div",[d],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return _?d.style.width="1000px":d.setAttribute("wrap","off"),X&&(d.style.border="1px solid black"),C}function Nd(d){var C=d.optionHandlers,T=d.helpers={};d.prototype={constructor:d,focus:function(){xt(this).focus(),this.display.input.focus()},setOption:function(I,F){var ee=this.options,pe=ee[I];ee[I]==F&&I!="mode"||(ee[I]=F,C.hasOwnProperty(I)&&na(this,C[I])(this,F,pe),rt(this,"optionChange",this,I))},getOption:function(I){return this.options[I]},getDoc:function(){return this.doc},addKeyMap:function(I,F){this.state.keyMaps[F?"push":"unshift"](ja(I))},removeKeyMap:function(I){for(var F=this.state.keyMaps,ee=0;ee<F.length;++ee)if(F[ee]==I||F[ee].name==I)return F.splice(ee,1),!0},addOverlay:Cr(function(I,F){var ee=I.token?I:d.getMode(this.options,I);if(ee.startState)throw new Error("Overlays may not be stateful.");Bn(this.state.overlays,{mode:ee,modeSpec:I,opaque:F&&F.opaque,priority:F&&F.priority||0},function(pe){return pe.priority}),this.state.modeGen++,Ts(this)}),removeOverlay:Cr(function(I){for(var F=this.state.overlays,ee=0;ee<F.length;++ee){var pe=F[ee].modeSpec;if(pe==I||typeof I=="string"&&pe.name==I){F.splice(ee,1),this.state.modeGen++,Ts(this);return}}}),indentLine:Cr(function(I,F,ee){typeof F!="string"&&typeof F!="number"&&(F==null?F=this.options.smartIndent?"smart":"prev":F=F?"add":"subtract"),Mn(this.doc,I)&&op(this,I,F,ee)}),indentSelection:Cr(function(I){for(var F=this.doc.sel.ranges,ee=-1,pe=0;pe<F.length;pe++){var Se=F[pe];if(Se.empty())Se.head.line>ee&&(op(this,Se.head.line,I,!0),ee=Se.head.line,pe==this.doc.sel.primIndex&&qo(this));else{var Pe=Se.from(),Ge=Se.to(),_t=Math.max(ee,Pe.line);ee=Math.min(this.lastLine(),Ge.line-(Ge.ch?0:1))+1;for(var Tt=_t;Tt<ee;++Tt)op(this,Tt,I);var en=this.doc.sel.ranges;Pe.ch==0&&F.length==en.length&&en[pe].from().ch>0&&Ri(this.doc,pe,new eo(Pe,en[pe].to()),It)}}}),getTokenAt:function(I,F){return Wl(this,I,F)},getLineTokens:function(I,F){return Wl(this,an(I),F,!0)},getTokenTypeAt:function(I){I=Hi(this.doc,I);var F=Xs(this,Si(this.doc,I.line)),ee=0,pe=(F.length-1)/2,Se=I.ch,Pe;if(Se==0)Pe=F[2];else for(;;){var Ge=ee+pe>>1;if((Ge?F[Ge*2-1]:0)>=Se)pe=Ge;else if(F[Ge*2+1]<Se)ee=Ge+1;else{Pe=F[Ge*2+2];break}}var _t=Pe?Pe.indexOf("overlay "):-1;return _t<0?Pe:_t==0?null:Pe.slice(0,_t-1)},getModeAt:function(I){var F=this.doc.mode;return F.innerMode?d.innerMode(F,this.getTokenAt(I).state).mode:F},getHelper:function(I,F){return this.getHelpers(I,F)[0]},getHelpers:function(I,F){var ee=[];if(!T.hasOwnProperty(F))return ee;var pe=T[F],Se=this.getModeAt(I);if(typeof Se[F]=="string")pe[Se[F]]&&ee.push(pe[Se[F]]);else if(Se[F])for(var Pe=0;Pe<Se[F].length;Pe++){var Ge=pe[Se[F][Pe]];Ge&&ee.push(Ge)}else Se.helperType&&pe[Se.helperType]?ee.push(pe[Se.helperType]):pe[Se.name]&&ee.push(pe[Se.name]);for(var _t=0;_t<pe._global.length;_t++){var Tt=pe._global[_t];Tt.pred(Se,this)&&Ve(ee,Tt.val)==-1&&ee.push(Tt.val)}return ee},getStateAfter:function(I,F){var ee=this.doc;return I=Ju(ee,I??ee.first+ee.size-1),ta(this,I+1,F).state},cursorCoords:function(I,F){var ee,pe=this.doc.sel.primary();return I==null?ee=pe.head:typeof I=="object"?ee=Hi(this.doc,I):ee=I?pe.from():pe.to(),Cn(this,ee,F||"page")},charCoords:function(I,F){return En(this,Hi(this.doc,I),F||"page")},coordsChar:function(I,F){return I=Xt(this,I,F||"page"),ko(this,I.left,I.top)},lineAtHeight:functio Line truncated
`,ai=De(Pn,Vt)?"w":en&&Pn==`
`?"n":!en||/\s/.test(Pn)?null:"p";if(en&&!bn&&!ai&&(ai="s"),Tt&&Tt!=ai){T<0&&(T=1,_t(),C.sticky="after");break}if(ai&&(Tt=ai),T>0&&!_t(!bn))break}var gi=Va(d,C,ee,pe,!0);return no(ee,gi)&&(gi.hitSide=!0),gi}function _f(d,C,T,I){var F=d.doc,ee=C.left,pe;if(I=="page"){var Se=Math.min(d.display.wrapper.clientHeight,xt(d).innerHeight||F(d).documentElement.clientHeight),Pe=Math.max(Se-.5*Du(d.display),3);pe=(T>0?C.bottom:C.top)+T*Pe}else I=="line"&&(pe=T>0?C.bottom+3:C.top-3);for(var Ge;Ge=ko(d,ee,pe),!!Ge.outside;){if(T<0?pe<=0:pe>=F.height){Ge.hitSide=!0;break}pe+=T*5}return Ge}var oa=function(d){this.cm=d,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ue,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};oa.prototype.init=function(d){var C=this,T=this,I=T.cm,F=T.div=d.lineDiv;F.contentEditable=!0,sp(F,I.options.spellcheck,I.options.autocorrect,I.options.autocapitalize);function ee(Se){for(var Pe=Se.target;Pe;Pe=Pe.parentNode){if(Pe==F)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Pe.className))break}return!1}yt(F,"paste",function(Se){!ee(Se)||tn(I,Se)||ms(Se,I)||g<=11&&setTimeout(na(I,function(){return C.updateFromDOM()}),20)}),yt(F,"compositionstart",function(Se){C.composing={data:Se.data,done:!1}}),yt(F,"compositionupdate",function(Se){C.composing||(C.composing={data:Se.data,done:!1})}),yt(F,"compositionend",function(Se){C.composing&&(Se.data!=C.composing.data&&C.readFromDOMSoon(),C.composing.done=!0)}),yt(F,"touchstart",function(){return T.forceCompositionEnd()}),yt(F,"input",function(){C.composing||C.readFromDOMSoon()});function pe(Se){if(!(!ee(Se)||tn(I,Se))){if(I.somethingSelected())jd({lineWise:!1,text:I.getSelections()}),Se.type=="cut"&&I.replaceSelection("",null,"cut");else if(I.options.lineWiseCopyCut){var Pe=Wp(I);jd({lineWise:!0,text:Pe.text}),Se.type=="cut"&&I.operation(function(){I.setSelections(Pe.ranges,0,It),I.replaceSelection("",null,"cut")})}else return;if(Se.clipboardData){Se.clipboardData.clearData();var Ge=cA.text.join(`
`);if(Se.clipboardData.setData("Text",Ge),Se.clipboardData.getData("Text")==Ge){Se.preventDefault();return}}var _t=Cf(),Tt=_t.firstChild;sp(Tt),I.display.lineSpace.insertBefore(_t,I.display.lineSpace.firstChild),Tt.value=cA.text.join(`
`);var en=it(gt(F));tt(Tt),setTimeout(function(){I.display.lineSpace.removeChild(_t),en.focus(),en==F&&T.showPrimarySelection()},50)}}yt(F,"copy",pe),yt(F,"cut",pe)},oa.prototype.screenReaderLabelChanged=function(d){d?this.div.setAttribute("aria-label",d):this.div.removeAttribute("aria-label")},oa.prototype.prepareSelection=function(){var d=Ih(this.cm,!1);return d.focus=it(gt(this.div))==this.div,d},oa.prototype.showSelection=function(d,C){!d||!this.cm.display.view.length||((d.focus||C)&&this.showPrimarySelection(),this.showMultipleSelections(d))},oa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},oa.prototype.showPrimarySelection=function(){var d=this.getSelection(),C=this.cm,T=C.doc.sel.primary(),I=T.from(),F=T.to();if(C.display.viewTo==C.display.viewFrom||I.line>=C.display.viewTo||F.line<C.display.viewFrom){d.removeAllRanges();return}var ee=cl(C,d.anchorNode,d.anchorOffset),pe=cl(C,d.focusNode,d.focusOffset);if(!(ee&&!ee.bad&&pe&&!pe.bad&&si(Ws(ee,pe),I)==0&&si(ps(ee,pe),F)==0)){var Se=C.display.view,Pe=I.line>=C.display.viewFrom&&zh(C,I)||{node:Se[0].measure.map[2],offset:0},Ge=F.line<C.display.viewTo&&zh(C,F);if(!Ge){var _t=Se[Se.length-1].measure,Tt=_t.maps?_t.maps[_t.maps.length-1]:_t.map;Ge={node:Tt[Tt.length-1],offset:Tt[Tt.length-2]-Tt[Tt.length-3]}}if(!Pe||!Ge){d.removeAllRanges();return}var en=d.rangeCount&&d.getRangeAt(0),Vt;try{Vt=ot(Pe.node,Pe.offset,Ge.offset,Ge.node)}catch{}Vt&&(!r&&C.state.focused?(d.collapse(Pe.node,Pe.offset),Vt.collapsed||(d.removeAllRanges(),d.addRange(Vt))):(d.removeAllRanges(),d.addRange(Vt)),en&&d.anchorNode==null?d.addRange(en):r&&this.startGracePeriod()),this.rememberSelection()}},oa.prototype.startGracePeriod=function(){var d=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){d.gracePeriod=!1,d.selectionChanged()&&d.cm.operation(function(){return d.cm.curOp.selectionChanged=!0})},20)},oa.prototype.showMultipleSelections=function(d){ze(this.cm.display.cursorDiv,d.cursors),ze(this.cm.display.selectionDiv,d.selection)},oa.prototype.rememberSelection=function(){var d=this.getSelection();this.lastAnchorNode=d.anchorNode,this.lastAnchorOffset=d.anchorOffset,this.lastFocusNode=d.focusNode,this.lastFocusOffset=d.focusOffset},oa.prototype.selectionInEditor=function(){var d=this.getSelection();if(!d.rangeCount)return!1;var C=d.getRangeAt(0).commonAncestorContainer;return mt(this.div,C)},oa.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||it(gt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},oa.prototype.blur=function(){this.div.blur()},oa.prototype.getField=function(){return this.div},oa.prototype.supportsTouch=function(){return!0},oa.prototype.receivedFocus=function(){var d=this,C=this;this.selectionInEditor()?setTimeout(function(){return d.pollSelection()},20):Ha(this.cm,function(){return C.cm.curOp.selectionChanged=!0});function T(){C.cm.state.focused&&(C.pollSelection(),C.polling.set(C.cm.options.pollInterval,T))}this.polling.set(this.cm.options.pollInterval,T)},oa.prototype.selectionChanged=function(){var d=this.getSelection();return d.anchorNode!=this.lastAnchorNode||d.anchorOffset!=this.lastAnchorOffset||d.focusNode!=this.lastFocusNode||d.focusOffset!=this.lastFocusOffset},oa.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var d=this.getSelection(),C=this.cm;if(re&&O&&this.cm.display.gutterSpecs.length&&Tm(d.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var T=cl(C,d.anchorNode,d.anchorOffset),I=cl(C,d.focusNode,d.focusOffset);T&&I&&Ha(C,function(){da(C.doc,$A(T,I),It),(T.bad||I.bad)&&(C.curOp.selectionChanged=!0)})}}},oa.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var d=this.cm,C=d.display,T=d.doc.sel.primary(),I=T.from(),F=T.to();if(I.ch==0&&I.line>d.firstLine()&&(I=an(I.line-1,wi(d.doc,I.line-1).length)),F.ch==wi(d.doc,F.line).text.length&&F.line<d.lastLine()&&(F=an(F.line+1,0)),I.line<C.viewFrom||F.line>C.viewTo-1)return!1;var ee,pe,Se;I.line==C.viewFrom||(ee=tl(d,I.line))==0?(pe=Xe(C.view[0].line),Se=C.view[0].node):(pe=Xe(C.view[ee].line),Se=C.view[ee-1].node.nextSibling);var Pe=tl(d,F.line),Ge,_t;if(Pe==C.view.length-1?(Ge=C.viewTo-1,_t=C.lineDiv.lastChild):(Ge=Xe(C.view[Pe+1].line)-1,_t=C.view[Pe+1].node.previousSibling),!Se)return!1;for(var Tt=d.doc.splitLines(_u(d,Se,_t,pe,Ge)),en=fs(d.doc,an(pe,0),an(Ge,wi(d.doc,Ge).text.length));Tt.length>1&&en.length>1;)if(Gn(Tt)==Gn(en))Tt.pop(),en.pop(),Ge--;else if(Tt[0]==en[0])Tt.shift(),en.shift(),pe++;else break;for(var Vt=0,bn=0,Pn=Tt[0],oi=en[0],mi=Math.min(Pn.length,oi.length);Vt<mi&&Pn.charCodeAt(Vt)==oi.charCodeAt(Vt);)++Vt;for(var Ci=Gn(Tt),gi=Gn(en),Ri=Math.min(Ci.length-(Tt.length==1?Vt:0),gi.le Line truncated
`);var en=it(gt(F));tt(Tt),setTimeout(function(){I.display.lineSpace.removeChild(_t),en.focus(),en==F&&T.showPrimarySelection()},50)}}yt(F,"copy",pe),yt(F,"cut",pe)},oa.prototype.screenReaderLabelChanged=function(d){d?this.div.setAttribute("aria-label",d):this.div.removeAttribute("aria-label")},oa.prototype.prepareSelection=function(){var d=Ih(this.cm,!1);return d.focus=it(gt(this.div))==this.div,d},oa.prototype.showSelection=function(d,C){!d||!this.cm.display.view.length||((d.focus||C)&&this.showPrimarySelection(),this.showMultipleSelections(d))},oa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},oa.prototype.showPrimarySelection=function(){var d=this.getSelection(),C=this.cm,T=C.doc.sel.primary(),I=T.from(),F=T.to();if(C.display.viewTo==C.display.viewFrom||I.line>=C.display.viewTo||F.line<C.display.viewFrom){d.removeAllRanges();return}var ee=cl(C,d.anchorNode,d.anchorOffset),pe=cl(C,d.focusNode,d.focusOffset);if(!(ee&&!ee.bad&&pe&&!pe.bad&&li(Ws(ee,pe),I)==0&&li(ps(ee,pe),F)==0)){var Se=C.display.view,Pe=I.line>=C.display.viewFrom&&zh(C,I)||{node:Se[0].measure.map[2],offset:0},Ge=F.line<C.display.viewTo&&zh(C,F);if(!Ge){var _t=Se[Se.length-1].measure,Tt=_t.maps?_t.maps[_t.maps.length-1]:_t.map;Ge={node:Tt[Tt.length-1],offset:Tt[Tt.length-2]-Tt[Tt.length-3]}}if(!Pe||!Ge){d.removeAllRanges();return}var en=d.rangeCount&&d.getRangeAt(0),Vt;try{Vt=ot(Pe.node,Pe.offset,Ge.offset,Ge.node)}catch{}Vt&&(!r&&C.state.focused?(d.collapse(Pe.node,Pe.offset),Vt.collapsed||(d.removeAllRanges(),d.addRange(Vt))):(d.removeAllRanges(),d.addRange(Vt)),en&&d.anchorNode==null?d.addRange(en):r&&this.startGracePeriod()),this.rememberSelection()}},oa.prototype.startGracePeriod=function(){var d=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){d.gracePeriod=!1,d.selectionChanged()&&d.cm.operation(function(){return d.cm.curOp.selectionChanged=!0})},20)},oa.prototype.showMultipleSelections=function(d){ze(this.cm.display.cursorDiv,d.cursors),ze(this.cm.display.selectionDiv,d.selection)},oa.prototype.rememberSelection=function(){var d=this.getSelection();this.lastAnchorNode=d.anchorNode,this.lastAnchorOffset=d.anchorOffset,this.lastFocusNode=d.focusNode,this.lastFocusOffset=d.focusOffset},oa.prototype.selectionInEditor=function(){var d=this.getSelection();if(!d.rangeCount)return!1;var C=d.getRangeAt(0).commonAncestorContainer;return mt(this.div,C)},oa.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||it(gt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},oa.prototype.blur=function(){this.div.blur()},oa.prototype.getField=function(){return this.div},oa.prototype.supportsTouch=function(){return!0},oa.prototype.receivedFocus=function(){var d=this,C=this;this.selectionInEditor()?setTimeout(function(){return d.pollSelection()},20):Ha(this.cm,function(){return C.cm.curOp.selectionChanged=!0});function T(){C.cm.state.focused&&(C.pollSelection(),C.polling.set(C.cm.options.pollInterval,T))}this.polling.set(this.cm.options.pollInterval,T)},oa.prototype.selectionChanged=function(){var d=this.getSelection();return d.anchorNode!=this.lastAnchorNode||d.anchorOffset!=this.lastAnchorOffset||d.focusNode!=this.lastFocusNode||d.focusOffset!=this.lastFocusOffset},oa.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var d=this.getSelection(),C=this.cm;if(re&&O&&this.cm.display.gutterSpecs.length&&Tm(d.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var T=cl(C,d.anchorNode,d.anchorOffset),I=cl(C,d.focusNode,d.focusOffset);T&&I&&Ha(C,function(){da(C.doc,$A(T,I),It),(T.bad||I.bad)&&(C.curOp.selectionChanged=!0)})}}},oa.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var d=this.cm,C=d.display,T=d.doc.sel.primary(),I=T.from(),F=T.to();if(I.ch==0&&I.line>d.firstLine()&&(I=an(I.line-1,Si(d.doc,I.line-1).length)),F.ch==Si(d.doc,F.line).text.length&&F.line<d.lastLine()&&(F=an(F.line+1,0)),I.line<C.viewFrom||F.line>C.viewTo-1)return!1;var ee,pe,Se;I.line==C.viewFrom||(ee=tl(d,I.line))==0?(pe=Xe(C.view[0].line),Se=C.view[0].node):(pe=Xe(C.view[ee].line),Se=C.view[ee-1].node.nextSibling);var Pe=tl(d,F.line),Ge,_t;if(Pe==C.view.length-1?(Ge=C.viewTo-1,_t=C.lineDiv.lastChild):(Ge=Xe(C.view[Pe+1].line)-1,_t=C.view[Pe+1].node.previousSibling),!Se)return!1;for(var Tt=d.doc.splitLines(_u(d,Se,_t,pe,Ge)),en=fs(d.doc,an(pe,0),an(Ge,Si(d.doc,Ge).text.length));Tt.length>1&&en.length>1;)if(Gn(Tt)==Gn(en))Tt.pop(),en.pop(),Ge--;else if(Tt[0]==en[0])Tt.shift(),en.shift(),pe++;else break;for(var Vt=0,bn=0,Pn=Tt[0],ai=en[0],gi=Math.min(Pn.length,ai.length);Vt<gi&&Pn.charCodeAt(Vt)==ai.charCodeAt(Vt);)++Vt;for(var _i=Gn(Tt),yi=Gn(en),Pi=Math.min(_i.length-(Tt.length==1?Vt:0),yi.le Line truncated
`),tt(F))}else return;pe.type=="cut"&&(I.state.cutIncoming=+new Date)}}yt(F,"cut",ee),yt(F,"copy",ee),yt(d.scroller,"paste",function(pe){if(!(du(d,pe)||tn(I,pe))){if(!F.dispatchEvent){I.state.pasteIncoming=+new Date,T.focus();return}var Se=new Event("paste");Se.clipboardData=pe.clipboardData,F.dispatchEvent(Se)}}),yt(d.lineSpace,"selectstart",function(pe){du(d,pe)||Qn(pe)}),yt(F,"compositionstart",function(){var pe=I.getCursor("from");T.composing&&T.composing.range.clear(),T.composing={start:pe,range:I.markText(pe,I.getCursor("to"),{className:"CodeMirror-composing"})}}),yt(F,"compositionend",function(){T.composing&&(T.poll(),T.composing.range.clear(),T.composing=null)})},qs.prototype.createField=function(d){this.wrapper=Cf(),this.textarea=this.wrapper.firstChild;var C=this.cm.options;sp(this.textarea,C.spellcheck,C.autocorrect,C.autocapitalize)},qs.prototype.screenReaderLabelChanged=function(d){d?this.textarea.setAttribute("aria-label",d):this.textarea.removeAttribute("aria-label")},qs.prototype.prepareSelection=function(){var d=this.cm,C=d.display,T=d.doc,I=Ih(d);if(d.options.moveInputWithCursor){var F=Cn(d,T.sel.primary().head,"div"),ee=C.wrapper.getBoundingClientRect(),pe=C.lineDiv.getBoundingClientRect();I.teTop=Math.max(0,Math.min(C.wrapper.clientHeight-10,F.top+pe.top-ee.top)),I.teLeft=Math.max(0,Math.min(C.wrapper.clientWidth-10,F.left+pe.left-ee.left))}return I},qs.prototype.showSelection=function(d){var C=this.cm,T=C.display;ze(T.cursorDiv,d.cursors),ze(T.selectionDiv,d.selection),d.teTop!=null&&(this.wrapper.style.top=d.teTop+"px",this.wrapper.style.left=d.teLeft+"px")},qs.prototype.reset=function(d){if(!(this.contextMenuPending||this.composing&&d)){var C=this.cm;if(this.resetting=!0,C.somethingSelected()){this.prevInput="";var T=C.getSelection();this.textarea.value=T,C.state.focused&&tt(this.textarea),p&&g>=9&&(this.hasSelection=T)}else d||(this.prevInput=this.textarea.value="",p&&g>=9&&(this.hasSelection=null));this.resetting=!1}},qs.prototype.getField=function(){return this.textarea},qs.prototype.supportsTouch=function(){return!1},qs.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ne||it(gt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},qs.prototype.blur=function(){this.textarea.blur()},qs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},qs.prototype.receivedFocus=function(){this.slowPoll()},qs.prototype.slowPoll=function(){var d=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){d.poll(),d.cm.state.focused&&d.slowPoll()})},qs.prototype.fastPoll=function(){var d=!1,C=this;C.pollingFast=!0;function T(){var I=C.poll();!I&&!d?(d=!0,C.polling.set(60,T)):(C.pollingFast=!1,C.slowPoll())}C.polling.set(20,T)},qs.prototype.poll=function(){var d=this,C=this.cm,T=this.textarea,I=this.prevInput;if(this.contextMenuPending||this.resetting||!C.state.focused||Jn(T)&&!I&&!this.composing||C.isReadOnly()||C.options.disableInput||C.state.keySeq)return!1;var F=T.value;if(F==I&&!C.somethingSelected())return!1;if(p&&g>=9&&this.hasSelection===F||V&&/[\uf700-\uf7ff]/.test(F))return C.display.input.reset(),!1;if(C.doc.sel==C.display.selForContextMenu){var ee=F.charCodeAt(0);if(ee==8203&&!I&&(I="​"),ee==8666)return this.reset(),this.cm.execCommand("undo")}for(var pe=0,Se=Math.min(I.length,F.length);pe<Se&&I.charCodeAt(pe)==F.charCodeAt(pe);)++pe;return Ha(C,function(){rl(C,F.slice(pe),I.length-pe,null,d.composing?"*compose":null),F.length>1e3||F.indexOf(`
`)>-1?T.value=d.prevInput="":d.prevInput=F,d.composing&&(d.composing.range.clear(),d.composing.range=C.markText(d.composing.start,C.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},qs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},qs.prototype.onKeyPress=function(){p&&g>=9&&(this.hasSelection=null),this.fastPoll()},qs.prototype.onContextMenu=function(d){var C=this,T=C.cm,I=T.display,F=C.textarea;C.contextMenuPending&&C.contextMenuPending();var ee=qa(T,d),pe=I.scroller.scrollTop;if(!ee||z)return;var Se=T.options.resetSelectionOnContextMenu;Se&&T.doc.sel.contains(ee)==-1&&na(T,da)(T.doc,$A(ee),It);var Pe=F.style.cssText,Ge=C.wrapper.style.cssText,_t=C.wrapper.offsetParent.getBoundingClientRect();C.wrapper.style.cssText="position: static",F.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(d.clientY-_t.top-5)+"px; left: "+(d.clientX-_t.left-5)+`px;
z-index: 1000; background: `+(p?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Tt;_&&(Tt=F.ownerDocument.defaultView.scrollY),I.input.focus(),_&&F.ownerDocument.defaultView.scrollTo(null,Tt),I.input.reset(),T.somethingSelected()||(F.value=C.prevInput=" "),C.contextMenuPending=Vt,I.selForContextMenu=T.doc.sel,clearTimeout(I.detectingSelectAll);function en(){if(F.selectionStart!=null){var Pn=T.somethingSelected(),oi="​"+(Pn?F.value:"");F.value="⇚",F.value=oi,C.prevInput=Pn?"":"​",F.selectionStart=1,F.selectionEnd=oi.length,I.selForContextMenu=T.doc.sel}}function Vt(){if(C.contextMenuPending==Vt&&(C.contextMenuPending=!1,C.wrapper.style.cssText=Ge,F.style.cssText=Pe,p&&g<9&&I.scrollbars.setScrollTop(I.scroller.scrollTop=pe),F.selectionStart!=null)){(!p||p&&g<9)&&en();var Pn=0,oi=function(){I.selForContextMenu==T.doc.sel&&F.selectionStart==0&&F.selectionEnd>0&&C.prevInput=="​"?na(T,EA)(T):Pn++<10?I.detectingSelectAll=setTimeout(oi,500):(I.selForContextMenu=null,I.input.reset())};I.detectingSelectAll=setTimeout(oi,200)}}if(p&&g>=9&&en(),ve){Oi(d);var bn=function(){kt(window,"mouseup",bn),setTimeout(Vt,20)};yt(window,"mouseup",bn)}else setTimeout(Vt,50)},qs.prototype.readOnlyChanged=function(d){d||this.reset(),this.textarea.disabled=d=="nocursor",this.textarea.readOnly=!!d},qs.prototype.setUneditable=function(){},qs.prototype.needsContentAttribute=!1;function lp(d,C){if(C=C?je(C):{},C.value=d.value,!C.tabindex&&d.tabIndex&&(C.tabindex=d.tabIndex),!C.placeholder&&d.placeholder&&(C.placeholder=d.placeholder),C.autofocus==null){var T=it(gt(d));C.autofocus=T==d||d.getAttribute("autofocus")!=null&&T==document.body}function I(){d.value=Se.getValue()}var F;if(d.form&&(yt(d.form,"submit",I),!C.leaveSubmitMethodAlone)){var ee=d.form;F=ee.submit;try{var pe=ee.submit=function(){I(),ee.submit=F,ee.submit(),ee.submit=pe}}catch{}}C.finishInit=function(Pe){Pe.save=I,Pe.getTextArea=function(){return d},Pe.toTextArea=function(){Pe.toTextArea=isNaN,I(),d.parentNode.removeChild(Pe.getWrapperElement()),d.style.display="",d.form&&(kt(d.form,"submit",I),!C.leaveSubmitMethodAlone&&typeof d.form.submit=="function"&&(d.form.submit=F))}},d.style.display="none";var Se=ra(function(Pe){return d.parentNode.insertBefore(Pe,d.nextSibling)},C);return Se}function x0(d){d.off=kt,d.on=yt,d.wheelEventPixels=Xf,d.Doc=ut,d.splitLines=Ro,d.countColumn=Ue,d.findColumn=on,d.isWordChar=Lt,d.Pass=vt,d.signal=rt,d.Line=Ql,d.changeEnd=ZA,d.scrollbarModel=xA,d.Pos=an,d.cmpPos=si,d.modes=Wa,d.mimeModes=Dr,d.resolveMode=La,d.getMode=Bo,d.modeExtensions=rs,d.extendMode=Pl,d.copyState=ho,d.startState=Fa,d.innerMode=Xu,d.commands=Ds,d.keyMap=Yn,d.keyName=jo,d.isModifierKey=xo,d.lookupKey=dr,d.normalizeKeyMap=Mi,d.StringStream=Zi,d.SharedTextMarker=fe,d.TextMarker=q,d.LineWidget=b,d.e_preventDefault=Qn,d.e_stopPropagation=Vi,d.e_stop=Oi,d.addClass=ue,d.contains=mt,d.rmClass=Me,d.keyNames=Jt}rp(ra),Nd(ra);var M0="iter insert remove copy getEditor constructor".split(" ");for(var bf in ut.prototype)ut.prototype.hasOwnProperty(bf)&&Ve(M0,bf)<0&&(ra.prototype[bf]=function(d){return function(){return d.apply(this.doc,arguments)}}(ut.prototype[bf]));return ii(ut),ra.inputStyles={textarea:qs,contenteditable:oa},ra.defineMode=function(d){!ra.defaults.mode&&d!="null"&&(ra.defaults.mode=d),Ni.apply(this,arguments)},ra.defineMIME=bl,ra.defineMode("null",function(){return{token:function(d){return d.skipToEnd()}}}),ra.defineMIME("text/plain","null"),ra.defineExtension=function(d,C){ra.prototype[d]=C},ra.defineDocExtension=function(d,C){ut.prototype[d]=C},ra.fromTextArea=lp,x0(ra),ra.version="5.65.20",ra})}(g3)),g3.exports}var Rpe=T4();const mm=Bu(Rpe);var CR={exports:{}},_R;function Ppe(){return _R||(_R=1,function(n,e){(function(t){t(T4())})(function(t){t.defineMode("javascript",function(i,r){var o=i.indentUnit,s=r.statementIndent,a=r.jsonld,p=r.json||a,g=r.trackScope!==!1,_=r.typescript,E=r.wordCharacters||/[\w$\xa1-\uffff]/,O=function(){function Xe(Oo){return{type:Oo,style:"keyword"}}var Bt=Xe("keyword a"),Mn=Xe("keyword b"),Wn=Xe("keyword c"),an=Xe("keyword d"),si=Xe("operator"),no={type:"atom",style:"atom"};return{if:Xe("if"),while:Bt,with:Bt,else:Mn,do:Mn,try:Mn,finally:Mn,return:an,break:an,continue:an,new:Xe("new"),delete:Wn,void:Wn,throw:Wn,debugger:Xe("debugger"),var:Xe("var"),const:Xe("var"),let:Xe("var"),function:Xe("function"),catch:Xe("catch"),for:Xe("for"),switch:Xe("switch"),case:Xe("case"),default:Xe("default"),in:si,typeof:si,instanceof:si,true:no,false:no,null:no,undefined:no,NaN:no,Infinity:no,this:Xe("this"),class:Xe("class"),super:Xe("atom"),yield:Wn,export:Xe("export"),import:Xe("import"),extends:Wn,await:Wn}}(),B=/[+\-*&%=<>!?|~^@]/,z=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function N(Xe){for(var Bt=!1,Mn,Wn=!1;(Mn=Xe.next())!=null;){if(!Bt){if(Mn=="/"&&!Wn)return;Mn=="["?Wn=!0:Wn&&Mn=="]"&&(Wn=!1)}Bt=!Bt&&Mn=="\\"}}var Q,$;function X(Xe,Bt,Mn){return Q=Xe,$=Mn,Bt Line truncated
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Tt;_&&(Tt=F.ownerDocument.defaultView.scrollY),I.input.focus(),_&&F.ownerDocument.defaultView.scrollTo(null,Tt),I.input.reset(),T.somethingSelected()||(F.value=C.prevInput=" "),C.contextMenuPending=Vt,I.selForContextMenu=T.doc.sel,clearTimeout(I.detectingSelectAll);function en(){if(F.selectionStart!=null){var Pn=T.somethingSelected(),ai="​"+(Pn?F.value:"");F.value="⇚",F.value=ai,C.prevInput=Pn?"":"​",F.selectionStart=1,F.selectionEnd=ai.length,I.selForContextMenu=T.doc.sel}}function Vt(){if(C.contextMenuPending==Vt&&(C.contextMenuPending=!1,C.wrapper.style.cssText=Ge,F.style.cssText=Pe,p&&g<9&&I.scrollbars.setScrollTop(I.scroller.scrollTop=pe),F.selectionStart!=null)){(!p||p&&g<9)&&en();var Pn=0,ai=function(){I.selForContextMenu==T.doc.sel&&F.selectionStart==0&&F.selectionEnd>0&&C.prevInput=="​"?na(T,EA)(T):Pn++<10?I.detectingSelectAll=setTimeout(ai,500):(I.selForContextMenu=null,I.input.reset())};I.detectingSelectAll=setTimeout(ai,200)}}if(p&&g>=9&&en(),ve){Ii(d);var bn=function(){kt(window,"mouseup",bn),setTimeout(Vt,20)};yt(window,"mouseup",bn)}else setTimeout(Vt,50)},qs.prototype.readOnlyChanged=function(d){d||this.reset(),this.textarea.disabled=d=="nocursor",this.textarea.readOnly=!!d},qs.prototype.setUneditable=function(){},qs.prototype.needsContentAttribute=!1;function lp(d,C){if(C=C?je(C):{},C.value=d.value,!C.tabindex&&d.tabIndex&&(C.tabindex=d.tabIndex),!C.placeholder&&d.placeholder&&(C.placeholder=d.placeholder),C.autofocus==null){var T=it(gt(d));C.autofocus=T==d||d.getAttribute("autofocus")!=null&&T==document.body}function I(){d.value=Se.getValue()}var F;if(d.form&&(yt(d.form,"submit",I),!C.leaveSubmitMethodAlone)){var ee=d.form;F=ee.submit;try{var pe=ee.submit=function(){I(),ee.submit=F,ee.submit(),ee.submit=pe}}catch{}}C.finishInit=function(Pe){Pe.save=I,Pe.getTextArea=function(){return d},Pe.toTextArea=function(){Pe.toTextArea=isNaN,I(),d.parentNode.removeChild(Pe.getWrapperElement()),d.style.display="",d.form&&(kt(d.form,"submit",I),!C.leaveSubmitMethodAlone&&typeof d.form.submit=="function"&&(d.form.submit=F))}},d.style.display="none";var Se=ra(function(Pe){return d.parentNode.insertBefore(Pe,d.nextSibling)},C);return Se}function x0(d){d.off=kt,d.on=yt,d.wheelEventPixels=Xf,d.Doc=ut,d.splitLines=Ro,d.countColumn=Ke,d.findColumn=on,d.isWordChar=Lt,d.Pass=vt,d.signal=rt,d.Line=Ql,d.changeEnd=ZA,d.scrollbarModel=xA,d.Pos=an,d.cmpPos=li,d.modes=Wa,d.mimeModes=Rr,d.resolveMode=La,d.getMode=Bo,d.modeExtensions=rs,d.extendMode=Pl,d.copyState=ho,d.startState=Fa,d.innerMode=Xu,d.commands=Ds,d.keyMap=Yn,d.keyName=jo,d.isModifierKey=xo,d.lookupKey=fr,d.normalizeKeyMap=wi,d.StringStream=Xi,d.SharedTextMarker=fe,d.TextMarker=q,d.LineWidget=b,d.e_preventDefault=Qn,d.e_stopPropagation=$i,d.e_stop=Ii,d.addClass=ue,d.contains=mt,d.rmClass=Me,d.keyNames=Jt}rp(ra),Nd(ra);var M0="iter insert remove copy getEditor constructor".split(" ");for(var bf in ut.prototype)ut.prototype.hasOwnProperty(bf)&&Ve(M0,bf)<0&&(ra.prototype[bf]=function(d){return function(){return d.apply(this.doc,arguments)}}(ut.prototype[bf]));return ri(ut),ra.inputStyles={textarea:qs,contenteditable:oa},ra.defineMode=function(d){!ra.defaults.mode&&d!="null"&&(ra.defaults.mode=d),Gi.apply(this,arguments)},ra.defineMIME=bl,ra.defineMode("null",function(){return{token:function(d){return d.skipToEnd()}}}),ra.defineMIME("text/plain","null"),ra.defineExtension=function(d,C){ra.prototype[d]=C},ra.defineDocExtension=function(d,C){ut.prototype[d]=C},ra.fromTextArea=lp,x0(ra),ra.version="5.65.20",ra})}(y3)),y3.exports}var Rpe=k4();const mm=Bu(Rpe);var CR={exports:{}},_R;function Ppe(){return _R||(_R=1,function(n,e){(function(t){t(k4())})(function(t){t.defineMode("javascript",function(i,r){var o=i.indentUnit,s=r.statementIndent,a=r.jsonld,p=r.json||a,g=r.trackScope!==!1,_=r.typescript,E=r.wordCharacters||/[\w$\xa1-\uffff]/,O=function(){function Xe(Oo){return{type:Oo,style:"keyword"}}var Bt=Xe("keyword a"),Mn=Xe("keyword b"),Wn=Xe("keyword c"),an=Xe("keyword d"),li=Xe("operator"),no={type:"atom",style:"atom"};return{if:Xe("if"),while:Bt,with:Bt,else:Mn,do:Mn,try:Mn,finally:Mn,return:an,break:an,continue:an,new:Xe("new"),delete:Wn,void:Wn,throw:Wn,debugger:Xe("debugger"),var:Xe("var"),const:Xe("var"),let:Xe("var"),function:Xe("function"),catch:Xe("catch"),for:Xe("for"),switch:Xe("switch"),case:Xe("case"),default:Xe("default"),in:li,typeof:li,instanceof:li,true:no,false:no,null:no,undefined:no,NaN:no,Infinity:no,this:Xe("this"),class:Xe("class"),super:Xe("atom"),yield:Wn,export:Xe("export"),import:Xe("import"),extends:Wn,await:Wn}}(),B=/[+\-*&%=<>!?|~^@]/,z=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function N(Xe){for(var Bt=!1,Mn,Wn=!1;(Mn=Xe.next())!=null;){if(!Bt){if(Mn=="/"&&!Wn)return;Mn=="["?Wn=!0:Wn&&Mn=="]"&&(Wn=!1)}Bt=!Bt&&Mn=="\\"}}var Q,$;function X(Xe,Bt,Mn){return Q=Xe,$=Mn,Bt Line truncated
${E}`),N].join(`
${a}`)}return g}(n,"",0)}var v_={exports:{}},Fpe=v_.exports,SR;function zpe(){return SR||(SR=1,function(n,e){(function(t,i){i(e)})(Fpe,function(t){const i={isWhiteSpace:function(ue){return ue===" "||ue===" "||ue==="\uFEFF"||ue>=" "&&ue<="\r"||ue===" "||ue>=" "&&ue<=" "||ue==="\u2028"||ue==="\u2029"||ue===" "||ue===" "||ue===" "},isWhiteSpaceJSON:function(ue){return ue===" "||ue===" "||ue===`
`||ue==="\r"},isLineTerminator:function(ue){return ue===`
`||ue==="\r"||ue==="\u2028"||ue==="\u2029"},isLineTerminatorJSON:function(ue){return ue===`
`||ue==="\r"},isIdentifierStart:function(ue){return ue==="$"||ue==="_"||ue>="A"&&ue<="Z"||ue>="a"&&ue<="z"||ue>="€"&&i.NonAsciiIdentifierStart.test(ue)},isIdentifierPart:function(ue){return ue==="$"||ue==="_"||ue>="A"&&ue<="Z"||ue>="a"&&ue<="z"||ue>="0"&&ue<="9"||ue>="€"&&i.NonAsciiIdentifierPart.test(ue)},NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\uLine truncated
`,r:"\r",t:" ",v:"\v","/":"/"},g=Object.hasOwn,_={};function E(it,ue){(typeof it!="string"||!(it instanceof String))&&(it=String(it));const We=ue.mode==="json5",tt=ue.ignoreBOM,ke=ue.ignoreComments||ue.mode==="cjson"||We,Et=ue.ignoreTrailingCommas||We,gt=ue.ignoreProtoKey,xt=ue.ignorePrototypeKeys,Ut=ue.allowSingleQuotedStrings||We,je=ue.allowDuplicateObjectKeys,Ue=ue.reviver,Ke=ue.tokenize,Ve=ue.rawTokens,bt=ue.tokenLocations,vt=ue.tokenPaths,It=We?i.isLineTerminator:i.isLineTerminatorJSON,Yt=We?i.isWhiteSpace:i.isWhiteSpaceJSON,Kt=it.length;let on=0,Hn=0,Wt=0;const Gn=[];let On,Bn,Tn;if(Ke){let dt=null,kt,rt;On=function(){if(dt!==null)throw Error("internal error, token overlap");kt=on+1,rt=Wt-Hn+1,dt=Wt},Bn=function(tn,Rn){if(dt!==Wt){const wn={type:tn};Ve&&(wn.raw=it.substr(dt,Wt-dt)),Rn!==void 0&&(wn.value=Rn),bt&&(wn.location={start:{column:rt,line:kt,offset:dt}}),vt&&(wn.path=Tn.slice()),Gn.push(wn)}return dt=null,Rn},vt&&(Tn=[])}function Bi(){let dt;return Wt<Kt?dt=`Unexpected token ${JSON.stringify(it[Wt])}`:dt="Unexpected end of input",dt}function Vn(dt){const kt=Wt-Hn+1;++on;const rt=_e(dt,it,Wt,on,kt),tn=SyntaxError(rt.message);return tn.reason=dt,tn.excerpt=rt.excerpt,tn.pointer=rt.pointer,tn.location={start:{column:kt,line:on,offset:Wt}},tn}function Lt(dt){throw dt||(dt=Bi()),Vn(dt)}function De(dt){dt==="\r"&&it[Wt]===`
`&&++Wt,Hn=Wt,++on}function de(){if(Wt<Kt){On?.();const dt=it[Wt++];if(dt==='"'||dt==="'"&&Ut){const kt=y(dt);return Bn?.("literal",kt),kt}if(dt==="{")return Bn?.("symbol","{"),At();if(dt==="[")return Bn?.("symbol","["),He();if(dt==="-"||dt==="."||s(dt)||We&&(dt==="+"||dt==="I"||dt==="N")){const kt=Re();return Bn?.("literal",kt),kt}if(dt==="n")return Qe("null"),Bn?.("literal",null),null;if(dt==="t")return Qe("true"),Bn?.("literal",!0),!0;if(dt==="f")return Qe("false"),Bn?.("literal",!1),!1;--Wt,Bn?.();return}}function oe(){let dt;if(Wt<Kt){On?.();const kt=it[Wt++];if(kt==='"'||kt==="'"&&Ut){const rt=y(kt);return Bn?.("literal",rt),rt}if(kt==="{")return Bn?.("symbol","{"),At();if(kt==="[")return Bn?.("symbol","["),He();if(kt==="."||s(kt)){const rt=Re();return Bn?.("literal",rt),rt}if(We&&i.isIdentifierStart(kt)||kt==="\\"&&it[Wt]==="u"){const rt=Wt-1;if(dt=Ze(),dt===void 0){Wt=rt,Bn?.();return}return Bn?.("literal",dt),dt}--Wt,Bn?.();return}}function le(){a(it)&&(On?.(),++Wt,Bn?.("bom"))}function me(){let dt;function kt(){dt||(dt=!0,--Wt,On(),++Wt)}function rt(){dt&&(dt=!1,Bn("whitespace"))}for(;Wt<Kt;){const tn=it[Wt++];if(It(tn))On&&kt(),De(tn);else if(Yt(tn))On&&kt();else if(tn==="/"&&ke&&(it[Wt]==="/"||it[Wt]==="*"))On&&(--Wt,rt(),On(),++Wt),Ie(it[Wt++]==="*"),Bn?.("comment");else{--Wt;break}}Bn&&rt()}function Ie(dt){for(;Wt<Kt;){const kt=it[Wt++];if(It(kt)){if(!dt){--Wt;return}De(kt)}else if(kt==="*"&&dt&&it[Wt]==="/"){++Wt;return}}dt&&Lt("Unclosed multiline comment")}function Qe(dt){const kt=Wt;for(let rt=1,tn=dt.length;rt<tn;++rt)(Wt>=Kt||dt[rt]!==it[Wt])&&(Wt=kt-1,Lt()),++Wt}function At(){let dt={},kt=!1;for(;Wt<Kt;){me();const rt=oe();je===!1&&g(dt,rt)&&Lt(`Duplicate key: "${rt}"`),me(),On?.();let tn=it[Wt++];if(Bn?.("symbol",tn),tn==="}"&&rt===void 0)return!Et&&kt&&(--Wt,Lt("Trailing comma in object")),dt;if(tn===":"&&rt!==void 0){me(),Tn?.push(rt);let Rn=de();if(Tn?.pop(),Rn===void 0&&Lt(`No value found for key "${rt}"`),typeof rt!="string"&&(!We||typeof rt!="number")&&Lt(`Wrong key type: "${rt}"`),xt&&(rt in _||_[rt]!=null)||gt&&rt==="__proto__"||(Ue&&(Rn=Ue(rt,Rn)),Rn!==void 0&&(kt=!0,rt==="__proto__"?dt=Object.assign(JSON.parse(`{"__proto__":${JSON.stringify(Rn)}}`),dt):dt[rt]=Rn)),me(),On?.(),tn=it[Wt++],Bn?.("symbol",tn),tn!==","){if(tn==="}")return dt;Lt()}}else--Wt,Lt()}Lt()}function He(){const dt=[];for(;Wt<Kt;){me(),Tn?.push(dt.length);let kt=de();Tn?.pop(),me(),On?.();const rt=it[Wt++];if(Bn?.("symbol",rt),kt!==void 0&&(Ue&&(kt=Ue(String(dt.length),kt)),kt===void 0?(++dt.length,kt=!0):dt.push(kt)),rt===",")kt===void 0&&Lt("Elisions are not supported");else{if(rt==="]")return!Et&&kt===void 0&&dt.length&&(--Wt,Lt("Trailing comma in array")),dt;--Wt,Lt()}}}function Re(){--Wt;let dt=Wt,kt=it[Wt++];const rt=function(tn){const Rn=it.substr(dt,Wt-dt);let wn;if(tn?wn=Number.parseInt(Rn.replace(/^0o?/,""),8):wn=Number(Rn),Number.isNaN(wn))--Wt,Lt(`Bad numeric literal - "${it.substr(dt,Wt-dt+1)}"`);else if(!We&&!Rn.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i))--Wt,Lt(`Non-json numeric literal - "${it.substr(dt,Wt-dt+1)}"`);else return wn};if((kt==="-"||kt==="+"&&We)&&(kt=it[Wt++]),kt==="N"&&We)return Qe("NaN"),Number.NaN;if(kt==="I"&&We)return Qe("Infinity"),rt();if(kt>="1"&&kt<="9"){for(;Wt<Kt&&s(it[Wt]);)++Wt;kt=it[Wt++]}if(kt==="0"){kt=it[Wt++];const tn=kt==="o"||kt==="O"||o(kt),Rn=kt==="x"||kt==="X";if(We&&(tn||Rn)){for(;Wt<Kt&&(Rn?r:o)(it[Wt]);)++Wt;let wn=1;return it[dt]==="-"?(wn=-1,++dt):it[dt]==="+"&&++dt,wn*rt(tn)}}if(kt==="."){for(;Wt<Kt&&s(it[Wt]);)++Wt;kt=it[Wt++]}if(kt==="e"||kt==="E"){for(kt=it[Wt++],(kt==="-"||kt==="+")&&++Wt;Wt<Kt&&s(it[Wt]);)++Wt;kt=it[Wt++]}return--Wt,rt()}function Ze(){--Wt;let dt="";for(;Wt<Kt;){let kt=it[Wt++];if(kt==="\\"&&it[Wt]==="u"&&r(it[Wt+1])&&r(it[Wt+2])&&r(it[Wt+3])&&r(it[Wt+4])&&(kt=String.fromCharCode(Number.parseInt(it.substr(Wt+1,4),16)),Wt+=5),dt.length)if(i.isIdentifierPart(kt))dt+=kt;else return--Wt,dt;else if(i.isIdentifierStart(kt))dt+=kt;else return}Lt()}function y(dt){let kt="";for(;Wt<Kt;){let rt=it[Wt++];if(rt===dt)return kt;if(rt==="\\")if(Wt>=Kt&&Lt(),rt=it[Wt++],p[rt]&&(We||rt!=="v"&&(rt!=="'"||Ut)))kt+=p[rt];else if(We&&It(rt))De(rt);else if(rt==="u"||rt==="x"&&We){const tn=rt==="u"?4:2;for(let Rn=0;Rn<tn;++Rn)Wt>=Kt&&Lt(),r(it[Wt])||Lt("Bad escape sequence"),Wt++;kt+=String.fromCharCode(Number.parseInt(it.substr(Wt-tn,tn),16))}else if(We&&o(rt)){let tn;rt<"4"&&o(it[Wt])&&o(it[Wt+1])?tn=3:o(it[Wt])?tn=2:tn=1,Wt+=tn-1,kt+=String.fromCharCode(Number.parseInt(it.substr(Wt-tn,tn),8))}else We?kt+=rt:(--Wt,Lt());else It(rt)?Lt():(!We&&rt.charCodeAt(0)<32&&(--Wt,Lt("Unexpected control character")),kt+=rt)}Lt()}tt&&le(),me();let yt=de();if(yt!==void 0||Wt<Kt){if(me(),Wt>=Kt)return Ue&&(yt=Ue("",yt)),Ke?Gn:yt;Lt()}else Lt(Wt?"No data, only a whitespace":"No data, empty input")}function O(it,ue){return typeof ue=="function"?ue={reviver:ue}:ue||(ue={}),E(it,ue)}function B(it,ue){ue||(ue={});const We=ue.tokenize;ue.tokenize=!0;const Line truncated
`,r:"\r",t:" ",v:"\v","/":"/"},g=Object.hasOwn,_={};function E(it,ue){(typeof it!="string"||!(it instanceof String))&&(it=String(it));const We=ue.mode==="json5",tt=ue.ignoreBOM,ke=ue.ignoreComments||ue.mode==="cjson"||We,Et=ue.ignoreTrailingCommas||We,gt=ue.ignoreProtoKey,xt=ue.ignorePrototypeKeys,Kt=ue.allowSingleQuotedStrings||We,je=ue.allowDuplicateObjectKeys,Ke=ue.reviver,Ue=ue.tokenize,Ve=ue.rawTokens,bt=ue.tokenLocations,vt=ue.tokenPaths,It=We?i.isLineTerminator:i.isLineTerminatorJSON,Yt=We?i.isWhiteSpace:i.isWhiteSpaceJSON,Ut=it.length;let on=0,Hn=0,Wt=0;const Gn=[];let On,Bn,Tn;if(Ue){let dt=null,kt,rt;On=function(){if(dt!==null)throw Error("internal error, token overlap");kt=on+1,rt=Wt-Hn+1,dt=Wt},Bn=function(tn,Rn){if(dt!==Wt){const wn={type:tn};Ve&&(wn.raw=it.substr(dt,Wt-dt)),Rn!==void 0&&(wn.value=Rn),bt&&(wn.location={start:{column:rt,line:kt,offset:dt}}),vt&&(wn.path=Tn.slice()),Gn.push(wn)}return dt=null,Rn},vt&&(Tn=[])}function Oi(){let dt;return Wt<Ut?dt=`Unexpected token ${JSON.stringify(it[Wt])}`:dt="Unexpected end of input",dt}function Vn(dt){const kt=Wt-Hn+1;++on;const rt=_e(dt,it,Wt,on,kt),tn=SyntaxError(rt.message);return tn.reason=dt,tn.excerpt=rt.excerpt,tn.pointer=rt.pointer,tn.location={start:{column:kt,line:on,offset:Wt}},tn}function Lt(dt){throw dt||(dt=Oi()),Vn(dt)}function De(dt){dt==="\r"&&it[Wt]===`
`&&++Wt,Hn=Wt,++on}function de(){if(Wt<Ut){On?.();const dt=it[Wt++];if(dt==='"'||dt==="'"&&Kt){const kt=y(dt);return Bn?.("literal",kt),kt}if(dt==="{")return Bn?.("symbol","{"),At();if(dt==="[")return Bn?.("symbol","["),He();if(dt==="-"||dt==="."||s(dt)||We&&(dt==="+"||dt==="I"||dt==="N")){const kt=Re();return Bn?.("literal",kt),kt}if(dt==="n")return Qe("null"),Bn?.("literal",null),null;if(dt==="t")return Qe("true"),Bn?.("literal",!0),!0;if(dt==="f")return Qe("false"),Bn?.("literal",!1),!1;--Wt,Bn?.();return}}function oe(){let dt;if(Wt<Ut){On?.();const kt=it[Wt++];if(kt==='"'||kt==="'"&&Kt){const rt=y(kt);return Bn?.("literal",rt),rt}if(kt==="{")return Bn?.("symbol","{"),At();if(kt==="[")return Bn?.("symbol","["),He();if(kt==="."||s(kt)){const rt=Re();return Bn?.("literal",rt),rt}if(We&&i.isIdentifierStart(kt)||kt==="\\"&&it[Wt]==="u"){const rt=Wt-1;if(dt=Ze(),dt===void 0){Wt=rt,Bn?.();return}return Bn?.("literal",dt),dt}--Wt,Bn?.();return}}function le(){a(it)&&(On?.(),++Wt,Bn?.("bom"))}function me(){let dt;function kt(){dt||(dt=!0,--Wt,On(),++Wt)}function rt(){dt&&(dt=!1,Bn("whitespace"))}for(;Wt<Ut;){const tn=it[Wt++];if(It(tn))On&&kt(),De(tn);else if(Yt(tn))On&&kt();else if(tn==="/"&&ke&&(it[Wt]==="/"||it[Wt]==="*"))On&&(--Wt,rt(),On(),++Wt),Ie(it[Wt++]==="*"),Bn?.("comment");else{--Wt;break}}Bn&&rt()}function Ie(dt){for(;Wt<Ut;){const kt=it[Wt++];if(It(kt)){if(!dt){--Wt;return}De(kt)}else if(kt==="*"&&dt&&it[Wt]==="/"){++Wt;return}}dt&&Lt("Unclosed multiline comment")}function Qe(dt){const kt=Wt;for(let rt=1,tn=dt.length;rt<tn;++rt)(Wt>=Ut||dt[rt]!==it[Wt])&&(Wt=kt-1,Lt()),++Wt}function At(){let dt={},kt=!1;for(;Wt<Ut;){me();const rt=oe();je===!1&&g(dt,rt)&&Lt(`Duplicate key: "${rt}"`),me(),On?.();let tn=it[Wt++];if(Bn?.("symbol",tn),tn==="}"&&rt===void 0)return!Et&&kt&&(--Wt,Lt("Trailing comma in object")),dt;if(tn===":"&&rt!==void 0){me(),Tn?.push(rt);let Rn=de();if(Tn?.pop(),Rn===void 0&&Lt(`No value found for key "${rt}"`),typeof rt!="string"&&(!We||typeof rt!="number")&&Lt(`Wrong key type: "${rt}"`),xt&&(rt in _||_[rt]!=null)||gt&&rt==="__proto__"||(Ke&&(Rn=Ke(rt,Rn)),Rn!==void 0&&(kt=!0,rt==="__proto__"?dt=Object.assign(JSON.parse(`{"__proto__":${JSON.stringify(Rn)}}`),dt):dt[rt]=Rn)),me(),On?.(),tn=it[Wt++],Bn?.("symbol",tn),tn!==","){if(tn==="}")return dt;Lt()}}else--Wt,Lt()}Lt()}function He(){const dt=[];for(;Wt<Ut;){me(),Tn?.push(dt.length);let kt=de();Tn?.pop(),me(),On?.();const rt=it[Wt++];if(Bn?.("symbol",rt),kt!==void 0&&(Ke&&(kt=Ke(String(dt.length),kt)),kt===void 0?(++dt.length,kt=!0):dt.push(kt)),rt===",")kt===void 0&&Lt("Elisions are not supported");else{if(rt==="]")return!Et&&kt===void 0&&dt.length&&(--Wt,Lt("Trailing comma in array")),dt;--Wt,Lt()}}}function Re(){--Wt;let dt=Wt,kt=it[Wt++];const rt=function(tn){const Rn=it.substr(dt,Wt-dt);let wn;if(tn?wn=Number.parseInt(Rn.replace(/^0o?/,""),8):wn=Number(Rn),Number.isNaN(wn))--Wt,Lt(`Bad numeric literal - "${it.substr(dt,Wt-dt+1)}"`);else if(!We&&!Rn.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i))--Wt,Lt(`Non-json numeric literal - "${it.substr(dt,Wt-dt+1)}"`);else return wn};if((kt==="-"||kt==="+"&&We)&&(kt=it[Wt++]),kt==="N"&&We)return Qe("NaN"),Number.NaN;if(kt==="I"&&We)return Qe("Infinity"),rt();if(kt>="1"&&kt<="9"){for(;Wt<Ut&&s(it[Wt]);)++Wt;kt=it[Wt++]}if(kt==="0"){kt=it[Wt++];const tn=kt==="o"||kt==="O"||o(kt),Rn=kt==="x"||kt==="X";if(We&&(tn||Rn)){for(;Wt<Ut&&(Rn?r:o)(it[Wt]);)++Wt;let wn=1;return it[dt]==="-"?(wn=-1,++dt):it[dt]==="+"&&++dt,wn*rt(tn)}}if(kt==="."){for(;Wt<Ut&&s(it[Wt]);)++Wt;kt=it[Wt++]}if(kt==="e"||kt==="E"){for(kt=it[Wt++],(kt==="-"||kt==="+")&&++Wt;Wt<Ut&&s(it[Wt]);)++Wt;kt=it[Wt++]}return--Wt,rt()}function Ze(){--Wt;let dt="";for(;Wt<Ut;){let kt=it[Wt++];if(kt==="\\"&&it[Wt]==="u"&&r(it[Wt+1])&&r(it[Wt+2])&&r(it[Wt+3])&&r(it[Wt+4])&&(kt=String.fromCharCode(Number.parseInt(it.substr(Wt+1,4),16)),Wt+=5),dt.length)if(i.isIdentifierPart(kt))dt+=kt;else return--Wt,dt;else if(i.isIdentifierStart(kt))dt+=kt;else return}Lt()}function y(dt){let kt="";for(;Wt<Ut;){let rt=it[Wt++];if(rt===dt)return kt;if(rt==="\\")if(Wt>=Ut&&Lt(),rt=it[Wt++],p[rt]&&(We||rt!=="v"&&(rt!=="'"||Kt)))kt+=p[rt];else if(We&&It(rt))De(rt);else if(rt==="u"||rt==="x"&&We){const tn=rt==="u"?4:2;for(let Rn=0;Rn<tn;++Rn)Wt>=Ut&&Lt(),r(it[Wt])||Lt("Bad escape sequence"),Wt++;kt+=String.fromCharCode(Number.parseInt(it.substr(Wt-tn,tn),16))}else if(We&&o(rt)){let tn;rt<"4"&&o(it[Wt])&&o(it[Wt+1])?tn=3:o(it[Wt])?tn=2:tn=1,Wt+=tn-1,kt+=String.fromCharCode(Number.parseInt(it.substr(Wt-tn,tn),8))}else We?kt+=rt:(--Wt,Lt());else It(rt)?Lt():(!We&&rt.charCodeAt(0)<32&&(--Wt,Lt("Unexpected control character")),kt+=rt)}Lt()}tt&&le(),me();let yt=de();if(yt!==void 0||Wt<Ut){if(me(),Wt>=Ut)return Ke&&(yt=Ke("",yt)),Ue?Gn:yt;Lt()}else Lt(Wt?"No data, only a whitespace":"No data, empty input")}function O(it,ue){return typeof ue=="function"?ue={reviver:ue}:ue||(ue={}),E(it,ue)}function B(it,ue){ue||(ue={});const We=ue.tokenize;ue.tokenize=!0;const Line truncated
${gt}
${Ut}
${Kt}
${it}`):xt=`Parse error in JSON input:
${gt}
${it}`,{message:xt,excerpt:gt,pointer:Ut}}function Me(it,ue){let We=W(ue);const tt=he(it,We)||ge(it,We)||ve(it,We);let ke,Et,gt;tt?(ke=tt.offset,Et=tt.line,gt=tt.column,We=tt.reason):ke=0,ue.reason=We;const xt=_e(We,it,ke,Et,gt);return ue.message=xt.message,ue.excerpt=xt.excerpt,xt.pointer&&(ue.pointer=xt.pointer,ue.location={start:{column:gt,line:Et,offset:ke}}),ue}function be(it,ue){try{return JSON.parse(it,ue)}catch(We){const tt=Me(it,We);if(We.location)throw tt;return O(it,ue)}}const ze=typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),Ce=typeof process<"u"&&process.version.startsWith("v4.");function Fe(it){return it.ignoreBOM||it.ignoreComments||it.ignoreTrailingCommas||it.allowSingleQuotedStrings||it.allowDuplicateObjectKeys===!1||it.ignoreProtoKey||it.ignorePrototypeKeys||it.mode==="cjson"||it.mode==="json5"||ze||Ce}function ot(it){if(typeof it=="function")return it;if(it)return it.reviver}function mt(it,ue){return ue||(ue={}),Fe(ue)?O(it,ue):be(it,ot(ue))}t.parse=mt,t.tokenize=B,t.pathToPointer=N,t.pointerToPath=$,t.parseNative=be,t.parseCustom=O,t.getErrorTexts=_e,Object.defineProperty(t,"__esModule",{value:!0})})}(v_,v_.exports)),v_.exports}var jpe=zpe(),y3={exports:{}},Npe=y3.exports,ER;function Gpe(){return ER||(ER=1,function(n,e){(function(t,i){n.exports=i()})(Npe,function(){var t=typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function i(Ue,Ke){return Ke={exports:{}},Ue(Ke,Ke.exports),Ke.exports}var r=i(function(Ue){function Ke(){var Ve=0,bt=1,vt=2,It=3,Yt=4,Kt=5,on=6,Hn=7,Wt=8,Gn=9,On=10,Bn=11,Tn=12,Bi=13,Vn=14,Lt=15,De=16,de=17,oe=0,le=1,me=2,Ie=3,Qe=4;function At(y,yt){return 55296<=y.charCodeAt(yt)&&y.charCodeAt(yt)<=56319&&56320<=y.charCodeAt(yt+1)&&y.charCodeAt(yt+1)<=57343}function He(y,yt){yt===void 0&&(yt=0);var dt=y.charCodeAt(yt);if(55296<=dt&&dt<=56319&&yt<y.length-1){var kt=dt,rt=y.charCodeAt(yt+1);return 56320<=rt&&rt<=57343?(kt-55296)*1024+(rt-56320)+65536:kt}if(56320<=dt&&dt<=57343&&yt>=1){var kt=y.charCodeAt(yt-1),rt=dt;return 55296<=kt&&kt<=56319?(kt-55296)*1024+(rt-56320)+65536:rt}return dt}function Re(y,yt,dt){var kt=[y].concat(yt).concat([dt]),rt=kt[kt.length-2],tn=dt,Rn=kt.lastIndexOf(Vn);if(Rn>1&&kt.slice(1,Rn).every(function(Qn){return Qn==It})&&[It,Bi,de].indexOf(y)==-1)return me;var wn=kt.lastIndexOf(Yt);if(wn>0&&kt.slice(1,wn).every(function(Qn){return Qn==Yt})&&[Tn,Yt].indexOf(rt)==-1)return kt.filter(function(Qn){return Qn==Yt}).length%2==1?Ie:Qe;if(rt==Ve&&tn==bt)return oe;if(rt==vt||rt==Ve||rt==bt)return tn==Vn&&yt.every(function(Qn){return Qn==It})?me:le;if(tn==vt||tn==Ve||tn==bt)return le;if(rt==on&&(tn==on||tn==Hn||tn==Gn||tn==On))return oe;if((rt==Gn||rt==Hn)&&(tn==Hn||tn==Wt))return oe;if((rt==On||rt==Wt)&&tn==Wt)return oe;if(tn==It||tn==Lt)return oe;if(tn==Kt)return oe;if(rt==Tn)return oe;var ii=kt.indexOf(It)!=-1?kt.lastIndexOf(It)-1:kt.length-2;return[Bi,de].indexOf(kt[ii])!=-1&&kt.slice(ii+1,-1).every(function(Qn){return Qn==It})&&tn==Vn||rt==Lt&&[De,de].indexOf(tn)!=-1?oe:yt.indexOf(Yt)!=-1?me:rt==Yt&&tn==Yt?oe:le}this.nextBreak=function(y,yt){if(yt===void 0&&(yt=0),yt<0)return 0;if(yt>=y.length-1)return y.length;for(var dt=Ze(He(y,yt)),kt=[],rt=yt+1;rt<y.length;rt++)if(!At(y,rt-1)){var tn=Ze(He(y,rt));if(Re(dt,kt,tn))return rt;kt.push(tn)}return y.length},this.splitGraphemes=function(y){for(var yt=[],dt=0,kt;(kt=this.nextBreak(y,dt))<y.length;)yt.push(y.slice(dt,kt)),dt=kt;return dt<y.length&&yt.push(y.slice(dt)),yt},this.iterateGraphemes=function(y){var yt=0,dt={next:(function(){var kt,rt;return(rt=this.nextBreak(y,yt))<y.length?(kt=y.slice(yt,rt),yt=rt,{value:kt,done:!1}):yt<y.length?(kt=y.slice(yt),yt=y.length,{value:kt,done:!1}):{value:void 0,done:!0}}).bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(dt[Symbol.iterator]=function(){return dt}),dt},this.countGraphemes=function(y){for(var yt=0,dt=0,kt;(kt=this.nextBreak(y,dt))<y.length;)dt=kt,yt++;return dt<y.length&&yt++,yt};function Ze(y){return 1536<=y&&y<=1541||y==1757||y==1807||y==2274||y==3406||y==69821||70082<=y&&y<=70083||y==72250||72326<=y&&y<=72329||y==73030?Tn:y==13?Ve:y==10?bt:0<=y&&y<=9||11<=y&&y<=12||14<=y&&y<=31||127<=y&&y<=159||y==173||y==1564||y==6158||y==8203||8206<=y&&y<=8207||y==8232||y==8233||8234<=y&&y<=8238||8288<=y&&y<=8292||y==8293||8294<=y&&y<=8303||55296<=y&&y<=57343||y==65279||65520<=y&&y<=65528||65529<=y&&y<=65531||113824<=y&&y<=113827||119155<=y&&y<=119162||y==917504||y==917505||917506<=y&&y<=917535||917632<=y&&y<=917759||918e3<=y&&y<=921599?vt:768<=y&&y<=879||1155<=y&&y<=1159||1160<=y&&y<=1161||1425<=y&&y<=1469||y==1471||1473<=y&&y<=1474||1476<=y&&y<=1477||y==1479||1552<=y&&y<=1562||1611<=y&&y<=1631||y==1648||1750<=y&&y<=1756||1759<=y&&y<=1764||1767<=y&&y<=1768||1770<=y&&y<=1773||y==1809||1840<=y&&y<=1866||1958<=y&&y<=1968||2027<=y&&y<=2035||2070<=y&&y<=2073||2075<=y&&y<=2083||2085<=y&&y<=2087||2089<=y&&y<=2093||2137<=y&&y<=2139||2260<=y&&y<=2273||2275<=y&&y<=2306||y==2362||y==2364||2369<=y&&y<= Line truncated
`)}var Wt={extraLines:2,tabSize:4},Gn=function(Bn,Tn,Bi,Vn){Vn=Kt({},Wt,Vn);var Lt=Bn.split(/\r\n?|\n|\f/),De=Math.max(1,Tn-Vn.extraLines)-1,de=Math.min(Tn+Vn.extraLines,Lt.length),oe=String(de).length,le=Hn(Lt,De,Tn,oe,Vn),me=on(Lt[Tn-1].substring(0,Bi-1),Tn,oe,Vn),Ie=vt(" ",me.length)+"^",Qe=Hn(Lt,Tn,de,oe,Vn);return[le,Ie,Qe].filter(Boolean).join(`
`)};return Gn})}),g=new Error().stack,_=function(Ue){var Ke=Object.create(SyntaxError.prototype);return Object.assign(Ke,Ue,{name:"SyntaxError"}),Object.defineProperty(Ke,"stack",{get:function(){return g?g.replace(/^(.+\n){1,3}/,String(Ke)+`
`):""}}),Ke},E=function(Ue,Ke,Ve,bt,vt){throw _({message:bt?Ue+`
`+p(Ke,bt,vt):Ue,rawMessage:Ue,source:Ve,line:bt,column:vt})},O={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Ke){for(var Ve=arguments.length,bt=Array(Ve>1?Ve-1:0),vt=1;vt<Ve;vt++)bt[vt-1]=arguments[vt];return"Unexpected token <"+Ke+"> at "+bt.filter(Boolean).join(":")}},B={unexpectedSymbol:function(Ke){for(var Ve=arguments.length,bt=Array(Ve>1?Ve-1:0),vt=1;vt<Ve;vt++)bt[vt-1]=arguments[vt];return"Unexpected symbol <"+Ke+"> at "+bt.filter(Boolean).join(":")}},z={LEFT_BRACE:0,RIGHT_BRACE:1,LEFT_BRACKET:2,RIGHT_BRACKET:3,COLON:4,COMMA:5,STRING:6,NUMBER:7,TRUE:8,FALSE:9,NULL:10},N={"{":z.LEFT_BRACE,"}":z.RIGHT_BRACE,"[":z.LEFT_BRACKET,"]":z.RIGHT_BRACKET,":":z.COLON,",":z.COMMA},Q={true:z.TRUE,false:z.FALSE,null:z.NULL},$={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},X={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},re={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function ne(Ue){return Ue>="1"&&Ue<="9"}function V(Ue){return Ue>="0"&&Ue<="9"}function J(Ue){return V(Ue)||Ue>="a"&&Ue<="f"||Ue>="A"&&Ue<="F"}function W(Ue){return Ue==="e"||Ue==="E"}function he(Ue,Ke,Ve,bt){var vt=Ue.charAt(Ke);if(vt==="\r")Ke++,Ve++,bt=1,Ue.charAt(Ke)===`
`&&Ke++;else if(vt===`
`)Ke++,Ve++,bt=1;else if(vt===" "||vt===" ")Ke++,bt++;else return null;return{index:Ke,line:Ve,column:bt}}function ge(Ue,Ke,Ve,bt){var vt=Ue.charAt(Ke);return vt in N?{type:N[vt],line:Ve,column:bt+1,index:Ke+1,value:null}:null}function ve(Ue,Ke,Ve,bt){for(var vt in Q)if(Q.hasOwnProperty(vt)&&Ue.substr(Ke,vt.length)===vt)return{type:Q[vt],line:Ve,column:bt+vt.length,index:Ke+vt.length,value:vt};return null}function _e(Ue,Ke,Ve,bt){for(var vt=Ke,It=$._START_;Ke<Ue.length;){var Yt=Ue.charAt(Ke);switch(It){case $._START_:{if(Yt==='"')Ke++,It=$.START_QUOTE_OR_CHAR;else return null;break}case $.START_QUOTE_OR_CHAR:{if(Yt==="\\")Ke++,It=$.ESCAPE;else{if(Yt==='"')return Ke++,{type:z.STRING,line:Ve,column:bt+Ke-vt,index:Ke,value:Ue.slice(vt,Ke)};Ke++}break}case $.ESCAPE:{if(Yt in X){if(Ke++,Yt==="u")for(var Kt=0;Kt<4;Kt++){var on=Ue.charAt(Ke);if(on&&J(on))Ke++;else return null}It=$.START_QUOTE_OR_CHAR}else return null;break}}}}function Me(Ue,Ke,Ve,bt){var vt=Ke,It=Ke,Yt=re._START_;e:for(;Ke<Ue.length;){var Kt=Ue.charAt(Ke);switch(Yt){case re._START_:{if(Kt==="-")Yt=re.MINUS;else if(Kt==="0")It=Ke+1,Yt=re.ZERO;else if(ne(Kt))It=Ke+1,Yt=re.DIGIT;else return null;break}case re.MINUS:{if(Kt==="0")It=Ke+1,Yt=re.ZERO;else if(ne(Kt))It=Ke+1,Yt=re.DIGIT;else return null;break}case re.ZERO:{if(Kt===".")Yt=re.POINT;else if(W(Kt))Yt=re.EXP;else break e;break}case re.DIGIT:{if(V(Kt))It=Ke+1;else if(Kt===".")Yt=re.POINT;else if(W(Kt))Yt=re.EXP;else break e;break}case re.POINT:{if(V(Kt))It=Ke+1,Yt=re.DIGIT_FRACTION;else break e;break}case re.DIGIT_FRACTION:{if(V(Kt))It=Ke+1;else if(W(Kt))Yt=re.EXP;else break e;break}case re.EXP:{if(Kt==="+"||Kt==="-")Yt=re.EXP_DIGIT_OR_SIGN;else if(V(Kt))It=Ke+1,Yt=re.EXP_DIGIT_OR_SIGN;else break e;break}case re.EXP_DIGIT_OR_SIGN:{if(V(Kt))It=Ke+1;else break e;break}}Ke++}return It>0?{type:z.NUMBER,line:Ve,column:bt+It-vt,index:It,value:Ue.slice(vt,It)}:null}var be=function(Ke,Ve){for(var bt=1,vt=1,It=0,Yt=[];It<Ke.length;){var Kt=[Ke,It,bt,vt],on=he.apply(void 0,Kt);if(on){It=on.index,bt=on.line,vt=on.column;continue}var Hn=ge.apply(void 0,Kt)||ve.apply(void 0,Kt)||_e.apply(void 0,Kt)||Me.apply(void 0,Kt);if(Hn){var Wt={type:Hn.type,value:Hn.value,loc:a(bt,vt,It,Hn.line,Hn.column,Hn.index,Ve.source)};Yt.push(Wt),It=Hn.index,bt=Hn.line,vt=Hn.column}else E(B.unexpectedSymbol(s(Ke,It,It+1),Ve.source,bt,vt),Ke,Ve.source,bt,vt)}return Yt},ze={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},Ce={_START_:0,KEY:1,COLON:2},Fe={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},ot={loc:!0,source:null};function mt(Ue,Ke,Ve){var bt=Ke.length>0?Ke[Ke.length-1].loc.end:{line:1,column:1};E(O.unexpectedEnd(),Ue,Ve.source,bt.line,bt.column)}function it(Ue){for(var Ke=0,Ve=0;Ve<4;Ve++)Ke=Ke*16+parseInt(Ue[Ve],16);return String.fromCharCode(Ke)}var ue={b:"\b",f:"\f",n:`
`,r:"\r",t:" "},We=['"',"\\","/"];function tt(Ue){for(var Ke="",Ve=0;Ve<Ue.length;Ve++){var bt=Ue.charAt(Ve);if(bt==="\\"){Ve++;var vt=Ue.charAt(Ve);if(vt==="u")Ke+=it(Ue.substr(Ve+1,4)),Ve+=4;else if(We.indexOf(vt)!==-1)Ke+=vt;else if(vt in ue)Ke+=ue[vt];else break}else Ke+=bt}return Ke}function ke(Ue,Ke,Ve,bt){for(var vt=void 0,It={type:"Object",children:[]},Yt=ze._START_;Ve<Ke.length;){var Kt=Ke[Ve];switch(Yt){case ze._START_:{if(Kt.type===z.LEFT_BRACE)vt=Kt,Yt=ze.OPEN_OBJECT,Ve++;else return null;break}case ze.OPEN_OBJECT:{if(Kt.type===z.RIGHT_BRACE)return bt.loc&&(It.loc=a(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:It,index:Ve+1};var on=Et(Ue,Ke,Ve,bt);It.children.push(on.value),Yt=ze.PROPERTY,Ve=on.index;break}case ze.PROPERTY:{if(Kt.type===z.RIGHT_BRACE)return bt.loc&&(It.loc=a(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:It,index:Ve+1};Kt.type===z.COMMA?(Yt=ze.COMMA,Ve++):E(O.unexpectedToken(s(Ue,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Ue,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}case ze.COMMA:{var Hn=Et(Ue,Ke,Ve,bt);Hn?(Ve=Hn.index,It.children.push(Hn.value),Yt=ze.PROPERTY):E(O.unexpectedToken(s(Ue,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Ue,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}}}mt(Ue,Ke,bt)}function Et(Ue,Ke,Ve,bt){for(var vt=void 0,It={type:"Property",key:null,value:null},Yt=Ce._START_;Ve<Ke.length;){var Kt=Ke[Ve];switch(Yt){case Ce._START_:{if(Kt.type===z.STRING){var on={type:"Identifier",value:tt(Ue.slice(Kt.loc.start.offset+1,Kt.loc.end.offset-1)),raw:Kt.value};bt.loc&&(on.loc=Kt.loc),vt=Kt,It.key=on,Yt=Ce.KEY,Ve++}else return null;break}case Ce.KEY:{Kt.type===z.COLON?(Yt=Ce.COLON,Ve++):E(O.unexpectedToken(s(Ue,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Ue,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}case Ce.COLON:{var Hn=Ut(Ue,Ke,Ve,bt);return It.value=Hn.value,bt.loc&&(It.loc=a(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Hn.value.loc.end.line,Hn.value.loc.end.column,Hn.value.loc.end.offset,bt.source)),{value:It,index:Hn.index}}}}}function gt(Ue,Ke,Ve,bt){for(var vt=void 0,It={type:"Array",children:[]},Yt=Fe._START_,Kt=void 0;Ve<Ke.length;)switch(Kt=Ke[Ve],Yt){case Fe._START_:{if(Kt.type===z.LEFT_BRACKET)vt=Kt,Yt=Fe.OPEN_ARRAY,Ve++;else return null;break}case Fe.OPEN_ARRAY:{if(Kt.type===z.RIGHT_BRACKET)return bt.loc&&(It.loc=a(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:It,index:Ve+1};var on=Ut(Ue,Ke,Ve,bt);Ve=on.index,It.children.push(on.value),Yt=Fe.VALUE;break}case Fe.VALUE:{if(Kt.type===z.RIGHT_BRACKET)return bt.loc&&(It.loc=a(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:It,index:Ve+1};Kt.type===z.COMMA?(Yt=Fe.COMMA,Ve++):E(O.unexpectedToken(s(Ue,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Ue,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}case Fe.COMMA:{var Hn=Ut(Ue,Ke,Ve,bt);Ve=Hn.index,It.children.push(Hn.value),Yt=Fe.VALUE;break}}mt(Ue,Ke,bt)}function xt(Ue,Ke,Ve,bt){var vt=Ke[Ve],It=null;switch(vt.type){case z.STRING:{It=tt(Ue.slice(vt.loc.start.offset+1,vt.loc.end.offset-1));break}case z.NUMBER:{It=Number(vt.value);break}case z.TRUE:{It=!0;break}case z.FALSE:{It=!1;break}case z.NULL:{It=null;break}default:return null}var Yt={type:"Literal",value:It,raw:vt.value};return bt.loc&&(Yt.loc=vt.loc),{value:Yt,index:Ve+1}}function Ut(Ue,Ke,Ve,bt){var vt=Ke[Ve],It=xt.apply(void 0,arguments)||ke.apply(void 0,arguments)||gt.apply(void 0,arguments);if(It)return It;E(O.unexpectedToken(s(Ue,vt.loc.start.offset,vt.loc.end.offset),bt.source,vt.loc.start.line,vt.loc.start.column),Ue,bt.source,vt.loc.start.line,vt.loc.start.column)}var je=function(Ue,Ke){Ke=Object.assign({},ot,Ke);var Ve=be(Ue,Ke);Ve.length===0&&mt(Ue,Ve,Ke);var bt=Ut(Ue,Ve,0,Ke);if(bt.index===Ve.length)return bt.value;var vt=Ve[bt.index];E(O.unexpectedToken(s(Ue,vt.loc.start.offset,vt.loc.end.offset),Ke.source,vt.loc.start.line,vt.loc.start.column),Ue,Ke.source,vt.loc.start.line,vt.loc.start.column)};return je})}(y3)),y3.exports}var Wpe=Gpe();const Qpe=Bu(Wpe);function li(){var n="/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",e="799818f2992b2f8307763d856702ede3cf326f4d",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",statementMap:{0:{start:{line:5,column:0},end:{line:10,column:3}},1:{start:{line:6,column:2},end:{line:9,column:4}},2:{start:{line:12,column:16},end:{line:12,column:18}},3:{start:{line:13,column:2},end:{line:30,column:3}},4:{start:{line:14,column:4},end:{line:14,column:16}} Line truncated
${it}`,{message:xt,excerpt:gt,pointer:Kt}}function Me(it,ue){let We=W(ue);const tt=he(it,We)||ge(it,We)||ve(it,We);let ke,Et,gt;tt?(ke=tt.offset,Et=tt.line,gt=tt.column,We=tt.reason):ke=0,ue.reason=We;const xt=_e(We,it,ke,Et,gt);return ue.message=xt.message,ue.excerpt=xt.excerpt,xt.pointer&&(ue.pointer=xt.pointer,ue.location={start:{column:gt,line:Et,offset:ke}}),ue}function be(it,ue){try{return JSON.parse(it,ue)}catch(We){const tt=Me(it,We);if(We.location)throw tt;return O(it,ue)}}const ze=typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),Ce=typeof process<"u"&&process.version.startsWith("v4.");function Fe(it){return it.ignoreBOM||it.ignoreComments||it.ignoreTrailingCommas||it.allowSingleQuotedStrings||it.allowDuplicateObjectKeys===!1||it.ignoreProtoKey||it.ignorePrototypeKeys||it.mode==="cjson"||it.mode==="json5"||ze||Ce}function ot(it){if(typeof it=="function")return it;if(it)return it.reviver}function mt(it,ue){return ue||(ue={}),Fe(ue)?O(it,ue):be(it,ot(ue))}t.parse=mt,t.tokenize=B,t.pathToPointer=N,t.pointerToPath=$,t.parseNative=be,t.parseCustom=O,t.getErrorTexts=_e,Object.defineProperty(t,"__esModule",{value:!0})})}(v_,v_.exports)),v_.exports}var jpe=zpe(),v3={exports:{}},Npe=v3.exports,ER;function Gpe(){return ER||(ER=1,function(n,e){(function(t,i){n.exports=i()})(Npe,function(){var t=typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function i(Ke,Ue){return Ue={exports:{}},Ke(Ue,Ue.exports),Ue.exports}var r=i(function(Ke){function Ue(){var Ve=0,bt=1,vt=2,It=3,Yt=4,Ut=5,on=6,Hn=7,Wt=8,Gn=9,On=10,Bn=11,Tn=12,Oi=13,Vn=14,Lt=15,De=16,de=17,oe=0,le=1,me=2,Ie=3,Qe=4;function At(y,yt){return 55296<=y.charCodeAt(yt)&&y.charCodeAt(yt)<=56319&&56320<=y.charCodeAt(yt+1)&&y.charCodeAt(yt+1)<=57343}function He(y,yt){yt===void 0&&(yt=0);var dt=y.charCodeAt(yt);if(55296<=dt&&dt<=56319&&yt<y.length-1){var kt=dt,rt=y.charCodeAt(yt+1);return 56320<=rt&&rt<=57343?(kt-55296)*1024+(rt-56320)+65536:kt}if(56320<=dt&&dt<=57343&&yt>=1){var kt=y.charCodeAt(yt-1),rt=dt;return 55296<=kt&&kt<=56319?(kt-55296)*1024+(rt-56320)+65536:rt}return dt}function Re(y,yt,dt){var kt=[y].concat(yt).concat([dt]),rt=kt[kt.length-2],tn=dt,Rn=kt.lastIndexOf(Vn);if(Rn>1&&kt.slice(1,Rn).every(function(Qn){return Qn==It})&&[It,Oi,de].indexOf(y)==-1)return me;var wn=kt.lastIndexOf(Yt);if(wn>0&&kt.slice(1,wn).every(function(Qn){return Qn==Yt})&&[Tn,Yt].indexOf(rt)==-1)return kt.filter(function(Qn){return Qn==Yt}).length%2==1?Ie:Qe;if(rt==Ve&&tn==bt)return oe;if(rt==vt||rt==Ve||rt==bt)return tn==Vn&&yt.every(function(Qn){return Qn==It})?me:le;if(tn==vt||tn==Ve||tn==bt)return le;if(rt==on&&(tn==on||tn==Hn||tn==Gn||tn==On))return oe;if((rt==Gn||rt==Hn)&&(tn==Hn||tn==Wt))return oe;if((rt==On||rt==Wt)&&tn==Wt)return oe;if(tn==It||tn==Lt)return oe;if(tn==Ut)return oe;if(rt==Tn)return oe;var ri=kt.indexOf(It)!=-1?kt.lastIndexOf(It)-1:kt.length-2;return[Oi,de].indexOf(kt[ri])!=-1&&kt.slice(ri+1,-1).every(function(Qn){return Qn==It})&&tn==Vn||rt==Lt&&[De,de].indexOf(tn)!=-1?oe:yt.indexOf(Yt)!=-1?me:rt==Yt&&tn==Yt?oe:le}this.nextBreak=function(y,yt){if(yt===void 0&&(yt=0),yt<0)return 0;if(yt>=y.length-1)return y.length;for(var dt=Ze(He(y,yt)),kt=[],rt=yt+1;rt<y.length;rt++)if(!At(y,rt-1)){var tn=Ze(He(y,rt));if(Re(dt,kt,tn))return rt;kt.push(tn)}return y.length},this.splitGraphemes=function(y){for(var yt=[],dt=0,kt;(kt=this.nextBreak(y,dt))<y.length;)yt.push(y.slice(dt,kt)),dt=kt;return dt<y.length&&yt.push(y.slice(dt)),yt},this.iterateGraphemes=function(y){var yt=0,dt={next:(function(){var kt,rt;return(rt=this.nextBreak(y,yt))<y.length?(kt=y.slice(yt,rt),yt=rt,{value:kt,done:!1}):yt<y.length?(kt=y.slice(yt),yt=y.length,{value:kt,done:!1}):{value:void 0,done:!0}}).bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(dt[Symbol.iterator]=function(){return dt}),dt},this.countGraphemes=function(y){for(var yt=0,dt=0,kt;(kt=this.nextBreak(y,dt))<y.length;)dt=kt,yt++;return dt<y.length&&yt++,yt};function Ze(y){return 1536<=y&&y<=1541||y==1757||y==1807||y==2274||y==3406||y==69821||70082<=y&&y<=70083||y==72250||72326<=y&&y<=72329||y==73030?Tn:y==13?Ve:y==10?bt:0<=y&&y<=9||11<=y&&y<=12||14<=y&&y<=31||127<=y&&y<=159||y==173||y==1564||y==6158||y==8203||8206<=y&&y<=8207||y==8232||y==8233||8234<=y&&y<=8238||8288<=y&&y<=8292||y==8293||8294<=y&&y<=8303||55296<=y&&y<=57343||y==65279||65520<=y&&y<=65528||65529<=y&&y<=65531||113824<=y&&y<=113827||119155<=y&&y<=119162||y==917504||y==917505||917506<=y&&y<=917535||917632<=y&&y<=917759||918e3<=y&&y<=921599?vt:768<=y&&y<=879||1155<=y&&y<=1159||1160<=y&&y<=1161||1425<=y&&y<=1469||y==1471||1473<=y&&y<=1474||1476<=y&&y<=1477||y==1479||1552<=y&&y<=1562||1611<=y&&y<=1631||y==1648||1750<=y&&y<=1756||1759<=y&&y<=1764||1767<=y&&y<=1768||1770<=y&&y<=1773||y==1809||1840<=y&&y<=1866||1958<=y&&y<=1968||2027<=y&&y<=2035||2070<=y&&y<=2073||2075<=y&&y<=2083||2085<=y&&y<=2087||2089<=y&&y<=2093||2137<=y&&y<=2139||2260<=y&&y<=2273||2275<=y&&y<=2306||y==2362||y==2364||2369<=y&&y<= Line truncated
`)}var Wt={extraLines:2,tabSize:4},Gn=function(Bn,Tn,Oi,Vn){Vn=Ut({},Wt,Vn);var Lt=Bn.split(/\r\n?|\n|\f/),De=Math.max(1,Tn-Vn.extraLines)-1,de=Math.min(Tn+Vn.extraLines,Lt.length),oe=String(de).length,le=Hn(Lt,De,Tn,oe,Vn),me=on(Lt[Tn-1].substring(0,Oi-1),Tn,oe,Vn),Ie=vt(" ",me.length)+"^",Qe=Hn(Lt,Tn,de,oe,Vn);return[le,Ie,Qe].filter(Boolean).join(`
`)};return Gn})}),g=new Error().stack,_=function(Ke){var Ue=Object.create(SyntaxError.prototype);return Object.assign(Ue,Ke,{name:"SyntaxError"}),Object.defineProperty(Ue,"stack",{get:function(){return g?g.replace(/^(.+\n){1,3}/,String(Ue)+`
`):""}}),Ue},E=function(Ke,Ue,Ve,bt,vt){throw _({message:bt?Ke+`
`+p(Ue,bt,vt):Ke,rawMessage:Ke,source:Ve,line:bt,column:vt})},O={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Ue){for(var Ve=arguments.length,bt=Array(Ve>1?Ve-1:0),vt=1;vt<Ve;vt++)bt[vt-1]=arguments[vt];return"Unexpected token <"+Ue+"> at "+bt.filter(Boolean).join(":")}},B={unexpectedSymbol:function(Ue){for(var Ve=arguments.length,bt=Array(Ve>1?Ve-1:0),vt=1;vt<Ve;vt++)bt[vt-1]=arguments[vt];return"Unexpected symbol <"+Ue+"> at "+bt.filter(Boolean).join(":")}},z={LEFT_BRACE:0,RIGHT_BRACE:1,LEFT_BRACKET:2,RIGHT_BRACKET:3,COLON:4,COMMA:5,STRING:6,NUMBER:7,TRUE:8,FALSE:9,NULL:10},N={"{":z.LEFT_BRACE,"}":z.RIGHT_BRACE,"[":z.LEFT_BRACKET,"]":z.RIGHT_BRACKET,":":z.COLON,",":z.COMMA},Q={true:z.TRUE,false:z.FALSE,null:z.NULL},$={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},X={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},re={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function ne(Ke){return Ke>="1"&&Ke<="9"}function V(Ke){return Ke>="0"&&Ke<="9"}function J(Ke){return V(Ke)||Ke>="a"&&Ke<="f"||Ke>="A"&&Ke<="F"}function W(Ke){return Ke==="e"||Ke==="E"}function he(Ke,Ue,Ve,bt){var vt=Ke.charAt(Ue);if(vt==="\r")Ue++,Ve++,bt=1,Ke.charAt(Ue)===`
`&&Ue++;else if(vt===`
`)Ue++,Ve++,bt=1;else if(vt===" "||vt===" ")Ue++,bt++;else return null;return{index:Ue,line:Ve,column:bt}}function ge(Ke,Ue,Ve,bt){var vt=Ke.charAt(Ue);return vt in N?{type:N[vt],line:Ve,column:bt+1,index:Ue+1,value:null}:null}function ve(Ke,Ue,Ve,bt){for(var vt in Q)if(Q.hasOwnProperty(vt)&&Ke.substr(Ue,vt.length)===vt)return{type:Q[vt],line:Ve,column:bt+vt.length,index:Ue+vt.length,value:vt};return null}function _e(Ke,Ue,Ve,bt){for(var vt=Ue,It=$._START_;Ue<Ke.length;){var Yt=Ke.charAt(Ue);switch(It){case $._START_:{if(Yt==='"')Ue++,It=$.START_QUOTE_OR_CHAR;else return null;break}case $.START_QUOTE_OR_CHAR:{if(Yt==="\\")Ue++,It=$.ESCAPE;else{if(Yt==='"')return Ue++,{type:z.STRING,line:Ve,column:bt+Ue-vt,index:Ue,value:Ke.slice(vt,Ue)};Ue++}break}case $.ESCAPE:{if(Yt in X){if(Ue++,Yt==="u")for(var Ut=0;Ut<4;Ut++){var on=Ke.charAt(Ue);if(on&&J(on))Ue++;else return null}It=$.START_QUOTE_OR_CHAR}else return null;break}}}}function Me(Ke,Ue,Ve,bt){var vt=Ue,It=Ue,Yt=re._START_;e:for(;Ue<Ke.length;){var Ut=Ke.charAt(Ue);switch(Yt){case re._START_:{if(Ut==="-")Yt=re.MINUS;else if(Ut==="0")It=Ue+1,Yt=re.ZERO;else if(ne(Ut))It=Ue+1,Yt=re.DIGIT;else return null;break}case re.MINUS:{if(Ut==="0")It=Ue+1,Yt=re.ZERO;else if(ne(Ut))It=Ue+1,Yt=re.DIGIT;else return null;break}case re.ZERO:{if(Ut===".")Yt=re.POINT;else if(W(Ut))Yt=re.EXP;else break e;break}case re.DIGIT:{if(V(Ut))It=Ue+1;else if(Ut===".")Yt=re.POINT;else if(W(Ut))Yt=re.EXP;else break e;break}case re.POINT:{if(V(Ut))It=Ue+1,Yt=re.DIGIT_FRACTION;else break e;break}case re.DIGIT_FRACTION:{if(V(Ut))It=Ue+1;else if(W(Ut))Yt=re.EXP;else break e;break}case re.EXP:{if(Ut==="+"||Ut==="-")Yt=re.EXP_DIGIT_OR_SIGN;else if(V(Ut))It=Ue+1,Yt=re.EXP_DIGIT_OR_SIGN;else break e;break}case re.EXP_DIGIT_OR_SIGN:{if(V(Ut))It=Ue+1;else break e;break}}Ue++}return It>0?{type:z.NUMBER,line:Ve,column:bt+It-vt,index:It,value:Ke.slice(vt,It)}:null}var be=function(Ue,Ve){for(var bt=1,vt=1,It=0,Yt=[];It<Ue.length;){var Ut=[Ue,It,bt,vt],on=he.apply(void 0,Ut);if(on){It=on.index,bt=on.line,vt=on.column;continue}var Hn=ge.apply(void 0,Ut)||ve.apply(void 0,Ut)||_e.apply(void 0,Ut)||Me.apply(void 0,Ut);if(Hn){var Wt={type:Hn.type,value:Hn.value,loc:a(bt,vt,It,Hn.line,Hn.column,Hn.index,Ve.source)};Yt.push(Wt),It=Hn.index,bt=Hn.line,vt=Hn.column}else E(B.unexpectedSymbol(s(Ue,It,It+1),Ve.source,bt,vt),Ue,Ve.source,bt,vt)}return Yt},ze={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},Ce={_START_:0,KEY:1,COLON:2},Fe={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},ot={loc:!0,source:null};function mt(Ke,Ue,Ve){var bt=Ue.length>0?Ue[Ue.length-1].loc.end:{line:1,column:1};E(O.unexpectedEnd(),Ke,Ve.source,bt.line,bt.column)}function it(Ke){for(var Ue=0,Ve=0;Ve<4;Ve++)Ue=Ue*16+parseInt(Ke[Ve],16);return String.fromCharCode(Ue)}var ue={b:"\b",f:"\f",n:`
`,r:"\r",t:" "},We=['"',"\\","/"];function tt(Ke){for(var Ue="",Ve=0;Ve<Ke.length;Ve++){var bt=Ke.charAt(Ve);if(bt==="\\"){Ve++;var vt=Ke.charAt(Ve);if(vt==="u")Ue+=it(Ke.substr(Ve+1,4)),Ve+=4;else if(We.indexOf(vt)!==-1)Ue+=vt;else if(vt in ue)Ue+=ue[vt];else break}else Ue+=bt}return Ue}function ke(Ke,Ue,Ve,bt){for(var vt=void 0,It={type:"Object",children:[]},Yt=ze._START_;Ve<Ue.length;){var Ut=Ue[Ve];switch(Yt){case ze._START_:{if(Ut.type===z.LEFT_BRACE)vt=Ut,Yt=ze.OPEN_OBJECT,Ve++;else return null;break}case ze.OPEN_OBJECT:{if(Ut.type===z.RIGHT_BRACE)return bt.loc&&(It.loc=a(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Ut.loc.end.line,Ut.loc.end.column,Ut.loc.end.offset,bt.source)),{value:It,index:Ve+1};var on=Et(Ke,Ue,Ve,bt);It.children.push(on.value),Yt=ze.PROPERTY,Ve=on.index;break}case ze.PROPERTY:{if(Ut.type===z.RIGHT_BRACE)return bt.loc&&(It.loc=a(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Ut.loc.end.line,Ut.loc.end.column,Ut.loc.end.offset,bt.source)),{value:It,index:Ve+1};Ut.type===z.COMMA?(Yt=ze.COMMA,Ve++):E(O.unexpectedToken(s(Ke,Ut.loc.start.offset,Ut.loc.end.offset),bt.source,Ut.loc.start.line,Ut.loc.start.column),Ke,bt.source,Ut.loc.start.line,Ut.loc.start.column);break}case ze.COMMA:{var Hn=Et(Ke,Ue,Ve,bt);Hn?(Ve=Hn.index,It.children.push(Hn.value),Yt=ze.PROPERTY):E(O.unexpectedToken(s(Ke,Ut.loc.start.offset,Ut.loc.end.offset),bt.source,Ut.loc.start.line,Ut.loc.start.column),Ke,bt.source,Ut.loc.start.line,Ut.loc.start.column);break}}}mt(Ke,Ue,bt)}function Et(Ke,Ue,Ve,bt){for(var vt=void 0,It={type:"Property",key:null,value:null},Yt=Ce._START_;Ve<Ue.length;){var Ut=Ue[Ve];switch(Yt){case Ce._START_:{if(Ut.type===z.STRING){var on={type:"Identifier",value:tt(Ke.slice(Ut.loc.start.offset+1,Ut.loc.end.offset-1)),raw:Ut.value};bt.loc&&(on.loc=Ut.loc),vt=Ut,It.key=on,Yt=Ce.KEY,Ve++}else return null;break}case Ce.KEY:{Ut.type===z.COLON?(Yt=Ce.COLON,Ve++):E(O.unexpectedToken(s(Ke,Ut.loc.start.offset,Ut.loc.end.offset),bt.source,Ut.loc.start.line,Ut.loc.start.column),Ke,bt.source,Ut.loc.start.line,Ut.loc.start.column);break}case Ce.COLON:{var Hn=Kt(Ke,Ue,Ve,bt);return It.value=Hn.value,bt.loc&&(It.loc=a(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Hn.value.loc.end.line,Hn.value.loc.end.column,Hn.value.loc.end.offset,bt.source)),{value:It,index:Hn.index}}}}}function gt(Ke,Ue,Ve,bt){for(var vt=void 0,It={type:"Array",children:[]},Yt=Fe._START_,Ut=void 0;Ve<Ue.length;)switch(Ut=Ue[Ve],Yt){case Fe._START_:{if(Ut.type===z.LEFT_BRACKET)vt=Ut,Yt=Fe.OPEN_ARRAY,Ve++;else return null;break}case Fe.OPEN_ARRAY:{if(Ut.type===z.RIGHT_BRACKET)return bt.loc&&(It.loc=a(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Ut.loc.end.line,Ut.loc.end.column,Ut.loc.end.offset,bt.source)),{value:It,index:Ve+1};var on=Kt(Ke,Ue,Ve,bt);Ve=on.index,It.children.push(on.value),Yt=Fe.VALUE;break}case Fe.VALUE:{if(Ut.type===z.RIGHT_BRACKET)return bt.loc&&(It.loc=a(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Ut.loc.end.line,Ut.loc.end.column,Ut.loc.end.offset,bt.source)),{value:It,index:Ve+1};Ut.type===z.COMMA?(Yt=Fe.COMMA,Ve++):E(O.unexpectedToken(s(Ke,Ut.loc.start.offset,Ut.loc.end.offset),bt.source,Ut.loc.start.line,Ut.loc.start.column),Ke,bt.source,Ut.loc.start.line,Ut.loc.start.column);break}case Fe.COMMA:{var Hn=Kt(Ke,Ue,Ve,bt);Ve=Hn.index,It.children.push(Hn.value),Yt=Fe.VALUE;break}}mt(Ke,Ue,bt)}function xt(Ke,Ue,Ve,bt){var vt=Ue[Ve],It=null;switch(vt.type){case z.STRING:{It=tt(Ke.slice(vt.loc.start.offset+1,vt.loc.end.offset-1));break}case z.NUMBER:{It=Number(vt.value);break}case z.TRUE:{It=!0;break}case z.FALSE:{It=!1;break}case z.NULL:{It=null;break}default:return null}var Yt={type:"Literal",value:It,raw:vt.value};return bt.loc&&(Yt.loc=vt.loc),{value:Yt,index:Ve+1}}function Kt(Ke,Ue,Ve,bt){var vt=Ue[Ve],It=xt.apply(void 0,arguments)||ke.apply(void 0,arguments)||gt.apply(void 0,arguments);if(It)return It;E(O.unexpectedToken(s(Ke,vt.loc.start.offset,vt.loc.end.offset),bt.source,vt.loc.start.line,vt.loc.start.column),Ke,bt.source,vt.loc.start.line,vt.loc.start.column)}var je=function(Ke,Ue){Ue=Object.assign({},ot,Ue);var Ve=be(Ke,Ue);Ve.length===0&&mt(Ke,Ve,Ue);var bt=Kt(Ke,Ve,0,Ue);if(bt.index===Ve.length)return bt.value;var vt=Ve[bt.index];E(O.unexpectedToken(s(Ke,vt.loc.start.offset,vt.loc.end.offset),Ue.source,vt.loc.start.line,vt.loc.start.column),Ke,Ue.source,vt.loc.start.line,vt.loc.start.column)};return je})}(v3)),v3.exports}var Wpe=Gpe();const Qpe=Bu(Wpe);function ui(){var n="/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",e="799818f2992b2f8307763d856702ede3cf326f4d",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",statementMap:{0:{start:{line:5,column:0},end:{line:10,column:3}},1:{start:{line:6,column:2},end:{line:9,column:4}},2:{start:{line:12,column:16},end:{line:12,column:18}},3:{start:{line:13,column:2},end:{line:30,column:3}},4:{start:{line:14,column:4},end:{line:14,column:16}} Line truncated
rgba(`+ne.r+","+ne.g+","+ne.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:ne.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+ne.r+","+ne.g+","+ne.b+`, 0) 0%,
rgba(`+ne.r+","+ne.g+","+ne.b+", 1) 100%)"},pointer:{left:0,top:ne.a*100+"%"}},overwrite:n({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return i.default.createElement("div",{style:V.alpha},i.default.createElement("div",{style:V.checkboard},i.default.createElement(g.default,{renderers:this.props.renderers})),i.default.createElement("div",{style:V.gradient}),i.default.createElement("div",{style:V.container,ref:function(W){return re.container=W},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("div",{style:V.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:V.slider}))))}}]),$}(t.PureComponent||t.Component);return fv.default=N,fv}var mv={},JU;function fge(){if(JU)return mv;JU=1,Object.defineProperty(mv,"__esModule",{value:!0}),mv.EditableInput=void 0;var n=function(){function X(re,ne){for(var V=0;V<ne.length;V++){var J=ne[V];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(re,J.key,J)}}return function(re,ne,V){return ne&&X(re.prototype,ne),V&&X(re,V),re}}(),e=Rl(),t=o(e),i=Em(),r=o(i);function o(X){return X&&X.__esModule?X:{default:X}}function s(X,re,ne){return re in X?Object.defineProperty(X,re,{value:ne,enumerable:!0,configurable:!0,writable:!0}):X[re]=ne,X}function a(X,re){if(!(X instanceof re))throw new TypeError("Cannot call a class as a function")}function p(X,re){if(!X)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return re&&(typeof re=="object"||typeof re=="function")?re:X}function g(X,re){if(typeof re!="function"&&re!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof re);X.prototype=Object.create(re&&re.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),re&&(Object.setPrototypeOf?Object.setPrototypeOf(X,re):X.__proto__=re)}var _=1,E=38,O=40,B=[E,O],z=function(re){return B.indexOf(re)>-1},N=function(re){return Number(String(re).replace(/%/g,""))},Q=1,$=mv.EditableInput=function(X){g(re,X);function re(ne){a(this,re);var V=p(this,(re.__proto__||Object.getPrototypeOf(re)).call(this));return V.handleBlur=function(){V.state.blurValue&&V.setState({value:V.state.blurValue,blurValue:null})},V.handleChange=function(J){V.setUpdatedValue(J.target.value,J)},V.handleKeyDown=function(J){var W=N(J.target.value);if(!isNaN(W)&&z(J.keyCode)){var he=V.getArrowOffset(),ge=J.keyCode===E?W+he:W-he;V.setUpdatedValue(ge,J)}},V.handleDrag=function(J){if(V.props.dragLabel){var W=Math.round(V.props.value+J.movementX);W>=0&&W<=V.props.dragMax&&V.props.onChange&&V.props.onChange(V.getValueObjectWithLabel(W),J)}},V.handleMouseDown=function(J){V.props.dragLabel&&(J.preventDefault(),V.handleDrag(J),window.addEventListener("mousemove",V.handleDrag),window.addEventListener("mouseup",V.handleMouseUp))},V.handleMouseUp=function(){V.unbindEventListeners()},V.unbindEventListeners=function(){window.removeEventListener("mousemove",V.handleDrag),window.removeEventListener("mouseup",V.handleMouseUp)},V.state={value:String(ne.value).toUpperCase(),blurValue:String(ne.value).toUpperCase()},V.inputId="rc-editable-input-"+Q++,V}return n(re,[{key:"componentDidUpdate",value:function(V,J){this.props.value!==this.state.value&&(V.value!==this.props.value||J.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(V){return s({},this.props.label,V)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||_}},{key:"setUpdatedValue",value:function(V,J){var W=this.props.label?this.getValueObjectWithLabel(V):V;this.props.onChange&&this.props.onChange(W,J),this.setState({value:V})}},{key:"render",value:function(){var V=this,J=(0,r.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return t.default.createElement("div",{style:J.wrap},t.default.createElement("input",{id:this.inputId,style:J.input,ref:function(he){return V.input=he},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?t.default.createElement("label",{htmlFor:this.inputId,style:J.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),re}(e.PureComponent||e.Com Line truncated
rgba(`+ne.r+","+ne.g+","+ne.b+", 1) 100%)"},pointer:{left:0,top:ne.a*100+"%"}},overwrite:n({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return i.default.createElement("div",{style:V.alpha},i.default.createElement("div",{style:V.checkboard},i.default.createElement(g.default,{renderers:this.props.renderers})),i.default.createElement("div",{style:V.gradient}),i.default.createElement("div",{style:V.container,ref:function(W){return re.container=W},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("div",{style:V.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:V.slider}))))}}]),$}(t.PureComponent||t.Component);return fv.default=N,fv}var mv={},JK;function fge(){if(JK)return mv;JK=1,Object.defineProperty(mv,"__esModule",{value:!0}),mv.EditableInput=void 0;var n=function(){function X(re,ne){for(var V=0;V<ne.length;V++){var J=ne[V];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(re,J.key,J)}}return function(re,ne,V){return ne&&X(re.prototype,ne),V&&X(re,V),re}}(),e=Rl(),t=o(e),i=Em(),r=o(i);function o(X){return X&&X.__esModule?X:{default:X}}function s(X,re,ne){return re in X?Object.defineProperty(X,re,{value:ne,enumerable:!0,configurable:!0,writable:!0}):X[re]=ne,X}function a(X,re){if(!(X instanceof re))throw new TypeError("Cannot call a class as a function")}function p(X,re){if(!X)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return re&&(typeof re=="object"||typeof re=="function")?re:X}function g(X,re){if(typeof re!="function"&&re!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof re);X.prototype=Object.create(re&&re.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),re&&(Object.setPrototypeOf?Object.setPrototypeOf(X,re):X.__proto__=re)}var _=1,E=38,O=40,B=[E,O],z=function(re){return B.indexOf(re)>-1},N=function(re){return Number(String(re).replace(/%/g,""))},Q=1,$=mv.EditableInput=function(X){g(re,X);function re(ne){a(this,re);var V=p(this,(re.__proto__||Object.getPrototypeOf(re)).call(this));return V.handleBlur=function(){V.state.blurValue&&V.setState({value:V.state.blurValue,blurValue:null})},V.handleChange=function(J){V.setUpdatedValue(J.target.value,J)},V.handleKeyDown=function(J){var W=N(J.target.value);if(!isNaN(W)&&z(J.keyCode)){var he=V.getArrowOffset(),ge=J.keyCode===E?W+he:W-he;V.setUpdatedValue(ge,J)}},V.handleDrag=function(J){if(V.props.dragLabel){var W=Math.round(V.props.value+J.movementX);W>=0&&W<=V.props.dragMax&&V.props.onChange&&V.props.onChange(V.getValueObjectWithLabel(W),J)}},V.handleMouseDown=function(J){V.props.dragLabel&&(J.preventDefault(),V.handleDrag(J),window.addEventListener("mousemove",V.handleDrag),window.addEventListener("mouseup",V.handleMouseUp))},V.handleMouseUp=function(){V.unbindEventListeners()},V.unbindEventListeners=function(){window.removeEventListener("mousemove",V.handleDrag),window.removeEventListener("mouseup",V.handleMouseUp)},V.state={value:String(ne.value).toUpperCase(),blurValue:String(ne.value).toUpperCase()},V.inputId="rc-editable-input-"+Q++,V}return n(re,[{key:"componentDidUpdate",value:function(V,J){this.props.value!==this.state.value&&(V.value!==this.props.value||J.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(V){return s({},this.props.label,V)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||_}},{key:"setUpdatedValue",value:function(V,J){var W=this.props.label?this.getValueObjectWithLabel(V):V;this.props.onChange&&this.props.onChange(W,J),this.setState({value:V})}},{key:"render",value:function(){var V=this,J=(0,r.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return t.default.createElement("div",{style:J.wrap},t.default.createElement("input",{id:this.inputId,style:J.input,ref:function(he){return V.input=he},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?t.default.createElement("label",{htmlFor:this.inputId,style:J.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),re}(e.PureComponent||e.Com Line truncated
.hue-horizontal {
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
@@ -953,7 +953,7 @@ ${it}`,{message:xt,excerpt:gt,pointer:Ut}}function Me(it,ue){let We=W(ue);const
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
`),t.default.createElement("div",{style:re.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:re.slider}))))}}]),z}(e.PureComponent||e.Component);return gv.default=O,gv}var yv={},nL;function gge(){if(nL)return yv;nL=1,Object.defineProperty(yv,"__esModule",{value:!0}),yv.Raised=void 0;var n=Rl(),e=p(n),t=sg(),i=p(t),r=Em(),o=p(r),s=jQ(),a=p(s);function p(_){return _&&_.__esModule?_:{default:_}}var g=yv.Raised=function(E){var O=E.zDepth,B=E.radius,z=E.background,N=E.children,Q=E.styles,$=Q===void 0?{}:Q,X=(0,o.default)((0,a.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+O+"px "+O*4+"px rgba(0,0,0,.24)",borderRadius:B,background:z}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},$),{"zDepth-1":O===1});return e.default.createElement("div",{style:X.wrap},e.default.createElement("div",{style:X.bg}),e.default.createElement("div",{style:X.content},N))};return g.propTypes={background:i.default.string,zDepth:i.default.oneOf([0,1,2,3,4,5]),radius:i.default.number,styles:i.default.object},g.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},yv.default=g,yv}var vv={},a6,iL;function yge(){if(iL)return a6;iL=1;var n=Sm(),e=function(){return n.Date.now()};return a6=e,a6}var s6,rL;function vge(){if(rL)return s6;rL=1;var n=/\s/;function e(t){for(var i=t.length;i--&&n.test(t.charAt(i)););return i}return s6=e,s6}var l6,oL;function Cge(){if(oL)return l6;oL=1;var n=vge(),e=/^\s+/;function t(i){return i&&i.slice(0,n(i)+1).replace(e,"")}return l6=t,l6}var u6,aL;function _ge(){if(aL)return u6;aL=1;var n=Cge(),e=Lp(),t=N4(),i=NaN,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function p(g){if(typeof g=="number")return g;if(t(g))return i;if(e(g)){var _=typeof g.valueOf=="function"?g.valueOf():g;g=e(_)?_+"":_}if(typeof g!="string")return g===0?g:+g;g=n(g);var E=o.test(g);return E||s.test(g)?a(g.slice(2),E?2:8):r.test(g)?i:+g}return u6=p,u6}var A6,sL;function NQ(){if(sL)return A6;sL=1;var n=Lp(),e=yge(),t=_ge(),i="Expected a function",r=Math.max,o=Math.min;function s(a,p,g){var _,E,O,B,z,N,Q=0,$=!1,X=!1,re=!0;if(typeof a!="function")throw new TypeError(i);p=t(p)||0,n(g)&&($=!!g.leading,X="maxWait"in g,O=X?r(t(g.maxWait)||0,p):O,re="trailing"in g?!!g.trailing:re);function ne(be){var ze=_,Ce=E;return _=E=void 0,Q=be,B=a.apply(Ce,ze),B}function V(be){return Q=be,z=setTimeout(he,p),$?ne(be):B}function J(be){var ze=be-N,Ce=be-Q,Fe=p-ze;return X?o(Fe,O-Ce):Fe}function W(be){var ze=be-N,Ce=be-Q;return N===void 0||ze>=p||ze<0||X&&Ce>=O}function he(){var be=e();if(W(be))return ge(be);z=setTimeout(he,J(be))}function ge(be){return z=void 0,re&&_?ne(be):(_=E=void 0,B)}function ve(){z!==void 0&&clearTimeout(z),Q=0,_=N=E=z=void 0}function _e(){return z===void 0?B:ge(e())}function Me(){var be=e(),ze=W(be);if(_=arguments,E=this,N=be,ze){if(z===void 0)return V(N);if(X)return clearTimeout(z),z=setTimeout(he,p),ne(N)}return z===void 0&&(z=setTimeout(he,p)),B}return Me.cancel=ve,Me.flush=_e,Me}return A6=s,A6}var c6,lL;function bge(){if(lL)return c6;lL=1;var n=NQ(),e=Lp(),t="Expected a function";function i(r,o,s){var a=!0,p=!0;if(typeof r!="function")throw new TypeError(t);return e(s)&&(a="leading"in s?!!s.leading:a,p="trailing"in s?!!s.trailing:p),n(r,o,{leading:a,maxWait:o,trailing:p})}return c6=i,c6}var n3={},uL;function xge(){return uL||(uL=1,Object.defineProperty(n3,"__esModule",{value:!0}),n3.calculateChange=function(e,t,i){var r=i.getBoundingClientRect(),o=r.width,s=r.height,a=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,p=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,g=a-(i.getBoundingClientRect().left+window.pageXOffset),_=p-(i.getBoundingClientRect().top+window.pageYOffset);g<0?g=0:g>o&&(g=o),_<0?_=0:_>s&&(_=s);var E=g/o,O=1-_/s;return{h:t.h,s:E,v:O,a:t.a,source:"hsv"}}),n3}var AL;function Mge(){if(AL)return vv;AL=1,Object.defineProperty(vv,"__esModule",{value:!0}),vv.Saturation=void 0;var n=function(){function N(Q,$){for(var X=0;X<$.length;X++){var re=$[X];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(Q,re.key,re)}}return function(Q,$,X){return $&&N(Q.prototype,$),X&&N(Q,X),Q}}(),e=Rl(),t=_(e),i=Em(),r=_(i),o=bge(),s=_(o),a=xge(),p=g(a);function g(N){if(N&&N.__esModule)return N;var Q={};if(N!=null)for(var $ in N)Object.prototype.hasOwnProperty.call(N,$)&&(Q[$]=N[$]);return Q.default=N,Q}function _(N){r Line truncated
`),t.default.createElement("div",{style:re.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:re.slider}))))}}]),z}(e.PureComponent||e.Component);return gv.default=O,gv}var yv={},nL;function gge(){if(nL)return yv;nL=1,Object.defineProperty(yv,"__esModule",{value:!0}),yv.Raised=void 0;var n=Rl(),e=p(n),t=sg(),i=p(t),r=Em(),o=p(r),s=jQ(),a=p(s);function p(_){return _&&_.__esModule?_:{default:_}}var g=yv.Raised=function(E){var O=E.zDepth,B=E.radius,z=E.background,N=E.children,Q=E.styles,$=Q===void 0?{}:Q,X=(0,o.default)((0,a.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+O+"px "+O*4+"px rgba(0,0,0,.24)",borderRadius:B,background:z}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},$),{"zDepth-1":O===1});return e.default.createElement("div",{style:X.wrap},e.default.createElement("div",{style:X.bg}),e.default.createElement("div",{style:X.content},N))};return g.propTypes={background:i.default.string,zDepth:i.default.oneOf([0,1,2,3,4,5]),radius:i.default.number,styles:i.default.object},g.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},yv.default=g,yv}var vv={},a6,iL;function yge(){if(iL)return a6;iL=1;var n=Sm(),e=function(){return n.Date.now()};return a6=e,a6}var s6,rL;function vge(){if(rL)return s6;rL=1;var n=/\s/;function e(t){for(var i=t.length;i--&&n.test(t.charAt(i)););return i}return s6=e,s6}var l6,oL;function Cge(){if(oL)return l6;oL=1;var n=vge(),e=/^\s+/;function t(i){return i&&i.slice(0,n(i)+1).replace(e,"")}return l6=t,l6}var u6,aL;function _ge(){if(aL)return u6;aL=1;var n=Cge(),e=Lp(),t=G4(),i=NaN,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function p(g){if(typeof g=="number")return g;if(t(g))return i;if(e(g)){var _=typeof g.valueOf=="function"?g.valueOf():g;g=e(_)?_+"":_}if(typeof g!="string")return g===0?g:+g;g=n(g);var E=o.test(g);return E||s.test(g)?a(g.slice(2),E?2:8):r.test(g)?i:+g}return u6=p,u6}var A6,sL;function NQ(){if(sL)return A6;sL=1;var n=Lp(),e=yge(),t=_ge(),i="Expected a function",r=Math.max,o=Math.min;function s(a,p,g){var _,E,O,B,z,N,Q=0,$=!1,X=!1,re=!0;if(typeof a!="function")throw new TypeError(i);p=t(p)||0,n(g)&&($=!!g.leading,X="maxWait"in g,O=X?r(t(g.maxWait)||0,p):O,re="trailing"in g?!!g.trailing:re);function ne(be){var ze=_,Ce=E;return _=E=void 0,Q=be,B=a.apply(Ce,ze),B}function V(be){return Q=be,z=setTimeout(he,p),$?ne(be):B}function J(be){var ze=be-N,Ce=be-Q,Fe=p-ze;return X?o(Fe,O-Ce):Fe}function W(be){var ze=be-N,Ce=be-Q;return N===void 0||ze>=p||ze<0||X&&Ce>=O}function he(){var be=e();if(W(be))return ge(be);z=setTimeout(he,J(be))}function ge(be){return z=void 0,re&&_?ne(be):(_=E=void 0,B)}function ve(){z!==void 0&&clearTimeout(z),Q=0,_=N=E=z=void 0}function _e(){return z===void 0?B:ge(e())}function Me(){var be=e(),ze=W(be);if(_=arguments,E=this,N=be,ze){if(z===void 0)return V(N);if(X)return clearTimeout(z),z=setTimeout(he,p),ne(N)}return z===void 0&&(z=setTimeout(he,p)),B}return Me.cancel=ve,Me.flush=_e,Me}return A6=s,A6}var c6,lL;function bge(){if(lL)return c6;lL=1;var n=NQ(),e=Lp(),t="Expected a function";function i(r,o,s){var a=!0,p=!0;if(typeof r!="function")throw new TypeError(t);return e(s)&&(a="leading"in s?!!s.leading:a,p="trailing"in s?!!s.trailing:p),n(r,o,{leading:a,maxWait:o,trailing:p})}return c6=i,c6}var i3={},uL;function xge(){return uL||(uL=1,Object.defineProperty(i3,"__esModule",{value:!0}),i3.calculateChange=function(e,t,i){var r=i.getBoundingClientRect(),o=r.width,s=r.height,a=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,p=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,g=a-(i.getBoundingClientRect().left+window.pageXOffset),_=p-(i.getBoundingClientRect().top+window.pageYOffset);g<0?g=0:g>o&&(g=o),_<0?_=0:_>s&&(_=s);var E=g/o,O=1-_/s;return{h:t.h,s:E,v:O,a:t.a,source:"hsv"}}),i3}var AL;function Mge(){if(AL)return vv;AL=1,Object.defineProperty(vv,"__esModule",{value:!0}),vv.Saturation=void 0;var n=function(){function N(Q,$){for(var X=0;X<$.length;X++){var re=$[X];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(Q,re.key,re)}}return function(Q,$,X){return $&&N(Q.prototype,$),X&&N(Q,X),Q}}(),e=Rl(),t=_(e),i=Em(),r=_(i),o=bge(),s=_(o),a=xge(),p=g(a);function g(N){if(N&&N.__esModule)return N;var Q={};if(N!=null)for(var $ in N)Object.prototype.hasOwnProperty.call(N,$)&&(Q[$]=N[$]);return Q.default=N,Q}function _(N){r Line truncated
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:ne,white:V,black:J,pointer:W,circle:he}},{custom:!!this.props.style});return t.default.createElement("div",{style:ge.color,ref:function(_e){return X.container=_e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.default.createElement("style",null,`
.saturation-white {
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
@@ -963,7 +963,7 @@ ${it}`,{message:xt,excerpt:gt,pointer:Ut}}function Me(it,ue){let We=W(ue);const
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
background: linear-gradient(to top, #000, rgba(0,0,0,0));
}
`),t.default.createElement("div",{style:ge.white,className:"saturation-white"},t.default.createElement("div",{style:ge.black,className:"saturation-black"}),t.default.createElement("div",{style:ge.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:ge.circle}))))}}]),Q}(e.PureComponent||e.Component);return vv.default=z,vv}var Cv={},Cd={},h6,cL;function wge(){if(cL)return h6;cL=1;var n=TQ(),e=IQ(),t=pQ(),i=Qf();function r(o,s){var a=i(o)?n:e;return a(o,t(s))}return h6=r,h6}var d6,hL;function Sge(){return hL||(hL=1,d6=wge()),d6}var v3={exports:{}},Ege=v3.exports,dL;function Bge(){return dL||(dL=1,function(n,e){(function(t,i){n.exports=i()})(Ege,function(){function t(je){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ue){return typeof Ue}:function(Ue){return Ue&&typeof Symbol=="function"&&Ue.constructor===Symbol&&Ue!==Symbol.prototype?"symbol":typeof Ue},t(je)}var i=/^\s+/,r=/\s+$/;function o(je,Ue){if(je=je||"",Ue=Ue||{},je instanceof o)return je;if(!(this instanceof o))return new o(je,Ue);var Ke=s(je);this._originalInput=je,this._r=Ke.r,this._g=Ke.g,this._b=Ke.b,this._a=Ke.a,this._roundA=Math.round(100*this._a)/100,this._format=Ue.format||Ke.format,this._gradientType=Ue.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=Ke.ok}o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Ue=this.toRgb();return(Ue.r*299+Ue.g*587+Ue.b*114)/1e3},getLuminance:function(){var Ue=this.toRgb(),Ke,Ve,bt,vt,It,Yt;return Ke=Ue.r/255,Ve=Ue.g/255,bt=Ue.b/255,Ke<=.03928?vt=Ke/12.92:vt=Math.pow((Ke+.055)/1.055,2.4),Ve<=.03928?It=Ve/12.92:It=Math.pow((Ve+.055)/1.055,2.4),bt<=.03928?Yt=bt/12.92:Yt=Math.pow((bt+.055)/1.055,2.4),.2126*vt+.7152*It+.0722*Yt},setAlpha:function(Ue){return this._a=ze(Ue),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Ue=_(this._r,this._g,this._b);return{h:Ue.h*360,s:Ue.s,v:Ue.v,a:this._a}},toHsvString:function(){var Ue=_(this._r,this._g,this._b),Ke=Math.round(Ue.h*360),Ve=Math.round(Ue.s*100),bt=Math.round(Ue.v*100);return this._a==1?"hsv("+Ke+", "+Ve+"%, "+bt+"%)":"hsva("+Ke+", "+Ve+"%, "+bt+"%, "+this._roundA+")"},toHsl:function(){var Ue=p(this._r,this._g,this._b);return{h:Ue.h*360,s:Ue.s,l:Ue.l,a:this._a}},toHslString:function(){var Ue=p(this._r,this._g,this._b),Ke=Math.round(Ue.h*360),Ve=Math.round(Ue.s*100),bt=Math.round(Ue.l*100);return this._a==1?"hsl("+Ke+", "+Ve+"%, "+bt+"%)":"hsla("+Ke+", "+Ve+"%, "+bt+"%, "+this._roundA+")"},toHex:function(Ue){return O(this._r,this._g,this._b,Ue)},toHexString:function(Ue){return"#"+this.toHex(Ue)},toHex8:function(Ue){return B(this._r,this._g,this._b,this._a,Ue)},toHex8String:function(Ue){return"#"+this.toHex8(Ue)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Ce(this._r,255)*100)+"%",g:Math.round(Ce(this._g,255)*100)+"%",b:Math.round(Ce(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ce(this._r,255)*100)+"%, "+Math.round(Ce(this._g,255)*100)+"%, "+Math.round(Ce(this._b,255)*100)+"%)":"rgba("+Math.round(Ce(this._r,255)*100)+"%, "+Math.round(Ce(this._g,255)*100)+"%, "+Math.round(Ce(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Me[O(this._r,this._g,this._b,!0)]||!1},toFilter:function(Ue){var Ke="#"+z(this._r,this._g,this._b,this._a),Ve=Ke,bt=this._gradientType?"GradientType = 1, ":"";if(Ue){var vt=o(Ue);Ve="#"+z(vt._r,vt._g,vt._b,vt._a)}return"progid:DXImageTransform.Microsoft.gradient("+bt+"startColorstr="+Ke+",endColorstr="+Ve+")"},toString:function(Ue){var Ke=!!Ue;Ue=Ue||this._format;var Ve=!1,bt=this._a<1&&this._a>=0,vt=!Ke&&bt&&(Ue==="hex"||Ue==="hex6"||Ue==="hex3"||Ue==="hex4"||Ue==="hex8"||Ue==="name");return vt?Ue==="name"&&this._a===0?this.toName():this.toRgbString():(Ue==="rgb"&&(Ve=this.toRgbString()),Ue==="prgb"&&(Ve=this.toPercentageRgbString()),(Ue==="hex"||Ue==="hex6")&&(Ve=this.toHexString()),Ue==="hex3"&&(Ve=this.toHexString(!0)),Ue==="hex4"&&(Ve=this.toHex8String(!0)),Ue==="hex8"&&(Ve=this.toHex8String()),Ue==="name"&&(Ve=this.toName()),Ue==="hsl"&&(Ve=this.toHslString()),Ue==="hsv"&&(Ve=this.toHsvString()),Ve||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(Ue,Ke){var Ve=Ue.apply(nu Line truncated
`),t.default.createElement("div",{style:ge.white,className:"saturation-white"},t.default.createElement("div",{style:ge.black,className:"saturation-black"}),t.default.createElement("div",{style:ge.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:ge.circle}))))}}]),Q}(e.PureComponent||e.Component);return vv.default=z,vv}var Cv={},Cd={},h6,cL;function wge(){if(cL)return h6;cL=1;var n=TQ(),e=IQ(),t=pQ(),i=Qf();function r(o,s){var a=i(o)?n:e;return a(o,t(s))}return h6=r,h6}var d6,hL;function Sge(){return hL||(hL=1,d6=wge()),d6}var C3={exports:{}},Ege=C3.exports,dL;function Bge(){return dL||(dL=1,function(n,e){(function(t,i){n.exports=i()})(Ege,function(){function t(je){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ke){return typeof Ke}:function(Ke){return Ke&&typeof Symbol=="function"&&Ke.constructor===Symbol&&Ke!==Symbol.prototype?"symbol":typeof Ke},t(je)}var i=/^\s+/,r=/\s+$/;function o(je,Ke){if(je=je||"",Ke=Ke||{},je instanceof o)return je;if(!(this instanceof o))return new o(je,Ke);var Ue=s(je);this._originalInput=je,this._r=Ue.r,this._g=Ue.g,this._b=Ue.b,this._a=Ue.a,this._roundA=Math.round(100*this._a)/100,this._format=Ke.format||Ue.format,this._gradientType=Ke.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=Ue.ok}o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Ke=this.toRgb();return(Ke.r*299+Ke.g*587+Ke.b*114)/1e3},getLuminance:function(){var Ke=this.toRgb(),Ue,Ve,bt,vt,It,Yt;return Ue=Ke.r/255,Ve=Ke.g/255,bt=Ke.b/255,Ue<=.03928?vt=Ue/12.92:vt=Math.pow((Ue+.055)/1.055,2.4),Ve<=.03928?It=Ve/12.92:It=Math.pow((Ve+.055)/1.055,2.4),bt<=.03928?Yt=bt/12.92:Yt=Math.pow((bt+.055)/1.055,2.4),.2126*vt+.7152*It+.0722*Yt},setAlpha:function(Ke){return this._a=ze(Ke),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Ke=_(this._r,this._g,this._b);return{h:Ke.h*360,s:Ke.s,v:Ke.v,a:this._a}},toHsvString:function(){var Ke=_(this._r,this._g,this._b),Ue=Math.round(Ke.h*360),Ve=Math.round(Ke.s*100),bt=Math.round(Ke.v*100);return this._a==1?"hsv("+Ue+", "+Ve+"%, "+bt+"%)":"hsva("+Ue+", "+Ve+"%, "+bt+"%, "+this._roundA+")"},toHsl:function(){var Ke=p(this._r,this._g,this._b);return{h:Ke.h*360,s:Ke.s,l:Ke.l,a:this._a}},toHslString:function(){var Ke=p(this._r,this._g,this._b),Ue=Math.round(Ke.h*360),Ve=Math.round(Ke.s*100),bt=Math.round(Ke.l*100);return this._a==1?"hsl("+Ue+", "+Ve+"%, "+bt+"%)":"hsla("+Ue+", "+Ve+"%, "+bt+"%, "+this._roundA+")"},toHex:function(Ke){return O(this._r,this._g,this._b,Ke)},toHexString:function(Ke){return"#"+this.toHex(Ke)},toHex8:function(Ke){return B(this._r,this._g,this._b,this._a,Ke)},toHex8String:function(Ke){return"#"+this.toHex8(Ke)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Ce(this._r,255)*100)+"%",g:Math.round(Ce(this._g,255)*100)+"%",b:Math.round(Ce(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ce(this._r,255)*100)+"%, "+Math.round(Ce(this._g,255)*100)+"%, "+Math.round(Ce(this._b,255)*100)+"%)":"rgba("+Math.round(Ce(this._r,255)*100)+"%, "+Math.round(Ce(this._g,255)*100)+"%, "+Math.round(Ce(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Me[O(this._r,this._g,this._b,!0)]||!1},toFilter:function(Ke){var Ue="#"+z(this._r,this._g,this._b,this._a),Ve=Ue,bt=this._gradientType?"GradientType = 1, ":"";if(Ke){var vt=o(Ke);Ve="#"+z(vt._r,vt._g,vt._b,vt._a)}return"progid:DXImageTransform.Microsoft.gradient("+bt+"startColorstr="+Ue+",endColorstr="+Ve+")"},toString:function(Ke){var Ue=!!Ke;Ke=Ke||this._format;var Ve=!1,bt=this._a<1&&this._a>=0,vt=!Ue&&bt&&(Ke==="hex"||Ke==="hex6"||Ke==="hex3"||Ke==="hex4"||Ke==="hex8"||Ke==="name");return vt?Ke==="name"&&this._a===0?this.toName():this.toRgbString():(Ke==="rgb"&&(Ve=this.toRgbString()),Ke==="prgb"&&(Ve=this.toPercentageRgbString()),(Ke==="hex"||Ke==="hex6")&&(Ve=this.toHexString()),Ke==="hex3"&&(Ve=this.toHexString(!0)),Ke==="hex4"&&(Ve=this.toHex8String(!0)),Ke==="hex8"&&(Ve=this.toHex8String()),Ke==="name"&&(Ve=this.toName()),Ke==="hsl"&&(Ve=this.toHslString()),Ke==="hsv"&&(Ve=this.toHsvString()),Ve||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(Ke,Ue){var Ve=Ke.apply(nu Line truncated
<html>
<head>
<meta charset="utf-8" />
@@ -987,11 +987,11 @@ ${it}`,{message:xt,excerpt:gt,pointer:Ut}}function Me(it,ue){let We=W(ue);const
<\/script>
</body>
</html>
`),r=(Ui().s[9]++,new Blob([i],{type:"text/html;charset=utf-8"})),o=(Ui().s[10]++,this.exportName());Ui().s[11]++,FL.saveAs(r,o+".html")}async saveStyle(){Ui().f[3]++;const e=(Ui().s[12]++,this.tokenizedStyle());if(Ui().s[13]++,jL)Ui().b[2][1]++;else{Ui().b[2][0]++;const r=(Ui().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),o=(Ui().s[15]++,this.exportName());Ui().s[16]++,FL.saveAs(r,o+".json"),Ui().s[17]++;return}let t=(Ui().s[18]++,this.props.fileHandle);if(Ui().s[19]++,t==null)if(Ui().b[3][0]++,Ui().s[20]++,t=await this.createFileHandle(),Ui().s[21]++,this.props.onSetFileHandle(t),Ui().s[22]++,t==null){Ui().b[4][0]++,Ui().s[23]++;return}else Ui().b[4][1]++;else Ui().b[3][1]++;const i=(Ui().s[24]++,await t.createWritable());Ui().s[25]++,await i.write(e),Ui().s[26]++,await i.close(),Ui().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){Ui().f[4]++;const e=(Ui().s[28]++,this.tokenizedStyle()),t=(Ui().s[29]++,await this.createFileHandle());if(Ui().s[30]++,this.props.onSetFileHandle(t),Ui().s[31]++,t==null){Ui().b[5][0]++,Ui().s[32]++;return}else Ui().b[5][1]++;const i=(Ui().s[33]++,await t.createWritable());Ui().s[34]++,await i.write(e),Ui().s[35]++,await i.close(),Ui().s[36]++,this.props.onOpenToggle()}async createFileHandle(){Ui().f[5]++;const e=(Ui().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(Ui().s[38]++,await window.showSaveFilePicker(e));return Ui().s[39]++,this.props.onSetFileHandle(t),Ui().s[40]++,t}changeMetadataProperty(e,t){Ui().f[6]++;const i=(Ui().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});Ui().s[42]++,this.props.onStyleChanged(i)}render(){Ui().f[7]++;const e=(Ui().s[43]++,this.props.t),t=(Ui().s[44]++,XQ(e));return Ui().s[45]++,Ae.jsx(lg,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:Ae.jsxs("section",{className:"maputnik-modal-section",children:[Ae.jsx("h1",{children:e("Save Style")}),Ae.jsx("p",{children:e("Save the JSON style to your computer.")}),Ae.jsxs("div",{children:[Ae.jsx(Xd,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(Ui().b[6][0]++,this.props.mapStyle.metadata||(Ui().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),Ae.jsx(Xd,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(Ui().b[7][0]++,this.props.mapStyle.metadata||(Ui().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),Ae.jsx(Xd,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(Ui().b[8][0]++,this.props.mapStyle.metadata||(Ui().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")}),Ae.jsx(Xd,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(Ui().b[9][0]++,this.props.mapStyle.metadata||(Ui().b[9][1]++,{}))["maputnik:locationiq_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:locationiq_access_token")})]}),Ae.jsxs("div",{className:"maputnik-modal-export-buttons",children:[Ae.jsxs(Gs,{onClick:this.saveStyle.bind(this),children:[Ae.jsx(RB,{}),e("Save")]}),(Ui().b[10][0]++,jL&&(Ui().b[10][1]++,Ae.jsxs(Gs,{onClick:this.saveStyleAs.bind(this),children:[Ae.jsx(RB,{}),e("Save as")]}))),Ae.jsxs(Gs,{onClick:this.createHtml.bind(this),children:[Ae.jsx(GJ,{}),e("Create HTML")]})]})]})})}}const gye=(Ui().s[46]++,is()(mye));function Rb(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="d4204cb1114c57682afd09034f9cc8268e27db52",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:4,column:26},end:{line:6,column:1}},1:{start:{line:5,column:2},end:{line:5,column:127}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:26},end:{line:4,column:27}},loc:{start:{line:4,column:37},end:{line:6,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAUM;AAVN,OAAO,uBAAsD;AAC7D,OAAO,cAAc;AAMrB,MAAM,oBAAsD,CAAC,UAAU;AACrE,SACE,oBAAC,YAAS,OAAO,MAAM,OACrB,8BAAC,qBAAmB,GAAG,OAAO,GAChC;AAEJ;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d4204cb1114c57682afd09034f9cc8268e27db52"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return Rb=function(){return s},s}Rb();Rb().s[0]++;const nY=n=>(Rb().f[0]++,Rb().s[1]++,Ae.jsx(jg,{label:n.label,children:Ae.jsx(C3,{...n})}));function Pb(){var n="/home/runner/work/maputnik/maputnik/src/components/Field Line truncated
`),r=(Li().s[9]++,new Blob([i],{type:"text/html;charset=utf-8"})),o=(Li().s[10]++,this.exportName());Li().s[11]++,FL.saveAs(r,o+".html")}async saveStyle(){Li().f[3]++;const e=(Li().s[12]++,this.tokenizedStyle());if(Li().s[13]++,jL)Li().b[2][1]++;else{Li().b[2][0]++;const r=(Li().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),o=(Li().s[15]++,this.exportName());Li().s[16]++,FL.saveAs(r,o+".json"),Li().s[17]++;return}let t=(Li().s[18]++,this.props.fileHandle);if(Li().s[19]++,t==null)if(Li().b[3][0]++,Li().s[20]++,t=await this.createFileHandle(),Li().s[21]++,this.props.onSetFileHandle(t),Li().s[22]++,t==null){Li().b[4][0]++,Li().s[23]++;return}else Li().b[4][1]++;else Li().b[3][1]++;const i=(Li().s[24]++,await t.createWritable());Li().s[25]++,await i.write(e),Li().s[26]++,await i.close(),Li().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){Li().f[4]++;const e=(Li().s[28]++,this.tokenizedStyle()),t=(Li().s[29]++,await this.createFileHandle());if(Li().s[30]++,this.props.onSetFileHandle(t),Li().s[31]++,t==null){Li().b[5][0]++,Li().s[32]++;return}else Li().b[5][1]++;const i=(Li().s[33]++,await t.createWritable());Li().s[34]++,await i.write(e),Li().s[35]++,await i.close(),Li().s[36]++,this.props.onOpenToggle()}async createFileHandle(){Li().f[5]++;const e=(Li().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(Li().s[38]++,await window.showSaveFilePicker(e));return Li().s[39]++,this.props.onSetFileHandle(t),Li().s[40]++,t}changeMetadataProperty(e,t){Li().f[6]++;const i=(Li().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});Li().s[42]++,this.props.onStyleChanged(i)}render(){Li().f[7]++;const e=(Li().s[43]++,this.props.t),t=(Li().s[44]++,XQ(e));return Li().s[45]++,Ae.jsx(lg,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:Ae.jsxs("section",{className:"maputnik-modal-section",children:[Ae.jsx("h1",{children:e("Save Style")}),Ae.jsx("p",{children:e("Save the JSON style to your computer.")}),Ae.jsxs("div",{children:[Ae.jsx(Xd,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(Li().b[6][0]++,this.props.mapStyle.metadata||(Li().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),Ae.jsx(Xd,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(Li().b[7][0]++,this.props.mapStyle.metadata||(Li().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),Ae.jsx(Xd,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(Li().b[8][0]++,this.props.mapStyle.metadata||(Li().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")}),Ae.jsx(Xd,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(Li().b[9][0]++,this.props.mapStyle.metadata||(Li().b[9][1]++,{}))["maputnik:locationiq_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:locationiq_access_token")})]}),Ae.jsxs("div",{className:"maputnik-modal-export-buttons",children:[Ae.jsxs(Gs,{onClick:this.saveStyle.bind(this),children:[Ae.jsx(RB,{}),e("Save")]}),(Li().b[10][0]++,jL&&(Li().b[10][1]++,Ae.jsxs(Gs,{onClick:this.saveStyleAs.bind(this),children:[Ae.jsx(RB,{}),e("Save as")]}))),Ae.jsxs(Gs,{onClick:this.createHtml.bind(this),children:[Ae.jsx(GJ,{}),e("Create HTML")]})]})]})})}}const gye=(Li().s[46]++,is()(mye));function Pb(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="d4204cb1114c57682afd09034f9cc8268e27db52",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:4,column:26},end:{line:6,column:1}},1:{start:{line:5,column:2},end:{line:5,column:127}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:26},end:{line:4,column:27}},loc:{start:{line:4,column:37},end:{line:6,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAUM;AAVN,OAAO,uBAAsD;AAC7D,OAAO,cAAc;AAMrB,MAAM,oBAAsD,CAAC,UAAU;AACrE,SACE,oBAAC,YAAS,OAAO,MAAM,OACrB,8BAAC,qBAAmB,GAAG,OAAO,GAChC;AAEJ;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d4204cb1114c57682afd09034f9cc8268e27db52"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return Pb=function(){return s},s}Pb();Pb().s[0]++;const nY=n=>(Pb().f[0]++,Pb().s[1]++,Ae.jsx(jg,{label:n.label,children:Ae.jsx(_3,{...n})}));function Ub(){var n="/home/runner/work/maputnik/maputnik/src/components/Field Line truncated
`)>=0)return!1;return!0}function Ie(He,Re){var Ze;if(He.indent===" ")Ze=" ";else if(typeof He.indent=="number"&&He.indent>0)Ze=he.call(Array(He.indent+1)," ");else return null;return{base:Ze,prev:he.call(Array(Re+1),Ze)}}function Qe(He,Re){if(He.length===0)return"";var Ze=`
`+Re.prev+Re.base;return Ze+he.call(He,","+Ze)+`
`+Re.prev}function At(He,Re){var Ze=xt(He),y=[];if(Ze){y.length=He.length;for(var yt=0;yt<He.length;yt++)y[yt]=Kt(He,yt)?Re(He[yt],He):""}var dt=typeof Me=="function"?Me(He):[],kt;if(ze){kt={};for(var rt=0;rt<dt.length;rt++)kt["$"+dt[rt]]=dt[rt]}for(var tn in He)Kt(He,tn)&&(Ze&&String(Number(tn))===tn&&tn<He.length||ze&&kt["$"+tn]instanceof Symbol||(J.call(/[^\w$]/,tn)?y.push(Re(tn,He)+": "+Re(He[tn],He)):y.push(tn+": "+Re(He[tn],He))));if(typeof Me=="function")for(var Rn=0;Rn<dt.length;Rn++)Fe.call(He,dt[Rn])&&y.push("["+Re(dt[Rn])+"]: "+Re(He[dt[Rn]],He));return y}return C6}var _6,HL;function nve(){if(HL)return _6;HL=1;var n=Q4(),e=OC(),t=function(a,p,g){for(var _=a,E;(E=_.next)!=null;_=E)if(E.key===p)return _.next=E.next,g||(E.next=a.next,a.next=E),E},i=function(a,p){if(a){var g=t(a,p);return g&&g.value}},r=function(a,p,g){var _=t(a,p);_?_.value=g:a.next={key:p,next:a.next,value:g}},o=function(a,p){return a?!!t(a,p):!1},s=function(a,p){if(a)return t(a,p,!0)};return _6=function(){var p,g={assert:function(_){if(!g.has(_))throw new e("Side channel does not contain "+n(_))},delete:function(_){var E=p&&p.next,O=s(p,_);return O&&E&&E===O&&(p=void 0),!!O},get:function(_){return i(p,_)},has:function(_){return o(p,_)},set:function(_,E){p||(p={next:void 0}),r(p,_,E)}};return g},_6}var b6,VL;function sY(){return VL||(VL=1,b6=Object),b6}var x6,$L;function ive(){return $L||($L=1,x6=Error),x6}var M6,ZL;function rve(){return ZL||(ZL=1,M6=EvalError),M6}var w6,XL;function ove(){return XL||(XL=1,w6=RangeError),w6}var S6,JL;function ave(){return JL||(JL=1,S6=ReferenceError),S6}var E6,eF;function sve(){return eF||(eF=1,E6=SyntaxError),E6}var B6,tF;function lve(){return tF||(tF=1,B6=URIError),B6}var O6,nF;function uve(){return nF||(nF=1,O6=Math.abs),O6}var I6,iF;function Ave(){return iF||(iF=1,I6=Math.floor),I6}var T6,rF;function cve(){return rF||(rF=1,T6=Math.max),T6}var k6,oF;function hve(){return oF||(oF=1,k6=Math.min),k6}var D6,aF;function dve(){return aF||(aF=1,D6=Math.pow),D6}var R6,sF;function fve(){return sF||(sF=1,R6=Math.round),R6}var P6,lF;function pve(){return lF||(lF=1,P6=Number.isNaN||function(e){return e!==e}),P6}var K6,uF;function mve(){if(uF)return K6;uF=1;var n=pve();return K6=function(t){return n(t)||t===0?t:t<0?-1:1},K6}var U6,AF;function gve(){return AF||(AF=1,U6=Object.getOwnPropertyDescriptor),U6}var L6,cF;function lY(){if(cF)return L6;cF=1;var n=gve();if(n)try{n([],"length")}catch{n=null}return L6=n,L6}var F6,hF;function yve(){if(hF)return F6;hF=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return F6=n,F6}var z6,dF;function vve(){return dF||(dF=1,z6=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(var o in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==r||a.enumerable!==!0)return!1}return!0}),z6}var j6,fF;function Cve(){if(fF)return j6;fF=1;var n=typeof Symbol<"u"&&Symbol,e=vve();return j6=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},j6}var N6,pF;function uY(){return pF||(pF=1,N6=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),N6}var G6,mF;function AY(){if(mF)return G6;mF=1;var n=sY();return G6=n.getPrototypeOf||null,G6}var W6,gF;function _ve(){if(gF)return W6;gF=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,i="[object Function]",r=function(p,g){for(var _=[],E=0;E<p.length;E+=1)_[E]=p[E];for(var O=0;O<g.length;O+=1)_[O+p.length]=g[O];return _},o=function(p,g){for(var _=[],E=g,O=0;E<p.length;E+=1,O+=1)_[O]=p[E];return _},s=function(a,p){for(var g="",_=0;_<a.length;_+=1)g+=a[_],_+1<a.length&&(g+=p);return g};return W6=function(p){var g=this;if(typeof g!="function"||e.apply(g)!==i)throw new TypeError(n+g);for(var _=o(arguments,1),E,O=function(){if(this instanceof E){var $=g.apply(this,r(_,arguments));return Object($)===$?$:this}return g.apply(p,r(_,arguments))},B=t(0,g.length-_.length),z=[],N=0;N<B;N++)z[N]="$"+N;if(E=Function("binder","return function ("+s(z,",")+"){ return binder.apply(this,arguments); }")(O),g.prototype){var Q=function(){};Q.prototype=g.prototype,E.prototype=new Q,Q.prototype=null}return E},W6}var Q6,yF;function Y4(){if(yF)return Q6;yF=1;var n=_ve();return Q6=Function.prototype.bind||n,Q6}var Y6,vF;function kI(){return vF||(vF=1,Y6=Function.prototype.call),Y6}var q6,CF;function cY Line truncated
`," "],s=["{","}","|","\\","^","`"].concat(o),a=["'"].concat(s),p=["%","/","?",";","#"].concat(a),g=["/","?","#"],_=255,E=/^[+a-z0-9A-Z_-]{0,63}$/,O=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,B={javascript:!0,"javascript:":!0},z={javascript:!0,"javascript:":!0},N={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Q=Tve();function $(V,J,W){if(V&&typeof V=="object"&&V instanceof e)return V;var he=new e;return he.parse(V,J,W),he}e.prototype.parse=function(V,J,W){if(typeof V!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof V);var he=V.indexOf("?"),ge=he!==-1&&he<V.indexOf("#")?"?":"#",ve=V.split(ge),_e=/\\/g;ve[0]=ve[0].replace(_e,"/"),V=ve.join(ge);var Me=V;if(Me=Me.trim(),!W&&V.split("#").length===1){var be=r.exec(Me);if(be)return this.path=Me,this.href=Me,this.pathname=be[1],be[2]?(this.search=be[2],J?this.query=Q.parse(this.search.substr(1)):this.query=this.search.substr(1)):J&&(this.search="",this.query={}),this}var ze=t.exec(Me);if(ze){ze=ze[0];var Ce=ze.toLowerCase();this.protocol=Ce,Me=Me.substr(ze.length)}if(W||ze||Me.match(/^\/\/[^@/]+@[^@/]+/)){var Fe=Me.substr(0,2)==="//";Fe&&!(ze&&z[ze])&&(Me=Me.substr(2),this.slashes=!0)}if(!z[ze]&&(Fe||ze&&!N[ze])){for(var ot=-1,mt=0;mt<g.length;mt++){var it=Me.indexOf(g[mt]);it!==-1&&(ot===-1||it<ot)&&(ot=it)}var ue,We;ot===-1?We=Me.lastIndexOf("@"):We=Me.lastIndexOf("@",ot),We!==-1&&(ue=Me.slice(0,We),Me=Me.slice(We+1),this.auth=decodeURIComponent(ue)),ot=-1;for(var mt=0;mt<p.length;mt++){var it=Me.indexOf(p[mt]);it!==-1&&(ot===-1||it<ot)&&(ot=it)}ot===-1&&(ot=Me.length),this.host=Me.slice(0,ot),Me=Me.slice(ot),this.parseHost(),this.hostname=this.hostname||"";var tt=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!tt)for(var ke=this.hostname.split(/\./),mt=0,Et=ke.length;mt<Et;mt++){var gt=ke[mt];if(gt&&!gt.match(E)){for(var xt="",Ut=0,je=gt.length;Ut<je;Ut++)gt.charCodeAt(Ut)>127?xt+="x":xt+=gt[Ut];if(!xt.match(E)){var Ue=ke.slice(0,mt),Ke=ke.slice(mt+1),Ve=gt.match(O);Ve&&(Ue.push(Ve[1]),Ke.unshift(Ve[2])),Ke.length&&(Me="/"+Ke.join(".")+Me),this.hostname=Ue.join(".");break}}}this.hostname.length>_?this.hostname="":this.hostname=this.hostname.toLowerCase(),tt||(this.hostname=n.toASCII(this.hostname));var bt=this.port?":"+this.port:"",vt=this.hostname||"";this.host=vt+bt,this.href+=this.host,tt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Me[0]!=="/"&&(Me="/"+Me))}if(!B[Ce])for(var mt=0,Et=a.length;mt<Et;mt++){var It=a[mt];if(Me.indexOf(It)!==-1){var Yt=encodeURIComponent(It);Yt===It&&(Yt=escape(It)),Me=Me.split(It).join(Yt)}}var Kt=Me.indexOf("#");Kt!==-1&&(this.hash=Me.substr(Kt),Me=Me.slice(0,Kt));var on=Me.indexOf("?");if(on!==-1?(this.search=Me.substr(on),this.query=Me.substr(on+1),J&&(this.query=Q.parse(this.query)),Me=Me.slice(0,on)):J&&(this.search="",this.query={}),Me&&(this.pathname=Me),N[Ce]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var bt=this.pathname||"",Hn=this.search||"";this.path=bt+Hn}return this.href=this.format(),this};function X(V){return typeof V=="string"&&(V=$(V)),V instanceof e?V.format():e.prototype.format.call(V)}e.prototype.format=function(){var V=this.auth||"";V&&(V=encodeURIComponent(V),V=V.replace(/%3A/i,":"),V+="@");var J=this.protocol||"",W=this.pathname||"",he=this.hash||"",ge=!1,ve="";this.host?ge=V+this.host:this.hostname&&(ge=V+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(ge+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(ve=Q.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var _e=this.search||ve&&"?"+ve||"";return J&&J.substr(-1)!==":"&&(J+=":"),this.slashes||(!J||N[J])&&ge!==!1?(ge="//"+(ge||""),W&&W.charAt(0)!=="/"&&(W="/"+W)):ge||(ge=""),he&&he.charAt(0)!=="#"&&(he="#"+he),_e&&_e.charAt(0)!=="?"&&(_e="?"+_e),W=W.replace(/[?#]/g,function(Me){return encodeURIComponent(Me)}),_e=_e.replace("#","%23"),J+ge+W+_e+he};function re(V,J){return $(V,!1,!0).resolve(J)}e.prototype.resolve=function(V){return this.resolveObject($(V,!1,!0)).format()};function ne(V,J){return V?$(V,!1,!0).resolveObject(J):J}return e.prototype.resolveObject=function(V){if(typeof V=="string"){var J=new e;J.parse(V,!1,!0),V=J}for(var W=new e,he=Object.keys(this),ge=0;ge<he.length;ge++){var ve=he[ge];W[ve]=this[ve]}if(W.hash=V.hash,V.href==="")return W.href=W.format(),W;if(V.slashes&&!V.protocol){for(var _e=Object.keys(V),Me=0;Me<_e.length;Me++){var be=_e[Me];be!=="protocol"&&(W[be]=V[be])}return N[W.protocol]&&W.hostname&&!W.pathname&&(W.pathname="/",W.path=W.pathname),W.href=W.format(),W}if(V.protocol&&V.protocol!==W.protocol){if(!N[V.protocol]){for(var ze=Object.keys(V),Ce=0;Ce<ze.length;Ce++){var Fe=ze[Ce];W[Fe]=V[Fe]}return W.href=W.format(),W}if(W.protocol=V.protocol,!V.host&&!z[V.protocol]){for(var Et=(V.pathname||"").split("/");Et.length&&!(V.host=Et.shift()););V.host||(V.host=""),V.hostname||(V.hostname=""),Et[0 Line truncated
`+Re.prev}function At(He,Re){var Ze=xt(He),y=[];if(Ze){y.length=He.length;for(var yt=0;yt<He.length;yt++)y[yt]=Ut(He,yt)?Re(He[yt],He):""}var dt=typeof Me=="function"?Me(He):[],kt;if(ze){kt={};for(var rt=0;rt<dt.length;rt++)kt["$"+dt[rt]]=dt[rt]}for(var tn in He)Ut(He,tn)&&(Ze&&String(Number(tn))===tn&&tn<He.length||ze&&kt["$"+tn]instanceof Symbol||(J.call(/[^\w$]/,tn)?y.push(Re(tn,He)+": "+Re(He[tn],He)):y.push(tn+": "+Re(He[tn],He))));if(typeof Me=="function")for(var Rn=0;Rn<dt.length;Rn++)Fe.call(He,dt[Rn])&&y.push("["+Re(dt[Rn])+"]: "+Re(He[dt[Rn]],He));return y}return C6}var _6,HL;function nve(){if(HL)return _6;HL=1;var n=Q4(),e=OC(),t=function(a,p,g){for(var _=a,E;(E=_.next)!=null;_=E)if(E.key===p)return _.next=E.next,g||(E.next=a.next,a.next=E),E},i=function(a,p){if(a){var g=t(a,p);return g&&g.value}},r=function(a,p,g){var _=t(a,p);_?_.value=g:a.next={key:p,next:a.next,value:g}},o=function(a,p){return a?!!t(a,p):!1},s=function(a,p){if(a)return t(a,p,!0)};return _6=function(){var p,g={assert:function(_){if(!g.has(_))throw new e("Side channel does not contain "+n(_))},delete:function(_){var E=p&&p.next,O=s(p,_);return O&&E&&E===O&&(p=void 0),!!O},get:function(_){return i(p,_)},has:function(_){return o(p,_)},set:function(_,E){p||(p={next:void 0}),r(p,_,E)}};return g},_6}var b6,VL;function sY(){return VL||(VL=1,b6=Object),b6}var x6,$L;function ive(){return $L||($L=1,x6=Error),x6}var M6,ZL;function rve(){return ZL||(ZL=1,M6=EvalError),M6}var w6,XL;function ove(){return XL||(XL=1,w6=RangeError),w6}var S6,JL;function ave(){return JL||(JL=1,S6=ReferenceError),S6}var E6,eF;function sve(){return eF||(eF=1,E6=SyntaxError),E6}var B6,tF;function lve(){return tF||(tF=1,B6=URIError),B6}var O6,nF;function uve(){return nF||(nF=1,O6=Math.abs),O6}var I6,iF;function Ave(){return iF||(iF=1,I6=Math.floor),I6}var T6,rF;function cve(){return rF||(rF=1,T6=Math.max),T6}var k6,oF;function hve(){return oF||(oF=1,k6=Math.min),k6}var D6,aF;function dve(){return aF||(aF=1,D6=Math.pow),D6}var R6,sF;function fve(){return sF||(sF=1,R6=Math.round),R6}var P6,lF;function pve(){return lF||(lF=1,P6=Number.isNaN||function(e){return e!==e}),P6}var U6,uF;function mve(){if(uF)return U6;uF=1;var n=pve();return U6=function(t){return n(t)||t===0?t:t<0?-1:1},U6}var K6,AF;function gve(){return AF||(AF=1,K6=Object.getOwnPropertyDescriptor),K6}var L6,cF;function lY(){if(cF)return L6;cF=1;var n=gve();if(n)try{n([],"length")}catch{n=null}return L6=n,L6}var F6,hF;function yve(){if(hF)return F6;hF=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return F6=n,F6}var z6,dF;function vve(){return dF||(dF=1,z6=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(var o in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==r||a.enumerable!==!0)return!1}return!0}),z6}var j6,fF;function Cve(){if(fF)return j6;fF=1;var n=typeof Symbol<"u"&&Symbol,e=vve();return j6=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},j6}var N6,pF;function uY(){return pF||(pF=1,N6=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),N6}var G6,mF;function AY(){if(mF)return G6;mF=1;var n=sY();return G6=n.getPrototypeOf||null,G6}var W6,gF;function _ve(){if(gF)return W6;gF=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,i="[object Function]",r=function(p,g){for(var _=[],E=0;E<p.length;E+=1)_[E]=p[E];for(var O=0;O<g.length;O+=1)_[O+p.length]=g[O];return _},o=function(p,g){for(var _=[],E=g,O=0;E<p.length;E+=1,O+=1)_[O]=p[E];return _},s=function(a,p){for(var g="",_=0;_<a.length;_+=1)g+=a[_],_+1<a.length&&(g+=p);return g};return W6=function(p){var g=this;if(typeof g!="function"||e.apply(g)!==i)throw new TypeError(n+g);for(var _=o(arguments,1),E,O=function(){if(this instanceof E){var $=g.apply(this,r(_,arguments));return Object($)===$?$:this}return g.apply(p,r(_,arguments))},B=t(0,g.length-_.length),z=[],N=0;N<B;N++)z[N]="$"+N;if(E=Function("binder","return function ("+s(z,",")+"){ return binder.apply(this,arguments); }")(O),g.prototype){var Q=function(){};Q.prototype=g.prototype,E.prototype=new Q,Q.prototype=null}return E},W6}var Q6,yF;function Y4(){if(yF)return Q6;yF=1;var n=_ve();return Q6=Function.prototype.bind||n,Q6}var Y6,vF;function kI(){return vF||(vF=1,Y6=Function.prototype.call),Y6}var q6,CF;function cY Line truncated
`," "],s=["{","}","|","\\","^","`"].concat(o),a=["'"].concat(s),p=["%","/","?",";","#"].concat(a),g=["/","?","#"],_=255,E=/^[+a-z0-9A-Z_-]{0,63}$/,O=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,B={javascript:!0,"javascript:":!0},z={javascript:!0,"javascript:":!0},N={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Q=Tve();function $(V,J,W){if(V&&typeof V=="object"&&V instanceof e)return V;var he=new e;return he.parse(V,J,W),he}e.prototype.parse=function(V,J,W){if(typeof V!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof V);var he=V.indexOf("?"),ge=he!==-1&&he<V.indexOf("#")?"?":"#",ve=V.split(ge),_e=/\\/g;ve[0]=ve[0].replace(_e,"/"),V=ve.join(ge);var Me=V;if(Me=Me.trim(),!W&&V.split("#").length===1){var be=r.exec(Me);if(be)return this.path=Me,this.href=Me,this.pathname=be[1],be[2]?(this.search=be[2],J?this.query=Q.parse(this.search.substr(1)):this.query=this.search.substr(1)):J&&(this.search="",this.query={}),this}var ze=t.exec(Me);if(ze){ze=ze[0];var Ce=ze.toLowerCase();this.protocol=Ce,Me=Me.substr(ze.length)}if(W||ze||Me.match(/^\/\/[^@/]+@[^@/]+/)){var Fe=Me.substr(0,2)==="//";Fe&&!(ze&&z[ze])&&(Me=Me.substr(2),this.slashes=!0)}if(!z[ze]&&(Fe||ze&&!N[ze])){for(var ot=-1,mt=0;mt<g.length;mt++){var it=Me.indexOf(g[mt]);it!==-1&&(ot===-1||it<ot)&&(ot=it)}var ue,We;ot===-1?We=Me.lastIndexOf("@"):We=Me.lastIndexOf("@",ot),We!==-1&&(ue=Me.slice(0,We),Me=Me.slice(We+1),this.auth=decodeURIComponent(ue)),ot=-1;for(var mt=0;mt<p.length;mt++){var it=Me.indexOf(p[mt]);it!==-1&&(ot===-1||it<ot)&&(ot=it)}ot===-1&&(ot=Me.length),this.host=Me.slice(0,ot),Me=Me.slice(ot),this.parseHost(),this.hostname=this.hostname||"";var tt=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!tt)for(var ke=this.hostname.split(/\./),mt=0,Et=ke.length;mt<Et;mt++){var gt=ke[mt];if(gt&&!gt.match(E)){for(var xt="",Kt=0,je=gt.length;Kt<je;Kt++)gt.charCodeAt(Kt)>127?xt+="x":xt+=gt[Kt];if(!xt.match(E)){var Ke=ke.slice(0,mt),Ue=ke.slice(mt+1),Ve=gt.match(O);Ve&&(Ke.push(Ve[1]),Ue.unshift(Ve[2])),Ue.length&&(Me="/"+Ue.join(".")+Me),this.hostname=Ke.join(".");break}}}this.hostname.length>_?this.hostname="":this.hostname=this.hostname.toLowerCase(),tt||(this.hostname=n.toASCII(this.hostname));var bt=this.port?":"+this.port:"",vt=this.hostname||"";this.host=vt+bt,this.href+=this.host,tt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Me[0]!=="/"&&(Me="/"+Me))}if(!B[Ce])for(var mt=0,Et=a.length;mt<Et;mt++){var It=a[mt];if(Me.indexOf(It)!==-1){var Yt=encodeURIComponent(It);Yt===It&&(Yt=escape(It)),Me=Me.split(It).join(Yt)}}var Ut=Me.indexOf("#");Ut!==-1&&(this.hash=Me.substr(Ut),Me=Me.slice(0,Ut));var on=Me.indexOf("?");if(on!==-1?(this.search=Me.substr(on),this.query=Me.substr(on+1),J&&(this.query=Q.parse(this.query)),Me=Me.slice(0,on)):J&&(this.search="",this.query={}),Me&&(this.pathname=Me),N[Ce]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var bt=this.pathname||"",Hn=this.search||"";this.path=bt+Hn}return this.href=this.format(),this};function X(V){return typeof V=="string"&&(V=$(V)),V instanceof e?V.format():e.prototype.format.call(V)}e.prototype.format=function(){var V=this.auth||"";V&&(V=encodeURIComponent(V),V=V.replace(/%3A/i,":"),V+="@");var J=this.protocol||"",W=this.pathname||"",he=this.hash||"",ge=!1,ve="";this.host?ge=V+this.host:this.hostname&&(ge=V+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(ge+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(ve=Q.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var _e=this.search||ve&&"?"+ve||"";return J&&J.substr(-1)!==":"&&(J+=":"),this.slashes||(!J||N[J])&&ge!==!1?(ge="//"+(ge||""),W&&W.charAt(0)!=="/"&&(W="/"+W)):ge||(ge=""),he&&he.charAt(0)!=="#"&&(he="#"+he),_e&&_e.charAt(0)!=="?"&&(_e="?"+_e),W=W.replace(/[?#]/g,function(Me){return encodeURIComponent(Me)}),_e=_e.replace("#","%23"),J+ge+W+_e+he};function re(V,J){return $(V,!1,!0).resolve(J)}e.prototype.resolve=function(V){return this.resolveObject($(V,!1,!0)).format()};function ne(V,J){return V?$(V,!1,!0).resolveObject(J):J}return e.prototype.resolveObject=function(V){if(typeof V=="string"){var J=new e;J.parse(V,!1,!0),V=J}for(var W=new e,he=Object.keys(this),ge=0;ge<he.length;ge++){var ve=he[ge];W[ve]=this[ve]}if(W.hash=V.hash,V.href==="")return W.href=W.format(),W;if(V.slashes&&!V.protocol){for(var _e=Object.keys(V),Me=0;Me<_e.length;Me++){var be=_e[Me];be!=="protocol"&&(W[be]=V[be])}return N[W.protocol]&&W.hostname&&!W.pathname&&(W.pathname="/",W.path=W.pathname),W.href=W.format(),W}if(V.protocol&&V.protocol!==W.protocol){if(!N[V.protocol]){for(var ze=Object.keys(V),Ce=0;Ce<ze.length;Ce++){var Fe=ze[Ce];W[Fe]=V[Fe]}return W.href=W.format(),W}if(W.protocol=V.protocol,!V.host&&!z[V.protocol]){for(var Et=(V.pathname||"").split("/");Et.length&&!(V.host=Et.shift()););V.host||(V.host=""),V.hostname||(V.hostname=""),Et[0 Line truncated
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
@@ -1009,5 +1009,5 @@ and limitations under the License.
* by Pedro Ladaria <pedro.ladaria@gmail.com>
* https://github.com/pladaria/reconnecting-websocket
* License MIT
*/var Wve=function(){if(typeof WebSocket<"u")return WebSocket},Qve=function(n){return typeof n<"u"&&!!n&&n.CLOSING===2},j1={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0};(function(){function n(e,t,i){var r=this;i===void 0&&(i={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(o){r._debug("open event");var s=r._options.minUptime,a=s===void 0?j1.minUptime:s;clearTimeout(r._connectTimeout),r._uptimeTimeout=setTimeout(function(){return r._acceptOpen()},a),r._ws.binaryType=r._binaryType,r._messageQueue.forEach(function(p){return r._ws.send(p)}),r._messageQueue=[],r.onopen&&r.onopen(o),r._listeners.open.forEach(function(p){return r._callEventListener(o,p)})},this._handleMessage=function(o){r._debug("message event"),r.onmessage&&r.onmessage(o),r._listeners.message.forEach(function(s){return r._callEventListener(o,s)})},this._handleError=function(o){r._debug("error event",o.message),r._disconnect(void 0,o.message==="TIMEOUT"?"timeout":void 0),r.onerror&&r.onerror(o),r._debug("exec error listeners"),r._listeners.error.forEach(function(s){return r._callEventListener(o,s)}),r._connect()},this._handleClose=function(o){r._debug("close event"),r._clearTimeouts(),r._shouldReconnect&&r._connect(),r.onclose&&r.onclose(o),r._listeners.close.forEach(function(s){return r._callEventListener(o,s)})},this._url=e,this._protocols=t,this._options=i,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(n,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(n,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CONNECTING",{get:function(){return n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"OPEN",{get:function(){return n.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSING",{get:function(){return n.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSED",{get:function(){return n.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bufferedAmount",{get:function(){var e=this._messageQueue.reduce(function(t,i){return typeof i=="string"?t+=i.length:i instanceof Blob?t+=i.size:t+=i.byteLength,t},0);return e+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?n.CLOSED:n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),n.prototype.close=function(e,t){if(e===void 0&&(e=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(e,t)},n.prototype.reconnect=function(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(e,t),this._connect())},n.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var t=this._options.maxEnqueuedMessages,i=t===void 0?j1.maxEnqueuedMessages:t;this._messageQueue.length<i&&(this._debug("enqueue",e),this._messageQueue.push(e))}},n.prototype.addEventListener=function(e,t){this._listeners[e]&&this._listeners[e].push(t)},n.prototype.dispatchEvent=function(e){var t,i,r=this._listeners[e.type];if(r)try{for(var o=Fve(r),s=o.next();!s.done;s=o.next()){var a=s.value;this._callEventListener(e,a)}}catch(p){t={error:p}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}return!0},n.prototype.removeEventListener=function(e,t){this._listeLine truncated
//# sourceMappingURL=index-CntVQQH2.js.map
*/var Wve=function(){if(typeof WebSocket<"u")return WebSocket},Qve=function(n){return typeof n<"u"&&!!n&&n.CLOSING===2},j1={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0};(function(){function n(e,t,i){var r=this;i===void 0&&(i={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(o){r._debug("open event");var s=r._options.minUptime,a=s===void 0?j1.minUptime:s;clearTimeout(r._connectTimeout),r._uptimeTimeout=setTimeout(function(){return r._acceptOpen()},a),r._ws.binaryType=r._binaryType,r._messageQueue.forEach(function(p){return r._ws.send(p)}),r._messageQueue=[],r.onopen&&r.onopen(o),r._listeners.open.forEach(function(p){return r._callEventListener(o,p)})},this._handleMessage=function(o){r._debug("message event"),r.onmessage&&r.onmessage(o),r._listeners.message.forEach(function(s){return r._callEventListener(o,s)})},this._handleError=function(o){r._debug("error event",o.message),r._disconnect(void 0,o.message==="TIMEOUT"?"timeout":void 0),r.onerror&&r.onerror(o),r._debug("exec error listeners"),r._listeners.error.forEach(function(s){return r._callEventListener(o,s)}),r._connect()},this._handleClose=function(o){r._debug("close event"),r._clearTimeouts(),r._shouldReconnect&&r._connect(),r.onclose&&r.onclose(o),r._listeners.close.forEach(function(s){return r._callEventListener(o,s)})},this._url=e,this._protocols=t,this._options=i,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(n,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(n,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CONNECTING",{get:function(){return n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"OPEN",{get:function(){return n.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSING",{get:function(){return n.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSED",{get:function(){return n.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bufferedAmount",{get:function(){var e=this._messageQueue.reduce(function(t,i){return typeof i=="string"?t+=i.length:i instanceof Blob?t+=i.size:t+=i.byteLength,t},0);return e+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?n.CLOSED:n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),n.prototype.close=function(e,t){if(e===void 0&&(e=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(e,t)},n.prototype.reconnect=function(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(e,t),this._connect())},n.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var t=this._options.maxEnqueuedMessages,i=t===void 0?j1.maxEnqueuedMessages:t;this._messageQueue.length<i&&(this._debug("enqueue",e),this._messageQueue.push(e))}},n.prototype.addEventListener=function(e,t){this._listeners[e]&&this._listeners[e].push(t)},n.prototype.dispatchEvent=function(e){var t,i,r=this._listeners[e.type];if(r)try{for(var o=Fve(r),s=o.next();!s.done;s=o.next()){var a=s.value;this._callEventListener(e,a)}}catch(p){t={error:p}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}return!0},n.prototype.removeEventListener=function(e,t){this._listeLine truncated
//# sourceMappingURL=index-Bpquw-JP.js.map
@@ -1 +1 @@
{"version":3,"mappings":";;;;;;;;6CAWA,IAAIA,EAAqB,OAAO,IAAI,4BAA4B,EAC9DC,EAAsB,OAAO,IAAI,gBAAgB,EACnD,SAASC,EAAQC,EAAMC,EAAQC,EAAU,CACvC,IAAIC,EAAM,KAGV,GAFWD,IAAX,SAAwBC,EAAM,GAAKD,GACxBD,EAAO,MAAlB,SAA0BE,EAAM,GAAKF,EAAO,KACxC,QAASA,EAAQ,CACnBC,EAAW,GACX,QAASE,KAAYH,EACTG,IAAV,QAAuBF,EAASE,CAAQ,EAAIH,EAAOG,CAAQ,EACjE,MAASF,EAAWD,EAClB,OAAAA,EAASC,EAAS,IACX,CACL,SAAUL,EACV,KAAMG,EACN,IAAKG,EACL,IAAgBF,IAAX,OAAoBA,EAAS,KAClC,MAAOC,EAEX,CACA,OAAAG,GAAA,SAAmBP,EACnBO,GAAA,IAAcN,EACdM,GAAA,KAAeN,2CC9BbO,GAAA,QAAiBC,GAAA;;;;;;;;6CCQnB,IAAIV,EAAqB,OAAO,IAAI,4BAA4B,EAC9DW,EAAoB,OAAO,IAAI,cAAc,EAC7CV,EAAsB,OAAO,IAAI,gBAAgB,EACjDW,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAqB,OAAO,IAAI,eAAe,EAC/CC,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAwB,OAAO,SACjC,SAASC,EAAcC,GAAe,CACpC,OAAaA,KAAT,MAAuC,OAAOA,IAApB,SAA0C,MACxEA,GACGF,GAAyBE,GAAcF,CAAqB,GAC7DE,GAAc,YAAY,EACN,OAAOA,IAAtB,WAAsCA,GAAgB,KAC/D,CACA,IAAIC,EAAuB,CACvB,UAAW,UAAY,CACrB,MAAO,EACb,EACI,mBAAoB,UAAY,GAChC,oBAAqB,UAAY,GACjC,gBAAiB,UAAY,IAE/BC,EAAS,OAAO,OAChBC,EAAc,GAChB,SAASC,EAAUC,GAAOC,GAASC,GAAS,CAC1C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACAG,EAAU,UAAU,iBAAmB,GACvCA,EAAU,UAAU,SAAW,SAAUI,GAAcC,GAAU,CAC/D,GACe,OAAOD,IAApB,UACe,OAAOA,IAAtB,YACQA,IAAR,KAEA,MAAM,MACJ,0GAEJ,KAAK,QAAQ,gBAAgB,KAAMA,GAAcC,GAAU,UAAU,CACvE,EACAL,EAAU,UAAU,YAAc,SAAUK,GAAU,CACpD,KAAK,QAAQ,mBAAmB,KAAMA,GAAU,aAAa,CAC/D,EACA,SAASC,GAAiB,EAC1BA,EAAe,UAAYN,EAAU,UACrC,SAASO,EAAcN,GAAOC,GAASC,GAAS,CAC9C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACA,IAAIW,GAA0BD,EAAc,UAAY,IAAID,EAC5DE,GAAuB,YAAcD,EACrCT,EAAOU,GAAwBR,EAAU,SAAS,EAClDQ,GAAuB,qBAAuB,GAC9C,IAAIC,GAAc,MAAM,QACtBC,EAAuB,CAAE,EAAG,KAAM,EAAG,KAAM,EAAG,KAAM,EAAG,KAAM,EAAG,IAAI,EACpEC,EAAiB,OAAO,UAAU,eACpC,SAASC,EAAanC,GAAMG,GAAKiC,GAAMC,GAAQC,GAAOd,GAAO,CAC3D,OAAAY,GAAOZ,GAAM,IACN,CACL,SAAU3B,EACV,KAAMG,GACN,IAAKG,GACL,IAAgBiC,KAAX,OAAkBA,GAAO,KAC9B,MAAOZ,GAEX,CACA,SAASe,GAAmBC,GAAYC,GAAQ,CAC9C,OAAON,EACLK,GAAW,KACXC,GACA,OACA,OACA,OACAD,GAAW,MAEf,CACA,SAASE,GAAeC,GAAQ,CAC9B,OACe,OAAOA,IAApB,UACSA,KAAT,MACAA,GAAO,WAAa9C,CAExB,CACA,SAAS+C,GAAOzC,GAAK,CACnB,IAAI0C,GAAgB,CAAE,IAAK,KAAM,IAAK,IAAI,EAC1C,MACE,IACA1C,GAAI,QAAQ,QAAS,SAAU2C,GAAO,CACpC,OAAOD,GAAcC,EAAK,CAChC,CAAK,CAEL,CACA,IAAIC,GAA6B,OACjC,SAASC,GAAcC,GAASC,GAAO,CACrC,OAAoB,OAAOD,IAApB,UAAwCA,KAAT,MAA4BA,GAAQ,KAAhB,KACtDL,GAAO,GAAKK,GAAQ,GAAG,EACvBC,GAAM,SAAS,EAAE,CACvB,CACA,SAASC,IAAS,EAClB,SAASC,GAAgBC,GAAU,CACjC,OAAQA,GAAS,OAAM,CACrB,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,OACjB,QACE,OACgB,OAAOA,GAAS,QAA7B,SACGA,GAAS,KAAKF,GAAQA,EAAM,GAC1BE,GAAS,OAAS,UACpBA,GAAS,KACP,SAAUC,GAAgB,CACVD,GAAS,SAAvB,YACIA,GAAS,OAAS,YACnBA,GAAS,MAAQC,GACpC,EACc,SAAUC,GAAO,CACDF,GAAS,SAAvB,YACIA,GAAS,OAAS,WAAcA,GAAS,OAASE,GACtE,CACA,GACQF,GAAS,OACjB,CACQ,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,MACzB,CACA,CACE,MAAMA,EACR,CACA,SAASG,GAAaC,GAAUC,GAAOC,GAAeC,GAAWhC,GAAU,CACzE,IAAI5B,GAAO,OAAOyD,IACEzD,KAAhB,aAAsCA,KAAd,aAAoByD,GAAW,MAC3D,IAAII,GAAiB,GACrB,GAAaJ,KAAT,KAAmBI,GAAiB,OAEtC,QAAQ7D,GAAI,CACV,IAAK,SACL,IAAK,SACL,IAAK,SACH6D,GAAiB,GACjB,MACF,IAAK,SACH,OAAQJ,GAAS,SAAQ,CACvB,KAAK5D,EACL,KAAKW,EACHqD,GAAiB,GACjB,MACF,KAAK7C,EACH,OACG6C,GAAiBJ,GAAS,MAC3BD,GACEK,GAAeJ,GAAS,QAAQ,EAChCC,GACAC,GACAC,GACAhC,EAChB,CAEA,CACA,CACE,GAAIiC,GACF,OACGjC,GAAWA,GAAS6B,EAAQ,EAC5BI,GACQD,KAAP,GAAmB,IAAMZ,GAAcS,GAAU,CAAC,EAAIG,GACxD5B,GAAYJ,EAAQ,GACd+B,GAAgB,GACVE,IAAR,OACGF,GACCE,GAAe,QAAQd,GAA4B,KAAK,EAAI,KAChES,GAAa5B,GAAU8B,GAAOC,GAAe,GAAI,SAAUG,GAAG,CAC5D,OAAOA,EACnB,CAAW,GACOlC,IAAR,OACCc,GAAed,EAAQ,IACrBA,GAAWW,GACVX,GACA+B,IACW/B,GAAS,KAAjB,MACA6B,IAAYA,GAAS,MAAQ7B,GAAS,IACnC,IACC,GAAKA,GAAS,KAAK,QAClBmB,GACA,OACE,KACRc,EAChB,GACUH,GAAM,KAAK9B,EAAQ,GACvB,EAEJiC,GAAiB,EACjB,IAAIE,GAAwBH,KAAP,GAAmB,IAAMA,GAAY,IAC1D,GAAI5B,GAAYyB,EAAQ,EACtB,QAASO,GAAI,EAAGA,GAAIP,GAAS,OAAQO,KAClCJ,GAAYH,GAASO,EAAC,EACpBhE,GAAO+D,GAAiBf,GAAcY,GAAWI,EAAC,EAClDH,IAAkBL,GACjBI,GACAF,GACAC,GACA3D,GACA4B,EACV,UACaoC,GAAI9C,EAAcuC,EAAQ,EAAmB,OAAOO,IAAtB,WACvC,IACEP,GAAWO,GAAE,KAAKP,EAAQ,EAAGO,GAAI,EACjC,EAAEJ,GAAYH,GAAS,KAAI,GAAI,MAG9BG,GAAYA,GAAU,MACpB5D,GAAO+D,GAAiBf,GAAcY,GAAWI,IAAG,EACpDH,IAAkBL,GACjBI,GACAF,GACAC,GACA3D,GACA4B,EACV,UACwB5B,KAAb,SAAmB,CAC1B,GAAmB,OAAOyD,GAAS,MAA/B,WACF,OAAOD,GACLJ,GAAgBK,EAAQ,EACxBC,GACAC,GACAC,GACAhC,IAEJ,MAAA8B,GAAQ,OAAOD,EAAQ,EACjB,MACJ,mDACyBC,KAAtB,kBACG,qBAAuB,OAAO,KAAKD,EAAQ,EAAE,KAAK,IAAI,EAAI,IAC1DC,IACJ,4EAER,CACE,OAAOG,EACT,CACA,SAASI,GAAYR,GAAUS,GAAMzC,GAAS,CAC5C,GAAYgC,IAAR,KAAkB,OAAOA,GAC7B,IAAIU,GAAS,GACXC,GAAQ,EACV,OAAAZ,GAAaC,GAAUU,GAAQ,GAAI,GAAI,SAAUE,GAAO,CACtD,OAAOH,GAAK,KAAKzC,GAAS4C,GAAOD,IAAO,CAC5C,CAAG,EACMD,EACT,CACA,SAASG,GAAgBC,GAAS,CAChC,GAAWA,GAAQ,UAAf,GAAwB,CAC1B,IAAIC,GAAOD,GAAQ,QACnBC,GAAOA,GAAI,EACXA,GAAK,KACH,SAAUC,GAAc,EACZF,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QAAU,EAAKA,GAAQ,QAAUE,GACpD,EACM,SAAUlB,GAAO,EACLgB,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QLine truncated
{"version":3,"mappings":";;;;;;;;6CAWA,IAAIA,EAAqB,OAAO,IAAI,4BAA4B,EAC9DC,EAAsB,OAAO,IAAI,gBAAgB,EACnD,SAASC,EAAQC,EAAMC,EAAQC,EAAU,CACvC,IAAIC,EAAM,KAGV,GAFWD,IAAX,SAAwBC,EAAM,GAAKD,GACxBD,EAAO,MAAlB,SAA0BE,EAAM,GAAKF,EAAO,KACxC,QAASA,EAAQ,CACnBC,EAAW,GACX,QAASE,KAAYH,EACTG,IAAV,QAAuBF,EAASE,CAAQ,EAAIH,EAAOG,CAAQ,EACjE,MAASF,EAAWD,EAClB,OAAAA,EAASC,EAAS,IACX,CACL,SAAUL,EACV,KAAMG,EACN,IAAKG,EACL,IAAgBF,IAAX,OAAoBA,EAAS,KAClC,MAAOC,EAEX,CACA,OAAAG,GAAA,SAAmBP,EACnBO,GAAA,IAAcN,EACdM,GAAA,KAAeN,2CC9BbO,GAAA,QAAiBC,GAAA;;;;;;;;6CCQnB,IAAIV,EAAqB,OAAO,IAAI,4BAA4B,EAC9DW,EAAoB,OAAO,IAAI,cAAc,EAC7CV,EAAsB,OAAO,IAAI,gBAAgB,EACjDW,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAqB,OAAO,IAAI,eAAe,EAC/CC,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAwB,OAAO,SACjC,SAASC,EAAcC,GAAe,CACpC,OAAaA,KAAT,MAAuC,OAAOA,IAApB,SAA0C,MACxEA,GACGF,GAAyBE,GAAcF,CAAqB,GAC7DE,GAAc,YAAY,EACN,OAAOA,IAAtB,WAAsCA,GAAgB,KAC/D,CACA,IAAIC,EAAuB,CACvB,UAAW,UAAY,CACrB,MAAO,EACb,EACI,mBAAoB,UAAY,GAChC,oBAAqB,UAAY,GACjC,gBAAiB,UAAY,IAE/BC,EAAS,OAAO,OAChBC,EAAc,GAChB,SAASC,EAAUC,GAAOC,GAASC,GAAS,CAC1C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACAG,EAAU,UAAU,iBAAmB,GACvCA,EAAU,UAAU,SAAW,SAAUI,GAAcC,GAAU,CAC/D,GACe,OAAOD,IAApB,UACe,OAAOA,IAAtB,YACQA,IAAR,KAEA,MAAM,MACJ,0GAEJ,KAAK,QAAQ,gBAAgB,KAAMA,GAAcC,GAAU,UAAU,CACvE,EACAL,EAAU,UAAU,YAAc,SAAUK,GAAU,CACpD,KAAK,QAAQ,mBAAmB,KAAMA,GAAU,aAAa,CAC/D,EACA,SAASC,GAAiB,EAC1BA,EAAe,UAAYN,EAAU,UACrC,SAASO,EAAcN,GAAOC,GAASC,GAAS,CAC9C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACA,IAAIW,GAA0BD,EAAc,UAAY,IAAID,EAC5DE,GAAuB,YAAcD,EACrCT,EAAOU,GAAwBR,EAAU,SAAS,EAClDQ,GAAuB,qBAAuB,GAC9C,IAAIC,GAAc,MAAM,QACtBC,EAAuB,CAAE,EAAG,KAAM,EAAG,KAAM,EAAG,KAAM,EAAG,KAAM,EAAG,IAAI,EACpEC,EAAiB,OAAO,UAAU,eACpC,SAASC,EAAanC,GAAMG,GAAKiC,GAAMC,GAAQC,GAAOd,GAAO,CAC3D,OAAAY,GAAOZ,GAAM,IACN,CACL,SAAU3B,EACV,KAAMG,GACN,IAAKG,GACL,IAAgBiC,KAAX,OAAkBA,GAAO,KAC9B,MAAOZ,GAEX,CACA,SAASe,GAAmBC,GAAYC,GAAQ,CAC9C,OAAON,EACLK,GAAW,KACXC,GACA,OACA,OACA,OACAD,GAAW,MAEf,CACA,SAASE,GAAeC,GAAQ,CAC9B,OACe,OAAOA,IAApB,UACSA,KAAT,MACAA,GAAO,WAAa9C,CAExB,CACA,SAAS+C,GAAOzC,GAAK,CACnB,IAAI0C,GAAgB,CAAE,IAAK,KAAM,IAAK,IAAI,EAC1C,MACE,IACA1C,GAAI,QAAQ,QAAS,SAAU2C,GAAO,CACpC,OAAOD,GAAcC,EAAK,CAChC,CAAK,CAEL,CACA,IAAIC,GAA6B,OACjC,SAASC,GAAcC,GAASC,GAAO,CACrC,OAAoB,OAAOD,IAApB,UAAwCA,KAAT,MAA4BA,GAAQ,KAAhB,KACtDL,GAAO,GAAKK,GAAQ,GAAG,EACvBC,GAAM,SAAS,EAAE,CACvB,CACA,SAASC,IAAS,EAClB,SAASC,GAAgBC,GAAU,CACjC,OAAQA,GAAS,OAAM,CACrB,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,OACjB,QACE,OACgB,OAAOA,GAAS,QAA7B,SACGA,GAAS,KAAKF,GAAQA,EAAM,GAC1BE,GAAS,OAAS,UACpBA,GAAS,KACP,SAAUC,GAAgB,CACVD,GAAS,SAAvB,YACIA,GAAS,OAAS,YACnBA,GAAS,MAAQC,GACpC,EACc,SAAUC,GAAO,CACDF,GAAS,SAAvB,YACIA,GAAS,OAAS,WAAcA,GAAS,OAASE,GACtE,CACA,GACQF,GAAS,OACjB,CACQ,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,MACzB,CACA,CACE,MAAMA,EACR,CACA,SAASG,GAAaC,GAAUC,GAAOC,GAAeC,GAAWhC,GAAU,CACzE,IAAI5B,GAAO,OAAOyD,IACEzD,KAAhB,aAAsCA,KAAd,aAAoByD,GAAW,MAC3D,IAAII,GAAiB,GACrB,GAAaJ,KAAT,KAAmBI,GAAiB,OAEtC,QAAQ7D,GAAI,CACV,IAAK,SACL,IAAK,SACL,IAAK,SACH6D,GAAiB,GACjB,MACF,IAAK,SACH,OAAQJ,GAAS,SAAQ,CACvB,KAAK5D,EACL,KAAKW,EACHqD,GAAiB,GACjB,MACF,KAAK7C,EACH,OACG6C,GAAiBJ,GAAS,MAC3BD,GACEK,GAAeJ,GAAS,QAAQ,EAChCC,GACAC,GACAC,GACAhC,EAChB,CAEA,CACA,CACE,GAAIiC,GACF,OACGjC,GAAWA,GAAS6B,EAAQ,EAC5BI,GACQD,KAAP,GAAmB,IAAMZ,GAAcS,GAAU,CAAC,EAAIG,GACxD5B,GAAYJ,EAAQ,GACd+B,GAAgB,GACVE,IAAR,OACGF,GACCE,GAAe,QAAQd,GAA4B,KAAK,EAAI,KAChES,GAAa5B,GAAU8B,GAAOC,GAAe,GAAI,SAAUG,GAAG,CAC5D,OAAOA,EACnB,CAAW,GACOlC,IAAR,OACCc,GAAed,EAAQ,IACrBA,GAAWW,GACVX,GACA+B,IACW/B,GAAS,KAAjB,MACA6B,IAAYA,GAAS,MAAQ7B,GAAS,IACnC,IACC,GAAKA,GAAS,KAAK,QAClBmB,GACA,OACE,KACRc,EAChB,GACUH,GAAM,KAAK9B,EAAQ,GACvB,EAEJiC,GAAiB,EACjB,IAAIE,GAAwBH,KAAP,GAAmB,IAAMA,GAAY,IAC1D,GAAI5B,GAAYyB,EAAQ,EACtB,QAASO,GAAI,EAAGA,GAAIP,GAAS,OAAQO,KAClCJ,GAAYH,GAASO,EAAC,EACpBhE,GAAO+D,GAAiBf,GAAcY,GAAWI,EAAC,EAClDH,IAAkBL,GACjBI,GACAF,GACAC,GACA3D,GACA4B,EACV,UACaoC,GAAI9C,EAAcuC,EAAQ,EAAmB,OAAOO,IAAtB,WACvC,IACEP,GAAWO,GAAE,KAAKP,EAAQ,EAAGO,GAAI,EACjC,EAAEJ,GAAYH,GAAS,KAAI,GAAI,MAG9BG,GAAYA,GAAU,MACpB5D,GAAO+D,GAAiBf,GAAcY,GAAWI,IAAG,EACpDH,IAAkBL,GACjBI,GACAF,GACAC,GACA3D,GACA4B,EACV,UACwB5B,KAAb,SAAmB,CAC1B,GAAmB,OAAOyD,GAAS,MAA/B,WACF,OAAOD,GACLJ,GAAgBK,EAAQ,EACxBC,GACAC,GACAC,GACAhC,IAEJ,MAAA8B,GAAQ,OAAOD,EAAQ,EACjB,MACJ,mDACyBC,KAAtB,kBACG,qBAAuB,OAAO,KAAKD,EAAQ,EAAE,KAAK,IAAI,EAAI,IAC1DC,IACJ,4EAER,CACE,OAAOG,EACT,CACA,SAASI,GAAYR,GAAUS,GAAMzC,GAAS,CAC5C,GAAYgC,IAAR,KAAkB,OAAOA,GAC7B,IAAIU,GAAS,GACXC,GAAQ,EACV,OAAAZ,GAAaC,GAAUU,GAAQ,GAAI,GAAI,SAAUE,GAAO,CACtD,OAAOH,GAAK,KAAKzC,GAAS4C,GAAOD,IAAO,CAC5C,CAAG,EACMD,EACT,CACA,SAASG,GAAgBC,GAAS,CAChC,GAAWA,GAAQ,UAAf,GAAwB,CAC1B,IAAIC,GAAOD,GAAQ,QACnBC,GAAOA,GAAI,EACXA,GAAK,KACH,SAAUC,GAAc,EACZF,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QAAU,EAAKA,GAAQ,QAAUE,GACpD,EACM,SAAUlB,GAAO,EACLgB,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QLine truncated
+1 -1
View File
@@ -37,7 +37,7 @@
}
</style>
<script type="module" crossorigin src="/maputnik/assets/index-CntVQQH2.js"></script>
<script type="module" crossorigin src="/maputnik/assets/index-Bpquw-JP.js"></script>
<link rel="stylesheet" crossorigin href="/maputnik/assets/index-MGRbWx6i.css">
</head>
<body>