This commit is contained in:
birkskyum committed 2025-01-21 13:48:26 +00:00
1 parent 07bee66764
commit 2c8bc5aa04
3 files changed
+152 -152

No files matched your search

@@ -1,4 +1,4 @@
var HG=Object.defineProperty;var ZG=(n,e,t)=>e in n?HG(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var In=(n,e,t)=>ZG(n,typeof e!="symbol"?e+"":e,t);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function t(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=t(i);fetch(i.href,o)}})();function Ka(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function tB(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}),t}var O3={exports:{}},ev={},I3={exports:{}},ys={},DI;function XG(){if(DI)return ys;DI=1;/**
var FW=Object.defineProperty;var UW=(n,e,t)=>e in n?FW(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var On=(n,e,t)=>UW(n,typeof e!="symbol"?e+"":e,t);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function t(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=t(i);fetch(i.href,s)}})();function La(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function _B(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}),t}var I3={exports:{}},ev={},k3={exports:{}},ys={},t8;function zW(){if(t8)return ys;t8=1;/**
* @license React
* react.production.min.js
*
@@ -6,7 +6,7 @@ var HG=Object.defineProperty;var ZG=(n,e,t)=>e in n?HG(n,e,{enumerable:!0,config
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),B=Symbol.iterator;function S(Ue){return Ue===null||typeof Ue!="object"?null:(Ue=B&&Ue[B]||Ue["@@iterator"],typeof Ue=="function"?Ue:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,U={};function z(Ue,st,wt){this.props=Ue,this.context=st,this.refs=U,this.updater=wt||I}z.prototype.isReactComponent={},z.prototype.setState=function(Ue,st){if(typeof Ue!="object"&&typeof Ue!="function"&&Ue!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Ue,st,"setState")},z.prototype.forceUpdate=function(Ue){this.updater.enqueueForceUpdate(this,Ue,"forceUpdate")};function Y(){}Y.prototype=z.prototype;function Q(Ue,st,wt){this.props=Ue,this.context=st,this.refs=U,this.updater=wt||I}var ne=Q.prototype=new Y;ne.constructor=Q,k(ne,z.prototype),ne.isPureReactComponent=!0;var X=Array.isArray,q=Object.prototype.hasOwnProperty,J={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function ie(Ue,st,wt){var mt,ft={},Ut=null,Lt=null;if(st!=null)for(mt in st.ref!==void 0&&(Lt=st.ref),st.key!==void 0&&(Ut=""+st.key),st)q.call(st,mt)&&!N.hasOwnProperty(mt)&&(ft[mt]=st[mt]);var De=arguments.length-2;if(De===1)ft.children=wt;else if(1<De){for(var ke=Array(De),Oe=0;Oe<De;Oe++)ke[Oe]=arguments[Oe+2];ft.children=ke}if(Ue&&Ue.defaultProps)for(mt in De=Ue.defaultProps,De)ft[mt]===void 0&&(ft[mt]=De[mt]);return{$$typeof:n,type:Ue,key:Ut,ref:Lt,props:ft,_owner:J.current}}function he(Ue,st){return{$$typeof:n,type:Ue.type,key:st,ref:Ue.ref,props:Ue.props,_owner:Ue._owner}}function ce(Ue){return typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===n}function we(Ue){var st={"=":"=0",":":"=2"};return"$"+Ue.replace(/[=:]/g,function(wt){return st[wt]})}var pe=/\/+/g;function Ce(Ue,st){return typeof Ue=="object"&&Ue!==null&&Ue.key!=null?we(""+Ue.key):st.toString(36)}function Pe(Ue,st,wt,mt,ft){var Ut=typeof Ue;(Ut==="undefined"||Ut==="boolean")&&(Ue=null);var Lt=!1;if(Ue===null)Lt=!0;else switch(Ut){case"string":case"number":Lt=!0;break;case"object":switch(Ue.$$typeof){case n:case e:Lt=!0}}if(Lt)return Lt=Ue,ft=ft(Lt),Ue=mt===""?"."+Ce(Lt,0):mt,X(ft)?(wt="",Ue!=null&&(wt=Ue.replace(pe,"$&/")+"/"),Pe(ft,st,wt,"",function(Oe){return Oe})):ft!=null&&(ce(ft)&&(ft=he(ft,wt+(!ft.key||Lt&&Lt.key===ft.key?"":(""+ft.key).replace(pe,"$&/")+"/")+Ue)),st.push(ft)),1;if(Lt=0,mt=mt===""?".":mt+":",X(Ue))for(var De=0;De<Ue.length;De++){Ut=Ue[De];var ke=mt+Ce(Ut,De);Lt+=Pe(Ut,st,wt,ke,ft)}else if(ke=S(Ue),typeof ke=="function")for(Ue=ke.call(Ue),De=0;!(Ut=Ue.next()).done;)Ut=Ut.value,ke=mt+Ce(Ut,De++),Lt+=Pe(Ut,st,wt,ke,ft);else if(Ut==="object")throw st=String(Ue),Error("Objects are not valid as a React child (found: "+(st==="[object Object]"?"object with keys {"+Object.keys(Ue).join(", ")+"}":st)+"). If you meant to render a collection of children, use an array instead.");return Lt}function de(Ue,st,wt){if(Ue==null)return Ue;var mt=[],ft=0;return Pe(Ue,mt,"","",function(Ut){return st.call(wt,Ut,ft++)}),mt}function rt(Ue){if(Ue._status===-1){var st=Ue._result;st=st(),st.then(function(wt){(Ue._status===0||Ue._status===-1)&&(Ue._status=1,Ue._result=wt)},function(wt){(Ue._status===0||Ue._status===-1)&&(Ue._status=2,Ue._result=wt)}),Ue._status===-1&&(Ue._status=0,Ue._result=st)}if(Ue._status===1)return Ue._result.default;throw Ue._result}var ze={current:null},Qe={transition:null},ut={ReactCurrentDispatcher:ze,ReactCurrentBatchConfig:Qe,ReactCurrentOwner:J};function Te(){throw Error("act(...) is not supported in production builds of React.")}return ys.Children={map:de,forEach:function(Ue,st,wt){de(Ue,function(){st.apply(this,arguments)},wt)},count:function(Ue){var st=0;return de(Ue,function(){st++}),st},toArray:function(Ue){return de(Ue,function(st){return st})||[]},only:function(Ue){if(!ce(Ue))throw Error("React.Children.only expected to receive a single React element child.");return Ue}},ys.Component=z,ys.Fragment=t,ys.Profiler=i,ys.PureComponent=Q,ys.StrictMode=r,ys.Suspense=h,ys.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ut,ys.act=Te,ys.cloneElement=function(Ue,st,wt){if(Ue==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+Ue+".");var mt=k({},Ue.props),ft=Ue.key,Ut=Ue.ref,Lt=Ue._owner;if(st!=null){if(st.ref!==void 0&&(Ut=st.ref,Lt=J.current),st.key!==void 0&&(ft=""+st.key),Ue.type&&Ue.type.defaultProps)var De=Ue.type.defaultProps;for(ke in st)q.call(st,ke)&&!N.hasOwnProperty(ke)&&(mt[ke]=st[ke]===void 0&&De!==void 0?De[ke]:st[ke])}var ke=arguments.length-2;if(kLine truncated
*/var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.iterator;function S(Ne){return Ne===null||typeof Ne!="object"?null:(Ne=E&&Ne[E]||Ne["@@iterator"],typeof Ne=="function"?Ne:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,U={};function z(Ne,at,wt){this.props=Ne,this.context=at,this.refs=U,this.updater=wt||O}z.prototype.isReactComponent={},z.prototype.setState=function(Ne,at){if(typeof Ne!="object"&&typeof Ne!="function"&&Ne!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Ne,at,"setState")},z.prototype.forceUpdate=function(Ne){this.updater.enqueueForceUpdate(this,Ne,"forceUpdate")};function q(){}q.prototype=z.prototype;function Q(Ne,at,wt){this.props=Ne,this.context=at,this.refs=U,this.updater=wt||O}var re=Q.prototype=new q;re.constructor=Q,k(re,z.prototype),re.isPureReactComponent=!0;var X=Array.isArray,Y=Object.prototype.hasOwnProperty,J={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function ie(Ne,at,wt){var Ct,ft={},Lt=null,Kt=null;if(at!=null)for(Ct in at.ref!==void 0&&(Kt=at.ref),at.key!==void 0&&(Lt=""+at.key),at)Y.call(at,Ct)&&!N.hasOwnProperty(Ct)&&(ft[Ct]=at[Ct]);var Fe=arguments.length-2;if(Fe===1)ft.children=wt;else if(1<Fe){for(var Te=Array(Fe),Se=0;Se<Fe;Se++)Te[Se]=arguments[Se+2];ft.children=Te}if(Ne&&Ne.defaultProps)for(Ct in Fe=Ne.defaultProps,Fe)ft[Ct]===void 0&&(ft[Ct]=Fe[Ct]);return{$$typeof:n,type:Ne,key:Lt,ref:Kt,props:ft,_owner:J.current}}function he(Ne,at){return{$$typeof:n,type:Ne.type,key:at,ref:Ne.ref,props:Ne.props,_owner:Ne._owner}}function de(Ne){return typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===n}function we(Ne){var at={"=":"=0",":":"=2"};return"$"+Ne.replace(/[=:]/g,function(wt){return at[wt]})}var fe=/\/+/g;function be(Ne,at){return typeof Ne=="object"&&Ne!==null&&Ne.key!=null?we(""+Ne.key):at.toString(36)}function Pe(Ne,at,wt,Ct,ft){var Lt=typeof Ne;(Lt==="undefined"||Lt==="boolean")&&(Ne=null);var Kt=!1;if(Ne===null)Kt=!0;else switch(Lt){case"string":case"number":Kt=!0;break;case"object":switch(Ne.$$typeof){case n:case e:Kt=!0}}if(Kt)return Kt=Ne,ft=ft(Kt),Ne=Ct===""?"."+be(Kt,0):Ct,X(ft)?(wt="",Ne!=null&&(wt=Ne.replace(fe,"$&/")+"/"),Pe(ft,at,wt,"",function(Se){return Se})):ft!=null&&(de(ft)&&(ft=he(ft,wt+(!ft.key||Kt&&Kt.key===ft.key?"":(""+ft.key).replace(fe,"$&/")+"/")+Ne)),at.push(ft)),1;if(Kt=0,Ct=Ct===""?".":Ct+":",X(Ne))for(var Fe=0;Fe<Ne.length;Fe++){Lt=Ne[Fe];var Te=Ct+be(Lt,Fe);Kt+=Pe(Lt,at,wt,Te,ft)}else if(Te=S(Ne),typeof Te=="function")for(Ne=Te.call(Ne),Fe=0;!(Lt=Ne.next()).done;)Lt=Lt.value,Te=Ct+be(Lt,Fe++),Kt+=Pe(Lt,at,wt,Te,ft);else if(Lt==="object")throw at=String(Ne),Error("Objects are not valid as a React child (found: "+(at==="[object Object]"?"object with keys {"+Object.keys(Ne).join(", ")+"}":at)+"). If you meant to render a collection of children, use an array instead.");return Kt}function pe(Ne,at,wt){if(Ne==null)return Ne;var Ct=[],ft=0;return Pe(Ne,Ct,"","",function(Lt){return at.call(wt,Lt,ft++)}),Ct}function it(Ne){if(Ne._status===-1){var at=Ne._result;at=at(),at.then(function(wt){(Ne._status===0||Ne._status===-1)&&(Ne._status=1,Ne._result=wt)},function(wt){(Ne._status===0||Ne._status===-1)&&(Ne._status=2,Ne._result=wt)}),Ne._status===-1&&(Ne._status=0,Ne._result=at)}if(Ne._status===1)return Ne._result.default;throw Ne._result}var We={current:null},$e={transition:null},ht={ReactCurrentDispatcher:We,ReactCurrentBatchConfig:$e,ReactCurrentOwner:J};function De(){throw Error("act(...) is not supported in production builds of React.")}return ys.Children={map:pe,forEach:function(Ne,at,wt){pe(Ne,function(){at.apply(this,arguments)},wt)},count:function(Ne){var at=0;return pe(Ne,function(){at++}),at},toArray:function(Ne){return pe(Ne,function(at){return at})||[]},only:function(Ne){if(!de(Ne))throw Error("React.Children.only expected to receive a single React element child.");return Ne}},ys.Component=z,ys.Fragment=t,ys.Profiler=i,ys.PureComponent=Q,ys.StrictMode=r,ys.Suspense=d,ys.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ht,ys.act=De,ys.cloneElement=function(Ne,at,wt){if(Ne==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+Ne+".");var Ct=k({},Ne.props),ft=Ne.key,Lt=Ne.ref,Kt=Ne._owner;if(at!=null){if(at.ref!==void 0&&(Lt=at.ref,Kt=J.current),at.key!==void 0&&(ft=""+at.key),Ne.type&&Ne.type.defaultProps)var Fe=Ne.type.defaultProps;for(Te in at)Y.call(at,Te)&&!N.hasOwnProperty(Te)&&(Ct[Te]=at[Te]===void 0&&Fe!==void 0?Fe[Te]:at[Te])}var Te=arguments.length-2;if(TLine truncated
* @license React
* react-jsx-runtime.production.min.js
*
@@ -14,7 +14,7 @@ var HG=Object.defineProperty;var ZG=(n,e,t)=>e in n?HG(n,e,{enumerable:!0,config
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var FI;function JG(){if(FI)return ev;FI=1;var n=Da(),e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(s,h,g){var b,B={},S=null,I=null;g!==void 0&&(S=""+g),h.key!==void 0&&(S=""+h.key),h.ref!==void 0&&(I=h.ref);for(b in h)r.call(h,b)&&!o.hasOwnProperty(b)&&(B[b]=h[b]);if(s&&s.defaultProps)for(b in h=s.defaultProps,h)B[b]===void 0&&(B[b]=h[b]);return{$$typeof:e,type:s,key:S,ref:I,props:B,_owner:i.current}}return ev.Fragment=t,ev.jsx=a,ev.jsxs=a,ev}var UI;function eW(){return UI||(UI=1,O3.exports=JG()),O3.exports}var ae=eW(),Ai=Da();const Xn=Ka(Ai);var iL={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},PE=Xn.createContext&&Xn.createContext(iL),tW=["attr","size","title"];function nW(n,e){if(n==null)return{};var t=rW(n,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function rW(n,e){if(n==null)return{};var t={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function Rb(){return Rb=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Rb.apply(this,arguments)}function zI(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Kb(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?zI(Object(t),!0).forEach(function(r){iW(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):zI(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function iW(n,e,t){return e=oW(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function oW(n){var e=sW(n,"string");return typeof e=="symbol"?e:e+""}function sW(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function oL(n){return n&&n.map((e,t)=>Xn.createElement(e.tag,Kb({key:t},e.attr),oL(e.child)))}function eu(n){return e=>Xn.createElement(aW,Rb({attr:Kb({},n.attr)},e),oL(n.child))}function aW(n){var e=t=>{var{attr:r,size:i,title:o}=n,a=nW(n,tW),s=i||t.size||"1em",h;return t.className&&(h=t.className),n.className&&(h=(h?h+" ":"")+n.className),Xn.createElement("svg",Rb({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,a,{className:h,style:Kb(Kb({color:n.color||t.color},t.style),n.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&Xn.createElement("title",null,o),n.children)};return PE!==void 0?Xn.createElement(PE.Consumer,null,t=>e(t)):e(iL)}var BC={},k3={exports:{}},hd={},T3={exports:{}},P3={};/**
*/var r8;function jW(){if(r8)return ev;r8=1;var n=Fa(),e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(o,d,g){var b,E={},S=null,O=null;g!==void 0&&(S=""+g),d.key!==void 0&&(S=""+d.key),d.ref!==void 0&&(O=d.ref);for(b in d)r.call(d,b)&&!s.hasOwnProperty(b)&&(E[b]=d[b]);if(o&&o.defaultProps)for(b in d=o.defaultProps,d)E[b]===void 0&&(E[b]=d[b]);return{$$typeof:e,type:o,key:S,ref:O,props:E,_owner:i.current}}return ev.Fragment=t,ev.jsx=a,ev.jsxs=a,ev}var i8;function NW(){return i8||(i8=1,I3.exports=jW()),I3.exports}var le=NW(),ui=Fa();const Zn=La(ui);var UL={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ZE=Zn.createContext&&Zn.createContext(UL),GW=["attr","size","title"];function WW(n,e){if(n==null)return{};var t=QW(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function QW(n,e){if(n==null)return{};var t={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function Rb(){return Rb=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Rb.apply(this,arguments)}function o8(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Kb(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?o8(Object(t),!0).forEach(function(r){qW(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):o8(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function qW(n,e,t){return e=YW(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function YW(n){var e=$W(n,"string");return typeof e=="symbol"?e:e+""}function $W(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function zL(n){return n&&n.map((e,t)=>Zn.createElement(e.tag,Kb({key:t},e.attr),zL(e.child)))}function eu(n){return e=>Zn.createElement(VW,Rb({attr:Kb({},n.attr)},e),zL(n.child))}function VW(n){var e=t=>{var{attr:r,size:i,title:s}=n,a=WW(n,GW),o=i||t.size||"1em",d;return t.className&&(d=t.className),n.className&&(d=(d?d+" ":"")+n.className),Zn.createElement("svg",Rb({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,a,{className:d,style:Kb(Kb({color:n.color||t.color},t.style),n.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),s&&Zn.createElement("title",null,s),n.children)};return ZE!==void 0?Zn.createElement(ZE.Consumer,null,t=>e(t)):e(UL)}var BC={},T3={exports:{}},dh={},P3={exports:{}},R3={};/**
* @license React
* scheduler.production.min.js
*
@@ -22,7 +22,7 @@ var HG=Object.defineProperty;var ZG=(n,e,t)=>e in n?HG(n,e,{enumerable:!0,config
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var jI;function lW(){return jI||(jI=1,function(n){function e(Qe,ut){var Te=Qe.length;Qe.push(ut);e:for(;0<Te;){var Ue=Te-1>>>1,st=Qe[Ue];if(0<i(st,ut))Qe[Ue]=ut,Qe[Te]=st,Te=Ue;else break e}}function t(Qe){return Qe.length===0?null:Qe[0]}function r(Qe){if(Qe.length===0)return null;var ut=Qe[0],Te=Qe.pop();if(Te!==ut){Qe[0]=Te;e:for(var Ue=0,st=Qe.length,wt=st>>>1;Ue<wt;){var mt=2*(Ue+1)-1,ft=Qe[mt],Ut=mt+1,Lt=Qe[Ut];if(0>i(ft,Te))Ut<st&&0>i(Lt,ft)?(Qe[Ue]=Lt,Qe[Ut]=Te,Ue=Ut):(Qe[Ue]=ft,Qe[mt]=Te,Ue=mt);else if(Ut<st&&0>i(Lt,Te))Qe[Ue]=Lt,Qe[Ut]=Te,Ue=Ut;else break e}}return ut}function i(Qe,ut){var Te=Qe.sortIndex-ut.sortIndex;return Te!==0?Te:Qe.id-ut.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;n.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();n.unstable_now=function(){return a.now()-s}}var h=[],g=[],b=1,B=null,S=3,I=!1,k=!1,U=!1,z=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ne(Qe){for(var ut=t(g);ut!==null;){if(ut.callback===null)r(g);else if(ut.startTime<=Qe)r(g),ut.sortIndex=ut.expirationTime,e(h,ut);else break;ut=t(g)}}function X(Qe){if(U=!1,ne(Qe),!k)if(t(h)!==null)k=!0,rt(q);else{var ut=t(g);ut!==null&&ze(X,ut.startTime-Qe)}}function q(Qe,ut){k=!1,U&&(U=!1,Y(ie),ie=-1),I=!0;var Te=S;try{for(ne(ut),B=t(h);B!==null&&(!(B.expirationTime>ut)||Qe&&!we());){var Ue=B.callback;if(typeof Ue=="function"){B.callback=null,S=B.priorityLevel;var st=Ue(B.expirationTime<=ut);ut=n.unstable_now(),typeof st=="function"?B.callback=st:B===t(h)&&r(h),ne(ut)}else r(h);B=t(h)}if(B!==null)var wt=!0;else{var mt=t(g);mt!==null&&ze(X,mt.startTime-ut),wt=!1}return wt}finally{B=null,S=Te,I=!1}}var J=!1,N=null,ie=-1,he=5,ce=-1;function we(){return!(n.unstable_now()-ce<he)}function pe(){if(N!==null){var Qe=n.unstable_now();ce=Qe;var ut=!0;try{ut=N(!0,Qe)}finally{ut?Ce():(J=!1,N=null)}}else J=!1}var Ce;if(typeof Q=="function")Ce=function(){Q(pe)};else if(typeof MessageChannel<"u"){var Pe=new MessageChannel,de=Pe.port2;Pe.port1.onmessage=pe,Ce=function(){de.postMessage(null)}}else Ce=function(){z(pe,0)};function rt(Qe){N=Qe,J||(J=!0,Ce())}function ze(Qe,ut){ie=z(function(){Qe(n.unstable_now())},ut)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(Qe){Qe.callback=null},n.unstable_continueExecution=function(){k||I||(k=!0,rt(q))},n.unstable_forceFrameRate=function(Qe){0>Qe||125<Qe?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):he=0<Qe?Math.floor(1e3/Qe):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_getFirstCallbackNode=function(){return t(h)},n.unstable_next=function(Qe){switch(S){case 1:case 2:case 3:var ut=3;break;default:ut=S}var Te=S;S=ut;try{return Qe()}finally{S=Te}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(Qe,ut){switch(Qe){case 1:case 2:case 3:case 4:case 5:break;default:Qe=3}var Te=S;S=Qe;try{return ut()}finally{S=Te}},n.unstable_scheduleCallback=function(Qe,ut,Te){var Ue=n.unstable_now();switch(typeof Te=="object"&&Te!==null?(Te=Te.delay,Te=typeof Te=="number"&&0<Te?Ue+Te:Ue):Te=Ue,Qe){case 1:var st=-1;break;case 2:st=250;break;case 5:st=1073741823;break;case 4:st=1e4;break;default:st=5e3}return st=Te+st,Qe={id:b++,callback:ut,priorityLevel:Qe,startTime:Te,expirationTime:st,sortIndex:-1},Te>Ue?(Qe.sortIndex=Te,e(g,Qe),t(h)===null&&Qe===t(g)&&(U?(Y(ie),ie=-1):U=!0,ze(X,Te-Ue))):(Qe.sortIndex=st,e(h,Qe),k||I||(k=!0,rt(q))),Qe},n.unstable_shouldYield=we,n.unstable_wrapCallback=function(Qe){var ut=S;return function(){var Te=S;S=ut;try{return Qe.apply(this,arguments)}finally{S=Te}}}}(P3)),P3}var NI;function uW(){return NI||(NI=1,T3.exports=lW()),T3.exports}/**
*/var s8;function HW(){return s8||(s8=1,function(n){function e($e,ht){var De=$e.length;$e.push(ht);e:for(;0<De;){var Ne=De-1>>>1,at=$e[Ne];if(0<i(at,ht))$e[Ne]=ht,$e[De]=at,De=Ne;else break e}}function t($e){return $e.length===0?null:$e[0]}function r($e){if($e.length===0)return null;var ht=$e[0],De=$e.pop();if(De!==ht){$e[0]=De;e:for(var Ne=0,at=$e.length,wt=at>>>1;Ne<wt;){var Ct=2*(Ne+1)-1,ft=$e[Ct],Lt=Ct+1,Kt=$e[Lt];if(0>i(ft,De))Lt<at&&0>i(Kt,ft)?($e[Ne]=Kt,$e[Lt]=De,Ne=Lt):($e[Ne]=ft,$e[Ct]=De,Ne=Ct);else if(Lt<at&&0>i(Kt,De))$e[Ne]=Kt,$e[Lt]=De,Ne=Lt;else break e}}return ht}function i($e,ht){var De=$e.sortIndex-ht.sortIndex;return De!==0?De:$e.id-ht.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;n.unstable_now=function(){return s.now()}}else{var a=Date,o=a.now();n.unstable_now=function(){return a.now()-o}}var d=[],g=[],b=1,E=null,S=3,O=!1,k=!1,U=!1,z=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function re($e){for(var ht=t(g);ht!==null;){if(ht.callback===null)r(g);else if(ht.startTime<=$e)r(g),ht.sortIndex=ht.expirationTime,e(d,ht);else break;ht=t(g)}}function X($e){if(U=!1,re($e),!k)if(t(d)!==null)k=!0,it(Y);else{var ht=t(g);ht!==null&&We(X,ht.startTime-$e)}}function Y($e,ht){k=!1,U&&(U=!1,q(ie),ie=-1),O=!0;var De=S;try{for(re(ht),E=t(d);E!==null&&(!(E.expirationTime>ht)||$e&&!we());){var Ne=E.callback;if(typeof Ne=="function"){E.callback=null,S=E.priorityLevel;var at=Ne(E.expirationTime<=ht);ht=n.unstable_now(),typeof at=="function"?E.callback=at:E===t(d)&&r(d),re(ht)}else r(d);E=t(d)}if(E!==null)var wt=!0;else{var Ct=t(g);Ct!==null&&We(X,Ct.startTime-ht),wt=!1}return wt}finally{E=null,S=De,O=!1}}var J=!1,N=null,ie=-1,he=5,de=-1;function we(){return!(n.unstable_now()-de<he)}function fe(){if(N!==null){var $e=n.unstable_now();de=$e;var ht=!0;try{ht=N(!0,$e)}finally{ht?be():(J=!1,N=null)}}else J=!1}var be;if(typeof Q=="function")be=function(){Q(fe)};else if(typeof MessageChannel<"u"){var Pe=new MessageChannel,pe=Pe.port2;Pe.port1.onmessage=fe,be=function(){pe.postMessage(null)}}else be=function(){z(fe,0)};function it($e){N=$e,J||(J=!0,be())}function We($e,ht){ie=z(function(){$e(n.unstable_now())},ht)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function($e){$e.callback=null},n.unstable_continueExecution=function(){k||O||(k=!0,it(Y))},n.unstable_forceFrameRate=function($e){0>$e||125<$e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):he=0<$e?Math.floor(1e3/$e):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_getFirstCallbackNode=function(){return t(d)},n.unstable_next=function($e){switch(S){case 1:case 2:case 3:var ht=3;break;default:ht=S}var De=S;S=ht;try{return $e()}finally{S=De}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function($e,ht){switch($e){case 1:case 2:case 3:case 4:case 5:break;default:$e=3}var De=S;S=$e;try{return ht()}finally{S=De}},n.unstable_scheduleCallback=function($e,ht,De){var Ne=n.unstable_now();switch(typeof De=="object"&&De!==null?(De=De.delay,De=typeof De=="number"&&0<De?Ne+De:Ne):De=Ne,$e){case 1:var at=-1;break;case 2:at=250;break;case 5:at=1073741823;break;case 4:at=1e4;break;default:at=5e3}return at=De+at,$e={id:b++,callback:ht,priorityLevel:$e,startTime:De,expirationTime:at,sortIndex:-1},De>Ne?($e.sortIndex=De,e(g,$e),t(d)===null&&$e===t(g)&&(U?(q(ie),ie=-1):U=!0,We(X,De-Ne))):($e.sortIndex=at,e(d,$e),k||O||(k=!0,it(Y))),$e},n.unstable_shouldYield=we,n.unstable_wrapCallback=function($e){var ht=S;return function(){var De=S;S=ht;try{return $e.apply(this,arguments)}finally{S=De}}}}(R3)),R3}var a8;function ZW(){return a8||(a8=1,P3.exports=HW()),P3.exports}/**
* @license React
* react-dom.production.min.js
*
@@ -30,52 +30,52 @@ var HG=Object.defineProperty;var ZG=(n,e,t)=>e in n?HG(n,e,{enumerable:!0,config
*
* 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 AW(){if(GI)return hd;GI=1;var n=Da(),e=uW();function t(m){for(var _="https://reactjs.org/docs/error-decoder.html?invariant="+m,L=1;L<arguments.length;L++)_+="&args[]="+encodeURIComponent(arguments[L]);return"Minified React error #"+m+"; visit "+_+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function o(m,_){a(m,_),a(m+"Capture",_)}function a(m,_){for(i[m]=_,m=0;m<_.length;m++)r.add(_[m])}var s=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,b={},B={};function S(m){return h.call(B,m)?!0:h.call(b,m)?!1:g.test(m)?B[m]=!0:(b[m]=!0,!1)}function I(m,_,L,W){if(L!==null&&L.type===0)return!1;switch(typeof _){case"function":case"symbol":return!0;case"boolean":return W?!1:L!==null?!L.acceptsBooleans:(m=m.toLowerCase().slice(0,5),m!=="data-"&&m!=="aria-");default:return!1}}function k(m,_,L,W){if(_===null||typeof _>"u"||I(m,_,L,W))return!0;if(W)return!1;if(L!==null)switch(L.type){case 3:return!_;case 4:return _===!1;case 5:return isNaN(_);case 6:return isNaN(_)||1>_}return!1}function U(m,_,L,W,se,ge,Ze){this.acceptsBooleans=_===2||_===3||_===4,this.attributeName=W,this.attributeNamespace=se,this.mustUseProperty=L,this.propertyName=m,this.type=_,this.sanitizeURL=ge,this.removeEmptyString=Ze}var z={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(m){z[m]=new U(m,0,!1,m,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(m){var _=m[0];z[_]=new U(_,1,!1,m[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(m){z[m]=new U(m,2,!1,m.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(m){z[m]=new U(m,2,!1,m,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(m){z[m]=new U(m,3,!1,m.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(m){z[m]=new U(m,3,!0,m,null,!1,!1)}),["capture","download"].forEach(function(m){z[m]=new U(m,4,!1,m,null,!1,!1)}),["cols","rows","size","span"].forEach(function(m){z[m]=new U(m,6,!1,m,null,!1,!1)}),["rowSpan","start"].forEach(function(m){z[m]=new U(m,5,!1,m.toLowerCase(),null,!1,!1)});var Y=/[\-:]([a-z])/g;function Q(m){return m[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(m){var _=m.replace(Y,Q);z[_]=new U(_,1,!1,m,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(m){var _=m.replace(Y,Q);z[_]=new U(_,1,!1,m,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(m){var _=m.replace(Y,Q);z[_]=new U(_,1,!1,m,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(m){z[m]=new U(m,1,!1,m.toLowerCase(),null,!1,!1)}),z.xlinkHref=new U("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(m){z[m]=new U(m,1,!1,m.toLowerCase(),null,!0,!0)});function ne(m,_,L,W){var se=z.hasOwnProperty(_)?z[_]:null;(se!==null?se.type!==0:W||!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!==" Line truncated
`+Ue+m}var wt=!1;function mt(m,_){if(!m||wt)return"";wt=!0;var L=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(_)if(_=function(){throw Error()},Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(Cn){var W=Cn}Reflect.construct(m,[],_)}else{try{_.call()}catch(Cn){W=Cn}m.call(_.prototype)}else{try{throw Error()}catch(Cn){W=Cn}m()}}catch(Cn){if(Cn&&W&&typeof Cn.stack=="string"){for(var se=Cn.stack.split(`
*/var l8;function XW(){if(l8)return dh;l8=1;var n=Fa(),e=ZW();function t(m){for(var _="https://reactjs.org/docs/error-decoder.html?invariant="+m,L=1;L<arguments.length;L++)_+="&args[]="+encodeURIComponent(arguments[L]);return"Minified React error #"+m+"; visit "+_+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function s(m,_){a(m,_),a(m+"Capture",_)}function a(m,_){for(i[m]=_,m=0;m<_.length;m++)r.add(_[m])}var o=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,b={},E={};function S(m){return d.call(E,m)?!0:d.call(b,m)?!1:g.test(m)?E[m]=!0:(b[m]=!0,!1)}function O(m,_,L,W){if(L!==null&&L.type===0)return!1;switch(typeof _){case"function":case"symbol":return!0;case"boolean":return W?!1:L!==null?!L.acceptsBooleans:(m=m.toLowerCase().slice(0,5),m!=="data-"&&m!=="aria-");default:return!1}}function k(m,_,L,W){if(_===null||typeof _>"u"||O(m,_,L,W))return!0;if(W)return!1;if(L!==null)switch(L.type){case 3:return!_;case 4:return _===!1;case 5:return isNaN(_);case 6:return isNaN(_)||1>_}return!1}function U(m,_,L,W,ae,ge,Ze){this.acceptsBooleans=_===2||_===3||_===4,this.attributeName=W,this.attributeNamespace=ae,this.mustUseProperty=L,this.propertyName=m,this.type=_,this.sanitizeURL=ge,this.removeEmptyString=Ze}var z={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(m){z[m]=new U(m,0,!1,m,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(m){var _=m[0];z[_]=new U(_,1,!1,m[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(m){z[m]=new U(m,2,!1,m.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(m){z[m]=new U(m,2,!1,m,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(m){z[m]=new U(m,3,!1,m.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(m){z[m]=new U(m,3,!0,m,null,!1,!1)}),["capture","download"].forEach(function(m){z[m]=new U(m,4,!1,m,null,!1,!1)}),["cols","rows","size","span"].forEach(function(m){z[m]=new U(m,6,!1,m,null,!1,!1)}),["rowSpan","start"].forEach(function(m){z[m]=new U(m,5,!1,m.toLowerCase(),null,!1,!1)});var q=/[\-:]([a-z])/g;function Q(m){return m[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(m){var _=m.replace(q,Q);z[_]=new U(_,1,!1,m,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(m){var _=m.replace(q,Q);z[_]=new U(_,1,!1,m,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(m){var _=m.replace(q,Q);z[_]=new U(_,1,!1,m,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(m){z[m]=new U(m,1,!1,m.toLowerCase(),null,!1,!1)}),z.xlinkHref=new U("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(m){z[m]=new U(m,1,!1,m.toLowerCase(),null,!0,!0)});function re(m,_,L,W){var ae=z.hasOwnProperty(_)?z[_]:null;(ae!==null?ae.type!==0:W||!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!==" Line truncated
`+Ne+m}var wt=!1;function Ct(m,_){if(!m||wt)return"";wt=!0;var L=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(_)if(_=function(){throw Error()},Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(Cn){var W=Cn}Reflect.construct(m,[],_)}else{try{_.call()}catch(Cn){W=Cn}m.call(_.prototype)}else{try{throw Error()}catch(Cn){W=Cn}m()}}catch(Cn){if(Cn&&W&&typeof Cn.stack=="string"){for(var ae=Cn.stack.split(`
`),ge=W.stack.split(`
`),Ze=se.length-1,kt=ge.length-1;1<=Ze&&0<=kt&&se[Ze]!==ge[kt];)kt--;for(;1<=Ze&&0<=kt;Ze--,kt--)if(se[Ze]!==ge[kt]){if(Ze!==1||kt!==1)do if(Ze--,kt--,0>kt||se[Ze]!==ge[kt]){var Wt=`
`+se[Ze].replace(" at new "," at ");return m.displayName&&Wt.includes("<anonymous>")&&(Wt=Wt.replace("<anonymous>",m.displayName)),Wt}while(1<=Ze&&0<=kt);break}}}finally{wt=!1,Error.prepareStackTrace=L}return(m=m?m.displayName||m.name:"")?st(m):""}function ft(m){switch(m.tag){case 5:return st(m.type);case 16:return st("Lazy");case 13:return st("Suspense");case 19:return st("SuspenseList");case 0:case 2:case 15:return m=mt(m.type,!1),m;case 11:return m=mt(m.type.render,!1),m;case 1:return m=mt(m.type,!0),m;default:return""}}function Ut(m){if(m==null)return null;if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case N:return"Fragment";case J:return"Portal";case he:return"Profiler";case ie:return"StrictMode";case Ce:return"Suspense";case Pe:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case we:return(m.displayName||"Context")+".Consumer";case ce:return(m._context.displayName||"Context")+".Provider";case pe:var _=m.render;return m=m.displayName,m||(m=_.displayName||_.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case de:return _=m.displayName||null,_!==null?_:Ut(m.type)||"Memo";case rt:_=m._payload,m=m._init;try{return Ut(m(_))}catch{}}return null}function Lt(m){var _=m.type;switch(m.tag){case 24:return"Cache";case 9:return(_.displayName||"Context")+".Consumer";case 10:return(_._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return m=_.render,m=m.displayName||m.name||"",_.displayName||(m!==""?"ForwardRef("+m+")":"ForwardRef");case 7:return"Fragment";case 5:return _;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ut(_);case 8:return _===ie?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _}return null}function De(m){switch(typeof m){case"boolean":case"number":case"string":case"undefined":return m;case"object":return m;default:return""}}function ke(m){var _=m.type;return(m=m.nodeName)&&m.toLowerCase()==="input"&&(_==="checkbox"||_==="radio")}function Oe(m){var _=ke(m)?"checked":"value",L=Object.getOwnPropertyDescriptor(m.constructor.prototype,_),W=""+m[_];if(!m.hasOwnProperty(_)&&typeof L<"u"&&typeof L.get=="function"&&typeof L.set=="function"){var se=L.get,ge=L.set;return Object.defineProperty(m,_,{configurable:!0,get:function(){return se.call(this)},set:function(Ze){W=""+Ze,ge.call(this,Ze)}}),Object.defineProperty(m,_,{enumerable:L.enumerable}),{getValue:function(){return W},setValue:function(Ze){W=""+Ze},stopTracking:function(){m._valueTracker=null,delete m[_]}}}}function Je(m){m._valueTracker||(m._valueTracker=Oe(m))}function Mt(m){if(!m)return!1;var _=m._valueTracker;if(!_)return!0;var L=_.getValue(),W="";return m&&(W=ke(m)?m.checked?"true":"false":m.value),m=W,m!==L?(_.setValue(m),!0):!1}function gt(m){if(m=m||(typeof document<"u"?document:void 0),typeof m>"u")return null;try{return m.activeElement||m.body}catch{return m.body}}function Nt(m,_){var L=_.checked;return Te({},_,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:L??m._wrapperState.initialChecked})}function nn(m,_){var L=_.defaultValue==null?"":_.defaultValue,W=_.checked!=null?_.checked:_.defaultChecked;L=De(_.value!=null?_.value:L),m._wrapperState={initialChecked:W,initialValue:L,controlled:_.type==="checkbox"||_.type==="radio"?_.checked!=null:_.value!=null}}function en(m,_){_=_.checked,_!=null&&ne(m,"checked",_,!1)}function Sn(m,_){en(m,_);var L=De(_.value),W=_.type;if(L!=null)W==="number"?(L===0&&m.value===""||m.value!=L)&&(m.value=""+L):m.value!==""+L&&(m.value=""+L);else if(W==="submit"||W==="reset"){m.removeAttribute("value");return}_.hasOwnProperty("value")?Qr(m,_.type,L):_.hasOwnProperty("defaultValue")&&Qr(m,_.type,De(_.defaultValue)),_.checked==null&&_.defaultChecked!=null&&(m.defaultChecked=!!_.defaultChecked)}function Yn(m,_,L){if(_.hasOwnProperty("value")||_.hasOwnProperty("defaultValue")){var W=_.type;if(!(W!=="submit"&&W!=="reset"||_.value!==void 0&&_.value!==null))return;_=""+m._wrapperState.initialValue,L||_===m.value||(m.value=_),m.defaultValue=_}L=m.name,L!==""&&(m.name=""),m.defaultChecked=!!m._wrapperState.initialChecked,L!==""&&(m.name=L)}function Qr(m,_,L){(_!=="number"||gt(m.ownerDocument)!==m)&&(L==null?m.defaultValue=""+m._wrapperState.initialValue:m.defaultValue!==""+L&&(m.defaultValue=""+L))}var cr=Array.isArray;function fr(m,_,L,W){if(m=m.options,_){_={};for(var se=0;se<L.length;se++)_["$"+L[se]]=!0;for(L=0;L<m.length;L++)se=_.hasOwnProperty("$"+m[L].value),m[L].selected!==se&&(m[L].selected=se),se&&W&&(m[L].defaultSelected=!0)}else{for(L=""+De(L),_=null,se=0;se<m.length;se++){if(m[se].value===L){m[se].selected=!0,W&&(m[se].defaultSelected=!0);return}_!==null||m[se].disabled||(_=m[se])}_!==null&&(_.selected Line truncated
`).replace(Df,"")}function mh(m,_,L){if(_=ph(_),ph(m)!==_&&L)throw Error(t(425))}function Uu(){}var XA=null,Nl=null;function xA(m,_){return m==="textarea"||m==="noscript"||typeof _.children=="string"||typeof _.children=="number"||typeof _.dangerouslySetInnerHTML=="object"&&_.dangerouslySetInnerHTML!==null&&_.dangerouslySetInnerHTML.__html!=null}var hl=typeof setTimeout=="function"?setTimeout:void 0,JA=typeof clearTimeout=="function"?clearTimeout:void 0,zu=typeof Promise=="function"?Promise:void 0,gh=typeof queueMicrotask=="function"?queueMicrotask:typeof zu<"u"?function(m){return zu.resolve(null).then(m).catch(ju)}:hl;function ju(m){setTimeout(function(){throw m})}function ed(m,_){var L=_,W=0;do{var se=L.nextSibling;if(m.removeChild(L),se&&se.nodeType===8)if(L=se.data,L==="/$"){if(W===0){m.removeChild(se),Pi(_);return}W--}else L!=="$"&&L!=="$?"&&L!=="$!"||W++;L=se}while(L);Pi(_)}function ec(m){for(;m!=null;m=m.nextSibling){var _=m.nodeType;if(_===1||_===3)break;if(_===8){if(_=m.data,_==="$"||_==="$!"||_==="$?")break;if(_==="/$")return null}}return m}function Nu(m){m=m.previousSibling;for(var _=0;m;){if(m.nodeType===8){var L=m.data;if(L==="$"||L==="$!"||L==="$?"){if(_===0)return m;_--}else L==="/$"&&_++}m=m.previousSibling}return null}var Gu=Math.random().toString(36).slice(2),wA="__reactFiber$"+Gu,_c="__reactProps$"+Gu,_u="__reactContainer$"+Gu,$c="__reactEvents$"+Gu,et="__reactListeners$"+Gu,Ua="__reactHandles$"+Gu;function Eo(m){var _=m[wA];if(_)return _;for(var L=m.parentNode;L;){if(_=L[_u]||L[wA]){if(L=_.alternate,_.child!==null||L!==null&&L.child!==null)for(m=Nu(m);m!==null;){if(L=m[wA])return L;m=Nu(m)}return _}m=L,L=m.parentNode}return null}function Ri(m){return m=m[wA]||m[_u],!m||m.tag!==5&&m.tag!==6&&m.tag!==13&&m.tag!==3?null:m}function $r(m){if(m.tag===5||m.tag===6)return m.stateNode;throw Error(t(33))}function Ss(m){return m[_c]||null}var yh=[],td=-1;function Ea(m){return{current:m}}function Gs(m){0>td||(m.current=yh[td],yh[td]=null,td--)}function _s(m,_){td++,yh[td]=m.current,m.current=_}var uA={},Es=Ea(uA),dr=Ea(!1),va=uA;function Vc(m,_){var L=m.type.contextTypes;if(!L)return uA;var W=m.stateNode;if(W&&W.__reactInternalMemoizedUnmaskedChildContext===_)return W.__reactInternalMemoizedMaskedChildContext;var se={},ge;for(ge in L)se[ge]=_[ge];return W&&(m=m.stateNode,m.__reactInternalMemoizedUnmaskedChildContext=_,m.__reactInternalMemoizedMaskedChildContext=se),se}function Ba(m){return m=m.childContextTypes,m!=null}function tc(){Gs(dr),Gs(Es)}function vh(m,_,L){if(Es.current!==uA)throw Error(t(168));_s(Es,_),_s(dr,L)}function _h(m,_,L){var W=m.stateNode;if(_=_.childContextTypes,typeof W.getChildContext!="function")return L;W=W.getChildContext();for(var se in W)if(!(se in _))throw Error(t(108,Lt(m)||"Unknown",se));return Te({},L,W)}function Mi(m){return m=(m=m.stateNode)&&m.__reactInternalMemoizedMergedChildContext||uA,va=Es.current,_s(Es,m),_s(dr,dr.current),!0}function Ch(m,_,L){var W=m.stateNode;if(!W)throw Error(t(169));L?(m=_h(m,_,va),W.__reactInternalMemoizedMergedChildContext=m,Gs(dr),Gs(Es),_s(Es,m)):Gs(dr),_s(dr,L)}var Gl=null,bh=!1,xh=!1;function MA(m){Gl===null?Gl=[m]:Gl.push(m)}function nc(m){bh=!0,MA(m)}function AA(){if(!xh&&Gl!==null){xh=!0;var m=0,_=Dr;try{var L=Gl;for(Dr=1;m<L.length;m++){var W=L[m];do W=W(!0);while(W!==null)}Gl=null,bh=!1}catch(se){throw Gl!==null&&(Gl=Gl.slice(m+1)),ul(tu,AA),se}finally{Dr=_,xh=!1}}return null}var Cc=[],Bs=0,bo=null,Cu=0,za=[],Ks=0,Ho=null,ou=1,Wu="";function bc(m,_){Cc[Bs++]=Cu,Cc[Bs++]=bo,bo=m,Cu=_}function nd(m,_,L){za[Ks++]=ou,za[Ks++]=Wu,za[Ks++]=Ho,Ho=m;var W=ou;m=Wu;var se=32-pn(W)-1;W&=~(1<<se),L+=1;var ge=32-pn(_)+se;if(30<ge){var Ze=se-se%5;ge=(W&(1<<Ze)-1).toString(32),W>>=Ze,se-=Ze,ou=1<<32-pn(_)+se|L<<se|W,Wu=ge+m}else ou=1<<ge|L<<se|W,Wu=m}function SA(m){m.return!==null&&(bc(m,1),nd(m,1,0))}function xc(m){for(;m===bo;)bo=Cc[--Bs],Cc[Bs]=null,Cu=Cc[--Bs],Cc[Bs]=null;for(;m===Ho;)Ho=za[--Ks],za[Ks]=null,Wu=za[--Ks],za[Ks]=null,ou=za[--Ks],za[Ks]=null}var gs=null,ha=null,hr=!1,Hr=null;function Qu(m,_){var L=Zu(5,null,null,0);L.elementType="DELETED",L.stateNode=_,L.return=m,_=m.deletions,_===null?(m.deletions=[L],m.flags|=16):_.push(L)}function rc(m,_){switch(m.tag){case 5:var L=m.type;return _=_.nodeType!==1||L.toLowerCase()!==_.nodeName.toLowerCase()?null:_,_!==null?(m.stateNode=_,gs=m,ha=ec(_.firstChild),!0):!1;case 6:return _=m.pendingProps===""||_.nodeType!==3?null:_,_!==null?(m.stateNode=_,gs=m,ha=null,!0):!1;case 13:return _=_.nodeType!==8?null:_,_!==null?(L=Ho!==null?{id:ou,overflow:Wu}:null,m.memoizedState={dehydrated:_,treeContext:L,retryLane:1073741824},L=Zu(18,null,null,0),L.stateNode=_,L.return=m,m.child=L,gs=m,ha=null,!0):!1;default:return!1}}function bu(m){return(m.mode&1)!==0&&(m.flags&128)===0}function Cs(m){if(hr){var _=ha;if(_){var L=_;if(!rc(m,_)){if(bu(m))throw Error(t(418));_=ec(L.nextSibling);var W=gs;_&&rc(m,_)?Qu(W,L):(m.flags=m.flags&-4097|2,hr=!1,gs=m)}}else{if(bu(m))throw Error(t(418));m.flags=m.flags&-4097| Line truncated
`),Ze=ae.length-1,It=ge.length-1;1<=Ze&&0<=It&&ae[Ze]!==ge[It];)It--;for(;1<=Ze&&0<=It;Ze--,It--)if(ae[Ze]!==ge[It]){if(Ze!==1||It!==1)do if(Ze--,It--,0>It||ae[Ze]!==ge[It]){var Gt=`
`+ae[Ze].replace(" at new "," at ");return m.displayName&&Gt.includes("<anonymous>")&&(Gt=Gt.replace("<anonymous>",m.displayName)),Gt}while(1<=Ze&&0<=It);break}}}finally{wt=!1,Error.prepareStackTrace=L}return(m=m?m.displayName||m.name:"")?at(m):""}function ft(m){switch(m.tag){case 5:return at(m.type);case 16:return at("Lazy");case 13:return at("Suspense");case 19:return at("SuspenseList");case 0:case 2:case 15:return m=Ct(m.type,!1),m;case 11:return m=Ct(m.type.render,!1),m;case 1:return m=Ct(m.type,!0),m;default:return""}}function Lt(m){if(m==null)return null;if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case N:return"Fragment";case J:return"Portal";case he:return"Profiler";case ie:return"StrictMode";case be:return"Suspense";case Pe:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case we:return(m.displayName||"Context")+".Consumer";case de:return(m._context.displayName||"Context")+".Provider";case fe:var _=m.render;return m=m.displayName,m||(m=_.displayName||_.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case pe:return _=m.displayName||null,_!==null?_:Lt(m.type)||"Memo";case it:_=m._payload,m=m._init;try{return Lt(m(_))}catch{}}return null}function Kt(m){var _=m.type;switch(m.tag){case 24:return"Cache";case 9:return(_.displayName||"Context")+".Consumer";case 10:return(_._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return m=_.render,m=m.displayName||m.name||"",_.displayName||(m!==""?"ForwardRef("+m+")":"ForwardRef");case 7:return"Fragment";case 5:return _;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Lt(_);case 8:return _===ie?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _}return null}function Fe(m){switch(typeof m){case"boolean":case"number":case"string":case"undefined":return m;case"object":return m;default:return""}}function Te(m){var _=m.type;return(m=m.nodeName)&&m.toLowerCase()==="input"&&(_==="checkbox"||_==="radio")}function Se(m){var _=Te(m)?"checked":"value",L=Object.getOwnPropertyDescriptor(m.constructor.prototype,_),W=""+m[_];if(!m.hasOwnProperty(_)&&typeof L<"u"&&typeof L.get=="function"&&typeof L.set=="function"){var ae=L.get,ge=L.set;return Object.defineProperty(m,_,{configurable:!0,get:function(){return ae.call(this)},set:function(Ze){W=""+Ze,ge.call(this,Ze)}}),Object.defineProperty(m,_,{enumerable:L.enumerable}),{getValue:function(){return W},setValue:function(Ze){W=""+Ze},stopTracking:function(){m._valueTracker=null,delete m[_]}}}}function Je(m){m._valueTracker||(m._valueTracker=Se(m))}function yt(m){if(!m)return!1;var _=m._valueTracker;if(!_)return!0;var L=_.getValue(),W="";return m&&(W=Te(m)?m.checked?"true":"false":m.value),m=W,m!==L?(_.setValue(m),!0):!1}function dt(m){if(m=m||(typeof document<"u"?document:void 0),typeof m>"u")return null;try{return m.activeElement||m.body}catch{return m.body}}function Ut(m,_){var L=_.checked;return De({},_,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:L??m._wrapperState.initialChecked})}function en(m,_){var L=_.defaultValue==null?"":_.defaultValue,W=_.checked!=null?_.checked:_.defaultChecked;L=Fe(_.value!=null?_.value:L),m._wrapperState={initialChecked:W,initialValue:L,controlled:_.type==="checkbox"||_.type==="radio"?_.checked!=null:_.value!=null}}function Nt(m,_){_=_.checked,_!=null&&re(m,"checked",_,!1)}function yn(m,_){Nt(m,_);var L=Fe(_.value),W=_.type;if(L!=null)W==="number"?(L===0&&m.value===""||m.value!=L)&&(m.value=""+L):m.value!==""+L&&(m.value=""+L);else if(W==="submit"||W==="reset"){m.removeAttribute("value");return}_.hasOwnProperty("value")?Rr(m,_.type,L):_.hasOwnProperty("defaultValue")&&Rr(m,_.type,Fe(_.defaultValue)),_.checked==null&&_.defaultChecked!=null&&(m.defaultChecked=!!_.defaultChecked)}function jn(m,_,L){if(_.hasOwnProperty("value")||_.hasOwnProperty("defaultValue")){var W=_.type;if(!(W!=="submit"&&W!=="reset"||_.value!==void 0&&_.value!==null))return;_=""+m._wrapperState.initialValue,L||_===m.value||(m.value=_),m.defaultValue=_}L=m.name,L!==""&&(m.name=""),m.defaultChecked=!!m._wrapperState.initialChecked,L!==""&&(m.name=L)}function Rr(m,_,L){(_!=="number"||dt(m.ownerDocument)!==m)&&(L==null?m.defaultValue=""+m._wrapperState.initialValue:m.defaultValue!==""+L&&(m.defaultValue=""+L))}var sr=Array.isArray;function Jn(m,_,L,W){if(m=m.options,_){_={};for(var ae=0;ae<L.length;ae++)_["$"+L[ae]]=!0;for(L=0;L<m.length;L++)ae=_.hasOwnProperty("$"+m[L].value),m[L].selected!==ae&&(m[L].selected=ae),ae&&W&&(m[L].defaultSelected=!0)}else{for(L=""+Fe(L),_=null,ae=0;ae<m.length;ae++){if(m[ae].value===L){m[ae].selected=!0,W&&(m[ae].defaultSelected=!0);return}_!==null||m[ae].disabled||(_=m[ae])}_!==null&&(_.selected Line truncated
`).replace(Df,"")}function md(m,_,L){if(_=pd(_),pd(m)!==_&&L)throw Error(t(425))}function Uu(){}var XA=null,Nl=null;function xA(m,_){return m==="textarea"||m==="noscript"||typeof _.children=="string"||typeof _.children=="number"||typeof _.dangerouslySetInnerHTML=="object"&&_.dangerouslySetInnerHTML!==null&&_.dangerouslySetInnerHTML.__html!=null}var dl=typeof setTimeout=="function"?setTimeout:void 0,JA=typeof clearTimeout=="function"?clearTimeout:void 0,zu=typeof Promise=="function"?Promise:void 0,gd=typeof queueMicrotask=="function"?queueMicrotask:typeof zu<"u"?function(m){return zu.resolve(null).then(m).catch(ju)}:dl;function ju(m){setTimeout(function(){throw m})}function eh(m,_){var L=_,W=0;do{var ae=L.nextSibling;if(m.removeChild(L),ae&&ae.nodeType===8)if(L=ae.data,L==="/$"){if(W===0){m.removeChild(ae),Ri(_);return}W--}else L!=="$"&&L!=="$?"&&L!=="$!"||W++;L=ae}while(L);Ri(_)}function ec(m){for(;m!=null;m=m.nextSibling){var _=m.nodeType;if(_===1||_===3)break;if(_===8){if(_=m.data,_==="$"||_==="$!"||_==="$?")break;if(_==="/$")return null}}return m}function Nu(m){m=m.previousSibling;for(var _=0;m;){if(m.nodeType===8){var L=m.data;if(L==="$"||L==="$!"||L==="$?"){if(_===0)return m;_--}else L==="/$"&&_++}m=m.previousSibling}return null}var Gu=Math.random().toString(36).slice(2),wA="__reactFiber$"+Gu,_c="__reactProps$"+Gu,_u="__reactContainer$"+Gu,$c="__reactEvents$"+Gu,et="__reactListeners$"+Gu,Na="__reactHandles$"+Gu;function Bo(m){var _=m[wA];if(_)return _;for(var L=m.parentNode;L;){if(_=L[_u]||L[wA]){if(L=_.alternate,_.child!==null||L!==null&&L.child!==null)for(m=Nu(m);m!==null;){if(L=m[wA])return L;m=Nu(m)}return _}m=L,L=m.parentNode}return null}function Ki(m){return m=m[wA]||m[_u],!m||m.tag!==5&&m.tag!==6&&m.tag!==13&&m.tag!==3?null:m}function $r(m){if(m.tag===5||m.tag===6)return m.stateNode;throw Error(t(33))}function Ss(m){return m[_c]||null}var yd=[],th=-1;function Oa(m){return{current:m}}function Gs(m){0>th||(m.current=yd[th],yd[th]=null,th--)}function _s(m,_){th++,yd[th]=m.current,m.current=_}var uA={},Es=Oa(uA),fr=Oa(!1),va=uA;function Vc(m,_){var L=m.type.contextTypes;if(!L)return uA;var W=m.stateNode;if(W&&W.__reactInternalMemoizedUnmaskedChildContext===_)return W.__reactInternalMemoizedMaskedChildContext;var ae={},ge;for(ge in L)ae[ge]=_[ge];return W&&(m=m.stateNode,m.__reactInternalMemoizedUnmaskedChildContext=_,m.__reactInternalMemoizedMaskedChildContext=ae),ae}function Ia(m){return m=m.childContextTypes,m!=null}function tc(){Gs(fr),Gs(Es)}function vd(m,_,L){if(Es.current!==uA)throw Error(t(168));_s(Es,_),_s(fr,L)}function _d(m,_,L){var W=m.stateNode;if(_=_.childContextTypes,typeof W.getChildContext!="function")return L;W=W.getChildContext();for(var ae in W)if(!(ae in _))throw Error(t(108,Kt(m)||"Unknown",ae));return De({},L,W)}function Mi(m){return m=(m=m.stateNode)&&m.__reactInternalMemoizedMergedChildContext||uA,va=Es.current,_s(Es,m),_s(fr,fr.current),!0}function Cd(m,_,L){var W=m.stateNode;if(!W)throw Error(t(169));L?(m=_d(m,_,va),W.__reactInternalMemoizedMergedChildContext=m,Gs(fr),Gs(Es),_s(Es,m)):Gs(fr),_s(fr,L)}var Gl=null,bd=!1,xd=!1;function MA(m){Gl===null?Gl=[m]:Gl.push(m)}function nc(m){bd=!0,MA(m)}function AA(){if(!xd&&Gl!==null){xd=!0;var m=0,_=Lr;try{var L=Gl;for(Lr=1;m<L.length;m++){var W=L[m];do W=W(!0);while(W!==null)}Gl=null,bd=!1}catch(ae){throw Gl!==null&&(Gl=Gl.slice(m+1)),Ea(tu,AA),ae}finally{Lr=_,xd=!1}}return null}var Cc=[],Bs=0,bo=null,Cu=0,Ga=[],Ks=0,Zo=null,ou=1,Wu="";function bc(m,_){Cc[Bs++]=Cu,Cc[Bs++]=bo,bo=m,Cu=_}function nh(m,_,L){Ga[Ks++]=ou,Ga[Ks++]=Wu,Ga[Ks++]=Zo,Zo=m;var W=ou;m=Wu;var ae=32-fn(W)-1;W&=~(1<<ae),L+=1;var ge=32-fn(_)+ae;if(30<ge){var Ze=ae-ae%5;ge=(W&(1<<Ze)-1).toString(32),W>>=Ze,ae-=Ze,ou=1<<32-fn(_)+ae|L<<ae|W,Wu=ge+m}else ou=1<<ge|L<<ae|W,Wu=m}function SA(m){m.return!==null&&(bc(m,1),nh(m,1,0))}function xc(m){for(;m===bo;)bo=Cc[--Bs],Cc[Bs]=null,Cu=Cc[--Bs],Cc[Bs]=null;for(;m===Zo;)Zo=Ga[--Ks],Ga[Ks]=null,Wu=Ga[--Ks],Ga[Ks]=null,ou=Ga[--Ks],Ga[Ks]=null}var gs=null,da=null,hr=!1,Hr=null;function Qu(m,_){var L=Zu(5,null,null,0);L.elementType="DELETED",L.stateNode=_,L.return=m,_=m.deletions,_===null?(m.deletions=[L],m.flags|=16):_.push(L)}function rc(m,_){switch(m.tag){case 5:var L=m.type;return _=_.nodeType!==1||L.toLowerCase()!==_.nodeName.toLowerCase()?null:_,_!==null?(m.stateNode=_,gs=m,da=ec(_.firstChild),!0):!1;case 6:return _=m.pendingProps===""||_.nodeType!==3?null:_,_!==null?(m.stateNode=_,gs=m,da=null,!0):!1;case 13:return _=_.nodeType!==8?null:_,_!==null?(L=Zo!==null?{id:ou,overflow:Wu}:null,m.memoizedState={dehydrated:_,treeContext:L,retryLane:1073741824},L=Zu(18,null,null,0),L.stateNode=_,L.return=m,m.child=L,gs=m,da=null,!0):!1;default:return!1}}function bu(m){return(m.mode&1)!==0&&(m.flags&128)===0}function Cs(m){if(hr){var _=da;if(_){var L=_;if(!rc(m,_)){if(bu(m))throw Error(t(418));_=ec(L.nextSibling);var W=gs;_&&rc(m,_)?Qu(W,L):(m.flags=m.flags&-4097|2,hr=!1,gs=m)}}else{if(bu(m))throw Error(t(418));m.flags=m.flags&-4097| Line truncated
Error generating stack: `+ge.message+`
`+ge.stack}return{value:m,source:_,stack:se,digest:null}}function Td(m,_,L){return{value:m,source:null,stack:L??null,digest:_??null}}function Bh(m,_){try{console.error(_.value)}catch(L){setTimeout(function(){throw L})}}var xp=typeof WeakMap=="function"?WeakMap:Map;function sd(m,_,L){L=l(-1,L),L.tag=3,L.payload={element:null};var W=_.value;return L.callback=function(){df||(df=!0,$m=W),Bh(m,_)},L}function Uf(m,_,L){L=l(-1,L),L.tag=3;var W=m.type.getDerivedStateFromError;if(typeof W=="function"){var se=_.value;L.payload=function(){return W(se)},L.callback=function(){Bh(m,_)}}var ge=m.stateNode;return ge!==null&&typeof ge.componentDidCatch=="function"&&(L.callback=function(){Bh(m,_),typeof W!="function"&&(ff===null?ff=new Set([this]):ff.add(this));var Ze=_.stack;this.componentDidCatch(_.value,{componentStack:Ze!==null?Ze:""})}),L}function zf(m,_,L){var W=m.pingCache;if(W===null){W=m.pingCache=new xp;var se=new Set;W.set(_,se)}else se=W.get(_),se===void 0&&(se=new Set,W.set(_,se));se.has(L)||(se.add(L),m=Qg.bind(null,m,_,L),_.then(m,m))}function wp(m){do{var _;if((_=m.tag===13)&&(_=m.memoizedState,_=_!==null?_.dehydrated!==null:!0),_)return m;m=m.return}while(m!==null);return null}function Oh(m,_,L,W,se){return m.mode&1?(m.flags|=65536,m.lanes=se,m):(m===_?m.flags|=65536:(m.flags|=128,L.flags|=131072,L.flags&=-52805,L.tag===1&&(L.alternate===null?L.tag=17:(_=l(-1,1),_.tag=2,c(L,_,1))),L.lanes|=1),m)}var af=X.ReactCurrentOwner,ql=!1;function Rl(m,_,L,W){_.child=m===null?wc(_,null,L,W):Ws(_,m.child,L,W)}function Am(m,_,L,W,se){L=L.render;var ge=_.ref;return au(_,se),W=kr(m,_,L,W,ge,se),L=Bi(),m!==null&&!ql?(_.updateQueue=m.updateQueue,_.flags&=-2053,m.lanes&=~se,Su(m,_,se)):(hr&&L&&SA(_),_.flags|=1,Rl(m,_,W,se),_.child)}function jf(m,_,L,W,se){if(m===null){var ge=L.type;return typeof ge=="function"&&!qf(ge)&&ge.defaultProps===void 0&&L.compare===null&&L.defaultProps===void 0?(_.tag=15,_.type=ge,Oo(m,_,ge,W,se)):(m=r0(L.type,null,W,_,_.mode,se),m.ref=_.ref,m.return=_,_.child=m)}if(ge=m.child,!(m.lanes&se)){var Ze=ge.memoizedProps;if(L=L.compare,L=L!==null?L:Fr,L(Ze,W)&&m.ref===_.ref)return Su(m,_,se)}return _.flags|=1,m=Kh(ge,W),m.ref=_.ref,m.return=_,_.child=m}function Oo(m,_,L,W,se){if(m!==null){var ge=m.memoizedProps;if(Fr(ge,W)&&m.ref===_.ref)if(ql=!1,_.pendingProps=W=ge,(m.lanes&se)!==0)m.flags&131072&&(ql=!0);else return _.lanes=m.lanes,Su(m,_,se)}return Ih(m,_,L,W,se)}function Hu(m,_,L){var W=_.pendingProps,se=W.children,ge=m!==null?m.memoizedState:null;if(W.mode==="hidden")if(!(_.mode&1))_.memoizedState={baseLanes:0,cachePool:null,transitions:null},_s(Kl,Is),Is|=L;else{if(!(L&1073741824))return m=ge!==null?ge.baseLanes|L:L,_.lanes=_.childLanes=1073741824,_.memoizedState={baseLanes:m,cachePool:null,transitions:null},_.updateQueue=null,_s(Kl,Is),Is|=m,null;_.memoizedState={baseLanes:0,cachePool:null,transitions:null},W=ge!==null?ge.baseLanes:L,_s(Kl,Is),Is|=W}else ge!==null?(W=ge.baseLanes|L,_.memoizedState=null):W=L,_s(Kl,Is),Is|=W;return Rl(m,_,se,L),_.child}function lf(m,_){var L=_.ref;(m===null&&L!==null||m!==null&&m.ref!==L)&&(_.flags|=512,_.flags|=2097152)}function Ih(m,_,L,W,se){var ge=Ba(L)?va:Es.current;return ge=Vc(_,ge),au(_,se),L=kr(m,_,L,W,ge,se),W=Bi(),m!==null&&!ql?(_.updateQueue=m.updateQueue,_.flags&=-2053,m.lanes&=~se,Su(m,_,se)):(hr&&W&&SA(_),_.flags|=1,Rl(m,_,L,se),_.child)}function TA(m,_,L,W,se){if(Ba(L)){var ge=!0;Mi(_)}else ge=!1;if(au(_,se),_.stateNode===null)Sp(m,_),od(_,L,W),um(_,L,W,se),W=!0;else if(m===null){var Ze=_.stateNode,kt=_.memoizedProps;Ze.props=kt;var Wt=Ze.context,Cn=L.contextType;typeof Cn=="object"&&Cn!==null?Cn=lu(Cn):(Cn=Ba(L)?va:Es.current,Cn=Vc(_,Cn));var or=L.getDerivedStateFromProps,Ar=typeof or=="function"||typeof Ze.getSnapshotBeforeUpdate=="function";Ar||typeof Ze.UNSAFE_componentWillReceiveProps!="function"&&typeof Ze.componentWillReceiveProps!="function"||(kt!==W||Wt!==Cn)&&Bc(_,Ze,W,Cn),Ql=!1;var Vn=_.memoizedState;Ze.state=Vn,R(_,W,Ze,se),Wt=_.memoizedState,kt!==W||Vn!==Wt||dr.current||Ql?(typeof or=="function"&&(Cp(_,L,or,W),Wt=_.memoizedState),(kt=Ql||bp(_,L,kt,W,Vn,Wt,Cn))?(Ar||typeof Ze.UNSAFE_componentWillMount!="function"&&typeof Ze.componentWillMount!="function"||(typeof Ze.componentWillMount=="function"&&Ze.componentWillMount(),typeof Ze.UNSAFE_componentWillMount=="function"&&Ze.UNSAFE_componentWillMount()),typeof Ze.componentDidMount=="function"&&(_.flags|=4194308)):(typeof Ze.componentDidMount=="function"&&(_.flags|=4194308),_.memoizedProps=W,_.memoizedState=Wt),Ze.props=W,Ze.state=Wt,Ze.context=Cn,W=kt):(typeof Ze.componentDidMount=="function"&&(_.flags|=4194308),W=!1)}else{Ze=_.stateNode,T(m,_),kt=_.memoizedProps,Cn=_.type===_.elementType?kt:Na(_.type,kt),Ze.props=Cn,Ar=_.pendingProps,Vn=Ze.context,Wt=L.contextType,typeof Wt=="object"&&Wt!==null?Wt=lu(Wt):(Wt=Ba(L)?va:Es.current,Wt=Vc(_,Wt));var Ur=L.getDerivedStateFromProps;(or=typeof Ur=="function"||typeof Ze.getSnapshotBeforeUpdate=="function")||typeof Ze.UNSAFE_componentWillReceiveProps!= Line truncated
`+ge.stack}return{value:m,source:_,stack:ae,digest:null}}function Th(m,_,L){return{value:m,source:null,stack:L??null,digest:_??null}}function Bd(m,_){try{console.error(_.value)}catch(L){setTimeout(function(){throw L})}}var xp=typeof WeakMap=="function"?WeakMap:Map;function sh(m,_,L){L=l(-1,L),L.tag=3,L.payload={element:null};var W=_.value;return L.callback=function(){hf||(hf=!0,$m=W),Bd(m,_)},L}function Uf(m,_,L){L=l(-1,L),L.tag=3;var W=m.type.getDerivedStateFromError;if(typeof W=="function"){var ae=_.value;L.payload=function(){return W(ae)},L.callback=function(){Bd(m,_)}}var ge=m.stateNode;return ge!==null&&typeof ge.componentDidCatch=="function"&&(L.callback=function(){Bd(m,_),typeof W!="function"&&(ff===null?ff=new Set([this]):ff.add(this));var Ze=_.stack;this.componentDidCatch(_.value,{componentStack:Ze!==null?Ze:""})}),L}function zf(m,_,L){var W=m.pingCache;if(W===null){W=m.pingCache=new xp;var ae=new Set;W.set(_,ae)}else ae=W.get(_),ae===void 0&&(ae=new Set,W.set(_,ae));ae.has(L)||(ae.add(L),m=qg.bind(null,m,_,L),_.then(m,m))}function wp(m){do{var _;if((_=m.tag===13)&&(_=m.memoizedState,_=_!==null?_.dehydrated!==null:!0),_)return m;m=m.return}while(m!==null);return null}function Od(m,_,L,W,ae){return m.mode&1?(m.flags|=65536,m.lanes=ae,m):(m===_?m.flags|=65536:(m.flags|=128,L.flags|=131072,L.flags&=-52805,L.tag===1&&(L.alternate===null?L.tag=17:(_=l(-1,1),_.tag=2,c(L,_,1))),L.lanes|=1),m)}var af=X.ReactCurrentOwner,ql=!1;function Rl(m,_,L,W){_.child=m===null?wc(_,null,L,W):Ws(_,m.child,L,W)}function Am(m,_,L,W,ae){L=L.render;var ge=_.ref;return au(_,ae),W=kr(m,_,L,W,ge,ae),L=Bi(),m!==null&&!ql?(_.updateQueue=m.updateQueue,_.flags&=-2053,m.lanes&=~ae,Su(m,_,ae)):(hr&&L&&SA(_),_.flags|=1,Rl(m,_,W,ae),_.child)}function jf(m,_,L,W,ae){if(m===null){var ge=L.type;return typeof ge=="function"&&!qf(ge)&&ge.defaultProps===void 0&&L.compare===null&&L.defaultProps===void 0?(_.tag=15,_.type=ge,Io(m,_,ge,W,ae)):(m=r0(L.type,null,W,_,_.mode,ae),m.ref=_.ref,m.return=_,_.child=m)}if(ge=m.child,!(m.lanes&ae)){var Ze=ge.memoizedProps;if(L=L.compare,L=L!==null?L:Ur,L(Ze,W)&&m.ref===_.ref)return Su(m,_,ae)}return _.flags|=1,m=Kd(ge,W),m.ref=_.ref,m.return=_,_.child=m}function Io(m,_,L,W,ae){if(m!==null){var ge=m.memoizedProps;if(Ur(ge,W)&&m.ref===_.ref)if(ql=!1,_.pendingProps=W=ge,(m.lanes&ae)!==0)m.flags&131072&&(ql=!0);else return _.lanes=m.lanes,Su(m,_,ae)}return Id(m,_,L,W,ae)}function Hu(m,_,L){var W=_.pendingProps,ae=W.children,ge=m!==null?m.memoizedState:null;if(W.mode==="hidden")if(!(_.mode&1))_.memoizedState={baseLanes:0,cachePool:null,transitions:null},_s(Kl,Is),Is|=L;else{if(!(L&1073741824))return m=ge!==null?ge.baseLanes|L:L,_.lanes=_.childLanes=1073741824,_.memoizedState={baseLanes:m,cachePool:null,transitions:null},_.updateQueue=null,_s(Kl,Is),Is|=m,null;_.memoizedState={baseLanes:0,cachePool:null,transitions:null},W=ge!==null?ge.baseLanes:L,_s(Kl,Is),Is|=W}else ge!==null?(W=ge.baseLanes|L,_.memoizedState=null):W=L,_s(Kl,Is),Is|=W;return Rl(m,_,ae,L),_.child}function lf(m,_){var L=_.ref;(m===null&&L!==null||m!==null&&m.ref!==L)&&(_.flags|=512,_.flags|=2097152)}function Id(m,_,L,W,ae){var ge=Ia(L)?va:Es.current;return ge=Vc(_,ge),au(_,ae),L=kr(m,_,L,W,ge,ae),W=Bi(),m!==null&&!ql?(_.updateQueue=m.updateQueue,_.flags&=-2053,m.lanes&=~ae,Su(m,_,ae)):(hr&&W&&SA(_),_.flags|=1,Rl(m,_,L,ae),_.child)}function TA(m,_,L,W,ae){if(Ia(L)){var ge=!0;Mi(_)}else ge=!1;if(au(_,ae),_.stateNode===null)Sp(m,_),oh(_,L,W),um(_,L,W,ae),W=!0;else if(m===null){var Ze=_.stateNode,It=_.memoizedProps;Ze.props=It;var Gt=Ze.context,Cn=L.contextType;typeof Cn=="object"&&Cn!==null?Cn=lu(Cn):(Cn=Ia(L)?va:Es.current,Cn=Vc(_,Cn));var ar=L.getDerivedStateFromProps,dr=typeof ar=="function"||typeof Ze.getSnapshotBeforeUpdate=="function";dr||typeof Ze.UNSAFE_componentWillReceiveProps!="function"&&typeof Ze.componentWillReceiveProps!="function"||(It!==W||Gt!==Cn)&&Bc(_,Ze,W,Cn),Ql=!1;var $n=_.memoizedState;Ze.state=$n,R(_,W,Ze,ae),Gt=_.memoizedState,It!==W||$n!==Gt||fr.current||Ql?(typeof ar=="function"&&(Cp(_,L,ar,W),Gt=_.memoizedState),(It=Ql||bp(_,L,It,W,$n,Gt,Cn))?(dr||typeof Ze.UNSAFE_componentWillMount!="function"&&typeof Ze.componentWillMount!="function"||(typeof Ze.componentWillMount=="function"&&Ze.componentWillMount(),typeof Ze.UNSAFE_componentWillMount=="function"&&Ze.UNSAFE_componentWillMount()),typeof Ze.componentDidMount=="function"&&(_.flags|=4194308)):(typeof Ze.componentDidMount=="function"&&(_.flags|=4194308),_.memoizedProps=W,_.memoizedState=Gt),Ze.props=W,Ze.state=Gt,Ze.context=Cn,W=It):(typeof Ze.componentDidMount=="function"&&(_.flags|=4194308),W=!1)}else{Ze=_.stateNode,T(m,_),It=_.memoizedProps,Cn=_.type===_.elementType?It:Qa(_.type,It),Ze.props=Cn,dr=_.pendingProps,$n=Ze.context,Gt=L.contextType,typeof Gt=="object"&&Gt!==null?Gt=lu(Gt):(Gt=Ia(L)?va:Es.current,Gt=Vc(_,Gt));var zr=L.getDerivedStateFromProps;(ar=typeof zr=="function"||typeof Ze.getSnapshotBeforeUpdate=="function")||typeof Ze.UNSAFE_componentWillReceiveProps!= Line truncated
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var b8;function OQ(){return b8||(b8=1,function(n){const e=EQ(),t=BQ(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=s,n.SlowBuffer=Q,n.INSPECT_MAX_BYTES=50;const i=2147483647;n.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=o(),!s.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 Ge=new Uint8Array(1),ue={foo:function(){return 42}};return Object.setPrototypeOf(ue,Uint8Array.prototype),Object.setPrototypeOf(Ge,ue),Ge.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(Ge){if(Ge>i)throw new RangeError('The value "'+Ge+'" is invalid for option "size"');const ue=new Uint8Array(Ge);return Object.setPrototypeOf(ue,s.prototype),ue}function s(Ge,ue,me){if(typeof Ge=="number"){if(typeof ue=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(Ge)}return h(Ge,ue,me)}s.poolSize=8192;function h(Ge,ue,me){if(typeof Ge=="string")return S(Ge,ue);if(ArrayBuffer.isView(Ge))return k(Ge);if(Ge==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ge);if(br(Ge,ArrayBuffer)||Ge&&br(Ge.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(br(Ge,SharedArrayBuffer)||Ge&&br(Ge.buffer,SharedArrayBuffer)))return U(Ge,ue,me);if(typeof Ge=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Xe=Ge.valueOf&&Ge.valueOf();if(Xe!=null&&Xe!==Ge)return s.from(Xe,ue,me);const Bt=z(Ge);if(Bt)return Bt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Ge[Symbol.toPrimitive]=="function")return s.from(Ge[Symbol.toPrimitive]("string"),ue,me);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ge)}s.from=function(Ge,ue,me){return h(Ge,ue,me)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function g(Ge){if(typeof Ge!="number")throw new TypeError('"size" argument must be of type number');if(Ge<0)throw new RangeError('The value "'+Ge+'" is invalid for option "size"')}function b(Ge,ue,me){return g(Ge),Ge<=0?a(Ge):ue!==void 0?typeof me=="string"?a(Ge).fill(ue,me):a(Ge).fill(ue):a(Ge)}s.alloc=function(Ge,ue,me){return b(Ge,ue,me)};function B(Ge){return g(Ge),a(Ge<0?0:Y(Ge)|0)}s.allocUnsafe=function(Ge){return B(Ge)},s.allocUnsafeSlow=function(Ge){return B(Ge)};function S(Ge,ue){if((typeof ue!="string"||ue==="")&&(ue="utf8"),!s.isEncoding(ue))throw new TypeError("Unknown encoding: "+ue);const me=ne(Ge,ue)|0;let Xe=a(me);const Bt=Xe.write(Ge,ue);return Bt!==me&&(Xe=Xe.slice(0,Bt)),Xe}function I(Ge){const ue=Ge.length<0?0:Y(Ge.length)|0,me=a(ue);for(let Xe=0;Xe<ue;Xe+=1)me[Xe]=Ge[Xe]&255;return me}function k(Ge){if(br(Ge,Uint8Array)){const ue=new Uint8Array(Ge);return U(ue.buffer,ue.byteOffset,ue.byteLength)}return I(Ge)}function U(Ge,ue,me){if(ue<0||Ge.byteLength<ue)throw new RangeError('"offset" is outside of buffer bounds');if(Ge.byteLength<ue+(me||0))throw new RangeError('"length" is outside of buffer bounds');let Xe;return ue===void 0&&me===void 0?Xe=new Uint8Array(Ge):me===void 0?Xe=new Uint8Array(Ge,ue):Xe=new Uint8Array(Ge,ue,me),Object.setPrototypeOf(Xe,s.prototype),Xe}function z(Ge){if(s.isBuffer(Ge)){const ue=Y(Ge.length)|0,me=a(ue);return me.length===0||Ge.copy(me,0,0,ue),me}if(Ge.length!==void 0)return typeof Ge.length!="number"||Cr(Ge.length)?a(0):I(Ge);if(Ge.type==="Buffer"&&Array.isArray(Ge.data))return I(Ge.data)}function Y(Ge){if(Ge>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return Ge|0}function Q(Ge){return+Ge!=Ge&&(Ge=0),s.alloc(+Ge)}s.isBuffer=function(ue){return ue!=null&&ue._isBuffer===!0&&ue!==s.prototype},s.compare=function(ue,me){if(br(ue,Uint8Array)&&(ue=s.from(ue,ue.offset,ue.byteLength)),br(me,Uint8Array)&&(me=s.from(me,me.offset,me.byteLength)),!s.isBuffer(ue)||!s.isBuffer(me))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ue===me)return 0;let Xe=ue.length,Bt=me.length;for(let Yt=0,it=Math.min(Xe,Bt);Yt<it;++Yt)if(ue[Yt]!==me[Yt]){Xe=ue[Yt],Bt=me[Yt];break}return Xe<Bt?-1:Bt<Xe?1:0},s.isEncoding=function(ue){switch(String(ue).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}},s.concat=function(ue,me){if(!Array.isArray(ue))throw new TypeError('"list" argument must be an Array of BuLine truncated
*/var z8;function _q(){return z8||(z8=1,function(n){const e=yq(),t=vq(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=o,n.SlowBuffer=Q,n.INSPECT_MAX_BYTES=50;const i=2147483647;n.kMaxLength=i,o.TYPED_ARRAY_SUPPORT=s(),!o.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 s(){try{const Ge=new Uint8Array(1),Ae={foo:function(){return 42}};return Object.setPrototypeOf(Ae,Uint8Array.prototype),Object.setPrototypeOf(Ge,Ae),Ge.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(Ge){if(Ge>i)throw new RangeError('The value "'+Ge+'" is invalid for option "size"');const Ae=new Uint8Array(Ge);return Object.setPrototypeOf(Ae,o.prototype),Ae}function o(Ge,Ae,me){if(typeof Ge=="number"){if(typeof Ae=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return E(Ge)}return d(Ge,Ae,me)}o.poolSize=8192;function d(Ge,Ae,me){if(typeof Ge=="string")return S(Ge,Ae);if(ArrayBuffer.isView(Ge))return k(Ge);if(Ge==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ge);if(mr(Ge,ArrayBuffer)||Ge&&mr(Ge.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(mr(Ge,SharedArrayBuffer)||Ge&&mr(Ge.buffer,SharedArrayBuffer)))return U(Ge,Ae,me);if(typeof Ge=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Xe=Ge.valueOf&&Ge.valueOf();if(Xe!=null&&Xe!==Ge)return o.from(Xe,Ae,me);const Et=z(Ge);if(Et)return Et;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Ge[Symbol.toPrimitive]=="function")return o.from(Ge[Symbol.toPrimitive]("string"),Ae,me);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ge)}o.from=function(Ge,Ae,me){return d(Ge,Ae,me)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function g(Ge){if(typeof Ge!="number")throw new TypeError('"size" argument must be of type number');if(Ge<0)throw new RangeError('The value "'+Ge+'" is invalid for option "size"')}function b(Ge,Ae,me){return g(Ge),Ge<=0?a(Ge):Ae!==void 0?typeof me=="string"?a(Ge).fill(Ae,me):a(Ge).fill(Ae):a(Ge)}o.alloc=function(Ge,Ae,me){return b(Ge,Ae,me)};function E(Ge){return g(Ge),a(Ge<0?0:q(Ge)|0)}o.allocUnsafe=function(Ge){return E(Ge)},o.allocUnsafeSlow=function(Ge){return E(Ge)};function S(Ge,Ae){if((typeof Ae!="string"||Ae==="")&&(Ae="utf8"),!o.isEncoding(Ae))throw new TypeError("Unknown encoding: "+Ae);const me=re(Ge,Ae)|0;let Xe=a(me);const Et=Xe.write(Ge,Ae);return Et!==me&&(Xe=Xe.slice(0,Et)),Xe}function O(Ge){const Ae=Ge.length<0?0:q(Ge.length)|0,me=a(Ae);for(let Xe=0;Xe<Ae;Xe+=1)me[Xe]=Ge[Xe]&255;return me}function k(Ge){if(mr(Ge,Uint8Array)){const Ae=new Uint8Array(Ge);return U(Ae.buffer,Ae.byteOffset,Ae.byteLength)}return O(Ge)}function U(Ge,Ae,me){if(Ae<0||Ge.byteLength<Ae)throw new RangeError('"offset" is outside of buffer bounds');if(Ge.byteLength<Ae+(me||0))throw new RangeError('"length" is outside of buffer bounds');let Xe;return Ae===void 0&&me===void 0?Xe=new Uint8Array(Ge):me===void 0?Xe=new Uint8Array(Ge,Ae):Xe=new Uint8Array(Ge,Ae,me),Object.setPrototypeOf(Xe,o.prototype),Xe}function z(Ge){if(o.isBuffer(Ge)){const Ae=q(Ge.length)|0,me=a(Ae);return me.length===0||Ge.copy(me,0,0,Ae),me}if(Ge.length!==void 0)return typeof Ge.length!="number"||pr(Ge.length)?a(0):O(Ge);if(Ge.type==="Buffer"&&Array.isArray(Ge.data))return O(Ge.data)}function q(Ge){if(Ge>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return Ge|0}function Q(Ge){return+Ge!=Ge&&(Ge=0),o.alloc(+Ge)}o.isBuffer=function(Ae){return Ae!=null&&Ae._isBuffer===!0&&Ae!==o.prototype},o.compare=function(Ae,me){if(mr(Ae,Uint8Array)&&(Ae=o.from(Ae,Ae.offset,Ae.byteLength)),mr(me,Uint8Array)&&(me=o.from(me,me.offset,me.byteLength)),!o.isBuffer(Ae)||!o.isBuffer(me))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ae===me)return 0;let Xe=Ae.length,Et=me.length;for(let Yt=0,nn=Math.min(Xe,Et);Yt<nn;++Yt)if(Ae[Yt]!==me[Yt]){Xe=Ae[Yt],Et=me[Yt];break}return Xe<Et?-1:Et<Xe?1:0},o.isEncoding=function(Ae){switch(String(Ae).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}},o.concat=function(Ae,me){if(!Array.isArray(Ae))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 KQ=yv.exports,w8;function DQ(){return w8||(w8=1,function(n,e){(function(){var t,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",g=500,b="__lodash_placeholder__",B=1,S=2,I=4,k=1,U=2,z=1,Y=2,Q=4,ne=8,X=16,q=32,J=64,N=128,ie=256,he=512,ce=30,we="...",pe=800,Ce=16,Pe=1,de=2,rt=3,ze=1/0,Qe=9007199254740991,ut=17976931348623157e292,Te=NaN,Ue=4294967295,st=Ue-1,wt=Ue>>>1,mt=[["ary",N],["bind",z],["bindKey",Y],["curry",ne],["curryRight",X],["flip",he],["partial",q],["partialRight",J],["rearg",ie]],ft="[object Arguments]",Ut="[object Array]",Lt="[object AsyncFunction]",De="[object Boolean]",ke="[object Date]",Oe="[object DOMException]",Je="[object Error]",Mt="[object Function]",gt="[object GeneratorFunction]",Nt="[object Map]",nn="[object Number]",en="[object Null]",Sn="[object Object]",Yn="[object Promise]",Qr="[object Proxy]",cr="[object RegExp]",fr="[object Set]",br="[object String]",Cr="[object Symbol]",Mr="[object Undefined]",Qn="[object WeakMap]",Sr="[object WeakSet]",Ge="[object ArrayBuffer]",ue="[object DataView]",me="[object Float32Array]",Xe="[object Float64Array]",Bt="[object Int8Array]",Yt="[object Int16Array]",it="[object Int32Array]",Kt="[object Uint8Array]",Ye="[object Uint8ClampedArray]",fe="[object Uint16Array]",xe="[object Uint32Array]",p=/\b__p \+= '';/g,Ne=/\b(__p \+=) '' \+/g,dt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,pt=/&(?:amp|lt|gt|quot|#39);/g,Ot=/[&<>"']/g,_t=RegExp(pt.source),rn=RegExp(Ot.source),Zt=/<%-([\s\S]+?)%>/g,Gt=/<%([\s\S]+?)%>/g,bt=/<%=([\s\S]+?)%>/g,Pn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,En=/^\w*$/,lr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wr=/[\\^$.*+?()[\]{}|]/g,on=RegExp(wr.source),zn=/^\s+/,Dn=/\s/,Br=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xr=/\{\n\/\* \[wrapped with (.+)\] \*/,Rr=/,? & /,rr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,co=/[()=,{}\[\]\/\s]/,$a=/\\(\\)?/g,ji=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ui=/\w*$/,Vi=/^[-+]0x[0-9a-f]+$/i,as=/^0b[01]+$/i,Ni=/^\[object .+?Constructor\]$/,ll=/^0o[0-7]+$/i,ul=/^(?:0|[1-9]\d*)$/,ts=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Aa=/($^)/,Al=/['\n\r\u2028\u2029\\]/g,ao="\\ud800-\\udfff",Pu="\\u0300-\\u036f",tu="\\ufe20-\\ufe2f",so="\\u20d0-\\u20ff",Kr=Pu+tu+so,Va="\\u2700-\\u27bf",Ts="a-z\\xdf-\\xf6\\xf8-\\xff",ia="\\xac\\xb1\\xd7\\xf7",We="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ct="\\u2000-\\u206f",pn=" \\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",Nn="A-Z\\xc0-\\xd6\\xd8-\\xde",An="\\ufe0e\\ufe0f",er=ia+We+Ct+pn,Ti="['’]",ho="["+ao+"]",vs="["+er+"]",js="["+Kr+"]",vA="\\d+",ri="["+Va+"]",wi="["+Ts+"]",Ha="[^"+ao+er+vA+Va+Ts+Nn+"]",ci="\\ud83c[\\udffb-\\udfff]",ca="(?:"+js+"|"+ci+")",iA="[^"+ao+"]",ls="(?:\\ud83c[\\udde6-\\uddff]){2}",Dr="[\\ud800-\\udbff][\\udc00-\\udfff]",Ei="["+Nn+"]",Za="\\u200d",Ps="(?:"+wi+"|"+Ha+")",Mo="(?:"+Ei+"|"+Ha+")",Ns="(?:"+Ti+"(?:d|ll|m|re|s|t|ve))?",du="(?:"+Ti+"(?:D|LL|M|RE|S|T|VE))?",zl=ca+"?",ns="["+An+"]?",Vs="(?:"+Za+"(?:"+[iA,ls,Dr].join("|")+")"+ns+zl+")*",fo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ms="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ws=ns+zl+Vs,Xa="(?:"+[ri,ls,Dr].join("|")+")"+ws,Rs="(?:"+[iA+js+"?",js,ls,Dr,ho].join("|")+")",El=RegExp(Ti,"g"),oA=RegExp(js,"g"),Hi=RegExp(ci+"(?="+ci+")|"+Rs+ws,"g"),nu=RegExp([Ei+"?"+wi+"+"+Ns+"(?="+[vs,Ei,"$"].join("|")+")",Mo+"+"+du+"(?="+[vs,Ei+Ps,"$"].join("|")+")",Ei+"?"+Ps+"+"+Ns,Ei+"+"+du,ms,fo,vA,Xa].join("|"),"g"),Fi=RegExp("["+Za+ao+Kr+An+"]"),Jr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ru=["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"],Gi=-1,lo={};lo[me]=lo[Xe]=lo[Bt]=lo[Yt]=lo[it]=lo[Kt]=lo[Ye]=lo[fe]=lo[xe]=!0,lo[ft]=lo[Ut]=lo[Ge]=lo[De]=lo[ue]=lo[ke]=lo[Je]=lo[Mt]=lo[Nt]=lo[nn]=lo[Sn]=lo[cr]=lo[fr]=lo[br]=lo[Qn]=!1;var Pi={};Pi[ft]=Pi[Ut]=Pi[Ge]=Pi[ue]=Pi[De]=Pi[ke]=Pi[me]=Pi[Xe]=Pi[Bt]=Pi[Yt]=Pi[it]=Pi[Nt]=Pi[nn]=Pi[Sn]=Pi[cr]=Pi[fr]=Pi[br]=Pi[Cr]=Pi[Kt]=Pi[Ye]=Pi[fe]=Pi[xe]=!0,Pi[Je]=Pi[Mt]=Pi[Qn]=!1;var ee={À:"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 Sq=yv.exports,N8;function Eq(){return N8||(N8=1,function(n,e){(function(){var t,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",o="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",g=500,b="__lodash_placeholder__",E=1,S=2,O=4,k=1,U=2,z=1,q=2,Q=4,re=8,X=16,Y=32,J=64,N=128,ie=256,he=512,de=30,we="...",fe=800,be=16,Pe=1,pe=2,it=3,We=1/0,$e=9007199254740991,ht=17976931348623157e292,De=NaN,Ne=4294967295,at=Ne-1,wt=Ne>>>1,Ct=[["ary",N],["bind",z],["bindKey",q],["curry",re],["curryRight",X],["flip",he],["partial",Y],["partialRight",J],["rearg",ie]],ft="[object Arguments]",Lt="[object Array]",Kt="[object AsyncFunction]",Fe="[object Boolean]",Te="[object Date]",Se="[object DOMException]",Je="[object Error]",yt="[object Function]",dt="[object GeneratorFunction]",Ut="[object Map]",en="[object Number]",Nt="[object Null]",yn="[object Object]",jn="[object Promise]",Rr="[object Proxy]",sr="[object RegExp]",Jn="[object Set]",mr="[object String]",pr="[object Symbol]",xr="[object Undefined]",Qn="[object WeakMap]",Er="[object WeakSet]",Ge="[object ArrayBuffer]",Ae="[object DataView]",me="[object Float32Array]",Xe="[object Float64Array]",Et="[object Int8Array]",Yt="[object Int16Array]",nn="[object Int32Array]",rr="[object Uint8Array]",Ee="[object Uint8ClampedArray]",oe="[object Uint16Array]",ve="[object Uint32Array]",p=/\b__p \+= '';/g,ze=/\b(__p \+=) '' \+/g,rt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,pt=/&(?:amp|lt|gt|quot|#39);/g,Bt=/[&<>"']/g,vt=RegExp(pt.source),Xt=RegExp(Bt.source),tn=/<%-([\s\S]+?)%>/g,zt=/<%([\s\S]+?)%>/g,_t=/<%=([\s\S]+?)%>/g,Tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sn=/^\w*$/,Ar=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wr=/[\\^$.*+?()[\]{}|]/g,rn=RegExp(wr.source),Fn=/^\s+/,Rn=/\s/,Br=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Mr=/\{\n\/\* \[wrapped with (.+)\] \*/,Kr=/,? & /,ir=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,co=/[()=,{}\[\]\/\s]/,Sa=/\\(\\)?/g,qi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,yi=/\w*$/,oo=/^[-+]0x[0-9a-f]+$/i,Mo=/^0b[01]+$/i,Ti=/^\[object .+?Constructor\]$/,Ua=/^0o[0-7]+$/i,Ea=/^(?:0|[1-9]\d*)$/,ns=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Aa=/($^)/,Al=/['\n\r\u2028\u2029\\]/g,ao="\\ud800-\\udfff",Pu="\\u0300-\\u036f",tu="\\ufe20-\\ufe2f",so="\\u20d0-\\u20ff",Dr=Pu+tu+so,Za="\\u2700-\\u27bf",Ts="a-z\\xdf-\\xf6\\xf8-\\xff",ia="\\xac\\xb1\\xd7\\xf7",Qe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bt="\\u2000-\\u206f",fn=" \\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",Nn="A-Z\\xc0-\\xd6\\xd8-\\xde",un="\\ufe0e\\ufe0f",er=ia+Qe+bt+fn,Pi="['’]",ho="["+ao+"]",vs="["+er+"]",js="["+Dr+"]",vA="\\d+",ri="["+Za+"]",wi="["+Ts+"]",Xa="[^"+ao+er+vA+Za+Ts+Nn+"]",Ai="\\ud83c[\\udffb-\\udfff]",ca="(?:"+js+"|"+Ai+")",iA="[^"+ao+"]",ls="(?:\\ud83c[\\udde6-\\uddff]){2}",Lr="[\\ud800-\\udbff][\\udc00-\\udfff]",Ei="["+Nn+"]",Ja="\\u200d",Ps="(?:"+wi+"|"+Xa+")",So="(?:"+Ei+"|"+Xa+")",Ns="(?:"+Pi+"(?:d|ll|m|re|s|t|ve))?",hu="(?:"+Pi+"(?:D|LL|M|RE|S|T|VE))?",zl=ca+"?",rs="["+un+"]?",Vs="(?:"+Ja+"(?:"+[iA,ls,Lr].join("|")+")"+rs+zl+")*",fo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ms="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ws=rs+zl+Vs,el="(?:"+[ri,ls,Lr].join("|")+")"+ws,Rs="(?:"+[iA+js+"?",js,ls,Lr,ho].join("|")+")",El=RegExp(Pi,"g"),oA=RegExp(js,"g"),Vi=RegExp(Ai+"(?="+Ai+")|"+Rs+ws,"g"),nu=RegExp([Ei+"?"+wi+"+"+Ns+"(?="+[vs,Ei,"$"].join("|")+")",So+"+"+hu+"(?="+[vs,Ei+Ps,"$"].join("|")+")",Ei+"?"+Ps+"+"+Ns,Ei+"+"+hu,ms,fo,vA,el].join("|"),"g"),Ui=RegExp("["+Ja+ao+Dr+un+"]"),Jr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ru=["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"],Ni=-1,lo={};lo[me]=lo[Xe]=lo[Et]=lo[Yt]=lo[nn]=lo[rr]=lo[Ee]=lo[oe]=lo[ve]=!0,lo[ft]=lo[Lt]=lo[Ge]=lo[Fe]=lo[Ae]=lo[Te]=lo[Je]=lo[yt]=lo[Ut]=lo[en]=lo[yn]=lo[sr]=lo[Jn]=lo[mr]=lo[Qn]=!1;var Ri={};Ri[ft]=Ri[Lt]=Ri[Ge]=Ri[Ae]=Ri[Fe]=Ri[Te]=Ri[me]=Ri[Xe]=Ri[Et]=Ri[Yt]=Ri[nn]=Ri[Ut]=Ri[en]=Ri[yn]=Ri[sr]=Ri[Jn]=Ri[mr]=Ri[pr]=Ri[rr]=Ri[Ee]=Ri[oe]=Ri[ve]=!0,Ri[Je]=Ri[yt]=Ri[Qn]=!1;var ee={À:"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 y(x){return vo(x)||bm(x)||!!(sf&&x&&x[sf])}function O(x,P){var V=typeof x;return P=P??Qe,!!P&&(V=="number"||V!="symbol"&&ul.test(x))&&x>-1&&x%1==0&&x<P}function E(x,P,V){if(!bl(V))return!1;var ye=typeof P;return(ye=="number"?Ic(V)&&O(P,V.length):ye=="string"&&P in V)?ld(V[P],x):!1}function K(x,P){if(vo(x))return!1;var V=typeof x;return V=="number"||V=="symbol"||V=="boolean"||x==null||KA(x)?!0:En.test(x)||!Pn.test(x)||P!=null&&x in $o(P)}function H(x){var P=typeof x;return P=="string"||P=="number"||P=="symbol"||P=="boolean"?x!=="__proto__":x===null}function le(x){var P=kh(x),V=et[P];if(typeof V!="function"||!(P in $r.prototype))return!1;if(x===V)return!0;var ye=ad(V);return!!ye&&x===ye[0]}function ve(x){return!!$A&&$A in x}var Be=Wi?ac:B3;function Fe(x){var P=x&&x.constructor,V=typeof P=="function"&&P.prototype||kl;return x===V}function ht(x){return x===x&&!bl(x)}function xt(x,P){return function(V){return V==null?!1:V[x]===P&&(P!==t||x in $o(V))}}function Xt(x){var P=mr(x,function(ye){return V.size===g&&V.clear(),ye}),V=P.cache;return P}function Qt(x,P){var V=x[1],ye=P[1],$e=V|ye,lt=$e<(z|Y|N),Dt=ye==N&&V==ne||ye==N&&V==ie&&x[7].length<=P[8]||ye==(N|ie)&&P[7].length<=P[8]&&V==ne;if(!(lt||Dt))return x;ye&z&&(x[2]=P[2],$e|=V&z?0:Q);var qt=P[3];if(qt){var sn=x[3];x[3]=sn?ic(sn,qt,P[4]):qt,x[4]=sn?Ja(x[3],b):P[4]}return qt=P[5],qt&&(sn=x[5],x[5]=sn?Id(sn,qt,P[6]):qt,x[6]=sn?Ja(x[5],b):P[6]),qt=P[7],qt&&(x[7]=qt),ye&N&&(x[8]=x[8]==null?P[8]:cs(x[8],P[8])),x[9]==null&&(x[9]=P[9]),x[0]=P[0],x[1]=$e,x}function xn(x){var P=[];if(x!=null)for(var V in $o(x))P.push(V);return P}function Rn(x){return CA.call(x)}function $n(x,P,V){return P=Uo(P===t?x.length-1:P,0),function(){for(var ye=arguments,$e=-1,lt=Uo(ye.length-P,0),Dt=an(lt);++$e<lt;)Dt[$e]=ye[P+$e];$e=-1;for(var qt=an(P+1);++$e<P;)qt[$e]=ye[$e];return qt[P]=V(Dt),Hs(x,this,qt)}}function Jn(x,P){return P.length<2?x:wu(x,Si(P,0,-1))}function yr(x,P){for(var V=x.length,ye=cs(P.length,V),$e=Ia(x);ye--;){var lt=P[ye];x[ye]=O(lt,V)?$e[lt]:t}return x}function ar(x,P){if(!(P==="constructor"&&typeof x[P]=="function")&&P!="__proto__")return x[P]}var Lr=Io(Bi),ai=Qc||function(x,P){return pr.setTimeout(x,P)},Nr=Io($i);function Ji(x,P,V){var ye=P+"";return Nr(x,A(ye,ka(da(ye),V)))}function Io(x){var P=0,V=0;return function(){var ye=Df(),$e=Ce-(ye-V);if(V=ye,$e>0){if(++P>=pe)return arguments[0]}else P=0;return x.apply(t,arguments)}}function Ga(x,P){var V=-1,ye=x.length,$e=ye-1;for(P=P===t?ye:P;++V<P;){var lt=vn(V,$e),Dt=x[lt];x[lt]=x[V],x[V]=Dt}return x.length=P,x}var aa=Xt(function(x){var P=[];return x.charCodeAt(0)===46&&P.push(""),x.replace(lr,function(V,ye,$e,lt){P.push($e?lt.replace($a,"$1"):ye||V)}),P});function Ca(x){if(typeof x=="string"||KA(x))return x;var P=x+"";return P=="0"&&1/x==-1/0?"-0":P}function ba(x){if(x!=null){try{return YA.call(x)}catch{}try{return x+""}catch{}}return""}function ka(x,P){return Sa(mt,function(V){var ye="_."+V[0];P&V[1]&&!Ku(x,ye)&&x.push(ye)}),x.sort()}function Yl(x){if(x instanceof $r)return x.clone();var P=new Ri(x.__wrapped__,x.__chain__);return P.__actions__=Ia(x.__actions__),P.__index__=x.__index__,P.__values__=x.__values__,P}function Wa(x,P,V){(V?E(x,P,V):P===t)?P=1:P=Uo(w(P),0);var ye=x==null?0:x.length;if(!ye||P<1)return[];for(var $e=0,lt=0,Dt=an(ZA(ye/P));$e<ye;)Dt[lt++]=Si(x,$e,$e+=P);return Dt}function xa(x){for(var P=-1,V=x==null?0:x.length,ye=0,$e=[];++P<V;){var lt=x[P];lt&&($e[ye++]=lt)}return $e}function ds(){var x=arguments.length;if(!x)return[];for(var P=an(x-1),V=arguments[0],ye=x;ye--;)P[ye-1]=arguments[ye];return Du(vo(V)?Ia(V):[V],Ws(P,1))}var yi=On(function(x,P){return Cl(x)?xu(x,Ws(P,1,Cl,!0)):[]}),Zo=On(function(x,P){var V=RA(P);return Cl(V)&&(V=t),Cl(x)?xu(x,Ws(P,1,Cl,!0),di(V,2)):[]}),la=On(function(x,P){var V=RA(P);return Cl(V)&&(V=t),Cl(x)?xu(x,Ws(P,1,Cl,!0),t,V):[]});function fa(x,P,V){var ye=x==null?0:x.length;return ye?(P=V||P===t?1:w(P),Si(x,P<0?0:P,ye)):[]}function Is(x,P,V){var ye=x==null?0:x.length;return ye?(P=V||P===t?1:w(P),P=ye-P,Si(x,0,P<0?0:P)):[]}function Kl(x,P){return x&&x.length?fl(x,di(P,3),!0,!0):[]}function Po(x,P){return x&&x.length?fl(x,di(P,3),!0):[]}function Ph(x,P,V,ye){var $e=x==null?0:x.length;return $e?(V&&typeof V!="number"&&E(x,P,V)&&(V=0,ye=$e),id(x,P,V,ye)):[]}function yl(x,P,V){var ye=x==null?0:x.length;if(!ye)return-1;var $e=V==null?0:w(V);return $e<0&&($e=Uo(ye+$e,0)),dc(x,di(P,3),$e)}function PA(x,P,V){var ye=x==null?0:x.length;if(!ye)return-1;var $e=ye-1;return V!==t&&($e=w(V),$e=V<0?Uo(ye+$e,0):cs($e,ye-1)),dc(x,di(P,3),$e,!0)}function Xc(x){var P=x==null?0:x.length;return P?Ws(x,1):[]}function vl(x){var P=x==null?0:x.length;return P?Ws(x,ze):[]}function _l(x,P){var V=x==null?0:x.length;return V?(P=P===t?1:w(P),Ws(x,P)):[]}function hf(x){for(var P=-1,V=x==null?0:x.length,ye={};++P<V;){var $e=x[P];ye[$e[0]]=$e[1]}return ye}function Nf(x){return x&&x.length?x[0]:t}function Rd(x,P,V){var ye=x==null?0:x.length;if(!ye)return-1;var $e=V==null?0:w(V);return $e<0&&($e=Uo(y Line truncated
`;x.replace(Zr,function(to,xs,Ls,Nd,zh,Gd){return Ls||(Ls=Nd),ur+=x.slice(Wn,Gd).replace(Al,Bl),xs&&(qt=!0,ur+=`' +
`)}function y(x){return vo(x)||bm(x)||!!(sf&&x&&x[sf])}function I(x,P){var V=typeof x;return P=P??$e,!!P&&(V=="number"||V!="symbol"&&Ea.test(x))&&x>-1&&x%1==0&&x<P}function B(x,P,V){if(!bl(V))return!1;var ye=typeof P;return(ye=="number"?Ic(V)&&I(P,V.length):ye=="string"&&P in V)?lh(V[P],x):!1}function K(x,P){if(vo(x))return!1;var V=typeof x;return V=="number"||V=="symbol"||V=="boolean"||x==null||KA(x)?!0:Sn.test(x)||!Tn.test(x)||P!=null&&x in Vo(P)}function H(x){var P=typeof x;return P=="string"||P=="number"||P=="symbol"||P=="boolean"?x!=="__proto__":x===null}function ue(x){var P=kd(x),V=et[P];if(typeof V!="function"||!(P in $r.prototype))return!1;if(x===V)return!0;var ye=ah(V);return!!ye&&x===ye[0]}function _e(x){return!!$A&&$A in x}var Ie=Gi?ac:O3;function Ue(x){var P=x&&x.constructor,V=typeof P=="function"&&P.prototype||kl;return x===V}function ct(x){return x===x&&!bl(x)}function xt(x,P){return function(V){return V==null?!1:V[x]===P&&(P!==t||x in Vo(V))}}function Ht(x){var P=yr(x,function(ye){return V.size===g&&V.clear(),ye}),V=P.cache;return P}function Wt(x,P){var V=x[1],ye=P[1],Ye=V|ye,lt=Ye<(z|q|N),Rt=ye==N&&V==re||ye==N&&V==ie&&x[7].length<=P[8]||ye==(N|ie)&&P[7].length<=P[8]&&V==re;if(!(lt||Rt))return x;ye&z&&(x[2]=P[2],Ye|=V&z?0:Q);var Qt=P[3];if(Qt){var on=x[3];x[3]=on?ic(on,Qt,P[4]):Qt,x[4]=on?tl(x[3],b):P[4]}return Qt=P[5],Qt&&(on=x[5],x[5]=on?Ih(on,Qt,P[6]):Qt,x[6]=on?tl(x[5],b):P[6]),Qt=P[7],Qt&&(x[7]=Qt),ye&N&&(x[8]=x[8]==null?P[8]:cs(x[8],P[8])),x[9]==null&&(x[9]=P[9]),x[0]=P[0],x[1]=Ye,x}function xn(x){var P=[];if(x!=null)for(var V in Vo(x))P.push(V);return P}function Pn(x){return CA.call(x)}function Yn(x,P,V){return P=zo(P===t?x.length-1:P,0),function(){for(var ye=arguments,Ye=-1,lt=zo(ye.length-P,0),Rt=sn(lt);++Ye<lt;)Rt[Ye]=ye[P+Ye];Ye=-1;for(var Qt=sn(P+1);++Ye<P;)Qt[Ye]=ye[Ye];return Qt[P]=V(Rt),Hs(x,this,Qt)}}function Xn(x,P){return P.length<2?x:wu(x,Si(P,0,-1))}function _r(x,P){for(var V=x.length,ye=cs(P.length,V),Ye=Ta(x);ye--;){var lt=P[ye];x[ye]=I(lt,V)?Ye[lt]:t}return x}function ur(x,P){if(!(P==="constructor"&&typeof x[P]=="function")&&P!="__proto__")return x[P]}var Fr=ko(Bi),ai=Qc||function(x,P){return gr.setTimeout(x,P)},Gr=ko($i);function Xi(x,P,V){var ye=P+"";return Gr(x,A(ye,Pa(ha(ye),V)))}function ko(x){var P=0,V=0;return function(){var ye=Df(),Ye=be-(ye-V);if(V=ye,Ye>0){if(++P>=fe)return arguments[0]}else P=0;return x.apply(t,arguments)}}function qa(x,P){var V=-1,ye=x.length,Ye=ye-1;for(P=P===t?ye:P;++V<P;){var lt=vn(V,Ye),Rt=x[lt];x[lt]=x[V],x[V]=Rt}return x.length=P,x}var aa=Ht(function(x){var P=[];return x.charCodeAt(0)===46&&P.push(""),x.replace(Ar,function(V,ye,Ye,lt){P.push(Ye?lt.replace(Sa,"$1"):ye||V)}),P});function Ca(x){if(typeof x=="string"||KA(x))return x;var P=x+"";return P=="0"&&1/x==-1/0?"-0":P}function ba(x){if(x!=null){try{return YA.call(x)}catch{}try{return x+""}catch{}}return""}function Pa(x,P){return Ba(Ct,function(V){var ye="_."+V[0];P&V[1]&&!Ku(x,ye)&&x.push(ye)}),x.sort()}function Yl(x){if(x instanceof $r)return x.clone();var P=new Ki(x.__wrapped__,x.__chain__);return P.__actions__=Ta(x.__actions__),P.__index__=x.__index__,P.__values__=x.__values__,P}function Ya(x,P,V){(V?B(x,P,V):P===t)?P=1:P=zo(w(P),0);var ye=x==null?0:x.length;if(!ye||P<1)return[];for(var Ye=0,lt=0,Rt=sn(ZA(ye/P));Ye<ye;)Rt[lt++]=Si(x,Ye,Ye+=P);return Rt}function xa(x){for(var P=-1,V=x==null?0:x.length,ye=0,Ye=[];++P<V;){var lt=x[P];lt&&(Ye[ye++]=lt)}return Ye}function hs(){var x=arguments.length;if(!x)return[];for(var P=sn(x-1),V=arguments[0],ye=x;ye--;)P[ye-1]=arguments[ye];return Du(vo(V)?Ta(V):[V],Ws(P,1))}var gi=Bn(function(x,P){return Cl(x)?xu(x,Ws(P,1,Cl,!0)):[]}),Xo=Bn(function(x,P){var V=RA(P);return Cl(V)&&(V=t),Cl(x)?xu(x,Ws(P,1,Cl,!0),di(V,2)):[]}),la=Bn(function(x,P){var V=RA(P);return Cl(V)&&(V=t),Cl(x)?xu(x,Ws(P,1,Cl,!0),t,V):[]});function fa(x,P,V){var ye=x==null?0:x.length;return ye?(P=V||P===t?1:w(P),Si(x,P<0?0:P,ye)):[]}function Is(x,P,V){var ye=x==null?0:x.length;return ye?(P=V||P===t?1:w(P),P=ye-P,Si(x,0,P<0?0:P)):[]}function Kl(x,P){return x&&x.length?fl(x,di(P,3),!0,!0):[]}function Ro(x,P){return x&&x.length?fl(x,di(P,3),!0):[]}function Pd(x,P,V,ye){var Ye=x==null?0:x.length;return Ye?(V&&typeof V!="number"&&B(x,P,V)&&(V=0,ye=Ye),ih(x,P,V,ye)):[]}function yl(x,P,V){var ye=x==null?0:x.length;if(!ye)return-1;var Ye=V==null?0:w(V);return Ye<0&&(Ye=zo(ye+Ye,0)),hc(x,di(P,3),Ye)}function PA(x,P,V){var ye=x==null?0:x.length;if(!ye)return-1;var Ye=ye-1;return V!==t&&(Ye=w(V),Ye=V<0?zo(ye+Ye,0):cs(Ye,ye-1)),hc(x,di(P,3),Ye,!0)}function Xc(x){var P=x==null?0:x.length;return P?Ws(x,1):[]}function vl(x){var P=x==null?0:x.length;return P?Ws(x,We):[]}function _l(x,P){var V=x==null?0:x.length;return V?(P=P===t?1:w(P),Ws(x,P)):[]}function df(x){for(var P=-1,V=x==null?0:x.length,ye={};++P<V;){var Ye=x[P];ye[Ye[0]]=Ye[1]}return ye}function Nf(x){return x&&x.length?x[0]:t}function Rh(x,P,V){var ye=x==null?0:x.length;if(!ye)return-1;var Ye=V==null?0:w(V);return Ye<0&&(Ye=zo(y Line truncated
`;x.replace(Zr,function(eo,xs,Ls,Nh,zd,Gh){return Ls||(Ls=Nh),cr+=x.slice(Wn,Gh).replace(Al,Bl),xs&&(Qt=!0,cr+=`' +
__e(`+xs+`) +
'`),zh&&(sn=!0,ur+=`';
`+zh+`;
__p += '`),Ls&&(ur+=`' +
'`),zd&&(on=!0,cr+=`';
`+zd+`;
__p += '`),Ls&&(cr+=`' +
((__t = (`+Ls+`)) == null ? '' : __t) +
'`),Wn=Gd+to.length,to}),ur+=`';
`;var eo=Fo.call(P,"variable")&&P.variable;if(!eo)ur=`with (obj) {
`+ur+`
'`),Wn=Gh+eo.length,eo}),cr+=`';
`;var Ji=Uo.call(P,"variable")&&P.variable;if(!Ji)cr=`with (obj) {
`+cr+`
}
`;else if(co.test(eo))throw new _i(s);ur=(sn?ur.replace(p,""):ur).replace(Ne,"$1").replace(dt,"$1;"),ur="function("+(eo||"obj")+`) {
`+(eo?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(qt?", __e = _.escape":"")+(sn?`, __j = Array.prototype.join;
`;else if(co.test(Ji))throw new _i(o);cr=(on?cr.replace(p,""):cr).replace(ze,"$1").replace(rt,"$1;"),cr="function("+(Ji||"obj")+`) {
`+(Ji?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Qt?", __e = _.escape":"")+(on?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+ur+`return __p
}`;var is=EC(function(){return Co(lt,xi+"return "+ur).apply(t,Dt)});if(is.source=ur,Rp(is))throw is;return is}function v3(x){return re(x).toLowerCase()}function _3(x){return re(x).toUpperCase()}function C3(x,P,V){if(x=re(x),x&&(V||P===t))return Fc(x);if(!x||!(P=No(P)))return x;var ye=Lu(x),$e=Lu(P),lt=aA(ye,$e),Dt=Uc(ye,$e)+1;return sa(ye,lt,Dt).join("")}function b3(x,P,V){if(x=re(x),x&&(V||P===t))return x.slice(0,$h(x)+1);if(!x||!(P=No(P)))return x;var ye=Lu(x),$e=Uc(ye,Lu(P))+1;return sa(ye,0,$e).join("")}function x3(x,P,V){if(x=re(x),x&&(V||P===t))return x.replace(zn,"");if(!x||!(P=No(P)))return x;var ye=Lu(x),$e=aA(ye,Lu(P));return sa(ye,$e).join("")}function jd(x,P){var V=ce,ye=we;if(bl(P)){var $e="separator"in P?P.separator:$e;V="length"in P?w(P.length):V,ye="omission"in P?No(P.omission):ye}x=re(x);var lt=x.length;if(zc(x)){var Dt=Lu(x);lt=Dt.length}if(V>=lt)return x;var qt=V-jc(ye);if(qt<1)return ye;var sn=Dt?sa(Dt,0,qt).join(""):x.slice(0,qt);if($e===t)return sn+ye;if(Dt&&(qt+=sn.length-qt),H0($e)){if(x.slice(qt).search($e)){var Wn,qn=sn;for($e.global||($e=QA($e.source,re(ui.exec($e))+"g")),$e.lastIndex=0;Wn=$e.exec(qn);)var ur=Wn.index;sn=sn.slice(0,ur===t?qt:ur)}}else if(x.indexOf(No($e),qt)!=qt){var Zr=sn.lastIndexOf($e);Zr>-1&&(sn=sn.slice(0,Zr))}return sn+ye}function t1(x){return x=re(x),x&&_t.test(x)?x.replace(pt,Vh):x}var MC=od(function(x,P,V){return x+(V?" ":"")+P.toUpperCase()}),Jy=bp("toUpperCase");function SC(x,P,V){return x=re(x),P=V?t:P,P===t?rf(x)?of(x):yp(x):x.match(P)||[]}var EC=On(function(x,P){try{return Hs(x,t,P)}catch(V){return Rp(V)?V:new _i(V)}}),FA=Oc(function(x,P){return Sa(P,function(V){V=Ca(V),Qu(x,V,Vn(x[V],x))}),x});function Fh(x){var P=x==null?0:x.length,V=di();return x=P?Ms(x,function(ye){if(typeof ye[1]!="function")throw new Il(a);return[V(ye[0]),ye[1]]}):[],On(function(ye){for(var $e=-1;++$e<P;){var lt=x[$e];if(Hs(lt[0],this,ye))return Hs(lt[1],this,ye)}})}function Mm(x){return Lf(Cs(x,B))}function Uh(x){return function(){return x}}function Sm(x,P){return x==null||x!==x?P:x}var yf=Td(),mG=Td(!0);function cd(x){return x}function w3(x){return be(typeof x=="function"?x:Cs(x,B))}function gG(x){return At(Cs(x,B))}function yG(x,P){return ot(x,Cs(P,B))}var vG=On(function(x,P){return function(V){return Ql(V,x,P)}}),_G=On(function(x,P){return function(V){return Ql(x,V,P)}});function M3(x,P,V){var ye=jr(P),$e=Mc(P,ye);V==null&&!(bl(P)&&($e.length||!ye.length))&&(V=P,P=x,x=this,$e=Mc(P,jr(P)));var lt=!(bl(V)&&"chain"in V)||!!V.chain,Dt=ac(x);return Sa($e,function(qt){var sn=P[qt];x[qt]=sn,Dt&&(x.prototype[qt]=function(){var Wn=this.__chain__;if(lt||Wn){var qn=x(this.__wrapped__),ur=qn.__actions__=Ia(this.__actions__);return ur.push({func:sn,args:arguments,thisArg:x}),qn.__chain__=Wn,qn}return sn.apply(x,Du([this.value()],arguments))})}),x}function CG(){return pr._===this&&(pr._=Tl),this}function S3(){}function bG(x){return x=w(x),On(function(P){return Et(P,x)})}var xG=Uf(Ms),wG=Uf(lh),MG=Uf(sA);function RI(x){return K(x)?tf(Ca(x)):Pt(x)}function SG(x){return function(P){return x==null?t:wu(x,P)}}var EG=Oh(),BG=Oh(!0);function E3(){return[]}function B3(){return!1}function OG(){return{}}function IG(){return""}function kG(){return!0}function TG(x,P){if(x=w(x),x<1||x>Qe)return[];var V=Ue,ye=cs(x,Ue);P=di(P),x-=Ue;for(var $e=hh(ye,P);++V<x;)P(V);return $e}function PG(x){return vo(x)?Ms(x,Ca):KA(x)?[x]:Ia(aa(re(x)))}function RG(x){var P=++Nc;return re(x)+P}var KG=sd(function(x,P){return x+P},0),DG=Rl("ceil"),LG=sd(function(x,P){return x/P},1),FG=Rl("floor");function UG(x){return x&&x.length?EA(x,cd,au):t}function zG(x,P){return x&&x.length?EA(x,di(P,2),au):t}function jG(x){return Ah(x,cd)}function NG(x,P){return Ah(x,di(P,2))}function GG(x){return x&&x.length?EA(x,cd,qe):t}function WG(x,P){return x&&x.length?EA(x,di(P,2),qe):t}var QG=sd(function(x,P){return x*P},1),qG=Rl("round"),YG=sd(function(x,P){return x-P},0);function $G(x){return x&&x.length?Md(x,cd):0}function VG(x,P){return x&&x.length?Md(x,di(P,2)):0}return et.after=Cn,et.ary=or,et.assign=Ae,et.assignIn=_e,et.assignInWith=Re,et.assignWith=Le,et.at=je,et.before=Ar,et.bind=Vn,et.bindAll=FA,et.bindKey=Ur,et.castArray=lC,et.chain=qf,et.chunk=Wa,et.compact=xa,et.concat=ds,et.cond=Fh,et.conforms=Mm,et.constant=Uh,et.countBy=$g,et.create=He,et.curry=ii,et.curryRight=li,et.debounce=il,et.defaults=at,et.defaultsDeep=vt,et.defer=ln,et.delay=Jt,et.difference=yi,et.differenceBy=Zo,et.differenceWith=la,et.drop=fa,et.dropRight=Is,et.dropRightWhile=Kl,et.dropWhile=Po,et.fill=Ph,et.filter=ym,et.flatMap=eh,et.flatMapDeep=Fd,et.flatMapDepth=o0,et.flatten=Xc,et.flattenDeep=vl,et.flattenDepth=_l,et.flip=cn,et.flow=yf,et.flowRight=mG,et.fromPairs=hf,et.functions=Fn,et.functionsIn=mn,et.groupBy=a0,et.initial=df,et.intersection=$m,et.intersectionBy=ff,et.intersectionWith=Vm,et.invert=sr,et.invertBy=Bn,et.invokeMap=Y0,et.iteratee=w3,et.keyBy=l0,et.keys=jr,et.keysIn=Wr,et.map=kp,et.mapKeys=ei,et.mapValues=Ro,et.matches=gG,et.matchesProperty=yG,et.me Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(B[1])} }\`.`)];const S=[];return n.layerType==="symbol"&&(s==="text-field"&&i&&!i.glyphs&&S.push(new Er(t,a,'use of "text-field" requires a style "glyphs" property')),s==="text-font"&&T_(Eg(a))&&Iu(a.type)==="identity"&&S.push(new Er(t,a,'"text-font" does not support identity functions'))),S.concat(r({key:n.key,value:a,valueSpec:b,style:i,styleSpec:o,expressionContext:"property",propertyType:e,propertyKey:s}))}function mF(n){return pF(n,"paint")}function gF(n){return pF(n,"layout")}function yF(n){let e=[];const t=n.value,r=n.key,i=n.style,o=n.styleSpec;!t.type&&!t.ref&&e.push(new Er(r,t,'either "type" or "ref" is required'));let a=Iu(t.type);const s=Iu(t.ref);if(t.id){const h=Iu(t.id);for(let g=0;g<n.arrayIndex;g++){const b=i.layers[g];Iu(b.id)===h&&e.push(new Er(r,t.id,`duplicate layer id "${t.id}", previously used at line ${b.id.__line__}`))}}if("ref"in t){["type","source","source-layer","filter","layout"].forEach(g=>{g in t&&e.push(new Er(r,t[g],`"${g}" is prohibited for ref layers`))});let h;i.layers.forEach(g=>{Iu(g.id)===s&&(h=g)}),h?h.ref?e.push(new Er(r,t.ref,"ref cannot reference another ref layer")):a=Iu(h.type):e.push(new Er(r,t.ref,`ref layer "${s}" not found`))}else if(a!=="background")if(!t.source)e.push(new Er(r,t,'missing required property "source"'));else{const h=i.sources&&i.sources[t.source],g=h&&Iu(h.type);h?g==="vector"&&a==="raster"?e.push(new Er(r,t.source,`layer "${t.id}" requires a raster source`)):g!=="raster-dem"&&a==="hillshade"?e.push(new Er(r,t.source,`layer "${t.id}" requires a raster-dem source`)):g==="raster"&&a!=="raster"?e.push(new Er(r,t.source,`layer "${t.id}" requires a vector source`)):g==="vector"&&!t["source-layer"]?e.push(new Er(r,t,`layer "${t.id}" must specify a "source-layer"`)):g==="raster-dem"&&a!=="hillshade"?e.push(new Er(r,t.source,"raster-dem source can only be used with layer type 'hillshade'.")):a==="line"&&t.paint&&t.paint["line-gradient"]&&(g!=="geojson"||!h.lineMetrics)&&e.push(new Er(r,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new Er(r,t.source,`source "${t.source}" not found`))}return e=e.concat(Mf({key:r,value:t,valueSpec:o.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${r}.type`,value:t.type,valueSpec:o.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:bB,layout(h){return Mf({layer:t,key:h.key,value:h.value,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*"(g){return gF(py({layerType:a},g))}}})},paint(h){return Mf({layer:t,key:h.key,value:h.value,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*"(g){return mF(py({layerType:a},g))}}})}}})),e}function Bg(n){const e=n.value,t=n.key,r=zs(e);return r!=="string"?[new Er(t,e,`string expected, ${r} found`)]:[]}function v$(n){var e;const t=(e=n.sourceName)!==null&&e!==void 0?e:"",r=n.value,i=n.styleSpec,o=i.source_raster_dem,a=n.style;let s=[];const h=zs(r);if(r===void 0)return s;if(h!=="object")return s.push(new Er("source_raster_dem",r,`object expected, ${h} found`)),s;const b=Iu(r.encoding)==="custom",B=["redFactor","greenFactor","blueFactor","baseShift"],S=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const I in r)!b&&B.includes(I)?s.push(new Er(I,r[I],`In "${t}": "${I}" is only valid when "encoding" is set to "custom". ${S} encoding found`)):o[I]?s=s.concat(n.validateSpec({key:I,value:r[I],valueSpec:o[I],validateSpec:n.validateSpec,style:a,styleSpec:i})):s.push(new Er(I,r[I],`unknown property "${I}"`));return s}const V8={promoteId:_$};function vF(n){const e=n.value,t=n.key,r=n.styleSpec,i=n.style,o=n.validateSpec;if(!e.type)return[new Er(t,e,'"type" is required')];const a=Iu(e.type);let s;switch(a){case"vector":case"raster":return s=Mf({key:t,value:e,valueSpec:r[`source_${a.replace("-","_")}`],style:n.style,styleSpec:r,objectElementValidators:V8,validateSpec:o}),s;case"raster-dem":return s=v$({sourceName:t,value:e,style:n.style,styleSpec:r,validateSpec:o}),s;case"geojson":if(s=Mf({key:t,value:e,valueSpec:r.source_geojson,style:i,styleSpec:r,validateSpec:o,objectElementValidators:V8}),e.cluster)for(const h in e.clusterProperties){const[g,b]=e.clusterProperties[h],B=typeof g=="string"?[g,["accumulated"],["get",h]]:g;s.push(...my({key:`${t}.${h}.map`,value:b,validateSpec:o,expressionContext:"cluster-map"})),s.push(...my({key:`${t}.${h}.reduce`,value:B,validateSpec:o,expressionContext:"cluster-reduce"}))}return s;case"video":return Mf({key:t,value:e,valueSpec:r.source_video,style:i,validateSpec:o,styleSpec:r});case"image":return Mf({key:t,value:e,valueSpec:r.source_image,style:i,validateSpec:o,styleSpec:r});case"canvas":return[new Er(t,null,"Please use runtime APIs to add canvas sources,Line truncated
${B}`),U].join(`
${s}`)}return g}(n,"",0)}function Z8(n,e){const t={};for(const r in e)n[r]!==void 0&&(t[r]=n[r]);for(const r in n)t[r]===void 0&&(t[r]=n[r]);return t}function SF(n,e=2){return n=Z8(n,Ys.$root),n.layers&&(n.layers=n.layers.map(t=>Z8(t,Ys.layer))),I$(n,{indent:e})}function Z3(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function X8(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function ZE(n,e){return typeof e=="string"&&e[0]==="@"?ZE(n,n.constants[e]):e}function k$(n){return Array.isArray(n.stops)}function sv(n,e,t){n[t]=n[e],delete n[e]}function T$(n){n.version=8,m$(n,i=>{i.type==="video"&&i.url!==void 0&&sv(i,"url","urls"),i.type==="video"&&i.coordinates.forEach(o=>o.reverse())}),zv(n,i=>{Z3(i,o=>{o["symbol-min-distance"]!==void 0&&sv(o,"symbol-min-distance","symbol-spacing")}),X8(i,o=>{o["background-image"]!==void 0&&sv(o,"background-image","background-pattern"),o["line-image"]!==void 0&&sv(o,"line-image","line-pattern"),o["fill-image"]!==void 0&&sv(o,"fill-image","fill-pattern")})}),vB(n,{paint:!0,layout:!0},i=>{const o=ZE(n,i.value);k$(o)&&o.stops.forEach(a=>{a[1]=ZE(n,a[1])}),i.set(o)}),delete n.constants,zv(n,i=>{Z3(i,o=>{delete o["text-max-size"],delete o["icon-max-size"]}),X8(i,o=>{o["text-size"]&&(i.layout||(i.layout={}),i.layout["text-size"]=o["text-size"],delete o["text-size"]),o["icon-size"]&&(i.layout||(i.layout={}),i.layout["icon-size"]=o["icon-size"],delete o["icon-size"])})});function e(i){function o(a){return a.split(",").map(s=>s.trim())}if(Array.isArray(i))return i;if(typeof i=="string")return o(i);if(typeof i=="object")return i.stops.forEach(a=>{a[1]=o(a[1])}),i;throw new Error("unexpected font value")}zv(n,i=>{Z3(i,o=>{o["text-font"]&&(o["text-font"]=e(o["text-font"]))})});let t=0;for(let i=n.layers.length-1;i>=0;i--)if(n.layers[i].type!=="symbol"){t=i+1;break}const r=n.layers.splice(t);return r.reverse(),n.layers=n.layers.concat(r),n}function P$(n){const e=[];return zv(n,t=>{t.filter&&(t.filter=Uv(t.filter))}),vB(n,{paint:!0,layout:!0},({path:t,value:r,reference:i,set:o})=>{R_(r)||(typeof r=="object"&&!Array.isArray(r)?(o(AF(r,i)),e.push(t.join("."))):i.tokens&&typeof r=="string"&&o(cF(r)))}),n}function R$(n){return JSON.parse(K$(JSON.stringify(n)))}function K$(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const r=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(r){let[i,o,a,s]=r.slice(1);return[o,a]=[o,a].map(h=>h.endsWith("%")?h:`${parseFloat(h)*100}%`),`"hsl${typeof s=="string"?"a":""}(${[i,o,a,s].filter(Boolean).join(",")})"`}return e})}function D$(n){let e=!1;if(n.version===7&&(n=T$(n),e=!0),n.version===8&&(e=!!P$(n),e=!0),vB(n,{paint:!0,layout:!0},({value:t,reference:r,set:i})=>{r.type==="color"&&i(R$(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const L$={StyleExpression:uF,StylePropertyFunction:sx,ZoomConstantExpression:$E,ZoomDependentExpression:VE,createExpression:fB,createPropertyExpression:pB,isExpression:R_,isExpressionFilter:ax,isZoomExpression:o$,normalizePropertyExpression:s$},F$={convertFunction:AF,createFunction:dB,isFunction:T_};var lx=O_();const U$=Ka(lx);var bb={exports:{}};/**
`)+cr+`return __p
}`;var os=EC(function(){return Co(lt,xi+"return "+cr).apply(t,Rt)});if(os.source=cr,Rp(os))throw os;return os}function _3(x){return ne(x).toLowerCase()}function C3(x){return ne(x).toUpperCase()}function b3(x,P,V){if(x=ne(x),x&&(V||P===t))return Fc(x);if(!x||!(P=Go(P)))return x;var ye=Lu(x),Ye=Lu(P),lt=aA(ye,Ye),Rt=Uc(ye,Ye)+1;return sa(ye,lt,Rt).join("")}function x3(x,P,V){if(x=ne(x),x&&(V||P===t))return x.slice(0,$d(x)+1);if(!x||!(P=Go(P)))return x;var ye=Lu(x),Ye=Uc(ye,Lu(P))+1;return sa(ye,0,Ye).join("")}function w3(x,P,V){if(x=ne(x),x&&(V||P===t))return x.replace(Fn,"");if(!x||!(P=Go(P)))return x;var ye=Lu(x),Ye=aA(ye,Lu(P));return sa(ye,Ye).join("")}function jh(x,P){var V=de,ye=we;if(bl(P)){var Ye="separator"in P?P.separator:Ye;V="length"in P?w(P.length):V,ye="omission"in P?Go(P.omission):ye}x=ne(x);var lt=x.length;if(zc(x)){var Rt=Lu(x);lt=Rt.length}if(V>=lt)return x;var Qt=V-jc(ye);if(Qt<1)return ye;var on=Rt?sa(Rt,0,Qt).join(""):x.slice(0,Qt);if(Ye===t)return on+ye;if(Rt&&(Qt+=on.length-Qt),H0(Ye)){if(x.slice(Qt).search(Ye)){var Wn,qn=on;for(Ye.global||(Ye=QA(Ye.source,ne(yi.exec(Ye))+"g")),Ye.lastIndex=0;Wn=Ye.exec(qn);)var cr=Wn.index;on=on.slice(0,cr===t?Qt:cr)}}else if(x.indexOf(Go(Ye),Qt)!=Qt){var Zr=on.lastIndexOf(Ye);Zr>-1&&(on=on.slice(0,Zr))}return on+ye}function n1(x){return x=ne(x),x&&vt.test(x)?x.replace(pt,Vd):x}var MC=oh(function(x,P,V){return x+(V?" ":"")+P.toUpperCase()}),Jy=bp("toUpperCase");function SC(x,P,V){return x=ne(x),P=V?t:P,P===t?rf(x)?of(x):yp(x):x.match(P)||[]}var EC=Bn(function(x,P){try{return Hs(x,t,P)}catch(V){return Rp(V)?V:new _i(V)}}),FA=Oc(function(x,P){return Ba(P,function(V){V=Ca(V),Qu(x,V,$n(x[V],x))}),x});function Fd(x){var P=x==null?0:x.length,V=di();return x=P?Ms(x,function(ye){if(typeof ye[1]!="function")throw new Il(a);return[V(ye[0]),ye[1]]}):[],Bn(function(ye){for(var Ye=-1;++Ye<P;){var lt=x[Ye];if(Hs(lt[0],this,ye))return Hs(lt[1],this,ye)}})}function Mm(x){return Lf(Cs(x,E))}function Ud(x){return function(){return x}}function Sm(x,P){return x==null||x!==x?P:x}var yf=Th(),iW=Th(!0);function ch(x){return x}function M3(x){return xe(typeof x=="function"?x:Cs(x,E))}function oW(x){return ut(Cs(x,E))}function sW(x,P){return ot(x,Cs(P,E))}var aW=Bn(function(x,P){return function(V){return Ql(V,x,P)}}),lW=Bn(function(x,P){return function(V){return Ql(x,V,P)}});function S3(x,P,V){var ye=Nr(P),Ye=Mc(P,ye);V==null&&!(bl(P)&&(Ye.length||!ye.length))&&(V=P,P=x,x=this,Ye=Mc(P,Nr(P)));var lt=!(bl(V)&&"chain"in V)||!!V.chain,Rt=ac(x);return Ba(Ye,function(Qt){var on=P[Qt];x[Qt]=on,Rt&&(x.prototype[Qt]=function(){var Wn=this.__chain__;if(lt||Wn){var qn=x(this.__wrapped__),cr=qn.__actions__=Ta(this.__actions__);return cr.push({func:on,args:arguments,thisArg:x}),qn.__chain__=Wn,qn}return on.apply(x,Du([this.value()],arguments))})}),x}function uW(){return gr._===this&&(gr._=Tl),this}function E3(){}function AW(x){return x=w(x),Bn(function(P){return St(P,x)})}var cW=Uf(Ms),dW=Uf(ld),hW=Uf(sA);function JI(x){return K(x)?tf(Ca(x)):Tt(x)}function fW(x){return function(P){return x==null?t:wu(x,P)}}var pW=Od(),mW=Od(!0);function B3(){return[]}function O3(){return!1}function gW(){return{}}function yW(){return""}function vW(){return!0}function _W(x,P){if(x=w(x),x<1||x>$e)return[];var V=Ne,ye=cs(x,Ne);P=di(P),x-=Ne;for(var Ye=dd(ye,P);++V<x;)P(V);return Ye}function CW(x){return vo(x)?Ms(x,Ca):KA(x)?[x]:Ta(aa(ne(x)))}function bW(x){var P=++Nc;return ne(x)+P}var xW=sh(function(x,P){return x+P},0),wW=Rl("ceil"),MW=sh(function(x,P){return x/P},1),SW=Rl("floor");function EW(x){return x&&x.length?EA(x,ch,au):t}function BW(x,P){return x&&x.length?EA(x,di(P,2),au):t}function OW(x){return Ad(x,ch)}function IW(x,P){return Ad(x,di(P,2))}function kW(x){return x&&x.length?EA(x,ch,qe):t}function TW(x,P){return x&&x.length?EA(x,di(P,2),qe):t}var PW=sh(function(x,P){return x*P},1),RW=Rl("round"),KW=sh(function(x,P){return x-P},0);function DW(x){return x&&x.length?Mh(x,ch):0}function LW(x,P){return x&&x.length?Mh(x,di(P,2)):0}return et.after=Cn,et.ary=ar,et.assign=ce,et.assignIn=Ce,et.assignInWith=Re,et.assignWith=Le,et.at=je,et.before=dr,et.bind=$n,et.bindAll=FA,et.bindKey=zr,et.castArray=lC,et.chain=qf,et.chunk=Ya,et.compact=xa,et.concat=hs,et.cond=Fd,et.conforms=Mm,et.constant=Ud,et.countBy=Vg,et.create=He,et.curry=ii,et.curryRight=li,et.debounce=sl,et.defaults=st,et.defaultsDeep=gt,et.defer=an,et.delay=Zt,et.difference=gi,et.differenceBy=Xo,et.differenceWith=la,et.drop=fa,et.dropRight=Is,et.dropRightWhile=Kl,et.dropWhile=Ro,et.fill=Pd,et.filter=ym,et.flatMap=ed,et.flatMapDeep=Fh,et.flatMapDepth=o0,et.flatten=Xc,et.flattenDeep=vl,et.flattenDepth=_l,et.flip=An,et.flow=yf,et.flowRight=iW,et.fromPairs=df,et.functions=Ln,et.functionsIn=pn,et.groupBy=a0,et.initial=hf,et.intersection=$m,et.intersectionBy=ff,et.intersectionWith=Vm,et.invert=lr,et.invertBy=En,et.invokeMap=Y0,et.iteratee=M3,et.keyBy=l0,et.keys=Nr,et.keysIn=Qr,et.map=kp,et.mapKeys=ei,et.mapValues=Ko,et.matches=oW,et.matchesProperty=sW,et.me Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(E[1])} }\`.`)];const S=[];return n.layerType==="symbol"&&(o==="text-field"&&i&&!i.glyphs&&S.push(new Sr(t,a,'use of "text-field" requires a style "glyphs" property')),o==="text-font"&&P_(Bg(a))&&Iu(a.type)==="identity"&&S.push(new Sr(t,a,'"text-font" does not support identity functions'))),S.concat(r({key:n.key,value:a,valueSpec:b,style:i,styleSpec:s,expressionContext:"property",propertyType:e,propertyKey:o}))}function XF(n){return ZF(n,"paint")}function JF(n){return ZF(n,"layout")}function eU(n){let e=[];const t=n.value,r=n.key,i=n.style,s=n.styleSpec;!t.type&&!t.ref&&e.push(new Sr(r,t,'either "type" or "ref" is required'));let a=Iu(t.type);const o=Iu(t.ref);if(t.id){const d=Iu(t.id);for(let g=0;g<n.arrayIndex;g++){const b=i.layers[g];Iu(b.id)===d&&e.push(new Sr(r,t.id,`duplicate layer id "${t.id}", previously used at line ${b.id.__line__}`))}}if("ref"in t){["type","source","source-layer","filter","layout"].forEach(g=>{g in t&&e.push(new Sr(r,t[g],`"${g}" is prohibited for ref layers`))});let d;i.layers.forEach(g=>{Iu(g.id)===o&&(d=g)}),d?d.ref?e.push(new Sr(r,t.ref,"ref cannot reference another ref layer")):a=Iu(d.type):e.push(new Sr(r,t.ref,`ref layer "${o}" not found`))}else if(a!=="background")if(!t.source)e.push(new Sr(r,t,'missing required property "source"'));else{const d=i.sources&&i.sources[t.source],g=d&&Iu(d.type);d?g==="vector"&&a==="raster"?e.push(new Sr(r,t.source,`layer "${t.id}" requires a raster source`)):g!=="raster-dem"&&a==="hillshade"?e.push(new Sr(r,t.source,`layer "${t.id}" requires a raster-dem source`)):g==="raster"&&a!=="raster"?e.push(new Sr(r,t.source,`layer "${t.id}" requires a vector source`)):g==="vector"&&!t["source-layer"]?e.push(new Sr(r,t,`layer "${t.id}" must specify a "source-layer"`)):g==="raster-dem"&&a!=="hillshade"?e.push(new Sr(r,t.source,"raster-dem source can only be used with layer type 'hillshade'.")):a==="line"&&t.paint&&t.paint["line-gradient"]&&(g!=="geojson"||!d.lineMetrics)&&e.push(new Sr(r,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new Sr(r,t.source,`source "${t.source}" not found`))}return e=e.concat(Mf({key:r,value:t,valueSpec:s.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${r}.type`,value:t.type,valueSpec:s.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:jB,layout(d){return Mf({layer:t,key:d.key,value:d.value,style:d.style,styleSpec:d.styleSpec,validateSpec:d.validateSpec,objectElementValidators:{"*"(g){return JF(py({layerType:a},g))}}})},paint(d){return Mf({layer:t,key:d.key,value:d.value,style:d.style,styleSpec:d.styleSpec,validateSpec:d.validateSpec,objectElementValidators:{"*"(g){return XF(py({layerType:a},g))}}})}}})),e}function Og(n){const e=n.value,t=n.key,r=zs(e);return r!=="string"?[new Sr(t,e,`string expected, ${r} found`)]:[]}function AV(n){var e;const t=(e=n.sourceName)!==null&&e!==void 0?e:"",r=n.value,i=n.styleSpec,s=i.source_raster_dem,a=n.style;let o=[];const d=zs(r);if(r===void 0)return o;if(d!=="object")return o.push(new Sr("source_raster_dem",r,`object expected, ${d} found`)),o;const b=Iu(r.encoding)==="custom",E=["redFactor","greenFactor","blueFactor","baseShift"],S=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const O in r)!b&&E.includes(O)?o.push(new Sr(O,r[O],`In "${t}": "${O}" is only valid when "encoding" is set to "custom". ${S} encoding found`)):s[O]?o=o.concat(n.validateSpec({key:O,value:r[O],valueSpec:s[O],validateSpec:n.validateSpec,style:a,styleSpec:i})):o.push(new Sr(O,r[O],`unknown property "${O}"`));return o}const h7={promoteId:cV};function tU(n){const e=n.value,t=n.key,r=n.styleSpec,i=n.style,s=n.validateSpec;if(!e.type)return[new Sr(t,e,'"type" is required')];const a=Iu(e.type);let o;switch(a){case"vector":case"raster":return o=Mf({key:t,value:e,valueSpec:r[`source_${a.replace("-","_")}`],style:n.style,styleSpec:r,objectElementValidators:h7,validateSpec:s}),o;case"raster-dem":return o=AV({sourceName:t,value:e,style:n.style,styleSpec:r,validateSpec:s}),o;case"geojson":if(o=Mf({key:t,value:e,valueSpec:r.source_geojson,style:i,styleSpec:r,validateSpec:s,objectElementValidators:h7}),e.cluster)for(const d in e.clusterProperties){const[g,b]=e.clusterProperties[d],E=typeof g=="string"?[g,["accumulated"],["get",d]]:g;o.push(...my({key:`${t}.${d}.map`,value:b,validateSpec:s,expressionContext:"cluster-map"})),o.push(...my({key:`${t}.${d}.reduce`,value:E,validateSpec:s,expressionContext:"cluster-reduce"}))}return o;case"video":return Mf({key:t,value:e,valueSpec:r.source_video,style:i,validateSpec:s,styleSpec:r});case"image":return Mf({key:t,value:e,valueSpec:r.source_image,style:i,validateSpec:s,styleSpec:r});case"canvas":return[new Sr(t,null,"Please use runtime APIs to add canvas sources,Line truncated
${E}`),U].join(`
${o}`)}return g}(n,"",0)}function p7(n,e){const t={};for(const r in e)n[r]!==void 0&&(t[r]=n[r]);for(const r in n)t[r]===void 0&&(t[r]=n[r]);return t}function lU(n,e=2){return n=p7(n,Ys.$root),n.layers&&(n.layers=n.layers.map(t=>p7(t,Ys.layer))),CV(n,{indent:e})}function X3(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function m7(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function m6(n,e){return typeof e=="string"&&e[0]==="@"?m6(n,n.constants[e]):e}function bV(n){return Array.isArray(n.stops)}function sv(n,e,t){n[t]=n[e],delete n[e]}function xV(n){n.version=8,aV(n,i=>{i.type==="video"&&i.url!==void 0&&sv(i,"url","urls"),i.type==="video"&&i.coordinates.forEach(s=>s.reverse())}),zv(n,i=>{X3(i,s=>{s["symbol-min-distance"]!==void 0&&sv(s,"symbol-min-distance","symbol-spacing")}),m7(i,s=>{s["background-image"]!==void 0&&sv(s,"background-image","background-pattern"),s["line-image"]!==void 0&&sv(s,"line-image","line-pattern"),s["fill-image"]!==void 0&&sv(s,"fill-image","fill-pattern")})}),FB(n,{paint:!0,layout:!0},i=>{const s=m6(n,i.value);bV(s)&&s.stops.forEach(a=>{a[1]=m6(n,a[1])}),i.set(s)}),delete n.constants,zv(n,i=>{X3(i,s=>{delete s["text-max-size"],delete s["icon-max-size"]}),m7(i,s=>{s["text-size"]&&(i.layout||(i.layout={}),i.layout["text-size"]=s["text-size"],delete s["text-size"]),s["icon-size"]&&(i.layout||(i.layout={}),i.layout["icon-size"]=s["icon-size"],delete s["icon-size"])})});function e(i){function s(a){return a.split(",").map(o=>o.trim())}if(Array.isArray(i))return i;if(typeof i=="string")return s(i);if(typeof i=="object")return i.stops.forEach(a=>{a[1]=s(a[1])}),i;throw new Error("unexpected font value")}zv(n,i=>{X3(i,s=>{s["text-font"]&&(s["text-font"]=e(s["text-font"]))})});let t=0;for(let i=n.layers.length-1;i>=0;i--)if(n.layers[i].type!=="symbol"){t=i+1;break}const r=n.layers.splice(t);return r.reverse(),n.layers=n.layers.concat(r),n}function wV(n){const e=[];return zv(n,t=>{t.filter&&(t.filter=Uv(t.filter))}),FB(n,{paint:!0,layout:!0},({path:t,value:r,reference:i,set:s})=>{K_(r)||(typeof r=="object"&&!Array.isArray(r)?(s(qF(r,i)),e.push(t.join("."))):i.tokens&&typeof r=="string"&&s(YF(r)))}),n}function MV(n){return JSON.parse(SV(JSON.stringify(n)))}function SV(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const r=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(r){let[i,s,a,o]=r.slice(1);return[s,a]=[s,a].map(d=>d.endsWith("%")?d:`${parseFloat(d)*100}%`),`"hsl${typeof o=="string"?"a":""}(${[i,s,a,o].filter(Boolean).join(",")})"`}return e})}function EV(n){let e=!1;if(n.version===7&&(n=xV(n),e=!0),n.version===8&&(e=!!wV(n),e=!0),FB(n,{paint:!0,layout:!0},({value:t,reference:r,set:i})=>{r.type==="color"&&i(MV(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const BV={StyleExpression:QF,StylePropertyFunction:ox,ZoomConstantExpression:h6,ZoomDependentExpression:f6,createExpression:PB,createPropertyExpression:RB,isExpression:K_,isExpressionFilter:sx,isZoomExpression:H$,normalizePropertyExpression:Z$},OV={convertFunction:qF,createFunction:TB,isFunction:P_};var ax=I_();const IV=La(ax);var bb={exports:{}};/**
* MapLibre GL JS
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v5.0.1/LICENSE.txt
*/var z$=bb.exports,J8;function j$(){return J8||(J8=1,function(n,e){(function(t,r){n.exports=r()})(z$,function(){var t={},r={};function i(a,s,h){if(r[a]=h,a==="index"){var g="var sharedModule = {}; ("+r.shared+")(sharedModule); ("+r.worker+")(sharedModule);",b={};return r.shared(b),r.index(t,b),typeof window<"u"&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([g],{type:"text/javascript"}))),t}}i("shared",["exports"],function(a){function s(f,u,d,v){return new(d||(d=Promise))(function(w,D){function F(re){try{Z(v.next(re))}catch(Ae){D(Ae)}}function G(re){try{Z(v.throw(re))}catch(Ae){D(Ae)}}function Z(re){var Ae;re.done?w(re.value):(Ae=re.value,Ae instanceof d?Ae:new d(function(_e){_e(Ae)})).then(F,G)}Z((v=v.apply(f,u||[])).next())})}function h(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var g,b;function B(){if(b)return g;function f(u,d){this.x=u,this.y=d}return b=1,g=f,f.prototype={clone:function(){return new f(this.x,this.y)},add:function(u){return this.clone()._add(u)},sub:function(u){return this.clone()._sub(u)},multByPoint:function(u){return this.clone()._multByPoint(u)},divByPoint:function(u){return this.clone()._divByPoint(u)},mult:function(u){return this.clone()._mult(u)},div:function(u){return this.clone()._div(u)},rotate:function(u){return this.clone()._rotate(u)},rotateAround:function(u,d){return this.clone()._rotateAround(u,d)},matMult:function(u){return this.clone()._matMult(u)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(u){return this.x===u.x&&this.y===u.y},dist:function(u){return Math.sqrt(this.distSqr(u))},distSqr:function(u){var d=u.x-this.x,v=u.y-this.y;return d*d+v*v},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(u){return Math.atan2(this.y-u.y,this.x-u.x)},angleWith:function(u){return this.angleWithSep(u.x,u.y)},angleWithSep:function(u,d){return Math.atan2(this.x*d-this.y*u,this.x*u+this.y*d)},_matMult:function(u){var d=u[2]*this.x+u[3]*this.y;return this.x=u[0]*this.x+u[1]*this.y,this.y=d,this},_add:function(u){return this.x+=u.x,this.y+=u.y,this},_sub:function(u){return this.x-=u.x,this.y-=u.y,this},_mult:function(u){return this.x*=u,this.y*=u,this},_div:function(u){return this.x/=u,this.y/=u,this},_multByPoint:function(u){return this.x*=u.x,this.y*=u.y,this},_divByPoint:function(u){return this.x/=u.x,this.y/=u.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var u=this.y;return this.y=this.x,this.x=-u,this},_rotate:function(u){var d=Math.cos(u),v=Math.sin(u),w=v*this.x+d*this.y;return this.x=d*this.x-v*this.y,this.y=w,this},_rotateAround:function(u,d){var v=Math.cos(u),w=Math.sin(u),D=d.y+w*(this.x-d.x)+v*(this.y-d.y);return this.x=d.x+v*(this.x-d.x)-w*(this.y-d.y),this.y=D,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},f.convert=function(u){return u instanceof f?u:Array.isArray(u)?new f(u[0],u[1]):u},g}typeof SuppressedError=="function"&&SuppressedError;var S,I,k=h(B()),U=function(){if(I)return S;function f(u,d,v,w){this.cx=3*u,this.bx=3*(v-u)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*d,this.by=3*(w-d)-this.cy,this.ay=1-this.cy-this.by,this.p1x=u,this.p1y=d,this.p2x=v,this.p2y=w}return I=1,S=f,f.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,d){if(d===void 0&&(d=1e-6),u<0)return 0;if(u>1)return 1;for(var v=u,w=0;w<8;w++){var D=this.sampleCurveX(v)-u;if(Math.abs(D)<d)return v;var F=this.sampleCurveDerivativeX(v);if(Math.abs(F)<1e-6)break;v-=D/F}var G=0,Z=1;for(v=u,w=0;w<20&&(D=this.sampleCurveX(v),!(Math.abs(D-u)<d));w++)u>D?G=v:Z=v,v=.5*(Z-G)+G;return v},solve:function(u,d){return this.sampleCurveY(this.solveCurveX(u,d))}},S}(),z=h(U);let Y,Q;function ne(){return Y==null&&(Y=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),Y}function X(){if(Q==null&&(Q=!1,ne())){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 d=u.getImageData(0,0,5,5).data;for(let v=0;v<5*5*4;v++)if(v%4!=3&&d[v]!==v){Q=!0;break}}}return Q||!1}var q,J=1e-6,N=typeof Float32Array<"u"?Float32Array:Array;function ie(){var f=new N(9);return N!=Float32Array&&(f[1]=0,f[2]=0,f[3]=0,f[5]=0,f[6]=0,f[7]=0),f[0]=1,f[4]=1,f[8]=1,f}function he(f){return f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1,f}function ce(){var f=new N(3);return N!=Float32Array&&(f[0]=0,f[1]=0,f[2]=0),f}function we(f,u,d){var v=new N(3);return v[0]=f,v[1]=u,v[2]=d,v}function pe(f,u,d){Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(_e[1])} }\`.`)];const Re=[];return f.layerType==="symbol"&&(G==="text-field"&&w&&!w.glyphs&&Re.push(new bt(d,F,'use of "text-field" requires a style "glyphs" property')),G==="text-font"&&YA(Uo(F))&&As(F.type)==="identity"&&Re.push(new bt(d,F,'"text-font" does not support identity functions'))),Re.concat(v({key:f.key,value:F,valueSpec:Ae,style:w,styleSpec:D,expressionContext:"property",propertyType:u,propertyKey:G}))}function JA(f){return hl(f,"paint")}function zu(f){return hl(f,"layout")}function gh(f){let u=[];const d=f.value,v=f.key,w=f.style,D=f.styleSpec;d.type||d.ref||u.push(new bt(v,d,'either "type" or "ref" is required'));let F=As(d.type);const G=As(d.ref);if(d.id){const Z=As(d.id);for(let re=0;re<f.arrayIndex;re++){const Ae=w.layers[re];As(Ae.id)===Z&&u.push(new bt(v,d.id,`duplicate layer id "${d.id}", previously used at line ${Ae.id.__line__}`))}}if("ref"in d){let Z;["type","source","source-layer","filter","layout"].forEach(re=>{re in d&&u.push(new bt(v,d[re],`"${re}" is prohibited for ref layers`))}),w.layers.forEach(re=>{As(re.id)===G&&(Z=re)}),Z?Z.ref?u.push(new bt(v,d.ref,"ref cannot reference another ref layer")):F=As(Z.type):u.push(new bt(v,d.ref,`ref layer "${G}" not found`))}else if(F!=="background")if(d.source){const Z=w.sources&&w.sources[d.source],re=Z&&As(Z.type);Z?re==="vector"&&F==="raster"?u.push(new bt(v,d.source,`layer "${d.id}" requires a raster source`)):re!=="raster-dem"&&F==="hillshade"?u.push(new bt(v,d.source,`layer "${d.id}" requires a raster-dem source`)):re==="raster"&&F!=="raster"?u.push(new bt(v,d.source,`layer "${d.id}" requires a vector source`)):re!=="vector"||d["source-layer"]?re==="raster-dem"&&F!=="hillshade"?u.push(new bt(v,d.source,"raster-dem source can only be used with layer type 'hillshade'.")):F!=="line"||!d.paint||!d.paint["line-gradient"]||re==="geojson"&&Z.lineMetrics||u.push(new bt(v,d,`layer "${d.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):u.push(new bt(v,d,`layer "${d.id}" must specify a "source-layer"`)):u.push(new bt(v,d.source,`source "${d.source}" not found`))}else u.push(new bt(v,d,'missing required property "source"'));return u=u.concat(cs({key:v,value:d,valueSpec:D.layer,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,objectElementValidators:{"*":()=>[],type:()=>f.validateSpec({key:`${v}.type`,value:d.type,valueSpec:D.layer.type,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,object:d,objectKey:"type"}),filter:Nl,layout:Z=>cs({layer:d,key:Z.key,value:Z.value,style:Z.style,styleSpec:Z.styleSpec,validateSpec:Z.validateSpec,objectElementValidators:{"*":re=>zu(Pn({layerType:F},re))}}),paint:Z=>cs({layer:d,key:Z.key,value:Z.value,style:Z.style,styleSpec:Z.styleSpec,validateSpec:Z.validateSpec,objectElementValidators:{"*":re=>JA(Pn({layerType:F},re))}})}})),u}function ju(f){const u=f.value,d=f.key,v=Wi(u);return v!=="string"?[new bt(d,u,`string expected, ${v} found`)]:[]}const ed={promoteId:function({key:f,value:u}){if(Wi(u)==="string")return ju({key:f,value:u});{const d=[];for(const v in u)d.push(...ju({key:`${f}.${v}`,value:u[v]}));return d}}};function ec(f){const u=f.value,d=f.key,v=f.styleSpec,w=f.style,D=f.validateSpec;if(!u.type)return[new bt(d,u,'"type" is required')];const F=As(u.type);let G;switch(F){case"vector":case"raster":return G=cs({key:d,value:u,valueSpec:v[`source_${F.replace("-","_")}`],style:f.style,styleSpec:v,objectElementValidators:ed,validateSpec:D}),G;case"raster-dem":return G=function(Z){var re;const Ae=(re=Z.sourceName)!==null&&re!==void 0?re:"",_e=Z.value,Re=Z.styleSpec,Le=Re.source_raster_dem,je=Z.style;let He=[];const at=Wi(_e);if(_e===void 0)return He;if(at!=="object")return He.push(new bt("source_raster_dem",_e,`object expected, ${at} found`)),He;const vt=As(_e.encoding)==="custom",jt=["redFactor","greenFactor","blueFactor","baseShift"],St=Z.value.encoding?`"${Z.value.encoding}"`:"Default";for(const Ke in _e)!vt&&jt.includes(Ke)?He.push(new bt(Ke,_e[Ke],`In "${Ae}": "${Ke}" is only valid when "encoding" is set to "custom". ${St} encoding found`)):Le[Ke]?He=He.concat(Z.validateSpec({key:Ke,value:_e[Ke],valueSpec:Le[Ke],validateSpec:Z.validateSpec,style:je,styleSpec:Re})):He.push(new bt(Ke,_e[Ke],`unknown property "${Ke}"`));return He}({sourceName:d,value:u,style:f.style,styleSpec:v,validateSpec:D}),G;case"geojson":if(G=cs({key:d,value:u,valueSpec:v.source_geojson,style:w,styleSpec:v,validateSpec:D,objectElementValidators:ed}),u.cluster)for(const Z in u.clusterProperties){const[re,Ae]=u.clusterProperties[Z],_e=typeof re=="string"?[re,["accumulated"],["get",Z]]:re;G.push(...Uu({key:`${d}.${Z}.map`,value:Ae,validateSpec:D,expressionContext:"cluster-map"})),G.push(...Uu({key:`${d}.${Z}.reduce`,value:_e,validateSpec:D,expressionContext:"cluster-reduce"}))}return G;case"video":return cs({key:d,value:u,valueSpec:v.source_video,style:w,validateSpec:D,Line truncated
*/var kV=bb.exports,g7;function TV(){return g7||(g7=1,function(n,e){(function(t,r){n.exports=r()})(kV,function(){var t={},r={};function i(a,o,d){if(r[a]=d,a==="index"){var g="var sharedModule = {}; ("+r.shared+")(sharedModule); ("+r.worker+")(sharedModule);",b={};return r.shared(b),r.index(t,b),typeof window<"u"&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([g],{type:"text/javascript"}))),t}}i("shared",["exports"],function(a){function o(f,u,h,v){return new(h||(h=Promise))(function(w,D){function F(ne){try{Z(v.next(ne))}catch(ce){D(ce)}}function G(ne){try{Z(v.throw(ne))}catch(ce){D(ce)}}function Z(ne){var ce;ne.done?w(ne.value):(ce=ne.value,ce instanceof h?ce:new h(function(Ce){Ce(ce)})).then(F,G)}Z((v=v.apply(f,u||[])).next())})}function d(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var g,b;function E(){if(b)return g;function f(u,h){this.x=u,this.y=h}return b=1,g=f,f.prototype={clone:function(){return new f(this.x,this.y)},add:function(u){return this.clone()._add(u)},sub:function(u){return this.clone()._sub(u)},multByPoint:function(u){return this.clone()._multByPoint(u)},divByPoint:function(u){return this.clone()._divByPoint(u)},mult:function(u){return this.clone()._mult(u)},div:function(u){return this.clone()._div(u)},rotate:function(u){return this.clone()._rotate(u)},rotateAround:function(u,h){return this.clone()._rotateAround(u,h)},matMult:function(u){return this.clone()._matMult(u)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(u){return this.x===u.x&&this.y===u.y},dist:function(u){return Math.sqrt(this.distSqr(u))},distSqr:function(u){var h=u.x-this.x,v=u.y-this.y;return h*h+v*v},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(u){return Math.atan2(this.y-u.y,this.x-u.x)},angleWith:function(u){return this.angleWithSep(u.x,u.y)},angleWithSep:function(u,h){return Math.atan2(this.x*h-this.y*u,this.x*u+this.y*h)},_matMult:function(u){var h=u[2]*this.x+u[3]*this.y;return this.x=u[0]*this.x+u[1]*this.y,this.y=h,this},_add:function(u){return this.x+=u.x,this.y+=u.y,this},_sub:function(u){return this.x-=u.x,this.y-=u.y,this},_mult:function(u){return this.x*=u,this.y*=u,this},_div:function(u){return this.x/=u,this.y/=u,this},_multByPoint:function(u){return this.x*=u.x,this.y*=u.y,this},_divByPoint:function(u){return this.x/=u.x,this.y/=u.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var u=this.y;return this.y=this.x,this.x=-u,this},_rotate:function(u){var h=Math.cos(u),v=Math.sin(u),w=v*this.x+h*this.y;return this.x=h*this.x-v*this.y,this.y=w,this},_rotateAround:function(u,h){var v=Math.cos(u),w=Math.sin(u),D=h.y+w*(this.x-h.x)+v*(this.y-h.y);return this.x=h.x+v*(this.x-h.x)-w*(this.y-h.y),this.y=D,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},f.convert=function(u){return u instanceof f?u:Array.isArray(u)?new f(u[0],u[1]):u},g}typeof SuppressedError=="function"&&SuppressedError;var S,O,k=d(E()),U=function(){if(O)return S;function f(u,h,v,w){this.cx=3*u,this.bx=3*(v-u)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*h,this.by=3*(w-h)-this.cy,this.ay=1-this.cy-this.by,this.p1x=u,this.p1y=h,this.p2x=v,this.p2y=w}return O=1,S=f,f.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,h){if(h===void 0&&(h=1e-6),u<0)return 0;if(u>1)return 1;for(var v=u,w=0;w<8;w++){var D=this.sampleCurveX(v)-u;if(Math.abs(D)<h)return v;var F=this.sampleCurveDerivativeX(v);if(Math.abs(F)<1e-6)break;v-=D/F}var G=0,Z=1;for(v=u,w=0;w<20&&(D=this.sampleCurveX(v),!(Math.abs(D-u)<h));w++)u>D?G=v:Z=v,v=.5*(Z-G)+G;return v},solve:function(u,h){return this.sampleCurveY(this.solveCurveX(u,h))}},S}(),z=d(U);let q,Q;function re(){return q==null&&(q=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),q}function X(){if(Q==null&&(Q=!1,re())){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 h=u.getImageData(0,0,5,5).data;for(let v=0;v<5*5*4;v++)if(v%4!=3&&h[v]!==v){Q=!0;break}}}return Q||!1}var Y,J=1e-6,N=typeof Float32Array<"u"?Float32Array:Array;function ie(){var f=new N(9);return N!=Float32Array&&(f[1]=0,f[2]=0,f[3]=0,f[5]=0,f[6]=0,f[7]=0),f[0]=1,f[4]=1,f[8]=1,f}function he(f){return f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1,f}function de(){var f=new N(3);return N!=Float32Array&&(f[0]=0,f[1]=0,f[2]=0),f}function we(f,u,h){var v=new N(3);return v[0]=f,v[1]=u,v[2]=h,v}function fe(f,u,h){Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(Ce[1])} }\`.`)];const Re=[];return f.layerType==="symbol"&&(G==="text-field"&&w&&!w.glyphs&&Re.push(new _t(h,F,'use of "text-field" requires a style "glyphs" property')),G==="text-font"&&YA(zo(F))&&As(F.type)==="identity"&&Re.push(new _t(h,F,'"text-font" does not support identity functions'))),Re.concat(v({key:f.key,value:F,valueSpec:ce,style:w,styleSpec:D,expressionContext:"property",propertyType:u,propertyKey:G}))}function JA(f){return dl(f,"paint")}function zu(f){return dl(f,"layout")}function gd(f){let u=[];const h=f.value,v=f.key,w=f.style,D=f.styleSpec;h.type||h.ref||u.push(new _t(v,h,'either "type" or "ref" is required'));let F=As(h.type);const G=As(h.ref);if(h.id){const Z=As(h.id);for(let ne=0;ne<f.arrayIndex;ne++){const ce=w.layers[ne];As(ce.id)===Z&&u.push(new _t(v,h.id,`duplicate layer id "${h.id}", previously used at line ${ce.id.__line__}`))}}if("ref"in h){let Z;["type","source","source-layer","filter","layout"].forEach(ne=>{ne in h&&u.push(new _t(v,h[ne],`"${ne}" is prohibited for ref layers`))}),w.layers.forEach(ne=>{As(ne.id)===G&&(Z=ne)}),Z?Z.ref?u.push(new _t(v,h.ref,"ref cannot reference another ref layer")):F=As(Z.type):u.push(new _t(v,h.ref,`ref layer "${G}" not found`))}else if(F!=="background")if(h.source){const Z=w.sources&&w.sources[h.source],ne=Z&&As(Z.type);Z?ne==="vector"&&F==="raster"?u.push(new _t(v,h.source,`layer "${h.id}" requires a raster source`)):ne!=="raster-dem"&&F==="hillshade"?u.push(new _t(v,h.source,`layer "${h.id}" requires a raster-dem source`)):ne==="raster"&&F!=="raster"?u.push(new _t(v,h.source,`layer "${h.id}" requires a vector source`)):ne!=="vector"||h["source-layer"]?ne==="raster-dem"&&F!=="hillshade"?u.push(new _t(v,h.source,"raster-dem source can only be used with layer type 'hillshade'.")):F!=="line"||!h.paint||!h.paint["line-gradient"]||ne==="geojson"&&Z.lineMetrics||u.push(new _t(v,h,`layer "${h.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):u.push(new _t(v,h,`layer "${h.id}" must specify a "source-layer"`)):u.push(new _t(v,h.source,`source "${h.source}" not found`))}else u.push(new _t(v,h,'missing required property "source"'));return u=u.concat(cs({key:v,value:h,valueSpec:D.layer,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,objectElementValidators:{"*":()=>[],type:()=>f.validateSpec({key:`${v}.type`,value:h.type,valueSpec:D.layer.type,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,object:h,objectKey:"type"}),filter:Nl,layout:Z=>cs({layer:h,key:Z.key,value:Z.value,style:Z.style,styleSpec:Z.styleSpec,validateSpec:Z.validateSpec,objectElementValidators:{"*":ne=>zu(Tn({layerType:F},ne))}}),paint:Z=>cs({layer:h,key:Z.key,value:Z.value,style:Z.style,styleSpec:Z.styleSpec,validateSpec:Z.validateSpec,objectElementValidators:{"*":ne=>JA(Tn({layerType:F},ne))}})}})),u}function ju(f){const u=f.value,h=f.key,v=Gi(u);return v!=="string"?[new _t(h,u,`string expected, ${v} found`)]:[]}const eh={promoteId:function({key:f,value:u}){if(Gi(u)==="string")return ju({key:f,value:u});{const h=[];for(const v in u)h.push(...ju({key:`${f}.${v}`,value:u[v]}));return h}}};function ec(f){const u=f.value,h=f.key,v=f.styleSpec,w=f.style,D=f.validateSpec;if(!u.type)return[new _t(h,u,'"type" is required')];const F=As(u.type);let G;switch(F){case"vector":case"raster":return G=cs({key:h,value:u,valueSpec:v[`source_${F.replace("-","_")}`],style:f.style,styleSpec:v,objectElementValidators:eh,validateSpec:D}),G;case"raster-dem":return G=function(Z){var ne;const ce=(ne=Z.sourceName)!==null&&ne!==void 0?ne:"",Ce=Z.value,Re=Z.styleSpec,Le=Re.source_raster_dem,je=Z.style;let He=[];const st=Gi(Ce);if(Ce===void 0)return He;if(st!=="object")return He.push(new _t("source_raster_dem",Ce,`object expected, ${st} found`)),He;const gt=As(Ce.encoding)==="custom",jt=["redFactor","greenFactor","blueFactor","baseShift"],Mt=Z.value.encoding?`"${Z.value.encoding}"`:"Default";for(const Ke in Ce)!gt&&jt.includes(Ke)?He.push(new _t(Ke,Ce[Ke],`In "${ce}": "${Ke}" is only valid when "encoding" is set to "custom". ${Mt} encoding found`)):Le[Ke]?He=He.concat(Z.validateSpec({key:Ke,value:Ce[Ke],valueSpec:Le[Ke],validateSpec:Z.validateSpec,style:je,styleSpec:Re})):He.push(new _t(Ke,Ce[Ke],`unknown property "${Ke}"`));return He}({sourceName:h,value:u,style:f.style,styleSpec:v,validateSpec:D}),G;case"geojson":if(G=cs({key:h,value:u,valueSpec:v.source_geojson,style:w,styleSpec:v,validateSpec:D,objectElementValidators:eh}),u.cluster)for(const Z in u.clusterProperties){const[ne,ce]=u.clusterProperties[Z],Ce=typeof ne=="string"?[ne,["accumulated"],["get",Z]]:ne;G.push(...Uu({key:`${h}.${Z}.map`,value:ce,validateSpec:D,expressionContext:"cluster-map"})),G.push(...Uu({key:`${h}.${Z}.reduce`,value:Ce,validateSpec:D,expressionContext:"cluster-reduce"}))}return G;case"video":return cs({key:h,value:u,valueSpec:v.source_video,style:w,validateSpec:D,Line truncated
precision mediump float;
#else
#if !defined(lowp)
@@ -745,62 +745,62 @@ u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ra
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:wi("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:wi("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:wi("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:wi("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:wi(`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:wi("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 wi(T,l){const c=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,C=l.match(/in ([\w]+) ([\w]+)/g),M=T.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),R=l.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),j=R?R.concat(M):M,$={};return{fragmentSource:T=T.replace(c,(te,oe,be,Ee,Ie)=>($[Ie]=!0,oe==="define"?`
#ifndef HAS_UNIFORM_u_${Ie}
in ${be} ${Ee} ${Ie};
);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:wi("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 wi(T,l){const c=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,C=l.match(/in ([\w]+) ([\w]+)/g),M=T.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),R=l.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),j=R?R.concat(M):M,$={};return{fragmentSource:T=T.replace(c,(te,se,xe,Oe,ke)=>($[ke]=!0,se==="define"?`
#ifndef HAS_UNIFORM_u_${ke}
in ${xe} ${Oe} ${ke};
#else
uniform ${be} ${Ee} u_${Ie};
uniform ${xe} ${Oe} u_${ke};
#endif
`:`
#ifdef HAS_UNIFORM_u_${Ie}
${be} ${Ee} ${Ie} = u_${Ie};
#ifdef HAS_UNIFORM_u_${ke}
${xe} ${Oe} ${ke} = u_${ke};
#endif
`)),vertexSource:l=l.replace(c,(te,oe,be,Ee,Ie)=>{const qe=Ee==="float"?"vec2":"vec4",Ve=Ie.match(/color/)?"color":qe;return $[Ie]?oe==="define"?`
#ifndef HAS_UNIFORM_u_${Ie}
uniform lowp float u_${Ie}_t;
in ${be} ${qe} a_${Ie};
out ${be} ${Ee} ${Ie};
`)),vertexSource:l=l.replace(c,(te,se,xe,Oe,ke)=>{const qe=Oe==="float"?"vec2":"vec4",Ve=ke.match(/color/)?"color":qe;return $[ke]?se==="define"?`
#ifndef HAS_UNIFORM_u_${ke}
uniform lowp float u_${ke}_t;
in ${xe} ${qe} a_${ke};
out ${xe} ${Oe} ${ke};
#else
uniform ${be} ${Ee} u_${Ie};
uniform ${xe} ${Oe} u_${ke};
#endif
`:Ve==="vec4"?`
#ifndef HAS_UNIFORM_u_${Ie}
${Ie} = a_${Ie};
#ifndef HAS_UNIFORM_u_${ke}
${ke} = a_${ke};
#else
${be} ${Ee} ${Ie} = u_${Ie};
${xe} ${Oe} ${ke} = u_${ke};
#endif
`:`
#ifndef HAS_UNIFORM_u_${Ie}
${Ie} = unpack_mix_${Ve}(a_${Ie}, u_${Ie}_t);
#ifndef HAS_UNIFORM_u_${ke}
${ke} = unpack_mix_${Ve}(a_${ke}, u_${ke}_t);
#else
${be} ${Ee} ${Ie} = u_${Ie};
${xe} ${Oe} ${ke} = u_${ke};
#endif
`:oe==="define"?`
#ifndef HAS_UNIFORM_u_${Ie}
uniform lowp float u_${Ie}_t;
in ${be} ${qe} a_${Ie};
`:se==="define"?`
#ifndef HAS_UNIFORM_u_${ke}
uniform lowp float u_${ke}_t;
in ${xe} ${qe} a_${ke};
#else
uniform ${be} ${Ee} u_${Ie};
uniform ${xe} ${Oe} u_${ke};
#endif
`:Ve==="vec4"?`
#ifndef HAS_UNIFORM_u_${Ie}
${be} ${Ee} ${Ie} = a_${Ie};
#ifndef HAS_UNIFORM_u_${ke}
${xe} ${Oe} ${ke} = a_${ke};
#else
${be} ${Ee} ${Ie} = u_${Ie};
${xe} ${Oe} ${ke} = u_${ke};
#endif
`:`
#ifndef HAS_UNIFORM_u_${Ie}
${be} ${Ee} ${Ie} = unpack_mix_${Ve}(a_${Ie}, u_${Ie}_t);
#ifndef HAS_UNIFORM_u_${ke}
${xe} ${Oe} ${ke} = unpack_mix_${Ve}(a_${ke}, u_${ke}_t);
#else
${be} ${Ee} ${Ie} = u_${Ie};
${xe} ${Oe} ${ke} = u_${ke};
#endif
`}),staticAttributes:C,staticUniforms:j}}class Ha{constructor(l,c,C){this.vertexBuffer=l,this.indexBuffer=c,this.segments=C}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var ci=s.aA([{name:"a_pos",type:"Int16",components:2}]);const ca="#define PROJECTION_MERCATOR",iA="mercator";class ls{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return iA}get shaderDefine(){return ca}get shaderPreludeCode(){return ri.projectionMercator}get vertexShaderPreludeCode(){return ri.projectionMercator.vertexSource}get subdivisionGranularity(){return s.aB.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(l){}getMeshFromTileID(l,c,C,M,R){if(this._cachedMesh)return this._cachedMesh;const j=new s.aC;j.emplaceBack(0,0),j.emplaceBack(s.X,0),j.emplaceBack(0,s.X),j.emplaceBack(s.X,s.X);const $=l.createVertexBuffer(j,ci.members),te=s.aD.simpleSegment(0,0,4,2),oe=new s.aE;oe.emplaceBack(1,0,2),oe.emplaceBack(1,2,3);const be=l.createIndexBuffer(oe);return this._cachedMesh=new Ha($,be,te),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(l){}}function Dr(T,l){const c=s.ab(l.lat,-85.051129,s.aF);return new s.P(s.O(l.lng)*T,s.Q(c)*T)}function Ei(T,l){return new s.Y(l.x/T,l.y/T).toLngLat()}function Za(T){return T.cameraToCenterDistance*Math.min(.85*Math.tan(s.aa(90-T.pitch)),Math.tan(s.aa(89.25-T.pitch)))}function Ps(T,l){const c=T.canonical,C=l/s.aG(c.z),M=c.x+Math.pow(2,c.z)*T.wrap,R=s.aq(new Float64Array(16));return s.J(R,R,[M*C,c.y*C,0]),s.K(R,R,[C/s.X,C/s.X,1]),R}function Mo(T,l,c,C,M){const R=s.Y.fromLngLat(T,l),j=M*s.aH(1,T.lat),$=j*Math.cos(s.aa(c)),te=Math.sqrt(j*j-$*$),oe=te*Math.sin(s.aa(-C)),be=te*Math.cos(s.aa(-C));return new s.Y(R.x+oe,R.y+be,R.z+$)}class Ns{constructor(l=0,c=0,C=0,M=0){if(isNaN(l)||l<0||isNaN(c)||c<0||isNaN(C)||C<0||isNaN(M)||M<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=l,this.bottom=c,this.left=C,this.right=M}interpolate(l,c,C){return c.top!=null&&l.top!=null&&(this.top=s.y.number(l.top,c.top,C)),c.bottom!=null&&l.bottom!=null&&(this.bottom=s.y.number(l.bottom,c.bottom,C)),c.left!=null&&l.left!=null&&(this.left=s.y.number(l.left,c.left,C)),c.right!=null&&l.right!=null&&(this.right=s.y.number(l.right,c.right,C)),this}getCenter(l,c){const C=s.ab((this.left+l-this.right)/2,0,l),M=s.ab((this.top+c-this.bottom)/2,0,c);return new s.P(C,M)}equals(l){return this.top===l.top&&this.bottom===l.bottom&&this.left===l.left&&this.right===l.right}clone(){return new Ns(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function du(T,l){if(!T.renderWorldCopies||T.lngRange)return;const c=l.lng-T.center.lng;l.lng+=c>180?-360:c<-180?360:0}function zl(T){return Math.max(0,Math.floor(T))}class ns{constructor(l,c,C,M,R,j){this._callbacks=l,this._tileSize=512,this._renderWorldCopies=j===void 0||!!j,this._minZoom=c||0,this._maxZoom=C||22,this._minPitch=M??0,this._maxPitch=R??60,this.setMaxBounds(),this._width=0,this._height=0,this._center=new s.N(0,0),this._elevation=0,this._zoom=0,this._tileZoom=zl(this._zoom),this._scale=s.aG(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new Ns,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(l,c,C){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=zl(this._zoom),this._scale=s.aG(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 Ns(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=!C&&l.autoCalculateNearFarZ,c&&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 bearingInRadia Line truncated
`),Rt=Et.concat(ri.prelude.vertexSource,$.vertexSource,c.vertexSource).join(`
`);Pi(oe)||(Tt=function(Ht){return Ht.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")}(Tt),Rt=function(Ht){return Ht.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")}(Rt));const zt=oe.createShader(oe.FRAGMENT_SHADER);if(oe.isContextLost())return void(this.failedToCreate=!0);if(oe.shaderSource(zt,Tt),oe.compileShader(zt),!oe.getShaderParameter(zt,oe.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${oe.getShaderInfoLog(zt)}`);oe.attachShader(this.program,zt);const Pt=oe.createShader(oe.VERTEX_SHADER);if(oe.isContextLost())return void(this.failedToCreate=!0);if(oe.shaderSource(Pt,Rt),oe.compileShader(Pt),!oe.getShaderParameter(Pt,oe.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${oe.getShaderInfoLog(Pt)}`);oe.attachShader(this.program,Pt),this.attributes={};const tn={};this.numAttributes=Ie.length;for(let Ht=0;Ht<this.numAttributes;Ht++)Ie[Ht]&&(oe.bindAttribLocation(this.program,Ht,Ie[Ht]),this.attributes[Ie[Ht]]=Ht);if(oe.linkProgram(this.program),!oe.getProgramParameter(this.program,oe.LINK_STATUS))throw new Error(`Program failed to link: ${oe.getProgramInfoLog(this.program)}`);oe.deleteShader(Pt),oe.deleteShader(zt);for(let Ht=0;Ht<yt.length;Ht++){const vn=yt[Ht];if(vn&&!tn[vn]){const _n=oe.getUniformLocation(this.program,vn);_n&&(tn[vn]=_n)}}this.fixedUniforms=M(l,tn),this.terrainUniforms=((Ht,vn)=>({u_depth:new s.bC(Ht,vn.u_depth),u_terrain:new s.bC(Ht,vn.u_terrain),u_terrain_dim:new s.b5(Ht,vn.u_terrain_dim),u_terrain_matrix:new s.bD(Ht,vn.u_terrain_matrix),u_terrain_unpack:new s.bE(Ht,vn.u_terrain_unpack),u_terrain_exaggeration:new s.b5(Ht,vn.u_terrain_exaggeration)}))(l,tn),this.projectionUniforms=((Ht,vn)=>({u_projection_matrix:new s.bD(Ht,vn.u_projection_matrix),u_projection_tile_mercator_coords:new s.bE(Ht,vn.u_projection_tile_mercator_coords),u_projection_clipping_plane:new s.bE(Ht,vn.u_projection_clipping_plane),u_projection_transition:new s.b5(Ht,vn.u_projection_transition),u_projection_fallback_matrix:new s.bD(Ht,vn.u_projection_fallback_matrix)}))(l,tn),this.binderUniforms=C?C.getUniforms(l,tn):[]}draw(l,c,C,M,R,j,$,te,oe,be,Ee,Ie,qe,Ve,At,ot,ct,yt,Et){const Tt=l.gl;if(this.failedToCreate)return;if(l.program.set(this.program),l.setDepthMode(C),l.setStencilMode(M),l.setColorMode(R),l.setCullFace(j),te){l.activeTexture.set(Tt.TEXTURE2),Tt.bindTexture(Tt.TEXTURE_2D,te.depthTexture),l.activeTexture.set(Tt.TEXTURE3),Tt.bindTexture(Tt.TEXTURE_2D,te.texture);for(const zt in this.terrainUniforms)this.terrainUniforms[zt].set(te[zt])}if(oe)for(const zt in oe)this.projectionUniforms[gp[zt]].set(oe[zt]);if($)for(const zt in this.fixedUniforms)this.fixedUniforms[zt].set($[zt]);ot&&ot.setUniforms(l,this.binderUniforms,Ve,{zoom:At});let Rt=0;switch(c){case Tt.LINES:Rt=2;break;case Tt.TRIANGLES:Rt=3;break;case Tt.LINE_STRIP:Rt=1}for(const zt of qe.get()){const Pt=zt.vaos||(zt.vaos={});(Pt[be]||(Pt[be]=new Du)).bind(l,this,Ee,ot?ot.getPaintVertexBuffers():[],Ie,zt.vertexOffset,ct,yt,Et),Tt.drawElements(c,zt.primitiveLength*Rt,Tt.UNSIGNED_SHORT,zt.primitiveOffset*Rt*2)}}}function Lc(T,l,c){const C=1/s.at(c,1,l.transform.tileZoom),M=Math.pow(2,c.tileID.overscaledZ),R=c.tileSize*Math.pow(2,l.transform.tileZoom)/M,j=R*(c.tileID.canonical.x+c.tileID.wrap*M),$=R*c.tileID.canonical.y;return{u_image:0,u_texsize:c.imageAtlasTexture.size,u_scale:[C,T.fromScale,T.toScale],u_fade:T.t,u_pixel_coord_upper:[j>>16,$>>16],u_pixel_coord_lower:[65535&j,65535&$]}}const yp=(T,l,c,C)=>{const M=T.style.light,R=M.properties.get("position"),j=[R.x,R.y,R.z],$=s.bI();M.properties.get("anchor")==="viewport"&&s.bJ($,T.transform.bearingInRadians),s.bK(j,j,$);const te=T.transform.transformLightDirection(j),oe=M.properties.get("color");return{u_lightpos:j,u_lightpos_globe:te,u_lightintensity:M.properties.get("intensity"),u_lightcolor:[oe.r,oe.g,oe.b],u_vertical_gradient:+l,u_opacity:c,u_fill_translate:C}},Rf=(T,l,c,C,M,R,j)=>s.e(yp(T,l,c,C),Lc(R,T,j),{u_height_factor:-Math.pow(2,M.overscaledZ)/j.tileSize/8}),dc=(T,l,c,C)=>s.e(Lc(l,T,c),{u_fill_translate:C}),Zs=(T,l)=>({u_world:T,u_fill_translate:l}),xd=(T,l,c,C,M)=>s.e(dc(T,l,c,M),{u_world:C}),ef=(T,l,c,C,M)=>{const R=T.transform;let j,$,te=0;if(c.paint.get("circle-pitch-alignment")==="map"){const oe=s.at(l,1,R.zoom);j=!0,$=[oe,oe],te=oe/(s.X*Math.pow(2,l.tileID.overscaledZ))*2*Math.PI*M}else j=!1,$=R.pixelsToGLUnits;return{u_camera_to_center_distance:R.cameraToCenterDistance,u_scale_with_map:+(c.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+j,u_device_pixel_ratio:T.pixelRatio,u_extrude_scale:$,u_globe_extrude_scale:te,u_translate:C}},Ah=T=>({u_pixel_extrude_scale:[1/T.width,1/T.height]}),tf=T=>({u_viewport_size:[T.width,T.height]}),ch=(T,l=1)=>({u_color:T,u_overlay:0,u_overlay_scale:l}),fc=(T,l,c,C)=>{const M=s.at(T,1,l)/(s.X*Math.pow(2,T.tileID.overscaledZ))*2*Math.PI*C;return{u_extrude_scale:s.a Line truncated
`}),staticAttributes:C,staticUniforms:j}}class Xa{constructor(l,c,C){this.vertexBuffer=l,this.indexBuffer=c,this.segments=C}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var Ai=o.aA([{name:"a_pos",type:"Int16",components:2}]);const ca="#define PROJECTION_MERCATOR",iA="mercator";class ls{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return iA}get shaderDefine(){return ca}get shaderPreludeCode(){return ri.projectionMercator}get vertexShaderPreludeCode(){return ri.projectionMercator.vertexSource}get subdivisionGranularity(){return o.aB.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(l){}getMeshFromTileID(l,c,C,M,R){if(this._cachedMesh)return this._cachedMesh;const j=new o.aC;j.emplaceBack(0,0),j.emplaceBack(o.X,0),j.emplaceBack(0,o.X),j.emplaceBack(o.X,o.X);const $=l.createVertexBuffer(j,Ai.members),te=o.aD.simpleSegment(0,0,4,2),se=new o.aE;se.emplaceBack(1,0,2),se.emplaceBack(1,2,3);const xe=l.createIndexBuffer(se);return this._cachedMesh=new Xa($,xe,te),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(l){}}function Lr(T,l){const c=o.ab(l.lat,-85.051129,o.aF);return new o.P(o.O(l.lng)*T,o.Q(c)*T)}function Ei(T,l){return new o.Y(l.x/T,l.y/T).toLngLat()}function Ja(T){return T.cameraToCenterDistance*Math.min(.85*Math.tan(o.aa(90-T.pitch)),Math.tan(o.aa(89.25-T.pitch)))}function Ps(T,l){const c=T.canonical,C=l/o.aG(c.z),M=c.x+Math.pow(2,c.z)*T.wrap,R=o.aq(new Float64Array(16));return o.J(R,R,[M*C,c.y*C,0]),o.K(R,R,[C/o.X,C/o.X,1]),R}function So(T,l,c,C,M){const R=o.Y.fromLngLat(T,l),j=M*o.aH(1,T.lat),$=j*Math.cos(o.aa(c)),te=Math.sqrt(j*j-$*$),se=te*Math.sin(o.aa(-C)),xe=te*Math.cos(o.aa(-C));return new o.Y(R.x+se,R.y+xe,R.z+$)}class Ns{constructor(l=0,c=0,C=0,M=0){if(isNaN(l)||l<0||isNaN(c)||c<0||isNaN(C)||C<0||isNaN(M)||M<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=l,this.bottom=c,this.left=C,this.right=M}interpolate(l,c,C){return c.top!=null&&l.top!=null&&(this.top=o.y.number(l.top,c.top,C)),c.bottom!=null&&l.bottom!=null&&(this.bottom=o.y.number(l.bottom,c.bottom,C)),c.left!=null&&l.left!=null&&(this.left=o.y.number(l.left,c.left,C)),c.right!=null&&l.right!=null&&(this.right=o.y.number(l.right,c.right,C)),this}getCenter(l,c){const C=o.ab((this.left+l-this.right)/2,0,l),M=o.ab((this.top+c-this.bottom)/2,0,c);return new o.P(C,M)}equals(l){return this.top===l.top&&this.bottom===l.bottom&&this.left===l.left&&this.right===l.right}clone(){return new Ns(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function hu(T,l){if(!T.renderWorldCopies||T.lngRange)return;const c=l.lng-T.center.lng;l.lng+=c>180?-360:c<-180?360:0}function zl(T){return Math.max(0,Math.floor(T))}class rs{constructor(l,c,C,M,R,j){this._callbacks=l,this._tileSize=512,this._renderWorldCopies=j===void 0||!!j,this._minZoom=c||0,this._maxZoom=C||22,this._minPitch=M??0,this._maxPitch=R??60,this.setMaxBounds(),this._width=0,this._height=0,this._center=new o.N(0,0),this._elevation=0,this._zoom=0,this._tileZoom=zl(this._zoom),this._scale=o.aG(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new Ns,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(l,c,C){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=zl(this._zoom),this._scale=o.aG(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 Ns(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=!C&&l.autoCalculateNearFarZ,c&&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 bearingInRadia Line truncated
`),Pt=St.concat(ri.prelude.vertexSource,$.vertexSource,c.vertexSource).join(`
`);Ri(se)||(kt=function(Vt){return Vt.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")}(kt),Pt=function(Vt){return Vt.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")}(Pt));const Ft=se.createShader(se.FRAGMENT_SHADER);if(se.isContextLost())return void(this.failedToCreate=!0);if(se.shaderSource(Ft,kt),se.compileShader(Ft),!se.getShaderParameter(Ft,se.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${se.getShaderInfoLog(Ft)}`);se.attachShader(this.program,Ft);const Tt=se.createShader(se.VERTEX_SHADER);if(se.isContextLost())return void(this.failedToCreate=!0);if(se.shaderSource(Tt,Pt),se.compileShader(Tt),!se.getShaderParameter(Tt,se.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${se.getShaderInfoLog(Tt)}`);se.attachShader(this.program,Tt),this.attributes={};const Jt={};this.numAttributes=ke.length;for(let Vt=0;Vt<this.numAttributes;Vt++)ke[Vt]&&(se.bindAttribLocation(this.program,Vt,ke[Vt]),this.attributes[ke[Vt]]=Vt);if(se.linkProgram(this.program),!se.getProgramParameter(this.program,se.LINK_STATUS))throw new Error(`Program failed to link: ${se.getProgramInfoLog(this.program)}`);se.deleteShader(Tt),se.deleteShader(Ft);for(let Vt=0;Vt<mt.length;Vt++){const vn=mt[Vt];if(vn&&!Jt[vn]){const _n=se.getUniformLocation(this.program,vn);_n&&(Jt[vn]=_n)}}this.fixedUniforms=M(l,Jt),this.terrainUniforms=((Vt,vn)=>({u_depth:new o.bC(Vt,vn.u_depth),u_terrain:new o.bC(Vt,vn.u_terrain),u_terrain_dim:new o.b5(Vt,vn.u_terrain_dim),u_terrain_matrix:new o.bD(Vt,vn.u_terrain_matrix),u_terrain_unpack:new o.bE(Vt,vn.u_terrain_unpack),u_terrain_exaggeration:new o.b5(Vt,vn.u_terrain_exaggeration)}))(l,Jt),this.projectionUniforms=((Vt,vn)=>({u_projection_matrix:new o.bD(Vt,vn.u_projection_matrix),u_projection_tile_mercator_coords:new o.bE(Vt,vn.u_projection_tile_mercator_coords),u_projection_clipping_plane:new o.bE(Vt,vn.u_projection_clipping_plane),u_projection_transition:new o.b5(Vt,vn.u_projection_transition),u_projection_fallback_matrix:new o.bD(Vt,vn.u_projection_fallback_matrix)}))(l,Jt),this.binderUniforms=C?C.getUniforms(l,Jt):[]}draw(l,c,C,M,R,j,$,te,se,xe,Oe,ke,qe,Ve,ut,ot,At,mt,St){const kt=l.gl;if(this.failedToCreate)return;if(l.program.set(this.program),l.setDepthMode(C),l.setStencilMode(M),l.setColorMode(R),l.setCullFace(j),te){l.activeTexture.set(kt.TEXTURE2),kt.bindTexture(kt.TEXTURE_2D,te.depthTexture),l.activeTexture.set(kt.TEXTURE3),kt.bindTexture(kt.TEXTURE_2D,te.texture);for(const Ft in this.terrainUniforms)this.terrainUniforms[Ft].set(te[Ft])}if(se)for(const Ft in se)this.projectionUniforms[gp[Ft]].set(se[Ft]);if($)for(const Ft in this.fixedUniforms)this.fixedUniforms[Ft].set($[Ft]);ot&&ot.setUniforms(l,this.binderUniforms,Ve,{zoom:ut});let Pt=0;switch(c){case kt.LINES:Pt=2;break;case kt.TRIANGLES:Pt=3;break;case kt.LINE_STRIP:Pt=1}for(const Ft of qe.get()){const Tt=Ft.vaos||(Ft.vaos={});(Tt[xe]||(Tt[xe]=new Du)).bind(l,this,Oe,ot?ot.getPaintVertexBuffers():[],ke,Ft.vertexOffset,At,mt,St),kt.drawElements(c,Ft.primitiveLength*Pt,kt.UNSIGNED_SHORT,Ft.primitiveOffset*Pt*2)}}}function Lc(T,l,c){const C=1/o.at(c,1,l.transform.tileZoom),M=Math.pow(2,c.tileID.overscaledZ),R=c.tileSize*Math.pow(2,l.transform.tileZoom)/M,j=R*(c.tileID.canonical.x+c.tileID.wrap*M),$=R*c.tileID.canonical.y;return{u_image:0,u_texsize:c.imageAtlasTexture.size,u_scale:[C,T.fromScale,T.toScale],u_fade:T.t,u_pixel_coord_upper:[j>>16,$>>16],u_pixel_coord_lower:[65535&j,65535&$]}}const yp=(T,l,c,C)=>{const M=T.style.light,R=M.properties.get("position"),j=[R.x,R.y,R.z],$=o.bI();M.properties.get("anchor")==="viewport"&&o.bJ($,T.transform.bearingInRadians),o.bK(j,j,$);const te=T.transform.transformLightDirection(j),se=M.properties.get("color");return{u_lightpos:j,u_lightpos_globe:te,u_lightintensity:M.properties.get("intensity"),u_lightcolor:[se.r,se.g,se.b],u_vertical_gradient:+l,u_opacity:c,u_fill_translate:C}},Rf=(T,l,c,C,M,R,j)=>o.e(yp(T,l,c,C),Lc(R,T,j),{u_height_factor:-Math.pow(2,M.overscaledZ)/j.tileSize/8}),hc=(T,l,c,C)=>o.e(Lc(l,T,c),{u_fill_translate:C}),Zs=(T,l)=>({u_world:T,u_fill_translate:l}),xh=(T,l,c,C,M)=>o.e(hc(T,l,c,M),{u_world:C}),ef=(T,l,c,C,M)=>{const R=T.transform;let j,$,te=0;if(c.paint.get("circle-pitch-alignment")==="map"){const se=o.at(l,1,R.zoom);j=!0,$=[se,se],te=se/(o.X*Math.pow(2,l.tileID.overscaledZ))*2*Math.PI*M}else j=!1,$=R.pixelsToGLUnits;return{u_camera_to_center_distance:R.cameraToCenterDistance,u_scale_with_map:+(c.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+j,u_device_pixel_ratio:T.pixelRatio,u_extrude_scale:$,u_globe_extrude_scale:te,u_translate:C}},Ad=T=>({u_pixel_extrude_scale:[1/T.width,1/T.height]}),tf=T=>({u_viewport_size:[T.width,T.height]}),cd=(T,l=1)=>({u_color:T,u_overlay:0,u_overlay_scale:l}),fc=(T,l,c,C)=>{const M=o.at(T,1,l)/(o.X*Math.pow(2,T.tileID.overscaledZ))*2*Math.PI*C;return{u_extrude_scale:o.a Line truncated
uniform mat4 u_projection_matrix;
${qe.shaderPreludeCode.vertexSource}`,define:qe.shaderDefine},defaultProjectionData:At},ct=Ie.renderingMode?Ie.renderingMode:"2d";if(j.renderPass==="offscreen"){const yt=Ie.prerender;yt&&(j.setCustomLayerDefaults(),Ee.setColorMode(j.colorModeForRenderPass()),yt.call(Ie,Ee.gl,ot),Ee.setDirty(),j.setBaseState())}else if(j.renderPass==="translucent"){j.setCustomLayerDefaults(),Ee.setColorMode(j.colorModeForRenderPass()),Ee.setStencilMode(Gi.disabled);const yt=ct==="3d"?j.getDepthModeFor3D():j.getDepthModeForSublayer(0,Jr.ReadOnly);Ee.setDepthMode(yt),Ie.render(Ee.gl,ot),Ee.setDirty(),j.setBaseState(),Ee.bindFramebuffer.set(null)}}(l,0,C,R))}saveTileTexture(l){const c=this._tileTextures[l.size[0]];c?c.push(l):this._tileTextures[l.size[0]]=[l]}getTileTexture(l){const c=this._tileTextures[l];return c&&c.length>0?c.pop():null}isPatternMissing(l){if(!l)return!1;if(!l.from||!l.to)return!0;const c=this.imageManager.getPattern(l.from.toString()),C=this.imageManager.getPattern(l.to.toString());return!c||!C}useProgram(l,c,C=!1){this.cache=this.cache||{};const M=!!this.style.map.terrain,R=this.style.projection,j=l+(c?c.cacheKey:"")+`/${C?iA:R.shaderVariantName}`+(this._showOverdrawInspector?"/overdraw":"")+(M?"/terrain":"");return this.cache[j]||(this.cache[j]=new qh(this.context,ri[l],c,dh[l],this._showOverdrawInspector,M,C?ri.projectionMercator:R.shaderPreludeCode,C?ca:R.shaderDefine)),this.cache[j]}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 ie(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:l,drawingBufferHeight:c}=this.context.gl;return this.width!==l||this.height!==c}}function ed(T,l){let c,C=!1,M=null,R=null;const j=()=>{M=null,C&&(T.apply(R,c),M=setTimeout(j,l),C=!1)};return(...$)=>(C=!0,R=this,c=$,M||j(),M)}class ec{constructor(l){this._getCurrentHash=()=>{const c=window.location.hash.replace("#","");if(this._hashName){let C;return c.split("&").map(M=>M.split("=")).forEach(M=>{M[0]===this._hashName&&(C=M)}),(C&&C[1]||"").split("/")}return c.split("/")},this._onHashChange=()=>{const c=this._getCurrentHash();if(!this._isValidHash(c))return!1;const C=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(c[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:C,pitch:+(c[4]||0)}),!0},this._updateHashUnthrottled=()=>{const c=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,c)},this._removeHash=()=>{const c=this._getCurrentHash();if(c.length===0)return;const C=c.join("/");let M=C;M.split("&").length>0&&(M=M.split("&")[0]),this._hashName&&(M=`${this._hashName}=${C}`);let R=window.location.hash.replace(M,"");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=ed(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 c=this._map.getCenter(),C=Math.round(100*this._map.getZoom())/100,M=Math.ceil((C*Math.LN2+Math.log(512/360/.5))/Math.LN10),R=Math.pow(10,M),j=Math.round(c.lng*R)/R,$=Math.round(c.lat*R)/R,te=this._map.getBearing(),oe=this._map.getPitch();let be="";if(be+=l?`/${j}/${$}/${C}`:`${C}/${$}/${j}`,(te||oe)&&(be+="/"+Math.round(10*te)/10),oe&&(be+=`/${Math.round(oe)}`),this._hashName){const Ee=this._hashName;let Ie=!1;const qe=window.location.hash.slice(1).split("&").map(Ve=>{const At=Ve.split("=")[0];return At===Ee?(Ie=!0,`${At}=${be}`):Ve}).filter(Ve=>Ve);return Ie||qe.push(`${Ee}=${be}`),`#${qe.join("&")}`}return`#${be}`}_isValidHash(l){if(l.length<3||l.some(isNaN))return!1;try{new s.N(+l[2],+l[1])}catch{return!1}const c=+l[0],C=+(l[3]||0),M=+(l[4]||0);return c>=this._map.getMinZoom()&&c<=this._map.getMaxZoom()&&C>=0&&C<=180&&M>=this._map.getMinPitch()&&M<=this._map.getMaxPitch()}}const Nu={linearity:.3,easing:s.c6(0,0,.3,1)},Gu=s.e({deceleration:2500,maxSpeed:1400},Nu), Line truncated
${qe.shaderPreludeCode.vertexSource}`,define:qe.shaderDefine},defaultProjectionData:ut},At=ke.renderingMode?ke.renderingMode:"2d";if(j.renderPass==="offscreen"){const mt=ke.prerender;mt&&(j.setCustomLayerDefaults(),Oe.setColorMode(j.colorModeForRenderPass()),mt.call(ke,Oe.gl,ot),Oe.setDirty(),j.setBaseState())}else if(j.renderPass==="translucent"){j.setCustomLayerDefaults(),Oe.setColorMode(j.colorModeForRenderPass()),Oe.setStencilMode(Ni.disabled);const mt=At==="3d"?j.getDepthModeFor3D():j.getDepthModeForSublayer(0,Jr.ReadOnly);Oe.setDepthMode(mt),ke.render(Oe.gl,ot),Oe.setDirty(),j.setBaseState(),Oe.bindFramebuffer.set(null)}}(l,0,C,R))}saveTileTexture(l){const c=this._tileTextures[l.size[0]];c?c.push(l):this._tileTextures[l.size[0]]=[l]}getTileTexture(l){const c=this._tileTextures[l];return c&&c.length>0?c.pop():null}isPatternMissing(l){if(!l)return!1;if(!l.from||!l.to)return!0;const c=this.imageManager.getPattern(l.from.toString()),C=this.imageManager.getPattern(l.to.toString());return!c||!C}useProgram(l,c,C=!1){this.cache=this.cache||{};const M=!!this.style.map.terrain,R=this.style.projection,j=l+(c?c.cacheKey:"")+`/${C?iA:R.shaderVariantName}`+(this._showOverdrawInspector?"/overdraw":"")+(M?"/terrain":"");return this.cache[j]||(this.cache[j]=new qd(this.context,ri[l],c,hd[l],this._showOverdrawInspector,M,C?ri.projectionMercator:R.shaderPreludeCode,C?ca:R.shaderDefine)),this.cache[j]}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 ie(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:l,drawingBufferHeight:c}=this.context.gl;return this.width!==l||this.height!==c}}function eh(T,l){let c,C=!1,M=null,R=null;const j=()=>{M=null,C&&(T.apply(R,c),M=setTimeout(j,l),C=!1)};return(...$)=>(C=!0,R=this,c=$,M||j(),M)}class ec{constructor(l){this._getCurrentHash=()=>{const c=window.location.hash.replace("#","");if(this._hashName){let C;return c.split("&").map(M=>M.split("=")).forEach(M=>{M[0]===this._hashName&&(C=M)}),(C&&C[1]||"").split("/")}return c.split("/")},this._onHashChange=()=>{const c=this._getCurrentHash();if(!this._isValidHash(c))return!1;const C=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(c[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:C,pitch:+(c[4]||0)}),!0},this._updateHashUnthrottled=()=>{const c=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,c)},this._removeHash=()=>{const c=this._getCurrentHash();if(c.length===0)return;const C=c.join("/");let M=C;M.split("&").length>0&&(M=M.split("&")[0]),this._hashName&&(M=`${this._hashName}=${C}`);let R=window.location.hash.replace(M,"");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=eh(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 c=this._map.getCenter(),C=Math.round(100*this._map.getZoom())/100,M=Math.ceil((C*Math.LN2+Math.log(512/360/.5))/Math.LN10),R=Math.pow(10,M),j=Math.round(c.lng*R)/R,$=Math.round(c.lat*R)/R,te=this._map.getBearing(),se=this._map.getPitch();let xe="";if(xe+=l?`/${j}/${$}/${C}`:`${C}/${$}/${j}`,(te||se)&&(xe+="/"+Math.round(10*te)/10),se&&(xe+=`/${Math.round(se)}`),this._hashName){const Oe=this._hashName;let ke=!1;const qe=window.location.hash.slice(1).split("&").map(Ve=>{const ut=Ve.split("=")[0];return ut===Oe?(ke=!0,`${ut}=${xe}`):Ve}).filter(Ve=>Ve);return ke||qe.push(`${Oe}=${xe}`),`#${qe.join("&")}`}return`#${xe}`}_isValidHash(l){if(l.length<3||l.some(isNaN))return!1;try{new o.N(+l[2],+l[1])}catch{return!1}const c=+l[0],C=+(l[3]||0),M=+(l[4]||0);return c>=this._map.getMinZoom()&&c<=this._map.getMaxZoom()&&C>=0&&C<=180&&M>=this._map.getMinPitch()&&M<=this._map.getMaxPitch()}}const Nu={linearity:.3,easing:o.c6(0,0,.3,1)},Gu=o.e({deceleration:2500,maxSpeed:1400},Nu), Line truncated
${e} <span></span>
`,ea().s[12]++,this._textEl=this._container.querySelector("span"),ea().s[13]++,this.updateZoomLevel()}addEventListeners(){ea().f[4]++,ea().s[14]++,this._map.on("render",()=>(ea().f[5]++,ea().s[15]++,this.updateZoomLevel())),ea().s[16]++,this._map.on("zoomIn",()=>(ea().f[6]++,ea().s[17]++,this.updateZoomLevel())),ea().s[18]++,this._map.on("zoomOut",()=>(ea().f[7]++,ea().s[19]++,this.updateZoomLevel()))}onRemove(){ea().f[8]++,ea().s[20]++,this._container.parentNode.removeChild(this._container),ea().s[21]++,this._map=void 0}}function r6(n,e,t){const r={id:[e,t,"circle"].join("_"),source:e,type:"circle",paint:{"circle-color":n,"circle-radius":2},filter:["==","$type","Point"]};return t&&(r["source-layer"]=t),r}function i6(n,e,t,r){const i={id:[t,r,"polygon"].join("_"),source:t,type:"fill",paint:{"fill-color":n,"fill-antialias":!0,"fill-outline-color":n},filter:["==","$type","Polygon"]};return r&&(i["source-layer"]=r),i}function o6(n,e,t){const r={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&&(r["source-layer"]=t),r}function JV(n,e){const t=[],r=[],i=[];function o(a){return{circle:e(a,.8),line:e(a,.6),polygon:e(a,.3),polygonOutline:e(a,.6),default:e(a,1)}}return Object.keys(n).forEach(a=>{const s=n[a];if(!s||s.length===0){const h=o(a);r.push(r6(h.circle,a)),i.push(o6(h.line,a)),t.push(i6(h.polygon,h.polygonOutline,a))}else s.forEach(h=>{const g=o(h);r.push(r6(g.circle,a,h)),i.push(o6(g.line,a,h)),t.push(i6(g.polygon,g.polygonOutline,a,h))})}),t.concat(i).concat(r)}function eH(n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const r={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},i={};return Object.keys(n.sources).forEach(o=>{const a=n.sources[o];(a.type==="vector"||a.type==="geojson")&&(i[o]=a)}),Object.assign(n,{layers:[r].concat(e),sources:i})}const c4={polygonLayer:i6,lineLayer:o6,circleLayer:r6,generateInspectStyle:eH,generateColoredLayers:JV};function mo(){var n="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",e="aec0f701e803624fae461cc89b5fc887ff556587",t=globalThis,r="__coverage__",i={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}},{s Line truncated
`,ea().s[12]++,this._textEl=this._container.querySelector("span"),ea().s[13]++,this.updateZoomLevel()}addEventListeners(){ea().f[4]++,ea().s[14]++,this._map.on("render",()=>(ea().f[5]++,ea().s[15]++,this.updateZoomLevel())),ea().s[16]++,this._map.on("zoomIn",()=>(ea().f[6]++,ea().s[17]++,this.updateZoomLevel())),ea().s[18]++,this._map.on("zoomOut",()=>(ea().f[7]++,ea().s[19]++,this.updateZoomLevel()))}onRemove(){ea().f[8]++,ea().s[20]++,this._container.parentNode.removeChild(this._container),ea().s[21]++,this._map=void 0}}function b6(n,e,t){const r={id:[e,t,"circle"].join("_"),source:e,type:"circle",paint:{"circle-color":n,"circle-radius":2},filter:["==","$type","Point"]};return t&&(r["source-layer"]=t),r}function x6(n,e,t,r){const i={id:[t,r,"polygon"].join("_"),source:t,type:"fill",paint:{"fill-color":n,"fill-antialias":!0,"fill-outline-color":n},filter:["==","$type","Polygon"]};return r&&(i["source-layer"]=r),i}function w6(n,e,t){const r={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&&(r["source-layer"]=t),r}function WH(n,e){const t=[],r=[],i=[];function s(a){return{circle:e(a,.8),line:e(a,.6),polygon:e(a,.3),polygonOutline:e(a,.6),default:e(a,1)}}return Object.keys(n).forEach(a=>{const o=n[a];if(!o||o.length===0){const d=s(a);r.push(b6(d.circle,a)),i.push(w6(d.line,a)),t.push(x6(d.polygon,d.polygonOutline,a))}else o.forEach(d=>{const g=s(d);r.push(b6(g.circle,a,d)),i.push(w6(g.line,a,d)),t.push(x6(g.polygon,g.polygonOutline,a,d))})}),t.concat(i).concat(r)}function QH(n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const r={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},i={};return Object.keys(n.sources).forEach(s=>{const a=n.sources[s];(a.type==="vector"||a.type==="geojson")&&(i[s]=a)}),Object.assign(n,{layers:[r].concat(e),sources:i})}const d4={polygonLayer:x6,lineLayer:w6,circleLayer:b6,generateInspectStyle:QH,generateColoredLayers:WH};function mo(){var n="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",e="aec0f701e803624fae461cc89b5fc887ff556587",t=globalThis,r="__coverage__",i={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}},{s 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
@@ -813,15 +813,15 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */function d4(n,e,t,r){return new(t||(t=Promise))(function(i,o){function a(g){try{h(r.next(g))}catch(b){o(b)}}function s(g){try{h(r.throw(g))}catch(b){o(b)}}function h(g){g.done?i(g.value):new t(function(b){b(g.value)}).then(a,s)}h((r=r.apply(n,e||[])).next())})}var FC=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function ux(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var f4,v7;function KF(){if(v7)return f4;v7=1,f4=e;var n=Object.prototype.hasOwnProperty;function e(){for(var t={},r=0;r<arguments.length;r++){var i=arguments[r];for(var o in i)n.call(i,o)&&(t[o]=i[o])}return t}return f4}var p4={exports:{}},_7;function nH(){return _7||(_7=1,function(n,e){(function(){var t={};n.exports=t,t.simpleFilter=function(r,i){return i.filter(function(o){return t.test(r,o)})},t.test=function(r,i){return t.match(r,i)!==null},t.match=function(r,i,o){o=o||{};var a=0,s=[],h=i.length,g=0,b=0,B=o.pre||"",S=o.post||"",I=o.caseSensitive&&i||i.toLowerCase(),k;r=o.caseSensitive&&r||r.toLowerCase();for(var U=0;U<h;U++)k=i[U],I[U]===r[a]?(k=B+k+S,a+=1,b+=1+b):b=0,g+=b,s[s.length]=k;return a===r.length?(g=I===r?1/0:g,{rendered:s.join(""),score:g}):null},t.filter=function(r,i,o){return!i||i.length===0?[]:typeof r!="string"?i:(o=o||{},i.reduce(function(a,s,h,g){var b=s;o.extract&&(b=o.extract(s));var B=t.match(r,b,o);return B!=null&&(a[a.length]={string:B.rendered,score:B.score,index:h,original:s}),a},[]).sort(function(a,s){var h=s.score-a.score;return h||a.index-s.index}))}})()}(p4)),p4.exports}var m4,C7;function rH(){if(C7)return m4;C7=1;var n=function(e){return this.component=e,this.items=[],this.active=e.options.noInitialSelection?-1:0,this.wrapper=document.createElement("div"),this.wrapper.className="suggestions-wrapper",this.element=document.createElement("ul"),this.element.className="suggestions",this.wrapper.appendChild(this.element),this.selectingListItem=!1,e.el.parentNode.insertBefore(this.wrapper,e.el.nextSibling),this};return n.prototype.show=function(){this.element.style.display="block"},n.prototype.hide=function(){this.element.style.display="none"},n.prototype.add=function(e){this.items.push(e)},n.prototype.clear=function(){this.items=[],this.active=this.component.options.noInitialSelection?-1:0},n.prototype.isEmpty=function(){return!this.items.length},n.prototype.isVisible=function(){return this.element.style.display==="block"},n.prototype.draw=function(){if(this.element.innerHTML="",this.items.length===0){this.hide();return}for(var e=0;e<this.items.length;e++)this.drawItem(this.items[e],this.active===e);this.show()},n.prototype.drawItem=function(e,t){var r=document.createElement("li"),i=document.createElement("a");t&&(r.className+=" active"),i.innerHTML=e.string,r.appendChild(i),this.element.appendChild(r),r.addEventListener("mousedown",(function(){this.selectingListItem=!0}).bind(this)),r.addEventListener("mouseup",(function(){this.handleMouseUp.call(this,e)}).bind(this))},n.prototype.handleMouseUp=function(e){this.selectingListItem=!1,this.component.value(e.original),this.clear(),this.draw()},n.prototype.move=function(e){this.active=e,this.draw()},n.prototype.previous=function(){this.move(this.active<=0?this.items.length-1:this.active-1)},n.prototype.next=function(){this.move(this.active>=this.items.length-1?0:this.active+1)},n.prototype.drawError=function(e){var t=document.createElement("li");t.innerHTML=e,this.element.appendChild(t),this.show()},m4=n,m4}var g4,b7;function iH(){if(b7)return g4;b7=1;var n=KF(),e=nH(),t=rH(),r=function(i,o,a){return a=a||{},this.options=n({minLength:2,limit:5,filter:!0,hideOnBlur:!0,noInitialSelection:!0},a),this.el=i,this.data=o||[],this.list=new t(this),this.query="",this.selected=null,this.list.draw(),this.el.addEventListener("keyup",(function(s){this.handleKeyUp(s.keyCode,s)}).bind(this),!1),this.el.addEventListener("keydown",(function(s){this.handleKeyDown(s)}).bind(this)),this.el.addEventListener("focus",(function(){this.handleFocus()}).bind(this)),this.el.addEventListener("blur",(function(){this.handleBlur()}).bind(this)),this.el.addEventListener("paste",(function(s){this.handlePaste(s)}).bind(this)),this.render=this.options.render?this.options.render.bind(this):this.render.bind(this),this.getItemValue=this.options.getItemValue?this.options.getItemValue.bind(this):this.getItemValue.bind(this),this};return r.prototype.handleKeyUp=function(i,o){if(!(i===40||i===38||i===27||i===9)){if(i===13){this.list.items[this.list.active]&&(this.list.handleMouseUp(this.list.items[this.list.active]),o.stopPropagation());return}this.handleInputChange(this.el.value)}},r.prototype.handleKeyDown=function(i){switch(i.keyCode){case 13:this.list.active>=0&&(this.list.selectingListItem=!0);break;case 9:this.list.isEmpty()||(this.list.isVisible()&&i.preventDefault(),this.value(this.list.active>=0?this.list.items[this.list.activeLine truncated
`);s(k,U,z)?(D_(l6),D1=null,a6=void 0,Dp.set(I,100)):(Dp.set(I,Dp.get(I)+1,!0),g=!1)}}g&&(clearInterval(o),o=void 0)}return function(g){const b=qF(g);if(!b)return;const B=b.families;for(let S=0,I=B.length;S<I;++S){const k=B[S],U=b.style+`
***************************************************************************** */function f4(n,e,t,r){return new(t||(t=Promise))(function(i,s){function a(g){try{d(r.next(g))}catch(b){s(b)}}function o(g){try{d(r.throw(g))}catch(b){s(b)}}function d(g){g.done?i(g.value):new t(function(b){b(g.value)}).then(a,o)}d((r=r.apply(n,e||[])).next())})}var FC=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function lx(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var p4,L7;function gU(){if(L7)return p4;L7=1,p4=e;var n=Object.prototype.hasOwnProperty;function e(){for(var t={},r=0;r<arguments.length;r++){var i=arguments[r];for(var s in i)n.call(i,s)&&(t[s]=i[s])}return t}return p4}var m4={exports:{}},F7;function YH(){return F7||(F7=1,function(n,e){(function(){var t={};n.exports=t,t.simpleFilter=function(r,i){return i.filter(function(s){return t.test(r,s)})},t.test=function(r,i){return t.match(r,i)!==null},t.match=function(r,i,s){s=s||{};var a=0,o=[],d=i.length,g=0,b=0,E=s.pre||"",S=s.post||"",O=s.caseSensitive&&i||i.toLowerCase(),k;r=s.caseSensitive&&r||r.toLowerCase();for(var U=0;U<d;U++)k=i[U],O[U]===r[a]?(k=E+k+S,a+=1,b+=1+b):b=0,g+=b,o[o.length]=k;return a===r.length?(g=O===r?1/0:g,{rendered:o.join(""),score:g}):null},t.filter=function(r,i,s){return!i||i.length===0?[]:typeof r!="string"?i:(s=s||{},i.reduce(function(a,o,d,g){var b=o;s.extract&&(b=s.extract(o));var E=t.match(r,b,s);return E!=null&&(a[a.length]={string:E.rendered,score:E.score,index:d,original:o}),a},[]).sort(function(a,o){var d=o.score-a.score;return d||a.index-o.index}))}})()}(m4)),m4.exports}var g4,U7;function $H(){if(U7)return g4;U7=1;var n=function(e){return this.component=e,this.items=[],this.active=e.options.noInitialSelection?-1:0,this.wrapper=document.createElement("div"),this.wrapper.className="suggestions-wrapper",this.element=document.createElement("ul"),this.element.className="suggestions",this.wrapper.appendChild(this.element),this.selectingListItem=!1,e.el.parentNode.insertBefore(this.wrapper,e.el.nextSibling),this};return n.prototype.show=function(){this.element.style.display="block"},n.prototype.hide=function(){this.element.style.display="none"},n.prototype.add=function(e){this.items.push(e)},n.prototype.clear=function(){this.items=[],this.active=this.component.options.noInitialSelection?-1:0},n.prototype.isEmpty=function(){return!this.items.length},n.prototype.isVisible=function(){return this.element.style.display==="block"},n.prototype.draw=function(){if(this.element.innerHTML="",this.items.length===0){this.hide();return}for(var e=0;e<this.items.length;e++)this.drawItem(this.items[e],this.active===e);this.show()},n.prototype.drawItem=function(e,t){var r=document.createElement("li"),i=document.createElement("a");t&&(r.className+=" active"),i.innerHTML=e.string,r.appendChild(i),this.element.appendChild(r),r.addEventListener("mousedown",(function(){this.selectingListItem=!0}).bind(this)),r.addEventListener("mouseup",(function(){this.handleMouseUp.call(this,e)}).bind(this))},n.prototype.handleMouseUp=function(e){this.selectingListItem=!1,this.component.value(e.original),this.clear(),this.draw()},n.prototype.move=function(e){this.active=e,this.draw()},n.prototype.previous=function(){this.move(this.active<=0?this.items.length-1:this.active-1)},n.prototype.next=function(){this.move(this.active>=this.items.length-1?0:this.active+1)},n.prototype.drawError=function(e){var t=document.createElement("li");t.innerHTML=e,this.element.appendChild(t),this.show()},g4=n,g4}var y4,z7;function VH(){if(z7)return y4;z7=1;var n=gU(),e=YH(),t=$H(),r=function(i,s,a){return a=a||{},this.options=n({minLength:2,limit:5,filter:!0,hideOnBlur:!0,noInitialSelection:!0},a),this.el=i,this.data=s||[],this.list=new t(this),this.query="",this.selected=null,this.list.draw(),this.el.addEventListener("keyup",(function(o){this.handleKeyUp(o.keyCode,o)}).bind(this),!1),this.el.addEventListener("keydown",(function(o){this.handleKeyDown(o)}).bind(this)),this.el.addEventListener("focus",(function(){this.handleFocus()}).bind(this)),this.el.addEventListener("blur",(function(){this.handleBlur()}).bind(this)),this.el.addEventListener("paste",(function(o){this.handlePaste(o)}).bind(this)),this.render=this.options.render?this.options.render.bind(this):this.render.bind(this),this.getItemValue=this.options.getItemValue?this.options.getItemValue.bind(this):this.getItemValue.bind(this),this};return r.prototype.handleKeyUp=function(i,s){if(!(i===40||i===38||i===27||i===9)){if(i===13){this.list.items[this.list.active]&&(this.list.handleMouseUp(this.list.items[this.list.active]),s.stopPropagation());return}this.handleInputChange(this.el.value)}},r.prototype.handleKeyDown=function(i){switch(i.keyCode){case 13:this.list.active>=0&&(this.list.selectingListItem=!0);break;case 9:this.list.isEmpty()||(this.list.isVisible()&&i.preventDefault(),this.value(this.list.active>=0?this.list.items[this.list.activeLine truncated
`);o(k,U,z)?(L_(E6),L1=null,S6=void 0,Dp.set(O,100)):(Dp.set(O,Dp.get(O)+1,!0),g=!1)}}g&&(clearInterval(s),s=void 0)}return function(g){const b=BU(g);if(!b)return;const E=b.families;for(let S=0,O=E.length;S<O;++S){const k=E[S],U=b.style+`
`+b.weight+`
`+k;Dp.get(U)===void 0&&(Dp.set(U,100,!0),s(b.style,b.weight,k)||(Dp.set(U,0,!0),o===void 0&&(o=setInterval(h,32))))}}}(),ZH=function(){let n;return function(e){let t=l6[e];if(t==null){if(IB){const r=qF(e),i=VF(e,"Žg");t=(isNaN(Number(r.lineHeight))?1.2:Number(r.lineHeight))*(i.actualBoundingBoxAscent+i.actualBoundingBoxDescent)}else n||(n=document.createElement("div"),n.innerHTML="M",n.style.minHeight="0",n.style.maxHeight="none",n.style.height="auto",n.style.padding="0",n.style.border="none",n.style.position="absolute",n.style.display="block",n.style.left="-99999px"),n.style.font=e,document.body.appendChild(n),t=n.offsetHeight,document.body.removeChild(n);l6[e]=t}return t}}();function VF(n,e){return D1||(D1=Jl(1,1)),n!=a6&&(D1.font=n,a6=D1.font),D1.measureText(e)}function n2(n,e){return VF(n,e).width}function F7(n,e,t){if(e in t)return t[e];const r=e.split(`
`).reduce((i,o)=>Math.max(i,n2(n,o)),0);return t[e]=r,r}function XH(n,e){const t=[],r=[],i=[];let o=0,a=0,s=0,h=0;for(let g=0,b=e.length;g<=b;g+=2){const B=e[g];if(B===`
`||g===b){o=Math.max(o,a),i.push(a),a=0,s+=h,h=0;continue}const S=e[g+1]||n.font,I=n2(S,B);t.push(I),a+=I;const k=ZH(S);r.push(k),h=Math.max(h,k)}return{width:o,height:s,widths:t,heights:r,lineWidths:i}}function JH(n,e,t,r,i,o,a,s,h,g,b){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=B=>B.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),r.contextInstructions?(n.translate(h,g),n.scale(b[0],b[1]),eZ(r,n)):b[0]<0||b[1]<0?(n.translate(h,g),n.scale(b[0],b[1]),n.drawImage(r,i,o,a,s,0,0,a,s)):n.drawImage(r,i,o,a,s,h,g,a*b[0],s*b[1]),n.restore()}function eZ(n,e){const t=n.contextInstructions;for(let r=0,i=t.length;r<i;r+=2)Array.isArray(t[r+1])?e[t[r]].apply(e,t[r+1]):e[t[r]]=t[r+1]}class fx extends hx{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()?fi.LOADING:fi.LOADED,this.imageState_===fi.LOADING&&this.ready().then(()=>this.imageState_=fi.LOADED),this.render()}clone(){const e=this.getScale(),t=new fx({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(),r=this.getScaleArray();return[e[0]/2-t[0]/r[0],e[1]/2+t[1]/r[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){var o,a;const t=(o=this.fill_)==null?void 0:o.getKey(),r=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(",");let i=(a=Sf.get(r,null,null))==null?void 0:a.getImage(1);if(!i){const s=this.renderOptions_,h=Math.ceil(s.size*e),g=Jl(h,h);this.draw_(s,g,e),i=g.canvas,Sf.set(r,null,null,new QF(i,void 0,null,fi.LOADED,null))}return i}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,r){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let i=this.radius,o=this.radius2_===void 0?i:this.radius2_;if(i<o){const J=i;i=o,o=J}const a=this.radius2_===void 0?this.points_:this.points_*2,s=2*Math.PI/a,h=o*Math.sin(s),g=Math.sqrt(o*o-h*h),b=i-g,B=Math.sqrt(h*h+b*b),S=B/h;if(e==="miter"&&S<=r)return S*t;const I=t/2/S,k=t/2*(b/B),z=Math.sqrt((i+I)*(i+I)+k*k)-i;if(this.radius2_===void 0||e==="bevel")return z*2;const Y=i*Math.sin(s),Q=Math.sqrt(i*i-Y*Y),ne=o-Q,q=Math.sqrt(Y*Y+ne*ne)/Y;if(q<=r){const J=q*t/2-o-i;return 2*Math.max(z,J)}return z*2}createRenderOptions(){let e=Cy,t=by,r=0,i=null,o=0,a,s=0;this.stroke_&&(a=qp(this.stroke_.getColor()??s_),s=this.stroke_.getWidth()??l_,i=this.stroke_.getLineDash(),o=this.stroke_.getLineDashOffset()??0,t=this.stroke_.getLineJoin()??by,e=this.stroke_.getLineCap()??Cy,r=this.stroke_.getMiterLimit()??o_);const h=this.calculateLineJoinSize_(t,s,r),g=Math.max(this.radius,this.radius2_||0),b=Math.ceil(2*g+h);return{strokeStyle:a,strokeWidth:s,size:b,lineCap:e,lineDash:i,lineDashOffset:o,lineJoin:t,miterLimit:r}}render(){this.renderOptions_=this.createRenderOptions();const e=this.renderOptions_.size;this.hitDetectionCanvas_=null,this.size_=[e,e]}draw_(e,t,r){if(t.scale(r,r),t.translate(e.size/2,e.size/2),this.createPath_(t),this.fill_){let i=this.fill_.getColor();i===null&&(i=md),t.fillStyle=qp(i),t.fill()}e.strokeStyle&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke())}createHitDetectionCanvas_(e){let t;if(this.fill_){let r=this.fill_.getColor(),i=0;typeof r=="string"&&(r=vy(r)),r===null?i=1:Array.isArray(r)&&(i=r.length===4?r[3]:1),i===0&&(t=Jl(e.size,e.size),this.drawHitDetectionCanvas_(e,t))}return t?t.canvas:this.getImage(1)}createPath_(e){let t=this.points_;const r=thi Line truncated
`,""),n.push(e,""),n}class xJ{constructor(e,t,r,i,o){this.overlaps=r,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=_d(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=o?new AO:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,r,i){const o=e+t+r+i;if(this.labels_[o])return this.labels_[o];const a=i?this.strokeStates[i]:null,s=r?this.fillStates[r]:null,h=this.textStates[t],g=this.pixelRatio,b=[h.scale[0]*g,h.scale[1]*g],B=h.justify?d2[h.justify]:R4(Array.isArray(e)?e[0]:e,h.textAlign||a_),S=i&&a.lineWidth?a.lineWidth:0,I=Array.isArray(e)?e:String(e).split(`
`).reduce(bJ,[]),{width:k,height:U,widths:z,heights:Y,lineWidths:Q}=XH(h,I),ne=k+S,X=[],q=(ne+2)*b[0],J=(U+S)*b[1],N={width:q<0?Math.floor(q):Math.ceil(q),height:J<0?Math.floor(J):Math.ceil(J),contextInstructions:X};(b[0]!=1||b[1]!=1)&&X.push("scale",b),i&&(X.push("strokeStyle",a.strokeStyle),X.push("lineWidth",S),X.push("lineCap",a.lineCap),X.push("lineJoin",a.lineJoin),X.push("miterLimit",a.miterLimit),X.push("setLineDash",[a.lineDash]),X.push("lineDashOffset",a.lineDashOffset)),r&&X.push("fillStyle",s.fillStyle),X.push("textBaseline","middle"),X.push("textAlign","center");const ie=.5-B;let he=B*ne+ie*S;const ce=[],we=[];let pe=0,Ce=0,Pe=0,de=0,rt;for(let ze=0,Qe=I.length;ze<Qe;ze+=2){const ut=I[ze];if(ut===`
`){Ce+=pe,pe=0,he=B*ne+ie*S,++de;continue}const Te=I[ze+1]||h.font;Te!==rt&&(i&&ce.push("font",Te),r&&we.push("font",Te),rt=Te),pe=Math.max(pe,Y[Pe]);const Ue=[ut,he+ie*z[Pe]+B*(z[Pe]-Q[de]),.5*(S+pe)+Ce];he+=z[Pe],i&&ce.push("strokeText",Ue),r&&we.push("fillText",Ue),++Pe}return Array.prototype.push.apply(X,ce),Array.prototype.push.apply(X,we),this.labels_[o]=N,N}replayTextBackground_(e,t,r,i,o,a,s){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,o),e.lineTo.apply(e,t),a&&(this.alignAndScaleFill_=a[2],this.fill_(e)),s&&(this.setStrokeStyle_(e,s),e.stroke())}calculateImageOrLabelDimensions_(e,t,r,i,o,a,s,h,g,b,B,S,I,k,U,z){s*=S[0],h*=S[1];let Y=r-s,Q=i-h;const ne=o+g>e?e-g:o,X=a+b>t?t-b:a,q=k[3]+ne*S[0]+k[1],J=k[0]+X*S[1]+k[2],N=Y-k[3],ie=Q-k[0];(U||B!==0)&&(A0[0]=N,c0[0]=N,A0[1]=ie,Bm[1]=ie,Bm[0]=N+q,Om[0]=Bm[0],Om[1]=ie+J,c0[1]=Om[1]);let he;return B!==0?(he=em(_d(),r,i,1,1,B,-r,-i),yA(he,A0),yA(he,Bm),yA(he,Om),yA(he,c0),Gm(Math.min(A0[0],Bm[0],Om[0],c0[0]),Math.min(A0[1],Bm[1],Om[1],c0[1]),Math.max(A0[0],Bm[0],Om[0],c0[0]),Math.max(A0[1],Bm[1],Om[1],c0[1]),l1)):Gm(Math.min(N,N+q),Math.min(ie,ie+J),Math.max(N,N+q),Math.max(ie,ie+J),l1),I&&(Y=Math.round(Y),Q=Math.round(Q)),{drawImageX:Y,drawImageY:Q,drawImageW:ne,drawImageH:X,originX:g,originY:b,declutterBox:{minX:l1[0],minY:l1[1],maxX:l1[2],maxY:l1[3],value:z},canvasTransform:he,scale:S}}replayImageOrLabel_(e,t,r,i,o,a,s){const h=!!(a||s),g=i.declutterBox,b=s?s[2]*i.scale[0]/2:0;return g.minX-b<=t[0]&&g.maxX+b>=0&&g.minY-b<=t[1]&&g.maxY+b>=0&&(h&&this.replayTextBackground_(e,A0,Bm,Om,c0,a,s),JH(e,i.canvasTransform,o,r,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const r=yA(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;e.save(),e.translate(r[0]%i,r[1]%i),t!==1&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=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,r,i){const o=this.textStates[t],a=this.createLabel(e,t,i,r),s=this.strokeStates[r],h=this.pixelRatio,g=R4(Array.isArray(e)?e[0]:e,o.textAlign||a_),b=d2[o.textBaseline||t2],B=s&&s.lineWidth?s.lineWidth:0,S=a.width/h-2*o.scale[0],I=g*S+2*(.5-g)*B,k=b*a.height/h+2*(.5-b)*B;return{label:a,anchorX:I,anchorY:k}}execute_(e,t,r,i,o,a,s,h){const g=this.zIndexContext_;let b;this.pixelCoordinates_&&K0(r,this.renderedTransform_)?b=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),b=O0(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),nZ(this.renderedTransform_,r));let B=0;const S=i.length;let I=0,k,U,z,Y,Q,ne,X,q,J,N,ie,he,ce,we=0,pe=0,Ce=null,Pe=null;const de=this.coordinateCache_,rt=this.viewRotation_,ze=Math.round(Math.atan2(-r[1],r[0])*1e12)/1e12,Qe={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:rt},ut=this.instructions!=i||this.overlaps?0:200;let Te,Ue,st,wt;for(;B<S;){const mt=i[B];switch(mt[0]){case qi.BEGIN_GEOMETRY:Te=mt[1],wt=mt[3],Te.getGeometry()?s!==void 0&&!ku(s,wt.getExtent())?B=mt[2]+1:++B:B=mt[2],g&&(g.zIndex=mt[4]);break;case qi.BEGIN_PATH:we>ut&&(this.fill_(e),we=0),pe>ut&&(e.stroke(),pe=0),!we&&!pe&&(e.beginPath(),Q=NaN,ne=NaN),++B;break;case qi.CIRCLE:I=mt[1];const Ut=b[I],Lt=b[I+1],De=b[I+2],ke=b[I+3],Oe=De-Ut,Je=ke-Lt,Mt=Math.sqrt(Oe*Oe+Je*Je);e.moveTo(Ut+Mt,Lt),e.arc(Ut,Lt,Mt,0,2*Math.PI,!0),++B;break;case qi.CLOSE_PATH:e.closePath(),++B;break;case qi.CUSTOM:I=mt[1],k=mt[2];const gt=mt[3],Nt=mt[4],nn=mt[5];Qe.geometry=gt,Qe.feature=Te,B in de||(de[B]=[]);const en=de[B];nn?nn(b,I,k,2,en):(en[0]=b[I],en[1]=b[I+1],en.length=2),g&&(g.zIndex=mt[6]),Nt(en,Qe),++B;break;case qi.DRAW_IMAGE:I=mt[1],k=mt[2],J=mt[3],U=mt[4],z=mt[5];let Sn=mt[6];const Yn=mt[7],Qr=mt[8],cr=mt[9],fr=mt[10];let br=mt[11];const Cr=mt[12];let Mr=mt[13];Y=mt[14]||"declutter";const Qn=mt[15];if(!J&&mt.length>=20){N=mt[19],ie=mt[20],he=mt[21],ce=mt[22];const bt=this.drawLabelWithPointPlacement_(N,ie,he,ce);J=bt.label,mt[3]=J;const Pn=mt[23];U=(bt.anchorX-Pn)*this.pixelRatio,mt[4]=U;const En=mt[24];z=(bt.anchorY-En)*this.pixelRatio,mt[5]=z,Sn=J.height,mt[6]=Sn,Mr=J.width,mt[13]=Mr}let Sr;mt.length>25&&(Sr=mt[25]);let Ge,ue,me;mt.length>17?(Ge=mt[16],ue=mt[17],me=mt[18]):(Ge=fg,ue=!1,me=!1),fr&&ze?br+=rt:!fr&&!ze&&(br-=rt);let Xe=0;for(;I<k;I+=2){if(Sr&&Sr[Xe++]<Mr/this.pixelRatio)continue;const bt=this.calculateImageOrLabelDimensions_(J.width,J.height,b[I],b[I+1],Mr,Sn,U,z,Qr,cr,br,Cr,o,Ge,ue||me,Te),Pn=[e,t,J,bt,Yn,ue?Ce:null,me?Pe:null];if(h){let En,lr,wr;if(Qn){const Dn=k-I;if(!Qn[Dn]){Qn[Dn]={args:Pn,declutterMode:Y};continue}const Br=Qn[Dn];En=Br.args,lr=Br.declutterMode,delete Qn[Dn],wr=vk(En)}let on,zn;if(En&&(lr!=="declutter"||!h.collides(wr))&&(on=!0),(Y!=="declutter"||!h.collides(bt.declutterBox))&&(zn=!0),lr==="declutter"&&Y==="declutter"){const Dn=on&&zn;on=Dn,z Line truncated
`+k;Dp.get(U)===void 0&&(Dp.set(U,100,!0),o(b.style,b.weight,k)||(Dp.set(U,0,!0),s===void 0&&(s=setInterval(d,32))))}}}(),NZ=function(){let n;return function(e){let t=E6[e];if(t==null){if(VB){const r=BU(e),i=kU(e,"Žg");t=(isNaN(Number(r.lineHeight))?1.2:Number(r.lineHeight))*(i.actualBoundingBoxAscent+i.actualBoundingBoxDescent)}else n||(n=document.createElement("div"),n.innerHTML="M",n.style.minHeight="0",n.style.maxHeight="none",n.style.height="auto",n.style.padding="0",n.style.border="none",n.style.position="absolute",n.style.display="block",n.style.left="-99999px"),n.style.font=e,document.body.appendChild(n),t=n.offsetHeight,document.body.removeChild(n);E6[e]=t}return t}}();function kU(n,e){return L1||(L1=Jl(1,1)),n!=S6&&(L1.font=n,S6=L1.font),L1.measureText(e)}function t2(n,e){return kU(n,e).width}function nk(n,e,t){if(e in t)return t[e];const r=e.split(`
`).reduce((i,s)=>Math.max(i,t2(n,s)),0);return t[e]=r,r}function GZ(n,e){const t=[],r=[],i=[];let s=0,a=0,o=0,d=0;for(let g=0,b=e.length;g<=b;g+=2){const E=e[g];if(E===`
`||g===b){s=Math.max(s,a),i.push(a),a=0,o+=d,d=0;continue}const S=e[g+1]||n.font,O=t2(S,E);t.push(O),a+=O;const k=NZ(S);r.push(k),d=Math.max(d,k)}return{width:s,height:o,widths:t,heights:r,lineWidths:i}}function WZ(n,e,t,r,i,s,a,o,d,g,b){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=E=>E.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),r.contextInstructions?(n.translate(d,g),n.scale(b[0],b[1]),QZ(r,n)):b[0]<0||b[1]<0?(n.translate(d,g),n.scale(b[0],b[1]),n.drawImage(r,i,s,a,o,0,0,a,o)):n.drawImage(r,i,s,a,o,d,g,a*b[0],o*b[1]),n.restore()}function QZ(n,e){const t=n.contextInstructions;for(let r=0,i=t.length;r<i;r+=2)Array.isArray(t[r+1])?e[t[r]].apply(e,t[r+1]):e[t[r]]=t[r+1]}class hx extends cx{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()?hi.LOADING:hi.LOADED,this.imageState_===hi.LOADING&&this.ready().then(()=>this.imageState_=hi.LOADED),this.render()}clone(){const e=this.getScale(),t=new hx({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(),r=this.getScaleArray();return[e[0]/2-t[0]/r[0],e[1]/2+t[1]/r[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){var s,a;const t=(s=this.fill_)==null?void 0:s.getKey(),r=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(",");let i=(a=Sf.get(r,null,null))==null?void 0:a.getImage(1);if(!i){const o=this.renderOptions_,d=Math.ceil(o.size*e),g=Jl(d,d);this.draw_(o,g,e),i=g.canvas,Sf.set(r,null,null,new EU(i,void 0,null,hi.LOADED,null))}return i}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,r){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let i=this.radius,s=this.radius2_===void 0?i:this.radius2_;if(i<s){const J=i;i=s,s=J}const a=this.radius2_===void 0?this.points_:this.points_*2,o=2*Math.PI/a,d=s*Math.sin(o),g=Math.sqrt(s*s-d*d),b=i-g,E=Math.sqrt(d*d+b*b),S=E/d;if(e==="miter"&&S<=r)return S*t;const O=t/2/S,k=t/2*(b/E),z=Math.sqrt((i+O)*(i+O)+k*k)-i;if(this.radius2_===void 0||e==="bevel")return z*2;const q=i*Math.sin(o),Q=Math.sqrt(i*i-q*q),re=s-Q,Y=Math.sqrt(q*q+re*re)/q;if(Y<=r){const J=Y*t/2-s-i;return 2*Math.max(z,J)}return z*2}createRenderOptions(){let e=Cy,t=by,r=0,i=null,s=0,a,o=0;this.stroke_&&(a=qp(this.stroke_.getColor()??a_),o=this.stroke_.getWidth()??u_,i=this.stroke_.getLineDash(),s=this.stroke_.getLineDashOffset()??0,t=this.stroke_.getLineJoin()??by,e=this.stroke_.getLineCap()??Cy,r=this.stroke_.getMiterLimit()??s_);const d=this.calculateLineJoinSize_(t,o,r),g=Math.max(this.radius,this.radius2_||0),b=Math.ceil(2*g+d);return{strokeStyle:a,strokeWidth:o,size:b,lineCap:e,lineDash:i,lineDashOffset:s,lineJoin:t,miterLimit:r}}render(){this.renderOptions_=this.createRenderOptions();const e=this.renderOptions_.size;this.hitDetectionCanvas_=null,this.size_=[e,e]}draw_(e,t,r){if(t.scale(r,r),t.translate(e.size/2,e.size/2),this.createPath_(t),this.fill_){let i=this.fill_.getColor();i===null&&(i=mh),t.fillStyle=qp(i),t.fill()}e.strokeStyle&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke())}createHitDetectionCanvas_(e){let t;if(this.fill_){let r=this.fill_.getColor(),i=0;typeof r=="string"&&(r=vy(r)),r===null?i=1:Array.isArray(r)&&(i=r.length===4?r[3]:1),i===0&&(t=Jl(e.size,e.size),this.drawHitDetectionCanvas_(e,t))}return t?t.canvas:this.getImage(1)}createPath_(e){let t=this.points_;const r=thi Line truncated
`,""),n.push(e,""),n}class fee{constructor(e,t,r,i,s){this.overlaps=r,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=_h(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=s?new OO:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,r,i){const s=e+t+r+i;if(this.labels_[s])return this.labels_[s];const a=i?this.strokeStates[i]:null,o=r?this.fillStates[r]:null,d=this.textStates[t],g=this.pixelRatio,b=[d.scale[0]*g,d.scale[1]*g],E=d.justify?d2[d.justify]:K4(Array.isArray(e)?e[0]:e,d.textAlign||l_),S=i&&a.lineWidth?a.lineWidth:0,O=Array.isArray(e)?e:String(e).split(`
`).reduce(hee,[]),{width:k,height:U,widths:z,heights:q,lineWidths:Q}=GZ(d,O),re=k+S,X=[],Y=(re+2)*b[0],J=(U+S)*b[1],N={width:Y<0?Math.floor(Y):Math.ceil(Y),height:J<0?Math.floor(J):Math.ceil(J),contextInstructions:X};(b[0]!=1||b[1]!=1)&&X.push("scale",b),i&&(X.push("strokeStyle",a.strokeStyle),X.push("lineWidth",S),X.push("lineCap",a.lineCap),X.push("lineJoin",a.lineJoin),X.push("miterLimit",a.miterLimit),X.push("setLineDash",[a.lineDash]),X.push("lineDashOffset",a.lineDashOffset)),r&&X.push("fillStyle",o.fillStyle),X.push("textBaseline","middle"),X.push("textAlign","center");const ie=.5-E;let he=E*re+ie*S;const de=[],we=[];let fe=0,be=0,Pe=0,pe=0,it;for(let We=0,$e=O.length;We<$e;We+=2){const ht=O[We];if(ht===`
`){be+=fe,fe=0,he=E*re+ie*S,++pe;continue}const De=O[We+1]||d.font;De!==it&&(i&&de.push("font",De),r&&we.push("font",De),it=De),fe=Math.max(fe,q[Pe]);const Ne=[ht,he+ie*z[Pe]+E*(z[Pe]-Q[pe]),.5*(S+fe)+be];he+=z[Pe],i&&de.push("strokeText",Ne),r&&we.push("fillText",Ne),++Pe}return Array.prototype.push.apply(X,de),Array.prototype.push.apply(X,we),this.labels_[s]=N,N}replayTextBackground_(e,t,r,i,s,a,o){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,s),e.lineTo.apply(e,t),a&&(this.alignAndScaleFill_=a[2],this.fill_(e)),o&&(this.setStrokeStyle_(e,o),e.stroke())}calculateImageOrLabelDimensions_(e,t,r,i,s,a,o,d,g,b,E,S,O,k,U,z){o*=S[0],d*=S[1];let q=r-o,Q=i-d;const re=s+g>e?e-g:s,X=a+b>t?t-b:a,Y=k[3]+re*S[0]+k[1],J=k[0]+X*S[1]+k[2],N=q-k[3],ie=Q-k[0];(U||E!==0)&&(A0[0]=N,c0[0]=N,A0[1]=ie,Bm[1]=ie,Bm[0]=N+Y,Om[0]=Bm[0],Om[1]=ie+J,c0[1]=Om[1]);let he;return E!==0?(he=em(_h(),r,i,1,1,E,-r,-i),yA(he,A0),yA(he,Bm),yA(he,Om),yA(he,c0),Gm(Math.min(A0[0],Bm[0],Om[0],c0[0]),Math.min(A0[1],Bm[1],Om[1],c0[1]),Math.max(A0[0],Bm[0],Om[0],c0[0]),Math.max(A0[1],Bm[1],Om[1],c0[1]),u1)):Gm(Math.min(N,N+Y),Math.min(ie,ie+J),Math.max(N,N+Y),Math.max(ie,ie+J),u1),O&&(q=Math.round(q),Q=Math.round(Q)),{drawImageX:q,drawImageY:Q,drawImageW:re,drawImageH:X,originX:g,originY:b,declutterBox:{minX:u1[0],minY:u1[1],maxX:u1[2],maxY:u1[3],value:z},canvasTransform:he,scale:S}}replayImageOrLabel_(e,t,r,i,s,a,o){const d=!!(a||o),g=i.declutterBox,b=o?o[2]*i.scale[0]/2:0;return g.minX-b<=t[0]&&g.maxX+b>=0&&g.minY-b<=t[1]&&g.maxY+b>=0&&(d&&this.replayTextBackground_(e,A0,Bm,Om,c0,a,o),WZ(e,i.canvasTransform,s,r,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const r=yA(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;e.save(),e.translate(r[0]%i,r[1]%i),t!==1&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=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,r,i){const s=this.textStates[t],a=this.createLabel(e,t,i,r),o=this.strokeStates[r],d=this.pixelRatio,g=K4(Array.isArray(e)?e[0]:e,s.textAlign||l_),b=d2[s.textBaseline||e2],E=o&&o.lineWidth?o.lineWidth:0,S=a.width/d-2*s.scale[0],O=g*S+2*(.5-g)*E,k=b*a.height/d+2*(.5-b)*E;return{label:a,anchorX:O,anchorY:k}}execute_(e,t,r,i,s,a,o,d){const g=this.zIndexContext_;let b;this.pixelCoordinates_&&K0(r,this.renderedTransform_)?b=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),b=O0(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),YZ(this.renderedTransform_,r));let E=0;const S=i.length;let O=0,k,U,z,q,Q,re,X,Y,J,N,ie,he,de,we=0,fe=0,be=null,Pe=null;const pe=this.coordinateCache_,it=this.viewRotation_,We=Math.round(Math.atan2(-r[1],r[0])*1e12)/1e12,$e={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:it},ht=this.instructions!=i||this.overlaps?0:200;let De,Ne,at,wt;for(;E<S;){const Ct=i[E];switch(Ct[0]){case Qi.BEGIN_GEOMETRY:De=Ct[1],wt=Ct[3],De.getGeometry()?o!==void 0&&!ku(o,wt.getExtent())?E=Ct[2]+1:++E:E=Ct[2],g&&(g.zIndex=Ct[4]);break;case Qi.BEGIN_PATH:we>ht&&(this.fill_(e),we=0),fe>ht&&(e.stroke(),fe=0),!we&&!fe&&(e.beginPath(),Q=NaN,re=NaN),++E;break;case Qi.CIRCLE:O=Ct[1];const Lt=b[O],Kt=b[O+1],Fe=b[O+2],Te=b[O+3],Se=Fe-Lt,Je=Te-Kt,yt=Math.sqrt(Se*Se+Je*Je);e.moveTo(Lt+yt,Kt),e.arc(Lt,Kt,yt,0,2*Math.PI,!0),++E;break;case Qi.CLOSE_PATH:e.closePath(),++E;break;case Qi.CUSTOM:O=Ct[1],k=Ct[2];const dt=Ct[3],Ut=Ct[4],en=Ct[5];$e.geometry=dt,$e.feature=De,E in pe||(pe[E]=[]);const Nt=pe[E];en?en(b,O,k,2,Nt):(Nt[0]=b[O],Nt[1]=b[O+1],Nt.length=2),g&&(g.zIndex=Ct[6]),Ut(Nt,$e),++E;break;case Qi.DRAW_IMAGE:O=Ct[1],k=Ct[2],J=Ct[3],U=Ct[4],z=Ct[5];let yn=Ct[6];const jn=Ct[7],Rr=Ct[8],sr=Ct[9],Jn=Ct[10];let mr=Ct[11];const pr=Ct[12];let xr=Ct[13];q=Ct[14]||"declutter";const Qn=Ct[15];if(!J&&Ct.length>=20){N=Ct[19],ie=Ct[20],he=Ct[21],de=Ct[22];const _t=this.drawLabelWithPointPlacement_(N,ie,he,de);J=_t.label,Ct[3]=J;const Tn=Ct[23];U=(_t.anchorX-Tn)*this.pixelRatio,Ct[4]=U;const Sn=Ct[24];z=(_t.anchorY-Sn)*this.pixelRatio,Ct[5]=z,yn=J.height,Ct[6]=yn,xr=J.width,Ct[13]=xr}let Er;Ct.length>25&&(Er=Ct[25]);let Ge,Ae,me;Ct.length>17?(Ge=Ct[16],Ae=Ct[17],me=Ct[18]):(Ge=pg,Ae=!1,me=!1),Jn&&We?mr+=it:!Jn&&!We&&(mr-=it);let Xe=0;for(;O<k;O+=2){if(Er&&Er[Xe++]<xr/this.pixelRatio)continue;const _t=this.calculateImageOrLabelDimensions_(J.width,J.height,b[O],b[O+1],xr,yn,U,z,Rr,sr,mr,pr,s,Ge,Ae||me,De),Tn=[e,t,J,_t,jn,Ae?be:null,me?Pe:null];if(d){let Sn,Ar,wr;if(Qn){const Rn=k-O;if(!Qn[Rn]){Qn[Rn]={args:Tn,declutterMode:q};continue}const Br=Qn[Rn];Sn=Br.args,Ar=Br.declutterMode,delete Qn[Rn],wr=Lk(Sn)}let rn,Fn;if(Sn&&(Ar!=="declutter"||!d.collides(wr))&&(rn=!0),(q!=="declutter"||!d.collides(_t.declutterBox))&&(Fn=!0),Ar==="declutter"&&q==="declutter"){const Rn=rn&&Fn;rn=Rn,F Line truncated
attribute vec4 a_position;
attribute vec4 a_texcoord;
@@ -835,7 +835,7 @@ and limitations under the License.
vec2 texcoord = (u_textureMatrix * a_texcoord).xy;
v_texcoord = texcoord;
}
`,Ite=`
`,Cne=`
precision mediump float;
varying vec2 v_texcoord;
@@ -853,7 +853,7 @@ and limitations under the License.
}
gl_FragColor = texture2D(u_texture, v_texcoord);
}
`;class kte{constructor(e){this.gl_=e,this.program_=k6(e,Ite,Ote),this.positionLocation=e.getAttribLocation(this.program_,"a_position"),this.texcoordLocation=e.getAttribLocation(this.program_,"a_texcoord"),this.matrixLocation=e.getUniformLocation(this.program_,"u_matrix"),this.textureMatrixLocation=e.getUniformLocation(this.program_,"u_textureMatrix"),this.textureLocation=e.getUniformLocation(this.program_,"u_texture"),this.positionBuffer=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,this.positionBuffer),this.positions=[0,0,0,1,1,0,1,0,0,1,1,1],e.bufferData(e.ARRAY_BUFFER,new Float32Array(this.positions),e.STATIC_DRAW),this.texcoordBuffer=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,this.texcoordBuffer),this.texcoords=[0,0,0,1,1,0,1,0,0,1,1,1],e.bufferData(e.ARRAY_BUFFER,new Float32Array(this.texcoords),e.STATIC_DRAW)}drawImage(e,t,r,i,o,a,s,h,g,b,B,S,I){const k=this.gl_;h===void 0&&(h=i),g===void 0&&(g=o),a===void 0&&(a=t),s===void 0&&(s=r),b===void 0&&(b=a),B===void 0&&(B=s),S===void 0&&(S=k.canvas.width),I===void 0&&(I=k.canvas.height),k.bindTexture(k.TEXTURE_2D,e),k.useProgram(this.program_),k.bindBuffer(k.ARRAY_BUFFER,this.positionBuffer),k.enableVertexAttribArray(this.positionLocation),k.vertexAttribPointer(this.positionLocation,2,k.FLOAT,!1,0,0),k.bindBuffer(k.ARRAY_BUFFER,this.texcoordBuffer),k.enableVertexAttribArray(this.texcoordLocation),k.vertexAttribPointer(this.texcoordLocation,2,k.FLOAT,!1,0,0);let U=I6(0,S,0,I,-1,1);U=Ete(U,h,g,0),U=Tk(U,b,B,1),k.uniformMatrix4fv(this.matrixLocation,!1,U);let z=Bte(i/t,o/r,0);z=Tk(z,a/t,s/r,1),k.uniformMatrix4fv(this.textureMatrixLocation,!1,z),k.uniform1i(this.textureLocation,0),k.drawArrays(k.TRIANGLES,0,this.positions.length/2)}}function Pk(n,e,t){const r=n.createShader(e);if(r===null)throw new Error("Shader compilation failed");if(n.shaderSource(r,t),n.compileShader(r),!n.getShaderParameter(r,n.COMPILE_STATUS)){const i=n.getShaderInfoLog(r);throw i===null?new Error("Shader info log creation failed"):new Error(i)}return r}function k6(n,e,t){const r=n.createProgram(),i=Pk(n,n.VERTEX_SHADER,t),o=Pk(n,n.FRAGMENT_SHADER,e);if(r===null)throw new Error("Program creation failed");if(n.attachShader(r,i),n.attachShader(r,o),n.linkProgram(r),!n.getProgramParameter(r,n.LINK_STATUS))throw n.getProgramInfoLog(r)===null?new Error("Program info log creation failed"):new Error;return r}const Tte=`
`;class bne{constructor(e){this.gl_=e,this.program_=H6(e,Cne,_ne),this.positionLocation=e.getAttribLocation(this.program_,"a_position"),this.texcoordLocation=e.getAttribLocation(this.program_,"a_texcoord"),this.matrixLocation=e.getUniformLocation(this.program_,"u_matrix"),this.textureMatrixLocation=e.getUniformLocation(this.program_,"u_textureMatrix"),this.textureLocation=e.getUniformLocation(this.program_,"u_texture"),this.positionBuffer=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,this.positionBuffer),this.positions=[0,0,0,1,1,0,1,0,0,1,1,1],e.bufferData(e.ARRAY_BUFFER,new Float32Array(this.positions),e.STATIC_DRAW),this.texcoordBuffer=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,this.texcoordBuffer),this.texcoords=[0,0,0,1,1,0,1,0,0,1,1,1],e.bufferData(e.ARRAY_BUFFER,new Float32Array(this.texcoords),e.STATIC_DRAW)}drawImage(e,t,r,i,s,a,o,d,g,b,E,S,O){const k=this.gl_;d===void 0&&(d=i),g===void 0&&(g=s),a===void 0&&(a=t),o===void 0&&(o=r),b===void 0&&(b=a),E===void 0&&(E=o),S===void 0&&(S=k.canvas.width),O===void 0&&(O=k.canvas.height),k.bindTexture(k.TEXTURE_2D,e),k.useProgram(this.program_),k.bindBuffer(k.ARRAY_BUFFER,this.positionBuffer),k.enableVertexAttribArray(this.positionLocation),k.vertexAttribPointer(this.positionLocation,2,k.FLOAT,!1,0,0),k.bindBuffer(k.ARRAY_BUFFER,this.texcoordBuffer),k.enableVertexAttribArray(this.texcoordLocation),k.vertexAttribPointer(this.texcoordLocation,2,k.FLOAT,!1,0,0);let U=V6(0,S,0,O,-1,1);U=yne(U,d,g,0),U=Hk(U,b,E,1),k.uniformMatrix4fv(this.matrixLocation,!1,U);let z=vne(i/t,s/r,0);z=Hk(z,a/t,o/r,1),k.uniformMatrix4fv(this.textureMatrixLocation,!1,z),k.uniform1i(this.textureLocation,0),k.drawArrays(k.TRIANGLES,0,this.positions.length/2)}}function Zk(n,e,t){const r=n.createShader(e);if(r===null)throw new Error("Shader compilation failed");if(n.shaderSource(r,t),n.compileShader(r),!n.getShaderParameter(r,n.COMPILE_STATUS)){const i=n.getShaderInfoLog(r);throw i===null?new Error("Shader info log creation failed"):new Error(i)}return r}function H6(n,e,t){const r=n.createProgram(),i=Zk(n,n.VERTEX_SHADER,t),s=Zk(n,n.FRAGMENT_SHADER,e);if(r===null)throw new Error("Program creation failed");if(n.attachShader(r,i),n.attachShader(r,s),n.linkProgram(r),!n.getProgramParameter(r,n.LINK_STATUS))throw n.getProgramInfoLog(r)===null?new Error("Program info log creation failed"):new Error;return r}const xne=`
attribute vec4 a_position;
uniform mat4 u_matrix;
@@ -861,14 +861,14 @@ and limitations under the License.
void main() {
gl_Position = u_matrix * a_position;
}
`,Pte=`
`,wne=`
precision mediump float;
uniform vec4 u_val;
void main() {
gl_FragColor = u_val;
}
`,Rte=`
`,Mne=`
attribute vec4 a_position;
attribute vec2 a_texcoord;
@@ -880,7 +880,7 @@ and limitations under the License.
gl_Position = u_matrix * a_position;
v_texcoord = a_texcoord;
}
`,Kte=`
`,Sne=`
precision mediump float;
varying vec2 v_texcoord;
@@ -893,39 +893,39 @@ and limitations under the License.
}
gl_FragColor = texture2D(u_texture, v_texcoord);
}
`;function Dte(n,e,t,r){let i;return t.length?i=t.shift():IB?i=new OffscreenCanvas(n||300,e||300):i=document.createElement("canvas"),n&&(i.width=n),e&&(i.height=e),i.getContext("webgl",r)}function Lte(n){const e=n.canvas;e.width=1,e.height=1,n.clear(n.COLOR_BUFFER_BIT|n.DEPTH_BUFFER_BIT|n.STENCIL_BUFFER_BIT)}const Rk=[];function Fte(n,e,t,r,i,o,a,s,h,g,b,B,S,I){const k=Math.round(r*e),U=Math.round(r*t);n.canvas.width=k,n.canvas.height=U;let z,Y;if(Y=n.createTexture(),n.bindTexture(n.TEXTURE_2D,Y),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),S?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR)):(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.NEAREST)),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,k,U,0,n.RGBA,b,null),z=n.createFramebuffer(),n.bindFramebuffer(n.FRAMEBUFFER,z),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,Y,0),z===null)throw new Error("Could not create framebuffer");if(Y===null)throw new Error("Could not create texture");if(h.length===0)return{width:k,height:U,framebuffer:z,texture:Y};const Q=Zd();h.forEach(function(ce,we,pe){FB(Q,ce.extent)});let ne,X,q;const J=1/i;{if(ne=n.createTexture(),Y===null)throw new Error("Could not create texture");X=Math.round(ps(Q)*J),q=Math.round(Hl(Q)*J);const ce=n.getParameter(n.MAX_TEXTURE_SIZE),we=Math.max(X,q),pe=we>ce?ce/we:1,Ce=Math.round(X*pe),Pe=Math.round(q*pe);n.bindTexture(n.TEXTURE_2D,ne),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),S?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR)):(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.NEAREST)),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,Ce,Pe,0,n.RGBA,b,null);const de=n.createFramebuffer();n.bindFramebuffer(n.FRAMEBUFFER,de),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,ne,0);const rt=new kte(n);h.forEach(function(ze,Qe,ut){const Te=(ze.extent[0]-Q[0])*J*pe,Ue=-(ze.extent[3]-Q[3])*J*pe,st=ps(ze.extent)*J*pe,wt=Hl(ze.extent)*J*pe;if(n.bindFramebuffer(n.FRAMEBUFFER,de),n.viewport(0,0,Ce,Pe),ze.clipExtent){const mt=(ze.clipExtent[0]-Q[0])*J*pe,ft=-(ze.clipExtent[3]-Q[3])*J*pe,Ut=ps(ze.clipExtent)*J*pe,Lt=Hl(ze.clipExtent)*J*pe;n.enable(n.SCISSOR_TEST),n.scissor(S?mt:Math.round(mt),S?ft:Math.round(ft),S?Ut:Math.round(mt+Ut)-Math.round(mt),S?Lt:Math.round(ft+Lt)-Math.round(ft))}rt.drawImage(ze.texture,ze.width,ze.height,g,g,ze.width-2*g,ze.height-2*g,S?Te:Math.round(Te),S?Ue:Math.round(Ue),S?st:Math.round(Te+st)-Math.round(Te),S?wt:Math.round(Ue+wt)-Math.round(Ue),Ce,Pe),n.disable(n.SCISSOR_TEST)}),n.deleteFramebuffer(de)}const N=Ap(a),ie=Ap(Q),he=ce=>{const we=(ce[0][0]-N[0])/o*r,pe=-(ce[0][1]-N[1])/o*r,Ce=(ce[1][0]-N[0])/o*r,Pe=-(ce[1][1]-N[1])/o*r,de=(ce[2][0]-N[0])/o*r,rt=-(ce[2][1]-N[1])/o*r;return{u1:Ce,v1:Pe,u0:we,v0:pe,u2:de,v2:rt}};n.bindFramebuffer(n.FRAMEBUFFER,z),n.viewport(0,0,k,U);{const ce=[],we=[],pe=k6(n,Kte,Rte);n.useProgram(pe);const Ce=n.getUniformLocation(pe,"u_texture");n.bindTexture(n.TEXTURE_2D,ne),n.uniform1i(Ce,0),s.getTriangles().forEach(function(Te,Ue,st){const wt=Te.source,mt=Te.target,{u1:ft,v1:Ut,u0:Lt,v0:De,u2:ke,v2:Oe}=he(mt),Je=(wt[0][0]-ie[0])/i/X,Mt=-(wt[0][1]-ie[1])/i/q,gt=(wt[1][0]-ie[0])/i/X,Nt=-(wt[1][1]-ie[1])/i/q,nn=(wt[2][0]-ie[0])/i/X,en=-(wt[2][1]-ie[1])/i/q;ce.push(ft,Ut,Lt,De,ke,Oe),we.push(gt,Nt,Je,Mt,nn,en)});const Pe=I6(0,k,U,0,-1,1),de=n.getUniformLocation(pe,"u_matrix");n.uniformMatrix4fv(de,!1,Pe);const rt=n.getAttribLocation(pe,"a_position"),ze=n.createBuffer();n.bindBuffer(n.ARRAY_BUFFER,ze),n.bufferData(n.ARRAY_BUFFER,new Float32Array(ce),n.STATIC_DRAW),n.vertexAttribPointer(rt,2,n.FLOAT,!1,0,0),n.enableVertexAttribArray(rt);const Qe=n.getAttribLocation(pe,"a_texcoord"),ut=n.createBuffer();n.bindBuffer(n.ARRAY_BUFFER,ut),n.bufferData(n.ARRAY_BUFFER,new Float32Array(we),n.STATIC_DRAW),n.vertexAttribPointer(Qe,2,n.FLOAT,!1,0,0),n.enableVertexAttribArray(Qe),n.drawArrays(n.TRIANGLES,0,ce.length/2)}if(B){const ce=k6(n,Pte,Tte);n.useProgram(ce);const we=I6(0,k,U,0,-1,1),pe=n.getUniformLocation(ce,"u_matrix");n.uniformMatrix4fv(pe,!1,we);const Ce=Array.isArray(B)?B:[0,0,0,255],Pe=n.getUniformLocation(ce,"u_val");n.uniform4fv(Pe,Ce);const de=n.getAttribLocation(ce,"a_position"),rt=n.createBuffer();n.bindBuffer(n.ARRAY_BUFFER,rt),n.vertexAttribPointer(de,2,n.FLOAT,!1,0,0),n.enableVertexAttribArray(de);const ze=s.getTriangles().reduce(function(Qe,ut){const Te=ut.target,{u1:Ue,v1:st,u0:wt,v0:mt,u2:ft,v2:Ut}=he(Te);return Qe.concat([Ue,st,wt,mt,wt,mt,ft,Ut,ft,Ut,Ue,st])},[]);n.bufferData(n.ARRAY_BUFFER,new Float32Array(ze),n.STATIC_DRAW),n.drawArrays(n.LINES,0,ze.length/2)}return{width:k,height:U,framebuffer Line truncated
`),"binary").toString("base64"):URL.createObjectURL(new Blob(r,{type:"text/javascript"})));return i.addEventListener("message",e),i}function qte(n,e){const t=fz(n.operation);let r=!1;return{postMessage:function(i){setTimeout(function(){r||e({data:{buffer:t(i),meta:i.meta}})},0)},terminate:function(){r=!0}}}class Yte extends K_{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;e.threads===0?t=0:this.imageOps_?t=1:t=e.threads||1;const r=new Array(t);if(t)for(let i=0;i<t;++i)r[i]=Qte(e,this.onWorkerMessage_.bind(this,i));else r[0]=qte(e,this.onWorkerMessage_.bind(this,0));this.workers_=r,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,r){this.enqueue_({inputs:e,meta:t,callback:r}),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,r=e.inputs[0].height,i=e.inputs.map(function(h){return h.data.buffer}),o=this.workers_.length;if(this.running_=o,o===1){this.workers_[0].postMessage({buffers:i,meta:e.meta,imageOps:this.imageOps_,width:t,height:r},i);return}const a=e.inputs[0].data.length,s=4*Math.ceil(a/4/o);for(let h=0;h<o;++h){const g=h*s,b=[];for(let B=0,S=i.length;B<S;++B)b.push(i[B].slice(g,g+s));this.workers_[h].postMessage({buffers:b,meta:e.meta,imageOps:this.imageOps_,width:t,height:r},b)}}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 r,i;if(t===1)r=new Uint8ClampedArray(this.dataLookup_[0].buffer),i=this.dataLookup_[0].meta;else{const o=e.inputs[0].data.length;r=new Uint8ClampedArray(o),i=new Array(t);const a=4*Math.ceil(o/4/t);for(let s=0;s<t;++s){const h=this.dataLookup_[s].buffer,g=s*a;r.set(new Uint8ClampedArray(h),g),i[s]=this.dataLookup_[s].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(r,e.inputs[0].width,e.inputs[0].height),i),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}}const Dk={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class Lk extends dp{constructor(e,t,r){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=r}}class pz extends lz{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_=Hte(e.sources);const t=this.changed.bind(this);for(let r=0,i=this.layers_.length;r<i;++r)this.layers_[r].addEventListener(oo.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new VU(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:_d(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:Vte(this.layers_),pixelRatio:1,pixelToCoordinateTransform:_d(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Lo(this),renderTargets:{}},this.setAttributions(function(r){var o;const i=[];for(let a=0,s=e.sources.length;a<s;++a){const h=e.sources[a],g=h instanceof Ky?h:h.getSource();if(!g)continue;const b=(o=g.getAttributions())==null?void 0:o(r);typeof b=="string"?i.push(b):b!==void 0&&i.push(...b)}return i}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new Yte({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,r){const i=Object.assign({},this.frameState_);i.viewState=Object.assign({},i.viewState);const o=If(e);i.size[0]=Math.ceil(ps(e)/t),i.size[1]=Math.ceil(Hl(e)/t),i.extent=[o[0]-i.size[0]*t/2,o[1]-i.size[1]*t/2,o[0]+i.size[0]*t/2,o[1]+i.size[1]*t/2],i.time=Date.now();const a=i.viewState;return a.center=o,a.projection=r,a.resolution=t,i}allSourcesReady_(){let e=!0,t;for(let r=0,i=this.layers_.length;r<i;++r)if(t=this.layers_[r].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,r,i){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const o=this.updateFrameState_(e,t,i);if(this.requestedFrameState_=o,this.renderedImageCanvas_){const a=this.renderedImageCanvas_.getResolution(),s=this.renderedImageCanvas_.getExtent();(t!==a||!Wm(o.extent,s))&&(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.re Line truncated
`);this.generateTileUrlFunction_?this.setTileUrlFunction(mz(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,r){}}class sne extends Px{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:ane,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:$U,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!wg(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||wg(t,e)))return this.tileGrid;const r=Lo(e);return r in this.tileGridForProjection||(this.tileGridForProjection[r]=cz(e)),this.tileGridForProjection[r]}createTile_(e,t,r,i,o,a){const s=[e,t,r],h=this.getTileCoordForTileUrlFunction(s,o),g=h?this.tileUrlFunction(h,i,o):void 0,b=new this.tileClass(s,g!==void 0?vr.IDLE:vr.EMPTY,g!==void 0?g:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return b.key=a,b.addEventListener(oo.CHANGE,this.handleTileChange.bind(this)),b}getTile(e,t,r,i,o){const a=this.getProjection();if(!a||!o||wg(a,o))return this.getTileInternal(e,t,r,i,a||o);const s=[e,t,r],h=this.getKey(),g=this.getTileGridForProjection(a),b=this.getTileGridForProjection(o),B=this.getTileCoordForTileUrlFunction(s,o),S=new T6(a,g,o,b,s,B,this.getTilePixelRatio(i),this.getGutter(),(I,k,U,z)=>this.getTileInternal(I,k,U,z,a),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return S.key=h,S}getTileInternal(e,t,r,i,o){const a=this.getKey();return this.createTile_(e,t,r,i,o,a)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const r=Ma(e);if(r){const i=Lo(r);i in this.tileGridForProjection||(this.tileGridForProjection[i]=t)}}}function ane(n,e){n.getImage().src=e}function lne(n,e,t,r){const i=document.createElement("script"),o="olc_"+Lo(e);function a(){delete window[o],i.parentNode.removeChild(i)}i.async=!0,i.src=n+(n.includes("?")?"&":"?")+"callback="+o;const s=setTimeout(function(){a(),t&&t()},1e4);window[o]=function(h){clearTimeout(s),a(),e(h)},document.head.appendChild(i)}class gz extends sne{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Ma("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)lne(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 r;try{r=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(r)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=Ma("EPSG:4326"),r=this.getProjection();let i;if(e.bounds!==void 0){const g=N_(t,r);i=hZ(e.bounds,g)}const o=Tx(r),a=e.minzoom||0,s=e.maxzoom||22,h=bO({extent:o,maxZoom:s,minZoom:a,tileSize:this.tileSize_});if(this.tileGrid=h,this.tileUrlFunction=mz(e.tiles,h),e.attribution&&!this.getAttributions()){const g=i!==void 0?i:o;this.setAttributions(function(b){return ku(g,b.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}const une={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},Fk={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]};class Ane extends uz{constructor(e,t){super(e,t),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.renderedLayerRevision_,this.renderedPixelToCoordinateTransform_=null,this.renderedRotation_,this.renderedOpacity_=1,this.tmpTransform_=_d(),this.tileClipContexts_=null}drawTile(e,t,r,i,o,a,s,h){this.updateExecutorGroup_(e,t.pixelRatio,t.viewState.projection),this.til Line truncated
`;function Ene(n,e,t,r){let i;return t.length?i=t.shift():VB?i=new OffscreenCanvas(n||300,e||300):i=document.createElement("canvas"),n&&(i.width=n),e&&(i.height=e),i.getContext("webgl",r)}function Bne(n){const e=n.canvas;e.width=1,e.height=1,n.clear(n.COLOR_BUFFER_BIT|n.DEPTH_BUFFER_BIT|n.STENCIL_BUFFER_BIT)}const Xk=[];function One(n,e,t,r,i,s,a,o,d,g,b,E,S,O){const k=Math.round(r*e),U=Math.round(r*t);n.canvas.width=k,n.canvas.height=U;let z,q;if(q=n.createTexture(),n.bindTexture(n.TEXTURE_2D,q),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),S?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR)):(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.NEAREST)),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,k,U,0,n.RGBA,b,null),z=n.createFramebuffer(),n.bindFramebuffer(n.FRAMEBUFFER,z),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,q,0),z===null)throw new Error("Could not create framebuffer");if(q===null)throw new Error("Could not create texture");if(d.length===0)return{width:k,height:U,framebuffer:z,texture:q};const Q=Zh();d.forEach(function(de,we,fe){rO(Q,de.extent)});let re,X,Y;const J=1/i;{if(re=n.createTexture(),q===null)throw new Error("Could not create texture");X=Math.round(ps(Q)*J),Y=Math.round(Hl(Q)*J);const de=n.getParameter(n.MAX_TEXTURE_SIZE),we=Math.max(X,Y),fe=we>de?de/we:1,be=Math.round(X*fe),Pe=Math.round(Y*fe);n.bindTexture(n.TEXTURE_2D,re),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),S?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR)):(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.NEAREST)),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,be,Pe,0,n.RGBA,b,null);const pe=n.createFramebuffer();n.bindFramebuffer(n.FRAMEBUFFER,pe),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,re,0);const it=new bne(n);d.forEach(function(We,$e,ht){const De=(We.extent[0]-Q[0])*J*fe,Ne=-(We.extent[3]-Q[3])*J*fe,at=ps(We.extent)*J*fe,wt=Hl(We.extent)*J*fe;if(n.bindFramebuffer(n.FRAMEBUFFER,pe),n.viewport(0,0,be,Pe),We.clipExtent){const Ct=(We.clipExtent[0]-Q[0])*J*fe,ft=-(We.clipExtent[3]-Q[3])*J*fe,Lt=ps(We.clipExtent)*J*fe,Kt=Hl(We.clipExtent)*J*fe;n.enable(n.SCISSOR_TEST),n.scissor(S?Ct:Math.round(Ct),S?ft:Math.round(ft),S?Lt:Math.round(Ct+Lt)-Math.round(Ct),S?Kt:Math.round(ft+Kt)-Math.round(ft))}it.drawImage(We.texture,We.width,We.height,g,g,We.width-2*g,We.height-2*g,S?De:Math.round(De),S?Ne:Math.round(Ne),S?at:Math.round(De+at)-Math.round(De),S?wt:Math.round(Ne+wt)-Math.round(Ne),be,Pe),n.disable(n.SCISSOR_TEST)}),n.deleteFramebuffer(pe)}const N=Ap(a),ie=Ap(Q),he=de=>{const we=(de[0][0]-N[0])/s*r,fe=-(de[0][1]-N[1])/s*r,be=(de[1][0]-N[0])/s*r,Pe=-(de[1][1]-N[1])/s*r,pe=(de[2][0]-N[0])/s*r,it=-(de[2][1]-N[1])/s*r;return{u1:be,v1:Pe,u0:we,v0:fe,u2:pe,v2:it}};n.bindFramebuffer(n.FRAMEBUFFER,z),n.viewport(0,0,k,U);{const de=[],we=[],fe=H6(n,Sne,Mne);n.useProgram(fe);const be=n.getUniformLocation(fe,"u_texture");n.bindTexture(n.TEXTURE_2D,re),n.uniform1i(be,0),o.getTriangles().forEach(function(De,Ne,at){const wt=De.source,Ct=De.target,{u1:ft,v1:Lt,u0:Kt,v0:Fe,u2:Te,v2:Se}=he(Ct),Je=(wt[0][0]-ie[0])/i/X,yt=-(wt[0][1]-ie[1])/i/Y,dt=(wt[1][0]-ie[0])/i/X,Ut=-(wt[1][1]-ie[1])/i/Y,en=(wt[2][0]-ie[0])/i/X,Nt=-(wt[2][1]-ie[1])/i/Y;de.push(ft,Lt,Kt,Fe,Te,Se),we.push(dt,Ut,Je,yt,en,Nt)});const Pe=V6(0,k,U,0,-1,1),pe=n.getUniformLocation(fe,"u_matrix");n.uniformMatrix4fv(pe,!1,Pe);const it=n.getAttribLocation(fe,"a_position"),We=n.createBuffer();n.bindBuffer(n.ARRAY_BUFFER,We),n.bufferData(n.ARRAY_BUFFER,new Float32Array(de),n.STATIC_DRAW),n.vertexAttribPointer(it,2,n.FLOAT,!1,0,0),n.enableVertexAttribArray(it);const $e=n.getAttribLocation(fe,"a_texcoord"),ht=n.createBuffer();n.bindBuffer(n.ARRAY_BUFFER,ht),n.bufferData(n.ARRAY_BUFFER,new Float32Array(we),n.STATIC_DRAW),n.vertexAttribPointer($e,2,n.FLOAT,!1,0,0),n.enableVertexAttribArray($e),n.drawArrays(n.TRIANGLES,0,de.length/2)}if(E){const de=H6(n,wne,xne);n.useProgram(de);const we=V6(0,k,U,0,-1,1),fe=n.getUniformLocation(de,"u_matrix");n.uniformMatrix4fv(fe,!1,we);const be=Array.isArray(E)?E:[0,0,0,255],Pe=n.getUniformLocation(de,"u_val");n.uniform4fv(Pe,be);const pe=n.getAttribLocation(de,"a_position"),it=n.createBuffer();n.bindBuffer(n.ARRAY_BUFFER,it),n.vertexAttribPointer(pe,2,n.FLOAT,!1,0,0),n.enableVertexAttribArray(pe);const We=o.getTriangles().reduce(function($e,ht){const De=ht.target,{u1:Ne,v1:at,u0:wt,v0:Ct,u2:ft,v2:Lt}=he(De);return $e.concat([Ne,at,wt,Ct,wt,Ct,ft,Lt,ft,Lt,Ne,at])},[]);n.bufferData(n.ARRAY_BUFFER,new Float32Array(We),n.STATIC_DRAW),n.drawArrays(n.LINES,0,We.length/2)}return{width:k,height:U,framebuffer Line truncated
`),"binary").toString("base64"):URL.createObjectURL(new Blob(r,{type:"text/javascript"})));return i.addEventListener("message",e),i}function Lne(n,e){const t=Hz(n.operation);let r=!1;return{postMessage:function(i){setTimeout(function(){r||e({data:{buffer:t(i),meta:i.meta}})},0)},terminate:function(){r=!0}}}class Fne extends D_{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;e.threads===0?t=0:this.imageOps_?t=1:t=e.threads||1;const r=new Array(t);if(t)for(let i=0;i<t;++i)r[i]=Dne(e,this.onWorkerMessage_.bind(this,i));else r[0]=Lne(e,this.onWorkerMessage_.bind(this,0));this.workers_=r,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,r){this.enqueue_({inputs:e,meta:t,callback:r}),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,r=e.inputs[0].height,i=e.inputs.map(function(d){return d.data.buffer}),s=this.workers_.length;if(this.running_=s,s===1){this.workers_[0].postMessage({buffers:i,meta:e.meta,imageOps:this.imageOps_,width:t,height:r},i);return}const a=e.inputs[0].data.length,o=4*Math.ceil(a/4/s);for(let d=0;d<s;++d){const g=d*o,b=[];for(let E=0,S=i.length;E<S;++E)b.push(i[E].slice(g,g+o));this.workers_[d].postMessage({buffers:b,meta:e.meta,imageOps:this.imageOps_,width:t,height:r},b)}}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 r,i;if(t===1)r=new Uint8ClampedArray(this.dataLookup_[0].buffer),i=this.dataLookup_[0].meta;else{const s=e.inputs[0].data.length;r=new Uint8ClampedArray(s),i=new Array(t);const a=4*Math.ceil(s/4/t);for(let o=0;o<t;++o){const d=this.dataLookup_[o].buffer,g=o*a;r.set(new Uint8ClampedArray(d),g),i[o]=this.dataLookup_[o].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(r,e.inputs[0].width,e.inputs[0].height),i),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}}const eT={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class tT extends hp{constructor(e,t,r){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=r}}class Zz extends Wz{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_=jne(e.sources);const t=this.changed.bind(this);for(let r=0,i=this.layers_.length;r<i;++r)this.layers_[r].addEventListener(io.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new kz(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:_h(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:zne(this.layers_),pixelRatio:1,pixelToCoordinateTransform:_h(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Fo(this),renderTargets:{}},this.setAttributions(function(r){var s;const i=[];for(let a=0,o=e.sources.length;a<o;++a){const d=e.sources[a],g=d instanceof Ky?d:d.getSource();if(!g)continue;const b=(s=g.getAttributions())==null?void 0:s(r);typeof b=="string"?i.push(b):b!==void 0&&i.push(...b)}return i}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new Fne({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,r){const i=Object.assign({},this.frameState_);i.viewState=Object.assign({},i.viewState);const s=If(e);i.size[0]=Math.ceil(ps(e)/t),i.size[1]=Math.ceil(Hl(e)/t),i.extent=[s[0]-i.size[0]*t/2,s[1]-i.size[1]*t/2,s[0]+i.size[0]*t/2,s[1]+i.size[1]*t/2],i.time=Date.now();const a=i.viewState;return a.center=s,a.projection=r,a.resolution=t,i}allSourcesReady_(){let e=!0,t;for(let r=0,i=this.layers_.length;r<i;++r)if(t=this.layers_[r].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,r,i){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const s=this.updateFrameState_(e,t,i);if(this.requestedFrameState_=s,this.renderedImageCanvas_){const a=this.renderedImageCanvas_.getResolution(),o=this.renderedImageCanvas_.getExtent();(t!==a||!Wm(s.extent,o))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),s.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.re Line truncated
`);this.generateTileUrlFunction_?this.setTileUrlFunction(Xz(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,r){}}class Zne extends Tx{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:Xne,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:Iz,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!Mg(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||Mg(t,e)))return this.tileGrid;const r=Fo(e);return r in this.tileGridForProjection||(this.tileGridForProjection[r]=Yz(e)),this.tileGridForProjection[r]}createTile_(e,t,r,i,s,a){const o=[e,t,r],d=this.getTileCoordForTileUrlFunction(o,s),g=d?this.tileUrlFunction(d,i,s):void 0,b=new this.tileClass(o,g!==void 0?Cr.IDLE:Cr.EMPTY,g!==void 0?g:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return b.key=a,b.addEventListener(io.CHANGE,this.handleTileChange.bind(this)),b}getTile(e,t,r,i,s){const a=this.getProjection();if(!a||!s||Mg(a,s))return this.getTileInternal(e,t,r,i,a||s);const o=[e,t,r],d=this.getKey(),g=this.getTileGridForProjection(a),b=this.getTileGridForProjection(s),E=this.getTileCoordForTileUrlFunction(o,s),S=new Z6(a,g,s,b,o,E,this.getTilePixelRatio(i),this.getGutter(),(O,k,U,z)=>this.getTileInternal(O,k,U,z,a),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return S.key=d,S}getTileInternal(e,t,r,i,s){const a=this.getKey();return this.createTile_(e,t,r,i,s,a)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const r=Ma(e);if(r){const i=Fo(r);i in this.tileGridForProjection||(this.tileGridForProjection[i]=t)}}}function Xne(n,e){n.getImage().src=e}function Jne(n,e,t,r){const i=document.createElement("script"),s="olc_"+Fo(e);function a(){delete window[s],i.parentNode.removeChild(i)}i.async=!0,i.src=n+(n.includes("?")?"&":"?")+"callback="+s;const o=setTimeout(function(){a(),t&&t()},1e4);window[s]=function(d){clearTimeout(o),a(),e(d)},document.head.appendChild(i)}class Jz extends Zne{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Ma("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)Jne(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 r;try{r=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(r)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=Ma("EPSG:4326"),r=this.getProjection();let i;if(e.bounds!==void 0){const g=G_(t,r);i=rX(e.bounds,g)}const s=kx(r),a=e.minzoom||0,o=e.maxzoom||22,d=jO({extent:s,maxZoom:o,minZoom:a,tileSize:this.tileSize_});if(this.tileGrid=d,this.tileUrlFunction=Xz(e.tiles,d),e.attribution&&!this.getAttributions()){const g=i!==void 0?i:s;this.setAttributions(function(b){return ku(g,b.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}const ere={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},nT={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]};class tre extends Qz{constructor(e,t){super(e,t),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.renderedLayerRevision_,this.renderedPixelToCoordinateTransform_=null,this.renderedRotation_,this.renderedOpacity_=1,this.tmpTransform_=_h(),this.tileClipContexts_=null}drawTile(e,t,r,i,s,a,o,d){this.updateExecutorGroup_(e,t.pixelRatio,t.viewState.projection),this.til Line truncated
This is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md
and paste the contents of this message in the report.
Thank you!
Filter Expression:
${JSON.stringify(t,null,2)}
`)}const i=Qz[`filter_${e}`],o=L6(r,i);let a=null;if(o.result==="error")throw new Error(o.value.map(b=>`${b.key}: ${b.message}`).join(", "));a=(b,B,S)=>o.value.evaluate(b,B,{},S);let s=null,h=null;if(r!==t){const b=L6(t,i);if(b.result==="error")throw new Error(b.value.map(B=>`${B.key}: ${B.message}`).join(", "));s=(B,S,I,k,U)=>b.value.evaluate(B,S,{},I,void 0,void 0,k,U),h=!zx(b.value.expression)}a=a;const g=Vz(r);return{filter:a,dynamicFilter:s||void 0,needGeometry:g,needFeature:!!h}}function Kre(n){if(!ly(n))return n;let e=F6(n);return $z(e),e=Yz(e),e}function Yz(n){if(!Array.isArray(n))return n;const e=Fre(n);return e===!0?e:e.map(t=>Yz(t))}function $z(n){let e=!1;const t=[];if(n[0]==="case"){for(let r=1;r<n.length-1;r+=2)e=e||ly(n[r]),t.push(n[r+1]);t.push(n[n.length-1])}else if(n[0]==="match"){e=e||ly(n[1]);for(let r=2;r<n.length-1;r+=2)t.push(n[r+1]);t.push(n[n.length-1])}else if(n[0]==="step"){e=e||ly(n[1]);for(let r=1;r<n.length-1;r+=2)t.push(n[r+1])}e&&(n.length=0,n.push("any",...t));for(let r=1;r<n.length;r++)$z(n[r])}function ly(n){if(!Array.isArray(n))return!1;if(Dre(n[0]))return!0;for(let e=1;e<n.length;e++){const t=n[e];if(ly(t))return!0}return!1}function Dre(n){return n==="pitch"||n==="distance-from-center"}const Lre=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function Fre(n){if(Lre.has(n[0]))for(let e=1;e<n.length;e++){const t=n[e];if(ly(t))return!0}return n}function Ure(n,e){return n<e?-1:n>e?1:0}function Vz(n){if(!Array.isArray(n))return!1;if(n[0]==="within")return!0;for(let e=1;e<n.length;e++)if(Vz(n[e]))return!0;return!1}function S2(n){if(!n)return!0;const e=n[0];return n.length<=1?e!=="any":e==="=="?e5(n[1],n[2],"=="):e==="!="?nb(e5(n[1],n[2],"==")):e==="<"||e===">"||e==="<="||e===">="?e5(n[1],n[2],e):e==="any"?zre(n.slice(1)):e==="all"?["all"].concat(n.slice(1).map(S2)):e==="none"?["all"].concat(n.slice(1).map(S2).map(nb)):e==="in"?Hk(n[1],n.slice(2)):e==="!in"?nb(Hk(n[1],n.slice(2))):e==="has"?Zk(n[1]):e==="!has"?nb(Zk(n[1])):e==="within"?n:!0}function e5(n,e,t){switch(n){case"$type":return[`filter-type-${t}`,e];case"$id":return[`filter-id-${t}`,e];default:return[`filter-${t}`,n,e]}}function zre(n){return["any"].concat(n.map(S2))}function Hk(n,e){if(e.length===0)return!1;switch(n){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(t=>typeof t!=typeof e[0])?["filter-in-large",n,["literal",e.sort(Ure)]]:["filter-in-small",n,["literal",e]]}}function Zk(n){switch(n){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",n]}}function nb(n){return["!",n]}var jre=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Nre(n,e){const t={};for(const r in n)r!=="ref"&&(t[r]=n[r]);return jre.forEach(r=>{r in e&&(t[r]=e[r])}),t}function Hz(n){n=n.slice();const e=Object.create(null);for(let t=0;t<n.length;t++)e[n[t].id]=n[t];for(let t=0;t<n.length;t++)"ref"in n[t]&&(n[t]=Nre(n[t],e[n[t].ref]));return n}var Xk={thin:100,hairline:100,"ultra-light":200,"extra-light":200,light:300,book:300,regular:400,normal:400,plain:400,roman:400,standard:400,medium:500,"semi-bold":600,"demi-bold":600,bold:700,"extra-bold":800,"ultra-bold":800,heavy:900,black:900,"heavy-black":900,fat:900,poster:900,"ultra-black":950,"extra-black":950},hv=" ",Jk=/(italic|oblique)$/i,eT={},Gre=function(n,e,t){var r=eT[n];if(!r){Array.isArray(n)||(n=[n]);for(var i=400,o="normal",a=[],s,h,g=0,b=n.length;g<b;++g){var B=n[g],S=B.split(" "),I=S[S.length-1].toLowerCase();I=="normal"||I=="italic"||I=="oblique"?(o=h?o:I,h=!0,S.pop(),I=S[S.length-1].toLowerCase()):Jk.test(I)&&(I=I.replace(Jk,""),o=h?o:S[S.length-1].replace(I,""),h=!0);for(var k in Xk){var U=S.length>1?S[S.length-2].toLowerCase():"";if(I==k||I==k.replace("-","")||U+"-"+I==k){i=s?i:Xk[k],S.pop(),U&&k.startsWith(U)&&S.pop();break}}!s&&typeof I=="number"&&(i=I,s=!0);var z=S.join(hv).replace("Klokantech Noto Sans","Noto Sans");z.indexOf(hv)!==-1&&(z='"'+z+'"'),a.push(z)}r=eT[n]=[o,i,a]}return r[0]+hv+r[1]+hv+e+"px"+(t?"/"+t:"")+hv+r[2]},U6=_z(Gre);const Zz="https://api.mapbox.com";function $O(n){const e="mapbox://";return n.indexOf(e)!==0?"":n.slice(e.length)}function Wre(n,e,t){const r=$O(n);if(!r)return decodeURI(new URL(n,t).href);const i="sprites/";if(r.indexOf(i)!==0)throw new Error(`unexpected sprites url: ${n}`);const o=r.slice(i.length);return`${Zz}/styles/v1/${o}/sprite?access_token=${e}`}function E2(n,e){const t=$O(n);if(!t)return decodeURI(new URL(n,location.href).href);const r="styles/";if(t.indexOf(r)!==0)throw new Error(`unexpected style url: ${n}`);const i=t.slice(r.length);return`${Zz}/styles/v1/${i}?&access_token=${e}`}const Qre=["a","b","c","d"];function Sb(n,e,t,r){const i=new URL(n,r),o=$O(n);if(!o)return e?(i.searchParams.has(t)||i.searchParams.set(t,e),[decodeURI(i.href)]):[decodeURI(i.href)];if(o==="mapbox.satellite"){const a=window.devicePixelRatio>=1.5?"@2x":"";return[`https://api.mapbox.com/v4/${o}/{ Line truncated
`),i=Hre.slice(0,Math.round(e/.1));for(let o=0,a=r.length;o<a;++o)o>0&&(t+=`
`),t+=r[o].split("").join(i);return t}return n}let n5;function tj(){return n5||(n5=jx(1,1).getContext("2d")),n5}function rg(n,e){return tj().measureText(n).width+(n.length-1)*e}const sT={};function j6(n,e,t,r){if(n.indexOf(`
`)}const i=Ej[`filter_${e}`],s=nB(r,i);let a=null;if(s.result==="error")throw new Error(s.value.map(b=>`${b.key}: ${b.message}`).join(", "));a=(b,E,S)=>s.value.evaluate(b,E,{},S);let o=null,d=null;if(r!==t){const b=nB(t,i);if(b.result==="error")throw new Error(b.value.map(E=>`${E.key}: ${E.message}`).join(", "));o=(E,S,O,k,U)=>b.value.evaluate(E,S,{},O,void 0,void 0,k,U),d=!Ux(b.value.expression)}a=a;const g=kj(r);return{filter:a,dynamicFilter:o||void 0,needGeometry:g,needFeature:!!d}}function Sie(n){if(!ly(n))return n;let e=rB(n);return Ij(e),e=Oj(e),e}function Oj(n){if(!Array.isArray(n))return n;const e=Oie(n);return e===!0?e:e.map(t=>Oj(t))}function Ij(n){let e=!1;const t=[];if(n[0]==="case"){for(let r=1;r<n.length-1;r+=2)e=e||ly(n[r]),t.push(n[r+1]);t.push(n[n.length-1])}else if(n[0]==="match"){e=e||ly(n[1]);for(let r=2;r<n.length-1;r+=2)t.push(n[r+1]);t.push(n[n.length-1])}else if(n[0]==="step"){e=e||ly(n[1]);for(let r=1;r<n.length-1;r+=2)t.push(n[r+1])}e&&(n.length=0,n.push("any",...t));for(let r=1;r<n.length;r++)Ij(n[r])}function ly(n){if(!Array.isArray(n))return!1;if(Eie(n[0]))return!0;for(let e=1;e<n.length;e++){const t=n[e];if(ly(t))return!0}return!1}function Eie(n){return n==="pitch"||n==="distance-from-center"}const Bie=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function Oie(n){if(Bie.has(n[0]))for(let e=1;e<n.length;e++){const t=n[e];if(ly(t))return!0}return n}function Iie(n,e){return n<e?-1:n>e?1:0}function kj(n){if(!Array.isArray(n))return!1;if(n[0]==="within")return!0;for(let e=1;e<n.length;e++)if(kj(n[e]))return!0;return!1}function M2(n){if(!n)return!0;const e=n[0];return n.length<=1?e!=="any":e==="=="?t5(n[1],n[2],"=="):e==="!="?nb(t5(n[1],n[2],"==")):e==="<"||e===">"||e==="<="||e===">="?t5(n[1],n[2],e):e==="any"?kie(n.slice(1)):e==="all"?["all"].concat(n.slice(1).map(M2)):e==="none"?["all"].concat(n.slice(1).map(M2).map(nb)):e==="in"?fT(n[1],n.slice(2)):e==="!in"?nb(fT(n[1],n.slice(2))):e==="has"?pT(n[1]):e==="!has"?nb(pT(n[1])):e==="within"?n:!0}function t5(n,e,t){switch(n){case"$type":return[`filter-type-${t}`,e];case"$id":return[`filter-id-${t}`,e];default:return[`filter-${t}`,n,e]}}function kie(n){return["any"].concat(n.map(M2))}function fT(n,e){if(e.length===0)return!1;switch(n){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(t=>typeof t!=typeof e[0])?["filter-in-large",n,["literal",e.sort(Iie)]]:["filter-in-small",n,["literal",e]]}}function pT(n){switch(n){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",n]}}function nb(n){return["!",n]}var Tie=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Pie(n,e){const t={};for(const r in n)r!=="ref"&&(t[r]=n[r]);return Tie.forEach(r=>{r in e&&(t[r]=e[r])}),t}function Tj(n){n=n.slice();const e=Object.create(null);for(let t=0;t<n.length;t++)e[n[t].id]=n[t];for(let t=0;t<n.length;t++)"ref"in n[t]&&(n[t]=Pie(n[t],e[n[t].ref]));return n}var mT={thin:100,hairline:100,"ultra-light":200,"extra-light":200,light:300,book:300,regular:400,normal:400,plain:400,roman:400,standard:400,medium:500,"semi-bold":600,"demi-bold":600,bold:700,"extra-bold":800,"ultra-bold":800,heavy:900,black:900,"heavy-black":900,fat:900,poster:900,"ultra-black":950,"extra-black":950},dv=" ",gT=/(italic|oblique)$/i,yT={},Rie=function(n,e,t){var r=yT[n];if(!r){Array.isArray(n)||(n=[n]);for(var i=400,s="normal",a=[],o,d,g=0,b=n.length;g<b;++g){var E=n[g],S=E.split(" "),O=S[S.length-1].toLowerCase();O=="normal"||O=="italic"||O=="oblique"?(s=d?s:O,d=!0,S.pop(),O=S[S.length-1].toLowerCase()):gT.test(O)&&(O=O.replace(gT,""),s=d?s:S[S.length-1].replace(O,""),d=!0);for(var k in mT){var U=S.length>1?S[S.length-2].toLowerCase():"";if(O==k||O==k.replace("-","")||U+"-"+O==k){i=o?i:mT[k],S.pop(),U&&k.startsWith(U)&&S.pop();break}}!o&&typeof O=="number"&&(i=O,o=!0);var z=S.join(dv).replace("Klokantech Noto Sans","Noto Sans");z.indexOf(dv)!==-1&&(z='"'+z+'"'),a.push(z)}r=yT[n]=[s,i,a]}return r[0]+dv+r[1]+dv+e+"px"+(t?"/"+t:"")+dv+r[2]},iB=nj(Rie);const Pj="https://api.mapbox.com";function hI(n){const e="mapbox://";return n.indexOf(e)!==0?"":n.slice(e.length)}function Kie(n,e,t){const r=hI(n);if(!r)return decodeURI(new URL(n,t).href);const i="sprites/";if(r.indexOf(i)!==0)throw new Error(`unexpected sprites url: ${n}`);const s=r.slice(i.length);return`${Pj}/styles/v1/${s}/sprite?access_token=${e}`}function S2(n,e){const t=hI(n);if(!t)return decodeURI(new URL(n,location.href).href);const r="styles/";if(t.indexOf(r)!==0)throw new Error(`unexpected style url: ${n}`);const i=t.slice(r.length);return`${Pj}/styles/v1/${i}?&access_token=${e}`}const Die=["a","b","c","d"];function Sb(n,e,t,r){const i=new URL(n,r),s=hI(n);if(!s)return e?(i.searchParams.has(t)||i.searchParams.set(t,e),[decodeURI(i.href)]):[decodeURI(i.href)];if(s==="mapbox.satellite"){const a=window.devicePixelRatio>=1.5?"@2x":"";return[`https://api.mapbox.com/v4/${s}/{ Line truncated
`),i=jie.slice(0,Math.round(e/.1));for(let s=0,a=r.length;s<a;++s)s>0&&(t+=`
`),t+=r[s].split("").join(i);return t}return n}let r5;function Lj(){return r5||(r5=zx(1,1).getContext("2d")),r5}function rg(n,e){return Lj().measureText(n).width+(n.length-1)*e}const wT={};function sB(n,e,t,r){if(n.indexOf(`
`)!==-1){const a=n.split(`
`),s=[];for(let h=0,g=a.length;h<g;++h)s.push(j6(a[h],e,t,r));return s.join(`
`)}const i=t+","+e+","+n+","+r;let o=sT[i];if(!o){const a=n.split(" ");if(a.length>1){const s=tj();s.font=e;const g=s.measureText("M").width*t;let b="";const B=[];for(let S=0,I=a.length;S<I;++S){const k=a[S],U=b+(b?" ":"")+k;rg(U,r)<=g?b=U:(b&&B.push(b),b=k)}b&&B.push(b);for(let S=0,I=B.length;S<I&&I>1;++S){const k=B[S];if(rg(k,r)<g*.35){const U=S>0?rg(B[S-1],r):1/0,z=S<I-1?rg(B[S+1],r):1/0;B.splice(S,1),I-=1,U<z?(B[S-1]+=" "+k,S-=1):B[S]=k+" "+B[S]}}for(let S=0,I=B.length-1;S<I;++S){const k=B[S],U=B[S+1];if(rg(k,r)>g*.7&&rg(U,r)<g*.6){const z=k.split(" "),Y=z.pop();rg(Y,r)<g*.2&&(B[S]=z.join(" "),B[S+1]=Y+" "+U),I-=1}}o=B.join(`
`)}else o=n;o=z6(o,r),sT[i]=o}return o}const Zre=/font-family: ?([^;]*);/,Xre=/("|')/g;let rb;function Jre(n){if(!rb){rb={};const e=document.styleSheets;for(let t=0,r=e.length;t<r;++t){const i=e[t];try{const o=i.rules||i.cssRules;if(o)for(let a=0,s=o.length;a<s;++a){const h=o[a];if(h.type==5){const g=h.cssText.match(Zre);rb[g[1].replace(Xre,"")]=!0}}}catch{}}}return n in rb}const r5={};function eie(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){const t=n.toString();if(t in r5)return r5[t];const r=[];for(let i=0,o=n.length;i<o;++i){n[i]=n[i].replace("Arial Unicode MS","Arial");const a=n[i],s=U6(a,1);$F(s);const h=s.split(" ");r.push([h.slice(3).join(" ").replace(/"/g,""),h[1],h[0]])}for(let i=0,o=r.length;i<o;++i){const a=r[i],s=a[0];if(!Jre(s)&&Dp.get(`${a[2]}
`),o=[];for(let d=0,g=a.length;d<g;++d)o.push(sB(a[d],e,t,r));return o.join(`
`)}const i=t+","+e+","+n+","+r;let s=wT[i];if(!s){const a=n.split(" ");if(a.length>1){const o=Lj();o.font=e;const g=o.measureText("M").width*t;let b="";const E=[];for(let S=0,O=a.length;S<O;++S){const k=a[S],U=b+(b?" ":"")+k;rg(U,r)<=g?b=U:(b&&E.push(b),b=k)}b&&E.push(b);for(let S=0,O=E.length;S<O&&O>1;++S){const k=E[S];if(rg(k,r)<g*.35){const U=S>0?rg(E[S-1],r):1/0,z=S<O-1?rg(E[S+1],r):1/0;E.splice(S,1),O-=1,U<z?(E[S-1]+=" "+k,S-=1):E[S]=k+" "+E[S]}}for(let S=0,O=E.length-1;S<O;++S){const k=E[S],U=E[S+1];if(rg(k,r)>g*.7&&rg(U,r)<g*.6){const z=k.split(" "),q=z.pop();rg(q,r)<g*.2&&(E[S]=z.join(" "),E[S+1]=q+" "+U),O-=1}}s=E.join(`
`)}else s=n;s=oB(s,r),wT[i]=s}return s}const Nie=/font-family: ?([^;]*);/,Gie=/("|')/g;let rb;function Wie(n){if(!rb){rb={};const e=document.styleSheets;for(let t=0,r=e.length;t<r;++t){const i=e[t];try{const s=i.rules||i.cssRules;if(s)for(let a=0,o=s.length;a<o;++a){const d=s[a];if(d.type==5){const g=d.cssText.match(Nie);rb[g[1].replace(Gie,"")]=!0}}}catch{}}}return n in rb}const i5={};function Qie(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){const t=n.toString();if(t in i5)return i5[t];const r=[];for(let i=0,s=n.length;i<s;++i){n[i]=n[i].replace("Arial Unicode MS","Arial");const a=n[i],o=iB(a,1);IU(o);const d=o.split(" ");r.push([d.slice(3).join(" ").replace(/"/g,""),d[1],d[0]])}for(let i=0,s=r.length;i<s;++i){const a=r[i],o=a[0];if(!Wie(o)&&Dp.get(`${a[2]}
${a[1]}
${s}`)!==100){const h=e.replace("{font-family}",s.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",s.replace(/ /g,"+")).replace("{fontweight}",a[1]).replace("{-fontstyle}",a[2].replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",a[2]);if(!document.querySelector('link[href="'+h+'"]')){const g=document.createElement("link");g.href=h,g.rel="stylesheet",document.head.appendChild(g)}}}return r5[t]=n,n}const tie={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},nie={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]},rie=function(n,e){const t=Ire(n,e);if(t.result==="error")throw new Error(t.value.map(r=>`${r.key}: ${r.message}`).join(", "));return t.value},N6={},B2={zoom:0};let ib,i5;function Ci(n,e,t,r,i,o,a){const s=n.id;o||(o={},console.warn("No functionCache provided to getValue()")),o[s]||(o[s]={});const h=o[s];if(!h[t]){let g=(n[e]||N6)[t];const b=Qz[`${e}_${n.type}`][t];g===void 0&&(g=b.default);let B=Ore(g);if(!B&&Wz(g)&&(g=dne(g,b),B=!0),B){const S=rie(g,b);h[t]=S.evaluate.bind(S)}else b.type=="color"&&(g=Xd.parse(g)),h[t]=function(){return g}}return B2.zoom=r,h[t](B2,i,a)}function aT(n,e,t,r,i){return Ci(n,"layout",`${r}-allow-overlap`,e,t,i)?Ci(n,"layout",`${r}-ignore-placement`,e,t,i)?"none":"obstacle":"declutter"}function iie(n,e,t,r,i){return i||console.warn("No filterCache provided to evaluateFilter()"),n in i||(i[n]=Rre(e).filter),B2.zoom=r,i[n](B2,t)}function m0(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 oie=/\{[^{}}]*\}/g;function o5(n,e){return n.replace(oie,function(t){return e[t.slice(1,-1)]||""})}const sie={};function aie(n,e,t,r=Jp,i=void 0,o=void 0,a=void 0,s=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.version!=8)throw new Error("glStyle version 8 required.");sie[Yre(e,n)]=Array.from(arguments);let h,g,b;if(o){if(typeof Image<"u"){const N=new Image;let ie;yy(()=>o).then(he=>{he instanceof Request?fetch(he).then(ce=>ce.blob()).then(ce=>{ie=URL.createObjectURL(ce),N.src=ie}).catch(()=>{}):(N.crossOrigin="anonymous",N.src=he,ie&&URL.revokeObjectURL(ie))}),N.onload=function(){h=N,g=[N.width,N.height],n.changed(),N.onload=null}}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const N=self;N.postMessage({action:"loadImage",src:o}),N.addEventListener("message",function(he){he.data.action==="imageLoaded"&&he.data.src===o&&(h=he.data.image,g=[h.width,h.height])})}}const B=Hz(e.layers),S={},I=[],k={},U={},z=Xz(e),Y=$re(e);let Q;for(let N=0,ie=B.length;N<ie;++N){const he=B[N],ce=he.id;if(typeof t=="string"&&he.source==t||Array.isArray(t)&&t.indexOf(ce)!==-1){const we=he["source-layer"];if(Q){if(he.source!==Q)throw new Error(`Layer "${ce}" does not use source "${Q}`)}else{Q=he.source;const Ce=e.sources[Q];if(!Ce)throw new Error(`Source "${Q}" is not defined`);const Pe=Ce.type;if(Pe!=="vector"&&Pe!=="geojson")throw new Error(`Source "${Q}" is not of type "vector" or "geojson", but "${Pe}"`)}let pe=S[we];pe||(pe=[],S[we]=pe),pe.push({layer:he,index:N}),I.push(ce)}}const ne=new b0,X=new Dm,q=[],J=function(N,ie,he){const ce=N.getProperties(),we=S[ce.layer];if(!we)return;let pe=r.indexOf(ie);pe==-1&&(pe=HO(ie,r));const Ce=tie[N.getGeometry().getType()],Pe={id:N.getId(),properties:ce,type:Ce},de=n.get("mapbox-featurestate")[N.getId()];let rt=-1;for(let ze=0,Qe=we.length;ze<Qe;++ze){const ut=we[ze],Te=ut.layer,Ue=Te.id;if(he!==void 0&&he!==Ue)continue;const st=Te.layout||N6,wt=Te.paint||N6;if(st.visibility==="none"||"minzoom"in Te&&pe<Te.minzoom||"maxzoom"in Te&&pe>=Te.maxzoom)continue;const mt=Te.filter;if(!mt||iie(Ue,mt,Pe,pe,Y)){let ft,Ut,Lt,De,ke,Oe;const Je=ut.index;if(Ce==3&&(Te.type=="fill"||Te.type=="fill-extrusion"))if(Ut=Ci(Te,"paint",Te.type+"-opacity",pe,Pe,z,de),Te.type+"-pattern"in wt){const Mr=Ci(Te,"paint",Te.type+"-pattern",pe,Pe,z,de);if(Mr){const Qn=typeof Mr=="string"?o5(Mr,ce):Mr.toString();if(h&&i&&i[Qn]){++rt,Oe=q[rt],(!Oe||!Oe.getFill()||Oe.getStroke()||Oe.getText())&&(Oe=new qd({fill:new Dm}),q[rt]=Oe),Lt=Oe.getFill(),Oe.setZIndex(Je);const Sr=Qn+"."+Ut;let Ge=U[Sr];if(!Ge){const ue=i[Qn],me=jx(ue.width,ue.height),Xe=me.getContext("2d");Xe.globalAlpha=Ut,Xe.drawImage(h,ue.x,ue.y,ue.width,ue.height,0,0,ue.width,ue.height),Ge=Xe.createPattern(me,"repeat"),U[Sr]=Ge}Lt.setColor(Ge)}}}else ft=m0(Ci(Te,"paint",Te.type+"-color",pe,Pe,z,de),Ut),Te.type+"-outline-color"in wt&&(ke=m0(Ci(Te,"paint",Te.type+"-outline-color",pe,Pe,z,de),Ut)),ke||(ke=ft),(ft||ke)&&(++rt,Oe=q[rt],(!Oe||ft&&!Oe.getFill()||!ft&&Oe.getFill()||ke&&!Oe.getStroke()||!ke&&Oe.getStroke()||Oe.getText())&&(Oe=new qd({fill:ft?new Dm:void 0,stroke:ke?new b0:void 0}),q[rt]=Oe),ft&&(Lt=Oe.getFill(),Lt.setColor(ft)),ke&&(De=Oe.getStroke(),De.setColor(ke),De.setWidth(.5)),Oe.setZIndex(Je));if(Ce!=1&&Te.typLine truncated
`)return Sr.push(`
`,""),Sr;if(Ce==2)return Sr.push(z6(Bt,br),Xe),Sr;Bt=j6(Bt,Xe,Cr,br).split(`
`);for(let Yt=0,it=Bt.length;Yt<it;++Yt)Yt>0&&Sr.push(`
`,""),Sr.push(Bt[Yt],Xe);return Sr},[]):Yn=o5(Qn,ce).trim(),Ut=Ci(Te,"paint","text-opacity",pe,Pe,z,de)}if(Yn&&Ut&&!Sn){Mt||(++rt,Oe=q[rt],(!Oe||!Oe.getText()||Oe.getFill()||Oe.getStroke())&&(Oe=new qd,q[rt]=Oe),Oe.setImage(void 0),Oe.setGeometry(void 0));const Mr=aT(Te,pe,Pe,"text",z);Oe.getText()||Oe.setText(gt),gt=Oe.getText(),(!gt||"getDeclutterMode"in gt&&gt.getDeclutterMode()!==Mr)&&(gt=new Sx({padding:[2,2,2,2],declutterMode:Mr}),Oe.setText(gt));const Qn=Ci(Te,"layout","text-transform",pe,Pe,z,de);Qn=="uppercase"?Yn=Array.isArray(Yn)?Yn.map((dt,pt)=>pt%2?dt:dt.toUpperCase()):Yn.toUpperCase():Qn=="lowercase"&&(Yn=Array.isArray(Yn)?Yn.map((dt,pt)=>pt%2?dt:dt.toLowerCase()):Yn.toLowerCase());const Sr=Array.isArray(Yn)?Yn:Ce==2?z6(Yn,br):j6(Yn,Qr,Cr,br);if(gt.setText(Sr),gt.setFont(Qr),gt.setRotation(t5(Ci(Te,"layout","text-rotate",pe,Pe,z,de))),typeof gt.setKeepUpright=="function"){const dt=Ci(Te,"layout","text-keep-upright",pe,Pe,z,de);gt.setKeepUpright(dt)}const Ge=Ci(Te,"layout","text-anchor",pe,Pe,z,de),ue=Mt||Ce==1?"point":Ci(Te,"layout","symbol-placement",pe,Pe,z,de);let me;if(ue==="line-center"?(gt.setPlacement("line"),me="center"):gt.setPlacement(ue),ue==="line"&&typeof gt.setRepeat=="function"){const dt=Ci(Te,"layout","symbol-spacing",pe,Pe,z,de);gt.setRepeat(dt*2)}gt.setOverflow(ue==="point");let Xe=Ci(Te,"paint","text-halo-width",pe,Pe,z,de);const Bt=Ci(Te,"layout","text-offset",pe,Pe,z,de),Yt=Ci(Te,"paint","text-translate",pe,Pe,z,de);let it=0,Kt=0;if(ue=="point"){me="center",Ge.indexOf("left")!==-1?(me="left",Kt=Xe):Ge.indexOf("right")!==-1&&(me="right",Kt=-Xe);const dt=Ci(Te,"layout","text-rotation-alignment",pe,Pe,z,de);gt.setRotateWithView(dt=="map")}else gt.setMaxAngle(t5(Ci(Te,"layout","text-max-angle",pe,Pe,z,de))*Yn.length/Sr.length),gt.setRotateWithView(!1);gt.setTextAlign(me);let Ye="middle";Ge.indexOf("bottom")==0?(Ye="bottom",it=-Xe-.5*(cr-1)*fr):Ge.indexOf("top")==0&&(Ye="top",it=Xe+.5*(cr-1)*fr),gt.setTextBaseline(Ye);const fe=Ci(Te,"layout","text-justify",pe,Pe,z,de);gt.setJustify(fe==="auto"?void 0:fe),gt.setOffsetX(Bt[0]*fr+Kt+Yt[0]),gt.setOffsetY(Bt[1]*fr+it+Yt[1]),X.setColor(m0(Ci(Te,"paint","text-color",pe,Pe,z,de),Ut)),gt.setFill(X);const xe=m0(Ci(Te,"paint","text-halo-color",pe,Pe,z,de),Ut);if(xe&&Xe>0){ne.setColor(xe),Xe*=2;const dt=.5*fr;ne.setWidth(Xe<=dt?Xe:dt),gt.setStroke(ne)}else gt.setStroke(void 0);const p=Ci(Te,"layout","text-padding",pe,Pe,z,de),Ne=gt.getPadding();p!==Ne[0]&&(Ne[0]=p,Ne[1]=p,Ne[2]=p,Ne[3]=p),Oe.setZIndex(Je)}}}if(rt>-1)return q.length=rt+1,q};return n.setStyle(J),n.set("mapbox-source",Q),n.set("mapbox-layers",I),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),J}function lie(n,e){const t=n[0],r=t.width,i=t.height,o=t.data,a=new Uint8ClampedArray(o.length),s=e.resolution*2,h=r-1,g=i-1,b=[0,0,0,0],B=2*Math.PI,S=Math.PI/2,I=Math.PI*e.sunEl/180,k=Math.PI*e.sunAz/180,U=Math.cos(I),z=Math.sin(I),Y=e.highlightColor,Q=e.shadowColor,ne=e.accentColor,X=e.encoding;let q,J,N,ie,he,ce,we,pe,Ce,Pe,de,rt,ze,Qe,ut,Te,Ue,st,wt,mt,ft,Ut;function Lt(De,ke="mapbox"){if(ke==="mapbox")return(De[0]*256*256+De[1]*256+De[2])*.1-1e4;if(ke==="terrarium")return De[0]*256+De[1]+De[2]/256-32768}for(J=0;J<=g;++J)for(he=J===0?0:J-1,ce=J===g?g:J+1,q=0;q<=h;++q)N=q===0?0:q-1,ie=q===h?h:q+1,we=(J*r+N)*4,b[0]=o[we],b[1]=o[we+1],b[2]=o[we+2],b[3]=o[we+3],pe=e.vert*Lt(b,X),we=(J*r+ie)*4,b[0]=o[we],b[1]=o[we+1],b[2]=o[we+2],b[3]=o[we+3],Ce=e.vert*Lt(b,X),Pe=(Ce-pe)/s,we=(he*r+q)*4,b[0]=o[we],b[1]=o[we+1],b[2]=o[we+2],b[3]=o[we+3],pe=e.vert*Lt(b,X),we=(ce*r+q)*4,b[0]=o[we],b[1]=o[we+1],b[2]=o[we+2],b[3]=o[we+3],Ce=e.vert*Lt(b,X),de=(Ce-pe)/s,ze=Math.atan2(de,-Pe),ze<0?ze=S-ze:ze>S?ze=B-ze+S:ze=S-ze,rt=Math.atan(Math.sqrt(Pe*Pe+de*de)),Ut=z*Math.cos(rt)+U*Math.sin(rt)*Math.cos(k-ze),Qe=Math.cos(rt),ut=255*Ut,wt=Math.min(Math.max(2*e.sunEl,0),1),mt=1.875-e.opacity*1.75,ft=e.opacity!==.5?S*((Math.pow(mt,rt)-1)/(Math.pow(mt,S)-1)):rt,Ue={r:(1-Qe)*ne.r*wt*255,g:(1-Qe)*ne.g*wt*255,b:(1-Qe)*ne.b*wt*255,a:(1-Qe)*ne.a*wt*255},Te=Math.abs(((ze+k)/Math.PI+.5)%2-1),st={r:(Y.r*(1-Te)+Q.r*Te)*ut,g:(Y.g*(1-Te)+Q.g*Te)*ut,b:(Y.b*(1-Te)+Q.b*Te)*ut,a:(Y.a*(1-Te)+Q.a*Te)*ut},we=(J*r+q)*4,a[we]=Ue.r*(1-Te)+st.r,a[we+1]=Ue.g*(1-Te)+st.g,a[we+2]=Ue.b*(1-Te)+st.b,a[we+3]=o[we+3]*e.opacity*wt*Math.sin(ft);return new ImageData(a,r,i)}function uie(n,e=512){return n.getExtent()?bO({extent:n.getExtent(),tileSize:e,maxZoom:22}).getResolutions():Jp}function nj(n,e){return e.accessToken||(e=Object.assign({},e),new URL(n).searchParams.forEach((r,i)=>{e.accessToken=r,e.accessTokenParam=i})),e}function Aie(n,e,t="",r={},i=void 0){let o,a,s,h,g=!0;return typeof t!="string"&&!Array.isArray(t)?(s=t,h=s.source||s.layers,r=s):h=t,typeof r=="string"?(o=r,s={}):(o=r.styleUrl,s=r),s.updateSource===!1&&(g=!1),i||(i=s.resolutions),!o&&typeof e=="string"&&!e.trim().startsWith("{")&&(o=e),o&&(o=o.startsWith("data:")?location.href:E2(o,s.accessToken),s=nj(o,s)),new Promise(function(b,B){Jz(e,s).then(function(S){if Line truncated
${o}`)!==100){const d=e.replace("{font-family}",o.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",o.replace(/ /g,"+")).replace("{fontweight}",a[1]).replace("{-fontstyle}",a[2].replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",a[2]);if(!document.querySelector('link[href="'+d+'"]')){const g=document.createElement("link");g.href=d,g.rel="stylesheet",document.head.appendChild(g)}}}return i5[t]=n,n}const qie={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},Yie={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]},$ie=function(n,e){const t=Cie(n,e);if(t.result==="error")throw new Error(t.value.map(r=>`${r.key}: ${r.message}`).join(", "));return t.value},aB={},E2={zoom:0};let ib,o5;function Ci(n,e,t,r,i,s,a){const o=n.id;s||(s={},console.warn("No functionCache provided to getValue()")),s[o]||(s[o]={});const d=s[o];if(!d[t]){let g=(n[e]||aB)[t];const b=Ej[`${e}_${n.type}`][t];g===void 0&&(g=b.default);let E=_ie(g);if(!E&&Sj(g)&&(g=ire(g,b),E=!0),E){const S=$ie(g,b);d[t]=S.evaluate.bind(S)}else b.type=="color"&&(g=Xh.parse(g)),d[t]=function(){return g}}return E2.zoom=r,d[t](E2,i,a)}function MT(n,e,t,r,i){return Ci(n,"layout",`${r}-allow-overlap`,e,t,i)?Ci(n,"layout",`${r}-ignore-placement`,e,t,i)?"none":"obstacle":"declutter"}function Vie(n,e,t,r,i){return i||console.warn("No filterCache provided to evaluateFilter()"),n in i||(i[n]=Mie(e).filter),E2.zoom=r,i[n](E2,t)}function m0(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 Hie=/\{[^{}}]*\}/g;function s5(n,e){return n.replace(Hie,function(t){return e[t.slice(1,-1)]||""})}const Zie={};function Xie(n,e,t,r=Jp,i=void 0,s=void 0,a=void 0,o=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.version!=8)throw new Error("glStyle version 8 required.");Zie[Fie(e,n)]=Array.from(arguments);let d,g,b;if(s){if(typeof Image<"u"){const N=new Image;let ie;yy(()=>s).then(he=>{he instanceof Request?fetch(he).then(de=>de.blob()).then(de=>{ie=URL.createObjectURL(de),N.src=ie}).catch(()=>{}):(N.crossOrigin="anonymous",N.src=he,ie&&URL.revokeObjectURL(ie))}),N.onload=function(){d=N,g=[N.width,N.height],n.changed(),N.onload=null}}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const N=self;N.postMessage({action:"loadImage",src:s}),N.addEventListener("message",function(he){he.data.action==="imageLoaded"&&he.data.src===s&&(d=he.data.image,g=[d.width,d.height])})}}const E=Tj(e.layers),S={},O=[],k={},U={},z=Rj(e),q=Uie(e);let Q;for(let N=0,ie=E.length;N<ie;++N){const he=E[N],de=he.id;if(typeof t=="string"&&he.source==t||Array.isArray(t)&&t.indexOf(de)!==-1){const we=he["source-layer"];if(Q){if(he.source!==Q)throw new Error(`Layer "${de}" does not use source "${Q}`)}else{Q=he.source;const be=e.sources[Q];if(!be)throw new Error(`Source "${Q}" is not defined`);const Pe=be.type;if(Pe!=="vector"&&Pe!=="geojson")throw new Error(`Source "${Q}" is not of type "vector" or "geojson", but "${Pe}"`)}let fe=S[we];fe||(fe=[],S[we]=fe),fe.push({layer:he,index:N}),O.push(de)}}const re=new b0,X=new Dm,Y=[],J=function(N,ie,he){const de=N.getProperties(),we=S[de.layer];if(!we)return;let fe=r.indexOf(ie);fe==-1&&(fe=pI(ie,r));const be=qie[N.getGeometry().getType()],Pe={id:N.getId(),properties:de,type:be},pe=n.get("mapbox-featurestate")[N.getId()];let it=-1;for(let We=0,$e=we.length;We<$e;++We){const ht=we[We],De=ht.layer,Ne=De.id;if(he!==void 0&&he!==Ne)continue;const at=De.layout||aB,wt=De.paint||aB;if(at.visibility==="none"||"minzoom"in De&&fe<De.minzoom||"maxzoom"in De&&fe>=De.maxzoom)continue;const Ct=De.filter;if(!Ct||Vie(Ne,Ct,Pe,fe,q)){let ft,Lt,Kt,Fe,Te,Se;const Je=ht.index;if(be==3&&(De.type=="fill"||De.type=="fill-extrusion"))if(Lt=Ci(De,"paint",De.type+"-opacity",fe,Pe,z,pe),De.type+"-pattern"in wt){const xr=Ci(De,"paint",De.type+"-pattern",fe,Pe,z,pe);if(xr){const Qn=typeof xr=="string"?s5(xr,de):xr.toString();if(d&&i&&i[Qn]){++it,Se=Y[it],(!Se||!Se.getFill()||Se.getStroke()||Se.getText())&&(Se=new qh({fill:new Dm}),Y[it]=Se),Kt=Se.getFill(),Se.setZIndex(Je);const Er=Qn+"."+Lt;let Ge=U[Er];if(!Ge){const Ae=i[Qn],me=zx(Ae.width,Ae.height),Xe=me.getContext("2d");Xe.globalAlpha=Lt,Xe.drawImage(d,Ae.x,Ae.y,Ae.width,Ae.height,0,0,Ae.width,Ae.height),Ge=Xe.createPattern(me,"repeat"),U[Er]=Ge}Kt.setColor(Ge)}}}else ft=m0(Ci(De,"paint",De.type+"-color",fe,Pe,z,pe),Lt),De.type+"-outline-color"in wt&&(Te=m0(Ci(De,"paint",De.type+"-outline-color",fe,Pe,z,pe),Lt)),Te||(Te=ft),(ft||Te)&&(++it,Se=Y[it],(!Se||ft&&!Se.getFill()||!ft&&Se.getFill()||Te&&!Se.getStroke()||!Te&&Se.getStroke()||Se.getText())&&(Se=new qh({fill:ft?new Dm:void 0,stroke:Te?new b0:void 0}),Y[it]=Se),ft&&(Kt=Se.getFill(),Kt.setColor(ft)),Te&&(Fe=Se.getStroke(),Fe.setColor(Te),Fe.setWidth(.5)),Se.setZIndex(Je));if(be!=1&&De.typLine truncated
`)return Er.push(`
`,""),Er;if(be==2)return Er.push(oB(Et,mr),Xe),Er;Et=sB(Et,Xe,pr,mr).split(`
`);for(let Yt=0,nn=Et.length;Yt<nn;++Yt)Yt>0&&Er.push(`
`,""),Er.push(Et[Yt],Xe);return Er},[]):jn=s5(Qn,de).trim(),Lt=Ci(De,"paint","text-opacity",fe,Pe,z,pe)}if(jn&&Lt&&!yn){yt||(++it,Se=Y[it],(!Se||!Se.getText()||Se.getFill()||Se.getStroke())&&(Se=new qh,Y[it]=Se),Se.setImage(void 0),Se.setGeometry(void 0));const xr=MT(De,fe,Pe,"text",z);Se.getText()||Se.setText(dt),dt=Se.getText(),(!dt||"getDeclutterMode"in dt&&dt.getDeclutterMode()!==xr)&&(dt=new Mx({padding:[2,2,2,2],declutterMode:xr}),Se.setText(dt));const Qn=Ci(De,"layout","text-transform",fe,Pe,z,pe);Qn=="uppercase"?jn=Array.isArray(jn)?jn.map((rt,pt)=>pt%2?rt:rt.toUpperCase()):jn.toUpperCase():Qn=="lowercase"&&(jn=Array.isArray(jn)?jn.map((rt,pt)=>pt%2?rt:rt.toLowerCase()):jn.toLowerCase());const Er=Array.isArray(jn)?jn:be==2?oB(jn,mr):sB(jn,Rr,pr,mr);if(dt.setText(Er),dt.setFont(Rr),dt.setRotation(n5(Ci(De,"layout","text-rotate",fe,Pe,z,pe))),typeof dt.setKeepUpright=="function"){const rt=Ci(De,"layout","text-keep-upright",fe,Pe,z,pe);dt.setKeepUpright(rt)}const Ge=Ci(De,"layout","text-anchor",fe,Pe,z,pe),Ae=yt||be==1?"point":Ci(De,"layout","symbol-placement",fe,Pe,z,pe);let me;if(Ae==="line-center"?(dt.setPlacement("line"),me="center"):dt.setPlacement(Ae),Ae==="line"&&typeof dt.setRepeat=="function"){const rt=Ci(De,"layout","symbol-spacing",fe,Pe,z,pe);dt.setRepeat(rt*2)}dt.setOverflow(Ae==="point");let Xe=Ci(De,"paint","text-halo-width",fe,Pe,z,pe);const Et=Ci(De,"layout","text-offset",fe,Pe,z,pe),Yt=Ci(De,"paint","text-translate",fe,Pe,z,pe);let nn=0,rr=0;if(Ae=="point"){me="center",Ge.indexOf("left")!==-1?(me="left",rr=Xe):Ge.indexOf("right")!==-1&&(me="right",rr=-Xe);const rt=Ci(De,"layout","text-rotation-alignment",fe,Pe,z,pe);dt.setRotateWithView(rt=="map")}else dt.setMaxAngle(n5(Ci(De,"layout","text-max-angle",fe,Pe,z,pe))*jn.length/Er.length),dt.setRotateWithView(!1);dt.setTextAlign(me);let Ee="middle";Ge.indexOf("bottom")==0?(Ee="bottom",nn=-Xe-.5*(sr-1)*Jn):Ge.indexOf("top")==0&&(Ee="top",nn=Xe+.5*(sr-1)*Jn),dt.setTextBaseline(Ee);const oe=Ci(De,"layout","text-justify",fe,Pe,z,pe);dt.setJustify(oe==="auto"?void 0:oe),dt.setOffsetX(Et[0]*Jn+rr+Yt[0]),dt.setOffsetY(Et[1]*Jn+nn+Yt[1]),X.setColor(m0(Ci(De,"paint","text-color",fe,Pe,z,pe),Lt)),dt.setFill(X);const ve=m0(Ci(De,"paint","text-halo-color",fe,Pe,z,pe),Lt);if(ve&&Xe>0){re.setColor(ve),Xe*=2;const rt=.5*Jn;re.setWidth(Xe<=rt?Xe:rt),dt.setStroke(re)}else dt.setStroke(void 0);const p=Ci(De,"layout","text-padding",fe,Pe,z,pe),ze=dt.getPadding();p!==ze[0]&&(ze[0]=p,ze[1]=p,ze[2]=p,ze[3]=p),Se.setZIndex(Je)}}}if(it>-1)return Y.length=it+1,Y};return n.setStyle(J),n.set("mapbox-source",Q),n.set("mapbox-layers",O),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),J}function Jie(n,e){const t=n[0],r=t.width,i=t.height,s=t.data,a=new Uint8ClampedArray(s.length),o=e.resolution*2,d=r-1,g=i-1,b=[0,0,0,0],E=2*Math.PI,S=Math.PI/2,O=Math.PI*e.sunEl/180,k=Math.PI*e.sunAz/180,U=Math.cos(O),z=Math.sin(O),q=e.highlightColor,Q=e.shadowColor,re=e.accentColor,X=e.encoding;let Y,J,N,ie,he,de,we,fe,be,Pe,pe,it,We,$e,ht,De,Ne,at,wt,Ct,ft,Lt;function Kt(Fe,Te="mapbox"){if(Te==="mapbox")return(Fe[0]*256*256+Fe[1]*256+Fe[2])*.1-1e4;if(Te==="terrarium")return Fe[0]*256+Fe[1]+Fe[2]/256-32768}for(J=0;J<=g;++J)for(he=J===0?0:J-1,de=J===g?g:J+1,Y=0;Y<=d;++Y)N=Y===0?0:Y-1,ie=Y===d?d:Y+1,we=(J*r+N)*4,b[0]=s[we],b[1]=s[we+1],b[2]=s[we+2],b[3]=s[we+3],fe=e.vert*Kt(b,X),we=(J*r+ie)*4,b[0]=s[we],b[1]=s[we+1],b[2]=s[we+2],b[3]=s[we+3],be=e.vert*Kt(b,X),Pe=(be-fe)/o,we=(he*r+Y)*4,b[0]=s[we],b[1]=s[we+1],b[2]=s[we+2],b[3]=s[we+3],fe=e.vert*Kt(b,X),we=(de*r+Y)*4,b[0]=s[we],b[1]=s[we+1],b[2]=s[we+2],b[3]=s[we+3],be=e.vert*Kt(b,X),pe=(be-fe)/o,We=Math.atan2(pe,-Pe),We<0?We=S-We:We>S?We=E-We+S:We=S-We,it=Math.atan(Math.sqrt(Pe*Pe+pe*pe)),Lt=z*Math.cos(it)+U*Math.sin(it)*Math.cos(k-We),$e=Math.cos(it),ht=255*Lt,wt=Math.min(Math.max(2*e.sunEl,0),1),Ct=1.875-e.opacity*1.75,ft=e.opacity!==.5?S*((Math.pow(Ct,it)-1)/(Math.pow(Ct,S)-1)):it,Ne={r:(1-$e)*re.r*wt*255,g:(1-$e)*re.g*wt*255,b:(1-$e)*re.b*wt*255,a:(1-$e)*re.a*wt*255},De=Math.abs(((We+k)/Math.PI+.5)%2-1),at={r:(q.r*(1-De)+Q.r*De)*ht,g:(q.g*(1-De)+Q.g*De)*ht,b:(q.b*(1-De)+Q.b*De)*ht,a:(q.a*(1-De)+Q.a*De)*ht},we=(J*r+Y)*4,a[we]=Ne.r*(1-De)+at.r,a[we+1]=Ne.g*(1-De)+at.g,a[we+2]=Ne.b*(1-De)+at.b,a[we+3]=s[we+3]*e.opacity*wt*Math.sin(ft);return new ImageData(a,r,i)}function eoe(n,e=512){return n.getExtent()?jO({extent:n.getExtent(),tileSize:e,maxZoom:22}).getResolutions():Jp}function Fj(n,e){return e.accessToken||(e=Object.assign({},e),new URL(n).searchParams.forEach((r,i)=>{e.accessToken=r,e.accessTokenParam=i})),e}function toe(n,e,t="",r={},i=void 0){let s,a,o,d,g=!0;return typeof t!="string"&&!Array.isArray(t)?(o=t,d=o.source||o.layers,r=o):d=t,typeof r=="string"?(s=r,o={}):(s=r.styleUrl,o=r),o.updateSource===!1&&(g=!1),i||(i=o.resolutions),!s&&typeof e=="string"&&!e.trim().startsWith("{")&&(s=e),s&&(s=s.startsWith("data:")?location.href:S2(s,o.accessToken),o=Fj(s,o)),new Promise(function(b,E){Kj(e,o).then(function(S){if Line truncated
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/var cT;function wie(){return cT||(cT=1,function(n){(function(){var e={}.hasOwnProperty;function t(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,r(s)))}return o}function r(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 a="";for(var s in o)e.call(o,s)&&o[s]&&(a=i(a,s));return a}function i(o,a){return a?o?o+" "+a:o+a:o}n.exports?(t.default=t,n.exports=t):window.classNames=t})()}(s5)),s5.exports}var Mie=wie();const tm=Ka(Mie);function cg(){var n="/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx",e="e73e8fb606fcd7318a8222b2e50c576ed3ad8702",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx",statementMap:{0:{start:{line:6,column:22},end:{line:10,column:5}},1:{start:{line:11,column:4},end:{line:11,column:154}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:12,column:3}},line:5}},branchMap:{0:{loc:{start:{line:11,column:11},end:{line:11,column:153}},type:"cond-expr",locations:[{start:{line:11,column:52},end:{line:11,column:92}},{start:{line:11,column:111},end:{line:11,column:153}}],line:11}},s:{0:0,1:0},f:{0:0},b:{0:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx"],names:[],mappings:"AAeoC;AAfpC,OAAO,WAAW;AAClB,SAAQ,iBAAiB,qBAAoB;AAO7C,qBAAqB,kBAAkB,MAAM,UAA0B;AAAA,EACrE,SAAS;AACP,UAAM,YAAY;AAAA,MAChB,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,GAAG,KAAK,MAAM;AAAA,IAChB;AACA,WAAO,KAAK,MAAM,cAAc,oBAAC,iBAAc,OAAO,WAAU,IAAK,oBAAC,mBAAgB,OAAO,WAAW;AAAA,EAC1G;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e73e8fb606fcd7318a8222b2e50c576ed3ad8702"},o=t[r]||(t[r]={});(!o[n]||o[n].hash!==e)&&(o[n]=i);var a=o[n];return cg=function(){return a},a}cg();class Sie extends Xn.Component{render(){cg().f[0]++;const e=(cg().s[0]++,{width:20,height:20,...this.props.style});return cg().s[1]++,this.props.isCollapsed?(cg().b[0][0]++,ae.jsx(DV,{style:e})):(cg().b[0][1]++,ae.jsx(KV,{style:e}))}}function $1(){var n="/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx",e="b04bfec534013c327fd210571832bbd2813a944a",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx",statementMap:{0:{start:{line:6,column:4},end:{line:32,column:9}},1:{start:{line:11,column:25},end:{line:11,column:72}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:33,column:3}},line:5},1:{name:"(anonymous_1)",decl:{start:{line:11,column:17},end:{line:11,column:18}},loc:{start:{line:11,column:25},end:{line:11,column:72}},line:11}},branchMap:{},s:{0:0,1:0},f:{0:0,1:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx"],names:[],mappings:"AAcM,SAIE,KAJF;AAdN,OAAO,WAAW;AAClB,OAAO,eAAe;AAUtB,qBAAqB,uBAAuB,MAAM,UAA+B;AAAA,EAC/E,SAAS;AACP,WAAO,oBAAC,QAAG,WAAU,6BACnB;AAAA,MAAC;AAAA;AAAA,QAAI,WAAU;AAAA,QACb,eAAa,sBAAoB,KAAK,MAAM,aAAa;AAAA,QACzD,SAAS,QAAM,KAAK,MAAM,eAAe,CAAC,KAAK,MAAM,QAAQ;AAAA,QAE7D;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,WAAU;AAAA,cACV,iBAAe,KAAK,MAAM,eAAe;AAAA,cACzC,iBAAe,KAAK,MAAM;AAAA,cAEzB,eAAK,MAAM;AAAA;AAAA,UACd;AAAA,UACA,oBAAC,UAAK,WAAU,kBAAiB;AAAA,UACjC;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,EAAE,QAAQ,IAAI,OAAO,GAAG;AAAA,cAC/B,aAAa,KAAK,MAAM;AAAA;AAAA,UAC1B;AAAA;AAAA;AAAA,IACF,GACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b04bfec534013c327fd210571832bbd2813a944a"},o=t[r]||(t[r]={});(!o[n]||o[n].hash!==e)&&(o[n]=i);var a=o[n];return $1=function(){return a},a}$1();class Eie extends Xn.Component{render(){return $1().f[0]++,$1().s[0]++,ae.jsx("li",{className:"maputnik-layer-list-group",children:ae.jsxs("div",{className:"maputnik-layer-list-group-header","data-wd-key":"layer-list-group:"+this.props["data-wd-key"],onClick:e=>($1().f[1]++,$1().s[1]++,this.props.onActiveToggle(!this.props.isActive)),children:[ae.jsx("button",{className:"maputnik-layer-list-group-title","aria-controls":this.props["aria-controls"],"aria-expanded":this.props.isActive,children:this.props.title}),ae.jsx("span",{className:"maputnik-space"}),ae.jsx(Sie,{style:{height:14,width:14},isCollapsed:this.props.isActive})]})})}}function C_(){return C_=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},C_.apply(null,arguments)}function Bie(n){if(Array.isArray(n))return n}function Oie(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,i,o,a,s=[],h=!0,g=!1;try{if(o=(t=t.call(n)).next,e!==0)for(;!(h=(r=o.call(t)).done)&&(s.push(r.value),s.length!==e);h=!Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cj(n,e){return Bie(n)||Oie(n,e)||Aj(n,e)||Iie()}function My(n){"@babel/helpers - typeof";return My=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},My(n)}function kie(n,e){if(My(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(My(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function hj(n){var e=kie(n,"string");return My(e)=="symbol"?e:e+""}function Pa(n,e,t){return(e=hj(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function a5(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.forEach(function(i){Pa(n,i,t[i])})}return n}function Z_(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Tie(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,hj(r.key),r)}}function X_(n,e,t){return e&&Tie(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function fs(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function ZO(n,e){if(e&&(My(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fs(n)}function b_(n){return b_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b_(n)}function W6(n,e){return W6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},W6(n,e)}function XO(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&W6(n,e)}var l5,hT;function Pie(){if(hT)return l5;hT=1;var n=function(e,t,r,i,o,a,s,h){if(!e){var g;if(t===void 0)g=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var b=[r,i,o,a,s,h],B=0;g=new Error(t.replace(/%s/g,function(){return b[B++]})),g.name="Invariant Violation"}throw g.framesToPop=1,g}};return l5=n,l5}var Rie=Pie();const Pg=Ka(Rie);function Kie(n){if(Array.isArray(n))return G6(n)}function Die(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Lie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fie(n){return Kie(n)||Die(n)||Aj(n)||Lie()}var Uie=function(){function n(){Z_(this,n),Pa(this,"refs",{})}return X_(n,[{key:"add",value:function(t,r){this.refs[t]||(this.refs[t]=[]),this.refs[t].push(r)}},{key:"remove",value:function(t,r){var i=this.getIndex(t,r);i!==-1&&this.refs[t].splice(i,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var t=this;return this.refs[this.active.collection].find(function(r){var i=r.node;return i.sortableInfo.index==t.active.index})}},{key:"getIndex",value:function(t,r){return this.refs[t].indexOf(r)}},{key:"getOrderedRefs",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[t].sort(zie)}}]),n}();function zie(n,e){var t=n.node.sortableInfo.index,r=e.node.sortableInfo.index;return t-r}function dj(n,e){return Object.keys(n).reduce(function(t,r){return e.indexOf(r)===-1&&(t[r]=n[r]),t},{})}var p1={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},fj=function(){if(typeof window>"u"||typeof document>"u")return"";var n=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],e=(Array.prototype.slice.call(n).join("").match(/-(moz|webkit|ms)-/)||n.OLink===""&&["","o"])[1];switch(e){case"ms":return"ms";default:return e&&e.length?e[0].toUpperCase()+e.substr(1):""}}();function ob(n,e){Object.keys(e).forEach(function(t){n.style[t]=e[t]})}function sb(n,e){n.style["".concat(fj,"Transform")]=e==null?"":"translate3d(".concat(e.x,"px,").concat(e.y,"px,0)")}function u5(n,e){n.style["".concat(fj,"TransitionDuration")]=e==null?"":"".concat(e,"ms")}function kv(n,e){for(;n;){if(e(n))return n;n=n.parentNode}return null}function dT(n,e,t){return Math.max(n,Math.min(t,e))}function V1(n){return n.substr(-2)==="px"?parseFloat(n):0}function jie(n){var e=window.getComputedStyle(n);return{bottom:V1(e.marginBottom),left:V1(e.marginLeft),right:V1(e.marginRight),top:V1(e.marginTop)}}function JO(n,e){var t=e.displayName||e.name;return t?"".concat(n,"(").concat(t,")"):n}function A5(n,e){var t=n.getBoundingClientRect();return{top:t.top+e.top,left:t.left+e.left}}function dv(n){return n.touches&&n.touches.length?{x:n.touches[0].pageX,y:n.touches[0].pageY}:n.changedTouches&&n.changedTouches.length?{x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY}:{x:n.pageX,y:n.pageY}}function Nie(n){return n.touches&&n.touches.length||n.changedTouches&&n.changedTouches.length}function Eb(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(n){var r={left:t.left+n.offsetLeft,top:t.top+n.offsetTop};return n.parentNode===e?r:Eb(n.parentNode,e,r)}}function Gie(n,e,t){return n<t&&n>e?n-1:n>t&&n<e?n+1:n}function fT(n){var e=n.lockOffset,t=n.width,r=n.height,i=e,o=e,a="px";if(typeof e=="string"){var s=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(e);Pg(s!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',e),i=parseFloat(e),o=parseFloat(e),a=s[1]}return Pg(isFinite(i)&&isFinite(o),"lockOffset value should be a finite. Given %s",e),a==="%"&&(i=i*t/100,o=o*r/100),{x:i,y:o}}function Wie(n){var e=n.height,t=n.width,r=n.lockOffset,i=Array.isArray(r)?r:[r,r];Pg(i.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var o=cj(i,2),a=o[0],s=o[1];return[fT({height:e,lockOffset:a,width:t}),fT({height:e,lockOffset:s,width:t})]}function Qie(n){var e=window.getComputedStyle(n),t=/(auto|scroll)/,r=["overflow","overflowX","overflowY"];return r.find(function(i){return t.test(e[i])})}function pj(n){return n instanceof HTMLElement?Qie(n)?n:pj(n.parentNode):null}function qie(n){var e=window.getComputedStyle(n);return e.display==="grid"?{x:V1(e.gridColumnGap),y:V1(e.gridRowGap)}:{x:0,y:0}}var ig={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},hg={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function Yie(n){var e="input, textarea, select, canvas, [contenteditable]",t=n.querySelectorAll(e),r=n.cloneNode(!0),i=Fie(r.querySelectorAll(e));return i.forEach(function(o,a){if(o.type!=="file"&&(o.value=t[a].value),o.type==="radio"&&o.name&&(o.name="__sortableClone__".concat(o.name)),o.tagName===hg.Canvas&&t[a].width>0&&t[a].height>0){var s=o.getContext("2d");s.drawImage(t[a],0,0)}}),r}function $ie(n){var e,t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return t=e=function(i){XO(o,i);function o(){var a,s;Z_(this,o);for(var h=arguments.length,g=new Array(h),b=0;b<h;b++)g[b]=arguments[b];return s=ZO(this,(a=b_(o)).call.apply(a,[this].concat(g))),Pa(fs(fs(s)),"wrappedInstance",Ai.createRef()),s}return X_(o,[{key:"componentDidMount",value:function(){var s=lx.findDOMNode(this);s.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return Pg(r.with Line truncated
*/var OT;function poe(){return OT||(OT=1,function(n){(function(){var e={}.hasOwnProperty;function t(){for(var s="",a=0;a<arguments.length;a++){var o=arguments[a];o&&(s=i(s,r(o)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return t.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var a="";for(var o in s)e.call(s,o)&&s[o]&&(a=i(a,o));return a}function i(s,a){return a?s?s+" "+a:s+a:s}n.exports?(t.default=t,n.exports=t):window.classNames=t})()}(a5)),a5.exports}var moe=poe();const tm=La(moe);function cg(){var n="/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx",e="e73e8fb606fcd7318a8222b2e50c576ed3ad8702",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx",statementMap:{0:{start:{line:6,column:22},end:{line:10,column:5}},1:{start:{line:11,column:4},end:{line:11,column:154}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:12,column:3}},line:5}},branchMap:{0:{loc:{start:{line:11,column:11},end:{line:11,column:153}},type:"cond-expr",locations:[{start:{line:11,column:52},end:{line:11,column:92}},{start:{line:11,column:111},end:{line:11,column:153}}],line:11}},s:{0:0,1:0},f:{0:0},b:{0:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx"],names:[],mappings:"AAeoC;AAfpC,OAAO,WAAW;AAClB,SAAQ,iBAAiB,qBAAoB;AAO7C,qBAAqB,kBAAkB,MAAM,UAA0B;AAAA,EACrE,SAAS;AACP,UAAM,YAAY;AAAA,MAChB,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,GAAG,KAAK,MAAM;AAAA,IAChB;AACA,WAAO,KAAK,MAAM,cAAc,oBAAC,iBAAc,OAAO,WAAU,IAAK,oBAAC,mBAAgB,OAAO,WAAW;AAAA,EAC1G;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e73e8fb606fcd7318a8222b2e50c576ed3ad8702"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var a=s[n];return cg=function(){return a},a}cg();class goe extends Zn.Component{render(){cg().f[0]++;const e=(cg().s[0]++,{width:20,height:20,...this.props.style});return cg().s[1]++,this.props.isCollapsed?(cg().b[0][0]++,le.jsx(EH,{style:e})):(cg().b[0][1]++,le.jsx(SH,{style:e}))}}function $1(){var n="/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx",e="b04bfec534013c327fd210571832bbd2813a944a",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx",statementMap:{0:{start:{line:6,column:4},end:{line:32,column:9}},1:{start:{line:11,column:25},end:{line:11,column:72}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:33,column:3}},line:5},1:{name:"(anonymous_1)",decl:{start:{line:11,column:17},end:{line:11,column:18}},loc:{start:{line:11,column:25},end:{line:11,column:72}},line:11}},branchMap:{},s:{0:0,1:0},f:{0:0,1:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx"],names:[],mappings:"AAcM,SAIE,KAJF;AAdN,OAAO,WAAW;AAClB,OAAO,eAAe;AAUtB,qBAAqB,uBAAuB,MAAM,UAA+B;AAAA,EAC/E,SAAS;AACP,WAAO,oBAAC,QAAG,WAAU,6BACnB;AAAA,MAAC;AAAA;AAAA,QAAI,WAAU;AAAA,QACb,eAAa,sBAAoB,KAAK,MAAM,aAAa;AAAA,QACzD,SAAS,QAAM,KAAK,MAAM,eAAe,CAAC,KAAK,MAAM,QAAQ;AAAA,QAE7D;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,WAAU;AAAA,cACV,iBAAe,KAAK,MAAM,eAAe;AAAA,cACzC,iBAAe,KAAK,MAAM;AAAA,cAEzB,eAAK,MAAM;AAAA;AAAA,UACd;AAAA,UACA,oBAAC,UAAK,WAAU,kBAAiB;AAAA,UACjC;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,EAAE,QAAQ,IAAI,OAAO,GAAG;AAAA,cAC/B,aAAa,KAAK,MAAM;AAAA;AAAA,UAC1B;AAAA;AAAA;AAAA,IACF,GACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b04bfec534013c327fd210571832bbd2813a944a"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var a=s[n];return $1=function(){return a},a}$1();class yoe extends Zn.Component{render(){return $1().f[0]++,$1().s[0]++,le.jsx("li",{className:"maputnik-layer-list-group",children:le.jsxs("div",{className:"maputnik-layer-list-group-header","data-wd-key":"layer-list-group:"+this.props["data-wd-key"],onClick:e=>($1().f[1]++,$1().s[1]++,this.props.onActiveToggle(!this.props.isActive)),children:[le.jsx("button",{className:"maputnik-layer-list-group-title","aria-controls":this.props["aria-controls"],"aria-expanded":this.props.isActive,children:this.props.title}),le.jsx("span",{className:"maputnik-space"}),le.jsx(goe,{style:{height:14,width:14},isCollapsed:this.props.isActive})]})})}}function b_(){return b_=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},b_.apply(null,arguments)}function voe(n){if(Array.isArray(n))return n}function _oe(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,i,s,a,o=[],d=!0,g=!1;try{if(s=(t=t.call(n)).next,e!==0)for(;!(d=(r=s.call(t)).done)&&(o.push(r.value),o.length!==e);d=!Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yj(n,e){return voe(n)||_oe(n,e)||qj(n,e)||Coe()}function My(n){"@babel/helpers - typeof";return My=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},My(n)}function boe(n,e){if(My(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(My(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function $j(n){var e=boe(n,"string");return My(e)=="symbol"?e:e+""}function Ka(n,e,t){return(e=$j(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function l5(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.forEach(function(i){Ka(n,i,t[i])})}return n}function X_(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function xoe(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,$j(r.key),r)}}function J_(n,e,t){return e&&xoe(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function fs(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function mI(n,e){if(e&&(My(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fs(n)}function x_(n){return x_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x_(n)}function uB(n,e){return uB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},uB(n,e)}function gI(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&uB(n,e)}var u5,IT;function woe(){if(IT)return u5;IT=1;var n=function(e,t,r,i,s,a,o,d){if(!e){var g;if(t===void 0)g=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var b=[r,i,s,a,o,d],E=0;g=new Error(t.replace(/%s/g,function(){return b[E++]})),g.name="Invariant Violation"}throw g.framesToPop=1,g}};return u5=n,u5}var Moe=woe();const Rg=La(Moe);function Soe(n){if(Array.isArray(n))return lB(n)}function Eoe(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Boe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ooe(n){return Soe(n)||Eoe(n)||qj(n)||Boe()}var Ioe=function(){function n(){X_(this,n),Ka(this,"refs",{})}return J_(n,[{key:"add",value:function(t,r){this.refs[t]||(this.refs[t]=[]),this.refs[t].push(r)}},{key:"remove",value:function(t,r){var i=this.getIndex(t,r);i!==-1&&this.refs[t].splice(i,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var t=this;return this.refs[this.active.collection].find(function(r){var i=r.node;return i.sortableInfo.index==t.active.index})}},{key:"getIndex",value:function(t,r){return this.refs[t].indexOf(r)}},{key:"getOrderedRefs",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[t].sort(koe)}}]),n}();function koe(n,e){var t=n.node.sortableInfo.index,r=e.node.sortableInfo.index;return t-r}function Vj(n,e){return Object.keys(n).reduce(function(t,r){return e.indexOf(r)===-1&&(t[r]=n[r]),t},{})}var m1={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},Hj=function(){if(typeof window>"u"||typeof document>"u")return"";var n=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],e=(Array.prototype.slice.call(n).join("").match(/-(moz|webkit|ms)-/)||n.OLink===""&&["","o"])[1];switch(e){case"ms":return"ms";default:return e&&e.length?e[0].toUpperCase()+e.substr(1):""}}();function ob(n,e){Object.keys(e).forEach(function(t){n.style[t]=e[t]})}function sb(n,e){n.style["".concat(Hj,"Transform")]=e==null?"":"translate3d(".concat(e.x,"px,").concat(e.y,"px,0)")}function A5(n,e){n.style["".concat(Hj,"TransitionDuration")]=e==null?"":"".concat(e,"ms")}function kv(n,e){for(;n;){if(e(n))return n;n=n.parentNode}return null}function kT(n,e,t){return Math.max(n,Math.min(t,e))}function V1(n){return n.substr(-2)==="px"?parseFloat(n):0}function Toe(n){var e=window.getComputedStyle(n);return{bottom:V1(e.marginBottom),left:V1(e.marginLeft),right:V1(e.marginRight),top:V1(e.marginTop)}}function yI(n,e){var t=e.displayName||e.name;return t?"".concat(n,"(").concat(t,")"):n}function c5(n,e){var t=n.getBoundingClientRect();return{top:t.top+e.top,left:t.left+e.left}}function hv(n){return n.touches&&n.touches.length?{x:n.touches[0].pageX,y:n.touches[0].pageY}:n.changedTouches&&n.changedTouches.length?{x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY}:{x:n.pageX,y:n.pageY}}function Poe(n){return n.touches&&n.touches.length||n.changedTouches&&n.changedTouches.length}function Eb(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(n){var r={left:t.left+n.offsetLeft,top:t.top+n.offsetTop};return n.parentNode===e?r:Eb(n.parentNode,e,r)}}function Roe(n,e,t){return n<t&&n>e?n-1:n>t&&n<e?n+1:n}function TT(n){var e=n.lockOffset,t=n.width,r=n.height,i=e,s=e,a="px";if(typeof e=="string"){var o=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(e);Rg(o!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',e),i=parseFloat(e),s=parseFloat(e),a=o[1]}return Rg(isFinite(i)&&isFinite(s),"lockOffset value should be a finite. Given %s",e),a==="%"&&(i=i*t/100,s=s*r/100),{x:i,y:s}}function Koe(n){var e=n.height,t=n.width,r=n.lockOffset,i=Array.isArray(r)?r:[r,r];Rg(i.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var s=Yj(i,2),a=s[0],o=s[1];return[TT({height:e,lockOffset:a,width:t}),TT({height:e,lockOffset:o,width:t})]}function Doe(n){var e=window.getComputedStyle(n),t=/(auto|scroll)/,r=["overflow","overflowX","overflowY"];return r.find(function(i){return t.test(e[i])})}function Zj(n){return n instanceof HTMLElement?Doe(n)?n:Zj(n.parentNode):null}function Loe(n){var e=window.getComputedStyle(n);return e.display==="grid"?{x:V1(e.gridColumnGap),y:V1(e.gridRowGap)}:{x:0,y:0}}var ig={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},dg={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function Foe(n){var e="input, textarea, select, canvas, [contenteditable]",t=n.querySelectorAll(e),r=n.cloneNode(!0),i=Ooe(r.querySelectorAll(e));return i.forEach(function(s,a){if(s.type!=="file"&&(s.value=t[a].value),s.type==="radio"&&s.name&&(s.name="__sortableClone__".concat(s.name)),s.tagName===dg.Canvas&&t[a].width>0&&t[a].height>0){var o=s.getContext("2d");o.drawImage(t[a],0,0)}}),r}function Uoe(n){var e,t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return t=e=function(i){gI(s,i);function s(){var a,o;X_(this,s);for(var d=arguments.length,g=new Array(d),b=0;b<d;b++)g[b]=arguments[b];return o=mI(this,(a=x_(s)).call.apply(a,[this].concat(g))),Ka(fs(fs(o)),"wrappedInstance",ui.createRef()),o}return J_(s,[{key:"componentDidMount",value:function(){var o=ax.findDOMNode(this);o.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return Rg(r.with Line truncated
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var _j=["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])"],I2=_j.join(","),Cj=typeof Element>"u",Rg=Cj?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,k2=!Cj&&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==null?void 0:n.ownerDocument},T2=function n(e,t){var r;t===void 0&&(t=!0);var i=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),o=i===""||i==="true",a=o||t&&e&&n(e.parentNode);return a},aoe=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},bj=function(e,t,r){if(T2(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(I2));return t&&Rg.call(e,I2)&&i.unshift(e),i=i.filter(r),i},xj=function n(e,t,r){for(var i=[],o=Array.from(e);o.length;){var a=o.shift();if(!T2(a,!1))if(a.tagName==="SLOT"){var s=a.assignedElements(),h=s.length?s:a.children,g=n(h,!0,r);r.flatten?i.push.apply(i,g):i.push({scopeParent:a,candidates:g})}else{var b=Rg.call(a,I2);b&&r.filter(a)&&(t||!e.includes(a))&&i.push(a);var B=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),S=!T2(B,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(B&&S){var I=n(B===!0?a.children:B.children,!0,r);r.flatten?i.push.apply(i,I):i.push({scopeParent:a,candidates:I})}else o.unshift.apply(o,a.children)}}return i},wj=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},v0=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||aoe(e))&&!wj(e)?0:e.tabIndex},loe=function(e,t){var r=v0(e);return r<0&&t&&!wj(e)?0:r},uoe=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Mj=function(e){return e.tagName==="INPUT"},Aoe=function(e){return Mj(e)&&e.type==="hidden"},coe=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},hoe=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},doe=function(e){if(!e.name)return!0;var t=e.form||k2(e),r=function(s){return t.querySelectorAll('input[type="radio"][name="'+s+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(e.name));else try{i=r(e.name)}catch(a){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",a.message),!1}var o=hoe(i,e.form);return!o||o===e},foe=function(e){return Mj(e)&&e.type==="radio"},poe=function(e){return foe(e)&&!doe(e)},moe=function(e){var t,r=e&&k2(e),i=(t=r)===null||t===void 0?void 0:t.host,o=!1;if(r&&r!==e){var a,s,h;for(o=!!((a=i)!==null&&a!==void 0&&(s=a.ownerDocument)!==null&&s!==void 0&&s.contains(i)||e!=null&&(h=e.ownerDocument)!==null&&h!==void 0&&h.contains(e));!o&&i;){var g,b,B;r=k2(i),i=(g=r)===null||g===void 0?void 0:g.host,o=!!((b=i)!==null&&b!==void 0&&(B=b.ownerDocument)!==null&&B!==void 0&&B.contains(i))}}return o},mT=function(e){var t=e.getBoundingClientRect(),r=t.width,i=t.height;return r===0&&i===0},goe=function(e,t){var r=t.displayCheck,i=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var o=Rg.call(e,"details>summary:first-of-type"),a=o?e.parentElement:e;if(Rg.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var s=e;e;){var h=e.parentElement,g=k2(e);if(h&&!h.shadowRoot&&i(h)===!0)return mT(e);e.assignedSlot?e=e.assignedSlot:!h&&g!==e.ownerDocument?e=g.host:e=h}e=s}if(moe(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return mT(e);return!1},yoe=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var i=t.children.item(r);if(i.tagName==="LEGEND")return Rg.call(t,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}t=t.parentElement}return!1},P2=function(e,t){return!(t.disabled||T2(t)||Aoe(t)||goe(t,e)||coe(t)||yoe(t))},q6=function(e,t){return!(poe(t)||v0(t)<0||!P2(e,t))},voe=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},_oe=function n(e){var t=[],r=[];return e.forEach(function(i,o){var a=!!i.scopeParent,s=a?i.scopeParent:i,h=loe(s,a),g=a?n(i.candidates):s;h===0?a?t.push.apply(t,g):t.push(s):r.push({documentOrder:o,tabIndex:h,item:i,isScope:a,content:g})}),r.sort(uoe).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.pusLine truncated
*/var nN=["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])"],O2=nN.join(","),rN=typeof Element>"u",Kg=rN?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,I2=!rN&&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==null?void 0:n.ownerDocument},k2=function n(e,t){var r;t===void 0&&(t=!0);var i=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),s=i===""||i==="true",a=s||t&&e&&n(e.parentNode);return a},Xoe=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},iN=function(e,t,r){if(k2(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(O2));return t&&Kg.call(e,O2)&&i.unshift(e),i=i.filter(r),i},oN=function n(e,t,r){for(var i=[],s=Array.from(e);s.length;){var a=s.shift();if(!k2(a,!1))if(a.tagName==="SLOT"){var o=a.assignedElements(),d=o.length?o:a.children,g=n(d,!0,r);r.flatten?i.push.apply(i,g):i.push({scopeParent:a,candidates:g})}else{var b=Kg.call(a,O2);b&&r.filter(a)&&(t||!e.includes(a))&&i.push(a);var E=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),S=!k2(E,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(E&&S){var O=n(E===!0?a.children:E.children,!0,r);r.flatten?i.push.apply(i,O):i.push({scopeParent:a,candidates:O})}else s.unshift.apply(s,a.children)}}return i},sN=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},v0=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Xoe(e))&&!sN(e)?0:e.tabIndex},Joe=function(e,t){var r=v0(e);return r<0&&t&&!sN(e)?0:r},ese=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},aN=function(e){return e.tagName==="INPUT"},tse=function(e){return aN(e)&&e.type==="hidden"},nse=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},rse=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},ise=function(e){if(!e.name)return!0;var t=e.form||I2(e),r=function(o){return t.querySelectorAll('input[type="radio"][name="'+o+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(e.name));else try{i=r(e.name)}catch(a){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",a.message),!1}var s=rse(i,e.form);return!s||s===e},ose=function(e){return aN(e)&&e.type==="radio"},sse=function(e){return ose(e)&&!ise(e)},ase=function(e){var t,r=e&&I2(e),i=(t=r)===null||t===void 0?void 0:t.host,s=!1;if(r&&r!==e){var a,o,d;for(s=!!((a=i)!==null&&a!==void 0&&(o=a.ownerDocument)!==null&&o!==void 0&&o.contains(i)||e!=null&&(d=e.ownerDocument)!==null&&d!==void 0&&d.contains(e));!s&&i;){var g,b,E;r=I2(i),i=(g=r)===null||g===void 0?void 0:g.host,s=!!((b=i)!==null&&b!==void 0&&(E=b.ownerDocument)!==null&&E!==void 0&&E.contains(i))}}return s},RT=function(e){var t=e.getBoundingClientRect(),r=t.width,i=t.height;return r===0&&i===0},lse=function(e,t){var r=t.displayCheck,i=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var s=Kg.call(e,"details>summary:first-of-type"),a=s?e.parentElement:e;if(Kg.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var o=e;e;){var d=e.parentElement,g=I2(e);if(d&&!d.shadowRoot&&i(d)===!0)return RT(e);e.assignedSlot?e=e.assignedSlot:!d&&g!==e.ownerDocument?e=g.host:e=d}e=o}if(ase(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return RT(e);return!1},use=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var i=t.children.item(r);if(i.tagName==="LEGEND")return Kg.call(t,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}t=t.parentElement}return!1},T2=function(e,t){return!(t.disabled||k2(t)||tse(t)||lse(t,e)||nse(t)||use(t))},cB=function(e,t){return!(sse(t)||v0(t)<0||!T2(e,t))},Ase=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},cse=function n(e){var t=[],r=[];return e.forEach(function(i,s){var a=!!i.scopeParent,o=a?i.scopeParent:i,d=Joe(o,a),g=a?n(i.candidates):o;d===0?a?t.push.apply(t,g):t.push(o):r.push({documentOrder:s,tabIndex:d,item:i,isScope:a,content:g})}),r.sort(ese).reduce(function(i,s){return s.isScope?i.push.apply(i,s.content):i.pusLine truncated
* focus-trap 7.5.4
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*/function gT(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function yT(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?gT(Object(t),!0).forEach(function(r){xoe(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):gT(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function xoe(n,e,t){return e=Moe(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function woe(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Moe(n){var e=woe(n,"string");return typeof e=="symbol"?e:String(e)}var vT={activateTrap:function(e,t){if(e.length>0){var r=e[e.length-1];r!==t&&r.pause()}var i=e.indexOf(t);i===-1||e.splice(i,1),e.push(t)},deactivateTrap:function(e,t){var r=e.indexOf(t);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},Soe=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Eoe=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},Yv=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Boe=function(e){return Yv(e)&&!e.shiftKey},Ooe=function(e){return Yv(e)&&e.shiftKey},_T=function(e){return setTimeout(e,0)},CT=function(e,t){var r=-1;return e.every(function(i,o){return t(i)?(r=o,!1):!0}),r},fv=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return typeof e=="function"?e.apply(void 0,r):e},ab=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Ioe=[],koe=function(e,t){var r=(t==null?void 0:t.document)||document,i=(t==null?void 0:t.trapStack)||Ioe,o=yT({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Boe,isKeyBackward:Ooe},t),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s,h=function(pe,Ce,Pe){return pe&&pe[Ce]!==void 0?pe[Ce]:o[Pe||Ce]},g=function(pe,Ce){var Pe=typeof(Ce==null?void 0:Ce.composedPath)=="function"?Ce.composedPath():void 0;return a.containerGroups.findIndex(function(de){var rt=de.container,ze=de.tabbableNodes;return rt.contains(pe)||(Pe==null?void 0:Pe.includes(rt))||ze.find(function(Qe){return Qe===pe})})},b=function(pe){var Ce=o[pe];if(typeof Ce=="function"){for(var Pe=arguments.length,de=new Array(Pe>1?Pe-1:0),rt=1;rt<Pe;rt++)de[rt-1]=arguments[rt];Ce=Ce.apply(void 0,de)}if(Ce===!0&&(Ce=void 0),!Ce){if(Ce===void 0||Ce===!1)return Ce;throw new Error("`".concat(pe,"` was specified but was not a node, or did not return a node"))}var ze=Ce;if(typeof Ce=="string"&&(ze=r.querySelector(Ce),!ze))throw new Error("`".concat(pe,"` as selector refers to no known node"));return ze},B=function(){var pe=b("initialFocus");if(pe===!1)return!1;if(pe===void 0||!Bb(pe,o.tabbableOptions))if(g(r.activeElement)>=0)pe=r.activeElement;else{var Ce=a.tabbableGroups[0],Pe=Ce&&Ce.firstTabbableNode;pe=Pe||b("fallbackFocus")}if(!pe)throw new Error("Your focus-trap needs to have at least one focusable element");return pe},S=function(){if(a.containerGroups=a.containers.map(function(pe){var Ce=Sj(pe,o.tabbableOptions),Pe=Ej(pe,o.tabbableOptions),de=Ce.length>0?Ce[0]:void 0,rt=Ce.length>0?Ce[Ce.length-1]:void 0,ze=Pe.find(function(Te){return ug(Te)}),Qe=Pe.slice().reverse().find(function(Te){return ug(Te)}),ut=!!Ce.find(function(Te){return v0(Te)>0});return{container:pe,tabbableNodes:Ce,focusableNodes:Pe,posTabIndexesFound:ut,firstTabbableNode:de,lastTabbableNode:rt,firstDomTabbableNode:ze,lastDomTabbableNode:Qe,nextTabbableNode:function(Ue){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,wt=Ce.indexOf(Ue);return wt<0?st?Pe.slice(Pe.indexOf(Ue)+1).find(function(mt){return ug(mt)}):Pe.slice(0,Pe.indexOf(Ue)).reverse().find(function(mt){return ug(mt)}):Ce[wt+(st?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(pe){return pe.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!b("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(a.containerGroups.find(function(pe){return pe.posTabIndexesFound})&&a.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.")},I=function we(pe){var Ce=pe.activeElemeLine truncated
*/function KT(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function DT(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?KT(Object(t),!0).forEach(function(r){fse(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):KT(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function fse(n,e,t){return e=mse(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function pse(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function mse(n){var e=pse(n,"string");return typeof e=="symbol"?e:String(e)}var LT={activateTrap:function(e,t){if(e.length>0){var r=e[e.length-1];r!==t&&r.pause()}var i=e.indexOf(t);i===-1||e.splice(i,1),e.push(t)},deactivateTrap:function(e,t){var r=e.indexOf(t);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},gse=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},yse=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},Yv=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},vse=function(e){return Yv(e)&&!e.shiftKey},_se=function(e){return Yv(e)&&e.shiftKey},FT=function(e){return setTimeout(e,0)},UT=function(e,t){var r=-1;return e.every(function(i,s){return t(i)?(r=s,!1):!0}),r},fv=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return typeof e=="function"?e.apply(void 0,r):e},ab=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Cse=[],bse=function(e,t){var r=(t==null?void 0:t.document)||document,i=(t==null?void 0:t.trapStack)||Cse,s=DT({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:vse,isKeyBackward:_se},t),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,d=function(fe,be,Pe){return fe&&fe[be]!==void 0?fe[be]:s[Pe||be]},g=function(fe,be){var Pe=typeof(be==null?void 0:be.composedPath)=="function"?be.composedPath():void 0;return a.containerGroups.findIndex(function(pe){var it=pe.container,We=pe.tabbableNodes;return it.contains(fe)||(Pe==null?void 0:Pe.includes(it))||We.find(function($e){return $e===fe})})},b=function(fe){var be=s[fe];if(typeof be=="function"){for(var Pe=arguments.length,pe=new Array(Pe>1?Pe-1:0),it=1;it<Pe;it++)pe[it-1]=arguments[it];be=be.apply(void 0,pe)}if(be===!0&&(be=void 0),!be){if(be===void 0||be===!1)return be;throw new Error("`".concat(fe,"` was specified but was not a node, or did not return a node"))}var We=be;if(typeof be=="string"&&(We=r.querySelector(be),!We))throw new Error("`".concat(fe,"` as selector refers to no known node"));return We},E=function(){var fe=b("initialFocus");if(fe===!1)return!1;if(fe===void 0||!Bb(fe,s.tabbableOptions))if(g(r.activeElement)>=0)fe=r.activeElement;else{var be=a.tabbableGroups[0],Pe=be&&be.firstTabbableNode;fe=Pe||b("fallbackFocus")}if(!fe)throw new Error("Your focus-trap needs to have at least one focusable element");return fe},S=function(){if(a.containerGroups=a.containers.map(function(fe){var be=lN(fe,s.tabbableOptions),Pe=uN(fe,s.tabbableOptions),pe=be.length>0?be[0]:void 0,it=be.length>0?be[be.length-1]:void 0,We=Pe.find(function(De){return ug(De)}),$e=Pe.slice().reverse().find(function(De){return ug(De)}),ht=!!be.find(function(De){return v0(De)>0});return{container:fe,tabbableNodes:be,focusableNodes:Pe,posTabIndexesFound:ht,firstTabbableNode:pe,lastTabbableNode:it,firstDomTabbableNode:We,lastDomTabbableNode:$e,nextTabbableNode:function(Ne){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,wt=be.indexOf(Ne);return wt<0?at?Pe.slice(Pe.indexOf(Ne)+1).find(function(Ct){return ug(Ct)}):Pe.slice(0,Pe.indexOf(Ne)).reverse().find(function(Ct){return ug(Ct)}):be[wt+(at?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(fe){return fe.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!b("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(a.containerGroups.find(function(fe){return fe.posTabIndexesFound})&&a.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.")},O=function we(fe){var be=fe.activeElemeLine truncated
The URL must include:
@@ -933,7 +933,7 @@ The URL must include:
- \`{range}\` - When requesting glyphs, this token is replaced with a range of 256 Unicode code points. For example, to load glyphs for the Unicode Basic Latin and Basic Latin-1 Supplement blocks, the range would be 0-255. The actual ranges that are loaded are determined at runtime based on what text needs to be displayed.
This property is required if any layer uses the \`text-field\` layout property. The URL must be absolute, containing the [scheme, authority and path components](https://en.wikipedia.org/wiki/URL#Syntax).`,example:"https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf"},transition:{type:"transition",doc:"A global transition definition to use as a default across properties, to be used for timing transitions between one value and the next when no property-specific transition is set. Collision-based symbol fading is controlled independently of the style's `transition` property.",example:{duration:300,delay:0}},layers:{required:!0,type:"array",value:"layer",doc:"A style's `layers` property lists all the layers available in that style. The type of layer is specified by the `type` property, and must be one of `background`, `fill`, `line`, `symbol`, `raster`, `circle`, `fill-extrusion`, `heatmap`, `hillshade`.\n\nExcept for layers of the `background` type, each layer needs to refer to a source. Layers take the data that they get from a source, optionally filter features, and then define how those features are styled.",example:[{id:"coastline",source:"maplibre","source-layer":"countries",type:"line",paint:{"line-color":"#198EC8"}}]}},Noe={"*":{type:"source",doc:"Specification of a data source. For vector and raster sources, either TileJSON or a URL to a TileJSON must be provided. For image and video sources, a URL must be provided. For GeoJSON sources, a URL or inline GeoJSON must be provided."}},Goe=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Woe={type:{required:!0,type:"enum",values:{vector:{doc:"A vector tile source."}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:` and `https:`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by MapLibre."},scheme:{type:"enum",values:{xyz:{doc:"Slippy map tilenames scheme."},tms:{doc:"OSGeo spec scheme."}},default:"xyz",doc:"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},promoteId:{type:"promoteId",doc:"A property to use as a feature id (for feature state). Either a property name, or an object of the form `{<sourceLayer>: <propertyName>}`. If specified as a string for a vector tile source, the same property is used across all its source layers."},volatile:{type:"boolean",default:!1,doc:"A setting to determine whether a source's tiles are cached locally.","sdk-support":{"basic functionality":{android:"9.3.0",ios:"5.10.0",js:"wontfix"}}},"*":{type:"*",doc:"Other keys to configure the data source."}},Qoe={type:{required:!0,type:"enum",values:{raster:{doc:"A raster tile source."}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:` and `https:`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by MapLibre."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},tileSize:{type:"number",default:512,units:"pixels",doc:"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},scheme:{type:"enum",values:{xyz:{doc:"Slippy map tilenames scheme."},tms:{doc:"OSGeo spec scheme."}},default:"xyz",doc:"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},attribution:{type:"string",doc:"Contains an attribution to be displayLine truncated
This property is required if any layer uses the \`text-field\` layout property. The URL must be absolute, containing the [scheme, authority and path components](https://en.wikipedia.org/wiki/URL#Syntax).`,example:"https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf"},transition:{type:"transition",doc:"A global transition definition to use as a default across properties, to be used for timing transitions between one value and the next when no property-specific transition is set. Collision-based symbol fading is controlled independently of the style's `transition` property.",example:{duration:300,delay:0}},layers:{required:!0,type:"array",value:"layer",doc:"A style's `layers` property lists all the layers available in that style. The type of layer is specified by the `type` property, and must be one of `background`, `fill`, `line`, `symbol`, `raster`, `circle`, `fill-extrusion`, `heatmap`, `hillshade`.\n\nExcept for layers of the `background` type, each layer needs to refer to a source. Layers take the data that they get from a source, optionally filter features, and then define how those features are styled.",example:[{id:"coastline",source:"maplibre","source-layer":"countries",type:"line",paint:{"line-color":"#198EC8"}}]}},Pse={"*":{type:"source",doc:"Specification of a data source. For vector and raster sources, either TileJSON or a URL to a TileJSON must be provided. For image and video sources, a URL must be provided. For GeoJSON sources, a URL or inline GeoJSON must be provided."}},Rse=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Kse={type:{required:!0,type:"enum",values:{vector:{doc:"A vector tile source."}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:` and `https:`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by MapLibre."},scheme:{type:"enum",values:{xyz:{doc:"Slippy map tilenames scheme."},tms:{doc:"OSGeo spec scheme."}},default:"xyz",doc:"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},promoteId:{type:"promoteId",doc:"A property to use as a feature id (for feature state). Either a property name, or an object of the form `{<sourceLayer>: <propertyName>}`. If specified as a string for a vector tile source, the same property is used across all its source layers."},volatile:{type:"boolean",default:!1,doc:"A setting to determine whether a source's tiles are cached locally.","sdk-support":{"basic functionality":{android:"9.3.0",ios:"5.10.0",js:"wontfix"}}},"*":{type:"*",doc:"Other keys to configure the data source."}},Dse={type:{required:!0,type:"enum",values:{raster:{doc:"A raster tile source."}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:` and `https:`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by MapLibre."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},tileSize:{type:"number",default:512,units:"pixels",doc:"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},scheme:{type:"enum",values:{xyz:{doc:"Slippy map tilenames scheme."},tms:{doc:"OSGeo spec scheme."}},default:"xyz",doc:"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},attribution:{type:"string",doc:"Contains an attribution to be displayLine truncated
* In categorical functions, when the feature value does not match any of the stop domain values.
@@ -943,54 +943,54 @@ This property is required if any layer uses the \`text-field\` layout property.
* 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:use,expression:Ase,expression_name:cse,light:hse,sky:dse,terrain:fse,projection:pse,paint:mse,paint_fill:gse,"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:yse,paint_circle:vse,paint_heatmap:_se,paint_symbol:Cse,paint_raster:bse,paint_hillshade:xse,paint_background:wse,transition:Mse,"property-type":{"data-driven":{type:"property-type",doc:"Property is interpolable and can be represented using a property expression."},"cross-faded":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms."},"cross-faded-data-driven":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms. It can be represented using a property expression."},"color-ramp":{type:"property-type",doc:"Property should be specified using a color ramp from which the output color can be sampled based on a property calculation."},"data-constant":{type:"property-type",doc:"Property is interpolable but cannot be represented using a property expression."},constant:{type:"property-type",doc:"Property is constaLine truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oae(){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 sae=qx(function n(e){var t=this,r=e.expanded,i=r===void 0?[]:r,o=e.allowMultipleExpanded,a=o===void 0?!1:o,s=e.allowZeroExpanded,h=s===void 0?!1:s;Qx(this,n),Fl(this,"expanded",void 0),Fl(this,"allowMultipleExpanded",void 0),Fl(this,"allowZeroExpanded",void 0),Fl(this,"toggleExpanded",function(g){if(t.isItemDisabled(g))return t;var b=t.isItemExpanded(g);return b?t.augment({expanded:t.expanded.filter(function(B){return B!==g})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(Jse(t.expanded),[g]):[g]})}),Fl(this,"isItemDisabled",function(g){var b=t.isItemExpanded(g),B=t.expanded.length===1;return!!(b&&!t.allowZeroExpanded&&B)}),Fl(this,"isItemExpanded",function(g){return t.expanded.indexOf(g)!==-1}),Fl(this,"getPanelAttributes",function(g,b){var B=b??t.isItemExpanded(g);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!B:void 0,"aria-labelledby":t.getButtonId(g),id:t.getPanelId(g),hidden:B?void 0:!0}}),Fl(this,"getHeadingAttributes",function(){return{role:"heading"}}),Fl(this,"getButtonAttributes",function(g,b){var B=b??t.isItemExpanded(g),S=t.isItemDisabled(g);return{id:t.getButtonId(g),"aria-disabled":S,"aria-expanded":B,"aria-controls":t.getPanelId(g),role:"button",tabIndex:0}}),Fl(this,"getPanelId",function(g){return"accordion__panel-".concat(g)}),Fl(this,"getButtonId",function(g){return"accordion__heading-".concat(g)}),Fl(this,"augment",function(g){return new n(Y6({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},g))}),this.expanded=i,this.allowMultipleExpanded=a,this.allowZeroExpanded=h}),Uj=Ai.createContext(null),zj=function(n){nI(t,n);var e=rI(t);function t(){var r;Qx(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),Fl(ip(r),"state",new sae({expanded:r.props.preExpanded,allowMultipleExpanded:r.props.allowMultipleExpanded,allowZeroExpanded:r.props.allowZeroExpanded})),Fl(ip(r),"toggleExpanded",function(s){r.setState(function(h){return h.toggleExpanded(s)},function(){r.props.onChange&&r.props.onChange(r.state.expanded)})}),Fl(ip(r),"isItemDisabled",function(s){return r.state.isItemDisabled(s)}),Fl(ip(r),"isItemExpanded",function(s){return r.state.isItemExpanded(s)}),Fl(ip(r),"getPanelAttributes",function(s,h){return r.state.getPanelAttributes(s,h)}),Fl(ip(r),"getHeadingAttributes",function(){return r.state.getHeadingAttributes()}),Fl(ip(r),"getButtonAttributes",function(s,h){return r.state.getButtonAttributes(s,h)}),r}return qx(t,[{key:"render",value:function(){var i=this.state,o=i.allowZeroExpanded,a=i.allowMultipleExpanded;return Ai.createElement(Uj.Provider,{value:{allowMultipleExpanded:a,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}(Ai.PureComponent);Fl(zj,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var jj=function(n){nI(t,n);var e=rI(t);function t(){var r;Qx(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),Fl(ip(r),"renderChildren",function(s){return s?r.props.children(s):null}),r}return qx(t,[{key:"render",value:function(){return Ai.createElement(Uj.Consumer,null,this.renderChildren)}}]),t}(Ai.PureComponent),aae=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],lae=function(e){var t=e.className,r=t===void 0?"accordion":t,i=e.allowMultipleExpanded,o=e.allowZeroExpanded,a=e.onChange,s=e.preExpanded,h=Yx(e,aae);return Ai.createElement(zj,{preExpanded:s,allowMultipleExpanded:i,allowZeroExpanded:o,onChange:a},Ai.createElement("div",nm({"data-accordion-component":"Accordion",className:r},h)))},H6;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(H6||(H6={}));var Nj=H6,k5=0;function uae(){var n=k5;return k5=k5+1,"raa-".concat(n)}var Aae=Ai.useId||uae,cae=/[\u0009\u000a\u000c\u000d\u0020]/g;function x_(n){return n===""||cae.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var Gj=Ai.createContext(null),hae=function(e){var t=e.children,r=e.uuid,i=e.accordionContext,o=e.dangerouslySetExpanded,a=function(){i.toggleExpanded(r)},s=function(g){var b=o??g.isItemExpanded(r),B=g.isItemDisabled(r),S=g.getPanelAttributes(r,o),I=g.getHeadingAttributes(r),k=g.getButtonAttributes(r,o);return Ai.createElement(Gj.Provider,{value:{uuid:r,expanded:b,disabled:B,toggleExpanded:a,panelAttributes:S,headingAttributes:I,buttonAttributes:k}},t)};return Ai.createElement(jj,nu Line truncated
If no default is provided, the style property's default is used in these circumstances.`}},function_stop:eae,expression:tae,expression_name:nae,light:rae,sky:iae,terrain:oae,projection:sae,paint:aae,paint_fill:lae,"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:uae,paint_circle:Aae,paint_heatmap:cae,paint_symbol:dae,paint_raster:hae,paint_hillshade:fae,paint_background:pae,transition:mae,"property-type":{"data-driven":{type:"property-type",doc:"Property is interpolable and can be represented using a property expression."},"cross-faded":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms."},"cross-faded-data-driven":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms. It can be represented using a property expression."},"color-ramp":{type:"property-type",doc:"Property should be specified using a color ramp from which the output color can be sampled based on a property calculation."},"data-constant":{type:"property-type",doc:"Property is interpolable but cannot be represented using a property expression."},constant:{type:"property-type",doc:"Property is constaLine truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hae(){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 Zae=Qx(function n(e){var t=this,r=e.expanded,i=r===void 0?[]:r,s=e.allowMultipleExpanded,a=s===void 0?!1:s,o=e.allowZeroExpanded,d=o===void 0?!1:o;Wx(this,n),Fl(this,"expanded",void 0),Fl(this,"allowMultipleExpanded",void 0),Fl(this,"allowZeroExpanded",void 0),Fl(this,"toggleExpanded",function(g){if(t.isItemDisabled(g))return t;var b=t.isItemExpanded(g);return b?t.augment({expanded:t.expanded.filter(function(E){return E!==g})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(Wae(t.expanded),[g]):[g]})}),Fl(this,"isItemDisabled",function(g){var b=t.isItemExpanded(g),E=t.expanded.length===1;return!!(b&&!t.allowZeroExpanded&&E)}),Fl(this,"isItemExpanded",function(g){return t.expanded.indexOf(g)!==-1}),Fl(this,"getPanelAttributes",function(g,b){var E=b??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}}),Fl(this,"getHeadingAttributes",function(){return{role:"heading"}}),Fl(this,"getButtonAttributes",function(g,b){var E=b??t.isItemExpanded(g),S=t.isItemDisabled(g);return{id:t.getButtonId(g),"aria-disabled":S,"aria-expanded":E,"aria-controls":t.getPanelId(g),role:"button",tabIndex:0}}),Fl(this,"getPanelId",function(g){return"accordion__panel-".concat(g)}),Fl(this,"getButtonId",function(g){return"accordion__heading-".concat(g)}),Fl(this,"augment",function(g){return new n(dB({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},g))}),this.expanded=i,this.allowMultipleExpanded=a,this.allowZeroExpanded=d}),CN=ui.createContext(null),bN=function(n){CI(t,n);var e=bI(t);function t(){var r;Wx(this,t);for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return r=e.call.apply(e,[this].concat(s)),Fl(ip(r),"state",new Zae({expanded:r.props.preExpanded,allowMultipleExpanded:r.props.allowMultipleExpanded,allowZeroExpanded:r.props.allowZeroExpanded})),Fl(ip(r),"toggleExpanded",function(o){r.setState(function(d){return d.toggleExpanded(o)},function(){r.props.onChange&&r.props.onChange(r.state.expanded)})}),Fl(ip(r),"isItemDisabled",function(o){return r.state.isItemDisabled(o)}),Fl(ip(r),"isItemExpanded",function(o){return r.state.isItemExpanded(o)}),Fl(ip(r),"getPanelAttributes",function(o,d){return r.state.getPanelAttributes(o,d)}),Fl(ip(r),"getHeadingAttributes",function(){return r.state.getHeadingAttributes()}),Fl(ip(r),"getButtonAttributes",function(o,d){return r.state.getButtonAttributes(o,d)}),r}return Qx(t,[{key:"render",value:function(){var i=this.state,s=i.allowZeroExpanded,a=i.allowMultipleExpanded;return ui.createElement(CN.Provider,{value:{allowMultipleExpanded:a,allowZeroExpanded:s,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t}(ui.PureComponent);Fl(bN,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var xN=function(n){CI(t,n);var e=bI(t);function t(){var r;Wx(this,t);for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return r=e.call.apply(e,[this].concat(s)),Fl(ip(r),"renderChildren",function(o){return o?r.props.children(o):null}),r}return Qx(t,[{key:"render",value:function(){return ui.createElement(CN.Consumer,null,this.renderChildren)}}]),t}(ui.PureComponent),Xae=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],Jae=function(e){var t=e.className,r=t===void 0?"accordion":t,i=e.allowMultipleExpanded,s=e.allowZeroExpanded,a=e.onChange,o=e.preExpanded,d=qx(e,Xae);return ui.createElement(bN,{preExpanded:o,allowMultipleExpanded:i,allowZeroExpanded:s,onChange:a},ui.createElement("div",nm({"data-accordion-component":"Accordion",className:r},d)))},pB;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(pB||(pB={}));var wN=pB,T5=0;function ele(){var n=T5;return T5=T5+1,"raa-".concat(n)}var tle=ui.useId||ele,nle=/[\u0009\u000a\u000c\u000d\u0020]/g;function w_(n){return n===""||nle.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var MN=ui.createContext(null),rle=function(e){var t=e.children,r=e.uuid,i=e.accordionContext,s=e.dangerouslySetExpanded,a=function(){i.toggleExpanded(r)},o=function(g){var b=s??g.isItemExpanded(r),E=g.isItemDisabled(r),S=g.getPanelAttributes(r,s),O=g.getHeadingAttributes(r),k=g.getButtonAttributes(r,s);return ui.createElement(MN.Provider,{value:{uuid:r,expanded:b,disabled:E,toggleExpanded:a,panelAttributes:S,headingAttributes:O,buttonAttributes:k}},t)};return ui.createElement(xN,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.”
`,qj=function(n){nI(t,n);var e=rI(t);function t(){var r;Qx(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),Fl(ip(r),"ref",void 0),Fl(ip(r),"setRef",function(s){r.ref=s}),r}return qx(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return Ai.createElement("div",nm({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(i){if(i===void 0)throw new Error("ref is undefined");if(!(i.childElementCount===1&&i.firstElementChild&&i.firstElementChild.getAttribute("data-accordion-component")==="AccordionItemButton"))throw new Error(xae)}}]),t}(Ai.PureComponent);Fl(qj,"defaultProps",bae);var Yj=function(e){return Ai.createElement($x,null,function(t){var r=t.headingAttributes;return e.id&&x_(e.id),Ai.createElement(qj,nm({},e,r))})};Yj.displayName=Nj.AccordionItemHeading;var wae=["className","region","id"],Mae=function(e){var t=e.className,r=t===void 0?"accordion__panel":t,i=e.region,o=e.id,a=Yx(e,wae),s=function(g){var b=g.panelAttributes;o&&x_(o);var B=Y6(Y6({},b),{},{"aria-labelledby":i?b["aria-labelledby"]:void 0});return Ai.createElement("div",nm({"data-accordion-component":"AccordionItemPanel",className:r},a,B,{role:i?"region":void 0}))};return Ai.createElement($x,null,s)},Ob={exports:{}},Sae=Ob.exports,qT;function Hx(){return qT||(qT=1,function(n,e){(function(t,r){n.exports=r()})(Sae,function(){var t=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(t),o=/MSIE \d/.test(t),a=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),s=/Edge\/(\d+)/.exec(t),h=o||a||s,g=h&&(o?document.documentMode||6:+(s||a)[1]),b=!s&&/WebKit\//.test(t),B=b&&/Qt\/\d+\.\d+/.test(t),S=!s&&/Chrome\/(\d+)/.exec(t),I=S&&+S[1],k=/Opera\//.test(t),U=/Apple Computer/.test(navigator.vendor),z=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),Y=/PhantomJS/.test(t),Q=U&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),ne=/Android/.test(t),X=Q||ne||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),q=Q||/Mac/.test(r),J=/\bCrOS\b/.test(t),N=/win/i.test(r),ie=k&&t.match(/Version\/(\d*\.\d*)/);ie&&(ie=Number(ie[1])),ie&&ie>=15&&(k=!1,b=!0);var he=q&&(B||k&&(ie==null||ie<12.11)),ce=i||h&&g>=9;function we(A){return new RegExp("(^|\\s)"+A+"(?:$|\\s)\\s*")}var pe=function(A,y){var O=A.className,E=we(y).exec(O);if(E){var K=O.slice(E.index+E[0].length);A.className=O.slice(0,E.index)+(K?E[1]+K:"")}};function Ce(A){for(var y=A.childNodes.length;y>0;--y)A.removeChild(A.firstChild);return A}function Pe(A,y){return Ce(A).appendChild(y)}function de(A,y,O,E){var K=document.createElement(A);if(O&&(K.className=O),E&&(K.style.cssText=E),typeof y=="string")K.appendChild(document.createTextNode(y));else if(y)for(var H=0;H<y.length;++H)K.appendChild(y[H]);return K}function rt(A,y,O,E){var K=de(A,y,O,E);return K.setAttribute("role","presentation"),K}var ze;document.createRange?ze=function(A,y,O,E){var K=document.createRange();return K.setEnd(E||A,O),K.setStart(A,y),K}:ze=function(A,y,O){var E=document.body.createTextRange();try{E.moveToElementText(A.parentNode)}catch{return E}return E.collapse(!0),E.moveEnd("character",O),E.moveStart("character",y),E};function Qe(A,y){if(y.nodeType==3&&(y=y.parentNode),A.contains)return A.contains(y);do if(y.nodeType==11&&(y=y.host),y==A)return!0;while(y=y.parentNode)}function ut(A){var y=A.ownerDocument||A,O;try{O=A.activeElement}catch{O=y.body||null}for(;O&&O.shadowRoot&&O.shadowRoot.activeElement;)O=O.shadowRoot.activeElement;return O}function Te(A,y){var O=A.className;we(y).test(O)||(A.className+=(O?" ":"")+y)}function Ue(A,y){for(var O=A.split(" "),E=0;E<O.length;E++)O[E]&&!we(O[E]).test(y)&&(y+=" "+O[E]);return y}var st=function(A){A.select()};Q?st=function(A){A.selectionStart=0,A.selectionEnd=A.value.length}:h&&(st=function(A){try{A.select()}catch{}});function wt(A){return A.display.wrapper.ownerDocument}function mt(A){return ft(A.display.wrapper)}function ft(A){return A.getRootNode?A.getRootNode():A.ownerDocument}function Ut(A){return wt(A).defaultView}function Lt(A){var y=Array.prototype.slice.call(arguments,1);return function(){return A.apply(null,y)}}function De(A,y,O){y||(y={});for(var E in A)A.hasOwnProperty(E)&&(O!==!1||!y.hasOwnProperty(E))&&(y[E]=A[E]);return y}function ke(A,y,O,E,K){y==null&&(y=A.search(/[^\s\u00a0]/),y==-1&&(y=A.length));for(var H=E||0,le=K||0;;){var ve=A.indexOf(" ",H);if(ve<0||ve>=y)return le+(y-H);le+=ve-H,le+=O-le%O,H=ve+1}}var Oe=function(){this.id=null,this.f=null,this.time=0,this.handler=Lt(this.onTimeout,this)};Oe.prototype.onTimeout=function(A){A.id=0,A.time<=+new Date?A.f():setTimeout(A.handler,A.time-+new Date)},Oe.prototype.set=function(A,y){this.f=y;var O=+new Date+A;(!this.id||O<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,A),this.time=O)};function Je(A,y){for(var O=0;O<A.length;++O)if(A[O]==y)return O;return-1}var Mt Line truncated
`,BN=function(n){CI(t,n);var e=bI(t);function t(){var r;Wx(this,t);for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return r=e.call.apply(e,[this].concat(s)),Fl(ip(r),"ref",void 0),Fl(ip(r),"setRef",function(o){r.ref=o}),r}return Qx(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return ui.createElement("div",nm({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(i){if(i===void 0)throw new Error("ref is undefined");if(!(i.childElementCount===1&&i.firstElementChild&&i.firstElementChild.getAttribute("data-accordion-component")==="AccordionItemButton"))throw new Error(fle)}}]),t}(ui.PureComponent);Fl(BN,"defaultProps",hle);var ON=function(e){return ui.createElement(Yx,null,function(t){var r=t.headingAttributes;return e.id&&w_(e.id),ui.createElement(BN,nm({},e,r))})};ON.displayName=wN.AccordionItemHeading;var ple=["className","region","id"],mle=function(e){var t=e.className,r=t===void 0?"accordion__panel":t,i=e.region,s=e.id,a=qx(e,ple),o=function(g){var b=g.panelAttributes;s&&w_(s);var E=dB(dB({},b),{},{"aria-labelledby":i?b["aria-labelledby"]:void 0});return ui.createElement("div",nm({"data-accordion-component":"AccordionItemPanel",className:r},a,E,{role:i?"region":void 0}))};return ui.createElement(Yx,null,o)},Ob={exports:{}},gle=Ob.exports,A9;function Vx(){return A9||(A9=1,function(n,e){(function(t,r){n.exports=r()})(gle,function(){var t=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(t),s=/MSIE \d/.test(t),a=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),d=s||a||o,g=d&&(s?document.documentMode||6:+(o||a)[1]),b=!o&&/WebKit\//.test(t),E=b&&/Qt\/\d+\.\d+/.test(t),S=!o&&/Chrome\/(\d+)/.exec(t),O=S&&+S[1],k=/Opera\//.test(t),U=/Apple Computer/.test(navigator.vendor),z=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),q=/PhantomJS/.test(t),Q=U&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),re=/Android/.test(t),X=Q||re||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),Y=Q||/Mac/.test(r),J=/\bCrOS\b/.test(t),N=/win/i.test(r),ie=k&&t.match(/Version\/(\d*\.\d*)/);ie&&(ie=Number(ie[1])),ie&&ie>=15&&(k=!1,b=!0);var he=Y&&(E||k&&(ie==null||ie<12.11)),de=i||d&&g>=9;function we(A){return new RegExp("(^|\\s)"+A+"(?:$|\\s)\\s*")}var fe=function(A,y){var I=A.className,B=we(y).exec(I);if(B){var K=I.slice(B.index+B[0].length);A.className=I.slice(0,B.index)+(K?B[1]+K:"")}};function be(A){for(var y=A.childNodes.length;y>0;--y)A.removeChild(A.firstChild);return A}function Pe(A,y){return be(A).appendChild(y)}function pe(A,y,I,B){var K=document.createElement(A);if(I&&(K.className=I),B&&(K.style.cssText=B),typeof y=="string")K.appendChild(document.createTextNode(y));else if(y)for(var H=0;H<y.length;++H)K.appendChild(y[H]);return K}function it(A,y,I,B){var K=pe(A,y,I,B);return K.setAttribute("role","presentation"),K}var We;document.createRange?We=function(A,y,I,B){var K=document.createRange();return K.setEnd(B||A,I),K.setStart(A,y),K}:We=function(A,y,I){var B=document.body.createTextRange();try{B.moveToElementText(A.parentNode)}catch{return B}return B.collapse(!0),B.moveEnd("character",I),B.moveStart("character",y),B};function $e(A,y){if(y.nodeType==3&&(y=y.parentNode),A.contains)return A.contains(y);do if(y.nodeType==11&&(y=y.host),y==A)return!0;while(y=y.parentNode)}function ht(A){var y=A.ownerDocument||A,I;try{I=A.activeElement}catch{I=y.body||null}for(;I&&I.shadowRoot&&I.shadowRoot.activeElement;)I=I.shadowRoot.activeElement;return I}function De(A,y){var I=A.className;we(y).test(I)||(A.className+=(I?" ":"")+y)}function Ne(A,y){for(var I=A.split(" "),B=0;B<I.length;B++)I[B]&&!we(I[B]).test(y)&&(y+=" "+I[B]);return y}var at=function(A){A.select()};Q?at=function(A){A.selectionStart=0,A.selectionEnd=A.value.length}:d&&(at=function(A){try{A.select()}catch{}});function wt(A){return A.display.wrapper.ownerDocument}function Ct(A){return ft(A.display.wrapper)}function ft(A){return A.getRootNode?A.getRootNode():A.ownerDocument}function Lt(A){return wt(A).defaultView}function Kt(A){var y=Array.prototype.slice.call(arguments,1);return function(){return A.apply(null,y)}}function Fe(A,y,I){y||(y={});for(var B in A)A.hasOwnProperty(B)&&(I!==!1||!y.hasOwnProperty(B))&&(y[B]=A[B]);return y}function Te(A,y,I,B,K){y==null&&(y=A.search(/[^\s\u00a0]/),y==-1&&(y=A.length));for(var H=B||0,ue=K||0;;){var _e=A.indexOf(" ",H);if(_e<0||_e>=y)return ue+(y-H);ue+=_e-H,ue+=I-ue%I,H=_e+1}}var Se=function(){this.id=null,this.f=null,this.time=0,this.handler=Kt(this.onTimeout,this)};Se.prototype.onTimeout=function(A){A.id=0,A.time<=+new Date?A.f():setTimeout(A.handler,A.time-+new Date)},Se.prototype.set=function(A,y){this.f=y;var I=+new Date+A;(!this.id||I<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,A),this.time=I)};function Je(A,y){for(var I=0;I<A.length;++I)if(A[I]==y)return I;return-1}var yt Line truncated
b`.split(/\n/).length!=3?function(A){for(var y=0,O=[],E=A.length;y<=E;){var K=A.indexOf(`
`,y);K==-1&&(K=A.length);var H=A.slice(y,A.charAt(K-1)=="\r"?K-1:K),le=H.indexOf("\r");le!=-1?(O.push(H.slice(0,le)),y+=le+1):(O.push(H),y=K+1)}return O}:function(A){return A.split(/\r\n?|\n/)},co=window.getSelection?function(A){try{return A.selectionStart!=A.selectionEnd}catch{return!1}}:function(A){var y;try{y=A.ownerDocument.selection.createRange()}catch{}return!y||y.parentElement()!=A?!1:y.compareEndPoints("StartToEnd",y)!=0},$a=function(){var A=de("div");return"oncopy"in A?!0:(A.setAttribute("oncopy","return;"),typeof A.oncopy=="function")}(),ji=null;function ui(A){if(ji!=null)return ji;var y=Pe(A,de("span","x")),O=y.getBoundingClientRect(),E=ze(y,0,1).getBoundingClientRect();return ji=Math.abs(O.left-E.left)>1}var Vi={},as={};function Ni(A,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),Vi[A]=y}function ll(A,y){as[A]=y}function ul(A){if(typeof A=="string"&&as.hasOwnProperty(A))A=as[A];else if(A&&typeof A.name=="string"&&as.hasOwnProperty(A.name)){var y=as[A.name];typeof y=="string"&&(y={name:y}),A=Mr(y,A),A.name=y.name}else{if(typeof A=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(A))return ul("application/xml");if(typeof A=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(A))return ul("application/json")}return typeof A=="string"?{name:A}:A||{name:"null"}}function ts(A,y){y=ul(y);var O=Vi[y.name];if(!O)return ts(A,"text/plain");var E=O(A,y);if(Aa.hasOwnProperty(y.name)){var K=Aa[y.name];for(var H in K)K.hasOwnProperty(H)&&(E.hasOwnProperty(H)&&(E["_"+H]=E[H]),E[H]=K[H])}if(E.name=y.name,y.helperType&&(E.helperType=y.helperType),y.modeProps)for(var le in y.modeProps)E[le]=y.modeProps[le];return E}var Aa={};function Al(A,y){var O=Aa.hasOwnProperty(A)?Aa[A]:Aa[A]={};De(y,O)}function ao(A,y){if(y===!0)return y;if(A.copyState)return A.copyState(y);var O={};for(var E in y){var K=y[E];K instanceof Array&&(K=K.concat([])),O[E]=K}return O}function Pu(A,y){for(var O;A.innerMode&&(O=A.innerMode(y),!(!O||O.mode==A));)y=O.state,A=O.mode;return O||{mode:A,state:y}}function tu(A,y,O){return A.startState?A.startState(y,O):!0}var so=function(A,y,O){this.pos=this.start=0,this.string=A,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=O};so.prototype.eol=function(){return this.pos>=this.string.length},so.prototype.sol=function(){return this.pos==this.lineStart},so.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},so.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},so.prototype.eat=function(A){var y=this.string.charAt(this.pos),O;if(typeof A=="string"?O=y==A:O=y&&(A.test?A.test(y):A(y)),O)return++this.pos,y},so.prototype.eatWhile=function(A){for(var y=this.pos;this.eat(A););return this.pos>y},so.prototype.eatSpace=function(){for(var A=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>A},so.prototype.skipToEnd=function(){this.pos=this.string.length},so.prototype.skipTo=function(A){var y=this.string.indexOf(A,this.pos);if(y>-1)return this.pos=y,!0},so.prototype.backUp=function(A){this.pos-=A},so.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)},so.prototype.indentation=function(){return ke(this.string,null,this.tabSize)-(this.lineStart?ke(this.string,this.lineStart,this.tabSize):0)},so.prototype.match=function(A,y,O){if(typeof A=="string"){var E=function(le){return O?le.toLowerCase():le},K=this.string.substr(this.pos,A.length);if(E(K)==E(A))return y!==!1&&(this.pos+=A.length),!0}else{var H=this.string.slice(this.pos).match(A);return H&&H.index>0?null:(H&&y!==!1&&(this.pos+=H[0].length),H)}},so.prototype.current=function(){return this.string.slice(this.start,this.pos)},so.prototype.hideFirstChars=function(A,y){this.lineStart+=A;try{return y()}finally{this.lineStart-=A}},so.prototype.lookAhead=function(A){var y=this.lineOracle;return y&&y.lookAhead(A)},so.prototype.baseToken=function(){var A=this.lineOracle;return A&&A.baseToken(this.pos)};function Kr(A,y){if(y-=A.first,y<0||y>=A.size)throw new Error("There is no line "+(y+A.first)+" in the document.");for(var O=A;!O.lines;)for(var E=0;;++E){var K=O.children[E],H=K.chunkSize();if(y<H){O=K;break}y-=H}return O.lines[y]}function Va(A,y,O){var E=[],K=y.line;return A.iter(y.line,O.line+1,function(H){var le=H.text;K==O.line&&(le=le.slice(0,O.ch)),K==y.line&&(le=le.slice(y.ch)),E.push(le),++K}),E}function Ts(A,y,O){var E=[];return A.iter(y,O,function(K){E.push(K.text)}),E}function ia(A,y){var O=y-A.height;if(O)for(var E=A;E;E=E.parent)E.height+=O}function We(A){if(A.parent==null)return null;for(var y=A.parent,O=Je(y.lines,A),E=y.parent;E;y=E,E=E.parent)for(var K=0;E.children[K]!=y;++K)O+=E.children[K].chunkSize();return O+y.first}function Ct(A,y){var O=A.first;e:do{for(var E=0;E<A.child Line truncated
`?(Rn=ht.appendChild(de("span",Xt[0]=="\r"?"␍":"␤","cm-invalidchar")),Rn.setAttribute("cm-text",Xt[0]),A.col+=1):(Rn=A.cm.options.specialCharPlaceholder(Xt[0]),Rn.setAttribute("cm-text",Xt[0]),h&&g<9?ht.appendChild(de("span",[Rn])):ht.appendChild(Rn),A.col+=1);A.map.push(A.pos,A.pos+1,Rn),A.pos++}}if(A.trailingSpace=ve.charCodeAt(y.length-1)==32,O||E||K||Fe||H||le){var yr=O||"";E&&(yr+=E),K&&(yr+=K);var ar=de("span",[ht],yr,H);if(le)for(var Lr in le)le.hasOwnProperty(Lr)&&Lr!="style"&&Lr!="class"&&ar.setAttribute(Lr,le[Lr]);return A.content.appendChild(ar)}A.content.appendChild(ht)}}function bd(A,y){if(A.length>1&&!/ /.test(A))return A;for(var O=y,E="",K=0;K<A.length;K++){var H=A.charAt(K);H==" "&&O&&(K==A.length-1||A.charCodeAt(K+1)==32)&&(H=" "),E+=H,O=H==" "}return E}function Ms(A,y){return function(O,E,K,H,le,ve,Be){K=K?K+" cm-force-border":"cm-force-border";for(var Fe=O.pos,ht=Fe+E.length;;){for(var xt=void 0,Xt=0;Xt<y.length&&(xt=y[Xt],!(xt.to>Fe&&xt.from<=Fe));Xt++);if(xt.to>=ht)return A(O,E,K,H,le,ve,Be);A(O,E.slice(0,xt.to-Fe),K,H,null,ve,Be),H=null,E=E.slice(xt.to-Fe),Fe=xt.to}}}function Du(A,y,O,E){var K=!E&&O.widgetNode;K&&A.map.push(A.pos,A.pos+y,K),!E&&A.cm.display.input.needsContentAttribute&&(K||(K=A.content.appendChild(document.createElement("span"))),K.setAttribute("cm-marker",O.id)),K&&(A.cm.display.input.setUneditable(K),A.content.appendChild(K)),A.pos+=y,A.trailingSpace=!1}function uh(A,y,O){var E=A.markedSpans,K=A.text,H=0;if(!E){for(var le=1;le<O.length;le+=2)y.addToken(y,K.slice(H,H=O[le]),cl(O[le+1],y.cm.options));return}for(var ve=K.length,Be=0,Fe=1,ht="",xt,Xt,Qt=0,xn,Rn,$n,Jn,yr;;){if(Qt==Be){xn=Rn=$n=Xt="",yr=null,Jn=null,Qt=1/0;for(var ar=[],Lr=void 0,ai=0;ai<E.length;++ai){var Nr=E[ai],Ji=Nr.marker;if(Ji.type=="bookmark"&&Nr.from==Be&&Ji.widgetNode)ar.push(Ji);else if(Nr.from<=Be&&(Nr.to==null||Nr.to>Be||Ji.collapsed&&Nr.to==Be&&Nr.from==Be)){if(Nr.to!=null&&Nr.to!=Be&&Qt>Nr.to&&(Qt=Nr.to,Rn=""),Ji.className&&(xn+=" "+Ji.className),Ji.css&&(Xt=(Xt?Xt+";":"")+Ji.css),Ji.startStyle&&Nr.from==Be&&($n+=" "+Ji.startStyle),Ji.endStyle&&Nr.to==Qt&&(Lr||(Lr=[])).push(Ji.endStyle,Nr.to),Ji.title&&((yr||(yr={})).title=Ji.title),Ji.attributes)for(var Io in Ji.attributes)(yr||(yr={}))[Io]=Ji.attributes[Io];Ji.collapsed&&(!Jn||tt(Jn.marker,Ji)<0)&&(Jn=Nr)}else Nr.from>Be&&Qt>Nr.from&&(Qt=Nr.from)}if(Lr)for(var Ga=0;Ga<Lr.length;Ga+=2)Lr[Ga+1]==Qt&&(Rn+=" "+Lr[Ga]);if(!Jn||Jn.from==Be)for(var aa=0;aa<ar.length;++aa)Du(y,0,ar[aa]);if(Jn&&(Jn.from||0)==Be){if(Du(y,(Jn.to==null?ve+1:Jn.to)-Be,Jn.marker,Jn.from==null),Jn.to==null)return;Jn.to==Be&&(Jn=!1)}}if(Be>=ve)break;for(var Ca=Math.min(ve,Qt);;){if(ht){var ba=Be+ht.length;if(!Jn){var ka=ba>Ca?ht.slice(0,Ca-Be):ht;y.addToken(y,ka,xt?xt+xn:xn,$n,Be+ka.length==Qt?Rn:"",Xt,yr)}if(ba>=Ca){ht=ht.slice(Ca-Be),Be=Ca;break}Be=ba,$n=""}ht=K.slice(H,H=O[Fe++]),xt=cl(O[Fe++],y.cm.options)}}}function gp(A,y,O){this.line=y,this.rest=vi(y),this.size=this.rest?We(cr(this.rest))-O+1:1,this.node=this.text=null,this.hidden=qr(A,y)}function sA(A,y,O){for(var E=[],K,H=y;H<O;H=K){var le=new gp(A.doc,Kr(A.doc,H),H);K=H+le.size,E.push(le)}return E}var qh=null;function Lc(A){qh?qh.ops.push(A):A.ownsGroup=qh={ops:[A],delayedCallbacks:[]}}function yp(A){var y=A.delayedCallbacks,O=0;do{for(;O<y.length;O++)y[O].call(null);for(var E=0;E<A.ops.length;E++){var K=A.ops[E];if(K.cursorActivityHandlers)for(;K.cursorActivityCalled<K.cursorActivityHandlers.length;)K.cursorActivityHandlers[K.cursorActivityCalled++].call(null,K.cm)}}while(O<y.length)}function Rf(A,y){var O=A.ownsGroup;if(O)try{yp(O)}finally{qh=null,y(O)}}var dc=null;function Zs(A,y){var O=dt(A,y);if(O.length){var E=Array.prototype.slice.call(arguments,2),K;qh?K=qh.delayedCallbacks:dc?K=dc:(K=dc=[],setTimeout(xd,0));for(var H=function(ve){K.push(function(){return O[ve].apply(null,E)})},le=0;le<O.length;++le)H(le)}}function xd(){var A=dc;dc=null;for(var y=0;y<A.length;++y)A[y]()}function ef(A,y,O,E){for(var K=0;K<y.changes.length;K++){var H=y.changes[K];H=="text"?fc(A,y):H=="gutter"?Md(A,y,O,E):H=="class"?wd(A,y):H=="widget"&&hh(A,y,E)}y.changes=null}function Ah(A){return A.node==A.text&&(A.node=de("div",null,null,"position: relative"),A.text.parentNode&&A.text.parentNode.replaceChild(A.node,A.text),A.node.appendChild(A.text),h&&g<8&&(A.node.style.zIndex=2)),A.node}function tf(A,y){var O=y.bgClass?y.bgClass+" "+(y.line.bgClass||""):y.line.bgClass;if(O&&(O+=" CodeMirror-linebackground"),y.background)O?y.background.className=O:(y.background.parentNode.removeChild(y.background),y.background=null);else if(O){var E=Ah(y);y.background=E.insertBefore(de("div",null,O),E.firstChild),A.display.input.setUneditable(y.background)}}function ch(A,y){var O=A.display.externalMeasured;return O&&O.line==y.line?(A.display.externalMeasured=null,y.measure=O.measure,O.built):lh(A,y)}function fc(A,y){var O=y.text.className,E=ch(A,y);y.text==y.node&&(y.node=E.pre),y.text.parentNode.replaceChild(E.pre,y.text),y.text=E.pre,E.bgClass Line truncated
top: `+Lr+"px; width: "+(ai??Be-ar)+`px;
height: `+(Nr-Lr)+"px"))}function xt(ar,Lr,ai){var Nr=Kr(K,ar),Ji=Nr.text.length,Io,Ga;function aa(ka,Yl){return Tn(A,An(ar,ka),"div",Nr,Yl)}function Ca(ka,Yl,Wa){var xa=$o(A,Nr,null,ka),ds=Yl=="ltr"==(Wa=="after")?"left":"right",yi=Wa=="after"?xa.begin:xa.end-(/\s/.test(Nr.text.charAt(xa.end-1))?2:1);return aa(yi,ds)[ds]}var ba=xe(Nr,K.direction);return it(ba,Lr||0,ai??Ji,function(ka,Yl,Wa,xa){var ds=Wa=="ltr",yi=aa(ka,ds?"left":"right"),Zo=aa(Yl-1,ds?"right":"left"),la=Lr==null&&ka==0,fa=ai==null&&Yl==Ji,Is=xa==0,Kl=!ba||xa==ba.length-1;if(Zo.top-yi.top<=3){var Po=(Fe?la:fa)&&Is,Ph=(Fe?fa:la)&&Kl,yl=Po?ve:(ds?yi:Zo).left,PA=Ph?Be:(ds?Zo:yi).right;ht(yl,yi.top,PA-yl,yi.bottom)}else{var Xc,vl,_l,hf;ds?(Xc=Fe&&la&&Is?ve:yi.left,vl=Fe?Be:Ca(ka,Wa,"before"),_l=Fe?ve:Ca(Yl,Wa,"after"),hf=Fe&&fa&&Kl?Be:Zo.right):(Xc=Fe?Ca(ka,Wa,"before"):ve,vl=!Fe&&la&&Is?Be:yi.right,_l=!Fe&&fa&&Kl?ve:Zo.left,hf=Fe?Ca(Yl,Wa,"after"):Be),ht(Xc,yi.top,vl-Xc,yi.bottom),yi.bottom<Zo.top&&ht(ve,yi.bottom,null,Zo.top),ht(_l,Zo.top,hf-_l,Zo.bottom)}(!Io||VA(yi,Io)<0)&&(Io=yi),VA(Zo,Io)<0&&(Io=Zo),(!Ga||VA(yi,Ga)<0)&&(Ga=yi),VA(Zo,Ga)<0&&(Ga=Zo)}),{start:Io,end:Ga}}var Xt=y.from(),Qt=y.to();if(Xt.line==Qt.line)xt(Xt.line,Xt.ch,Qt.ch);else{var xn=Kr(K,Xt.line),Rn=Kr(K,Qt.line),$n=pr(xn)==pr(Rn),Jn=xt(Xt.line,Xt.ch,$n?xn.text.length+1:null).end,yr=xt(Qt.line,$n?0:null,Qt.ch).start;$n&&(Jn.top<yr.top-2?(ht(Jn.right,Jn.top,null,Jn.bottom),ht(ve,yr.top,yr.left,yr.bottom)):ht(Jn.right,Jn.top,yr.left-Jn.right,Jn.bottom)),Jn.bottom<yr.top&&ht(ve,Jn.bottom,null,yr.top)}O.appendChild(H)}function bA(A){if(A.state.focused){var y=A.display;clearInterval(y.blinker);var O=!0;y.cursorDiv.style.visibility="",A.options.cursorBlinkRate>0?y.blinker=setInterval(function(){A.hasFocus()||Vo(A),y.cursorDiv.style.visibility=(O=!O)?"":"hidden"},A.options.cursorBlinkRate):A.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function HA(A){A.hasFocus()||(A.display.input.focus(),A.state.focused||Xh(A))}function Wc(A){A.state.delayingBlurEvent=!0,setTimeout(function(){A.state.delayingBlurEvent&&(A.state.delayingBlurEvent=!1,A.state.focused&&Vo(A))},100)}function Xh(A,y){A.state.delayingBlurEvent&&!A.state.draggingText&&(A.state.delayingBlurEvent=!1),A.options.readOnly!="nocursor"&&(A.state.focused||(Ot(A,"focus",A,y),A.state.focused=!0,Te(A.display.wrapper,"CodeMirror-focused"),!A.curOp&&A.display.selForContextMenu!=A.doc.sel&&(A.display.input.reset(),b&&setTimeout(function(){return A.display.input.reset(!0)},20)),A.display.input.receivedFocus()),bA(A))}function Vo(A,y){A.state.delayingBlurEvent||(A.state.focused&&(Ot(A,"blur",A,y),A.state.focused=!1,pe(A.display.wrapper,"CodeMirror-focused")),clearInterval(A.display.blinker),setTimeout(function(){A.state.focused||(A.display.shift=!1)},150))}function Qc(A){for(var y=A.display,O=y.lineDiv.offsetTop,E=Math.max(0,y.scroller.getBoundingClientRect().top),K=y.lineDiv.getBoundingClientRect().top,H=0,le=0;le<y.view.length;le++){var ve=y.view[le],Be=A.options.lineWrapping,Fe=void 0,ht=0;if(!ve.hidden){if(K+=ve.line.height,h&&g<8){var xt=ve.node.offsetTop+ve.node.offsetHeight;Fe=xt-O,O=xt}else{var Xt=ve.node.getBoundingClientRect();Fe=Xt.bottom-Xt.top,!Be&&ve.text.firstChild&&(ht=ve.text.firstChild.getBoundingClientRect().right-Xt.left-1)}var Qt=ve.line.height-Fe;if((Qt>.005||Qt<-.005)&&(K<E&&(H-=Qt),ia(ve.line,Fe),ZA(ve.line),ve.rest))for(var xn=0;xn<ve.rest.length;xn++)ZA(ve.rest[xn]);if(ht>A.display.sizerWidth){var Rn=Math.ceil(ht/Wi(A.display));Rn>A.display.maxLineLength&&(A.display.maxLineLength=Rn,A.display.maxLine=ve.line,A.display.maxLineChanged=!0)}}}Math.abs(H)>2&&(y.scroller.scrollTop+=H)}function ZA(A){if(A.widgets)for(var y=0;y<A.widgets.length;++y){var O=A.widgets[y],E=O.node.parentNode;E&&(O.height=E.offsetHeight)}}function Fu(A,y,O){var E=O&&O.top!=null?Math.max(0,O.top):A.scroller.scrollTop;E=Math.floor(E-Uc(A));var K=O&&O.bottom!=null?O.bottom:E+A.wrapper.clientHeight,H=Ct(y,E),le=Ct(y,K);if(O&&O.ensure){var ve=O.ensure.from.line,Be=O.ensure.to.line;ve<H?(H=ve,le=Ct(y,Xi(Kr(y,ve))+A.wrapper.clientHeight)):Math.min(Be,y.lastLine())>=le&&(H=Ct(y,Xi(Kr(y,Be))-A.wrapper.clientHeight),le=Be)}return{from:H,to:Math.max(le,H+1)}}function qc(A,y){if(!_t(A,"scrollCursorIntoView")){var O=A.display,E=O.sizer.getBoundingClientRect(),K=null,H=O.wrapper.ownerDocument;if(y.top+E.top<0?K=!0:y.bottom+E.top>(H.defaultView.innerHeight||H.documentElement.clientHeight)&&(K=!1),K!=null&&!Y){var le=de("div","​",null,`position: absolute;
top: `+(y.top-O.viewOffset-Uc(A.display))+`px;
height: `+(y.bottom-y.top+iu(A)+O.barHeight)+`px;
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");A.display.lineSpace.appendChild(le),le.scrollIntoView(K),A.display.lineSpace.removeChild(le)}}}function Jh(A,y,O,E){E==null&&(E=0);var K;!A.options.lineWrapping&&y==O&&(O=y.sticky=="before"?An(y.line,y.ch+1,"before"):y,y=y.ch?An(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y);for(var H=0;H<5;H++){var le=!1,ve=an(A,y),Be=!O||O==y?ve:an(A,O);K={left:Math.min(ve.left,Be.left),top:Math.min(ve.top,Be.top)-E,right:Math.max(ve.left,Be.left),bottom:Math.max(ve.bottom,Be.bottom)+E};var Fe=vc(A,K),ht=A.doc.scrollTop,xt=A.doc.scrollLeft;if(Fe.scrollTop!=null&&(Uu(A,Fe.scrollTop),Math.abs(A.doc.scrollTop-ht)>1&&(le=!0)),Fe.scrollLeft!=null&&(Nl(A,Fe.scrollLeft),Math.abs(A.doc.scrollLeft-xt)>1&&(le=!0)),!le)break}return K}function Yc(A,y){var O=vc(A,y);O.scrollTop!=null&&Uu(A,O.scrollTop),O.scrollLeft!=null&&Nl(A,O.scrollLeft)}function vc(A,y){var O=A.display,E=kl(A.display);y.top<0&&(y.top=0);var K=A.curOp&&A.curOp.scrollTop!=null?A.curOp.scrollTop:O.scroller.scrollTop,H=WA(A),le={};y.bottom-y.top>H&&(y.bottom=y.top+H);var ve=A.doc.height+Yh(O),Be=y.top<E,Fe=y.bottom>ve-E;if(y.top<K)le.scrollTop=Be?0:y.top;else if(y.bottom>K+H){var ht=Math.min(y.top,(Fe?ve:y.bottom)-H);ht!=K&&(le.scrollTop=ht)}var xt=A.options.fixedGutter?0:O.gutters.offsetWidth,Xt=A.curOp&&A.curOp.scrollLeft!=null?A.curOp.scrollLeft:O.scroller.scrollLeft-xt,Qt=Bl(A)-O.gutters.offsetWidth,xn=y.right-y.left>Qt;return xn&&(y.right=y.left+Qt),y.left<10?le.scrollLeft=0:y.left<Xt?le.scrollLeft=Math.max(0,y.left+xt-(xn?0:10)):y.right>Qt+Xt-3&&(le.scrollLeft=y.right+(xn?0:10)-Qt),le}function As(A,y){y!=null&&(ph(A),A.curOp.scrollTop=(A.curOp.scrollTop==null?A.doc.scrollTop:A.curOp.scrollTop)+y)}function Uo(A){ph(A);var y=A.getCursor();A.curOp.scrollToPos={from:y,to:y,margin:A.options.cursorScrollMargin}}function cs(A,y,O){(y!=null||O!=null)&&ph(A),y!=null&&(A.curOp.scrollLeft=y),O!=null&&(A.curOp.scrollTop=O)}function Df(A,y){ph(A),A.curOp.scrollToPos=y}function ph(A){var y=A.curOp.scrollToPos;if(y){A.curOp.scrollToPos=null;var O=Fr(A,y.from),E=Fr(A,y.to);mh(A,O,E,y.margin)}}function mh(A,y,O,E){var K=vc(A,{left:Math.min(y.left,O.left),top:Math.min(y.top,O.top)-E,right:Math.max(y.right,O.right),bottom:Math.max(y.bottom,O.bottom)+E});cs(A,K.scrollLeft,K.scrollTop)}function Uu(A,y){Math.abs(A.doc.scrollTop-y)<2||(i||va(A,{top:y}),XA(A,y,!0),i&&va(A),yh(A,100))}function XA(A,y,O){y=Math.max(0,Math.min(A.display.scroller.scrollHeight-A.display.scroller.clientHeight,y)),!(A.display.scroller.scrollTop==y&&!O)&&(A.doc.scrollTop=y,A.display.scrollbars.setScrollTop(y),A.display.scroller.scrollTop!=y&&(A.display.scroller.scrollTop=y))}function Nl(A,y,O,E){y=Math.max(0,Math.min(y,A.display.scroller.scrollWidth-A.display.scroller.clientWidth)),!((O?y==A.doc.scrollLeft:Math.abs(A.doc.scrollLeft-y)<2)&&!E)&&(A.doc.scrollLeft=y,vh(A),A.display.scroller.scrollLeft!=y&&(A.display.scroller.scrollLeft=y),A.display.scrollbars.setScrollLeft(y))}function xA(A){var y=A.display,O=y.gutters.offsetWidth,E=Math.round(A.doc.height+Yh(A.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:A.options.fixedGutter?O:0,docHeight:E,scrollHeight:E+iu(A)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:O}}var hl=function(A,y,O){this.cm=O;var E=this.vert=de("div",[de("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),K=this.horiz=de("div",[de("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");E.tabIndex=K.tabIndex=-1,A(E),A(K),Ne(E,"scroll",function(){E.clientHeight&&y(E.scrollTop,"vertical")}),Ne(K,"scroll",function(){K.clientWidth&&y(K.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};hl.prototype.update=function(A){var y=A.scrollWidth>A.clientWidth+1,O=A.scrollHeight>A.clientHeight+1,E=A.nativeBarWidth;if(O){this.vert.style.display="block",this.vert.style.bottom=y?E+"px":"0";var K=A.viewHeight-(y?E:0);this.vert.firstChild.style.height=Math.max(0,A.scrollHeight-A.clientHeight+K)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=O?E+"px":"0",this.horiz.style.left=A.barLeft+"px";var H=A.viewWidth-A.barLeft-(O?E:0);this.horiz.firstChild.style.width=Math.max(0,A.scrollWidth-A.clientWidth+H)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&A.clientHeight>0&&(E==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:O?E:0,bottom:y?E:0}},hl.prototype.setScrollLeft=function(A){this.horiz.scrollLeft!=A&&(this.horiz.scrollLeft=A),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},hl.prototype.setScrollTop=function(A){this.vert.scrollTop!=A&&(this.vert.scrollTop=A),thi Line truncated
`},setDirection:Ss(function(A){A!="rtl"&&(A="ltr"),A!=this.direction&&(this.direction=A,this.iter(function(y){return y.order=null}),this.cm&&Qu(this.cm))})}),Ht.prototype.eachLine=Ht.prototype.iter;var vn=0;function _n(A){var y=this;if(Un(y),!(_t(y,A)||aA(y.display,A))){bt(A),h&&(vn=+new Date);var O=CA(y,A,!0),E=A.dataTransfer.files;if(!(!O||y.isReadOnly()))if(E&&E.length&&window.FileReader&&window.File)for(var K=E.length,H=Array(K),le=0,ve=function(){++le==K&&Ri(y,function(){O=ri(y.doc,O);var Qt={from:O,to:O,text:y.doc.splitLines(H.filter(function(xn){return xn!=null}).join(y.doc.lineSeparator())),origin:"paste"};T(y.doc,Qt),wu(y.doc,za(ri(y.doc,O),ri(y.doc,Ks(Qt))))})()},Be=function(Qt,xn){if(y.options.allowDropFileTypes&&Je(y.options.allowDropFileTypes,Qt.type)==-1){ve();return}var Rn=new FileReader;Rn.onerror=function(){return ve()},Rn.onload=function(){var $n=Rn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test($n)){ve();return}H[xn]=$n,ve()},Rn.readAsText(Qt)},Fe=0;Fe<E.length;Fe++)Be(E[Fe],Fe);else{if(y.state.draggingText&&y.doc.sel.contains(O)>-1){y.state.draggingText(A),setTimeout(function(){return y.display.input.focus()},20);return}try{var ht=A.dataTransfer.getData("Text");if(ht){var xt;if(y.state.draggingText&&!y.state.draggingText.copy&&(xt=y.listSelections()),Xs(y.doc,za(O,O)),xt)for(var Xt=0;Xt<xt.length;++Xt)j(y.doc,"",xt[Xt].anchor,xt[Xt].head,"drag");y.replaceSelection(ht,"around","paste"),y.display.input.focus()}}catch{}}}}function gn(A,y){if(h&&(!A.state.draggingText||+new Date-vn<100)){lr(y);return}if(!(_t(A,y)||aA(A.display,y))&&(y.dataTransfer.setData("Text",A.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!U)){var O=de("img",null,null,"position: fixed; left: 0; top: 0;");O.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",k&&(O.width=O.height=1,A.display.wrapper.appendChild(O),O._top=O.offsetTop),y.dataTransfer.setDragImage(O,0,0),k&&O.parentNode.removeChild(O)}}function On(A,y){var O=CA(A,y);if(O){var E=document.createDocumentFragment();yc(A,O,E),A.display.dragCursor||(A.display.dragCursor=de("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),A.display.lineSpace.insertBefore(A.display.dragCursor,A.display.cursorDiv)),Pe(A.display.dragCursor,E)}}function Un(A){A.display.dragCursor&&(A.display.lineSpace.removeChild(A.display.dragCursor),A.display.dragCursor=null)}function wn(A){if(document.getElementsByClassName){for(var y=document.getElementsByClassName("CodeMirror"),O=[],E=0;E<y.length;E++){var K=y[E].CodeMirror;K&&O.push(K)}O.length&&O[0].operation(function(){for(var H=0;H<O.length;H++)A(O[H])})}}var kr=!1;function Bi(){kr||($i(),kr=!0)}function $i(){var A;Ne(window,"resize",function(){A==null&&(A=setTimeout(function(){A=null,wn(Bo)},100))}),Ne(window,"blur",function(){return wn(Vo)})}function Bo(A){var y=A.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,A.setSize()}for(var Si={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"},zo=0;zo<10;zo++)Si[zo+48]=Si[zo+96]=String(zo);for(var jo=65;jo<=90;jo++)Si[jo]=String.fromCharCode(jo);for(var xo=1;xo<=12;xo++)Si[xo+111]=Si[xo+63235]="F"+xo;var yo={};yo.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"},yo.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"},yo.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":"delWordBefore","Ctrl-KLine truncated
`,"start")},toggleOverwrite:function(A){return A.toggleOverwrite()}};function sa(A,y){var O=Kr(A.doc,y),E=pr(O);return E!=O&&(y=We(E)),Vu(!0,A,E,y,1)}function Pl(A,y){var O=Kr(A.doc,y),E=Ir(O);return E!=O&&(y=We(E)),Vu(!0,A,O,y,-1)}function bs(A,y){var O=sa(A,y.line),E=Kr(A.doc,O.line),K=xe(E,A.doc.direction);if(!K||K[0].level==0){var H=Math.max(O.ch,E.text.search(/\S/)),le=y.line==O.line&&y.ch<=H&&y.ch;return An(O.line,le?0:H,O.sticky)}return O}function Qs(A,y,O){if(typeof y=="string"&&(y=ml[y],!y))return!1;A.display.input.ensurePolled();var E=A.display.shift,K=!1;try{A.isReadOnly()&&(A.state.suppressEdits=!0),O&&(A.display.shift=!1),K=y(A)!=gt}finally{A.display.shift=E,A.state.suppressEdits=!1}return K}function el(A,y,O){for(var E=0;E<A.state.keyMaps.length;E++){var K=hs(y,A.state.keyMaps[E],O,A);if(K)return K}return A.options.extraKeys&&hs(y,A.options.extraKeys,O,A)||hs(y,A.options.keyMap,O,A)}var tl=new Oe;function Mh(A,y,O,E){var K=A.state.keySeq;if(K){if(ja(y))return"handled";if(/\'$/.test(y)?A.state.keySeq=null:tl.set(50,function(){A.state.keySeq==K&&(A.state.keySeq=null,A.display.input.reset())}),Bd(A,K+" "+y,O,E))return!0}return Bd(A,y,O,E)}function Bd(A,y,O,E){var K=el(A,y,E);return K=="multi"&&(A.state.keySeq=y),K=="handled"&&Zs(A,"keyHandled",A,y,O),(K=="handled"||K=="multi")&&(bt(O),bA(A)),!!K}function Od(A,y){var O=fl(y,!0);return O?y.shiftKey&&!A.state.keySeq?Mh(A,"Shift-"+O,y,function(E){return Qs(A,E,!0)})||Mh(A,O,y,function(E){if(typeof E=="string"?/^go[A-Z]/.test(E):E.motion)return Qs(A,E)}):Mh(A,O,y,function(E){return Qs(A,E)}):!1}function Sh(A,y,O){return Mh(A,"'"+O+"'",y,function(E){return Qs(A,E,!0)})}var ic=null;function Id(A){var y=this;if(!(A.target&&A.target!=y.display.input.getField())&&(y.curOp.focus=ut(mt(y)),!_t(y,A))){h&&g<11&&A.keyCode==27&&(A.returnValue=!1);var O=A.keyCode;y.display.shift=O==16||A.shiftKey;var E=Od(y,A);k&&(ic=E?O:null,!E&&O==88&&!$a&&(q?A.metaKey:A.ctrlKey)&&y.replaceSelection("",null,"cut")),i&&!q&&!E&&O==46&&A.shiftKey&&!A.ctrlKey&&document.execCommand&&document.execCommand("cut"),O==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&Ia(y)}}function Ia(A){var y=A.display.lineDiv;Te(y,"CodeMirror-crosshair");function O(E){(E.keyCode==18||!E.altKey)&&(pe(y,"CodeMirror-crosshair"),pt(document,"keyup",O),pt(document,"mouseover",O))}Ne(document,"keyup",O),Ne(document,"mouseover",O)}function Au(A){A.keyCode==16&&(this.doc.sel.shift=!1),_t(this,A)}function Eh(A){var y=this;if(!(A.target&&A.target!=y.display.input.getField())&&!(aA(y.display,A)||_t(y,A)||A.ctrlKey&&!A.altKey||q&&A.metaKey)){var O=A.keyCode,E=A.charCode;if(k&&O==ic){ic=null,bt(A);return}if(!(k&&(!A.which||A.which<10)&&Od(y,A))){var K=String.fromCharCode(E??O);K!="\b"&&(Sh(y,A,K)||y.display.input.onKeyPress(A))}}}var _p=400,Ec=function(A,y,O){this.time=A,this.pos=y,this.button=O};Ec.prototype.compare=function(A,y,O){return this.time+_p>A&&er(y,this.pos)==0&&O==this.button};var kA,Na;function Cp(A,y){var O=+new Date;return Na&&Na.compare(O,A,y)?(kA=Na=null,"triple"):kA&&kA.compare(O,A,y)?(Na=new Ec(O,A,y),kA=null,"double"):(kA=new Ec(O,A,y),Na=null,"single")}function kd(A){var y=this,O=y.display;if(!(_t(y,A)||O.activeTouch&&O.input.supportsTouch())){if(O.input.ensurePolled(),O.shift=A.shiftKey,aA(O,A)){b||(O.scroller.draggable=!1,setTimeout(function(){return O.scroller.draggable=!0},100));return}if(!sd(y,A)){var E=CA(y,A),K=on(A),H=E?Cp(E,K):"single";Ut(y).focus(),K==1&&y.state.selectingText&&y.state.selectingText(A),!(E&&bp(y,K,E,H,A))&&(K==1?E?Bc(y,E,H,A):wr(A)==O.scroller&&bt(A):K==2?(E&&wc(y.doc,E),setTimeout(function(){return O.input.focus()},20)):K==3&&(ce?y.display.input.onContextMenu(A):Wc(y)))}}}function bp(A,y,O,E,K){var H="Click";return E=="double"?H="Double"+H:E=="triple"&&(H="Triple"+H),H=(y==1?"Left":y==2?"Middle":"Right")+H,Mh(A,$u(H,K),K,function(le){if(typeof le=="string"&&(le=ml[le]),!le)return!1;var ve=!1;try{A.isReadOnly()&&(A.state.suppressEdits=!0),ve=le(A,O)!=gt}finally{A.state.suppressEdits=!1}return ve})}function od(A,y,O){var E=A.getOption("configureMouse"),K=E?E(A,y,O):{};if(K.unit==null){var H=J?O.shiftKey&&O.metaKey:O.altKey;K.unit=H?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(K.extend==null||A.doc.extend)&&(K.extend=A.doc.extend||O.shiftKey),K.addNew==null&&(K.addNew=q?O.metaKey:O.ctrlKey),K.moveOnDrag==null&&(K.moveOnDrag=!(q?O.altKey:O.ctrlKey)),K}function Bc(A,y,O,E){h?setTimeout(Lt(HA,A),0):A.curOp.focus=ut(mt(A));var K=od(A,O,E),H=A.doc.sel,le;A.options.dragDrop&&zn&&!A.isReadOnly()&&O=="single"&&(le=H.contains(y))>-1&&(er((le=H.ranges[le]).from(),y)<0||y.xRel>0)&&(er(le.to(),y)>0||y.xRel<0)?um(A,E,y,K):Td(A,E,y,K)}function um(A,y,O,E){var K=A.display,H=!1,le=Ri(A,function(Fe){b&&(K.scroller.draggable=!1),A.state.draggingText=!1,A.state.delayingBlurEvent&&(A.hasFocus()?A.state.delayingBlurEvent=!1:Wc(A)),pt(K.wrapper.ownerDocument,"mouseup",le),pt(K.wrapper.ownerDocument,"mousemove",ve),pt(K.scroller,"dragstart",Be),pt(K.scrol Line truncated
`)==y){if(E.ranges.length%TA.text.length==0){Fe=[];for(var ht=0;ht<TA.text.length;ht++)Fe.push(H.splitLines(TA.text[ht]))}}else Be.length==E.ranges.length&&A.options.pasteLinesPerSelection&&(Fe=fr(Be,function(Jn){return[Jn]}));for(var xt=A.curOp.updateInput,Xt=E.ranges.length-1;Xt>=0;Xt--){var Qt=E.ranges[Xt],xn=Qt.from(),Rn=Qt.to();Qt.empty()&&(O&&O>0?xn=An(xn.line,xn.ch-O):A.state.overwrite&&!ve?Rn=An(Rn.line,Math.min(Kr(H,Rn.line).text.length,Rn.ch+cr(Be).length)):ve&&TA&&TA.lineWise&&TA.text.join(`
`)==Be.join(`
`)&&(xn=Rn=An(xn.line,0)));var $n={from:xn,to:Rn,text:Fe?Fe[Xt%Fe.length]:Be,origin:K||(ve?"paste":A.state.cutIncoming>le?"cut":"+input")};T(A.doc,$n),Zs(A,"inputRead",A,$n)}y&&!ve&&uf(A,y),Uo(A),A.curOp.updateInput<2&&(A.curOp.updateInput=xt),A.curOp.typing=!0,A.state.pasteIncoming=A.state.cutIncoming=-1}function Oc(A,y){var O=A.clipboardData&&A.clipboardData.getData("Text");if(O)return A.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&y.hasFocus()&&Eo(y,function(){return Mp(y,O,0,null,"paste")}),!0}function uf(A,y){if(!(!A.options.electricChars||!A.options.smartIndent))for(var O=A.doc.sel,E=O.ranges.length-1;E>=0;E--){var K=O.ranges[E];if(!(K.head.ch>100||E&&O.ranges[E-1].head.line==K.head.line)){var H=A.getModeAt(K.head),le=!1;if(H.electricChars){for(var ve=0;ve<H.electricChars.length;ve++)if(y.indexOf(H.electricChars.charAt(ve))>-1){le=Ih(A,K.head.line,"smart");break}}else H.electricInput&&H.electricInput.test(Kr(A.doc,K.head.line).text.slice(0,K.head.ch))&&(le=Ih(A,K.head.line,"smart"));le&&Zs(A,"electricInput",A,K.head.line)}}}function Af(A){for(var y=[],O=[],E=0;E<A.doc.sel.ranges.length;E++){var K=A.doc.sel.ranges[E].head.line,H={anchor:An(K,0),head:An(K+1,0)};O.push(H),y.push(A.getRange(H.anchor,H.head))}return{text:y,ranges:O}}function ad(A,y,O,E){A.setAttribute("autocorrect",O?"on":"off"),A.setAttribute("autocapitalize",E?"on":"off"),A.setAttribute("spellcheck",!!y)}function kh(){var A=de("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),y=de("div",[A],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return b?A.style.width="1000px":A.setAttribute("wrap","off"),Q&&(A.style.border="1px solid black"),y}function Hc(A){var y=A.optionHandlers,O=A.helpers={};A.prototype={constructor:A,focus:function(){Ut(this).focus(),this.display.input.focus()},setOption:function(E,K){var H=this.options,le=H[E];H[E]==K&&E!="mode"||(H[E]=K,y.hasOwnProperty(E)&&Ri(this,y[E])(this,K,le),Ot(this,"optionChange",this,E))},getOption:function(E){return this.options[E]},getDoc:function(){return this.doc},addKeyMap:function(E,K){this.state.keyMaps[K?"push":"unshift"](pl(E))},removeKeyMap:function(E){for(var K=this.state.keyMaps,H=0;H<K.length;++H)if(K[H]==E||K[H].name==E)return K.splice(H,1),!0},addOverlay:$r(function(E,K){var H=E.token?E:A.getMode(this.options,E);if(H.startState)throw new Error("Overlays may not be stateful.");br(this.state.overlays,{mode:H,modeSpec:E,opaque:K&&K.opaque,priority:K&&K.priority||0},function(le){return le.priority}),this.state.modeGen++,Tl(this)}),removeOverlay:$r(function(E){for(var K=this.state.overlays,H=0;H<K.length;++H){var le=K[H].modeSpec;if(le==E||typeof E=="string"&&le.name==E){K.splice(H,1),this.state.modeGen++,Tl(this);return}}}),indentLine:$r(function(E,K,H){typeof K!="string"&&typeof K!="number"&&(K==null?K=this.options.smartIndent?"smart":"prev":K=K?"add":"subtract"),pn(this.doc,E)&&Ih(this,E,K,H)}),indentSelection:$r(function(E){for(var K=this.doc.sel.ranges,H=-1,le=0;le<K.length;le++){var ve=K[le];if(ve.empty())ve.head.line>H&&(Ih(this,ve.head.line,E,!0),H=ve.head.line,le==this.doc.sel.primIndex&&Uo(this));else{var Be=ve.from(),Fe=ve.to(),ht=Math.max(H,Be.line);H=Math.min(this.lastLine(),Fe.line-(Fe.ch?0:1))+1;for(var xt=ht;xt<H;++xt)Ih(this,xt,E);var Xt=this.doc.sel.ranges;Be.ch==0&&K.length==Xt.length&&Xt[le].from().ch>0&&dl(this.doc,le,new bo(Be,Xt[le].to()),Nt)}}}),getTokenAt:function(E,K){return Ns(this,E,K)},getLineTokens:function(E,K){return Ns(this,An(E),K,!0)},getTokenTypeAt:function(E){E=ri(this.doc,E);var K=ls(this,Kr(this.doc,E.line)),H=0,le=(K.length-1)/2,ve=E.ch,Be;if(ve==0)Be=K[2];else for(;;){var Fe=H+le>>1;if((Fe?K[Fe*2-1]:0)>=ve)le=Fe;else if(K[Fe*2+1]<ve)H=Fe+1;else{Be=K[Fe*2+2];break}}var ht=Be?Be.indexOf("overlay "):-1;return ht<0?Be:ht==0?null:Be.slice(0,ht-1)},getModeAt:function(E){var K=this.doc.mode;return K.innerMode?A.innerMode(K,this.getTokenAt(E).state).mode:K},getHelper:function(E,K){return this.getHelpers(E,K)[0]},getHelpers:function(E,K){var H=[];if(!O.hasOwnProperty(K))return H;var le=O[K],ve=this.getModeAt(E);if(typeof ve[K]=="string")le[ve[K]]&&H.push(le[ve[K]]);else if(ve[K])for(var Be=0;Be<ve[K].length;Be++){var Fe=le[ve[K][Be]];Fe&&H.push(Fe)}else ve.helperType&&le[ve.helperType]?H.push(le[ve.helperType]):le[ve.name]&&H.push(le[ve.name]);for(var ht=0;ht<le._global.length;ht++){var xt=le._global[ht];xt.pred(ve,this)&&Je(H,xt.val)==-1&&H.push(xt.val)}return H},getStateAfter:function(E,K){var H=this.doc;return E=vA(H,E??H.first+H.size-1),Dr(this,E+1,K).state},cursorCoords:function(E,K){var H,le=this.doc.sel.primary();return E==null?H=le.head:typeof E=="object"?H=ri(this.doc,E):H=E?le.from():le.to(),an(this,H,K||"page")},charCoords:function(E,K){return Tn(this,ri(this.doc,E),K||"page")},coordsChar:function(E,K){return E=Vt(this,E,K||"page"),Co(this,E.left,E.top)},lineAtHeight:function(E,K){return E=Vt(this,{top:E,left:0},K||"page").top,Ct(t Line truncated
`,$n=Ge(Rn,Qt)?"w":Xt&&Rn==`
`?"n":!Xt||/\s/.test(Rn)?null:"p";if(Xt&&!xn&&!$n&&($n="s"),xt&&xt!=$n){O<0&&(O=1,ht(),y.sticky="after");break}if($n&&(xt=$n),O>0&&!ht(!xn))break}var Jn=Sc(A,y,H,le,!0);return Ti(H,Jn)&&(Jn.hitSide=!0),Jn}function Zc(A,y,O,E){var K=A.doc,H=y.left,le;if(E=="page"){var ve=Math.min(A.display.wrapper.clientHeight,Ut(A).innerHeight||K(A).documentElement.clientHeight),Be=Math.max(ve-.5*kl(A.display),3);le=(O>0?y.bottom:y.top)+O*Be}else E=="line"&&(le=O>0?y.bottom+3:y.top-3);for(var Fe;Fe=Co(A,H,le),!!Fe.outside;){if(O<0?le<=0:le>=K.height){Fe.hitSide=!0;break}le+=O*5}return Fe}var rs=function(A){this.cm=A,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Oe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};rs.prototype.init=function(A){var y=this,O=this,E=O.cm,K=O.div=A.lineDiv;K.contentEditable=!0,ad(K,E.options.spellcheck,E.options.autocorrect,E.options.autocapitalize);function H(ve){for(var Be=ve.target;Be;Be=Be.parentNode){if(Be==K)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Be.className))break}return!1}Ne(K,"paste",function(ve){!H(ve)||_t(E,ve)||Oc(ve,E)||g<=11&&setTimeout(Ri(E,function(){return y.updateFromDOM()}),20)}),Ne(K,"compositionstart",function(ve){y.composing={data:ve.data,done:!1}}),Ne(K,"compositionupdate",function(ve){y.composing||(y.composing={data:ve.data,done:!1})}),Ne(K,"compositionend",function(ve){y.composing&&(ve.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Ne(K,"touchstart",function(){return O.forceCompositionEnd()}),Ne(K,"input",function(){y.composing||y.readFromDOMSoon()});function le(ve){if(!(!H(ve)||_t(E,ve))){if(E.somethingSelected())Pd({lineWise:!1,text:E.getSelections()}),ve.type=="cut"&&E.replaceSelection("",null,"cut");else if(E.options.lineWiseCopyCut){var Be=Af(E);Pd({lineWise:!0,text:Be.text}),ve.type=="cut"&&E.operation(function(){E.setSelections(Be.ranges,0,Nt),E.replaceSelection("",null,"cut")})}else return;if(ve.clipboardData){ve.clipboardData.clearData();var Fe=TA.text.join(`
`);if(ve.clipboardData.setData("Text",Fe),ve.clipboardData.getData("Text")==Fe){ve.preventDefault();return}}var ht=kh(),xt=ht.firstChild;ad(xt),E.display.lineSpace.insertBefore(ht,E.display.lineSpace.firstChild),xt.value=TA.text.join(`
`);var Xt=ut(ft(K));st(xt),setTimeout(function(){E.display.lineSpace.removeChild(ht),Xt.focus(),Xt==K&&O.showPrimarySelection()},50)}}Ne(K,"copy",le),Ne(K,"cut",le)},rs.prototype.screenReaderLabelChanged=function(A){A?this.div.setAttribute("aria-label",A):this.div.removeAttribute("aria-label")},rs.prototype.prepareSelection=function(){var A=fh(this.cm,!1);return A.focus=ut(ft(this.div))==this.div,A},rs.prototype.showSelection=function(A,y){!A||!this.cm.display.view.length||((A.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(A))},rs.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},rs.prototype.showPrimarySelection=function(){var A=this.getSelection(),y=this.cm,O=y.doc.sel.primary(),E=O.from(),K=O.to();if(y.display.viewTo==y.display.viewFrom||E.line>=y.display.viewTo||K.line<y.display.viewFrom){A.removeAllRanges();return}var H=gl(y,A.anchorNode,A.anchorOffset),le=gl(y,A.focusNode,A.focusOffset);if(!(H&&!H.bad&&le&&!le.bad&&er(js(H,le),E)==0&&er(vs(H,le),K)==0)){var ve=y.display.view,Be=E.line>=y.display.viewFrom&&Th(y,E)||{node:ve[0].measure.map[2],offset:0},Fe=K.line<y.display.viewTo&&Th(y,K);if(!Fe){var ht=ve[ve.length-1].measure,xt=ht.maps?ht.maps[ht.maps.length-1]:ht.map;Fe={node:xt[xt.length-1],offset:xt[xt.length-2]-xt[xt.length-3]}}if(!Be||!Fe){A.removeAllRanges();return}var Xt=A.rangeCount&&A.getRangeAt(0),Qt;try{Qt=ze(Be.node,Be.offset,Fe.offset,Fe.node)}catch{}Qt&&(!i&&y.state.focused?(A.collapse(Be.node,Be.offset),Qt.collapsed||(A.removeAllRanges(),A.addRange(Qt))):(A.removeAllRanges(),A.addRange(Qt)),Xt&&A.anchorNode==null?A.addRange(Xt):i&&this.startGracePeriod()),this.rememberSelection()}},rs.prototype.startGracePeriod=function(){var A=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){A.gracePeriod=!1,A.selectionChanged()&&A.cm.operation(function(){return A.cm.curOp.selectionChanged=!0})},20)},rs.prototype.showMultipleSelections=function(A){Pe(this.cm.display.cursorDiv,A.cursors),Pe(this.cm.display.selectionDiv,A.selection)},rs.prototype.rememberSelection=function(){var A=this.getSelection();this.lastAnchorNode=A.anchorNode,this.lastAnchorOffset=A.anchorOffset,this.lastFocusNode=A.focusNode,this.lastFocusOffset=A.focusOffset},rs.prototype.selectionInEditor=function(){var A=this.getSelection();if(!A.rangeCount)return!1;var y=A.getRangeAt(0).commonAncestorContainer;return Qe(this.div,y)},rs.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ut(ft(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},rs.prototype.blur=function(){this.div.blur()},rs.prototype.getField=function(){return this.div},rs.prototype.supportsTouch=function(){return!0},rs.prototype.receivedFocus=function(){var A=this,y=this;this.selectionInEditor()?setTimeout(function(){return A.pollSelection()},20):Eo(this.cm,function(){return y.cm.curOp.selectionChanged=!0});function O(){y.cm.state.focused&&(y.pollSelection(),y.polling.set(y.cm.options.pollInterval,O))}this.polling.set(this.cm.options.pollInterval,O)},rs.prototype.selectionChanged=function(){var A=this.getSelection();return A.anchorNode!=this.lastAnchorNode||A.anchorOffset!=this.lastAnchorOffset||A.focusNode!=this.lastFocusNode||A.focusOffset!=this.lastFocusOffset},rs.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var A=this.getSelection(),y=this.cm;if(ne&&S&&this.cm.display.gutterSpecs.length&&Sp(A.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var O=gl(y,A.anchorNode,A.anchorOffset),E=gl(y,A.focusNode,A.focusOffset);O&&E&&Eo(y,function(){_a(y.doc,za(O,E),Nt),(O.bad||E.bad)&&(y.curOp.selectionChanged=!0)})}}},rs.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var A=this.cm,y=A.display,O=A.doc.sel.primary(),E=O.from(),K=O.to();if(E.ch==0&&E.line>A.firstLine()&&(E=An(E.line-1,Kr(A.doc,E.line-1).length)),K.ch==Kr(A.doc,K.line).text.length&&K.line<A.lastLine()&&(K=An(K.line+1,0)),E.line<y.viewFrom||K.line>y.viewTo-1)return!1;var H,le,ve;E.line==y.viewFrom||(H=lA(A,E.line))==0?(le=We(y.view[0].line),ve=y.view[0].node):(le=We(y.view[H].line),ve=y.view[H-1].node.nextSibling);var Be=lA(A,K.line),Fe,ht;if(Be==y.view.length-1?(Fe=y.viewTo-1,ht=y.lineDiv.lastChild):(Fe=We(y.view[Be+1].line)-1,ht=y.view[Be+1].node.previousSibling),!ve)return!1;for(var xt=A.doc.splitLines(Ym(A,ve,ht,le,Fe)),Xt=Va(A.doc,An(le,0),An(Fe,Kr(A.doc,Fe).text.length));xt.length>1&&Xt.length>1;)if(cr(xt)==cr(Xt))xt.pop(),Xt.pop(),Fe--;else if(xt[0]==Xt[0])xt.shift(),Xt.shift(),le++;else break;for(var Qt=0,xn=0,Rn=xt[0],$n=Xt[0],Jn=Math.min(Rn.length,$n.length);Qt<Jn&&Rn.charCodeAt(Qt)==$n.charCodeAt(Qt);)++Qt;for(var yr=cr(xt),ar=cr(Xt),Lr=Math.min(yr.length-(xt.length==1?Qt:0),ar.length-(Xt. Line truncated
`),st(K))}else return;le.type=="cut"&&(E.state.cutIncoming=+new Date)}}Ne(K,"cut",H),Ne(K,"copy",H),Ne(A.scroller,"paste",function(le){if(!(aA(A,le)||_t(E,le))){if(!K.dispatchEvent){E.state.pasteIncoming=+new Date,O.focus();return}var ve=new Event("paste");ve.clipboardData=le.clipboardData,K.dispatchEvent(ve)}}),Ne(A.lineSpace,"selectstart",function(le){aA(A,le)||bt(le)}),Ne(K,"compositionstart",function(){var le=E.getCursor("from");O.composing&&O.composing.range.clear(),O.composing={start:le,range:E.markText(le,E.getCursor("to"),{className:"CodeMirror-composing"})}}),Ne(K,"compositionend",function(){O.composing&&(O.poll(),O.composing.range.clear(),O.composing=null)})},da.prototype.createField=function(A){this.wrapper=kh(),this.textarea=this.wrapper.firstChild;var y=this.cm.options;ad(this.textarea,y.spellcheck,y.autocorrect,y.autocapitalize)},da.prototype.screenReaderLabelChanged=function(A){A?this.textarea.setAttribute("aria-label",A):this.textarea.removeAttribute("aria-label")},da.prototype.prepareSelection=function(){var A=this.cm,y=A.display,O=A.doc,E=fh(A);if(A.options.moveInputWithCursor){var K=an(A,O.sel.primary().head,"div"),H=y.wrapper.getBoundingClientRect(),le=y.lineDiv.getBoundingClientRect();E.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,K.top+le.top-H.top)),E.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,K.left+le.left-H.left))}return E},da.prototype.showSelection=function(A){var y=this.cm,O=y.display;Pe(O.cursorDiv,A.cursors),Pe(O.selectionDiv,A.selection),A.teTop!=null&&(this.wrapper.style.top=A.teTop+"px",this.wrapper.style.left=A.teLeft+"px")},da.prototype.reset=function(A){if(!(this.contextMenuPending||this.composing&&A)){var y=this.cm;if(this.resetting=!0,y.somethingSelected()){this.prevInput="";var O=y.getSelection();this.textarea.value=O,y.state.focused&&st(this.textarea),h&&g>=9&&(this.hasSelection=O)}else A||(this.prevInput=this.textarea.value="",h&&g>=9&&(this.hasSelection=null));this.resetting=!1}},da.prototype.getField=function(){return this.textarea},da.prototype.supportsTouch=function(){return!1},da.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!X||ut(ft(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},da.prototype.blur=function(){this.textarea.blur()},da.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},da.prototype.receivedFocus=function(){this.slowPoll()},da.prototype.slowPoll=function(){var A=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){A.poll(),A.cm.state.focused&&A.slowPoll()})},da.prototype.fastPoll=function(){var A=!1,y=this;y.pollingFast=!0;function O(){var E=y.poll();!E&&!A?(A=!0,y.polling.set(60,O)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,O)},da.prototype.poll=function(){var A=this,y=this.cm,O=this.textarea,E=this.prevInput;if(this.contextMenuPending||this.resetting||!y.state.focused||co(O)&&!E&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var K=O.value;if(K==E&&!y.somethingSelected())return!1;if(h&&g>=9&&this.hasSelection===K||q&&/[\uf700-\uf7ff]/.test(K))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var H=K.charCodeAt(0);if(H==8203&&!E&&(E="​"),H==8666)return this.reset(),this.cm.execCommand("undo")}for(var le=0,ve=Math.min(E.length,K.length);le<ve&&E.charCodeAt(le)==K.charCodeAt(le);)++le;return Eo(y,function(){Mp(y,K.slice(le),E.length-le,null,A.composing?"*compose":null),K.length>1e3||K.indexOf(`
`)>-1?O.value=A.prevInput="":A.prevInput=K,A.composing&&(A.composing.range.clear(),A.composing.range=y.markText(A.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},da.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},da.prototype.onKeyPress=function(){h&&g>=9&&(this.hasSelection=null),this.fastPoll()},da.prototype.onContextMenu=function(A){var y=this,O=y.cm,E=O.display,K=y.textarea;y.contextMenuPending&&y.contextMenuPending();var H=CA(O,A),le=E.scroller.scrollTop;if(!H||k)return;var ve=O.options.resetSelectionOnContextMenu;ve&&O.doc.sel.contains(H)==-1&&Ri(O,_a)(O.doc,za(H),Nt);var Be=K.style.cssText,Fe=y.wrapper.style.cssText,ht=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",K.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(A.clientY-ht.top-5)+"px; left: "+(A.clientX-ht.left-5)+`px;
z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var xt;b&&(xt=K.ownerDocument.defaultView.scrollY),E.input.focus(),b&&K.ownerDocument.defaultView.scrollTo(null,xt),E.input.reset(),O.somethingSelected()||(K.value=y.prevInput=" "),y.contextMenuPending=Qt,E.selForContextMenu=O.doc.sel,clearTimeout(E.detectingSelectAll);function Xt(){if(K.selectionStart!=null){var Rn=O.somethingSelected(),$n="​"+(Rn?K.value:"");K.value="⇚",K.value=$n,y.prevInput=Rn?"":"​",K.selectionStart=1,K.selectionEnd=$n.length,E.selForContextMenu=O.doc.sel}}function Qt(){if(y.contextMenuPending==Qt&&(y.contextMenuPending=!1,y.wrapper.style.cssText=Fe,K.style.cssText=Be,h&&g<9&&E.scrollbars.setScrollTop(E.scroller.scrollTop=le),K.selectionStart!=null)){(!h||h&&g<9)&&Xt();var Rn=0,$n=function(){E.selForContextMenu==O.doc.sel&&K.selectionStart==0&&K.selectionEnd>0&&y.prevInput=="​"?Ri(O,Ql)(O):Rn++<10?E.detectingSelectAll=setTimeout($n,500):(E.selForContextMenu=null,E.input.reset())};E.detectingSelectAll=setTimeout($n,200)}}if(h&&g>=9&&Xt(),ce){lr(A);var xn=function(){pt(window,"mouseup",xn),setTimeout(Qt,20)};Ne(window,"mouseup",xn)}else setTimeout(Qt,50)},da.prototype.readOnlyChanged=function(A){A||this.reset(),this.textarea.disabled=A=="nocursor",this.textarea.readOnly=!!A},da.prototype.setUneditable=function(){},da.prototype.needsContentAttribute=!1;function hm(A,y){if(y=y?De(y):{},y.value=A.value,!y.tabindex&&A.tabIndex&&(y.tabindex=A.tabIndex),!y.placeholder&&A.placeholder&&(y.placeholder=A.placeholder),y.autofocus==null){var O=ut(ft(A));y.autofocus=O==A||A.getAttribute("autofocus")!=null&&O==document.body}function E(){A.value=ve.getValue()}var K;if(A.form&&(Ne(A.form,"submit",E),!y.leaveSubmitMethodAlone)){var H=A.form;K=H.submit;try{var le=H.submit=function(){E(),H.submit=K,H.submit(),H.submit=le}}catch{}}y.finishInit=function(Be){Be.save=E,Be.getTextArea=function(){return A},Be.toTextArea=function(){Be.toTextArea=isNaN,E(),A.parentNode.removeChild(Be.getWrapperElement()),A.style.display="",A.form&&(pt(A.form,"submit",E),!y.leaveSubmitMethodAlone&&typeof A.form.submit=="function"&&(A.form.submit=K))}},A.style.display="none";var ve=Oo(function(Be){return A.parentNode.insertBefore(Be,A.nextSibling)},y);return ve}function cf(A){A.off=pt,A.on=Ne,A.wheelEventPixels=AA,A.Doc=Ht,A.splitLines=rr,A.countColumn=ke,A.findColumn=Sn,A.isWordChar=Sr,A.Pass=gt,A.signal=Ot,A.Line=La,A.changeEnd=Ks,A.scrollbarModel=ju,A.Pos=An,A.cmpPos=er,A.modes=Vi,A.mimeModes=as,A.resolveMode=ul,A.getMode=ts,A.modeExtensions=Aa,A.extendMode=Al,A.copyState=ao,A.startState=tu,A.innerMode=Pu,A.commands=ml,A.keyMap=yo,A.keyName=fl,A.isModifierKey=ja,A.lookupKey=hs,A.normalizeKeyMap=No,A.StringStream=so,A.SharedTextMarker=Et,A.TextMarker=ct,A.LineWidget=qe,A.e_preventDefault=bt,A.e_stopPropagation=Pn,A.e_stop=lr,A.addClass=Te,A.contains=Qe,A.rmClass=pe,A.keyNames=Si}Rl(Oo),Hc(Oo);var nl="iter insert remove copy getEditor constructor".split(" ");for(var Ep in Ht.prototype)Ht.prototype.hasOwnProperty(Ep)&&Je(nl,Ep)<0&&(Oo.prototype[Ep]=function(A){return function(){return A.apply(this.doc,arguments)}}(Ht.prototype[Ep]));return Gt(Ht),Oo.inputStyles={textarea:da,contenteditable:rs},Oo.defineMode=function(A){!Oo.defaults.mode&&A!="null"&&(Oo.defaults.mode=A),Ni.apply(this,arguments)},Oo.defineMIME=ll,Oo.defineMode("null",function(){return{token:function(A){return A.skipToEnd()}}}),Oo.defineMIME("text/plain","null"),Oo.defineExtension=function(A,y){Oo.prototype[A]=y},Oo.defineDocExtension=function(A,y){Ht.prototype[A]=y},Oo.fromTextArea=hm,cf(Oo),Oo.version="5.65.16",Oo})}(Ob)),Ob.exports}var Eae=Hx();const Wd=Ka(Eae);var YT={exports:{}},$T;function Bae(){return $T||($T=1,function(n,e){(function(t){t(Hx())})(function(t){t.defineMode("javascript",function(r,i){var o=r.indentUnit,a=i.statementIndent,s=i.jsonld,h=i.json||s,g=i.trackScope!==!1,b=i.typescript,B=i.wordCharacters||/[\w$\xa1-\uffff]/,S=function(){function We(ho){return{type:ho,style:"keyword"}}var Ct=We("keyword a"),pn=We("keyword b"),Nn=We("keyword c"),An=We("keyword d"),er=We("operator"),Ti={type:"atom",style:"atom"};return{if:We("if"),while:Ct,with:Ct,else:pn,do:pn,try:pn,finally:pn,return:An,break:An,continue:An,new:We("new"),delete:Nn,void:Nn,throw:Nn,debugger:We("debugger"),var:We("var"),const:We("var"),let:We("var"),function:We("function"),catch:We("catch"),for:We("for"),switch:We("switch"),case:We("case"),default:We("default"),in:er,typeof:er,instanceof:er,true:Ti,false:Ti,null:Ti,undefined:Ti,NaN:Ti,Infinity:Ti,this:We("this"),class:We("class"),super:We("atom"),yield:Nn,export:We("export"),import:We("import"),extends:Nn,await:Nn}}(),I=/[+\-*&%=<>!?|~^@]/,k=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function U(We){for(var Ct=!1,pn,Nn=!1;(pn=We.next())!=null;){if(!Ct){if(pn=="/"&&!Nn)return;pn=="["?Nn=!0:Nn&&pn=="]"&&(Nn=!1)}Ct=!Ct&&pn=="\\"}}var z,Y;function Q(We,Ct,pn){return z=We,Y=pn,Ct}fun Line truncated
${B}`),U].join(`
${s}`)}return g}(n,"",0)}function Tae(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var T5={},JT;function Pae(){return JT||(JT=1,function(n){var e=function(){var t={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(o,a,s,h,g,b,B){var S=b.length-1;switch(g){case 1:this.$=o.replace(/\\(\\|")/g,"$1").replace(/\\n/g,`
`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(o);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=b[S-1];case 13:this.$={};break;case 14:this.$=b[S-1];break;case 15:this.$=[b[S-2],b[S]];break;case 16:this.$={},this.$[b[S][0]]=b[S][1];break;case 17:this.$=b[S-2],b[S-2][b[S][0]]=b[S][1];break;case 18:this.$=[];break;case 19:this.$=b[S-1];break;case 20:this.$=[b[S]];break;case 21:this.$=b[S-2],b[S-2].push(b[S]);break}},table:[{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],12:1,13:2,15:7,16:8,17:[1,14],23:[1,15]},{1:[3]},{14:[1,16]},{14:[2,7],18:[2,7],22:[2,7],24:[2,7]},{14:[2,8],18:[2,8],22:[2,8],24:[2,8]},{14:[2,9],18:[2,9],22:[2,9],24:[2,9]},{14:[2,10],18:[2,10],22:[2,10],24:[2,10]},{14:[2,11],18:[2,11],22:[2,11],24:[2,11]},{14:[2,12],18:[2,12],22:[2,12],24:[2,12]},{14:[2,3],18:[2,3],22:[2,3],24:[2,3]},{14:[2,4],18:[2,4],22:[2,4],24:[2,4]},{14:[2,5],18:[2,5],22:[2,5],24:[2,5]},{14:[2,1],18:[2,1],21:[2,1],22:[2,1],24:[2,1]},{14:[2,2],18:[2,2],22:[2,2],24:[2,2]},{3:20,4:[1,12],18:[1,17],19:18,20:19},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:23,15:7,16:8,17:[1,14],23:[1,15],24:[1,21],25:22},{1:[2,6]},{14:[2,13],18:[2,13],22:[2,13],24:[2,13]},{18:[1,24],22:[1,25]},{18:[2,16],22:[2,16]},{21:[1,26]},{14:[2,18],18:[2,18],22:[2,18],24:[2,18]},{22:[1,28],24:[1,27]},{22:[2,20],24:[2,20]},{14:[2,14],18:[2,14],22:[2,14],24:[2,14]},{3:20,4:[1,12],20:29},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:30,15:7,16:8,17:[1,14],23:[1,15]},{14:[2,19],18:[2,19],22:[2,19],24:[2,19]},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:31,15:7,16:8,17:[1,14],23:[1,15]},{18:[2,17],22:[2,17]},{18:[2,15],22:[2,15]},{22:[2,21],24:[2,21]}],defaultActions:{16:[2,6]},parseError:function(o,a){throw new Error(o)},parse:function(o){var a=this,s=[0],h=[null],g=[],b=this.table,B="",S=0,I=0,k=0,U=2,z=1;this.lexer.setInput(o),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var Y=this.lexer.yylloc;g.push(Y),typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function Q(de){s.length=s.length-2*de,h.length=h.length-de,g.length=g.length-de}function ne(){var de;return de=a.lexer.lex()||1,typeof de!="number"&&(de=a.symbols_[de]||de),de}for(var X,q,J,N,ie,he={},ce,we,pe,Ce;;){if(J=s[s.length-1],this.defaultActions[J]?N=this.defaultActions[J]:(X==null&&(X=ne()),N=b[J]&&b[J][X]),typeof N>"u"||!N.length||!N[0]){if(!k){Ce=[];for(ce in b[J])this.terminals_[ce]&&ce>2&&Ce.push("'"+this.terminals_[ce]+"'");var Pe="";this.lexer.showPosition?Pe="Parse error on line "+(S+1)+`:
b`.split(/\n/).length!=3?function(A){for(var y=0,I=[],B=A.length;y<=B;){var K=A.indexOf(`
`,y);K==-1&&(K=A.length);var H=A.slice(y,A.charAt(K-1)=="\r"?K-1:K),ue=H.indexOf("\r");ue!=-1?(I.push(H.slice(0,ue)),y+=ue+1):(I.push(H),y=K+1)}return I}:function(A){return A.split(/\r\n?|\n/)},co=window.getSelection?function(A){try{return A.selectionStart!=A.selectionEnd}catch{return!1}}:function(A){var y;try{y=A.ownerDocument.selection.createRange()}catch{}return!y||y.parentElement()!=A?!1:y.compareEndPoints("StartToEnd",y)!=0},Sa=function(){var A=pe("div");return"oncopy"in A?!0:(A.setAttribute("oncopy","return;"),typeof A.oncopy=="function")}(),qi=null;function yi(A){if(qi!=null)return qi;var y=Pe(A,pe("span","x")),I=y.getBoundingClientRect(),B=We(y,0,1).getBoundingClientRect();return qi=Math.abs(I.left-B.left)>1}var oo={},Mo={};function Ti(A,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),oo[A]=y}function Ua(A,y){Mo[A]=y}function Ea(A){if(typeof A=="string"&&Mo.hasOwnProperty(A))A=Mo[A];else if(A&&typeof A.name=="string"&&Mo.hasOwnProperty(A.name)){var y=Mo[A.name];typeof y=="string"&&(y={name:y}),A=xr(y,A),A.name=y.name}else{if(typeof A=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(A))return Ea("application/xml");if(typeof A=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(A))return Ea("application/json")}return typeof A=="string"?{name:A}:A||{name:"null"}}function ns(A,y){y=Ea(y);var I=oo[y.name];if(!I)return ns(A,"text/plain");var B=I(A,y);if(Aa.hasOwnProperty(y.name)){var K=Aa[y.name];for(var H in K)K.hasOwnProperty(H)&&(B.hasOwnProperty(H)&&(B["_"+H]=B[H]),B[H]=K[H])}if(B.name=y.name,y.helperType&&(B.helperType=y.helperType),y.modeProps)for(var ue in y.modeProps)B[ue]=y.modeProps[ue];return B}var Aa={};function Al(A,y){var I=Aa.hasOwnProperty(A)?Aa[A]:Aa[A]={};Fe(y,I)}function ao(A,y){if(y===!0)return y;if(A.copyState)return A.copyState(y);var I={};for(var B in y){var K=y[B];K instanceof Array&&(K=K.concat([])),I[B]=K}return I}function Pu(A,y){for(var I;A.innerMode&&(I=A.innerMode(y),!(!I||I.mode==A));)y=I.state,A=I.mode;return I||{mode:A,state:y}}function tu(A,y,I){return A.startState?A.startState(y,I):!0}var so=function(A,y,I){this.pos=this.start=0,this.string=A,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=I};so.prototype.eol=function(){return this.pos>=this.string.length},so.prototype.sol=function(){return this.pos==this.lineStart},so.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},so.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},so.prototype.eat=function(A){var y=this.string.charAt(this.pos),I;if(typeof A=="string"?I=y==A:I=y&&(A.test?A.test(y):A(y)),I)return++this.pos,y},so.prototype.eatWhile=function(A){for(var y=this.pos;this.eat(A););return this.pos>y},so.prototype.eatSpace=function(){for(var A=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>A},so.prototype.skipToEnd=function(){this.pos=this.string.length},so.prototype.skipTo=function(A){var y=this.string.indexOf(A,this.pos);if(y>-1)return this.pos=y,!0},so.prototype.backUp=function(A){this.pos-=A},so.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Te(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Te(this.string,this.lineStart,this.tabSize):0)},so.prototype.indentation=function(){return Te(this.string,null,this.tabSize)-(this.lineStart?Te(this.string,this.lineStart,this.tabSize):0)},so.prototype.match=function(A,y,I){if(typeof A=="string"){var B=function(ue){return I?ue.toLowerCase():ue},K=this.string.substr(this.pos,A.length);if(B(K)==B(A))return y!==!1&&(this.pos+=A.length),!0}else{var H=this.string.slice(this.pos).match(A);return H&&H.index>0?null:(H&&y!==!1&&(this.pos+=H[0].length),H)}},so.prototype.current=function(){return this.string.slice(this.start,this.pos)},so.prototype.hideFirstChars=function(A,y){this.lineStart+=A;try{return y()}finally{this.lineStart-=A}},so.prototype.lookAhead=function(A){var y=this.lineOracle;return y&&y.lookAhead(A)},so.prototype.baseToken=function(){var A=this.lineOracle;return A&&A.baseToken(this.pos)};function Dr(A,y){if(y-=A.first,y<0||y>=A.size)throw new Error("There is no line "+(y+A.first)+" in the document.");for(var I=A;!I.lines;)for(var B=0;;++B){var K=I.children[B],H=K.chunkSize();if(y<H){I=K;break}y-=H}return I.lines[y]}function Za(A,y,I){var B=[],K=y.line;return A.iter(y.line,I.line+1,function(H){var ue=H.text;K==I.line&&(ue=ue.slice(0,I.ch)),K==y.line&&(ue=ue.slice(y.ch)),B.push(ue),++K}),B}function Ts(A,y,I){var B=[];return A.iter(y,I,function(K){B.push(K.text)}),B}function ia(A,y){var I=y-A.height;if(I)for(var B=A;B;B=B.parent)B.height+=I}function Qe(A){if(A.parent==null)return null;for(var y=A.parent,I=Je(y.lines,A),B=y.parent;B;y=B,B=B.parent)for(var K=0;B.children[K]!=y;++K)I+=B.children[K].chunkSize();return I+y.first}function bt(A,y){var I=A.first;e:do{for(var B=0;B<A.child Line truncated
`?(Pn=ct.appendChild(pe("span",Ht[0]=="\r"?"␍":"␤","cm-invalidchar")),Pn.setAttribute("cm-text",Ht[0]),A.col+=1):(Pn=A.cm.options.specialCharPlaceholder(Ht[0]),Pn.setAttribute("cm-text",Ht[0]),d&&g<9?ct.appendChild(pe("span",[Pn])):ct.appendChild(Pn),A.col+=1);A.map.push(A.pos,A.pos+1,Pn),A.pos++}}if(A.trailingSpace=_e.charCodeAt(y.length-1)==32,I||B||K||Ue||H||ue){var _r=I||"";B&&(_r+=B),K&&(_r+=K);var ur=pe("span",[ct],_r,H);if(ue)for(var Fr in ue)ue.hasOwnProperty(Fr)&&Fr!="style"&&Fr!="class"&&ur.setAttribute(Fr,ue[Fr]);return A.content.appendChild(ur)}A.content.appendChild(ct)}}function bh(A,y){if(A.length>1&&!/ /.test(A))return A;for(var I=y,B="",K=0;K<A.length;K++){var H=A.charAt(K);H==" "&&I&&(K==A.length-1||A.charCodeAt(K+1)==32)&&(H=" "),B+=H,I=H==" "}return B}function Ms(A,y){return function(I,B,K,H,ue,_e,Ie){K=K?K+" cm-force-border":"cm-force-border";for(var Ue=I.pos,ct=Ue+B.length;;){for(var xt=void 0,Ht=0;Ht<y.length&&(xt=y[Ht],!(xt.to>Ue&&xt.from<=Ue));Ht++);if(xt.to>=ct)return A(I,B,K,H,ue,_e,Ie);A(I,B.slice(0,xt.to-Ue),K,H,null,_e,Ie),H=null,B=B.slice(xt.to-Ue),Ue=xt.to}}}function Du(A,y,I,B){var K=!B&&I.widgetNode;K&&A.map.push(A.pos,A.pos+y,K),!B&&A.cm.display.input.needsContentAttribute&&(K||(K=A.content.appendChild(document.createElement("span"))),K.setAttribute("cm-marker",I.id)),K&&(A.cm.display.input.setUneditable(K),A.content.appendChild(K)),A.pos+=y,A.trailingSpace=!1}function ud(A,y,I){var B=A.markedSpans,K=A.text,H=0;if(!B){for(var ue=1;ue<I.length;ue+=2)y.addToken(y,K.slice(H,H=I[ue]),cl(I[ue+1],y.cm.options));return}for(var _e=K.length,Ie=0,Ue=1,ct="",xt,Ht,Wt=0,xn,Pn,Yn,Xn,_r;;){if(Wt==Ie){xn=Pn=Yn=Ht="",_r=null,Xn=null,Wt=1/0;for(var ur=[],Fr=void 0,ai=0;ai<B.length;++ai){var Gr=B[ai],Xi=Gr.marker;if(Xi.type=="bookmark"&&Gr.from==Ie&&Xi.widgetNode)ur.push(Xi);else if(Gr.from<=Ie&&(Gr.to==null||Gr.to>Ie||Xi.collapsed&&Gr.to==Ie&&Gr.from==Ie)){if(Gr.to!=null&&Gr.to!=Ie&&Wt>Gr.to&&(Wt=Gr.to,Pn=""),Xi.className&&(xn+=" "+Xi.className),Xi.css&&(Ht=(Ht?Ht+";":"")+Xi.css),Xi.startStyle&&Gr.from==Ie&&(Yn+=" "+Xi.startStyle),Xi.endStyle&&Gr.to==Wt&&(Fr||(Fr=[])).push(Xi.endStyle,Gr.to),Xi.title&&((_r||(_r={})).title=Xi.title),Xi.attributes)for(var ko in Xi.attributes)(_r||(_r={}))[ko]=Xi.attributes[ko];Xi.collapsed&&(!Xn||tt(Xn.marker,Xi)<0)&&(Xn=Gr)}else Gr.from>Ie&&Wt>Gr.from&&(Wt=Gr.from)}if(Fr)for(var qa=0;qa<Fr.length;qa+=2)Fr[qa+1]==Wt&&(Pn+=" "+Fr[qa]);if(!Xn||Xn.from==Ie)for(var aa=0;aa<ur.length;++aa)Du(y,0,ur[aa]);if(Xn&&(Xn.from||0)==Ie){if(Du(y,(Xn.to==null?_e+1:Xn.to)-Ie,Xn.marker,Xn.from==null),Xn.to==null)return;Xn.to==Ie&&(Xn=!1)}}if(Ie>=_e)break;for(var Ca=Math.min(_e,Wt);;){if(ct){var ba=Ie+ct.length;if(!Xn){var Pa=ba>Ca?ct.slice(0,Ca-Ie):ct;y.addToken(y,Pa,xt?xt+xn:xn,Yn,Ie+Pa.length==Wt?Pn:"",Ht,_r)}if(ba>=Ca){ct=ct.slice(Ca-Ie),Ie=Ca;break}Ie=ba,Yn=""}ct=K.slice(H,H=I[Ue++]),xt=cl(I[Ue++],y.cm.options)}}}function gp(A,y,I){this.line=y,this.rest=vi(y),this.size=this.rest?Qe(sr(this.rest))-I+1:1,this.node=this.text=null,this.hidden=qr(A,y)}function sA(A,y,I){for(var B=[],K,H=y;H<I;H=K){var ue=new gp(A.doc,Dr(A.doc,H),H);K=H+ue.size,B.push(ue)}return B}var qd=null;function Lc(A){qd?qd.ops.push(A):A.ownsGroup=qd={ops:[A],delayedCallbacks:[]}}function yp(A){var y=A.delayedCallbacks,I=0;do{for(;I<y.length;I++)y[I].call(null);for(var B=0;B<A.ops.length;B++){var K=A.ops[B];if(K.cursorActivityHandlers)for(;K.cursorActivityCalled<K.cursorActivityHandlers.length;)K.cursorActivityHandlers[K.cursorActivityCalled++].call(null,K.cm)}}while(I<y.length)}function Rf(A,y){var I=A.ownsGroup;if(I)try{yp(I)}finally{qd=null,y(I)}}var hc=null;function Zs(A,y){var I=rt(A,y);if(I.length){var B=Array.prototype.slice.call(arguments,2),K;qd?K=qd.delayedCallbacks:hc?K=hc:(K=hc=[],setTimeout(xh,0));for(var H=function(_e){K.push(function(){return I[_e].apply(null,B)})},ue=0;ue<I.length;++ue)H(ue)}}function xh(){var A=hc;hc=null;for(var y=0;y<A.length;++y)A[y]()}function ef(A,y,I,B){for(var K=0;K<y.changes.length;K++){var H=y.changes[K];H=="text"?fc(A,y):H=="gutter"?Mh(A,y,I,B):H=="class"?wh(A,y):H=="widget"&&dd(A,y,B)}y.changes=null}function Ad(A){return A.node==A.text&&(A.node=pe("div",null,null,"position: relative"),A.text.parentNode&&A.text.parentNode.replaceChild(A.node,A.text),A.node.appendChild(A.text),d&&g<8&&(A.node.style.zIndex=2)),A.node}function tf(A,y){var I=y.bgClass?y.bgClass+" "+(y.line.bgClass||""):y.line.bgClass;if(I&&(I+=" CodeMirror-linebackground"),y.background)I?y.background.className=I:(y.background.parentNode.removeChild(y.background),y.background=null);else if(I){var B=Ad(y);y.background=B.insertBefore(pe("div",null,I),B.firstChild),A.display.input.setUneditable(y.background)}}function cd(A,y){var I=A.display.externalMeasured;return I&&I.line==y.line?(A.display.externalMeasured=null,y.measure=I.measure,I.built):ld(A,y)}function fc(A,y){var I=y.text.className,B=cd(A,y);y.text==y.node&&(y.node=B.pre),y.text.parentNode.replaceChild(B.pre,y.text),y.text=B.pre,B.bgClass Line truncated
top: `+Fr+"px; width: "+(ai??Ie-ur)+`px;
height: `+(Gr-Fr)+"px"))}function xt(ur,Fr,ai){var Gr=Dr(K,ur),Xi=Gr.text.length,ko,qa;function aa(Pa,Yl){return kn(A,un(ur,Pa),"div",Gr,Yl)}function Ca(Pa,Yl,Ya){var xa=Vo(A,Gr,null,Pa),hs=Yl=="ltr"==(Ya=="after")?"left":"right",gi=Ya=="after"?xa.begin:xa.end-(/\s/.test(Gr.text.charAt(xa.end-1))?2:1);return aa(gi,hs)[hs]}var ba=ve(Gr,K.direction);return nn(ba,Fr||0,ai??Xi,function(Pa,Yl,Ya,xa){var hs=Ya=="ltr",gi=aa(Pa,hs?"left":"right"),Xo=aa(Yl-1,hs?"right":"left"),la=Fr==null&&Pa==0,fa=ai==null&&Yl==Xi,Is=xa==0,Kl=!ba||xa==ba.length-1;if(Xo.top-gi.top<=3){var Ro=(Ue?la:fa)&&Is,Pd=(Ue?fa:la)&&Kl,yl=Ro?_e:(hs?gi:Xo).left,PA=Pd?Ie:(hs?Xo:gi).right;ct(yl,gi.top,PA-yl,gi.bottom)}else{var Xc,vl,_l,df;hs?(Xc=Ue&&la&&Is?_e:gi.left,vl=Ue?Ie:Ca(Pa,Ya,"before"),_l=Ue?_e:Ca(Yl,Ya,"after"),df=Ue&&fa&&Kl?Ie:Xo.right):(Xc=Ue?Ca(Pa,Ya,"before"):_e,vl=!Ue&&la&&Is?Ie:gi.right,_l=!Ue&&fa&&Kl?_e:Xo.left,df=Ue?Ca(Yl,Ya,"after"):Ie),ct(Xc,gi.top,vl-Xc,gi.bottom),gi.bottom<Xo.top&&ct(_e,gi.bottom,null,Xo.top),ct(_l,Xo.top,df-_l,Xo.bottom)}(!ko||VA(gi,ko)<0)&&(ko=gi),VA(Xo,ko)<0&&(ko=Xo),(!qa||VA(gi,qa)<0)&&(qa=gi),VA(Xo,qa)<0&&(qa=Xo)}),{start:ko,end:qa}}var Ht=y.from(),Wt=y.to();if(Ht.line==Wt.line)xt(Ht.line,Ht.ch,Wt.ch);else{var xn=Dr(K,Ht.line),Pn=Dr(K,Wt.line),Yn=gr(xn)==gr(Pn),Xn=xt(Ht.line,Ht.ch,Yn?xn.text.length+1:null).end,_r=xt(Wt.line,Yn?0:null,Wt.ch).start;Yn&&(Xn.top<_r.top-2?(ct(Xn.right,Xn.top,null,Xn.bottom),ct(_e,_r.top,_r.left,_r.bottom)):ct(Xn.right,Xn.top,_r.left-Xn.right,Xn.bottom)),Xn.bottom<_r.top&&ct(_e,Xn.bottom,null,_r.top)}I.appendChild(H)}function bA(A){if(A.state.focused){var y=A.display;clearInterval(y.blinker);var I=!0;y.cursorDiv.style.visibility="",A.options.cursorBlinkRate>0?y.blinker=setInterval(function(){A.hasFocus()||Ho(A),y.cursorDiv.style.visibility=(I=!I)?"":"hidden"},A.options.cursorBlinkRate):A.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function HA(A){A.hasFocus()||(A.display.input.focus(),A.state.focused||Xd(A))}function Wc(A){A.state.delayingBlurEvent=!0,setTimeout(function(){A.state.delayingBlurEvent&&(A.state.delayingBlurEvent=!1,A.state.focused&&Ho(A))},100)}function Xd(A,y){A.state.delayingBlurEvent&&!A.state.draggingText&&(A.state.delayingBlurEvent=!1),A.options.readOnly!="nocursor"&&(A.state.focused||(Bt(A,"focus",A,y),A.state.focused=!0,De(A.display.wrapper,"CodeMirror-focused"),!A.curOp&&A.display.selForContextMenu!=A.doc.sel&&(A.display.input.reset(),b&&setTimeout(function(){return A.display.input.reset(!0)},20)),A.display.input.receivedFocus()),bA(A))}function Ho(A,y){A.state.delayingBlurEvent||(A.state.focused&&(Bt(A,"blur",A,y),A.state.focused=!1,fe(A.display.wrapper,"CodeMirror-focused")),clearInterval(A.display.blinker),setTimeout(function(){A.state.focused||(A.display.shift=!1)},150))}function Qc(A){for(var y=A.display,I=y.lineDiv.offsetTop,B=Math.max(0,y.scroller.getBoundingClientRect().top),K=y.lineDiv.getBoundingClientRect().top,H=0,ue=0;ue<y.view.length;ue++){var _e=y.view[ue],Ie=A.options.lineWrapping,Ue=void 0,ct=0;if(!_e.hidden){if(K+=_e.line.height,d&&g<8){var xt=_e.node.offsetTop+_e.node.offsetHeight;Ue=xt-I,I=xt}else{var Ht=_e.node.getBoundingClientRect();Ue=Ht.bottom-Ht.top,!Ie&&_e.text.firstChild&&(ct=_e.text.firstChild.getBoundingClientRect().right-Ht.left-1)}var Wt=_e.line.height-Ue;if((Wt>.005||Wt<-.005)&&(K<B&&(H-=Wt),ia(_e.line,Ue),ZA(_e.line),_e.rest))for(var xn=0;xn<_e.rest.length;xn++)ZA(_e.rest[xn]);if(ct>A.display.sizerWidth){var Pn=Math.ceil(ct/Gi(A.display));Pn>A.display.maxLineLength&&(A.display.maxLineLength=Pn,A.display.maxLine=_e.line,A.display.maxLineChanged=!0)}}}Math.abs(H)>2&&(y.scroller.scrollTop+=H)}function ZA(A){if(A.widgets)for(var y=0;y<A.widgets.length;++y){var I=A.widgets[y],B=I.node.parentNode;B&&(I.height=B.offsetHeight)}}function Fu(A,y,I){var B=I&&I.top!=null?Math.max(0,I.top):A.scroller.scrollTop;B=Math.floor(B-Uc(A));var K=I&&I.bottom!=null?I.bottom:B+A.wrapper.clientHeight,H=bt(y,B),ue=bt(y,K);if(I&&I.ensure){var _e=I.ensure.from.line,Ie=I.ensure.to.line;_e<H?(H=_e,ue=bt(y,Zi(Dr(y,_e))+A.wrapper.clientHeight)):Math.min(Ie,y.lastLine())>=ue&&(H=bt(y,Zi(Dr(y,Ie))-A.wrapper.clientHeight),ue=Ie)}return{from:H,to:Math.max(ue,H+1)}}function qc(A,y){if(!vt(A,"scrollCursorIntoView")){var I=A.display,B=I.sizer.getBoundingClientRect(),K=null,H=I.wrapper.ownerDocument;if(y.top+B.top<0?K=!0:y.bottom+B.top>(H.defaultView.innerHeight||H.documentElement.clientHeight)&&(K=!1),K!=null&&!q){var ue=pe("div","​",null,`position: absolute;
top: `+(y.top-I.viewOffset-Uc(A.display))+`px;
height: `+(y.bottom-y.top+iu(A)+I.barHeight)+`px;
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");A.display.lineSpace.appendChild(ue),ue.scrollIntoView(K),A.display.lineSpace.removeChild(ue)}}}function Jd(A,y,I,B){B==null&&(B=0);var K;!A.options.lineWrapping&&y==I&&(I=y.sticky=="before"?un(y.line,y.ch+1,"before"):y,y=y.ch?un(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y);for(var H=0;H<5;H++){var ue=!1,_e=sn(A,y),Ie=!I||I==y?_e:sn(A,I);K={left:Math.min(_e.left,Ie.left),top:Math.min(_e.top,Ie.top)-B,right:Math.max(_e.left,Ie.left),bottom:Math.max(_e.bottom,Ie.bottom)+B};var Ue=vc(A,K),ct=A.doc.scrollTop,xt=A.doc.scrollLeft;if(Ue.scrollTop!=null&&(Uu(A,Ue.scrollTop),Math.abs(A.doc.scrollTop-ct)>1&&(ue=!0)),Ue.scrollLeft!=null&&(Nl(A,Ue.scrollLeft),Math.abs(A.doc.scrollLeft-xt)>1&&(ue=!0)),!ue)break}return K}function Yc(A,y){var I=vc(A,y);I.scrollTop!=null&&Uu(A,I.scrollTop),I.scrollLeft!=null&&Nl(A,I.scrollLeft)}function vc(A,y){var I=A.display,B=kl(A.display);y.top<0&&(y.top=0);var K=A.curOp&&A.curOp.scrollTop!=null?A.curOp.scrollTop:I.scroller.scrollTop,H=WA(A),ue={};y.bottom-y.top>H&&(y.bottom=y.top+H);var _e=A.doc.height+Yd(I),Ie=y.top<B,Ue=y.bottom>_e-B;if(y.top<K)ue.scrollTop=Ie?0:y.top;else if(y.bottom>K+H){var ct=Math.min(y.top,(Ue?_e:y.bottom)-H);ct!=K&&(ue.scrollTop=ct)}var xt=A.options.fixedGutter?0:I.gutters.offsetWidth,Ht=A.curOp&&A.curOp.scrollLeft!=null?A.curOp.scrollLeft:I.scroller.scrollLeft-xt,Wt=Bl(A)-I.gutters.offsetWidth,xn=y.right-y.left>Wt;return xn&&(y.right=y.left+Wt),y.left<10?ue.scrollLeft=0:y.left<Ht?ue.scrollLeft=Math.max(0,y.left+xt-(xn?0:10)):y.right>Wt+Ht-3&&(ue.scrollLeft=y.right+(xn?0:10)-Wt),ue}function As(A,y){y!=null&&(pd(A),A.curOp.scrollTop=(A.curOp.scrollTop==null?A.doc.scrollTop:A.curOp.scrollTop)+y)}function zo(A){pd(A);var y=A.getCursor();A.curOp.scrollToPos={from:y,to:y,margin:A.options.cursorScrollMargin}}function cs(A,y,I){(y!=null||I!=null)&&pd(A),y!=null&&(A.curOp.scrollLeft=y),I!=null&&(A.curOp.scrollTop=I)}function Df(A,y){pd(A),A.curOp.scrollToPos=y}function pd(A){var y=A.curOp.scrollToPos;if(y){A.curOp.scrollToPos=null;var I=Ur(A,y.from),B=Ur(A,y.to);md(A,I,B,y.margin)}}function md(A,y,I,B){var K=vc(A,{left:Math.min(y.left,I.left),top:Math.min(y.top,I.top)-B,right:Math.max(y.right,I.right),bottom:Math.max(y.bottom,I.bottom)+B});cs(A,K.scrollLeft,K.scrollTop)}function Uu(A,y){Math.abs(A.doc.scrollTop-y)<2||(i||va(A,{top:y}),XA(A,y,!0),i&&va(A),yd(A,100))}function XA(A,y,I){y=Math.max(0,Math.min(A.display.scroller.scrollHeight-A.display.scroller.clientHeight,y)),!(A.display.scroller.scrollTop==y&&!I)&&(A.doc.scrollTop=y,A.display.scrollbars.setScrollTop(y),A.display.scroller.scrollTop!=y&&(A.display.scroller.scrollTop=y))}function Nl(A,y,I,B){y=Math.max(0,Math.min(y,A.display.scroller.scrollWidth-A.display.scroller.clientWidth)),!((I?y==A.doc.scrollLeft:Math.abs(A.doc.scrollLeft-y)<2)&&!B)&&(A.doc.scrollLeft=y,vd(A),A.display.scroller.scrollLeft!=y&&(A.display.scroller.scrollLeft=y),A.display.scrollbars.setScrollLeft(y))}function xA(A){var y=A.display,I=y.gutters.offsetWidth,B=Math.round(A.doc.height+Yd(A.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:A.options.fixedGutter?I:0,docHeight:B,scrollHeight:B+iu(A)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:I}}var dl=function(A,y,I){this.cm=I;var B=this.vert=pe("div",[pe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),K=this.horiz=pe("div",[pe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");B.tabIndex=K.tabIndex=-1,A(B),A(K),ze(B,"scroll",function(){B.clientHeight&&y(B.scrollTop,"vertical")}),ze(K,"scroll",function(){K.clientWidth&&y(K.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};dl.prototype.update=function(A){var y=A.scrollWidth>A.clientWidth+1,I=A.scrollHeight>A.clientHeight+1,B=A.nativeBarWidth;if(I){this.vert.style.display="block",this.vert.style.bottom=y?B+"px":"0";var K=A.viewHeight-(y?B:0);this.vert.firstChild.style.height=Math.max(0,A.scrollHeight-A.clientHeight+K)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=I?B+"px":"0",this.horiz.style.left=A.barLeft+"px";var H=A.viewWidth-A.barLeft-(I?B:0);this.horiz.firstChild.style.width=Math.max(0,A.scrollWidth-A.clientWidth+H)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&A.clientHeight>0&&(B==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:I?B:0,bottom:y?B:0}},dl.prototype.setScrollLeft=function(A){this.horiz.scrollLeft!=A&&(this.horiz.scrollLeft=A),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},dl.prototype.setScrollTop=function(A){this.vert.scrollTop!=A&&(this.vert.scrollTop=A),thi Line truncated
`},setDirection:Ss(function(A){A!="rtl"&&(A="ltr"),A!=this.direction&&(this.direction=A,this.iter(function(y){return y.order=null}),this.cm&&Qu(this.cm))})}),Vt.prototype.eachLine=Vt.prototype.iter;var vn=0;function _n(A){var y=this;if(Un(y),!(vt(y,A)||aA(y.display,A))){_t(A),d&&(vn=+new Date);var I=CA(y,A,!0),B=A.dataTransfer.files;if(!(!I||y.isReadOnly()))if(B&&B.length&&window.FileReader&&window.File)for(var K=B.length,H=Array(K),ue=0,_e=function(){++ue==K&&Ki(y,function(){I=ri(y.doc,I);var Wt={from:I,to:I,text:y.doc.splitLines(H.filter(function(xn){return xn!=null}).join(y.doc.lineSeparator())),origin:"paste"};T(y.doc,Wt),wu(y.doc,Ga(ri(y.doc,I),ri(y.doc,Ks(Wt))))})()},Ie=function(Wt,xn){if(y.options.allowDropFileTypes&&Je(y.options.allowDropFileTypes,Wt.type)==-1){_e();return}var Pn=new FileReader;Pn.onerror=function(){return _e()},Pn.onload=function(){var Yn=Pn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Yn)){_e();return}H[xn]=Yn,_e()},Pn.readAsText(Wt)},Ue=0;Ue<B.length;Ue++)Ie(B[Ue],Ue);else{if(y.state.draggingText&&y.doc.sel.contains(I)>-1){y.state.draggingText(A),setTimeout(function(){return y.display.input.focus()},20);return}try{var ct=A.dataTransfer.getData("Text");if(ct){var xt;if(y.state.draggingText&&!y.state.draggingText.copy&&(xt=y.listSelections()),Xs(y.doc,Ga(I,I)),xt)for(var Ht=0;Ht<xt.length;++Ht)j(y.doc,"",xt[Ht].anchor,xt[Ht].head,"drag");y.replaceSelection(ct,"around","paste"),y.display.input.focus()}}catch{}}}}function mn(A,y){if(d&&(!A.state.draggingText||+new Date-vn<100)){Ar(y);return}if(!(vt(A,y)||aA(A.display,y))&&(y.dataTransfer.setData("Text",A.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!U)){var I=pe("img",null,null,"position: fixed; left: 0; top: 0;");I.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",k&&(I.width=I.height=1,A.display.wrapper.appendChild(I),I._top=I.offsetTop),y.dataTransfer.setDragImage(I,0,0),k&&I.parentNode.removeChild(I)}}function Bn(A,y){var I=CA(A,y);if(I){var B=document.createDocumentFragment();yc(A,I,B),A.display.dragCursor||(A.display.dragCursor=pe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),A.display.lineSpace.insertBefore(A.display.dragCursor,A.display.cursorDiv)),Pe(A.display.dragCursor,B)}}function Un(A){A.display.dragCursor&&(A.display.lineSpace.removeChild(A.display.dragCursor),A.display.dragCursor=null)}function wn(A){if(document.getElementsByClassName){for(var y=document.getElementsByClassName("CodeMirror"),I=[],B=0;B<y.length;B++){var K=y[B].CodeMirror;K&&I.push(K)}I.length&&I[0].operation(function(){for(var H=0;H<I.length;H++)A(I[H])})}}var kr=!1;function Bi(){kr||($i(),kr=!0)}function $i(){var A;ze(window,"resize",function(){A==null&&(A=setTimeout(function(){A=null,wn(Oo)},100))}),ze(window,"blur",function(){return wn(Ho)})}function Oo(A){var y=A.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,A.setSize()}for(var Si={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"},jo=0;jo<10;jo++)Si[jo+48]=Si[jo+96]=String(jo);for(var No=65;No<=90;No++)Si[No]=String.fromCharCode(No);for(var xo=1;xo<=12;xo++)Si[xo+111]=Si[xo+63235]="F"+xo;var yo={};yo.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"},yo.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"},yo.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":"delWordBefore","Ctrl-KLine truncated
`,"start")},toggleOverwrite:function(A){return A.toggleOverwrite()}};function sa(A,y){var I=Dr(A.doc,y),B=gr(I);return B!=I&&(y=Qe(B)),Vu(!0,A,B,y,1)}function Pl(A,y){var I=Dr(A.doc,y),B=Ir(I);return B!=I&&(y=Qe(B)),Vu(!0,A,I,y,-1)}function bs(A,y){var I=sa(A,y.line),B=Dr(A.doc,I.line),K=ve(B,A.doc.direction);if(!K||K[0].level==0){var H=Math.max(I.ch,B.text.search(/\S/)),ue=y.line==I.line&&y.ch<=H&&y.ch;return un(I.line,ue?0:H,I.sticky)}return I}function Qs(A,y,I){if(typeof y=="string"&&(y=ml[y],!y))return!1;A.display.input.ensurePolled();var B=A.display.shift,K=!1;try{A.isReadOnly()&&(A.state.suppressEdits=!0),I&&(A.display.shift=!1),K=y(A)!=dt}finally{A.display.shift=B,A.state.suppressEdits=!1}return K}function nl(A,y,I){for(var B=0;B<A.state.keyMaps.length;B++){var K=ds(y,A.state.keyMaps[B],I,A);if(K)return K}return A.options.extraKeys&&ds(y,A.options.extraKeys,I,A)||ds(y,A.options.keyMap,I,A)}var rl=new Se;function Md(A,y,I,B){var K=A.state.keySeq;if(K){if(Wa(y))return"handled";if(/\'$/.test(y)?A.state.keySeq=null:rl.set(50,function(){A.state.keySeq==K&&(A.state.keySeq=null,A.display.input.reset())}),Bh(A,K+" "+y,I,B))return!0}return Bh(A,y,I,B)}function Bh(A,y,I,B){var K=nl(A,y,B);return K=="multi"&&(A.state.keySeq=y),K=="handled"&&Zs(A,"keyHandled",A,y,I),(K=="handled"||K=="multi")&&(_t(I),bA(A)),!!K}function Oh(A,y){var I=fl(y,!0);return I?y.shiftKey&&!A.state.keySeq?Md(A,"Shift-"+I,y,function(B){return Qs(A,B,!0)})||Md(A,I,y,function(B){if(typeof B=="string"?/^go[A-Z]/.test(B):B.motion)return Qs(A,B)}):Md(A,I,y,function(B){return Qs(A,B)}):!1}function Sd(A,y,I){return Md(A,"'"+I+"'",y,function(B){return Qs(A,B,!0)})}var ic=null;function Ih(A){var y=this;if(!(A.target&&A.target!=y.display.input.getField())&&(y.curOp.focus=ht(Ct(y)),!vt(y,A))){d&&g<11&&A.keyCode==27&&(A.returnValue=!1);var I=A.keyCode;y.display.shift=I==16||A.shiftKey;var B=Oh(y,A);k&&(ic=B?I:null,!B&&I==88&&!Sa&&(Y?A.metaKey:A.ctrlKey)&&y.replaceSelection("",null,"cut")),i&&!Y&&!B&&I==46&&A.shiftKey&&!A.ctrlKey&&document.execCommand&&document.execCommand("cut"),I==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&Ta(y)}}function Ta(A){var y=A.display.lineDiv;De(y,"CodeMirror-crosshair");function I(B){(B.keyCode==18||!B.altKey)&&(fe(y,"CodeMirror-crosshair"),pt(document,"keyup",I),pt(document,"mouseover",I))}ze(document,"keyup",I),ze(document,"mouseover",I)}function Au(A){A.keyCode==16&&(this.doc.sel.shift=!1),vt(this,A)}function Ed(A){var y=this;if(!(A.target&&A.target!=y.display.input.getField())&&!(aA(y.display,A)||vt(y,A)||A.ctrlKey&&!A.altKey||Y&&A.metaKey)){var I=A.keyCode,B=A.charCode;if(k&&I==ic){ic=null,_t(A);return}if(!(k&&(!A.which||A.which<10)&&Oh(y,A))){var K=String.fromCharCode(B??I);K!="\b"&&(Sd(y,A,K)||y.display.input.onKeyPress(A))}}}var _p=400,Ec=function(A,y,I){this.time=A,this.pos=y,this.button=I};Ec.prototype.compare=function(A,y,I){return this.time+_p>A&&er(y,this.pos)==0&&I==this.button};var kA,Qa;function Cp(A,y){var I=+new Date;return Qa&&Qa.compare(I,A,y)?(kA=Qa=null,"triple"):kA&&kA.compare(I,A,y)?(Qa=new Ec(I,A,y),kA=null,"double"):(kA=new Ec(I,A,y),Qa=null,"single")}function kh(A){var y=this,I=y.display;if(!(vt(y,A)||I.activeTouch&&I.input.supportsTouch())){if(I.input.ensurePolled(),I.shift=A.shiftKey,aA(I,A)){b||(I.scroller.draggable=!1,setTimeout(function(){return I.scroller.draggable=!0},100));return}if(!sh(y,A)){var B=CA(y,A),K=rn(A),H=B?Cp(B,K):"single";Lt(y).focus(),K==1&&y.state.selectingText&&y.state.selectingText(A),!(B&&bp(y,K,B,H,A))&&(K==1?B?Bc(y,B,H,A):wr(A)==I.scroller&&_t(A):K==2?(B&&wc(y.doc,B),setTimeout(function(){return I.input.focus()},20)):K==3&&(de?y.display.input.onContextMenu(A):Wc(y)))}}}function bp(A,y,I,B,K){var H="Click";return B=="double"?H="Double"+H:B=="triple"&&(H="Triple"+H),H=(y==1?"Left":y==2?"Middle":"Right")+H,Md(A,$u(H,K),K,function(ue){if(typeof ue=="string"&&(ue=ml[ue]),!ue)return!1;var _e=!1;try{A.isReadOnly()&&(A.state.suppressEdits=!0),_e=ue(A,I)!=dt}finally{A.state.suppressEdits=!1}return _e})}function oh(A,y,I){var B=A.getOption("configureMouse"),K=B?B(A,y,I):{};if(K.unit==null){var H=J?I.shiftKey&&I.metaKey:I.altKey;K.unit=H?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(K.extend==null||A.doc.extend)&&(K.extend=A.doc.extend||I.shiftKey),K.addNew==null&&(K.addNew=Y?I.metaKey:I.ctrlKey),K.moveOnDrag==null&&(K.moveOnDrag=!(Y?I.altKey:I.ctrlKey)),K}function Bc(A,y,I,B){d?setTimeout(Kt(HA,A),0):A.curOp.focus=ht(Ct(A));var K=oh(A,I,B),H=A.doc.sel,ue;A.options.dragDrop&&Fn&&!A.isReadOnly()&&I=="single"&&(ue=H.contains(y))>-1&&(er((ue=H.ranges[ue]).from(),y)<0||y.xRel>0)&&(er(ue.to(),y)>0||y.xRel<0)?um(A,B,y,K):Th(A,B,y,K)}function um(A,y,I,B){var K=A.display,H=!1,ue=Ki(A,function(Ue){b&&(K.scroller.draggable=!1),A.state.draggingText=!1,A.state.delayingBlurEvent&&(A.hasFocus()?A.state.delayingBlurEvent=!1:Wc(A)),pt(K.wrapper.ownerDocument,"mouseup",ue),pt(K.wrapper.ownerDocument,"mousemove",_e),pt(K.scroller,"dragstart",Ie),pt(K.scrol Line truncated
`)==y){if(B.ranges.length%TA.text.length==0){Ue=[];for(var ct=0;ct<TA.text.length;ct++)Ue.push(H.splitLines(TA.text[ct]))}}else Ie.length==B.ranges.length&&A.options.pasteLinesPerSelection&&(Ue=Jn(Ie,function(Xn){return[Xn]}));for(var xt=A.curOp.updateInput,Ht=B.ranges.length-1;Ht>=0;Ht--){var Wt=B.ranges[Ht],xn=Wt.from(),Pn=Wt.to();Wt.empty()&&(I&&I>0?xn=un(xn.line,xn.ch-I):A.state.overwrite&&!_e?Pn=un(Pn.line,Math.min(Dr(H,Pn.line).text.length,Pn.ch+sr(Ie).length)):_e&&TA&&TA.lineWise&&TA.text.join(`
`)==Ie.join(`
`)&&(xn=Pn=un(xn.line,0)));var Yn={from:xn,to:Pn,text:Ue?Ue[Ht%Ue.length]:Ie,origin:K||(_e?"paste":A.state.cutIncoming>ue?"cut":"+input")};T(A.doc,Yn),Zs(A,"inputRead",A,Yn)}y&&!_e&&uf(A,y),zo(A),A.curOp.updateInput<2&&(A.curOp.updateInput=xt),A.curOp.typing=!0,A.state.pasteIncoming=A.state.cutIncoming=-1}function Oc(A,y){var I=A.clipboardData&&A.clipboardData.getData("Text");if(I)return A.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&y.hasFocus()&&Bo(y,function(){return Mp(y,I,0,null,"paste")}),!0}function uf(A,y){if(!(!A.options.electricChars||!A.options.smartIndent))for(var I=A.doc.sel,B=I.ranges.length-1;B>=0;B--){var K=I.ranges[B];if(!(K.head.ch>100||B&&I.ranges[B-1].head.line==K.head.line)){var H=A.getModeAt(K.head),ue=!1;if(H.electricChars){for(var _e=0;_e<H.electricChars.length;_e++)if(y.indexOf(H.electricChars.charAt(_e))>-1){ue=Id(A,K.head.line,"smart");break}}else H.electricInput&&H.electricInput.test(Dr(A.doc,K.head.line).text.slice(0,K.head.ch))&&(ue=Id(A,K.head.line,"smart"));ue&&Zs(A,"electricInput",A,K.head.line)}}}function Af(A){for(var y=[],I=[],B=0;B<A.doc.sel.ranges.length;B++){var K=A.doc.sel.ranges[B].head.line,H={anchor:un(K,0),head:un(K+1,0)};I.push(H),y.push(A.getRange(H.anchor,H.head))}return{text:y,ranges:I}}function ah(A,y,I,B){A.setAttribute("autocorrect",I?"on":"off"),A.setAttribute("autocapitalize",B?"on":"off"),A.setAttribute("spellcheck",!!y)}function kd(){var A=pe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),y=pe("div",[A],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return b?A.style.width="1000px":A.setAttribute("wrap","off"),Q&&(A.style.border="1px solid black"),y}function Hc(A){var y=A.optionHandlers,I=A.helpers={};A.prototype={constructor:A,focus:function(){Lt(this).focus(),this.display.input.focus()},setOption:function(B,K){var H=this.options,ue=H[B];H[B]==K&&B!="mode"||(H[B]=K,y.hasOwnProperty(B)&&Ki(this,y[B])(this,K,ue),Bt(this,"optionChange",this,B))},getOption:function(B){return this.options[B]},getDoc:function(){return this.doc},addKeyMap:function(B,K){this.state.keyMaps[K?"push":"unshift"](pl(B))},removeKeyMap:function(B){for(var K=this.state.keyMaps,H=0;H<K.length;++H)if(K[H]==B||K[H].name==B)return K.splice(H,1),!0},addOverlay:$r(function(B,K){var H=B.token?B:A.getMode(this.options,B);if(H.startState)throw new Error("Overlays may not be stateful.");mr(this.state.overlays,{mode:H,modeSpec:B,opaque:K&&K.opaque,priority:K&&K.priority||0},function(ue){return ue.priority}),this.state.modeGen++,Tl(this)}),removeOverlay:$r(function(B){for(var K=this.state.overlays,H=0;H<K.length;++H){var ue=K[H].modeSpec;if(ue==B||typeof B=="string"&&ue.name==B){K.splice(H,1),this.state.modeGen++,Tl(this);return}}}),indentLine:$r(function(B,K,H){typeof K!="string"&&typeof K!="number"&&(K==null?K=this.options.smartIndent?"smart":"prev":K=K?"add":"subtract"),fn(this.doc,B)&&Id(this,B,K,H)}),indentSelection:$r(function(B){for(var K=this.doc.sel.ranges,H=-1,ue=0;ue<K.length;ue++){var _e=K[ue];if(_e.empty())_e.head.line>H&&(Id(this,_e.head.line,B,!0),H=_e.head.line,ue==this.doc.sel.primIndex&&zo(this));else{var Ie=_e.from(),Ue=_e.to(),ct=Math.max(H,Ie.line);H=Math.min(this.lastLine(),Ue.line-(Ue.ch?0:1))+1;for(var xt=ct;xt<H;++xt)Id(this,xt,B);var Ht=this.doc.sel.ranges;Ie.ch==0&&K.length==Ht.length&&Ht[ue].from().ch>0&&hl(this.doc,ue,new bo(Ie,Ht[ue].to()),Ut)}}}),getTokenAt:function(B,K){return Ns(this,B,K)},getLineTokens:function(B,K){return Ns(this,un(B),K,!0)},getTokenTypeAt:function(B){B=ri(this.doc,B);var K=ls(this,Dr(this.doc,B.line)),H=0,ue=(K.length-1)/2,_e=B.ch,Ie;if(_e==0)Ie=K[2];else for(;;){var Ue=H+ue>>1;if((Ue?K[Ue*2-1]:0)>=_e)ue=Ue;else if(K[Ue*2+1]<_e)H=Ue+1;else{Ie=K[Ue*2+2];break}}var ct=Ie?Ie.indexOf("overlay "):-1;return ct<0?Ie:ct==0?null:Ie.slice(0,ct-1)},getModeAt:function(B){var K=this.doc.mode;return K.innerMode?A.innerMode(K,this.getTokenAt(B).state).mode:K},getHelper:function(B,K){return this.getHelpers(B,K)[0]},getHelpers:function(B,K){var H=[];if(!I.hasOwnProperty(K))return H;var ue=I[K],_e=this.getModeAt(B);if(typeof _e[K]=="string")ue[_e[K]]&&H.push(ue[_e[K]]);else if(_e[K])for(var Ie=0;Ie<_e[K].length;Ie++){var Ue=ue[_e[K][Ie]];Ue&&H.push(Ue)}else _e.helperType&&ue[_e.helperType]?H.push(ue[_e.helperType]):ue[_e.name]&&H.push(ue[_e.name]);for(var ct=0;ct<ue._global.length;ct++){var xt=ue._global[ct];xt.pred(_e,this)&&Je(H,xt.val)==-1&&H.push(xt.val)}return H},getStateAfter:function(B,K){var H=this.doc;return B=vA(H,B??H.first+H.size-1),Lr(this,B+1,K).state},cursorCoords:function(B,K){var H,ue=this.doc.sel.primary();return B==null?H=ue.head:typeof B=="object"?H=ri(this.doc,B):H=B?ue.from():ue.to(),sn(this,H,K||"page")},charCoords:function(B,K){return kn(this,ri(this.doc,B),K||"page")},coordsChar:function(B,K){return B=$t(this,B,K||"page"),Co(this,B.left,B.top)},lineAtHeight:function(B,K){return B=$t(this,{top:B,left:0},K||"page").top,bt(t Line truncated
`,Yn=Ge(Pn,Wt)?"w":Ht&&Pn==`
`?"n":!Ht||/\s/.test(Pn)?null:"p";if(Ht&&!xn&&!Yn&&(Yn="s"),xt&&xt!=Yn){I<0&&(I=1,ct(),y.sticky="after");break}if(Yn&&(xt=Yn),I>0&&!ct(!xn))break}var Xn=Sc(A,y,H,ue,!0);return Pi(H,Xn)&&(Xn.hitSide=!0),Xn}function Zc(A,y,I,B){var K=A.doc,H=y.left,ue;if(B=="page"){var _e=Math.min(A.display.wrapper.clientHeight,Lt(A).innerHeight||K(A).documentElement.clientHeight),Ie=Math.max(_e-.5*kl(A.display),3);ue=(I>0?y.bottom:y.top)+I*Ie}else B=="line"&&(ue=I>0?y.bottom+3:y.top-3);for(var Ue;Ue=Co(A,H,ue),!!Ue.outside;){if(I<0?ue<=0:ue>=K.height){Ue.hitSide=!0;break}ue+=I*5}return Ue}var is=function(A){this.cm=A,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Se,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};is.prototype.init=function(A){var y=this,I=this,B=I.cm,K=I.div=A.lineDiv;K.contentEditable=!0,ah(K,B.options.spellcheck,B.options.autocorrect,B.options.autocapitalize);function H(_e){for(var Ie=_e.target;Ie;Ie=Ie.parentNode){if(Ie==K)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ie.className))break}return!1}ze(K,"paste",function(_e){!H(_e)||vt(B,_e)||Oc(_e,B)||g<=11&&setTimeout(Ki(B,function(){return y.updateFromDOM()}),20)}),ze(K,"compositionstart",function(_e){y.composing={data:_e.data,done:!1}}),ze(K,"compositionupdate",function(_e){y.composing||(y.composing={data:_e.data,done:!1})}),ze(K,"compositionend",function(_e){y.composing&&(_e.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),ze(K,"touchstart",function(){return I.forceCompositionEnd()}),ze(K,"input",function(){y.composing||y.readFromDOMSoon()});function ue(_e){if(!(!H(_e)||vt(B,_e))){if(B.somethingSelected())Ph({lineWise:!1,text:B.getSelections()}),_e.type=="cut"&&B.replaceSelection("",null,"cut");else if(B.options.lineWiseCopyCut){var Ie=Af(B);Ph({lineWise:!0,text:Ie.text}),_e.type=="cut"&&B.operation(function(){B.setSelections(Ie.ranges,0,Ut),B.replaceSelection("",null,"cut")})}else return;if(_e.clipboardData){_e.clipboardData.clearData();var Ue=TA.text.join(`
`);if(_e.clipboardData.setData("Text",Ue),_e.clipboardData.getData("Text")==Ue){_e.preventDefault();return}}var ct=kd(),xt=ct.firstChild;ah(xt),B.display.lineSpace.insertBefore(ct,B.display.lineSpace.firstChild),xt.value=TA.text.join(`
`);var Ht=ht(ft(K));at(xt),setTimeout(function(){B.display.lineSpace.removeChild(ct),Ht.focus(),Ht==K&&I.showPrimarySelection()},50)}}ze(K,"copy",ue),ze(K,"cut",ue)},is.prototype.screenReaderLabelChanged=function(A){A?this.div.setAttribute("aria-label",A):this.div.removeAttribute("aria-label")},is.prototype.prepareSelection=function(){var A=fd(this.cm,!1);return A.focus=ht(ft(this.div))==this.div,A},is.prototype.showSelection=function(A,y){!A||!this.cm.display.view.length||((A.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(A))},is.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},is.prototype.showPrimarySelection=function(){var A=this.getSelection(),y=this.cm,I=y.doc.sel.primary(),B=I.from(),K=I.to();if(y.display.viewTo==y.display.viewFrom||B.line>=y.display.viewTo||K.line<y.display.viewFrom){A.removeAllRanges();return}var H=gl(y,A.anchorNode,A.anchorOffset),ue=gl(y,A.focusNode,A.focusOffset);if(!(H&&!H.bad&&ue&&!ue.bad&&er(js(H,ue),B)==0&&er(vs(H,ue),K)==0)){var _e=y.display.view,Ie=B.line>=y.display.viewFrom&&Td(y,B)||{node:_e[0].measure.map[2],offset:0},Ue=K.line<y.display.viewTo&&Td(y,K);if(!Ue){var ct=_e[_e.length-1].measure,xt=ct.maps?ct.maps[ct.maps.length-1]:ct.map;Ue={node:xt[xt.length-1],offset:xt[xt.length-2]-xt[xt.length-3]}}if(!Ie||!Ue){A.removeAllRanges();return}var Ht=A.rangeCount&&A.getRangeAt(0),Wt;try{Wt=We(Ie.node,Ie.offset,Ue.offset,Ue.node)}catch{}Wt&&(!i&&y.state.focused?(A.collapse(Ie.node,Ie.offset),Wt.collapsed||(A.removeAllRanges(),A.addRange(Wt))):(A.removeAllRanges(),A.addRange(Wt)),Ht&&A.anchorNode==null?A.addRange(Ht):i&&this.startGracePeriod()),this.rememberSelection()}},is.prototype.startGracePeriod=function(){var A=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){A.gracePeriod=!1,A.selectionChanged()&&A.cm.operation(function(){return A.cm.curOp.selectionChanged=!0})},20)},is.prototype.showMultipleSelections=function(A){Pe(this.cm.display.cursorDiv,A.cursors),Pe(this.cm.display.selectionDiv,A.selection)},is.prototype.rememberSelection=function(){var A=this.getSelection();this.lastAnchorNode=A.anchorNode,this.lastAnchorOffset=A.anchorOffset,this.lastFocusNode=A.focusNode,this.lastFocusOffset=A.focusOffset},is.prototype.selectionInEditor=function(){var A=this.getSelection();if(!A.rangeCount)return!1;var y=A.getRangeAt(0).commonAncestorContainer;return $e(this.div,y)},is.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ht(ft(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},is.prototype.blur=function(){this.div.blur()},is.prototype.getField=function(){return this.div},is.prototype.supportsTouch=function(){return!0},is.prototype.receivedFocus=function(){var A=this,y=this;this.selectionInEditor()?setTimeout(function(){return A.pollSelection()},20):Bo(this.cm,function(){return y.cm.curOp.selectionChanged=!0});function I(){y.cm.state.focused&&(y.pollSelection(),y.polling.set(y.cm.options.pollInterval,I))}this.polling.set(this.cm.options.pollInterval,I)},is.prototype.selectionChanged=function(){var A=this.getSelection();return A.anchorNode!=this.lastAnchorNode||A.anchorOffset!=this.lastAnchorOffset||A.focusNode!=this.lastFocusNode||A.focusOffset!=this.lastFocusOffset},is.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var A=this.getSelection(),y=this.cm;if(re&&S&&this.cm.display.gutterSpecs.length&&Sp(A.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var I=gl(y,A.anchorNode,A.anchorOffset),B=gl(y,A.focusNode,A.focusOffset);I&&B&&Bo(y,function(){_a(y.doc,Ga(I,B),Ut),(I.bad||B.bad)&&(y.curOp.selectionChanged=!0)})}}},is.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var A=this.cm,y=A.display,I=A.doc.sel.primary(),B=I.from(),K=I.to();if(B.ch==0&&B.line>A.firstLine()&&(B=un(B.line-1,Dr(A.doc,B.line-1).length)),K.ch==Dr(A.doc,K.line).text.length&&K.line<A.lastLine()&&(K=un(K.line+1,0)),B.line<y.viewFrom||K.line>y.viewTo-1)return!1;var H,ue,_e;B.line==y.viewFrom||(H=lA(A,B.line))==0?(ue=Qe(y.view[0].line),_e=y.view[0].node):(ue=Qe(y.view[H].line),_e=y.view[H-1].node.nextSibling);var Ie=lA(A,K.line),Ue,ct;if(Ie==y.view.length-1?(Ue=y.viewTo-1,ct=y.lineDiv.lastChild):(Ue=Qe(y.view[Ie+1].line)-1,ct=y.view[Ie+1].node.previousSibling),!_e)return!1;for(var xt=A.doc.splitLines(Ym(A,_e,ct,ue,Ue)),Ht=Za(A.doc,un(ue,0),un(Ue,Dr(A.doc,Ue).text.length));xt.length>1&&Ht.length>1;)if(sr(xt)==sr(Ht))xt.pop(),Ht.pop(),Ue--;else if(xt[0]==Ht[0])xt.shift(),Ht.shift(),ue++;else break;for(var Wt=0,xn=0,Pn=xt[0],Yn=Ht[0],Xn=Math.min(Pn.length,Yn.length);Wt<Xn&&Pn.charCodeAt(Wt)==Yn.charCodeAt(Wt);)++Wt;for(var _r=sr(xt),ur=sr(Ht),Fr=Math.min(_r.length-(xt.length==1?Wt:0),ur.length-(Ht. Line truncated
`),at(K))}else return;ue.type=="cut"&&(B.state.cutIncoming=+new Date)}}ze(K,"cut",H),ze(K,"copy",H),ze(A.scroller,"paste",function(ue){if(!(aA(A,ue)||vt(B,ue))){if(!K.dispatchEvent){B.state.pasteIncoming=+new Date,I.focus();return}var _e=new Event("paste");_e.clipboardData=ue.clipboardData,K.dispatchEvent(_e)}}),ze(A.lineSpace,"selectstart",function(ue){aA(A,ue)||_t(ue)}),ze(K,"compositionstart",function(){var ue=B.getCursor("from");I.composing&&I.composing.range.clear(),I.composing={start:ue,range:B.markText(ue,B.getCursor("to"),{className:"CodeMirror-composing"})}}),ze(K,"compositionend",function(){I.composing&&(I.poll(),I.composing.range.clear(),I.composing=null)})},ha.prototype.createField=function(A){this.wrapper=kd(),this.textarea=this.wrapper.firstChild;var y=this.cm.options;ah(this.textarea,y.spellcheck,y.autocorrect,y.autocapitalize)},ha.prototype.screenReaderLabelChanged=function(A){A?this.textarea.setAttribute("aria-label",A):this.textarea.removeAttribute("aria-label")},ha.prototype.prepareSelection=function(){var A=this.cm,y=A.display,I=A.doc,B=fd(A);if(A.options.moveInputWithCursor){var K=sn(A,I.sel.primary().head,"div"),H=y.wrapper.getBoundingClientRect(),ue=y.lineDiv.getBoundingClientRect();B.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,K.top+ue.top-H.top)),B.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,K.left+ue.left-H.left))}return B},ha.prototype.showSelection=function(A){var y=this.cm,I=y.display;Pe(I.cursorDiv,A.cursors),Pe(I.selectionDiv,A.selection),A.teTop!=null&&(this.wrapper.style.top=A.teTop+"px",this.wrapper.style.left=A.teLeft+"px")},ha.prototype.reset=function(A){if(!(this.contextMenuPending||this.composing&&A)){var y=this.cm;if(this.resetting=!0,y.somethingSelected()){this.prevInput="";var I=y.getSelection();this.textarea.value=I,y.state.focused&&at(this.textarea),d&&g>=9&&(this.hasSelection=I)}else A||(this.prevInput=this.textarea.value="",d&&g>=9&&(this.hasSelection=null));this.resetting=!1}},ha.prototype.getField=function(){return this.textarea},ha.prototype.supportsTouch=function(){return!1},ha.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!X||ht(ft(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},ha.prototype.blur=function(){this.textarea.blur()},ha.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ha.prototype.receivedFocus=function(){this.slowPoll()},ha.prototype.slowPoll=function(){var A=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){A.poll(),A.cm.state.focused&&A.slowPoll()})},ha.prototype.fastPoll=function(){var A=!1,y=this;y.pollingFast=!0;function I(){var B=y.poll();!B&&!A?(A=!0,y.polling.set(60,I)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,I)},ha.prototype.poll=function(){var A=this,y=this.cm,I=this.textarea,B=this.prevInput;if(this.contextMenuPending||this.resetting||!y.state.focused||co(I)&&!B&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var K=I.value;if(K==B&&!y.somethingSelected())return!1;if(d&&g>=9&&this.hasSelection===K||Y&&/[\uf700-\uf7ff]/.test(K))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var H=K.charCodeAt(0);if(H==8203&&!B&&(B="​"),H==8666)return this.reset(),this.cm.execCommand("undo")}for(var ue=0,_e=Math.min(B.length,K.length);ue<_e&&B.charCodeAt(ue)==K.charCodeAt(ue);)++ue;return Bo(y,function(){Mp(y,K.slice(ue),B.length-ue,null,A.composing?"*compose":null),K.length>1e3||K.indexOf(`
`)>-1?I.value=A.prevInput="":A.prevInput=K,A.composing&&(A.composing.range.clear(),A.composing.range=y.markText(A.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ha.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ha.prototype.onKeyPress=function(){d&&g>=9&&(this.hasSelection=null),this.fastPoll()},ha.prototype.onContextMenu=function(A){var y=this,I=y.cm,B=I.display,K=y.textarea;y.contextMenuPending&&y.contextMenuPending();var H=CA(I,A),ue=B.scroller.scrollTop;if(!H||k)return;var _e=I.options.resetSelectionOnContextMenu;_e&&I.doc.sel.contains(H)==-1&&Ki(I,_a)(I.doc,Ga(H),Ut);var Ie=K.style.cssText,Ue=y.wrapper.style.cssText,ct=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",K.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(A.clientY-ct.top-5)+"px; left: "+(A.clientX-ct.left-5)+`px;
z-index: 1000; background: `+(d?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var xt;b&&(xt=K.ownerDocument.defaultView.scrollY),B.input.focus(),b&&K.ownerDocument.defaultView.scrollTo(null,xt),B.input.reset(),I.somethingSelected()||(K.value=y.prevInput=" "),y.contextMenuPending=Wt,B.selForContextMenu=I.doc.sel,clearTimeout(B.detectingSelectAll);function Ht(){if(K.selectionStart!=null){var Pn=I.somethingSelected(),Yn="​"+(Pn?K.value:"");K.value="⇚",K.value=Yn,y.prevInput=Pn?"":"​",K.selectionStart=1,K.selectionEnd=Yn.length,B.selForContextMenu=I.doc.sel}}function Wt(){if(y.contextMenuPending==Wt&&(y.contextMenuPending=!1,y.wrapper.style.cssText=Ue,K.style.cssText=Ie,d&&g<9&&B.scrollbars.setScrollTop(B.scroller.scrollTop=ue),K.selectionStart!=null)){(!d||d&&g<9)&&Ht();var Pn=0,Yn=function(){B.selForContextMenu==I.doc.sel&&K.selectionStart==0&&K.selectionEnd>0&&y.prevInput=="​"?Ki(I,Ql)(I):Pn++<10?B.detectingSelectAll=setTimeout(Yn,500):(B.selForContextMenu=null,B.input.reset())};B.detectingSelectAll=setTimeout(Yn,200)}}if(d&&g>=9&&Ht(),de){Ar(A);var xn=function(){pt(window,"mouseup",xn),setTimeout(Wt,20)};ze(window,"mouseup",xn)}else setTimeout(Wt,50)},ha.prototype.readOnlyChanged=function(A){A||this.reset(),this.textarea.disabled=A=="nocursor",this.textarea.readOnly=!!A},ha.prototype.setUneditable=function(){},ha.prototype.needsContentAttribute=!1;function dm(A,y){if(y=y?Fe(y):{},y.value=A.value,!y.tabindex&&A.tabIndex&&(y.tabindex=A.tabIndex),!y.placeholder&&A.placeholder&&(y.placeholder=A.placeholder),y.autofocus==null){var I=ht(ft(A));y.autofocus=I==A||A.getAttribute("autofocus")!=null&&I==document.body}function B(){A.value=_e.getValue()}var K;if(A.form&&(ze(A.form,"submit",B),!y.leaveSubmitMethodAlone)){var H=A.form;K=H.submit;try{var ue=H.submit=function(){B(),H.submit=K,H.submit(),H.submit=ue}}catch{}}y.finishInit=function(Ie){Ie.save=B,Ie.getTextArea=function(){return A},Ie.toTextArea=function(){Ie.toTextArea=isNaN,B(),A.parentNode.removeChild(Ie.getWrapperElement()),A.style.display="",A.form&&(pt(A.form,"submit",B),!y.leaveSubmitMethodAlone&&typeof A.form.submit=="function"&&(A.form.submit=K))}},A.style.display="none";var _e=Io(function(Ie){return A.parentNode.insertBefore(Ie,A.nextSibling)},y);return _e}function cf(A){A.off=pt,A.on=ze,A.wheelEventPixels=AA,A.Doc=Vt,A.splitLines=ir,A.countColumn=Te,A.findColumn=yn,A.isWordChar=Er,A.Pass=dt,A.signal=Bt,A.Line=za,A.changeEnd=Ks,A.scrollbarModel=ju,A.Pos=un,A.cmpPos=er,A.modes=oo,A.mimeModes=Mo,A.resolveMode=Ea,A.getMode=ns,A.modeExtensions=Aa,A.extendMode=Al,A.copyState=ao,A.startState=tu,A.innerMode=Pu,A.commands=ml,A.keyMap=yo,A.keyName=fl,A.isModifierKey=Wa,A.lookupKey=ds,A.normalizeKeyMap=Go,A.StringStream=so,A.SharedTextMarker=St,A.TextMarker=At,A.LineWidget=qe,A.e_preventDefault=_t,A.e_stopPropagation=Tn,A.e_stop=Ar,A.addClass=De,A.contains=$e,A.rmClass=fe,A.keyNames=Si}Rl(Io),Hc(Io);var il="iter insert remove copy getEditor constructor".split(" ");for(var Ep in Vt.prototype)Vt.prototype.hasOwnProperty(Ep)&&Je(il,Ep)<0&&(Io.prototype[Ep]=function(A){return function(){return A.apply(this.doc,arguments)}}(Vt.prototype[Ep]));return zt(Vt),Io.inputStyles={textarea:ha,contenteditable:is},Io.defineMode=function(A){!Io.defaults.mode&&A!="null"&&(Io.defaults.mode=A),Ti.apply(this,arguments)},Io.defineMIME=Ua,Io.defineMode("null",function(){return{token:function(A){return A.skipToEnd()}}}),Io.defineMIME("text/plain","null"),Io.defineExtension=function(A,y){Io.prototype[A]=y},Io.defineDocExtension=function(A,y){Vt.prototype[A]=y},Io.fromTextArea=dm,cf(Io),Io.version="5.65.16",Io})}(Ob)),Ob.exports}var yle=Vx();const Wh=La(yle);var c9={exports:{}},d9;function vle(){return d9||(d9=1,function(n,e){(function(t){t(Vx())})(function(t){t.defineMode("javascript",function(r,i){var s=r.indentUnit,a=i.statementIndent,o=i.jsonld,d=i.json||o,g=i.trackScope!==!1,b=i.typescript,E=i.wordCharacters||/[\w$\xa1-\uffff]/,S=function(){function Qe(ho){return{type:ho,style:"keyword"}}var bt=Qe("keyword a"),fn=Qe("keyword b"),Nn=Qe("keyword c"),un=Qe("keyword d"),er=Qe("operator"),Pi={type:"atom",style:"atom"};return{if:Qe("if"),while:bt,with:bt,else:fn,do:fn,try:fn,finally:fn,return:un,break:un,continue:un,new:Qe("new"),delete:Nn,void:Nn,throw:Nn,debugger:Qe("debugger"),var:Qe("var"),const:Qe("var"),let:Qe("var"),function:Qe("function"),catch:Qe("catch"),for:Qe("for"),switch:Qe("switch"),case:Qe("case"),default:Qe("default"),in:er,typeof:er,instanceof:er,true:Pi,false:Pi,null:Pi,undefined:Pi,NaN:Pi,Infinity:Pi,this:Qe("this"),class:Qe("class"),super:Qe("atom"),yield:Nn,export:Qe("export"),import:Qe("import"),extends:Nn,await:Nn}}(),O=/[+\-*&%=<>!?|~^@]/,k=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function U(Qe){for(var bt=!1,fn,Nn=!1;(fn=Qe.next())!=null;){if(!bt){if(fn=="/"&&!Nn)return;fn=="["?Nn=!0:Nn&&fn=="]"&&(Nn=!1)}bt=!bt&&fn=="\\"}}var z,q;function Q(Qe,bt,fn){return z=Qe,q=fn,bt}fun Line truncated
${E}`),U].join(`
${o}`)}return g}(n,"",0)}function xle(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var P5={},g9;function wle(){return g9||(g9=1,function(n){var e=function(){var t={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(s,a,o,d,g,b,E){var S=b.length-1;switch(g){case 1:this.$=s.replace(/\\(\\|")/g,"$1").replace(/\\n/g,`
`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(s);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=b[S-1];case 13:this.$={};break;case 14:this.$=b[S-1];break;case 15:this.$=[b[S-2],b[S]];break;case 16:this.$={},this.$[b[S][0]]=b[S][1];break;case 17:this.$=b[S-2],b[S-2][b[S][0]]=b[S][1];break;case 18:this.$=[];break;case 19:this.$=b[S-1];break;case 20:this.$=[b[S]];break;case 21:this.$=b[S-2],b[S-2].push(b[S]);break}},table:[{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],12:1,13:2,15:7,16:8,17:[1,14],23:[1,15]},{1:[3]},{14:[1,16]},{14:[2,7],18:[2,7],22:[2,7],24:[2,7]},{14:[2,8],18:[2,8],22:[2,8],24:[2,8]},{14:[2,9],18:[2,9],22:[2,9],24:[2,9]},{14:[2,10],18:[2,10],22:[2,10],24:[2,10]},{14:[2,11],18:[2,11],22:[2,11],24:[2,11]},{14:[2,12],18:[2,12],22:[2,12],24:[2,12]},{14:[2,3],18:[2,3],22:[2,3],24:[2,3]},{14:[2,4],18:[2,4],22:[2,4],24:[2,4]},{14:[2,5],18:[2,5],22:[2,5],24:[2,5]},{14:[2,1],18:[2,1],21:[2,1],22:[2,1],24:[2,1]},{14:[2,2],18:[2,2],22:[2,2],24:[2,2]},{3:20,4:[1,12],18:[1,17],19:18,20:19},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:23,15:7,16:8,17:[1,14],23:[1,15],24:[1,21],25:22},{1:[2,6]},{14:[2,13],18:[2,13],22:[2,13],24:[2,13]},{18:[1,24],22:[1,25]},{18:[2,16],22:[2,16]},{21:[1,26]},{14:[2,18],18:[2,18],22:[2,18],24:[2,18]},{22:[1,28],24:[1,27]},{22:[2,20],24:[2,20]},{14:[2,14],18:[2,14],22:[2,14],24:[2,14]},{3:20,4:[1,12],20:29},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:30,15:7,16:8,17:[1,14],23:[1,15]},{14:[2,19],18:[2,19],22:[2,19],24:[2,19]},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:31,15:7,16:8,17:[1,14],23:[1,15]},{18:[2,17],22:[2,17]},{18:[2,15],22:[2,15]},{22:[2,21],24:[2,21]}],defaultActions:{16:[2,6]},parseError:function(s,a){throw new Error(s)},parse:function(s){var a=this,o=[0],d=[null],g=[],b=this.table,E="",S=0,O=0,k=0,U=2,z=1;this.lexer.setInput(s),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var q=this.lexer.yylloc;g.push(q),typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function Q(pe){o.length=o.length-2*pe,d.length=d.length-pe,g.length=g.length-pe}function re(){var pe;return pe=a.lexer.lex()||1,typeof pe!="number"&&(pe=a.symbols_[pe]||pe),pe}for(var X,Y,J,N,ie,he={},de,we,fe,be;;){if(J=o[o.length-1],this.defaultActions[J]?N=this.defaultActions[J]:(X==null&&(X=re()),N=b[J]&&b[J][X]),typeof N>"u"||!N.length||!N[0]){if(!k){be=[];for(de in b[J])this.terminals_[de]&&de>2&&be.push("'"+this.terminals_[de]+"'");var Pe="";this.lexer.showPosition?Pe="Parse error on line "+(S+1)+`:
`+this.lexer.showPosition()+`
Expecting `+Ce.join(", ")+", got '"+this.terminals_[X]+"'":Pe="Parse error on line "+(S+1)+": Unexpected "+(X==1?"end of input":"'"+(this.terminals_[X]||X)+"'"),this.parseError(Pe,{text:this.lexer.match,token:this.terminals_[X]||X,line:this.lexer.yylineno,loc:Y,expected:Ce})}if(k==3){if(X==z)throw new Error(Pe||"Parsing halted.");I=this.lexer.yyleng,B=this.lexer.yytext,S=this.lexer.yylineno,Y=this.lexer.yylloc,X=ne()}for(;!(U.toString()in b[J]);){if(J==0)throw new Error(Pe||"Parsing halted.");Q(1),J=s[s.length-1]}q=X,X=U,J=s[s.length-1],N=b[J]&&b[J][U],k=3}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+X);switch(N[0]){case 1:s.push(X),h.push(this.lexer.yytext),g.push(this.lexer.yylloc),s.push(N[1]),X=null,q?(X=q,q=null):(I=this.lexer.yyleng,B=this.lexer.yytext,S=this.lexer.yylineno,Y=this.lexer.yylloc,k>0&&k--);break;case 2:if(we=this.productions_[N[1]][1],he.$=h[h.length-we],he._$={first_line:g[g.length-(we||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(we||1)].first_column,last_column:g[g.length-1].last_column},ie=this.performAction.call(he,B,I,S,this.yy,N[1],h,g),typeof ie<"u")return ie;we&&(s=s.slice(0,-1*we*2),h=h.slice(0,-1*we),g=g.slice(0,-1*we)),s.push(this.productions_[N[1]][0]),h.push(he.$),g.push(he._$),pe=b[s[s.length-2]][s[s.length-1]],s.push(pe);break;case 3:return!0}}return!0}},r=function(){var i={EOF:1,parseError:function(a,s){if(this.yy.parseError)this.yy.parseError(a,s);else throw new Error(a)},setInput:function(o){return this._input=o,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.match+=o,this.matched+=o;var a=o.match(/\n/);return a&&this.yylineno++,this._input=this._input.slice(1),o},unput:function(o){return this._input=o+this._input,this},more:function(){return this._more=!0,this},less:function(o){this._input=this.match.slice(o)+this._input},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
`+a+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,a,s,h,g;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),B=0;B<b.length&&(s=this._input.match(this.rules[b[B]]),!(s&&(!a||s[0].length>a[0].length)&&(a=s,h=B,!this.options.flex)));B++);if(a)return g=a[0].match(/\n.*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-1:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],o=this.performAction.call(this,this.yy,this,b[h],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||void 0;if(this._input==="")return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return typeof a<"u"?a:this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(a){this.begin(a)}};return i.options={},i.performAction=function(a,s,h,g){switch(h){case 0:break;case 1:return 6;case 2:return s.yytext=s.yytext.substr(1,s.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},i.rules=[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],i.conditions={INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}},i}();return t.lexer=r,t}();typeof Tae<"u"&&(n.parser=e,n.parse=e.parse.bind(e))}(T5)),T5}var Rae=Pae();const Z6=Ka(Rae);var Ib={exports:{}},Kae=Ib.exports,e9;function Dae(){return e9||(e9=1,function(n,e){(function(t,r){n.exports=r()})(Kae,function(){var t=typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function r(ke,Oe){return Oe={exports:{}},ke(Oe,Oe.exports),Oe.exports}var i=r(function(ke){function Oe(){var Je=0,Mt=1,gt=2,Nt=3,nn=4,en=5,Sn=6,Yn=7,Qr=8,cr=9,fr=10,br=11,Cr=12,Mr=13,Qn=14,Sr=15,Ge=16,ue=17,me=0,Xe=1,Bt=2,Yt=3,it=4;function Kt(p,Ne){return 55296<=p.charCodeAt(Ne)&&p.charCodeAt(Ne)<=56319&&56320<=p.charCodeAt(Ne+1)&&p.charCodeAt(Ne+1)<=57343}function Ye(p,Ne){Ne===void 0&&(Ne=0);var dt=p.charCodeAt(Ne);if(55296<=dt&&dt<=56319&&Ne<p.length-1){var pt=dt,Ot=p.charCodeAt(Ne+1);return 56320<=Ot&&Ot<=57343?(pt-55296)*1024+(Ot-56320)+65536:pt}if(56320<=dt&&dt<=57343&&Ne>=1){var pt=p.charCodeAt(Ne-1),Ot=dt;return 55296<=pt&&pt<=56319?(pt-55296)*1024+(Ot-56320)+65536:Ot}return dt}function fe(p,Ne,dt){var pt=[p].concat(Ne).concat([dt]),Ot=pt[pt.length-2],_t=dt,rn=pt.lastIndexOf(Qn);if(rn>1&&pt.slice(1,rn).every(function(bt){return bt==Nt})&&[Nt,Mr,ue].indexOf(p)==-1)return Bt;var Zt=pt.lastIndexOf(nn);if(Zt>0&&pt.slice(1,Zt).every(function(bt){return bt==nn})&&[Cr,nn].indexOf(Ot)==-1)return pt.filter(function(bt){return bt==nn}).length%2==1?Yt:it;if(Ot==Je&&_t==Mt)return me;if(Ot==gt||Ot==Je||Ot==Mt)return _t==Qn&&Ne.every(function(bt){return bt==Nt})?Bt:Xe;if(_t==gt||_t==Je||_t==Mt)return Xe;if(Ot==Sn&&(_t==Sn||_t==Yn||_t==cr||_t==fr))return me;if((Ot==cr||Ot==Yn)&&(_t==Yn||_t==Qr))return me;if((Ot==fr||Ot==Qr)&&_t==Qr)return me;if(_t==Nt||_t==Sr)return me;if(_t==en)return me;if(Ot==Cr)return me;var Gt=pt.indexOf(Nt)!=-1?pt.lastIndexOf(Nt)-1:pt.length-2;return[Mr,ue].indexOf(pt[Gt])!=-1&&pt.slice(Gt+1,-1).every(function(bt){return bt==Nt})&&_t==Qn||Ot==Sr&&[Ge,ue].indexOf(_t)!=-1?me:Ne.indexOf(nn)!=-1?Bt:Ot==nn&&_t==nn?me:Xe}this.nextBreak=function(p,Ne){if(Ne===void 0&&(Ne=0),Ne<0)return 0;if(Ne>=p.length-1)return p.length;for(var dt=xe(Ye(p,Ne)),pt=[],Ot=Ne+1;Ot<p.length;Ot++)if(!Kt(p,Ot-1)){var _t=xe(Ye(p,Ot));if(fe(dt,pt,_t))return Ot;pt.push(_t)}return p.length},this.splitGraphemes=function(p){for(var Ne=[],dt=0,pt;(pt=this.nextBreak(p,dt))<p.length;)Ne.push(p.slice(dt,pt)),dt=pt;return dt<p.length&&Ne.push(p.slice(dt)),Ne},this.iterateGraphemes=function(p){var Ne=0,dt={next:(function(){var pt,Ot;return(Ot=this.nextBreak(p,Ne))<p.length?(pt=p.slice(Ne,Ot),Ne=Ot,{value:pt,done:!1}):Ne<p.length?(pt=p.slice(Ne),Ne=p.length,{value:pt,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(p){for(var Ne=0,dt=0,pt;(pt=this.nextBreak(p,dt))<p.length;)dt=pt,Ne++;return dt<p.length&&Ne++,Ne};function xe(p){return 1536<=p&&p<=1541||p==1757||p==1807||p==2274||p==3406||p==69821||70082<=p&&p<=70083||p==72250||72326<=p&&p<=72329||p==73030?Cr:p==13?Je:p==10?Mt:0<=p&&p<=9||11<=p&&p<=12||14<=p&&p<=31||127<=p&&p<=159||p==173||p==1564||p==6158||p==8203||8206<=p&&p<=8207||p==8232||p==8233||8234<=p&&p<=8238||8288<=p&&p<=8292||p==8293||8294<=p&&p<=8303||55296<=p&&p<=57343||p==65279||65520<=p&&p<=65528||65529<=p&&p<=65531||113824<=p&&p<=113827||119155<=p&&p<=119162||p==917504||p==917505||917506<=p&&p<=917535||917632<=p&&p<=917759||918e3<=p&&p<=921599?gt:768<=p&&p<=879||1155<=p&&p<=1159||1160<=p&&p<=1161||1425<=p&&p<=1469||p==1471||1473<=p&&p<=1474||1476<=p&&p<=1477||p==1479||1552<=p&&p<=1562||1611<=p&&p<=1631||p==1648||1750<=p&&p<=1756||1759<=p&&p<=1764||1767<=p&&p<=1768||1770<=p&&p<=1773||p==1809||1840<=p&&p<=1866||1958<=p&&p<=1968||2027<=p&&p<=2035||2070<=p&&p<=2073||2075<=p&&p<=2083||2085<=p&&p<=2087||2089<=p&&p<=2093||2137<=p&&p<=2139||2260<=p&&p<=2273||2275<= Line truncated
`)}var Qr={extraLines:2,tabSize:4},cr=function(br,Cr,Mr,Qn){Qn=en({},Qr,Qn);var Sr=br.split(/\r\n?|\n|\f/),Ge=Math.max(1,Cr-Qn.extraLines)-1,ue=Math.min(Cr+Qn.extraLines,Sr.length),me=String(ue).length,Xe=Yn(Sr,Ge,Cr,me,Qn),Bt=Sn(Sr[Cr-1].substring(0,Mr-1),Cr,me,Qn),Yt=gt(" ",Bt.length)+"^",it=Yn(Sr,Cr,ue,me,Qn);return[Xe,Yt,it].filter(Boolean).join(`
`)};return cr})}),g=new Error().stack,b=function(ke){var Oe=Object.create(SyntaxError.prototype);return Object.assign(Oe,ke,{name:"SyntaxError"}),Object.defineProperty(Oe,"stack",{get:function(){return g?g.replace(/^(.+\n){1,3}/,String(Oe)+`
`):""}}),Oe},B=function(ke,Oe,Je,Mt,gt){throw b({message:Mt?ke+`
`+h(Oe,Mt,gt):ke,rawMessage:ke,source:Je,line:Mt,column:gt})},S={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Oe){for(var Je=arguments.length,Mt=Array(Je>1?Je-1:0),gt=1;gt<Je;gt++)Mt[gt-1]=arguments[gt];return"Unexpected token <"+Oe+"> at "+Mt.filter(Boolean).join(":")}},I={unexpectedSymbol:function(Oe){for(var Je=arguments.length,Mt=Array(Je>1?Je-1:0),gt=1;gt<Je;gt++)Mt[gt-1]=arguments[gt];return"Unexpected symbol <"+Oe+"> at "+Mt.filter(Boolean).join(":")}},k={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},U={"{":k.LEFT_BRACE,"}":k.RIGHT_BRACE,"[":k.LEFT_BRACKET,"]":k.RIGHT_BRACKET,":":k.COLON,",":k.COMMA},z={true:k.TRUE,false:k.FALSE,null:k.NULL},Y={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},Q={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},ne={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function X(ke){return ke>="1"&&ke<="9"}function q(ke){return ke>="0"&&ke<="9"}function J(ke){return q(ke)||ke>="a"&&ke<="f"||ke>="A"&&ke<="F"}function N(ke){return ke==="e"||ke==="E"}function ie(ke,Oe,Je,Mt){var gt=ke.charAt(Oe);if(gt==="\r")Oe++,Je++,Mt=1,ke.charAt(Oe)===`
`&&Oe++;else if(gt===`
`)Oe++,Je++,Mt=1;else if(gt===" "||gt===" ")Oe++,Mt++;else return null;return{index:Oe,line:Je,column:Mt}}function he(ke,Oe,Je,Mt){var gt=ke.charAt(Oe);return gt in U?{type:U[gt],line:Je,column:Mt+1,index:Oe+1,value:null}:null}function ce(ke,Oe,Je,Mt){for(var gt in z)if(z.hasOwnProperty(gt)&&ke.substr(Oe,gt.length)===gt)return{type:z[gt],line:Je,column:Mt+gt.length,index:Oe+gt.length,value:gt};return null}function we(ke,Oe,Je,Mt){for(var gt=Oe,Nt=Y._START_;Oe<ke.length;){var nn=ke.charAt(Oe);switch(Nt){case Y._START_:{if(nn==='"')Oe++,Nt=Y.START_QUOTE_OR_CHAR;else return null;break}case Y.START_QUOTE_OR_CHAR:{if(nn==="\\")Oe++,Nt=Y.ESCAPE;else{if(nn==='"')return Oe++,{type:k.STRING,line:Je,column:Mt+Oe-gt,index:Oe,value:ke.slice(gt,Oe)};Oe++}break}case Y.ESCAPE:{if(nn in Q){if(Oe++,nn==="u")for(var en=0;en<4;en++){var Sn=ke.charAt(Oe);if(Sn&&J(Sn))Oe++;else return null}Nt=Y.START_QUOTE_OR_CHAR}else return null;break}}}}function pe(ke,Oe,Je,Mt){var gt=Oe,Nt=Oe,nn=ne._START_;e:for(;Oe<ke.length;){var en=ke.charAt(Oe);switch(nn){case ne._START_:{if(en==="-")nn=ne.MINUS;else if(en==="0")Nt=Oe+1,nn=ne.ZERO;else if(X(en))Nt=Oe+1,nn=ne.DIGIT;else return null;break}case ne.MINUS:{if(en==="0")Nt=Oe+1,nn=ne.ZERO;else if(X(en))Nt=Oe+1,nn=ne.DIGIT;else return null;break}case ne.ZERO:{if(en===".")nn=ne.POINT;else if(N(en))nn=ne.EXP;else break e;break}case ne.DIGIT:{if(q(en))Nt=Oe+1;else if(en===".")nn=ne.POINT;else if(N(en))nn=ne.EXP;else break e;break}case ne.POINT:{if(q(en))Nt=Oe+1,nn=ne.DIGIT_FRACTION;else break e;break}case ne.DIGIT_FRACTION:{if(q(en))Nt=Oe+1;else if(N(en))nn=ne.EXP;else break e;break}case ne.EXP:{if(en==="+"||en==="-")nn=ne.EXP_DIGIT_OR_SIGN;else if(q(en))Nt=Oe+1,nn=ne.EXP_DIGIT_OR_SIGN;else break e;break}case ne.EXP_DIGIT_OR_SIGN:{if(q(en))Nt=Oe+1;else break e;break}}Oe++}return Nt>0?{type:k.NUMBER,line:Je,column:Mt+Nt-gt,index:Nt,value:ke.slice(gt,Nt)}:null}var Ce=function(Oe,Je){for(var Mt=1,gt=1,Nt=0,nn=[];Nt<Oe.length;){var en=[Oe,Nt,Mt,gt],Sn=ie.apply(void 0,en);if(Sn){Nt=Sn.index,Mt=Sn.line,gt=Sn.column;continue}var Yn=he.apply(void 0,en)||ce.apply(void 0,en)||we.apply(void 0,en)||pe.apply(void 0,en);if(Yn){var Qr={type:Yn.type,value:Yn.value,loc:s(Mt,gt,Nt,Yn.line,Yn.column,Yn.index,Je.source)};nn.push(Qr),Nt=Yn.index,Mt=Yn.line,gt=Yn.column}else B(I.unexpectedSymbol(a(Oe,Nt,Nt+1),Je.source,Mt,gt),Oe,Je.source,Mt,gt)}return nn},Pe={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},de={_START_:0,KEY:1,COLON:2},rt={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},ze={loc:!0,source:null};function Qe(ke,Oe,Je){var Mt=Oe.length>0?Oe[Oe.length-1].loc.end:{line:1,column:1};B(S.unexpectedEnd(),ke,Je.source,Mt.line,Mt.column)}function ut(ke){for(var Oe=0,Je=0;Je<4;Je++)Oe=Oe*16+parseInt(ke[Je],16);return String.fromCharCode(Oe)}var Te={b:"\b",f:"\f",n:`
`,r:"\r",t:" "},Ue=['"',"\\","/"];function st(ke){for(var Oe="",Je=0;Je<ke.length;Je++){var Mt=ke.charAt(Je);if(Mt==="\\"){Je++;var gt=ke.charAt(Je);if(gt==="u")Oe+=ut(ke.substr(Je+1,4)),Je+=4;else if(Ue.indexOf(gt)!==-1)Oe+=gt;else if(gt in Te)Oe+=Te[gt];else break}else Oe+=Mt}return Oe}function wt(ke,Oe,Je,Mt){for(var gt=void 0,Nt={type:"Object",children:[]},nn=Pe._START_;Je<Oe.length;){var en=Oe[Je];switch(nn){case Pe._START_:{if(en.type===k.LEFT_BRACE)gt=en,nn=Pe.OPEN_OBJECT,Je++;else return null;break}case Pe.OPEN_OBJECT:{if(en.type===k.RIGHT_BRACE)return Mt.loc&&(Nt.loc=s(gt.loc.start.line,gt.loc.start.column,gt.loc.start.offset,en.loc.end.line,en.loc.end.column,en.loc.end.offset,Mt.source)),{value:Nt,index:Je+1};var Sn=mt(ke,Oe,Je,Mt);Nt.children.push(Sn.value),nn=Pe.PROPERTY,Je=Sn.index;break}case Pe.PROPERTY:{if(en.type===k.RIGHT_BRACE)return Mt.loc&&(Nt.loc=s(gt.loc.start.line,gt.loc.start.column,gt.loc.start.offset,en.loc.end.line,en.loc.end.column,en.loc.end.offset,Mt.source)),{value:Nt,index:Je+1};en.type===k.COMMA?(nn=Pe.COMMA,Je++):B(S.unexpectedToken(a(ke,en.loc.start.offset,en.loc.end.offset),Mt.source,en.loc.start.line,en.loc.start.column),ke,Mt.source,en.loc.start.line,en.loc.start.column);break}case Pe.COMMA:{var Yn=mt(ke,Oe,Je,Mt);Yn?(Je=Yn.index,Nt.children.push(Yn.value),nn=Pe.PROPERTY):B(S.unexpectedToken(a(ke,en.loc.start.offset,en.loc.end.offset),Mt.source,en.loc.start.line,en.loc.start.column),ke,Mt.source,en.loc.start.line,en.loc.start.column);break}}}Qe(ke,Oe,Mt)}function mt(ke,Oe,Je,Mt){for(var gt=void 0,Nt={type:"Property",key:null,value:null},nn=de._START_;Je<Oe.length;){var en=Oe[Je];switch(nn){case de._START_:{if(en.type===k.STRING){var Sn={type:"Identifier",value:st(ke.slice(en.loc.start.offset+1,en.loc.end.offset-1)),raw:en.value};Mt.loc&&(Sn.loc=en.loc),gt=en,Nt.key=Sn,nn=de.KEY,Je++}else return null;break}case de.KEY:{en.type===k.COLON?(nn=de.COLON,Je++):B(S.unexpectedToken(a(ke,en.loc.start.offset,en.loc.end.offset),Mt.source,en.loc.start.line,en.loc.start.column),ke,Mt.source,en.loc.start.line,en.loc.start.column);break}case de.COLON:{var Yn=Lt(ke,Oe,Je,Mt);return Nt.value=Yn.value,Mt.loc&&(Nt.loc=s(gt.loc.start.line,gt.loc.start.column,gt.loc.start.offset,Yn.value.loc.end.line,Yn.value.loc.end.column,Yn.value.loc.end.offset,Mt.source)),{value:Nt,index:Yn.index}}}}}function ft(ke,Oe,Je,Mt){for(var gt=void 0,Nt={type:"Array",children:[]},nn=rt._START_,en=void 0;Je<Oe.length;)switch(en=Oe[Je],nn){case rt._START_:{if(en.type===k.LEFT_BRACKET)gt=en,nn=rt.OPEN_ARRAY,Je++;else return null;break}case rt.OPEN_ARRAY:{if(en.type===k.RIGHT_BRACKET)return Mt.loc&&(Nt.loc=s(gt.loc.start.line,gt.loc.start.column,gt.loc.start.offset,en.loc.end.line,en.loc.end.column,en.loc.end.offset,Mt.source)),{value:Nt,index:Je+1};var Sn=Lt(ke,Oe,Je,Mt);Je=Sn.index,Nt.children.push(Sn.value),nn=rt.VALUE;break}case rt.VALUE:{if(en.type===k.RIGHT_BRACKET)return Mt.loc&&(Nt.loc=s(gt.loc.start.line,gt.loc.start.column,gt.loc.start.offset,en.loc.end.line,en.loc.end.column,en.loc.end.offset,Mt.source)),{value:Nt,index:Je+1};en.type===k.COMMA?(nn=rt.COMMA,Je++):B(S.unexpectedToken(a(ke,en.loc.start.offset,en.loc.end.offset),Mt.source,en.loc.start.line,en.loc.start.column),ke,Mt.source,en.loc.start.line,en.loc.start.column);break}case rt.COMMA:{var Yn=Lt(ke,Oe,Je,Mt);Je=Yn.index,Nt.children.push(Yn.value),nn=rt.VALUE;break}}Qe(ke,Oe,Mt)}function Ut(ke,Oe,Je,Mt){var gt=Oe[Je],Nt=null;switch(gt.type){case k.STRING:{Nt=st(ke.slice(gt.loc.start.offset+1,gt.loc.end.offset-1));break}case k.NUMBER:{Nt=Number(gt.value);break}case k.TRUE:{Nt=!0;break}case k.FALSE:{Nt=!1;break}case k.NULL:{Nt=null;break}default:return null}var nn={type:"Literal",value:Nt,raw:gt.value};return Mt.loc&&(nn.loc=gt.loc),{value:nn,index:Je+1}}function Lt(ke,Oe,Je,Mt){var gt=Oe[Je],Nt=Ut.apply(void 0,arguments)||wt.apply(void 0,arguments)||ft.apply(void 0,arguments);if(Nt)return Nt;B(S.unexpectedToken(a(ke,gt.loc.start.offset,gt.loc.end.offset),Mt.source,gt.loc.start.line,gt.loc.start.column),ke,Mt.source,gt.loc.start.line,gt.loc.start.column)}var De=function(ke,Oe){Oe=Object.assign({},ze,Oe);var Je=Ce(ke,Oe);Je.length===0&&Qe(ke,Je,Oe);var Mt=Lt(ke,Je,0,Oe);if(Mt.index===Je.length)return Mt.value;var gt=Je[Mt.index];B(S.unexpectedToken(a(ke,gt.loc.start.offset,gt.loc.end.offset),Oe.source,gt.loc.start.line,gt.loc.start.column),ke,Oe.source,gt.loc.start.line,gt.loc.start.column)};return De})}(Ib)),Ib.exports}var Lae=Dae();const Fae=Ka(Lae);function ir(){var n="/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",e="a994e12e3e6547813b669a430e6cb42da5d99bba",t=globalThis,r="__coverage__",i={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:11,column:0},end:{line:26,column:3}},3:{start:{line:12,column:16},end:{line:12,column:18}},4:{start:{line:13,column:2},end:{line:20,column:4}}, Line truncated
Expecting `+be.join(", ")+", got '"+this.terminals_[X]+"'":Pe="Parse error on line "+(S+1)+": Unexpected "+(X==1?"end of input":"'"+(this.terminals_[X]||X)+"'"),this.parseError(Pe,{text:this.lexer.match,token:this.terminals_[X]||X,line:this.lexer.yylineno,loc:q,expected:be})}if(k==3){if(X==z)throw new Error(Pe||"Parsing halted.");O=this.lexer.yyleng,E=this.lexer.yytext,S=this.lexer.yylineno,q=this.lexer.yylloc,X=re()}for(;!(U.toString()in b[J]);){if(J==0)throw new Error(Pe||"Parsing halted.");Q(1),J=o[o.length-1]}Y=X,X=U,J=o[o.length-1],N=b[J]&&b[J][U],k=3}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+X);switch(N[0]){case 1:o.push(X),d.push(this.lexer.yytext),g.push(this.lexer.yylloc),o.push(N[1]),X=null,Y?(X=Y,Y=null):(O=this.lexer.yyleng,E=this.lexer.yytext,S=this.lexer.yylineno,q=this.lexer.yylloc,k>0&&k--);break;case 2:if(we=this.productions_[N[1]][1],he.$=d[d.length-we],he._$={first_line:g[g.length-(we||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(we||1)].first_column,last_column:g[g.length-1].last_column},ie=this.performAction.call(he,E,O,S,this.yy,N[1],d,g),typeof ie<"u")return ie;we&&(o=o.slice(0,-1*we*2),d=d.slice(0,-1*we),g=g.slice(0,-1*we)),o.push(this.productions_[N[1]][0]),d.push(he.$),g.push(he._$),fe=b[o[o.length-2]][o[o.length-1]],o.push(fe);break;case 3:return!0}}return!0}},r=function(){var i={EOF:1,parseError:function(a,o){if(this.yy.parseError)this.yy.parseError(a,o);else throw new Error(a)},setInput:function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.match+=s,this.matched+=s;var a=s.match(/\n/);return a&&this.yylineno++,this._input=this._input.slice(1),s},unput:function(s){return this._input=s+this._input,this},more:function(){return this._more=!0,this},less:function(s){this._input=this.match.slice(s)+this._input},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
`+a+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,o,d,g;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),E=0;E<b.length&&(o=this._input.match(this.rules[b[E]]),!(o&&(!a||o[0].length>a[0].length)&&(a=o,d=E,!this.options.flex)));E++);if(a)return g=a[0].match(/\n.*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-1:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],s=this.performAction.call(this,this.yy,this,b[d],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0;if(this._input==="")return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return typeof a<"u"?a:this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(a){this.begin(a)}};return i.options={},i.performAction=function(a,o,d,g){switch(d){case 0:break;case 1:return 6;case 2:return o.yytext=o.yytext.substr(1,o.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},i.rules=[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],i.conditions={INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}},i}();return t.lexer=r,t}();typeof xle<"u"&&(n.parser=e,n.parse=e.parse.bind(e))}(P5)),P5}var Mle=wle();const mB=La(Mle);var Ib={exports:{}},Sle=Ib.exports,y9;function Ele(){return y9||(y9=1,function(n,e){(function(t,r){n.exports=r()})(Sle,function(){var t=typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function r(Te,Se){return Se={exports:{}},Te(Se,Se.exports),Se.exports}var i=r(function(Te){function Se(){var Je=0,yt=1,dt=2,Ut=3,en=4,Nt=5,yn=6,jn=7,Rr=8,sr=9,Jn=10,mr=11,pr=12,xr=13,Qn=14,Er=15,Ge=16,Ae=17,me=0,Xe=1,Et=2,Yt=3,nn=4;function rr(p,ze){return 55296<=p.charCodeAt(ze)&&p.charCodeAt(ze)<=56319&&56320<=p.charCodeAt(ze+1)&&p.charCodeAt(ze+1)<=57343}function Ee(p,ze){ze===void 0&&(ze=0);var rt=p.charCodeAt(ze);if(55296<=rt&&rt<=56319&&ze<p.length-1){var pt=rt,Bt=p.charCodeAt(ze+1);return 56320<=Bt&&Bt<=57343?(pt-55296)*1024+(Bt-56320)+65536:pt}if(56320<=rt&&rt<=57343&&ze>=1){var pt=p.charCodeAt(ze-1),Bt=rt;return 55296<=pt&&pt<=56319?(pt-55296)*1024+(Bt-56320)+65536:Bt}return rt}function oe(p,ze,rt){var pt=[p].concat(ze).concat([rt]),Bt=pt[pt.length-2],vt=rt,Xt=pt.lastIndexOf(Qn);if(Xt>1&&pt.slice(1,Xt).every(function(_t){return _t==Ut})&&[Ut,xr,Ae].indexOf(p)==-1)return Et;var tn=pt.lastIndexOf(en);if(tn>0&&pt.slice(1,tn).every(function(_t){return _t==en})&&[pr,en].indexOf(Bt)==-1)return pt.filter(function(_t){return _t==en}).length%2==1?Yt:nn;if(Bt==Je&&vt==yt)return me;if(Bt==dt||Bt==Je||Bt==yt)return vt==Qn&&ze.every(function(_t){return _t==Ut})?Et:Xe;if(vt==dt||vt==Je||vt==yt)return Xe;if(Bt==yn&&(vt==yn||vt==jn||vt==sr||vt==Jn))return me;if((Bt==sr||Bt==jn)&&(vt==jn||vt==Rr))return me;if((Bt==Jn||Bt==Rr)&&vt==Rr)return me;if(vt==Ut||vt==Er)return me;if(vt==Nt)return me;if(Bt==pr)return me;var zt=pt.indexOf(Ut)!=-1?pt.lastIndexOf(Ut)-1:pt.length-2;return[xr,Ae].indexOf(pt[zt])!=-1&&pt.slice(zt+1,-1).every(function(_t){return _t==Ut})&&vt==Qn||Bt==Er&&[Ge,Ae].indexOf(vt)!=-1?me:ze.indexOf(en)!=-1?Et:Bt==en&&vt==en?me:Xe}this.nextBreak=function(p,ze){if(ze===void 0&&(ze=0),ze<0)return 0;if(ze>=p.length-1)return p.length;for(var rt=ve(Ee(p,ze)),pt=[],Bt=ze+1;Bt<p.length;Bt++)if(!rr(p,Bt-1)){var vt=ve(Ee(p,Bt));if(oe(rt,pt,vt))return Bt;pt.push(vt)}return p.length},this.splitGraphemes=function(p){for(var ze=[],rt=0,pt;(pt=this.nextBreak(p,rt))<p.length;)ze.push(p.slice(rt,pt)),rt=pt;return rt<p.length&&ze.push(p.slice(rt)),ze},this.iterateGraphemes=function(p){var ze=0,rt={next:(function(){var pt,Bt;return(Bt=this.nextBreak(p,ze))<p.length?(pt=p.slice(ze,Bt),ze=Bt,{value:pt,done:!1}):ze<p.length?(pt=p.slice(ze),ze=p.length,{value:pt,done:!1}):{value:void 0,done:!0}}).bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(rt[Symbol.iterator]=function(){return rt}),rt},this.countGraphemes=function(p){for(var ze=0,rt=0,pt;(pt=this.nextBreak(p,rt))<p.length;)rt=pt,ze++;return rt<p.length&&ze++,ze};function ve(p){return 1536<=p&&p<=1541||p==1757||p==1807||p==2274||p==3406||p==69821||70082<=p&&p<=70083||p==72250||72326<=p&&p<=72329||p==73030?pr:p==13?Je:p==10?yt:0<=p&&p<=9||11<=p&&p<=12||14<=p&&p<=31||127<=p&&p<=159||p==173||p==1564||p==6158||p==8203||8206<=p&&p<=8207||p==8232||p==8233||8234<=p&&p<=8238||8288<=p&&p<=8292||p==8293||8294<=p&&p<=8303||55296<=p&&p<=57343||p==65279||65520<=p&&p<=65528||65529<=p&&p<=65531||113824<=p&&p<=113827||119155<=p&&p<=119162||p==917504||p==917505||917506<=p&&p<=917535||917632<=p&&p<=917759||918e3<=p&&p<=921599?dt:768<=p&&p<=879||1155<=p&&p<=1159||1160<=p&&p<=1161||1425<=p&&p<=1469||p==1471||1473<=p&&p<=1474||1476<=p&&p<=1477||p==1479||1552<=p&&p<=1562||1611<=p&&p<=1631||p==1648||1750<=p&&p<=1756||1759<=p&&p<=1764||1767<=p&&p<=1768||1770<=p&&p<=1773||p==1809||1840<=p&&p<=1866||1958<=p&&p<=1968||2027<=p&&p<=2035||2070<=p&&p<=2073||2075<=p&&p<=2083||2085<=p&&p<=2087||2089<=p&&p<=2093||2137<=p&&p<=2139||2260<=p&&p<=2273||2275<= Line truncated
`)}var Rr={extraLines:2,tabSize:4},sr=function(mr,pr,xr,Qn){Qn=Nt({},Rr,Qn);var Er=mr.split(/\r\n?|\n|\f/),Ge=Math.max(1,pr-Qn.extraLines)-1,Ae=Math.min(pr+Qn.extraLines,Er.length),me=String(Ae).length,Xe=jn(Er,Ge,pr,me,Qn),Et=yn(Er[pr-1].substring(0,xr-1),pr,me,Qn),Yt=dt(" ",Et.length)+"^",nn=jn(Er,pr,Ae,me,Qn);return[Xe,Yt,nn].filter(Boolean).join(`
`)};return sr})}),g=new Error().stack,b=function(Te){var Se=Object.create(SyntaxError.prototype);return Object.assign(Se,Te,{name:"SyntaxError"}),Object.defineProperty(Se,"stack",{get:function(){return g?g.replace(/^(.+\n){1,3}/,String(Se)+`
`):""}}),Se},E=function(Te,Se,Je,yt,dt){throw b({message:yt?Te+`
`+d(Se,yt,dt):Te,rawMessage:Te,source:Je,line:yt,column:dt})},S={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Se){for(var Je=arguments.length,yt=Array(Je>1?Je-1:0),dt=1;dt<Je;dt++)yt[dt-1]=arguments[dt];return"Unexpected token <"+Se+"> at "+yt.filter(Boolean).join(":")}},O={unexpectedSymbol:function(Se){for(var Je=arguments.length,yt=Array(Je>1?Je-1:0),dt=1;dt<Je;dt++)yt[dt-1]=arguments[dt];return"Unexpected symbol <"+Se+"> at "+yt.filter(Boolean).join(":")}},k={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},U={"{":k.LEFT_BRACE,"}":k.RIGHT_BRACE,"[":k.LEFT_BRACKET,"]":k.RIGHT_BRACKET,":":k.COLON,",":k.COMMA},z={true:k.TRUE,false:k.FALSE,null:k.NULL},q={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},Q={'"':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 X(Te){return Te>="1"&&Te<="9"}function Y(Te){return Te>="0"&&Te<="9"}function J(Te){return Y(Te)||Te>="a"&&Te<="f"||Te>="A"&&Te<="F"}function N(Te){return Te==="e"||Te==="E"}function ie(Te,Se,Je,yt){var dt=Te.charAt(Se);if(dt==="\r")Se++,Je++,yt=1,Te.charAt(Se)===`
`&&Se++;else if(dt===`
`)Se++,Je++,yt=1;else if(dt===" "||dt===" ")Se++,yt++;else return null;return{index:Se,line:Je,column:yt}}function he(Te,Se,Je,yt){var dt=Te.charAt(Se);return dt in U?{type:U[dt],line:Je,column:yt+1,index:Se+1,value:null}:null}function de(Te,Se,Je,yt){for(var dt in z)if(z.hasOwnProperty(dt)&&Te.substr(Se,dt.length)===dt)return{type:z[dt],line:Je,column:yt+dt.length,index:Se+dt.length,value:dt};return null}function we(Te,Se,Je,yt){for(var dt=Se,Ut=q._START_;Se<Te.length;){var en=Te.charAt(Se);switch(Ut){case q._START_:{if(en==='"')Se++,Ut=q.START_QUOTE_OR_CHAR;else return null;break}case q.START_QUOTE_OR_CHAR:{if(en==="\\")Se++,Ut=q.ESCAPE;else{if(en==='"')return Se++,{type:k.STRING,line:Je,column:yt+Se-dt,index:Se,value:Te.slice(dt,Se)};Se++}break}case q.ESCAPE:{if(en in Q){if(Se++,en==="u")for(var Nt=0;Nt<4;Nt++){var yn=Te.charAt(Se);if(yn&&J(yn))Se++;else return null}Ut=q.START_QUOTE_OR_CHAR}else return null;break}}}}function fe(Te,Se,Je,yt){var dt=Se,Ut=Se,en=re._START_;e:for(;Se<Te.length;){var Nt=Te.charAt(Se);switch(en){case re._START_:{if(Nt==="-")en=re.MINUS;else if(Nt==="0")Ut=Se+1,en=re.ZERO;else if(X(Nt))Ut=Se+1,en=re.DIGIT;else return null;break}case re.MINUS:{if(Nt==="0")Ut=Se+1,en=re.ZERO;else if(X(Nt))Ut=Se+1,en=re.DIGIT;else return null;break}case re.ZERO:{if(Nt===".")en=re.POINT;else if(N(Nt))en=re.EXP;else break e;break}case re.DIGIT:{if(Y(Nt))Ut=Se+1;else if(Nt===".")en=re.POINT;else if(N(Nt))en=re.EXP;else break e;break}case re.POINT:{if(Y(Nt))Ut=Se+1,en=re.DIGIT_FRACTION;else break e;break}case re.DIGIT_FRACTION:{if(Y(Nt))Ut=Se+1;else if(N(Nt))en=re.EXP;else break e;break}case re.EXP:{if(Nt==="+"||Nt==="-")en=re.EXP_DIGIT_OR_SIGN;else if(Y(Nt))Ut=Se+1,en=re.EXP_DIGIT_OR_SIGN;else break e;break}case re.EXP_DIGIT_OR_SIGN:{if(Y(Nt))Ut=Se+1;else break e;break}}Se++}return Ut>0?{type:k.NUMBER,line:Je,column:yt+Ut-dt,index:Ut,value:Te.slice(dt,Ut)}:null}var be=function(Se,Je){for(var yt=1,dt=1,Ut=0,en=[];Ut<Se.length;){var Nt=[Se,Ut,yt,dt],yn=ie.apply(void 0,Nt);if(yn){Ut=yn.index,yt=yn.line,dt=yn.column;continue}var jn=he.apply(void 0,Nt)||de.apply(void 0,Nt)||we.apply(void 0,Nt)||fe.apply(void 0,Nt);if(jn){var Rr={type:jn.type,value:jn.value,loc:o(yt,dt,Ut,jn.line,jn.column,jn.index,Je.source)};en.push(Rr),Ut=jn.index,yt=jn.line,dt=jn.column}else E(O.unexpectedSymbol(a(Se,Ut,Ut+1),Je.source,yt,dt),Se,Je.source,yt,dt)}return en},Pe={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},pe={_START_:0,KEY:1,COLON:2},it={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},We={loc:!0,source:null};function $e(Te,Se,Je){var yt=Se.length>0?Se[Se.length-1].loc.end:{line:1,column:1};E(S.unexpectedEnd(),Te,Je.source,yt.line,yt.column)}function ht(Te){for(var Se=0,Je=0;Je<4;Je++)Se=Se*16+parseInt(Te[Je],16);return String.fromCharCode(Se)}var De={b:"\b",f:"\f",n:`
`,r:"\r",t:" "},Ne=['"',"\\","/"];function at(Te){for(var Se="",Je=0;Je<Te.length;Je++){var yt=Te.charAt(Je);if(yt==="\\"){Je++;var dt=Te.charAt(Je);if(dt==="u")Se+=ht(Te.substr(Je+1,4)),Je+=4;else if(Ne.indexOf(dt)!==-1)Se+=dt;else if(dt in De)Se+=De[dt];else break}else Se+=yt}return Se}function wt(Te,Se,Je,yt){for(var dt=void 0,Ut={type:"Object",children:[]},en=Pe._START_;Je<Se.length;){var Nt=Se[Je];switch(en){case Pe._START_:{if(Nt.type===k.LEFT_BRACE)dt=Nt,en=Pe.OPEN_OBJECT,Je++;else return null;break}case Pe.OPEN_OBJECT:{if(Nt.type===k.RIGHT_BRACE)return yt.loc&&(Ut.loc=o(dt.loc.start.line,dt.loc.start.column,dt.loc.start.offset,Nt.loc.end.line,Nt.loc.end.column,Nt.loc.end.offset,yt.source)),{value:Ut,index:Je+1};var yn=Ct(Te,Se,Je,yt);Ut.children.push(yn.value),en=Pe.PROPERTY,Je=yn.index;break}case Pe.PROPERTY:{if(Nt.type===k.RIGHT_BRACE)return yt.loc&&(Ut.loc=o(dt.loc.start.line,dt.loc.start.column,dt.loc.start.offset,Nt.loc.end.line,Nt.loc.end.column,Nt.loc.end.offset,yt.source)),{value:Ut,index:Je+1};Nt.type===k.COMMA?(en=Pe.COMMA,Je++):E(S.unexpectedToken(a(Te,Nt.loc.start.offset,Nt.loc.end.offset),yt.source,Nt.loc.start.line,Nt.loc.start.column),Te,yt.source,Nt.loc.start.line,Nt.loc.start.column);break}case Pe.COMMA:{var jn=Ct(Te,Se,Je,yt);jn?(Je=jn.index,Ut.children.push(jn.value),en=Pe.PROPERTY):E(S.unexpectedToken(a(Te,Nt.loc.start.offset,Nt.loc.end.offset),yt.source,Nt.loc.start.line,Nt.loc.start.column),Te,yt.source,Nt.loc.start.line,Nt.loc.start.column);break}}}$e(Te,Se,yt)}function Ct(Te,Se,Je,yt){for(var dt=void 0,Ut={type:"Property",key:null,value:null},en=pe._START_;Je<Se.length;){var Nt=Se[Je];switch(en){case pe._START_:{if(Nt.type===k.STRING){var yn={type:"Identifier",value:at(Te.slice(Nt.loc.start.offset+1,Nt.loc.end.offset-1)),raw:Nt.value};yt.loc&&(yn.loc=Nt.loc),dt=Nt,Ut.key=yn,en=pe.KEY,Je++}else return null;break}case pe.KEY:{Nt.type===k.COLON?(en=pe.COLON,Je++):E(S.unexpectedToken(a(Te,Nt.loc.start.offset,Nt.loc.end.offset),yt.source,Nt.loc.start.line,Nt.loc.start.column),Te,yt.source,Nt.loc.start.line,Nt.loc.start.column);break}case pe.COLON:{var jn=Kt(Te,Se,Je,yt);return Ut.value=jn.value,yt.loc&&(Ut.loc=o(dt.loc.start.line,dt.loc.start.column,dt.loc.start.offset,jn.value.loc.end.line,jn.value.loc.end.column,jn.value.loc.end.offset,yt.source)),{value:Ut,index:jn.index}}}}}function ft(Te,Se,Je,yt){for(var dt=void 0,Ut={type:"Array",children:[]},en=it._START_,Nt=void 0;Je<Se.length;)switch(Nt=Se[Je],en){case it._START_:{if(Nt.type===k.LEFT_BRACKET)dt=Nt,en=it.OPEN_ARRAY,Je++;else return null;break}case it.OPEN_ARRAY:{if(Nt.type===k.RIGHT_BRACKET)return yt.loc&&(Ut.loc=o(dt.loc.start.line,dt.loc.start.column,dt.loc.start.offset,Nt.loc.end.line,Nt.loc.end.column,Nt.loc.end.offset,yt.source)),{value:Ut,index:Je+1};var yn=Kt(Te,Se,Je,yt);Je=yn.index,Ut.children.push(yn.value),en=it.VALUE;break}case it.VALUE:{if(Nt.type===k.RIGHT_BRACKET)return yt.loc&&(Ut.loc=o(dt.loc.start.line,dt.loc.start.column,dt.loc.start.offset,Nt.loc.end.line,Nt.loc.end.column,Nt.loc.end.offset,yt.source)),{value:Ut,index:Je+1};Nt.type===k.COMMA?(en=it.COMMA,Je++):E(S.unexpectedToken(a(Te,Nt.loc.start.offset,Nt.loc.end.offset),yt.source,Nt.loc.start.line,Nt.loc.start.column),Te,yt.source,Nt.loc.start.line,Nt.loc.start.column);break}case it.COMMA:{var jn=Kt(Te,Se,Je,yt);Je=jn.index,Ut.children.push(jn.value),en=it.VALUE;break}}$e(Te,Se,yt)}function Lt(Te,Se,Je,yt){var dt=Se[Je],Ut=null;switch(dt.type){case k.STRING:{Ut=at(Te.slice(dt.loc.start.offset+1,dt.loc.end.offset-1));break}case k.NUMBER:{Ut=Number(dt.value);break}case k.TRUE:{Ut=!0;break}case k.FALSE:{Ut=!1;break}case k.NULL:{Ut=null;break}default:return null}var en={type:"Literal",value:Ut,raw:dt.value};return yt.loc&&(en.loc=dt.loc),{value:en,index:Je+1}}function Kt(Te,Se,Je,yt){var dt=Se[Je],Ut=Lt.apply(void 0,arguments)||wt.apply(void 0,arguments)||ft.apply(void 0,arguments);if(Ut)return Ut;E(S.unexpectedToken(a(Te,dt.loc.start.offset,dt.loc.end.offset),yt.source,dt.loc.start.line,dt.loc.start.column),Te,yt.source,dt.loc.start.line,dt.loc.start.column)}var Fe=function(Te,Se){Se=Object.assign({},We,Se);var Je=be(Te,Se);Je.length===0&&$e(Te,Je,Se);var yt=Kt(Te,Je,0,Se);if(yt.index===Je.length)return yt.value;var dt=Je[yt.index];E(S.unexpectedToken(a(Te,dt.loc.start.offset,dt.loc.end.offset),Se.source,dt.loc.start.line,dt.loc.start.column),Te,Se.source,dt.loc.start.line,dt.loc.start.column)};return Fe})}(Ib)),Ib.exports}var Ble=Ele();const Ole=La(Ble);function or(){var n="/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",e="a994e12e3e6547813b669a430e6cb42da5d99bba",t=globalThis,r="__coverage__",i={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:11,column:0},end:{line:26,column:3}},3:{start:{line:12,column:16},end:{line:12,column:18}},4:{start:{line:13,column:2},end:{line:20,column:4}}, Line truncated
rgba(`+X.r+","+X.g+","+X.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:X.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("+X.r+","+X.g+","+X.b+`, 0) 0%,
rgba(`+X.r+","+X.g+","+X.b+", 1) 100%)"},pointer:{left:0,top:X.a*100+"%"}},overwrite:n({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return r.default.createElement("div",{style:q.alpha},r.default.createElement("div",{style:q.checkboard},r.default.createElement(g.default,{renderers:this.props.renderers})),r.default.createElement("div",{style:q.gradient}),r.default.createElement("div",{style:q.container,ref:function(N){return ne.container=N},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.default.createElement("div",{style:q.pointer},this.props.pointer?r.default.createElement(this.props.pointer,this.props):r.default.createElement("div",{style:q.slider}))))}}]),Y}(t.PureComponent||t.Component);return b1.default=U,b1}var w1={},SK;function oAe(){if(SK)return w1;SK=1,Object.defineProperty(w1,"__esModule",{value:!0}),w1.EditableInput=void 0;var n=function(){function Q(ne,X){for(var q=0;q<X.length;q++){var J=X[q];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(ne,J.key,J)}}return function(ne,X,q){return X&&Q(ne.prototype,X),q&&Q(ne,q),ne}}(),e=Da(),t=o(e),r=mp(),i=o(r);function o(Q){return Q&&Q.__esModule?Q:{default:Q}}function a(Q,ne,X){return ne in Q?Object.defineProperty(Q,ne,{value:X,enumerable:!0,configurable:!0,writable:!0}):Q[ne]=X,Q}function s(Q,ne){if(!(Q instanceof ne))throw new TypeError("Cannot call a class as a function")}function h(Q,ne){if(!Q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne&&(typeof ne=="object"||typeof ne=="function")?ne:Q}function g(Q,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ne);Q.prototype=Object.create(ne&&ne.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),ne&&(Object.setPrototypeOf?Object.setPrototypeOf(Q,ne):Q.__proto__=ne)}var b=1,B=38,S=40,I=[B,S],k=function(ne){return I.indexOf(ne)>-1},U=function(ne){return Number(String(ne).replace(/%/g,""))},z=1,Y=w1.EditableInput=function(Q){g(ne,Q);function ne(X){s(this,ne);var q=h(this,(ne.__proto__||Object.getPrototypeOf(ne)).call(this));return q.handleBlur=function(){q.state.blurValue&&q.setState({value:q.state.blurValue,blurValue:null})},q.handleChange=function(J){q.setUpdatedValue(J.target.value,J)},q.handleKeyDown=function(J){var N=U(J.target.value);if(!isNaN(N)&&k(J.keyCode)){var ie=q.getArrowOffset(),he=J.keyCode===B?N+ie:N-ie;q.setUpdatedValue(he,J)}},q.handleDrag=function(J){if(q.props.dragLabel){var N=Math.round(q.props.value+J.movementX);N>=0&&N<=q.props.dragMax&&q.props.onChange&&q.props.onChange(q.getValueObjectWithLabel(N),J)}},q.handleMouseDown=function(J){q.props.dragLabel&&(J.preventDefault(),q.handleDrag(J),window.addEventListener("mousemove",q.handleDrag),window.addEventListener("mouseup",q.handleMouseUp))},q.handleMouseUp=function(){q.unbindEventListeners()},q.unbindEventListeners=function(){window.removeEventListener("mousemove",q.handleDrag),window.removeEventListener("mouseup",q.handleMouseUp)},q.state={value:String(X.value).toUpperCase(),blurValue:String(X.value).toUpperCase()},q.inputId="rc-editable-input-"+z++,q}return n(ne,[{key:"componentDidUpdate",value:function(q,J){this.props.value!==this.state.value&&(q.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(q){return a({},this.props.label,q)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||b}},{key:"setUpdatedValue",value:function(q,J){var N=this.props.label?this.getValueObjectWithLabel(q):q;this.props.onChange&&this.props.onChange(N,J),this.setState({value:q})}},{key:"render",value:function(){var q=this,J=(0,i.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(ie){return q.input=ie},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)}}]),ne}(e.PureComponent||e.Component);return w Line truncated
rgba(`+X.r+","+X.g+","+X.b+", 1) 100%)"},pointer:{left:0,top:X.a*100+"%"}},overwrite:n({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return r.default.createElement("div",{style:Y.alpha},r.default.createElement("div",{style:Y.checkboard},r.default.createElement(g.default,{renderers:this.props.renderers})),r.default.createElement("div",{style:Y.gradient}),r.default.createElement("div",{style:Y.container,ref:function(N){return re.container=N},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.default.createElement("div",{style:Y.pointer},this.props.pointer?r.default.createElement(this.props.pointer,this.props):r.default.createElement("div",{style:Y.slider}))))}}]),q}(t.PureComponent||t.Component);return x1.default=U,x1}var M1={},WK;function HAe(){if(WK)return M1;WK=1,Object.defineProperty(M1,"__esModule",{value:!0}),M1.EditableInput=void 0;var n=function(){function Q(re,X){for(var Y=0;Y<X.length;Y++){var J=X[Y];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(re,J.key,J)}}return function(re,X,Y){return X&&Q(re.prototype,X),Y&&Q(re,Y),re}}(),e=Fa(),t=s(e),r=mp(),i=s(r);function s(Q){return Q&&Q.__esModule?Q:{default:Q}}function a(Q,re,X){return re in Q?Object.defineProperty(Q,re,{value:X,enumerable:!0,configurable:!0,writable:!0}):Q[re]=X,Q}function o(Q,re){if(!(Q instanceof re))throw new TypeError("Cannot call a class as a function")}function d(Q,re){if(!Q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return re&&(typeof re=="object"||typeof re=="function")?re:Q}function g(Q,re){if(typeof re!="function"&&re!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof re);Q.prototype=Object.create(re&&re.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),re&&(Object.setPrototypeOf?Object.setPrototypeOf(Q,re):Q.__proto__=re)}var b=1,E=38,S=40,O=[E,S],k=function(re){return O.indexOf(re)>-1},U=function(re){return Number(String(re).replace(/%/g,""))},z=1,q=M1.EditableInput=function(Q){g(re,Q);function re(X){o(this,re);var Y=d(this,(re.__proto__||Object.getPrototypeOf(re)).call(this));return Y.handleBlur=function(){Y.state.blurValue&&Y.setState({value:Y.state.blurValue,blurValue:null})},Y.handleChange=function(J){Y.setUpdatedValue(J.target.value,J)},Y.handleKeyDown=function(J){var N=U(J.target.value);if(!isNaN(N)&&k(J.keyCode)){var ie=Y.getArrowOffset(),he=J.keyCode===E?N+ie:N-ie;Y.setUpdatedValue(he,J)}},Y.handleDrag=function(J){if(Y.props.dragLabel){var N=Math.round(Y.props.value+J.movementX);N>=0&&N<=Y.props.dragMax&&Y.props.onChange&&Y.props.onChange(Y.getValueObjectWithLabel(N),J)}},Y.handleMouseDown=function(J){Y.props.dragLabel&&(J.preventDefault(),Y.handleDrag(J),window.addEventListener("mousemove",Y.handleDrag),window.addEventListener("mouseup",Y.handleMouseUp))},Y.handleMouseUp=function(){Y.unbindEventListeners()},Y.unbindEventListeners=function(){window.removeEventListener("mousemove",Y.handleDrag),window.removeEventListener("mouseup",Y.handleMouseUp)},Y.state={value:String(X.value).toUpperCase(),blurValue:String(X.value).toUpperCase()},Y.inputId="rc-editable-input-"+z++,Y}return n(re,[{key:"componentDidUpdate",value:function(Y,J){this.props.value!==this.state.value&&(Y.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(Y){return a({},this.props.label,Y)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||b}},{key:"setUpdatedValue",value:function(Y,J){var N=this.props.label?this.getValueObjectWithLabel(Y):Y;this.props.onChange&&this.props.onChange(N,J),this.setState({value:Y})}},{key:"render",value:function(){var Y=this,J=(0,i.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(ie){return Y.input=ie},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.Component);return M Line truncated
.hue-horizontal {
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
@@ -1004,8 +1004,8 @@ Expecting `+Ce.join(", ")+", got '"+this.terminals_[X]+"'":Pe="Parse error on li
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:ne.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:ne.slider}))))}}]),k}(e.PureComponent||e.Component);return M1.default=S,M1}var S1={},OK;function lAe(){if(OK)return S1;OK=1,Object.defineProperty(S1,"__esModule",{value:!0}),S1.Raised=void 0;var n=Da(),e=h(n),t=hp(),r=h(t),i=mp(),o=h(i),a=kN(),s=h(a);function h(b){return b&&b.__esModule?b:{default:b}}var g=S1.Raised=function(B){var S=B.zDepth,I=B.radius,k=B.background,U=B.children,z=B.styles,Y=z===void 0?{}:z,Q=(0,o.default)((0,s.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+S+"px "+S*4+"px rgba(0,0,0,.24)",borderRadius:I,background:k}},"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%"}}},Y),{"zDepth-1":S===1});return e.default.createElement("div",{style:Q.wrap},e.default.createElement("div",{style:Q.bg}),e.default.createElement("div",{style:Q.content},U))};return g.propTypes={background:r.default.string,zDepth:r.default.oneOf([0,1,2,3,4,5]),radius:r.default.number,styles:r.default.object},g.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},S1.default=g,S1}var E1={},GS,IK;function uAe(){if(IK)return GS;IK=1;var n=pp(),e=function(){return n.Date.now()};return GS=e,GS}var WS,kK;function AAe(){if(kK)return WS;kK=1;var n=/\s/;function e(t){for(var r=t.length;r--&&n.test(t.charAt(r)););return r}return WS=e,WS}var QS,TK;function cAe(){if(TK)return QS;TK=1;var n=AAe(),e=/^\s+/;function t(r){return r&&r.slice(0,n(r)+1).replace(e,"")}return QS=t,QS}var qS,PK;function hAe(){if(PK)return qS;PK=1;var n=cAe(),e=Pf(),t=s3(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;function h(g){if(typeof g=="number")return g;if(t(g))return r;if(e(g)){var b=typeof g.valueOf=="function"?g.valueOf():g;g=e(b)?b+"":b}if(typeof g!="string")return g===0?g:+g;g=n(g);var B=o.test(g);return B||a.test(g)?s(g.slice(2),B?2:8):i.test(g)?r:+g}return qS=h,qS}var YS,RK;function TN(){if(RK)return YS;RK=1;var n=Pf(),e=uAe(),t=hAe(),r="Expected a function",i=Math.max,o=Math.min;function a(s,h,g){var b,B,S,I,k,U,z=0,Y=!1,Q=!1,ne=!0;if(typeof s!="function")throw new TypeError(r);h=t(h)||0,n(g)&&(Y=!!g.leading,Q="maxWait"in g,S=Q?i(t(g.maxWait)||0,h):S,ne="trailing"in g?!!g.trailing:ne);function X(Ce){var Pe=b,de=B;return b=B=void 0,z=Ce,I=s.apply(de,Pe),I}function q(Ce){return z=Ce,k=setTimeout(ie,h),Y?X(Ce):I}function J(Ce){var Pe=Ce-U,de=Ce-z,rt=h-Pe;return Q?o(rt,S-de):rt}function N(Ce){var Pe=Ce-U,de=Ce-z;return U===void 0||Pe>=h||Pe<0||Q&&de>=S}function ie(){var Ce=e();if(N(Ce))return he(Ce);k=setTimeout(ie,J(Ce))}function he(Ce){return k=void 0,ne&&b?X(Ce):(b=B=void 0,I)}function ce(){k!==void 0&&clearTimeout(k),z=0,b=U=B=k=void 0}function we(){return k===void 0?I:he(e())}function pe(){var Ce=e(),Pe=N(Ce);if(b=arguments,B=this,U=Ce,Pe){if(k===void 0)return q(U);if(Q)return clearTimeout(k),k=setTimeout(ie,h),X(U)}return k===void 0&&(k=setTimeout(ie,h)),I}return pe.cancel=ce,pe.flush=we,pe}return YS=a,YS}var $S,KK;function dAe(){if(KK)return $S;KK=1;var n=TN(),e=Pf(),t="Expected a function";function r(i,o,a){var s=!0,h=!0;if(typeof i!="function")throw new TypeError(t);return e(a)&&(s="leading"in a?!!a.leading:s,h="trailing"in a?!!a.trailing:h),n(i,o,{leading:s,maxWait:o,trailing:h})}return $S=r,$S}var hb={},DK;function fAe(){return DK||(DK=1,Object.defineProperty(hb,"__esModule",{value:!0}),hb.calculateChange=function(e,t,r){var i=r.getBoundingClientRect(),o=i.width,a=i.height,s=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,h=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,g=s-(r.getBoundingClientRect().left+window.pageXOffset),b=h-(r.getBoundingClientRect().top+window.pageYOffset);g<0?g=0:g>o&&(g=o),b<0?b=0:b>a&&(b=a);var B=g/o,S=1-b/a;return{h:t.h,s:B,v:S,a:t.a,source:"hsv"}}),hb}var LK;function pAe(){if(LK)return E1;LK=1,Object.defineProperty(E1,"__esModule",{value:!0}),E1.Saturation=void 0;var n=function(){function U(z,Y){for(var Q=0;Q<Y.length;Q++){var ne=Y[Q];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(z,ne.key,ne)}}return function(z,Y,Q){return Y&&U(z.prototype,Y),Q&&U(z,Q),z}}(),e=Da(),t=b(e),r=mp(),i=b(r),o=dAe(),a=b(o),s=fAe(),h=g(s);function g(U){if(U&&U.__esModule)return U;var z={};if(U!=null)for(var Y in U)Object.prototype.hasOwnProperty.call(U,Y)&&(z[Y]=U[Y]);return z.default=U,z}function b(U){retur Line truncated
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:X,white:q,black:J,pointer:N,circle:ie}},{custom:!!this.props.style});return t.default.createElement("div",{style:he.color,ref:function(we){return Q.container=we},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.default.createElement("style",null,`
`),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}))))}}]),k}(e.PureComponent||e.Component);return S1.default=S,S1}var E1={},YK;function JAe(){if(YK)return E1;YK=1,Object.defineProperty(E1,"__esModule",{value:!0}),E1.Raised=void 0;var n=Fa(),e=d(n),t=dp(),r=d(t),i=mp(),s=d(i),a=hG(),o=d(a);function d(b){return b&&b.__esModule?b:{default:b}}var g=E1.Raised=function(E){var S=E.zDepth,O=E.radius,k=E.background,U=E.children,z=E.styles,q=z===void 0?{}:z,Q=(0,s.default)((0,o.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+S+"px "+S*4+"px rgba(0,0,0,.24)",borderRadius:O,background:k}},"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%"}}},q),{"zDepth-1":S===1});return e.default.createElement("div",{style:Q.wrap},e.default.createElement("div",{style:Q.bg}),e.default.createElement("div",{style:Q.content},U))};return g.propTypes={background:r.default.string,zDepth:r.default.oneOf([0,1,2,3,4,5]),radius:r.default.number,styles:r.default.object},g.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},E1.default=g,E1}var B1={},WS,$K;function ece(){if($K)return WS;$K=1;var n=pp(),e=function(){return n.Date.now()};return WS=e,WS}var QS,VK;function tce(){if(VK)return QS;VK=1;var n=/\s/;function e(t){for(var r=t.length;r--&&n.test(t.charAt(r)););return r}return QS=e,QS}var qS,HK;function nce(){if(HK)return qS;HK=1;var n=tce(),e=/^\s+/;function t(r){return r&&r.slice(0,n(r)+1).replace(e,"")}return qS=t,qS}var YS,ZK;function rce(){if(ZK)return YS;ZK=1;var n=nce(),e=Pf(),t=o3(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,o=parseInt;function d(g){if(typeof g=="number")return g;if(t(g))return r;if(e(g)){var b=typeof g.valueOf=="function"?g.valueOf():g;g=e(b)?b+"":b}if(typeof g!="string")return g===0?g:+g;g=n(g);var E=s.test(g);return E||a.test(g)?o(g.slice(2),E?2:8):i.test(g)?r:+g}return YS=d,YS}var $S,XK;function fG(){if(XK)return $S;XK=1;var n=Pf(),e=ece(),t=rce(),r="Expected a function",i=Math.max,s=Math.min;function a(o,d,g){var b,E,S,O,k,U,z=0,q=!1,Q=!1,re=!0;if(typeof o!="function")throw new TypeError(r);d=t(d)||0,n(g)&&(q=!!g.leading,Q="maxWait"in g,S=Q?i(t(g.maxWait)||0,d):S,re="trailing"in g?!!g.trailing:re);function X(be){var Pe=b,pe=E;return b=E=void 0,z=be,O=o.apply(pe,Pe),O}function Y(be){return z=be,k=setTimeout(ie,d),q?X(be):O}function J(be){var Pe=be-U,pe=be-z,it=d-Pe;return Q?s(it,S-pe):it}function N(be){var Pe=be-U,pe=be-z;return U===void 0||Pe>=d||Pe<0||Q&&pe>=S}function ie(){var be=e();if(N(be))return he(be);k=setTimeout(ie,J(be))}function he(be){return k=void 0,re&&b?X(be):(b=E=void 0,O)}function de(){k!==void 0&&clearTimeout(k),z=0,b=U=E=k=void 0}function we(){return k===void 0?O:he(e())}function fe(){var be=e(),Pe=N(be);if(b=arguments,E=this,U=be,Pe){if(k===void 0)return Y(U);if(Q)return clearTimeout(k),k=setTimeout(ie,d),X(U)}return k===void 0&&(k=setTimeout(ie,d)),O}return fe.cancel=de,fe.flush=we,fe}return $S=a,$S}var VS,JK;function ice(){if(JK)return VS;JK=1;var n=fG(),e=Pf(),t="Expected a function";function r(i,s,a){var o=!0,d=!0;if(typeof i!="function")throw new TypeError(t);return e(a)&&(o="leading"in a?!!a.leading:o,d="trailing"in a?!!a.trailing:d),n(i,s,{leading:o,maxWait:s,trailing:d})}return VS=r,VS}var db={},eD;function oce(){return eD||(eD=1,Object.defineProperty(db,"__esModule",{value:!0}),db.calculateChange=function(e,t,r){var i=r.getBoundingClientRect(),s=i.width,a=i.height,o=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,d=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,g=o-(r.getBoundingClientRect().left+window.pageXOffset),b=d-(r.getBoundingClientRect().top+window.pageYOffset);g<0?g=0:g>s&&(g=s),b<0?b=0:b>a&&(b=a);var E=g/s,S=1-b/a;return{h:t.h,s:E,v:S,a:t.a,source:"hsv"}}),db}var tD;function sce(){if(tD)return B1;tD=1,Object.defineProperty(B1,"__esModule",{value:!0}),B1.Saturation=void 0;var n=function(){function U(z,q){for(var Q=0;Q<q.length;Q++){var re=q[Q];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(z,re.key,re)}}return function(z,q,Q){return q&&U(z.prototype,q),Q&&U(z,Q),z}}(),e=Fa(),t=b(e),r=mp(),i=b(r),s=ice(),a=b(s),o=oce(),d=g(o);function g(U){if(U&&U.__esModule)return U;var z={};if(U!=null)for(var q in U)Object.prototype.hasOwnProperty.call(U,q)&&(z[q]=U[q]);return z.default=U,z}function b(U){retur Line truncated
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:X,white:Y,black:J,pointer:N,circle:ie}},{custom:!!this.props.style});return t.default.createElement("div",{style:he.color,ref:function(we){return Q.container=we},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));
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
@@ -1014,14 +1014,14 @@ Expecting `+Ce.join(", ")+", got '"+this.terminals_[X]+"'":Pe="Parse error on li
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:he.white,className:"saturation-white"},t.default.createElement("div",{style:he.black,className:"saturation-black"}),t.default.createElement("div",{style:he.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:he.circle}))))}}]),z}(e.PureComponent||e.Component);return E1.default=k,E1}var B1={},jh={},VS,FK;function mAe(){if(FK)return VS;FK=1;var n=CN(),e=_N(),t=oN(),r=Jd();function i(o,a){var s=r(o)?n:e;return s(o,t(a))}return VS=i,VS}var HS,UK;function gAe(){return UK||(UK=1,HS=mAe()),HS}var kb={exports:{}},yAe=kb.exports,zK;function vAe(){return zK||(zK=1,function(n,e){(function(t,r){n.exports=r()})(yAe,function(){function t(De){"@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(De)}var r=/^\s+/,i=/\s+$/;function o(De,ke){if(De=De||"",ke=ke||{},De instanceof o)return De;if(!(this instanceof o))return new o(De,ke);var Oe=a(De);this._originalInput=De,this._r=Oe.r,this._g=Oe.g,this._b=Oe.b,this._a=Oe.a,this._roundA=Math.round(100*this._a)/100,this._format=ke.format||Oe.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=Oe.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(),Oe,Je,Mt,gt,Nt,nn;return Oe=ke.r/255,Je=ke.g/255,Mt=ke.b/255,Oe<=.03928?gt=Oe/12.92:gt=Math.pow((Oe+.055)/1.055,2.4),Je<=.03928?Nt=Je/12.92:Nt=Math.pow((Je+.055)/1.055,2.4),Mt<=.03928?nn=Mt/12.92:nn=Math.pow((Mt+.055)/1.055,2.4),.2126*gt+.7152*Nt+.0722*nn},setAlpha:function(ke){return this._a=Pe(ke),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var ke=b(this._r,this._g,this._b);return{h:ke.h*360,s:ke.s,v:ke.v,a:this._a}},toHsvString:function(){var ke=b(this._r,this._g,this._b),Oe=Math.round(ke.h*360),Je=Math.round(ke.s*100),Mt=Math.round(ke.v*100);return this._a==1?"hsv("+Oe+", "+Je+"%, "+Mt+"%)":"hsva("+Oe+", "+Je+"%, "+Mt+"%, "+this._roundA+")"},toHsl:function(){var ke=h(this._r,this._g,this._b);return{h:ke.h*360,s:ke.s,l:ke.l,a:this._a}},toHslString:function(){var ke=h(this._r,this._g,this._b),Oe=Math.round(ke.h*360),Je=Math.round(ke.s*100),Mt=Math.round(ke.l*100);return this._a==1?"hsl("+Oe+", "+Je+"%, "+Mt+"%)":"hsla("+Oe+", "+Je+"%, "+Mt+"%, "+this._roundA+")"},toHex:function(ke){return S(this._r,this._g,this._b,ke)},toHexString:function(ke){return"#"+this.toHex(ke)},toHex8:function(ke){return I(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(de(this._r,255)*100)+"%",g:Math.round(de(this._g,255)*100)+"%",b:Math.round(de(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(de(this._r,255)*100)+"%, "+Math.round(de(this._g,255)*100)+"%, "+Math.round(de(this._b,255)*100)+"%)":"rgba("+Math.round(de(this._r,255)*100)+"%, "+Math.round(de(this._g,255)*100)+"%, "+Math.round(de(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:pe[S(this._r,this._g,this._b,!0)]||!1},toFilter:function(ke){var Oe="#"+k(this._r,this._g,this._b,this._a),Je=Oe,Mt=this._gradientType?"GradientType = 1, ":"";if(ke){var gt=o(ke);Je="#"+k(gt._r,gt._g,gt._b,gt._a)}return"progid:DXImageTransform.Microsoft.gradient("+Mt+"startColorstr="+Oe+",endColorstr="+Je+")"},toString:function(ke){var Oe=!!ke;ke=ke||this._format;var Je=!1,Mt=this._a<1&&this._a>=0,gt=!Oe&&Mt&&(ke==="hex"||ke==="hex6"||ke==="hex3"||ke==="hex4"||ke==="hex8"||ke==="name");return gt?ke==="name"&&this._a===0?this.toName():this.toRgbString():(ke==="rgb"&&(Je=this.toRgbString()),ke==="prgb"&&(Je=this.toPercentageRgbString()),(ke==="hex"||ke==="hex6")&&(Je=this.toHexString()),ke==="hex3"&&(Je=this.toHexString(!0)),ke==="hex4"&&(Je=this.toHex8String(!0)),ke==="hex8"&&(Je=this.toHex8String()),ke==="name"&&(Je=this.toName()),ke==="hsl"&&(Je=this.toHslString()),ke==="hsv"&&(Je=this.toHsvString()),Je||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(ke,Oe){var Je=ke.apply(nu Line truncated
`),t.default.createElement("div",{style:he.white,className:"saturation-white"},t.default.createElement("div",{style:he.black,className:"saturation-black"}),t.default.createElement("div",{style:he.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:he.circle}))))}}]),z}(e.PureComponent||e.Component);return B1.default=k,B1}var O1={},jd={},HS,nD;function ace(){if(nD)return HS;nD=1;var n=rG(),e=nG(),t=jN(),r=Jh();function i(s,a){var o=r(s)?n:e;return o(s,t(a))}return HS=i,HS}var ZS,rD;function lce(){return rD||(rD=1,ZS=ace()),ZS}var kb={exports:{}},uce=kb.exports,iD;function Ace(){return iD||(iD=1,function(n,e){(function(t,r){n.exports=r()})(uce,function(){function t(Fe){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Te){return typeof Te}:function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},t(Fe)}var r=/^\s+/,i=/\s+$/;function s(Fe,Te){if(Fe=Fe||"",Te=Te||{},Fe instanceof s)return Fe;if(!(this instanceof s))return new s(Fe,Te);var Se=a(Fe);this._originalInput=Fe,this._r=Se.r,this._g=Se.g,this._b=Se.b,this._a=Se.a,this._roundA=Math.round(100*this._a)/100,this._format=Te.format||Se.format,this._gradientType=Te.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=Se.ok}s.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 Te=this.toRgb();return(Te.r*299+Te.g*587+Te.b*114)/1e3},getLuminance:function(){var Te=this.toRgb(),Se,Je,yt,dt,Ut,en;return Se=Te.r/255,Je=Te.g/255,yt=Te.b/255,Se<=.03928?dt=Se/12.92:dt=Math.pow((Se+.055)/1.055,2.4),Je<=.03928?Ut=Je/12.92:Ut=Math.pow((Je+.055)/1.055,2.4),yt<=.03928?en=yt/12.92:en=Math.pow((yt+.055)/1.055,2.4),.2126*dt+.7152*Ut+.0722*en},setAlpha:function(Te){return this._a=Pe(Te),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Te=b(this._r,this._g,this._b);return{h:Te.h*360,s:Te.s,v:Te.v,a:this._a}},toHsvString:function(){var Te=b(this._r,this._g,this._b),Se=Math.round(Te.h*360),Je=Math.round(Te.s*100),yt=Math.round(Te.v*100);return this._a==1?"hsv("+Se+", "+Je+"%, "+yt+"%)":"hsva("+Se+", "+Je+"%, "+yt+"%, "+this._roundA+")"},toHsl:function(){var Te=d(this._r,this._g,this._b);return{h:Te.h*360,s:Te.s,l:Te.l,a:this._a}},toHslString:function(){var Te=d(this._r,this._g,this._b),Se=Math.round(Te.h*360),Je=Math.round(Te.s*100),yt=Math.round(Te.l*100);return this._a==1?"hsl("+Se+", "+Je+"%, "+yt+"%)":"hsla("+Se+", "+Je+"%, "+yt+"%, "+this._roundA+")"},toHex:function(Te){return S(this._r,this._g,this._b,Te)},toHexString:function(Te){return"#"+this.toHex(Te)},toHex8:function(Te){return O(this._r,this._g,this._b,this._a,Te)},toHex8String:function(Te){return"#"+this.toHex8(Te)},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(pe(this._r,255)*100)+"%",g:Math.round(pe(this._g,255)*100)+"%",b:Math.round(pe(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(pe(this._r,255)*100)+"%, "+Math.round(pe(this._g,255)*100)+"%, "+Math.round(pe(this._b,255)*100)+"%)":"rgba("+Math.round(pe(this._r,255)*100)+"%, "+Math.round(pe(this._g,255)*100)+"%, "+Math.round(pe(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:fe[S(this._r,this._g,this._b,!0)]||!1},toFilter:function(Te){var Se="#"+k(this._r,this._g,this._b,this._a),Je=Se,yt=this._gradientType?"GradientType = 1, ":"";if(Te){var dt=s(Te);Je="#"+k(dt._r,dt._g,dt._b,dt._a)}return"progid:DXImageTransform.Microsoft.gradient("+yt+"startColorstr="+Se+",endColorstr="+Je+")"},toString:function(Te){var Se=!!Te;Te=Te||this._format;var Je=!1,yt=this._a<1&&this._a>=0,dt=!Se&&yt&&(Te==="hex"||Te==="hex6"||Te==="hex3"||Te==="hex4"||Te==="hex8"||Te==="name");return dt?Te==="name"&&this._a===0?this.toName():this.toRgbString():(Te==="rgb"&&(Je=this.toRgbString()),Te==="prgb"&&(Je=this.toPercentageRgbString()),(Te==="hex"||Te==="hex6")&&(Je=this.toHexString()),Te==="hex3"&&(Je=this.toHexString(!0)),Te==="hex4"&&(Je=this.toHex8String(!0)),Te==="hex8"&&(Je=this.toHex8String()),Te==="name"&&(Je=this.toName()),Te==="hsl"&&(Je=this.toHslString()),Te==="hsv"&&(Je=this.toHsvString()),Je||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(Te,Se){var Je=Te.apply(nu Line truncated
<html>
<head>
<meta charset="utf-8" />
<title>${t}</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<script src="https://unpkg.com/maplibre-gl@${fD}/dist/maplibre-gl.js"><\/script>
<link href="https://unpkg.com/maplibre-gl@${fD}/dist/maplibre-gl.css" rel="stylesheet" />
<script src="https://unpkg.com/maplibre-gl@${TD}/dist/maplibre-gl.js"><\/script>
<link href="https://unpkg.com/maplibre-gl@${TD}/dist/maplibre-gl.css" rel="stylesheet" />
<style>
body { margin: 0; padding: 0; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; }
@@ -1038,11 +1038,11 @@ Expecting `+Ce.join(", ")+", got '"+this.terminals_[X]+"'":Pe="Parse error on li
<\/script>
</body>
</html>
`),i=(Vr().s[9]++,new Blob([r],{type:"text/html;charset=utf-8"})),o=(Vr().s[10]++,this.exportName());Vr().s[11]++,dD.saveAs(i,o+".html")}async saveStyle(){Vr().f[3]++;const e=(Vr().s[12]++,this.tokenizedStyle());if(Vr().s[13]++,pD)Vr().b[2][1]++;else{Vr().b[2][0]++;const i=(Vr().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),o=(Vr().s[15]++,this.exportName());Vr().s[16]++,dD.saveAs(i,o+".json"),Vr().s[17]++;return}let t=(Vr().s[18]++,this.props.fileHandle);if(Vr().s[19]++,t==null)if(Vr().b[3][0]++,Vr().s[20]++,t=await this.createFileHandle(),Vr().s[21]++,this.props.onSetFileHandle(t),Vr().s[22]++,t==null){Vr().b[4][0]++,Vr().s[23]++;return}else Vr().b[4][1]++;else Vr().b[3][1]++;const r=(Vr().s[24]++,await t.createWritable());Vr().s[25]++,await r.write(e),Vr().s[26]++,await r.close(),Vr().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){Vr().f[4]++;const e=(Vr().s[28]++,this.tokenizedStyle()),t=(Vr().s[29]++,await this.createFileHandle());if(Vr().s[30]++,this.props.onSetFileHandle(t),Vr().s[31]++,t==null){Vr().b[5][0]++,Vr().s[32]++;return}else Vr().b[5][1]++;const r=(Vr().s[33]++,await t.createWritable());Vr().s[34]++,await r.write(e),Vr().s[35]++,await r.close(),Vr().s[36]++,this.props.onOpenToggle()}async createFileHandle(){Vr().f[5]++;const e=(Vr().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(Vr().s[38]++,await window.showSaveFilePicker(e));return Vr().s[39]++,this.props.onSetFileHandle(t),Vr().s[40]++,t}changeMetadataProperty(e,t){Vr().f[6]++;const r=(Vr().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});Vr().s[42]++,this.props.onStyleChanged(r)}render(){Vr().f[7]++;const e=(Vr().s[43]++,this.props.t),t=(Vr().s[44]++,HN(e));return Vr().s[45]++,ae.jsx(L0,{"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(Np,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(Vr().b[6][0]++,this.props.mapStyle.metadata||(Vr().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),ae.jsx(Np,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(Vr().b[7][0]++,this.props.mapStyle.metadata||(Vr().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),ae.jsx(Np,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(Vr().b[8][0]++,this.props.mapStyle.metadata||(Vr().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")})]}),ae.jsxs("div",{className:"maputnik-modal-export-buttons",children:[ae.jsxs(Ya,{onClick:this.saveStyle.bind(this),children:[ae.jsx(t6,{}),e("Save")]}),(Vr().b[9][0]++,pD&&(Vr().b[9][1]++,ae.jsxs(Ya,{onClick:this.saveStyleAs.bind(this),children:[ae.jsx(t6,{}),e("Save as")]}))),ae.jsxs(Ya,{onClick:this.createHtml.bind(this),children:[ae.jsx(RV,{}),e("Create HTML")]})]})]})})}}const xhe=(Vr().s[46]++,$s()(bhe));function q2(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="950dd35e62562a3439b74678b95f406e749c6958",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:139}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:2},end:{line:6,column:3}},loc:{start:{line:6,column:11},end:{line:8,column:3}},line:6}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAWM;AAXN,OAAO,WAAW;AAClB,OAAO,uBAA2E;AAClF,OAAO,cAAc;AAMrB,qBAAqB,0BAA0B,MAAM,UAAkC;AAAA,EACrF,SAAS;AACP,WAAO,oBAAC,YAAS,OAAO,KAAK,MAAM,OACjC,8BAAC,qBAAmB,GAAG,KAAK,OAAO,GACrC;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"950dd35e62562a3439b74678b95f406e749c6958"},o=t[r]||(t[r]={});(!o[n]||o[n].hash!==e)&&(o[n]=i);var a=o[n];return q2=function(){return a},a}q2();class eG extends Xn.Component{render(){return q2().f[0]++,q2().s[0]++,ae.jsx(M_,{label:this.props.label,children:ae.jsx(FN,{...this.props})})}}function Y2(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldCheckbox.tsx",e="a27c35e986d22656fa80c276efb67df518853ac2",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldCheckbox.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:132}}},fnMap:{0:{name:"(anonymous_0)",decl:{s Line truncated
`)>=0)return!1;return!0}function Xe(it,Kt){var Ye;if(it.indent===" ")Ye=" ";else if(typeof it.indent=="number"&&it.indent>0)Ye=ie.call(Array(it.indent+1)," ");else return null;return{base:Ye,prev:ie.call(Array(Kt+1),Ye)}}function Bt(it,Kt){if(it.length===0)return"";var Ye=`
`+Kt.prev+Kt.base;return Ye+ie.call(it,","+Ye)+`
`+Kt.prev}function Yt(it,Kt){var Ye=mt(it),fe=[];if(Ye){fe.length=it.length;for(var xe=0;xe<it.length;xe++)fe[xe]=Nt(it,xe)?Kt(it[xe],it):""}var p=typeof pe=="function"?pe(it):[],Ne;if(Pe){Ne={};for(var dt=0;dt<p.length;dt++)Ne["$"+p[dt]]=p[dt]}for(var pt in it)Nt(it,pt)&&(Ye&&String(Number(pt))===pt&&pt<it.length||Pe&&Ne["$"+pt]instanceof Symbol||(J.call(/[^\w$]/,pt)?fe.push(Kt(pt,it)+": "+Kt(it[pt],it)):fe.push(pt+": "+Kt(it[pt],it))));if(typeof pe=="function")for(var Ot=0;Ot<p.length;Ot++)rt.call(it,p[Ot])&&fe.push("["+Kt(p[Ot])+"]: "+Kt(it[p[Ot]],it));return fe}return wE}var ME,ND;function _de(){if(ND)return ME;ND=1;var n=Ny(),e=pde(),t=vde(),r=iC(),i=n("%WeakMap%",!0),o=n("%Map%",!0),a=e("WeakMap.prototype.get",!0),s=e("WeakMap.prototype.set",!0),h=e("WeakMap.prototype.has",!0),g=e("Map.prototype.get",!0),b=e("Map.prototype.set",!0),B=e("Map.prototype.has",!0),S=function(z,Y){for(var Q=z,ne;(ne=Q.next)!==null;Q=ne)if(ne.key===Y)return Q.next=ne.next,ne.next=z.next,z.next=ne,ne},I=function(z,Y){var Q=S(z,Y);return Q&&Q.value},k=function(z,Y,Q){var ne=S(z,Y);ne?ne.value=Q:z.next={key:Y,next:z.next,value:Q}},U=function(z,Y){return!!S(z,Y)};return ME=function(){var Y,Q,ne,X={assert:function(q){if(!X.has(q))throw new r("Side channel does not contain "+t(q))},get:function(q){if(i&&q&&(typeof q=="object"||typeof q=="function")){if(Y)return a(Y,q)}else if(o){if(Q)return g(Q,q)}else if(ne)return I(ne,q)},has:function(q){if(i&&q&&(typeof q=="object"||typeof q=="function")){if(Y)return h(Y,q)}else if(o){if(Q)return B(Q,q)}else if(ne)return U(ne,q);return!1},set:function(q,J){i&&q&&(typeof q=="object"||typeof q=="function")?(Y||(Y=new i),s(Y,q,J)):o?(Q||(Q=new o),b(Q,q,J)):(ne||(ne={key:{},next:null}),k(ne,q,J))}};return X},ME}var SE,GD;function TI(){if(GD)return SE;GD=1;var n=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return SE={default:t.RFC3986,formatters:{RFC1738:function(r){return n.call(r,e,"+")},RFC3986:function(r){return String(r)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},SE}var EE,WD;function aG(){if(WD)return EE;WD=1;var n=TI(),e=Object.prototype.hasOwnProperty,t=Array.isArray,r=function(){for(var z=[],Y=0;Y<256;++Y)z.push("%"+((Y<16?"0":"")+Y.toString(16)).toUpperCase());return z}(),i=function(Y){for(;Y.length>1;){var Q=Y.pop(),ne=Q.obj[Q.prop];if(t(ne)){for(var X=[],q=0;q<ne.length;++q)typeof ne[q]<"u"&&X.push(ne[q]);Q.obj[Q.prop]=X}}},o=function(Y,Q){for(var ne=Q&&Q.plainObjects?{__proto__:null}:{},X=0;X<Y.length;++X)typeof Y[X]<"u"&&(ne[X]=Y[X]);return ne},a=function z(Y,Q,ne){if(!Q)return Y;if(typeof Q!="object"&&typeof Q!="function"){if(t(Y))Y.push(Q);else if(Y&&typeof Y=="object")(ne&&(ne.plainObjects||ne.allowPrototypes)||!e.call(Object.prototype,Q))&&(Y[Q]=!0);else return[Y,Q];return Y}if(!Y||typeof Y!="object")return[Y].concat(Q);var X=Y;return t(Y)&&!t(Q)&&(X=o(Y,ne)),t(Y)&&t(Q)?(Q.forEach(function(q,J){if(e.call(Y,J)){var N=Y[J];N&&typeof N=="object"&&q&&typeof q=="object"?Y[J]=z(N,q,ne):Y.push(q)}else Y[J]=q}),Y):Object.keys(Q).reduce(function(q,J){var N=Q[J];return e.call(q,J)?q[J]=z(q[J],N,ne):q[J]=N,q},X)},s=function(Y,Q){return Object.keys(Q).reduce(function(ne,X){return ne[X]=Q[X],ne},Y)},h=function(z,Y,Q){var ne=z.replace(/\+/g," ");if(Q==="iso-8859-1")return ne.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(ne)}catch{return ne}},g=1024,b=function(Y,Q,ne,X,q){if(Y.length===0)return Y;var J=Y;if(typeof Y=="symbol"?J=Symbol.prototype.toString.call(Y):typeof Y!="string"&&(J=String(Y)),ne==="iso-8859-1")return escape(J).replace(/%u[0-9a-f]{4}/gi,function(Ce){return"%26%23"+parseInt(Ce.slice(2),16)+"%3B"});for(var N="",ie=0;ie<J.length;ie+=g){for(var he=J.length>=g?J.slice(ie,ie+g):J,ce=[],we=0;we<he.length;++we){var pe=he.charCodeAt(we);if(pe===45||pe===46||pe===95||pe===126||pe>=48&&pe<=57||pe>=65&&pe<=90||pe>=97&&pe<=122||q===n.RFC1738&&(pe===40||pe===41)){ce[ce.length]=he.charAt(we);continue}if(pe<128){ce[ce.length]=r[pe];continue}if(pe<2048){ce[ce.length]=r[192|pe>>6]+r[128|pe&63];continue}if(pe<55296||pe>=57344){ce[ce.length]=r[224|pe>>12]+r[128|pe>>6&63]+r[128|pe&63];continue}we+=1,pe=65536+((pe&1023)<<10|he.charCodeAt(we)&1023),ce[ce.length]=r[240|pe>>18]+r[128|pe>>12&63]+r[128|pe>>6&63]+r[128|pe&63]}N+=ce.join("")}return N},B=function(Y){for(var Q=[{obj:{o:Y},prop:"o"}],ne=[],X=0;X<Q.length;++X)for(var q=Q[X],J=q.obj[q.prop],N=Object.keys(J),ie=0;ie<N.length;++ie){var he=N[ie],ce=J[he];typeof ce=="object"&&ce!==null&&ne.indexOf(ce)===-1&&(Q.push({obj:J,prop:he}),ne.push(ce))}return i(Q),Y},S=function(Y){return Object.prototype.toString.call(Y)==="[object RegExp]"},I=function(Y){return!Y||typeof Y!="object"?!1:!!(Y.constructor&&Y.constructor.isBuffer&&Y.constructor.isBuffer(Y))},k=function(Y,Q){return[].concat(Y,Q)},U=function(Y,Q){if(t(Y)){for(var ne=[],X=0;X<Y.length;X+=1)ne.push(Q(Y[X]));return ne}return Q(Y)};return EE={arrayToObject:o,assign:s,combine:k,compact:B,decode:h,encode:b,isBuffer:I,isRegExp:S,maybeMap:U,merge:a},EE}var BE Line truncated
`," "],a=["{","}","|","\\","^","`"].concat(o),s=["'"].concat(a),h=["%","/","?",";","#"].concat(s),g=["/","?","#"],b=255,B=/^[+a-z0-9A-Z_-]{0,63}$/,S=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,I={javascript:!0,"javascript:":!0},k={javascript:!0,"javascript:":!0},U={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},z=xde();function Y(q,J,N){if(q&&typeof q=="object"&&q instanceof e)return q;var ie=new e;return ie.parse(q,J,N),ie}e.prototype.parse=function(q,J,N){if(typeof q!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof q);var ie=q.indexOf("?"),he=ie!==-1&&ie<q.indexOf("#")?"?":"#",ce=q.split(he),we=/\\/g;ce[0]=ce[0].replace(we,"/"),q=ce.join(he);var pe=q;if(pe=pe.trim(),!N&&q.split("#").length===1){var Ce=i.exec(pe);if(Ce)return this.path=pe,this.href=pe,this.pathname=Ce[1],Ce[2]?(this.search=Ce[2],J?this.query=z.parse(this.search.substr(1)):this.query=this.search.substr(1)):J&&(this.search="",this.query={}),this}var Pe=t.exec(pe);if(Pe){Pe=Pe[0];var de=Pe.toLowerCase();this.protocol=de,pe=pe.substr(Pe.length)}if(N||Pe||pe.match(/^\/\/[^@/]+@[^@/]+/)){var rt=pe.substr(0,2)==="//";rt&&!(Pe&&k[Pe])&&(pe=pe.substr(2),this.slashes=!0)}if(!k[Pe]&&(rt||Pe&&!U[Pe])){for(var ze=-1,Qe=0;Qe<g.length;Qe++){var ut=pe.indexOf(g[Qe]);ut!==-1&&(ze===-1||ut<ze)&&(ze=ut)}var Te,Ue;ze===-1?Ue=pe.lastIndexOf("@"):Ue=pe.lastIndexOf("@",ze),Ue!==-1&&(Te=pe.slice(0,Ue),pe=pe.slice(Ue+1),this.auth=decodeURIComponent(Te)),ze=-1;for(var Qe=0;Qe<h.length;Qe++){var ut=pe.indexOf(h[Qe]);ut!==-1&&(ze===-1||ut<ze)&&(ze=ut)}ze===-1&&(ze=pe.length),this.host=pe.slice(0,ze),pe=pe.slice(ze),this.parseHost(),this.hostname=this.hostname||"";var st=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!st)for(var wt=this.hostname.split(/\./),Qe=0,mt=wt.length;Qe<mt;Qe++){var ft=wt[Qe];if(ft&&!ft.match(B)){for(var Ut="",Lt=0,De=ft.length;Lt<De;Lt++)ft.charCodeAt(Lt)>127?Ut+="x":Ut+=ft[Lt];if(!Ut.match(B)){var ke=wt.slice(0,Qe),Oe=wt.slice(Qe+1),Je=ft.match(S);Je&&(ke.push(Je[1]),Oe.unshift(Je[2])),Oe.length&&(pe="/"+Oe.join(".")+pe),this.hostname=ke.join(".");break}}}this.hostname.length>b?this.hostname="":this.hostname=this.hostname.toLowerCase(),st||(this.hostname=n.toASCII(this.hostname));var Mt=this.port?":"+this.port:"",gt=this.hostname||"";this.host=gt+Mt,this.href+=this.host,st&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),pe[0]!=="/"&&(pe="/"+pe))}if(!I[de])for(var Qe=0,mt=s.length;Qe<mt;Qe++){var Nt=s[Qe];if(pe.indexOf(Nt)!==-1){var nn=encodeURIComponent(Nt);nn===Nt&&(nn=escape(Nt)),pe=pe.split(Nt).join(nn)}}var en=pe.indexOf("#");en!==-1&&(this.hash=pe.substr(en),pe=pe.slice(0,en));var Sn=pe.indexOf("?");if(Sn!==-1?(this.search=pe.substr(Sn),this.query=pe.substr(Sn+1),J&&(this.query=z.parse(this.query)),pe=pe.slice(0,Sn)):J&&(this.search="",this.query={}),pe&&(this.pathname=pe),U[de]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Mt=this.pathname||"",Yn=this.search||"";this.path=Mt+Yn}return this.href=this.format(),this};function Q(q){return typeof q=="string"&&(q=Y(q)),q instanceof e?q.format():e.prototype.format.call(q)}e.prototype.format=function(){var q=this.auth||"";q&&(q=encodeURIComponent(q),q=q.replace(/%3A/i,":"),q+="@");var J=this.protocol||"",N=this.pathname||"",ie=this.hash||"",he=!1,ce="";this.host?he=q+this.host:this.hostname&&(he=q+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(he+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(ce=z.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var we=this.search||ce&&"?"+ce||"";return J&&J.substr(-1)!==":"&&(J+=":"),this.slashes||(!J||U[J])&&he!==!1?(he="//"+(he||""),N&&N.charAt(0)!=="/"&&(N="/"+N)):he||(he=""),ie&&ie.charAt(0)!=="#"&&(ie="#"+ie),we&&we.charAt(0)!=="?"&&(we="?"+we),N=N.replace(/[?#]/g,function(pe){return encodeURIComponent(pe)}),we=we.replace("#","%23"),J+he+N+we+ie};function ne(q,J){return Y(q,!1,!0).resolve(J)}e.prototype.resolve=function(q){return this.resolveObject(Y(q,!1,!0)).format()};function X(q,J){return q?Y(q,!1,!0).resolveObject(J):J}return e.prototype.resolveObject=function(q){if(typeof q=="string"){var J=new e;J.parse(q,!1,!0),q=J}for(var N=new e,ie=Object.keys(this),he=0;he<ie.length;he++){var ce=ie[he];N[ce]=this[ce]}if(N.hash=q.hash,q.href==="")return N.href=N.format(),N;if(q.slashes&&!q.protocol){for(var we=Object.keys(q),pe=0;pe<we.length;pe++){var Ce=we[pe];Ce!=="protocol"&&(N[Ce]=q[Ce])}return U[N.protocol]&&N.hostname&&!N.pathname&&(N.pathname="/",N.path=N.pathname),N.href=N.format(),N}if(q.protocol&&q.protocol!==N.protocol){if(!U[q.protocol]){for(var Pe=Object.keys(q),de=0;de<Pe.length;de++){var rt=Pe[de];N[rt]=q[rt]}return N.href=N.format(),N}if(N.protocol=q.protocol,!q.host&&!k[q.protocol]){for(var mt=(q.pathname||"").split("/");mt.length&&!(q.host=mt.shift()););q.host||(q.host=""),q.hostname||(q.hostname=""),mt[0] Line truncated
`),i=(Vr().s[9]++,new Blob([r],{type:"text/html;charset=utf-8"})),s=(Vr().s[10]++,this.exportName());Vr().s[11]++,kD.saveAs(i,s+".html")}async saveStyle(){Vr().f[3]++;const e=(Vr().s[12]++,this.tokenizedStyle());if(Vr().s[13]++,PD)Vr().b[2][1]++;else{Vr().b[2][0]++;const i=(Vr().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),s=(Vr().s[15]++,this.exportName());Vr().s[16]++,kD.saveAs(i,s+".json"),Vr().s[17]++;return}let t=(Vr().s[18]++,this.props.fileHandle);if(Vr().s[19]++,t==null)if(Vr().b[3][0]++,Vr().s[20]++,t=await this.createFileHandle(),Vr().s[21]++,this.props.onSetFileHandle(t),Vr().s[22]++,t==null){Vr().b[4][0]++,Vr().s[23]++;return}else Vr().b[4][1]++;else Vr().b[3][1]++;const r=(Vr().s[24]++,await t.createWritable());Vr().s[25]++,await r.write(e),Vr().s[26]++,await r.close(),Vr().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){Vr().f[4]++;const e=(Vr().s[28]++,this.tokenizedStyle()),t=(Vr().s[29]++,await this.createFileHandle());if(Vr().s[30]++,this.props.onSetFileHandle(t),Vr().s[31]++,t==null){Vr().b[5][0]++,Vr().s[32]++;return}else Vr().b[5][1]++;const r=(Vr().s[33]++,await t.createWritable());Vr().s[34]++,await r.write(e),Vr().s[35]++,await r.close(),Vr().s[36]++,this.props.onOpenToggle()}async createFileHandle(){Vr().f[5]++;const e=(Vr().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(Vr().s[38]++,await window.showSaveFilePicker(e));return Vr().s[39]++,this.props.onSetFileHandle(t),Vr().s[40]++,t}changeMetadataProperty(e,t){Vr().f[6]++;const r=(Vr().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});Vr().s[42]++,this.props.onStyleChanged(r)}render(){Vr().f[7]++;const e=(Vr().s[43]++,this.props.t),t=(Vr().s[44]++,TG(e));return Vr().s[45]++,le.jsx(L0,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:le.jsxs("section",{className:"maputnik-modal-section",children:[le.jsx("h1",{children:e("Save Style")}),le.jsx("p",{children:e("Save the JSON style to your computer.")}),le.jsxs("div",{children:[le.jsx(Np,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(Vr().b[6][0]++,this.props.mapStyle.metadata||(Vr().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),le.jsx(Np,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(Vr().b[7][0]++,this.props.mapStyle.metadata||(Vr().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),le.jsx(Np,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(Vr().b[8][0]++,this.props.mapStyle.metadata||(Vr().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")})]}),le.jsxs("div",{className:"maputnik-modal-export-buttons",children:[le.jsxs(Ha,{onClick:this.saveStyle.bind(this),children:[le.jsx(_6,{}),e("Save")]}),(Vr().b[9][0]++,PD&&(Vr().b[9][1]++,le.jsxs(Ha,{onClick:this.saveStyleAs.bind(this),children:[le.jsx(_6,{}),e("Save as")]}))),le.jsxs(Ha,{onClick:this.createHtml.bind(this),children:[le.jsx(MH,{}),e("Create HTML")]})]})]})})}}const fhe=(Vr().s[46]++,$s()(hhe));function Q2(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="950dd35e62562a3439b74678b95f406e749c6958",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:139}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:2},end:{line:6,column:3}},loc:{start:{line:6,column:11},end:{line:8,column:3}},line:6}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAWM;AAXN,OAAO,WAAW;AAClB,OAAO,uBAA2E;AAClF,OAAO,cAAc;AAMrB,qBAAqB,0BAA0B,MAAM,UAAkC;AAAA,EACrF,SAAS;AACP,WAAO,oBAAC,YAAS,OAAO,KAAK,MAAM,OACjC,8BAAC,qBAAmB,GAAG,KAAK,OAAO,GACrC;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"950dd35e62562a3439b74678b95f406e749c6958"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var a=s[n];return Q2=function(){return a},a}Q2();class DG extends Zn.Component{render(){return Q2().f[0]++,Q2().s[0]++,le.jsx(S_,{label:this.props.label,children:le.jsx(_G,{...this.props})})}}function q2(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldCheckbox.tsx",e="a27c35e986d22656fa80c276efb67df518853ac2",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldCheckbox.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:132}}},fnMap:{0:{name:"(anonymous_0)",decl:{s Line truncated
`)>=0)return!1;return!0}function Yt(Ee,oe){var ve;if(Ee.indent===" ")ve=" ";else if(typeof Ee.indent=="number"&&Ee.indent>0)ve=ie.call(Array(Ee.indent+1)," ");else return null;return{base:ve,prev:ie.call(Array(oe+1),ve)}}function nn(Ee,oe){if(Ee.length===0)return"";var ve=`
`+oe.prev+oe.base;return ve+ie.call(Ee,","+ve)+`
`+oe.prev}function rr(Ee,oe){var ve=Lt(Ee),p=[];if(ve){p.length=Ee.length;for(var ze=0;ze<Ee.length;ze++)p[ze]=Nt(Ee,ze)?oe(Ee[ze],Ee):""}var rt=typeof fe=="function"?fe(Ee):[],pt;if(Pe){pt={};for(var Bt=0;Bt<rt.length;Bt++)pt["$"+rt[Bt]]=rt[Bt]}for(var vt in Ee)Nt(Ee,vt)&&(ve&&String(Number(vt))===vt&&vt<Ee.length||Pe&&pt["$"+vt]instanceof Symbol||(J.call(/[^\w$]/,vt)?p.push(oe(vt,Ee)+": "+oe(Ee[vt],Ee)):p.push(vt+": "+oe(Ee[vt],Ee))));if(typeof fe=="function")for(var Xt=0;Xt<rt.length;Xt++)it.call(Ee,rt[Xt])&&p.push("["+oe(rt[Xt])+"]: "+oe(Ee[rt[Xt]],Ee));return p}return oE}var sE,zD;function Vhe(){if(zD)return sE;zD=1;var n=l3(),e=Ny(),t=function(o,d,g){for(var b=o,E;(E=b.next)!=null;b=E)if(E.key===d)return b.next=E.next,g||(E.next=o.next,o.next=E),E},r=function(o,d){if(o){var g=t(o,d);return g&&g.value}},i=function(o,d,g){var b=t(o,d);b?b.value=g:o.next={key:d,next:o.next,value:g}},s=function(o,d){return o?!!t(o,d):!1},a=function(o,d){if(o)return t(o,d,!0)};return sE=function(){var d,g={assert:function(b){if(!g.has(b))throw new e("Side channel does not contain "+n(b))},delete:function(b){var E=d&&d.next,S=a(d,b);return S&&E&&E===S&&(d=void 0),!!S},get:function(b){return r(d,b)},has:function(b){return s(d,b)},set:function(b,E){d||(d={next:void 0}),i(d,b,E)}};return g},sE}var aE,jD;function jG(){return jD||(jD=1,aE=Object),aE}var lE,ND;function Hhe(){return ND||(ND=1,lE=Error),lE}var uE,GD;function Zhe(){return GD||(GD=1,uE=EvalError),uE}var AE,WD;function Xhe(){return WD||(WD=1,AE=RangeError),AE}var cE,QD;function Jhe(){return QD||(QD=1,cE=ReferenceError),cE}var dE,qD;function efe(){return qD||(qD=1,dE=SyntaxError),dE}var hE,YD;function tfe(){return YD||(YD=1,hE=URIError),hE}var fE,$D;function nfe(){return $D||($D=1,fE=Math.abs),fE}var pE,VD;function rfe(){return VD||(VD=1,pE=Math.floor),pE}var mE,HD;function ife(){return HD||(HD=1,mE=Math.max),mE}var gE,ZD;function ofe(){return ZD||(ZD=1,gE=Math.min),gE}var yE,XD;function sfe(){return XD||(XD=1,yE=Math.pow),yE}var vE,JD;function afe(){return JD||(JD=1,vE=Math.round),vE}var _E,eL;function lfe(){return eL||(eL=1,_E=Number.isNaN||function(e){return e!==e}),_E}var CE,tL;function ufe(){if(tL)return CE;tL=1;var n=lfe();return CE=function(t){return n(t)||t===0?t:t<0?-1:1},CE}var bE,nL;function Afe(){return nL||(nL=1,bE=Object.getOwnPropertyDescriptor),bE}var xE,rL;function NG(){if(rL)return xE;rL=1;var n=Afe();if(n)try{n([],"length")}catch{n=null}return xE=n,xE}var wE,iL;function cfe(){if(iL)return wE;iL=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return wE=n,wE}var ME,oL;function dfe(){return oL||(oL=1,ME=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(var s 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 a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==i||o.enumerable!==!0)return!1}return!0}),ME}var SE,sL;function hfe(){if(sL)return SE;sL=1;var n=typeof Symbol<"u"&&Symbol,e=dfe();return SE=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},SE}var EE,aL;function GG(){return aL||(aL=1,EE=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),EE}var BE,lL;function WG(){if(lL)return BE;lL=1;var n=jG();return BE=n.getPrototypeOf||null,BE}var OE,uL;function ffe(){if(uL)return OE;uL=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,r="[object Function]",i=function(d,g){for(var b=[],E=0;E<d.length;E+=1)b[E]=d[E];for(var S=0;S<g.length;S+=1)b[S+d.length]=g[S];return b},s=function(d,g){for(var b=[],E=g,S=0;E<d.length;E+=1,S+=1)b[S]=d[E];return b},a=function(o,d){for(var g="",b=0;b<o.length;b+=1)g+=o[b],b+1<o.length&&(g+=d);return g};return OE=function(d){var g=this;if(typeof g!="function"||e.apply(g)!==r)throw new TypeError(n+g);for(var b=s(arguments,1),E,S=function(){if(this instanceof E){var q=g.apply(this,i(b,arguments));return Object(q)===q?q:this}return g.apply(d,i(b,arguments))},O=t(0,g.length-b.length),k=[],U=0;U<O;U++)k[U]="$"+U;if(E=Function("binder","return function ("+a(k,",")+"){ return binder.apply(this,arguments); }")(S),g.prototype){var z=function(){};z.prototype=g.prototype,E.prototype=new z,z.prototype=null}return E},OE}var IE,AL;function u3(){if(AL)return IE;AL=1;var n=ffe();return IE=Function.prototype.bind||n,IE}var kE,cL;function VI(){return cL||(cL=1,kE=Function.prototype.call),kE}var TE,dL;function QG Line truncated
`," "],a=["{","}","|","\\","^","`"].concat(s),o=["'"].concat(a),d=["%","/","?",";","#"].concat(o),g=["/","?","#"],b=255,E=/^[+a-z0-9A-Z_-]{0,63}$/,S=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,O={javascript:!0,"javascript:":!0},k={javascript:!0,"javascript:":!0},U={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},z=wfe();function q(Y,J,N){if(Y&&typeof Y=="object"&&Y instanceof e)return Y;var ie=new e;return ie.parse(Y,J,N),ie}e.prototype.parse=function(Y,J,N){if(typeof Y!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof Y);var ie=Y.indexOf("?"),he=ie!==-1&&ie<Y.indexOf("#")?"?":"#",de=Y.split(he),we=/\\/g;de[0]=de[0].replace(we,"/"),Y=de.join(he);var fe=Y;if(fe=fe.trim(),!N&&Y.split("#").length===1){var be=i.exec(fe);if(be)return this.path=fe,this.href=fe,this.pathname=be[1],be[2]?(this.search=be[2],J?this.query=z.parse(this.search.substr(1)):this.query=this.search.substr(1)):J&&(this.search="",this.query={}),this}var Pe=t.exec(fe);if(Pe){Pe=Pe[0];var pe=Pe.toLowerCase();this.protocol=pe,fe=fe.substr(Pe.length)}if(N||Pe||fe.match(/^\/\/[^@/]+@[^@/]+/)){var it=fe.substr(0,2)==="//";it&&!(Pe&&k[Pe])&&(fe=fe.substr(2),this.slashes=!0)}if(!k[Pe]&&(it||Pe&&!U[Pe])){for(var We=-1,$e=0;$e<g.length;$e++){var ht=fe.indexOf(g[$e]);ht!==-1&&(We===-1||ht<We)&&(We=ht)}var De,Ne;We===-1?Ne=fe.lastIndexOf("@"):Ne=fe.lastIndexOf("@",We),Ne!==-1&&(De=fe.slice(0,Ne),fe=fe.slice(Ne+1),this.auth=decodeURIComponent(De)),We=-1;for(var $e=0;$e<d.length;$e++){var ht=fe.indexOf(d[$e]);ht!==-1&&(We===-1||ht<We)&&(We=ht)}We===-1&&(We=fe.length),this.host=fe.slice(0,We),fe=fe.slice(We),this.parseHost(),this.hostname=this.hostname||"";var at=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!at)for(var wt=this.hostname.split(/\./),$e=0,Ct=wt.length;$e<Ct;$e++){var ft=wt[$e];if(ft&&!ft.match(E)){for(var Lt="",Kt=0,Fe=ft.length;Kt<Fe;Kt++)ft.charCodeAt(Kt)>127?Lt+="x":Lt+=ft[Kt];if(!Lt.match(E)){var Te=wt.slice(0,$e),Se=wt.slice($e+1),Je=ft.match(S);Je&&(Te.push(Je[1]),Se.unshift(Je[2])),Se.length&&(fe="/"+Se.join(".")+fe),this.hostname=Te.join(".");break}}}this.hostname.length>b?this.hostname="":this.hostname=this.hostname.toLowerCase(),at||(this.hostname=n.toASCII(this.hostname));var yt=this.port?":"+this.port:"",dt=this.hostname||"";this.host=dt+yt,this.href+=this.host,at&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),fe[0]!=="/"&&(fe="/"+fe))}if(!O[pe])for(var $e=0,Ct=o.length;$e<Ct;$e++){var Ut=o[$e];if(fe.indexOf(Ut)!==-1){var en=encodeURIComponent(Ut);en===Ut&&(en=escape(Ut)),fe=fe.split(Ut).join(en)}}var Nt=fe.indexOf("#");Nt!==-1&&(this.hash=fe.substr(Nt),fe=fe.slice(0,Nt));var yn=fe.indexOf("?");if(yn!==-1?(this.search=fe.substr(yn),this.query=fe.substr(yn+1),J&&(this.query=z.parse(this.query)),fe=fe.slice(0,yn)):J&&(this.search="",this.query={}),fe&&(this.pathname=fe),U[pe]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var yt=this.pathname||"",jn=this.search||"";this.path=yt+jn}return this.href=this.format(),this};function Q(Y){return typeof Y=="string"&&(Y=q(Y)),Y instanceof e?Y.format():e.prototype.format.call(Y)}e.prototype.format=function(){var Y=this.auth||"";Y&&(Y=encodeURIComponent(Y),Y=Y.replace(/%3A/i,":"),Y+="@");var J=this.protocol||"",N=this.pathname||"",ie=this.hash||"",he=!1,de="";this.host?he=Y+this.host:this.hostname&&(he=Y+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(he+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(de=z.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var we=this.search||de&&"?"+de||"";return J&&J.substr(-1)!==":"&&(J+=":"),this.slashes||(!J||U[J])&&he!==!1?(he="//"+(he||""),N&&N.charAt(0)!=="/"&&(N="/"+N)):he||(he=""),ie&&ie.charAt(0)!=="#"&&(ie="#"+ie),we&&we.charAt(0)!=="?"&&(we="?"+we),N=N.replace(/[?#]/g,function(fe){return encodeURIComponent(fe)}),we=we.replace("#","%23"),J+he+N+we+ie};function re(Y,J){return q(Y,!1,!0).resolve(J)}e.prototype.resolve=function(Y){return this.resolveObject(q(Y,!1,!0)).format()};function X(Y,J){return Y?q(Y,!1,!0).resolveObject(J):J}return e.prototype.resolveObject=function(Y){if(typeof Y=="string"){var J=new e;J.parse(Y,!1,!0),Y=J}for(var N=new e,ie=Object.keys(this),he=0;he<ie.length;he++){var de=ie[he];N[de]=this[de]}if(N.hash=Y.hash,Y.href==="")return N.href=N.format(),N;if(Y.slashes&&!Y.protocol){for(var we=Object.keys(Y),fe=0;fe<we.length;fe++){var be=we[fe];be!=="protocol"&&(N[be]=Y[be])}return U[N.protocol]&&N.hostname&&!N.pathname&&(N.pathname="/",N.path=N.pathname),N.href=N.format(),N}if(Y.protocol&&Y.protocol!==N.protocol){if(!U[Y.protocol]){for(var Pe=Object.keys(Y),pe=0;pe<Pe.length;pe++){var it=Pe[pe];N[it]=Y[it]}return N.href=N.format(),N}if(N.protocol=Y.protocol,!Y.host&&!k[Y.protocol]){for(var Ct=(Y.pathname||"").split("/");Ct.length&&!(Y.host=Ct.shift()););Y.host||(Y.host=""),Y.hostname||(Y.hostname=""),Ct[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
@@ -1055,10 +1055,10 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var J6=function(n,e){return J6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])},J6(n,e)};function dG(n,e){J6(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Rde(n){var e=typeof Symbol=="function"&&n[Symbol.iterator],t=0;return e?e.call(n):{next:function(){return n&&t>=n.length&&(n=void 0),{value:n&&n[t++],done:!n}}}}function Kde(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return o}function Dde(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(Kde(arguments[e]));return n}var fG=function(){function n(e,t){this.target=t,this.type=e}return n}(),Lde=function(n){dG(e,n);function e(t,r){var i=n.call(this,"error",r)||this;return i.message=t.message,i.error=t,i}return e}(fG),Fde=function(n){dG(e,n);function e(t,r,i){t===void 0&&(t=1e3),r===void 0&&(r="");var o=n.call(this,"close",i)||this;return o.wasClean=!0,o.code=t,o.reason=r,o}return e}(fG);/*!
***************************************************************************** */var yB=function(n,e){return yB=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])},yB(n,e)};function tW(n,e){yB(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Kfe(n){var e=typeof Symbol=="function"&&n[Symbol.iterator],t=0;return e?e.call(n):{next:function(){return n&&t>=n.length&&(n=void 0),{value:n&&n[t++],done:!n}}}}function Dfe(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,s=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return s}function Lfe(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(Dfe(arguments[e]));return n}var nW=function(){function n(e,t){this.target=t,this.type=e}return n}(),Ffe=function(n){tW(e,n);function e(t,r){var i=n.call(this,"error",r)||this;return i.message=t.message,i.error=t,i}return e}(nW),Ufe=function(n){tW(e,n);function e(t,r,i){t===void 0&&(t=1e3),r===void 0&&(r="");var s=n.call(this,"close",i)||this;return s.wasClean=!0,s.code=t,s.reason=r,s}return e}(nW);/*!
* Reconnecting WebSocket
* by Pedro Ladaria <pedro.ladaria@gmail.com>
* https://github.com/pladaria/reconnecting-websocket
* License MIT
*/var Ude=function(){if(typeof WebSocket<"u")return WebSocket},zde=function(n){return typeof n<"u"&&!!n&&n.CLOSING===2},ag={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},jde=function(){function n(e,t,r){var i=this;r===void 0&&(r={}),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){i._debug("open event");var a=i._options.minUptime,s=a===void 0?ag.minUptime:a;clearTimeout(i._connectTimeout),i._uptimeTimeout=setTimeout(function(){return i._acceptOpen()},s),i._ws.binaryType=i._binaryType,i._messageQueue.forEach(function(h){return i._ws.send(h)}),i._messageQueue=[],i.onopen&&i.onopen(o),i._listeners.open.forEach(function(h){return i._callEventListener(o,h)})},this._handleMessage=function(o){i._debug("message event"),i.onmessage&&i.onmessage(o),i._listeners.message.forEach(function(a){return i._callEventListener(o,a)})},this._handleError=function(o){i._debug("error event",o.message),i._disconnect(void 0,o.message==="TIMEOUT"?"timeout":void 0),i.onerror&&i.onerror(o),i._debug("exec error listeners"),i._listeners.error.forEach(function(a){return i._callEventListener(o,a)}),i._connect()},this._handleClose=function(o){i._debug("close event"),i._clearTimeouts(),i._shouldReconnect&&i._connect(),i.onclose&&i.onclose(o),i._listeners.close.forEach(function(a){return i._callEventListener(o,a)})},this._url=e,this._protocols=t,this._options=r,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,r){return typeof r=="string"?t+=r.length:r instanceof Blob?t+=r.size:t+=r.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,r=t===void 0?ag.maxEnqueuedMessages:t;this._messageQueue.length<r&&(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,r,i=this._listeners[e.type];if(i)try{for(var o=Rde(i),a=o.next();!a.done;a=o.next()){var s=a.value;this._callEventListener(e,s)}}catch(h){t={error:h}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return!0},n.prototype.removeEventListeneLine truncated
//# sourceMappingURL=index-DxD0HD5a.js.map
*/var zfe=function(){if(typeof WebSocket<"u")return WebSocket},jfe=function(n){return typeof n<"u"&&!!n&&n.CLOSING===2},ag={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},Nfe=function(){function n(e,t,r){var i=this;r===void 0&&(r={}),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(s){i._debug("open event");var a=i._options.minUptime,o=a===void 0?ag.minUptime:a;clearTimeout(i._connectTimeout),i._uptimeTimeout=setTimeout(function(){return i._acceptOpen()},o),i._ws.binaryType=i._binaryType,i._messageQueue.forEach(function(d){return i._ws.send(d)}),i._messageQueue=[],i.onopen&&i.onopen(s),i._listeners.open.forEach(function(d){return i._callEventListener(s,d)})},this._handleMessage=function(s){i._debug("message event"),i.onmessage&&i.onmessage(s),i._listeners.message.forEach(function(a){return i._callEventListener(s,a)})},this._handleError=function(s){i._debug("error event",s.message),i._disconnect(void 0,s.message==="TIMEOUT"?"timeout":void 0),i.onerror&&i.onerror(s),i._debug("exec error listeners"),i._listeners.error.forEach(function(a){return i._callEventListener(s,a)}),i._connect()},this._handleClose=function(s){i._debug("close event"),i._clearTimeouts(),i._shouldReconnect&&i._connect(),i.onclose&&i.onclose(s),i._listeners.close.forEach(function(a){return i._callEventListener(s,a)})},this._url=e,this._protocols=t,this._options=r,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,r){return typeof r=="string"?t+=r.length:r instanceof Blob?t+=r.size:t+=r.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,r=t===void 0?ag.maxEnqueuedMessages:t;this._messageQueue.length<r&&(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,r,i=this._listeners[e.type];if(i)try{for(var s=Kfe(i),a=s.next();!a.done;a=s.next()){var o=a.value;this._callEventListener(e,o)}}catch(d){t={error:d}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return!0},n.prototype.removeEventListeneLine truncated
//# sourceMappingURL=index-BoSEyMw2.js.map
@@ -1 +1 @@
{"version":3,"mappings":"2+CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASa,IAAIA,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,cAAc,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,mBAAmB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,mBAAmB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,YAAY,EAAEC,EAAE,OAAO,IAAI,YAAY,EAAEC,EAAE,OAAO,SAAS,SAASC,EAAEC,GAAE,CAAC,OAAUA,KAAP,MAAqB,OAAOA,IAAlB,SAA2B,MAAKA,GAAEF,GAAGE,GAAEF,CAAC,GAAGE,GAAE,YAAY,EAAqB,OAAOA,IAApB,WAAsBA,GAAE,KAAI,CAC1e,IAAIC,EAAE,CAAC,UAAU,UAAU,CAAO,QAAE,EAAE,mBAAmB,UAAU,CAAC,EAAE,oBAAoB,UAAU,CAAC,EAAE,gBAAgB,UAAU,CAAC,GAAGC,EAAE,OAAO,OAAOC,EAAE,CAAC,EAAE,SAASC,EAAEJ,GAAEK,GAAEC,GAAE,CAAC,KAAK,MAAMN,GAAE,KAAK,QAAQK,GAAE,KAAK,KAAKF,EAAE,KAAK,QAAQG,IAAGL,CAAC,CAACG,EAAE,UAAU,iBAAiB,CAAC,EACpQA,EAAE,UAAU,SAAS,SAASJ,GAAEK,GAAE,CAAI,GAAW,OAAOL,IAAlB,UAAkC,OAAOA,IAApB,YAA6BA,IAAN,KAAc,YAAM,uHAAuH,EAAE,KAAK,QAAQ,gBAAgB,KAAKA,GAAEK,GAAE,UAAU,CAAC,EAAED,EAAE,UAAU,YAAY,SAASJ,GAAE,CAAC,KAAK,QAAQ,mBAAmB,KAAKA,GAAE,aAAa,CAAC,EAAE,SAASO,GAAG,CAAC,CAACA,EAAE,UAAUH,EAAE,UAAU,SAASI,EAAER,GAAEK,GAAEC,GAAE,CAAC,KAAK,MAAMN,GAAE,KAAK,QAAQK,GAAE,KAAK,KAAKF,EAAE,KAAK,QAAQG,IAAGL,CAAC,CAAC,IAAIQ,GAAED,EAAE,UAAU,IAAID,EACrfE,GAAE,YAAYD,EAAEN,EAAEO,GAAEL,EAAE,SAAS,EAAEK,GAAE,qBAAqB,GAAG,IAAIC,EAAE,MAAM,QAAQC,EAAE,OAAO,UAAU,eAAeC,EAAE,CAAC,QAAQ,MAAMC,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,EAAE,EACxK,SAASC,GAAEd,GAAEK,GAAEC,GAAE,CAAC,IAAIS,GAAEC,GAAE,GAAGC,GAAE,KAAKC,GAAE,KAAK,GAASb,IAAN,KAAY,IAAAU,MAAcV,GAAE,MAAX,SAAiBa,GAAEb,GAAE,KAAcA,GAAE,MAAX,SAAiBY,GAAE,GAAGZ,GAAE,KAAKA,GAAIM,EAAA,KAAKN,GAAEU,EAAC,GAAG,CAACF,EAAE,eAAeE,EAAC,IAAIC,GAAED,EAAC,EAAEV,GAAEU,EAAC,GAAO,IAAAI,GAAE,UAAU,OAAO,EAAK,GAAIA,KAAJ,EAAMH,GAAE,SAASV,WAAU,EAAEa,GAAE,CAAC,QAAQC,GAAE,MAAMD,EAAC,EAAEE,GAAE,EAAEA,GAAEF,GAAEE,KAAMD,GAAAC,EAAC,EAAE,UAAUA,GAAE,CAAC,EAAEL,GAAE,SAASI,EAAA,CAAE,GAAGpB,IAAGA,GAAE,aAAiB,IAAAe,MAAKI,GAAEnB,GAAE,aAAamB,GAAWH,GAAED,EAAC,IAAZ,SAAgBC,GAAED,EAAC,EAAEI,GAAEJ,EAAC,GAAG,MAAM,CAAC,SAAS5B,EAAE,KAAKa,GAAE,IAAIiB,GAAE,IAAIC,GAAE,MAAMF,GAAE,OAAOJ,EAAE,OAAO,CAAC,CAC7a,SAASU,GAAEtB,GAAEK,GAAE,CAAC,MAAM,CAAC,SAASlB,EAAE,KAAKa,GAAE,KAAK,IAAIK,GAAE,IAAIL,GAAE,IAAI,MAAMA,GAAE,MAAM,OAAOA,GAAE,MAAM,CAAC,CAAC,SAASuB,GAAEvB,GAAE,CAAC,OAAiB,OAAOA,IAAlB,UAA4BA,KAAP,MAAUA,GAAE,WAAWb,CAAC,CAAC,SAASqC,GAAOxB,GAAE,CAAC,IAAIK,GAAE,CAAC,IAAI,KAAK,IAAI,IAAI,EAAE,MAAM,IAAIL,GAAE,QAAQ,QAAQ,SAASA,GAAE,CAAC,OAAOK,GAAEL,EAAC,EAAE,CAAC,CAAC,IAAIyB,GAAE,OAAO,SAASC,GAAE1B,GAAEK,GAAE,CAAC,OAAiB,OAAOL,IAAlB,UAA4BA,KAAP,MAAgBA,GAAE,KAAR,KAAYwB,GAAO,GAAGxB,GAAE,GAAG,EAAEK,GAAE,SAAS,EAAE,CAAC,CAC/W,SAASsB,GAAE3B,GAAEK,GAAEC,GAAES,GAAEC,GAAE,CAAC,IAAIC,GAAE,OAAOjB,IAAmBiB,KAAd,aAA6BA,KAAZ,aAAgBjB,GAAA,MAAK,IAAIkB,GAAE,GAAM,GAAOlB,KAAP,KAAWkB,GAAA,eAAeD,GAAE,CAAC,IAAK,SAAS,IAAK,SAAWC,GAAA,GAAG,MAAM,IAAK,SAAS,OAAOlB,GAAE,SAAS,CAAC,KAAKb,EAAE,KAAKC,EAAI8B,GAAA,GAAE,CAAE,GAAGA,GAAS,OAAAA,GAAElB,GAAEgB,GAAEA,GAAEE,EAAC,EAAElB,GAAOe,KAAL,GAAO,IAAIW,GAAER,GAAE,CAAC,EAAEH,GAAEL,EAAEM,EAAC,GAAGV,GAAE,GAASN,IAAN,OAAUM,GAAEN,GAAE,QAAQyB,GAAE,KAAK,EAAE,KAAKE,GAAEX,GAAEX,GAAEC,GAAE,GAAG,SAASN,GAAE,CAAQA,SAAA,CAAE,GAASgB,IAAN,OAAUO,GAAEP,EAAC,IAAIA,GAAEM,GAAEN,GAAEV,IAAG,CAACU,GAAE,KAAKE,IAAGA,GAAE,MAAMF,GAAE,IAAI,IAAI,GAAGA,GAAE,KAAK,QAAQS,GAAE,KAAK,EAAE,KAAKzB,EAAC,GAAGK,GAAE,KAAKW,EAAC,GAAG,EAA4B,GAAxBE,GAAA,EAAIH,GAAKA,KAAL,GAAO,IAAIA,GAAE,IAAOL,EAAEV,EAAC,EAAE,QAAQmB,GAAE,EAAEA,GAAEnB,GAAE,OAAOmB,KAAI,CAACF,GACrfjB,GAAEmB,EAAC,EAAE,IAAIC,GAAEL,GAAEW,GAAET,GAAEE,EAAC,EAAED,IAAGS,GAAEV,GAAEZ,GAAEC,GAAEc,GAAEJ,EAAC,UAAUI,GAAErB,EAAEC,EAAC,EAAe,OAAOoB,IAApB,WAAsB,IAAIpB,GAAEoB,GAAE,KAAKpB,EAAC,EAAEmB,GAAE,EAAE,EAAEF,GAAEjB,GAAE,KAAK,GAAG,MAAQiB,MAAE,MAAMG,GAAEL,GAAEW,GAAET,GAAEE,IAAG,EAAED,IAAGS,GAAEV,GAAEZ,GAAEC,GAAEc,GAAEJ,EAAC,UAAqBC,KAAX,SAAmB,MAAAZ,GAAE,OAAOL,EAAC,EAAE,MAAM,mDAAuEK,KAApB,kBAAsB,qBAAqB,OAAO,KAAKL,EAAC,EAAE,KAAK,IAAI,EAAE,IAAIK,IAAG,2EAA2E,EAAS,OAAAa,EAAC,CACzZ,SAASU,GAAE5B,GAAEK,GAAEC,GAAE,CAAI,GAAMN,IAAN,KAAe,OAAAA,GAAM,IAAAe,GAAE,GAAGC,GAAE,EAAE,OAAAW,GAAE3B,GAAEe,GAAE,GAAG,GAAG,SAASf,GAAE,CAAC,OAAOK,GAAE,KAAKC,GAAEN,GAAEgB,IAAG,EAAE,EAASD,EAAC,CAAC,SAASc,GAAE7B,GAAE,CAAI,GAAKA,GAAE,UAAP,GAAe,CAAC,IAAIK,GAAEL,GAAE,QAAQK,GAAEA,GAAE,EAAIA,GAAA,KAAK,SAASA,GAAE,EAAQL,GAAE,UAAN,GAAoBA,GAAE,UAAP,MAAiBA,GAAA,QAAQ,EAAEA,GAAE,QAAQK,GAAC,EAAE,SAASA,GAAE,EAAQL,GAAE,UAAN,GAAoBA,GAAE,UAAP,MAAiBA,GAAA,QAAQ,EAAEA,GAAE,QAAQK,GAAA,CAAE,EAAOL,GAAE,UAAP,KAAiBA,GAAE,QAAQ,EAAEA,GAAE,QAAQK,GAAA,CAAG,GAAOL,GAAE,UAAN,EAAc,OAAOA,GAAE,QAAQ,QAAQ,MAAMA,GAAE,OAAQ,CAC5Z,IAAI8B,GAAE,CAAC,QAAQ,IAAI,EAAEC,GAAE,CAAC,WAAW,IAAI,EAAEC,GAAE,CAAC,uBAAuBF,GAAE,wBAAwBC,GAAE,kBAAkBnB,CAAC,EAAE,SAASqB,IAAG,CAAC,MAAM,MAAM,0DAA0D,CAAE,CACzM,OAAAC,GAAA,SAAiB,CAAC,IAAIN,GAAE,QAAQ,SAAS5B,GAAEK,GAAEC,GAAE,CAACsB,GAAE5B,GAAE,UAAU,CAAGK,GAAA,MAAM,KAAK,SAAS,GAAGC,EAAC,CAAC,EAAE,MAAM,SAASN,GAAE,CAAC,IAAIK,GAAE,EAAE,OAAAuB,GAAE5B,GAAE,UAAU,CAACK,IAAA,CAAI,EAASA,EAAC,EAAE,QAAQ,SAASL,GAAE,CAAQ,OAAA4B,GAAE5B,GAAE,SAASA,GAAE,CAAQA,SAAE,IAAG,CAAC,CAAC,EAAE,KAAK,SAASA,GAAE,CAAC,GAAG,CAACuB,GAAEvB,EAALine truncated
{"version":3,"mappings":"2+CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASa,IAAIA,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,cAAc,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,mBAAmB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,mBAAmB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,YAAY,EAAEC,EAAE,OAAO,IAAI,YAAY,EAAEC,EAAE,OAAO,SAAS,SAASC,EAAEC,GAAE,CAAC,OAAUA,KAAP,MAAqB,OAAOA,IAAlB,SAA2B,MAAKA,GAAEF,GAAGE,GAAEF,CAAC,GAAGE,GAAE,YAAY,EAAqB,OAAOA,IAApB,WAAsBA,GAAE,KAAI,CAC1e,IAAIC,EAAE,CAAC,UAAU,UAAU,CAAO,QAAE,EAAE,mBAAmB,UAAU,CAAC,EAAE,oBAAoB,UAAU,CAAC,EAAE,gBAAgB,UAAU,CAAC,GAAGC,EAAE,OAAO,OAAOC,EAAE,CAAC,EAAE,SAASC,EAAEJ,GAAEK,GAAEC,GAAE,CAAC,KAAK,MAAMN,GAAE,KAAK,QAAQK,GAAE,KAAK,KAAKF,EAAE,KAAK,QAAQG,IAAGL,CAAC,CAACG,EAAE,UAAU,iBAAiB,CAAC,EACpQA,EAAE,UAAU,SAAS,SAASJ,GAAEK,GAAE,CAAI,GAAW,OAAOL,IAAlB,UAAkC,OAAOA,IAApB,YAA6BA,IAAN,KAAc,YAAM,uHAAuH,EAAE,KAAK,QAAQ,gBAAgB,KAAKA,GAAEK,GAAE,UAAU,CAAC,EAAED,EAAE,UAAU,YAAY,SAASJ,GAAE,CAAC,KAAK,QAAQ,mBAAmB,KAAKA,GAAE,aAAa,CAAC,EAAE,SAASO,GAAG,CAAC,CAACA,EAAE,UAAUH,EAAE,UAAU,SAASI,EAAER,GAAEK,GAAEC,GAAE,CAAC,KAAK,MAAMN,GAAE,KAAK,QAAQK,GAAE,KAAK,KAAKF,EAAE,KAAK,QAAQG,IAAGL,CAAC,CAAC,IAAIQ,GAAED,EAAE,UAAU,IAAID,EACrfE,GAAE,YAAYD,EAAEN,EAAEO,GAAEL,EAAE,SAAS,EAAEK,GAAE,qBAAqB,GAAG,IAAIC,EAAE,MAAM,QAAQC,EAAE,OAAO,UAAU,eAAeC,EAAE,CAAC,QAAQ,MAAMC,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,EAAE,EACxK,SAASC,GAAEd,GAAEK,GAAEC,GAAE,CAAC,IAAIS,GAAEC,GAAE,GAAGC,GAAE,KAAKC,GAAE,KAAK,GAASb,IAAN,KAAY,IAAAU,MAAcV,GAAE,MAAX,SAAiBa,GAAEb,GAAE,KAAcA,GAAE,MAAX,SAAiBY,GAAE,GAAGZ,GAAE,KAAKA,GAAIM,EAAA,KAAKN,GAAEU,EAAC,GAAG,CAACF,EAAE,eAAeE,EAAC,IAAIC,GAAED,EAAC,EAAEV,GAAEU,EAAC,GAAO,IAAAI,GAAE,UAAU,OAAO,EAAK,GAAIA,KAAJ,EAAMH,GAAE,SAASV,WAAU,EAAEa,GAAE,CAAC,QAAQC,GAAE,MAAMD,EAAC,EAAEE,GAAE,EAAEA,GAAEF,GAAEE,KAAMD,GAAAC,EAAC,EAAE,UAAUA,GAAE,CAAC,EAAEL,GAAE,SAASI,EAAA,CAAE,GAAGpB,IAAGA,GAAE,aAAiB,IAAAe,MAAKI,GAAEnB,GAAE,aAAamB,GAAWH,GAAED,EAAC,IAAZ,SAAgBC,GAAED,EAAC,EAAEI,GAAEJ,EAAC,GAAG,MAAM,CAAC,SAAS5B,EAAE,KAAKa,GAAE,IAAIiB,GAAE,IAAIC,GAAE,MAAMF,GAAE,OAAOJ,EAAE,OAAO,CAAC,CAC7a,SAASU,GAAEtB,GAAEK,GAAE,CAAC,MAAM,CAAC,SAASlB,EAAE,KAAKa,GAAE,KAAK,IAAIK,GAAE,IAAIL,GAAE,IAAI,MAAMA,GAAE,MAAM,OAAOA,GAAE,MAAM,CAAC,CAAC,SAASuB,GAAEvB,GAAE,CAAC,OAAiB,OAAOA,IAAlB,UAA4BA,KAAP,MAAUA,GAAE,WAAWb,CAAC,CAAC,SAASqC,GAAOxB,GAAE,CAAC,IAAIK,GAAE,CAAC,IAAI,KAAK,IAAI,IAAI,EAAE,MAAM,IAAIL,GAAE,QAAQ,QAAQ,SAASA,GAAE,CAAC,OAAOK,GAAEL,EAAC,EAAE,CAAC,CAAC,IAAIyB,GAAE,OAAO,SAASC,GAAE1B,GAAEK,GAAE,CAAC,OAAiB,OAAOL,IAAlB,UAA4BA,KAAP,MAAgBA,GAAE,KAAR,KAAYwB,GAAO,GAAGxB,GAAE,GAAG,EAAEK,GAAE,SAAS,EAAE,CAAC,CAC/W,SAASsB,GAAE3B,GAAEK,GAAEC,GAAES,GAAEC,GAAE,CAAC,IAAIC,GAAE,OAAOjB,IAAmBiB,KAAd,aAA6BA,KAAZ,aAAgBjB,GAAA,MAAK,IAAIkB,GAAE,GAAM,GAAOlB,KAAP,KAAWkB,GAAA,eAAeD,GAAE,CAAC,IAAK,SAAS,IAAK,SAAWC,GAAA,GAAG,MAAM,IAAK,SAAS,OAAOlB,GAAE,SAAS,CAAC,KAAKb,EAAE,KAAKC,EAAI8B,GAAA,GAAE,CAAE,GAAGA,GAAS,OAAAA,GAAElB,GAAEgB,GAAEA,GAAEE,EAAC,EAAElB,GAAOe,KAAL,GAAO,IAAIW,GAAER,GAAE,CAAC,EAAEH,GAAEL,EAAEM,EAAC,GAAGV,GAAE,GAASN,IAAN,OAAUM,GAAEN,GAAE,QAAQyB,GAAE,KAAK,EAAE,KAAKE,GAAEX,GAAEX,GAAEC,GAAE,GAAG,SAASN,GAAE,CAAQA,SAAA,CAAE,GAASgB,IAAN,OAAUO,GAAEP,EAAC,IAAIA,GAAEM,GAAEN,GAAEV,IAAG,CAACU,GAAE,KAAKE,IAAGA,GAAE,MAAMF,GAAE,IAAI,IAAI,GAAGA,GAAE,KAAK,QAAQS,GAAE,KAAK,EAAE,KAAKzB,EAAC,GAAGK,GAAE,KAAKW,EAAC,GAAG,EAA4B,GAAxBE,GAAA,EAAIH,GAAKA,KAAL,GAAO,IAAIA,GAAE,IAAOL,EAAEV,EAAC,EAAE,QAAQmB,GAAE,EAAEA,GAAEnB,GAAE,OAAOmB,KAAI,CAACF,GACrfjB,GAAEmB,EAAC,EAAE,IAAIC,GAAEL,GAAEW,GAAET,GAAEE,EAAC,EAAED,IAAGS,GAAEV,GAAEZ,GAAEC,GAAEc,GAAEJ,EAAC,UAAUI,GAAErB,EAAEC,EAAC,EAAe,OAAOoB,IAApB,WAAsB,IAAIpB,GAAEoB,GAAE,KAAKpB,EAAC,EAAEmB,GAAE,EAAE,EAAEF,GAAEjB,GAAE,KAAK,GAAG,MAAQiB,MAAE,MAAMG,GAAEL,GAAEW,GAAET,GAAEE,IAAG,EAAED,IAAGS,GAAEV,GAAEZ,GAAEC,GAAEc,GAAEJ,EAAC,UAAqBC,KAAX,SAAmB,MAAAZ,GAAE,OAAOL,EAAC,EAAE,MAAM,mDAAuEK,KAApB,kBAAsB,qBAAqB,OAAO,KAAKL,EAAC,EAAE,KAAK,IAAI,EAAE,IAAIK,IAAG,2EAA2E,EAAS,OAAAa,EAAC,CACzZ,SAASU,GAAE5B,GAAEK,GAAEC,GAAE,CAAI,GAAMN,IAAN,KAAe,OAAAA,GAAM,IAAAe,GAAE,GAAGC,GAAE,EAAE,OAAAW,GAAE3B,GAAEe,GAAE,GAAG,GAAG,SAASf,GAAE,CAAC,OAAOK,GAAE,KAAKC,GAAEN,GAAEgB,IAAG,EAAE,EAASD,EAAC,CAAC,SAASc,GAAE7B,GAAE,CAAI,GAAKA,GAAE,UAAP,GAAe,CAAC,IAAIK,GAAEL,GAAE,QAAQK,GAAEA,GAAE,EAAIA,GAAA,KAAK,SAASA,GAAE,EAAQL,GAAE,UAAN,GAAoBA,GAAE,UAAP,MAAiBA,GAAA,QAAQ,EAAEA,GAAE,QAAQK,GAAC,EAAE,SAASA,GAAE,EAAQL,GAAE,UAAN,GAAoBA,GAAE,UAAP,MAAiBA,GAAA,QAAQ,EAAEA,GAAE,QAAQK,GAAA,CAAE,EAAOL,GAAE,UAAP,KAAiBA,GAAE,QAAQ,EAAEA,GAAE,QAAQK,GAAA,CAAG,GAAOL,GAAE,UAAN,EAAc,OAAOA,GAAE,QAAQ,QAAQ,MAAMA,GAAE,OAAQ,CAC5Z,IAAI8B,GAAE,CAAC,QAAQ,IAAI,EAAEC,GAAE,CAAC,WAAW,IAAI,EAAEC,GAAE,CAAC,uBAAuBF,GAAE,wBAAwBC,GAAE,kBAAkBnB,CAAC,EAAE,SAASqB,IAAG,CAAC,MAAM,MAAM,0DAA0D,CAAE,CACzM,OAAAC,GAAA,SAAiB,CAAC,IAAIN,GAAE,QAAQ,SAAS5B,GAAEK,GAAEC,GAAE,CAACsB,GAAE5B,GAAE,UAAU,CAAGK,GAAA,MAAM,KAAK,SAAS,GAAGC,EAAC,CAAC,EAAE,MAAM,SAASN,GAAE,CAAC,IAAIK,GAAE,EAAE,OAAAuB,GAAE5B,GAAE,UAAU,CAACK,IAAA,CAAI,EAASA,EAAC,EAAE,QAAQ,SAASL,GAAE,CAAQ,OAAA4B,GAAE5B,GAAE,SAASA,GAAE,CAAQA,SAAE,IAAG,CAAC,CAAC,EAAE,KAAK,SAASA,GAAE,CAAC,GAAG,CAACuB,GAAEvB,EAALine truncated
+1 -1
View File
@@ -37,7 +37,7 @@
}
</style>
<script type="module" crossorigin src="/maputnik/assets/index-DxD0HD5a.js"></script>
<script type="module" crossorigin src="/maputnik/assets/index-BoSEyMw2.js"></script>
<link rel="stylesheet" crossorigin href="/maputnik/assets/index-BQNUbLSK.css">
</head>
<body>