This commit is contained in:
HarelM committed 2026-07-14 11:15:20 +00:00
1 parent f8ee3d61a5
commit 8c87f027fb
3 files changed
+68 -68

No files matched your search

@@ -1,15 +1,15 @@
function Qle(n,e){for(var t=0;t<e.length;t++){const i=e[t];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in n)){const o=Object.getOwnPropertyDescriptor(i,r);o&&Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function t(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=t(r);fetch(r.href,o)}})();function Mu(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function bZ(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function i(){var r=!1;try{r=this instanceof i}catch{}return 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(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),t}var X8={exports:{}},P3={};var nz;function Yle(){if(nz)return P3;nz=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(i,r,o){var s=null;if(o!==void 0&&(s=""+o),r.key!==void 0&&(s=""+r.key),"key"in r){o={};for(var a in r)a!=="key"&&(o[a]=r[a])}else o=r;return r=o.ref,{$$typeof:n,type:i,key:s,ref:r!==void 0?r:null,props:o}}return P3.Fragment=e,P3.jsx=t,P3.jsxs=t,P3}var iz;function qle(){return iz||(iz=1,X8.exports=Yle()),X8.exports}var le=qle(),J8={exports:{}},Gr={};var rz;function Vle(){if(rz)return Gr;rz=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),E=Symbol.iterator;function I(Ne){return Ne===null||typeof Ne!="object"?null:(Ne=E&&Ne[E]||Ne["@@iterator"],typeof Ne=="function"?Ne:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F=Object.assign,W={};function V(Ne,lt,Ke){this.props=Ne,this.context=lt,this.refs=W,this.updater=Ke||U}V.prototype.isReactComponent={},V.prototype.setState=function(Ne,lt){if(typeof Ne!="object"&&typeof Ne!="function"&&Ne!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Ne,lt,"setState")},V.prototype.forceUpdate=function(Ne){this.updater.enqueueForceUpdate(this,Ne,"forceUpdate")};function q(){}q.prototype=V.prototype;function ee(Ne,lt,Ke){this.props=Ne,this.context=lt,this.refs=W,this.updater=Ke||U}var oe=ee.prototype=new q;oe.constructor=ee,F(oe,V.prototype),oe.isPureReactComponent=!0;var re=Array.isArray;function ie(){}var X={H:null,A:null,T:null,S:null},ce=Object.prototype.hasOwnProperty;function $(Ne,lt,Ke){var Xe=Ke.ref;return{$$typeof:n,type:Ne,key:lt,ref:Xe!==void 0?Xe:null,props:Ke}}function ue(Ne,lt){return $(Ne.type,lt,Ne.props)}function de(Ne){return typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===n}function be(Ne){var lt={"=":"=0",":":"=2"};return"$"+Ne.replace(/[=:]/g,function(Ke){return lt[Ke]})}var me=/\/+/g;function xe(Ne,lt){return typeof Ne=="object"&&Ne!==null&&Ne.key!=null?be(""+Ne.key):lt.toString(36)}function Pe(Ne){switch(Ne.status){case"fulfilled":return Ne.value;case"rejected":throw Ne.reason;default:switch(typeof Ne.status=="string"?Ne.then(ie,ie):(Ne.status="pending",Ne.then(function(lt){Ne.status==="pending"&&(Ne.status="fulfilled",Ne.value=lt)},function(lt){Ne.status==="pending"&&(Ne.status="rejected",Ne.reason=lt)})),Ne.status){case"fulfilled":return Ne.value;case"rejected":throw Ne.reason}}throw Ne}function ke(Ne,lt,Ke,Xe,st){var Ct=typeof Ne;(Ct==="undefined"||Ct==="boolean")&&(Ne=null);var It=!1;if(Ne===null)It=!0;else switch(Ct){case"bigint":case"string":case"number":It=!0;break;case"object":switch(Ne.$$typeof){case n:case e:It=!0;break;case g:return It=Ne._init,ke(It(Ne._payload),lt,Ke,Xe,st)}}if(It)return st=st(Ne),It=Xe===""?"."+xe(Ne,0):Xe,re(st)?(Ke="",It!=null&&(Ke=It.replace(me,"$&/")+"/"),ke(st,lt,Ke,"",function(Ce){return Ce})):st!=null&&(deLine truncated
function qle(n,e){for(var t=0;t<e.length;t++){const i=e[t];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in n)){const o=Object.getOwnPropertyDescriptor(i,r);o&&Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function t(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=t(r);fetch(r.href,o)}})();function Su(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function yZ(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function i(){var r=!1;try{r=this instanceof i}catch{}return 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(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),t}var Z8={exports:{}},k3={};var ez;function Vle(){if(ez)return k3;ez=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(i,r,o){var s=null;if(o!==void 0&&(s=""+o),r.key!==void 0&&(s=""+r.key),"key"in r){o={};for(var a in r)a!=="key"&&(o[a]=r[a])}else o=r;return r=o.ref,{$$typeof:n,type:i,key:s,ref:r!==void 0?r:null,props:o}}return k3.Fragment=e,k3.jsx=t,k3.jsxs=t,k3}var tz;function $le(){return tz||(tz=1,Z8.exports=Vle()),Z8.exports}var le=$le(),X8={exports:{}},Gr={};var nz;function Hle(){if(nz)return Gr;nz=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),E=Symbol.iterator;function I(Ne){return Ne===null||typeof Ne!="object"?null:(Ne=E&&Ne[E]||Ne["@@iterator"],typeof Ne=="function"?Ne:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F=Object.assign,W={};function V(Ne,lt,Ke){this.props=Ne,this.context=lt,this.refs=W,this.updater=Ke||U}V.prototype.isReactComponent={},V.prototype.setState=function(Ne,lt){if(typeof Ne!="object"&&typeof Ne!="function"&&Ne!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Ne,lt,"setState")},V.prototype.forceUpdate=function(Ne){this.updater.enqueueForceUpdate(this,Ne,"forceUpdate")};function q(){}q.prototype=V.prototype;function ee(Ne,lt,Ke){this.props=Ne,this.context=lt,this.refs=W,this.updater=Ke||U}var oe=ee.prototype=new q;oe.constructor=ee,F(oe,V.prototype),oe.isPureReactComponent=!0;var re=Array.isArray;function ie(){}var X={H:null,A:null,T:null,S:null},ce=Object.prototype.hasOwnProperty;function $(Ne,lt,Ke){var Xe=Ke.ref;return{$$typeof:n,type:Ne,key:lt,ref:Xe!==void 0?Xe:null,props:Ke}}function ue(Ne,lt){return $(Ne.type,lt,Ne.props)}function de(Ne){return typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===n}function be(Ne){var lt={"=":"=0",":":"=2"};return"$"+Ne.replace(/[=:]/g,function(Ke){return lt[Ke]})}var me=/\/+/g;function xe(Ne,lt){return typeof Ne=="object"&&Ne!==null&&Ne.key!=null?be(""+Ne.key):lt.toString(36)}function Pe(Ne){switch(Ne.status){case"fulfilled":return Ne.value;case"rejected":throw Ne.reason;default:switch(typeof Ne.status=="string"?Ne.then(ie,ie):(Ne.status="pending",Ne.then(function(lt){Ne.status==="pending"&&(Ne.status="fulfilled",Ne.value=lt)},function(lt){Ne.status==="pending"&&(Ne.status="rejected",Ne.reason=lt)})),Ne.status){case"fulfilled":return Ne.value;case"rejected":throw Ne.reason}}throw Ne}function ke(Ne,lt,Ke,Xe,st){var Ct=typeof Ne;(Ct==="undefined"||Ct==="boolean")&&(Ne=null);var It=!1;if(Ne===null)It=!0;else switch(Ct){case"bigint":case"string":case"number":It=!0;break;case"object":switch(Ne.$$typeof){case n:case e:It=!0;break;case g:return It=Ne._init,ke(It(Ne._payload),lt,Ke,Xe,st)}}if(It)return st=st(Ne),It=Xe===""?"."+xe(Ne,0):Xe,re(st)?(Ke="",It!=null&&(Ke=It.replace(me,"$&/")+"/"),ke(st,lt,Ke,"",function(Ce){return Ce})):st!=null&&(deLine truncated
at`)?" (<anonymous>)":-1<x.stack.indexOf("@")?"@unknown:0:0":""}return`
`+pt+f+Ve}var Bt=!1;function _t(f,y){if(!f||Bt)return"";Bt=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var D={DetermineComponentFrameRoot:function(){try{if(y){var hn=function(){throw Error()};if(Object.defineProperty(hn.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(hn,[])}catch(nn){var Yt=nn}Reflect.construct(f,[],hn)}else{try{hn.call()}catch(nn){Yt=nn}f.call(hn.prototype)}}else{try{throw Error()}catch(nn){Yt=nn}(hn=f())&&typeof hn.catch=="function"&&hn.catch(function(){})}}catch(nn){if(nn&&Yt&&typeof nn.stack=="string")return[nn.stack,Yt.stack]}return[null,null]}};D.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var Y=Object.getOwnPropertyDescriptor(D.DetermineComponentFrameRoot,"name");Y&&Y.configurable&&Object.defineProperty(D.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var ne=D.DetermineComponentFrameRoot(),we=ne[0],We=ne[1];if(we&&We){var gt=we.split(`
`),Gt=We.split(`
`);for(Y=D=0;D<gt.length&&!gt[D].includes("DetermineComponentFrameRoot");)D++;for(;Y<Gt.length&&!Gt[Y].includes("DetermineComponentFrameRoot");)Y++;if(D===gt.length||Y===Gt.length)for(D=gt.length-1,Y=Gt.length-1;1<=D&&0<=Y&&gt[D]!==Gt[Y];)Y--;for(;1<=D&&0<=Y;D--,Y--)if(gt[D]!==Gt[Y]){if(D!==1||Y!==1)do if(D--,Y--,0>Y||gt[D]!==Gt[Y]){var sn=`
`+gt[D].replace(" at new "," at ");return f.displayName&&sn.includes("<anonymous>")&&(sn=sn.replace("<anonymous>",f.displayName)),sn}while(1<=D&&0<=Y);break}}}finally{Bt=!1,Error.prepareStackTrace=x}return(x=f?f.displayName||f.name:"")?St(x):""}function Jt(f,y){switch(f.tag){case 26:case 27:case 5:return St(f.type);case 16:return St("Lazy");case 13:return f.child!==y&&y!==null?St("Suspense Fallback"):St("Suspense");case 19:return St("SuspenseList");case 0:case 15:return _t(f.type,!1);case 11:return _t(f.type.render,!1);case 1:return _t(f.type,!0);case 31:return St("Activity");default:return""}}function un(f){try{var y="",x=null;do y+=Jt(f,x),x=f,f=f.return;while(f);return y}catch(D){return`
Error generating stack: `+D.message+`
`+D.stack}}var Pn=Object.prototype.hasOwnProperty,Jn=n.unstable_scheduleCallback,Un=n.unstable_cancelCallback,Sn=n.unstable_shouldYield,Qn=n.unstable_requestPaint,Bn=n.unstable_now,vn=n.unstable_getCurrentPriorityLevel,vt=n.unstable_ImmediatePriority,Se=n.unstable_UserBlockingPriority,Ae=n.unstable_NormalPriority,fe=n.unstable_LowPriority,ze=n.unstable_IdlePriority,At=n.log,Ot=n.unstable_setDisableYieldValue,Dt=null,In=null;function Gn(f){if(typeof At=="function"&&Ot(f),In&&typeof In.setStrictMode=="function")try{In.setStrictMode(Dt,f)}catch{}}var yt=Math.clz32?Math.clz32:bn,Ft=Math.log,C=Math.LN2;function bn(f){return f>>>=0,f===0?32:31-(Ft(f)/C|0)|0}var pi=256,qn=262144,Vn=4194304;function Mi(f){var y=f&42;if(y!==0)return y;switch(f&-f){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return f&261888;case 262144:case 524288:case 1048576:case 2097152:return f&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return f&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return f}}function or(f,y,x){var D=f.pendingLanes;if(D===0)return 0;var Y=0,ne=f.suspendedLanes,we=f.pingedLanes;f=f.warmLanes;var We=D&134217727;return We!==0?(D=We&~ne,D!==0?Y=Mi(D):(we&=We,we!==0?Y=Mi(we):x||(x=We&~f,x!==0&&(Y=Mi(x))))):(We=D&~ne,We!==0?Y=Mi(We):we!==0?Y=Mi(we):x||(x=D&~f,x!==0&&(Y=Mi(x)))),Y===0?0:y!==0&&y!==Y&&(y&ne)===0&&(ne=Y&-Y,x=y&-y,ne>=x||ne===32&&(x&4194048)!==0)?y:Y}function Ut(f,y){return(f.pendingLanes&~(f.suspendedLanes&~f.pingedLanes)&y)===0}function fo(f,y){switch(f){case 1:case 2:case 4:case 8:case 64:return y+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return y+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mr(){var f=Vn;return Vn<<=1,(Vn&62914560)===0&&(Vn=4194304),f}function Bi(f){for(var y=[],x=0;31>x;x++)y.push(f);return y}function Qr(f,y){f.pendingLanes|=y,y!==268435456&&(f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0)}function Fi(f,y,x,D,Y,ne){var we=f.pendingLanes;f.pendingLanes=x,f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0,f.expiredLanes&=x,f.entangledLanes&=x,f.errorRecoveryDisabledLanes&=x,f.shellSuspendCounter=0;var We=f.entanglements,gt=f.expirationTimes,Gt=f.hiddenUpdates;for(x=we&~x;0<x;){var sn=31-yt(x),hn=1<<sn;We[sn]=0,gt[sn]=-1;var Yt=Gt[sn];if(Yt!==null)for(Gt[sn]=null,sn=0;sn<Yt.length;sn++){var nn=Yt[sn];nn!==null&&(nn.lane&=-536870913)}x&=~hn}D!==0&&ls(f,D,0),ne!==0&&Y===0&&f.tag!==0&&(f.suspendedLanes|=ne&~(we&~y))}function ls(f,y,x){f.pendingLanes|=y,f.suspendedLanes&=~y;var D=31-yt(y);f.entangledLanes|=y,f.entanglements[D]=f.entanglements[D]|1073741824|x&261930}function so(f,y){var x=f.entangledLanes|=y;for(f=f.entanglements;x;){var D=31-yt(x),Y=1<<D;Y&y|f[D]&y&&(f[D]|=y),x&=~Y}}function zo(f,y){var x=y&-y;return x=(x&42)!==0?1:ao(x),(x&(f.suspendedLanes|y))!==0?0:x}function ao(f){switch(f){case 2:f=1;break;case 8:f=4;break;case 32:f=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:f=128;break;case 268435456:f=134217728;break;default:f=0}return f}function xo(f){return f&=-f,2<f?8<f?(f&134217727)!==0?32:268435456:8:2}function sr(){var f=Qe.p;return f!==0?f:(f=window.event,f===void 0?32:Yd(f.type))}function ln(f,y){var x=Qe.p;try{return Qe.p=f,y()}finally{Qe.p=x}}var Ur=Math.random().toString(36).slice(2),nr="__reactFiber$"+Ur,hs="__reactProps$"+Ur,Pa="__reactContainer$"+Ur,mn="__reactEvents$"+Ur,$i="__reactListeners$"+Ur,ar="__reactHandles$"+Ur,wa="__reactResources$"+Ur,Su="__reactMarker$"+Ur;function dl(f){delete f[nr],delete f[hs],delete f[mn],delete f[$i],delete f[ar]}function li(f){var y=f[nr];if(y)return y;for(var x=f.parentNode;x;){if(y=x[Pa]||x[nr]){if(x=y.alternate,y.child!==null||x!==null&&x.child!==null)for(f=R_(f);f!==null;){if(x=f[nr])return x;f=R_(f)}return y}f=x,x=f.parentNode}return null}function Il(f){if(f=f[nr]||f[Pa]){var y=f.tag;if(y===5||y===6||y===13||y===31||y===26||y===27||y===3)return f}return null}function $a(f){var y=f.tag;if(y===5||y===26||y===27||y===6)return f.stateNode;throw Error(i(33))}function Zl(f){var y=f[wa];return y||(y=f[wa]={hoistableStyles:new Map,hoistableScripts:new Map}),y}function yo(f){f[Su]=!0}var Dc=new Set,La={};function Ha(f,y){vo(f,y),vo(f+"Capture",y)}function vo(f,y){for(La[f]=y,f=0;f<y.length;f++)Dc.add(y[f])}var Zi=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u Line truncated
`).replace(ma,"")}function Pb(f,y){return y=Rb(y),Rb(f)===y}function ns(f,y,x,D,Y,ne){switch(x){case"children":typeof D=="string"?y==="body"||y==="textarea"&&D===""||ds(f,D):(typeof D=="number"||typeof D=="bigint")&&y!=="body"&&ds(f,""+D);break;case"className":Ma(f,"class",D);break;case"tabIndex":Ma(f,"tabindex",D);break;case"dir":case"role":case"viewBox":case"width":case"height":Ma(f,x,D);break;case"style":Is(f,D,ne);break;case"data":if(y!=="object"){Ma(f,"data",D);break}case"src":case"href":if(D===""&&(y!=="a"||x!=="href")){f.removeAttribute(x);break}if(D==null||typeof D=="function"||typeof D=="symbol"||typeof D=="boolean"){f.removeAttribute(x);break}D=Za(""+D),f.setAttribute(x,D);break;case"action":case"formAction":if(typeof D=="function"){f.setAttribute(x,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof ne=="function"&&(x==="formAction"?(y!=="input"&&ns(f,y,"name",Y.name,Y,null),ns(f,y,"formEncType",Y.formEncType,Y,null),ns(f,y,"formMethod",Y.formMethod,Y,null),ns(f,y,"formTarget",Y.formTarget,Y,null)):(ns(f,y,"encType",Y.encType,Y,null),ns(f,y,"method",Y.method,Y,null),ns(f,y,"target",Y.target,Y,null)));if(D==null||typeof D=="symbol"||typeof D=="boolean"){f.removeAttribute(x);break}D=Za(""+D),f.setAttribute(x,D);break;case"onClick":D!=null&&(f.onclick=Zs);break;case"onScroll":D!=null&&uo("scroll",f);break;case"onScrollEnd":D!=null&&uo("scrollend",f);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!="object"||!("__html"in D))throw Error(i(61));if(x=D.__html,x!=null){if(Y.children!=null)throw Error(i(60));f.innerHTML=x}}break;case"multiple":f.multiple=D&&typeof D!="function"&&typeof D!="symbol";break;case"muted":f.muted=D&&typeof D!="function"&&typeof D!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(D==null||typeof D=="function"||typeof D=="boolean"||typeof D=="symbol"){f.removeAttribute("xlink:href");break}x=Za(""+D),f.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",x);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":D!=null&&typeof D!="function"&&typeof D!="symbol"?f.setAttribute(x,""+D):f.removeAttribute(x);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":D&&typeof D!="function"&&typeof D!="symbol"?f.setAttribute(x,""):f.removeAttribute(x);break;case"capture":case"download":D===!0?f.setAttribute(x,""):D!==!1&&D!=null&&typeof D!="function"&&typeof D!="symbol"?f.setAttribute(x,D):f.removeAttribute(x);break;case"cols":case"rows":case"size":case"span":D!=null&&typeof D!="function"&&typeof D!="symbol"&&!isNaN(D)&&1<=D?f.setAttribute(x,D):f.removeAttribute(x);break;case"rowSpan":case"start":D==null||typeof D=="function"||typeof D=="symbol"||isNaN(D)?f.removeAttribute(x):f.setAttribute(x,D);break;case"popover":uo("beforetoggle",f),uo("toggle",f),Tl(f,"popover",D);break;case"xlinkActuate":fl(f,"http://www.w3.org/1999/xlink","xlink:actuate",D);break;case"xlinkArcrole":fl(f,"http://www.w3.org/1999/xlink","xlink:arcrole",D);break;case"xlinkRole":fl(f,"http://www.w3.org/1999/xlink","xlink:role",D);break;case"xlinkShow":fl(f,"http://www.w3.org/1999/xlink","xlink:show",D);break;case"xlinkTitle":fl(f,"http://www.w3.org/1999/xlink","xlink:title",D);break;case"xlinkType":fl(f,"http://www.w3.org/1999/xlink","xlink:type",D);break;case"xmlBase":fl(f,"http://www.w3.org/XML/1998/namespace","xml:base",D);break;case"xmlLang":fl(f,"http://www.w3.org/XML/1998/namespace","xml:lang",D);break;case"xmlSpace":fl(f,"http://www.w3.org/XML/1998/namespace","xml:space",D);break;case"is":Tl(f,"is",D);break;case"innerText":case"textContent":break;default:(!(2<x.length)||x[0]!=="o"&&x[0]!=="O"||x[1]!=="n"&&x[1]!=="N")&&(x=jA.get(x)||x,Tl(f,x,D))}}function Mp(f,y,x,D,Y,ne){switch(x){case"style":Is(f,D,ne);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!="object"||!("__html"in D))throw Error(i(61));if(x=D.__html,x!=null){if(Y.children!=null)throw Error(i(60));f.innerHTML=x}}break;case"children":typeof D=="string"?ds(f,D):(typeof D=="number"||typeof D=="bigint")&&ds(f,""+D);break;case"onScroll":D!=null&&uo("scroll",f);break;case"onScrollEnd":D!=null&&uo("scrollend",f);break;case"onClick":D!=null&&(f.onclick=Zs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case Line truncated
`+D.stack}}var Pn=Object.prototype.hasOwnProperty,Jn=n.unstable_scheduleCallback,Un=n.unstable_cancelCallback,Sn=n.unstable_shouldYield,Qn=n.unstable_requestPaint,Bn=n.unstable_now,vn=n.unstable_getCurrentPriorityLevel,vt=n.unstable_ImmediatePriority,Se=n.unstable_UserBlockingPriority,Ae=n.unstable_NormalPriority,fe=n.unstable_LowPriority,ze=n.unstable_IdlePriority,At=n.log,Ot=n.unstable_setDisableYieldValue,Dt=null,In=null;function Gn(f){if(typeof At=="function"&&Ot(f),In&&typeof In.setStrictMode=="function")try{In.setStrictMode(Dt,f)}catch{}}var yt=Math.clz32?Math.clz32:bn,Ft=Math.log,C=Math.LN2;function bn(f){return f>>>=0,f===0?32:31-(Ft(f)/C|0)|0}var pi=256,qn=262144,Vn=4194304;function Mi(f){var y=f&42;if(y!==0)return y;switch(f&-f){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return f&261888;case 262144:case 524288:case 1048576:case 2097152:return f&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return f&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return f}}function or(f,y,x){var D=f.pendingLanes;if(D===0)return 0;var Y=0,ne=f.suspendedLanes,we=f.pingedLanes;f=f.warmLanes;var We=D&134217727;return We!==0?(D=We&~ne,D!==0?Y=Mi(D):(we&=We,we!==0?Y=Mi(we):x||(x=We&~f,x!==0&&(Y=Mi(x))))):(We=D&~ne,We!==0?Y=Mi(We):we!==0?Y=Mi(we):x||(x=D&~f,x!==0&&(Y=Mi(x)))),Y===0?0:y!==0&&y!==Y&&(y&ne)===0&&(ne=Y&-Y,x=y&-y,ne>=x||ne===32&&(x&4194048)!==0)?y:Y}function Ut(f,y){return(f.pendingLanes&~(f.suspendedLanes&~f.pingedLanes)&y)===0}function fo(f,y){switch(f){case 1:case 2:case 4:case 8:case 64:return y+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return y+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mr(){var f=Vn;return Vn<<=1,(Vn&62914560)===0&&(Vn=4194304),f}function Bi(f){for(var y=[],x=0;31>x;x++)y.push(f);return y}function Qr(f,y){f.pendingLanes|=y,y!==268435456&&(f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0)}function Fi(f,y,x,D,Y,ne){var we=f.pendingLanes;f.pendingLanes=x,f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0,f.expiredLanes&=x,f.entangledLanes&=x,f.errorRecoveryDisabledLanes&=x,f.shellSuspendCounter=0;var We=f.entanglements,gt=f.expirationTimes,Gt=f.hiddenUpdates;for(x=we&~x;0<x;){var sn=31-yt(x),hn=1<<sn;We[sn]=0,gt[sn]=-1;var Yt=Gt[sn];if(Yt!==null)for(Gt[sn]=null,sn=0;sn<Yt.length;sn++){var nn=Yt[sn];nn!==null&&(nn.lane&=-536870913)}x&=~hn}D!==0&&us(f,D,0),ne!==0&&Y===0&&f.tag!==0&&(f.suspendedLanes|=ne&~(we&~y))}function us(f,y,x){f.pendingLanes|=y,f.suspendedLanes&=~y;var D=31-yt(y);f.entangledLanes|=y,f.entanglements[D]=f.entanglements[D]|1073741824|x&261930}function so(f,y){var x=f.entangledLanes|=y;for(f=f.entanglements;x;){var D=31-yt(x),Y=1<<D;Y&y|f[D]&y&&(f[D]|=y),x&=~Y}}function zo(f,y){var x=y&-y;return x=(x&42)!==0?1:ao(x),(x&(f.suspendedLanes|y))!==0?0:x}function ao(f){switch(f){case 2:f=1;break;case 8:f=4;break;case 32:f=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:f=128;break;case 268435456:f=134217728;break;default:f=0}return f}function xo(f){return f&=-f,2<f?8<f?(f&134217727)!==0?32:268435456:8:2}function sr(){var f=Qe.p;return f!==0?f:(f=window.event,f===void 0?32:Qd(f.type))}function ln(f,y){var x=Qe.p;try{return Qe.p=f,y()}finally{Qe.p=x}}var Ur=Math.random().toString(36).slice(2),nr="__reactFiber$"+Ur,ds="__reactProps$"+Ur,La="__reactContainer$"+Ur,mn="__reactEvents$"+Ur,$i="__reactListeners$"+Ur,ar="__reactHandles$"+Ur,Ma="__reactResources$"+Ur,Eu="__reactMarker$"+Ur;function pl(f){delete f[nr],delete f[ds],delete f[mn],delete f[$i],delete f[ar]}function li(f){var y=f[nr];if(y)return y;for(var x=f.parentNode;x;){if(y=x[La]||x[nr]){if(x=y.alternate,y.child!==null||x!==null&&x.child!==null)for(f=D_(f);f!==null;){if(x=f[nr])return x;f=D_(f)}return y}f=x,x=f.parentNode}return null}function Tl(f){if(f=f[nr]||f[La]){var y=f.tag;if(y===5||y===6||y===13||y===31||y===26||y===27||y===3)return f}return null}function Ha(f){var y=f.tag;if(y===5||y===26||y===27||y===6)return f.stateNode;throw Error(i(33))}function Xl(f){var y=f[Ma];return y||(y=f[Ma]={hoistableStyles:new Map,hoistableScripts:new Map}),y}function yo(f){f[Eu]=!0}var Dc=new Set,Ua={};function Za(f,y){vo(f,y),vo(f+"Capture",y)}function vo(f,y){for(Ua[f]=y,f=0;f<y.length;f++)Dc.add(y[f])}var Zi=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u Line truncated
`).replace(ga,"")}function Rb(f,y){return y=Db(y),Db(f)===y}function is(f,y,x,D,Y,ne){switch(x){case"children":typeof D=="string"?y==="body"||y==="textarea"&&D===""||fs(f,D):(typeof D=="number"||typeof D=="bigint")&&y!=="body"&&fs(f,""+D);break;case"className":Sa(f,"class",D);break;case"tabIndex":Sa(f,"tabindex",D);break;case"dir":case"role":case"viewBox":case"width":case"height":Sa(f,x,D);break;case"style":Ts(f,D,ne);break;case"data":if(y!=="object"){Sa(f,"data",D);break}case"src":case"href":if(D===""&&(y!=="a"||x!=="href")){f.removeAttribute(x);break}if(D==null||typeof D=="function"||typeof D=="symbol"||typeof D=="boolean"){f.removeAttribute(x);break}D=Xa(""+D),f.setAttribute(x,D);break;case"action":case"formAction":if(typeof D=="function"){f.setAttribute(x,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof ne=="function"&&(x==="formAction"?(y!=="input"&&is(f,y,"name",Y.name,Y,null),is(f,y,"formEncType",Y.formEncType,Y,null),is(f,y,"formMethod",Y.formMethod,Y,null),is(f,y,"formTarget",Y.formTarget,Y,null)):(is(f,y,"encType",Y.encType,Y,null),is(f,y,"method",Y.method,Y,null),is(f,y,"target",Y.target,Y,null)));if(D==null||typeof D=="symbol"||typeof D=="boolean"){f.removeAttribute(x);break}D=Xa(""+D),f.setAttribute(x,D);break;case"onClick":D!=null&&(f.onclick=Xs);break;case"onScroll":D!=null&&uo("scroll",f);break;case"onScrollEnd":D!=null&&uo("scrollend",f);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!="object"||!("__html"in D))throw Error(i(61));if(x=D.__html,x!=null){if(Y.children!=null)throw Error(i(60));f.innerHTML=x}}break;case"multiple":f.multiple=D&&typeof D!="function"&&typeof D!="symbol";break;case"muted":f.muted=D&&typeof D!="function"&&typeof D!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(D==null||typeof D=="function"||typeof D=="boolean"||typeof D=="symbol"){f.removeAttribute("xlink:href");break}x=Xa(""+D),f.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",x);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":D!=null&&typeof D!="function"&&typeof D!="symbol"?f.setAttribute(x,""+D):f.removeAttribute(x);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":D&&typeof D!="function"&&typeof D!="symbol"?f.setAttribute(x,""):f.removeAttribute(x);break;case"capture":case"download":D===!0?f.setAttribute(x,""):D!==!1&&D!=null&&typeof D!="function"&&typeof D!="symbol"?f.setAttribute(x,D):f.removeAttribute(x);break;case"cols":case"rows":case"size":case"span":D!=null&&typeof D!="function"&&typeof D!="symbol"&&!isNaN(D)&&1<=D?f.setAttribute(x,D):f.removeAttribute(x);break;case"rowSpan":case"start":D==null||typeof D=="function"||typeof D=="symbol"||isNaN(D)?f.removeAttribute(x):f.setAttribute(x,D);break;case"popover":uo("beforetoggle",f),uo("toggle",f),kl(f,"popover",D);break;case"xlinkActuate":ml(f,"http://www.w3.org/1999/xlink","xlink:actuate",D);break;case"xlinkArcrole":ml(f,"http://www.w3.org/1999/xlink","xlink:arcrole",D);break;case"xlinkRole":ml(f,"http://www.w3.org/1999/xlink","xlink:role",D);break;case"xlinkShow":ml(f,"http://www.w3.org/1999/xlink","xlink:show",D);break;case"xlinkTitle":ml(f,"http://www.w3.org/1999/xlink","xlink:title",D);break;case"xlinkType":ml(f,"http://www.w3.org/1999/xlink","xlink:type",D);break;case"xmlBase":ml(f,"http://www.w3.org/XML/1998/namespace","xml:base",D);break;case"xmlLang":ml(f,"http://www.w3.org/XML/1998/namespace","xml:lang",D);break;case"xmlSpace":ml(f,"http://www.w3.org/XML/1998/namespace","xml:space",D);break;case"is":kl(f,"is",D);break;case"innerText":case"textContent":break;default:(!(2<x.length)||x[0]!=="o"&&x[0]!=="O"||x[1]!=="n"&&x[1]!=="N")&&(x=jA.get(x)||x,kl(f,x,D))}}function wp(f,y,x,D,Y,ne){switch(x){case"style":Ts(f,D,ne);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!="object"||!("__html"in D))throw Error(i(61));if(x=D.__html,x!=null){if(Y.children!=null)throw Error(i(60));f.innerHTML=x}}break;case"children":typeof D=="string"?fs(f,D):(typeof D=="number"||typeof D=="bigint")&&fs(f,""+D);break;case"onScroll":D!=null&&uo("scroll",f);break;case"onScrollEnd":D!=null&&uo("scrollend",f);break;case"onClick":D!=null&&(f.onclick=Xs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case Line truncated
/* [wrapped with `+R+`] */
`)}function Ab(S){return Cr(S)||Wd(S)||!!(Qi&&S&&S[Qi])}function Ud(S,R){var Z=typeof S;return R=R??je,!!R&&(Z=="number"||Z!="symbol"&&li.test(S))&&S>-1&&S%1==0&&S<R}function zl(S,R,Z){if(!ra(Z))return!1;var ge=typeof R;return(ge=="number"?pu(Z)&&Ud(R,Z.length):ge=="string"&&R in Z)?IA(Z[R],S):!1}function gp(S,R){if(Cr(S))return!1;var Z=typeof S;return Z=="number"||Z=="symbol"||Z=="boolean"||S==null||_c(S)?!0:Fi.test(S)||!Qr.test(S)||R!=null&&S in No(R)}function Iy(S){var R=typeof S;return R=="string"||R=="number"||R=="symbol"||R=="boolean"?S!=="__proto__":S===null}function e1(S){var R=Qs(S),Z=Ye[R];if(typeof Z!="function"||!(R in er.prototype))return!1;if(S===Z)return!0;var ge=Cs(Z);return!!ge&&S===ge[0]}function hb(S){return!!uc&&uc in S}var u_=GA?Nu:nn;function qc(S){var R=S&&S.constructor,Z=typeof R=="function"&&R.prototype||wd;return S===Z}function t1(S){return S===S&&!ra(S)}function c_(S,R){return function(Z){return Z==null?!1:Z[S]===R&&(R!==t||S in No(Z))}}function Ty(S){var R=F0(S,function(ge){return Z.size===g&&Z.clear(),ge}),Z=R.cache;return R}function Kd(S,R){var Z=S[1],ge=R[1],De=Z|ge,He=De<(V|q|ce),mt=ge==ce&&Z==oe||ge==ce&&Z==$&&S[7].length<=R[8]||ge==(ce|$)&&R[7].length<=R[8]&&Z==oe;if(!(He||mt))return S;ge&V&&(S[2]=R[2],De|=Z&V?0:ee);var Mt=R[3];if(Mt){var Pt=S[3];S[3]=Pt?Yn(Pt,Mt,R[4]):Mt,S[4]=Pt?pA(S[3],v):R[4]}return Mt=R[5],Mt&&(Pt=S[5],S[5]=Pt?Si(Pt,Mt,R[6]):Mt,S[6]=Pt?pA(S[5],v):R[6]),Mt=R[7],Mt&&(S[7]=Mt),ge&ce&&(S[8]=S[8]==null?R[8]:Ro(S[8],R[8])),S[9]==null&&(S[9]=R[9]),S[0]=R[0],S[1]=De,S}function n1(S){var R=[];if(S!=null)for(var Z in No(S))R.push(Z);return R}function I0(S){return Md.call(S)}function Cl(S,R,Z){return R=Ts(R===t?S.length-1:R,0),function(){for(var ge=arguments,De=-1,He=Ts(ge.length-R,0),mt=Xt(He);++De<He;)mt[De]=ge[R+De];De=-1;for(var Mt=Xt(R+1);++De<R;)Mt[De]=ge[De];return Mt[R]=Z(mt),Dl(S,this,Mt)}}function vm(S,R){return R.length<2?S:sh(S,M(R,0,-1))}function Ds(S,R){for(var Z=S.length,ge=Ro(R.length,Z),De=fr(S);ge--;){var He=R[ge];S[ge]=Ud(He,Z)?De[He]:t}return S}function i1(S,R){if(!(R==="constructor"&&typeof S[R]=="function")&&R!="__proto__")return S[R]}var A_=ky(u),bm=qg||function(S,R){return ei.setTimeout(S,R)},Cm=ky(p);function Tf(S,R,Z){var ge=R+"";return Cm(S,cb(ge,Dy(mp(ge),Z)))}function ky(S){var R=0,Z=0;return function(){var ge=tl(),De=xe-(ge-Z);if(Z=ge,De>0){if(++R>=me)return arguments[0]}else R=0;return S.apply(t,arguments)}}function r1(S,R){var Z=-1,ge=S.length,De=ge-1;for(R=R===t?ge:R;++Z<R;){var He=Gh(Z,De),mt=S[He];S[He]=S[Z],S[Z]=mt}return S.length=R,S}var _m=Ty(function(S){var R=[];return S.charCodeAt(0)===46&&R.push(""),S.replace(ls,function(Z,ge,De,He){R.push(De?He.replace(Pa,"$1"):ge||Z)}),R});function Ba(S){if(typeof S=="string"||_c(S))return S;var R=S+"";return R=="0"&&1/S==-nt?"-0":R}function kf(S){if(S!=null){try{return Dh.call(S)}catch{}try{return S+""}catch{}}return""}function Dy(S,R){return Du(st,function(Z){var ge="_."+Z[0];R&Z[1]&&!Ja(S,ge)&&S.push(ge)}),S.sort()}function db(S){if(S instanceof er)return S.clone();var R=new Js(S.__wrapped__,S.__chain__);return R.__actions__=fr(S.__actions__),R.__index__=S.__index__,R.__values__=S.__values__,R}function fb(S,R,Z){(Z?zl(S,R,Z):R===t)?R=1:R=Ts(Or(R),0);var ge=S==null?0:S.length;if(!ge||R<1)return[];for(var De=0,He=0,mt=Xt(sp(ge/R));De<ge;)mt[He++]=M(S,De,De+=R);return mt}function pb(S){for(var R=-1,Z=S==null?0:S.length,ge=0,De=[];++R<Z;){var He=S[R];He&&(De[ge++]=He)}return De}function xm(){var S=arguments.length;if(!S)return[];for(var R=Xt(S-1),Z=arguments[0],ge=S;ge--;)R[ge-1]=arguments[ge];return us(Cr(Z)?fr(Z):[Z],ur(R,1))}var Ry=br(function(S,R){return qs(S)?nh(S,ur(R,1,qs,!0)):[]}),Fd=br(function(S,R){var Z=hu(R);return qs(Z)&&(Z=t),qs(S)?nh(S,ur(R,1,qs,!0),Ji(Z,2)):[]}),Rs=br(function(S,R){var Z=hu(R);return qs(Z)&&(Z=t),qs(S)?nh(S,ur(R,1,qs,!0),t,Z):[]});function wm(S,R,Z){var ge=S==null?0:S.length;return ge?(R=Z||R===t?1:Or(R),M(S,R<0?0:R,ge)):[]}function h_(S,R,Z){var ge=S==null?0:S.length;return ge?(R=Z||R===t?1:Or(R),R=ge-R,M(S,0,R<0?0:R)):[]}function jl(S,R){return S&&S.length?Ge(S,Ji(R,3),!0,!0):[]}function p3(S,R){return S&&S.length?Ge(S,Ji(R,3),!0):[]}function d_(S,R,Z,ge){var De=S==null?0:S.length;return De?(Z&&typeof Z!="number"&&zl(S,R,Z)&&(Z=0,ge=De),cm(S,R,Z,ge)):[]}function mb(S,R,Z){var ge=S==null?0:S.length;if(!ge)return-1;var De=Z==null?0:Or(Z);return De<0&&(De=Ts(ge+De,0)),df(S,Ji(R,3),De)}function Ys(S,R,Z){var ge=S==null?0:S.length;if(!ge)return-1;var De=ge-1;return Z!==t&&(De=Or(Z),De=Z<0?Ts(ge+De,0):Ro(De,ge-1)),df(S,Ji(R,3),De,!0)}function bc(S){var R=S==null?0:S.length;return R?ur(S,1):[]}function qh(S){var R=S==null?0:S.length;return R?ur(S,nt):[]}function f_(S,R){var Z=S==null?0:S.length;return Z?(R=R===t?1:Or(R),ur(S,R)):[]}function gb(S){for(var R=-1,Z=S==null?0:S.length,ge={};++R<Z;){var De=S[R];pc(ge,De[0],De[1])}return ge}function Mm(S){return S&&S.length?S[0]:t}function m3(S,R,Z){var ge=S==null?0:S.length;if(!ge)return-1;var De=Z==null?0:Or(Z);retu Line truncated
`;S.replace(si,function(cr,mo,Io,TA,Jc,nd){return Io||(Io=TA),Rn+=S.slice(gn,nd).replace(Zl,Gg),mo&&(Mt=!0,Rn+=`' +
`)}function cb(S){return Cr(S)||Gd(S)||!!(Qi&&S&&S[Qi])}function Ld(S,R){var Z=typeof S;return R=R??je,!!R&&(Z=="number"||Z!="symbol"&&li.test(S))&&S>-1&&S%1==0&&S<R}function jl(S,R,Z){if(!oa(Z))return!1;var ge=typeof R;return(ge=="number"?mu(Z)&&Ld(R,Z.length):ge=="string"&&R in Z)?IA(Z[R],S):!1}function mp(S,R){if(Cr(S))return!1;var Z=typeof S;return Z=="number"||Z=="symbol"||Z=="boolean"||S==null||_c(S)?!0:Fi.test(S)||!Qr.test(S)||R!=null&&S in No(R)}function Oy(S){var R=typeof S;return R=="string"||R=="number"||R=="symbol"||R=="boolean"?S!=="__proto__":S===null}function Jg(S){var R=Ys(S),Z=Ye[R];if(typeof Z!="function"||!(R in er.prototype))return!1;if(S===Z)return!0;var ge=_s(Z);return!!ge&&S===ge[0]}function Ab(S){return!!uc&&uc in S}var l_=GA?Gu:nn;function qc(S){var R=S&&S.constructor,Z=typeof R=="function"&&R.prototype||xd;return S===Z}function e1(S){return S===S&&!oa(S)}function u_(S,R){return function(Z){return Z==null?!1:Z[S]===R&&(R!==t||S in No(Z))}}function Iy(S){var R=K0(S,function(ge){return Z.size===g&&Z.clear(),ge}),Z=R.cache;return R}function Ud(S,R){var Z=S[1],ge=R[1],De=Z|ge,He=De<(V|q|ce),mt=ge==ce&&Z==oe||ge==ce&&Z==$&&S[7].length<=R[8]||ge==(ce|$)&&R[7].length<=R[8]&&Z==oe;if(!(He||mt))return S;ge&V&&(S[2]=R[2],De|=Z&V?0:ee);var Mt=R[3];if(Mt){var Pt=S[3];S[3]=Pt?Yn(Pt,Mt,R[4]):Mt,S[4]=Pt?pA(S[3],v):R[4]}return Mt=R[5],Mt&&(Pt=S[5],S[5]=Pt?Si(Pt,Mt,R[6]):Mt,S[6]=Pt?pA(S[5],v):R[6]),Mt=R[7],Mt&&(S[7]=Mt),ge&ce&&(S[8]=S[8]==null?R[8]:Ro(S[8],R[8])),S[9]==null&&(S[9]=R[9]),S[0]=R[0],S[1]=De,S}function t1(S){var R=[];if(S!=null)for(var Z in No(S))R.push(Z);return R}function O0(S){return wd.call(S)}function xl(S,R,Z){return R=ks(R===t?S.length-1:R,0),function(){for(var ge=arguments,De=-1,He=ks(ge.length-R,0),mt=Xt(He);++De<He;)mt[De]=ge[R+De];De=-1;for(var Mt=Xt(R+1);++De<R;)Mt[De]=ge[De];return Mt[R]=Z(mt),Rl(S,this,Mt)}}function gm(S,R){return R.length<2?S:sh(S,M(R,0,-1))}function Rs(S,R){for(var Z=S.length,ge=Ro(R.length,Z),De=fr(S);ge--;){var He=R[ge];S[ge]=Ld(He,Z)?De[He]:t}return S}function n1(S,R){if(!(R==="constructor"&&typeof S[R]=="function")&&R!="__proto__")return S[R]}var c_=Ty(u),ym=Yg||function(S,R){return ei.setTimeout(S,R)},vm=Ty(p);function If(S,R,Z){var ge=R+"";return vm(S,ub(ge,ky(pp(ge),Z)))}function Ty(S){var R=0,Z=0;return function(){var ge=nl(),De=xe-(ge-Z);if(Z=ge,De>0){if(++R>=me)return arguments[0]}else R=0;return S.apply(t,arguments)}}function i1(S,R){var Z=-1,ge=S.length,De=ge-1;for(R=R===t?ge:R;++Z<R;){var He=Gh(Z,De),mt=S[He];S[He]=S[Z],S[Z]=mt}return S.length=R,S}var bm=Iy(function(S){var R=[];return S.charCodeAt(0)===46&&R.push(""),S.replace(us,function(Z,ge,De,He){R.push(De?He.replace(La,"$1"):ge||Z)}),R});function Oa(S){if(typeof S=="string"||_c(S))return S;var R=S+"";return R=="0"&&1/S==-nt?"-0":R}function Tf(S){if(S!=null){try{return Dh.call(S)}catch{}try{return S+""}catch{}}return""}function ky(S,R){return Ru(st,function(Z){var ge="_."+Z[0];R&Z[1]&&!el(S,ge)&&S.push(ge)}),S.sort()}function hb(S){if(S instanceof er)return S.clone();var R=new ea(S.__wrapped__,S.__chain__);return R.__actions__=fr(S.__actions__),R.__index__=S.__index__,R.__values__=S.__values__,R}function db(S,R,Z){(Z?jl(S,R,Z):R===t)?R=1:R=ks(Or(R),0);var ge=S==null?0:S.length;if(!ge||R<1)return[];for(var De=0,He=0,mt=Xt(op(ge/R));De<ge;)mt[He++]=M(S,De,De+=R);return mt}function fb(S){for(var R=-1,Z=S==null?0:S.length,ge=0,De=[];++R<Z;){var He=S[R];He&&(De[ge++]=He)}return De}function Cm(){var S=arguments.length;if(!S)return[];for(var R=Xt(S-1),Z=arguments[0],ge=S;ge--;)R[ge-1]=arguments[ge];return cs(Cr(Z)?fr(Z):[Z],ur(R,1))}var Dy=br(function(S,R){return Vs(S)?nh(S,ur(R,1,Vs,!0)):[]}),Kd=br(function(S,R){var Z=du(R);return Vs(Z)&&(Z=t),Vs(S)?nh(S,ur(R,1,Vs,!0),Ji(Z,2)):[]}),Ps=br(function(S,R){var Z=du(R);return Vs(Z)&&(Z=t),Vs(S)?nh(S,ur(R,1,Vs,!0),t,Z):[]});function _m(S,R,Z){var ge=S==null?0:S.length;return ge?(R=Z||R===t?1:Or(R),M(S,R<0?0:R,ge)):[]}function A_(S,R,Z){var ge=S==null?0:S.length;return ge?(R=Z||R===t?1:Or(R),R=ge-R,M(S,0,R<0?0:R)):[]}function Nl(S,R){return S&&S.length?Ge(S,Ji(R,3),!0,!0):[]}function h3(S,R){return S&&S.length?Ge(S,Ji(R,3),!0):[]}function h_(S,R,Z,ge){var De=S==null?0:S.length;return De?(Z&&typeof Z!="number"&&jl(S,R,Z)&&(Z=0,ge=De),lm(S,R,Z,ge)):[]}function pb(S,R,Z){var ge=S==null?0:S.length;if(!ge)return-1;var De=Z==null?0:Or(Z);return De<0&&(De=ks(ge+De,0)),hf(S,Ji(R,3),De)}function qs(S,R,Z){var ge=S==null?0:S.length;if(!ge)return-1;var De=ge-1;return Z!==t&&(De=Or(Z),De=Z<0?ks(ge+De,0):Ro(De,ge-1)),hf(S,Ji(R,3),De,!0)}function bc(S){var R=S==null?0:S.length;return R?ur(S,1):[]}function qh(S){var R=S==null?0:S.length;return R?ur(S,nt):[]}function d_(S,R){var Z=S==null?0:S.length;return Z?(R=R===t?1:Or(R),ur(S,R)):[]}function mb(S){for(var R=-1,Z=S==null?0:S.length,ge={};++R<Z;){var De=S[R];pc(ge,De[0],De[1])}return ge}function xm(S){return S&&S.length?S[0]:t}function d3(S,R,Z){var ge=S==null?0:S.length;if(!ge)return-1;var De=Z==null?0:Or(Z);retu Line truncated
`;S.replace(si,function(cr,mo,Io,TA,Jc,nd){return Io||(Io=TA),Rn+=S.slice(gn,nd).replace(Xl,Ng),mo&&(Mt=!0,Rn+=`' +
__e(`+mo+`) +
'`),Jc&&(Pt=!0,Rn+=`';
`+Jc+`;
@@ -19,18 +19,18 @@ __p += '`),Io&&(Rn+=`' +
`;var pr=Jr.call(R,"variable")&&R.variable;if(!pr)Rn=`with (obj) {
`+Rn+`
}
`;else if(hs.test(pr))throw new Xi(a);Rn=(Pt?Rn.replace(bn,""):Rn).replace(pi,"$1").replace(qn,"$1;"),Rn="function("+(pr||"obj")+`) {
`;else if(ds.test(pr))throw new Xi(a);Rn=(Pt?Rn.replace(bn,""):Rn).replace(pi,"$1").replace(qn,"$1;"),Rn="function("+(pr||"obj")+`) {
`+(pr?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Mt?", __e = _.escape":"")+(Pt?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Rn+`return __p
}`;var Yr=U1(function(){return Xr(He,ji+"return "+Rn).apply(t,mt)});if(Yr.source=Rn,g1(Yr))throw Yr;return Yr}function qd(S){return Eo(S).toLowerCase()}function Op(S){return Eo(S).toUpperCase()}function Z0(S,R,Z){if(S=Eo(S),S&&(Z||R===t))return Cy(S);if(!S||!(R=ae(R)))return S;var ge=gl(S),De=gl(R),He=y0(ge,De),mt=mf(ge,De)+1;return dt(ge,He,mt).join("")}function P1(S,R,Z){if(S=Eo(S),S&&(Z||R===t))return S.slice(0,C0(S)+1);if(!S||!(R=ae(R)))return S;var ge=gl(S),De=mf(ge,gl(R))+1;return dt(ge,0,De).join("")}function Ip(S,R,Z){if(S=Eo(S),S&&(Z||R===t))return S.replace(ao,"");if(!S||!(R=ae(R)))return S;var ge=gl(S),De=y0(ge,gl(R));return dt(ge,De).join("")}function T3(S,R){var Z=de,ge=be;if(ra(R)){var De="separator"in R?R.separator:De;Z="length"in R?Or(R.length):Z,ge="omission"in R?ae(R.omission):ge}S=Eo(S);var He=S.length;if(Ru(S)){var mt=gl(S);He=mt.length}if(Z>=He)return S;var Mt=Z-Ka(ge);if(Mt<1)return ge;var Pt=mt?dt(mt,0,Mt).join(""):S.slice(0,Mt);if(De===t)return Pt+ge;if(mt&&(Mt+=Pt.length-Mt),N0(De)){if(S.slice(Mt).search(De)){var gn,Mn=Pt;for(De.global||(De=Kr(De.source,Eo($i.exec(De))+"g")),De.lastIndex=0;gn=De.exec(Mn);)var Rn=gn.index;Pt=Pt.slice(0,Rn===t?Mt:Rn)}}else if(S.indexOf(ae(De),Mt)!=Mt){var si=Pt.lastIndexOf(De);si>-1&&(Pt=Pt.slice(0,si))}return Pt+ge}function j_(S){return S=Eo(S),S&&or.test(S)?S.replace(Vn,gf):S}var L1=fa(function(S,R,Z){return S+(Z?" ":"")+R.toUpperCase()}),wl=Ea("toUpperCase");function Tp(S,R,Z){return S=Eo(S),R=Z?t:R,R===t?om(S)?am(S):p0(S):S.match(R)||[]}var U1=br(function(S,R){try{return Dl(S,t,R)}catch(Z){return g1(Z)?Z:new Xi(Z)}}),N_=bl(function(S,R){return Du(R,function(Z){Z=Ba(Z),pc(S,Z,Ny(S[Z],S))}),S});function qo(S){var R=S==null?0:S.length,Z=Ji();return S=R?Zo(S,function(ge){if(typeof ge[1]!="function")throw new Rl(s);return[Z(ge[0]),ge[1]]}):[],br(function(ge){for(var De=-1;++De<R;){var He=S[De];if(Dl(He[0],this,ge))return Dl(He[1],this,ge)}})}function Ml(S){return th(su(S,E))}function td(S){return function(){return S}}function tv(S,R){return S==null||S!==S?R:S}var kp=ja(),qb=ja(!0);function gu(S){return S}function Rm(S){return Td(typeof S=="function"?S:su(S,E))}function nv(S){return dm(su(S,E))}function Gl(S,R){return Ef(S,su(R,E))}var Xc=br(function(S,R){return function(Z){return ea(Z,S,R)}}),f=br(function(S,R){return function(Z){return ea(S,Z,R)}});function y(S,R,Z){var ge=sl(R),De=zh(R,ge);Z==null&&!(ra(R)&&(De.length||!ge.length))&&(Z=R,R=S,S=this,De=zh(R,sl(R)));var He=!(ra(Z)&&"chain"in Z)||!!Z.chain,mt=Nu(S);return Du(De,function(Mt){var Pt=R[Mt];S[Mt]=Pt,mt&&(S.prototype[Mt]=function(){var gn=this.__chain__;if(He||gn){var Mn=S(this.__wrapped__),Rn=Mn.__actions__=fr(this.__actions__);return Rn.push({func:Pt,args:arguments,thisArg:S}),Mn.__chain__=gn,Mn}return Pt.apply(S,us([this.value()],arguments))})}),S}function x(){return ei._===this&&(ei._=Kc),this}function D(){}function Y(S){return S=Or(S),br(function(R){return Dd(R,S)})}var ne=Fl(Zo),we=Fl(Xs),We=Fl(f0);function gt(S){return gp(S)?ac(Ba(S)):Nh(S)}function Gt(S){return function(R){return S==null?t:sh(S,R)}}var sn=zu(),hn=zu(!0);function Yt(){return[]}function nn(){return!1}function ki(){return{}}function tr(){return""}function is(){return!0}function Rt(S,R){if(S=Or(S),S<1||S>je)return[];var Z=lt,ge=Ro(S,lt);R=Ji(R),S-=lt;for(var De=g0(ge,R);++Z<S;)R(Z);return De}function Et(S){return Cr(S)?Zo(S,Ba):_c(S)?[S]:fr(_m(Eo(S)))}function Wt(S){var R=++Pu;return Eo(S)+R}var fn=Pd(function(S,R){return S+R},0),Yi=Ws("ceil"),Bo=Pd(function(S,R){return S/R},1),Di=Ws("floor");function _r(S){return S&&S.length?Fh(S,gu,ms):t}function co(S,R){return S&&S.length?Fh(S,Ji(R,2),ms):t}function Oo(S){return el(S,gu)}function Ff(S,R){return el(S,Ji(R,2))}function G_(S){return S&&S.length?Fh(S,gu,kd):t}function fM(S,R){return S&&S.length?Fh(S,Ji(R,2),kd):t}var W8=Pd(function(S,R){return S*R},1),pM=Ws("round"),Q8=Pd(function(S,R){return S-R},0);function Y8(S){return S&&S.length?bd(S,gu):0}function k3(S,R){return S&&S.length?bd(S,Ji(R,2)):0}return Ye.after=y_,Ye.ary=h1,Ye.assign=Kb,Ye.assignIn=_1,Ye.assignInWith=k_,Ye.assignWith=Zc,Ye.at=Fb,Ye.before=jy,Ye.bind=Ny,Ye.bindAll=N_,Ye.bindKey=Tm,Ye.castArray=b_,Ye.chain=Bm,Ye.chunk=fb,Ye.compact=pb,Ye.concat=xm,Ye.cond=qo,Ye.conforms=Ml,Ye.constant=td,Ye.countBy=pa,Ye.create=D_,Ye.curry=Eb,Ye.curryRight=Gy,Ye.debounce=Uo,Ye.defaults=R_,Ye.defaultsDeep=zb,Ye.defer=Bb,Ye.delay=_3,Ye.difference=Ry,Ye.differenceBy=Fd,Ye.differenceWith=Rs,Ye.drop=wm,Ye.dropRight=h_,Ye.dropRightWhile=jl,Ye.dropWhile=p3,Ye.fill=d_,Ye.filter=du,Ye.flatMap=Fy,Ye.flatMapDeep=zy,Ye.flatMapDepth=L0,Ye.flatten=bc,Ye.flattenDeep=qh,Ye.flattenDepth=f_,Ye.flip=v_,Ye.flow=kp,Ye.flowRight=qb,Ye.fromPairs=gb,Ye.functions=Vy,Ye.functionsIn=Ep,Ye.groupBy=_b,Ye.initial=Ps,Ye.intersection=_l,Ye.intersectionBy=uh,Ye.intersectionWith=o1,Ye.invert=W0,Ye.invertBy=P_,Ye.invokeMap=xb,Ye.iteratee=Rm,Ye.keyBy=wb,Ye.keys=sl,Ye.keysIn=wc,Ye.map=U0,Ye.mapKeys=M1,Ye.mapValues=km,Ye.matches=nv,Ye.matchesProperty=Gl,Ye.mem Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(v[1])} }\`.`)];const E=[];return n.layerType==="symbol"&&a==="text-font"&&Sw(KC(s))&&ql(s.type)==="identity"&&E.push(new Nn(t,s,'"text-font" does not support identity functions')),E.concat(i({key:n.key,value:s,valueSpec:g,style:r,styleSpec:o,expressionContext:"property",propertyType:e,propertyKey:a}))}function rJ(n){return iJ(n,"paint")}function oJ(n){return iJ(n,"layout")}function sJ(n){let e=[];const t=n.value,i=n.key,r=n.style,o=n.styleSpec;if(ro(t)!=="object")return[new Nn(i,t,`object expected, ${ro(t)} found`)];!t.type&&!t.ref&&e.push(new Nn(i,t,'either "type" or "ref" is required'));let s=ql(t.type);const a=ql(t.ref);if(t.id){const c=ql(t.id);for(let d=0;d<n.arrayIndex;d++){const g=r.layers[d];ql(g.id)===c&&e.push(new Nn(i,t.id,`duplicate layer id "${t.id}", previously used at line ${g.id.__line__}`))}}if("ref"in t){["type","source","source-layer","filter","layout"].forEach(d=>{d in t&&e.push(new Nn(i,t[d],`"${d}" is prohibited for ref layers`))});let c;r.layers.forEach(d=>{ql(d.id)===a&&(c=d)}),c?c.ref?e.push(new Nn(i,t.ref,"ref cannot reference another ref layer")):s=ql(c.type):e.push(new Nn(i,t.ref,`ref layer "${a}" not found`))}else if(s!=="background")if(!t.source)e.push(new Nn(i,t,'missing required property "source"'));else{const c=r.sources&&r.sources[t.source],d=c&&ql(c.type);c?d==="vector"&&s==="raster"?e.push(new Nn(i,t.source,`layer "${t.id}" requires a raster source`)):d!=="raster-dem"&&s==="hillshade"?e.push(new Nn(i,t.source,`layer "${t.id}" requires a raster-dem source`)):d!=="raster-dem"&&s==="color-relief"?e.push(new Nn(i,t.source,`layer "${t.id}" requires a raster-dem source`)):d==="raster"&&s!=="raster"?e.push(new Nn(i,t.source,`layer "${t.id}" requires a vector source`)):d==="vector"&&!t["source-layer"]?e.push(new Nn(i,t,`layer "${t.id}" must specify a "source-layer"`)):d==="raster-dem"&&s!=="hillshade"&&s!=="color-relief"?e.push(new Nn(i,t.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):s==="line"&&t.paint&&t.paint["line-gradient"]&&(d!=="geojson"||!c.lineMetrics)&&e.push(new Nn(i,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new Nn(i,t.source,`source "${t.source}" not found`))}return s==="raster"&&t.paint?.resampling&&t.paint?.["raster-resampling"]&&e.push(new Nn(i,t.paint,`layer "${t.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),e=e.concat(Zf({key:i,value:t,valueSpec:o.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${i}.type`,value:t.type,valueSpec:o.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:CL,layout(c){return Zf({layer:t,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(d){return oJ(xx({layerType:s},d))}}})},paint(c){return Zf({layer:t,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(d){return rJ(xx({layerType:s},d))}}})}}})),e}function Gv(n){const e=n.value,t=n.key,i=ro(e);return i!=="string"?[new Nn(t,e,`string expected, ${i} found`)]:[]}function pde(n){const e=n.sourceName??"",t=n.value,i=n.styleSpec,r=i.source_raster_dem,o=n.style;let s=[];const a=ro(t);if(t===void 0)return s;if(a!=="object")return s.push(new Nn("source_raster_dem",t,`object expected, ${a} found`)),s;const c=ql(t.encoding)==="custom",d=["redFactor","greenFactor","blueFactor","baseShift"],g=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const v in t)!c&&d.includes(v)?s.push(new Nn(v,t[v],`In "${e}": "${v}" is only valid when "encoding" is set to "custom". ${g} encoding found`)):r[v]?s=s.concat(n.validateSpec({key:v,value:t[v],valueSpec:r[v],validateSpec:n.validateSpec,style:o,styleSpec:i})):s.push(new Nn(v,t[v],`unknown property "${v}"`));return s}const fj={promoteId:mde};function aJ(n){const e=n.value,t=n.key,i=n.styleSpec,r=n.style,o=n.validateSpec;if(!e.type)return[new Nn(t,e,'"type" is required')];const s=ql(e.type);let a;switch(s){case"vector":case"raster":return a=Zf({key:t,value:e,valueSpec:i[`source_${s.replace("-","_")}`],style:n.style,styleSpec:i,objectElementValidators:fj,validateSpec:o}),a;case"raster-dem":return a=pde({sourceName:t,value:e,style:n.style,styleSpec:i,validateSpec:o}),a;case"geojson":if(a=Zf({key:t,value:e,valueSpec:i.source_geojson,style:r,styleSpec:i,validateSpec:o,objectElementValidators:fj}),e.cluster)for(const c in e.clusterProperties){const[d,g]=e.clusterProperties[c],v=typeof d=="string"?[d,["accumulated"],["get",c]]:d;a.push(...Ex({key:`${t}.${c}.map`,value:g,expressionContext:"cluster-map"})),a.push(...Ex({key:`${t}.${c}.reduce`,value:v,expressionContext:"clusLine truncated
}`;var Yr=L1(function(){return Xr(He,ji+"return "+Rn).apply(t,mt)});if(Yr.source=Rn,m1(Yr))throw Yr;return Yr}function Yd(S){return Eo(S).toLowerCase()}function Bp(S){return Eo(S).toUpperCase()}function H0(S,R,Z){if(S=Eo(S),S&&(Z||R===t))return by(S);if(!S||!(R=ae(R)))return S;var ge=vl(S),De=vl(R),He=g0(ge,De),mt=pf(ge,De)+1;return dt(ge,He,mt).join("")}function R1(S,R,Z){if(S=Eo(S),S&&(Z||R===t))return S.slice(0,b0(S)+1);if(!S||!(R=ae(R)))return S;var ge=vl(S),De=pf(ge,vl(R))+1;return dt(ge,0,De).join("")}function Op(S,R,Z){if(S=Eo(S),S&&(Z||R===t))return S.replace(ao,"");if(!S||!(R=ae(R)))return S;var ge=vl(S),De=g0(ge,vl(R));return dt(ge,De).join("")}function B3(S,R){var Z=de,ge=be;if(oa(R)){var De="separator"in R?R.separator:De;Z="length"in R?Or(R.length):Z,ge="omission"in R?ae(R.omission):ge}S=Eo(S);var He=S.length;if(Pu(S)){var mt=vl(S);He=mt.length}if(Z>=He)return S;var Mt=Z-Fa(ge);if(Mt<1)return ge;var Pt=mt?dt(mt,0,Mt).join(""):S.slice(0,Mt);if(De===t)return Pt+ge;if(mt&&(Mt+=Pt.length-Mt),j0(De)){if(S.slice(Mt).search(De)){var gn,Mn=Pt;for(De.global||(De=Kr(De.source,Eo($i.exec(De))+"g")),De.lastIndex=0;gn=De.exec(Mn);)var Rn=gn.index;Pt=Pt.slice(0,Rn===t?Mt:Rn)}}else if(S.indexOf(ae(De),Mt)!=Mt){var si=Pt.lastIndexOf(De);si>-1&&(Pt=Pt.slice(0,si))}return Pt+ge}function z_(S){return S=Eo(S),S&&or.test(S)?S.replace(Vn,mf):S}var P1=pa(function(S,R,Z){return S+(Z?" ":"")+R.toUpperCase()}),Sl=Ba("toUpperCase");function Ip(S,R,Z){return S=Eo(S),R=Z?t:R,R===t?im(S)?om(S):f0(S):S.match(R)||[]}var L1=br(function(S,R){try{return Rl(S,t,R)}catch(Z){return m1(Z)?Z:new Xi(Z)}}),j_=_l(function(S,R){return Ru(R,function(Z){Z=Oa(Z),pc(S,Z,jy(S[Z],S))}),S});function qo(S){var R=S==null?0:S.length,Z=Ji();return S=R?Xo(S,function(ge){if(typeof ge[1]!="function")throw new Pl(s);return[Z(ge[0]),ge[1]]}):[],br(function(ge){for(var De=-1;++De<R;){var He=S[De];if(Rl(He[0],this,ge))return Rl(He[1],this,ge)}})}function El(S){return th(au(S,E))}function td(S){return function(){return S}}function ev(S,R){return S==null||S!==S?R:S}var Tp=Na(),Yb=Na(!0);function yu(S){return S}function km(S){return Id(typeof S=="function"?S:au(S,E))}function tv(S){return Am(au(S,E))}function Wl(S,R){return Sf(S,au(R,E))}var Xc=br(function(S,R){return function(Z){return ta(Z,S,R)}}),f=br(function(S,R){return function(Z){return ta(S,Z,R)}});function y(S,R,Z){var ge=al(R),De=zh(R,ge);Z==null&&!(oa(R)&&(De.length||!ge.length))&&(Z=R,R=S,S=this,De=zh(R,al(R)));var He=!(oa(Z)&&"chain"in Z)||!!Z.chain,mt=Gu(S);return Ru(De,function(Mt){var Pt=R[Mt];S[Mt]=Pt,mt&&(S.prototype[Mt]=function(){var gn=this.__chain__;if(He||gn){var Mn=S(this.__wrapped__),Rn=Mn.__actions__=fr(this.__actions__);return Rn.push({func:Pt,args:arguments,thisArg:S}),Mn.__chain__=gn,Mn}return Pt.apply(S,cs([this.value()],arguments))})}),S}function x(){return ei._===this&&(ei._=Kc),this}function D(){}function Y(S){return S=Or(S),br(function(R){return kd(R,S)})}var ne=zl(Xo),we=zl(Js),We=zl(d0);function gt(S){return mp(S)?ac(Oa(S)):Nh(S)}function Gt(S){return function(R){return S==null?t:sh(S,R)}}var sn=ju(),hn=ju(!0);function Yt(){return[]}function nn(){return!1}function ki(){return{}}function tr(){return""}function rs(){return!0}function Rt(S,R){if(S=Or(S),S<1||S>je)return[];var Z=lt,ge=Ro(S,lt);R=Ji(R),S-=lt;for(var De=m0(ge,R);++Z<S;)R(Z);return De}function Et(S){return Cr(S)?Xo(S,Oa):_c(S)?[S]:fr(bm(Eo(S)))}function Wt(S){var R=++Lu;return Eo(S)+R}var fn=Rd(function(S,R){return S+R},0),Yi=Qs("ceil"),Bo=Rd(function(S,R){return S/R},1),Di=Qs("floor");function _r(S){return S&&S.length?Fh(S,yu,gs):t}function co(S,R){return S&&S.length?Fh(S,Ji(R,2),gs):t}function Oo(S){return tl(S,yu)}function Kf(S,R){return tl(S,Ji(R,2))}function N_(S){return S&&S.length?Fh(S,yu,Td):t}function hM(S,R){return S&&S.length?Fh(S,Ji(R,2),Td):t}var G8=Rd(function(S,R){return S*R},1),dM=Qs("round"),W8=Rd(function(S,R){return S-R},0);function Q8(S){return S&&S.length?vd(S,yu):0}function O3(S,R){return S&&S.length?vd(S,Ji(R,2)):0}return Ye.after=g_,Ye.ary=A1,Ye.assign=Ub,Ye.assignIn=C1,Ye.assignInWith=T_,Ye.assignWith=Zc,Ye.at=Kb,Ye.before=zy,Ye.bind=jy,Ye.bindAll=j_,Ye.bindKey=Om,Ye.castArray=v_,Ye.chain=Sm,Ye.chunk=db,Ye.compact=fb,Ye.concat=Cm,Ye.cond=qo,Ye.conforms=El,Ye.constant=td,Ye.countBy=ma,Ye.create=k_,Ye.curry=Sb,Ye.curryRight=Ny,Ye.debounce=Uo,Ye.defaults=D_,Ye.defaultsDeep=Fb,Ye.defer=Eb,Ye.delay=v3,Ye.difference=Dy,Ye.differenceBy=Kd,Ye.differenceWith=Ps,Ye.drop=_m,Ye.dropRight=A_,Ye.dropRightWhile=Nl,Ye.dropWhile=h3,Ye.fill=h_,Ye.filter=fu,Ye.flatMap=Ky,Ye.flatMapDeep=Fy,Ye.flatMapDepth=P0,Ye.flatten=bc,Ye.flattenDeep=qh,Ye.flattenDepth=d_,Ye.flip=y_,Ye.flow=Tp,Ye.flowRight=Yb,Ye.fromPairs=mb,Ye.functions=qy,Ye.functionsIn=Sp,Ye.groupBy=Cb,Ye.initial=Ls,Ye.intersection=wl,Ye.intersectionBy=uh,Ye.intersectionWith=r1,Ye.invert=G0,Ye.invertBy=R_,Ye.invokeMap=_b,Ye.iteratee=km,Ye.keyBy=xb,Ye.keys=al,Ye.keysIn=wc,Ye.map=L0,Ye.mapKeys=w1,Ye.mapValues=Im,Ye.matches=tv,Ye.matchesProperty=Wl,Ye.mem Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(v[1])} }\`.`)];const E=[];return n.layerType==="symbol"&&a==="text-font"&&ww(UC(s))&&Vl(s.type)==="identity"&&E.push(new Nn(t,s,'"text-font" does not support identity functions')),E.concat(i({key:n.key,value:s,valueSpec:g,style:r,styleSpec:o,expressionContext:"property",propertyType:e,propertyKey:a}))}function sJ(n){return oJ(n,"paint")}function aJ(n){return oJ(n,"layout")}function lJ(n){let e=[];const t=n.value,i=n.key,r=n.style,o=n.styleSpec;if(ro(t)!=="object")return[new Nn(i,t,`object expected, ${ro(t)} found`)];!t.type&&!t.ref&&e.push(new Nn(i,t,'either "type" or "ref" is required'));let s=Vl(t.type);const a=Vl(t.ref);if(t.id){const c=Vl(t.id);for(let d=0;d<n.arrayIndex;d++){const g=r.layers[d];Vl(g.id)===c&&e.push(new Nn(i,t.id,`duplicate layer id "${t.id}", previously used at line ${g.id.__line__}`))}}if("ref"in t){["type","source","source-layer","filter","layout"].forEach(d=>{d in t&&e.push(new Nn(i,t[d],`"${d}" is prohibited for ref layers`))});let c;r.layers.forEach(d=>{Vl(d.id)===a&&(c=d)}),c?c.ref?e.push(new Nn(i,t.ref,"ref cannot reference another ref layer")):s=Vl(c.type):e.push(new Nn(i,t.ref,`ref layer "${a}" not found`))}else if(s!=="background")if(!t.source)e.push(new Nn(i,t,'missing required property "source"'));else{const c=r.sources&&r.sources[t.source],d=c&&Vl(c.type);c?d==="vector"&&s==="raster"?e.push(new Nn(i,t.source,`layer "${t.id}" requires a raster source`)):d!=="raster-dem"&&s==="hillshade"?e.push(new Nn(i,t.source,`layer "${t.id}" requires a raster-dem source`)):d!=="raster-dem"&&s==="color-relief"?e.push(new Nn(i,t.source,`layer "${t.id}" requires a raster-dem source`)):d==="raster"&&s!=="raster"?e.push(new Nn(i,t.source,`layer "${t.id}" requires a vector source`)):d==="vector"&&!t["source-layer"]?e.push(new Nn(i,t,`layer "${t.id}" must specify a "source-layer"`)):d==="raster-dem"&&s!=="hillshade"&&s!=="color-relief"?e.push(new Nn(i,t.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):s==="line"&&t.paint&&t.paint["line-gradient"]&&(d!=="geojson"||!c.lineMetrics)&&e.push(new Nn(i,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new Nn(i,t.source,`source "${t.source}" not found`))}return s==="raster"&&t.paint?.resampling&&t.paint?.["raster-resampling"]&&e.push(new Nn(i,t.paint,`layer "${t.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),e=e.concat(Hf({key:i,value:t,valueSpec:o.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${i}.type`,value:t.type,valueSpec:o.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:vL,layout(c){return Hf({layer:t,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(d){return aJ(m5({layerType:s},d))}}})},paint(c){return Hf({layer:t,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(d){return sJ(m5({layerType:s},d))}}})}}})),e}function Nv(n){const e=n.value,t=n.key,i=ro(e);return i!=="string"?[new Nn(t,e,`string expected, ${i} found`)]:[]}function vde(n){const e=n.sourceName??"",t=n.value,i=n.styleSpec,r=i.source_raster_dem,o=n.style;let s=[];const a=ro(t);if(t===void 0)return s;if(a!=="object")return s.push(new Nn("source_raster_dem",t,`object expected, ${a} found`)),s;const c=Vl(t.encoding)==="custom",d=["redFactor","greenFactor","blueFactor","baseShift"],g=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const v in t)!c&&d.includes(v)?s.push(new Nn(v,t[v],`In "${e}": "${v}" is only valid when "encoding" is set to "custom". ${g} encoding found`)):r[v]?s=s.concat(n.validateSpec({key:v,value:t[v],valueSpec:r[v],validateSpec:n.validateSpec,style:o,styleSpec:i})):s.push(new Nn(v,t[v],`unknown property "${v}"`));return s}const hj={promoteId:bde};function uJ(n){const e=n.value,t=n.key,i=n.styleSpec,r=n.style,o=n.validateSpec;if(!e.type)return[new Nn(t,e,'"type" is required')];const s=Vl(e.type);let a;switch(s){case"vector":case"raster":return a=Hf({key:t,value:e,valueSpec:i[`source_${s.replace("-","_")}`],style:n.style,styleSpec:i,objectElementValidators:hj,validateSpec:o}),a;case"raster-dem":return a=vde({sourceName:t,value:e,style:n.style,styleSpec:i,validateSpec:o}),a;case"geojson":if(a=Hf({key:t,value:e,valueSpec:i.source_geojson,style:r,styleSpec:i,validateSpec:o,objectElementValidators:hj}),e.cluster)for(const c in e.clusterProperties){const[d,g]=e.clusterProperties[c],v=typeof d=="string"?[d,["accumulated"],["get",c]]:d;a.push(...wx({key:`${t}.${c}.map`,value:g,expressionContext:"cluster-map"})),a.push(...wx({key:`${t}.${c}.reduce`,value:v,expressionContext:"clusLine truncated
${v}`),F].join(`
${a}`)}return d})(n,"",0)}function mj(n,e){const t={};for(const i in e)n[i]!==void 0&&(t[i]=n[i]);for(const i in n)t[i]===void 0&&(t[i]=n[i]);return t}function Ide(n,e=2){return n=mj(n,ad.$root),n.layers&&(n.layers=n.layers.map(t=>mj(t,ad.layer))),Ode(n,{indent:e})}function wO(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function gj(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function CD(n,e){return typeof e=="string"&&e[0]==="@"?CD(n,n.constants[e]):e}function Tde(n){return Array.isArray(n.stops)}function F3(n,e,t){n[t]=n[e],delete n[e]}function kde(n){n.version=8,hde(n,r=>{r.type==="video"&&r.url!==void 0&&F3(r,"url","urls"),r.type==="video"&&r.coordinates.forEach(o=>o.reverse())}),j4(n,r=>{wO(r,o=>{o["symbol-min-distance"]!==void 0&&F3(o,"symbol-min-distance","symbol-spacing")}),gj(r,o=>{o["background-image"]!==void 0&&F3(o,"background-image","background-pattern"),o["line-image"]!==void 0&&F3(o,"line-image","line-pattern"),o["fill-image"]!==void 0&&F3(o,"fill-image","fill-pattern")})}),vL(n,{paint:!0,layout:!0},r=>{const o=CD(n,r.value);Tde(o)&&o.stops.forEach(s=>{s[1]=CD(n,s[1])}),r.set(o)}),delete n.constants,j4(n,r=>{wO(r,o=>{delete o["text-max-size"],delete o["icon-max-size"]}),gj(r,o=>{o["text-size"]&&(r.layout||(r.layout={}),r.layout["text-size"]=o["text-size"],delete o["text-size"]),o["icon-size"]&&(r.layout||(r.layout={}),r.layout["icon-size"]=o["icon-size"],delete o["icon-size"])})});function e(r){function o(s){return s.split(",").map(a=>a.trim())}if(Array.isArray(r))return r;if(typeof r=="string")return o(r);if(typeof r=="object")return r.stops.forEach(s=>{s[1]=o(s[1])}),r;throw new Error("unexpected font value")}j4(n,r=>{wO(r,o=>{o["text-font"]&&(o["text-font"]=e(o["text-font"]))})});let t=0;for(let r=n.layers.length-1;r>=0;r--)if(n.layers[r].type!=="symbol"){t=r+1;break}const i=n.layers.splice(t);return i.reverse(),n.layers=n.layers.concat(i),n}function Dde(n){const e=[];return j4(n,t=>{t.filter&&(t.filter=z4(t.filter))}),vL(n,{paint:!0,layout:!0},({path:t,key:i,value:r,reference:o,set:s})=>{Bw(r)||i.endsWith("-transition")||o===null||(typeof r=="object"&&!Array.isArray(r)?(s(XX(r,o)),e.push(t.join("."))):o.tokens&&typeof r=="string"&&s(JX(r)))}),n}function Rde(n){return JSON.parse(Pde(JSON.stringify(n)))}function Pde(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const i=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(i){let[r,o,s,a]=i.slice(1);return[o,s]=[o,s].map(c=>c.endsWith("%")?c:`${parseFloat(c)*100}%`),`"hsl${typeof a=="string"?"a":""}(${[r,o,s,a].filter(Boolean).join(",")})"`}return e})}function Lde(n){let e=!1;if(n.version===7&&(n=kde(n),e=!0),n.version===8&&(e=!!Dde(n),e=!0),vL(n,{paint:!0,layout:!0},({value:t,reference:i,set:r})=>{i?.type==="color"&&r(Rde(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const Gp=ad,Ude={StyleExpression:VX,StylePropertyFunction:$X,ZoomConstantExpression:gD,ZoomDependentExpression:yD,createExpression:dL,createPropertyExpression:fL,isExpression:Bw,isExpressionFilter:Sx,isZoomExpression:Jhe,normalizePropertyExpression:ede},Kde={convertFunction:XX,createFunction:hL,isFunction:Sw},Fde=8,zde=JSON.parse('{"version":{"required":true,"type":"enum","values":[8],"doc":"Style specification version number. Must be 8.","example":8},"name":{"type":"string","doc":"A human-readable name for the style.","example":"Bright"},"metadata":{"type":"*","doc":"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like \'maplibre:\'.","example":{"styleeditor:slimmode":true,"styleeditor:comment":"Style generated 1677776383","styleeditor:version":"3.14.159265","example:object":{"String":"one","Number":2,"Boolean":false}}},"center":{"type":"array","value":"number","length":2,"doc":"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":[-73.9749,40.7736]},"centerAltitude":{"type":"number","doc":"Default map center altitude in meters above sea level. The style center altitude defines the altitude where the camera is looking at and will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":123.4,"sdk-support":{"basic functionality":{"js":"5.0.0","android":"https://github.com/maplibre/maplibre-native/issues/2980","ios":"https://github.com/maplibre/maplibre-native/issues/2980"}}},"zoom":{"type":"number","doc":"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":12.5},"bearing":{"type":"number","default":0,"period":360,"units":"degrees","doc":"Default bearing, in degrees. The bearing is the compass direction that is \\"up\\"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been posi Line truncated
![Visual comparison of linear resampling versus nearest resampling](assets/resampling.png)`,values:{linear:{doc:"(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled"},nearest:{doc:"Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled"}},default:"linear","sdk-support":{"basic functionality":{js:"5.20.0",android:"https://github.com/maplibre/maplibre-native/issues/4117",ios:"https://github.com/maplibre/maplibre-native/issues/4117"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",doc:"The resampling/interpolation method to use for overscaling, also known as texture magnification filter. It is advised to use the generic `resampling` paint property instead.",values:{linear:{doc:"(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled"},nearest:{doc:"Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled"}},default:"linear","sdk-support":{"basic functionality":{js:"0.47.0",android:"6.3.0",ios:"4.2.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",doc:"Fade duration when a new tile is added, or when a video is started or its coordinates are updated.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},_fe={"hillshade-illumination-direction":{type:"numberArray",default:335,minimum:0,maximum:359,doc:"The direction of the light source(s) used to generate the hillshading with 0 as the top of the viewport if `hillshade-illumination-anchor` is set to `viewport` and due north if `hillshade-illumination-anchor` is set to `map`. Only when `hillshade-method` is set to `multidirectional` can you specify multiple light sources.",transition:!1,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0"},multidirectional:{js:"5.5.0",android:"13.0.0",ios:"6.24.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-altitude":{type:"numberArray",default:45,minimum:0,maximum:90,doc:"The altitude of the light source(s) used to generate the hillshading with 0 as sunset and 90 as noon. Only when `hillshade-method` is set to `multidirectional` can you specify multiple light sources.",transition:!1,"sdk-support":{"basic functionality":{js:"5.5.0",android:"13.0.0",ios:"6.24.0"},multidirectional:{js:"5.5.0",android:"13.0.0",ios:"6.24.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{doc:"The hillshade illumination is relative to the north direction."},viewport:{doc:"The hillshade illumination is relative to the top of the viewport."}},default:"viewport",doc:"Direction of light source when map is rotated.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",doc:"Intensity of the hillshade",default:.5,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"colorArray",default:"#000000",doc:"The shading color of areas that face away from the light source(s). Only when `hillshade-method` is set to `multidirectional` can you specify multiple light sources.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0"},multidirectional:{js:"5.5.0",android:"13.0.0",ios:"6.24.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"colorArray",default:"#FFFFFF",doc:"The shading color of areas that faces towards the light source(s). Only when `hillshade-method` is set to `multidirectional` can you specify multiple light sources.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0"},multidirectional:{js:"5.5.0",android:"13.0.0",ios:"6.24.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",doc:"The shading color used to accentuate rugged terrain like sharp cliffs and gorges.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-c Line truncated
![Visual comparison of linear resampling versus nearest resampling](assets/resampling.png)`,values:{linear:{doc:"(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled"},nearest:{doc:"Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled"}},default:"linear","sdk-support":{"basic functionality":{js:"5.20.0",android:"https://github.com/maplibre/maplibre-native/issues/4117",ios:"https://github.com/maplibre/maplibre-native/issues/4117"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},xfe={"background-color":{type:"color",default:"#000000",doc:"The color with which the background will be drawn.",transition:!0,requires:[{"!":"background-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing an image background. 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.10.0",android:"2.0.1",ios:"2.0.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity at which the background will be drawn.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},wfe={duration:{type:"number",default:300,minimum:0,units:"milliseconds",doc:"Time allotted for transitions to complete."},delay:{type:"number",default:0,minimum:0,units:"milliseconds",doc:"Length of time before a transition begins."}},Mfe={"*":{type:"string",doc:"A name of a feature property to use as ID for feature state."}},Sfe={type:"array",value:"interpolation_name",minimum:1,doc:'An interpolation defines how to transition between items. The first element of an interpolation array is a string naming the interpolation operator, e.g. `"linear"` or `"exponential"`. Elements that follow (if any) are the _arguments_ to the interpolation.'},Efe={doc:"First element in an interpolation array. May be followed by a number of arguments.",type:"enum",values:{linear:{doc:"Interpolates linearly between the pair of stops just less than and just greater than the input",syntax:{overloads:[{parameters:[],"output-type":"interpolation"}],parameters:[]},example:["linear"],"sdk-support":{interpolate:{js:"0.42.0",android:"6.0.0",ios:"4.0.0"},"interpolate-hcl":{js:"0.49.0",ios:"https://github.com/maplibre/maplibre-native/issues/2784",android:"https://github.com/maplibre/maplibre-native/issues/2784"},"interpolate-lab":{js:"0.49.0",ios:"https://github.com/maplibre/maplibre-native/issues/2784",android:"https://github.com/maplibre/maplibre-native/issues/2784"}}},exponential:{doc:"Interpolates exponentially between the stops just less than and just greater than the input.",syntax:{overloads:[{parameters:["base"],"output-type":"interpolation"}],parameters:[{name:"base",type:"number literal",doc:"rate at which the output increases in `f(x) = x^r`. Values higher than 1 increase, close to one behaves linearly, and below one decrease."}]},example:["exponential",2],"sdk-support":{interpolate:{js:"0.42.0",android:"6.0.0",ios:"4.0.0"},"interpolate-hcl":{js:"0.49.0",ios:"https://github.com/maplibre/maplibre-native/issues/2784",android:"https://github.com/maplibre/maplibre-native/issues/2784"},"interpolate-lab":{js:"0.49.0",ios:"https://github.com/maplibre/maplibre-native/issues/2784",android:"https://github.com/maplibre/maplibre-native/issues/2784"}}},"cubic-bezier":{doc:"Interpolates using the cubic bézier curve defined by the given control points.",syntax:{overloads:[{parameters:["x1","y1","x2","y2"],"output-type":"interpolation"}],parameters:[{name:"x1",type:"number literal",doc:"X-coordinate of the first control point. Must be between zero and one for a valid monotonic easing curve. Controls how quickly the curve speeds up at the beginning."},{name:"y1",type:"number literal",doc:"Y-coordinate of the first control point. Typically between zero and one, but may exceed this range for overshoot effects. Influences the starting slope of the curve."},{name:"x2",type:"number literal",doc:"X-coordinate of the second control point. Must be between zero and one for a valid monotonic easing curve. Controls when the curve begins to decelerate toward the end."},{name:"y2",type:"number literal",doc:"Y-coordinate of the second control point. Typically between zero and one, but may exceed this range for overshoot effects. Influences the ending slop Line truncated
${a}`)}return d})(n,"",0)}function fj(n,e){const t={};for(const i in e)n[i]!==void 0&&(t[i]=n[i]);for(const i in n)t[i]===void 0&&(t[i]=n[i]);return t}function Rde(n,e=2){return n=fj(n,Ho.$root),n.layers&&(n.layers=n.layers.map(t=>fj(t,Ho.layer))),Dde(n,{indent:e})}function _O(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function pj(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function vD(n,e){return typeof e=="string"&&e[0]==="@"?vD(n,n.constants[e]):e}function Pde(n){return Array.isArray(n.stops)}function L3(n,e,t){n[t]=n[e],delete n[e]}function Lde(n){n.version=8,pde(n,r=>{r.type==="video"&&r.url!==void 0&&L3(r,"url","urls"),r.type==="video"&&r.coordinates.forEach(o=>o.reverse())}),K4(n,r=>{_O(r,o=>{o["symbol-min-distance"]!==void 0&&L3(o,"symbol-min-distance","symbol-spacing")}),pj(r,o=>{o["background-image"]!==void 0&&L3(o,"background-image","background-pattern"),o["line-image"]!==void 0&&L3(o,"line-image","line-pattern"),o["fill-image"]!==void 0&&L3(o,"fill-image","fill-pattern")})}),gL(n,{paint:!0,layout:!0},r=>{const o=vD(n,r.value);Pde(o)&&o.stops.forEach(s=>{s[1]=vD(n,s[1])}),r.set(o)}),delete n.constants,K4(n,r=>{_O(r,o=>{delete o["text-max-size"],delete o["icon-max-size"]}),pj(r,o=>{o["text-size"]&&(r.layout||(r.layout={}),r.layout["text-size"]=o["text-size"],delete o["text-size"]),o["icon-size"]&&(r.layout||(r.layout={}),r.layout["icon-size"]=o["icon-size"],delete o["icon-size"])})});function e(r){function o(s){return s.split(",").map(a=>a.trim())}if(Array.isArray(r))return r;if(typeof r=="string")return o(r);if(typeof r=="object")return r.stops.forEach(s=>{s[1]=o(s[1])}),r;throw new Error("unexpected font value")}K4(n,r=>{_O(r,o=>{o["text-font"]&&(o["text-font"]=e(o["text-font"]))})});let t=0;for(let r=n.layers.length-1;r>=0;r--)if(n.layers[r].type!=="symbol"){t=r+1;break}const i=n.layers.splice(t);return i.reverse(),n.layers=n.layers.concat(i),n}function Ude(n){const e=[];return K4(n,t=>{t.filter&&(t.filter=U4(t.filter))}),gL(n,{paint:!0,layout:!0},({path:t,key:i,value:r,reference:o,set:s})=>{Sw(r)||i.endsWith("-transition")||o===null||(typeof r=="object"&&!Array.isArray(r)?(s(eJ(r,o)),e.push(t.join("."))):o.tokens&&typeof r=="string"&&s(tJ(r)))}),n}function Kde(n){return JSON.parse(Fde(JSON.stringify(n)))}function Fde(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const i=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(i){let[r,o,s,a]=i.slice(1);return[o,s]=[o,s].map(c=>c.endsWith("%")?c:`${parseFloat(c)*100}%`),`"hsl${typeof a=="string"?"a":""}(${[r,o,s,a].filter(Boolean).join(",")})"`}return e})}function zde(n){let e=!1;if(n.version===7&&(n=Lde(n),e=!0),n.version===8&&(e=!!Ude(n),e=!0),gL(n,{paint:!0,layout:!0},({value:t,reference:i,set:r})=>{i?.type==="color"&&r(Kde(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const jde={StyleExpression:YX,StylePropertyFunction:$X,ZoomConstantExpression:pD,ZoomDependentExpression:mD,createExpression:AL,createPropertyExpression:hL,isExpression:Sw,isExpressionFilter:hB,isZoomExpression:nde,normalizePropertyExpression:ide},Nde={convertFunction:eJ,createFunction:cL,isFunction:ww},Gde=8,Wde=JSON.parse('{"version":{"required":true,"type":"enum","values":[8],"doc":"Style specification version number. Must be 8.","example":8},"name":{"type":"string","doc":"A human-readable name for the style.","example":"Bright"},"metadata":{"type":"*","doc":"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like \'maplibre:\'.","example":{"styleeditor:slimmode":true,"styleeditor:comment":"Style generated 1677776383","styleeditor:version":"3.14.159265","example:object":{"String":"one","Number":2,"Boolean":false}}},"center":{"type":"array","value":"number","length":2,"doc":"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":[-73.9749,40.7736]},"centerAltitude":{"type":"number","doc":"Default map center altitude in meters above sea level. The style center altitude defines the altitude where the camera is looking at and will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":123.4,"sdk-support":{"basic functionality":{"js":"5.0.0","android":"https://github.com/maplibre/maplibre-native/issues/2980","ios":"https://github.com/maplibre/maplibre-native/issues/2980"}}},"zoom":{"type":"number","doc":"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":12.5},"bearing":{"type":"number","default":0,"period":360,"units":"degrees","doc":"Default bearing, in degrees. The bearing is the compass direction that is \\"up\\"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been positioned Line truncated
![Visual comparison of linear resampling versus nearest resampling](assets/resampling.png)`,values:{linear:{doc:"(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled"},nearest:{doc:"Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled"}},default:"linear","sdk-support":{"basic functionality":{js:"5.20.0",android:"https://github.com/maplibre/maplibre-native/issues/4117",ios:"https://github.com/maplibre/maplibre-native/issues/4117"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",doc:"The resampling/interpolation method to use for overscaling, also known as texture magnification filter. It is advised to use the generic `resampling` paint property instead.",values:{linear:{doc:"(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled"},nearest:{doc:"Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled"}},default:"linear","sdk-support":{"basic functionality":{js:"0.47.0",android:"6.3.0",ios:"4.2.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",doc:"Fade duration when a new tile is added, or when a video is started or its coordinates are updated.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Sfe={"hillshade-illumination-direction":{type:"numberArray",default:335,minimum:0,maximum:359,doc:"The direction of the light source(s) used to generate the hillshading with 0 as the top of the viewport if `hillshade-illumination-anchor` is set to `viewport` and due north if `hillshade-illumination-anchor` is set to `map`. Only when `hillshade-method` is set to `multidirectional` can you specify multiple light sources.",transition:!1,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0"},multidirectional:{js:"5.5.0",android:"13.0.0",ios:"6.24.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-altitude":{type:"numberArray",default:45,minimum:0,maximum:90,doc:"The altitude of the light source(s) used to generate the hillshading with 0 as sunset and 90 as noon. Only when `hillshade-method` is set to `multidirectional` can you specify multiple light sources.",transition:!1,"sdk-support":{"basic functionality":{js:"5.5.0",android:"13.0.0",ios:"6.24.0"},multidirectional:{js:"5.5.0",android:"13.0.0",ios:"6.24.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{doc:"The hillshade illumination is relative to the north direction."},viewport:{doc:"The hillshade illumination is relative to the top of the viewport."}},default:"viewport",doc:"Direction of light source when map is rotated.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",doc:"Intensity of the hillshade",default:.5,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"colorArray",default:"#000000",doc:"The shading color of areas that face away from the light source(s). Only when `hillshade-method` is set to `multidirectional` can you specify multiple light sources.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0"},multidirectional:{js:"5.5.0",android:"13.0.0",ios:"6.24.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"colorArray",default:"#FFFFFF",doc:"The shading color of areas that faces towards the light source(s). Only when `hillshade-method` is set to `multidirectional` can you specify multiple light sources.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0"},multidirectional:{js:"5.5.0",android:"13.0.0",ios:"6.24.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",doc:"The shading color used to accentuate rugged terrain like sharp cliffs and gorges.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-c Line truncated
![Visual comparison of linear resampling versus nearest resampling](assets/resampling.png)`,values:{linear:{doc:"(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled"},nearest:{doc:"Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled"}},default:"linear","sdk-support":{"basic functionality":{js:"5.20.0",android:"https://github.com/maplibre/maplibre-native/issues/4117",ios:"https://github.com/maplibre/maplibre-native/issues/4117"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},Efe={"background-color":{type:"color",default:"#000000",doc:"The color with which the background will be drawn.",transition:!0,requires:[{"!":"background-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing an image background. 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.10.0",android:"2.0.1",ios:"2.0.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity at which the background will be drawn.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Bfe={duration:{type:"number",default:300,minimum:0,units:"milliseconds",doc:"Time allotted for transitions to complete."},delay:{type:"number",default:0,minimum:0,units:"milliseconds",doc:"Length of time before a transition begins."}},Ofe={"*":{type:"string",doc:"A name of a feature property to use as ID for feature state."}},Ife={type:"array",value:"interpolation_name",minimum:1,doc:'An interpolation defines how to transition between items. The first element of an interpolation array is a string naming the interpolation operator, e.g. `"linear"` or `"exponential"`. Elements that follow (if any) are the _arguments_ to the interpolation.'},Tfe={doc:"First element in an interpolation array. May be followed by a number of arguments.",type:"enum",values:{linear:{doc:"Interpolates linearly between the pair of stops just less than and just greater than the input",syntax:{overloads:[{parameters:[],"output-type":"interpolation"}],parameters:[]},example:["linear"],"sdk-support":{interpolate:{js:"0.42.0",android:"6.0.0",ios:"4.0.0"},"interpolate-hcl":{js:"0.49.0",ios:"https://github.com/maplibre/maplibre-native/issues/2784",android:"https://github.com/maplibre/maplibre-native/issues/2784"},"interpolate-lab":{js:"0.49.0",ios:"https://github.com/maplibre/maplibre-native/issues/2784",android:"https://github.com/maplibre/maplibre-native/issues/2784"}}},exponential:{doc:"Interpolates exponentially between the stops just less than and just greater than the input.",syntax:{overloads:[{parameters:["base"],"output-type":"interpolation"}],parameters:[{name:"base",type:"number literal",doc:"rate at which the output increases in `f(x) = x^r`. Values higher than 1 increase, close to one behaves linearly, and below one decrease."}]},example:["exponential",2],"sdk-support":{interpolate:{js:"0.42.0",android:"6.0.0",ios:"4.0.0"},"interpolate-hcl":{js:"0.49.0",ios:"https://github.com/maplibre/maplibre-native/issues/2784",android:"https://github.com/maplibre/maplibre-native/issues/2784"},"interpolate-lab":{js:"0.49.0",ios:"https://github.com/maplibre/maplibre-native/issues/2784",android:"https://github.com/maplibre/maplibre-native/issues/2784"}}},"cubic-bezier":{doc:"Interpolates using the cubic bézier curve defined by the given control points.",syntax:{overloads:[{parameters:["x1","y1","x2","y2"],"output-type":"interpolation"}],parameters:[{name:"x1",type:"number literal",doc:"X-coordinate of the first control point. Must be between zero and one for a valid monotonic easing curve. Controls how quickly the curve speeds up at the beginning."},{name:"y1",type:"number literal",doc:"Y-coordinate of the first control point. Typically between zero and one, but may exceed this range for overshoot effects. Influences the starting slope of the curve."},{name:"x2",type:"number literal",doc:"X-coordinate of the second control point. Must be between zero and one for a valid monotonic easing curve. Controls when the curve begins to decelerate toward the end."},{name:"y2",type:"number literal",doc:"Y-coordinate of the second control point. Typically between zero and one, but may exceed this range for overshoot effects. Influences the ending slop Line truncated
* In categorical functions, when the feature value does not match any of the stop domain values.
@@ -40,9 +40,9 @@ ${a}`)}return d})(n,"",0)}function mj(n,e){const t={};for(const i in e)n[i]!==vo
* 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:lfe,expression:ufe,expression_name:cfe,light:Afe,sky:hfe,terrain:dfe,projection:ffe,paint:pfe,paint_fill:mfe,"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:gfe,paint_circle:yfe,paint_heatmap:vfe,paint_symbol:bfe,paint_raster:Cfe,paint_hillshade:_fe,"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity at which the color-relief will be drawn.",transition:!0,"sdk-support":{"basic functionality":{js:"5.6.0",android:"13.0.0",ios:"6.24.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",doc:'Defines the color of each pixel based on its elevation. Should be an expression that uses `["elevation"]` as input.',example:["interpolate",["linear"],["elevation"],0,"black",8849,"white"],transition:!1,"sdk-support":{"basic functionality":{js:"5.6.0",android:"13.0.0",ios:"6.24.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["elevation"]},"property-type":"color-ramp"},resampling:{type:"enum",doc:`The resampling/interpolation method to use for overscaling, also known as texture magnification filter.
![Visual comparison of linear resampling versus nearest resampling](assets/resampling.png)`,values:{linear:{doc:"(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled"},nearest:{doc:"Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled"}},default:"linear","sdk-support":{"basic functionality":{js:"5.20.0",android:"https://github.com/maplibre/maplibre-native/issues/4117",ios:"https://github.com/maplibre/maplibre-native/issues/4117"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:xfe,transition:wfe,"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 constant across all zoom levels and property values."}},promoteId:Mfe,interpolation:Sfe,interpolation_name:Efe};var qS={exports:{}};var Bfe=qS.exports,yj;function Ofe(){return yj||(yj=1,(function(n,e){(function(t,i){n.exports=i()})(Bfe,(function(){var t={},i={};function r(s,a,c){if(i[s]=c,s==="index"){var d="var sharedModule = {}; ("+i.shared+")(sharedModule); ("+i.worker+")(sharedModule);",g={};return i.shared(g),i.index(t,g),typeof window<"u"&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([d],{type:"text/javascript"}))),t}}r("shared",["exports"],(function(s){function a(h,l,A,m){return new(A||(A=Promise))((function(b,w){function B(P){try{K(m.next(P))}catch(N){w(N)}}function T(P){try{K(m.throw(P))}catch(N){w(N)}}function K(P){var N;P.done?b(P.value):(N=P.value,N instanceof A?N:new A((function(z){z(N)}))).then(B,T)}K((m=m.apply(h,l||[])).next())}))}function c(h,l){this.x=h,this.y=l}function d(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}var g,v;typeof SuppressedError=="function"&&SuppressedError,c.prototype={clone(){return new c(this.x,this.y)},add(h){return this.clone()._add(h)},sub(h){return this.clone()._sub(h)},multByPoint(h){return this.clone()._multByPoint(h)},divByPoint(h){return this.clone()._divByPoint(h)},mult(h){return this.clone()._mult(h)},div(h){return this.clone()._div(h)},rotate(h){return this.clone()._rotate(h)},rotateAround(h,l){return this.clone()._rotateAround(h,l)},matMult(h){return this.clone()._matMult(h)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(h){return this.x===h.x&&this.y===h.y},dist(h){return Math.sqrt(this.distSqr(h))},distSqr(h){const l=h.x-this.x,A=h.y-this.y;return l*l+A*A},angle(){return Math.atan2(this.y,this.x)},angleTo(h){return Math.atan2(this.y-h.y,this.x-h.x)},angleWith(h){return this.angleWithSep(h.x,h.y)},angleWithSep(h,l){return Math.atan2(this.x*l-this.y*h,this.x*h+this.y*l)},_matMult(h){const l=h[2]*this.x+h[3]*this.y;return this.x=h[0]*this.x+h[1]*this.y,this.y=l,this},_add(h){return this.x+=h.x,this.y+=h.y,this},_sub(h){return this.x-=h.x,this.y-=h.y,this},_mult(h){return this.x*=h,this.y*=h,this},_div(h){return this.x/=h,this.y/=h,this},_multByPoint(h){return this.x*=h.x,this.y*=h.y,this},_divByPoint(h){return this.x/=h.x,this.y/=h.y,this},_unit(){return this._div(this.mag()),this},_perp(){const h=this.y;return this.y=this.x,this.x=-h,this},_rotate(h){const l=Math.cos(h),A=Math.sin(h),m=A*this.x+l*this.y;return this.x=l*this.x-A*this.y,this.y=m,this},_rotateAround(h,l){const A=Math.cos(h),m=Math.sin(h),b=l.y+m*(this.x-l.x)+A*(this.y-l.y);return this.x=l.x+A*(this.x-l.x)-m*(this.y-l.y),this.y=b,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:c},c.convert=function(h){if(h instanceof c)return h;if(Array.isArray(h))return new c(+h[0],+h[1]);if(h.x!==void 0&&h.y!==void 0)return new c(+h.x,+h.y);throw new Error("Expected [x, y] or {x, y} point format")};var E=(function(){if(v)return g;function h(l,A,m,b){this.cx=3*l,this.bx=3*(m-l)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*A,this.by=3*(b-A)-this.cy,this.ay=1-this.cy-this.by,this.p1x=l,this.p1y=A,this.p2x=m,this.p2y=b}return v=1,g=h,h.prototype={sampleCurveX:function(l){return((this.ax*l+this.bx)*l+this.cx)*l},sam Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(z[1])} }\`.`)];const te=[];return h.layerType==="symbol"&&T==="text-font"&&qA(vA(B))&&Ns(B.type)==="identity"&&te.push(new ln(A,B,'"text-font" does not support identity functions')),te.concat(m({key:h.key,value:B,valueSpec:N,style:b,styleSpec:w,expressionContext:"property",propertyType:l,propertyKey:T}))}function XA(h){return M0(h,"paint")}function bf(h){return M0(h,"layout")}function um(h){var l,A;let m=[];const b=h.value,w=h.key,B=h.style,T=h.styleSpec;if(Qi(b)!=="object")return[new ln(w,b,`object expected, ${Qi(b)} found`)];b.type||b.ref||m.push(new ln(w,b,'either "type" or "ref" is required'));let K=Ns(b.type);const P=Ns(b.ref);if(b.id){const N=Ns(b.id);for(let z=0;z<h.arrayIndex;z++){const te=B.layers[z];Ns(te.id)===N&&m.push(new ln(w,b.id,`duplicate layer id "${b.id}", previously used at line ${te.id.__line__}`))}}if("ref"in b){let N;["type","source","source-layer","filter","layout"].forEach((z=>{z in b&&m.push(new ln(w,b[z],`"${z}" is prohibited for ref layers`))})),B.layers.forEach((z=>{Ns(z.id)===P&&(N=z)})),N?N.ref?m.push(new ln(w,b.ref,"ref cannot reference another ref layer")):K=Ns(N.type):m.push(new ln(w,b.ref,`ref layer "${P}" not found`))}else if(K!=="background")if(b.source){const N=B.sources&&B.sources[b.source],z=N&&Ns(N.type);N?z==="vector"&&K==="raster"?m.push(new ln(w,b.source,`layer "${b.id}" requires a raster source`)):z!=="raster-dem"&&K==="hillshade"||z!=="raster-dem"&&K==="color-relief"?m.push(new ln(w,b.source,`layer "${b.id}" requires a raster-dem source`)):z==="raster"&&K!=="raster"?m.push(new ln(w,b.source,`layer "${b.id}" requires a vector source`)):z!=="vector"||b["source-layer"]?z==="raster-dem"&&K!=="hillshade"&&K!=="color-relief"?m.push(new ln(w,b.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):K!=="line"||!b.paint||!b.paint["line-gradient"]||z==="geojson"&&N.lineMetrics||m.push(new ln(w,b,`layer "${b.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):m.push(new ln(w,b,`layer "${b.id}" must specify a "source-layer"`)):m.push(new ln(w,b.source,`source "${b.source}" not found`))}else m.push(new ln(w,b,'missing required property "source"'));return K==="raster"&&(!((l=b.paint)===null||l===void 0)&&l.resampling)&&(!((A=b.paint)===null||A===void 0)&&A["raster-resampling"])&&m.push(new ln(w,b.paint,`layer "${b.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),m=m.concat(Gs({key:w,value:b,valueSpec:T.layer,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*":()=>[],type:()=>h.validateSpec({key:`${w}.type`,value:b.type,valueSpec:T.layer.type,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,object:b,objectKey:"type"}),filter:dc,layout:N=>Gs({layer:b,key:N.key,value:N.value,style:N.style,styleSpec:N.styleSpec,validateSpec:N.validateSpec,objectElementValidators:{"*":z=>bf(Ur({layerType:K},z))}}),paint:N=>Gs({layer:b,key:N.key,value:N.value,style:N.style,styleSpec:N.styleSpec,validateSpec:N.validateSpec,objectElementValidators:{"*":z=>XA(Ur({layerType:K},z))}})}})),m}function Uu(h){const l=h.value,A=h.key,m=Qi(l);return m!=="string"?[new ln(A,l,`string expected, ${m} found`)]:[]}const Fa={promoteId:function({key:h,value:l}){if(Qi(l)==="string")return Uu({key:h,value:l});{const A=[];for(const m in l)A.push(...Uu({key:`${h}.${m}`,value:l[m]}));return A}}};function lp(h){const l=h.value,A=h.key,m=h.styleSpec,b=h.style,w=h.validateSpec;if(!l.type)return[new ln(A,l,'"type" is required')];const B=Ns(l.type);let T;switch(B){case"vector":case"raster":return T=Gs({key:A,value:l,valueSpec:m[`source_${B.replace("-","_")}`],style:h.style,styleSpec:m,objectElementValidators:Fa,validateSpec:w}),T;case"raster-dem":return T=(function(K){var P;const N=(P=K.sourceName)!==null&&P!==void 0?P:"",z=K.value,te=K.styleSpec,Q=te.source_raster_dem,he=K.style;let pe=[];const Ee=Qi(z);if(z===void 0)return pe;if(Ee!=="object")return pe.push(new ln("source_raster_dem",z,`object expected, ${Ee} found`)),pe;const Be=Ns(z.encoding)==="custom",Ue=["redFactor","greenFactor","blueFactor","baseShift"],Te=K.value.encoding?`"${K.value.encoding}"`:"Default";for(const Fe in z)!Be&&Ue.includes(Fe)?pe.push(new ln(Fe,z[Fe],`In "${N}": "${Fe}" is only valid when "encoding" is set to "custom". ${Te} encoding found`)):Q[Fe]?pe=pe.concat(K.validateSpec({key:Fe,value:z[Fe],valueSpec:Q[Fe],validateSpec:K.validateSpec,style:he,styleSpec:te})):pe.push(new ln(Fe,z[Fe],`unknown property "${Fe}"`));return pe})({sourceName:A,value:l,style:h.style,styleSpec:m,validateSpec:w}),T;case"geojson":if(T=Gs({key:A,value:l,valueSpec:m.source_geojson,style:b,styleSpec:m,validateSpec:w,objectElementValidators:Fa}),l.cluster)for(const K in l.clusterProperties){const[P,N]=l.clusterProperties[K],z=typeof P=="string"?[P,["acLine truncated
If no default is provided, the style property's default is used in these circumstances.`}},function_stop:hfe,expression:dfe,expression_name:ffe,light:pfe,sky:mfe,terrain:gfe,projection:yfe,paint:vfe,paint_fill:bfe,"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:Cfe,paint_circle:_fe,paint_heatmap:xfe,paint_symbol:wfe,paint_raster:Mfe,paint_hillshade:Sfe,"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity at which the color-relief will be drawn.",transition:!0,"sdk-support":{"basic functionality":{js:"5.6.0",android:"13.0.0",ios:"6.24.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",doc:'Defines the color of each pixel based on its elevation. Should be an expression that uses `["elevation"]` as input.',example:["interpolate",["linear"],["elevation"],0,"black",8849,"white"],transition:!1,"sdk-support":{"basic functionality":{js:"5.6.0",android:"13.0.0",ios:"6.24.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["elevation"]},"property-type":"color-ramp"},resampling:{type:"enum",doc:`The resampling/interpolation method to use for overscaling, also known as texture magnification filter.
![Visual comparison of linear resampling versus nearest resampling](assets/resampling.png)`,values:{linear:{doc:"(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled"},nearest:{doc:"Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled"}},default:"linear","sdk-support":{"basic functionality":{js:"5.20.0",android:"https://github.com/maplibre/maplibre-native/issues/4117",ios:"https://github.com/maplibre/maplibre-native/issues/4117"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:Efe,transition:Bfe,"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 constant across all zoom levels and property values."}},promoteId:Ofe,interpolation:Ife,interpolation_name:Tfe};var QS={exports:{}};var kfe=QS.exports,mj;function Dfe(){return mj||(mj=1,(function(n,e){(function(t,i){n.exports=i()})(kfe,(function(){var t={},i={};function r(s,a,c){if(i[s]=c,s==="index"){var d="var sharedModule = {}; ("+i.shared+")(sharedModule); ("+i.worker+")(sharedModule);",g={};return i.shared(g),i.index(t,g),typeof window<"u"&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([d],{type:"text/javascript"}))),t}}r("shared",["exports"],(function(s){function a(h,l,A,m){return new(A||(A=Promise))((function(b,w){function B(P){try{K(m.next(P))}catch(N){w(N)}}function T(P){try{K(m.throw(P))}catch(N){w(N)}}function K(P){var N;P.done?b(P.value):(N=P.value,N instanceof A?N:new A((function(z){z(N)}))).then(B,T)}K((m=m.apply(h,l||[])).next())}))}function c(h,l){this.x=h,this.y=l}function d(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}var g,v;typeof SuppressedError=="function"&&SuppressedError,c.prototype={clone(){return new c(this.x,this.y)},add(h){return this.clone()._add(h)},sub(h){return this.clone()._sub(h)},multByPoint(h){return this.clone()._multByPoint(h)},divByPoint(h){return this.clone()._divByPoint(h)},mult(h){return this.clone()._mult(h)},div(h){return this.clone()._div(h)},rotate(h){return this.clone()._rotate(h)},rotateAround(h,l){return this.clone()._rotateAround(h,l)},matMult(h){return this.clone()._matMult(h)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(h){return this.x===h.x&&this.y===h.y},dist(h){return Math.sqrt(this.distSqr(h))},distSqr(h){const l=h.x-this.x,A=h.y-this.y;return l*l+A*A},angle(){return Math.atan2(this.y,this.x)},angleTo(h){return Math.atan2(this.y-h.y,this.x-h.x)},angleWith(h){return this.angleWithSep(h.x,h.y)},angleWithSep(h,l){return Math.atan2(this.x*l-this.y*h,this.x*h+this.y*l)},_matMult(h){const l=h[2]*this.x+h[3]*this.y;return this.x=h[0]*this.x+h[1]*this.y,this.y=l,this},_add(h){return this.x+=h.x,this.y+=h.y,this},_sub(h){return this.x-=h.x,this.y-=h.y,this},_mult(h){return this.x*=h,this.y*=h,this},_div(h){return this.x/=h,this.y/=h,this},_multByPoint(h){return this.x*=h.x,this.y*=h.y,this},_divByPoint(h){return this.x/=h.x,this.y/=h.y,this},_unit(){return this._div(this.mag()),this},_perp(){const h=this.y;return this.y=this.x,this.x=-h,this},_rotate(h){const l=Math.cos(h),A=Math.sin(h),m=A*this.x+l*this.y;return this.x=l*this.x-A*this.y,this.y=m,this},_rotateAround(h,l){const A=Math.cos(h),m=Math.sin(h),b=l.y+m*(this.x-l.x)+A*(this.y-l.y);return this.x=l.x+A*(this.x-l.x)-m*(this.y-l.y),this.y=b,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:c},c.convert=function(h){if(h instanceof c)return h;if(Array.isArray(h))return new c(+h[0],+h[1]);if(h.x!==void 0&&h.y!==void 0)return new c(+h.x,+h.y);throw new Error("Expected [x, y] or {x, y} point format")};var E=(function(){if(v)return g;function h(l,A,m,b){this.cx=3*l,this.bx=3*(m-l)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*A,this.by=3*(b-A)-this.cy,this.ay=1-this.cy-this.by,this.p1x=l,this.p1y=A,this.p2x=m,this.p2y=b}return v=1,g=h,h.prototype={sampleCurveX:function(l){return((this.ax*l+this.bx)*l+this.cx)*l},sam Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(z[1])} }\`.`)];const te=[];return h.layerType==="symbol"&&T==="text-font"&&qA(vA(B))&&Gs(B.type)==="identity"&&te.push(new ln(A,B,'"text-font" does not support identity functions')),te.concat(m({key:h.key,value:B,valueSpec:N,style:b,styleSpec:w,expressionContext:"property",propertyType:l,propertyKey:T}))}function XA(h){return w0(h,"paint")}function vf(h){return w0(h,"layout")}function am(h){var l,A;let m=[];const b=h.value,w=h.key,B=h.style,T=h.styleSpec;if(Qi(b)!=="object")return[new ln(w,b,`object expected, ${Qi(b)} found`)];b.type||b.ref||m.push(new ln(w,b,'either "type" or "ref" is required'));let K=Gs(b.type);const P=Gs(b.ref);if(b.id){const N=Gs(b.id);for(let z=0;z<h.arrayIndex;z++){const te=B.layers[z];Gs(te.id)===N&&m.push(new ln(w,b.id,`duplicate layer id "${b.id}", previously used at line ${te.id.__line__}`))}}if("ref"in b){let N;["type","source","source-layer","filter","layout"].forEach((z=>{z in b&&m.push(new ln(w,b[z],`"${z}" is prohibited for ref layers`))})),B.layers.forEach((z=>{Gs(z.id)===P&&(N=z)})),N?N.ref?m.push(new ln(w,b.ref,"ref cannot reference another ref layer")):K=Gs(N.type):m.push(new ln(w,b.ref,`ref layer "${P}" not found`))}else if(K!=="background")if(b.source){const N=B.sources&&B.sources[b.source],z=N&&Gs(N.type);N?z==="vector"&&K==="raster"?m.push(new ln(w,b.source,`layer "${b.id}" requires a raster source`)):z!=="raster-dem"&&K==="hillshade"||z!=="raster-dem"&&K==="color-relief"?m.push(new ln(w,b.source,`layer "${b.id}" requires a raster-dem source`)):z==="raster"&&K!=="raster"?m.push(new ln(w,b.source,`layer "${b.id}" requires a vector source`)):z!=="vector"||b["source-layer"]?z==="raster-dem"&&K!=="hillshade"&&K!=="color-relief"?m.push(new ln(w,b.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):K!=="line"||!b.paint||!b.paint["line-gradient"]||z==="geojson"&&N.lineMetrics||m.push(new ln(w,b,`layer "${b.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):m.push(new ln(w,b,`layer "${b.id}" must specify a "source-layer"`)):m.push(new ln(w,b.source,`source "${b.source}" not found`))}else m.push(new ln(w,b,'missing required property "source"'));return K==="raster"&&(!((l=b.paint)===null||l===void 0)&&l.resampling)&&(!((A=b.paint)===null||A===void 0)&&A["raster-resampling"])&&m.push(new ln(w,b.paint,`layer "${b.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),m=m.concat(Ws({key:w,value:b,valueSpec:T.layer,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*":()=>[],type:()=>h.validateSpec({key:`${w}.type`,value:b.type,valueSpec:T.layer.type,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,object:b,objectKey:"type"}),filter:dc,layout:N=>Ws({layer:b,key:N.key,value:N.value,style:N.style,styleSpec:N.styleSpec,validateSpec:N.validateSpec,objectElementValidators:{"*":z=>vf(Ur({layerType:K},z))}}),paint:N=>Ws({layer:b,key:N.key,value:N.value,style:N.style,styleSpec:N.styleSpec,validateSpec:N.validateSpec,objectElementValidators:{"*":z=>XA(Ur({layerType:K},z))}})}})),m}function Ku(h){const l=h.value,A=h.key,m=Qi(l);return m!=="string"?[new ln(A,l,`string expected, ${m} found`)]:[]}const za={promoteId:function({key:h,value:l}){if(Qi(l)==="string")return Ku({key:h,value:l});{const A=[];for(const m in l)A.push(...Ku({key:`${h}.${m}`,value:l[m]}));return A}}};function ap(h){const l=h.value,A=h.key,m=h.styleSpec,b=h.style,w=h.validateSpec;if(!l.type)return[new ln(A,l,'"type" is required')];const B=Gs(l.type);let T;switch(B){case"vector":case"raster":return T=Ws({key:A,value:l,valueSpec:m[`source_${B.replace("-","_")}`],style:h.style,styleSpec:m,objectElementValidators:za,validateSpec:w}),T;case"raster-dem":return T=(function(K){var P;const N=(P=K.sourceName)!==null&&P!==void 0?P:"",z=K.value,te=K.styleSpec,Q=te.source_raster_dem,he=K.style;let pe=[];const Ee=Qi(z);if(z===void 0)return pe;if(Ee!=="object")return pe.push(new ln("source_raster_dem",z,`object expected, ${Ee} found`)),pe;const Be=Gs(z.encoding)==="custom",Ue=["redFactor","greenFactor","blueFactor","baseShift"],Te=K.value.encoding?`"${K.value.encoding}"`:"Default";for(const Fe in z)!Be&&Ue.includes(Fe)?pe.push(new ln(Fe,z[Fe],`In "${N}": "${Fe}" is only valid when "encoding" is set to "custom". ${Te} encoding found`)):Q[Fe]?pe=pe.concat(K.validateSpec({key:Fe,value:z[Fe],valueSpec:Q[Fe],validateSpec:K.validateSpec,style:he,styleSpec:te})):pe.push(new ln(Fe,z[Fe],`unknown property "${Fe}"`));return pe})({sourceName:A,value:l,style:h.style,styleSpec:m,validateSpec:w}),T;case"geojson":if(T=Ws({key:A,value:l,valueSpec:m.source_geojson,style:b,styleSpec:m,validateSpec:w,objectElementValidators:za}),l.cluster)for(const K in l.clusterProperties){const[P,N]=l.clusterProperties[K],z=typeof P=="string"?[P,["acLine truncated
precision mediump float;
#else
#if !defined(lowp)
@@ -836,79 +836,79 @@ uniform ${ae} ${ye} u_${_e};
#else
${ae} ${ye} ${_e} = u_${_e};
#endif
`})),staticAttributes:_,staticUniforms:j}}class dr{constructor(u,p,_){this.vertexBuffer=u,this.indexBuffer=p,this.segments=_}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var Xa=a.aS([{name:"a_pos",type:"Int16",components:2}]);const Zr="#define PROJECTION_MERCATOR",Ho="mercator";class fs{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return Ho}get shaderDefine(){return Zr}get shaderPreludeCode(){return Mo.projectionMercator}get vertexShaderPreludeCode(){return Mo.projectionMercator.vertexSource}get subdivisionGranularity(){return a.aT.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(u){}getMeshFromTileID(u,p,_,M,k){if(this._cachedMesh)return this._cachedMesh;const j=new a.aU;j.emplaceBack(0,0),j.emplaceBack(a.a6,0),j.emplaceBack(0,a.a6),j.emplaceBack(a.a6,a.a6);const G=u.createVertexBuffer(j,Xa.members),H=a.aV.simpleSegment(0,0,4,2),se=new a.aW;se.emplaceBack(1,0,2),se.emplaceBack(1,2,3);const ae=u.createIndexBuffer(se);return this._cachedMesh=new dr(G,ae,H),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(u){}}class Jl{constructor(u=0,p=0,_=0,M=0){if(isNaN(u)||u<0||isNaN(p)||p<0||isNaN(_)||_<0||isNaN(M)||M<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=u,this.bottom=p,this.left=_,this.right=M}interpolate(u,p,_){return p.top!=null&&u.top!=null&&(this.top=a.H.number(u.top,p.top,_)),p.bottom!=null&&u.bottom!=null&&(this.bottom=a.H.number(u.bottom,p.bottom,_)),p.left!=null&&u.left!=null&&(this.left=a.H.number(u.left,p.left,_)),p.right!=null&&u.right!=null&&(this.right=a.H.number(u.right,p.right,_)),this}getCenter(u,p){const _=a.al((this.left+u-this.right)/2,0,u),M=a.al((this.top+p-this.bottom)/2,0,p);return new a.P(_,M)}equals(u){return this.top===u.top&&this.bottom===u.bottom&&this.left===u.left&&this.right===u.right}clone(){return new Jl(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function jr(O,u){if(!O.renderWorldCopies||O.lngRange)return;const p=u.lng-O.center.lng;u.lng+=p>180?-360:p<-180?360:0}function J(O){return Math.max(0,Math.floor(O))}class Me{constructor(u,p){var _;this.applyConstrain=(M,k)=>this._constrainOverride!==null?this._constrainOverride(M,k):this._callbacks.defaultConstrain(M,k),this._callbacks=u,this._tileSize=512,this._renderWorldCopies=p?.renderWorldCopies===void 0||!!p?.renderWorldCopies,this._minZoom=p?.minZoom||0,this._maxZoom=p?.maxZoom||22,this._minPitch=p?.minPitch==null?0:p?.minPitch,this._maxPitch=p?.maxPitch==null?60:p?.maxPitch,this._constrainOverride=(_=p?.constrainOverride)!==null&&_!==void 0?_:null,this.setMaxBounds(),this._width=0,this._height=0,this._center=new a.W(0,0),this._elevation=0,this._zoom=0,this._tileZoom=J(this._zoom),this._scale=a.ao(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new Jl,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(u,p,_){this._constrainOverride=u.constrainOverride,this._latRange=u.latRange,this._lngRange=u.lngRange,this._width=u.width,this._height=u.height,this._center=u.center,this._elevation=u.elevation,this._minElevationForCurrentTile=u.minElevationForCurrentTile,this._zoom=u.zoom,this._tileZoom=J(this._zoom),this._scale=a.ao(this._zoom),this._bearingInRadians=u.bearingInRadians,this._fovInRadians=u.fovInRadians,this._pitchInRadians=u.pitchInRadians,this._rollInRadians=u.rollInRadians,this._unmodified=u.unmodified,this._edgeInsets=new Jl(u.padding.top,u.padding.bottom,u.padding.left,u.padding.right),this._minZoom=u.minZoom,this._maxZoom=u.maxZoom,this._minPitch=u.minPitch,this._maxPitch=u.maxPitch,this._renderWorldCopies=u.renderWorldCopies,this._cameraToCenterDistance=u.cameraToCenterDistance,this._nearZ=u.nearZ,this._farZ=u.farZ,this._autoCalculateNearFarZ=!_&&u.autoCalculateNearFarZ,p&&this.constrainInternal(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(u){this._minElevationForCurrentTile=u}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(u){this._minZoom!==u&&(this._minZoom=u,this.setZoom(this.applyCon Line truncated
`})),staticAttributes:_,staticUniforms:j}}class dr{constructor(u,p,_){this.vertexBuffer=u,this.indexBuffer=p,this.segments=_}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var Ja=a.aS([{name:"a_pos",type:"Int16",components:2}]);const Zr="#define PROJECTION_MERCATOR",Zo="mercator";class ps{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return Zo}get shaderDefine(){return Zr}get shaderPreludeCode(){return Mo.projectionMercator}get vertexShaderPreludeCode(){return Mo.projectionMercator.vertexSource}get subdivisionGranularity(){return a.aT.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(u){}getMeshFromTileID(u,p,_,M,k){if(this._cachedMesh)return this._cachedMesh;const j=new a.aU;j.emplaceBack(0,0),j.emplaceBack(a.a6,0),j.emplaceBack(0,a.a6),j.emplaceBack(a.a6,a.a6);const G=u.createVertexBuffer(j,Ja.members),H=a.aV.simpleSegment(0,0,4,2),se=new a.aW;se.emplaceBack(1,0,2),se.emplaceBack(1,2,3);const ae=u.createIndexBuffer(se);return this._cachedMesh=new dr(G,ae,H),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(u){}}class eu{constructor(u=0,p=0,_=0,M=0){if(isNaN(u)||u<0||isNaN(p)||p<0||isNaN(_)||_<0||isNaN(M)||M<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=u,this.bottom=p,this.left=_,this.right=M}interpolate(u,p,_){return p.top!=null&&u.top!=null&&(this.top=a.H.number(u.top,p.top,_)),p.bottom!=null&&u.bottom!=null&&(this.bottom=a.H.number(u.bottom,p.bottom,_)),p.left!=null&&u.left!=null&&(this.left=a.H.number(u.left,p.left,_)),p.right!=null&&u.right!=null&&(this.right=a.H.number(u.right,p.right,_)),this}getCenter(u,p){const _=a.al((this.left+u-this.right)/2,0,u),M=a.al((this.top+p-this.bottom)/2,0,p);return new a.P(_,M)}equals(u){return this.top===u.top&&this.bottom===u.bottom&&this.left===u.left&&this.right===u.right}clone(){return new eu(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function jr(O,u){if(!O.renderWorldCopies||O.lngRange)return;const p=u.lng-O.center.lng;u.lng+=p>180?-360:p<-180?360:0}function J(O){return Math.max(0,Math.floor(O))}class Me{constructor(u,p){var _;this.applyConstrain=(M,k)=>this._constrainOverride!==null?this._constrainOverride(M,k):this._callbacks.defaultConstrain(M,k),this._callbacks=u,this._tileSize=512,this._renderWorldCopies=p?.renderWorldCopies===void 0||!!p?.renderWorldCopies,this._minZoom=p?.minZoom||0,this._maxZoom=p?.maxZoom||22,this._minPitch=p?.minPitch==null?0:p?.minPitch,this._maxPitch=p?.maxPitch==null?60:p?.maxPitch,this._constrainOverride=(_=p?.constrainOverride)!==null&&_!==void 0?_:null,this.setMaxBounds(),this._width=0,this._height=0,this._center=new a.W(0,0),this._elevation=0,this._zoom=0,this._tileZoom=J(this._zoom),this._scale=a.ao(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new eu,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(u,p,_){this._constrainOverride=u.constrainOverride,this._latRange=u.latRange,this._lngRange=u.lngRange,this._width=u.width,this._height=u.height,this._center=u.center,this._elevation=u.elevation,this._minElevationForCurrentTile=u.minElevationForCurrentTile,this._zoom=u.zoom,this._tileZoom=J(this._zoom),this._scale=a.ao(this._zoom),this._bearingInRadians=u.bearingInRadians,this._fovInRadians=u.fovInRadians,this._pitchInRadians=u.pitchInRadians,this._rollInRadians=u.rollInRadians,this._unmodified=u.unmodified,this._edgeInsets=new eu(u.padding.top,u.padding.bottom,u.padding.left,u.padding.right),this._minZoom=u.minZoom,this._maxZoom=u.maxZoom,this._minPitch=u.minPitch,this._maxPitch=u.maxPitch,this._renderWorldCopies=u.renderWorldCopies,this._cameraToCenterDistance=u.cameraToCenterDistance,this._nearZ=u.nearZ,this._farZ=u.farZ,this._autoCalculateNearFarZ=!_&&u.autoCalculateNearFarZ,p&&this.constrainInternal(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(u){this._minElevationForCurrentTile=u}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(u){this._minZoom!==u&&(this._minZoom=u,this.setZoom(this.applyCon Line truncated
`),dt=ot.concat(Mo.prelude.vertexSource,G.vertexSource,p.vertexSource).join(`
`);po(ae)||(tt=(function(tn){return tn.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")})(tt),dt=(function(tn){return tn.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")})(dt));const ut=ae.createShader(ae.FRAGMENT_SHADER);if(ae.isContextLost())return void(this.failedToCreate=!0);if(ae.shaderSource(ut,tt),ae.compileShader(ut),!ae.getShaderParameter(ut,ae.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${ae.getShaderInfoLog(ut)}`);ae.attachShader(this.program,ut);const kt=ae.createShader(ae.VERTEX_SHADER);if(ae.isContextLost())return void(this.failedToCreate=!0);if(ae.shaderSource(kt,dt),ae.compileShader(kt),!ae.getShaderParameter(kt,ae.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${ae.getShaderInfoLog(kt)}`);ae.attachShader(this.program,kt),this.attributes={};const Zt={};this.numAttributes=Oe.length;for(let tn=0;tn<this.numAttributes;tn++)Oe[tn]&&(ae.bindAttribLocation(this.program,tn,Oe[tn]),this.attributes[Oe[tn]]=tn);if(ae.linkProgram(this.program),!ae.getProgramParameter(this.program,ae.LINK_STATUS))throw new Error(`Program failed to link: ${ae.getProgramInfoLog(this.program)}`);ae.deleteShader(kt),ae.deleteShader(ut);for(const tn of ft)if(tn&&!Zt[tn]){const Cn=ae.getUniformLocation(this.program,tn);Cn&&(Zt[tn]=Cn)}this.fixedUniforms=M(u,Zt),this.terrainUniforms=((tn,Cn)=>({u_depth:new a.b_(tn,Cn.u_depth),u_terrain:new a.b_(tn,Cn.u_terrain),u_terrain_dim:new a.bp(tn,Cn.u_terrain_dim),u_terrain_matrix:new a.c0(tn,Cn.u_terrain_matrix),u_terrain_unpack:new a.c1(tn,Cn.u_terrain_unpack),u_terrain_exaggeration:new a.bp(tn,Cn.u_terrain_exaggeration)}))(u,Zt),this.projectionUniforms=((tn,Cn)=>({u_projection_matrix:new a.c0(tn,Cn.u_projection_matrix),u_projection_tile_mercator_coords:new a.c1(tn,Cn.u_projection_tile_mercator_coords),u_projection_clipping_plane:new a.c1(tn,Cn.u_projection_clipping_plane),u_projection_transition:new a.bp(tn,Cn.u_projection_transition),u_projection_fallback_matrix:new a.c0(tn,Cn.u_projection_fallback_matrix)}))(u,Zt),this.binderUniforms=_?_.getUniforms(u,Zt):[]}draw(u,p,_,M,k,j,G,H,se,ae,ye,_e,Oe,Ge,Ze,rt,et,at,ft){var ot;const tt=u.gl;if(this.failedToCreate)return;if(u.program.set(this.program),u.setDepthMode(_),u.setStencilMode(M),u.setColorMode(k),u.setCullFace(j),H){u.activeTexture.set(tt.TEXTURE2),tt.bindTexture(tt.TEXTURE_2D,H.depthTexture),u.activeTexture.set(tt.TEXTURE3),tt.bindTexture(tt.TEXTURE_2D,H.texture);for(const ut in this.terrainUniforms)this.terrainUniforms[ut].set(H[ut])}if(se)for(const ut in se)this.projectionUniforms[Cy[ut]].set(se[ut]);if(G)for(const ut in this.fixedUniforms)this.fixedUniforms[ut].set(G[ut]);rt&&rt.setUniforms(u,this.binderUniforms,Ge,{zoom:Ze});let dt=0;switch(p){case tt.LINES:dt=2;break;case tt.TRIANGLES:dt=3;break;case tt.LINE_STRIP:dt=1}for(const ut of Oe.get())ut.vaos||(ut.vaos={}),(ot=ut.vaos)[ae]||(ot[ae]=new g0),ut.vaos[ae].bind(u,this,ye,rt?rt.getPaintVertexBuffers():[],_e,ut.vertexOffset,et,at,ft),tt.drawElements(p,ut.primitiveLength*dt,tt.UNSIGNED_SHORT,ut.primitiveOffset*dt*2)}}function Cd(O,u,p){const _=1/a.aK(p,1,u.transform.tileZoom),M=Math.pow(2,p.tileID.overscaledZ),k=p.tileSize*Math.pow(2,u.transform.tileZoom)/M,j=k*(p.tileID.canonical.x+p.tileID.wrap*M),G=k*p.tileID.canonical.y;return{u_image:0,u_texsize:p.imageAtlasTexture.size,u_scale:[_,O.fromScale,O.toScale],u_fade:O.t,u_pixel_coord_upper:[j>>16,G>>16],u_pixel_coord_lower:[65535&j,65535&G]}}const y0=(O,u,p,_)=>{const M=O.style.light,k=M.properties.get("position"),j=[k.x,k.y,k.z],G=a.c4();M.properties.get("anchor")==="viewport"&&a.c5(G,O.transform.bearingInRadians),a.c6(j,j,G);const H=O.transform.transformLightDirection(j),se=M.properties.get("color");return{u_lightpos:j,u_lightpos_globe:H,u_lightintensity:M.properties.get("intensity"),u_lightcolor:[se.r,se.g,se.b],u_vertical_gradient:+u,u_opacity:p,u_fill_translate:_}},mf=(O,u,p,_,M,k,j)=>a.e(y0(O,u,p,_),Cd(k,O,j),{u_height_factor:-Math.pow(2,M.overscaledZ)/j.tileSize/8}),_d=(O,u,p,_)=>a.e(Cd(u,O,p),{u_fill_translate:_}),_y=(O,u)=>({u_world:O,u_fill_translate:u}),rm=(O,u,p,_,M)=>a.e(_d(O,u,p,M),{u_world:_}),Gg=(O,u,p,_,M)=>{const k=O.transform;let j,G,H=0;if(p.paint.get("circle-pitch-alignment")==="map"){const se=a.aK(u,1,k.zoom);j=!0,G=[se,se],H=se/(a.a6*Math.pow(2,u.tileID.overscaledZ))*2*Math.PI*M}else j=!1,G=k.pixelsToGLUnits;return{u_camera_to_center_distance:k.cameraToCenterDistance,u_scale_with_map:+(p.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+j,u_device_pixel_ratio:O.pixelRatio,u_extrude_scale:G,u_globe_extrude_scale:H,u_translate:_}},Wg=O=>({u_pixel_extrude_scale:[1/O.width,1/O.height]}),Ru=O=>({u_viewport_size:[O.width,O.height]}),om=(O,u=1)=>({u_color:O,u_overlay:0,u_overlay_scale:u}),v0=(O,u,p,_)=>{const M=a.aK(O,1,u)/(a.a6*Math.pow(2,O.tileID.overscaledZ))*2*Math.PI*_;return{u_extrude_scale:a.aK(O,1,u),u_intensi Line truncated
`);po(ae)||(tt=(function(tn){return tn.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")})(tt),dt=(function(tn){return tn.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")})(dt));const ut=ae.createShader(ae.FRAGMENT_SHADER);if(ae.isContextLost())return void(this.failedToCreate=!0);if(ae.shaderSource(ut,tt),ae.compileShader(ut),!ae.getShaderParameter(ut,ae.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${ae.getShaderInfoLog(ut)}`);ae.attachShader(this.program,ut);const kt=ae.createShader(ae.VERTEX_SHADER);if(ae.isContextLost())return void(this.failedToCreate=!0);if(ae.shaderSource(kt,dt),ae.compileShader(kt),!ae.getShaderParameter(kt,ae.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${ae.getShaderInfoLog(kt)}`);ae.attachShader(this.program,kt),this.attributes={};const Zt={};this.numAttributes=Oe.length;for(let tn=0;tn<this.numAttributes;tn++)Oe[tn]&&(ae.bindAttribLocation(this.program,tn,Oe[tn]),this.attributes[Oe[tn]]=tn);if(ae.linkProgram(this.program),!ae.getProgramParameter(this.program,ae.LINK_STATUS))throw new Error(`Program failed to link: ${ae.getProgramInfoLog(this.program)}`);ae.deleteShader(kt),ae.deleteShader(ut);for(const tn of ft)if(tn&&!Zt[tn]){const Cn=ae.getUniformLocation(this.program,tn);Cn&&(Zt[tn]=Cn)}this.fixedUniforms=M(u,Zt),this.terrainUniforms=((tn,Cn)=>({u_depth:new a.b_(tn,Cn.u_depth),u_terrain:new a.b_(tn,Cn.u_terrain),u_terrain_dim:new a.bp(tn,Cn.u_terrain_dim),u_terrain_matrix:new a.c0(tn,Cn.u_terrain_matrix),u_terrain_unpack:new a.c1(tn,Cn.u_terrain_unpack),u_terrain_exaggeration:new a.bp(tn,Cn.u_terrain_exaggeration)}))(u,Zt),this.projectionUniforms=((tn,Cn)=>({u_projection_matrix:new a.c0(tn,Cn.u_projection_matrix),u_projection_tile_mercator_coords:new a.c1(tn,Cn.u_projection_tile_mercator_coords),u_projection_clipping_plane:new a.c1(tn,Cn.u_projection_clipping_plane),u_projection_transition:new a.bp(tn,Cn.u_projection_transition),u_projection_fallback_matrix:new a.c0(tn,Cn.u_projection_fallback_matrix)}))(u,Zt),this.binderUniforms=_?_.getUniforms(u,Zt):[]}draw(u,p,_,M,k,j,G,H,se,ae,ye,_e,Oe,Ge,Ze,rt,et,at,ft){var ot;const tt=u.gl;if(this.failedToCreate)return;if(u.program.set(this.program),u.setDepthMode(_),u.setStencilMode(M),u.setColorMode(k),u.setCullFace(j),H){u.activeTexture.set(tt.TEXTURE2),tt.bindTexture(tt.TEXTURE_2D,H.depthTexture),u.activeTexture.set(tt.TEXTURE3),tt.bindTexture(tt.TEXTURE_2D,H.texture);for(const ut in this.terrainUniforms)this.terrainUniforms[ut].set(H[ut])}if(se)for(const ut in se)this.projectionUniforms[by[ut]].set(se[ut]);if(G)for(const ut in this.fixedUniforms)this.fixedUniforms[ut].set(G[ut]);rt&&rt.setUniforms(u,this.binderUniforms,Ge,{zoom:Ze});let dt=0;switch(p){case tt.LINES:dt=2;break;case tt.TRIANGLES:dt=3;break;case tt.LINE_STRIP:dt=1}for(const ut of Oe.get())ut.vaos||(ut.vaos={}),(ot=ut.vaos)[ae]||(ot[ae]=new m0),ut.vaos[ae].bind(u,this,ye,rt?rt.getPaintVertexBuffers():[],_e,ut.vertexOffset,et,at,ft),tt.drawElements(p,ut.primitiveLength*dt,tt.UNSIGNED_SHORT,ut.primitiveOffset*dt*2)}}function bd(O,u,p){const _=1/a.aK(p,1,u.transform.tileZoom),M=Math.pow(2,p.tileID.overscaledZ),k=p.tileSize*Math.pow(2,u.transform.tileZoom)/M,j=k*(p.tileID.canonical.x+p.tileID.wrap*M),G=k*p.tileID.canonical.y;return{u_image:0,u_texsize:p.imageAtlasTexture.size,u_scale:[_,O.fromScale,O.toScale],u_fade:O.t,u_pixel_coord_upper:[j>>16,G>>16],u_pixel_coord_lower:[65535&j,65535&G]}}const g0=(O,u,p,_)=>{const M=O.style.light,k=M.properties.get("position"),j=[k.x,k.y,k.z],G=a.c4();M.properties.get("anchor")==="viewport"&&a.c5(G,O.transform.bearingInRadians),a.c6(j,j,G);const H=O.transform.transformLightDirection(j),se=M.properties.get("color");return{u_lightpos:j,u_lightpos_globe:H,u_lightintensity:M.properties.get("intensity"),u_lightcolor:[se.r,se.g,se.b],u_vertical_gradient:+u,u_opacity:p,u_fill_translate:_}},pf=(O,u,p,_,M,k,j)=>a.e(g0(O,u,p,_),bd(k,O,j),{u_height_factor:-Math.pow(2,M.overscaledZ)/j.tileSize/8}),Cd=(O,u,p,_)=>a.e(bd(u,O,p),{u_fill_translate:_}),Cy=(O,u)=>({u_world:O,u_fill_translate:u}),nm=(O,u,p,_,M)=>a.e(Cd(O,u,p,M),{u_world:_}),Ng=(O,u,p,_,M)=>{const k=O.transform;let j,G,H=0;if(p.paint.get("circle-pitch-alignment")==="map"){const se=a.aK(u,1,k.zoom);j=!0,G=[se,se],H=se/(a.a6*Math.pow(2,u.tileID.overscaledZ))*2*Math.PI*M}else j=!1,G=k.pixelsToGLUnits;return{u_camera_to_center_distance:k.cameraToCenterDistance,u_scale_with_map:+(p.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+j,u_device_pixel_ratio:O.pixelRatio,u_extrude_scale:G,u_globe_extrude_scale:H,u_translate:_}},Gg=O=>({u_pixel_extrude_scale:[1/O.width,1/O.height]}),Pu=O=>({u_viewport_size:[O.width,O.height]}),im=(O,u=1)=>({u_color:O,u_overlay:0,u_overlay_scale:u}),y0=(O,u,p,_)=>{const M=a.aK(O,1,u)/(a.a6*Math.pow(2,O.tileID.overscaledZ))*2*Math.PI*_;return{u_extrude_scale:a.aK(O,1,u),u_intensi Line truncated
uniform mat4 u_projection_matrix;
${G.shaderPreludeCode.vertexSource}`,define:G.shaderDefine},defaultProjectionData:se},ye=j.renderingMode?j.renderingMode:"2d";if(O.renderPass==="offscreen"){const _e=j.prerender;_e&&(O.setCustomLayerDefaults(),k.setColorMode(O.colorModeForRenderPass()),_e.call(j,k.gl,ae),k.setDirty(),O.setBaseState())}else if(O.renderPass==="translucent"){O.setCustomLayerDefaults(),k.setColorMode(O.colorModeForRenderPass()),k.setStencilMode(Wi.disabled);const _e=ye==="3d"?O.getDepthModeFor3D():O.getDepthModeForSublayer(0,ii.ReadOnly);k.setDepthMode(_e),j.render(k.gl,ae),k.setDirty(),O.setBaseState(),k.bindFramebuffer.set(null)}},debug:function(O,u,p){for(const _ of p)wy(O,u,_)},debugPadding:function(O){const u=O.transform.padding;Fa(O,O.transform.height-(u.top||0),3,M0),Fa(O,u.bottom||0,3,XA),lp(O,u.left||0,3,bf),lp(O,O.transform.width-(u.right||0),3,um);const p=O.transform.centerPoint;(function(_,M,k,j){Ku(_,M-1,k-10,2,20,j),Ku(_,M-10,k-1,20,2,j)})(O,p.x,O.transform.height-p.y,Uu)},terrainDepth:function(O,u){const p=O.context,_=p.gl,M=O.transform,k=Ti.unblended,j=new ii(_.LEQUAL,ii.ReadWrite,[0,1]),G=u.tileManager.getRenderableTiles(),H=O.useProgram("terrainDepth");p.bindFramebuffer.set(u.getFramebuffer("depth").framebuffer),p.viewport.set([0,0,O.width/devicePixelRatio,O.height/devicePixelRatio]),p.clear({color:a.bo.transparent,depth:1});for(const se of G){const ae=u.getTerrainMesh(se.tileID),ye=u.getTerrainData(se.tileID),_e=M.getProjectionData({overscaledTileID:se.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0}),Oe={u_ele_delta:u.getMeshFrameDelta(M.zoom)};H.draw(p,_.TRIANGLES,j,Wi.disabled,k,ri.backCCW,Oe,ye,_e,"terrain",ae.vertexBuffer,ae.indexBuffer,ae.segments)}p.bindFramebuffer.set(null),p.viewport.set([0,0,O.width,O.height])},terrainCoords:function(O,u){const p=O.context,_=p.gl,M=O.transform,k=Ti.unblended,j=new ii(_.LEQUAL,ii.ReadWrite,[0,1]),G=u.getCoordsTexture(),H=u.tileManager.getRenderableTiles(),se=O.useProgram("terrainCoords");p.bindFramebuffer.set(u.getFramebuffer("coords").framebuffer),p.viewport.set([0,0,O.width/devicePixelRatio,O.height/devicePixelRatio]),p.clear({color:a.bo.transparent,depth:1}),u.coordsIndex=[];for(const ae of H){const ye=u.getTerrainMesh(ae.tileID),_e=u.getTerrainData(ae.tileID);p.activeTexture.set(_.TEXTURE0),_.bindTexture(_.TEXTURE_2D,G.texture);const Oe={u_terrain_coords_id:(255-u.coordsIndex.length)/255,u_texture:0,u_ele_delta:u.getMeshFrameDelta(M.zoom)},Ge=M.getProjectionData({overscaledTileID:ae.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0});se.draw(p,_.TRIANGLES,j,Wi.disabled,k,ri.backCCW,Oe,_e,Ge,"terrain",ye.vertexBuffer,ye.indexBuffer,ye.segments),u.coordsIndex.push(ae.tileID.key)}p.bindFramebuffer.set(null),p.viewport.set([0,0,O.width,O.height])}};class Cf{constructor(u,p){this.drawFunctions=Aa,this.context=new Ro(u),this.transform=p,this._tileTextures={},this.terrainFacilitator={depthDirty:!0,coordsDirty:!1,matrix:a.ap(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=nr.maxOverzooming+nr.maxUnderzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Fs}resize(u,p,_){if(this.width=Math.floor(u*_),this.height=Math.floor(p*_),this.pixelRatio=_,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const M of this.style._order)this.style._layers[M].resize()}setup(){const u=this.context,p=new a.aU;p.emplaceBack(0,0),p.emplaceBack(a.a6,0),p.emplaceBack(0,a.a6),p.emplaceBack(a.a6,a.a6),this.tileExtentBuffer=u.createVertexBuffer(p,Xa.members),this.tileExtentSegments=a.aV.simpleSegment(0,0,4,2);const _=new a.aU;_.emplaceBack(0,0),_.emplaceBack(a.a6,0),_.emplaceBack(0,a.a6),_.emplaceBack(a.a6,a.a6),this.debugBuffer=u.createVertexBuffer(_,Xa.members),this.debugSegments=a.aV.simpleSegment(0,0,4,5);const M=new a.ch;M.emplaceBack(0,0,0,0),M.emplaceBack(a.a6,0,a.a6,0),M.emplaceBack(0,a.a6,0,a.a6),M.emplaceBack(a.a6,a.a6,a.a6,a.a6),this.rasterBoundsBuffer=u.createVertexBuffer(M,bd.members),this.rasterBoundsSegments=a.aV.simpleSegment(0,0,4,2);const k=new a.aU;k.emplaceBack(0,0),k.emplaceBack(a.a6,0),k.emplaceBack(0,a.a6),k.emplaceBack(a.a6,a.a6),this.rasterBoundsBufferPosOnly=u.createVertexBuffer(k,Xa.members),this.rasterBoundsSegmentsPosOnly=a.aV.simpleSegment(0,0,4,5);const j=new a.aU;j.emplaceBack(0,0),j.emplaceBack(1,0),j.emplaceBack(0,1),j.emplaceBack(1,1),this.viewportBuffer=u.createVertexBuffer(j,Xa.members),this.viewportSegments=a.aV.simpleSegment(0,0,4,2);const G=new a.ci;G.emplaceBack(0),G.emplaceBack(1),G.emplaceBack(3),G.emplaceBack(2),G.emplaceBack(0),this.tileBorderIndexBuffer=u.createIndexBuffer(G);const H=new a.aW;H.emplaceBack(1,0,2),H.emplaceBack(1,2,3),this.quadTriangleIndexBuffer=u.createIndexBuffer(H);const se=this.context.gl;this.stencilClearMode=new Wi({func:se.ALWAYS,mask:0},0,255,se.ZERO,se.ZERO,se.ZERO),this.tileExtentMesh=new dr(this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}clearStencil(){const u=this.context,p=u.gl;this.nextStencilID=1,this.currentStencilSource=void 0;c Line truncated
${G.shaderPreludeCode.vertexSource}`,define:G.shaderDefine},defaultProjectionData:se},ye=j.renderingMode?j.renderingMode:"2d";if(O.renderPass==="offscreen"){const _e=j.prerender;_e&&(O.setCustomLayerDefaults(),k.setColorMode(O.colorModeForRenderPass()),_e.call(j,k.gl,ae),k.setDirty(),O.setBaseState())}else if(O.renderPass==="translucent"){O.setCustomLayerDefaults(),k.setColorMode(O.colorModeForRenderPass()),k.setStencilMode(Wi.disabled);const _e=ye==="3d"?O.getDepthModeFor3D():O.getDepthModeForSublayer(0,ii.ReadOnly);k.setDepthMode(_e),j.render(k.gl,ae),k.setDirty(),O.setBaseState(),k.bindFramebuffer.set(null)}},debug:function(O,u,p){for(const _ of p)xy(O,u,_)},debugPadding:function(O){const u=O.transform.padding;za(O,O.transform.height-(u.top||0),3,w0),za(O,u.bottom||0,3,XA),ap(O,u.left||0,3,vf),ap(O,O.transform.width-(u.right||0),3,am);const p=O.transform.centerPoint;(function(_,M,k,j){Fu(_,M-1,k-10,2,20,j),Fu(_,M-10,k-1,20,2,j)})(O,p.x,O.transform.height-p.y,Ku)},terrainDepth:function(O,u){const p=O.context,_=p.gl,M=O.transform,k=Ti.unblended,j=new ii(_.LEQUAL,ii.ReadWrite,[0,1]),G=u.tileManager.getRenderableTiles(),H=O.useProgram("terrainDepth");p.bindFramebuffer.set(u.getFramebuffer("depth").framebuffer),p.viewport.set([0,0,O.width/devicePixelRatio,O.height/devicePixelRatio]),p.clear({color:a.bo.transparent,depth:1});for(const se of G){const ae=u.getTerrainMesh(se.tileID),ye=u.getTerrainData(se.tileID),_e=M.getProjectionData({overscaledTileID:se.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0}),Oe={u_ele_delta:u.getMeshFrameDelta(M.zoom)};H.draw(p,_.TRIANGLES,j,Wi.disabled,k,ri.backCCW,Oe,ye,_e,"terrain",ae.vertexBuffer,ae.indexBuffer,ae.segments)}p.bindFramebuffer.set(null),p.viewport.set([0,0,O.width,O.height])},terrainCoords:function(O,u){const p=O.context,_=p.gl,M=O.transform,k=Ti.unblended,j=new ii(_.LEQUAL,ii.ReadWrite,[0,1]),G=u.getCoordsTexture(),H=u.tileManager.getRenderableTiles(),se=O.useProgram("terrainCoords");p.bindFramebuffer.set(u.getFramebuffer("coords").framebuffer),p.viewport.set([0,0,O.width/devicePixelRatio,O.height/devicePixelRatio]),p.clear({color:a.bo.transparent,depth:1}),u.coordsIndex=[];for(const ae of H){const ye=u.getTerrainMesh(ae.tileID),_e=u.getTerrainData(ae.tileID);p.activeTexture.set(_.TEXTURE0),_.bindTexture(_.TEXTURE_2D,G.texture);const Oe={u_terrain_coords_id:(255-u.coordsIndex.length)/255,u_texture:0,u_ele_delta:u.getMeshFrameDelta(M.zoom)},Ge=M.getProjectionData({overscaledTileID:ae.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0});se.draw(p,_.TRIANGLES,j,Wi.disabled,k,ri.backCCW,Oe,_e,Ge,"terrain",ye.vertexBuffer,ye.indexBuffer,ye.segments),u.coordsIndex.push(ae.tileID.key)}p.bindFramebuffer.set(null),p.viewport.set([0,0,O.width,O.height])}};class bf{constructor(u,p){this.drawFunctions=ha,this.context=new Ro(u),this.transform=p,this._tileTextures={},this.terrainFacilitator={depthDirty:!0,coordsDirty:!1,matrix:a.ap(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=nr.maxOverzooming+nr.maxUnderzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new zs}resize(u,p,_){if(this.width=Math.floor(u*_),this.height=Math.floor(p*_),this.pixelRatio=_,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const M of this.style._order)this.style._layers[M].resize()}setup(){const u=this.context,p=new a.aU;p.emplaceBack(0,0),p.emplaceBack(a.a6,0),p.emplaceBack(0,a.a6),p.emplaceBack(a.a6,a.a6),this.tileExtentBuffer=u.createVertexBuffer(p,Ja.members),this.tileExtentSegments=a.aV.simpleSegment(0,0,4,2);const _=new a.aU;_.emplaceBack(0,0),_.emplaceBack(a.a6,0),_.emplaceBack(0,a.a6),_.emplaceBack(a.a6,a.a6),this.debugBuffer=u.createVertexBuffer(_,Ja.members),this.debugSegments=a.aV.simpleSegment(0,0,4,5);const M=new a.ch;M.emplaceBack(0,0,0,0),M.emplaceBack(a.a6,0,a.a6,0),M.emplaceBack(0,a.a6,0,a.a6),M.emplaceBack(a.a6,a.a6,a.a6,a.a6),this.rasterBoundsBuffer=u.createVertexBuffer(M,vd.members),this.rasterBoundsSegments=a.aV.simpleSegment(0,0,4,2);const k=new a.aU;k.emplaceBack(0,0),k.emplaceBack(a.a6,0),k.emplaceBack(0,a.a6),k.emplaceBack(a.a6,a.a6),this.rasterBoundsBufferPosOnly=u.createVertexBuffer(k,Ja.members),this.rasterBoundsSegmentsPosOnly=a.aV.simpleSegment(0,0,4,5);const j=new a.aU;j.emplaceBack(0,0),j.emplaceBack(1,0),j.emplaceBack(0,1),j.emplaceBack(1,1),this.viewportBuffer=u.createVertexBuffer(j,Ja.members),this.viewportSegments=a.aV.simpleSegment(0,0,4,2);const G=new a.ci;G.emplaceBack(0),G.emplaceBack(1),G.emplaceBack(3),G.emplaceBack(2),G.emplaceBack(0),this.tileBorderIndexBuffer=u.createIndexBuffer(G);const H=new a.aW;H.emplaceBack(1,0,2),H.emplaceBack(1,2,3),this.quadTriangleIndexBuffer=u.createIndexBuffer(H);const se=this.context.gl;this.stencilClearMode=new Wi({func:se.ALWAYS,mask:0},0,255,se.ZERO,se.ZERO,se.ZERO),this.tileExtentMesh=new dr(this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}clearStencil(){const u=this.context,p=u.gl;this.nextStencilID=1,this.currentStencilSource=void 0;c Line truncated
${e} <span></span>
`,rs().s[12]++,this._textEl=this._container.querySelector("span"),rs().s[13]++,this.updateZoomLevel()}addEventListeners(){rs().f[4]++,rs().s[14]++,this._map.on("render",()=>(rs().f[5]++,rs().s[15]++,this.updateZoomLevel())),rs().s[16]++,this._map.on("zoomIn",()=>(rs().f[6]++,rs().s[17]++,this.updateZoomLevel())),rs().s[18]++,this._map.on("zoomOut",()=>(rs().f[7]++,rs().s[19]++,this.updateZoomLevel()))}onRemove(){rs().f[8]++,rs().s[20]++,this._container.parentNode.removeChild(this._container),rs().s[21]++,this._map=void 0}}function TD(n,e,t){const i={id:[e,t,"circle"].join("_"),source:e,type:"circle",paint:{"circle-color":n,"circle-radius":2},filter:["==","$type","Point"]};return t&&(i["source-layer"]=t),i}function kD(n,e,t,i){const r={id:[t,i,"polygon"].join("_"),source:t,type:"fill",paint:{"fill-color":n,"fill-antialias":!0,"fill-outline-color":n},filter:["==","$type","Polygon"]};return i&&(r["source-layer"]=i),r}function DD(n,e,t){const i={id:[e,t,"line"].join("_"),source:e,layout:{"line-join":"round","line-cap":"round"},type:"line",paint:{"line-color":n},filter:["==","$type","LineString"]};return t&&(i["source-layer"]=t),i}function Ej(n,e){return{circle:e(n,.8),line:e(n,.6),polygon:e(n,.3),polygonOutline:e(n,.6),default:e(n,1)}}function Vpe(n,e){const t=[],i=[],r=[];for(const o of Object.keys(n)){const s=n[o];if(!s||s.length===0){const a=Ej(o,e);i.push(TD(a.circle,o)),r.push(DD(a.line,o)),t.push(kD(a.polygon,a.polygonOutline,o))}else for(const a of s){const c=Ej(a,e);i.push(TD(c.circle,o,a)),r.push(DD(c.line,o,a)),t.push(kD(c.polygon,c.polygonOutline,o,a))}}return t.concat(r).concat(i)}function $pe(n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const i={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},r={};for(const o of Object.keys(n.sources)){const s=n.sources[o];(s.type==="vector"||s.type==="geojson")&&(r[o]=s)}return Object.assign(n,{layers:[i].concat(e),sources:r})}const EO={polygonLayer:kD,lineLayer:DD,circleLayer:TD,generateInspectStyle:$pe,generateColoredLayers:Vpe};function Dr(){var n="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",e="aec0f701e803624fae461cc89b5fc887ff556587",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",statementMap:{0:{start:{line:4,column:2},end:{line:8,column:3}},1:{start:{line:5,column:4},end:{line:5,column:33}},2:{start:{line:6,column:9},end:{line:8,column:3}},3:{start:{line:7,column:4},end:{line:7,column:30}},4:{start:{line:9,column:2},end:{line:13,column:3}},5:{start:{line:10,column:4},end:{line:10,column:28}},6:{start:{line:12,column:4},end:{line:12,column:23}},7:{start:{line:14,column:2},end:{line:14,column:29}},8:{start:{line:15,column:2},end:{line:15,column:11}},9:{start:{line:18,column:2},end:{line:18,column:84}},10:{start:{line:18,column:72},end:{line:18,column:84}},11:{start:{line:19,column:24},end:{line:19,column:51}},12:{start:{line:20,column:16},end:{line:20,column:52}},13:{start:{line:21,column:2},end:{line:23,column:3}},14:{start:{line:22,column:4},end:{line:22,column:104}},15:{start:{line:24,column:2},end:{line:26,column:3}},16:{start:{line:25,column:4},end:{line:25,column:96}},17:{start:{line:27,column:2},end:{line:29,column:3}},18:{start:{line:28,column:4},end:{line:28,column:94}},19:{start:{line:30,column:2},end:{line:30,column:14}}},fnMap:{0:{name:"changeLayer",decl:{start:{line:3,column:9},end:{line:3,column:20}},loc:{start:{line:3,column:31},end:{line:16,column:1}},line:3},1:{name:"colorHighlightedLayer",decl:{start:{line:17,column:16},end:{line:17,column:37}},loc:{start:{line:17,column:45},end:{line:31,column:1}},line:17}},branchMap:{0:{loc:{start:{line:4,column:2},end:{line:8,column:3}},type:"if",locations:[{start:{line:4,column:2},end:{line:8,column:3}},{start:{line:6,column:9},end:{line:8,column:3}}],line:4},1:{loc:{start:{line:6,column:9},end:{line:8,column:3}},type:"if",locations:[{start:{line:6,column:9},end:{line:8,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},2:{loc:{start:{line:9,column:2},end:{line:13,column:3}},type:"if",locations:[{start:{line:9,column:2},end:{line:13,column:3}},{start:{line:11,column:9},end:{line:13,column:3}}],line:9},3:{loc:{start:{line:18,column:2},end:{line:18,column:84}},type:"if",locations:[{start:{line:18,column:2},end:{line:18,column:84}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},4:{loc:{start:{line:18,column:6},end:{line:18,column:70}},type:"binary-expr",locations:[{start:{line:18,column:6},end:{line:18,column:12}},{start:{line:18,column:16},end:{line:18,column:43}},{start:{line:18,column:47},end:{line:18,column:70}}],line:18},5:{loc:{start:{line:19,column:24},end:{line:19,column:51}},type:"binary-expr",locations:[{start:{line:19,column:24},end:{line:19,column:45}},{start:{line:19,column:49},end:{line:19,column:51}}],line:19},6:{loc:{start:{line:21,column:2},end:{line:23,column:3}},type:"if",locations:[{start:{line:21,column:2},end:{l Line truncated
${this._localize("errorNoResults")}</div>`;this._renderMessage(e)}_renderMessage(e){this._typeahead.update([]),this._typeahead.selected=null,this._typeahead.clear(),this._typeahead.renderError(e)}_localize(e){const t=sme.language(this.options.language.split(",")[0]);return this.options.language&&z3?.[e][t]?z3[e][t]:z3[e].en}_fitBoundsForMarkers(){var e;if(this._typeahead.data.length<1)return;const t=this._typeahead.data.filter(i=>typeof i!="string").slice(0,this.options.limit);if(this._clearEl.style.display="none",this.options.flyTo&&this._maplibregl&&this._map){const r=zm({},{padding:100},this.options.flyTo),o=new this._maplibregl.LngLatBounds;for(const s of t)"geometry"in s&&((e=s.geometry)===null||e===void 0?void 0:e.type)==="Point"&&o.extend(s.geometry.coordinates);this._map.fitBounds(o,r)}return t.length>0&&this._maplibregl&&this._handleResultMarkers(t),this}setInput(e){return this._inputEl.value=e,this._typeahead.selected=null,this._typeahead.clear(),e.length>=this.options.minLength&&this.options.showResultsWhileTyping&&this._geocode(e),this}setProximity(e){return this.options.proximity=e,this}getProximity(){return this.options.proximity}setRenderFunction(e){return e&&typeof e=="function"&&(this._typeahead.render=e),this}getRenderFunction(){return this._typeahead.render}setLanguage(e){return this.options.language=e||this.options.language||navigator.language,this}getLanguage(){return this.options.language}getZoom(){return this.options.zoom}setZoom(e){return this.options.zoom=e,this}getFlyTo(){return this.options.flyTo}setFlyTo(e){return this.options.flyTo=e,this}getPlaceholder(){return this.options.placeholder}setPlaceholder(e){return this.options.placeholder=e||this.options.placeholder||this._localize("placeholder"),this._inputEl.placeholder=this.options.placeholder,this._inputEl.setAttribute("aria-label",this.options.placeholder),this}getBbox(){return this.options.bbox}setBbox(e){return this.options.bbox=e,this}getCountries(){return this.options.countries}setCountries(e){return this.options.countries=e,this}getTypes(){return this.options.types}setTypes(e){return this.options.types=e,this}getMinLength(){return this.options.minLength}setMinLength(e){return this.options.minLength=e,this._typeahead&&(this._typeahead.options.minLength=e),this}getLimit(){return this.options.limit}setLimit(e){return this.options.limit=e,this._typeahead&&(this._typeahead.options.limit=e),this}getFilter(){return this.options.filter}setFilter(e){return this.options.filter=e,this}setGeocoderApi(e){return this.geocoderApi=e,this}getGeocoderApi(){return this.geocoderApi}_handleMarker(e){var t;if(!this._map)return;this._removeMarker();const r=zm({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(r);let o=null;if(this.options.popup){const a=zm({},{},this.options.popup);o=new this._maplibregl.Popup(a).setHTML(this.options.popupRender(e))}return e.center?(this.mapMarker.setLngLat(e.center).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(o)):((t=e.geometry)===null||t===void 0?void 0:t.type)==="Point"&&e.geometry.coordinates&&(this.mapMarker.setLngLat(e.geometry.coordinates).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(o)),this}_removeMarker(){this.mapMarker&&(this.mapMarker.remove(),this.mapMarker=null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let i=zm({},{color:"#4668F2"},this.options.showResultMarkers);for(const r of e){let o;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(o=this.options.showResultMarkers.element.cloneNode(!0),i=zm(i,{element:o}));const s=new this._maplibregl.Marker(zm({},i,{element:o}));let a;if(this.options.popup){const d=zm({},{},this.options.popup);a=new this._maplibregl.Popup(d).setHTML(this.options.popupRender(r))}r.center?(s.setLngLat(r.center).addTo(this._map),this.options.popup&&s.setPopup(a)):r.geometry&&r.geometry.type&&r.geometry.type==="Point"&&r.geometry.coordinates&&(s.setLngLat(r.geometry.coordinates).addTo(this._map),this.options.popup&&s.setPopup(a)),this.resultMarkers.push(s)}}return this}_removeResultMarkers(){this.resultMarkers&&this.resultMarkers.length>0&&(this.resultMarkers.forEach(function(e){e.remove()}),this.resultMarkers=[])}on(e,t){return this._eventEmitter.on(e,t),this}once(e){return new Promise(t=>{this._eventEmitter.once(e,t)})}off(e,t){return this._eventEmitter.removeListener(e,t),this}}function Qt(){var n="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",e="2d91b6c543f9700f5163b2f1cc417edccdb9abe7",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",statementMap:{0:{start:{line:21,column:26},end:{line:27,column:3}},1:{start:{line:28,column:16},end:{line:28,column:55}},2:{start:{line:29,column:2},end:{line:31,column:3}},3:{start:{line:30,column:4},end:{line:30,column:30}},4:{start:{line:32,column:18},end:{line:32,column:20}},5:{start:{line:33,colLine truncated
`).reduce((r,o)=>Math.max(r,Cte(n,o)),0);return t[e]=i,i}function dve(n,e){const t=[],i=[],r=[];let o=0,s=0,a=0,c=0;for(let d=0,g=e.length;d<=g;d+=2){const v=e[d];if(v===`
`||d===g){o=Math.max(o,s),r.push(s),s=0,a+=c,c=0;continue}const E=e[d+1]||n.font,I=Cte(E,v);t.push(I),s+=I;const U=hve(E);i.push(U),c=Math.max(c,U)}return{width:o,height:a,widths:t,heights:i,lineWidths:r}}function fve(n,e,t,i,r,o,s,a,c,d,g){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=v=>v.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),i.contextInstructions?(n.translate(c,d),n.scale(g[0],g[1]),pve(i,n)):g[0]<0||g[1]<0?(n.translate(c,d),n.scale(g[0],g[1]),n.drawImage(i,r,o,s,a,0,0,s,a)):n.drawImage(i,r,o,s,a,c,d,s*g[0],a*g[1]),n.restore()}function pve(n,e){const t=n.contextInstructions;for(let i=0,r=t.length;i<r;i+=2)Array.isArray(t[i+1])?e[t[i]].apply(e,t[i+1]):e[t[i]]=t[i+1]}class jB{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=xh(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new jB({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return Pr()}getImage(e){return Pr()}getHitDetectionImage(){return Pr()}getPixelRatio(e){return 1}getImageState(){return Pr()}getImageSize(){return Pr()}getOrigin(){return Pr()}getSize(){return Pr()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=xh(e)}listenImageChange(e){Pr()}load(){Pr()}unlistenImageChange(e){Pr()}ready(){return Promise.resolve()}}class NB extends jB{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()?Ui.LOADING:Ui.LOADED,this.imageState_===Ui.LOADING&&this.ready().then(()=>this.imageState_=Ui.LOADED),this.render()}clone(){const e=this.getScale(),t=new NB({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_,t=this.getDisplacement(),i=this.getScaleArray();return[e[0]/2-t[0]/i[0],e[1]/2+t[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){const t=this.fill_?.getKey(),i=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(",");let r=Yp.get(i,null)?.getImage(1);if(!r){const o=this.renderOptions_,s=Math.ceil(o.size*e),a=hl(s,s);this.draw_(o,a,e),r=a.canvas;const c=new yte(r,void 0,null,Ui.LOADED,null);Yp.set(i,null,c),createImageBitmap(r).then(d=>{c.setImage(d)})}return r}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}setRadius(e){this.radius!==e&&(this.radius=e,this.render())}getRadius2(){return this.radius2_}setRadius2(e){this.radius2_!==e&&(this.radius2_=e,this.render())}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,i){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let r=this.radius,o=this.radius2_===void 0?r:this.radius2_;if(r<o){const ie=r;r=o,o=ie}const s=this.radius2_===void 0?this.points_:this.points_*2,a=2*Math.PI/s,c=o*Math.sin(a),d=Math.sqrt(o*o-c*c),g=r-d,v=Math.sqrt(c*c+g*g),E=v/c;if(e==="miter"&&E<=i)return E*t;const I=t/2/E,U=t/2*(g/v),W=Math.sqrt((r+I)*(r+I)+U*U)-r;if(this.radius2_===void 0||e==="bevel")return W*2;const V=r*Math.sin(a),q=Math.sqrt(r*r-V*V),ee=o-q,re=Math.sqrt(V*V+ee*ee) Line truncated
`,""),n.push(e,""),n}function Vbe(n,e,t){return t%2===0&&(n+=e),n}class $be{constructor(e,t,i,r,o){this.overlaps=i,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=sf(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=o?new MU:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,i,r){const o=e+t+i+r;if(this.labels_[o])return this.labels_[o];const s=r?this.strokeStates[r]:null,a=i?this.fillStates[i]:null,c=this.textStates[t],d=this.pixelRatio,g=[c.scale[0]*d,c.scale[1]*d],v=c.justify?r6[c.justify]:p7(Array.isArray(e)?e[0]:e,c.textAlign||R5),E=r&&s.lineWidth?s.lineWidth:0,I=Array.isArray(e)?e:String(e).split(`
`).reduce(qbe,[]),{width:U,height:F,widths:W,heights:V,lineWidths:q}=dve(c,I),ee=U+E,oe=[],re=(ee+2)*g[0],ie=(F+E)*g[1],X={width:re<0?Math.floor(re):Math.ceil(re),height:ie<0?Math.floor(ie):Math.ceil(ie),contextInstructions:oe};(g[0]!=1||g[1]!=1)&&oe.push("scale",g),r&&(oe.push("strokeStyle",s.strokeStyle),oe.push("lineWidth",E),oe.push("lineCap",s.lineCap),oe.push("lineJoin",s.lineJoin),oe.push("miterLimit",s.miterLimit),oe.push("setLineDash",[s.lineDash]),oe.push("lineDashOffset",s.lineDashOffset)),i&&oe.push("fillStyle",a.fillStyle),oe.push("textBaseline","middle"),oe.push("textAlign","center");const ce=.5-v;let $=v*ee+ce*E;const ue=[],de=[];let be=0,me=0,xe=0,Pe=0,ke;for(let Qe=0,nt=I.length;Qe<nt;Qe+=2){const je=I[Qe];if(je===`
`){me+=be,be=0,$=v*ee+ce*E,++Pe;continue}const Re=I[Qe+1]||c.font;Re!==ke&&(r&&ue.push("font",Re),i&&de.push("font",Re),ke=Re),be=Math.max(be,V[xe]);const Ne=[je,$+ce*W[xe]+v*(W[xe]-q[Pe]),.5*(E+be)+me];$+=W[xe],r&&ue.push("strokeText",Ne),i&&de.push("fillText",Ne),++xe}return Array.prototype.push.apply(oe,ue),Array.prototype.push.apply(oe,de),this.labels_[o]=X,X}replayTextBackground_(e,t,i,r,o,s,a){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,i),e.lineTo.apply(e,r),e.lineTo.apply(e,o),e.lineTo.apply(e,t),s&&(this.alignAndScaleFill_=s[2],e.fillStyle=s[1],this.fill_(e)),a&&(this.setStrokeStyle_(e,a),e.stroke())}calculateImageOrLabelDimensions_(e,t,i,r,o,s,a,c,d,g,v,E,I,U,F,W){a*=E[0],c*=E[1];let V=i-a,q=r-c;const ee=o+d>e?e-d:o,oe=s+g>t?t-g:s,re=U[3]+ee*E[0]+U[1],ie=U[0]+oe*E[1]+U[2],X=V-U[3],ce=q-U[0];(F||v!==0)&&(cv[0]=X,Av[0]=X,cv[1]=ce,N1[1]=ce,N1[0]=X+re,G1[0]=N1[0],G1[1]=ce+ie,Av[1]=G1[1]);let $;return v!==0?($=Ig(sf(),i,r,1,1,v,-i,-r),Hu($,cv),Hu($,N1),Hu($,G1),Hu($,Av),uy(Math.min(cv[0],N1[0],G1[0],Av[0]),Math.min(cv[1],N1[1],G1[1],Av[1]),Math.max(cv[0],N1[0],G1[0],Av[0]),Math.max(cv[1],N1[1],G1[1],Av[1]),n2)):uy(Math.min(X,X+re),Math.min(ce,ce+ie),Math.max(X,X+re),Math.max(ce,ce+ie),n2),I&&(V=Math.round(V),q=Math.round(q)),{drawImageX:V,drawImageY:q,drawImageW:ee,drawImageH:oe,originX:d,originY:g,declutterBox:{minX:n2[0],minY:n2[1],maxX:n2[2],maxY:n2[3],value:W},canvasTransform:$,scale:E}}replayImageOrLabel_(e,t,i,r,o,s,a){const c=!!(s||a),d=r.declutterBox,g=a?a[2]*r.scale[0]/2:0;return d.minX-g<=t[0]&&d.maxX+g>=0&&d.minY-g<=t[1]&&d.maxY+g>=0&&(c&&this.replayTextBackground_(e,cv,N1,G1,Av,s,a),fve(e,r.canvasTransform,o,i,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const i=Hu(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(i[0]%r,i[1]%r),t!==1&&e.scale(t,t)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],t[1]&&(e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6]))}drawLabelWithPointPlacement_(e,t,i,r){const o=this.textStates[t],s=this.createLabel(e,t,r,i),a=this.strokeStates[i],c=this.pixelRatio,d=p7(Array.isArray(e)?e[0]:e,o.textAlign||R5),g=r6[o.textBaseline||JE],v=a&&a.lineWidth?a.lineWidth:0,E=s.width/c-2*o.scale[0],I=d*E+2*(.5-d)*v,U=g*s.height/c+2*(.5-g)*v;return{label:s,anchorX:I,anchorY:U}}execute_(e,t,i,r,o,s,a,c){const d=this.zIndexContext_;let g;this.pixelCoordinates_&&tb(i,this.renderedTransform_)?g=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),g=jv(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),u1e(this.renderedTransform_,i));let v=0;const E=r.length;let I=0,U;const F=[];let W,V,q,ee,oe,re,ie,X,ce,$,ue,de,be,me=0,xe=0;const Pe=this.coordinateCache_,ke=this.viewRotation_,Qe=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,nt={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:ke},je=this.instructions!=r||this.overlaps?0:200;let Re,Ne,lt,Ke;for(;v<E;){const Xe=r[v];switch(Xe[0]){case rr.BEGIN_GEOMETRY:Re=Xe[1],Ke=Xe[3],Re.getGeometry()?a!==void 0&&!Vl(a,Ke.getExtent())?v=Xe[2]+1:++v:v=Xe[2],d&&(d.zIndex=Xe[4]);break;case rr.BEGIN_PATH:me>je&&(this.fill_(e),me=0),xe>je&&(e.stroke(),xe=0),!me&&!xe&&(e.beginPath(),oe=NaN,re=NaN),++v;break;case rr.CIRCLE:I=Xe[1],q=Xe[2]??0;const Ct=g[I],It=g[I+1],Le=g[I+2]-q,Ie=g[I+3]-q,Ce=Le-Ct,it=Ie-It,pt=Math.sqrt(Ce*Ce+it*it);e.moveTo(Ct+pt,It),e.arc(Ct,It,pt,0,2*Math.PI,!0),++v;break;case rr.CLOSE_PATH:e.closePath(),++v;break;case rr.CUSTOM:I=Xe[1],U=Xe[2];const Ve=Xe[3],St=Xe[4],Bt=Xe[5];nt.geometry=Ve,nt.feature=Re,v in Pe||(Pe[v]=[]);const _t=Pe[v];Bt?Bt(g,I,U,2,_t):(_t[0]=g[I],_t[1]=g[I+1],_t.length=2),d&&(d.zIndex=Xe[6]),St(_t,nt),++v;break;case rr.DRAW_IMAGE:I=Xe[1],U=Xe[2],ce=Xe[3],W=Xe[4],V=Xe[5];let Jt=Xe[6];const un=Xe[7],Pn=Xe[8],Jn=Xe[9],Un=Xe[10];let Sn=Xe[11];const Qn=Xe[12];let Bn=Xe[13];ee=Xe[14]||"declutter";const vn=Xe[15];if(!ce&&Xe.length>=20){$=Xe[19],ue=Xe[20],de=Xe[21],be=Xe[22];const Fi=this.drawLabelWithPointPlacement_($,ue,de,be);ce=Fi.label,Xe[3]=ce;const ls=Xe[23];W=(Fi.anchorX-ls)*this.pixelRatio,Xe[4]=W;const so=Xe[24];V=(Fi.anchorY-so)*this.pixelRatio,Xe[5]=V,Jt=ce.height,Xe[6]=Jt,Bn=ce.width,Xe[13]=Bn}let vt;Xe.length>25&&(vt=Xe[25]);let Se,Ae,fe;Xe.length>17?(Se=Xe[16],Ae=Xe[17],fe=Xe[18]):(Se=gC,Ae=null,fe=null),Un&&Qe?Sn+=ke:!Un&&!Qe&&(Sn-=ke);let ze=0;for(;I<U;I+=2){if(vt&&vt[ze++]<Bn/this.pixelRatio)continue;const Fi=this.calculateImageOrLabelDimensions_(ce.width,ce.height,g[I],g[I+1],Bn,Jt,W,V,Pn,Jn,Sn,Qn,o,Se,!!Ae||!!fe,Re),ls=[e,t,ce,Fi,un,Ae,fe];if(c){let so,zo,ao;if(vn){const ln=U-I;if(!vn[ln]){vn[ln]={args:ls,declutterMode:ee};continue}const Ur=vn[ln];so=Ur.args,zo=Ur.declutterMode,delete vn[ln],ao=rG(so)}let xo,sr;if(so&&(zo!=="declutter"||!c.collides(ao))&&(xo=!0),(ee!=="declutter"||!c.collides(Fi.declutterBox))&&(sr=!0),zo==="declutter"&&ee==="declutte Line truncated
`);this.generateTileUrlFunction_?this.setTileUrlFunction(nne(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,i){}}class OCe extends HB{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:ICe,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.referrerPolicy=e.referrerPolicy,this.tileClass=e.tileClass!==void 0?e.tileClass:Lte,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!bh(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||bh(t,e)))return this.tileGrid;const i=Wr(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=BU(e)),this.tileGridForProjection[i]}createTile_(e,t,i,r,o,s){const a=[e,t,i],c=this.getTileCoordForTileUrlFunction(a,o),d=c?this.tileUrlFunction(c,r,o):void 0,g=new this.tileClass(a,d!==void 0?ai.IDLE:ai.EMPTY,d!==void 0?d:"",{crossOrigin:this.crossOrigin,referrerPolicy:this.referrerPolicy},this.tileLoadFunction,this.tileOptions);return g.key=s,g.addEventListener(Br.CHANGE,this.handleTileChange.bind(this)),g}getTile(e,t,i,r,o,s){const a=this.getProjection();if(!a||!o||bh(a,o))return this.getTileInternal(e,t,i,r,a||o);const c=[e,t,i],d=this.getKey(),g=this.getTileGridForProjection(a),v=this.getTileGridForProjection(o),E=this.getTileCoordForTileUrlFunction(c,o),I=new zte(a,g,o,v,c,E,this.getTilePixelRatio(r),this.getGutter(),(U,F,W,V)=>this.getTileInternal(U,F,W,V,a,s),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return I.key=d,I}getTileInternal(e,t,i,r,o,s){const a=this.getKey(),c=nE(this,a,e,t,i);if(s&&s.containsKey(c))return s.get(c);const d=this.createTile_(e,t,i,r,o,a);return s?.set(c,d),d}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const i=Us(e);if(i){const r=Wr(i);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}}function ICe(n,e){if(_h){const t=n.getCrossOrigin();let i="same-origin",r="same-origin";t==="anonymous"||t===""?(i="cors",r="omit"):t==="use-credentials"&&(i="cors",r="include");const o={mode:i,credentials:r,referrerPolicy:n.getReferrerPolicy()};fetch(e,o).then(s=>{if(!s.ok)throw new Error(`HTTP ${s.status}`);return s.blob()}).then(s=>createImageBitmap(s)).then(s=>{const a=n.getImage();a.width=s.width,a.height=s.height,a.getContext("2d").drawImage(s,0,0),s.close?.(),a.dispatchEvent(new Event("load"))}).catch(()=>{n.getImage().dispatchEvent(new Event("error"))});return}n.getImage().src=e}class rne extends OCe{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Us("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)mCe(e.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",e.url),t.send()}else if(e.tileJSON)this.handleTileJSONResponse(e.tileJSON);else throw new Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(e){const t=e.target;if(!t.status||t.status>=200&&t.status<300){let i;try{i=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(i)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=Us("EPSG:4326"),i=this.getProjection();let r;if(e.bounds!==void 0){const d=Kw(t,i);r=Dee(e.bounds,d)}const o=$B(i),s=e.minzoom||0,a=e.maxzoom||22,c=OU({extent:o,maxZoom:a,minZoom:s,tileSize:this.tileSize_});if(this.tileGrid=c,this.tileUrlFunction=nne(e.tiles,c),e.attribution&&!this.getAttributions()){const d=r!==void 0?r:o;this.setAttributions(function(g){return Vl(d,g.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}let TCe=!1;function one(n,e,t,i,r,o,s){const a=new XMLHttpRequest;a.open("GET",typeof n=="function"?n(t,i,r):n,!0),e.getType()=="arraybuffer"&&(a.responseType="arraybuffer"),a.withCredentials=T Line truncated
`),"binary").toString("base64"):URL.createObjectURL(new Blob(i,{type:"text/javascript"})));return r.addEventListener("message",e),r}function GCe(n,e){const t=cne(n.operation);let i=!1;return{postMessage:function(r){setTimeout(function(){i||e({data:{buffer:t(r),meta:r.meta}})},0)},terminate:function(){i=!0}}}let WCe=class extends Rw{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;e.threads===0?t=0:this.imageOps_?t=1:t=e.threads||1;const i=new Array(t);if(t)for(let r=0;r<t;++r)i[r]=NCe(e,this.onWorkerMessage_.bind(this,r));else i[0]=GCe(e,this.onWorkerMessage_.bind(this,0));this.workers_=i,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,i){this.enqueue_({inputs:e,meta:t,callback:i}),this.dispatch_()}enqueue_(e){for(this.queue_.push(e);this.queue_.length>this.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const e=this.queue_.shift();this.job_=e;const t=e.inputs[0].width,i=e.inputs[0].height,r=e.inputs.map(function(c){return c.data.buffer}),o=this.workers_.length;if(this.running_=o,o===1){this.workers_[0].postMessage({buffers:r,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},r);return}const s=e.inputs[0].data.length,a=4*Math.ceil(s/4/o);for(let c=0;c<o;++c){const d=c*a,g=[];for(let v=0,E=r.length;v<E;++v)g.push(r[v].slice(d,d+a));this.workers_[c].postMessage({buffers:g,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},g)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){const e=this.job_,t=this.workers_.length;let i,r;if(t===1)i=new Uint8ClampedArray(this.dataLookup_[0].buffer),r=this.dataLookup_[0].meta;else{const o=e.inputs[0].data.length;i=new Uint8ClampedArray(o),r=new Array(t);const s=4*Math.ceil(o/4/t);for(let a=0;a<t;++a){const c=this.dataLookup_[a].buffer,d=a*s;i.set(new Uint8ClampedArray(c),d),r[a]=this.dataLookup_[a].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(i,e.inputs[0].width,e.inputs[0].height),r),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}};const dG={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class fG extends a0{constructor(e,t,i){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=i}}class RU extends une{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_=qCe(e.sources);const t=this.changed.bind(this);for(let i=0,r=this.layers_.length;i<r;++i)this.layers_[i].addEventListener(Br.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new See(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:sf(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:YCe(this.layers_),pixelRatio:1,pixelToCoordinateTransform:sf(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Wr(this),renderTargets:{}},this.setAttributions(function(i){const r=[];for(let o=0,s=e.sources.length;o<s;++o){const a=e.sources[o],c=a instanceof o3?a:a.getSource();if(!c)continue;const d=c.getAttributions()?.(i);typeof d=="string"?r.push(d):d!==void 0&&r.push(...d)}return r}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new WCe({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,i){const r=Object.assign({},this.frameState_);r.viewState=Object.assign({},r.viewState);const o=ep(e);r.size[0]=Math.ceil(Jo(e)/t),r.size[1]=Math.ceil(ec(e)/t),r.extent=[o[0]-r.size[0]*t/2,o[1]-r.size[1]*t/2,o[0]+r.size[0]*t/2,o[1]+r.size[1]*t/2],r.time=Date.now();const s=r.viewState;return s.center=o,s.projection=i,s.resolution=t,r}allSourcesReady_(){let e=!0,t;for(let i=0,r=this.layers_.length;i<r;++i)if(t=this.layers_[i].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,i,r){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const o=this.updateFrameState_(e,t,r);if(this.requestedFrameState_=o,this.renderedImageCanvas_){const s=this.renderedImageCanvas_.getResolution(),a=this.renderedImageCanvas_.getExtent();(t!==s||!cy(o.extent,a))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),o.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.requestedFrameSta Line truncated
`),r=n_e.slice(0,Math.round(e/.1));for(let o=0,s=i.length;o<s;++o)o>0&&(t+=`
`),t+=i[o].split("").join(r);return t}return n}let b7;function dne(){return b7||(b7=ZB(1,1).getContext("2d")),b7}function i_e(n,e){if(/\d+ \d+/.test(n)){const[t,i]=n.split(" ").map(Number);return t<=e&&e<=i}return n==e}function nC(n,e){return dne().measureText(n).width+(n.length-1)*e}const l6={};lC.on("propertychange",()=>{for(const n in l6)delete l6[n]});function CR(n,e,t,i){if(n.indexOf(`
`,os().s[12]++,this._textEl=this._container.querySelector("span"),os().s[13]++,this.updateZoomLevel()}addEventListeners(){os().f[4]++,os().s[14]++,this._map.on("render",()=>(os().f[5]++,os().s[15]++,this.updateZoomLevel())),os().s[16]++,this._map.on("zoomIn",()=>(os().f[6]++,os().s[17]++,this.updateZoomLevel())),os().s[18]++,this._map.on("zoomOut",()=>(os().f[7]++,os().s[19]++,this.updateZoomLevel()))}onRemove(){os().f[8]++,os().s[20]++,this._container.parentNode.removeChild(this._container),os().s[21]++,this._map=void 0}}function OD(n,e,t){const i={id:[e,t,"circle"].join("_"),source:e,type:"circle",paint:{"circle-color":n,"circle-radius":2},filter:["==","$type","Point"]};return t&&(i["source-layer"]=t),i}function ID(n,e,t,i){const r={id:[t,i,"polygon"].join("_"),source:t,type:"fill",paint:{"fill-color":n,"fill-antialias":!0,"fill-outline-color":n},filter:["==","$type","Polygon"]};return i&&(r["source-layer"]=i),r}function TD(n,e,t){const i={id:[e,t,"line"].join("_"),source:e,layout:{"line-join":"round","line-cap":"round"},type:"line",paint:{"line-color":n},filter:["==","$type","LineString"]};return t&&(i["source-layer"]=t),i}function Mj(n,e){return{circle:e(n,.8),line:e(n,.6),polygon:e(n,.3),polygonOutline:e(n,.6),default:e(n,1)}}function Xpe(n,e){const t=[],i=[],r=[];for(const o of Object.keys(n)){const s=n[o];if(!s||s.length===0){const a=Mj(o,e);i.push(OD(a.circle,o)),r.push(TD(a.line,o)),t.push(ID(a.polygon,a.polygonOutline,o))}else for(const a of s){const c=Mj(a,e);i.push(OD(c.circle,o,a)),r.push(TD(c.line,o,a)),t.push(ID(c.polygon,c.polygonOutline,o,a))}}return t.concat(r).concat(i)}function Jpe(n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const i={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},r={};for(const o of Object.keys(n.sources)){const s=n.sources[o];(s.type==="vector"||s.type==="geojson")&&(r[o]=s)}return Object.assign(n,{layers:[i].concat(e),sources:r})}const MO={polygonLayer:ID,lineLayer:TD,circleLayer:OD,generateInspectStyle:Jpe,generateColoredLayers:Xpe};function Dr(){var n="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",e="aec0f701e803624fae461cc89b5fc887ff556587",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",statementMap:{0:{start:{line:4,column:2},end:{line:8,column:3}},1:{start:{line:5,column:4},end:{line:5,column:33}},2:{start:{line:6,column:9},end:{line:8,column:3}},3:{start:{line:7,column:4},end:{line:7,column:30}},4:{start:{line:9,column:2},end:{line:13,column:3}},5:{start:{line:10,column:4},end:{line:10,column:28}},6:{start:{line:12,column:4},end:{line:12,column:23}},7:{start:{line:14,column:2},end:{line:14,column:29}},8:{start:{line:15,column:2},end:{line:15,column:11}},9:{start:{line:18,column:2},end:{line:18,column:84}},10:{start:{line:18,column:72},end:{line:18,column:84}},11:{start:{line:19,column:24},end:{line:19,column:51}},12:{start:{line:20,column:16},end:{line:20,column:52}},13:{start:{line:21,column:2},end:{line:23,column:3}},14:{start:{line:22,column:4},end:{line:22,column:104}},15:{start:{line:24,column:2},end:{line:26,column:3}},16:{start:{line:25,column:4},end:{line:25,column:96}},17:{start:{line:27,column:2},end:{line:29,column:3}},18:{start:{line:28,column:4},end:{line:28,column:94}},19:{start:{line:30,column:2},end:{line:30,column:14}}},fnMap:{0:{name:"changeLayer",decl:{start:{line:3,column:9},end:{line:3,column:20}},loc:{start:{line:3,column:31},end:{line:16,column:1}},line:3},1:{name:"colorHighlightedLayer",decl:{start:{line:17,column:16},end:{line:17,column:37}},loc:{start:{line:17,column:45},end:{line:31,column:1}},line:17}},branchMap:{0:{loc:{start:{line:4,column:2},end:{line:8,column:3}},type:"if",locations:[{start:{line:4,column:2},end:{line:8,column:3}},{start:{line:6,column:9},end:{line:8,column:3}}],line:4},1:{loc:{start:{line:6,column:9},end:{line:8,column:3}},type:"if",locations:[{start:{line:6,column:9},end:{line:8,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},2:{loc:{start:{line:9,column:2},end:{line:13,column:3}},type:"if",locations:[{start:{line:9,column:2},end:{line:13,column:3}},{start:{line:11,column:9},end:{line:13,column:3}}],line:9},3:{loc:{start:{line:18,column:2},end:{line:18,column:84}},type:"if",locations:[{start:{line:18,column:2},end:{line:18,column:84}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},4:{loc:{start:{line:18,column:6},end:{line:18,column:70}},type:"binary-expr",locations:[{start:{line:18,column:6},end:{line:18,column:12}},{start:{line:18,column:16},end:{line:18,column:43}},{start:{line:18,column:47},end:{line:18,column:70}}],line:18},5:{loc:{start:{line:19,column:24},end:{line:19,column:51}},type:"binary-expr",locations:[{start:{line:19,column:24},end:{line:19,column:45}},{start:{line:19,column:49},end:{line:19,column:51}}],line:19},6:{loc:{start:{line:21,column:2},end:{line:23,column:3}},type:"if",locations:[{start:{line:21,column:2},end:{l Line truncated
${this._localize("errorNoResults")}</div>`;this._renderMessage(e)}_renderMessage(e){this._typeahead.update([]),this._typeahead.selected=null,this._typeahead.clear(),this._typeahead.renderError(e)}_localize(e){const t=cme.language(this.options.language.split(",")[0]);return this.options.language&&U3?.[e][t]?U3[e][t]:U3[e].en}_fitBoundsForMarkers(){var e;if(this._typeahead.data.length<1)return;const t=this._typeahead.data.filter(i=>typeof i!="string").slice(0,this.options.limit);if(this._clearEl.style.display="none",this.options.flyTo&&this._maplibregl&&this._map){const r=Km({},{padding:100},this.options.flyTo),o=new this._maplibregl.LngLatBounds;for(const s of t)"geometry"in s&&((e=s.geometry)===null||e===void 0?void 0:e.type)==="Point"&&o.extend(s.geometry.coordinates);this._map.fitBounds(o,r)}return t.length>0&&this._maplibregl&&this._handleResultMarkers(t),this}setInput(e){return this._inputEl.value=e,this._typeahead.selected=null,this._typeahead.clear(),e.length>=this.options.minLength&&this.options.showResultsWhileTyping&&this._geocode(e),this}setProximity(e){return this.options.proximity=e,this}getProximity(){return this.options.proximity}setRenderFunction(e){return e&&typeof e=="function"&&(this._typeahead.render=e),this}getRenderFunction(){return this._typeahead.render}setLanguage(e){return this.options.language=e||this.options.language||navigator.language,this}getLanguage(){return this.options.language}getZoom(){return this.options.zoom}setZoom(e){return this.options.zoom=e,this}getFlyTo(){return this.options.flyTo}setFlyTo(e){return this.options.flyTo=e,this}getPlaceholder(){return this.options.placeholder}setPlaceholder(e){return this.options.placeholder=e||this.options.placeholder||this._localize("placeholder"),this._inputEl.placeholder=this.options.placeholder,this._inputEl.setAttribute("aria-label",this.options.placeholder),this}getBbox(){return this.options.bbox}setBbox(e){return this.options.bbox=e,this}getCountries(){return this.options.countries}setCountries(e){return this.options.countries=e,this}getTypes(){return this.options.types}setTypes(e){return this.options.types=e,this}getMinLength(){return this.options.minLength}setMinLength(e){return this.options.minLength=e,this._typeahead&&(this._typeahead.options.minLength=e),this}getLimit(){return this.options.limit}setLimit(e){return this.options.limit=e,this._typeahead&&(this._typeahead.options.limit=e),this}getFilter(){return this.options.filter}setFilter(e){return this.options.filter=e,this}setGeocoderApi(e){return this.geocoderApi=e,this}getGeocoderApi(){return this.geocoderApi}_handleMarker(e){var t;if(!this._map)return;this._removeMarker();const r=Km({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(r);let o=null;if(this.options.popup){const a=Km({},{},this.options.popup);o=new this._maplibregl.Popup(a).setHTML(this.options.popupRender(e))}return e.center?(this.mapMarker.setLngLat(e.center).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(o)):((t=e.geometry)===null||t===void 0?void 0:t.type)==="Point"&&e.geometry.coordinates&&(this.mapMarker.setLngLat(e.geometry.coordinates).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(o)),this}_removeMarker(){this.mapMarker&&(this.mapMarker.remove(),this.mapMarker=null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let i=Km({},{color:"#4668F2"},this.options.showResultMarkers);for(const r of e){let o;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(o=this.options.showResultMarkers.element.cloneNode(!0),i=Km(i,{element:o}));const s=new this._maplibregl.Marker(Km({},i,{element:o}));let a;if(this.options.popup){const d=Km({},{},this.options.popup);a=new this._maplibregl.Popup(d).setHTML(this.options.popupRender(r))}r.center?(s.setLngLat(r.center).addTo(this._map),this.options.popup&&s.setPopup(a)):r.geometry&&r.geometry.type&&r.geometry.type==="Point"&&r.geometry.coordinates&&(s.setLngLat(r.geometry.coordinates).addTo(this._map),this.options.popup&&s.setPopup(a)),this.resultMarkers.push(s)}}return this}_removeResultMarkers(){this.resultMarkers&&this.resultMarkers.length>0&&(this.resultMarkers.forEach(function(e){e.remove()}),this.resultMarkers=[])}on(e,t){return this._eventEmitter.on(e,t),this}once(e){return new Promise(t=>{this._eventEmitter.once(e,t)})}off(e,t){return this._eventEmitter.removeListener(e,t),this}}function Qt(){var n="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",e="2d91b6c543f9700f5163b2f1cc417edccdb9abe7",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",statementMap:{0:{start:{line:21,column:26},end:{line:27,column:3}},1:{start:{line:28,column:16},end:{line:28,column:55}},2:{start:{line:29,column:2},end:{line:31,column:3}},3:{start:{line:30,column:4},end:{line:30,column:30}},4:{start:{line:32,column:18},end:{line:32,column:20}},5:{start:{line:33,colLine truncated
`).reduce((r,o)=>Math.max(r,xte(n,o)),0);return t[e]=i,i}function gve(n,e){const t=[],i=[],r=[];let o=0,s=0,a=0,c=0;for(let d=0,g=e.length;d<=g;d+=2){const v=e[d];if(v===`
`||d===g){o=Math.max(o,s),r.push(s),s=0,a+=c,c=0;continue}const E=e[d+1]||n.font,I=xte(E,v);t.push(I),s+=I;const U=mve(E);i.push(U),c=Math.max(c,U)}return{width:o,height:a,widths:t,heights:i,lineWidths:r}}function yve(n,e,t,i,r,o,s,a,c,d,g){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=v=>v.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),i.contextInstructions?(n.translate(c,d),n.scale(g[0],g[1]),vve(i,n)):g[0]<0||g[1]<0?(n.translate(c,d),n.scale(g[0],g[1]),n.drawImage(i,r,o,s,a,0,0,s,a)):n.drawImage(i,r,o,s,a,c,d,s*g[0],a*g[1]),n.restore()}function vve(n,e){const t=n.contextInstructions;for(let i=0,r=t.length;i<r;i+=2)Array.isArray(t[i+1])?e[t[i]].apply(e,t[i+1]):e[t[i]]=t[i+1]}class zB{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=xh(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new zB({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return Pr()}getImage(e){return Pr()}getHitDetectionImage(){return Pr()}getPixelRatio(e){return 1}getImageState(){return Pr()}getImageSize(){return Pr()}getOrigin(){return Pr()}getSize(){return Pr()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=xh(e)}listenImageChange(e){Pr()}load(){Pr()}unlistenImageChange(e){Pr()}ready(){return Promise.resolve()}}class jB extends zB{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()?Ui.LOADING:Ui.LOADED,this.imageState_===Ui.LOADING&&this.ready().then(()=>this.imageState_=Ui.LOADED),this.render()}clone(){const e=this.getScale(),t=new jB({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_,t=this.getDisplacement(),i=this.getScaleArray();return[e[0]/2-t[0]/i[0],e[1]/2+t[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){const t=this.fill_?.getKey(),i=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(",");let r=Wp.get(i,null)?.getImage(1);if(!r){const o=this.renderOptions_,s=Math.ceil(o.size*e),a=fl(s,s);this.draw_(o,a,e),r=a.canvas;const c=new bte(r,void 0,null,Ui.LOADED,null);Wp.set(i,null,c),createImageBitmap(r).then(d=>{c.setImage(d)})}return r}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}setRadius(e){this.radius!==e&&(this.radius=e,this.render())}getRadius2(){return this.radius2_}setRadius2(e){this.radius2_!==e&&(this.radius2_=e,this.render())}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,i){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let r=this.radius,o=this.radius2_===void 0?r:this.radius2_;if(r<o){const ie=r;r=o,o=ie}const s=this.radius2_===void 0?this.points_:this.points_*2,a=2*Math.PI/s,c=o*Math.sin(a),d=Math.sqrt(o*o-c*c),g=r-d,v=Math.sqrt(c*c+g*g),E=v/c;if(e==="miter"&&E<=i)return E*t;const I=t/2/E,U=t/2*(g/v),W=Math.sqrt((r+I)*(r+I)+U*U)-r;if(this.radius2_===void 0||e==="bevel")return W*2;const V=r*Math.sin(a),q=Math.sqrt(r*r-V*V),ee=o-q,re=Math.sqrt(V*V+ee*ee) Line truncated
`,""),n.push(e,""),n}function Xbe(n,e,t){return t%2===0&&(n+=e),n}class Jbe{constructor(e,t,i,r,o){this.overlaps=i,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=of(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=o?new xU:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,i,r){const o=e+t+i+r;if(this.labels_[o])return this.labels_[o];const s=r?this.strokeStates[r]:null,a=i?this.fillStates[i]:null,c=this.textStates[t],d=this.pixelRatio,g=[c.scale[0]*d,c.scale[1]*d],v=c.justify?n6[c.justify]:d7(Array.isArray(e)?e[0]:e,c.textAlign||k5),E=r&&s.lineWidth?s.lineWidth:0,I=Array.isArray(e)?e:String(e).split(`
`).reduce(Zbe,[]),{width:U,height:F,widths:W,heights:V,lineWidths:q}=gve(c,I),ee=U+E,oe=[],re=(ee+2)*g[0],ie=(F+E)*g[1],X={width:re<0?Math.floor(re):Math.ceil(re),height:ie<0?Math.floor(ie):Math.ceil(ie),contextInstructions:oe};(g[0]!=1||g[1]!=1)&&oe.push("scale",g),r&&(oe.push("strokeStyle",s.strokeStyle),oe.push("lineWidth",E),oe.push("lineCap",s.lineCap),oe.push("lineJoin",s.lineJoin),oe.push("miterLimit",s.miterLimit),oe.push("setLineDash",[s.lineDash]),oe.push("lineDashOffset",s.lineDashOffset)),i&&oe.push("fillStyle",a.fillStyle),oe.push("textBaseline","middle"),oe.push("textAlign","center");const ce=.5-v;let $=v*ee+ce*E;const ue=[],de=[];let be=0,me=0,xe=0,Pe=0,ke;for(let Qe=0,nt=I.length;Qe<nt;Qe+=2){const je=I[Qe];if(je===`
`){me+=be,be=0,$=v*ee+ce*E,++Pe;continue}const Re=I[Qe+1]||c.font;Re!==ke&&(r&&ue.push("font",Re),i&&de.push("font",Re),ke=Re),be=Math.max(be,V[xe]);const Ne=[je,$+ce*W[xe]+v*(W[xe]-q[Pe]),.5*(E+be)+me];$+=W[xe],r&&ue.push("strokeText",Ne),i&&de.push("fillText",Ne),++xe}return Array.prototype.push.apply(oe,ue),Array.prototype.push.apply(oe,de),this.labels_[o]=X,X}replayTextBackground_(e,t,i,r,o,s,a){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,i),e.lineTo.apply(e,r),e.lineTo.apply(e,o),e.lineTo.apply(e,t),s&&(this.alignAndScaleFill_=s[2],e.fillStyle=s[1],this.fill_(e)),a&&(this.setStrokeStyle_(e,a),e.stroke())}calculateImageOrLabelDimensions_(e,t,i,r,o,s,a,c,d,g,v,E,I,U,F,W){a*=E[0],c*=E[1];let V=i-a,q=r-c;const ee=o+d>e?e-d:o,oe=s+g>t?t-g:s,re=U[3]+ee*E[0]+U[1],ie=U[0]+oe*E[1]+U[2],X=V-U[3],ce=q-U[0];(F||v!==0)&&(uv[0]=X,cv[0]=X,uv[1]=ce,j1[1]=ce,j1[0]=X+re,N1[0]=j1[0],N1[1]=ce+ie,cv[1]=N1[1]);let $;return v!==0?($=Og(of(),i,r,1,1,v,-i,-r),Zu($,uv),Zu($,j1),Zu($,N1),Zu($,cv),ly(Math.min(uv[0],j1[0],N1[0],cv[0]),Math.min(uv[1],j1[1],N1[1],cv[1]),Math.max(uv[0],j1[0],N1[0],cv[0]),Math.max(uv[1],j1[1],N1[1],cv[1]),t2)):ly(Math.min(X,X+re),Math.min(ce,ce+ie),Math.max(X,X+re),Math.max(ce,ce+ie),t2),I&&(V=Math.round(V),q=Math.round(q)),{drawImageX:V,drawImageY:q,drawImageW:ee,drawImageH:oe,originX:d,originY:g,declutterBox:{minX:t2[0],minY:t2[1],maxX:t2[2],maxY:t2[3],value:W},canvasTransform:$,scale:E}}replayImageOrLabel_(e,t,i,r,o,s,a){const c=!!(s||a),d=r.declutterBox,g=a?a[2]*r.scale[0]/2:0;return d.minX-g<=t[0]&&d.maxX+g>=0&&d.minY-g<=t[1]&&d.maxY+g>=0&&(c&&this.replayTextBackground_(e,uv,j1,N1,cv,s,a),yve(e,r.canvasTransform,o,i,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const i=Zu(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(i[0]%r,i[1]%r),t!==1&&e.scale(t,t)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],t[1]&&(e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6]))}drawLabelWithPointPlacement_(e,t,i,r){const o=this.textStates[t],s=this.createLabel(e,t,r,i),a=this.strokeStates[i],c=this.pixelRatio,d=d7(Array.isArray(e)?e[0]:e,o.textAlign||k5),g=n6[o.textBaseline||ZE],v=a&&a.lineWidth?a.lineWidth:0,E=s.width/c-2*o.scale[0],I=d*E+2*(.5-d)*v,U=g*s.height/c+2*(.5-g)*v;return{label:s,anchorX:I,anchorY:U}}execute_(e,t,i,r,o,s,a,c){const d=this.zIndexContext_;let g;this.pixelCoordinates_&&eb(i,this.renderedTransform_)?g=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),g=zv(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),d1e(this.renderedTransform_,i));let v=0;const E=r.length;let I=0,U;const F=[];let W,V,q,ee,oe,re,ie,X,ce,$,ue,de,be,me=0,xe=0;const Pe=this.coordinateCache_,ke=this.viewRotation_,Qe=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,nt={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:ke},je=this.instructions!=r||this.overlaps?0:200;let Re,Ne,lt,Ke;for(;v<E;){const Xe=r[v];switch(Xe[0]){case rr.BEGIN_GEOMETRY:Re=Xe[1],Ke=Xe[3],Re.getGeometry()?a!==void 0&&!$l(a,Ke.getExtent())?v=Xe[2]+1:++v:v=Xe[2],d&&(d.zIndex=Xe[4]);break;case rr.BEGIN_PATH:me>je&&(this.fill_(e),me=0),xe>je&&(e.stroke(),xe=0),!me&&!xe&&(e.beginPath(),oe=NaN,re=NaN),++v;break;case rr.CIRCLE:I=Xe[1],q=Xe[2]??0;const Ct=g[I],It=g[I+1],Le=g[I+2]-q,Ie=g[I+3]-q,Ce=Le-Ct,it=Ie-It,pt=Math.sqrt(Ce*Ce+it*it);e.moveTo(Ct+pt,It),e.arc(Ct,It,pt,0,2*Math.PI,!0),++v;break;case rr.CLOSE_PATH:e.closePath(),++v;break;case rr.CUSTOM:I=Xe[1],U=Xe[2];const Ve=Xe[3],St=Xe[4],Bt=Xe[5];nt.geometry=Ve,nt.feature=Re,v in Pe||(Pe[v]=[]);const _t=Pe[v];Bt?Bt(g,I,U,2,_t):(_t[0]=g[I],_t[1]=g[I+1],_t.length=2),d&&(d.zIndex=Xe[6]),St(_t,nt),++v;break;case rr.DRAW_IMAGE:I=Xe[1],U=Xe[2],ce=Xe[3],W=Xe[4],V=Xe[5];let Jt=Xe[6];const un=Xe[7],Pn=Xe[8],Jn=Xe[9],Un=Xe[10];let Sn=Xe[11];const Qn=Xe[12];let Bn=Xe[13];ee=Xe[14]||"declutter";const vn=Xe[15];if(!ce&&Xe.length>=20){$=Xe[19],ue=Xe[20],de=Xe[21],be=Xe[22];const Fi=this.drawLabelWithPointPlacement_($,ue,de,be);ce=Fi.label,Xe[3]=ce;const us=Xe[23];W=(Fi.anchorX-us)*this.pixelRatio,Xe[4]=W;const so=Xe[24];V=(Fi.anchorY-so)*this.pixelRatio,Xe[5]=V,Jt=ce.height,Xe[6]=Jt,Bn=ce.width,Xe[13]=Bn}let vt;Xe.length>25&&(vt=Xe[25]);let Se,Ae,fe;Xe.length>17?(Se=Xe[16],Ae=Xe[17],fe=Xe[18]):(Se=mC,Ae=null,fe=null),Un&&Qe?Sn+=ke:!Un&&!Qe&&(Sn-=ke);let ze=0;for(;I<U;I+=2){if(vt&&vt[ze++]<Bn/this.pixelRatio)continue;const Fi=this.calculateImageOrLabelDimensions_(ce.width,ce.height,g[I],g[I+1],Bn,Jt,W,V,Pn,Jn,Sn,Qn,o,Se,!!Ae||!!fe,Re),us=[e,t,ce,Fi,un,Ae,fe];if(c){let so,zo,ao;if(vn){const ln=U-I;if(!vn[ln]){vn[ln]={args:us,declutterMode:ee};continue}const Ur=vn[ln];so=Ur.args,zo=Ur.declutterMode,delete vn[ln],ao=nG(so)}let xo,sr;if(so&&(zo!=="declutter"||!c.collides(ao))&&(xo=!0),(ee!=="declutter"||!c.collides(Fi.declutterBox))&&(sr=!0),zo==="declutter"&&ee==="declutte Line truncated
`);this.generateTileUrlFunction_?this.setTileUrlFunction(rne(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,i){}}class DCe extends $B{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:RCe,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.referrerPolicy=e.referrerPolicy,this.tileClass=e.tileClass!==void 0?e.tileClass:Kte,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!bh(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||bh(t,e)))return this.tileGrid;const i=Wr(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=SU(e)),this.tileGridForProjection[i]}createTile_(e,t,i,r,o,s){const a=[e,t,i],c=this.getTileCoordForTileUrlFunction(a,o),d=c?this.tileUrlFunction(c,r,o):void 0,g=new this.tileClass(a,d!==void 0?ai.IDLE:ai.EMPTY,d!==void 0?d:"",{crossOrigin:this.crossOrigin,referrerPolicy:this.referrerPolicy},this.tileLoadFunction,this.tileOptions);return g.key=s,g.addEventListener(Br.CHANGE,this.handleTileChange.bind(this)),g}getTile(e,t,i,r,o,s){const a=this.getProjection();if(!a||!o||bh(a,o))return this.getTileInternal(e,t,i,r,a||o);const c=[e,t,i],d=this.getKey(),g=this.getTileGridForProjection(a),v=this.getTileGridForProjection(o),E=this.getTileCoordForTileUrlFunction(c,o),I=new Nte(a,g,o,v,c,E,this.getTilePixelRatio(r),this.getGutter(),(U,F,W,V)=>this.getTileInternal(U,F,W,V,a,s),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return I.key=d,I}getTileInternal(e,t,i,r,o,s){const a=this.getKey(),c=eE(this,a,e,t,i);if(s&&s.containsKey(c))return s.get(c);const d=this.createTile_(e,t,i,r,o,a);return s?.set(c,d),d}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const i=Ks(e);if(i){const r=Wr(i);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}}function RCe(n,e){if(_h){const t=n.getCrossOrigin();let i="same-origin",r="same-origin";t==="anonymous"||t===""?(i="cors",r="omit"):t==="use-credentials"&&(i="cors",r="include");const o={mode:i,credentials:r,referrerPolicy:n.getReferrerPolicy()};fetch(e,o).then(s=>{if(!s.ok)throw new Error(`HTTP ${s.status}`);return s.blob()}).then(s=>createImageBitmap(s)).then(s=>{const a=n.getImage();a.width=s.width,a.height=s.height,a.getContext("2d").drawImage(s,0,0),s.close?.(),a.dispatchEvent(new Event("load"))}).catch(()=>{n.getImage().dispatchEvent(new Event("error"))});return}n.getImage().src=e}class sne extends DCe{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Ks("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)bCe(e.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",e.url),t.send()}else if(e.tileJSON)this.handleTileJSONResponse(e.tileJSON);else throw new Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(e){const t=e.target;if(!t.status||t.status>=200&&t.status<300){let i;try{i=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(i)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=Ks("EPSG:4326"),i=this.getProjection();let r;if(e.bounds!==void 0){const d=Lw(t,i);r=Pee(e.bounds,d)}const o=VB(i),s=e.minzoom||0,a=e.maxzoom||22,c=EU({extent:o,maxZoom:a,minZoom:s,tileSize:this.tileSize_});if(this.tileGrid=c,this.tileUrlFunction=rne(e.tiles,c),e.attribution&&!this.getAttributions()){const d=r!==void 0?r:o;this.setAttributions(function(g){return $l(d,g.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}let PCe=!1;function ane(n,e,t,i,r,o,s){const a=new XMLHttpRequest;a.open("GET",typeof n=="function"?n(t,i,r):n,!0),e.getType()=="arraybuffer"&&(a.responseType="arraybuffer"),a.withCredentials=P Line truncated
`),"binary").toString("base64"):URL.createObjectURL(new Blob(i,{type:"text/javascript"})));return r.addEventListener("message",e),r}function qCe(n,e){const t=hne(n.operation);let i=!1;return{postMessage:function(r){setTimeout(function(){i||e({data:{buffer:t(r),meta:r.meta}})},0)},terminate:function(){i=!0}}}let VCe=class extends kw{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;e.threads===0?t=0:this.imageOps_?t=1:t=e.threads||1;const i=new Array(t);if(t)for(let r=0;r<t;++r)i[r]=YCe(e,this.onWorkerMessage_.bind(this,r));else i[0]=qCe(e,this.onWorkerMessage_.bind(this,0));this.workers_=i,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,i){this.enqueue_({inputs:e,meta:t,callback:i}),this.dispatch_()}enqueue_(e){for(this.queue_.push(e);this.queue_.length>this.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const e=this.queue_.shift();this.job_=e;const t=e.inputs[0].width,i=e.inputs[0].height,r=e.inputs.map(function(c){return c.data.buffer}),o=this.workers_.length;if(this.running_=o,o===1){this.workers_[0].postMessage({buffers:r,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},r);return}const s=e.inputs[0].data.length,a=4*Math.ceil(s/4/o);for(let c=0;c<o;++c){const d=c*a,g=[];for(let v=0,E=r.length;v<E;++v)g.push(r[v].slice(d,d+a));this.workers_[c].postMessage({buffers:g,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},g)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){const e=this.job_,t=this.workers_.length;let i,r;if(t===1)i=new Uint8ClampedArray(this.dataLookup_[0].buffer),r=this.dataLookup_[0].meta;else{const o=e.inputs[0].data.length;i=new Uint8ClampedArray(o),r=new Array(t);const s=4*Math.ceil(o/4/t);for(let a=0;a<t;++a){const c=this.dataLookup_[a].buffer,d=a*s;i.set(new Uint8ClampedArray(c),d),r[a]=this.dataLookup_[a].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(i,e.inputs[0].width,e.inputs[0].height),r),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}};const AG={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class hG extends s0{constructor(e,t,i){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=i}}class kU extends Ane{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_=ZCe(e.sources);const t=this.changed.bind(this);for(let i=0,r=this.layers_.length;i<r;++i)this.layers_[i].addEventListener(Br.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new Bee(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:of(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:HCe(this.layers_),pixelRatio:1,pixelToCoordinateTransform:of(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Wr(this),renderTargets:{}},this.setAttributions(function(i){const r=[];for(let o=0,s=e.sources.length;o<s;++o){const a=e.sources[o],c=a instanceof n3?a:a.getSource();if(!c)continue;const d=c.getAttributions()?.(i);typeof d=="string"?r.push(d):d!==void 0&&r.push(...d)}return r}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new VCe({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,i){const r=Object.assign({},this.frameState_);r.viewState=Object.assign({},r.viewState);const o=Jf(e);r.size[0]=Math.ceil(es(e)/t),r.size[1]=Math.ceil(ec(e)/t),r.extent=[o[0]-r.size[0]*t/2,o[1]-r.size[1]*t/2,o[0]+r.size[0]*t/2,o[1]+r.size[1]*t/2],r.time=Date.now();const s=r.viewState;return s.center=o,s.projection=i,s.resolution=t,r}allSourcesReady_(){let e=!0,t;for(let i=0,r=this.layers_.length;i<r;++i)if(t=this.layers_[i].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,i,r){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const o=this.updateFrameState_(e,t,r);if(this.requestedFrameState_=o,this.renderedImageCanvas_){const s=this.renderedImageCanvas_.getResolution(),a=this.renderedImageCanvas_.getExtent();(t!==s||!uy(o.extent,a))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),o.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.requestedFrameSta Line truncated
`),r=s_e.slice(0,Math.round(e/.1));for(let o=0,s=i.length;o<s;++o)o>0&&(t+=`
`),t+=i[o].split("").join(r);return t}return n}let y7;function pne(){return y7||(y7=HB(1,1).getContext("2d")),y7}function a_e(n,e){if(/\d+ \d+/.test(n)){const[t,i]=n.split(" ").map(Number);return t<=e&&e<=i}return n==e}function tC(n,e){return pne().measureText(n).width+(n.length-1)*e}const s6={};aC.on("propertychange",()=>{for(const n in s6)delete s6[n]});function vR(n,e,t,i){if(n.indexOf(`
`)!==-1){const s=n.split(`
`),a=[];for(let c=0,d=s.length;c<d;++c)a.push(CR(s[c],e,t,i));return a.join(`
`)}const r=t+","+e+","+n+","+i;let o=l6[r];if(!o){const s=n.split(" ");if(s.length>1){const a=dne();a.font=e;const d=a.measureText("M").width*t;let g="";const v=[];for(let E=0,I=s.length;E<I;++E){const U=s[E],F=g+(g?" ":"")+U;nC(F,i)<=d?g=F:(g&&v.push(g),g=U)}g&&v.push(g);for(let E=0,I=v.length;E<I&&I>1;++E){const U=v[E];if(nC(U,i)<d*.35){const F=E>0?nC(v[E-1],i):1/0,W=E<I-1?nC(v[E+1],i):1/0;v.splice(E,1),I-=1,F<W?(v[E-1]+=" "+U,E-=1):v[E]=U+" "+v[E]}}for(let E=0,I=v.length-1;E<I;++E){const U=v[E],F=v[E+1];if(nC(U,i)>d*.7&&nC(F,i)<d*.6){const W=U.split(" "),V=W.pop();nC(V,i)<d*.2&&(v[E]=W.join(" "),v[E+1]=V+" "+F),I-=1}}o=v.join(`
`)}else o=n;o=bR(o,i),l6[r]=o}return o}const r_e=["Arial","Courier New","Times New Roman","Verdana","sans-serif","serif","monospace","cursive","fantasy"],xG={};function o_e(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){if(_h)return n;let t;for(let i=0,r=n.length;i<r;++i){const o=n[i];if(o in xG)continue;xG[o]=!0;const a=vR(o,16).split(" ");t||(t=[]),t.push([a.slice(3).join(" ").replace(/"/g,""),a[1],a[0]])}return t&&(async()=>{await document.fonts.ready;for(let i=0,r=t.length;i<r;++i){const o=t[i],s=o[0];if(r_e.includes(s))continue;const a=o[1],c=o[2];if(!(await document.fonts.load(`${c} ${a} 16px "${s}"`)).some(g=>g.family.replace(/^['"]|['"]$/g,"").toLowerCase()===s.toLowerCase()&&i_e(g.weight,a)&&g.style===c)){const g=e.replace("{font-family}",s.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",s.replace(/ /g,"+")).replace("{fontweight}",a).replace("{-fontstyle}",c.replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",c);if(!document.querySelector('link[href="'+g+'"]')){const v=document.createElement("link");v.href=g,v.rel="stylesheet",document.head.appendChild(v)}}}})(),n}const s_e={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},a_e={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]},wG=function(n,e){let t=eN(n,e);if(t.result==="error"){const i=rE(n);i!==n&&(t=eN(i,e))}if(t.result==="error"){const i=t.value[0];return console.error("Error parsing expression:",n,i.key,i.message),{evaluate:()=>e.default}}return t.value};let ZM,C7;function _i(n,e,t,i,r,o){const s=n.id;r||(r={},console.warn("No functionCache provided to getValue()")),r[s]||(r[s]={});const a=r[s];if(!a[t]){let c=(n[e]||xu)[t];const d=oN[`${e}_${n.type}`]&&oN[`${e}_${n.type}`][t];c===void 0&&d&&(c=d.default);let g=PM(c);if(!g&&JS(c)&&(c=iN(c,d),g=!0),g){const v=wG(c,d);a[t]=v.evaluate.bind(v)}else{const v=d?d.type:typeof c;(v==="color"||v==="colorArray")&&(c=Ol.parse(c));let E=!1;if(v==="array")for(let I=0;I<c.length;++I){const U=c[I];if(PM(U)||JS(U)){E=!0;break}}if(E){const I=Object.assign({},d,{type:d.value}),U=[];for(let F=0;F<c.length;++F){let W=c[F];if(!PM(W)&&JS(W)&&(W=iN(W,I)),PM(W)){const V=wG(W,I);U.push(V.evaluate.bind(V))}else U.push(function(){return W})}a[t]=function(F,W,V){const q=[];for(let ee=0;ee<U.length;++ee)q[ee]=U[ee](F,W,V);return q}}else a[t]=function(){return c}}}return a[t](md,i,o)}function MG(n,e,t,i){return _i(n,"layout",`${t}-allow-overlap`,e,i)?_i(n,"layout",`${t}-ignore-placement`,e,i)?"none":"obstacle":"declutter"}function l_e(n,e,t,i){if(i||console.warn("No filterCache provided to evaluateFilter()"),!(n in i))try{i[n]=$0e(e).filter}catch(r){console.warn("Filter will evaluate to false: "+r.message),i[n]=function(){return!1}}return i[n](md,t)}function gv(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 u_e=/\{[^{}}]*\}/g;function _7(n,e){return n.replace(u_e,function(t){return e[t.slice(1,-1)]||""})}function SG(n,e){let t=n.split(":")[0];return t===n&&(t="default"),e[t]}const c_e={};function A_e(n,e,t,i=e0,r=void 0,o=void 0,s=void 0,a=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.schema)for(const ee in e.schema){const oe=e.schema[ee];"default"in oe&&(TU[ee]=oe.default)}if(e.version!=8)throw new Error("glStyle version 8 required.");c_e[JCe(e,n)]=Array.from(arguments);const c={};(typeof o=="string"||o instanceof Request||o instanceof Response||o instanceof Promise)&&(o={default:o});for(const ee in o){const oe=o[ee];Ix(()=>oe).then(async re=>{let ie;if(typeof Image<"u"){const X=new Image;if(typeof re=="string")X.crossOrigin="anonymous",X.src=re;else{let ce;re instanceof Request?ce=await fetch(re):re instanceof Response&&(ce=re);const $=await ce.blob();ie=URL.createObjectURL($),X.src=ie}X.addEventListener("load",function ce(){X.removeEventListener("load",ce),c[ee]={image:X,size:[X.width,X.height]},n.changed(),ie&&URL.revokeObjectURL(ie)}),X.addEventListener("error",function ce(){URL.revokeObjectURL(ie),X.removeEventListener("error",ce)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const X=self;X.postMessage({action:"loadImage",src:re}),X.addEventListener("message",function($){$.data.action==="imageLoaded"&&$.data.src===re&&(c[ee]={image:$.data.image,size:[$.data.image.width,$.data.image.height]})})}})}const d=BJ(e.layers),g={},v=[],E={},I={},U=LU(e),F=e_e(e);let W;for(let ee=0,oe=d.length;ee<oe;++ee){const re=d[ee],ie=re.id;if(typeof t=="string"&&re.source==t||Array.isArray(t)&&t.indexOf(ie)!==-1){const X=re["source-layer"];if(W){if(re.source!==W)throw new Error(`Layer "${ie}" does not use source "${W}`)}else{W=re.source;const $=e.sources[W];if(!$)throw new Error(`Source "${W}" is not defined`);const ue=$.type;if(ue!=="vector"&&ue!=="geojson")throw newLine truncated
`),a=[];for(let c=0,d=s.length;c<d;++c)a.push(vR(s[c],e,t,i));return a.join(`
`)}const r=t+","+e+","+n+","+i;let o=s6[r];if(!o){const s=n.split(" ");if(s.length>1){const a=pne();a.font=e;const d=a.measureText("M").width*t;let g="";const v=[];for(let E=0,I=s.length;E<I;++E){const U=s[E],F=g+(g?" ":"")+U;tC(F,i)<=d?g=F:(g&&v.push(g),g=U)}g&&v.push(g);for(let E=0,I=v.length;E<I&&I>1;++E){const U=v[E];if(tC(U,i)<d*.35){const F=E>0?tC(v[E-1],i):1/0,W=E<I-1?tC(v[E+1],i):1/0;v.splice(E,1),I-=1,F<W?(v[E-1]+=" "+U,E-=1):v[E]=U+" "+v[E]}}for(let E=0,I=v.length-1;E<I;++E){const U=v[E],F=v[E+1];if(tC(U,i)>d*.7&&tC(F,i)<d*.6){const W=U.split(" "),V=W.pop();tC(V,i)<d*.2&&(v[E]=W.join(" "),v[E+1]=V+" "+F),I-=1}}o=v.join(`
`)}else o=n;o=yR(o,i),s6[r]=o}return o}const l_e=["Arial","Courier New","Times New Roman","Verdana","sans-serif","serif","monospace","cursive","fantasy"],CG={};function u_e(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){if(_h)return n;let t;for(let i=0,r=n.length;i<r;++i){const o=n[i];if(o in CG)continue;CG[o]=!0;const a=gR(o,16).split(" ");t||(t=[]),t.push([a.slice(3).join(" ").replace(/"/g,""),a[1],a[0]])}return t&&(async()=>{await document.fonts.ready;for(let i=0,r=t.length;i<r;++i){const o=t[i],s=o[0];if(l_e.includes(s))continue;const a=o[1],c=o[2];if(!(await document.fonts.load(`${c} ${a} 16px "${s}"`)).some(g=>g.family.replace(/^['"]|['"]$/g,"").toLowerCase()===s.toLowerCase()&&a_e(g.weight,a)&&g.style===c)){const g=e.replace("{font-family}",s.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",s.replace(/ /g,"+")).replace("{fontweight}",a).replace("{-fontstyle}",c.replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",c);if(!document.querySelector('link[href="'+g+'"]')){const v=document.createElement("link");v.href=g,v.rel="stylesheet",document.head.appendChild(v)}}}})(),n}const c_e={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},A_e={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]},_G=function(n,e){let t=Xj(n,e);if(t.result==="error"){const i=nE(n);i!==n&&(t=Xj(i,e))}if(t.result==="error"){const i=t.value[0];return console.error("Error parsing expression:",n,i.key,i.message),{evaluate:()=>e.default}}return t.value};let $M,v7;function _i(n,e,t,i,r,o){const s=n.id;r||(r={},console.warn("No functionCache provided to getValue()")),r[s]||(r[s]={});const a=r[s];if(!a[t]){let c=(n[e]||wu)[t];const d=iN[`${e}_${n.type}`]&&iN[`${e}_${n.type}`][t];c===void 0&&d&&(c=d.default);let g=DM(c);if(!g&&ZS(c)&&(c=tN(c,d),g=!0),g){const v=_G(c,d);a[t]=v.evaluate.bind(v)}else{const v=d?d.type:typeof c;(v==="color"||v==="colorArray")&&(c=Il.parse(c));let E=!1;if(v==="array")for(let I=0;I<c.length;++I){const U=c[I];if(DM(U)||ZS(U)){E=!0;break}}if(E){const I=Object.assign({},d,{type:d.value}),U=[];for(let F=0;F<c.length;++F){let W=c[F];if(!DM(W)&&ZS(W)&&(W=tN(W,I)),DM(W)){const V=_G(W,I);U.push(V.evaluate.bind(V))}else U.push(function(){return W})}a[t]=function(F,W,V){const q=[];for(let ee=0;ee<U.length;++ee)q[ee]=U[ee](F,W,V);return q}}else a[t]=function(){return c}}}return a[t](pd,i,o)}function xG(n,e,t,i){return _i(n,"layout",`${t}-allow-overlap`,e,i)?_i(n,"layout",`${t}-ignore-placement`,e,i)?"none":"obstacle":"declutter"}function h_e(n,e,t,i){if(i||console.warn("No filterCache provided to evaluateFilter()"),!(n in i))try{i[n]=J0e(e).filter}catch(r){console.warn("Filter will evaluate to false: "+r.message),i[n]=function(){return!1}}return i[n](pd,t)}function mv(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 d_e=/\{[^{}}]*\}/g;function b7(n,e){return n.replace(d_e,function(t){return e[t.slice(1,-1)]||""})}function wG(n,e){let t=n.split(":")[0];return t===n&&(t="default"),e[t]}const f_e={};function p_e(n,e,t,i=Jm,r=void 0,o=void 0,s=void 0,a=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.schema)for(const ee in e.schema){const oe=e.schema[ee];"default"in oe&&(OU[ee]=oe.default)}if(e.version!=8)throw new Error("glStyle version 8 required.");f_e[i_e(e,n)]=Array.from(arguments);const c={};(typeof o=="string"||o instanceof Request||o instanceof Response||o instanceof Promise)&&(o={default:o});for(const ee in o){const oe=o[ee];Ex(()=>oe).then(async re=>{let ie;if(typeof Image<"u"){const X=new Image;if(typeof re=="string")X.crossOrigin="anonymous",X.src=re;else{let ce;re instanceof Request?ce=await fetch(re):re instanceof Response&&(ce=re);const $=await ce.blob();ie=URL.createObjectURL($),X.src=ie}X.addEventListener("load",function ce(){X.removeEventListener("load",ce),c[ee]={image:X,size:[X.width,X.height]},n.changed(),ie&&URL.revokeObjectURL(ie)}),X.addEventListener("error",function ce(){URL.revokeObjectURL(ie),X.removeEventListener("error",ce)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const X=self;X.postMessage({action:"loadImage",src:re}),X.addEventListener("message",function($){$.data.action==="imageLoaded"&&$.data.src===re&&(c[ee]={image:$.data.image,size:[$.data.image.width,$.data.image.height]})})}})}const d=IJ(e.layers),g={},v=[],E={},I={},U=RU(e),F=r_e(e);let W;for(let ee=0,oe=d.length;ee<oe;++ee){const re=d[ee],ie=re.id;if(typeof t=="string"&&re.source==t||Array.isArray(t)&&t.indexOf(ie)!==-1){const X=re["source-layer"];if(W){if(re.source!==W)throw new Error(`Layer "${ie}" does not use source "${W}`)}else{W=re.source;const $=e.sources[W];if(!$)throw new Error(`Source "${W}" is not defined`);const ue=$.type;if(ue!=="vector"&&ue!=="geojson")throw newLine truncated
`)return vt.push(`
`,""),vt;if(de==2)return vt.push(bR(At,Sn),ze),vt;At=CR(At,ze,Qn,Sn).split(`
`,""),vt;if(de==2)return vt.push(yR(At,Sn),ze),vt;At=vR(At,ze,Qn,Sn).split(`
`);for(let Ot=0,Dt=At.length;Ot<Dt;++Ot)Ot>0&&vt.push(`
`,""),vt.push(At[Ot],ze);return vt},[]):un=_7(vn,X).trim(),Ct=_i(je,"paint","text-opacity",me,U,xe)}if(un&&Ct&&!Jt){pt||(++Pe,Ce=V[Pe],(!Ce||!Ce.getText()||Ce.getFill()||Ce.getStroke())&&(Ce=new Vf,V[Pe]=Ce),Ce.setImage(void 0),Ce.setGeometry(void 0));const Bn=MG(je,me,"text",U);Ce.getText()||Ce.setText(Ve),Ve=Ce.getText(),(!Ve||"getDeclutterMode"in Ve&&Ve.getDeclutterMode()!==Bn)&&(Ve=new xte({padding:[2,2,2,2],declutterMode:Bn}),Ce.setText(Ve));const vn=_i(je,"layout","text-transform",me,U,xe);vn=="uppercase"?un=Array.isArray(un)?un.map((qn,Vn)=>Vn%2?qn:qn.toUpperCase()):un.toUpperCase():vn=="lowercase"&&(un=Array.isArray(un)?un.map((qn,Vn)=>Vn%2?qn:qn.toLowerCase()):un.toLowerCase());const vt=Array.isArray(un)?un:de==2?bR(un,Sn):CR(un,Pn,Qn,Sn);if(Ve.setText(vt),Ve.setFont(Pn),Ve.setRotation(v7(_i(je,"layout","text-rotate",me,U,xe))),typeof Ve.setKeepUpright=="function"){const qn=_i(je,"layout","text-keep-upright",me,U,xe);Ve.setKeepUpright(qn)}const Se=_i(je,"layout","text-anchor",me,U,xe),Ae=pt||de==1?"point":_i(je,"layout","symbol-placement",me,U,xe);let fe;if(Ae==="line-center"?(Ve.setPlacement("line"),fe="center"):Ve.setPlacement(Ae),Ae==="line"&&typeof Ve.setRepeat=="function"){const qn=_i(je,"layout","symbol-spacing",me,U,xe);Ve.setRepeat(qn*2)}Ve.setOverflow(Ae==="point");let ze=_i(je,"paint","text-halo-width",me,U,xe);const At=_i(je,"layout","text-offset",me,U,xe),Ot=_i(je,"paint","text-translate",me,U,xe);let Dt=0,In=0;if(Ae=="point"){fe="center",Se.indexOf("left")!==-1?(fe="left",In=ze):Se.indexOf("right")!==-1&&(fe="right",In=-ze);const qn=_i(je,"layout","text-rotation-alignment",me,U,xe);Ve.setRotateWithView(qn=="map")}else Ve.setMaxAngle(v7(_i(je,"layout","text-max-angle",me,U,xe))*un.length/vt.length),Ve.setRotateWithView(!1);Ve.setTextAlign(fe);let Gn="middle";Se.indexOf("bottom")==0?(Gn="bottom",Dt=-ze-.5*(Jn-1)*Un):Se.indexOf("top")==0&&(Gn="top",Dt=ze+.5*(Jn-1)*Un),Ve.setTextBaseline(Gn);const yt=_i(je,"layout","text-justify",me,U,xe);Ve.setJustify(yt==="auto"?void 0:yt),Ve.setOffsetX(At[0]*Un+In+Ot[0]),Ve.setOffsetY(At[1]*Un+Dt+Ot[1]);const Ft=Ve.getFill()||new gg;Ft.setColor(gv(_i(je,"paint","text-color",me,U,xe),Ct)),Ve.setFill(Ft);const C=gv(_i(je,"paint","text-halo-color",me,U,xe),Ct);if(C&&ze>0){const qn=Ve.getStroke()||new Iv;qn.setColor(C),ze*=2;const Vn=.5*Un;qn.setWidth(ze<=Vn?ze:Vn),Ve.setStroke(qn)}else Ve.setStroke(void 0);const bn=_i(je,"layout","text-padding",me,U,xe),pi=Ve.getPadding();bn!==pi[0]&&(pi[0]=bn,pi[1]=bn,pi[2]=bn,pi[3]=bn),Ce.setZIndex(it)}}}if(Pe>-1)return V.length=Pe+1,V};return n.setStyle(q),n.set("mapbox-layers",v),n.set("mapbox-source",W),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),q}const h_e=Ol.parse("#000000"),d_e=Ol.parse("#FFFFFF"),f_e=Ol.parse("#000000");function p_e(n){return new DU({source:new RU({operationType:"image",operation:HCe,sources:[n]})})}function m_e(n){return new DU({source:new RU({operationType:"image",operation:$Ce,sources:[n]})})}function g_e(n,e,t,i){n.getSource().on("beforeoperations",function(r){md.zoom=XB(r.resolution,t.resolutions||e0),md.distanceFromCenter=0;const o=r.data;o.saturation=_i(e,"paint","raster-saturation",xu,i),o.contrast=_i(e,"paint","raster-contrast",xu,i),o.brightnessHigh=_i(e,"paint","raster-brightness-max",xu,i),o.brightnessLow=_i(e,"paint","raster-brightness-min",xu,i),o.hueRotate=_i(e,"paint","raster-hue-rotate",xu,i)})}function y_e(n,e,t,i,r){n.getSource().on("beforeoperations",function(o){const s=o.data;s.resolution=eR(i.projection||"EPSG:3857",o.resolution,ep(o.extent),"m");const a=XB(o.resolution,i.resolutions||e0);md.zoom=a,md.distanceFromCenter=0,s.zoom=a,s.encoding=e.encoding,s.method=_i(t,"paint","hillshade-method",xu,r)||"standard",s.exaggeration=_i(t,"paint","hillshade-exaggeration",xu,r);let c=_i(t,"paint","hillshade-illumination-direction",xu,r);c==null&&(c=335),s.azimuths=Array.isArray(c)?c:[c],s.sunAz=s.azimuths[0];let d=_i(t,"paint","hillshade-illumination-altitude",xu,r);d==null&&(d=45),s.altitudes=Array.isArray(d)?d:[d];function g(E){return E&&E.values?E.values[0]:E}function v(E){const I=t.paint?.[E];if(Array.isArray(I)&&I.length>0&&typeof I[0]=="string"&&Ol.parse(I[0])!==void 0)return I.map(F=>Ol.parse(F));let U=_i(t,"paint",E,xu,r);return U=g(U),U?[U]:void 0}s.highlightColors=v("hillshade-highlight-color"),s.highlightColor=s.highlightColors?.[0]||d_e,s.highlightColors||(s.highlightColors=[s.highlightColor]),s.shadowColors=v("hillshade-shadow-color"),s.shadowColor=s.shadowColors?.[0]||h_e,s.shadowColors||(s.shadowColors=[s.shadowColor]),s.accentColor=g(_i(t,"paint","hillshade-accent-color",xu,r))||f_e})}const v_e=["raster-saturation","raster-contrast","raster-brightness-max","raster-brightness-min","raster-hue-rotate"];function b_e(n,e,t){let i=null;return function(r){n.paint&&"raster-opacity"in n.paint&&r.frameState.viewState.zoom!==i&&(i=r.frameState.viewState.zoom,delete t[n.id],C_e(n,e,i,t))}}function C_e(n,e,t,i){md.zoom=t,md.distanceFromCenter=0;const r=_i(n,"pai Line truncated
`,""),vt.push(At[Ot],ze);return vt},[]):un=b7(vn,X).trim(),Ct=_i(je,"paint","text-opacity",me,U,xe)}if(un&&Ct&&!Jt){pt||(++Pe,Ce=V[Pe],(!Ce||!Ce.getText()||Ce.getFill()||Ce.getStroke())&&(Ce=new qf,V[Pe]=Ce),Ce.setImage(void 0),Ce.setGeometry(void 0));const Bn=xG(je,me,"text",U);Ce.getText()||Ce.setText(Ve),Ve=Ce.getText(),(!Ve||"getDeclutterMode"in Ve&&Ve.getDeclutterMode()!==Bn)&&(Ve=new Mte({padding:[2,2,2,2],declutterMode:Bn}),Ce.setText(Ve));const vn=_i(je,"layout","text-transform",me,U,xe);vn=="uppercase"?un=Array.isArray(un)?un.map((qn,Vn)=>Vn%2?qn:qn.toUpperCase()):un.toUpperCase():vn=="lowercase"&&(un=Array.isArray(un)?un.map((qn,Vn)=>Vn%2?qn:qn.toLowerCase()):un.toLowerCase());const vt=Array.isArray(un)?un:de==2?yR(un,Sn):vR(un,Pn,Qn,Sn);if(Ve.setText(vt),Ve.setFont(Pn),Ve.setRotation(g7(_i(je,"layout","text-rotate",me,U,xe))),typeof Ve.setKeepUpright=="function"){const qn=_i(je,"layout","text-keep-upright",me,U,xe);Ve.setKeepUpright(qn)}const Se=_i(je,"layout","text-anchor",me,U,xe),Ae=pt||de==1?"point":_i(je,"layout","symbol-placement",me,U,xe);let fe;if(Ae==="line-center"?(Ve.setPlacement("line"),fe="center"):Ve.setPlacement(Ae),Ae==="line"&&typeof Ve.setRepeat=="function"){const qn=_i(je,"layout","symbol-spacing",me,U,xe);Ve.setRepeat(qn*2)}Ve.setOverflow(Ae==="point");let ze=_i(je,"paint","text-halo-width",me,U,xe);const At=_i(je,"layout","text-offset",me,U,xe),Ot=_i(je,"paint","text-translate",me,U,xe);let Dt=0,In=0;if(Ae=="point"){fe="center",Se.indexOf("left")!==-1?(fe="left",In=ze):Se.indexOf("right")!==-1&&(fe="right",In=-ze);const qn=_i(je,"layout","text-rotation-alignment",me,U,xe);Ve.setRotateWithView(qn=="map")}else Ve.setMaxAngle(g7(_i(je,"layout","text-max-angle",me,U,xe))*un.length/vt.length),Ve.setRotateWithView(!1);Ve.setTextAlign(fe);let Gn="middle";Se.indexOf("bottom")==0?(Gn="bottom",Dt=-ze-.5*(Jn-1)*Un):Se.indexOf("top")==0&&(Gn="top",Dt=ze+.5*(Jn-1)*Un),Ve.setTextBaseline(Gn);const yt=_i(je,"layout","text-justify",me,U,xe);Ve.setJustify(yt==="auto"?void 0:yt),Ve.setOffsetX(At[0]*Un+In+Ot[0]),Ve.setOffsetY(At[1]*Un+Dt+Ot[1]);const Ft=Ve.getFill()||new mg;Ft.setColor(mv(_i(je,"paint","text-color",me,U,xe),Ct)),Ve.setFill(Ft);const C=mv(_i(je,"paint","text-halo-color",me,U,xe),Ct);if(C&&ze>0){const qn=Ve.getStroke()||new Ov;qn.setColor(C),ze*=2;const Vn=.5*Un;qn.setWidth(ze<=Vn?ze:Vn),Ve.setStroke(qn)}else Ve.setStroke(void 0);const bn=_i(je,"layout","text-padding",me,U,xe),pi=Ve.getPadding();bn!==pi[0]&&(pi[0]=bn,pi[1]=bn,pi[2]=bn,pi[3]=bn),Ce.setZIndex(it)}}}if(Pe>-1)return V.length=Pe+1,V};return n.setStyle(q),n.set("mapbox-layers",v),n.set("mapbox-source",W),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),q}const m_e=Il.parse("#000000"),g_e=Il.parse("#FFFFFF"),y_e=Il.parse("#000000");function v_e(n){return new TU({source:new kU({operationType:"image",operation:e_e,sources:[n]})})}function b_e(n){return new TU({source:new kU({operationType:"image",operation:JCe,sources:[n]})})}function C_e(n,e,t,i){n.getSource().on("beforeoperations",function(r){pd.zoom=ZB(r.resolution,t.resolutions||Jm),pd.distanceFromCenter=0;const o=r.data;o.saturation=_i(e,"paint","raster-saturation",wu,i),o.contrast=_i(e,"paint","raster-contrast",wu,i),o.brightnessHigh=_i(e,"paint","raster-brightness-max",wu,i),o.brightnessLow=_i(e,"paint","raster-brightness-min",wu,i),o.hueRotate=_i(e,"paint","raster-hue-rotate",wu,i)})}function __e(n,e,t,i,r){n.getSource().on("beforeoperations",function(o){const s=o.data;s.resolution=XD(i.projection||"EPSG:3857",o.resolution,Jf(o.extent),"m");const a=ZB(o.resolution,i.resolutions||Jm);pd.zoom=a,pd.distanceFromCenter=0,s.zoom=a,s.encoding=e.encoding,s.method=_i(t,"paint","hillshade-method",wu,r)||"standard",s.exaggeration=_i(t,"paint","hillshade-exaggeration",wu,r);let c=_i(t,"paint","hillshade-illumination-direction",wu,r);c==null&&(c=335),s.azimuths=Array.isArray(c)?c:[c],s.sunAz=s.azimuths[0];let d=_i(t,"paint","hillshade-illumination-altitude",wu,r);d==null&&(d=45),s.altitudes=Array.isArray(d)?d:[d];function g(E){return E&&E.values?E.values[0]:E}function v(E){const I=t.paint?.[E];if(Array.isArray(I)&&I.length>0&&typeof I[0]=="string"&&Il.parse(I[0])!==void 0)return I.map(F=>Il.parse(F));let U=_i(t,"paint",E,wu,r);return U=g(U),U?[U]:void 0}s.highlightColors=v("hillshade-highlight-color"),s.highlightColor=s.highlightColors?.[0]||g_e,s.highlightColors||(s.highlightColors=[s.highlightColor]),s.shadowColors=v("hillshade-shadow-color"),s.shadowColor=s.shadowColors?.[0]||m_e,s.shadowColors||(s.shadowColors=[s.shadowColor]),s.accentColor=g(_i(t,"paint","hillshade-accent-color",wu,r))||y_e})}const x_e=["raster-saturation","raster-contrast","raster-brightness-max","raster-brightness-min","raster-hue-rotate"];function w_e(n,e,t){let i=null;return function(r){n.paint&&"raster-opacity"in n.paint&&r.frameState.viewState.zoom!==i&&(i=r.frameState.viewState.zoom,delete t[n.id],M_e(n,e,i,t))}}function M_e(n,e,t,i){pd.zoom=t,pd.distanceFromCenter=0;const r=_i(n,"pai Line truncated
${v}`),F].join(`
${a}`)}return d})(n,"",0)}let _R=[],bne=[];(()=>{let n="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<n.length;e++)(e%2?bne:_R).push(t=t+n[e])})();function j_e(n){if(n<768)return!1;for(let e=0,t=_R.length;;){let i=e+t>>1;if(n<_R[i])t=i;else if(n>=bne[i])e=i+1;else return!0;if(e==t)return!1}}function TG(n){return n>=127462&&n<=127487}const kG=8205;function N_e(n,e,t=!0,i=!0){return(t?Cne:G_e)(n,e,i)}function Cne(n,e,t){if(e==n.length)return e;e&&_ne(n.charCodeAt(e))&&xne(n.charCodeAt(e-1))&&e--;let i=M7(n,e);for(e+=DG(i);e<n.length;){let r=M7(n,e);if(i==kG||r==kG||t&&j_e(r))e+=DG(r),i=r;else if(TG(r)){let o=0,s=e-2;for(;s>=0&&TG(M7(n,s));)o++,s-=2;if(o%2==0)break;e+=2}else break}return e}function G_e(n,e,t){for(;e>0;){let i=Cne(n,e-2,t);if(i<e)return i;e--}return 0}function M7(n,e){let t=n.charCodeAt(e);if(!xne(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return _ne(i)?(t-55296<<10)+(i-56320)+65536:t}function _ne(n){return n>=56320&&n<57344}function xne(n){return n>=55296&&n<56320}function DG(n){return n<65536?1:2}class as{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=Lx(this,e,t);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(t,this.length,r,1),cg.from(r,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Lx(this,e,t);let i=[];return this.decompose(e,t,i,0),cg.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),r=new V4(this),o=new V4(e);for(let s=t,a=t;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}iter(e=1){return new V4(this,e)}iterRange(e,t=this.length){return new wne(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Mne(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?as.empty:e.length<=32?new _u(e):cg.from(_u.split(e,[]))}}class _u extends as{constructor(e,t=W_e(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,r){for(let o=0;;o++){let s=this.text[o],a=r+s.length;if((t?i:a)>=e)return new Q_e(r,a,i,s);r=a+1,i++}}decompose(e,t,i,r){let o=e<=0&&t>=this.length?this:new _u(RG(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let s=i.pop(),a=sE(o.text,s.text.slice(),0,o.length);if(a.length<=32)i.push(new _u(a,s.length+o.length));else{let c=a.length>>1;i.push(new _u(a.slice(0,c)),new _u(a.slice(c)))}}else i.push(o)}replace(e,t,i){if(!(i instanceof _u))return super.replace(e,t,i);[e,t]=Lx(this,e,t);let r=sE(this.text,sE(i.text,RG(this.text,0,e)),t),o=this.length+i.length-(t-e);return r.length<=32?new _u(r,o):cg.from(_u.split(r,[]),o)}sliceString(e,t=this.length,i=`
`){[e,t]=Lx(this,e,t);let r="";for(let o=0,s=0;o<=t&&s<this.text.length;s++){let a=this.text[s],c=o+a.length;o>e&&s&&(r+=i),e<c&&t>o&&(r+=a.slice(Math.max(0,e-o),t-o)),o=c+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],r=-1;for(let o of e)i.push(o),r+=o.length+1,i.length==32&&(t.push(new _u(i,r)),i=[],r=-1);return r>-1&&t.push(new _u(i,r)),t}}class cg extends as{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,r){for(let o=0;;o++){let s=this.children[o],a=r+s.length,c=i+s.lines-1;if((t?c:a)>=e)return s.lineInner(e,t,i,r);r=a+1,i=c+1}}decompose(e,t,i,r){for(let o=0,s=0;s<=t&&o<this.children.length;o++){let a=this.children[o],c=s+a.length;if(e<=c&&t>=s){let d=r&((s<=e?1:0)|(c>=t?2:0));s>=e&&c<=t&&!d?i.push(a):a.decompose(e-s,t-s,i,d)}s=c+1}}replace(e,t,i){if([e,t]=Lx(this,e,t),i.lines<this.lines)for(let r=0,o=0;r<this.children.length;r++){let s=this.children[r],a=o+s.length;if(e>=o&&t<=a){let c=s.replace(e-o,t-o,i),d=this.lines-s.lines+c.lines;if(c.lines<d>>4&&c.lines>d>>6){let g=this.children.slice();return g[r]=c,new cg(g,this.length-(t-e)+i.length)}return super.replace(o,a,c)}o=a+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
`){[e,t]=Lx(this,e,t);let r="";for(let o=0,s=0;o<this.children.length&&s<=t;o++){let a=this.children[o],c=s+a.length;s>e&&o&&(r+=i),e<c&&t>s&&(r+=a.sliceString(e-s,t-s,i)),s=c+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof cg))return 0;let i=0,[r,o,s,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,o+=t){if(r==s||o==a)return i;let c=this.children[r],d=e.children[o];if(c!=d)return i+c.scanIdentical(d,t);i+=c.length+1}}static from(e,t=e.reduce((i,r)=>i+r.length+1,-1)){let i=0;for(let I of e)i+=I.lines;if(i<32){let I=[];for(let U of e)U.flatten(I);return new _u(I,t)}let r=Math.max(32,i>>5),o=r<<1,s=r>>1,a=[],c=0,d=-1,g=[];function v(I){let U;if(I.lines>o&&I instanceof cg)for(let F of I.children)v(F);else I.lines>s&&(c>s||!c)?(E(),a.push(I)):I instanceof _u&&c&&(U=g[g.length-1])instanceof _u&&I.lines+U.lines<=32?(c+=I.lines,d+=I.length+1,g[g.length-1]=new _u(U.text.concat(I.text),U.length+1+I.length)):(c+I.lines>r&&E(),c+=I.lines,d+=I.length+1,g.push(I))}function E(){c!=0&&(a.push(g.length==1?g[0]:cg.from(g,d)),d=-1,c=g.length=0)}for(let I of e)v(I);return E(),a.length==1?a[0]:new cg(a,t)}}as.empty=new _u([""],0);function W_e(n){let e=-1;for(let t of n)e+=t.length+1;return e}function sE(n,e,t=0,i=1e9){for(let r=0,o=0,s=!0;o<n.length&&r<=i;o++){let a=n[o],c=r+a.length;c>=t&&(c>i&&(a=a.slice(0,i-r)),r<t&&(a=a.slice(t-r)),s?(e[e.length-1]+=a,s=!1):e.push(a)),r=c+1}return e}function RG(n,e,t){return sE(n,[""],e,t)}class V4{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof _u?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,r=this.nodes[i],o=this.offsets[i],s=o>>1,a=r instanceof _u?r.text.length:r.children.length;if(s==(t>0?a:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
`,this;e--}else if(r instanceof _u){let c=r.text[s+(t<0?-1:0)];if(this.offsets[i]+=t,c.length>Math.max(0,e))return this.value=e==0?c:t>0?c.slice(e):c.slice(0,c.length-e),this;e-=c.length}else{let c=r.children[s+(t<0?-1:0)];e>c.length?(e-=c.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(t>0?1:(c instanceof _u?c.text.length:c.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class wne{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new V4(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=i?r:t<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Mne{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(as.prototype[Symbol.iterator]=function(){return this.iter()},V4.prototype[Symbol.iterator]=wne.prototype[Symbol.iterator]=Mne.prototype[Symbol.iterator]=function(){return this});class Q_e{constructor(e,t,i,r){this.from=e,this.to=t,this.number=i,this.text=r}get length(){return this.to-this.from}}function Lx(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}function hA(n,e,t=!0,i=!0){return N_e(n,e,t,i)}function Y_e(n){return n>=56320&&n<57344}function q_e(n){return n>=55296&&n<56320}function tf(n,e){let t=n.charCodeAt(e);if(!q_e(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return Y_e(i)?(t-55296<<10)+(i-56320)+65536:t}function UU(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function Ag(n){return n<65536?1:2}const xR=/\r\n?|\n/;var hd=(function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n})(hd||(hd={}));class Og{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,r=0;t<this.sections.length;){let o=this.sections[t++],s=this.sections[t++];s<0?(e(i,r,o),r+=o):r+=s,i+=o}}iterChangedRanges(e,t=!1){wR(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];r<0?e.push(i,r):e.push(r,i)}return new Og(e)}composeDesc(e){return this.empty?e:e.empty?this:Sne(this,e)}mapDesc(e,t=!1){return e.empty?this:MR(this,e,t)}mapPos(e,t=-1,i=hd.Simple){let r=0,o=0;for(let s=0;s<this.sections.length;){let a=this.sections[s++],c=this.sections[s++],d=r+a;if(c<0){if(d>e)return o+(e-r);o+=a}else{if(i!=hd.Simple&&d>=e&&(i==hd.TrackDel&&r<e&&d>e||i==hd.TrackBefore&&r<e||i==hd.TrackAfter&&d>e))return null;if(d>e||d==e&&t<0&&!a)return e==r||t<0?o:o+c;o+=c}r=d}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return o}touchesRange(e,t=e){for(let i=0,r=0;i<this.sections.length&&r<=t;){let o=this.sections[i++],s=this.sections[i++],a=r+o;if(s>=0&&r<=t&&a>=e)return r<e&&a>t?"cover":!0;r=a}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+i+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Og(e)}static create(e){return new Og(e)}}class Bc extends Og{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return wR(this,(t,i,r,o,s)=>e=e.replace(r,r+(i-t),s),!1),e}mapDesc(e,t=!1){return MR(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let r=0,o=0;r<t.length;r+=2){let s=t[r],a=t[r+1];if(a>=0){t[r]=a,t[r+1]=s;let c=r>>1;for(;i.length<c;)i.push(as.empty);i.push(s?e.slice(o,o+s):as.empty)}o+=s}return new Bc(t,i)}compose(e){return this.empty?e:e.empty?this:Sne(this,e,!0)}map(e,t=!1){return e.empty?this:MR(this,e,t,!0)}iterChanges(e,t=!1){wR(this,e,t)}get desc Line truncated
`}get readOnly(){return this.facet(Rne)}phrase(e,...t){for(let i of this.facet(ss.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,r)=>{if(r=="$")return"$";let o=+(r||1);return!o||o>t.length?i:t[o-1]})),e}languageDataAt(e,t,i=-1){let r=[];for(let o of this.facet(One))for(let s of o(this,t,i))Object.prototype.hasOwnProperty.call(s,e)&&r.push(s[e]);return r}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return r2e(t.length?t[0]:"")}wordAt(e){let{text:t,from:i,length:r}=this.doc.lineAt(e),o=this.charCategorizer(e),s=e-i,a=e-i;for(;s>0;){let c=hA(t,s,!1);if(o(t.slice(c,s))!=Al.Word)break;s=c}for(;a<r;){let c=hA(t,a);if(o(t.slice(a,c))!=Al.Word)break;a=c}return s==a?null:yn.range(s+i,a+i)}}ss.allowMultipleSelections=BR;ss.tabSize=Ei.define({combine:n=>n.length?n[0]:4});ss.lineSeparator=Ine;ss.readOnly=Rne;ss.phrases=Ei.define({compare(n,e){let t=Object.keys(n),i=Object.keys(e);return t.length==i.length&&t.every(r=>n[r]==e[r])}});ss.languageData=One;ss.changeFilter=Tne;ss.transactionFilter=kne;ss.transactionExtender=Dne;Vw.reconfigure=oo.define();function u0(n,e,t={}){let i={};for(let r of n)for(let o of Object.keys(r)){let s=r[o],a=i[o];if(a===void 0)i[o]=s;else if(!(a===s||s===void 0))if(Object.hasOwnProperty.call(t,o))i[o]=t[o](a,s);else throw new Error("Config merge conflict for field "+o)}for(let r in e)i[r]===void 0&&(i[r]=e[r]);return i}class qv{eq(e){return this==e}range(e,t=e){return TR.create(e,t,this)}}qv.prototype.startSide=qv.prototype.endSide=0;qv.prototype.point=!1;qv.prototype.mapMode=hd.TrackDel;function zU(n,e){return n==e||n.constructor==e.constructor&&n.eq(e)}let TR=class Une{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new Une(e,t,i)}};function kR(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class jU{constructor(e,t,i,r){this.from=e,this.to=t,this.value=i,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,r=0){let o=i?this.to:this.from;for(let s=r,a=o.length;;){if(s==a)return s;let c=s+a>>1,d=o[c]-e||(i?this.value[c].endSide:this.value[c].startSide)-t;if(c==s)return d>=0?s:a;d>=0?a=c:s=c+1}}between(e,t,i,r){for(let o=this.findIndex(t,-1e9,!0),s=this.findIndex(i,1e9,!1,o);o<s;o++)if(r(this.from[o]+e,this.to[o]+e,this.value[o])===!1)return!1}map(e,t){let i=[],r=[],o=[],s=-1,a=-1;for(let c=0;c<this.value.length;c++){let d=this.value[c],g=this.from[c]+e,v=this.to[c]+e,E,I;if(g==v){let U=t.mapPos(g,d.startSide,d.mapMode);if(U==null||(E=I=U,d.startSide!=d.endSide&&(I=t.mapPos(g,d.endSide),I<E)))continue}else if(E=t.mapPos(g,d.startSide),I=t.mapPos(v,d.endSide),E>I||E==I&&d.startSide>0&&d.endSide<=0)continue;(I-E||d.endSide-d.startSide)<0||(s<0&&(s=E),d.point&&(a=Math.max(a,I-E)),i.push(d),r.push(E-s),o.push(I-s))}return{mapped:i.length?new jU(r,o,i,a):null,pos:s}}}class go{constructor(e,t,i,r){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=r}static create(e,t,i,r){return new go(e,t,i,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:r=0,filterTo:o=this.length}=e,s=e.filter;if(t.length==0&&!s)return this;if(i&&(t=t.slice().sort(kR)),this.isEmpty)return t.length?go.of(t):this;let a=new Kne(this,null,-1).goto(0),c=0,d=[],g=new hy;for(;a.value||c<t.length;)if(c<t.length&&(a.from-t[c].from||a.startSide-t[c].value.startSide)>=0){let v=t[c++];g.addInner(v.from,v.to,v.value)||d.push(v)}else a.rangeIndex==1&&a.chunkIndex<this.chunk.length&&(c==t.length||this.chunkEnd(a.chunkIndex)<t[c].from)&&(!s||r>this.chunkEnd(a.chunkIndex)||o<this.chunkPos[a.chunkIndex])&&g.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!s||r>a.to||o<a.from||s(a.from,a.to,a.value))&&(g.addInner(a.from,a.to,a.value)||d.push(TR.create(a.from,a.to,a.value))),a.next());return g.finishInner(this.nextLayer.isEmpty&&!d.length?go.empty:this.nextLayer.update({add:d,filter:s,filterFrom:r,filterTo:o}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],i=[],r=-1;for(let s=0;s<this.chunk.length;s++){let a=this.chunkPos[s],c=this.chunk[s],d=e.touchesRange(a,a+c.length);if(d===!1)r=Math.max(r,c.maxPoint),t.push(c),i.push(e.mapPos(a));else if(d===!0){let{mapped:g,pos:v}=c.map(a,e);g&&(r=Math.max(r,g.maxPoint),t.push(g),i.push(v))}}let o=this.nextLayer.map(e);return t.length==0?o:new go(i,t,o||go.empty,r)}between(e,t,i){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let o=this.chunkPos[r],s=this.chunk[r];if(t>=o&&e<=o+s.length&&s.between(o,e-o,t-o,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return N5.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return N5.from(e).goto(t)}static compare(e,t,i,r,o=-1){let s=e.filter(v=>v.maxPoint>0 Line truncated
`)}static newName(){let e=zG[FG]||1;return zG[FG]=e+1,PR+e.toString(36)}static mount(e,t,i){let r=e[LR],o=i&&i.nonce;r?o&&r.setNonce(o):r=new s2e(e,o),r.mount(Array.isArray(t)?t:[t],e)}}let jG=new Map;class s2e{constructor(e,t){let i=e.ownerDocument||e,r=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let o=jG.get(i);if(o)return e[LR]=o;this.sheet=new r.CSSStyleSheet,jG.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[LR]=this}mount(e,t){let i=this.sheet,r=0,o=0;for(let s=0;s<e.length;s++){let a=e[s],c=this.modules.indexOf(a);if(c<o&&c>-1&&(this.modules.splice(c,1),o--,c=-1),c==-1){if(this.modules.splice(o++,0,a),i)for(let d=0;d<a.rules.length;d++)i.insertRule(a.rules[d],r++)}else{for(;o<c;)r+=this.modules[o++].rules.length;r+=a.rules.length,o++}}if(i)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let s="";for(let c=0;c<this.modules.length;c++)s+=this.modules[c].getRules()+`
`;this.styleTag.textContent=s;let a=t.head||t;this.styleTag.parentNode!=a&&a.insertBefore(this.styleTag,a.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var $v={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},G5={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},a2e=typeof navigator<"u"&&/Mac/.test(navigator.platform),l2e=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var UA=0;UA<10;UA++)$v[48+UA]=$v[96+UA]=String(UA);for(var UA=1;UA<=24;UA++)$v[UA+111]="F"+UA;for(var UA=65;UA<=90;UA++)$v[UA]=String.fromCharCode(UA+32),G5[UA]=String.fromCharCode(UA);for(var E7 in $v)G5.hasOwnProperty(E7)||(G5[E7]=$v[E7]);function u2e(n){var e=a2e&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||l2e&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?G5:$v)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function ba(){var n=arguments[0];typeof n=="string"&&(n=document.createElement(n));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var r=t[i];typeof r=="string"?n.setAttribute(i,r):r!=null&&(n[i]=r)}e++}for(;e<arguments.length;e++)Fne(n,arguments[e]);return n}function Fne(n,e){if(typeof e=="string")n.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)n.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)Fne(n,e[t]);else throw new RangeError("Unsupported child node: "+e)}let cd=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},UR=typeof document<"u"?document:{documentElement:{style:{}}};const KR=/Edge\/(\d+)/.exec(cd.userAgent),zne=/MSIE \d/.test(cd.userAgent),FR=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(cd.userAgent),JB=!!(zne||FR||KR),NG=!JB&&/gecko\/(\d+)/i.test(cd.userAgent),B7=!JB&&/Chrome\/(\d+)/.exec(cd.userAgent),GG="webkitFontSmoothing"in UR.documentElement.style,zR=!JB&&/Apple Computer/.test(cd.vendor),WG=zR&&(/Mobile\/\w+/.test(cd.userAgent)||cd.maxTouchPoints>2);var xi={mac:WG||/Mac/.test(cd.platform),windows:/Win/.test(cd.platform),linux:/Linux|X11/.test(cd.platform),ie:JB,ie_version:zne?UR.documentMode||6:FR?+FR[1]:KR?+KR[1]:0,gecko:NG,gecko_version:NG?+(/Firefox\/(\d+)/.exec(cd.userAgent)||[0,0])[1]:0,chrome:!!B7,chrome_version:B7?+B7[1]:0,ios:WG,android:/Android\b/.test(cd.userAgent),webkit:GG,webkit_version:GG?+(/\bAppleWebKit\/(\d+)/.exec(cd.userAgent)||[0,0])[1]:0,safari:zR,safari_version:zR?+(/\bVersion\/(\d+(\.\d+)?)/.exec(cd.userAgent)||[0,0])[1]:0,tabSize:UR.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function NU(n,e){for(let t in n)t=="class"&&e.class?e.class+=" "+n.class:t=="style"&&e.style?e.style+=";"+n.style:e[t]=n[t];return e}const A6=Object.create(null);function GU(n,e,t){if(n==e)return!0;n||(n=A6),e||(e=A6);let i=Object.keys(n),r=Object.keys(e);if(i.length-0!=r.length-0)return!1;for(let o of i)if(o!=t&&(r.indexOf(o)==-1||n[o]!==e[o]))return!1;return!0}function c2e(n,e){for(let t=n.attributes.length-1;t>=0;t--){let i=n.attributes[t].name;e[i]==null&&n.removeAttribute(i)}for(let t in e){let i=e[t];t=="style"?n.style.cssText=i:n.getAttribute(t)!=i&&n.setAttribute(t,i)}}function QG(n,e,t){let i=!1;if(e)for(let r in e)t&&r in t||(i=!0,r=="style"?n.style.cssText="":n.removeAttribute(r));if(t)for(let r in t)e&&e[r]==t[r]||(i=!0,r=="style"?n.style.cssText=t[r]:n.setAttribute(r,t[r]));return i}function A2e(n){let e=Object.create(null);for(let t=0;t<n.attributes.length;t++){let i=n.attributes[t];e[i.name]=i.value}return e}class yy{eq(e){return!1}updateDOM(e,t,i){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var zA=(function(n){return n[n.Text=0]="Text",n[n.WidgetBefore=1]="WidgetBefore",n[n.WidgetAfter=2]="WidgetAfter",n[n.WidgetRange=3]="WidgetRange",n})(zA||(zA={}));class wr extends qv{constructor(e,t,i,r){super(),this.startSide=e,this.endSide=t,this.widget=i,this.spec=r}get heightRelevant(){return!1}static Line truncated
`,r=n.state.doc.line(r.number+(t?1:-1)),o=n.bidiSpans(r),d=n.visualLineSide(r,!t)}if(c){if(!c(g))return a}else{if(!i)return d;c=i(g)}a=d}}function X2e(n,e,t){let i=n.state.charCategorizer(e),r=i(t);return o=>{let s=i(o);return r==Al.Space&&(r=s),r==s}}function J2e(n,e,t,i){let r=e.head,o=t?1:-1;if(r==(t?n.state.doc.length:0))return yn.cursor(r,e.assoc);let s=e.goalColumn,a,c=n.contentDOM.getBoundingClientRect(),d=n.coordsAtPos(r,e.assoc||((e.empty?t:e.head==e.from)?1:-1)),g=n.documentTop;if(d)s==null&&(s=d.left-c.left),a=o<0?d.top:d.bottom;else{let U=n.viewState.lineBlockAt(r);s==null&&(s=Math.min(c.right-c.left,n.defaultCharacterWidth*(r-U.from))),a=(o<0?U.top:U.bottom)+g}let v=c.left+s,E=n.viewState.heightOracle.textHeight>>1,I=i??E;for(let U=0;;U+=E){let F=a+(I+U)*o,W=VR(n,{x:v,y:F},!1,o);if(t?F>c.bottom:F<c.top)return yn.cursor(W.pos,W.assoc);let V=n.coordsAtPos(W.pos,W.assoc),q=V?(V.top+V.bottom)/2:0;if(!V||(t?q>a:q<a))return yn.cursor(W.pos,W.assoc,void 0,s)}}function X4(n,e,t){for(;;){let i=0;for(let r of n)r.between(e-1,e+1,(o,s,a)=>{if(e>o&&e<s){let c=i||t||(e-o<s-e?-1:1);e=c<0?o:s,i=c}});if(!i)return e}}function pie(n,e){let t=null;for(let i=0;i<e.ranges.length;i++){let r=e.ranges[i],o=null;if(r.empty){let s=X4(n,r.from,0);s!=r.from&&(o=yn.cursor(s,-1))}else{let s=X4(n,r.from,-1),a=X4(n,r.to,1);(s!=r.from||a!=r.to)&&(r.undirectional?o=yn.undirectionalRange(r.from,r.to):o=yn.range(r.from==r.anchor?s:a,r.from==r.head?s:a))}o&&(t||(t=e.ranges.slice()),t[i]=o)}return t?yn.create(t,e.mainIndex):e}function D7(n,e,t){let i=X4(n.state.facet(Zw).map(r=>r(n)),t.from,e.head>t.from?-1:1);return i==t.from?t:yn.cursor(i,i<t.from?1:-1)}class hg{constructor(e,t){this.pos=e,this.assoc=t}}function VR(n,e,t,i){let r=n.contentDOM.getBoundingClientRect(),o=r.top+n.viewState.paddingTop,{x:s,y:a}=e,c=a-o,d;for(;;){if(c<0)return new hg(0,1);if(c>n.viewState.docHeight)return new hg(n.state.doc.length,-1);if(d=n.elementAtHeight(c),i==null)break;if(d.type==zA.Text){if(i<0?d.to<n.viewport.from:d.from>n.viewport.to)break;let E=n.docView.coordsAt(i<0?d.from:d.to,i>0?-1:1);if(E&&(i<0?E.top<=c+o:E.bottom>=c+o))break}let v=n.viewState.heightOracle.textHeight/2;c=i>0?d.bottom+v:d.top-v}if(n.viewport.from>=d.to||n.viewport.to<=d.from){if(t)return null;if(d.type==zA.Text){let v=H2e(n,r,d,s,a);return new hg(v,v==d.from?1:-1)}}if(d.type!=zA.Text)return c<(d.top+d.bottom)/2?new hg(d.from,1):new hg(d.to,-1);let g=n.docView.lineAt(d.from,2);return(!g||g.length!=d.length)&&(g=n.docView.lineAt(d.from,-2)),new exe(n,s,a,n.textDirectionAt(d.from)).scanTile(g,d.from)}class exe{constructor(e,t,i,r){this.view=e,this.x=t,this.y=i,this.baseDir=r,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,t){let{line:i,spans:r}=this.bidiSpansAt(e);return r[yg.find(r,e-i.from,-1,t)].level==this.baseDir}dirAt(e,t){let{line:i,spans:r}=this.bidiSpansAt(e);return r[yg.find(r,e-i.from,-1,t)].dir}bidiIn(e,t){let{spans:i,line:r}=this.bidiSpansAt(e);return i.length>1||i.length&&(i[0].level!=this.baseDir||i[0].to+r.from<t)}scan(e,t,i=!1){let r=0,o=e.length-1,s=new Set,a=this.bidiIn(e[0],e[o]),c,d,g=-1,v=1e9,E;e:for(;r<o;){let U=o-r,F=r+o>>1;t:if(s.has(F)){let V=r+Math.floor(Math.random()*U);for(let q=0;q<U;q++){if(!s.has(V)){F=V;break t}V++,V==o&&(V=r)}break e}s.add(F);let W=t(F);if(W)for(let V=0;V<W.length;V++){let q=W[V],ee=0;if(!(q.width==0&&W.length>1)){if(q.bottom<this.y)(!c||c.bottom<q.bottom)&&(c=q),ee=1;else if(q.top>this.y)(!d||d.top>q.top)&&(d=q),ee=-1;else{let oe=q.left>this.x?this.x-q.left:q.right<this.x?this.x-q.right:0,re=Math.abs(oe);re<v&&(g=F,v=re,E=q),oe&&(ee=oe<0==(this.baseDir==xa.LTR)?-1:1)}ee==-1&&(!a||this.baseDirAt(e[F],1))?o=F:ee==1&&(!a||this.baseDirAt(e[F+1],-1))&&(r=F+1)}}}if(!E){if(!d&&!c)return{i:e[0],after:!1};let U=c&&(!d||this.y-c.bottom<d.top-this.y)?c:d;return this.y=(U.top+U.bottom)/2,this.scan(e,t,!0)}if(v&&!i){let{top:U,bottom:F}=E;if(c&&c.bottom>(U+U+F)/3)return this.y=c.bottom-1,this.scan(e,t,!0);if(d&&d.top<(U+F+F)/3)return this.y=d.top+1,this.scan(e,t,!0)}let I=(a?this.dirAt(e[g],1):this.baseDir)==xa.LTR;return{i:g,after:this.x>(E.left+E.right)/2==I}}scanText(e,t){let i=[];for(let o=0;o<e.length;o=hA(e.text,o))i.push(t+o);i.push(t+e.length);let r=this.scan(i,o=>{let s=i[o]-t,a=i[o+1]-t;return Y5(e.dom,s,a).getClientRects()});return r.after?new hg(i[r.i+1],-1):new hg(i[r.i],1)}scanTile(e,t){if(!e.length)return new hg(t,1);if(e.children.length==1){let a=e.children[0];if(a.isText())return this.scanText(a,t);if(a.isComposite())return this.scanTile(a,t)}let i=[t];for(let a=0,c=t;a<e.children.length;a++)i.push(c+=e.children[a].length);let r=this.scan(i,a=>{let c=e.children[a];return c.flags&48?null:(c.dom.nodeType==1?c.dom:Y5(c.dom,0,c.length)).getClientRects()}),o=e.children[r.i],s=i[r.i];return o.isText()?this.scanText(o,s):o.isComposite()?this.scanTile(o,s):r.after?new hg(i[r.i+1 Line truncated
`&&n.lineWrapping&&(i&&(i=yn.single(i.main.anchor-1,i.main.head-1)),t={from:o.from,to:o.to,insert:as.of([" "])}),t)return HU(n,t,i,s);if(i&&!g6(i,o)){let a=!1,c="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(a=!0),c=n.inputState.lastSelectionOrigin,c=="select.pointer"&&(i=pie(r.facet(Zw).map(d=>d(n)),i))),n.dispatch({selection:i,scrollIntoView:a,userEvent:c}),!0}else return!1}function HU(n,e,t,i=-1){if(xi.ios&&n.inputState.flushIOSKey(e))return!0;let r=n.state.selection.main;if(xi.android&&(e.to==r.to&&(e.from==r.from||e.from==r.from-1&&n.state.sliceDoc(e.from,r.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&ux(n.contentDOM,"Enter",13)||(e.from==r.from-1&&e.to==r.to&&e.insert.length==0||i==8&&e.insert.length<e.to-e.from&&e.to>r.head)&&ux(n.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&e.insert.length==0&&ux(n.contentDOM,"Delete",46)))return!0;let o=e.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let s,a=()=>s||(s=oxe(n,e,t));return n.state.facet(iie).some(c=>c(n,e.from,e.to,o,a))||n.dispatch(a()),!0}function oxe(n,e,t){let i,r=n.state,o=r.selection.main,s=-1;if(e.from==e.to&&e.from<o.from||e.from>o.to){let c=e.from<o.from?-1:1,d=c<0?o.from:o.to,g=X4(r.facet(Zw).map(v=>v(n)),d,c);e.from==g&&(s=g)}if(s>-1)i={changes:e,selection:yn.cursor(e.from+e.insert.length,-1)};else if(e.from>=o.from&&e.to<=o.to&&e.to-e.from>=(o.to-o.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&n.inputState.composing<0){let c=o.from<e.from?r.sliceDoc(o.from,e.from):"",d=o.to>e.to?r.sliceDoc(e.to,o.to):"";i=r.replaceSelection(n.state.toText(c+e.insert.sliceString(0,void 0,n.state.lineBreak)+d))}else{let c=r.changes(e),d=t&&t.main.to<=c.newLength?t.main:void 0;if(r.selection.ranges.length>1&&(n.inputState.composing>=0||n.inputState.compositionPendingChange)&&e.to<=o.to+10&&e.to>=o.to-10){let g=n.state.sliceDoc(e.from,e.to),v,E=t&&fie(n,t.main.head);if(E){let U=e.insert.length-(e.to-e.from);v={from:E.from,to:E.to-U}}else v=n.state.doc.lineAt(o.head);let I=o.to-e.to;i=r.changeByRange(U=>{if(U.from==o.from&&U.to==o.to)return{changes:c,range:d||U.map(c)};let F=U.to-I,W=F-g.length;if(n.state.sliceDoc(W,F)!=g||F>=v.from&&W<=v.to)return{range:U};let V=r.changes({from:W,to:F,insert:e.insert}),q=U.to-o.to;return{changes:V,range:d?yn.range(Math.max(0,d.anchor+q),Math.max(0,d.head+q)):U.map(V)}})}else i={changes:c,selection:d&&r.selection.replaceRange(d)}}let a="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,a+=".compose",n.inputState.compositionFirstChange&&(a+=".start",n.inputState.compositionFirstChange=!1)),r.update(i,{userEvent:a,scrollIntoView:!0})}function yie(n,e,t,i){let r=Math.min(n.length,e.length),o=0;for(;o<r&&n.charCodeAt(o)==e.charCodeAt(o);)o++;if(o==r&&n.length==e.length)return null;let s=n.length,a=e.length;for(;s>0&&a>0&&n.charCodeAt(s-1)==e.charCodeAt(a-1);)s--,a--;if(i=="end"){let c=Math.max(0,o-Math.min(s,a));t-=s+c-o}if(s<o&&n.length<e.length){let c=t<=o&&t>=s?o-t:0;o-=c,a=o+(a-s),s=o}else if(a<o){let c=t<=o&&t>=a?o-t:0;o-=c,s=o+(s-a),a=o}return{from:o,toA:s,toB:a}}function sxe(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:r,focusOffset:o}=n.observer.selectionRange;return t&&(e.push(new JG(t,i)),(r!=t||o!=i)&&e.push(new JG(r,o))),e}function axe(n,e){if(n.length==0)return null;let t=n[0].pos,i=n.length==2?n[1].pos:t;return t>-1&&i>-1?yn.single(t+e,i+e):null}function g6(n,e){return e.head==n.main.head&&e.anchor==n.main.anchor}class lxe{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.touchActive=!1,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.lastIOSMomentumScroll=0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,xi.safari&&e.contentDOM.addEventListener("input",()=>null),xi.gecko&&wxe(e.contentDOM.ownerDocument)}handleEvent(e){!gxe(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let i=this.handlers[e];if(i){for(let r of i.observers)r(this.view,t);for(let r of i.handlers){if(t.defaultPrevented)break;if(r(this.view,t)){t.preventDefault();break}}}} Line truncated
`))};if((xi.mac||xi.android)&&v.from==s-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(v={from:a,to:c,insert:as.of([i.text.replace("."," ")])}),this.pendingContextChange=v,!e.state.readOnly){let E=this.to-this.from+(v.to-v.from+v.insert.length);HU(e,v,yn.single(this.toEditorPos(i.selectionStart,E),this.toEditorPos(i.selectionEnd,E)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),v.from<v.to&&!v.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,i.updateRangeStart-1),Math.min(t.text.length,i.updateRangeStart+1)))&&this.handlers.compositionend(i)},this.handlers.characterboundsupdate=i=>{let r=[],o=null;for(let s=this.toEditorPos(i.rangeStart),a=this.toEditorPos(i.rangeEnd);s<a;s++){let c=e.coordsForChar(s);o=c&&new DOMRect(c.left,c.top,c.right-c.left,c.bottom-c.top)||o||new DOMRect,r.push(o)}t.updateCharacterBounds(i.rangeStart,r)},this.handlers.textformatupdate=i=>{let r=[];for(let o of i.getTextFormats()){let s=o.underlineStyle,a=o.underlineThickness;if(!/none/i.test(s)&&!/none/i.test(a)){let c=this.toEditorPos(o.rangeStart),d=this.toEditorPos(o.rangeEnd);if(c<d){let g=`text-decoration: underline ${/^[a-z]/.test(s)?s+" ":s=="Dashed"?"dashed ":s=="Squiggle"?"wavy ":""}${/thin/i.test(a)?1:2}px`;r.push(wr.mark({attributes:{style:g}}).range(c,d))}}}e.dispatch({effects:lie.of(wr.set(r))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{let r=Q5(i.root);r&&r.rangeCount&&this.editContext.updateSelectionBounds(r.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,r=this.pendingContextChange;return e.changes.iterChanges((o,s,a,c,d)=>{if(i)return;let g=d.length-(s-o);if(r&&s>=r.to)if(r.from==o&&r.to==s&&r.insert.eq(d)){r=this.pendingContextChange=null,t+=g,this.to+=g;return}else r=null,this.revertPending(e.state);if(o+=t,s+=t,s<=this.from)this.from+=g,this.to+=g;else if(o<this.to){if(o<this.from||s>this.to||this.to-this.from+d.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(s),d.toString()),this.to+=g}t+=g}),r&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange,i=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(i.from,i.to)&&e.transactions.some(r=>!r.isUserEvent("input.type")&&r.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(i,r)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class wi{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM Line truncated
--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,eP),l3e={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let L7=null;function u3e(){var n;if(L7==null&&typeof document<"u"&&document.body){let e=document.body.style;L7=((n=e.tabSize)!==null&&n!==void 0?n:e.MozTabSize)!=null}return L7||!1}const AE=Ei.define({combine(n){let e=u0(n,{render:null,specialChars:a3e,addSpecialChars:null});return(e.replaceTabs=!u3e())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,eP)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,eP)),e}});function c3e(n={}){return[AE.of(n),A3e()]}let CW=null;function A3e(){return CW||(CW=wu.fromClass(class{constructor(n){this.view=n,this.decorations=wr.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(AE)),this.decorations=this.decorator.createDeco(n)}makeDecorator(n){return new s3e({regexp:n.specialChars,decoration:(e,t,i)=>{let{doc:r}=t.state,o=tf(e[0],0);if(o==9){let s=r.lineAt(i),a=t.state.tabSize,c=s3(s.text,a,i-s.from);return wr.replace({widget:new p3e((a-c%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=wr.replace({widget:new f3e(n,o)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let e=n.state.facet(AE);n.startState.facet(AE)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}},{decorations:n=>n.decorations}))}const h3e="•";function d3e(n){return n>=32?h3e:n==10?"␤":String.fromCharCode(9216+n)}class f3e extends yy{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=d3e(this.code),i=e.state.phrase("Control character")+" "+(l3e[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,i,t);if(r)return r;let o=document.createElement("span");return o.textContent=t,o.title=i,o.setAttribute("aria-label",i),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class p3e extends yy{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function m3e(){return y3e}const g3e=wr.line({class:"cm-activeLine"}),y3e=wu.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let e=-1,t=[];for(let i of n.state.selection.ranges){let r=n.lineBlockAt(i.head);r.from>e&&(t.push(g3e.range(r.from)),e=r.from)}return wr.set(t)}},{decorations:n=>n.decorations}),tP=2e3;function v3e(n,e,t){let i=Math.min(e.line,t.line),r=Math.max(e.line,t.line),o=[];if(e.off>tP||t.off>tP||e.col<0||t.col<0){let s=Math.min(e.off,t.off),a=Math.max(e.off,t.off);for(let c=i;c<=r;c++){let d=n.doc.line(c);d.length<=a&&o.push(yn.range(d.from+s,d.to+a))}}else{let s=Math.min(e.col,t.col),a=Math.max(e.col,t.col);for(let c=i;c<=r;c++){let d=n.doc.line(c),g=RR(d.text,s,n.tabSize,!0);if(g<0)o.push(yn.cursor(d.to));else{let v=RR(d.text,a,n.tabSize);o.push(yn.range(d.from+g,d.from+v))}}}return o}function b3e(n,e){let t=n.coordsAtPos(n.viewport.from);return t?Math.round(Math.abs((t.left-e)/n.defaultCharacterWidth)):-1}function _W(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1),i=n.state.doc.lineAt(t),r=t-i.from,o=r>tP?-1:r==i.length?b3e(n,e.clientX):s3(i.text,n.state.tabSize,t-i.from);return{line:i.number,col:o,off:r}}function C3e(n,e){let t=_W(n,e),i=n.state.selection;return t?{update(r){if(r.docChanged){let o=r.changes.mapPos(r.startState.doc.line(t.line).from),s=r.state.doc.lineAt(o);t={line:s.number,col:t.col,off:Math.min(t.off,s.length)},i=i.map(r.changes)}},get(r,o,s){let a=_W(n,r);if(!a)return i;let c=v3e(n.state,t,a);return c.length?s?yn.create(c.concat(i.ranges)):yn.create(c):i}}:null}function _3e(n){let e=(t=>t.altKey&&t.button==0);return wi.mouseSelectionStyle.of((t,i)=>e(i)?C3e(t,i):null)}const x3e={Alt:[18,n=>!!n.altKey],Control:[17,n=>!!n.ctrlKey],Shift:[16,n=>!!n.shiftKey],Meta:[91,n=>!!n.metaKey]},w3e={style:"cursor: crosshair"};function M3e(n={}){let[e,t]=x3e[n.key||"Alt"],i=wu.fromClass(class{constructor(r){this.view=r,this.isDown=!1}set(r){this.isDown!=r&&(this.isDown=r,this.view.update([]))}},{eventObservers:{keydown(r){this.set(r.keyCode==e||t(r))},keyup(r){(r.keyCode==e||!t(r))&&this.set(!1)},mousemove(r){this.set(t(r))}}});return[i,wi.contentAttributes.of(r=>{var o;ret Line truncated
`:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new kwe(this):new Iwe(this)}getCursor(e,t=0,i){let r=e.doc?e:ss.create({doc:e});return i==null&&(i=r.doc.length),this.regexp?K2(this,r,t,i):U2(this,r,t,i)}}class $re{constructor(e){this.spec=e}}function U2(n,e,t,i){return new Nx(e.doc,n.unquoted,t,i,n.caseSensitive?void 0:r=>r.toLowerCase(),n.wholeWord?Owe(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function Owe(n,e){return(t,i,r,o)=>((o>t||o+r.length<i)&&(o=Math.max(0,t-2),r=n.sliceString(o,Math.min(n.length,i+2))),(e(I6(r,t-o))!=Al.Word||e(T6(r,t-o))!=Al.Word)&&(e(T6(r,i-o))!=Al.Word||e(I6(r,i-o))!=Al.Word))}class Iwe extends $re{constructor(e){super(e)}nextMatch(e,t,i){let r=U2(this.spec,e,i,e.doc.length).nextOverlapping();if(r.done){let o=Math.min(e.doc.length,t+this.spec.unquoted.length);r=U2(this.spec,e,0,o).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==i?null:r.value}prevMatchInRange(e,t,i){for(let r=i;;){let o=Math.max(t,r-1e4-this.spec.unquoted.length),s=U2(this.spec,e,o,r),a=null;for(;!s.nextOverlapping().done;)a=s.value;if(a)return a;if(o==t)return null;r-=1e4}}prevMatch(e,t,i){let r=this.prevMatchInRange(e,0,t);return r||(r=this.prevMatchInRange(e,Math.max(0,i-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=t||r.to!=i)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let i=U2(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let o=U2(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}function K2(n,e,t,i){return new Yre(e.doc,n.search,{ignoreCase:!n.caseSensitive,test:n.wholeWord?Twe(e.charCategorizer(e.selection.main.head)):void 0},t,i)}function I6(n,e){return n.slice(hA(n,e,!1),e)}function T6(n,e){return n.slice(e,hA(n,e))}function Twe(n){return(e,t,i)=>!i[0].length||(n(I6(i.input,i.index))!=Al.Word||n(T6(i.input,i.index))!=Al.Word)&&(n(T6(i.input,i.index+i[0].length))!=Al.Word||n(I6(i.input,i.index+i[0].length))!=Al.Word)}class kwe extends $re{nextMatch(e,t,i){let r=K2(this.spec,e,i,e.doc.length).next();return r.done&&(r=K2(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,i){for(let r=1;;r++){let o=Math.max(t,i-r*1e4),s=K2(this.spec,e,o,i),a=null;for(;!s.next().done;)a=s.value;if(a&&(o==t||a.from>o+10))return a;if(o==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,i)=>{if(i=="&")return e.match[0];if(i=="$")return"$";for(let r=i.length;r>0;r--){let o=+i.slice(0,r);if(o>0&&o<e.match.length)return e.match[o]+i.slice(r)}return t})}matchAll(e,t){let i=K2(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let o=K2(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}const X5=oo.define(),hK=oo.define(),Nv=kc.define({create(n){return new $7(fP(n).create(),null)},update(n,e){for(let t of e.effects)t.is(X5)?n=new $7(t.value.create(),n.panel):t.is(hK)&&(n=new $7(n.query,t.value?dK:null));return n},provide:n=>V5.from(n,e=>e.panel)});class $7{constructor(e,t){this.query=e,this.panel=t}}const Dwe=wr.mark({class:"cm-searchMatch"}),Rwe=wr.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Pwe=wu.fromClass(class{constructor(n){this.view=n,this.decorations=this.highlight(n.state.field(Nv))}update(n){let e=n.state.field(Nv);(e!=n.startState.field(Nv)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:n,panel:e}){if(!e||!n.spec.valid)return wr.none;let{view:t}=this,i=new hy;for(let r=0,o=t.visibleRanges,s=o.length;r<s;r++){let{from:a,to:c}=o[r];for(;r<s-1&&c>o[r+1].from-500;)c=o[++r].to;n.highlight(t.state,a,c,(d,g)=>{let v=t.state.selection.ranges.some(E=>E.from==d&&E.to==g);i.add(d,g,v?Rwe:Dwe)})}return i.finish()}},{decorations:n=>n.decorations});function tM(n){return e=>{let t=e.state.field(Nv,!1);return t&&t.query.spec.valid?n(e,t):Xre(e)}}const k6=tM((n,{query:e})=>{let{to:t}=n.state.selection.main,i=e.nextMatch(n.state,t,t);if(!i)return!1;let r=yn.single(i.from,i.to),o=n.state.facet(l3);return n.dispatch({selection:r,effects:[fK(n,i),o.scrollToMatch(r.main,n)],userEvent:"select.search"}),Zre(n),!0}),D6=tM((n,{query:e})=>{let{state:t}=n,{from:i}=t.selection.main,r=e.prevMatch(t,i,i);if(!r)return!1;let o=yn.single(r.from,r.to),s=n.state.facet(l3);return n.dispatch({selection:o,effects:[fK(n,r),s.scrollToMatch(o.main,n)],userEvent:"select.search"}),Zre(n),!0}),Lwe=tM((n,{query:e})=>{let t=e.matchAll(n.state,1e3);return!t||!t.length?!1:(n.dispatch({selection:yn.cre Line truncated
${a}`)}return d})(n,"",0)}let bR=[],_ne=[];(()=>{let n="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<n.length;e++)(e%2?_ne:bR).push(t=t+n[e])})();function Q_e(n){if(n<768)return!1;for(let e=0,t=bR.length;;){let i=e+t>>1;if(n<bR[i])t=i;else if(n>=_ne[i])e=i+1;else return!0;if(e==t)return!1}}function OG(n){return n>=127462&&n<=127487}const IG=8205;function Y_e(n,e,t=!0,i=!0){return(t?xne:q_e)(n,e,i)}function xne(n,e,t){if(e==n.length)return e;e&&wne(n.charCodeAt(e))&&Mne(n.charCodeAt(e-1))&&e--;let i=x7(n,e);for(e+=TG(i);e<n.length;){let r=x7(n,e);if(i==IG||r==IG||t&&Q_e(r))e+=TG(r),i=r;else if(OG(r)){let o=0,s=e-2;for(;s>=0&&OG(x7(n,s));)o++,s-=2;if(o%2==0)break;e+=2}else break}return e}function q_e(n,e,t){for(;e>0;){let i=xne(n,e-2,t);if(i<e)return i;e--}return 0}function x7(n,e){let t=n.charCodeAt(e);if(!Mne(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return wne(i)?(t-55296<<10)+(i-56320)+65536:t}function wne(n){return n>=56320&&n<57344}function Mne(n){return n>=55296&&n<56320}function TG(n){return n<65536?1:2}class ls{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=Dx(this,e,t);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(t,this.length,r,1),ug.from(r,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Dx(this,e,t);let i=[];return this.decompose(e,t,i,0),ug.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),r=new Q4(this),o=new Q4(e);for(let s=t,a=t;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}iter(e=1){return new Q4(this,e)}iterRange(e,t=this.length){return new Sne(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Ene(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?ls.empty:e.length<=32?new xu(e):ug.from(xu.split(e,[]))}}class xu extends ls{constructor(e,t=V_e(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,r){for(let o=0;;o++){let s=this.text[o],a=r+s.length;if((t?i:a)>=e)return new $_e(r,a,i,s);r=a+1,i++}}decompose(e,t,i,r){let o=e<=0&&t>=this.length?this:new xu(kG(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let s=i.pop(),a=rE(o.text,s.text.slice(),0,o.length);if(a.length<=32)i.push(new xu(a,s.length+o.length));else{let c=a.length>>1;i.push(new xu(a.slice(0,c)),new xu(a.slice(c)))}}else i.push(o)}replace(e,t,i){if(!(i instanceof xu))return super.replace(e,t,i);[e,t]=Dx(this,e,t);let r=rE(this.text,rE(i.text,kG(this.text,0,e)),t),o=this.length+i.length-(t-e);return r.length<=32?new xu(r,o):ug.from(xu.split(r,[]),o)}sliceString(e,t=this.length,i=`
`){[e,t]=Dx(this,e,t);let r="";for(let o=0,s=0;o<=t&&s<this.text.length;s++){let a=this.text[s],c=o+a.length;o>e&&s&&(r+=i),e<c&&t>o&&(r+=a.slice(Math.max(0,e-o),t-o)),o=c+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],r=-1;for(let o of e)i.push(o),r+=o.length+1,i.length==32&&(t.push(new xu(i,r)),i=[],r=-1);return r>-1&&t.push(new xu(i,r)),t}}class ug extends ls{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,r){for(let o=0;;o++){let s=this.children[o],a=r+s.length,c=i+s.lines-1;if((t?c:a)>=e)return s.lineInner(e,t,i,r);r=a+1,i=c+1}}decompose(e,t,i,r){for(let o=0,s=0;s<=t&&o<this.children.length;o++){let a=this.children[o],c=s+a.length;if(e<=c&&t>=s){let d=r&((s<=e?1:0)|(c>=t?2:0));s>=e&&c<=t&&!d?i.push(a):a.decompose(e-s,t-s,i,d)}s=c+1}}replace(e,t,i){if([e,t]=Dx(this,e,t),i.lines<this.lines)for(let r=0,o=0;r<this.children.length;r++){let s=this.children[r],a=o+s.length;if(e>=o&&t<=a){let c=s.replace(e-o,t-o,i),d=this.lines-s.lines+c.lines;if(c.lines<d>>4&&c.lines>d>>6){let g=this.children.slice();return g[r]=c,new ug(g,this.length-(t-e)+i.length)}return super.replace(o,a,c)}o=a+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
`){[e,t]=Dx(this,e,t);let r="";for(let o=0,s=0;o<this.children.length&&s<=t;o++){let a=this.children[o],c=s+a.length;s>e&&o&&(r+=i),e<c&&t>s&&(r+=a.sliceString(e-s,t-s,i)),s=c+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof ug))return 0;let i=0,[r,o,s,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,o+=t){if(r==s||o==a)return i;let c=this.children[r],d=e.children[o];if(c!=d)return i+c.scanIdentical(d,t);i+=c.length+1}}static from(e,t=e.reduce((i,r)=>i+r.length+1,-1)){let i=0;for(let I of e)i+=I.lines;if(i<32){let I=[];for(let U of e)U.flatten(I);return new xu(I,t)}let r=Math.max(32,i>>5),o=r<<1,s=r>>1,a=[],c=0,d=-1,g=[];function v(I){let U;if(I.lines>o&&I instanceof ug)for(let F of I.children)v(F);else I.lines>s&&(c>s||!c)?(E(),a.push(I)):I instanceof xu&&c&&(U=g[g.length-1])instanceof xu&&I.lines+U.lines<=32?(c+=I.lines,d+=I.length+1,g[g.length-1]=new xu(U.text.concat(I.text),U.length+1+I.length)):(c+I.lines>r&&E(),c+=I.lines,d+=I.length+1,g.push(I))}function E(){c!=0&&(a.push(g.length==1?g[0]:ug.from(g,d)),d=-1,c=g.length=0)}for(let I of e)v(I);return E(),a.length==1?a[0]:new ug(a,t)}}ls.empty=new xu([""],0);function V_e(n){let e=-1;for(let t of n)e+=t.length+1;return e}function rE(n,e,t=0,i=1e9){for(let r=0,o=0,s=!0;o<n.length&&r<=i;o++){let a=n[o],c=r+a.length;c>=t&&(c>i&&(a=a.slice(0,i-r)),r<t&&(a=a.slice(t-r)),s?(e[e.length-1]+=a,s=!1):e.push(a)),r=c+1}return e}function kG(n,e,t){return rE(n,[""],e,t)}class Q4{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof xu?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,r=this.nodes[i],o=this.offsets[i],s=o>>1,a=r instanceof xu?r.text.length:r.children.length;if(s==(t>0?a:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
`,this;e--}else if(r instanceof xu){let c=r.text[s+(t<0?-1:0)];if(this.offsets[i]+=t,c.length>Math.max(0,e))return this.value=e==0?c:t>0?c.slice(e):c.slice(0,c.length-e),this;e-=c.length}else{let c=r.children[s+(t<0?-1:0)];e>c.length?(e-=c.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(t>0?1:(c instanceof xu?c.text.length:c.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Sne{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new Q4(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=i?r:t<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Ene{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(ls.prototype[Symbol.iterator]=function(){return this.iter()},Q4.prototype[Symbol.iterator]=Sne.prototype[Symbol.iterator]=Ene.prototype[Symbol.iterator]=function(){return this});class $_e{constructor(e,t,i,r){this.from=e,this.to=t,this.number=i,this.text=r}get length(){return this.to-this.from}}function Dx(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}function hA(n,e,t=!0,i=!0){return Y_e(n,e,t,i)}function H_e(n){return n>=56320&&n<57344}function Z_e(n){return n>=55296&&n<56320}function ef(n,e){let t=n.charCodeAt(e);if(!Z_e(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return H_e(i)?(t-55296<<10)+(i-56320)+65536:t}function PU(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function cg(n){return n<65536?1:2}const CR=/\r\n?|\n/;var Ad=(function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n})(Ad||(Ad={}));class Bg{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,r=0;t<this.sections.length;){let o=this.sections[t++],s=this.sections[t++];s<0?(e(i,r,o),r+=o):r+=s,i+=o}}iterChangedRanges(e,t=!1){_R(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];r<0?e.push(i,r):e.push(r,i)}return new Bg(e)}composeDesc(e){return this.empty?e:e.empty?this:Bne(this,e)}mapDesc(e,t=!1){return e.empty?this:xR(this,e,t)}mapPos(e,t=-1,i=Ad.Simple){let r=0,o=0;for(let s=0;s<this.sections.length;){let a=this.sections[s++],c=this.sections[s++],d=r+a;if(c<0){if(d>e)return o+(e-r);o+=a}else{if(i!=Ad.Simple&&d>=e&&(i==Ad.TrackDel&&r<e&&d>e||i==Ad.TrackBefore&&r<e||i==Ad.TrackAfter&&d>e))return null;if(d>e||d==e&&t<0&&!a)return e==r||t<0?o:o+c;o+=c}r=d}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return o}touchesRange(e,t=e){for(let i=0,r=0;i<this.sections.length&&r<=t;){let o=this.sections[i++],s=this.sections[i++],a=r+o;if(s>=0&&r<=t&&a>=e)return r<e&&a>t?"cover":!0;r=a}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+i+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Bg(e)}static create(e){return new Bg(e)}}class Bc extends Bg{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return _R(this,(t,i,r,o,s)=>e=e.replace(r,r+(i-t),s),!1),e}mapDesc(e,t=!1){return xR(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let r=0,o=0;r<t.length;r+=2){let s=t[r],a=t[r+1];if(a>=0){t[r]=a,t[r+1]=s;let c=r>>1;for(;i.length<c;)i.push(ls.empty);i.push(s?e.slice(o,o+s):ls.empty)}o+=s}return new Bc(t,i)}compose(e){return this.empty?e:e.empty?this:Bne(this,e,!0)}map(e,t=!1){return e.empty?this:xR(this,e,t,!0)}iterChanges(e,t=!1){_R(this,e,t)}get desc Line truncated
`}get readOnly(){return this.facet(Lne)}phrase(e,...t){for(let i of this.facet(as.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,r)=>{if(r=="$")return"$";let o=+(r||1);return!o||o>t.length?i:t[o-1]})),e}languageDataAt(e,t,i=-1){let r=[];for(let o of this.facet(Tne))for(let s of o(this,t,i))Object.prototype.hasOwnProperty.call(s,e)&&r.push(s[e]);return r}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return l2e(t.length?t[0]:"")}wordAt(e){let{text:t,from:i,length:r}=this.doc.lineAt(e),o=this.charCategorizer(e),s=e-i,a=e-i;for(;s>0;){let c=hA(t,s,!1);if(o(t.slice(c,s))!=dl.Word)break;s=c}for(;a<r;){let c=hA(t,a);if(o(t.slice(a,c))!=dl.Word)break;a=c}return s==a?null:yn.range(s+i,a+i)}}as.allowMultipleSelections=SR;as.tabSize=Ei.define({combine:n=>n.length?n[0]:4});as.lineSeparator=kne;as.readOnly=Lne;as.phrases=Ei.define({compare(n,e){let t=Object.keys(n),i=Object.keys(e);return t.length==i.length&&t.every(r=>n[r]==e[r])}});as.languageData=Tne;as.changeFilter=Dne;as.transactionFilter=Rne;as.transactionExtender=Pne;Yw.reconfigure=oo.define();function l0(n,e,t={}){let i={};for(let r of n)for(let o of Object.keys(r)){let s=r[o],a=i[o];if(a===void 0)i[o]=s;else if(!(a===s||s===void 0))if(Object.hasOwnProperty.call(t,o))i[o]=t[o](a,s);else throw new Error("Config merge conflict for field "+o)}for(let r in e)i[r]===void 0&&(i[r]=e[r]);return i}class Yv{eq(e){return this==e}range(e,t=e){return OR.create(e,t,this)}}Yv.prototype.startSide=Yv.prototype.endSide=0;Yv.prototype.point=!1;Yv.prototype.mapMode=Ad.TrackDel;function KU(n,e){return n==e||n.constructor==e.constructor&&n.eq(e)}let OR=class Fne{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new Fne(e,t,i)}};function IR(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class FU{constructor(e,t,i,r){this.from=e,this.to=t,this.value=i,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,r=0){let o=i?this.to:this.from;for(let s=r,a=o.length;;){if(s==a)return s;let c=s+a>>1,d=o[c]-e||(i?this.value[c].endSide:this.value[c].startSide)-t;if(c==s)return d>=0?s:a;d>=0?a=c:s=c+1}}between(e,t,i,r){for(let o=this.findIndex(t,-1e9,!0),s=this.findIndex(i,1e9,!1,o);o<s;o++)if(r(this.from[o]+e,this.to[o]+e,this.value[o])===!1)return!1}map(e,t){let i=[],r=[],o=[],s=-1,a=-1;for(let c=0;c<this.value.length;c++){let d=this.value[c],g=this.from[c]+e,v=this.to[c]+e,E,I;if(g==v){let U=t.mapPos(g,d.startSide,d.mapMode);if(U==null||(E=I=U,d.startSide!=d.endSide&&(I=t.mapPos(g,d.endSide),I<E)))continue}else if(E=t.mapPos(g,d.startSide),I=t.mapPos(v,d.endSide),E>I||E==I&&d.startSide>0&&d.endSide<=0)continue;(I-E||d.endSide-d.startSide)<0||(s<0&&(s=E),d.point&&(a=Math.max(a,I-E)),i.push(d),r.push(E-s),o.push(I-s))}return{mapped:i.length?new FU(r,o,i,a):null,pos:s}}}class go{constructor(e,t,i,r){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=r}static create(e,t,i,r){return new go(e,t,i,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:r=0,filterTo:o=this.length}=e,s=e.filter;if(t.length==0&&!s)return this;if(i&&(t=t.slice().sort(IR)),this.isEmpty)return t.length?go.of(t):this;let a=new zne(this,null,-1).goto(0),c=0,d=[],g=new Ay;for(;a.value||c<t.length;)if(c<t.length&&(a.from-t[c].from||a.startSide-t[c].value.startSide)>=0){let v=t[c++];g.addInner(v.from,v.to,v.value)||d.push(v)}else a.rangeIndex==1&&a.chunkIndex<this.chunk.length&&(c==t.length||this.chunkEnd(a.chunkIndex)<t[c].from)&&(!s||r>this.chunkEnd(a.chunkIndex)||o<this.chunkPos[a.chunkIndex])&&g.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!s||r>a.to||o<a.from||s(a.from,a.to,a.value))&&(g.addInner(a.from,a.to,a.value)||d.push(OR.create(a.from,a.to,a.value))),a.next());return g.finishInner(this.nextLayer.isEmpty&&!d.length?go.empty:this.nextLayer.update({add:d,filter:s,filterFrom:r,filterTo:o}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],i=[],r=-1;for(let s=0;s<this.chunk.length;s++){let a=this.chunkPos[s],c=this.chunk[s],d=e.touchesRange(a,a+c.length);if(d===!1)r=Math.max(r,c.maxPoint),t.push(c),i.push(e.mapPos(a));else if(d===!0){let{mapped:g,pos:v}=c.map(a,e);g&&(r=Math.max(r,g.maxPoint),t.push(g),i.push(v))}}let o=this.nextLayer.map(e);return t.length==0?o:new go(i,t,o||go.empty,r)}between(e,t,i){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let o=this.chunkPos[r],s=this.chunk[r];if(t>=o&&e<=o+s.length&&s.between(o,e-o,t-o,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return z5.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return z5.from(e).goto(t)}static compare(e,t,i,r,o=-1){let s=e.filter(v=>v.maxPoint>0 Line truncated
`)}static newName(){let e=KG[UG]||1;return KG[UG]=e+1,DR+e.toString(36)}static mount(e,t,i){let r=e[RR],o=i&&i.nonce;r?o&&r.setNonce(o):r=new c2e(e,o),r.mount(Array.isArray(t)?t:[t],e)}}let FG=new Map;class c2e{constructor(e,t){let i=e.ownerDocument||e,r=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let o=FG.get(i);if(o)return e[RR]=o;this.sheet=new r.CSSStyleSheet,FG.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[RR]=this}mount(e,t){let i=this.sheet,r=0,o=0;for(let s=0;s<e.length;s++){let a=e[s],c=this.modules.indexOf(a);if(c<o&&c>-1&&(this.modules.splice(c,1),o--,c=-1),c==-1){if(this.modules.splice(o++,0,a),i)for(let d=0;d<a.rules.length;d++)i.insertRule(a.rules[d],r++)}else{for(;o<c;)r+=this.modules[o++].rules.length;r+=a.rules.length,o++}}if(i)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let s="";for(let c=0;c<this.modules.length;c++)s+=this.modules[c].getRules()+`
`;this.styleTag.textContent=s;let a=t.head||t;this.styleTag.parentNode!=a&&a.insertBefore(this.styleTag,a.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var Vv={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},j5={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},A2e=typeof navigator<"u"&&/Mac/.test(navigator.platform),h2e=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var UA=0;UA<10;UA++)Vv[48+UA]=Vv[96+UA]=String(UA);for(var UA=1;UA<=24;UA++)Vv[UA+111]="F"+UA;for(var UA=65;UA<=90;UA++)Vv[UA]=String.fromCharCode(UA+32),j5[UA]=String.fromCharCode(UA);for(var M7 in Vv)j5.hasOwnProperty(M7)||(j5[M7]=Vv[M7]);function d2e(n){var e=A2e&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||h2e&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?j5:Vv)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function Ca(){var n=arguments[0];typeof n=="string"&&(n=document.createElement(n));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var r=t[i];typeof r=="string"?n.setAttribute(i,r):r!=null&&(n[i]=r)}e++}for(;e<arguments.length;e++)jne(n,arguments[e]);return n}function jne(n,e){if(typeof e=="string")n.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)n.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)jne(n,e[t]);else throw new RangeError("Unsupported child node: "+e)}let ud=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},PR=typeof document<"u"?document:{documentElement:{style:{}}};const LR=/Edge\/(\d+)/.exec(ud.userAgent),Nne=/MSIE \d/.test(ud.userAgent),UR=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ud.userAgent),XB=!!(Nne||UR||LR),zG=!XB&&/gecko\/(\d+)/i.test(ud.userAgent),S7=!XB&&/Chrome\/(\d+)/.exec(ud.userAgent),jG="webkitFontSmoothing"in PR.documentElement.style,KR=!XB&&/Apple Computer/.test(ud.vendor),NG=KR&&(/Mobile\/\w+/.test(ud.userAgent)||ud.maxTouchPoints>2);var xi={mac:NG||/Mac/.test(ud.platform),windows:/Win/.test(ud.platform),linux:/Linux|X11/.test(ud.platform),ie:XB,ie_version:Nne?PR.documentMode||6:UR?+UR[1]:LR?+LR[1]:0,gecko:zG,gecko_version:zG?+(/Firefox\/(\d+)/.exec(ud.userAgent)||[0,0])[1]:0,chrome:!!S7,chrome_version:S7?+S7[1]:0,ios:NG,android:/Android\b/.test(ud.userAgent),webkit:jG,webkit_version:jG?+(/\bAppleWebKit\/(\d+)/.exec(ud.userAgent)||[0,0])[1]:0,safari:KR,safari_version:KR?+(/\bVersion\/(\d+(\.\d+)?)/.exec(ud.userAgent)||[0,0])[1]:0,tabSize:PR.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function zU(n,e){for(let t in n)t=="class"&&e.class?e.class+=" "+n.class:t=="style"&&e.style?e.style+=";"+n.style:e[t]=n[t];return e}const u6=Object.create(null);function jU(n,e,t){if(n==e)return!0;n||(n=u6),e||(e=u6);let i=Object.keys(n),r=Object.keys(e);if(i.length-0!=r.length-0)return!1;for(let o of i)if(o!=t&&(r.indexOf(o)==-1||n[o]!==e[o]))return!1;return!0}function f2e(n,e){for(let t=n.attributes.length-1;t>=0;t--){let i=n.attributes[t].name;e[i]==null&&n.removeAttribute(i)}for(let t in e){let i=e[t];t=="style"?n.style.cssText=i:n.getAttribute(t)!=i&&n.setAttribute(t,i)}}function GG(n,e,t){let i=!1;if(e)for(let r in e)t&&r in t||(i=!0,r=="style"?n.style.cssText="":n.removeAttribute(r));if(t)for(let r in t)e&&e[r]==t[r]||(i=!0,r=="style"?n.style.cssText=t[r]:n.setAttribute(r,t[r]));return i}function p2e(n){let e=Object.create(null);for(let t=0;t<n.attributes.length;t++){let i=n.attributes[t];e[i.name]=i.value}return e}class gy{eq(e){return!1}updateDOM(e,t,i){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var zA=(function(n){return n[n.Text=0]="Text",n[n.WidgetBefore=1]="WidgetBefore",n[n.WidgetAfter=2]="WidgetAfter",n[n.WidgetRange=3]="WidgetRange",n})(zA||(zA={}));class wr extends Yv{constructor(e,t,i,r){super(),this.startSide=e,this.endSide=t,this.widget=i,this.spec=r}get heightRelevant(){return!1}static Line truncated
`,r=n.state.doc.line(r.number+(t?1:-1)),o=n.bidiSpans(r),d=n.visualLineSide(r,!t)}if(c){if(!c(g))return a}else{if(!i)return d;c=i(g)}a=d}}function nxe(n,e,t){let i=n.state.charCategorizer(e),r=i(t);return o=>{let s=i(o);return r==dl.Space&&(r=s),r==s}}function ixe(n,e,t,i){let r=e.head,o=t?1:-1;if(r==(t?n.state.doc.length:0))return yn.cursor(r,e.assoc);let s=e.goalColumn,a,c=n.contentDOM.getBoundingClientRect(),d=n.coordsAtPos(r,e.assoc||((e.empty?t:e.head==e.from)?1:-1)),g=n.documentTop;if(d)s==null&&(s=d.left-c.left),a=o<0?d.top:d.bottom;else{let U=n.viewState.lineBlockAt(r);s==null&&(s=Math.min(c.right-c.left,n.defaultCharacterWidth*(r-U.from))),a=(o<0?U.top:U.bottom)+g}let v=c.left+s,E=n.viewState.heightOracle.textHeight>>1,I=i??E;for(let U=0;;U+=E){let F=a+(I+U)*o,W=YR(n,{x:v,y:F},!1,o);if(t?F>c.bottom:F<c.top)return yn.cursor(W.pos,W.assoc);let V=n.coordsAtPos(W.pos,W.assoc),q=V?(V.top+V.bottom)/2:0;if(!V||(t?q>a:q<a))return yn.cursor(W.pos,W.assoc,void 0,s)}}function $4(n,e,t){for(;;){let i=0;for(let r of n)r.between(e-1,e+1,(o,s,a)=>{if(e>o&&e<s){let c=i||t||(e-o<s-e?-1:1);e=c<0?o:s,i=c}});if(!i)return e}}function gie(n,e){let t=null;for(let i=0;i<e.ranges.length;i++){let r=e.ranges[i],o=null;if(r.empty){let s=$4(n,r.from,0);s!=r.from&&(o=yn.cursor(s,-1))}else{let s=$4(n,r.from,-1),a=$4(n,r.to,1);(s!=r.from||a!=r.to)&&(r.undirectional?o=yn.undirectionalRange(r.from,r.to):o=yn.range(r.from==r.anchor?s:a,r.from==r.head?s:a))}o&&(t||(t=e.ranges.slice()),t[i]=o)}return t?yn.create(t,e.mainIndex):e}function T7(n,e,t){let i=$4(n.state.facet($w).map(r=>r(n)),t.from,e.head>t.from?-1:1);return i==t.from?t:yn.cursor(i,i<t.from?1:-1)}class Ag{constructor(e,t){this.pos=e,this.assoc=t}}function YR(n,e,t,i){let r=n.contentDOM.getBoundingClientRect(),o=r.top+n.viewState.paddingTop,{x:s,y:a}=e,c=a-o,d;for(;;){if(c<0)return new Ag(0,1);if(c>n.viewState.docHeight)return new Ag(n.state.doc.length,-1);if(d=n.elementAtHeight(c),i==null)break;if(d.type==zA.Text){if(i<0?d.to<n.viewport.from:d.from>n.viewport.to)break;let E=n.docView.coordsAt(i<0?d.from:d.to,i>0?-1:1);if(E&&(i<0?E.top<=c+o:E.bottom>=c+o))break}let v=n.viewState.heightOracle.textHeight/2;c=i>0?d.bottom+v:d.top-v}if(n.viewport.from>=d.to||n.viewport.to<=d.from){if(t)return null;if(d.type==zA.Text){let v=exe(n,r,d,s,a);return new Ag(v,v==d.from?1:-1)}}if(d.type!=zA.Text)return c<(d.top+d.bottom)/2?new Ag(d.from,1):new Ag(d.to,-1);let g=n.docView.lineAt(d.from,2);return(!g||g.length!=d.length)&&(g=n.docView.lineAt(d.from,-2)),new rxe(n,s,a,n.textDirectionAt(d.from)).scanTile(g,d.from)}class rxe{constructor(e,t,i,r){this.view=e,this.x=t,this.y=i,this.baseDir=r,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,t){let{line:i,spans:r}=this.bidiSpansAt(e);return r[gg.find(r,e-i.from,-1,t)].level==this.baseDir}dirAt(e,t){let{line:i,spans:r}=this.bidiSpansAt(e);return r[gg.find(r,e-i.from,-1,t)].dir}bidiIn(e,t){let{spans:i,line:r}=this.bidiSpansAt(e);return i.length>1||i.length&&(i[0].level!=this.baseDir||i[0].to+r.from<t)}scan(e,t,i=!1){let r=0,o=e.length-1,s=new Set,a=this.bidiIn(e[0],e[o]),c,d,g=-1,v=1e9,E;e:for(;r<o;){let U=o-r,F=r+o>>1;t:if(s.has(F)){let V=r+Math.floor(Math.random()*U);for(let q=0;q<U;q++){if(!s.has(V)){F=V;break t}V++,V==o&&(V=r)}break e}s.add(F);let W=t(F);if(W)for(let V=0;V<W.length;V++){let q=W[V],ee=0;if(!(q.width==0&&W.length>1)){if(q.bottom<this.y)(!c||c.bottom<q.bottom)&&(c=q),ee=1;else if(q.top>this.y)(!d||d.top>q.top)&&(d=q),ee=-1;else{let oe=q.left>this.x?this.x-q.left:q.right<this.x?this.x-q.right:0,re=Math.abs(oe);re<v&&(g=F,v=re,E=q),oe&&(ee=oe<0==(this.baseDir==wa.LTR)?-1:1)}ee==-1&&(!a||this.baseDirAt(e[F],1))?o=F:ee==1&&(!a||this.baseDirAt(e[F+1],-1))&&(r=F+1)}}}if(!E){if(!d&&!c)return{i:e[0],after:!1};let U=c&&(!d||this.y-c.bottom<d.top-this.y)?c:d;return this.y=(U.top+U.bottom)/2,this.scan(e,t,!0)}if(v&&!i){let{top:U,bottom:F}=E;if(c&&c.bottom>(U+U+F)/3)return this.y=c.bottom-1,this.scan(e,t,!0);if(d&&d.top<(U+F+F)/3)return this.y=d.top+1,this.scan(e,t,!0)}let I=(a?this.dirAt(e[g],1):this.baseDir)==wa.LTR;return{i:g,after:this.x>(E.left+E.right)/2==I}}scanText(e,t){let i=[];for(let o=0;o<e.length;o=hA(e.text,o))i.push(t+o);i.push(t+e.length);let r=this.scan(i,o=>{let s=i[o]-t,a=i[o+1]-t;return W5(e.dom,s,a).getClientRects()});return r.after?new Ag(i[r.i+1],-1):new Ag(i[r.i],1)}scanTile(e,t){if(!e.length)return new Ag(t,1);if(e.children.length==1){let a=e.children[0];if(a.isText())return this.scanText(a,t);if(a.isComposite())return this.scanTile(a,t)}let i=[t];for(let a=0,c=t;a<e.children.length;a++)i.push(c+=e.children[a].length);let r=this.scan(i,a=>{let c=e.children[a];return c.flags&48?null:(c.dom.nodeType==1?c.dom:W5(c.dom,0,c.length)).getClientRects()}),o=e.children[r.i],s=i[r.i];return o.isText()?this.scanText(o,s):o.isComposite()?this.scanTile(o,s):r.after?new Ag(i[r.i+1 Line truncated
`&&n.lineWrapping&&(i&&(i=yn.single(i.main.anchor-1,i.main.head-1)),t={from:o.from,to:o.to,insert:ls.of([" "])}),t)return VU(n,t,i,s);if(i&&!p6(i,o)){let a=!1,c="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(a=!0),c=n.inputState.lastSelectionOrigin,c=="select.pointer"&&(i=gie(r.facet($w).map(d=>d(n)),i))),n.dispatch({selection:i,scrollIntoView:a,userEvent:c}),!0}else return!1}function VU(n,e,t,i=-1){if(xi.ios&&n.inputState.flushIOSKey(e))return!0;let r=n.state.selection.main;if(xi.android&&(e.to==r.to&&(e.from==r.from||e.from==r.from-1&&n.state.sliceDoc(e.from,r.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&lx(n.contentDOM,"Enter",13)||(e.from==r.from-1&&e.to==r.to&&e.insert.length==0||i==8&&e.insert.length<e.to-e.from&&e.to>r.head)&&lx(n.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&e.insert.length==0&&lx(n.contentDOM,"Delete",46)))return!0;let o=e.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let s,a=()=>s||(s=uxe(n,e,t));return n.state.facet(oie).some(c=>c(n,e.from,e.to,o,a))||n.dispatch(a()),!0}function uxe(n,e,t){let i,r=n.state,o=r.selection.main,s=-1;if(e.from==e.to&&e.from<o.from||e.from>o.to){let c=e.from<o.from?-1:1,d=c<0?o.from:o.to,g=$4(r.facet($w).map(v=>v(n)),d,c);e.from==g&&(s=g)}if(s>-1)i={changes:e,selection:yn.cursor(e.from+e.insert.length,-1)};else if(e.from>=o.from&&e.to<=o.to&&e.to-e.from>=(o.to-o.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&n.inputState.composing<0){let c=o.from<e.from?r.sliceDoc(o.from,e.from):"",d=o.to>e.to?r.sliceDoc(e.to,o.to):"";i=r.replaceSelection(n.state.toText(c+e.insert.sliceString(0,void 0,n.state.lineBreak)+d))}else{let c=r.changes(e),d=t&&t.main.to<=c.newLength?t.main:void 0;if(r.selection.ranges.length>1&&(n.inputState.composing>=0||n.inputState.compositionPendingChange)&&e.to<=o.to+10&&e.to>=o.to-10){let g=n.state.sliceDoc(e.from,e.to),v,E=t&&mie(n,t.main.head);if(E){let U=e.insert.length-(e.to-e.from);v={from:E.from,to:E.to-U}}else v=n.state.doc.lineAt(o.head);let I=o.to-e.to;i=r.changeByRange(U=>{if(U.from==o.from&&U.to==o.to)return{changes:c,range:d||U.map(c)};let F=U.to-I,W=F-g.length;if(n.state.sliceDoc(W,F)!=g||F>=v.from&&W<=v.to)return{range:U};let V=r.changes({from:W,to:F,insert:e.insert}),q=U.to-o.to;return{changes:V,range:d?yn.range(Math.max(0,d.anchor+q),Math.max(0,d.head+q)):U.map(V)}})}else i={changes:c,selection:d&&r.selection.replaceRange(d)}}let a="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,a+=".compose",n.inputState.compositionFirstChange&&(a+=".start",n.inputState.compositionFirstChange=!1)),r.update(i,{userEvent:a,scrollIntoView:!0})}function bie(n,e,t,i){let r=Math.min(n.length,e.length),o=0;for(;o<r&&n.charCodeAt(o)==e.charCodeAt(o);)o++;if(o==r&&n.length==e.length)return null;let s=n.length,a=e.length;for(;s>0&&a>0&&n.charCodeAt(s-1)==e.charCodeAt(a-1);)s--,a--;if(i=="end"){let c=Math.max(0,o-Math.min(s,a));t-=s+c-o}if(s<o&&n.length<e.length){let c=t<=o&&t>=s?o-t:0;o-=c,a=o+(a-s),s=o}else if(a<o){let c=t<=o&&t>=a?o-t:0;o-=c,s=o+(s-a),a=o}return{from:o,toA:s,toB:a}}function cxe(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:r,focusOffset:o}=n.observer.selectionRange;return t&&(e.push(new ZG(t,i)),(r!=t||o!=i)&&e.push(new ZG(r,o))),e}function Axe(n,e){if(n.length==0)return null;let t=n[0].pos,i=n.length==2?n[1].pos:t;return t>-1&&i>-1?yn.single(t+e,i+e):null}function p6(n,e){return e.head==n.main.head&&e.anchor==n.main.anchor}class hxe{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.touchActive=!1,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.lastIOSMomentumScroll=0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,xi.safari&&e.contentDOM.addEventListener("input",()=>null),xi.gecko&&Bxe(e.contentDOM.ownerDocument)}handleEvent(e){!Cxe(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let i=this.handlers[e];if(i){for(let r of i.observers)r(this.view,t);for(let r of i.handlers){if(t.defaultPrevented)break;if(r(this.view,t)){t.preventDefault();break}}}} Line truncated
`))};if((xi.mac||xi.android)&&v.from==s-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(v={from:a,to:c,insert:ls.of([i.text.replace("."," ")])}),this.pendingContextChange=v,!e.state.readOnly){let E=this.to-this.from+(v.to-v.from+v.insert.length);VU(e,v,yn.single(this.toEditorPos(i.selectionStart,E),this.toEditorPos(i.selectionEnd,E)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),v.from<v.to&&!v.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,i.updateRangeStart-1),Math.min(t.text.length,i.updateRangeStart+1)))&&this.handlers.compositionend(i)},this.handlers.characterboundsupdate=i=>{let r=[],o=null;for(let s=this.toEditorPos(i.rangeStart),a=this.toEditorPos(i.rangeEnd);s<a;s++){let c=e.coordsForChar(s);o=c&&new DOMRect(c.left,c.top,c.right-c.left,c.bottom-c.top)||o||new DOMRect,r.push(o)}t.updateCharacterBounds(i.rangeStart,r)},this.handlers.textformatupdate=i=>{let r=[];for(let o of i.getTextFormats()){let s=o.underlineStyle,a=o.underlineThickness;if(!/none/i.test(s)&&!/none/i.test(a)){let c=this.toEditorPos(o.rangeStart),d=this.toEditorPos(o.rangeEnd);if(c<d){let g=`text-decoration: underline ${/^[a-z]/.test(s)?s+" ":s=="Dashed"?"dashed ":s=="Squiggle"?"wavy ":""}${/thin/i.test(a)?1:2}px`;r.push(wr.mark({attributes:{style:g}}).range(c,d))}}}e.dispatch({effects:cie.of(wr.set(r))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{let r=G5(i.root);r&&r.rangeCount&&this.editContext.updateSelectionBounds(r.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,r=this.pendingContextChange;return e.changes.iterChanges((o,s,a,c,d)=>{if(i)return;let g=d.length-(s-o);if(r&&s>=r.to)if(r.from==o&&r.to==s&&r.insert.eq(d)){r=this.pendingContextChange=null,t+=g,this.to+=g;return}else r=null,this.revertPending(e.state);if(o+=t,s+=t,s<=this.from)this.from+=g,this.to+=g;else if(o<this.to){if(o<this.from||s>this.to||this.to-this.from+d.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(s),d.toString()),this.to+=g}t+=g}),r&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange,i=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(i.from,i.to)&&e.transactions.some(r=>!r.isUserEvent("input.type")&&r.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(i,r)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class wi{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM Line truncated
--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,XR),h3e={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let R7=null;function d3e(){var n;if(R7==null&&typeof document<"u"&&document.body){let e=document.body.style;R7=((n=e.tabSize)!==null&&n!==void 0?n:e.MozTabSize)!=null}return R7||!1}const uE=Ei.define({combine(n){let e=l0(n,{render:null,specialChars:A3e,addSpecialChars:null});return(e.replaceTabs=!d3e())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,XR)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,XR)),e}});function f3e(n={}){return[uE.of(n),p3e()]}let vW=null;function p3e(){return vW||(vW=Mu.fromClass(class{constructor(n){this.view=n,this.decorations=wr.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(uE)),this.decorations=this.decorator.createDeco(n)}makeDecorator(n){return new c3e({regexp:n.specialChars,decoration:(e,t,i)=>{let{doc:r}=t.state,o=ef(e[0],0);if(o==9){let s=r.lineAt(i),a=t.state.tabSize,c=i3(s.text,a,i-s.from);return wr.replace({widget:new v3e((a-c%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=wr.replace({widget:new y3e(n,o)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let e=n.state.facet(uE);n.startState.facet(uE)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}},{decorations:n=>n.decorations}))}const m3e="•";function g3e(n){return n>=32?m3e:n==10?"␤":String.fromCharCode(9216+n)}class y3e extends gy{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=g3e(this.code),i=e.state.phrase("Control character")+" "+(h3e[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,i,t);if(r)return r;let o=document.createElement("span");return o.textContent=t,o.title=i,o.setAttribute("aria-label",i),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class v3e extends gy{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function b3e(){return _3e}const C3e=wr.line({class:"cm-activeLine"}),_3e=Mu.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let e=-1,t=[];for(let i of n.state.selection.ranges){let r=n.lineBlockAt(i.head);r.from>e&&(t.push(C3e.range(r.from)),e=r.from)}return wr.set(t)}},{decorations:n=>n.decorations}),JR=2e3;function x3e(n,e,t){let i=Math.min(e.line,t.line),r=Math.max(e.line,t.line),o=[];if(e.off>JR||t.off>JR||e.col<0||t.col<0){let s=Math.min(e.off,t.off),a=Math.max(e.off,t.off);for(let c=i;c<=r;c++){let d=n.doc.line(c);d.length<=a&&o.push(yn.range(d.from+s,d.to+a))}}else{let s=Math.min(e.col,t.col),a=Math.max(e.col,t.col);for(let c=i;c<=r;c++){let d=n.doc.line(c),g=kR(d.text,s,n.tabSize,!0);if(g<0)o.push(yn.cursor(d.to));else{let v=kR(d.text,a,n.tabSize);o.push(yn.range(d.from+g,d.from+v))}}}return o}function w3e(n,e){let t=n.coordsAtPos(n.viewport.from);return t?Math.round(Math.abs((t.left-e)/n.defaultCharacterWidth)):-1}function bW(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1),i=n.state.doc.lineAt(t),r=t-i.from,o=r>JR?-1:r==i.length?w3e(n,e.clientX):i3(i.text,n.state.tabSize,t-i.from);return{line:i.number,col:o,off:r}}function M3e(n,e){let t=bW(n,e),i=n.state.selection;return t?{update(r){if(r.docChanged){let o=r.changes.mapPos(r.startState.doc.line(t.line).from),s=r.state.doc.lineAt(o);t={line:s.number,col:t.col,off:Math.min(t.off,s.length)},i=i.map(r.changes)}},get(r,o,s){let a=bW(n,r);if(!a)return i;let c=x3e(n.state,t,a);return c.length?s?yn.create(c.concat(i.ranges)):yn.create(c):i}}:null}function S3e(n){let e=(t=>t.altKey&&t.button==0);return wi.mouseSelectionStyle.of((t,i)=>e(i)?M3e(t,i):null)}const E3e={Alt:[18,n=>!!n.altKey],Control:[17,n=>!!n.ctrlKey],Shift:[16,n=>!!n.shiftKey],Meta:[91,n=>!!n.metaKey]},B3e={style:"cursor: crosshair"};function O3e(n={}){let[e,t]=E3e[n.key||"Alt"],i=Mu.fromClass(class{constructor(r){this.view=r,this.isDown=!1}set(r){this.isDown!=r&&(this.isDown=r,this.view.update([]))}},{eventObservers:{keydown(r){this.set(r.keyCode==e||t(r))},keyup(r){(r.keyCode==e||!t(r))&&this.set(!1)},mousemove(r){this.set(t(r))}}});return[i,wi.contentAttributes.of(r=>{var o;ret Line truncated
`:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new Lwe(this):new Rwe(this)}getCursor(e,t=0,i){let r=e.doc?e:as.create({doc:e});return i==null&&(i=r.doc.length),this.regexp?U2(this,r,t,i):L2(this,r,t,i)}}class Zre{constructor(e){this.spec=e}}function L2(n,e,t,i){return new Fx(e.doc,n.unquoted,t,i,n.caseSensitive?void 0:r=>r.toLowerCase(),n.wholeWord?Dwe(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function Dwe(n,e){return(t,i,r,o)=>((o>t||o+r.length<i)&&(o=Math.max(0,t-2),r=n.sliceString(o,Math.min(n.length,i+2))),(e(B6(r,t-o))!=dl.Word||e(O6(r,t-o))!=dl.Word)&&(e(O6(r,i-o))!=dl.Word||e(B6(r,i-o))!=dl.Word))}class Rwe extends Zre{constructor(e){super(e)}nextMatch(e,t,i){let r=L2(this.spec,e,i,e.doc.length).nextOverlapping();if(r.done){let o=Math.min(e.doc.length,t+this.spec.unquoted.length);r=L2(this.spec,e,0,o).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==i?null:r.value}prevMatchInRange(e,t,i){for(let r=i;;){let o=Math.max(t,r-1e4-this.spec.unquoted.length),s=L2(this.spec,e,o,r),a=null;for(;!s.nextOverlapping().done;)a=s.value;if(a)return a;if(o==t)return null;r-=1e4}}prevMatch(e,t,i){let r=this.prevMatchInRange(e,0,t);return r||(r=this.prevMatchInRange(e,Math.max(0,i-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=t||r.to!=i)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let i=L2(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let o=L2(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}function U2(n,e,t,i){return new Vre(e.doc,n.search,{ignoreCase:!n.caseSensitive,test:n.wholeWord?Pwe(e.charCategorizer(e.selection.main.head)):void 0},t,i)}function B6(n,e){return n.slice(hA(n,e,!1),e)}function O6(n,e){return n.slice(e,hA(n,e))}function Pwe(n){return(e,t,i)=>!i[0].length||(n(B6(i.input,i.index))!=dl.Word||n(O6(i.input,i.index))!=dl.Word)&&(n(O6(i.input,i.index+i[0].length))!=dl.Word||n(B6(i.input,i.index+i[0].length))!=dl.Word)}class Lwe extends Zre{nextMatch(e,t,i){let r=U2(this.spec,e,i,e.doc.length).next();return r.done&&(r=U2(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,i){for(let r=1;;r++){let o=Math.max(t,i-r*1e4),s=U2(this.spec,e,o,i),a=null;for(;!s.next().done;)a=s.value;if(a&&(o==t||a.from>o+10))return a;if(o==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,i)=>{if(i=="&")return e.match[0];if(i=="$")return"$";for(let r=i.length;r>0;r--){let o=+i.slice(0,r);if(o>0&&o<e.match.length)return e.match[o]+i.slice(r)}return t})}matchAll(e,t){let i=U2(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let o=U2(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}const H5=oo.define(),cK=oo.define(),jv=kc.define({create(n){return new q7(hP(n).create(),null)},update(n,e){for(let t of e.effects)t.is(H5)?n=new q7(t.value.create(),n.panel):t.is(cK)&&(n=new q7(n.query,t.value?AK:null));return n},provide:n=>Y5.from(n,e=>e.panel)});class q7{constructor(e,t){this.query=e,this.panel=t}}const Uwe=wr.mark({class:"cm-searchMatch"}),Kwe=wr.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Fwe=Mu.fromClass(class{constructor(n){this.view=n,this.decorations=this.highlight(n.state.field(jv))}update(n){let e=n.state.field(jv);(e!=n.startState.field(jv)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:n,panel:e}){if(!e||!n.spec.valid)return wr.none;let{view:t}=this,i=new Ay;for(let r=0,o=t.visibleRanges,s=o.length;r<s;r++){let{from:a,to:c}=o[r];for(;r<s-1&&c>o[r+1].from-500;)c=o[++r].to;n.highlight(t.state,a,c,(d,g)=>{let v=t.state.selection.ranges.some(E=>E.from==d&&E.to==g);i.add(d,g,v?Kwe:Uwe)})}return i.finish()}},{decorations:n=>n.decorations});function Jw(n){return e=>{let t=e.state.field(jv,!1);return t&&t.query.spec.valid?n(e,t):eoe(e)}}const I6=Jw((n,{query:e})=>{let{to:t}=n.state.selection.main,i=e.nextMatch(n.state,t,t);if(!i)return!1;let r=yn.single(i.from,i.to),o=n.state.facet(o3);return n.dispatch({selection:r,effects:[hK(n,i),o.scrollToMatch(r.main,n)],userEvent:"select.search"}),Jre(n),!0}),T6=Jw((n,{query:e})=>{let{state:t}=n,{from:i}=t.selection.main,r=e.prevMatch(t,i,i);if(!r)return!1;let o=yn.single(r.from,r.to),s=n.state.facet(o3);return n.dispatch({selection:o,effects:[hK(n,r),s.scrollToMatch(o.main,n)],userEvent:"select.search"}),Jre(n),!0}),zwe=Jw((n,{query:e})=>{let t=e.matchAll(n.state,1e3);return!t||!t.length?!1:(n.dispatch({selection:yn.cre Line truncated
`)}var Pn={extraLines:2,tabSize:4},Jn=function(Sn,Qn,Bn,vn){vn=_t({},Pn,vn);var vt=Sn.split(/\r\n?|\n|\f/),Se=Math.max(1,Qn-vn.extraLines)-1,Ae=Math.min(Qn+vn.extraLines,vt.length),fe=String(Ae).length,ze=un(vt,Se,Qn,fe,vn),At=Jt(vt[Qn-1].substring(0,Bn-1),Qn,fe,vn),Ot=Ve(" ",At.length)+"^",Dt=un(vt,Qn,Ae,fe,vn);return[ze,Ot,Dt].filter(Boolean).join(`
`)};return Jn})}),d=new Error().stack,g=(function(Ie){var Ce=Object.create(SyntaxError.prototype);return Object.assign(Ce,Ie,{name:"SyntaxError"}),Object.defineProperty(Ce,"stack",{get:function(){return d?d.replace(/^(.+\n){1,3}/,String(Ce)+`
`):""}}),Ce}),v=(function(Ie,Ce,it,pt,Ve){throw g({message:pt?Ie+`
`+c(Ce,pt,Ve):Ie,rawMessage:Ie,source:it,line:pt,column:Ve})}),E={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Ce){for(var it=arguments.length,pt=Array(it>1?it-1:0),Ve=1;Ve<it;Ve++)pt[Ve-1]=arguments[Ve];return"Unexpected token <"+Ce+"> at "+pt.filter(Boolean).join(":")}},I={unexpectedSymbol:function(Ce){for(var it=arguments.length,pt=Array(it>1?it-1:0),Ve=1;Ve<it;Ve++)pt[Ve-1]=arguments[Ve];return"Unexpected symbol <"+Ce+"> at "+pt.filter(Boolean).join(":")}},U={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},F={"{":U.LEFT_BRACE,"}":U.RIGHT_BRACE,"[":U.LEFT_BRACKET,"]":U.RIGHT_BRACKET,":":U.COLON,",":U.COMMA},W={true:U.TRUE,false:U.FALSE,null:U.NULL},V={_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},ee={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function oe(Ie){return Ie>="1"&&Ie<="9"}function re(Ie){return Ie>="0"&&Ie<="9"}function ie(Ie){return re(Ie)||Ie>="a"&&Ie<="f"||Ie>="A"&&Ie<="F"}function X(Ie){return Ie==="e"||Ie==="E"}function ce(Ie,Ce,it,pt){var Ve=Ie.charAt(Ce);if(Ve==="\r")Ce++,it++,pt=1,Ie.charAt(Ce)===`
`&&Ce++;else if(Ve===`
`)Ce++,it++,pt=1;else if(Ve===" "||Ve===" ")Ce++,pt++;else return null;return{index:Ce,line:it,column:pt}}function $(Ie,Ce,it,pt){var Ve=Ie.charAt(Ce);return Ve in F?{type:F[Ve],line:it,column:pt+1,index:Ce+1,value:null}:null}function ue(Ie,Ce,it,pt){for(var Ve in W)if(W.hasOwnProperty(Ve)&&Ie.substr(Ce,Ve.length)===Ve)return{type:W[Ve],line:it,column:pt+Ve.length,index:Ce+Ve.length,value:Ve};return null}function de(Ie,Ce,it,pt){for(var Ve=Ce,St=V._START_;Ce<Ie.length;){var Bt=Ie.charAt(Ce);switch(St){case V._START_:{if(Bt==='"')Ce++,St=V.START_QUOTE_OR_CHAR;else return null;break}case V.START_QUOTE_OR_CHAR:{if(Bt==="\\")Ce++,St=V.ESCAPE;else{if(Bt==='"')return Ce++,{type:U.STRING,line:it,column:pt+Ce-Ve,index:Ce,value:Ie.slice(Ve,Ce)};Ce++}break}case V.ESCAPE:{if(Bt in q){if(Ce++,Bt==="u")for(var _t=0;_t<4;_t++){var Jt=Ie.charAt(Ce);if(Jt&&ie(Jt))Ce++;else return null}St=V.START_QUOTE_OR_CHAR}else return null;break}}}}function be(Ie,Ce,it,pt){var Ve=Ce,St=Ce,Bt=ee._START_;e:for(;Ce<Ie.length;){var _t=Ie.charAt(Ce);switch(Bt){case ee._START_:{if(_t==="-")Bt=ee.MINUS;else if(_t==="0")St=Ce+1,Bt=ee.ZERO;else if(oe(_t))St=Ce+1,Bt=ee.DIGIT;else return null;break}case ee.MINUS:{if(_t==="0")St=Ce+1,Bt=ee.ZERO;else if(oe(_t))St=Ce+1,Bt=ee.DIGIT;else return null;break}case ee.ZERO:{if(_t===".")Bt=ee.POINT;else if(X(_t))Bt=ee.EXP;else break e;break}case ee.DIGIT:{if(re(_t))St=Ce+1;else if(_t===".")Bt=ee.POINT;else if(X(_t))Bt=ee.EXP;else break e;break}case ee.POINT:{if(re(_t))St=Ce+1,Bt=ee.DIGIT_FRACTION;else break e;break}case ee.DIGIT_FRACTION:{if(re(_t))St=Ce+1;else if(X(_t))Bt=ee.EXP;else break e;break}case ee.EXP:{if(_t==="+"||_t==="-")Bt=ee.EXP_DIGIT_OR_SIGN;else if(re(_t))St=Ce+1,Bt=ee.EXP_DIGIT_OR_SIGN;else break e;break}case ee.EXP_DIGIT_OR_SIGN:{if(re(_t))St=Ce+1;else break e;break}}Ce++}return St>0?{type:U.NUMBER,line:it,column:pt+St-Ve,index:St,value:Ie.slice(Ve,St)}:null}var me=function(Ce,it){for(var pt=1,Ve=1,St=0,Bt=[];St<Ce.length;){var _t=[Ce,St,pt,Ve],Jt=ce.apply(void 0,_t);if(Jt){St=Jt.index,pt=Jt.line,Ve=Jt.column;continue}var un=$.apply(void 0,_t)||ue.apply(void 0,_t)||de.apply(void 0,_t)||be.apply(void 0,_t);if(un){var Pn={type:un.type,value:un.value,loc:a(pt,Ve,St,un.line,un.column,un.index,it.source)};Bt.push(Pn),St=un.index,pt=un.line,Ve=un.column}else v(I.unexpectedSymbol(s(Ce,St,St+1),it.source,pt,Ve),Ce,it.source,pt,Ve)}return Bt},xe={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},Pe={_START_:0,KEY:1,COLON:2},ke={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},Qe={loc:!0,source:null};function nt(Ie,Ce,it){var pt=Ce.length>0?Ce[Ce.length-1].loc.end:{line:1,column:1};v(E.unexpectedEnd(),Ie,it.source,pt.line,pt.column)}function je(Ie){for(var Ce=0,it=0;it<4;it++)Ce=Ce*16+parseInt(Ie[it],16);return String.fromCharCode(Ce)}var Re={b:"\b",f:"\f",n:`
`,r:"\r",t:" "},Ne=['"',"\\","/"];function lt(Ie){for(var Ce="",it=0;it<Ie.length;it++){var pt=Ie.charAt(it);if(pt==="\\"){it++;var Ve=Ie.charAt(it);if(Ve==="u")Ce+=je(Ie.substr(it+1,4)),it+=4;else if(Ne.indexOf(Ve)!==-1)Ce+=Ve;else if(Ve in Re)Ce+=Re[Ve];else break}else Ce+=pt}return Ce}function Ke(Ie,Ce,it,pt){for(var Ve=void 0,St={type:"Object",children:[]},Bt=xe._START_;it<Ce.length;){var _t=Ce[it];switch(Bt){case xe._START_:{if(_t.type===U.LEFT_BRACE)Ve=_t,Bt=xe.OPEN_OBJECT,it++;else return null;break}case xe.OPEN_OBJECT:{if(_t.type===U.RIGHT_BRACE)return pt.loc&&(St.loc=a(Ve.loc.start.line,Ve.loc.start.column,Ve.loc.start.offset,_t.loc.end.line,_t.loc.end.column,_t.loc.end.offset,pt.source)),{value:St,index:it+1};var Jt=Xe(Ie,Ce,it,pt);St.children.push(Jt.value),Bt=xe.PROPERTY,it=Jt.index;break}case xe.PROPERTY:{if(_t.type===U.RIGHT_BRACE)return pt.loc&&(St.loc=a(Ve.loc.start.line,Ve.loc.start.column,Ve.loc.start.offset,_t.loc.end.line,_t.loc.end.column,_t.loc.end.offset,pt.source)),{value:St,index:it+1};_t.type===U.COMMA?(Bt=xe.COMMA,it++):v(E.unexpectedToken(s(Ie,_t.loc.start.offset,_t.loc.end.offset),pt.source,_t.loc.start.line,_t.loc.start.column),Ie,pt.source,_t.loc.start.line,_t.loc.start.column);break}case xe.COMMA:{var un=Xe(Ie,Ce,it,pt);un?(it=un.index,St.children.push(un.value),Bt=xe.PROPERTY):v(E.unexpectedToken(s(Ie,_t.loc.start.offset,_t.loc.end.offset),pt.source,_t.loc.start.line,_t.loc.start.column),Ie,pt.source,_t.loc.start.line,_t.loc.start.column);break}}}nt(Ie,Ce,pt)}function Xe(Ie,Ce,it,pt){for(var Ve=void 0,St={type:"Property",key:null,value:null},Bt=Pe._START_;it<Ce.length;){var _t=Ce[it];switch(Bt){case Pe._START_:{if(_t.type===U.STRING){var Jt={type:"Identifier",value:lt(Ie.slice(_t.loc.start.offset+1,_t.loc.end.offset-1)),raw:_t.value};pt.loc&&(Jt.loc=_t.loc),Ve=_t,St.key=Jt,Bt=Pe.KEY,it++}else return null;break}case Pe.KEY:{_t.type===U.COLON?(Bt=Pe.COLON,it++):v(E.unexpectedToken(s(Ie,_t.loc.start.offset,_t.loc.end.offset),pt.source,_t.loc.start.line,_t.loc.start.column),Ie,pt.source,_t.loc.start.line,_t.loc.start.column);break}case Pe.COLON:{var un=It(Ie,Ce,it,pt);return St.value=un.value,pt.loc&&(St.loc=a(Ve.loc.start.line,Ve.loc.start.column,Ve.loc.start.offset,un.value.loc.end.line,un.value.loc.end.column,un.value.loc.end.offset,pt.source)),{value:St,index:un.index}}}}}function st(Ie,Ce,it,pt){for(var Ve=void 0,St={type:"Array",children:[]},Bt=ke._START_,_t=void 0;it<Ce.length;)switch(_t=Ce[it],Bt){case ke._START_:{if(_t.type===U.LEFT_BRACKET)Ve=_t,Bt=ke.OPEN_ARRAY,it++;else return null;break}case ke.OPEN_ARRAY:{if(_t.type===U.RIGHT_BRACKET)return pt.loc&&(St.loc=a(Ve.loc.start.line,Ve.loc.start.column,Ve.loc.start.offset,_t.loc.end.line,_t.loc.end.column,_t.loc.end.offset,pt.source)),{value:St,index:it+1};var Jt=It(Ie,Ce,it,pt);it=Jt.index,St.children.push(Jt.value),Bt=ke.VALUE;break}case ke.VALUE:{if(_t.type===U.RIGHT_BRACKET)return pt.loc&&(St.loc=a(Ve.loc.start.line,Ve.loc.start.column,Ve.loc.start.offset,_t.loc.end.line,_t.loc.end.column,_t.loc.end.offset,pt.source)),{value:St,index:it+1};_t.type===U.COMMA?(Bt=ke.COMMA,it++):v(E.unexpectedToken(s(Ie,_t.loc.start.offset,_t.loc.end.offset),pt.source,_t.loc.start.line,_t.loc.start.column),Ie,pt.source,_t.loc.start.line,_t.loc.start.column);break}case ke.COMMA:{var un=It(Ie,Ce,it,pt);it=un.index,St.children.push(un.value),Bt=ke.VALUE;break}}nt(Ie,Ce,pt)}function Ct(Ie,Ce,it,pt){var Ve=Ce[it],St=null;switch(Ve.type){case U.STRING:{St=lt(Ie.slice(Ve.loc.start.offset+1,Ve.loc.end.offset-1));break}case U.NUMBER:{St=Number(Ve.value);break}case U.TRUE:{St=!0;break}case U.FALSE:{St=!1;break}case U.NULL:{St=null;break}default:return null}var Bt={type:"Literal",value:St,raw:Ve.value};return pt.loc&&(Bt.loc=Ve.loc),{value:Bt,index:it+1}}function It(Ie,Ce,it,pt){var Ve=Ce[it],St=Ct.apply(void 0,arguments)||Ke.apply(void 0,arguments)||st.apply(void 0,arguments);if(St)return St;v(E.unexpectedToken(s(Ie,Ve.loc.start.offset,Ve.loc.end.offset),pt.source,Ve.loc.start.line,Ve.loc.start.column),Ie,pt.source,Ve.loc.start.line,Ve.loc.start.column)}var Le=(function(Ie,Ce){Ce=Object.assign({},Qe,Ce);var it=me(Ie,Ce);it.length===0&&nt(Ie,it,Ce);var pt=It(Ie,it,0,Ce);if(pt.index===it.length)return pt.value;var Ve=it[pt.index];v(E.unexpectedToken(s(Ie,Ve.loc.start.offset,Ve.loc.end.offset),Ce.source,Ve.loc.start.line,Ve.loc.start.column),Ie,Ce.source,Ve.loc.start.line,Ve.loc.start.column)});return Le}))})(gE)),gE.exports}var _Se=CSe();const bK=Mu(_Se);function ya(){var n="/home/runner/work/maputnik/maputnik/src/libs/json-path-to-position.ts",e="68bf9a3bcb07bd54be36702e0c3494ce552968d6",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/json-path-to-position.ts",statementMap:{0:{start:{line:2,column:2},end:{line:4,column:3}},1:{start:{line:3,column:4},end:{line:3,column:18}},2:{start:{line:5,column:2},end:{line:7,column:3}},3:{start:{line:6,column:4},end:{line:6,column:16}},4:{start:{line:8,column:2},end:{line:10, Line truncated
`,r:"\r",t:" "},Ne=['"',"\\","/"];function lt(Ie){for(var Ce="",it=0;it<Ie.length;it++){var pt=Ie.charAt(it);if(pt==="\\"){it++;var Ve=Ie.charAt(it);if(Ve==="u")Ce+=je(Ie.substr(it+1,4)),it+=4;else if(Ne.indexOf(Ve)!==-1)Ce+=Ve;else if(Ve in Re)Ce+=Re[Ve];else break}else Ce+=pt}return Ce}function Ke(Ie,Ce,it,pt){for(var Ve=void 0,St={type:"Object",children:[]},Bt=xe._START_;it<Ce.length;){var _t=Ce[it];switch(Bt){case xe._START_:{if(_t.type===U.LEFT_BRACE)Ve=_t,Bt=xe.OPEN_OBJECT,it++;else return null;break}case xe.OPEN_OBJECT:{if(_t.type===U.RIGHT_BRACE)return pt.loc&&(St.loc=a(Ve.loc.start.line,Ve.loc.start.column,Ve.loc.start.offset,_t.loc.end.line,_t.loc.end.column,_t.loc.end.offset,pt.source)),{value:St,index:it+1};var Jt=Xe(Ie,Ce,it,pt);St.children.push(Jt.value),Bt=xe.PROPERTY,it=Jt.index;break}case xe.PROPERTY:{if(_t.type===U.RIGHT_BRACE)return pt.loc&&(St.loc=a(Ve.loc.start.line,Ve.loc.start.column,Ve.loc.start.offset,_t.loc.end.line,_t.loc.end.column,_t.loc.end.offset,pt.source)),{value:St,index:it+1};_t.type===U.COMMA?(Bt=xe.COMMA,it++):v(E.unexpectedToken(s(Ie,_t.loc.start.offset,_t.loc.end.offset),pt.source,_t.loc.start.line,_t.loc.start.column),Ie,pt.source,_t.loc.start.line,_t.loc.start.column);break}case xe.COMMA:{var un=Xe(Ie,Ce,it,pt);un?(it=un.index,St.children.push(un.value),Bt=xe.PROPERTY):v(E.unexpectedToken(s(Ie,_t.loc.start.offset,_t.loc.end.offset),pt.source,_t.loc.start.line,_t.loc.start.column),Ie,pt.source,_t.loc.start.line,_t.loc.start.column);break}}}nt(Ie,Ce,pt)}function Xe(Ie,Ce,it,pt){for(var Ve=void 0,St={type:"Property",key:null,value:null},Bt=Pe._START_;it<Ce.length;){var _t=Ce[it];switch(Bt){case Pe._START_:{if(_t.type===U.STRING){var Jt={type:"Identifier",value:lt(Ie.slice(_t.loc.start.offset+1,_t.loc.end.offset-1)),raw:_t.value};pt.loc&&(Jt.loc=_t.loc),Ve=_t,St.key=Jt,Bt=Pe.KEY,it++}else return null;break}case Pe.KEY:{_t.type===U.COLON?(Bt=Pe.COLON,it++):v(E.unexpectedToken(s(Ie,_t.loc.start.offset,_t.loc.end.offset),pt.source,_t.loc.start.line,_t.loc.start.column),Ie,pt.source,_t.loc.start.line,_t.loc.start.column);break}case Pe.COLON:{var un=It(Ie,Ce,it,pt);return St.value=un.value,pt.loc&&(St.loc=a(Ve.loc.start.line,Ve.loc.start.column,Ve.loc.start.offset,un.value.loc.end.line,un.value.loc.end.column,un.value.loc.end.offset,pt.source)),{value:St,index:un.index}}}}}function st(Ie,Ce,it,pt){for(var Ve=void 0,St={type:"Array",children:[]},Bt=ke._START_,_t=void 0;it<Ce.length;)switch(_t=Ce[it],Bt){case ke._START_:{if(_t.type===U.LEFT_BRACKET)Ve=_t,Bt=ke.OPEN_ARRAY,it++;else return null;break}case ke.OPEN_ARRAY:{if(_t.type===U.RIGHT_BRACKET)return pt.loc&&(St.loc=a(Ve.loc.start.line,Ve.loc.start.column,Ve.loc.start.offset,_t.loc.end.line,_t.loc.end.column,_t.loc.end.offset,pt.source)),{value:St,index:it+1};var Jt=It(Ie,Ce,it,pt);it=Jt.index,St.children.push(Jt.value),Bt=ke.VALUE;break}case ke.VALUE:{if(_t.type===U.RIGHT_BRACKET)return pt.loc&&(St.loc=a(Ve.loc.start.line,Ve.loc.start.column,Ve.loc.start.offset,_t.loc.end.line,_t.loc.end.column,_t.loc.end.offset,pt.source)),{value:St,index:it+1};_t.type===U.COMMA?(Bt=ke.COMMA,it++):v(E.unexpectedToken(s(Ie,_t.loc.start.offset,_t.loc.end.offset),pt.source,_t.loc.start.line,_t.loc.start.column),Ie,pt.source,_t.loc.start.line,_t.loc.start.column);break}case ke.COMMA:{var un=It(Ie,Ce,it,pt);it=un.index,St.children.push(un.value),Bt=ke.VALUE;break}}nt(Ie,Ce,pt)}function Ct(Ie,Ce,it,pt){var Ve=Ce[it],St=null;switch(Ve.type){case U.STRING:{St=lt(Ie.slice(Ve.loc.start.offset+1,Ve.loc.end.offset-1));break}case U.NUMBER:{St=Number(Ve.value);break}case U.TRUE:{St=!0;break}case U.FALSE:{St=!1;break}case U.NULL:{St=null;break}default:return null}var Bt={type:"Literal",value:St,raw:Ve.value};return pt.loc&&(Bt.loc=Ve.loc),{value:Bt,index:it+1}}function It(Ie,Ce,it,pt){var Ve=Ce[it],St=Ct.apply(void 0,arguments)||Ke.apply(void 0,arguments)||st.apply(void 0,arguments);if(St)return St;v(E.unexpectedToken(s(Ie,Ve.loc.start.offset,Ve.loc.end.offset),pt.source,Ve.loc.start.line,Ve.loc.start.column),Ie,pt.source,Ve.loc.start.line,Ve.loc.start.column)}var Le=(function(Ie,Ce){Ce=Object.assign({},Qe,Ce);var it=me(Ie,Ce);it.length===0&&nt(Ie,it,Ce);var pt=It(Ie,it,0,Ce);if(pt.index===it.length)return pt.value;var Ve=it[pt.index];v(E.unexpectedToken(s(Ie,Ve.loc.start.offset,Ve.loc.end.offset),Ce.source,Ve.loc.start.line,Ve.loc.start.column),Ie,Ce.source,Ve.loc.start.line,Ve.loc.start.column)});return Le}))})(pE)),pE.exports}var SSe=MSe();const yK=Su(SSe);function va(){var n="/home/runner/work/maputnik/maputnik/src/libs/json-path-to-position.ts",e="68bf9a3bcb07bd54be36702e0c3494ce552968d6",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/json-path-to-position.ts",statementMap:{0:{start:{line:2,column:2},end:{line:4,column:3}},1:{start:{line:3,column:4},end:{line:3,column:18}},2:{start:{line:5,column:2},end:{line:7,column:3}},3:{start:{line:6,column:4},end:{line:6,column:16}},4:{start:{line:8,column:2},end:{line:10, Line truncated
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
`},NSe={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function GSe(n){let{announcements:e=NSe,container:t,hiddenTextDescribedById:i,screenReaderInstructions:r=jSe}=n;const{announce:o,announcement:s}=KSe(),a=rM("DndLiveRegion"),[c,d]=ct.useState(!1);if(ct.useEffect(()=>{d(!0)},[]),FSe(ct.useMemo(()=>({onDragStart(v){let{active:E}=v;o(e.onDragStart({active:E}))},onDragMove(v){let{active:E,over:I}=v;e.onDragMove&&o(e.onDragMove({active:E,over:I}))},onDragOver(v){let{active:E,over:I}=v;o(e.onDragOver({active:E,over:I}))},onDragEnd(v){let{active:E,over:I}=v;o(e.onDragEnd({active:E,over:I}))},onDragCancel(v){let{active:E,over:I}=v;o(e.onDragCancel({active:E,over:I}))}}),[o,e])),!c)return null;const g=Tn.createElement(Tn.Fragment,null,Tn.createElement(LSe,{id:i,value:r.draggable}),Tn.createElement(USe,{id:a,announcement:s}));return t?I4.createPortal(g,t):g}var Oc;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(Oc||(Oc={}));function j6(){}function WSe(n,e){return ct.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function QSe(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return ct.useMemo(()=>[...e].filter(i=>i!=null),[...e])}const i0=Object.freeze({x:0,y:0});function YSe(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function qSe(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return t-i}function VSe(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return i-t}function $Se(n,e){if(!n||n.length===0)return null;const[t]=n;return t[e]}function BQ(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const HSe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=BQ(e,e.left,e.top),o=[];for(const s of i){const{id:a}=s,c=t.get(a);if(c){const d=YSe(BQ(c),r);o.push({id:a,data:{droppableContainer:s,value:d}})}}return o.sort(qSe)};function ZSe(n,e){const t=Math.max(e.top,n.top),i=Math.max(e.left,n.left),r=Math.min(e.left+e.width,n.left+n.width),o=Math.min(e.top+e.height,n.top+n.height),s=r-i,a=o-t;if(i<r&&t<o){const c=e.width*e.height,d=n.width*n.height,g=s*a,v=g/(c+d-g);return Number(v.toFixed(4))}return 0}const XSe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=[];for(const o of i){const{id:s}=o,a=t.get(s);if(a){const c=ZSe(a,e);c>0&&r.push({id:s,data:{droppableContainer:o,value:c}})}}return r.sort(VSe)};function JSe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function Moe(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:i0}function eEe(n){return function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return r.reduce((s,a)=>({...s,top:s.top+n*a.y,bottom:s.bottom+n*a.y,left:s.left+n*a.x,right:s.right+n*a.x}),{...t})}}const tEe=eEe(1);function nEe(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function iEe(n,e,t){const i=nEe(e);if(!i)return n;const{scaleX:r,scaleY:o,x:s,y:a}=i,c=n.left-s-(1-r)*parseFloat(t),d=n.top-a-(1-o)*parseFloat(t.slice(t.indexOf(" ")+1)),g=r?n.width/r:n.width,v=o?n.height/o:n.height;return{width:g,height:v,top:d,right:c+g,bottom:d+v,left:c}}const rEe={ignoreTransform:!1};function A3(n,e){e===void 0&&(e=rEe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:d,transformOrigin:g}=cf(n).getComputedStyle(n);d&&(t=iEe(t,d,g))}const{top:i,left:r,width:o,height:s,bottom:a,right:c}=t;return{top:i,left:r,width:o,height:s,bottom:a,right:c}}function OQ(n){return A3(n,{ignoreTransform:!0})}function oEe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function sEe(n,e){return e===void 0&&(e=cf(n).getComputedStyle(n)),e.position==="fixed"}function aEe(n,e){e===void 0&&(e=cf(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const o=e[r];return typeof o=="string"?t.test(o):!1})}function SK(n,e){const t=[];function i(r){if(e!=null&&t.length>=e||!r)return t;if(xK(r)&&r.scrollingElement!=null&&!t.includes(r.scrollingElement))return t.push(r.scrollingElement),t;if(!nM(r)||_oe(r)||t.includes(r))return t;const o=cf(n).getComputedStyle(r);return r!==n&&aE Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GQ(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function WQ(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?GQ(Object(t),!0).forEach(function(i){F6e(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):GQ(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function N6e(n){return K6e(n)||z6e(n)||Q6e(n)||j6e()}function G6e(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var i=t.call(n,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function W6e(n){var e=G6e(n,"string");return typeof e=="symbol"?e:e+""}function Q6e(n,e){if(n){if(typeof n=="string")return wP(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?wP(n,e):void 0}}var QQ={activateTrap:function(e,t){if(e.length>0){var i=e[e.length-1];i!==t&&i._setPausedState(!0)}var r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var i=e.indexOf(t);i!==-1&&e.splice(i,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},Y6e=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},q6e=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},r5=function(e){return e?.key==="Tab"||e?.keyCode===9},V6e=function(e){return r5(e)&&!e.shiftKey},$6e=function(e){return r5(e)&&e.shiftKey},YQ=function(e){return setTimeout(e,0)},J3=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return typeof e=="function"?e.apply(void 0,i):e},wS=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},H6e=[],Z6e=function(e,t){var i=t?.document||document,r=t?.trapStack||H6e,o=WQ({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:V6e,isKeyBackward:$6e},t),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a,c=function(me,xe,Pe){return me&&me[xe]!==void 0?me[xe]:o[Pe||xe]},d=function(me,xe){var Pe=typeof xe?.composedPath=="function"?xe.composedPath():void 0;return s.containerGroups.findIndex(function(ke){var Qe=ke.container,nt=ke.tabbableNodes;return Qe.contains(me)||Pe?.includes(Qe)||nt.find(function(je){return je===me})})},g=function(me){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pe=xe.hasFallback,ke=Pe===void 0?!1:Pe,Qe=xe.params,nt=Qe===void 0?[]:Qe,je=o[me];if(typeof je=="function"&&(je=je.apply(void 0,N6e(nt))),je===!0&&(je=void 0),!je){if(je===void 0||je===!1)return je;throw new Error("`".concat(me,"` was specified but was not a node, or did not return a node"))}var Re=je;if(typeof je=="string"){try{Re=i.querySelector(je)}catch(Ne){throw new Error("`".concat(me,'` appears to be an invalid selector; error="').concat(Ne.message,'"'))}if(!Re&&!ke)throw new Error("`".concat(me,"` as selector refers to no known node"))}return Re},v=function(){var me=g("initialFocus",{hasFallback:!0});if(me===!1)return!1;if(me===void 0||me&&!vE(me,o.tabbableOptions))if(d(i.activeElement)>=0)me=i.activeElement;else{var xe=s.tabbableGroups[0],Pe=xe&&xe.firstTabbableNode;me=Pe||g("fallbackFocus")}else me===null&&(me=g("fallbackFocus"));if(!me)throw new Error("Your focus-trap needs to have at least one focusable element");return me},E=function(){if(s.containerGroups=s.containers.map(function(me){var xe=$oe(me,o.tabbableOptions),Pe=Hoe(me,o.tabbableOptions),ke=xe.length>0?xe[0]:void 0,Qe=xe.length>0?xe[xe.length-1]:void 0,nt=Pe.find(function(Ne){return aC(Ne)}),je=Pe.slice().reverse().find(function(Ne){return aC(Ne)}),Re=!!xe.find(function(Ne){return Mv(Ne)>0});return{container:me,tabbableNodes:xe,focusableNodes:Pe,posTabIndexesFound:Re,firstTabbableNode:ke,lastTabbableNode:Qe,firstDomTabbableNode:nt,lastDomTabbableNode:je,nextTabbableNode:function(lt){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Xe=xe.indexOf(lt);return Xe<0?Ke?Pe.slice(Pe.indexOf(lt)+1).find(function(st){return aC(st)}):Pe.slice(0,Pe.indexOf(lt)).reverse().find(function(st){return aC(st)}):xe[Xe+(Ke?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(me){return me.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!g("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all Line truncated
`,d="/",g="*",v="",E="comment",I="declaration";dI=function(F,W){if(typeof F!="string")throw new TypeError("First argument must be a string");if(!F)return[];W=W||{};var V=1,q=1;function ee(me){var xe=me.match(e);xe&&(V+=xe.length);var Pe=me.lastIndexOf(c);q=~Pe?me.length-Pe:q+me.length}function oe(){var me={line:V,column:q};return function(xe){return xe.position=new re(me),ce(),xe}}function re(me){this.start=me,this.end={line:V,column:q},this.source=W.source}re.prototype.content=F;function ie(me){var xe=new Error(W.source+":"+V+":"+q+": "+me);if(xe.reason=me,xe.filename=W.source,xe.line=V,xe.column=q,xe.source=F,!W.silent)throw xe}function X(me){var xe=me.exec(F);if(xe){var Pe=xe[0];return ee(Pe),F=F.slice(Pe.length),xe}}function ce(){X(t)}function $(me){var xe;for(me=me||[];xe=ue();)xe!==!1&&me.push(xe);return me}function ue(){var me=oe();if(!(d!=F.charAt(0)||g!=F.charAt(1))){for(var xe=2;v!=F.charAt(xe)&&(g!=F.charAt(xe)||d!=F.charAt(xe+1));)++xe;if(xe+=2,v===F.charAt(xe-1))return ie("End of comment missing");var Pe=F.slice(2,xe-2);return q+=2,ee(Pe),F=F.slice(xe),q+=2,me({type:E,comment:Pe})}}function de(){var me=oe(),xe=X(i);if(xe){if(ue(),!X(r))return ie("property missing ':'");var Pe=X(o),ke=me({type:I,property:U(xe[0].replace(n,v)),value:Pe?U(Pe[0].replace(n,v)):v});return X(s),ke}}function be(){var me=[];$(me);for(var xe;xe=de();)xe!==!1&&(me.push(xe),$(me));return me}return ce(),be()};function U(F){return F?F.replace(a,v):v}return dI}var tY;function MBe(){if(tY)return o2;tY=1;var n=o2&&o2.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(o2,"__esModule",{value:!0}),o2.default=t;const e=n(wBe());function t(i,r){let o=null;if(!i||typeof i!="string")return o;const s=(0,e.default)(i),a=typeof r=="function";return s.forEach(c=>{if(c.type!=="declaration")return;const{property:d,value:g}=c;a?r(d,g,c):g&&(o=o||{},o[d]=g)}),o}return o2}var e4={},nY;function SBe(){if(nY)return e4;nY=1,Object.defineProperty(e4,"__esModule",{value:!0}),e4.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,t=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,o=function(d){return!d||t.test(d)||n.test(d)},s=function(d,g){return g.toUpperCase()},a=function(d,g){return"".concat(g,"-")},c=function(d,g){return g===void 0&&(g={}),o(d)?d:(d=d.toLowerCase(),g.reactCompat?d=d.replace(r,a):d=d.replace(i,a),d.replace(e,s))};return e4.camelCase=c,e4}var t4,iY;function EBe(){if(iY)return t4;iY=1;var n=t4&&t4.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},e=n(MBe()),t=SBe();function i(r,o){var s={};return!r||typeof r!="string"||(0,e.default)(r,function(a,c){a&&c&&(s[(0,t.camelCase)(a,o)]=c)}),s}return i.default=i,t4=i,t4}var BBe=EBe();const OBe=Mu(BBe),rse=ose("end"),DK=ose("start");function ose(n){return e;function e(t){const i=t&&t.position&&t.position[n]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function IBe(n){const e=DK(n),t=rse(n);if(e&&t)return{start:e,end:t}}function o5(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?rY(n.position):"start"in n||"end"in n?rY(n):"line"in n||"column"in n?BP(n):""}function BP(n){return oY(n&&n.line)+":"+oY(n&&n.column)}function rY(n){return BP(n&&n.start)+"-"+BP(n&&n.end)}function oY(n){return n&&typeof n=="number"?n:1}class Eh extends Error{constructor(e,t,i){super(),typeof t=="string"&&(i=t,t=void 0);let r="",o={},s=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof e=="string"?r=e:!o.cause&&e&&(s=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&typeof i=="string"){const c=i.indexOf(":");c===-1?o.ruleId=i:(o.source=i.slice(0,c),o.ruleId=i.slice(c+1))}if(!o.place&&o.ancestors&&o.ancestors){const c=o.ancestors[o.ancestors.length-1];c&&(o.place=c.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=o5(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Eh.prototype.file="";Eh.prototype.name="";Eh.prototype.reason="";Eh.prototype.message="";Eh.prototype.stack="";Eh.prototype.column=void 0;Eh.prototype.line=void 0;Eh.prototype.ancestors=void 0;Eh.prototype.cause=void 0;Eh.prototype.fatal=void 0;Eh.prototype.place=void 0;Eh.prototype.ruleId=void 0;Eh.prototype.source=void 0;const RK={}.hasOwnProperty,TBe=new Map,kBe=/[A-Z]/g,DBe=new Set(["table","tbody","thead","tfoot","tr"]),RBe=new Set(["td","th"]),sse="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function PBe(n,e){if(!e||e.Fragment===void Line truncated
`},YSe={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function qSe(n){let{announcements:e=YSe,container:t,hiddenTextDescribedById:i,screenReaderInstructions:r=QSe}=n;const{announce:o,announcement:s}=NSe(),a=nM("DndLiveRegion"),[c,d]=ct.useState(!1);if(ct.useEffect(()=>{d(!0)},[]),GSe(ct.useMemo(()=>({onDragStart(v){let{active:E}=v;o(e.onDragStart({active:E}))},onDragMove(v){let{active:E,over:I}=v;e.onDragMove&&o(e.onDragMove({active:E,over:I}))},onDragOver(v){let{active:E,over:I}=v;o(e.onDragOver({active:E,over:I}))},onDragEnd(v){let{active:E,over:I}=v;o(e.onDragEnd({active:E,over:I}))},onDragCancel(v){let{active:E,over:I}=v;o(e.onDragCancel({active:E,over:I}))}}),[o,e])),!c)return null;const g=Tn.createElement(Tn.Fragment,null,Tn.createElement(zSe,{id:i,value:r.draggable}),Tn.createElement(jSe,{id:a,announcement:s}));return t?E4.createPortal(g,t):g}var Oc;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(Oc||(Oc={}));function F6(){}function VSe(n,e){return ct.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function $Se(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return ct.useMemo(()=>[...e].filter(i=>i!=null),[...e])}const n0=Object.freeze({x:0,y:0});function HSe(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function ZSe(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return t-i}function XSe(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return i-t}function JSe(n,e){if(!n||n.length===0)return null;const[t]=n;return t[e]}function SQ(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const eEe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=SQ(e,e.left,e.top),o=[];for(const s of i){const{id:a}=s,c=t.get(a);if(c){const d=HSe(SQ(c),r);o.push({id:a,data:{droppableContainer:s,value:d}})}}return o.sort(ZSe)};function tEe(n,e){const t=Math.max(e.top,n.top),i=Math.max(e.left,n.left),r=Math.min(e.left+e.width,n.left+n.width),o=Math.min(e.top+e.height,n.top+n.height),s=r-i,a=o-t;if(i<r&&t<o){const c=e.width*e.height,d=n.width*n.height,g=s*a,v=g/(c+d-g);return Number(v.toFixed(4))}return 0}const nEe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=[];for(const o of i){const{id:s}=o,a=t.get(s);if(a){const c=tEe(a,e);c>0&&r.push({id:s,data:{droppableContainer:o,value:c}})}}return r.sort(XSe)};function iEe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function Eoe(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:n0}function rEe(n){return function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return r.reduce((s,a)=>({...s,top:s.top+n*a.y,bottom:s.bottom+n*a.y,left:s.left+n*a.x,right:s.right+n*a.x}),{...t})}}const oEe=rEe(1);function sEe(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function aEe(n,e,t){const i=sEe(e);if(!i)return n;const{scaleX:r,scaleY:o,x:s,y:a}=i,c=n.left-s-(1-r)*parseFloat(t),d=n.top-a-(1-o)*parseFloat(t.slice(t.indexOf(" ")+1)),g=r?n.width/r:n.width,v=o?n.height/o:n.height;return{width:g,height:v,top:d,right:c+g,bottom:d+v,left:c}}const lEe={ignoreTransform:!1};function l3(n,e){e===void 0&&(e=lEe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:d,transformOrigin:g}=uf(n).getComputedStyle(n);d&&(t=aEe(t,d,g))}const{top:i,left:r,width:o,height:s,bottom:a,right:c}=t;return{top:i,left:r,width:o,height:s,bottom:a,right:c}}function EQ(n){return l3(n,{ignoreTransform:!0})}function uEe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function cEe(n,e){return e===void 0&&(e=uf(n).getComputedStyle(n)),e.position==="fixed"}function AEe(n,e){e===void 0&&(e=uf(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const o=e[r];return typeof o=="string"?t.test(o):!1})}function wK(n,e){const t=[];function i(r){if(e!=null&&t.length>=e||!r)return t;if(CK(r)&&r.scrollingElement!=null&&!t.includes(r.scrollingElement))return t.push(r.scrollingElement),t;if(!eM(r)||woe(r)||t.includes(r))return t;const o=uf(n).getComputedStyle(r);return r!==n&&AE Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jQ(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function NQ(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?jQ(Object(t),!0).forEach(function(i){G6e(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):jQ(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function Y6e(n){return N6e(n)||W6e(n)||$6e(n)||Q6e()}function q6e(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var i=t.call(n,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function V6e(n){var e=q6e(n,"string");return typeof e=="symbol"?e:e+""}function $6e(n,e){if(n){if(typeof n=="string")return _P(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_P(n,e):void 0}}var GQ={activateTrap:function(e,t){if(e.length>0){var i=e[e.length-1];i!==t&&i._setPausedState(!0)}var r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var i=e.indexOf(t);i!==-1&&e.splice(i,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},H6e=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Z6e=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},t5=function(e){return e?.key==="Tab"||e?.keyCode===9},X6e=function(e){return t5(e)&&!e.shiftKey},J6e=function(e){return t5(e)&&e.shiftKey},WQ=function(e){return setTimeout(e,0)},H3=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return typeof e=="function"?e.apply(void 0,i):e},_S=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},eBe=[],tBe=function(e,t){var i=t?.document||document,r=t?.trapStack||eBe,o=NQ({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:X6e,isKeyBackward:J6e},t),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a,c=function(me,xe,Pe){return me&&me[xe]!==void 0?me[xe]:o[Pe||xe]},d=function(me,xe){var Pe=typeof xe?.composedPath=="function"?xe.composedPath():void 0;return s.containerGroups.findIndex(function(ke){var Qe=ke.container,nt=ke.tabbableNodes;return Qe.contains(me)||Pe?.includes(Qe)||nt.find(function(je){return je===me})})},g=function(me){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pe=xe.hasFallback,ke=Pe===void 0?!1:Pe,Qe=xe.params,nt=Qe===void 0?[]:Qe,je=o[me];if(typeof je=="function"&&(je=je.apply(void 0,Y6e(nt))),je===!0&&(je=void 0),!je){if(je===void 0||je===!1)return je;throw new Error("`".concat(me,"` was specified but was not a node, or did not return a node"))}var Re=je;if(typeof je=="string"){try{Re=i.querySelector(je)}catch(Ne){throw new Error("`".concat(me,'` appears to be an invalid selector; error="').concat(Ne.message,'"'))}if(!Re&&!ke)throw new Error("`".concat(me,"` as selector refers to no known node"))}return Re},v=function(){var me=g("initialFocus",{hasFallback:!0});if(me===!1)return!1;if(me===void 0||me&&!gE(me,o.tabbableOptions))if(d(i.activeElement)>=0)me=i.activeElement;else{var xe=s.tabbableGroups[0],Pe=xe&&xe.firstTabbableNode;me=Pe||g("fallbackFocus")}else me===null&&(me=g("fallbackFocus"));if(!me)throw new Error("Your focus-trap needs to have at least one focusable element");return me},E=function(){if(s.containerGroups=s.containers.map(function(me){var xe=Zoe(me,o.tabbableOptions),Pe=Xoe(me,o.tabbableOptions),ke=xe.length>0?xe[0]:void 0,Qe=xe.length>0?xe[xe.length-1]:void 0,nt=Pe.find(function(Ne){return sC(Ne)}),je=Pe.slice().reverse().find(function(Ne){return sC(Ne)}),Re=!!xe.find(function(Ne){return wv(Ne)>0});return{container:me,tabbableNodes:xe,focusableNodes:Pe,posTabIndexesFound:Re,firstTabbableNode:ke,lastTabbableNode:Qe,firstDomTabbableNode:nt,lastDomTabbableNode:je,nextTabbableNode:function(lt){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Xe=xe.indexOf(lt);return Xe<0?Ke?Pe.slice(Pe.indexOf(lt)+1).find(function(st){return sC(st)}):Pe.slice(0,Pe.indexOf(lt)).reverse().find(function(st){return sC(st)}):xe[Xe+(Ke?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(me){return me.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!g("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all Line truncated
`,d="/",g="*",v="",E="comment",I="declaration";AI=function(F,W){if(typeof F!="string")throw new TypeError("First argument must be a string");if(!F)return[];W=W||{};var V=1,q=1;function ee(me){var xe=me.match(e);xe&&(V+=xe.length);var Pe=me.lastIndexOf(c);q=~Pe?me.length-Pe:q+me.length}function oe(){var me={line:V,column:q};return function(xe){return xe.position=new re(me),ce(),xe}}function re(me){this.start=me,this.end={line:V,column:q},this.source=W.source}re.prototype.content=F;function ie(me){var xe=new Error(W.source+":"+V+":"+q+": "+me);if(xe.reason=me,xe.filename=W.source,xe.line=V,xe.column=q,xe.source=F,!W.silent)throw xe}function X(me){var xe=me.exec(F);if(xe){var Pe=xe[0];return ee(Pe),F=F.slice(Pe.length),xe}}function ce(){X(t)}function $(me){var xe;for(me=me||[];xe=ue();)xe!==!1&&me.push(xe);return me}function ue(){var me=oe();if(!(d!=F.charAt(0)||g!=F.charAt(1))){for(var xe=2;v!=F.charAt(xe)&&(g!=F.charAt(xe)||d!=F.charAt(xe+1));)++xe;if(xe+=2,v===F.charAt(xe-1))return ie("End of comment missing");var Pe=F.slice(2,xe-2);return q+=2,ee(Pe),F=F.slice(xe),q+=2,me({type:E,comment:Pe})}}function de(){var me=oe(),xe=X(i);if(xe){if(ue(),!X(r))return ie("property missing ':'");var Pe=X(o),ke=me({type:I,property:U(xe[0].replace(n,v)),value:Pe?U(Pe[0].replace(n,v)):v});return X(s),ke}}function be(){var me=[];$(me);for(var xe;xe=de();)xe!==!1&&(me.push(xe),$(me));return me}return ce(),be()};function U(F){return F?F.replace(a,v):v}return AI}var JQ;function OBe(){if(JQ)return r2;JQ=1;var n=r2&&r2.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(r2,"__esModule",{value:!0}),r2.default=t;const e=n(BBe());function t(i,r){let o=null;if(!i||typeof i!="string")return o;const s=(0,e.default)(i),a=typeof r=="function";return s.forEach(c=>{if(c.type!=="declaration")return;const{property:d,value:g}=c;a?r(d,g,c):g&&(o=o||{},o[d]=g)}),o}return r2}var Z3={},eY;function IBe(){if(eY)return Z3;eY=1,Object.defineProperty(Z3,"__esModule",{value:!0}),Z3.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,t=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,o=function(d){return!d||t.test(d)||n.test(d)},s=function(d,g){return g.toUpperCase()},a=function(d,g){return"".concat(g,"-")},c=function(d,g){return g===void 0&&(g={}),o(d)?d:(d=d.toLowerCase(),g.reactCompat?d=d.replace(r,a):d=d.replace(i,a),d.replace(e,s))};return Z3.camelCase=c,Z3}var X3,tY;function TBe(){if(tY)return X3;tY=1;var n=X3&&X3.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},e=n(OBe()),t=IBe();function i(r,o){var s={};return!r||typeof r!="string"||(0,e.default)(r,function(a,c){a&&c&&(s[(0,t.camelCase)(a,o)]=c)}),s}return i.default=i,X3=i,X3}var kBe=TBe();const DBe=Su(kBe),sse=ase("end"),TK=ase("start");function ase(n){return e;function e(t){const i=t&&t.position&&t.position[n]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function RBe(n){const e=TK(n),t=sse(n);if(e&&t)return{start:e,end:t}}function n5(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?nY(n.position):"start"in n||"end"in n?nY(n):"line"in n||"column"in n?SP(n):""}function SP(n){return iY(n&&n.line)+":"+iY(n&&n.column)}function nY(n){return SP(n&&n.start)+"-"+SP(n&&n.end)}function iY(n){return n&&typeof n=="number"?n:1}class Eh extends Error{constructor(e,t,i){super(),typeof t=="string"&&(i=t,t=void 0);let r="",o={},s=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof e=="string"?r=e:!o.cause&&e&&(s=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&typeof i=="string"){const c=i.indexOf(":");c===-1?o.ruleId=i:(o.source=i.slice(0,c),o.ruleId=i.slice(c+1))}if(!o.place&&o.ancestors&&o.ancestors){const c=o.ancestors[o.ancestors.length-1];c&&(o.place=c.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=n5(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Eh.prototype.file="";Eh.prototype.name="";Eh.prototype.reason="";Eh.prototype.message="";Eh.prototype.stack="";Eh.prototype.column=void 0;Eh.prototype.line=void 0;Eh.prototype.ancestors=void 0;Eh.prototype.cause=void 0;Eh.prototype.fatal=void 0;Eh.prototype.place=void 0;Eh.prototype.ruleId=void 0;Eh.prototype.source=void 0;const kK={}.hasOwnProperty,PBe=new Map,LBe=/[A-Z]/g,UBe=new Set(["table","tbody","thead","tfoot","tr"]),KBe=new Set(["td","th"]),lse="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function FBe(n,e){if(!e||e.Fragment===void Line truncated
`;break}case-3:{s=`\r
`;break}case-2:{s=e?" ":" ";break}case-1:{if(!e&&r)continue;s=" ";break}default:s=String.fromCharCode(o)}r=o===-2,i.push(s)}return i.join("")}function qOe(n){const i={constructs:e8e([GOe,...(n||{}).extensions||[]]),content:r(l8e),defined:[],document:r(c8e),flow:r(BOe),lazy:{},string:r(TOe),text:r(kOe)};return i;function r(o){return s;function s(a){return WOe(i,o,a)}}}function VOe(n){for(;!pse(n););return n}const mY=/[\0\t\n\r]/g;function $Oe(){let n=1,e="",t=!0,i;return r;function r(o,s,a){const c=[];let d,g,v,E,I;for(o=e+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),v=0,e="",t&&(o.charCodeAt(0)===65279&&v++,t=void 0);v<o.length;){if(mY.lastIndex=v,d=mY.exec(o),E=d&&d.index!==void 0?d.index:o.length,I=o.charCodeAt(E),!d){e=o.slice(v);break}if(I===10&&v===E&&i)c.push(-3),i=void 0;else switch(i&&(c.push(-5),i=void 0),v<E&&(c.push(o.slice(v,E)),n+=E-v),I){case 0:{c.push(65533),n++;break}case 9:{for(g=Math.ceil(n/4)*4,c.push(-2);n++<g;)c.push(-1);break}case 10:{c.push(-4),n=1;break}default:i=!0,n=1}v=E+1}return a&&(i&&c.push(-5),e&&c.push(e),c.push(null)),c}}const HOe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ZOe(n){return n.replace(HOe,XOe)}function XOe(n,e,t){if(e)return e;if(t.charCodeAt(0)===35){const r=t.charCodeAt(1),o=r===120||r===88;return Ase(t.slice(o?2:1),o?16:10)}return UK(t)||n}const Cse={}.hasOwnProperty;function JOe(n,e,t){return typeof e!="string"&&(t=e,e=void 0),e7e(t)(VOe(qOe(t).document().write($Oe()(n,e,!0))))}function e7e(n){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Pn),autolinkProtocol:$,autolinkEmail:$,atxHeading:o(Bt),blockQuote:o(Ce),characterEscape:$,characterReference:$,codeFenced:o(it),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(it,s),codeText:o(pt,s),codeTextData:$,data:$,codeFlowValue:$,definition:o(Ve),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(St),hardBreakEscape:o(_t),hardBreakTrailing:o(_t),htmlFlow:o(Jt,s),htmlFlowData:$,htmlText:o(Jt,s),htmlTextData:$,image:o(un),label:s,link:o(Pn),listItem:o(Un),listItemValue:E,listOrdered:o(Jn,v),listUnordered:o(Jn),paragraph:o(Sn),reference:Ke,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Bt),strong:o(Qn),thematicBreak:o(vn)},exit:{atxHeading:c(),atxHeadingSequence:re,autolink:c(),autolinkEmail:Ie,autolinkProtocol:Le,blockQuote:c(),characterEscapeValue:ue,characterReferenceMarkerHexadecimal:st,characterReferenceMarkerNumeric:st,characterReferenceValue:Ct,characterReference:It,codeFenced:c(W),codeFencedFence:F,codeFencedFenceInfo:I,codeFencedFenceMeta:U,codeFlowValue:ue,codeIndented:c(V),codeText:c(Pe),codeTextData:ue,data:ue,definition:c(),definitionDestinationString:oe,definitionLabelString:q,definitionTitleString:ee,emphasis:c(),hardBreakEscape:c(be),hardBreakTrailing:c(be),htmlFlow:c(me),htmlFlowData:ue,htmlText:c(xe),htmlTextData:ue,image:c(Qe),label:je,labelText:nt,lineEnding:de,link:c(ke),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:Xe,resourceDestinationString:Re,resourceTitleString:Ne,resource:lt,setextHeading:c(ce),setextHeadingLineSequence:X,setextHeadingText:ie,strong:c(),thematicBreak:c()}};_se(e,(n||{}).mdastExtensions||[]);const t={};return i;function i(vt){let Se={type:"root",children:[]};const Ae={stack:[Se],tokenStack:[],config:e,enter:a,exit:d,buffer:s,resume:g,data:t},fe=[];let ze=-1;for(;++ze<vt.length;)if(vt[ze][1].type==="listOrdered"||vt[ze][1].type==="listUnordered")if(vt[ze][0]==="enter")fe.push(ze);else{const At=fe.pop();ze=r(vt,At,ze)}for(ze=-1;++ze<vt.length;){const At=e[vt[ze][0]];Cse.call(At,vt[ze][1].type)&&At[vt[ze][1].type].call(Object.assign({sliceSerialize:vt[ze][2].sliceSerialize},Ae),vt[ze][1])}if(Ae.tokenStack.length>0){const At=Ae.tokenStack[Ae.tokenStack.length-1];(At[1]||gY).call(Ae,void 0,At[0])}for(Se.position={start:fv(vt.length>0?vt[0][1].start:{line:1,column:1,offset:0}),end:fv(vt.length>0?vt[vt.length-2][1].end:{line:1,column:1,offset:0})},ze=-1;++ze<e.transforms.length;)Se=e.transforms[ze](Se)||Se;return Se}function r(vt,Se,Ae){let fe=Se-1,ze=-1,At=!1,Ot,Dt,In,Gn;for(;++fe<=Ae;){const yt=vt[fe];switch(yt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{yt[0]==="enter"?ze++:ze--,Gn=void 0;break}case"lineEndingBlank":{yt[0]==="enter"&&(Ot&&!Gn&&!ze&&!In&&(In=fe),Gn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Gn=void 0}if(!ze&&yt[0]==="enter"&&yt[1].type==="listItemPrefix"||ze===-1&&yt[0]==="exit"&&(yt[1].type==="listUnordered"||yt[1].type==="listOrdered")){if(Ot){let Ft=fe;for(Dt=void 0;Ft--;){const C=vt[Ft];if(C[1].type==="lineEnding"||C[1].type==="lineEndingBlank"){if(C[0]==="exit")continue;Dt&&(vt[Dt][1].type="lineEndingBlank",At=!0),C[1].type="lineEnding",Dt=Ft}else if(!(C[1].type==="linePrefix"||C[1].type==="blockQuotePrefix"Line truncated
`}]}function o7e(n,e){const t=e.value?e.value+`
`:"",i={},r=e.lang?e.lang.split(/\s+/):[];r.length>0&&(i.className=["language-"+r[0]]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:t}]};return e.meta&&(o.data={meta:e.meta}),n.patch(e,o),o=n.applyData(e,o),o={type:"element",tagName:"pre",properties:{},children:[o]},n.patch(e,o),o}function s7e(n,e){const t={type:"element",tagName:"del",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function a7e(n,e){const t={type:"element",tagName:"em",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function l7e(n,e){const t=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",i=String(e.identifier).toUpperCase(),r=d3(i.toLowerCase()),o=n.footnoteOrder.indexOf(i);let s,a=n.footnoteCounts.get(i);a===void 0?(a=0,n.footnoteOrder.push(i),s=n.footnoteOrder.length):s=o+1,a+=1,n.footnoteCounts.set(i,a);const c={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+r,id:t+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};n.patch(e,c);const d={type:"element",tagName:"sup",properties:{},children:[c]};return n.patch(e,d),n.applyData(e,d)}function u7e(n,e){const t={type:"element",tagName:"h"+e.depth,properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function c7e(n,e){if(n.options.allowDangerousHtml){const t={type:"raw",value:e.value};return n.patch(e,t),n.applyData(e,t)}}function xse(n,e){const t=e.referenceType;let i="]";if(t==="collapsed"?i+="[]":t==="full"&&(i+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+i}];const r=n.all(e),o=r[0];o&&o.type==="text"?o.value="["+o.value:r.unshift({type:"text",value:"["});const s=r[r.length-1];return s&&s.type==="text"?s.value+=i:r.push({type:"text",value:i}),r}function A7e(n,e){const t=String(e.identifier).toUpperCase(),i=n.definitionById.get(t);if(!i)return xse(n,e);const r={src:d3(i.url||""),alt:e.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"img",properties:r,children:[]};return n.patch(e,o),n.applyData(e,o)}function h7e(n,e){const t={src:d3(e.url)};e.alt!==null&&e.alt!==void 0&&(t.alt=e.alt),e.title!==null&&e.title!==void 0&&(t.title=e.title);const i={type:"element",tagName:"img",properties:t,children:[]};return n.patch(e,i),n.applyData(e,i)}function d7e(n,e){const t={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};n.patch(e,t);const i={type:"element",tagName:"code",properties:{},children:[t]};return n.patch(e,i),n.applyData(e,i)}function f7e(n,e){const t=String(e.identifier).toUpperCase(),i=n.definitionById.get(t);if(!i)return xse(n,e);const r={href:d3(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"a",properties:r,children:n.all(e)};return n.patch(e,o),n.applyData(e,o)}function p7e(n,e){const t={href:d3(e.url)};e.title!==null&&e.title!==void 0&&(t.title=e.title);const i={type:"element",tagName:"a",properties:t,children:n.all(e)};return n.patch(e,i),n.applyData(e,i)}function m7e(n,e,t){const i=n.all(e),r=t?g7e(t):wse(e),o={},s=[];if(typeof e.checked=="boolean"){const g=i[0];let v;g&&g.type==="element"&&g.tagName==="p"?v=g:(v={type:"element",tagName:"p",properties:{},children:[]},i.unshift(v)),v.children.length>0&&v.children.unshift({type:"text",value:" "}),v.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<i.length;){const g=i[a];(r||a!==0||g.type!=="element"||g.tagName!=="p")&&s.push({type:"text",value:`
`;break}case-2:{s=e?" ":" ";break}case-1:{if(!e&&r)continue;s=" ";break}default:s=String.fromCharCode(o)}r=o===-2,i.push(s)}return i.join("")}function ZOe(n){const i={constructs:r8e([qOe,...(n||{}).extensions||[]]),content:r(h8e),defined:[],document:r(f8e),flow:r(kOe),lazy:{},string:r(POe),text:r(LOe)};return i;function r(o){return s;function s(a){return VOe(i,o,a)}}}function XOe(n){for(;!gse(n););return n}const fY=/[\0\t\n\r]/g;function JOe(){let n=1,e="",t=!0,i;return r;function r(o,s,a){const c=[];let d,g,v,E,I;for(o=e+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),v=0,e="",t&&(o.charCodeAt(0)===65279&&v++,t=void 0);v<o.length;){if(fY.lastIndex=v,d=fY.exec(o),E=d&&d.index!==void 0?d.index:o.length,I=o.charCodeAt(E),!d){e=o.slice(v);break}if(I===10&&v===E&&i)c.push(-3),i=void 0;else switch(i&&(c.push(-5),i=void 0),v<E&&(c.push(o.slice(v,E)),n+=E-v),I){case 0:{c.push(65533),n++;break}case 9:{for(g=Math.ceil(n/4)*4,c.push(-2);n++<g;)c.push(-1);break}case 10:{c.push(-4),n=1;break}default:i=!0,n=1}v=E+1}return a&&(i&&c.push(-5),e&&c.push(e),c.push(null)),c}}const e7e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function t7e(n){return n.replace(e7e,n7e)}function n7e(n,e,t){if(e)return e;if(t.charCodeAt(0)===35){const r=t.charCodeAt(1),o=r===120||r===88;return dse(t.slice(o?2:1),o?16:10)}return PK(t)||n}const xse={}.hasOwnProperty;function i7e(n,e,t){return typeof e!="string"&&(t=e,e=void 0),r7e(t)(XOe(ZOe(t).document().write(JOe()(n,e,!0))))}function r7e(n){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Pn),autolinkProtocol:$,autolinkEmail:$,atxHeading:o(Bt),blockQuote:o(Ce),characterEscape:$,characterReference:$,codeFenced:o(it),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(it,s),codeText:o(pt,s),codeTextData:$,data:$,codeFlowValue:$,definition:o(Ve),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(St),hardBreakEscape:o(_t),hardBreakTrailing:o(_t),htmlFlow:o(Jt,s),htmlFlowData:$,htmlText:o(Jt,s),htmlTextData:$,image:o(un),label:s,link:o(Pn),listItem:o(Un),listItemValue:E,listOrdered:o(Jn,v),listUnordered:o(Jn),paragraph:o(Sn),reference:Ke,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Bt),strong:o(Qn),thematicBreak:o(vn)},exit:{atxHeading:c(),atxHeadingSequence:re,autolink:c(),autolinkEmail:Ie,autolinkProtocol:Le,blockQuote:c(),characterEscapeValue:ue,characterReferenceMarkerHexadecimal:st,characterReferenceMarkerNumeric:st,characterReferenceValue:Ct,characterReference:It,codeFenced:c(W),codeFencedFence:F,codeFencedFenceInfo:I,codeFencedFenceMeta:U,codeFlowValue:ue,codeIndented:c(V),codeText:c(Pe),codeTextData:ue,data:ue,definition:c(),definitionDestinationString:oe,definitionLabelString:q,definitionTitleString:ee,emphasis:c(),hardBreakEscape:c(be),hardBreakTrailing:c(be),htmlFlow:c(me),htmlFlowData:ue,htmlText:c(xe),htmlTextData:ue,image:c(Qe),label:je,labelText:nt,lineEnding:de,link:c(ke),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:Xe,resourceDestinationString:Re,resourceTitleString:Ne,resource:lt,setextHeading:c(ce),setextHeadingLineSequence:X,setextHeadingText:ie,strong:c(),thematicBreak:c()}};wse(e,(n||{}).mdastExtensions||[]);const t={};return i;function i(vt){let Se={type:"root",children:[]};const Ae={stack:[Se],tokenStack:[],config:e,enter:a,exit:d,buffer:s,resume:g,data:t},fe=[];let ze=-1;for(;++ze<vt.length;)if(vt[ze][1].type==="listOrdered"||vt[ze][1].type==="listUnordered")if(vt[ze][0]==="enter")fe.push(ze);else{const At=fe.pop();ze=r(vt,At,ze)}for(ze=-1;++ze<vt.length;){const At=e[vt[ze][0]];xse.call(At,vt[ze][1].type)&&At[vt[ze][1].type].call(Object.assign({sliceSerialize:vt[ze][2].sliceSerialize},Ae),vt[ze][1])}if(Ae.tokenStack.length>0){const At=Ae.tokenStack[Ae.tokenStack.length-1];(At[1]||pY).call(Ae,void 0,At[0])}for(Se.position={start:dv(vt.length>0?vt[0][1].start:{line:1,column:1,offset:0}),end:dv(vt.length>0?vt[vt.length-2][1].end:{line:1,column:1,offset:0})},ze=-1;++ze<e.transforms.length;)Se=e.transforms[ze](Se)||Se;return Se}function r(vt,Se,Ae){let fe=Se-1,ze=-1,At=!1,Ot,Dt,In,Gn;for(;++fe<=Ae;){const yt=vt[fe];switch(yt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{yt[0]==="enter"?ze++:ze--,Gn=void 0;break}case"lineEndingBlank":{yt[0]==="enter"&&(Ot&&!Gn&&!ze&&!In&&(In=fe),Gn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Gn=void 0}if(!ze&&yt[0]==="enter"&&yt[1].type==="listItemPrefix"||ze===-1&&yt[0]==="exit"&&(yt[1].type==="listUnordered"||yt[1].type==="listOrdered")){if(Ot){let Ft=fe;for(Dt=void 0;Ft--;){const C=vt[Ft];if(C[1].type==="lineEnding"||C[1].type==="lineEndingBlank"){if(C[0]==="exit")continue;Dt&&(vt[Dt][1].type="lineEndingBlank",At=!0),C[1].type="lineEnding",Dt=Ft}else if(!(C[1].type==="linePrefix"||C[1].type==="blockQuotePrefix"Line truncated
`}]}function u7e(n,e){const t=e.value?e.value+`
`:"",i={},r=e.lang?e.lang.split(/\s+/):[];r.length>0&&(i.className=["language-"+r[0]]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:t}]};return e.meta&&(o.data={meta:e.meta}),n.patch(e,o),o=n.applyData(e,o),o={type:"element",tagName:"pre",properties:{},children:[o]},n.patch(e,o),o}function c7e(n,e){const t={type:"element",tagName:"del",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function A7e(n,e){const t={type:"element",tagName:"em",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function h7e(n,e){const t=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",i=String(e.identifier).toUpperCase(),r=c3(i.toLowerCase()),o=n.footnoteOrder.indexOf(i);let s,a=n.footnoteCounts.get(i);a===void 0?(a=0,n.footnoteOrder.push(i),s=n.footnoteOrder.length):s=o+1,a+=1,n.footnoteCounts.set(i,a);const c={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+r,id:t+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};n.patch(e,c);const d={type:"element",tagName:"sup",properties:{},children:[c]};return n.patch(e,d),n.applyData(e,d)}function d7e(n,e){const t={type:"element",tagName:"h"+e.depth,properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function f7e(n,e){if(n.options.allowDangerousHtml){const t={type:"raw",value:e.value};return n.patch(e,t),n.applyData(e,t)}}function Mse(n,e){const t=e.referenceType;let i="]";if(t==="collapsed"?i+="[]":t==="full"&&(i+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+i}];const r=n.all(e),o=r[0];o&&o.type==="text"?o.value="["+o.value:r.unshift({type:"text",value:"["});const s=r[r.length-1];return s&&s.type==="text"?s.value+=i:r.push({type:"text",value:i}),r}function p7e(n,e){const t=String(e.identifier).toUpperCase(),i=n.definitionById.get(t);if(!i)return Mse(n,e);const r={src:c3(i.url||""),alt:e.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"img",properties:r,children:[]};return n.patch(e,o),n.applyData(e,o)}function m7e(n,e){const t={src:c3(e.url)};e.alt!==null&&e.alt!==void 0&&(t.alt=e.alt),e.title!==null&&e.title!==void 0&&(t.title=e.title);const i={type:"element",tagName:"img",properties:t,children:[]};return n.patch(e,i),n.applyData(e,i)}function g7e(n,e){const t={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};n.patch(e,t);const i={type:"element",tagName:"code",properties:{},children:[t]};return n.patch(e,i),n.applyData(e,i)}function y7e(n,e){const t=String(e.identifier).toUpperCase(),i=n.definitionById.get(t);if(!i)return Mse(n,e);const r={href:c3(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"a",properties:r,children:n.all(e)};return n.patch(e,o),n.applyData(e,o)}function v7e(n,e){const t={href:c3(e.url)};e.title!==null&&e.title!==void 0&&(t.title=e.title);const i={type:"element",tagName:"a",properties:t,children:n.all(e)};return n.patch(e,i),n.applyData(e,i)}function b7e(n,e,t){const i=n.all(e),r=t?C7e(t):Sse(e),o={},s=[];if(typeof e.checked=="boolean"){const g=i[0];let v;g&&g.type==="element"&&g.tagName==="p"?v=g:(v={type:"element",tagName:"p",properties:{},children:[]},i.unshift(v)),v.children.length>0&&v.children.unshift({type:"text",value:" "}),v.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<i.length;){const g=i[a];(r||a!==0||g.type!=="element"||g.tagName!=="p")&&s.push({type:"text",value:`
`}),g.type==="element"&&g.tagName==="p"&&!r?s.push(...g.children):s.push(g)}const c=i[i.length-1];c&&(r||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
`});const d={type:"element",tagName:"li",properties:o,children:s};return n.patch(e,d),n.applyData(e,d)}function g7e(n){let e=!1;if(n.type==="list"){e=n.spread||!1;const t=n.children;let i=-1;for(;!e&&++i<t.length;)e=wse(t[i])}return e}function wse(n){const e=n.spread;return e??n.children.length>1}function y7e(n,e){const t={},i=n.all(e);let r=-1;for(typeof e.start=="number"&&e.start!==1&&(t.start=e.start);++r<i.length;){const s=i[r];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const o={type:"element",tagName:e.ordered?"ol":"ul",properties:t,children:n.wrap(i,!0)};return n.patch(e,o),n.applyData(e,o)}function v7e(n,e){const t={type:"element",tagName:"p",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function b7e(n,e){const t={type:"root",children:n.wrap(n.all(e))};return n.patch(e,t),n.applyData(e,t)}function C7e(n,e){const t={type:"element",tagName:"strong",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function _7e(n,e){const t=n.all(e),i=t.shift(),r=[];if(i){const s={type:"element",tagName:"thead",properties:{},children:n.wrap([i],!0)};n.patch(e.children[0],s),r.push(s)}if(t.length>0){const s={type:"element",tagName:"tbody",properties:{},children:n.wrap(t,!0)},a=DK(e.children[1]),c=rse(e.children[e.children.length-1]);a&&c&&(s.position={start:a,end:c}),r.push(s)}const o={type:"element",tagName:"table",properties:{},children:n.wrap(r,!0)};return n.patch(e,o),n.applyData(e,o)}function x7e(n,e,t){const i=t?t.children:void 0,o=(i?i.indexOf(e):1)===0?"th":"td",s=t&&t.type==="table"?t.align:void 0,a=s?s.length:e.children.length;let c=-1;const d=[];for(;++c<a;){const v=e.children[c],E={},I=s?s[c]:void 0;I&&(E.align=I);let U={type:"element",tagName:o,properties:E,children:[]};v&&(U.children=n.all(v),n.patch(v,U),U=n.applyData(v,U)),d.push(U)}const g={type:"element",tagName:"tr",properties:{},children:n.wrap(d,!0)};return n.patch(e,g),n.applyData(e,g)}function w7e(n,e){const t={type:"element",tagName:"td",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}const yY=9,vY=32;function M7e(n){const e=String(n),t=/\r?\n|\r/g;let i=t.exec(e),r=0;const o=[];for(;i;)o.push(bY(e.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=t.exec(e);return o.push(bY(e.slice(r),r>0,!1)),o.join("")}function bY(n,e,t){let i=0,r=n.length;if(e){let o=n.codePointAt(i);for(;o===yY||o===vY;)i++,o=n.codePointAt(i)}if(t){let o=n.codePointAt(r-1);for(;o===yY||o===vY;)r--,o=n.codePointAt(r-1)}return r>i?n.slice(i,r):""}function S7e(n,e){const t={type:"text",value:M7e(String(e.value))};return n.patch(e,t),n.applyData(e,t)}function E7e(n,e){const t={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(e,t),n.applyData(e,t)}const B7e={blockquote:i7e,break:r7e,code:o7e,delete:s7e,emphasis:a7e,footnoteReference:l7e,heading:u7e,html:c7e,imageReference:A7e,image:h7e,inlineCode:d7e,linkReference:f7e,link:p7e,listItem:m7e,list:y7e,paragraph:v7e,root:b7e,strong:C7e,table:_7e,tableCell:w7e,tableRow:x7e,text:S7e,thematicBreak:E7e,toml:MS,yaml:MS,definition:MS,footnoteDefinition:MS};function MS(){}const Mse=-1,b8=0,a5=1,V6=2,zK=3,jK=4,NK=5,GK=6,Sse=7,Ese=8,CY=typeof self=="object"?self:globalThis,O7e=(n,e)=>{const t=(r,o)=>(n.set(o,r),r),i=r=>{if(n.has(r))return n.get(r);const[o,s]=e[r];switch(o){case b8:case Mse:return t(s,r);case a5:{const a=t([],r);for(const c of s)a.push(i(c));return a}case V6:{const a=t({},r);for(const[c,d]of s)a[i(c)]=i(d);return a}case zK:return t(new Date(s),r);case jK:{const{source:a,flags:c}=s;return t(new RegExp(a,c),r)}case NK:{const a=t(new Map,r);for(const[c,d]of s)a.set(i(c),i(d));return a}case GK:{const a=t(new Set,r);for(const c of s)a.add(i(c));return a}case Sse:{const{name:a,message:c}=s;return t(new CY[a](c),r)}case Ese:return t(BigInt(s),r);case"BigInt":return t(Object(BigInt(s)),r);case"ArrayBuffer":return t(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:a}=new Uint8Array(s);return t(new DataView(a),s)}}return t(new CY[o](s),r)};return i},_Y=n=>O7e(new Map,n)(0),s2="",{toString:I7e}={},{keys:T7e}=Object,i4=n=>{const e=typeof n;if(e!=="object"||!n)return[b8,e];const t=I7e.call(n).slice(8,-1);switch(t){case"Array":return[a5,s2];case"Object":return[V6,s2];case"Date":return[zK,s2];case"RegExp":return[jK,s2];case"Map":return[NK,s2];case"Set":return[GK,s2];case"DataView":return[a5,t]}return t.includes("Array")?[a5,t]:t.includes("Error")?[Sse,t]:[V6,t]},SS=([n,e])=>n===b8&&(e==="function"||e==="symbol"),k7e=(n,e,t,i)=>{const r=(s,a)=>{const c=i.push(s)-1;return t.set(a,c),c},o=s=>{if(t.has(s))return t.get(s);let[a,c]=i4(s);switch(a){case b8:{let g=s;switch(c){case"bigint":a=Ese,g=s.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+c);g=null;break;case"undefined":return r([Mse],s)}return r([a,g],s)}case a5:{if(c){let E=s;return c==="DataView"?E=new Uint Line truncated
`});const d={type:"element",tagName:"li",properties:o,children:s};return n.patch(e,d),n.applyData(e,d)}function C7e(n){let e=!1;if(n.type==="list"){e=n.spread||!1;const t=n.children;let i=-1;for(;!e&&++i<t.length;)e=Sse(t[i])}return e}function Sse(n){const e=n.spread;return e??n.children.length>1}function _7e(n,e){const t={},i=n.all(e);let r=-1;for(typeof e.start=="number"&&e.start!==1&&(t.start=e.start);++r<i.length;){const s=i[r];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const o={type:"element",tagName:e.ordered?"ol":"ul",properties:t,children:n.wrap(i,!0)};return n.patch(e,o),n.applyData(e,o)}function x7e(n,e){const t={type:"element",tagName:"p",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function w7e(n,e){const t={type:"root",children:n.wrap(n.all(e))};return n.patch(e,t),n.applyData(e,t)}function M7e(n,e){const t={type:"element",tagName:"strong",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function S7e(n,e){const t=n.all(e),i=t.shift(),r=[];if(i){const s={type:"element",tagName:"thead",properties:{},children:n.wrap([i],!0)};n.patch(e.children[0],s),r.push(s)}if(t.length>0){const s={type:"element",tagName:"tbody",properties:{},children:n.wrap(t,!0)},a=TK(e.children[1]),c=sse(e.children[e.children.length-1]);a&&c&&(s.position={start:a,end:c}),r.push(s)}const o={type:"element",tagName:"table",properties:{},children:n.wrap(r,!0)};return n.patch(e,o),n.applyData(e,o)}function E7e(n,e,t){const i=t?t.children:void 0,o=(i?i.indexOf(e):1)===0?"th":"td",s=t&&t.type==="table"?t.align:void 0,a=s?s.length:e.children.length;let c=-1;const d=[];for(;++c<a;){const v=e.children[c],E={},I=s?s[c]:void 0;I&&(E.align=I);let U={type:"element",tagName:o,properties:E,children:[]};v&&(U.children=n.all(v),n.patch(v,U),U=n.applyData(v,U)),d.push(U)}const g={type:"element",tagName:"tr",properties:{},children:n.wrap(d,!0)};return n.patch(e,g),n.applyData(e,g)}function B7e(n,e){const t={type:"element",tagName:"td",properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}const mY=9,gY=32;function O7e(n){const e=String(n),t=/\r?\n|\r/g;let i=t.exec(e),r=0;const o=[];for(;i;)o.push(yY(e.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=t.exec(e);return o.push(yY(e.slice(r),r>0,!1)),o.join("")}function yY(n,e,t){let i=0,r=n.length;if(e){let o=n.codePointAt(i);for(;o===mY||o===gY;)i++,o=n.codePointAt(i)}if(t){let o=n.codePointAt(r-1);for(;o===mY||o===gY;)r--,o=n.codePointAt(r-1)}return r>i?n.slice(i,r):""}function I7e(n,e){const t={type:"text",value:O7e(String(e.value))};return n.patch(e,t),n.applyData(e,t)}function T7e(n,e){const t={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(e,t),n.applyData(e,t)}const k7e={blockquote:a7e,break:l7e,code:u7e,delete:c7e,emphasis:A7e,footnoteReference:h7e,heading:d7e,html:f7e,imageReference:p7e,image:m7e,inlineCode:g7e,linkReference:y7e,link:v7e,listItem:b7e,list:_7e,paragraph:x7e,root:w7e,strong:M7e,table:S7e,tableCell:B7e,tableRow:E7e,text:I7e,thematicBreak:T7e,toml:xS,yaml:xS,definition:xS,footnoteDefinition:xS};function xS(){}const Ese=-1,v8=0,r5=1,Y6=2,KK=3,FK=4,zK=5,jK=6,Bse=7,Ose=8,vY=typeof self=="object"?self:globalThis,D7e=(n,e)=>{const t=(r,o)=>(n.set(o,r),r),i=r=>{if(n.has(r))return n.get(r);const[o,s]=e[r];switch(o){case v8:case Ese:return t(s,r);case r5:{const a=t([],r);for(const c of s)a.push(i(c));return a}case Y6:{const a=t({},r);for(const[c,d]of s)a[i(c)]=i(d);return a}case KK:return t(new Date(s),r);case FK:{const{source:a,flags:c}=s;return t(new RegExp(a,c),r)}case zK:{const a=t(new Map,r);for(const[c,d]of s)a.set(i(c),i(d));return a}case jK:{const a=t(new Set,r);for(const c of s)a.add(i(c));return a}case Bse:{const{name:a,message:c}=s;return t(new vY[a](c),r)}case Ose:return t(BigInt(s),r);case"BigInt":return t(Object(BigInt(s)),r);case"ArrayBuffer":return t(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:a}=new Uint8Array(s);return t(new DataView(a),s)}}return t(new vY[o](s),r)};return i},bY=n=>D7e(new Map,n)(0),o2="",{toString:R7e}={},{keys:P7e}=Object,e4=n=>{const e=typeof n;if(e!=="object"||!n)return[v8,e];const t=R7e.call(n).slice(8,-1);switch(t){case"Array":return[r5,o2];case"Object":return[Y6,o2];case"Date":return[KK,o2];case"RegExp":return[FK,o2];case"Map":return[zK,o2];case"Set":return[jK,o2];case"DataView":return[r5,t]}return t.includes("Array")?[r5,t]:t.includes("Error")?[Bse,t]:[Y6,t]},wS=([n,e])=>n===v8&&(e==="function"||e==="symbol"),L7e=(n,e,t,i)=>{const r=(s,a)=>{const c=i.push(s)-1;return t.set(a,c),c},o=s=>{if(t.has(s))return t.get(s);let[a,c]=e4(s);switch(a){case v8:{let g=s;switch(c){case"bigint":a=Ose,g=s.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+c);g=null;break;case"undefined":return r([Ese],s)}return r([a,g],s)}case r5:{if(c){let E=s;return c==="DataView"?E=new Uint Line truncated
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(a,!0)},{type:"text",value:`
`}]}}const Bse=(function(n){if(n==null)return F7e;if(typeof n=="function")return C8(n);if(typeof n=="object")return Array.isArray(n)?L7e(n):U7e(n);if(typeof n=="string")return K7e(n);throw new Error("Expected function, string, or object as test")});function L7e(n){const e=[];let t=-1;for(;++t<n.length;)e[t]=Bse(n[t]);return C8(i);function i(...r){let o=-1;for(;++o<e.length;)if(e[o].apply(this,r))return!0;return!1}}function U7e(n){const e=n;return C8(t);function t(i){const r=i;let o;for(o in n)if(r[o]!==e[o])return!1;return!0}}function K7e(n){return C8(e);function e(t){return t&&t.type===n}}function C8(n){return e;function e(t,i,r){return!!(z7e(t)&&n.call(this,t,typeof i=="number"?i:void 0,r||void 0))}}function F7e(){return!0}function z7e(n){return n!==null&&typeof n=="object"&&"type"in n}const Ose=[],j7e=!0,wY=!1,N7e="skip";function G7e(n,e,t,i){let r;typeof e=="function"&&typeof t!="function"?(i=t,t=e):r=e;const o=Bse(r),s=i?-1:1;a(n,void 0,[])();function a(c,d,g){const v=c&&typeof c=="object"?c:{};if(typeof v.type=="string"){const I=typeof v.tagName=="string"?v.tagName:typeof v.name=="string"?v.name:void 0;Object.defineProperty(E,"name",{value:"node ("+(c.type+(I?"<"+I+">":""))+")"})}return E;function E(){let I=Ose,U,F,W;if((!e||o(c,d,g[g.length-1]||void 0))&&(I=W7e(t(c,g)),I[0]===wY))return I;if("children"in c&&c.children){const V=c;if(V.children&&I[0]!==N7e)for(F=(i?V.children.length:-1)+s,W=g.concat(V);F>-1&&F<V.children.length;){const q=V.children[F];if(U=a(q,F,W)(),U[0]===wY)return U;F=typeof U[1]=="number"?U[1]:F+s}}return I}}}function W7e(n){return Array.isArray(n)?n:typeof n=="number"?[j7e,n]:n==null?Ose:[n]}function Ise(n,e,t,i){let r,o,s;typeof e=="function"&&typeof t!="function"?(o=void 0,s=e,r=t):(o=e,s=t,r=i),G7e(n,o,a,r);function a(c,d){const g=d[d.length-1],v=g?g.children.indexOf(c):void 0;return s(c,v,g)}}const kP={}.hasOwnProperty,Q7e={};function Y7e(n,e){const t=e||Q7e,i=new Map,r=new Map,o=new Map,s={...B7e,...t.handlers},a={all:d,applyData:V7e,definitionById:i,footnoteById:r,footnoteCounts:o,footnoteOrder:[],handlers:s,one:c,options:t,patch:q7e,wrap:H7e};return Ise(n,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const v=g.type==="definition"?i:r,E=String(g.identifier).toUpperCase();v.has(E)||v.set(E,g)}}),a;function c(g,v){const E=g.type,I=a.handlers[E];if(kP.call(a.handlers,E)&&I)return I(a,g,v);if(a.options.passThrough&&a.options.passThrough.includes(E)){if("children"in g){const{children:F,...W}=g,V=$6(W);return V.children=a.all(g),V}return $6(g)}return(a.options.unknownHandler||$7e)(a,g,v)}function d(g){const v=[];if("children"in g){const E=g.children;let I=-1;for(;++I<E.length;){const U=a.one(E[I],g);if(U){if(I&&E[I-1].type==="break"&&(!Array.isArray(U)&&U.type==="text"&&(U.value=MY(U.value)),!Array.isArray(U)&&U.type==="element")){const F=U.children[0];F&&F.type==="text"&&(F.value=MY(F.value))}Array.isArray(U)?v.push(...U):v.push(U)}}}return v}}function q7e(n,e){n.position&&(e.position=IBe(n))}function V7e(n,e){let t=e;if(n&&n.data){const i=n.data.hName,r=n.data.hChildren,o=n.data.hProperties;if(typeof i=="string")if(t.type==="element")t.tagName=i;else{const s="children"in t?t.children:[t];t={type:"element",tagName:i,properties:{},children:s}}t.type==="element"&&o&&Object.assign(t.properties,$6(o)),"children"in t&&t.children&&r!==null&&r!==void 0&&(t.children=r)}return t}function $7e(n,e){const t=e.data||{},i="value"in e&&!(kP.call(t,"hProperties")||kP.call(t,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:n.all(e)};return n.patch(e,i),n.applyData(e,i)}function H7e(n,e){const t=[];let i=-1;for(e&&t.push({type:"text",value:`
`}]}}const Ise=(function(n){if(n==null)return G7e;if(typeof n=="function")return b8(n);if(typeof n=="object")return Array.isArray(n)?z7e(n):j7e(n);if(typeof n=="string")return N7e(n);throw new Error("Expected function, string, or object as test")});function z7e(n){const e=[];let t=-1;for(;++t<n.length;)e[t]=Ise(n[t]);return b8(i);function i(...r){let o=-1;for(;++o<e.length;)if(e[o].apply(this,r))return!0;return!1}}function j7e(n){const e=n;return b8(t);function t(i){const r=i;let o;for(o in n)if(r[o]!==e[o])return!1;return!0}}function N7e(n){return b8(e);function e(t){return t&&t.type===n}}function b8(n){return e;function e(t,i,r){return!!(W7e(t)&&n.call(this,t,typeof i=="number"?i:void 0,r||void 0))}}function G7e(){return!0}function W7e(n){return n!==null&&typeof n=="object"&&"type"in n}const Tse=[],Q7e=!0,_Y=!1,Y7e="skip";function q7e(n,e,t,i){let r;typeof e=="function"&&typeof t!="function"?(i=t,t=e):r=e;const o=Ise(r),s=i?-1:1;a(n,void 0,[])();function a(c,d,g){const v=c&&typeof c=="object"?c:{};if(typeof v.type=="string"){const I=typeof v.tagName=="string"?v.tagName:typeof v.name=="string"?v.name:void 0;Object.defineProperty(E,"name",{value:"node ("+(c.type+(I?"<"+I+">":""))+")"})}return E;function E(){let I=Tse,U,F,W;if((!e||o(c,d,g[g.length-1]||void 0))&&(I=V7e(t(c,g)),I[0]===_Y))return I;if("children"in c&&c.children){const V=c;if(V.children&&I[0]!==Y7e)for(F=(i?V.children.length:-1)+s,W=g.concat(V);F>-1&&F<V.children.length;){const q=V.children[F];if(U=a(q,F,W)(),U[0]===_Y)return U;F=typeof U[1]=="number"?U[1]:F+s}}return I}}}function V7e(n){return Array.isArray(n)?n:typeof n=="number"?[Q7e,n]:n==null?Tse:[n]}function kse(n,e,t,i){let r,o,s;typeof e=="function"&&typeof t!="function"?(o=void 0,s=e,r=t):(o=e,s=t,r=i),q7e(n,o,a,r);function a(c,d){const g=d[d.length-1],v=g?g.children.indexOf(c):void 0;return s(c,v,g)}}const IP={}.hasOwnProperty,$7e={};function H7e(n,e){const t=e||$7e,i=new Map,r=new Map,o=new Map,s={...k7e,...t.handlers},a={all:d,applyData:X7e,definitionById:i,footnoteById:r,footnoteCounts:o,footnoteOrder:[],handlers:s,one:c,options:t,patch:Z7e,wrap:eIe};return kse(n,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const v=g.type==="definition"?i:r,E=String(g.identifier).toUpperCase();v.has(E)||v.set(E,g)}}),a;function c(g,v){const E=g.type,I=a.handlers[E];if(IP.call(a.handlers,E)&&I)return I(a,g,v);if(a.options.passThrough&&a.options.passThrough.includes(E)){if("children"in g){const{children:F,...W}=g,V=q6(W);return V.children=a.all(g),V}return q6(g)}return(a.options.unknownHandler||J7e)(a,g,v)}function d(g){const v=[];if("children"in g){const E=g.children;let I=-1;for(;++I<E.length;){const U=a.one(E[I],g);if(U){if(I&&E[I-1].type==="break"&&(!Array.isArray(U)&&U.type==="text"&&(U.value=xY(U.value)),!Array.isArray(U)&&U.type==="element")){const F=U.children[0];F&&F.type==="text"&&(F.value=xY(F.value))}Array.isArray(U)?v.push(...U):v.push(U)}}}return v}}function Z7e(n,e){n.position&&(e.position=RBe(n))}function X7e(n,e){let t=e;if(n&&n.data){const i=n.data.hName,r=n.data.hChildren,o=n.data.hProperties;if(typeof i=="string")if(t.type==="element")t.tagName=i;else{const s="children"in t?t.children:[t];t={type:"element",tagName:i,properties:{},children:s}}t.type==="element"&&o&&Object.assign(t.properties,q6(o)),"children"in t&&t.children&&r!==null&&r!==void 0&&(t.children=r)}return t}function J7e(n,e){const t=e.data||{},i="value"in e&&!(IP.call(t,"hProperties")||IP.call(t,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:n.all(e)};return n.patch(e,i),n.applyData(e,i)}function eIe(n,e){const t=[];let i=-1;for(e&&t.push({type:"text",value:`
`});++i<n.length;)i&&t.push({type:"text",value:`
`}),t.push(n[i]);return e&&n.length>0&&t.push({type:"text",value:`
`}),t}function MY(n){let e=0,t=n.charCodeAt(e);for(;t===9||t===32;)e++,t=n.charCodeAt(e);return n.slice(e)}function SY(n,e){const t=Y7e(n,e),i=t.one(n,void 0),r=P7e(t),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&o.children.push({type:"text",value:`
`},r),o}function Z7e(n,e){return n&&"run"in n?async function(t,i){const r=SY(t,{file:i,...e});await n.run(r,i)}:function(t,i){return SY(t,{file:i,...n||e})}}function EY(n){if(n)throw n}var gI,BY;function X7e(){if(BY)return gI;BY=1;var n=Object.prototype.hasOwnProperty,e=Object.prototype.toString,t=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(d){return typeof Array.isArray=="function"?Array.isArray(d):e.call(d)==="[object Array]"},o=function(d){if(!d||e.call(d)!=="[object Object]")return!1;var g=n.call(d,"constructor"),v=d.constructor&&d.constructor.prototype&&n.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!g&&!v)return!1;var E;for(E in d);return typeof E>"u"||n.call(d,E)},s=function(d,g){t&&g.name==="__proto__"?t(d,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):d[g.name]=g.newValue},a=function(d,g){if(g==="__proto__")if(n.call(d,g)){if(i)return i(d,g).value}else return;return d[g]};return gI=function c(){var d,g,v,E,I,U,F=arguments[0],W=1,V=arguments.length,q=!1;for(typeof F=="boolean"&&(q=F,F=arguments[1]||{},W=2),(F==null||typeof F!="object"&&typeof F!="function")&&(F={});W<V;++W)if(d=arguments[W],d!=null)for(g in d)v=a(F,g),E=a(d,g),F!==E&&(q&&E&&(o(E)||(I=r(E)))?(I?(I=!1,U=v&&r(v)?v:[]):U=v&&o(v)?v:{},s(F,{name:g,newValue:c(q,U,E)})):typeof E<"u"&&s(F,{name:g,newValue:E}));return F},gI}var J7e=X7e();const yI=Mu(J7e);function DP(n){if(typeof n!="object"||n===null)return!1;const e=Object.getPrototypeOf(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function eIe(){const n=[],e={run:t,use:i};return e;function t(...r){let o=-1;const s=r.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...r);function a(c,...d){const g=n[++o];let v=-1;if(c){s(c);return}for(;++v<r.length;)(d[v]===null||d[v]===void 0)&&(d[v]=r[v]);r=d,g?tIe(g,a)(...d):s(null,...d)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return n.push(r),e}}function tIe(n,e){let t;return i;function i(...s){const a=n.length>s.length;let c;a&&s.push(r);try{c=n.apply(this,s)}catch(d){const g=d;if(a&&t)throw g;return r(g)}a||(c&&c.then&&typeof c.then=="function"?c.then(o,r):c instanceof Error?r(c):o(c))}function r(s,...a){t||(t=!0,e(s,...a))}function o(s){r(null,s)}}const ig={basename:nIe,dirname:iIe,extname:rIe,join:oIe,sep:"/"};function nIe(n,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');sM(n);let t=0,i=-1,r=n.length,o;if(e===void 0||e.length===0||e.length>n.length){for(;r--;)if(n.codePointAt(r)===47){if(o){t=r+1;break}}else i<0&&(o=!0,i=r+1);return i<0?"":n.slice(t,i)}if(e===n)return"";let s=-1,a=e.length-1;for(;r--;)if(n.codePointAt(r)===47){if(o){t=r+1;break}}else s<0&&(o=!0,s=r+1),a>-1&&(n.codePointAt(r)===e.codePointAt(a--)?a<0&&(i=r):(a=-1,i=s));return t===i?i=s:i<0&&(i=n.length),n.slice(t,i)}function iIe(n){if(sM(n),n.length===0)return".";let e=-1,t=n.length,i;for(;--t;)if(n.codePointAt(t)===47){if(i){e=t;break}}else i||(i=!0);return e<0?n.codePointAt(0)===47?"/":".":e===1&&n.codePointAt(0)===47?"//":n.slice(0,e)}function rIe(n){sM(n);let e=n.length,t=-1,i=0,r=-1,o=0,s;for(;e--;){const a=n.codePointAt(e);if(a===47){if(s){i=e+1;break}continue}t<0&&(s=!0,t=e+1),a===46?r<0?r=e:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||t<0||o===0||o===1&&r===t-1&&r===i+1?"":n.slice(r,t)}function oIe(...n){let e=-1,t;for(;++e<n.length;)sM(n[e]),n[e]&&(t=t===void 0?n[e]:t+"/"+n[e]);return t===void 0?".":sIe(t)}function sIe(n){sM(n);const e=n.codePointAt(0)===47;let t=aIe(n,!e);return t.length===0&&!e&&(t="."),t.length>0&&n.codePointAt(n.length-1)===47&&(t+="/"),e?"/"+t:t}function aIe(n,e){let t="",i=0,r=-1,o=0,s=-1,a,c;for(;++s<=n.length;){if(s<n.length)a=n.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(r===s-1||o===1))if(r!==s-1&&o===2){if(t.length<2||i!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(c=t.lastIndexOf("/"),c!==t.length-1){c<0?(t="",i=0):(t=t.slice(0,c),i=t.length-1-t.lastIndexOf("/")),r=s,o=0;continue}}else if(t.length>0){t="",i=0,r=s,o=0;continue}}e&&(t=t.length>0?t+"/..":"..",i=2)}else t.length>0?t+="/"+n.slice(r+1,s):t=n.slice(r+1,s),i=s-r-1;r=s,o=0}else a===46&&o>-1?o++:o=-1}return t}function sM(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const lIe={cwd:uIe};function uIe(){return"/"}function RP(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function cIe(n){if(typeof n=="string")n=new URL(n);else if(!RP(n)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(n.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return AIe(n)}function AIe(nLine truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oke(){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 ske=S8(function n(e){var t=this,i=e.expanded,r=i===void 0?[]:i,o=e.allowMultipleExpanded,s=o===void 0?!1:o,a=e.allowZeroExpanded,c=a===void 0?!1:a;M8(this,n),qa(this,"expanded",void 0),qa(this,"allowMultipleExpanded",void 0),qa(this,"allowZeroExpanded",void 0),qa(this,"toggleExpanded",function(d){if(t.isItemDisabled(d))return t;var g=t.isItemExpanded(d);return g?t.augment({expanded:t.expanded.filter(function(v){return v!==d})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(JTe(t.expanded),[d]):[d]})}),qa(this,"isItemDisabled",function(d){var g=t.isItemExpanded(d),v=t.expanded.length===1;return!!(g&&!t.allowZeroExpanded&&v)}),qa(this,"isItemExpanded",function(d){return t.expanded.indexOf(d)!==-1}),qa(this,"getPanelAttributes",function(d,g){var v=g??t.isItemExpanded(d);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!v:void 0,"aria-labelledby":t.getButtonId(d),id:t.getPanelId(d),hidden:v?void 0:!0}}),qa(this,"getHeadingAttributes",function(){return{role:"heading"}}),qa(this,"getButtonAttributes",function(d,g){var v=g??t.isItemExpanded(d),E=t.isItemDisabled(d);return{id:t.getButtonId(d),"aria-disabled":E,"aria-expanded":v,"aria-controls":t.getPanelId(d),role:"button",tabIndex:0}}),qa(this,"getPanelId",function(d){return"accordion__panel-".concat(d)}),qa(this,"getButtonId",function(d){return"accordion__heading-".concat(d)}),qa(this,"augment",function(d){return new n(FP({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},d))}),this.expanded=r,this.allowMultipleExpanded=s,this.allowZeroExpanded=c}),tae=ct.createContext(null),nae=(function(n){sF(t,n);var e=aF(t);function t(){var i;M8(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),qa(Qm(i),"state",new ske({expanded:i.props.preExpanded,allowMultipleExpanded:i.props.allowMultipleExpanded,allowZeroExpanded:i.props.allowZeroExpanded})),qa(Qm(i),"toggleExpanded",function(a){i.setState(function(c){return c.toggleExpanded(a)},function(){i.props.onChange&&i.props.onChange(i.state.expanded)})}),qa(Qm(i),"isItemDisabled",function(a){return i.state.isItemDisabled(a)}),qa(Qm(i),"isItemExpanded",function(a){return i.state.isItemExpanded(a)}),qa(Qm(i),"getPanelAttributes",function(a,c){return i.state.getPanelAttributes(a,c)}),qa(Qm(i),"getHeadingAttributes",function(){return i.state.getHeadingAttributes()}),qa(Qm(i),"getButtonAttributes",function(a,c){return i.state.getButtonAttributes(a,c)}),i}return S8(t,[{key:"render",value:function(){var r=this.state,o=r.allowZeroExpanded,s=r.allowMultipleExpanded;return ct.createElement(tae.Provider,{value:{allowMultipleExpanded:s,allowZeroExpanded:o,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t})(ct.PureComponent);qa(nae,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var iae=(function(n){sF(t,n);var e=aF(t);function t(){var i;M8(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),qa(Qm(i),"renderChildren",function(a){return a?i.props.children(a):null}),i}return S8(t,[{key:"render",value:function(){return ct.createElement(tae.Consumer,null,this.renderChildren)}}]),t})(ct.PureComponent),ake=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],lke=function(e){var t=e.className,i=t===void 0?"accordion":t,r=e.allowMultipleExpanded,o=e.allowZeroExpanded,s=e.onChange,a=e.preExpanded,c=E8(e,ake);return ct.createElement(nae,{preExpanded:a,allowMultipleExpanded:r,allowZeroExpanded:o,onChange:s},ct.createElement("div",Pg({"data-accordion-component":"Accordion",className:i},c)))},NP;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(NP||(NP={}));var rae=NP,EI=0;function uke(){var n=EI;return EI=EI+1,"raa-".concat(n)}var cke=ct.useId||uke,Ake=/[\u0009\u000a\u000c\u000d\u0020]/g;function lw(n){return n===""||Ake.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var oae=ct.createContext(null),hke=function(e){var t=e.children,i=e.uuid,r=e.accordionContext,o=e.dangerouslySetExpanded,s=function(){r.toggleExpanded(i)},a=function(d){var g=o??d.isItemExpanded(i),v=d.isItemDisabled(i),E=d.getPanelAttributes(i,o),I=d.getHeadingAttributes(i),U=d.getButtonAttributes(i,o);return ct.createElement(oae.Provider,{value:{uuid:i,expanded:g,disabled:v,toggleExpanded:s,panelAttributes:E,headingAttributes:I,buttonAttributes:U}},t)};return ct.creat Line truncated
`}),t}function xY(n){let e=0,t=n.charCodeAt(e);for(;t===9||t===32;)e++,t=n.charCodeAt(e);return n.slice(e)}function wY(n,e){const t=H7e(n,e),i=t.one(n,void 0),r=F7e(t),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&o.children.push({type:"text",value:`
`},r),o}function tIe(n,e){return n&&"run"in n?async function(t,i){const r=wY(t,{file:i,...e});await n.run(r,i)}:function(t,i){return wY(t,{file:i,...n||e})}}function MY(n){if(n)throw n}var pI,SY;function nIe(){if(SY)return pI;SY=1;var n=Object.prototype.hasOwnProperty,e=Object.prototype.toString,t=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(d){return typeof Array.isArray=="function"?Array.isArray(d):e.call(d)==="[object Array]"},o=function(d){if(!d||e.call(d)!=="[object Object]")return!1;var g=n.call(d,"constructor"),v=d.constructor&&d.constructor.prototype&&n.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!g&&!v)return!1;var E;for(E in d);return typeof E>"u"||n.call(d,E)},s=function(d,g){t&&g.name==="__proto__"?t(d,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):d[g.name]=g.newValue},a=function(d,g){if(g==="__proto__")if(n.call(d,g)){if(i)return i(d,g).value}else return;return d[g]};return pI=function c(){var d,g,v,E,I,U,F=arguments[0],W=1,V=arguments.length,q=!1;for(typeof F=="boolean"&&(q=F,F=arguments[1]||{},W=2),(F==null||typeof F!="object"&&typeof F!="function")&&(F={});W<V;++W)if(d=arguments[W],d!=null)for(g in d)v=a(F,g),E=a(d,g),F!==E&&(q&&E&&(o(E)||(I=r(E)))?(I?(I=!1,U=v&&r(v)?v:[]):U=v&&o(v)?v:{},s(F,{name:g,newValue:c(q,U,E)})):typeof E<"u"&&s(F,{name:g,newValue:E}));return F},pI}var iIe=nIe();const mI=Su(iIe);function TP(n){if(typeof n!="object"||n===null)return!1;const e=Object.getPrototypeOf(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function rIe(){const n=[],e={run:t,use:i};return e;function t(...r){let o=-1;const s=r.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...r);function a(c,...d){const g=n[++o];let v=-1;if(c){s(c);return}for(;++v<r.length;)(d[v]===null||d[v]===void 0)&&(d[v]=r[v]);r=d,g?oIe(g,a)(...d):s(null,...d)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return n.push(r),e}}function oIe(n,e){let t;return i;function i(...s){const a=n.length>s.length;let c;a&&s.push(r);try{c=n.apply(this,s)}catch(d){const g=d;if(a&&t)throw g;return r(g)}a||(c&&c.then&&typeof c.then=="function"?c.then(o,r):c instanceof Error?r(c):o(c))}function r(s,...a){t||(t=!0,e(s,...a))}function o(s){r(null,s)}}const ng={basename:sIe,dirname:aIe,extname:lIe,join:uIe,sep:"/"};function sIe(n,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');rM(n);let t=0,i=-1,r=n.length,o;if(e===void 0||e.length===0||e.length>n.length){for(;r--;)if(n.codePointAt(r)===47){if(o){t=r+1;break}}else i<0&&(o=!0,i=r+1);return i<0?"":n.slice(t,i)}if(e===n)return"";let s=-1,a=e.length-1;for(;r--;)if(n.codePointAt(r)===47){if(o){t=r+1;break}}else s<0&&(o=!0,s=r+1),a>-1&&(n.codePointAt(r)===e.codePointAt(a--)?a<0&&(i=r):(a=-1,i=s));return t===i?i=s:i<0&&(i=n.length),n.slice(t,i)}function aIe(n){if(rM(n),n.length===0)return".";let e=-1,t=n.length,i;for(;--t;)if(n.codePointAt(t)===47){if(i){e=t;break}}else i||(i=!0);return e<0?n.codePointAt(0)===47?"/":".":e===1&&n.codePointAt(0)===47?"//":n.slice(0,e)}function lIe(n){rM(n);let e=n.length,t=-1,i=0,r=-1,o=0,s;for(;e--;){const a=n.codePointAt(e);if(a===47){if(s){i=e+1;break}continue}t<0&&(s=!0,t=e+1),a===46?r<0?r=e:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||t<0||o===0||o===1&&r===t-1&&r===i+1?"":n.slice(r,t)}function uIe(...n){let e=-1,t;for(;++e<n.length;)rM(n[e]),n[e]&&(t=t===void 0?n[e]:t+"/"+n[e]);return t===void 0?".":cIe(t)}function cIe(n){rM(n);const e=n.codePointAt(0)===47;let t=AIe(n,!e);return t.length===0&&!e&&(t="."),t.length>0&&n.codePointAt(n.length-1)===47&&(t+="/"),e?"/"+t:t}function AIe(n,e){let t="",i=0,r=-1,o=0,s=-1,a,c;for(;++s<=n.length;){if(s<n.length)a=n.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(r===s-1||o===1))if(r!==s-1&&o===2){if(t.length<2||i!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(c=t.lastIndexOf("/"),c!==t.length-1){c<0?(t="",i=0):(t=t.slice(0,c),i=t.length-1-t.lastIndexOf("/")),r=s,o=0;continue}}else if(t.length>0){t="",i=0,r=s,o=0;continue}}e&&(t=t.length>0?t+"/..":"..",i=2)}else t.length>0?t+="/"+n.slice(r+1,s):t=n.slice(r+1,s),i=s-r-1;r=s,o=0}else a===46&&o>-1?o++:o=-1}return t}function rM(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const hIe={cwd:dIe};function dIe(){return"/"}function kP(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function fIe(n){if(typeof n=="string")n=new URL(n);else if(!kP(n)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(n.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return pIe(n)}function pIe(nLine truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uke(){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 cke=M8(function n(e){var t=this,i=e.expanded,r=i===void 0?[]:i,o=e.allowMultipleExpanded,s=o===void 0?!1:o,a=e.allowZeroExpanded,c=a===void 0?!1:a;w8(this,n),Va(this,"expanded",void 0),Va(this,"allowMultipleExpanded",void 0),Va(this,"allowZeroExpanded",void 0),Va(this,"toggleExpanded",function(d){if(t.isItemDisabled(d))return t;var g=t.isItemExpanded(d);return g?t.augment({expanded:t.expanded.filter(function(v){return v!==d})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(ike(t.expanded),[d]):[d]})}),Va(this,"isItemDisabled",function(d){var g=t.isItemExpanded(d),v=t.expanded.length===1;return!!(g&&!t.allowZeroExpanded&&v)}),Va(this,"isItemExpanded",function(d){return t.expanded.indexOf(d)!==-1}),Va(this,"getPanelAttributes",function(d,g){var v=g??t.isItemExpanded(d);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!v:void 0,"aria-labelledby":t.getButtonId(d),id:t.getPanelId(d),hidden:v?void 0:!0}}),Va(this,"getHeadingAttributes",function(){return{role:"heading"}}),Va(this,"getButtonAttributes",function(d,g){var v=g??t.isItemExpanded(d),E=t.isItemDisabled(d);return{id:t.getButtonId(d),"aria-disabled":E,"aria-expanded":v,"aria-controls":t.getPanelId(d),role:"button",tabIndex:0}}),Va(this,"getPanelId",function(d){return"accordion__panel-".concat(d)}),Va(this,"getButtonId",function(d){return"accordion__heading-".concat(d)}),Va(this,"augment",function(d){return new n(UP({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},d))}),this.expanded=r,this.allowMultipleExpanded=s,this.allowZeroExpanded=c}),iae=ct.createContext(null),rae=(function(n){rF(t,n);var e=oF(t);function t(){var i;w8(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),Va(Wm(i),"state",new cke({expanded:i.props.preExpanded,allowMultipleExpanded:i.props.allowMultipleExpanded,allowZeroExpanded:i.props.allowZeroExpanded})),Va(Wm(i),"toggleExpanded",function(a){i.setState(function(c){return c.toggleExpanded(a)},function(){i.props.onChange&&i.props.onChange(i.state.expanded)})}),Va(Wm(i),"isItemDisabled",function(a){return i.state.isItemDisabled(a)}),Va(Wm(i),"isItemExpanded",function(a){return i.state.isItemExpanded(a)}),Va(Wm(i),"getPanelAttributes",function(a,c){return i.state.getPanelAttributes(a,c)}),Va(Wm(i),"getHeadingAttributes",function(){return i.state.getHeadingAttributes()}),Va(Wm(i),"getButtonAttributes",function(a,c){return i.state.getButtonAttributes(a,c)}),i}return M8(t,[{key:"render",value:function(){var r=this.state,o=r.allowZeroExpanded,s=r.allowMultipleExpanded;return ct.createElement(iae.Provider,{value:{allowMultipleExpanded:s,allowZeroExpanded:o,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t})(ct.PureComponent);Va(rae,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var oae=(function(n){rF(t,n);var e=oF(t);function t(){var i;w8(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),Va(Wm(i),"renderChildren",function(a){return a?i.props.children(a):null}),i}return M8(t,[{key:"render",value:function(){return ct.createElement(iae.Consumer,null,this.renderChildren)}}]),t})(ct.PureComponent),Ake=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],hke=function(e){var t=e.className,i=t===void 0?"accordion":t,r=e.allowMultipleExpanded,o=e.allowZeroExpanded,s=e.onChange,a=e.preExpanded,c=S8(e,Ake);return ct.createElement(rae,{preExpanded:a,allowMultipleExpanded:r,allowZeroExpanded:o,onChange:s},ct.createElement("div",Rg({"data-accordion-component":"Accordion",className:i},c)))},zP;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(zP||(zP={}));var sae=zP,MI=0;function dke(){var n=MI;return MI=MI+1,"raa-".concat(n)}var fke=ct.useId||dke,pke=/[\u0009\u000a\u000c\u000d\u0020]/g;function sw(n){return n===""||pke.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var aae=ct.createContext(null),mke=function(e){var t=e.children,i=e.uuid,r=e.accordionContext,o=e.dangerouslySetExpanded,s=function(){r.toggleExpanded(i)},a=function(d){var g=o??d.isItemExpanded(i),v=d.isItemDisabled(i),E=d.getPanelAttributes(i,o),I=d.getHeadingAttributes(i),U=d.getButtonAttributes(i,o);return ct.createElement(aae.Provider,{value:{uuid:i,expanded:g,disabled:v,toggleExpanded:s,panelAttributes:E,headingAttributes:I,buttonAttributes:U}},t)};return ct.creat 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.”
`,lae=(function(n){sF(t,n);var e=aF(t);function t(){var i;M8(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),qa(Qm(i),"ref",void 0),qa(Qm(i),"setRef",function(a){i.ref=a}),i}return S8(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return ct.createElement("div",Pg({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(r){if(r===void 0)throw new Error("ref is undefined");if(!(r.childElementCount===1&&r.firstElementChild&&r.firstElementChild.getAttribute("data-accordion-component")==="AccordionItemButton"))throw new Error(xke)}}]),t})(ct.PureComponent);qa(lae,"defaultProps",_ke);var uae=function(e){return ct.createElement(B8,null,function(t){var i=t.headingAttributes;return e.id&&lw(e.id),ct.createElement(lae,Pg({},e,i))})};uae.displayName=rae.AccordionItemHeading;var wke=["className","region","id"],Mke=function(e){var t=e.className,i=t===void 0?"accordion__panel":t,r=e.region,o=e.id,s=E8(e,wke),a=function(d){var g=d.panelAttributes;o&&lw(o);var v=FP(FP({},g),{},{"aria-labelledby":r?g["aria-labelledby"]:void 0});return ct.createElement("div",Pg({"data-accordion-component":"AccordionItemPanel",className:i},s,v,{role:r?"region":void 0}))};return ct.createElement(B8,null,a)};function uw(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx",e="f40eb4f8819f6ee012cc04966cfc2d0bebd5d750",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx",statementMap:{0:{start:{line:3,column:25},end:{line:5,column:1}},1:{start:{line:4,column:2},end:{line:4,column:54}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:3,column:25},end:{line:3,column:26}},loc:{start:{line:3,column:36},end:{line:5,column:1}},line:3}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx"],names:[],mappings:"AAOS;AAPT,SAAS,iBAAsC;AAMxC,aAAM,YAAsC,CAAC,UAAU;AAC5D,SAAO,oBAAC,aAAW,GAAG,OAAO;AAC/B;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f40eb4f8819f6ee012cc04966cfc2d0bebd5d750"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return uw=function(){return s},s}uw();uw().s[0]++;const I8=n=>(uw().f[0]++,uw().s[1]++,le.jsx(Coe,{...n}));function cw(n){return _o({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 19a2 2 0 0 0 2 2c2 0 2 -4 3 -9s1 -9 3 -9a2 2 0 0 1 2 2"},child:[]},{tag:"path",attr:{d:"M5 12h6"},child:[]},{tag:"path",attr:{d:"M15 12l6 6"},child:[]},{tag:"path",attr:{d:"M15 18l6 -6"},child:[]}]})(n)}function T8(n){return _o({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm104,40H40a12,12,0,0,0,0,24H144a12,12,0,0,0,0-24Zm88,0H220V168a12,12,0,0,0-24,0v12H184a12,12,0,0,0,0,24h12v12a12,12,0,0,0,24,0V204h12a12,12,0,0,0,0-24Z"},child:[]}]})(n)}function PC(){var n="/home/runner/work/maputnik/maputnik/src/libs/filterops.ts",e="99dad9631fbee5fc23be2dafaf7c7eea92c38eac",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/filterops.ts",statementMap:{0:{start:{line:2,column:34},end:{line:2,column:56}},1:{start:{line:3,column:28},end:{line:3,column:41}},2:{start:{line:4,column:30},end:{line:4,column:123}},3:{start:{line:4,column:88},end:{line:4,column:122}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:80},end:{line:4,column:81}},loc:{start:{line:4,column:88},end:{line:4,column:122}},line:4}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/libs/filterops.ts"],names:[],mappings:"AAAA,OAAO,YAAY;AAEZ,aAAM,qBAAqB,CAAC,OAAO,OAAO,MAAM;AAChD,aAAM,eAAe,CAAC,MAAM,KAAK;AACjC,aAAM,iBAAiB,OAC3B,KAAK,OAAO,gBAAgB,MAAM,EAClC,OAAO,QAAM,mBAAmB,QAAQ,EAAE,IAAI,CAAC;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"99dad9631fbee5fc23be2dafaf7c7eea92c38eac"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return PC=function(){return s},s}PC();const lF=(PC().s[0]++,["all","any","none"]);PC().s[1]++;const Ske=(PC().s[2]++,Object.keys(Vr.filter_operator.values).filter(n=>(PC().f[0]++,PC().s[3]++,lF.indexOf(n)<0)));function Vi(){var n="/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx",e="2ea44eca06e1e5dcffbd2d854404c348b27e1565",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx",statementMap:{0:{start:{line:8,column:2},end:{line:8,column:25}},1:{start:{line:8,column:16},end:{line:8,column:25}},2:{start:{line:9,column:2},end:{line:9,column:25}}, Line truncated
`,cae=(function(n){rF(t,n);var e=oF(t);function t(){var i;w8(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),Va(Wm(i),"ref",void 0),Va(Wm(i),"setRef",function(a){i.ref=a}),i}return M8(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return ct.createElement("div",Rg({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(r){if(r===void 0)throw new Error("ref is undefined");if(!(r.childElementCount===1&&r.firstElementChild&&r.firstElementChild.getAttribute("data-accordion-component")==="AccordionItemButton"))throw new Error(Eke)}}]),t})(ct.PureComponent);Va(cae,"defaultProps",Ske);var Aae=function(e){return ct.createElement(E8,null,function(t){var i=t.headingAttributes;return e.id&&sw(e.id),ct.createElement(cae,Rg({},e,i))})};Aae.displayName=sae.AccordionItemHeading;var Bke=["className","region","id"],Oke=function(e){var t=e.className,i=t===void 0?"accordion__panel":t,r=e.region,o=e.id,s=S8(e,Bke),a=function(d){var g=d.panelAttributes;o&&sw(o);var v=UP(UP({},g),{},{"aria-labelledby":r?g["aria-labelledby"]:void 0});return ct.createElement("div",Rg({"data-accordion-component":"AccordionItemPanel",className:i},s,v,{role:r?"region":void 0}))};return ct.createElement(E8,null,a)};function aw(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx",e="f40eb4f8819f6ee012cc04966cfc2d0bebd5d750",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx",statementMap:{0:{start:{line:3,column:25},end:{line:5,column:1}},1:{start:{line:4,column:2},end:{line:4,column:54}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:3,column:25},end:{line:3,column:26}},loc:{start:{line:3,column:36},end:{line:5,column:1}},line:3}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx"],names:[],mappings:"AAOS;AAPT,SAAS,iBAAsC;AAMxC,aAAM,YAAsC,CAAC,UAAU;AAC5D,SAAO,oBAAC,aAAW,GAAG,OAAO;AAC/B;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f40eb4f8819f6ee012cc04966cfc2d0bebd5d750"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return aw=function(){return s},s}aw();aw().s[0]++;const O8=n=>(aw().f[0]++,aw().s[1]++,le.jsx(xoe,{...n}));function lw(n){return _o({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 19a2 2 0 0 0 2 2c2 0 2 -4 3 -9s1 -9 3 -9a2 2 0 0 1 2 2"},child:[]},{tag:"path",attr:{d:"M5 12h6"},child:[]},{tag:"path",attr:{d:"M15 12l6 6"},child:[]},{tag:"path",attr:{d:"M15 18l6 -6"},child:[]}]})(n)}function I8(n){return _o({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm104,40H40a12,12,0,0,0,0,24H144a12,12,0,0,0,0-24Zm88,0H220V168a12,12,0,0,0-24,0v12H184a12,12,0,0,0,0,24h12v12a12,12,0,0,0,24,0V204h12a12,12,0,0,0,0-24Z"},child:[]}]})(n)}function RC(){var n="/home/runner/work/maputnik/maputnik/src/libs/filterops.ts",e="99dad9631fbee5fc23be2dafaf7c7eea92c38eac",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/filterops.ts",statementMap:{0:{start:{line:2,column:34},end:{line:2,column:56}},1:{start:{line:3,column:28},end:{line:3,column:41}},2:{start:{line:4,column:30},end:{line:4,column:123}},3:{start:{line:4,column:88},end:{line:4,column:122}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:80},end:{line:4,column:81}},loc:{start:{line:4,column:88},end:{line:4,column:122}},line:4}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/libs/filterops.ts"],names:[],mappings:"AAAA,OAAO,YAAY;AAEZ,aAAM,qBAAqB,CAAC,OAAO,OAAO,MAAM;AAChD,aAAM,eAAe,CAAC,MAAM,KAAK;AACjC,aAAM,iBAAiB,OAC3B,KAAK,OAAO,gBAAgB,MAAM,EAClC,OAAO,QAAM,mBAAmB,QAAQ,EAAE,IAAI,CAAC;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"99dad9631fbee5fc23be2dafaf7c7eea92c38eac"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return RC=function(){return s},s}RC();const sF=(RC().s[0]++,["all","any","none"]);RC().s[1]++;const Ike=(RC().s[2]++,Object.keys(Vr.filter_operator.values).filter(n=>(RC().f[0]++,RC().s[3]++,sF.indexOf(n)<0)));function Vi(){var n="/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx",e="2ea44eca06e1e5dcffbd2d854404c348b27e1565",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx",statementMap:{0:{start:{line:8,column:2},end:{line:8,column:25}},1:{start:{line:8,column:16},end:{line:8,column:25}},2:{start:{line:9,column:2},end:{line:9,column:25}}, Line truncated
rgba(`+oe.r+","+oe.g+","+oe.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:oe.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("+oe.r+","+oe.g+","+oe.b+`, 0) 0%,
rgba(`+oe.r+","+oe.g+","+oe.b+", 1) 100%)"},pointer:{left:0,top:oe.a*100+"%"}},overwrite:n({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return i.default.createElement("div",{style:re.alpha},i.default.createElement("div",{style:re.checkboard},i.default.createElement(d.default,{renderers:this.props.renderers})),i.default.createElement("div",{style:re.gradient}),i.default.createElement("div",{style:re.container,ref:function(X){return ee.container=X},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("div",{style:re.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:re.slider}))))}}]),V})(t.PureComponent||t.Component);return d2.default=F,d2}var p2={},_H;function YDe(){if(_H)return p2;_H=1,Object.defineProperty(p2,"__esModule",{value:!0}),p2.EditableInput=void 0;var n=(function(){function q(ee,oe){for(var re=0;re<oe.length;re++){var ie=oe[re];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(ee,ie.key,ie)}}return function(ee,oe,re){return oe&&q(ee.prototype,oe),re&&q(ee,re),ee}})(),e=Hl(),t=o(e),i=d0(),r=o(i);function o(q){return q&&q.__esModule?q:{default:q}}function s(q,ee,oe){return ee in q?Object.defineProperty(q,ee,{value:oe,enumerable:!0,configurable:!0,writable:!0}):q[ee]=oe,q}function a(q,ee){if(!(q instanceof ee))throw new TypeError("Cannot call a class as a function")}function c(q,ee){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ee&&(typeof ee=="object"||typeof ee=="function")?ee:q}function d(q,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ee);q.prototype=Object.create(ee&&ee.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),ee&&(Object.setPrototypeOf?Object.setPrototypeOf(q,ee):q.__proto__=ee)}var g=1,v=38,E=40,I=[v,E],U=function(ee){return I.indexOf(ee)>-1},F=function(ee){return Number(String(ee).replace(/%/g,""))},W=1,V=p2.EditableInput=(function(q){d(ee,q);function ee(oe){a(this,ee);var re=c(this,(ee.__proto__||Object.getPrototypeOf(ee)).call(this));return re.handleBlur=function(){re.state.blurValue&&re.setState({value:re.state.blurValue,blurValue:null})},re.handleChange=function(ie){re.setUpdatedValue(ie.target.value,ie)},re.handleKeyDown=function(ie){var X=F(ie.target.value);if(!isNaN(X)&&U(ie.keyCode)){var ce=re.getArrowOffset(),$=ie.keyCode===v?X+ce:X-ce;re.setUpdatedValue($,ie)}},re.handleDrag=function(ie){if(re.props.dragLabel){var X=Math.round(re.props.value+ie.movementX);X>=0&&X<=re.props.dragMax&&re.props.onChange&&re.props.onChange(re.getValueObjectWithLabel(X),ie)}},re.handleMouseDown=function(ie){re.props.dragLabel&&(ie.preventDefault(),re.handleDrag(ie),window.addEventListener("mousemove",re.handleDrag),window.addEventListener("mouseup",re.handleMouseUp))},re.handleMouseUp=function(){re.unbindEventListeners()},re.unbindEventListeners=function(){window.removeEventListener("mousemove",re.handleDrag),window.removeEventListener("mouseup",re.handleMouseUp)},re.state={value:String(oe.value).toUpperCase(),blurValue:String(oe.value).toUpperCase()},re.inputId="rc-editable-input-"+W++,re}return n(ee,[{key:"componentDidUpdate",value:function(re,ie){this.props.value!==this.state.value&&(re.value!==this.props.value||ie.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(re){return s({},this.props.label,re)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||g}},{key:"setUpdatedValue",value:function(re,ie){var X=this.props.label?this.getValueObjectWithLabel(re):re;this.props.onChange&&this.props.onChange(X,ie),this.setState({value:re})}},{key:"render",value:function(){var re=this,ie=(0,r.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return t.default.createElement("div",{style:ie.wrap},t.default.createElement("input",{id:this.inputId,style:ie.input,ref:function(ce){return re.input=ce},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:ie.label,onM Line truncated
rgba(`+oe.r+","+oe.g+","+oe.b+", 1) 100%)"},pointer:{left:0,top:oe.a*100+"%"}},overwrite:n({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return i.default.createElement("div",{style:re.alpha},i.default.createElement("div",{style:re.checkboard},i.default.createElement(d.default,{renderers:this.props.renderers})),i.default.createElement("div",{style:re.gradient}),i.default.createElement("div",{style:re.container,ref:function(X){return ee.container=X},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("div",{style:re.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:re.slider}))))}}]),V})(t.PureComponent||t.Component);return h2.default=F,h2}var f2={},bH;function HDe(){if(bH)return f2;bH=1,Object.defineProperty(f2,"__esModule",{value:!0}),f2.EditableInput=void 0;var n=(function(){function q(ee,oe){for(var re=0;re<oe.length;re++){var ie=oe[re];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(ee,ie.key,ie)}}return function(ee,oe,re){return oe&&q(ee.prototype,oe),re&&q(ee,re),ee}})(),e=Zl(),t=o(e),i=h0(),r=o(i);function o(q){return q&&q.__esModule?q:{default:q}}function s(q,ee,oe){return ee in q?Object.defineProperty(q,ee,{value:oe,enumerable:!0,configurable:!0,writable:!0}):q[ee]=oe,q}function a(q,ee){if(!(q instanceof ee))throw new TypeError("Cannot call a class as a function")}function c(q,ee){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ee&&(typeof ee=="object"||typeof ee=="function")?ee:q}function d(q,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ee);q.prototype=Object.create(ee&&ee.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),ee&&(Object.setPrototypeOf?Object.setPrototypeOf(q,ee):q.__proto__=ee)}var g=1,v=38,E=40,I=[v,E],U=function(ee){return I.indexOf(ee)>-1},F=function(ee){return Number(String(ee).replace(/%/g,""))},W=1,V=f2.EditableInput=(function(q){d(ee,q);function ee(oe){a(this,ee);var re=c(this,(ee.__proto__||Object.getPrototypeOf(ee)).call(this));return re.handleBlur=function(){re.state.blurValue&&re.setState({value:re.state.blurValue,blurValue:null})},re.handleChange=function(ie){re.setUpdatedValue(ie.target.value,ie)},re.handleKeyDown=function(ie){var X=F(ie.target.value);if(!isNaN(X)&&U(ie.keyCode)){var ce=re.getArrowOffset(),$=ie.keyCode===v?X+ce:X-ce;re.setUpdatedValue($,ie)}},re.handleDrag=function(ie){if(re.props.dragLabel){var X=Math.round(re.props.value+ie.movementX);X>=0&&X<=re.props.dragMax&&re.props.onChange&&re.props.onChange(re.getValueObjectWithLabel(X),ie)}},re.handleMouseDown=function(ie){re.props.dragLabel&&(ie.preventDefault(),re.handleDrag(ie),window.addEventListener("mousemove",re.handleDrag),window.addEventListener("mouseup",re.handleMouseUp))},re.handleMouseUp=function(){re.unbindEventListeners()},re.unbindEventListeners=function(){window.removeEventListener("mousemove",re.handleDrag),window.removeEventListener("mouseup",re.handleMouseUp)},re.state={value:String(oe.value).toUpperCase(),blurValue:String(oe.value).toUpperCase()},re.inputId="rc-editable-input-"+W++,re}return n(ee,[{key:"componentDidUpdate",value:function(re,ie){this.props.value!==this.state.value&&(re.value!==this.props.value||ie.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(re){return s({},this.props.label,re)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||g}},{key:"setUpdatedValue",value:function(re,ie){var X=this.props.label?this.getValueObjectWithLabel(re):re;this.props.onChange&&this.props.onChange(X,ie),this.setState({value:re})}},{key:"render",value:function(){var re=this,ie=(0,r.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return t.default.createElement("div",{style:ie.wrap},t.default.createElement("input",{id:this.inputId,style:ie.input,ref:function(ce){return re.input=ce},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:ie.label,onM Line truncated
.hue-horizontal {
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
@@ -922,7 +922,7 @@ From the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion)
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:ee.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:ee.slider}))))}}]),U})(e.PureComponent||e.Component);return m2.default=E,m2}var g2={},MH;function $De(){if(MH)return g2;MH=1,Object.defineProperty(g2,"__esModule",{value:!0}),g2.Raised=void 0;var n=Hl(),e=c(n),t=y8(),i=c(t),r=d0(),o=c(r),s=Nae(),a=c(s);function c(g){return g&&g.__esModule?g:{default:g}}var d=g2.Raised=function(v){var E=v.zDepth,I=v.radius,U=v.background,F=v.children,W=v.styles,V=W===void 0?{}:W,q=(0,o.default)((0,a.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+E+"px "+E*4+"px rgba(0,0,0,.24)",borderRadius:I,background:U}},"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%"}}},V),{"zDepth-1":E===1});return e.default.createElement("div",{style:q.wrap},e.default.createElement("div",{style:q.bg}),e.default.createElement("div",{style:q.content},F))};return d.propTypes={background:i.default.string,zDepth:i.default.oneOf([0,1,2,3,4,5]),radius:i.default.number,styles:i.default.object},d.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},g2.default=d,g2}var y2={},K9,SH;function HDe(){if(SH)return K9;SH=1;var n=h0(),e=function(){return n.Date.now()};return K9=e,K9}var F9,EH;function ZDe(){if(EH)return F9;EH=1;var n=/\s/;function e(t){for(var i=t.length;i--&&n.test(t.charAt(i)););return i}return F9=e,F9}var z9,BH;function XDe(){if(BH)return z9;BH=1;var n=ZDe(),e=/^\s+/;function t(i){return i&&i.slice(0,n(i)+1).replace(e,"")}return z9=t,z9}var j9,OH;function JDe(){if(OH)return j9;OH=1;var n=XDe(),e=nm(),t=j8(),i=NaN,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function c(d){if(typeof d=="number")return d;if(t(d))return i;if(e(d)){var g=typeof d.valueOf=="function"?d.valueOf():d;d=e(g)?g+"":g}if(typeof d!="string")return d===0?d:+d;d=n(d);var v=o.test(d);return v||s.test(d)?a(d.slice(2),v?2:8):r.test(d)?i:+d}return j9=c,j9}var N9,IH;function Gae(){if(IH)return N9;IH=1;var n=nm(),e=HDe(),t=JDe(),i="Expected a function",r=Math.max,o=Math.min;function s(a,c,d){var g,v,E,I,U,F,W=0,V=!1,q=!1,ee=!0;if(typeof a!="function")throw new TypeError(i);c=t(c)||0,n(d)&&(V=!!d.leading,q="maxWait"in d,E=q?r(t(d.maxWait)||0,c):E,ee="trailing"in d?!!d.trailing:ee);function oe(me){var xe=g,Pe=v;return g=v=void 0,W=me,I=a.apply(Pe,xe),I}function re(me){return W=me,U=setTimeout(ce,c),V?oe(me):I}function ie(me){var xe=me-F,Pe=me-W,ke=c-xe;return q?o(ke,E-Pe):ke}function X(me){var xe=me-F,Pe=me-W;return F===void 0||xe>=c||xe<0||q&&Pe>=E}function ce(){var me=e();if(X(me))return $(me);U=setTimeout(ce,ie(me))}function $(me){return U=void 0,ee&&g?oe(me):(g=v=void 0,I)}function ue(){U!==void 0&&clearTimeout(U),W=0,g=F=v=U=void 0}function de(){return U===void 0?I:$(e())}function be(){var me=e(),xe=X(me);if(g=arguments,v=this,F=me,xe){if(U===void 0)return re(F);if(q)return clearTimeout(U),U=setTimeout(ce,c),oe(F)}return U===void 0&&(U=setTimeout(ce,c)),I}return be.cancel=ue,be.flush=de,be}return N9=s,N9}var G9,TH;function eRe(){if(TH)return G9;TH=1;var n=Gae(),e=nm(),t="Expected a function";function i(r,o,s){var a=!0,c=!0;if(typeof r!="function")throw new TypeError(t);return e(s)&&(a="leading"in s?!!s.leading:a,c="trailing"in s?!!s.trailing:c),n(r,o,{leading:a,maxWait:o,trailing:c})}return G9=i,G9}var LS={},kH;function tRe(){return kH||(kH=1,Object.defineProperty(LS,"__esModule",{value:!0}),LS.calculateChange=function(e,t,i){var r=i.getBoundingClientRect(),o=r.width,s=r.height,a=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,c=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,d=a-(i.getBoundingClientRect().left+window.pageXOffset),g=c-(i.getBoundingClientRect().top+window.pageYOffset);d<0?d=0:d>o&&(d=o),g<0?g=0:g>s&&(g=s);var v=d/o,E=1-g/s;return{h:t.h,s:v,v:E,a:t.a,source:"hsv"}}),LS}var DH;function nRe(){if(DH)return y2;DH=1,Object.defineProperty(y2,"__esModule",{value:!0}),y2.Saturation=void 0;var n=(function(){function F(W,V){for(var q=0;q<V.length;q++){var ee=V[q];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(W,ee.key,ee)}}return function(W,V,q){return V&&F(W.prototype,V),q&&F(W,q),W}})(),e=Hl(),t=g(e),i=d0(),r=g(i),o=eRe(),s=g(o),a=tRe(),c=d(a);function d(F){if(F&&F.__esModule)return F;var W={};if(F!=null)for(var V in F)Object.prototype.hasOwnProperty.call(F,V)&&(W[V]=F[V]);return W.default=F,W}function Line truncated
`),t.default.createElement("div",{style:ee.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:ee.slider}))))}}]),U})(e.PureComponent||e.Component);return p2.default=E,p2}var m2={},xH;function JDe(){if(xH)return m2;xH=1,Object.defineProperty(m2,"__esModule",{value:!0}),m2.Raised=void 0;var n=Zl(),e=c(n),t=g8(),i=c(t),r=h0(),o=c(r),s=Wae(),a=c(s);function c(g){return g&&g.__esModule?g:{default:g}}var d=m2.Raised=function(v){var E=v.zDepth,I=v.radius,U=v.background,F=v.children,W=v.styles,V=W===void 0?{}:W,q=(0,o.default)((0,a.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+E+"px "+E*4+"px rgba(0,0,0,.24)",borderRadius:I,background:U}},"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%"}}},V),{"zDepth-1":E===1});return e.default.createElement("div",{style:q.wrap},e.default.createElement("div",{style:q.bg}),e.default.createElement("div",{style:q.content},F))};return d.propTypes={background:i.default.string,zDepth:i.default.oneOf([0,1,2,3,4,5]),radius:i.default.number,styles:i.default.object},d.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},m2.default=d,m2}var g2={},L9,wH;function eRe(){if(wH)return L9;wH=1;var n=A0(),e=function(){return n.Date.now()};return L9=e,L9}var U9,MH;function tRe(){if(MH)return U9;MH=1;var n=/\s/;function e(t){for(var i=t.length;i--&&n.test(t.charAt(i)););return i}return U9=e,U9}var K9,SH;function nRe(){if(SH)return K9;SH=1;var n=tRe(),e=/^\s+/;function t(i){return i&&i.slice(0,n(i)+1).replace(e,"")}return K9=t,K9}var F9,EH;function iRe(){if(EH)return F9;EH=1;var n=nRe(),e=em(),t=z8(),i=NaN,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function c(d){if(typeof d=="number")return d;if(t(d))return i;if(e(d)){var g=typeof d.valueOf=="function"?d.valueOf():d;d=e(g)?g+"":g}if(typeof d!="string")return d===0?d:+d;d=n(d);var v=o.test(d);return v||s.test(d)?a(d.slice(2),v?2:8):r.test(d)?i:+d}return F9=c,F9}var z9,BH;function Qae(){if(BH)return z9;BH=1;var n=em(),e=eRe(),t=iRe(),i="Expected a function",r=Math.max,o=Math.min;function s(a,c,d){var g,v,E,I,U,F,W=0,V=!1,q=!1,ee=!0;if(typeof a!="function")throw new TypeError(i);c=t(c)||0,n(d)&&(V=!!d.leading,q="maxWait"in d,E=q?r(t(d.maxWait)||0,c):E,ee="trailing"in d?!!d.trailing:ee);function oe(me){var xe=g,Pe=v;return g=v=void 0,W=me,I=a.apply(Pe,xe),I}function re(me){return W=me,U=setTimeout(ce,c),V?oe(me):I}function ie(me){var xe=me-F,Pe=me-W,ke=c-xe;return q?o(ke,E-Pe):ke}function X(me){var xe=me-F,Pe=me-W;return F===void 0||xe>=c||xe<0||q&&Pe>=E}function ce(){var me=e();if(X(me))return $(me);U=setTimeout(ce,ie(me))}function $(me){return U=void 0,ee&&g?oe(me):(g=v=void 0,I)}function ue(){U!==void 0&&clearTimeout(U),W=0,g=F=v=U=void 0}function de(){return U===void 0?I:$(e())}function be(){var me=e(),xe=X(me);if(g=arguments,v=this,F=me,xe){if(U===void 0)return re(F);if(q)return clearTimeout(U),U=setTimeout(ce,c),oe(F)}return U===void 0&&(U=setTimeout(ce,c)),I}return be.cancel=ue,be.flush=de,be}return z9=s,z9}var j9,OH;function rRe(){if(OH)return j9;OH=1;var n=Qae(),e=em(),t="Expected a function";function i(r,o,s){var a=!0,c=!0;if(typeof r!="function")throw new TypeError(t);return e(s)&&(a="leading"in s?!!s.leading:a,c="trailing"in s?!!s.trailing:c),n(r,o,{leading:a,maxWait:o,trailing:c})}return j9=i,j9}var RS={},IH;function oRe(){return IH||(IH=1,Object.defineProperty(RS,"__esModule",{value:!0}),RS.calculateChange=function(e,t,i){var r=i.getBoundingClientRect(),o=r.width,s=r.height,a=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,c=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,d=a-(i.getBoundingClientRect().left+window.pageXOffset),g=c-(i.getBoundingClientRect().top+window.pageYOffset);d<0?d=0:d>o&&(d=o),g<0?g=0:g>s&&(g=s);var v=d/o,E=1-g/s;return{h:t.h,s:v,v:E,a:t.a,source:"hsv"}}),RS}var TH;function sRe(){if(TH)return g2;TH=1,Object.defineProperty(g2,"__esModule",{value:!0}),g2.Saturation=void 0;var n=(function(){function F(W,V){for(var q=0;q<V.length;q++){var ee=V[q];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(W,ee.key,ee)}}return function(W,V,q){return V&&F(W.prototype,V),q&&F(W,q),W}})(),e=Zl(),t=g(e),i=h0(),r=g(i),o=rRe(),s=g(o),a=oRe(),c=d(a);function d(F){if(F&&F.__esModule)return F;var W={};if(F!=null)for(var V in F)Object.prototype.hasOwnProperty.call(F,V)&&(W[V]=F[V]);return W.default=F,W}function Line truncated
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:oe,white:re,black:ie,pointer:X,circle:ce}},{custom:!!this.props.style});return t.default.createElement("div",{style:$.color,ref:function(de){return q.container=de},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));
@@ -932,14 +932,14 @@ From the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion)
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:$.white,className:"saturation-white"},t.default.createElement("div",{style:$.black,className:"saturation-black"}),t.default.createElement("div",{style:$.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:$.circle}))))}}]),W})(e.PureComponent||e.Component);return y2.default=U,y2}var v2={},od={},W9,RH;function iRe(){if(RH)return W9;RH=1;var n=kae(),e=Tae(),t=mae(),i=tp();function r(o,s){var a=i(o)?n:e;return a(o,t(s))}return W9=r,W9}var Q9,PH;function rRe(){return PH||(PH=1,Q9=iRe()),Q9}var _E={exports:{}},oRe=_E.exports,LH;function sRe(){return LH||(LH=1,(function(n,e){(function(t,i){n.exports=i()})(oRe,(function(){function t(Le){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ie){return typeof Ie}:function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie},t(Le)}var i=/^\s+/,r=/\s+$/;function o(Le,Ie){if(Le=Le||"",Ie=Ie||{},Le instanceof o)return Le;if(!(this instanceof o))return new o(Le,Ie);var Ce=s(Le);this._originalInput=Le,this._r=Ce.r,this._g=Ce.g,this._b=Ce.b,this._a=Ce.a,this._roundA=Math.round(100*this._a)/100,this._format=Ie.format||Ce.format,this._gradientType=Ie.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=Ce.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 Ie=this.toRgb();return(Ie.r*299+Ie.g*587+Ie.b*114)/1e3},getLuminance:function(){var Ie=this.toRgb(),Ce,it,pt,Ve,St,Bt;return Ce=Ie.r/255,it=Ie.g/255,pt=Ie.b/255,Ce<=.03928?Ve=Ce/12.92:Ve=Math.pow((Ce+.055)/1.055,2.4),it<=.03928?St=it/12.92:St=Math.pow((it+.055)/1.055,2.4),pt<=.03928?Bt=pt/12.92:Bt=Math.pow((pt+.055)/1.055,2.4),.2126*Ve+.7152*St+.0722*Bt},setAlpha:function(Ie){return this._a=xe(Ie),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Ie=g(this._r,this._g,this._b);return{h:Ie.h*360,s:Ie.s,v:Ie.v,a:this._a}},toHsvString:function(){var Ie=g(this._r,this._g,this._b),Ce=Math.round(Ie.h*360),it=Math.round(Ie.s*100),pt=Math.round(Ie.v*100);return this._a==1?"hsv("+Ce+", "+it+"%, "+pt+"%)":"hsva("+Ce+", "+it+"%, "+pt+"%, "+this._roundA+")"},toHsl:function(){var Ie=c(this._r,this._g,this._b);return{h:Ie.h*360,s:Ie.s,l:Ie.l,a:this._a}},toHslString:function(){var Ie=c(this._r,this._g,this._b),Ce=Math.round(Ie.h*360),it=Math.round(Ie.s*100),pt=Math.round(Ie.l*100);return this._a==1?"hsl("+Ce+", "+it+"%, "+pt+"%)":"hsla("+Ce+", "+it+"%, "+pt+"%, "+this._roundA+")"},toHex:function(Ie){return E(this._r,this._g,this._b,Ie)},toHexString:function(Ie){return"#"+this.toHex(Ie)},toHex8:function(Ie){return I(this._r,this._g,this._b,this._a,Ie)},toHex8String:function(Ie){return"#"+this.toHex8(Ie)},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:be[E(this._r,this._g,this._b,!0)]||!1},toFilter:function(Ie){var Ce="#"+U(this._r,this._g,this._b,this._a),it=Ce,pt=this._gradientType?"GradientType = 1, ":"";if(Ie){var Ve=o(Ie);it="#"+U(Ve._r,Ve._g,Ve._b,Ve._a)}return"progid:DXImageTransform.Microsoft.gradient("+pt+"startColorstr="+Ce+",endColorstr="+it+")"},toString:function(Ie){var Ce=!!Ie;Ie=Ie||this._format;var it=!1,pt=this._a<1&&this._a>=0,Ve=!Ce&&pt&&(Ie==="hex"||Ie==="hex6"||Ie==="hex3"||Ie==="hex4"||Ie==="hex8"||Ie==="name");return Ve?Ie==="name"&&this._a===0?this.toName():this.toRgbString():(Ie==="rgb"&&(it=this.toRgbString()),Ie==="prgb"&&(it=this.toPercentageRgbString()),(Ie==="hex"||Ie==="hex6")&&(it=this.toHexString()),Ie==="hex3"&&(it=this.toHexString(!0)),Ie==="hex4"&&(it=this.toHex8String(!0)),Ie==="hex8"&&(it=this.toHex8String()),Ie==="name"&&(it=this.toName()),Ie==="hsl"&&(it=this.toHslString()),Ie==="hsv"&&(it=this.toHsvString()),it||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(Ie,Ce){var it=Ie.apply( Line truncated
`),t.default.createElement("div",{style:$.white,className:"saturation-white"},t.default.createElement("div",{style:$.black,className:"saturation-black"}),t.default.createElement("div",{style:$.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:$.circle}))))}}]),W})(e.PureComponent||e.Component);return g2.default=U,g2}var y2={},od={},N9,kH;function aRe(){if(kH)return N9;kH=1;var n=Rae(),e=Dae(),t=yae(),i=ep();function r(o,s){var a=i(o)?n:e;return a(o,t(s))}return N9=r,N9}var G9,DH;function lRe(){return DH||(DH=1,G9=aRe()),G9}var bE={exports:{}},uRe=bE.exports,RH;function cRe(){return RH||(RH=1,(function(n,e){(function(t,i){n.exports=i()})(uRe,(function(){function t(Le){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ie){return typeof Ie}:function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie},t(Le)}var i=/^\s+/,r=/\s+$/;function o(Le,Ie){if(Le=Le||"",Ie=Ie||{},Le instanceof o)return Le;if(!(this instanceof o))return new o(Le,Ie);var Ce=s(Le);this._originalInput=Le,this._r=Ce.r,this._g=Ce.g,this._b=Ce.b,this._a=Ce.a,this._roundA=Math.round(100*this._a)/100,this._format=Ie.format||Ce.format,this._gradientType=Ie.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=Ce.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 Ie=this.toRgb();return(Ie.r*299+Ie.g*587+Ie.b*114)/1e3},getLuminance:function(){var Ie=this.toRgb(),Ce,it,pt,Ve,St,Bt;return Ce=Ie.r/255,it=Ie.g/255,pt=Ie.b/255,Ce<=.03928?Ve=Ce/12.92:Ve=Math.pow((Ce+.055)/1.055,2.4),it<=.03928?St=it/12.92:St=Math.pow((it+.055)/1.055,2.4),pt<=.03928?Bt=pt/12.92:Bt=Math.pow((pt+.055)/1.055,2.4),.2126*Ve+.7152*St+.0722*Bt},setAlpha:function(Ie){return this._a=xe(Ie),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Ie=g(this._r,this._g,this._b);return{h:Ie.h*360,s:Ie.s,v:Ie.v,a:this._a}},toHsvString:function(){var Ie=g(this._r,this._g,this._b),Ce=Math.round(Ie.h*360),it=Math.round(Ie.s*100),pt=Math.round(Ie.v*100);return this._a==1?"hsv("+Ce+", "+it+"%, "+pt+"%)":"hsva("+Ce+", "+it+"%, "+pt+"%, "+this._roundA+")"},toHsl:function(){var Ie=c(this._r,this._g,this._b);return{h:Ie.h*360,s:Ie.s,l:Ie.l,a:this._a}},toHslString:function(){var Ie=c(this._r,this._g,this._b),Ce=Math.round(Ie.h*360),it=Math.round(Ie.s*100),pt=Math.round(Ie.l*100);return this._a==1?"hsl("+Ce+", "+it+"%, "+pt+"%)":"hsla("+Ce+", "+it+"%, "+pt+"%, "+this._roundA+")"},toHex:function(Ie){return E(this._r,this._g,this._b,Ie)},toHexString:function(Ie){return"#"+this.toHex(Ie)},toHex8:function(Ie){return I(this._r,this._g,this._b,this._a,Ie)},toHex8String:function(Ie){return"#"+this.toHex8(Ie)},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:be[E(this._r,this._g,this._b,!0)]||!1},toFilter:function(Ie){var Ce="#"+U(this._r,this._g,this._b,this._a),it=Ce,pt=this._gradientType?"GradientType = 1, ":"";if(Ie){var Ve=o(Ie);it="#"+U(Ve._r,Ve._g,Ve._b,Ve._a)}return"progid:DXImageTransform.Microsoft.gradient("+pt+"startColorstr="+Ce+",endColorstr="+it+")"},toString:function(Ie){var Ce=!!Ie;Ie=Ie||this._format;var it=!1,pt=this._a<1&&this._a>=0,Ve=!Ce&&pt&&(Ie==="hex"||Ie==="hex6"||Ie==="hex3"||Ie==="hex4"||Ie==="hex8"||Ie==="name");return Ve?Ie==="name"&&this._a===0?this.toName():this.toRgbString():(Ie==="rgb"&&(it=this.toRgbString()),Ie==="prgb"&&(it=this.toPercentageRgbString()),(Ie==="hex"||Ie==="hex6")&&(it=this.toHexString()),Ie==="hex3"&&(it=this.toHexString(!0)),Ie==="hex4"&&(it=this.toHex8String(!0)),Ie==="hex8"&&(it=this.toHex8String()),Ie==="name"&&(it=this.toName()),Ie==="hsl"&&(it=this.toHslString()),Ie==="hsv"&&(it=this.toHsvString()),it||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(Ie,Ce){var it=Ie.apply( 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@${cZ}/dist/maplibre-gl.js"><\/script>
<link href="https://unpkg.com/maplibre-gl@${cZ}/dist/maplibre-gl.css" rel="stylesheet" />
<script src="https://unpkg.com/maplibre-gl@${lZ}/dist/maplibre-gl.js"><\/script>
<link href="https://unpkg.com/maplibre-gl@${lZ}/dist/maplibre-gl.css" rel="stylesheet" />
<style>
body { margin: 0; padding: 0; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; }
@@ -956,5 +956,5 @@ From the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion)
<\/script>
</body>
</html>
`),r=(ci().s[9]++,new Blob([i],{type:"text/html;charset=utf-8"})),o=(ci().s[10]++,this.exportName());ci().s[11]++,uZ.saveAs(r,o+".html")}async saveStyle(){ci().f[3]++;const e=(ci().s[12]++,this.tokenizedStyle());if(ci().s[13]++,AZ)ci().b[2][1]++;else{ci().b[2][0]++;const r=(ci().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),o=(ci().s[15]++,this.exportName());ci().s[16]++,uZ.saveAs(r,o+".json"),ci().s[17]++;return}let t=(ci().s[18]++,this.props.fileHandle);if(ci().s[19]++,t==null)if(ci().b[3][0]++,ci().s[20]++,t=await this.createFileHandle(),ci().s[21]++,this.props.onSetFileHandle(t),ci().s[22]++,t==null){ci().b[4][0]++,ci().s[23]++;return}else ci().b[4][1]++;else ci().b[3][1]++;const i=(ci().s[24]++,await t.createWritable());ci().s[25]++,await i.write(e),ci().s[26]++,await i.close(),ci().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){ci().f[4]++;const e=(ci().s[28]++,this.tokenizedStyle()),t=(ci().s[29]++,await this.createFileHandle());if(ci().s[30]++,this.props.onSetFileHandle(t),ci().s[31]++,t==null){ci().b[5][0]++,ci().s[32]++;return}else ci().b[5][1]++;const i=(ci().s[33]++,await t.createWritable());ci().s[34]++,await i.write(e),ci().s[35]++,await i.close(),ci().s[36]++,this.props.onOpenToggle()}async createFileHandle(){ci().f[5]++;const e=(ci().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(ci().s[38]++,await window.showSaveFilePicker(e));return ci().s[39]++,this.props.onSetFileHandle(t),ci().s[40]++,t}changeMetadataProperty(e,t){ci().f[6]++;const i=(ci().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});ci().s[42]++,this.props.onStyleChanged(i)}render(){ci().f[7]++;const e=(ci().s[43]++,this.props.t),t=(ci().s[44]++,rle(e));return ci().s[45]++,le.jsx(vy,{"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(Zd,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(ci().b[6][0]++,this.props.mapStyle.metadata||(ci().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),le.jsx(Zd,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(ci().b[7][0]++,this.props.mapStyle.metadata||(ci().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),le.jsx(Zd,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(ci().b[8][0]++,this.props.mapStyle.metadata||(ci().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")}),le.jsx(Zd,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(ci().b[9][0]++,this.props.mapStyle.metadata||(ci().b[9][1]++,{}))["maputnik:locationiq_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:locationiq_access_token")})]}),le.jsxs("div",{className:"maputnik-modal-export-buttons",children:[le.jsxs($s,{onClick:this.saveStyle.bind(this),children:[le.jsx(MD,{}),e("Save")]}),(ci().b[10][0]++,AZ&&(ci().b[10][1]++,le.jsxs($s,{onClick:this.saveStyleAs.bind(this),children:[le.jsx(MD,{}),e("Save as")]}))),le.jsxs($s,{onClick:this.createHtml.bind(this),children:[le.jsx(lpe,{}),e("Create HTML")]})]})]})})}}const VPe=(ci().s[46]++,Fo()(qPe));function bw(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="4c327cf73965682b7307cfc72c45a59c436e7521",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:4,column:33},end:{line:6,column:1}},1:{start:{line:5,column:2},end:{line:5,column:127}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:33},end:{line:4,column:34}},loc:{start:{line:4,column:44},end:{line:6,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAUM;AAVN,SAAS,yBAAsD;AAC/D,SAAS,gBAAgB;AAMlB,aAAM,oBAAsD,CAAC,UAAU;AAC5E,SACE,oBAAC,YAAS,OAAO,MAAM,OACrB,8BAAC,qBAAmB,GAAG,OAAO,GAChC;AAEJ;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"4c327cf73965682b7307cfc72c45a59c436e7521"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return bw=function(){return s},s}bw();bw().s[0]++;const ole=n=>(bw().f[0]++,bw().s[1]++,le.jsx(Sv,{label:n.label,children:le.jsx(wE,{...n})}));function Cw(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldCheck Line truncated
//# sourceMappingURL=index-m3z0Q8eU.js.map
`),r=(ci().s[9]++,new Blob([i],{type:"text/html;charset=utf-8"})),o=(ci().s[10]++,this.exportName());ci().s[11]++,aZ.saveAs(r,o+".html")}async saveStyle(){ci().f[3]++;const e=(ci().s[12]++,this.tokenizedStyle());if(ci().s[13]++,uZ)ci().b[2][1]++;else{ci().b[2][0]++;const r=(ci().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),o=(ci().s[15]++,this.exportName());ci().s[16]++,aZ.saveAs(r,o+".json"),ci().s[17]++;return}let t=(ci().s[18]++,this.props.fileHandle);if(ci().s[19]++,t==null)if(ci().b[3][0]++,ci().s[20]++,t=await this.createFileHandle(),ci().s[21]++,this.props.onSetFileHandle(t),ci().s[22]++,t==null){ci().b[4][0]++,ci().s[23]++;return}else ci().b[4][1]++;else ci().b[3][1]++;const i=(ci().s[24]++,await t.createWritable());ci().s[25]++,await i.write(e),ci().s[26]++,await i.close(),ci().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){ci().f[4]++;const e=(ci().s[28]++,this.tokenizedStyle()),t=(ci().s[29]++,await this.createFileHandle());if(ci().s[30]++,this.props.onSetFileHandle(t),ci().s[31]++,t==null){ci().b[5][0]++,ci().s[32]++;return}else ci().b[5][1]++;const i=(ci().s[33]++,await t.createWritable());ci().s[34]++,await i.write(e),ci().s[35]++,await i.close(),ci().s[36]++,this.props.onOpenToggle()}async createFileHandle(){ci().f[5]++;const e=(ci().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(ci().s[38]++,await window.showSaveFilePicker(e));return ci().s[39]++,this.props.onSetFileHandle(t),ci().s[40]++,t}changeMetadataProperty(e,t){ci().f[6]++;const i=(ci().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});ci().s[42]++,this.props.onStyleChanged(i)}render(){ci().f[7]++;const e=(ci().s[43]++,this.props.t),t=(ci().s[44]++,sle(e));return ci().s[45]++,le.jsx(yy,{"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(Hd,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(ci().b[6][0]++,this.props.mapStyle.metadata||(ci().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),le.jsx(Hd,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(ci().b[7][0]++,this.props.mapStyle.metadata||(ci().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),le.jsx(Hd,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(ci().b[8][0]++,this.props.mapStyle.metadata||(ci().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")}),le.jsx(Hd,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(ci().b[9][0]++,this.props.mapStyle.metadata||(ci().b[9][1]++,{}))["maputnik:locationiq_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:locationiq_access_token")})]}),le.jsxs("div",{className:"maputnik-modal-export-buttons",children:[le.jsxs(Hs,{onClick:this.saveStyle.bind(this),children:[le.jsx(xD,{}),e("Save")]}),(ci().b[10][0]++,uZ&&(ci().b[10][1]++,le.jsxs(Hs,{onClick:this.saveStyleAs.bind(this),children:[le.jsx(xD,{}),e("Save as")]}))),le.jsxs(Hs,{onClick:this.createHtml.bind(this),children:[le.jsx(hpe,{}),e("Create HTML")]})]})]})})}}const XPe=(ci().s[46]++,Fo()(ZPe));function yw(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="94fb3f877de0b7e96b65a77bc8aab2d93215a4b2",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:4,column:33},end:{line:6,column:1}},1:{start:{line:5,column:2},end:{line:5,column:127}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:33},end:{line:4,column:34}},loc:{start:{line:4,column:44},end:{line:6,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAaM;AAbN,SAAS,yBAAsD;AAC/D,SAAS,gBAAgB;AASlB,aAAM,oBAAsD,CAAC,UAAU;AAC5E,SACE,oBAAC,YAAS,OAAO,MAAM,OACrB,8BAAC,qBAAmB,GAAG,OAAO,GAChC;AAEJ;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"94fb3f877de0b7e96b65a77bc8aab2d93215a4b2"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return yw=function(){return s},s}yw();yw().s[0]++;const ale=n=>(yw().f[0]++,yw().s[1]++,le.jsx(Mv,{label:n.label,children:le.jsx(_E,{...n})}));function vw(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldCheck Line truncated
//# sourceMappingURL=index-ClPB4XcM.js.map
@@ -1 +1 @@
{"version":3,"mappings":"ysDAWA,IAAIA,EAAqB,OAAO,IAAI,4BAA4B,EAC9DC,EAAsB,OAAO,IAAI,gBAAgB,EACnD,SAASC,EAAQC,EAAMC,EAAQC,EAAU,CACvC,IAAIC,EAAM,KAGV,GAFWD,IAAX,SAAwBC,EAAM,GAAKD,GACxBD,EAAO,MAAlB,SAA0BE,EAAM,GAAKF,EAAO,KACxC,QAASA,EAAQ,CACnBC,EAAW,GACX,QAASE,KAAYH,EACTG,IAAV,QAAuBF,EAASE,CAAQ,EAAIH,EAAOG,CAAQ,EACjE,MAASF,EAAWD,EAClB,OAAAA,EAASC,EAAS,IACX,CACL,SAAUL,EACV,KAAMG,EACN,IAAKG,EACL,IAAgBF,IAAX,OAAoBA,EAAS,KAClC,MAAOC,EAEX,CACA,OAAAG,GAAA,SAAmBP,EACnBO,GAAA,IAAcN,EACdM,GAAA,KAAeN,4CC9BbO,GAAA,QAAiBC,IAAA,4FCQnB,IAAIV,EAAqB,OAAO,IAAI,4BAA4B,EAC9DW,EAAoB,OAAO,IAAI,cAAc,EAC7CV,EAAsB,OAAO,IAAI,gBAAgB,EACjDW,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAqB,OAAO,IAAI,eAAe,EAC/CC,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAwB,OAAO,SACjC,SAASC,EAAcC,GAAe,CACpC,OAAaA,KAAT,MAAuC,OAAOA,IAApB,SAA0C,MACxEA,GACGF,GAAyBE,GAAcF,CAAqB,GAC7DE,GAAc,YAAY,EACN,OAAOA,IAAtB,WAAsCA,GAAgB,KAC/D,CACA,IAAIC,EAAuB,CACvB,UAAW,UAAY,CACrB,MAAO,EACb,EACI,mBAAoB,UAAY,GAChC,oBAAqB,UAAY,GACjC,gBAAiB,UAAY,IAE/BC,EAAS,OAAO,OAChBC,EAAc,GAChB,SAASC,EAAUC,GAAOC,GAASC,GAAS,CAC1C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACAG,EAAU,UAAU,iBAAmB,GACvCA,EAAU,UAAU,SAAW,SAAUI,GAAcC,GAAU,CAC/D,GACe,OAAOD,IAApB,UACe,OAAOA,IAAtB,YACQA,IAAR,KAEA,MAAM,MACJ,0GAEJ,KAAK,QAAQ,gBAAgB,KAAMA,GAAcC,GAAU,UAAU,CACvE,EACAL,EAAU,UAAU,YAAc,SAAUK,GAAU,CACpD,KAAK,QAAQ,mBAAmB,KAAMA,GAAU,aAAa,CAC/D,EACA,SAASC,GAAiB,EAC1BA,EAAe,UAAYN,EAAU,UACrC,SAASO,GAAcN,GAAOC,GAASC,GAAS,CAC9C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACA,IAAIW,GAA0BD,GAAc,UAAY,IAAID,EAC5DE,GAAuB,YAAcD,GACrCT,EAAOU,GAAwBR,EAAU,SAAS,EAClDQ,GAAuB,qBAAuB,GAC9C,IAAIC,GAAc,MAAM,QACxB,SAASC,IAAO,EAChB,IAAIC,EAAuB,CAAE,EAAG,KAAM,EAAG,KAAM,EAAG,KAAM,EAAG,IAAI,EAC7DC,GAAiB,OAAO,UAAU,eACpC,SAASC,EAAarC,GAAMG,GAAKsB,GAAO,CACtC,IAAIa,GAAUb,GAAM,IACpB,MAAO,CACL,SAAU5B,EACV,KAAMG,GACN,IAAKG,GACL,IAAgBmC,KAAX,OAAqBA,GAAU,KACpC,MAAOb,GAEX,CACA,SAASc,GAAmBC,GAAYC,GAAQ,CAC9C,OAAOJ,EAAaG,GAAW,KAAMC,GAAQD,GAAW,KAAK,CAC/D,CACA,SAASE,GAAeC,GAAQ,CAC9B,OACe,OAAOA,IAApB,UACSA,KAAT,MACAA,GAAO,WAAa9C,CAExB,CACA,SAAS+C,GAAOzC,GAAK,CACnB,IAAI0C,GAAgB,CAAE,IAAK,KAAM,IAAK,IAAI,EAC1C,MACE,IACA1C,GAAI,QAAQ,QAAS,SAAU2C,GAAO,CACpC,OAAOD,GAAcC,EAAK,CAChC,CAAK,CAEL,CACA,IAAIC,GAA6B,OACjC,SAASC,GAAcC,GAASC,GAAO,CACrC,OAAoB,OAAOD,IAApB,UAAwCA,KAAT,MAA4BA,GAAQ,KAAhB,KACtDL,GAAO,GAAKK,GAAQ,GAAG,EACvBC,GAAM,SAAS,EAAE,CACvB,CACA,SAASC,GAAgBC,GAAU,CACjC,OAAQA,GAAS,OAAM,CACrB,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,OACjB,QACE,OACgB,OAAOA,GAAS,QAA7B,SACGA,GAAS,KAAKlB,GAAMA,EAAI,GACtBkB,GAAS,OAAS,UACpBA,GAAS,KACP,SAAUC,GAAgB,CACVD,GAAS,SAAvB,YACIA,GAAS,OAAS,YACnBA,GAAS,MAAQC,GACpC,EACc,SAAUC,GAAO,CACDF,GAAS,SAAvB,YACIA,GAAS,OAAS,WAAcA,GAAS,OAASE,GACtE,CACA,GACQF,GAAS,OACjB,CACQ,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,MACzB,CACA,CACE,MAAMA,EACR,CACA,SAASG,GAAaC,GAAUC,GAAOC,GAAeC,GAAW9B,GAAU,CACzE,IAAI7B,GAAO,OAAOwD,IACExD,KAAhB,aAAsCA,KAAd,aAAoBwD,GAAW,MAC3D,IAAII,GAAiB,GACrB,GAAaJ,KAAT,KAAmBI,GAAiB,OAEtC,QAAQ5D,GAAI,CACV,IAAK,SACL,IAAK,SACL,IAAK,SACH4D,GAAiB,GACjB,MACF,IAAK,SACH,OAAQJ,GAAS,SAAQ,CACvB,KAAK3D,EACL,KAAKW,EACHoD,GAAiB,GACjB,MACF,KAAK5C,EACH,OACG4C,GAAiBJ,GAAS,MAC3BD,GACEK,GAAeJ,GAAS,QAAQ,EAChCC,GACAC,GACAC,GACA9B,EAChB,CAEA,CACA,CACE,GAAI+B,GACF,OACG/B,GAAWA,GAAS2B,EAAQ,EAC5BI,GACQD,KAAP,GAAmB,IAAMX,GAAcQ,GAAU,CAAC,EAAIG,GACxD1B,GAAYJ,EAAQ,GACd6B,GAAgB,GACVE,IAAR,OACGF,GACCE,GAAe,QAAQb,GAA4B,KAAK,EAAI,KAChEQ,GAAa1B,GAAU4B,GAAOC,GAAe,GAAI,SAAUG,GAAG,CAC5D,OAAOA,EACnB,CAAW,GACOhC,IAAR,OACCa,GAAeb,EAAQ,IACrBA,GAAWU,GACVV,GACA6B,IACW7B,GAAS,KAAjB,MACA2B,IAAYA,GAAS,MAAQ3B,GAAS,IACnC,IACC,GAAKA,GAAS,KAAK,QAClBkB,GACA,OACE,KACRa,EAChB,GACUH,GAAM,KAAK5B,EAAQ,GACvB,EAEJ+B,GAAiB,EACjB,IAAIE,GAAwBH,KAAP,GAAmB,IAAMA,GAAY,IAC1D,GAAI1B,GAAYuB,EAAQ,EACtB,QAASO,GAAI,EAAGA,GAAIP,GAAS,OAAQO,KAClCJ,GAAYH,GAASO,EAAC,EACpB/D,GAAO8D,GAAiBd,GAAcW,GAAWI,EAAC,EAClDH,IAAkBL,GACjBI,GACAF,GACAC,GACA1D,GACA6B,EACV,UACakC,GAAI5C,EAAcqC,EAAQ,EAAmB,OAAOO,IAAtB,WACvC,IACEP,GAAWO,GAAE,KAAKP,EAAQ,EAAGO,GAAI,EACjC,EAAEJ,GAAYH,GAAS,KAAI,GAAI,MAG9BG,GAAYA,GAAU,MACpB3D,GAAO8D,GAAiBd,GAAcW,GAAWI,IAAG,EACpDH,IAAkBL,GACjBI,GACAF,GACAC,GACA1D,GACA6B,EACV,UACwB7B,KAAb,SAAmB,CAC1B,GAAmB,OAAOwD,GAAS,MAA/B,WACF,OAAOD,GACLJ,GAAgBK,EAAQ,EACxBC,GACAC,GACAC,GACA9B,IAEJ,MAAA4B,GAAQ,OAAOD,EAAQ,EACjB,MACJ,mDACyBC,KAAtB,kBACG,qBAAuB,OAAO,KAAKD,EAAQ,EAAE,KAAK,IAAI,EAAI,IAC1DC,IACJ,4EAER,CACE,OAAOG,EACT,CACA,SAASI,GAAYR,GAAUS,GAAMvC,GAAS,CAC5C,GAAY8B,IAAR,KAAkB,OAAOA,GAC7B,IAAIU,GAAS,GACXC,GAAQ,EACV,OAAAZ,GAAaC,GAAUU,GAAQ,GAAI,GAAI,SAAUE,GAAO,CACtD,OAAOH,GAAK,KAAKvC,GAAS0C,GAAOD,IAAO,CAC5C,CAAG,EACMD,EACT,CACA,SAASG,GAAgBC,GAAS,CAChC,GAAWA,GAAQ,UAAf,GAAwB,CAC1B,IAAIC,GAAOD,GAAQ,QACnBC,GAAOA,GAAI,EACXA,GAAK,KACH,SAAUC,GAAc,EACZF,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QAAU,EAAKA,GAAQ,QAAUE,GACpD,EACM,SAAUlB,GAAO,EACLgB,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QAAU,EAAKLine truncated
{"version":3,"mappings":"ysDAWA,IAAIA,EAAqB,OAAO,IAAI,4BAA4B,EAC9DC,EAAsB,OAAO,IAAI,gBAAgB,EACnD,SAASC,EAAQC,EAAMC,EAAQC,EAAU,CACvC,IAAIC,EAAM,KAGV,GAFWD,IAAX,SAAwBC,EAAM,GAAKD,GACxBD,EAAO,MAAlB,SAA0BE,EAAM,GAAKF,EAAO,KACxC,QAASA,EAAQ,CACnBC,EAAW,GACX,QAASE,KAAYH,EACTG,IAAV,QAAuBF,EAASE,CAAQ,EAAIH,EAAOG,CAAQ,EACjE,MAASF,EAAWD,EAClB,OAAAA,EAASC,EAAS,IACX,CACL,SAAUL,EACV,KAAMG,EACN,IAAKG,EACL,IAAgBF,IAAX,OAAoBA,EAAS,KAClC,MAAOC,EAEX,CACA,OAAAG,GAAA,SAAmBP,EACnBO,GAAA,IAAcN,EACdM,GAAA,KAAeN,4CC9BbO,GAAA,QAAiBC,IAAA,4FCQnB,IAAIV,EAAqB,OAAO,IAAI,4BAA4B,EAC9DW,EAAoB,OAAO,IAAI,cAAc,EAC7CV,EAAsB,OAAO,IAAI,gBAAgB,EACjDW,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAqB,OAAO,IAAI,eAAe,EAC/CC,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAwB,OAAO,SACjC,SAASC,EAAcC,GAAe,CACpC,OAAaA,KAAT,MAAuC,OAAOA,IAApB,SAA0C,MACxEA,GACGF,GAAyBE,GAAcF,CAAqB,GAC7DE,GAAc,YAAY,EACN,OAAOA,IAAtB,WAAsCA,GAAgB,KAC/D,CACA,IAAIC,EAAuB,CACvB,UAAW,UAAY,CACrB,MAAO,EACb,EACI,mBAAoB,UAAY,GAChC,oBAAqB,UAAY,GACjC,gBAAiB,UAAY,IAE/BC,EAAS,OAAO,OAChBC,EAAc,GAChB,SAASC,EAAUC,GAAOC,GAASC,GAAS,CAC1C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACAG,EAAU,UAAU,iBAAmB,GACvCA,EAAU,UAAU,SAAW,SAAUI,GAAcC,GAAU,CAC/D,GACe,OAAOD,IAApB,UACe,OAAOA,IAAtB,YACQA,IAAR,KAEA,MAAM,MACJ,0GAEJ,KAAK,QAAQ,gBAAgB,KAAMA,GAAcC,GAAU,UAAU,CACvE,EACAL,EAAU,UAAU,YAAc,SAAUK,GAAU,CACpD,KAAK,QAAQ,mBAAmB,KAAMA,GAAU,aAAa,CAC/D,EACA,SAASC,GAAiB,EAC1BA,EAAe,UAAYN,EAAU,UACrC,SAASO,GAAcN,GAAOC,GAASC,GAAS,CAC9C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACA,IAAIW,GAA0BD,GAAc,UAAY,IAAID,EAC5DE,GAAuB,YAAcD,GACrCT,EAAOU,GAAwBR,EAAU,SAAS,EAClDQ,GAAuB,qBAAuB,GAC9C,IAAIC,GAAc,MAAM,QACxB,SAASC,IAAO,EAChB,IAAIC,EAAuB,CAAE,EAAG,KAAM,EAAG,KAAM,EAAG,KAAM,EAAG,IAAI,EAC7DC,GAAiB,OAAO,UAAU,eACpC,SAASC,EAAarC,GAAMG,GAAKsB,GAAO,CACtC,IAAIa,GAAUb,GAAM,IACpB,MAAO,CACL,SAAU5B,EACV,KAAMG,GACN,IAAKG,GACL,IAAgBmC,KAAX,OAAqBA,GAAU,KACpC,MAAOb,GAEX,CACA,SAASc,GAAmBC,GAAYC,GAAQ,CAC9C,OAAOJ,EAAaG,GAAW,KAAMC,GAAQD,GAAW,KAAK,CAC/D,CACA,SAASE,GAAeC,GAAQ,CAC9B,OACe,OAAOA,IAApB,UACSA,KAAT,MACAA,GAAO,WAAa9C,CAExB,CACA,SAAS+C,GAAOzC,GAAK,CACnB,IAAI0C,GAAgB,CAAE,IAAK,KAAM,IAAK,IAAI,EAC1C,MACE,IACA1C,GAAI,QAAQ,QAAS,SAAU2C,GAAO,CACpC,OAAOD,GAAcC,EAAK,CAChC,CAAK,CAEL,CACA,IAAIC,GAA6B,OACjC,SAASC,GAAcC,GAASC,GAAO,CACrC,OAAoB,OAAOD,IAApB,UAAwCA,KAAT,MAA4BA,GAAQ,KAAhB,KACtDL,GAAO,GAAKK,GAAQ,GAAG,EACvBC,GAAM,SAAS,EAAE,CACvB,CACA,SAASC,GAAgBC,GAAU,CACjC,OAAQA,GAAS,OAAM,CACrB,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,OACjB,QACE,OACgB,OAAOA,GAAS,QAA7B,SACGA,GAAS,KAAKlB,GAAMA,EAAI,GACtBkB,GAAS,OAAS,UACpBA,GAAS,KACP,SAAUC,GAAgB,CACVD,GAAS,SAAvB,YACIA,GAAS,OAAS,YACnBA,GAAS,MAAQC,GACpC,EACc,SAAUC,GAAO,CACDF,GAAS,SAAvB,YACIA,GAAS,OAAS,WAAcA,GAAS,OAASE,GACtE,CACA,GACQF,GAAS,OACjB,CACQ,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,MACzB,CACA,CACE,MAAMA,EACR,CACA,SAASG,GAAaC,GAAUC,GAAOC,GAAeC,GAAW9B,GAAU,CACzE,IAAI7B,GAAO,OAAOwD,IACExD,KAAhB,aAAsCA,KAAd,aAAoBwD,GAAW,MAC3D,IAAII,GAAiB,GACrB,GAAaJ,KAAT,KAAmBI,GAAiB,OAEtC,QAAQ5D,GAAI,CACV,IAAK,SACL,IAAK,SACL,IAAK,SACH4D,GAAiB,GACjB,MACF,IAAK,SACH,OAAQJ,GAAS,SAAQ,CACvB,KAAK3D,EACL,KAAKW,EACHoD,GAAiB,GACjB,MACF,KAAK5C,EACH,OACG4C,GAAiBJ,GAAS,MAC3BD,GACEK,GAAeJ,GAAS,QAAQ,EAChCC,GACAC,GACAC,GACA9B,EAChB,CAEA,CACA,CACE,GAAI+B,GACF,OACG/B,GAAWA,GAAS2B,EAAQ,EAC5BI,GACQD,KAAP,GAAmB,IAAMX,GAAcQ,GAAU,CAAC,EAAIG,GACxD1B,GAAYJ,EAAQ,GACd6B,GAAgB,GACVE,IAAR,OACGF,GACCE,GAAe,QAAQb,GAA4B,KAAK,EAAI,KAChEQ,GAAa1B,GAAU4B,GAAOC,GAAe,GAAI,SAAUG,GAAG,CAC5D,OAAOA,EACnB,CAAW,GACOhC,IAAR,OACCa,GAAeb,EAAQ,IACrBA,GAAWU,GACVV,GACA6B,IACW7B,GAAS,KAAjB,MACA2B,IAAYA,GAAS,MAAQ3B,GAAS,IACnC,IACC,GAAKA,GAAS,KAAK,QAClBkB,GACA,OACE,KACRa,EAChB,GACUH,GAAM,KAAK5B,EAAQ,GACvB,EAEJ+B,GAAiB,EACjB,IAAIE,GAAwBH,KAAP,GAAmB,IAAMA,GAAY,IAC1D,GAAI1B,GAAYuB,EAAQ,EACtB,QAASO,GAAI,EAAGA,GAAIP,GAAS,OAAQO,KAClCJ,GAAYH,GAASO,EAAC,EACpB/D,GAAO8D,GAAiBd,GAAcW,GAAWI,EAAC,EAClDH,IAAkBL,GACjBI,GACAF,GACAC,GACA1D,GACA6B,EACV,UACakC,GAAI5C,EAAcqC,EAAQ,EAAmB,OAAOO,IAAtB,WACvC,IACEP,GAAWO,GAAE,KAAKP,EAAQ,EAAGO,GAAI,EACjC,EAAEJ,GAAYH,GAAS,KAAI,GAAI,MAG9BG,GAAYA,GAAU,MACpB3D,GAAO8D,GAAiBd,GAAcW,GAAWI,IAAG,EACpDH,IAAkBL,GACjBI,GACAF,GACAC,GACA1D,GACA6B,EACV,UACwB7B,KAAb,SAAmB,CAC1B,GAAmB,OAAOwD,GAAS,MAA/B,WACF,OAAOD,GACLJ,GAAgBK,EAAQ,EACxBC,GACAC,GACAC,GACA9B,IAEJ,MAAA4B,GAAQ,OAAOD,EAAQ,EACjB,MACJ,mDACyBC,KAAtB,kBACG,qBAAuB,OAAO,KAAKD,EAAQ,EAAE,KAAK,IAAI,EAAI,IAC1DC,IACJ,4EAER,CACE,OAAOG,EACT,CACA,SAASI,GAAYR,GAAUS,GAAMvC,GAAS,CAC5C,GAAY8B,IAAR,KAAkB,OAAOA,GAC7B,IAAIU,GAAS,GACXC,GAAQ,EACV,OAAAZ,GAAaC,GAAUU,GAAQ,GAAI,GAAI,SAAUE,GAAO,CACtD,OAAOH,GAAK,KAAKvC,GAAS0C,GAAOD,IAAO,CAC5C,CAAG,EACMD,EACT,CACA,SAASG,GAAgBC,GAAS,CAChC,GAAWA,GAAQ,UAAf,GAAwB,CAC1B,IAAIC,GAAOD,GAAQ,QACnBC,GAAOA,GAAI,EACXA,GAAK,KACH,SAAUC,GAAc,EACZF,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QAAU,EAAKA,GAAQ,QAAUE,GACpD,EACM,SAAUlB,GAAO,EACLgB,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QAAU,EAAKLine truncated
+1 -1
View File
@@ -37,7 +37,7 @@
}
</style>
<script type="module" crossorigin src="/maputnik/assets/index-m3z0Q8eU.js"></script>
<script type="module" crossorigin src="/maputnik/assets/index-ClPB4XcM.js"></script>
<link rel="stylesheet" crossorigin href="/maputnik/assets/index-CeR5SWEc.css">
</head>
<body>